@@ -754,8 +754,8 @@ public protocol ClientProtocol : AnyObject {
754754    func getProfile(userId: String) async throws  -> UserProfile
755755
756756    /**
757-      * Gets the list of recently used emojis from the `io.element.recent_emoji` 
758-      * global account data.
757+      * Gets the list of recently used emojis from the
758+      * `io.element.recent_emoji`  global account data.
759759     */
760760    func getRecentEmojis() async throws  -> [RecentEmoji]
761761
@@ -1734,8 +1734,8 @@ open func getProfile(userId: String)async throws  -> UserProfile {
17341734}
17351735
17361736    /**
1737-      * Gets the list of recently used emojis from the `io.element.recent_emoji` 
1738-      * global account data.
1737+      * Gets the list of recently used emojis from the
1738+      * `io.element.recent_emoji`  global account data.
17391739     */
17401740open func getRecentEmojis()async throws  -> [RecentEmoji] {
17411741    return
@@ -3513,6 +3513,15 @@ public protocol EncryptionProtocol : AnyObject {
35133513
35143514    func enableRecovery(waitForBackupsToUpload: Bool, passphrase: String?, progressListener: EnableRecoveryProgressListener) async throws  -> String
35153515
3516+     /**
3517+      * Does the user have other devices that the current device can verify
3518+      * against?
3519+      *
3520+      * The device must be signed by the user's cross-signing key, must have an
3521+      * identity, and must not be a dehydrated device.
3522+      */
3523+     func hasDevicesToVerifyAgainst() async throws  -> Bool
3524+     
35163525    func isLastDevice() async throws  -> Bool
35173526
35183527    func recover(recoveryKey: String) async throws 
@@ -3744,6 +3753,30 @@ open func enableRecovery(waitForBackupsToUpload: Bool, passphrase: String?, prog
37443753        )
37453754}
37463755
3756+     /**
3757+      * Does the user have other devices that the current device can verify
3758+      * against?
3759+      *
3760+      * The device must be signed by the user's cross-signing key, must have an
3761+      * identity, and must not be a dehydrated device.
3762+      */
3763+ open func hasDevicesToVerifyAgainst()async throws  -> Bool {
3764+     return
3765+         try  await uniffiRustCallAsync(
3766+             rustFutureFunc: {
3767+                 uniffi_matrix_sdk_ffi_fn_method_encryption_has_devices_to_verify_against(
3768+                     self.uniffiClonePointer()
3769+                     
3770+                 )
3771+             },
3772+             pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_i8,
3773+             completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_i8,
3774+             freeFunc: ffi_matrix_sdk_ffi_rust_future_free_i8,
3775+             liftFunc: FfiConverterBool.lift,
3776+             errorHandler: FfiConverterTypeClientError.lift
3777+         )
3778+ }
3779+     
37473780open func isLastDevice()async throws  -> Bool {
37483781    return
37493782        try  await uniffiRustCallAsync(
@@ -6286,6 +6319,12 @@ public protocol RoomProtocol : AnyObject {
62866319     */
62876320    func loadComposerDraft(threadRoot: String?) async throws  -> ComposerDraft?
62886321
6322+     /**
6323+      * Either loads the event associated with the `event_id` from the event
6324+      * cache or fetches it from the homeserver.
6325+      */
6326+     func loadOrFetchEvent(eventId: String) async throws  -> TimelineEvent
6327+     
62896328    /**
62906329     * Mark a room as read, by attaching a read receipt on the latest event.
62916330     *
@@ -7314,6 +7353,27 @@ open func loadComposerDraft(threadRoot: String?)async throws  -> ComposerDraft?
73147353        )
73157354}
73167355
7356+     /**
7357+      * Either loads the event associated with the `event_id` from the event
7358+      * cache or fetches it from the homeserver.
7359+      */
7360+ open func loadOrFetchEvent(eventId: String)async throws  -> TimelineEvent {
7361+     return
7362+         try  await uniffiRustCallAsync(
7363+             rustFutureFunc: {
7364+                 uniffi_matrix_sdk_ffi_fn_method_room_load_or_fetch_event(
7365+                     self.uniffiClonePointer(),
7366+                     FfiConverterString.lower(eventId)
7367+                 )
7368+             },
7369+             pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_pointer,
7370+             completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_pointer,
7371+             freeFunc: ffi_matrix_sdk_ffi_rust_future_free_pointer,
7372+             liftFunc: FfiConverterTypeTimelineEvent.lift,
7373+             errorHandler: FfiConverterTypeClientError.lift
7374+         )
7375+ }
7376+     
73177377    /**
73187378     * Mark a room as read, by attaching a read receipt on the latest event.
73197379     *
@@ -13095,6 +13155,12 @@ public protocol TimelineEventProtocol : AnyObject {
1309513155
1309613156    func senderId()  -> String
1309713157
13158+     /**
13159+      * Returns the thread root event id for the event, if it's part of a
13160+      * thread.
13161+      */
13162+     func threadRootEventId()  -> String?
13163+     
1309813164    func timestamp()  -> Timestamp
1309913165
1310013166}
@@ -13159,6 +13225,17 @@ open func senderId() -> String {
1315913225    uniffi_matrix_sdk_ffi_fn_method_timelineevent_sender_id(self.uniffiClonePointer(),$0
1316013226    )
1316113227})
13228+ }
13229+     
13230+     /**
13231+      * Returns the thread root event id for the event, if it's part of a
13232+      * thread.
13233+      */
13234+ open func threadRootEventId() -> String? {
13235+     return try!  FfiConverterOptionString.lift(try! rustCall() {
13236+     uniffi_matrix_sdk_ffi_fn_method_timelineevent_thread_root_event_id(self.uniffiClonePointer(),$0
13237+     )
13238+ })
1316213239}
1316313240
1316413241open func timestamp() -> Timestamp {
@@ -26074,6 +26151,8 @@ public enum MessageLikeEventType {
2607426151    case unstablePollEnd
2607526152    case unstablePollResponse
2607626153    case unstablePollStart
26154+     case other(String
26155+     )
2607726156}
2607826157
2607926158
@@ -26130,6 +26209,9 @@ public struct FfiConverterTypeMessageLikeEventType: FfiConverterRustBuffer {
2613026209
2613126210        case 23: return .unstablePollStart
2613226211
26212+         case 24: return .other(try FfiConverterString.read(from: &buf)
26213+         )
26214+         
2613326215        default: throw UniffiInternalError.unexpectedEnumCase
2613426216        }
2613526217    }
@@ -26229,6 +26311,11 @@ public struct FfiConverterTypeMessageLikeEventType: FfiConverterRustBuffer {
2622926311        case .unstablePollStart:
2623026312            writeInt(&buf, Int32(23))
2623126313
26314+         
26315+         case let .other(v1):
26316+             writeInt(&buf, Int32(24))
26317+             FfiConverterString.write(v1, into: &buf)
26318+             
2623226319        }
2623326320    }
2623426321}
@@ -26416,6 +26503,11 @@ public enum MsgLikeKind {
2641626503     */
2641726504    case unableToDecrypt(msg: EncryptedMessage
2641826505    )
26506+     /**
26507+      * A custom message like event.
26508+      */
26509+     case other(eventType: MessageLikeEventType
26510+     )
2641926511}
2642026512
2642126513
@@ -26440,6 +26532,9 @@ public struct FfiConverterTypeMsgLikeKind: FfiConverterRustBuffer {
2644026532        case 5: return .unableToDecrypt(msg: try FfiConverterTypeEncryptedMessage.read(from: &buf)
2644126533        )
2644226534
26535+         case 6: return .other(eventType: try FfiConverterTypeMessageLikeEventType.read(from: &buf)
26536+         )
26537+         
2644326538        default: throw UniffiInternalError.unexpectedEnumCase
2644426539        }
2644526540    }
@@ -26479,6 +26574,11 @@ public struct FfiConverterTypeMsgLikeKind: FfiConverterRustBuffer {
2647926574            writeInt(&buf, Int32(5))
2648026575            FfiConverterTypeEncryptedMessage.write(msg, into: &buf)
2648126576
26577+         
26578+         case let .other(eventType):
26579+             writeInt(&buf, Int32(6))
26580+             FfiConverterTypeMessageLikeEventType.write(eventType, into: &buf)
26581+             
2648226582        }
2648326583    }
2648426584}
@@ -28909,6 +29009,7 @@ public enum RoomListEntriesDynamicFilterKind {
2890929009    case any(filters: [RoomListEntriesDynamicFilterKind]
2891029010    )
2891129011    case nonSpace
29012+     case space
2891229013    case nonLeft
2891329014    case joined
2891429015    case unread
@@ -28942,32 +29043,34 @@ public struct FfiConverterTypeRoomListEntriesDynamicFilterKind: FfiConverterRust
2894229043
2894329044        case 3: return .nonSpace
2894429045
28945-         case 4: return .nonLeft
29046+         case 4: return .space
29047+         
29048+         case 5: return .nonLeft
2894629049
28947-         case 5 : return .joined
29050+         case 6 : return .joined
2894829051
28949-         case 6 : return .unread
29052+         case 7 : return .unread
2895029053
28951-         case 7 : return .favourite
29054+         case 8 : return .favourite
2895229055
28953-         case 8 : return .lowPriority
29056+         case 9 : return .lowPriority
2895429057
28955-         case 9 : return .nonLowPriority
29058+         case 10 : return .nonLowPriority
2895629059
28957-         case 10 : return .invite
29060+         case 11 : return .invite
2895829061
28959-         case 11 : return .category(expect: try FfiConverterTypeRoomListFilterCategory.read(from: &buf)
29062+         case 12 : return .category(expect: try FfiConverterTypeRoomListFilterCategory.read(from: &buf)
2896029063        )
2896129064
28962-         case 12 : return .none
29065+         case 13 : return .none
2896329066
28964-         case 13 : return .normalizedMatchRoomName(pattern: try FfiConverterString.read(from: &buf)
29067+         case 14 : return .normalizedMatchRoomName(pattern: try FfiConverterString.read(from: &buf)
2896529068        )
2896629069
28967-         case 14 : return .fuzzyMatchRoomName(pattern: try FfiConverterString.read(from: &buf)
29070+         case 15 : return .fuzzyMatchRoomName(pattern: try FfiConverterString.read(from: &buf)
2896829071        )
2896929072
28970-         case 15 : return .deduplicateVersions
29073+         case 16 : return .deduplicateVersions
2897129074
2897229075        default: throw UniffiInternalError.unexpectedEnumCase
2897329076        }
@@ -28991,55 +29094,59 @@ public struct FfiConverterTypeRoomListEntriesDynamicFilterKind: FfiConverterRust
2899129094            writeInt(&buf, Int32(3))
2899229095
2899329096
28994-         case .nonLeft :
29097+         case .space :
2899529098            writeInt(&buf, Int32(4))
2899629099
2899729100
28998-         case .joined :
29101+         case .nonLeft :
2899929102            writeInt(&buf, Int32(5))
2900029103
2900129104
29002-         case .unread :
29105+         case .joined :
2900329106            writeInt(&buf, Int32(6))
2900429107
2900529108
29006-         case .favourite :
29109+         case .unread :
2900729110            writeInt(&buf, Int32(7))
2900829111
2900929112
29010-         case .lowPriority :
29113+         case .favourite :
2901129114            writeInt(&buf, Int32(8))
2901229115
2901329116
29014-         case .nonLowPriority :
29117+         case .lowPriority :
2901529118            writeInt(&buf, Int32(9))
2901629119
2901729120
29018-         case .invite :
29121+         case .nonLowPriority :
2901929122            writeInt(&buf, Int32(10))
2902029123
2902129124
29022-         case let .category(expect) :
29125+         case .invite :
2902329126            writeInt(&buf, Int32(11))
29127+         
29128+         
29129+         case let .category(expect):
29130+             writeInt(&buf, Int32(12))
2902429131            FfiConverterTypeRoomListFilterCategory.write(expect, into: &buf)
2902529132
2902629133
2902729134        case .none:
29028-             writeInt(&buf, Int32(12 ))
29135+             writeInt(&buf, Int32(13 ))
2902929136
2903029137
2903129138        case let .normalizedMatchRoomName(pattern):
29032-             writeInt(&buf, Int32(13 ))
29139+             writeInt(&buf, Int32(14 ))
2903329140            FfiConverterString.write(pattern, into: &buf)
2903429141
2903529142
2903629143        case let .fuzzyMatchRoomName(pattern):
29037-             writeInt(&buf, Int32(14 ))
29144+             writeInt(&buf, Int32(15 ))
2903829145            FfiConverterString.write(pattern, into: &buf)
2903929146
2904029147
2904129148        case .deduplicateVersions:
29042-             writeInt(&buf, Int32(15 ))
29149+             writeInt(&buf, Int32(16 ))
2904329150
2904429151        }
2904529152    }
@@ -38707,7 +38814,7 @@ private var initializationResult: InitializationResult = {
3870738814    if (uniffi_matrix_sdk_ffi_checksum_method_client_get_profile() != 60062) {
3870838815        return InitializationResult.apiChecksumMismatch
3870938816    }
38710-     if (uniffi_matrix_sdk_ffi_checksum_method_client_get_recent_emojis() != 64362 ) {
38817+     if (uniffi_matrix_sdk_ffi_checksum_method_client_get_recent_emojis() != 43545 ) {
3871138818        return InitializationResult.apiChecksumMismatch
3871238819    }
3871338820    if (uniffi_matrix_sdk_ffi_checksum_method_client_get_recently_visited_rooms() != 22399) {
@@ -38998,6 +39105,9 @@ private var initializationResult: InitializationResult = {
3899839105    if (uniffi_matrix_sdk_ffi_checksum_method_encryption_enable_recovery() != 64351) {
3899939106        return InitializationResult.apiChecksumMismatch
3900039107    }
39108+     if (uniffi_matrix_sdk_ffi_checksum_method_encryption_has_devices_to_verify_against() != 7561) {
39109+         return InitializationResult.apiChecksumMismatch
39110+     }
3900139111    if (uniffi_matrix_sdk_ffi_checksum_method_encryption_is_last_device() != 27955) {
3900239112        return InitializationResult.apiChecksumMismatch
3900339113    }
@@ -39298,6 +39408,9 @@ private var initializationResult: InitializationResult = {
3929839408    if (uniffi_matrix_sdk_ffi_checksum_method_room_load_composer_draft() != 62856) {
3929939409        return InitializationResult.apiChecksumMismatch
3930039410    }
39411+     if (uniffi_matrix_sdk_ffi_checksum_method_room_load_or_fetch_event() != 12703) {
39412+         return InitializationResult.apiChecksumMismatch
39413+     }
3930139414    if (uniffi_matrix_sdk_ffi_checksum_method_room_mark_as_read() != 57806) {
3930239415        return InitializationResult.apiChecksumMismatch
3930339416    }
@@ -39832,6 +39945,9 @@ private var initializationResult: InitializationResult = {
3983239945    if (uniffi_matrix_sdk_ffi_checksum_method_timelineevent_sender_id() != 18142) {
3983339946        return InitializationResult.apiChecksumMismatch
3983439947    }
39948+     if (uniffi_matrix_sdk_ffi_checksum_method_timelineevent_thread_root_event_id() != 56465) {
39949+         return InitializationResult.apiChecksumMismatch
39950+     }
3983539951    if (uniffi_matrix_sdk_ffi_checksum_method_timelineevent_timestamp() != 50929) {
3983639952        return InitializationResult.apiChecksumMismatch
3983739953    }
0 commit comments