diff --git a/library/src/main/java/xmtpv3.kt b/library/src/main/java/xmtpv3.kt index 8442a5dc9..3d45c7843 100644 --- a/library/src/main/java/xmtpv3.kt +++ b/library/src/main/java/xmtpv3.kt @@ -55,8 +55,8 @@ open class RustBuffer : Structure() { _UniFFILib.INSTANCE.ffi_xmtpv3_rustbuffer_alloc(size, status) }.also { if(it.data == null) { - throw RuntimeException("RustBuffer.alloc() returned null data pointer (size=${size})") - } + throw RuntimeException("RustBuffer.alloc() returned null data pointer (size=${size})") + } } internal fun create(capacity: Int, len: Int, data: Pointer?): RustBuffer.ByValue { @@ -179,11 +179,11 @@ public interface FfiConverter { fun liftFromRustBuffer(rbuf: RustBuffer.ByValue): KotlinType { val byteBuf = rbuf.asByteBuffer()!! try { - val item = read(byteBuf) - if (byteBuf.hasRemaining()) { - throw RuntimeException("junk remaining in buffer after lifting, something is very wrong!!") - } - return item + val item = read(byteBuf) + if (byteBuf.hasRemaining()) { + throw RuntimeException("junk remaining in buffer after lifting, something is very wrong!!") + } + return item } finally { RustBuffer.free(rbuf) } @@ -381,25 +381,25 @@ internal interface _UniFFILib : Library { companion object { internal val INSTANCE: _UniFFILib by lazy { loadIndirect<_UniFFILib>(componentName = "xmtpv3") - .also { lib: _UniFFILib -> - uniffiCheckContractApiVersion(lib) - uniffiCheckApiChecksums(lib) - FfiConverterTypeFfiConversationCallback.register(lib) - FfiConverterTypeFfiInboxOwner.register(lib) - FfiConverterTypeFfiLogger.register(lib) - FfiConverterTypeFfiMessageCallback.register(lib) - uniffiRustFutureContinuationCallback.register(lib) + .also { lib: _UniFFILib -> + uniffiCheckContractApiVersion(lib) + uniffiCheckApiChecksums(lib) + FfiConverterTypeFfiConversationCallback.register(lib) + FfiConverterTypeFfiInboxOwner.register(lib) + FfiConverterTypeFfiLogger.register(lib) + FfiConverterTypeFfiMessageCallback.register(lib) + uniffiRustFutureContinuationCallback.register(lib) } } } - fun uniffi_xmtpv3_fn_free_fficonversations(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_free_fficonversations(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): Unit fun uniffi_xmtpv3_fn_method_fficonversations_create_group(`ptr`: Pointer,`accountAddresses`: RustBuffer.ByValue,`permissions`: RustBuffer.ByValue, ): Pointer fun uniffi_xmtpv3_fn_method_fficonversations_list(`ptr`: Pointer,`opts`: RustBuffer.ByValue, ): Pointer - fun uniffi_xmtpv3_fn_method_fficonversations_process_streamed_welcome_message(`ptr`: Pointer,`envelopeBytes`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_method_fficonversations_process_streamed_welcome_message(`ptr`: Pointer,`envelopeBytes`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, ): Pointer fun uniffi_xmtpv3_fn_method_fficonversations_stream(`ptr`: Pointer,`callback`: Long, ): Pointer @@ -407,25 +407,23 @@ internal interface _UniFFILib : Library { ): Pointer fun uniffi_xmtpv3_fn_method_fficonversations_sync(`ptr`: Pointer, ): Pointer - fun uniffi_xmtpv3_fn_free_ffigroup(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_free_ffigroup(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): Unit fun uniffi_xmtpv3_fn_method_ffigroup_add_members(`ptr`: Pointer,`accountAddresses`: RustBuffer.ByValue, ): Pointer - fun uniffi_xmtpv3_fn_method_ffigroup_added_by_address(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_method_ffigroup_added_by_address(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue - fun uniffi_xmtpv3_fn_method_ffigroup_created_at_ns(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_method_ffigroup_created_at_ns(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): Long - fun uniffi_xmtpv3_fn_method_ffigroup_find_messages(`ptr`: Pointer,`opts`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_method_ffigroup_find_messages(`ptr`: Pointer,`opts`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue - fun uniffi_xmtpv3_fn_method_ffigroup_group_metadata(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_method_ffigroup_group_metadata(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): Pointer - fun uniffi_xmtpv3_fn_method_ffigroup_group_name(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_method_ffigroup_id(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue - fun uniffi_xmtpv3_fn_method_ffigroup_id(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, - ): RustBuffer.ByValue - fun uniffi_xmtpv3_fn_method_ffigroup_is_active(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_method_ffigroup_is_active(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): Byte - fun uniffi_xmtpv3_fn_method_ffigroup_list_members(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_method_ffigroup_list_members(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue fun uniffi_xmtpv3_fn_method_ffigroup_process_streamed_group_message(`ptr`: Pointer,`envelopeBytes`: RustBuffer.ByValue, ): Pointer @@ -437,23 +435,21 @@ internal interface _UniFFILib : Library { ): Pointer fun uniffi_xmtpv3_fn_method_ffigroup_sync(`ptr`: Pointer, ): Pointer - fun uniffi_xmtpv3_fn_method_ffigroup_update_group_name(`ptr`: Pointer,`groupName`: RustBuffer.ByValue, - ): Pointer - fun uniffi_xmtpv3_fn_free_ffigroupmetadata(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_free_ffigroupmetadata(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): Unit - fun uniffi_xmtpv3_fn_method_ffigroupmetadata_conversation_type(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_method_ffigroupmetadata_conversation_type(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue - fun uniffi_xmtpv3_fn_method_ffigroupmetadata_creator_account_address(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_method_ffigroupmetadata_creator_account_address(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue - fun uniffi_xmtpv3_fn_method_ffigroupmetadata_policy_type(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_method_ffigroupmetadata_policy_type(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue - fun uniffi_xmtpv3_fn_free_ffistreamcloser(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_free_ffistreamcloser(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): Unit - fun uniffi_xmtpv3_fn_method_ffistreamcloser_end(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_method_ffistreamcloser_end(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): Unit - fun uniffi_xmtpv3_fn_method_ffistreamcloser_is_closed(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_method_ffistreamcloser_is_closed(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): Byte - fun uniffi_xmtpv3_fn_free_ffiv2apiclient(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_free_ffiv2apiclient(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): Unit fun uniffi_xmtpv3_fn_method_ffiv2apiclient_batch_query(`ptr`: Pointer,`req`: RustBuffer.ByValue, ): Pointer @@ -461,11 +457,11 @@ internal interface _UniFFILib : Library { ): Pointer fun uniffi_xmtpv3_fn_method_ffiv2apiclient_query(`ptr`: Pointer,`request`: RustBuffer.ByValue, ): Pointer - fun uniffi_xmtpv3_fn_method_ffiv2apiclient_set_app_version(`ptr`: Pointer,`version`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_method_ffiv2apiclient_set_app_version(`ptr`: Pointer,`version`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, ): Unit fun uniffi_xmtpv3_fn_method_ffiv2apiclient_subscribe(`ptr`: Pointer,`request`: RustBuffer.ByValue, ): Pointer - fun uniffi_xmtpv3_fn_free_ffiv2subscription(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_free_ffiv2subscription(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): Unit fun uniffi_xmtpv3_fn_method_ffiv2subscription_end(`ptr`: Pointer, ): Pointer @@ -473,63 +469,63 @@ internal interface _UniFFILib : Library { ): Pointer fun uniffi_xmtpv3_fn_method_ffiv2subscription_update(`ptr`: Pointer,`req`: RustBuffer.ByValue, ): Pointer - fun uniffi_xmtpv3_fn_free_ffixmtpclient(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_free_ffixmtpclient(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): Unit - fun uniffi_xmtpv3_fn_method_ffixmtpclient_account_address(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_method_ffixmtpclient_account_address(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue fun uniffi_xmtpv3_fn_method_ffixmtpclient_can_message(`ptr`: Pointer,`accountAddresses`: RustBuffer.ByValue, ): Pointer - fun uniffi_xmtpv3_fn_method_ffixmtpclient_conversations(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_method_ffixmtpclient_conversations(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): Pointer - fun uniffi_xmtpv3_fn_method_ffixmtpclient_installation_id(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_method_ffixmtpclient_installation_id(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue fun uniffi_xmtpv3_fn_method_ffixmtpclient_register_identity(`ptr`: Pointer,`recoverableWalletSignature`: RustBuffer.ByValue, ): Pointer - fun uniffi_xmtpv3_fn_method_ffixmtpclient_text_to_sign(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_method_ffixmtpclient_text_to_sign(`ptr`: Pointer,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue - fun uniffi_xmtpv3_fn_init_callback_ffiinboxowner(`callbackStub`: ForeignCallback,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_init_callback_ffiinboxowner(`callbackStub`: ForeignCallback,_uniffi_out_err: RustCallStatus, ): Unit - fun uniffi_xmtpv3_fn_init_callback_ffilogger(`callbackStub`: ForeignCallback,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_init_callback_ffilogger(`callbackStub`: ForeignCallback,_uniffi_out_err: RustCallStatus, ): Unit - fun uniffi_xmtpv3_fn_init_callback_fficonversationcallback(`callbackStub`: ForeignCallback,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_init_callback_fficonversationcallback(`callbackStub`: ForeignCallback,_uniffi_out_err: RustCallStatus, ): Unit - fun uniffi_xmtpv3_fn_init_callback_ffimessagecallback(`callbackStub`: ForeignCallback,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_init_callback_ffimessagecallback(`callbackStub`: ForeignCallback,_uniffi_out_err: RustCallStatus, ): Unit fun uniffi_xmtpv3_fn_func_create_client(`logger`: Long,`host`: RustBuffer.ByValue,`isSecure`: Byte,`db`: RustBuffer.ByValue,`encryptionKey`: RustBuffer.ByValue,`accountAddress`: RustBuffer.ByValue,`legacyIdentitySource`: RustBuffer.ByValue,`legacySignedPrivateKeyProto`: RustBuffer.ByValue, ): Pointer fun uniffi_xmtpv3_fn_func_create_v2_client(`host`: RustBuffer.ByValue,`isSecure`: Byte, ): Pointer - fun uniffi_xmtpv3_fn_func_diffie_hellman_k256(`privateKeyBytes`: RustBuffer.ByValue,`publicKeyBytes`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_func_diffie_hellman_k256(`privateKeyBytes`: RustBuffer.ByValue,`publicKeyBytes`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue - fun uniffi_xmtpv3_fn_func_generate_private_preferences_topic_identifier(`privateKey`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_func_generate_private_preferences_topic_identifier(`privateKey`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue - fun uniffi_xmtpv3_fn_func_get_version_info(_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_func_get_version_info(_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue - fun uniffi_xmtpv3_fn_func_keccak256(`input`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_func_keccak256(`input`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue - fun uniffi_xmtpv3_fn_func_public_key_from_private_key_k256(`privateKeyBytes`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_func_public_key_from_private_key_k256(`privateKeyBytes`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue - fun uniffi_xmtpv3_fn_func_recover_address(`signatureBytes`: RustBuffer.ByValue,`predigestMessage`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_func_recover_address(`signatureBytes`: RustBuffer.ByValue,`predigestMessage`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue - fun uniffi_xmtpv3_fn_func_recover_public_key_k256_keccak256(`message`: RustBuffer.ByValue,`signature`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_func_recover_public_key_k256_keccak256(`message`: RustBuffer.ByValue,`signature`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue - fun uniffi_xmtpv3_fn_func_recover_public_key_k256_sha256(`message`: RustBuffer.ByValue,`signature`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_func_recover_public_key_k256_sha256(`message`: RustBuffer.ByValue,`signature`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue - fun uniffi_xmtpv3_fn_func_sha256(`input`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_func_sha256(`input`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue - fun uniffi_xmtpv3_fn_func_user_preferences_decrypt(`publicKey`: RustBuffer.ByValue,`privateKey`: RustBuffer.ByValue,`message`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_func_user_preferences_decrypt(`publicKey`: RustBuffer.ByValue,`privateKey`: RustBuffer.ByValue,`message`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue - fun uniffi_xmtpv3_fn_func_user_preferences_encrypt(`publicKey`: RustBuffer.ByValue,`privateKey`: RustBuffer.ByValue,`message`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_func_user_preferences_encrypt(`publicKey`: RustBuffer.ByValue,`privateKey`: RustBuffer.ByValue,`message`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue - fun uniffi_xmtpv3_fn_func_verify_k256_sha256(`signedBy`: RustBuffer.ByValue,`message`: RustBuffer.ByValue,`signature`: RustBuffer.ByValue,`recoveryId`: Byte,_uniffi_out_err: RustCallStatus, + fun uniffi_xmtpv3_fn_func_verify_k256_sha256(`signedBy`: RustBuffer.ByValue,`message`: RustBuffer.ByValue,`signature`: RustBuffer.ByValue,`recoveryId`: Byte,_uniffi_out_err: RustCallStatus, ): Byte - fun ffi_xmtpv3_rustbuffer_alloc(`size`: Int,_uniffi_out_err: RustCallStatus, + fun ffi_xmtpv3_rustbuffer_alloc(`size`: Int,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue - fun ffi_xmtpv3_rustbuffer_from_bytes(`bytes`: ForeignBytes.ByValue,_uniffi_out_err: RustCallStatus, + fun ffi_xmtpv3_rustbuffer_from_bytes(`bytes`: ForeignBytes.ByValue,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue - fun ffi_xmtpv3_rustbuffer_free(`buf`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, + fun ffi_xmtpv3_rustbuffer_free(`buf`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus, ): Unit - fun ffi_xmtpv3_rustbuffer_reserve(`buf`: RustBuffer.ByValue,`additional`: Int,_uniffi_out_err: RustCallStatus, + fun ffi_xmtpv3_rustbuffer_reserve(`buf`: RustBuffer.ByValue,`additional`: Int,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue fun ffi_xmtpv3_rust_future_continuation_callback_set(`callback`: UniFffiRustFutureContinuationCallbackType, ): Unit @@ -539,7 +535,7 @@ internal interface _UniFFILib : Library { ): Unit fun ffi_xmtpv3_rust_future_free_u8(`handle`: Pointer, ): Unit - fun ffi_xmtpv3_rust_future_complete_u8(`handle`: Pointer,_uniffi_out_err: RustCallStatus, + fun ffi_xmtpv3_rust_future_complete_u8(`handle`: Pointer,_uniffi_out_err: RustCallStatus, ): Byte fun ffi_xmtpv3_rust_future_poll_i8(`handle`: Pointer,`uniffiCallback`: USize, ): Unit @@ -547,7 +543,7 @@ internal interface _UniFFILib : Library { ): Unit fun ffi_xmtpv3_rust_future_free_i8(`handle`: Pointer, ): Unit - fun ffi_xmtpv3_rust_future_complete_i8(`handle`: Pointer,_uniffi_out_err: RustCallStatus, + fun ffi_xmtpv3_rust_future_complete_i8(`handle`: Pointer,_uniffi_out_err: RustCallStatus, ): Byte fun ffi_xmtpv3_rust_future_poll_u16(`handle`: Pointer,`uniffiCallback`: USize, ): Unit @@ -555,7 +551,7 @@ internal interface _UniFFILib : Library { ): Unit fun ffi_xmtpv3_rust_future_free_u16(`handle`: Pointer, ): Unit - fun ffi_xmtpv3_rust_future_complete_u16(`handle`: Pointer,_uniffi_out_err: RustCallStatus, + fun ffi_xmtpv3_rust_future_complete_u16(`handle`: Pointer,_uniffi_out_err: RustCallStatus, ): Short fun ffi_xmtpv3_rust_future_poll_i16(`handle`: Pointer,`uniffiCallback`: USize, ): Unit @@ -563,7 +559,7 @@ internal interface _UniFFILib : Library { ): Unit fun ffi_xmtpv3_rust_future_free_i16(`handle`: Pointer, ): Unit - fun ffi_xmtpv3_rust_future_complete_i16(`handle`: Pointer,_uniffi_out_err: RustCallStatus, + fun ffi_xmtpv3_rust_future_complete_i16(`handle`: Pointer,_uniffi_out_err: RustCallStatus, ): Short fun ffi_xmtpv3_rust_future_poll_u32(`handle`: Pointer,`uniffiCallback`: USize, ): Unit @@ -571,7 +567,7 @@ internal interface _UniFFILib : Library { ): Unit fun ffi_xmtpv3_rust_future_free_u32(`handle`: Pointer, ): Unit - fun ffi_xmtpv3_rust_future_complete_u32(`handle`: Pointer,_uniffi_out_err: RustCallStatus, + fun ffi_xmtpv3_rust_future_complete_u32(`handle`: Pointer,_uniffi_out_err: RustCallStatus, ): Int fun ffi_xmtpv3_rust_future_poll_i32(`handle`: Pointer,`uniffiCallback`: USize, ): Unit @@ -579,7 +575,7 @@ internal interface _UniFFILib : Library { ): Unit fun ffi_xmtpv3_rust_future_free_i32(`handle`: Pointer, ): Unit - fun ffi_xmtpv3_rust_future_complete_i32(`handle`: Pointer,_uniffi_out_err: RustCallStatus, + fun ffi_xmtpv3_rust_future_complete_i32(`handle`: Pointer,_uniffi_out_err: RustCallStatus, ): Int fun ffi_xmtpv3_rust_future_poll_u64(`handle`: Pointer,`uniffiCallback`: USize, ): Unit @@ -587,7 +583,7 @@ internal interface _UniFFILib : Library { ): Unit fun ffi_xmtpv3_rust_future_free_u64(`handle`: Pointer, ): Unit - fun ffi_xmtpv3_rust_future_complete_u64(`handle`: Pointer,_uniffi_out_err: RustCallStatus, + fun ffi_xmtpv3_rust_future_complete_u64(`handle`: Pointer,_uniffi_out_err: RustCallStatus, ): Long fun ffi_xmtpv3_rust_future_poll_i64(`handle`: Pointer,`uniffiCallback`: USize, ): Unit @@ -595,7 +591,7 @@ internal interface _UniFFILib : Library { ): Unit fun ffi_xmtpv3_rust_future_free_i64(`handle`: Pointer, ): Unit - fun ffi_xmtpv3_rust_future_complete_i64(`handle`: Pointer,_uniffi_out_err: RustCallStatus, + fun ffi_xmtpv3_rust_future_complete_i64(`handle`: Pointer,_uniffi_out_err: RustCallStatus, ): Long fun ffi_xmtpv3_rust_future_poll_f32(`handle`: Pointer,`uniffiCallback`: USize, ): Unit @@ -603,7 +599,7 @@ internal interface _UniFFILib : Library { ): Unit fun ffi_xmtpv3_rust_future_free_f32(`handle`: Pointer, ): Unit - fun ffi_xmtpv3_rust_future_complete_f32(`handle`: Pointer,_uniffi_out_err: RustCallStatus, + fun ffi_xmtpv3_rust_future_complete_f32(`handle`: Pointer,_uniffi_out_err: RustCallStatus, ): Float fun ffi_xmtpv3_rust_future_poll_f64(`handle`: Pointer,`uniffiCallback`: USize, ): Unit @@ -611,7 +607,7 @@ internal interface _UniFFILib : Library { ): Unit fun ffi_xmtpv3_rust_future_free_f64(`handle`: Pointer, ): Unit - fun ffi_xmtpv3_rust_future_complete_f64(`handle`: Pointer,_uniffi_out_err: RustCallStatus, + fun ffi_xmtpv3_rust_future_complete_f64(`handle`: Pointer,_uniffi_out_err: RustCallStatus, ): Double fun ffi_xmtpv3_rust_future_poll_pointer(`handle`: Pointer,`uniffiCallback`: USize, ): Unit @@ -619,7 +615,7 @@ internal interface _UniFFILib : Library { ): Unit fun ffi_xmtpv3_rust_future_free_pointer(`handle`: Pointer, ): Unit - fun ffi_xmtpv3_rust_future_complete_pointer(`handle`: Pointer,_uniffi_out_err: RustCallStatus, + fun ffi_xmtpv3_rust_future_complete_pointer(`handle`: Pointer,_uniffi_out_err: RustCallStatus, ): Pointer fun ffi_xmtpv3_rust_future_poll_rust_buffer(`handle`: Pointer,`uniffiCallback`: USize, ): Unit @@ -627,7 +623,7 @@ internal interface _UniFFILib : Library { ): Unit fun ffi_xmtpv3_rust_future_free_rust_buffer(`handle`: Pointer, ): Unit - fun ffi_xmtpv3_rust_future_complete_rust_buffer(`handle`: Pointer,_uniffi_out_err: RustCallStatus, + fun ffi_xmtpv3_rust_future_complete_rust_buffer(`handle`: Pointer,_uniffi_out_err: RustCallStatus, ): RustBuffer.ByValue fun ffi_xmtpv3_rust_future_poll_void(`handle`: Pointer,`uniffiCallback`: USize, ): Unit @@ -635,7 +631,7 @@ internal interface _UniFFILib : Library { ): Unit fun ffi_xmtpv3_rust_future_free_void(`handle`: Pointer, ): Unit - fun ffi_xmtpv3_rust_future_complete_void(`handle`: Pointer,_uniffi_out_err: RustCallStatus, + fun ffi_xmtpv3_rust_future_complete_void(`handle`: Pointer,_uniffi_out_err: RustCallStatus, ): Unit fun uniffi_xmtpv3_checksum_func_create_client( ): Short @@ -687,8 +683,6 @@ internal interface _UniFFILib : Library { ): Short fun uniffi_xmtpv3_checksum_method_ffigroup_group_metadata( ): Short - fun uniffi_xmtpv3_checksum_method_ffigroup_group_name( - ): Short fun uniffi_xmtpv3_checksum_method_ffigroup_id( ): Short fun uniffi_xmtpv3_checksum_method_ffigroup_is_active( @@ -705,8 +699,6 @@ internal interface _UniFFILib : Library { ): Short fun uniffi_xmtpv3_checksum_method_ffigroup_sync( ): Short - fun uniffi_xmtpv3_checksum_method_ffigroup_update_group_name( - ): Short fun uniffi_xmtpv3_checksum_method_ffigroupmetadata_conversation_type( ): Short fun uniffi_xmtpv3_checksum_method_ffigroupmetadata_creator_account_address( @@ -757,7 +749,7 @@ internal interface _UniFFILib : Library { ): Short fun ffi_xmtpv3_uniffi_contract_version( ): Int - + } private fun uniffiCheckContractApiVersion(lib: _UniFFILib) { @@ -847,9 +839,6 @@ private fun uniffiCheckApiChecksums(lib: _UniFFILib) { if (lib.uniffi_xmtpv3_checksum_method_ffigroup_group_metadata() != 3690.toShort()) { throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") } - if (lib.uniffi_xmtpv3_checksum_method_ffigroup_group_name() != 3391.toShort()) { - throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - } if (lib.uniffi_xmtpv3_checksum_method_ffigroup_id() != 35243.toShort()) { throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") } @@ -874,9 +863,6 @@ private fun uniffiCheckApiChecksums(lib: _UniFFILib) { if (lib.uniffi_xmtpv3_checksum_method_ffigroup_sync() != 9422.toShort()) { throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") } - if (lib.uniffi_xmtpv3_checksum_method_ffigroup_update_group_name() != 29940.toShort()) { - throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") - } if (lib.uniffi_xmtpv3_checksum_method_ffigroupmetadata_conversation_type() != 37015.toShort()) { throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") } @@ -1362,7 +1348,7 @@ class FfiConversations( } } - + @Throws(GenericException::class) @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") override suspend fun `createGroup`(`accountAddresses`: List, `permissions`: GroupPermissions?) : FfiGroup { @@ -1382,7 +1368,7 @@ class FfiConversations( GenericException.ErrorHandler, ) } - + @Throws(GenericException::class) @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") override suspend fun `list`(`opts`: FfiListConversationsOptions) : List { @@ -1402,19 +1388,19 @@ class FfiConversations( GenericException.ErrorHandler, ) } - + @Throws(GenericException::class)override fun `processStreamedWelcomeMessage`(`envelopeBytes`: ByteArray): FfiGroup = callWithPointer { - rustCallWithError(GenericException) { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_fficonversations_process_streamed_welcome_message(it, - FfiConverterByteArray.lower(`envelopeBytes`), - _status) -} + rustCallWithError(GenericException) { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_fficonversations_process_streamed_welcome_message(it, + FfiConverterByteArray.lower(`envelopeBytes`), + _status) + } }.let { FfiConverterTypeFfiGroup.lift(it) } - - + + @Throws(GenericException::class) @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") override suspend fun `stream`(`callback`: FfiConversationCallback) : FfiStreamCloser { @@ -1434,7 +1420,7 @@ class FfiConversations( GenericException.ErrorHandler, ) } - + @Throws(GenericException::class) @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") override suspend fun `streamAllMessages`(`messageCallback`: FfiMessageCallback) : FfiStreamCloser { @@ -1454,7 +1440,7 @@ class FfiConversations( GenericException.ErrorHandler, ) } - + @Throws(GenericException::class) @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") override suspend fun `sync`() { @@ -1462,24 +1448,24 @@ class FfiConversations( callWithPointer { thisPtr -> _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_fficonversations_sync( thisPtr, - - ) + + ) }, { future, continuation -> _UniFFILib.INSTANCE.ffi_xmtpv3_rust_future_poll_void(future, continuation) }, { future, continuation -> _UniFFILib.INSTANCE.ffi_xmtpv3_rust_future_complete_void(future, continuation) }, { future -> _UniFFILib.INSTANCE.ffi_xmtpv3_rust_future_free_void(future) }, // lift function { Unit }, - + // Error FFI converter GenericException.ErrorHandler, ) } - - + + companion object - + } public object FfiConverterTypeFfiConversations: FfiConverter { @@ -1513,8 +1499,7 @@ public interface FfiGroupInterface { fun `addedByAddress`(): String fun `createdAtNs`(): Long@Throws(GenericException::class) fun `findMessages`(`opts`: FfiListMessagesOptions): List@Throws(GenericException::class) - fun `groupMetadata`(): FfiGroupMetadata@Throws(GenericException::class) - fun `groupName`(): String + fun `groupMetadata`(): FfiGroupMetadata fun `id`(): ByteArray@Throws(GenericException::class) fun `isActive`(): Boolean@Throws(GenericException::class) fun `listMembers`(): List@Throws(GenericException::class) @@ -1522,8 +1507,7 @@ public interface FfiGroupInterface { suspend fun `removeMembers`(`accountAddresses`: List)@Throws(GenericException::class) suspend fun `send`(`contentBytes`: ByteArray): ByteArray@Throws(GenericException::class) suspend fun `stream`(`messageCallback`: FfiMessageCallback): FfiStreamCloser@Throws(GenericException::class) - suspend fun `sync`()@Throws(GenericException::class) - suspend fun `updateGroupName`(`groupName`: String) + suspend fun `sync`() companion object } @@ -1545,7 +1529,7 @@ class FfiGroup( } } - + @Throws(GenericException::class) @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") override suspend fun `addMembers`(`accountAddresses`: List) { @@ -1561,106 +1545,94 @@ class FfiGroup( { future -> _UniFFILib.INSTANCE.ffi_xmtpv3_rust_future_free_void(future) }, // lift function { Unit }, - + // Error FFI converter GenericException.ErrorHandler, ) } - + @Throws(GenericException::class)override fun `addedByAddress`(): String = callWithPointer { - rustCallWithError(GenericException) { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroup_added_by_address(it, - - _status) -} + rustCallWithError(GenericException) { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroup_added_by_address(it, + + _status) + } }.let { FfiConverterString.lift(it) } - + override fun `createdAtNs`(): Long = callWithPointer { - rustCall() { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroup_created_at_ns(it, - - _status) -} + rustCall() { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroup_created_at_ns(it, + + _status) + } }.let { FfiConverterLong.lift(it) } - - + + @Throws(GenericException::class)override fun `findMessages`(`opts`: FfiListMessagesOptions): List = callWithPointer { - rustCallWithError(GenericException) { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroup_find_messages(it, - FfiConverterTypeFfiListMessagesOptions.lower(`opts`), - _status) -} + rustCallWithError(GenericException) { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroup_find_messages(it, + FfiConverterTypeFfiListMessagesOptions.lower(`opts`), + _status) + } }.let { FfiConverterSequenceTypeFfiMessage.lift(it) } - - + + @Throws(GenericException::class)override fun `groupMetadata`(): FfiGroupMetadata = callWithPointer { - rustCallWithError(GenericException) { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroup_group_metadata(it, - - _status) -} + rustCallWithError(GenericException) { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroup_group_metadata(it, + + _status) + } }.let { FfiConverterTypeFfiGroupMetadata.lift(it) } - - - @Throws(GenericException::class)override fun `groupName`(): String = - callWithPointer { - rustCallWithError(GenericException) { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroup_group_name(it, - - _status) -} - }.let { - FfiConverterString.lift(it) - } - + override fun `id`(): ByteArray = callWithPointer { - rustCall() { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroup_id(it, - - _status) -} + rustCall() { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroup_id(it, + + _status) + } }.let { FfiConverterByteArray.lift(it) } - - + + @Throws(GenericException::class)override fun `isActive`(): Boolean = callWithPointer { - rustCallWithError(GenericException) { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroup_is_active(it, - - _status) -} + rustCallWithError(GenericException) { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroup_is_active(it, + + _status) + } }.let { FfiConverterBoolean.lift(it) } - - + + @Throws(GenericException::class)override fun `listMembers`(): List = callWithPointer { - rustCallWithError(GenericException) { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroup_list_members(it, - - _status) -} + rustCallWithError(GenericException) { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroup_list_members(it, + + _status) + } }.let { FfiConverterSequenceTypeFfiGroupMember.lift(it) } - - + + @Throws(GenericException::class) @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") override suspend fun `processStreamedGroupMessage`(`envelopeBytes`: ByteArray) : FfiMessage { @@ -1680,7 +1652,7 @@ class FfiGroup( GenericException.ErrorHandler, ) } - + @Throws(GenericException::class) @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") override suspend fun `removeMembers`(`accountAddresses`: List) { @@ -1696,12 +1668,12 @@ class FfiGroup( { future -> _UniFFILib.INSTANCE.ffi_xmtpv3_rust_future_free_void(future) }, // lift function { Unit }, - + // Error FFI converter GenericException.ErrorHandler, ) } - + @Throws(GenericException::class) @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") override suspend fun `send`(`contentBytes`: ByteArray) : ByteArray { @@ -1721,7 +1693,7 @@ class FfiGroup( GenericException.ErrorHandler, ) } - + @Throws(GenericException::class) @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") override suspend fun `stream`(`messageCallback`: FfiMessageCallback) : FfiStreamCloser { @@ -1741,7 +1713,7 @@ class FfiGroup( GenericException.ErrorHandler, ) } - + @Throws(GenericException::class) @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") override suspend fun `sync`() { @@ -1749,45 +1721,24 @@ class FfiGroup( callWithPointer { thisPtr -> _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroup_sync( thisPtr, - - ) - }, - { future, continuation -> _UniFFILib.INSTANCE.ffi_xmtpv3_rust_future_poll_void(future, continuation) }, - { future, continuation -> _UniFFILib.INSTANCE.ffi_xmtpv3_rust_future_complete_void(future, continuation) }, - { future -> _UniFFILib.INSTANCE.ffi_xmtpv3_rust_future_free_void(future) }, - // lift function - { Unit }, - - // Error FFI converter - GenericException.ErrorHandler, - ) - } - - @Throws(GenericException::class) - @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") - override suspend fun `updateGroupName`(`groupName`: String) { - return uniffiRustCallAsync( - callWithPointer { thisPtr -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroup_update_group_name( - thisPtr, - FfiConverterString.lower(`groupName`), - ) + + ) }, { future, continuation -> _UniFFILib.INSTANCE.ffi_xmtpv3_rust_future_poll_void(future, continuation) }, { future, continuation -> _UniFFILib.INSTANCE.ffi_xmtpv3_rust_future_complete_void(future, continuation) }, { future -> _UniFFILib.INSTANCE.ffi_xmtpv3_rust_future_free_void(future) }, // lift function { Unit }, - + // Error FFI converter GenericException.ErrorHandler, ) } - - + + companion object - + } public object FfiConverterTypeFfiGroup: FfiConverter { @@ -1816,7 +1767,7 @@ public object FfiConverterTypeFfiGroup: FfiConverter { public interface FfiGroupMetadataInterface { - + fun `conversationType`(): String fun `creatorAccountAddress`(): String@Throws(GenericException::class) fun `policyType`(): GroupPermissions @@ -1843,43 +1794,43 @@ class FfiGroupMetadata( override fun `conversationType`(): String = callWithPointer { - rustCall() { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroupmetadata_conversation_type(it, - - _status) -} + rustCall() { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroupmetadata_conversation_type(it, + + _status) + } }.let { FfiConverterString.lift(it) } - + override fun `creatorAccountAddress`(): String = callWithPointer { - rustCall() { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroupmetadata_creator_account_address(it, - - _status) -} + rustCall() { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroupmetadata_creator_account_address(it, + + _status) + } }.let { FfiConverterString.lift(it) } - - + + @Throws(GenericException::class)override fun `policyType`(): GroupPermissions = callWithPointer { - rustCallWithError(GenericException) { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroupmetadata_policy_type(it, - - _status) -} + rustCallWithError(GenericException) { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffigroupmetadata_policy_type(it, + + _status) + } }.let { FfiConverterTypeGroupPermissions.lift(it) } - - - + + + companion object - + } public object FfiConverterTypeFfiGroupMetadata: FfiConverter { @@ -1908,7 +1859,7 @@ public object FfiConverterTypeFfiGroupMetadata: FfiConverter - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffistreamcloser_end(it, - - _status) -} + rustCall() { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffistreamcloser_end(it, + + _status) + } } - - + + override fun `isClosed`(): Boolean = callWithPointer { - rustCall() { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffistreamcloser_is_closed(it, - - _status) -} + rustCall() { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffistreamcloser_is_closed(it, + + _status) + } }.let { FfiConverterBoolean.lift(it) } - - - + + + companion object - + } public object FfiConverterTypeFfiStreamCloser: FfiConverter { @@ -2013,7 +1964,7 @@ class FfiV2ApiClient( } } - + @Throws(GenericException::class) @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") override suspend fun `batchQuery`(`req`: FfiV2BatchQueryRequest) : FfiV2BatchQueryResponse { @@ -2033,7 +1984,7 @@ class FfiV2ApiClient( GenericException.ErrorHandler, ) } - + @Throws(GenericException::class) @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") override suspend fun `publish`(`request`: FfiPublishRequest, `authToken`: String) { @@ -2049,12 +2000,12 @@ class FfiV2ApiClient( { future -> _UniFFILib.INSTANCE.ffi_xmtpv3_rust_future_free_void(future) }, // lift function { Unit }, - + // Error FFI converter GenericException.ErrorHandler, ) } - + @Throws(GenericException::class) @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") override suspend fun `query`(`request`: FfiV2QueryRequest) : FfiV2QueryResponse { @@ -2076,15 +2027,15 @@ class FfiV2ApiClient( } override fun `setAppVersion`(`version`: String) = callWithPointer { - rustCall() { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffiv2apiclient_set_app_version(it, - FfiConverterString.lower(`version`), - _status) -} + rustCall() { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffiv2apiclient_set_app_version(it, + FfiConverterString.lower(`version`), + _status) + } } - - - + + + @Throws(GenericException::class) @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") override suspend fun `subscribe`(`request`: FfiV2SubscribeRequest) : FfiV2Subscription { @@ -2104,11 +2055,11 @@ class FfiV2ApiClient( GenericException.ErrorHandler, ) } - - + + companion object - + } public object FfiConverterTypeFfiV2ApiClient: FfiConverter { @@ -2137,7 +2088,7 @@ public object FfiConverterTypeFfiV2ApiClient: FfiConverter _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffiv2subscription_end( thisPtr, - - ) + + ) }, { future, continuation -> _UniFFILib.INSTANCE.ffi_xmtpv3_rust_future_poll_void(future, continuation) }, { future, continuation -> _UniFFILib.INSTANCE.ffi_xmtpv3_rust_future_complete_void(future, continuation) }, { future -> _UniFFILib.INSTANCE.ffi_xmtpv3_rust_future_free_void(future) }, // lift function { Unit }, - + // Error FFI converter NullCallStatusErrorHandler, ) } - + @Throws(GenericException::class) @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") override suspend fun `next`() : FfiEnvelope { @@ -2190,8 +2141,8 @@ class FfiV2Subscription( callWithPointer { thisPtr -> _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffiv2subscription_next( thisPtr, - - ) + + ) }, { future, continuation -> _UniFFILib.INSTANCE.ffi_xmtpv3_rust_future_poll_rust_buffer(future, continuation) }, { future, continuation -> _UniFFILib.INSTANCE.ffi_xmtpv3_rust_future_complete_rust_buffer(future, continuation) }, @@ -2202,7 +2153,7 @@ class FfiV2Subscription( GenericException.ErrorHandler, ) } - + @Throws(GenericException::class) @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") override suspend fun `update`(`req`: FfiV2SubscribeRequest) { @@ -2218,16 +2169,16 @@ class FfiV2Subscription( { future -> _UniFFILib.INSTANCE.ffi_xmtpv3_rust_future_free_void(future) }, // lift function { Unit }, - + // Error FFI converter GenericException.ErrorHandler, ) } - - + + companion object - + } public object FfiConverterTypeFfiV2Subscription: FfiConverter { @@ -2256,7 +2207,7 @@ public object FfiConverterTypeFfiV2Subscription: FfiConverter): List fun `conversations`(): FfiConversations @@ -2286,16 +2237,16 @@ class FfiXmtpClient( override fun `accountAddress`(): String = callWithPointer { - rustCall() { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffixmtpclient_account_address(it, - - _status) -} + rustCall() { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffixmtpclient_account_address(it, + + _status) + } }.let { FfiConverterString.lift(it) } - - + + @Throws(GenericException::class) @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") override suspend fun `canMessage`(`accountAddresses`: List) : List { @@ -2317,27 +2268,27 @@ class FfiXmtpClient( } override fun `conversations`(): FfiConversations = callWithPointer { - rustCall() { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffixmtpclient_conversations(it, - - _status) -} + rustCall() { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffixmtpclient_conversations(it, + + _status) + } }.let { FfiConverterTypeFfiConversations.lift(it) } - + override fun `installationId`(): ByteArray = callWithPointer { - rustCall() { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffixmtpclient_installation_id(it, - - _status) -} + rustCall() { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffixmtpclient_installation_id(it, + + _status) + } }.let { FfiConverterByteArray.lift(it) } - - + + @Throws(GenericException::class) @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") override suspend fun `registerIdentity`(`recoverableWalletSignature`: ByteArray?) { @@ -2353,27 +2304,27 @@ class FfiXmtpClient( { future -> _UniFFILib.INSTANCE.ffi_xmtpv3_rust_future_free_void(future) }, // lift function { Unit }, - + // Error FFI converter GenericException.ErrorHandler, ) } override fun `textToSign`(): String? = callWithPointer { - rustCall() { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffixmtpclient_text_to_sign(it, - - _status) -} + rustCall() { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_method_ffixmtpclient_text_to_sign(it, + + _status) + } }.let { FfiConverterOptionalString.lift(it) } - - - + + + companion object - + } public object FfiConverterTypeFfiXmtpClient: FfiConverter { @@ -2402,10 +2353,10 @@ public object FfiConverterTypeFfiXmtpClient: FfiConverter { override fun allocationSize(value: FfiCursor) = ( FfiConverterByteArray.allocationSize(value.`digest`) + - FfiConverterULong.allocationSize(value.`senderTimeNs`) - ) + FfiConverterULong.allocationSize(value.`senderTimeNs`) + ) override fun write(value: FfiCursor, buf: ByteBuffer) { - FfiConverterByteArray.write(value.`digest`, buf) - FfiConverterULong.write(value.`senderTimeNs`, buf) + FfiConverterByteArray.write(value.`digest`, buf) + FfiConverterULong.write(value.`senderTimeNs`, buf) } } @@ -2432,11 +2383,11 @@ public object FfiConverterTypeFfiCursor: FfiConverterRustBuffer { data class FfiEnvelope ( - var `contentTopic`: String, - var `timestampNs`: ULong, + var `contentTopic`: String, + var `timestampNs`: ULong, var `message`: ByteArray ) { - + companion object } @@ -2451,14 +2402,14 @@ public object FfiConverterTypeFfiEnvelope: FfiConverterRustBuffer { override fun allocationSize(value: FfiEnvelope) = ( FfiConverterString.allocationSize(value.`contentTopic`) + - FfiConverterULong.allocationSize(value.`timestampNs`) + - FfiConverterByteArray.allocationSize(value.`message`) - ) + FfiConverterULong.allocationSize(value.`timestampNs`) + + FfiConverterByteArray.allocationSize(value.`message`) + ) override fun write(value: FfiEnvelope, buf: ByteBuffer) { - FfiConverterString.write(value.`contentTopic`, buf) - FfiConverterULong.write(value.`timestampNs`, buf) - FfiConverterByteArray.write(value.`message`, buf) + FfiConverterString.write(value.`contentTopic`, buf) + FfiConverterULong.write(value.`timestampNs`, buf) + FfiConverterByteArray.write(value.`message`, buf) } } @@ -2466,10 +2417,10 @@ public object FfiConverterTypeFfiEnvelope: FfiConverterRustBuffer { data class FfiGroupMember ( - var `accountAddress`: String, + var `accountAddress`: String, var `installationIds`: List ) { - + companion object } @@ -2483,12 +2434,12 @@ public object FfiConverterTypeFfiGroupMember: FfiConverterRustBuffer { override fun allocationSize(value: FfiMessage) = ( FfiConverterByteArray.allocationSize(value.`id`) + - FfiConverterLong.allocationSize(value.`sentAtNs`) + - FfiConverterByteArray.allocationSize(value.`convoId`) + - FfiConverterString.allocationSize(value.`addrFrom`) + - FfiConverterByteArray.allocationSize(value.`content`) + - FfiConverterTypeFfiGroupMessageKind.allocationSize(value.`kind`) + - FfiConverterTypeFfiDeliveryStatus.allocationSize(value.`deliveryStatus`) - ) + FfiConverterLong.allocationSize(value.`sentAtNs`) + + FfiConverterByteArray.allocationSize(value.`convoId`) + + FfiConverterString.allocationSize(value.`addrFrom`) + + FfiConverterByteArray.allocationSize(value.`content`) + + FfiConverterTypeFfiGroupMessageKind.allocationSize(value.`kind`) + + FfiConverterTypeFfiDeliveryStatus.allocationSize(value.`deliveryStatus`) + ) override fun write(value: FfiMessage, buf: ByteBuffer) { - FfiConverterByteArray.write(value.`id`, buf) - FfiConverterLong.write(value.`sentAtNs`, buf) - FfiConverterByteArray.write(value.`convoId`, buf) - FfiConverterString.write(value.`addrFrom`, buf) - FfiConverterByteArray.write(value.`content`, buf) - FfiConverterTypeFfiGroupMessageKind.write(value.`kind`, buf) - FfiConverterTypeFfiDeliveryStatus.write(value.`deliveryStatus`, buf) + FfiConverterByteArray.write(value.`id`, buf) + FfiConverterLong.write(value.`sentAtNs`, buf) + FfiConverterByteArray.write(value.`convoId`, buf) + FfiConverterString.write(value.`addrFrom`, buf) + FfiConverterByteArray.write(value.`content`, buf) + FfiConverterTypeFfiGroupMessageKind.write(value.`kind`, buf) + FfiConverterTypeFfiDeliveryStatus.write(value.`deliveryStatus`, buf) } } @@ -2618,11 +2569,11 @@ public object FfiConverterTypeFfiMessage: FfiConverterRustBuffer { data class FfiPagingInfo ( - var `limit`: UInt, - var `cursor`: FfiCursor?, + var `limit`: UInt, + var `cursor`: FfiCursor?, var `direction`: FfiSortDirection ) { - + companion object } @@ -2637,14 +2588,14 @@ public object FfiConverterTypeFfiPagingInfo: FfiConverterRustBuffer ) { - + companion object } @@ -2667,10 +2618,10 @@ public object FfiConverterTypeFfiPublishRequest: FfiConverterRustBuffer ) { - + companion object } @@ -2693,10 +2644,10 @@ public object FfiConverterTypeFfiV2BatchQueryRequest: FfiConverterRustBuffer ) { - + companion object } @@ -2719,10 +2670,10 @@ public object FfiConverterTypeFfiV2BatchQueryResponse: FfiConverterRustBuffer, - var `startTimeNs`: ULong, - var `endTimeNs`: ULong, + var `contentTopics`: List, + var `startTimeNs`: ULong, + var `endTimeNs`: ULong, var `pagingInfo`: FfiPagingInfo? ) { - + companion object } @@ -2751,16 +2702,16 @@ public object FfiConverterTypeFfiV2QueryRequest: FfiConverterRustBuffer, + var `envelopes`: List, var `pagingInfo`: FfiPagingInfo? ) { - + companion object } @@ -2785,12 +2736,12 @@ public object FfiConverterTypeFfiV2QueryResponse: FfiConverterRustBuffer ) { - + companion object } @@ -2813,10 +2764,10 @@ public object FfiConverterTypeFfiV2SubscribeRequest: FfiConverterRustBuffer { override fun lift(error_buf: RustBuffer.ByValue): GenericException = FfiConverterTypeGenericError.lift(error_buf) @@ -2916,8 +2867,8 @@ sealed class GenericException(message: String): Exception(message) { public object FfiConverterTypeGenericError : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): GenericException { - - return when(buf.getInt()) { + + return when(buf.getInt()) { 1 -> GenericException.Client(FfiConverterString.read(buf)) 2 -> GenericException.ClientBuilder(FfiConverterString.read(buf)) 3 -> GenericException.Storage(FfiConverterString.read(buf)) @@ -2928,7 +2879,7 @@ public object FfiConverterTypeGenericError : FfiConverterRustBuffer GenericException.Generic(FfiConverterString.read(buf)) else -> throw RuntimeException("invalid error enum value, something is very wrong!!") } - + } override fun allocationSize(value: GenericException): Int { @@ -3027,10 +2978,10 @@ public object FfiConverterTypeLegacyIdentitySource: FfiConverterRustBuffer { override fun lift(error_buf: RustBuffer.ByValue): SigningException = FfiConverterTypeSigningError.lift(error_buf) @@ -3039,12 +2990,12 @@ sealed class SigningException(message: String): Exception(message) { public object FfiConverterTypeSigningError : FfiConverterRustBuffer { override fun read(buf: ByteBuffer): SigningException { - - return when(buf.getInt()) { + + return when(buf.getInt()) { 1 -> SigningException.Generic(FfiConverterString.read(buf)) else -> throw RuntimeException("invalid error enum value, something is very wrong!!") } - + } override fun allocationSize(value: SigningException): Int { @@ -3077,12 +3028,12 @@ internal class ConcurrentHandleMap( fun insert(obj: T): Handle = lock.withLock { rightMap[obj] ?: - currentHandle.getAndAdd(stride) - .also { handle -> - leftMap[handle] = obj - rightMap[obj] = handle - } - } + currentHandle.getAndAdd(stride) + .also { handle -> + leftMap[handle] = obj + rightMap[obj] = handle + } + } fun get(handle: Handle) = lock.withLock { leftMap[handle] @@ -3148,7 +3099,7 @@ public abstract class FfiConverterCallbackInterface( public interface FfiConversationCallback { fun `onConversation`(`conversation`: FfiGroup) - + companion object } @@ -3180,7 +3131,7 @@ internal class ForeignCallbackTypeFfiConversationCallback : ForeignCallback { UNIFFI_CALLBACK_UNEXPECTED_ERROR } } - + else -> { // An unexpected error happened. // See docs of ForeignCallback in `uniffi_core/src/ffi/foreigncallbacks.rs` @@ -3195,7 +3146,7 @@ internal class ForeignCallbackTypeFfiConversationCallback : ForeignCallback { } } - + @Suppress("UNUSED_PARAMETER") private fun `invokeOnConversation`(kotlinCallbackInterface: FfiConversationCallback, argsData: Pointer, argsLen: Int, outBuf: RustBufferByReference): Int { val argsBuf = argsData.getByteBuffer(0, argsLen.toLong()).also { @@ -3211,7 +3162,7 @@ internal class ForeignCallbackTypeFfiConversationCallback : ForeignCallback { return makeCallAndHandleError() } - + } // The ffiConverter which transforms the Callbacks in to Handles to pass to Rust. @@ -3235,7 +3186,7 @@ public object FfiConverterTypeFfiConversationCallback: FfiConverterCallbackInter public interface FfiInboxOwner { fun `getAddress`(): String fun `sign`(`text`: String): ByteArray - + companion object } @@ -3283,7 +3234,7 @@ internal class ForeignCallbackTypeFfiInboxOwner : ForeignCallback { UNIFFI_CALLBACK_UNEXPECTED_ERROR } } - + else -> { // An unexpected error happened. // See docs of ForeignCallback in `uniffi_core/src/ffi/foreigncallbacks.rs` @@ -3298,7 +3249,7 @@ internal class ForeignCallbackTypeFfiInboxOwner : ForeignCallback { } } - + @Suppress("UNUSED_PARAMETER") private fun `invokeGetAddress`(kotlinCallbackInterface: FfiInboxOwner, argsData: Pointer, argsLen: Int, outBuf: RustBufferByReference): Int { fun makeCall() : Int { @@ -3311,7 +3262,7 @@ internal class ForeignCallbackTypeFfiInboxOwner : ForeignCallback { return makeCallAndHandleError() } - + @Suppress("UNUSED_PARAMETER") private fun `invokeSign`(kotlinCallbackInterface: FfiInboxOwner, argsData: Pointer, argsLen: Int, outBuf: RustBufferByReference): Int { val argsBuf = argsData.getByteBuffer(0, argsLen.toLong()).also { @@ -3320,7 +3271,7 @@ internal class ForeignCallbackTypeFfiInboxOwner : ForeignCallback { fun makeCall() : Int { val returnValue = kotlinCallbackInterface.`sign`( FfiConverterString.read(argsBuf) - + ) outBuf.setValue(FfiConverterByteArray.lowerIntoRustBuffer(returnValue)) return UNIFFI_CALLBACK_SUCCESS @@ -3335,7 +3286,7 @@ internal class ForeignCallbackTypeFfiInboxOwner : ForeignCallback { return makeCallAndHandleError() } - + } // The ffiConverter which transforms the Callbacks in to Handles to pass to Rust. @@ -3358,7 +3309,7 @@ public object FfiConverterTypeFfiInboxOwner: FfiConverterCallbackInterface { // An unexpected error happened. // See docs of ForeignCallback in `uniffi_core/src/ffi/foreigncallbacks.rs` @@ -3405,7 +3356,7 @@ internal class ForeignCallbackTypeFfiLogger : ForeignCallback { } } - + @Suppress("UNUSED_PARAMETER") private fun `invokeLog`(kotlinCallbackInterface: FfiLogger, argsData: Pointer, argsLen: Int, outBuf: RustBufferByReference): Int { val argsBuf = argsData.getByteBuffer(0, argsLen.toLong()).also { @@ -3413,8 +3364,8 @@ internal class ForeignCallbackTypeFfiLogger : ForeignCallback { } fun makeCall() : Int { kotlinCallbackInterface.`log`( - FfiConverterUInt.read(argsBuf), - FfiConverterString.read(argsBuf), + FfiConverterUInt.read(argsBuf), + FfiConverterString.read(argsBuf), FfiConverterString.read(argsBuf) ) return UNIFFI_CALLBACK_SUCCESS @@ -3423,7 +3374,7 @@ internal class ForeignCallbackTypeFfiLogger : ForeignCallback { return makeCallAndHandleError() } - + } // The ffiConverter which transforms the Callbacks in to Handles to pass to Rust. @@ -3446,7 +3397,7 @@ public object FfiConverterTypeFfiLogger: FfiConverterCallbackInterface { // An unexpected error happened. // See docs of ForeignCallback in `uniffi_core/src/ffi/foreigncallbacks.rs` @@ -3493,7 +3444,7 @@ internal class ForeignCallbackTypeFfiMessageCallback : ForeignCallback { } } - + @Suppress("UNUSED_PARAMETER") private fun `invokeOnMessage`(kotlinCallbackInterface: FfiMessageCallback, argsData: Pointer, argsLen: Int, outBuf: RustBufferByReference): Int { val argsBuf = argsData.getByteBuffer(0, argsLen.toLong()).also { @@ -3509,7 +3460,7 @@ internal class ForeignCallbackTypeFfiMessageCallback : ForeignCallback { return makeCallAndHandleError() } - + } // The ffiConverter which transforms the Callbacks in to Handles to pass to Rust. @@ -3988,105 +3939,105 @@ suspend fun `createV2Client`(`host`: String, `isSecure`: Boolean) : FfiV2ApiClie fun `diffieHellmanK256`(`privateKeyBytes`: ByteArray, `publicKeyBytes`: ByteArray): ByteArray { return FfiConverterByteArray.lift( - rustCallWithError(GenericException) { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_diffie_hellman_k256(FfiConverterByteArray.lower(`privateKeyBytes`),FfiConverterByteArray.lower(`publicKeyBytes`),_status) -}) + rustCallWithError(GenericException) { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_diffie_hellman_k256(FfiConverterByteArray.lower(`privateKeyBytes`),FfiConverterByteArray.lower(`publicKeyBytes`),_status) + }) } @Throws(GenericException::class) fun `generatePrivatePreferencesTopicIdentifier`(`privateKey`: ByteArray): String { return FfiConverterString.lift( - rustCallWithError(GenericException) { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_generate_private_preferences_topic_identifier(FfiConverterByteArray.lower(`privateKey`),_status) -}) + rustCallWithError(GenericException) { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_generate_private_preferences_topic_identifier(FfiConverterByteArray.lower(`privateKey`),_status) + }) } fun `getVersionInfo`(): String { return FfiConverterString.lift( - rustCall() { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_get_version_info(_status) -}) + rustCall() { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_get_version_info(_status) + }) } fun `keccak256`(`input`: ByteArray): ByteArray { return FfiConverterByteArray.lift( - rustCall() { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_keccak256(FfiConverterByteArray.lower(`input`),_status) -}) + rustCall() { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_keccak256(FfiConverterByteArray.lower(`input`),_status) + }) } @Throws(GenericException::class) fun `publicKeyFromPrivateKeyK256`(`privateKeyBytes`: ByteArray): ByteArray { return FfiConverterByteArray.lift( - rustCallWithError(GenericException) { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_public_key_from_private_key_k256(FfiConverterByteArray.lower(`privateKeyBytes`),_status) -}) + rustCallWithError(GenericException) { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_public_key_from_private_key_k256(FfiConverterByteArray.lower(`privateKeyBytes`),_status) + }) } @Throws(GenericException::class) fun `recoverAddress`(`signatureBytes`: ByteArray, `predigestMessage`: String): String { return FfiConverterString.lift( - rustCallWithError(GenericException) { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_recover_address(FfiConverterByteArray.lower(`signatureBytes`),FfiConverterString.lower(`predigestMessage`),_status) -}) + rustCallWithError(GenericException) { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_recover_address(FfiConverterByteArray.lower(`signatureBytes`),FfiConverterString.lower(`predigestMessage`),_status) + }) } @Throws(GenericException::class) fun `recoverPublicKeyK256Keccak256`(`message`: ByteArray, `signature`: ByteArray): ByteArray { return FfiConverterByteArray.lift( - rustCallWithError(GenericException) { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_recover_public_key_k256_keccak256(FfiConverterByteArray.lower(`message`),FfiConverterByteArray.lower(`signature`),_status) -}) + rustCallWithError(GenericException) { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_recover_public_key_k256_keccak256(FfiConverterByteArray.lower(`message`),FfiConverterByteArray.lower(`signature`),_status) + }) } @Throws(GenericException::class) fun `recoverPublicKeyK256Sha256`(`message`: ByteArray, `signature`: ByteArray): ByteArray { return FfiConverterByteArray.lift( - rustCallWithError(GenericException) { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_recover_public_key_k256_sha256(FfiConverterByteArray.lower(`message`),FfiConverterByteArray.lower(`signature`),_status) -}) + rustCallWithError(GenericException) { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_recover_public_key_k256_sha256(FfiConverterByteArray.lower(`message`),FfiConverterByteArray.lower(`signature`),_status) + }) } fun `sha256`(`input`: ByteArray): ByteArray { return FfiConverterByteArray.lift( - rustCall() { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_sha256(FfiConverterByteArray.lower(`input`),_status) -}) + rustCall() { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_sha256(FfiConverterByteArray.lower(`input`),_status) + }) } @Throws(GenericException::class) fun `userPreferencesDecrypt`(`publicKey`: ByteArray, `privateKey`: ByteArray, `message`: ByteArray): ByteArray { return FfiConverterByteArray.lift( - rustCallWithError(GenericException) { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_user_preferences_decrypt(FfiConverterByteArray.lower(`publicKey`),FfiConverterByteArray.lower(`privateKey`),FfiConverterByteArray.lower(`message`),_status) -}) + rustCallWithError(GenericException) { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_user_preferences_decrypt(FfiConverterByteArray.lower(`publicKey`),FfiConverterByteArray.lower(`privateKey`),FfiConverterByteArray.lower(`message`),_status) + }) } @Throws(GenericException::class) fun `userPreferencesEncrypt`(`publicKey`: ByteArray, `privateKey`: ByteArray, `message`: ByteArray): ByteArray { return FfiConverterByteArray.lift( - rustCallWithError(GenericException) { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_user_preferences_encrypt(FfiConverterByteArray.lower(`publicKey`),FfiConverterByteArray.lower(`privateKey`),FfiConverterByteArray.lower(`message`),_status) -}) + rustCallWithError(GenericException) { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_user_preferences_encrypt(FfiConverterByteArray.lower(`publicKey`),FfiConverterByteArray.lower(`privateKey`),FfiConverterByteArray.lower(`message`),_status) + }) } @Throws(GenericException::class) fun `verifyK256Sha256`(`signedBy`: ByteArray, `message`: ByteArray, `signature`: ByteArray, `recoveryId`: UByte): Boolean { return FfiConverterBoolean.lift( - rustCallWithError(GenericException) { _status -> - _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_verify_k256_sha256(FfiConverterByteArray.lower(`signedBy`),FfiConverterByteArray.lower(`message`),FfiConverterByteArray.lower(`signature`),FfiConverterUByte.lower(`recoveryId`),_status) -}) + rustCallWithError(GenericException) { _status -> + _UniFFILib.INSTANCE.uniffi_xmtpv3_fn_func_verify_k256_sha256(FfiConverterByteArray.lower(`signedBy`),FfiConverterByteArray.lower(`message`),FfiConverterByteArray.lower(`signature`),FfiConverterUByte.lower(`recoveryId`),_status) + }) } diff --git a/library/src/main/jniLibs/arm64-v8a/libuniffi_xmtpv3.so b/library/src/main/jniLibs/arm64-v8a/libuniffi_xmtpv3.so index ff9a62430..e4ba548c4 100755 Binary files a/library/src/main/jniLibs/arm64-v8a/libuniffi_xmtpv3.so and b/library/src/main/jniLibs/arm64-v8a/libuniffi_xmtpv3.so differ diff --git a/library/src/main/jniLibs/armeabi-v7a/libuniffi_xmtpv3.so b/library/src/main/jniLibs/armeabi-v7a/libuniffi_xmtpv3.so index 05e89ab67..0323ae2b3 100755 Binary files a/library/src/main/jniLibs/armeabi-v7a/libuniffi_xmtpv3.so and b/library/src/main/jniLibs/armeabi-v7a/libuniffi_xmtpv3.so differ diff --git a/library/src/main/jniLibs/x86/libuniffi_xmtpv3.so b/library/src/main/jniLibs/x86/libuniffi_xmtpv3.so index 97538064e..8aa403508 100755 Binary files a/library/src/main/jniLibs/x86/libuniffi_xmtpv3.so and b/library/src/main/jniLibs/x86/libuniffi_xmtpv3.so differ diff --git a/library/src/main/jniLibs/x86_64/libuniffi_xmtpv3.so b/library/src/main/jniLibs/x86_64/libuniffi_xmtpv3.so index b46486d0a..f8416b836 100755 Binary files a/library/src/main/jniLibs/x86_64/libuniffi_xmtpv3.so and b/library/src/main/jniLibs/x86_64/libuniffi_xmtpv3.so differ