@@ -2441,10 +2441,18 @@ external fun uniffi_matrix_sdk_ffi_checksum_method_spaceroomlist_subscribe_to_ro
24412441): Short
24422442external fun uniffi_matrix_sdk_ffi_checksum_method_spaceroomlist_subscribe_to_space_updates(
24432443): Short
2444+ external fun uniffi_matrix_sdk_ffi_checksum_method_spaceservice_add_child_to_space(
2445+ ): Short
2446+ external fun uniffi_matrix_sdk_ffi_checksum_method_spaceservice_editable_spaces(
2447+ ): Short
2448+ external fun uniffi_matrix_sdk_ffi_checksum_method_spaceservice_joined_parents_of_child(
2449+ ): Short
24442450external fun uniffi_matrix_sdk_ffi_checksum_method_spaceservice_joined_spaces(
24452451): Short
24462452external fun uniffi_matrix_sdk_ffi_checksum_method_spaceservice_leave_space(
24472453): Short
2454+ external fun uniffi_matrix_sdk_ffi_checksum_method_spaceservice_remove_child_from_space(
2455+ ): Short
24482456external fun uniffi_matrix_sdk_ffi_checksum_method_spaceservice_space_room_list(
24492457): Short
24502458external fun uniffi_matrix_sdk_ffi_checksum_method_spaceservice_subscribe_to_joined_spaces(
@@ -2609,6 +2617,8 @@ external fun uniffi_matrix_sdk_ffi_checksum_constructor_span_current(
26092617): Short
26102618external fun uniffi_matrix_sdk_ffi_checksum_constructor_span_new(
26112619): Short
2620+ external fun uniffi_matrix_sdk_ffi_checksum_constructor_span_new_bridge_span(
2621+ ): Short
26122622external fun uniffi_matrix_sdk_ffi_checksum_constructor_sqlitestorebuilder_new(
26132623): Short
26142624external fun uniffi_matrix_sdk_ffi_checksum_constructor_timelineeventtypefilter_exclude(
@@ -2771,11 +2781,11 @@ internal object UniffiLib {
27712781 uniffiCallbackInterfaceUnableToDecryptDelegate.register(this)
27722782 uniffiCallbackInterfaceVerificationStateListener.register(this)
27732783 uniffiCallbackInterfaceWidgetCapabilitiesProvider.register(this)
2774- uniffi.matrix_sdk.uniffiEnsureInitialized()
2775- uniffi.matrix_sdk_crypto.uniffiEnsureInitialized()
27762784 uniffi.matrix_sdk_ui.uniffiEnsureInitialized()
2777- uniffi.matrix_sdk_common .uniffiEnsureInitialized()
2785+ uniffi.matrix_sdk_crypto .uniffiEnsureInitialized()
27782786 uniffi.matrix_sdk_base.uniffiEnsureInitialized()
2787+ uniffi.matrix_sdk_common.uniffiEnsureInitialized()
2788+ uniffi.matrix_sdk.uniffiEnsureInitialized()
27792789
27802790 }
27812791 external fun uniffi_matrix_sdk_ffi_fn_clone_checkcodesender(`handle`: Long,uniffi_out_err: UniffiRustCallStatus,
@@ -3652,10 +3662,18 @@ external fun uniffi_matrix_sdk_ffi_fn_clone_spaceservice(`handle`: Long,uniffi_o
36523662): Long
36533663external fun uniffi_matrix_sdk_ffi_fn_free_spaceservice(`handle`: Long,uniffi_out_err: UniffiRustCallStatus,
36543664): Unit
3665+ external fun uniffi_matrix_sdk_ffi_fn_method_spaceservice_add_child_to_space(`ptr`: Long,`childId`: RustBuffer.ByValue,`spaceId`: RustBuffer.ByValue,
3666+ ): Long
3667+ external fun uniffi_matrix_sdk_ffi_fn_method_spaceservice_editable_spaces(`ptr`: Long,
3668+ ): Long
3669+ external fun uniffi_matrix_sdk_ffi_fn_method_spaceservice_joined_parents_of_child(`ptr`: Long,`childId`: RustBuffer.ByValue,
3670+ ): Long
36553671external fun uniffi_matrix_sdk_ffi_fn_method_spaceservice_joined_spaces(`ptr`: Long,
36563672): Long
36573673external fun uniffi_matrix_sdk_ffi_fn_method_spaceservice_leave_space(`ptr`: Long,`spaceId`: RustBuffer.ByValue,
36583674): Long
3675+ external fun uniffi_matrix_sdk_ffi_fn_method_spaceservice_remove_child_from_space(`ptr`: Long,`childId`: RustBuffer.ByValue,`spaceId`: RustBuffer.ByValue,
3676+ ): Long
36593677external fun uniffi_matrix_sdk_ffi_fn_method_spaceservice_space_room_list(`ptr`: Long,`spaceId`: RustBuffer.ByValue,
36603678): Long
36613679external fun uniffi_matrix_sdk_ffi_fn_method_spaceservice_subscribe_to_joined_spaces(`ptr`: Long,`listener`: Long,
@@ -3666,7 +3684,9 @@ external fun uniffi_matrix_sdk_ffi_fn_free_span(`handle`: Long,uniffi_out_err: U
36663684): Unit
36673685external fun uniffi_matrix_sdk_ffi_fn_constructor_span_current(uniffi_out_err: UniffiRustCallStatus,
36683686): Long
3669- external fun uniffi_matrix_sdk_ffi_fn_constructor_span_new(`file`: RustBuffer.ByValue,`line`: RustBuffer.ByValue,`level`: RustBuffer.ByValue,`target`: RustBuffer.ByValue,`name`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
3687+ external fun uniffi_matrix_sdk_ffi_fn_constructor_span_new(`file`: RustBuffer.ByValue,`line`: RustBuffer.ByValue,`level`: RustBuffer.ByValue,`target`: RustBuffer.ByValue,`name`: RustBuffer.ByValue,`bridgeTraceId`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
3688+ ): Long
3689+ external fun uniffi_matrix_sdk_ffi_fn_constructor_span_new_bridge_span(`target`: RustBuffer.ByValue,`parentTraceId`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
36703690): Long
36713691external fun uniffi_matrix_sdk_ffi_fn_method_span_enter(`ptr`: Long,uniffi_out_err: UniffiRustCallStatus,
36723692): Unit
@@ -5296,12 +5316,24 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
52965316 if (lib.uniffi_matrix_sdk_ffi_checksum_method_spaceroomlist_subscribe_to_space_updates() != 26327.toShort()) {
52975317 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
52985318 }
5319+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_spaceservice_add_child_to_space() != 31295.toShort()) {
5320+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5321+ }
5322+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_spaceservice_editable_spaces() != 62969.toShort()) {
5323+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5324+ }
5325+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_spaceservice_joined_parents_of_child() != 18724.toShort()) {
5326+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5327+ }
52995328 if (lib.uniffi_matrix_sdk_ffi_checksum_method_spaceservice_joined_spaces() != 54285.toShort()) {
53005329 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
53015330 }
53025331 if (lib.uniffi_matrix_sdk_ffi_checksum_method_spaceservice_leave_space() != 7949.toShort()) {
53035332 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
53045333 }
5334+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_spaceservice_remove_child_from_space() != 14438.toShort()) {
5335+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5336+ }
53055337 if (lib.uniffi_matrix_sdk_ffi_checksum_method_spaceservice_space_room_list() != 6768.toShort()) {
53065338 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
53075339 }
@@ -5545,7 +5577,10 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
55455577 if (lib.uniffi_matrix_sdk_ffi_checksum_constructor_span_current() != 53698.toShort()) {
55465578 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
55475579 }
5548- if (lib.uniffi_matrix_sdk_ffi_checksum_constructor_span_new() != 14105.toShort()) {
5580+ if (lib.uniffi_matrix_sdk_ffi_checksum_constructor_span_new() != 8957.toShort()) {
5581+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5582+ }
5583+ if (lib.uniffi_matrix_sdk_ffi_checksum_constructor_span_new_bridge_span() != 63835.toShort()) {
55495584 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
55505585 }
55515586 if (lib.uniffi_matrix_sdk_ffi_checksum_constructor_sqlitestorebuilder_new() != 51363.toShort()) {
@@ -24417,6 +24452,22 @@ public object FfiConverterTypeSpaceRoomList: FfiConverter<SpaceRoomList, Long> {
2441724452 */
2441824453public interface SpaceServiceInterface {
2441924454
24455+ suspend fun `addChildToSpace`(`childId`: kotlin.String, `spaceId`: kotlin.String)
24456+
24457+ /**
24458+ * Returns a flattened list containing all the spaces where the user has
24459+ * permission to send `m.space.child` state events.
24460+ *
24461+ * Note: Unlike [`Self::joined_spaces()`], this method does not recompute
24462+ * the space graph, nor does it notify subscribers about changes.
24463+ */
24464+ suspend fun `editableSpaces`(): List<SpaceRoom>
24465+
24466+ /**
24467+ * Returns all known direct-parents of a given space room ID.
24468+ */
24469+ suspend fun `joinedParentsOfChild`(`childId`: kotlin.String): List<SpaceRoom>
24470+
2442024471 /**
2442124472 * Returns a list of all the top-level joined spaces. It will eagerly
2442224473 * compute the latest version and also notify subscribers if there were
@@ -24435,6 +24486,8 @@ public interface SpaceServiceInterface {
2443524486 */
2443624487 suspend fun `leaveSpace`(`spaceId`: kotlin.String): LeaveSpaceHandle
2443724488
24489+ suspend fun `removeChildFromSpace`(`childId`: kotlin.String, `spaceId`: kotlin.String)
24490+
2443824491 /**
2443924492 * Returns a `SpaceRoomList` for the given space ID.
2444024493 */
@@ -24553,6 +24606,79 @@ open class SpaceService: Disposable, AutoCloseable, SpaceServiceInterface
2455324606 }
2455424607
2455524608
24609+ @Throws(ClientException::class)
24610+ @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
24611+ override suspend fun `addChildToSpace`(`childId`: kotlin.String, `spaceId`: kotlin.String) {
24612+ return uniffiRustCallAsync(
24613+ callWithHandle { uniffiHandle ->
24614+ UniffiLib.uniffi_matrix_sdk_ffi_fn_method_spaceservice_add_child_to_space(
24615+ uniffiHandle,
24616+ FfiConverterString.lower(`childId`),FfiConverterString.lower(`spaceId`),
24617+ )
24618+ },
24619+ { future, callback, continuation -> UniffiLib.ffi_matrix_sdk_ffi_rust_future_poll_void(future, callback, continuation) },
24620+ { future, continuation -> UniffiLib.ffi_matrix_sdk_ffi_rust_future_complete_void(future, continuation) },
24621+ { future -> UniffiLib.ffi_matrix_sdk_ffi_rust_future_free_void(future) },
24622+ // lift function
24623+ { Unit },
24624+
24625+ // Error FFI converter
24626+ ClientException.ErrorHandler,
24627+ )
24628+ }
24629+
24630+
24631+ /**
24632+ * Returns a flattened list containing all the spaces where the user has
24633+ * permission to send `m.space.child` state events.
24634+ *
24635+ * Note: Unlike [`Self::joined_spaces()`], this method does not recompute
24636+ * the space graph, nor does it notify subscribers about changes.
24637+ */
24638+ @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
24639+ override suspend fun `editableSpaces`() : List<SpaceRoom> {
24640+ return uniffiRustCallAsync(
24641+ callWithHandle { uniffiHandle ->
24642+ UniffiLib.uniffi_matrix_sdk_ffi_fn_method_spaceservice_editable_spaces(
24643+ uniffiHandle,
24644+
24645+ )
24646+ },
24647+ { future, callback, continuation -> UniffiLib.ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer(future, callback, continuation) },
24648+ { future, continuation -> UniffiLib.ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer(future, continuation) },
24649+ { future -> UniffiLib.ffi_matrix_sdk_ffi_rust_future_free_rust_buffer(future) },
24650+ // lift function
24651+ { FfiConverterSequenceTypeSpaceRoom.lift(it) },
24652+ // Error FFI converter
24653+ UniffiNullRustCallStatusErrorHandler,
24654+ )
24655+ }
24656+
24657+
24658+ /**
24659+ * Returns all known direct-parents of a given space room ID.
24660+ */
24661+ @Throws(ClientException::class)
24662+ @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
24663+ override suspend fun `joinedParentsOfChild`(`childId`: kotlin.String) : List<SpaceRoom> {
24664+ return uniffiRustCallAsync(
24665+ callWithHandle { uniffiHandle ->
24666+ UniffiLib.uniffi_matrix_sdk_ffi_fn_method_spaceservice_joined_parents_of_child(
24667+ uniffiHandle,
24668+ FfiConverterString.lower(`childId`),
24669+ )
24670+ },
24671+ { future, callback, continuation -> UniffiLib.ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer(future, callback, continuation) },
24672+ { future, continuation -> UniffiLib.ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer(future, continuation) },
24673+ { future -> UniffiLib.ffi_matrix_sdk_ffi_rust_future_free_rust_buffer(future) },
24674+ // lift function
24675+ { FfiConverterSequenceTypeSpaceRoom.lift(it) },
24676+ // Error FFI converter
24677+ ClientException.ErrorHandler,
24678+ )
24679+ }
24680+
24681+
2455624682 /**
2455724683 * Returns a list of all the top-level joined spaces. It will eagerly
2455824684 * compute the latest version and also notify subscribers if there were
@@ -24608,6 +24734,28 @@ open class SpaceService: Disposable, AutoCloseable, SpaceServiceInterface
2460824734 }
2460924735
2461024736
24737+ @Throws(ClientException::class)
24738+ @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
24739+ override suspend fun `removeChildFromSpace`(`childId`: kotlin.String, `spaceId`: kotlin.String) {
24740+ return uniffiRustCallAsync(
24741+ callWithHandle { uniffiHandle ->
24742+ UniffiLib.uniffi_matrix_sdk_ffi_fn_method_spaceservice_remove_child_from_space(
24743+ uniffiHandle,
24744+ FfiConverterString.lower(`childId`),FfiConverterString.lower(`spaceId`),
24745+ )
24746+ },
24747+ { future, callback, continuation -> UniffiLib.ffi_matrix_sdk_ffi_rust_future_poll_void(future, callback, continuation) },
24748+ { future, continuation -> UniffiLib.ffi_matrix_sdk_ffi_rust_future_complete_void(future, continuation) },
24749+ { future -> UniffiLib.ffi_matrix_sdk_ffi_rust_future_free_void(future) },
24750+ // lift function
24751+ { Unit },
24752+
24753+ // Error FFI converter
24754+ ClientException.ErrorHandler,
24755+ )
24756+ }
24757+
24758+
2461124759 /**
2461224760 * Returns a `SpaceRoomList` for the given space ID.
2461324761 */
@@ -24851,12 +24999,12 @@ open class Span: Disposable, AutoCloseable, SpanInterface
2485124999 * unless you *want* the span to be attached to all further events created
2485225000 * on that thread.
2485325001 */
24854- constructor(`file`: kotlin.String, `line`: kotlin.UInt?, `level`: LogLevel, `target`: kotlin.String, `name`: kotlin.String) :
25002+ constructor(`file`: kotlin.String, `line`: kotlin.UInt?, `level`: LogLevel, `target`: kotlin.String, `name`: kotlin.String, `bridgeTraceId`: kotlin.String? ) :
2485525003 this(UniffiWithHandle,
2485625004 uniffiRustCall() { _status ->
2485725005 UniffiLib.uniffi_matrix_sdk_ffi_fn_constructor_span_new(
2485825006
24859- FfiConverterString.lower(`file`),FfiConverterOptionalUInt.lower(`line`),FfiConverterTypeLogLevel.lower(`level`),FfiConverterString.lower(`target`),FfiConverterString.lower(`name`),_status)
25007+ FfiConverterString.lower(`file`),FfiConverterOptionalUInt.lower(`line`),FfiConverterTypeLogLevel.lower(`level`),FfiConverterString.lower(`target`),FfiConverterString.lower(`name`),FfiConverterOptionalString.lower(`bridgeTraceId`), _status)
2486025008}
2486125009 )
2486225010
@@ -24987,6 +25135,23 @@ open class Span: Disposable, AutoCloseable, SpanInterface
2498725135
2498825136
2498925137
25138+ /**
25139+ * Creates a [`Span`] that acts as a bridge between the client spans and
25140+ * the SDK ones, allowing them to be joined in Sentry. This function
25141+ * will only return a valid span if the `sentry` feature is enabled,
25142+ * otherwise it will return a noop span.
25143+ */ fun `newBridgeSpan`(`target`: kotlin.String, `parentTraceId`: kotlin.String?): Span {
25144+ return FfiConverterTypeSpan.lift(
25145+ uniffiRustCall() { _status ->
25146+ UniffiLib.uniffi_matrix_sdk_ffi_fn_constructor_span_new_bridge_span(
25147+
25148+ FfiConverterString.lower(`target`),FfiConverterOptionalString.lower(`parentTraceId`),_status)
25149+ }
25150+ )
25151+ }
25152+
25153+
25154+
2499025155 }
2499125156
2499225157}
@@ -40549,6 +40714,11 @@ sealed class HumanQrGrantLoginException(message: String): kotlin.Exception(messa
4054940714 */
4055040715 class MissingSecretsBackup(message: String) : HumanQrGrantLoginException(message)
4055140716
40717+ /**
40718+ * The rendezvous session was not found and might have expired.
40719+ */
40720+ class NotFound(message: String) : HumanQrGrantLoginException(message)
40721+
4055240722 /**
4055340723 * The device could not be created.
4055440724 */
@@ -40576,8 +40746,9 @@ public object FfiConverterTypeHumanQrGrantLoginError : FfiConverterRustBuffer<Hu
4057640746 2 -> HumanQrGrantLoginException.InvalidCheckCode(FfiConverterString.read(buf))
4057740747 3 -> HumanQrGrantLoginException.UnsupportedProtocol(FfiConverterString.read(buf))
4057840748 4 -> HumanQrGrantLoginException.MissingSecretsBackup(FfiConverterString.read(buf))
40579- 5 -> HumanQrGrantLoginException.UnableToCreateDevice(FfiConverterString.read(buf))
40580- 6 -> HumanQrGrantLoginException.Unknown(FfiConverterString.read(buf))
40749+ 5 -> HumanQrGrantLoginException.NotFound(FfiConverterString.read(buf))
40750+ 6 -> HumanQrGrantLoginException.UnableToCreateDevice(FfiConverterString.read(buf))
40751+ 7 -> HumanQrGrantLoginException.Unknown(FfiConverterString.read(buf))
4058140752 else -> throw RuntimeException("invalid error enum value, something is very wrong!!")
4058240753 }
4058340754
@@ -40605,14 +40776,18 @@ public object FfiConverterTypeHumanQrGrantLoginError : FfiConverterRustBuffer<Hu
4060540776 buf.putInt(4)
4060640777 Unit
4060740778 }
40608- is HumanQrGrantLoginException.UnableToCreateDevice -> {
40779+ is HumanQrGrantLoginException.NotFound -> {
4060940780 buf.putInt(5)
4061040781 Unit
4061140782 }
40612- is HumanQrGrantLoginException.Unknown -> {
40783+ is HumanQrGrantLoginException.UnableToCreateDevice -> {
4061340784 buf.putInt(6)
4061440785 Unit
4061540786 }
40787+ is HumanQrGrantLoginException.Unknown -> {
40788+ buf.putInt(7)
40789+ Unit
40790+ }
4061640791 }.let { /* this makes the `when` an expression, which ensures it is exhaustive */ }
4061740792 }
4061840793
@@ -40690,6 +40865,12 @@ sealed class HumanQrLoginException: kotlin.Exception() {
4069040865 get() = ""
4069140866 }
4069240867
40868+ class NotFound(
40869+ ) : HumanQrLoginException() {
40870+ override val message
40871+ get() = ""
40872+ }
40873+
4069340874
4069440875 companion object ErrorHandler : UniffiRustCallStatusErrorHandler<HumanQrLoginException> {
4069540876 override fun lift(error_buf: RustBuffer.ByValue): HumanQrLoginException = FfiConverterTypeHumanQrLoginError.lift(error_buf)
@@ -40717,6 +40898,7 @@ public object FfiConverterTypeHumanQrLoginError : FfiConverterRustBuffer<HumanQr
4071740898 9 -> HumanQrLoginException.OtherDeviceNotSignedIn()
4071840899 10 -> HumanQrLoginException.CheckCodeAlreadySent()
4071940900 11 -> HumanQrLoginException.CheckCodeCannotBeSent()
40901+ 12 -> HumanQrLoginException.NotFound()
4072040902 else -> throw RuntimeException("invalid error enum value, something is very wrong!!")
4072140903 }
4072240904 }
@@ -40767,6 +40949,10 @@ public object FfiConverterTypeHumanQrLoginError : FfiConverterRustBuffer<HumanQr
4076740949 // Add the size for the Int that specifies the variant plus the size needed for all fields
4076840950 4UL
4076940951 )
40952+ is HumanQrLoginException.NotFound -> (
40953+ // Add the size for the Int that specifies the variant plus the size needed for all fields
40954+ 4UL
40955+ )
4077040956 }
4077140957 }
4077240958
@@ -40816,6 +41002,10 @@ public object FfiConverterTypeHumanQrLoginError : FfiConverterRustBuffer<HumanQr
4081641002 buf.putInt(11)
4081741003 Unit
4081841004 }
41005+ is HumanQrLoginException.NotFound -> {
41006+ buf.putInt(12)
41007+ Unit
41008+ }
4081941009 }.let { /* this makes the `when` an expression, which ensures it is exhaustive */ }
4082041010 }
4082141011
0 commit comments