@@ -1294,7 +1294,7 @@ public protocol ClientProtocol: AnyObject, Sendable {
12941294 func setPusher(identifiers: PusherIdentifiers, kind: PusherKind, appDisplayName: String, deviceDisplayName: String, profileTag: String?, lang: String) async throws
12951295
12961296 /**
1297- * Sets the [UnableToDecryptDelegate] which will inform about UTDs.
1297+ * Sets the [` UnableToDecryptDelegate` ] which will inform about UTDs.
12981298 * Returns an error if the delegate was already set.
12991299 */
13001300 func setUtdDelegate(utdDelegate: UnableToDecryptDelegate) async throws
@@ -2973,7 +2973,7 @@ open func setPusher(identifiers: PusherIdentifiers, kind: PusherKind, appDisplay
29732973}
29742974
29752975 /**
2976- * Sets the [UnableToDecryptDelegate] which will inform about UTDs.
2976+ * Sets the [` UnableToDecryptDelegate` ] which will inform about UTDs.
29772977 * Returns an error if the delegate was already set.
29782978 */
29792979open func setUtdDelegate(utdDelegate: UnableToDecryptDelegate)async throws {
@@ -38821,8 +38821,20 @@ public func FfiConverterCallbackInterfaceCallDeclineListener_lower(_ v: CallDecl
3882138821
3882238822public protocol ClientDelegate: AnyObject, Sendable {
3882338823
38824+ /**
38825+ * A callback invoked whenever the SDK runs into an unknown token error.
38826+ */
3882438827 func didReceiveAuthError(isSoftLogout: Bool)
3882538828
38829+ /**
38830+ * A callback invoked when a background task registered with the client's
38831+ * task monitor encounters an error.
38832+ *
38833+ * Can default to an empty implementation, if the embedder doesn't care
38834+ * about handling background jobs errors.
38835+ */
38836+ func onBackgroundTaskErrorReport(taskName: String, error: BackgroundTaskFailureReason)
38837+
3882638838}
3882738839
3882838840
@@ -38866,6 +38878,32 @@ fileprivate struct UniffiCallbackInterfaceClientDelegate {
3886638878 }
3886738879
3886838880
38881+ let writeReturn = { () }
38882+ uniffiTraitInterfaceCall(
38883+ callStatus: uniffiCallStatus,
38884+ makeCall: makeCall,
38885+ writeReturn: writeReturn
38886+ )
38887+ },
38888+ onBackgroundTaskErrorReport: { (
38889+ uniffiHandle: UInt64,
38890+ taskName: RustBuffer,
38891+ error: RustBuffer,
38892+ uniffiOutReturn: UnsafeMutableRawPointer,
38893+ uniffiCallStatus: UnsafeMutablePointer<RustCallStatus>
38894+ ) in
38895+ let makeCall = {
38896+ () throws -> () in
38897+ guard let uniffiObj = try? FfiConverterCallbackInterfaceClientDelegate.handleMap.get(handle: uniffiHandle) else {
38898+ throw UniffiInternalError.unexpectedStaleHandle
38899+ }
38900+ return uniffiObj.onBackgroundTaskErrorReport(
38901+ taskName: try FfiConverterString.lift(taskName),
38902+ error: try FfiConverterTypeBackgroundTaskFailureReason_lift(error)
38903+ )
38904+ }
38905+
38906+
3886938907 let writeReturn = { () }
3887038908 uniffiTraitInterfaceCall(
3887138909 callStatus: uniffiCallStatus,
@@ -47837,7 +47875,7 @@ private let initializationResult: InitializationResult = {
4783747875 if (uniffi_matrix_sdk_ffi_checksum_method_client_set_pusher() != 51438) {
4783847876 return InitializationResult.apiChecksumMismatch
4783947877 }
47840- if (uniffi_matrix_sdk_ffi_checksum_method_client_set_utd_delegate() != 38853 ) {
47878+ if (uniffi_matrix_sdk_ffi_checksum_method_client_set_utd_delegate() != 53527 ) {
4784147879 return InitializationResult.apiChecksumMismatch
4784247880 }
4784347881 if (uniffi_matrix_sdk_ffi_checksum_method_client_sliding_sync_version() != 55440) {
@@ -48992,7 +49030,10 @@ private let initializationResult: InitializationResult = {
4899249030 if (uniffi_matrix_sdk_ffi_checksum_method_accountdatalistener_on_change() != 13017) {
4899349031 return InitializationResult.apiChecksumMismatch
4899449032 }
48995- if (uniffi_matrix_sdk_ffi_checksum_method_clientdelegate_did_receive_auth_error() != 38563) {
49033+ if (uniffi_matrix_sdk_ffi_checksum_method_clientdelegate_did_receive_auth_error() != 55975) {
49034+ return InitializationResult.apiChecksumMismatch
49035+ }
49036+ if (uniffi_matrix_sdk_ffi_checksum_method_clientdelegate_on_background_task_error_report() != 53131) {
4899649037 return InitializationResult.apiChecksumMismatch
4899749038 }
4899849039 if (uniffi_matrix_sdk_ffi_checksum_method_clientsessiondelegate_retrieve_session_from_keychain() != 43233) {
@@ -49184,6 +49225,7 @@ private let initializationResult: InitializationResult = {
4918449225 uniffiCallbackInitVerificationStateListener()
4918549226 uniffiCallbackInitWidgetCapabilitiesProvider()
4918649227 uniffiEnsureMatrixSdkBaseInitialized()
49228+ uniffiEnsureMatrixSdkCommonInitialized()
4918749229 uniffiEnsureMatrixSdkCryptoInitialized()
4918849230 uniffiEnsureMatrixSdkInitialized()
4918949231 uniffiEnsureMatrixSdkUiInitialized()
0 commit comments