@@ -48,19 +48,25 @@ import uniffi.matrix_sdk.FfiConverterTypeRoomPowerLevelChanges
48
48
import uniffi.matrix_sdk.OidcAuthorizationData
49
49
import uniffi.matrix_sdk.RoomMemberRole
50
50
import uniffi.matrix_sdk.RoomPowerLevelChanges
51
+ import uniffi.matrix_sdk_common.FfiConverterTypeShieldStateCode
52
+ import uniffi.matrix_sdk_common.ShieldStateCode
51
53
import uniffi.matrix_sdk_crypto.FfiConverterTypeUtdCause
52
54
import uniffi.matrix_sdk_crypto.UtdCause
53
55
import uniffi.matrix_sdk_ui.EventItemOrigin
54
56
import uniffi.matrix_sdk_ui.FfiConverterTypeEventItemOrigin
55
57
import uniffi.matrix_sdk_ui.FfiConverterTypeLiveBackPaginationStatus
58
+ import uniffi.matrix_sdk_ui.FfiConverterTypeRoomPinnedEventsChange
56
59
import uniffi.matrix_sdk_ui.LiveBackPaginationStatus
60
+ import uniffi.matrix_sdk_ui.RoomPinnedEventsChange
57
61
import uniffi.matrix_sdk.RustBuffer as RustBufferBackupDownloadStrategy
58
62
import uniffi.matrix_sdk.RustBuffer as RustBufferOidcAuthorizationData
59
63
import uniffi.matrix_sdk.RustBuffer as RustBufferRoomMemberRole
60
64
import uniffi.matrix_sdk.RustBuffer as RustBufferRoomPowerLevelChanges
65
+ import uniffi.matrix_sdk_common.RustBuffer as RustBufferShieldStateCode
61
66
import uniffi.matrix_sdk_crypto.RustBuffer as RustBufferUtdCause
62
67
import uniffi.matrix_sdk_ui.RustBuffer as RustBufferEventItemOrigin
63
68
import uniffi.matrix_sdk_ui.RustBuffer as RustBufferLiveBackPaginationStatus
69
+ import uniffi.matrix_sdk_ui.RustBuffer as RustBufferRoomPinnedEventsChange
64
70
65
71
// This is a helper for safely working with byte buffers returned from the Rust code.
66
72
// A rust-owned buffer is represented by its capacity, its current length, and a
@@ -27898,8 +27904,10 @@ sealed class OtherState {
27898
27904
companion object
27899
27905
}
27900
27906
27901
- object RoomPinnedEvents : OtherState()
27902
-
27907
+ data class RoomPinnedEvents(
27908
+ val `change`: RoomPinnedEventsChange) : OtherState() {
27909
+ companion object
27910
+ }
27903
27911
27904
27912
data class RoomPowerLevels(
27905
27913
val `users`: Map<kotlin.String, kotlin.Long>,
@@ -27958,7 +27966,9 @@ public object FfiConverterTypeOtherState : FfiConverterRustBuffer<OtherState>{
27958
27966
12 -> OtherState.RoomName(
27959
27967
FfiConverterOptionalString.read(buf),
27960
27968
)
27961
- 13 -> OtherState.RoomPinnedEvents
27969
+ 13 -> OtherState.RoomPinnedEvents(
27970
+ FfiConverterTypeRoomPinnedEventsChange.read(buf),
27971
+ )
27962
27972
14 -> OtherState.RoomPowerLevels(
27963
27973
FfiConverterMapStringLong.read(buf),
27964
27974
FfiConverterOptionalMapStringLong.read(buf),
@@ -28059,6 +28069,7 @@ public object FfiConverterTypeOtherState : FfiConverterRustBuffer<OtherState>{
28059
28069
// Add the size for the Int that specifies the variant plus the size needed for all fields
28060
28070
(
28061
28071
4UL
28072
+ + FfiConverterTypeRoomPinnedEventsChange.allocationSize(value.`change`)
28062
28073
)
28063
28074
}
28064
28075
is OtherState.RoomPowerLevels -> {
@@ -28170,6 +28181,7 @@ public object FfiConverterTypeOtherState : FfiConverterRustBuffer<OtherState>{
28170
28181
}
28171
28182
is OtherState.RoomPinnedEvents -> {
28172
28183
buf.putInt(13)
28184
+ FfiConverterTypeRoomPinnedEventsChange.write(value.`change`, buf)
28173
28185
Unit
28174
28186
}
28175
28187
is OtherState.RoomPowerLevels -> {
@@ -30455,6 +30467,7 @@ sealed class ShieldState {
30455
30467
* presented.
30456
30468
*/
30457
30469
data class Red(
30470
+ val `code`: ShieldStateCode,
30458
30471
val `message`: kotlin.String) : ShieldState() {
30459
30472
companion object
30460
30473
}
@@ -30464,6 +30477,7 @@ sealed class ShieldState {
30464
30477
* presented.
30465
30478
*/
30466
30479
data class Grey(
30480
+ val `code`: ShieldStateCode,
30467
30481
val `message`: kotlin.String) : ShieldState() {
30468
30482
companion object
30469
30483
}
@@ -30483,9 +30497,11 @@ public object FfiConverterTypeShieldState : FfiConverterRustBuffer<ShieldState>{
30483
30497
override fun read(buf: ByteBuffer): ShieldState {
30484
30498
return when(buf.getInt()) {
30485
30499
1 -> ShieldState.Red(
30500
+ FfiConverterTypeShieldStateCode.read(buf),
30486
30501
FfiConverterString.read(buf),
30487
30502
)
30488
30503
2 -> ShieldState.Grey(
30504
+ FfiConverterTypeShieldStateCode.read(buf),
30489
30505
FfiConverterString.read(buf),
30490
30506
)
30491
30507
3 -> ShieldState.None
@@ -30498,13 +30514,15 @@ public object FfiConverterTypeShieldState : FfiConverterRustBuffer<ShieldState>{
30498
30514
// Add the size for the Int that specifies the variant plus the size needed for all fields
30499
30515
(
30500
30516
4UL
30517
+ + FfiConverterTypeShieldStateCode.allocationSize(value.`code`)
30501
30518
+ FfiConverterString.allocationSize(value.`message`)
30502
30519
)
30503
30520
}
30504
30521
is ShieldState.Grey -> {
30505
30522
// Add the size for the Int that specifies the variant plus the size needed for all fields
30506
30523
(
30507
30524
4UL
30525
+ + FfiConverterTypeShieldStateCode.allocationSize(value.`code`)
30508
30526
+ FfiConverterString.allocationSize(value.`message`)
30509
30527
)
30510
30528
}
@@ -30520,11 +30538,13 @@ public object FfiConverterTypeShieldState : FfiConverterRustBuffer<ShieldState>{
30520
30538
when(value) {
30521
30539
is ShieldState.Red -> {
30522
30540
buf.putInt(1)
30541
+ FfiConverterTypeShieldStateCode.write(value.`code`, buf)
30523
30542
FfiConverterString.write(value.`message`, buf)
30524
30543
Unit
30525
30544
}
30526
30545
is ShieldState.Grey -> {
30527
30546
buf.putInt(2)
30547
+ FfiConverterTypeShieldStateCode.write(value.`code`, buf)
30528
30548
FfiConverterString.write(value.`message`, buf)
30529
30549
Unit
30530
30550
}
@@ -35548,6 +35568,14 @@ public object FfiConverterMapStringSequenceString: FfiConverterRustBuffer<Map<ko
35548
35568
35549
35569
35550
35570
35571
+
35572
+
35573
+
35574
+
35575
+
35576
+
35577
+
35578
+
35551
35579
35552
35580
35553
35581
0 commit comments