@@ -4122,7 +4122,7 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
4122
4122
if (lib.uniffi_matrix_sdk_ffi_checksum_func_get_element_call_required_permissions() != 30181.toShort()) {
4123
4123
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4124
4124
}
4125
- if (lib.uniffi_matrix_sdk_ffi_checksum_func_is_room_alias_format_valid() != 23063 .toShort()) {
4125
+ if (lib.uniffi_matrix_sdk_ffi_checksum_func_is_room_alias_format_valid() != 54845 .toShort()) {
4126
4126
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4127
4127
}
4128
4128
if (lib.uniffi_matrix_sdk_ffi_checksum_func_log_event() != 62286.toShort()) {
@@ -4281,7 +4281,7 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
4281
4281
if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_ignored_users() != 49620.toShort()) {
4282
4282
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4283
4283
}
4284
- if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_is_room_alias_available() != 25471 .toShort()) {
4284
+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_is_room_alias_available() != 23322 .toShort()) {
4285
4285
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4286
4286
}
4287
4287
if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_join_room_by_id() != 64032.toShort()) {
@@ -5988,7 +5988,13 @@ public interface ClientInterface {
5988
5988
suspend fun `ignoredUsers`(): List<kotlin.String>
5989
5989
5990
5990
/**
5991
- * Checks if a room alias is available in the current homeserver.
5991
+ * Checks if a room alias is not in use yet.
5992
+ *
5993
+ * Returns:
5994
+ * - `Ok(true)` if the room alias is available.
5995
+ * - `Ok(false)` if it's not (the resolve alias request returned a `404`
5996
+ * status code).
5997
+ * - An `Err` otherwise.
5992
5998
*/
5993
5999
suspend fun `isRoomAliasAvailable`(`alias`: kotlin.String): kotlin.Boolean
5994
6000
@@ -6917,7 +6923,13 @@ open class Client: Disposable, AutoCloseable, ClientInterface {
6917
6923
6918
6924
6919
6925
/**
6920
- * Checks if a room alias is available in the current homeserver.
6926
+ * Checks if a room alias is not in use yet.
6927
+ *
6928
+ * Returns:
6929
+ * - `Ok(true)` if the room alias is available.
6930
+ * - `Ok(false)` if it's not (the resolve alias request returned a `404`
6931
+ * status code).
6932
+ * - An `Err` otherwise.
6921
6933
*/
6922
6934
@Throws(ClientException::class)
6923
6935
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
@@ -38495,7 +38507,11 @@ public object FfiConverterMapStringSequenceString: FfiConverterRustBuffer<Map<ko
38495
38507
38496
38508
38497
38509
/**
38498
- * Verifies the passed `String` matches the expected room alias format.
38510
+ * Verifies the passed `String` matches the expected room alias format:
38511
+ *
38512
+ * This means it's lowercase, with no whitespace chars, has a single leading
38513
+ * `#` char and a single `:` separator between the local and domain parts, and
38514
+ * the local part only contains characters that can't be percent encoded.
38499
38515
*/ fun `isRoomAliasFormatValid`(`alias`: kotlin.String): kotlin.Boolean {
38500
38516
return FfiConverterBoolean.lift(
38501
38517
uniffiRustCall() { _status ->
0 commit comments