Skip to content

Commit

Permalink
Bump SDK version to 0.2.45 (matrix-rust-sdk to abbe2ec52316c998c38949…
Browse files Browse the repository at this point in the history
…89b9c48b3781967d26)
  • Loading branch information
github-actions committed Sep 16, 2024
1 parent 3bc447d commit 328c12a
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 5 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/BuildVersionsSDK.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
object BuildVersionsSDK {
const val majorVersion = 0
const val minorVersion = 2
const val patchVersion = 44
const val patchVersion = 45
}
Original file line number Diff line number Diff line change
Expand Up @@ -2123,6 +2123,10 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(










Expand Down Expand Up @@ -2202,6 +2206,8 @@ internal interface UniffiLib : Library {
): Long
fun uniffi_matrix_sdk_ffi_fn_method_client_avatar_url(`ptr`: Pointer,
): Long
fun uniffi_matrix_sdk_ffi_fn_method_client_await_room_remote_echo(`ptr`: Pointer,`roomId`: RustBuffer.ByValue,
): Long
fun uniffi_matrix_sdk_ffi_fn_method_client_cached_avatar_url(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): RustBuffer.ByValue
fun uniffi_matrix_sdk_ffi_fn_method_client_create_room(`ptr`: Pointer,`request`: RustBuffer.ByValue,
Expand Down Expand Up @@ -2274,6 +2280,8 @@ internal interface UniffiLib : Library {
): RustBuffer.ByValue
fun uniffi_matrix_sdk_ffi_fn_method_client_search_users(`ptr`: Pointer,`searchTerm`: RustBuffer.ByValue,`limit`: Long,
): Long
fun uniffi_matrix_sdk_ffi_fn_method_client_server(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): RustBuffer.ByValue
fun uniffi_matrix_sdk_ffi_fn_method_client_session(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): RustBuffer.ByValue
fun uniffi_matrix_sdk_ffi_fn_method_client_set_account_data(`ptr`: Pointer,`eventType`: RustBuffer.ByValue,`content`: RustBuffer.ByValue,
Expand Down Expand Up @@ -3292,6 +3300,8 @@ internal interface UniffiLib : Library {
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_client_avatar_url(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_client_await_room_remote_echo(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_client_cached_avatar_url(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_client_create_room(
Expand Down Expand Up @@ -3364,6 +3374,8 @@ internal interface UniffiLib : Library {
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_client_search_users(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_client_server(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_client_session(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_client_set_account_data(
Expand Down Expand Up @@ -4147,6 +4159,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_avatar_url() != 27867.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_await_room_remote_echo() != 18126.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_cached_avatar_url() != 58990.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
Expand Down Expand Up @@ -4255,6 +4270,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_search_users() != 42927.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_server() != 63276.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_session() != 8085.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
Expand Down Expand Up @@ -5819,6 +5837,15 @@ public interface ClientInterface {
*/
suspend fun `avatarUrl`(): kotlin.String?

/**
* Waits until an at least partially synced room is received, and returns
* it.
*
* **Note: this function will loop endlessly until either it finds the room
* or an externally set timeout happens.**
*/
suspend fun `awaitRoomRemoteEcho`(`roomId`: kotlin.String): Room

/**
* Retrieves an avatar cached from a previous call to [`Self::avatar_url`].
*/
Expand Down Expand Up @@ -5969,6 +5996,21 @@ public interface ClientInterface {

suspend fun `searchUsers`(`searchTerm`: kotlin.String, `limit`: kotlin.ULong): SearchUsersResults

/**
* The URL of the server.
*
* Not to be confused with the `Self::homeserver`. `server` is usually
* the server part in a user ID, e.g. with `@mnt_io:matrix.org`, here
* `matrix.org` is the server, whilst `matrix-client.matrix.org` is the
* homeserver (at the time of writing — 2024-08-28).
*
* This value is optional depending on how the `Client` has been built.
* If it's been built from a homeserver URL directly, we don't know the
* server. However, if the `Client` has been built from a server URL or
* name, then the homeserver has been discovered, and we know both.
*/
fun `server`(): kotlin.String?

fun `session`(): Session

/**
Expand Down Expand Up @@ -6245,6 +6287,34 @@ open class Client: Disposable, AutoCloseable, ClientInterface {
}


/**
* Waits until an at least partially synced room is received, and returns
* it.
*
* **Note: this function will loop endlessly until either it finds the room
* or an externally set timeout happens.**
*/
@Throws(ClientException::class)
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
override suspend fun `awaitRoomRemoteEcho`(`roomId`: kotlin.String) : Room {
return uniffiRustCallAsync(
callWithPointer { thisPtr ->
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_client_await_room_remote_echo(
thisPtr,
FfiConverterString.lower(`roomId`),
)
},
{ future, callback, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_poll_pointer(future, callback, continuation) },
{ future, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_complete_pointer(future, continuation) },
{ future -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_free_pointer(future) },
// lift function
{ FfiConverterTypeRoom.lift(it) },
// Error FFI converter
ClientException.ErrorHandler,
)
}


/**
* Retrieves an avatar cached from a previous call to [`Self::avatar_url`].
*/
Expand Down Expand Up @@ -7017,6 +7087,31 @@ open class Client: Disposable, AutoCloseable, ClientInterface {
}


/**
* The URL of the server.
*
* Not to be confused with the `Self::homeserver`. `server` is usually
* the server part in a user ID, e.g. with `@mnt_io:matrix.org`, here
* `matrix.org` is the server, whilst `matrix-client.matrix.org` is the
* homeserver (at the time of writing — 2024-08-28).
*
* This value is optional depending on how the `Client` has been built.
* If it's been built from a homeserver URL directly, we don't know the
* server. However, if the `Client` has been built from a server URL or
* name, then the homeserver has been discovered, and we know both.
*/override fun `server`(): kotlin.String? {
return FfiConverterOptionalString.lift(
callWithPointer {
uniffiRustCall() { _status ->
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_client_server(
it, _status)
}
}
)
}



@Throws(ClientException::class)override fun `session`(): Session {
return FfiConverterTypeSession.lift(
callWithPointer {
Expand Down Expand Up @@ -22596,7 +22691,8 @@ public object FfiConverterTypeElementCallWellKnown: FfiConverterRustBuffer<Eleme
* Element specific well-known settings
*/
data class ElementWellKnown (
var `call`: ElementCallWellKnown
var `call`: ElementCallWellKnown?,
var `registrationHelperUrl`: kotlin.String?
) {

companion object
Expand All @@ -22605,16 +22701,19 @@ data class ElementWellKnown (
public object FfiConverterTypeElementWellKnown: FfiConverterRustBuffer<ElementWellKnown> {
override fun read(buf: ByteBuffer): ElementWellKnown {
return ElementWellKnown(
FfiConverterTypeElementCallWellKnown.read(buf),
FfiConverterOptionalTypeElementCallWellKnown.read(buf),
FfiConverterOptionalString.read(buf),
)
}

override fun allocationSize(value: ElementWellKnown) = (
FfiConverterTypeElementCallWellKnown.allocationSize(value.`call`)
FfiConverterOptionalTypeElementCallWellKnown.allocationSize(value.`call`) +
FfiConverterOptionalString.allocationSize(value.`registrationHelperUrl`)
)

override fun write(value: ElementWellKnown, buf: ByteBuffer) {
FfiConverterTypeElementCallWellKnown.write(value.`call`, buf)
FfiConverterOptionalTypeElementCallWellKnown.write(value.`call`, buf)
FfiConverterOptionalString.write(value.`registrationHelperUrl`, buf)
}
}

Expand Down Expand Up @@ -34618,6 +34717,35 @@ public object FfiConverterOptionalTypeComposerDraft: FfiConverterRustBuffer<Comp



public object FfiConverterOptionalTypeElementCallWellKnown: FfiConverterRustBuffer<ElementCallWellKnown?> {
override fun read(buf: ByteBuffer): ElementCallWellKnown? {
if (buf.get().toInt() == 0) {
return null
}
return FfiConverterTypeElementCallWellKnown.read(buf)
}

override fun allocationSize(value: ElementCallWellKnown?): ULong {
if (value == null) {
return 1UL
} else {
return 1UL + FfiConverterTypeElementCallWellKnown.allocationSize(value)
}
}

override fun write(value: ElementCallWellKnown?, buf: ByteBuffer) {
if (value == null) {
buf.put(0)
} else {
buf.put(1)
FfiConverterTypeElementCallWellKnown.write(value, buf)
}
}
}




public object FfiConverterOptionalTypeFileInfo: FfiConverterRustBuffer<FileInfo?> {
override fun read(buf: ByteBuffer): FileInfo? {
if (buf.get().toInt() == 0) {
Expand Down

0 comments on commit 328c12a

Please sign in to comment.