@@ -665,6 +665,8 @@ internal interface _UniFFILib : Library {
665665 ): RustBuffer.ByValue
666666 fun uniffi_matrix_sdk_ffi_fn_method_eventtimelineitem_timestamp(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
667667 ): Long
668+ fun uniffi_matrix_sdk_ffi_fn_method_eventtimelineitem_transaction_id(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
669+ ): RustBuffer.ByValue
668670 fun uniffi_matrix_sdk_ffi_fn_method_eventtimelineitem_unique_identifier(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
669671 ): RustBuffer.ByValue
670672 fun uniffi_matrix_sdk_ffi_fn_free_homeserverlogindetails(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
@@ -761,6 +763,8 @@ internal interface _UniFFILib : Library {
761763 ): Unit
762764 fun uniffi_matrix_sdk_ffi_fn_method_room_retry_decryption(`ptr`: Pointer,`sessionIds`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus,
763765 ): Unit
766+ fun uniffi_matrix_sdk_ffi_fn_method_room_retry_send(`ptr`: Pointer,`txnId`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus,
767+ ): Unit
764768 fun uniffi_matrix_sdk_ffi_fn_method_room_send(`ptr`: Pointer,`msg`: Pointer,`txnId`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus,
765769 ): Unit
766770 fun uniffi_matrix_sdk_ffi_fn_method_room_send_audio(`ptr`: Pointer,`url`: RustBuffer.ByValue,`audioInfo`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus,
@@ -833,7 +837,7 @@ internal interface _UniFFILib : Library {
833837 ): Pointer
834838 fun uniffi_matrix_sdk_ffi_fn_method_slidingsyncbuilder_enable_caching(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
835839 ): Pointer
836- fun uniffi_matrix_sdk_ffi_fn_method_slidingsyncbuilder_homeserver (`ptr`: Pointer,`url`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus,
840+ fun uniffi_matrix_sdk_ffi_fn_method_slidingsyncbuilder_sliding_sync_proxy (`ptr`: Pointer,`url`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus,
837841 ): Pointer
838842 fun uniffi_matrix_sdk_ffi_fn_method_slidingsyncbuilder_without_account_data_extension(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
839843 ): Pointer
@@ -1185,6 +1189,8 @@ internal interface _UniFFILib : Library {
11851189 ): Short
11861190 fun uniffi_matrix_sdk_ffi_checksum_method_eventtimelineitem_timestamp(
11871191 ): Short
1192+ fun uniffi_matrix_sdk_ffi_checksum_method_eventtimelineitem_transaction_id(
1193+ ): Short
11881194 fun uniffi_matrix_sdk_ffi_checksum_method_eventtimelineitem_unique_identifier(
11891195 ): Short
11901196 fun uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_authentication_issuer(
@@ -1273,6 +1279,8 @@ internal interface _UniFFILib : Library {
12731279 ): Short
12741280 fun uniffi_matrix_sdk_ffi_checksum_method_room_retry_decryption(
12751281 ): Short
1282+ fun uniffi_matrix_sdk_ffi_checksum_method_room_retry_send(
1283+ ): Short
12761284 fun uniffi_matrix_sdk_ffi_checksum_method_room_send(
12771285 ): Short
12781286 fun uniffi_matrix_sdk_ffi_checksum_method_room_send_audio(
@@ -1339,7 +1347,7 @@ internal interface _UniFFILib : Library {
13391347 ): Short
13401348 fun uniffi_matrix_sdk_ffi_checksum_method_slidingsyncbuilder_enable_caching(
13411349 ): Short
1342- fun uniffi_matrix_sdk_ffi_checksum_method_slidingsyncbuilder_homeserver (
1350+ fun uniffi_matrix_sdk_ffi_checksum_method_slidingsyncbuilder_sliding_sync_proxy (
13431351 ): Short
13441352 fun uniffi_matrix_sdk_ffi_checksum_method_slidingsyncbuilder_without_account_data_extension(
13451353 ): Short
@@ -1798,6 +1806,9 @@ private fun uniffiCheckApiChecksums(lib: _UniFFILib) {
17981806 if (lib.uniffi_matrix_sdk_ffi_checksum_method_eventtimelineitem_timestamp() != 40228.toShort()) {
17991807 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
18001808 }
1809+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_eventtimelineitem_transaction_id() != 43677.toShort()) {
1810+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
1811+ }
18011812 if (lib.uniffi_matrix_sdk_ffi_checksum_method_eventtimelineitem_unique_identifier() != 18285.toShort()) {
18021813 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
18031814 }
@@ -1930,6 +1941,9 @@ private fun uniffiCheckApiChecksums(lib: _UniFFILib) {
19301941 if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_retry_decryption() != 17743.toShort()) {
19311942 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
19321943 }
1944+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_retry_send() != 33250.toShort()) {
1945+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
1946+ }
19331947 if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_send() != 60271.toShort()) {
19341948 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
19351949 }
@@ -2029,7 +2043,7 @@ private fun uniffiCheckApiChecksums(lib: _UniFFILib) {
20292043 if (lib.uniffi_matrix_sdk_ffi_checksum_method_slidingsyncbuilder_enable_caching() != 52585.toShort()) {
20302044 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
20312045 }
2032- if (lib.uniffi_matrix_sdk_ffi_checksum_method_slidingsyncbuilder_homeserver () != 62399 .toShort()) {
2046+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_slidingsyncbuilder_sliding_sync_proxy () != 53975 .toShort()) {
20332047 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
20342048 }
20352049 if (lib.uniffi_matrix_sdk_ffi_checksum_method_slidingsyncbuilder_without_account_data_extension() != 2317.toShort()) {
@@ -3201,6 +3215,7 @@ public interface EventTimelineItemInterface {
32013215 fun `sender`(): String
32023216 fun `senderProfile`(): ProfileDetails
32033217 fun `timestamp`(): ULong
3218+ fun `transactionId`(): String?
32043219 fun `uniqueIdentifier`(): String
32053220}
32063221
@@ -3365,6 +3380,17 @@ class EventTimelineItem(
33653380 FfiConverterULong.lift(it)
33663381 }
33673382
3383+ override fun `transactionId`(): String? =
3384+ callWithPointer {
3385+ rustCall() { _status ->
3386+ _UniFFILib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_eventtimelineitem_transaction_id(it,
3387+
3388+ _status)
3389+ }
3390+ }.let {
3391+ FfiConverterOptionalString.lift(it)
3392+ }
3393+
33683394 override fun `uniqueIdentifier`(): String =
33693395 callWithPointer {
33703396 rustCall() { _status ->
@@ -3779,6 +3805,7 @@ public interface RoomInterface {
37793805 fun `removeTimeline`()@Throws(ClientException::class)
37803806 fun `reportContent`(`eventId`: String, `score`: Int?, `reason`: String?)
37813807 fun `retryDecryption`(`sessionIds`: List<String>)
3808+ fun `retrySend`(`txnId`: String)
37823809 fun `send`(`msg`: RoomMessageEventContent, `txnId`: String?)@Throws(RoomException::class)
37833810 fun `sendAudio`(`url`: String, `audioInfo`: AudioInfo)@Throws(RoomException::class)
37843811 fun `sendFile`(`url`: String, `fileInfo`: FileInfo)@Throws(RoomException::class)
@@ -4200,6 +4227,16 @@ class Room(
42004227 }
42014228
42024229
4230+ override fun `retrySend`(`txnId`: String) =
4231+ callWithPointer {
4232+ rustCall() { _status ->
4233+ _UniFFILib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_room_retry_send(it,
4234+ FfiConverterString.lower(`txnId`),
4235+ _status)
4236+ }
4237+ }
4238+
4239+
42034240 override fun `send`(`msg`: RoomMessageEventContent, `txnId`: String?) =
42044241 callWithPointer {
42054242 rustCall() { _status ->
@@ -5186,7 +5223,7 @@ public interface SlidingSyncBuilderInterface {
51865223 fun `addList`(`listBuilder`: SlidingSyncListBuilder): SlidingSyncBuilder@Throws(ClientException::class)
51875224 fun `build`(): SlidingSync@Throws(ClientException::class)
51885225 fun `enableCaching`(): SlidingSyncBuilder@Throws(ClientException::class)
5189- fun `homeserver `(`url`: String): SlidingSyncBuilder
5226+ fun `slidingSyncProxy `(`url`: String): SlidingSyncBuilder
51905227 fun `withoutAccountDataExtension`(): SlidingSyncBuilder
51915228 fun `withoutE2eeExtension`(): SlidingSyncBuilder
51925229 fun `withoutReceiptExtension`(): SlidingSyncBuilder
@@ -5262,10 +5299,10 @@ class SlidingSyncBuilder(
52625299 }
52635300
52645301
5265- @Throws(ClientException::class)override fun `homeserver `(`url`: String): SlidingSyncBuilder =
5302+ @Throws(ClientException::class)override fun `slidingSyncProxy `(`url`: String): SlidingSyncBuilder =
52665303 callWithPointer {
52675304 rustCallWithError(ClientException) { _status ->
5268- _UniFFILib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_slidingsyncbuilder_homeserver (it,
5305+ _UniFFILib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_slidingsyncbuilder_sliding_sync_proxy (it,
52695306 FfiConverterString.lower(`url`),
52705307 _status)
52715308}
@@ -9077,11 +9114,13 @@ public object FfiConverterTypeOtherState : FfiConverterRustBuffer<OtherState>{
90779114
90789115sealed class PaginationOptions {
90799116 data class SingleRequest(
9080- val `eventLimit`: UShort
9117+ val `eventLimit`: UShort,
9118+ val `waitForToken`: Boolean
90819119 ) : PaginationOptions()
90829120 data class UntilNumItems(
90839121 val `eventLimit`: UShort,
9084- val `items`: UShort
9122+ val `items`: UShort,
9123+ val `waitForToken`: Boolean
90859124 ) : PaginationOptions()
90869125
90879126
@@ -9093,10 +9132,12 @@ public object FfiConverterTypePaginationOptions : FfiConverterRustBuffer<Paginat
90939132 return when(buf.getInt()) {
90949133 1 -> PaginationOptions.SingleRequest(
90959134 FfiConverterUShort.read(buf),
9135+ FfiConverterBoolean.read(buf),
90969136 )
90979137 2 -> PaginationOptions.UntilNumItems(
90989138 FfiConverterUShort.read(buf),
90999139 FfiConverterUShort.read(buf),
9140+ FfiConverterBoolean.read(buf),
91009141 )
91019142 else -> throw RuntimeException("invalid enum value, something is very wrong!!")
91029143 }
@@ -9108,6 +9149,7 @@ public object FfiConverterTypePaginationOptions : FfiConverterRustBuffer<Paginat
91089149 (
91099150 4
91109151 + FfiConverterUShort.allocationSize(value.`eventLimit`)
9152+ + FfiConverterBoolean.allocationSize(value.`waitForToken`)
91119153 )
91129154 }
91139155 is PaginationOptions.UntilNumItems -> {
@@ -9116,6 +9158,7 @@ public object FfiConverterTypePaginationOptions : FfiConverterRustBuffer<Paginat
91169158 4
91179159 + FfiConverterUShort.allocationSize(value.`eventLimit`)
91189160 + FfiConverterUShort.allocationSize(value.`items`)
9161+ + FfiConverterBoolean.allocationSize(value.`waitForToken`)
91199162 )
91209163 }
91219164 }
@@ -9125,12 +9168,14 @@ public object FfiConverterTypePaginationOptions : FfiConverterRustBuffer<Paginat
91259168 is PaginationOptions.SingleRequest -> {
91269169 buf.putInt(1)
91279170 FfiConverterUShort.write(value.`eventLimit`, buf)
9171+ FfiConverterBoolean.write(value.`waitForToken`, buf)
91289172 Unit
91299173 }
91309174 is PaginationOptions.UntilNumItems -> {
91319175 buf.putInt(2)
91329176 FfiConverterUShort.write(value.`eventLimit`, buf)
91339177 FfiConverterUShort.write(value.`items`, buf)
9178+ FfiConverterBoolean.write(value.`waitForToken`, buf)
91349179 Unit
91359180 }
91369181 }.let { /* this makes the `when` an expression, which ensures it is exhaustive */ }
0 commit comments