@@ -805,7 +805,7 @@ public protocol ClientProtocol : AnyObject {
805
805
*/
806
806
func accountData(eventType: String) throws -> String?
807
807
808
- func accountUrl(action: AccountManagementAction?) throws -> String?
808
+ func accountUrl(action: AccountManagementAction?) async throws -> String?
809
809
810
810
func avatarUrl() throws -> String?
811
811
@@ -979,16 +979,23 @@ open class Client:
979
979
}
980
980
)
981
981
}
982
- open func accountUrl(action: AccountManagementAction?) throws -> String? {
983
- return try FfiConverterOptionString.lift(
984
- try
985
- rustCallWithError(FfiConverterTypeClientError.lift) {
986
- uniffi_matrix_sdk_ffi_fn_method_client_account_url(self.uniffiClonePointer(),
987
- FfiConverterOptionTypeAccountManagementAction.lower(action),$0
988
- )
989
- }
982
+ open func accountUrl(action: AccountManagementAction?) async throws -> String? {
983
+ return try await uniffiRustCallAsync(
984
+ rustFutureFunc: {
985
+ uniffi_matrix_sdk_ffi_fn_method_client_account_url(
986
+ self.uniffiClonePointer(),
987
+ FfiConverterOptionTypeAccountManagementAction.lower(action)
988
+ )
989
+ },
990
+ pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,
991
+ completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,
992
+ freeFunc: ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,
993
+ liftFunc: FfiConverterOptionString.lift,
994
+ errorHandler: FfiConverterTypeClientError.lift
990
995
)
991
996
}
997
+
998
+
992
999
open func avatarUrl() throws -> String? {
993
1000
return try FfiConverterOptionString.lift(
994
1001
try
@@ -14117,6 +14124,8 @@ public enum AccountManagementAction {
14117
14124
)
14118
14125
case sessionEnd(deviceId: String
14119
14126
)
14127
+ case accountDeactivate
14128
+ case crossSigningReset
14120
14129
}
14121
14130
14122
14131
@@ -14137,6 +14146,10 @@ public struct FfiConverterTypeAccountManagementAction: FfiConverterRustBuffer {
14137
14146
case 4: return .sessionEnd(deviceId: try FfiConverterString.read(from: &buf)
14138
14147
)
14139
14148
14149
+ case 5: return .accountDeactivate
14150
+
14151
+ case 6: return .crossSigningReset
14152
+
14140
14153
default: throw UniffiInternalError.unexpectedEnumCase
14141
14154
}
14142
14155
}
@@ -14162,6 +14175,14 @@ public struct FfiConverterTypeAccountManagementAction: FfiConverterRustBuffer {
14162
14175
writeInt(&buf, Int32(4))
14163
14176
FfiConverterString.write(deviceId, into: &buf)
14164
14177
14178
+
14179
+ case .accountDeactivate:
14180
+ writeInt(&buf, Int32(5))
14181
+
14182
+
14183
+ case .crossSigningReset:
14184
+ writeInt(&buf, Int32(6))
14185
+
14165
14186
}
14166
14187
}
14167
14188
}
@@ -23957,7 +23978,7 @@ private var initializationResult: InitializationResult {
23957
23978
if (uniffi_matrix_sdk_ffi_checksum_method_client_account_data() != 42952) {
23958
23979
return InitializationResult.apiChecksumMismatch
23959
23980
}
23960
- if (uniffi_matrix_sdk_ffi_checksum_method_client_account_url() != 54235 ) {
23981
+ if (uniffi_matrix_sdk_ffi_checksum_method_client_account_url() != 12497 ) {
23961
23982
return InitializationResult.apiChecksumMismatch
23962
23983
}
23963
23984
if (uniffi_matrix_sdk_ffi_checksum_method_client_avatar_url() != 18456) {
0 commit comments