Skip to content

Commit

Permalink
Bump SDK version to 0.2.46 (matrix-rust-sdk to f576c72ef8cf4d735e3f91…
Browse files Browse the repository at this point in the history
…e9ec52aba0278c643f)
  • Loading branch information
github-actions committed Sep 17, 2024
1 parent 328c12a commit 3682529
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 1 deletion.
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 = 45
const val patchVersion = 46
}
Original file line number Diff line number Diff line change
Expand Up @@ -2127,6 +2127,10 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(










Expand Down Expand Up @@ -2210,8 +2214,12 @@ internal interface UniffiLib : Library {
): 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_can_deactivate_account(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): Byte
fun uniffi_matrix_sdk_ffi_fn_method_client_create_room(`ptr`: Pointer,`request`: RustBuffer.ByValue,
): Long
fun uniffi_matrix_sdk_ffi_fn_method_client_deactivate_account(`ptr`: Pointer,`authData`: RustBuffer.ByValue,`eraseData`: Byte,
): Long
fun uniffi_matrix_sdk_ffi_fn_method_client_delete_pusher(`ptr`: Pointer,`identifiers`: RustBuffer.ByValue,
): Long
fun uniffi_matrix_sdk_ffi_fn_method_client_device_id(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
Expand Down Expand Up @@ -3304,8 +3312,12 @@ internal interface UniffiLib : Library {
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_client_cached_avatar_url(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_client_can_deactivate_account(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_client_create_room(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_client_deactivate_account(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_client_delete_pusher(
): Short
fun uniffi_matrix_sdk_ffi_checksum_method_client_device_id(
Expand Down Expand Up @@ -4165,9 +4177,15 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
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")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_can_deactivate_account() != 39890.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_create_room() != 52700.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_deactivate_account() != 20658.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_matrix_sdk_ffi_checksum_method_client_delete_pusher() != 45990.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
Expand Down Expand Up @@ -5851,8 +5869,28 @@ public interface ClientInterface {
*/
fun `cachedAvatarUrl`(): kotlin.String?

/**
* Lets the user know whether this is an `m.login.password` based
* auth and if the account can actually be deactivated
*/
fun `canDeactivateAccount`(): kotlin.Boolean

suspend fun `createRoom`(`request`: CreateRoomParameters): kotlin.String

/**
* Deactivate this account definitively.
* Similarly to `encryption::reset_identity` this
* will only work with password-based authentication (`m.login.password`)
*
* # Arguments
*
* * `auth_data` - This request uses the [User-Interactive Authentication
* API][uiaa]. The first request needs to set this to `None` and will
* always fail and the same request needs to be made but this time with
* some `auth_data` provided.
*/
suspend fun `deactivateAccount`(`authData`: AuthData?, `eraseData`: kotlin.Boolean)

/**
* Deletes a pusher of given pusher ids
*/
Expand Down Expand Up @@ -6331,6 +6369,22 @@ open class Client: Disposable, AutoCloseable, ClientInterface {



/**
* Lets the user know whether this is an `m.login.password` based
* auth and if the account can actually be deactivated
*/override fun `canDeactivateAccount`(): kotlin.Boolean {
return FfiConverterBoolean.lift(
callWithPointer {
uniffiRustCall() { _status ->
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_client_can_deactivate_account(
it, _status)
}
}
)
}



@Throws(ClientException::class)
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
override suspend fun `createRoom`(`request`: CreateRoomParameters) : kotlin.String {
Expand All @@ -6352,6 +6406,40 @@ open class Client: Disposable, AutoCloseable, ClientInterface {
}


/**
* Deactivate this account definitively.
* Similarly to `encryption::reset_identity` this
* will only work with password-based authentication (`m.login.password`)
*
* # Arguments
*
* * `auth_data` - This request uses the [User-Interactive Authentication
* API][uiaa]. The first request needs to set this to `None` and will
* always fail and the same request needs to be made but this time with
* some `auth_data` provided.
*/
@Throws(ClientException::class)
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
override suspend fun `deactivateAccount`(`authData`: AuthData?, `eraseData`: kotlin.Boolean) {
return uniffiRustCallAsync(
callWithPointer { thisPtr ->
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_client_deactivate_account(
thisPtr,
FfiConverterOptionalTypeAuthData.lower(`authData`),FfiConverterBoolean.lower(`eraseData`),
)
},
{ future, callback, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_poll_void(future, callback, continuation) },
{ future, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_complete_void(future, continuation) },
{ future -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_free_void(future) },
// lift function
{ Unit },

// Error FFI converter
ClientException.ErrorHandler,
)
}


/**
* Deletes a pusher of given pusher ids
*/
Expand Down

0 comments on commit 3682529

Please sign in to comment.