@@ -19857,6 +19857,10 @@ public struct SpaceRoom {
1985719857 * A list of room members considered to be heroes.
1985819858 */
1985919859 public var heroes: [RoomHero]?
19860+ /**
19861+ * The via parameters of the room.
19862+ */
19863+ public var via: [String]
1986019864
1986119865 // Default memberwise initializers are never public by default, so we
1986219866 // declare one manually.
@@ -19899,7 +19903,10 @@ public struct SpaceRoom {
1989919903 */state: Membership?,
1990019904 /**
1990119905 * A list of room members considered to be heroes.
19902- */heroes: [RoomHero]?) {
19906+ */heroes: [RoomHero]?,
19907+ /**
19908+ * The via parameters of the room.
19909+ */via: [String]) {
1990319910 self.roomId = roomId
1990419911 self.canonicalAlias = canonicalAlias
1990519912 self.name = name
@@ -19913,6 +19920,7 @@ public struct SpaceRoom {
1991319920 self.childrenCount = childrenCount
1991419921 self.state = state
1991519922 self.heroes = heroes
19923+ self.via = via
1991619924 }
1991719925}
1991819926
@@ -19959,6 +19967,9 @@ extension SpaceRoom: Equatable, Hashable {
1995919967 if lhs.heroes != rhs.heroes {
1996019968 return false
1996119969 }
19970+ if lhs.via != rhs.via {
19971+ return false
19972+ }
1996219973 return true
1996319974 }
1996419975
@@ -19976,6 +19987,7 @@ extension SpaceRoom: Equatable, Hashable {
1997619987 hasher.combine(childrenCount)
1997719988 hasher.combine(state)
1997819989 hasher.combine(heroes)
19990+ hasher.combine(via)
1997919991 }
1998019992}
1998119993
@@ -19996,7 +20008,8 @@ public struct FfiConverterTypeSpaceRoom: FfiConverterRustBuffer {
1999620008 guestCanJoin: FfiConverterBool.read(from: &buf),
1999720009 childrenCount: FfiConverterUInt64.read(from: &buf),
1999820010 state: FfiConverterOptionTypeMembership.read(from: &buf),
19999- heroes: FfiConverterOptionSequenceTypeRoomHero.read(from: &buf)
20011+ heroes: FfiConverterOptionSequenceTypeRoomHero.read(from: &buf),
20012+ via: FfiConverterSequenceString.read(from: &buf)
2000020013 )
2000120014 }
2000220015
@@ -20014,6 +20027,7 @@ public struct FfiConverterTypeSpaceRoom: FfiConverterRustBuffer {
2001420027 FfiConverterUInt64.write(value.childrenCount, into: &buf)
2001520028 FfiConverterOptionTypeMembership.write(value.state, into: &buf)
2001620029 FfiConverterOptionSequenceTypeRoomHero.write(value.heroes, into: &buf)
20030+ FfiConverterSequenceString.write(value.via, into: &buf)
2001720031 }
2001820032}
2001920033
@@ -25822,7 +25836,10 @@ public enum MessageLikeEventContent {
2582225836
2582325837 case callAnswer
2582425838 case callInvite
25825- case callNotify(notifyType: NotifyType
25839+ case rtcNotification(notificationType: RtcNotificationType,
25840+ /**
25841+ * The timestamp at which this notification is considered invalid.
25842+ */expirationTs: Timestamp
2582625843 )
2582725844 case callHangup
2582825845 case callCandidates
@@ -25857,7 +25874,7 @@ public struct FfiConverterTypeMessageLikeEventContent: FfiConverterRustBuffer {
2585725874
2585825875 case 2: return .callInvite
2585925876
25860- case 3: return .callNotify(notifyType : try FfiConverterTypeNotifyType .read(from: &buf)
25877+ case 3: return .rtcNotification(notificationType : try FfiConverterTypeRtcNotificationType.read(from: &buf), expirationTs: try FfiConverterTypeTimestamp .read(from: &buf)
2586125878 )
2586225879
2586325880 case 4: return .callHangup
@@ -25910,9 +25927,10 @@ public struct FfiConverterTypeMessageLikeEventContent: FfiConverterRustBuffer {
2591025927 writeInt(&buf, Int32(2))
2591125928
2591225929
25913- case let .callNotify(notifyType ):
25930+ case let .rtcNotification(notificationType,expirationTs ):
2591425931 writeInt(&buf, Int32(3))
25915- FfiConverterTypeNotifyType.write(notifyType, into: &buf)
25932+ FfiConverterTypeRtcNotificationType.write(notificationType, into: &buf)
25933+ FfiConverterTypeTimestamp.write(expirationTs, into: &buf)
2591625934
2591725935
2591825936 case .callHangup:
@@ -26005,7 +26023,7 @@ public enum MessageLikeEventType {
2600526023 case callCandidates
2600626024 case callHangup
2600726025 case callInvite
26008- case callNotify
26026+ case rtcNotification
2600926027 case keyVerificationAccept
2601026028 case keyVerificationCancel
2601126029 case keyVerificationDone
@@ -26042,7 +26060,7 @@ public struct FfiConverterTypeMessageLikeEventType: FfiConverterRustBuffer {
2604226060
2604326061 case 4: return .callInvite
2604426062
26045- case 5: return .callNotify
26063+ case 5: return .rtcNotification
2604626064
2604726065 case 6: return .keyVerificationAccept
2604826066
@@ -26104,7 +26122,7 @@ public struct FfiConverterTypeMessageLikeEventType: FfiConverterRustBuffer {
2610426122 writeInt(&buf, Int32(4))
2610526123
2610626124
26107- case .callNotify :
26125+ case .rtcNotification :
2610826126 writeInt(&buf, Int32(5))
2610926127
2611026128
@@ -26758,61 +26776,6 @@ public func FfiConverterTypeNotificationStatus_lower(_ value: NotificationStatus
2675826776
2675926777
2676026778
26761- // Note that we don't yet support `indirect` for enums.
26762- // See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion.
26763-
26764- public enum NotifyType {
26765-
26766- case ring
26767- case notify
26768- }
26769-
26770-
26771- public struct FfiConverterTypeNotifyType: FfiConverterRustBuffer {
26772- typealias SwiftType = NotifyType
26773-
26774- public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> NotifyType {
26775- let variant: Int32 = try readInt(&buf)
26776- switch variant {
26777-
26778- case 1: return .ring
26779-
26780- case 2: return .notify
26781-
26782- default: throw UniffiInternalError.unexpectedEnumCase
26783- }
26784- }
26785-
26786- public static func write(_ value: NotifyType, into buf: inout [UInt8]) {
26787- switch value {
26788-
26789-
26790- case .ring:
26791- writeInt(&buf, Int32(1))
26792-
26793-
26794- case .notify:
26795- writeInt(&buf, Int32(2))
26796-
26797- }
26798- }
26799- }
26800-
26801-
26802- public func FfiConverterTypeNotifyType_lift(_ buf: RustBuffer) throws -> NotifyType {
26803- return try FfiConverterTypeNotifyType.lift(buf)
26804- }
26805-
26806- public func FfiConverterTypeNotifyType_lower(_ value: NotifyType) -> RustBuffer {
26807- return FfiConverterTypeNotifyType.lower(value)
26808- }
26809-
26810-
26811-
26812- extension NotifyType: Equatable, Hashable {}
26813-
26814-
26815-
2681626779
2681726780public enum OidcError {
2681826781
@@ -30070,48 +30033,55 @@ extension RoomVisibility: Equatable, Hashable {}
3007030033// Note that we don't yet support `indirect` for enums.
3007130034// See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion.
3007230035
30073- public enum RtcApplicationType {
30036+ public enum RtcNotificationType {
3007430037
30075- case call
30038+ case ring
30039+ case notification
3007630040}
3007730041
3007830042
30079- public struct FfiConverterTypeRtcApplicationType : FfiConverterRustBuffer {
30080- typealias SwiftType = RtcApplicationType
30043+ public struct FfiConverterTypeRtcNotificationType : FfiConverterRustBuffer {
30044+ typealias SwiftType = RtcNotificationType
3008130045
30082- public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> RtcApplicationType {
30046+ public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> RtcNotificationType {
3008330047 let variant: Int32 = try readInt(&buf)
3008430048 switch variant {
3008530049
30086- case 1: return .call
30050+ case 1: return .ring
30051+
30052+ case 2: return .notification
3008730053
3008830054 default: throw UniffiInternalError.unexpectedEnumCase
3008930055 }
3009030056 }
3009130057
30092- public static func write(_ value: RtcApplicationType , into buf: inout [UInt8]) {
30058+ public static func write(_ value: RtcNotificationType , into buf: inout [UInt8]) {
3009330059 switch value {
3009430060
3009530061
30096- case .call :
30062+ case .ring :
3009730063 writeInt(&buf, Int32(1))
3009830064
30065+
30066+ case .notification:
30067+ writeInt(&buf, Int32(2))
30068+
3009930069 }
3010030070 }
3010130071}
3010230072
3010330073
30104- public func FfiConverterTypeRtcApplicationType_lift (_ buf: RustBuffer) throws -> RtcApplicationType {
30105- return try FfiConverterTypeRtcApplicationType .lift(buf)
30074+ public func FfiConverterTypeRtcNotificationType_lift (_ buf: RustBuffer) throws -> RtcNotificationType {
30075+ return try FfiConverterTypeRtcNotificationType .lift(buf)
3010630076}
3010730077
30108- public func FfiConverterTypeRtcApplicationType_lower (_ value: RtcApplicationType ) -> RustBuffer {
30109- return FfiConverterTypeRtcApplicationType .lower(value)
30078+ public func FfiConverterTypeRtcNotificationType_lower (_ value: RtcNotificationType ) -> RustBuffer {
30079+ return FfiConverterTypeRtcNotificationType .lower(value)
3011030080}
3011130081
3011230082
3011330083
30114- extension RtcApplicationType : Equatable, Hashable {}
30084+ extension RtcNotificationType : Equatable, Hashable {}
3011530085
3011630086
3011730087
@@ -31756,7 +31726,7 @@ public enum TimelineItemContent {
3175631726 case msgLike(content: MsgLikeContent
3175731727 )
3175831728 case callInvite
31759- case callNotify
31729+ case rtcNotification
3176031730 case roomMembership(userId: String, userDisplayName: String?, change: MembershipChange?, reason: String?
3176131731 )
3176231732 case profileChange(displayName: String?, prevDisplayName: String?, avatarUrl: String?, prevAvatarUrl: String?
@@ -31782,7 +31752,7 @@ public struct FfiConverterTypeTimelineItemContent: FfiConverterRustBuffer {
3178231752
3178331753 case 2: return .callInvite
3178431754
31785- case 3: return .callNotify
31755+ case 3: return .rtcNotification
3178631756
3178731757 case 4: return .roomMembership(userId: try FfiConverterString.read(from: &buf), userDisplayName: try FfiConverterOptionString.read(from: &buf), change: try FfiConverterOptionTypeMembershipChange.read(from: &buf), reason: try FfiConverterOptionString.read(from: &buf)
3178831758 )
@@ -31816,7 +31786,7 @@ public struct FfiConverterTypeTimelineItemContent: FfiConverterRustBuffer {
3181631786 writeInt(&buf, Int32(2))
3181731787
3181831788
31819- case .callNotify :
31789+ case .rtcNotification :
3182031790 writeInt(&buf, Int32(3))
3182131791
3182231792
0 commit comments