@@ -12927,6 +12927,12 @@ public protocol SpaceServiceProtocol: AnyObject, Sendable {
1292712927 */
1292812928 func editableSpaces() async -> [SpaceRoom]
1292912929
12930+ /**
12931+ * Returns the corresponding `SpaceRoom` for the given room ID, or `None`
12932+ * if it isn't known.
12933+ */
12934+ func getSpaceRoom(roomId: String) async throws -> SpaceRoom?
12935+
1293012936 /**
1293112937 * Returns all known direct-parents of a given space room ID.
1293212938 */
@@ -13066,6 +13072,27 @@ open func editableSpaces()async -> [SpaceRoom] {
1306613072 )
1306713073}
1306813074
13075+ /**
13076+ * Returns the corresponding `SpaceRoom` for the given room ID, or `None`
13077+ * if it isn't known.
13078+ */
13079+ open func getSpaceRoom(roomId: String)async throws -> SpaceRoom? {
13080+ return
13081+ try await uniffiRustCallAsync(
13082+ rustFutureFunc: {
13083+ uniffi_matrix_sdk_ffi_fn_method_spaceservice_get_space_room(
13084+ self.uniffiCloneHandle(),
13085+ FfiConverterString.lower(roomId)
13086+ )
13087+ },
13088+ pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,
13089+ completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,
13090+ freeFunc: ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,
13091+ liftFunc: FfiConverterOptionTypeSpaceRoom.lift,
13092+ errorHandler: FfiConverterTypeClientError_lift
13093+ )
13094+ }
13095+
1306913096 /**
1307013097 * Returns all known direct-parents of a given space room ID.
1307113098 */
@@ -47209,6 +47236,9 @@ private let initializationResult: InitializationResult = {
4720947236 if (uniffi_matrix_sdk_ffi_checksum_method_spaceservice_editable_spaces() != 1160) {
4721047237 return InitializationResult.apiChecksumMismatch
4721147238 }
47239+ if (uniffi_matrix_sdk_ffi_checksum_method_spaceservice_get_space_room() != 38097) {
47240+ return InitializationResult.apiChecksumMismatch
47241+ }
4721247242 if (uniffi_matrix_sdk_ffi_checksum_method_spaceservice_joined_parents_of_child() != 40037) {
4721347243 return InitializationResult.apiChecksumMismatch
4721447244 }
0 commit comments