@@ -2169,6 +2169,8 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(
2169
2169
2170
2170
2171
2171
2172
+
2173
+
2172
2174
2173
2175
2174
2176
@@ -3139,6 +3141,8 @@ internal interface UniffiLib : Library {
3139
3141
): Unit
3140
3142
fun uniffi_matrix_sdk_ffi_fn_func_content_without_relation_from_message(`message`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
3141
3143
): Pointer
3144
+ fun uniffi_matrix_sdk_ffi_fn_func_create_caption_edit(`caption`: RustBuffer.ByValue,`formattedCaption`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
3145
+ ): RustBuffer.ByValue
3142
3146
fun uniffi_matrix_sdk_ffi_fn_func_gen_transaction_id(uniffi_out_err: UniffiRustCallStatus,
3143
3147
): RustBuffer.ByValue
3144
3148
fun uniffi_matrix_sdk_ffi_fn_func_generate_webview_url(`widgetSettings`: RustBuffer.ByValue,`room`: Pointer,`props`: RustBuffer.ByValue,
@@ -3297,6 +3301,8 @@ internal interface UniffiLib : Library {
3297
3301
): Unit
3298
3302
fun uniffi_matrix_sdk_ffi_checksum_func_content_without_relation_from_message(
3299
3303
): Short
3304
+ fun uniffi_matrix_sdk_ffi_checksum_func_create_caption_edit(
3305
+ ): Short
3300
3306
fun uniffi_matrix_sdk_ffi_checksum_func_gen_transaction_id(
3301
3307
): Short
3302
3308
fun uniffi_matrix_sdk_ffi_checksum_func_generate_webview_url(
@@ -4137,6 +4143,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
4137
4143
if (lib.uniffi_matrix_sdk_ffi_checksum_func_content_without_relation_from_message() != 1366.toShort()) {
4138
4144
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4139
4145
}
4146
+ if (lib.uniffi_matrix_sdk_ffi_checksum_func_create_caption_edit() != 49747.toShort()) {
4147
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4148
+ }
4140
4149
if (lib.uniffi_matrix_sdk_ffi_checksum_func_gen_transaction_id() != 15808.toShort()) {
4141
4150
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4142
4151
}
@@ -25037,9 +25046,13 @@ data class RoomInfo (
25037
25046
*/
25038
25047
var `numUnreadMentions`: kotlin.ULong,
25039
25048
/**
25040
- * The currently pinned event ids
25049
+ * The currently pinned event ids.
25050
+ */
25051
+ var `pinnedEventIds`: List<kotlin.String>,
25052
+ /**
25053
+ * The join rule for this room, if known.
25041
25054
*/
25042
- var `pinnedEventIds `: List<kotlin.String>
25055
+ var `joinRule `: JoinRule?
25043
25056
) {
25044
25057
25045
25058
companion object
@@ -25078,6 +25091,7 @@ public object FfiConverterTypeRoomInfo: FfiConverterRustBuffer<RoomInfo> {
25078
25091
FfiConverterULong.read(buf),
25079
25092
FfiConverterULong.read(buf),
25080
25093
FfiConverterSequenceString.read(buf),
25094
+ FfiConverterOptionalTypeJoinRule.read(buf),
25081
25095
)
25082
25096
}
25083
25097
@@ -25111,7 +25125,8 @@ public object FfiConverterTypeRoomInfo: FfiConverterRustBuffer<RoomInfo> {
25111
25125
FfiConverterULong.allocationSize(value.`numUnreadMessages`) +
25112
25126
FfiConverterULong.allocationSize(value.`numUnreadNotifications`) +
25113
25127
FfiConverterULong.allocationSize(value.`numUnreadMentions`) +
25114
- FfiConverterSequenceString.allocationSize(value.`pinnedEventIds`)
25128
+ FfiConverterSequenceString.allocationSize(value.`pinnedEventIds`) +
25129
+ FfiConverterOptionalTypeJoinRule.allocationSize(value.`joinRule`)
25115
25130
)
25116
25131
25117
25132
override fun write(value: RoomInfo, buf: ByteBuffer) {
@@ -25145,6 +25160,7 @@ public object FfiConverterTypeRoomInfo: FfiConverterRustBuffer<RoomInfo> {
25145
25160
FfiConverterULong.write(value.`numUnreadNotifications`, buf)
25146
25161
FfiConverterULong.write(value.`numUnreadMentions`, buf)
25147
25162
FfiConverterSequenceString.write(value.`pinnedEventIds`, buf)
25163
+ FfiConverterOptionalTypeJoinRule.write(value.`joinRule`, buf)
25148
25164
}
25149
25165
}
25150
25166
@@ -26632,6 +26648,15 @@ sealed class AllowRule {
26632
26648
companion object
26633
26649
}
26634
26650
26651
+ /**
26652
+ * A custom allow rule implementation, containing its JSON representation
26653
+ * as a `String`.
26654
+ */
26655
+ data class Custom(
26656
+ val `json`: kotlin.String) : AllowRule() {
26657
+ companion object
26658
+ }
26659
+
26635
26660
26636
26661
26637
26662
companion object
@@ -26643,6 +26668,9 @@ public object FfiConverterTypeAllowRule : FfiConverterRustBuffer<AllowRule>{
26643
26668
1 -> AllowRule.RoomMembership(
26644
26669
FfiConverterString.read(buf),
26645
26670
)
26671
+ 2 -> AllowRule.Custom(
26672
+ FfiConverterString.read(buf),
26673
+ )
26646
26674
else -> throw RuntimeException("invalid enum value, something is very wrong!!")
26647
26675
}
26648
26676
}
@@ -26655,6 +26683,13 @@ public object FfiConverterTypeAllowRule : FfiConverterRustBuffer<AllowRule>{
26655
26683
+ FfiConverterString.allocationSize(value.`roomId`)
26656
26684
)
26657
26685
}
26686
+ is AllowRule.Custom -> {
26687
+ // Add the size for the Int that specifies the variant plus the size needed for all fields
26688
+ (
26689
+ 4UL
26690
+ + FfiConverterString.allocationSize(value.`json`)
26691
+ )
26692
+ }
26658
26693
}
26659
26694
26660
26695
override fun write(value: AllowRule, buf: ByteBuffer) {
@@ -26664,6 +26699,11 @@ public object FfiConverterTypeAllowRule : FfiConverterRustBuffer<AllowRule>{
26664
26699
FfiConverterString.write(value.`roomId`, buf)
26665
26700
Unit
26666
26701
}
26702
+ is AllowRule.Custom -> {
26703
+ buf.putInt(2)
26704
+ FfiConverterString.write(value.`json`, buf)
26705
+ Unit
26706
+ }
26667
26707
}.let { /* this makes the `when` an expression, which ensures it is exhaustive */ }
26668
26708
}
26669
26709
}
@@ -38668,6 +38708,21 @@ public object FfiConverterMapStringSequenceString: FfiConverterRustBuffer<Map<ko
38668
38708
)
38669
38709
}
38670
38710
38711
+
38712
+ /**
38713
+ * Create a caption edit.
38714
+ *
38715
+ * If no `formatted_caption` is provided, then it's assumed the `caption`
38716
+ * represents valid Markdown that can be used as the formatted caption.
38717
+ */ fun `createCaptionEdit`(`caption`: kotlin.String?, `formattedCaption`: FormattedBody?): EditedContent {
38718
+ return FfiConverterTypeEditedContent.lift(
38719
+ uniffiRustCall() { _status ->
38720
+ UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_func_create_caption_edit(
38721
+ FfiConverterOptionalString.lower(`caption`),FfiConverterOptionalTypeFormattedBody.lower(`formattedCaption`),_status)
38722
+ }
38723
+ )
38724
+ }
38725
+
38671
38726
fun `genTransactionId`(): kotlin.String {
38672
38727
return FfiConverterString.lift(
38673
38728
uniffiRustCall() { _status ->
0 commit comments