diff --git a/cpp/generated/matrix_sdk_ffi.cpp b/cpp/generated/matrix_sdk_ffi.cpp index 3793006..433f1a6 100644 --- a/cpp/generated/matrix_sdk_ffi.cpp +++ b/cpp/generated/matrix_sdk_ffi.cpp @@ -167,7 +167,7 @@ typedef void (*UniffiCallbackInterfaceSendQueueRoomErrorListenerMethod0)( void *uniffi_out_return, RustCallStatus *rust_call_status); typedef void ( *UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod0)( - uint64_t uniffi_handle, void *uniffi_out_return, + uint64_t uniffi_handle, RustBuffer details, void *uniffi_out_return, RustCallStatus *rust_call_status); typedef void ( *UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod1)( @@ -175,11 +175,11 @@ typedef void ( RustCallStatus *rust_call_status); typedef void ( *UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod2)( - uint64_t uniffi_handle, RustBuffer data, void *uniffi_out_return, + uint64_t uniffi_handle, void *uniffi_out_return, RustCallStatus *rust_call_status); typedef void ( *UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod3)( - uint64_t uniffi_handle, void *uniffi_out_return, + uint64_t uniffi_handle, RustBuffer data, void *uniffi_out_return, RustCallStatus *rust_call_status); typedef void ( *UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod4)( @@ -189,6 +189,10 @@ typedef void ( *UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod5)( uint64_t uniffi_handle, void *uniffi_out_return, RustCallStatus *rust_call_status); +typedef void ( + *UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod6)( + uint64_t uniffi_handle, void *uniffi_out_return, + RustCallStatus *rust_call_status); typedef void (*UniffiCallbackInterfaceSyncServiceStateObserverMethod0)( uint64_t uniffi_handle, RustBuffer state, void *uniffi_out_return, RustCallStatus *rust_call_status); @@ -291,15 +295,17 @@ typedef struct UniffiVTableCallbackInterfaceSendQueueRoomErrorListener { typedef struct UniffiVTableCallbackInterfaceSessionVerificationControllerDelegate { UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod0 - did_accept_verification_request; + did_receive_verification_request; UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod1 - did_start_sas_verification; + did_accept_verification_request; UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod2 + did_start_sas_verification; + UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod3 did_receive_verification_data; - UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod3 did_fail; - UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod4 - did_cancel; + UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod4 did_fail; UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod5 + did_cancel; + UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod6 did_finish; UniffiCallbackInterfaceFree uniffi_free; } UniffiVTableCallbackInterfaceSessionVerificationControllerDelegate; @@ -350,7 +356,7 @@ void *uniffi_matrix_sdk_ffi_fn_clone_client(void *ptr, RustCallStatus *uniffi_out_err); void uniffi_matrix_sdk_ffi_fn_free_client(void *ptr, RustCallStatus *uniffi_out_err); -/*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_client_abort_oidc_login( +/*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_client_abort_oidc_auth( void *ptr, void *authorization_data); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_client_account_data(void *ptr, @@ -373,6 +379,8 @@ int8_t uniffi_matrix_sdk_ffi_fn_method_client_can_deactivate_account( /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_client_create_room(void *ptr, RustBuffer request); +/*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_client_create_room_alias( + void *ptr, RustBuffer room_alias, RustBuffer room_id); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_client_custom_login_with_jwt( void *ptr, RustBuffer jwt, RustBuffer initial_device_name, @@ -397,7 +405,7 @@ RustBuffer uniffi_matrix_sdk_ffi_fn_method_client_get_dm_room( uniffi_matrix_sdk_ffi_fn_method_client_get_media_content(void *ptr, void *media_source); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_client_get_media_file( - void *ptr, void *media_source, RustBuffer body, RustBuffer mime_type, + void *ptr, void *media_source, RustBuffer filename, RustBuffer mime_type, int8_t use_cache, RustBuffer temp_dir); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_client_get_media_thumbnail( void *ptr, void *media_source, uint64_t width, uint64_t height); @@ -429,11 +437,17 @@ uniffi_matrix_sdk_ffi_fn_method_client_ignore_user(void *ptr, /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_client_ignored_users(void *ptr); /*handle*/ uint64_t +uniffi_matrix_sdk_ffi_fn_method_client_is_room_alias_available( + void *ptr, RustBuffer alias); +/*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_client_join_room_by_id(void *ptr, RustBuffer room_id); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_client_join_room_by_id_or_alias( void *ptr, RustBuffer room_id_or_alias, RustBuffer server_names); +/*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_client_knock( + void *ptr, RustBuffer room_id_or_alias, RustBuffer reason, + RustBuffer server_names); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_client_login( void *ptr, RustBuffer username, RustBuffer password, RustBuffer initial_device_name, RustBuffer device_id); @@ -455,6 +469,9 @@ uniffi_matrix_sdk_ffi_fn_method_client_reset_server_capabilities(void *ptr); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_client_restore_session(void *ptr, RustBuffer session); +/*handle*/ uint64_t +uniffi_matrix_sdk_ffi_fn_method_client_room_alias_exists(void *ptr, + RustBuffer room_alias); void *uniffi_matrix_sdk_ffi_fn_method_client_room_directory_search( void *ptr, RustCallStatus *uniffi_out_err); RustBuffer @@ -500,8 +517,8 @@ uniffi_matrix_sdk_ffi_fn_method_client_unignore_user(void *ptr, /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_client_upload_media( void *ptr, RustBuffer mime_type, RustBuffer data, RustBuffer progress_watcher); -/*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc_login( - void *ptr, RustBuffer oidc_configuration); +/*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc( + void *ptr, RustBuffer oidc_configuration, RustBuffer prompt); RustBuffer uniffi_matrix_sdk_ffi_fn_method_client_user_id(void *ptr, RustCallStatus *uniffi_out_err); @@ -531,6 +548,9 @@ uniffi_matrix_sdk_ffi_fn_method_clientbuilder_build_with_qr_code( void *ptr, void *qr_code_data, RustBuffer oidc_configuration, uint64_t progress_listener); void * +uniffi_matrix_sdk_ffi_fn_method_clientbuilder_cross_process_store_locks_holder_name( + void *ptr, RustBuffer holder_name, RustCallStatus *uniffi_out_err); +void * uniffi_matrix_sdk_ffi_fn_method_clientbuilder_disable_automatic_token_refresh( void *ptr, RustCallStatus *uniffi_out_err); void * @@ -538,10 +558,8 @@ uniffi_matrix_sdk_ffi_fn_method_clientbuilder_disable_built_in_root_certificates void *ptr, RustCallStatus *uniffi_out_err); void *uniffi_matrix_sdk_ffi_fn_method_clientbuilder_disable_ssl_verification( void *ptr, RustCallStatus *uniffi_out_err); -void * -uniffi_matrix_sdk_ffi_fn_method_clientbuilder_enable_cross_process_refresh_lock( - void *ptr, RustBuffer process_id, uint64_t session_delegate, - RustCallStatus *uniffi_out_err); +void *uniffi_matrix_sdk_ffi_fn_method_clientbuilder_enable_oidc_refresh_lock( + void *ptr, RustCallStatus *uniffi_out_err); void *uniffi_matrix_sdk_ffi_fn_method_clientbuilder_homeserver_url( void *ptr, RustBuffer url, RustCallStatus *uniffi_out_err); void *uniffi_matrix_sdk_ffi_fn_method_clientbuilder_passphrase( @@ -594,9 +612,6 @@ uniffi_matrix_sdk_ffi_fn_method_encryption_enable_backups(void *ptr); void *ptr, int8_t wait_for_backups_to_upload, RustBuffer passphrase, uint64_t progress_listener); /*handle*/ uint64_t -uniffi_matrix_sdk_ffi_fn_method_encryption_get_user_identity( - void *ptr, RustBuffer user_id); -/*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_encryption_is_last_device(void *ptr); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_encryption_recover(void *ptr, @@ -612,6 +627,9 @@ void *uniffi_matrix_sdk_ffi_fn_method_encryption_recovery_state_listener( uniffi_matrix_sdk_ffi_fn_method_encryption_reset_identity(void *ptr); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_encryption_reset_recovery_key(void *ptr); +/*handle*/ uint64_t +uniffi_matrix_sdk_ffi_fn_method_encryption_user_identity(void *ptr, + RustBuffer user_id); RustBuffer uniffi_matrix_sdk_ffi_fn_method_encryption_verification_state( void *ptr, RustCallStatus *uniffi_out_err); void *uniffi_matrix_sdk_ffi_fn_method_encryption_verification_state_listener( @@ -622,19 +640,6 @@ uniffi_matrix_sdk_ffi_fn_method_encryption_wait_for_backup_upload_steady_state( /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_encryption_wait_for_e2ee_initialization_tasks( void *ptr); -void *uniffi_matrix_sdk_ffi_fn_clone_eventshieldsprovider( - void *ptr, RustCallStatus *uniffi_out_err); -void uniffi_matrix_sdk_ffi_fn_free_eventshieldsprovider( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_matrix_sdk_ffi_fn_method_eventshieldsprovider_get_shields( - void *ptr, int8_t strict, RustCallStatus *uniffi_out_err); -void *uniffi_matrix_sdk_ffi_fn_clone_eventtimelineitemdebuginfoprovider( - void *ptr, RustCallStatus *uniffi_out_err); -void uniffi_matrix_sdk_ffi_fn_free_eventtimelineitemdebuginfoprovider( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_matrix_sdk_ffi_fn_method_eventtimelineitemdebuginfoprovider_get( - void *ptr, RustCallStatus *uniffi_out_err); void *uniffi_matrix_sdk_ffi_fn_clone_homeserverlogindetails( void *ptr, RustCallStatus *uniffi_out_err); void uniffi_matrix_sdk_ffi_fn_free_homeserverlogindetails( @@ -642,6 +647,9 @@ void uniffi_matrix_sdk_ffi_fn_free_homeserverlogindetails( RustBuffer uniffi_matrix_sdk_ffi_fn_method_homeserverlogindetails_sliding_sync_version( void *ptr, RustCallStatus *uniffi_out_err); +RustBuffer +uniffi_matrix_sdk_ffi_fn_method_homeserverlogindetails_supported_oidc_prompts( + void *ptr, RustCallStatus *uniffi_out_err); int8_t uniffi_matrix_sdk_ffi_fn_method_homeserverlogindetails_supports_oidc_login( void *ptr, RustCallStatus *uniffi_out_err); @@ -670,6 +678,17 @@ RustBuffer uniffi_matrix_sdk_ffi_fn_method_inreplytodetails_event( void *ptr, RustCallStatus *uniffi_out_err); RustBuffer uniffi_matrix_sdk_ffi_fn_method_inreplytodetails_event_id( void *ptr, RustCallStatus *uniffi_out_err); +void *uniffi_matrix_sdk_ffi_fn_clone_lazytimelineitemprovider( + void *ptr, RustCallStatus *uniffi_out_err); +void uniffi_matrix_sdk_ffi_fn_free_lazytimelineitemprovider( + void *ptr, RustCallStatus *uniffi_out_err); +RustBuffer uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_debug_info( + void *ptr, RustCallStatus *uniffi_out_err); +RustBuffer +uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_get_send_handle( + void *ptr, RustCallStatus *uniffi_out_err); +RustBuffer uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_get_shields( + void *ptr, int8_t strict, RustCallStatus *uniffi_out_err); void * uniffi_matrix_sdk_ffi_fn_clone_mediafilehandle(void *ptr, RustCallStatus *uniffi_out_err); @@ -823,7 +842,7 @@ uniffi_matrix_sdk_ffi_fn_method_room_id(void *ptr, RustCallStatus *uniffi_out_err); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_room_ignore_device_trust_and_resend( - void *ptr, RustBuffer devices, RustBuffer transaction_id); + void *ptr, RustBuffer devices, void *send_handle); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_room_ignore_user(void *ptr, RustBuffer user_id); /*handle*/ uint64_t @@ -934,9 +953,6 @@ RustBuffer uniffi_matrix_sdk_ffi_fn_method_room_topic(void *ptr, RustCallStatus *uniffi_out_err); /*handle*/ uint64_t -uniffi_matrix_sdk_ffi_fn_method_room_try_resend(void *ptr, - RustBuffer transaction_id); -/*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_room_typing_notice(void *ptr, int8_t is_typing); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_room_unban_user(void *ptr, RustBuffer user_id, @@ -948,7 +964,7 @@ uniffi_matrix_sdk_ffi_fn_method_room_update_power_levels_for_users( void *ptr, RustBuffer mime_type, RustBuffer data, RustBuffer media_info); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_room_withdraw_verification_and_resend( - void *ptr, RustBuffer user_ids, RustBuffer transaction_id); + void *ptr, RustBuffer user_ids, void *send_handle); void *uniffi_matrix_sdk_ffi_fn_clone_roomdirectorysearch( void *ptr, RustCallStatus *uniffi_out_err); void uniffi_matrix_sdk_ffi_fn_free_roomdirectorysearch( @@ -963,7 +979,8 @@ uniffi_matrix_sdk_ffi_fn_method_roomdirectorysearch_next_page(void *ptr); uniffi_matrix_sdk_ffi_fn_method_roomdirectorysearch_results(void *ptr, uint64_t listener); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_roomdirectorysearch_search( - void *ptr, RustBuffer filter, uint32_t batch_size); + void *ptr, RustBuffer filter, uint32_t batch_size, + RustBuffer via_server_name); void *uniffi_matrix_sdk_ffi_fn_clone_roomlist(void *ptr, RustCallStatus *uniffi_out_err); void uniffi_matrix_sdk_ffi_fn_free_roomlist(void *ptr, @@ -1028,6 +1045,9 @@ uniffi_matrix_sdk_ffi_fn_method_roomlistitem_latest_event(void *ptr); RustBuffer uniffi_matrix_sdk_ffi_fn_method_roomlistitem_membership( void *ptr, RustCallStatus *uniffi_out_err); /*handle*/ uint64_t +uniffi_matrix_sdk_ffi_fn_method_roomlistitem_preview_room(void *ptr, + RustBuffer via); +/*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_roomlistitem_room_info(void *ptr); void * uniffi_matrix_sdk_ffi_fn_clone_roomlistservice(void *ptr, @@ -1041,8 +1061,7 @@ void *uniffi_matrix_sdk_ffi_fn_method_roomlistservice_room( void *uniffi_matrix_sdk_ffi_fn_method_roomlistservice_state( void *ptr, uint64_t listener, RustCallStatus *uniffi_out_err); void uniffi_matrix_sdk_ffi_fn_method_roomlistservice_subscribe_to_rooms( - void *ptr, RustBuffer room_ids, RustBuffer settings, - RustCallStatus *uniffi_out_err); + void *ptr, RustBuffer room_ids, RustCallStatus *uniffi_out_err); void *uniffi_matrix_sdk_ffi_fn_method_roomlistservice_sync_indicator( void *ptr, uint32_t delay_before_showing_in_ms, uint32_t delay_before_hiding_in_ms, uint64_t listener, @@ -1055,6 +1074,17 @@ uint32_t uniffi_matrix_sdk_ffi_fn_method_roommembersiterator_len( void *ptr, RustCallStatus *uniffi_out_err); RustBuffer uniffi_matrix_sdk_ffi_fn_method_roommembersiterator_next_chunk( void *ptr, uint32_t chunk_size, RustCallStatus *uniffi_out_err); +void * +uniffi_matrix_sdk_ffi_fn_clone_roompreview(void *ptr, + RustCallStatus *uniffi_out_err); +void uniffi_matrix_sdk_ffi_fn_free_roompreview(void *ptr, + RustCallStatus *uniffi_out_err); +RustBuffer uniffi_matrix_sdk_ffi_fn_method_roompreview_info( + void *ptr, RustCallStatus *uniffi_out_err); +/*handle*/ uint64_t +uniffi_matrix_sdk_ffi_fn_method_roompreview_inviter(void *ptr); +/*handle*/ uint64_t +uniffi_matrix_sdk_ffi_fn_method_roompreview_leave(void *ptr); void *uniffi_matrix_sdk_ffi_fn_clone_sendattachmentjoinhandle( void *ptr, RustCallStatus *uniffi_out_err); void uniffi_matrix_sdk_ffi_fn_free_sendattachmentjoinhandle( @@ -1068,11 +1098,19 @@ void *uniffi_matrix_sdk_ffi_fn_clone_sendhandle(void *ptr, void uniffi_matrix_sdk_ffi_fn_free_sendhandle(void *ptr, RustCallStatus *uniffi_out_err); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_sendhandle_abort(void *ptr); +/*handle*/ uint64_t +uniffi_matrix_sdk_ffi_fn_method_sendhandle_try_resend(void *ptr); void *uniffi_matrix_sdk_ffi_fn_clone_sessionverificationcontroller( void *ptr, RustCallStatus *uniffi_out_err); void uniffi_matrix_sdk_ffi_fn_free_sessionverificationcontroller( void *ptr, RustCallStatus *uniffi_out_err); /*handle*/ uint64_t +uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_accept_verification_request( + void *ptr); +/*handle*/ uint64_t +uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_acknowledge_verification_request( + void *ptr, RustBuffer sender_id, RustBuffer flow_id); +/*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_approve_verification( void *ptr); /*handle*/ uint64_t @@ -1082,9 +1120,6 @@ uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_cancel_verificatio uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_decline_verification( void *ptr); /*handle*/ uint64_t -uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_is_verified( - void *ptr); -/*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_request_verification( void *ptr); void uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_set_delegate( @@ -1146,7 +1181,7 @@ void uniffi_matrix_sdk_ffi_fn_free_syncservicebuilder( uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_finish(void *ptr); void * uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_cross_process_lock( - void *ptr, RustBuffer app_identifier, RustCallStatus *uniffi_out_err); + void *ptr, RustCallStatus *uniffi_out_err); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_utd_hook( void *ptr, uint64_t delegate); @@ -1186,9 +1221,6 @@ uniffi_matrix_sdk_ffi_fn_method_timeline_focused_paginate_forwards( /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_timeline_get_event_timeline_item_by_event_id( void *ptr, RustBuffer event_id); -/*handle*/ uint64_t -uniffi_matrix_sdk_ffi_fn_method_timeline_get_event_timeline_item_by_transaction_id( - void *ptr, RustBuffer transaction_id); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_timeline_load_reply_details( void *ptr, RustBuffer event_id_str); /*handle*/ uint64_t @@ -1208,14 +1240,16 @@ void uniffi_matrix_sdk_ffi_fn_method_timeline_retry_decryption( void *uniffi_matrix_sdk_ffi_fn_method_timeline_send_audio( void *ptr, RustBuffer url, RustBuffer audio_info, RustBuffer caption, RustBuffer formatted_caption, RustBuffer progress_watcher, - RustCallStatus *uniffi_out_err); + int8_t use_send_queue, RustCallStatus *uniffi_out_err); void *uniffi_matrix_sdk_ffi_fn_method_timeline_send_file( - void *ptr, RustBuffer url, RustBuffer file_info, - RustBuffer progress_watcher, RustCallStatus *uniffi_out_err); + void *ptr, RustBuffer url, RustBuffer file_info, RustBuffer caption, + RustBuffer formatted_caption, RustBuffer progress_watcher, + int8_t use_send_queue, RustCallStatus *uniffi_out_err); void *uniffi_matrix_sdk_ffi_fn_method_timeline_send_image( void *ptr, RustBuffer url, RustBuffer thumbnail_url, RustBuffer image_info, RustBuffer caption, RustBuffer formatted_caption, - RustBuffer progress_watcher, RustCallStatus *uniffi_out_err); + RustBuffer progress_watcher, int8_t use_send_queue, + RustCallStatus *uniffi_out_err); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_timeline_send_location( void *ptr, RustBuffer body, RustBuffer geo_uri, RustBuffer description, RustBuffer zoom_level, RustBuffer asset_type); @@ -1229,16 +1263,18 @@ uniffi_matrix_sdk_ffi_fn_method_timeline_send_reply(void *ptr, void *msg, void *uniffi_matrix_sdk_ffi_fn_method_timeline_send_video( void *ptr, RustBuffer url, RustBuffer thumbnail_url, RustBuffer video_info, RustBuffer caption, RustBuffer formatted_caption, - RustBuffer progress_watcher, RustCallStatus *uniffi_out_err); + RustBuffer progress_watcher, int8_t use_send_queue, + RustCallStatus *uniffi_out_err); void *uniffi_matrix_sdk_ffi_fn_method_timeline_send_voice_message( void *ptr, RustBuffer url, RustBuffer audio_info, RustBuffer waveform, RustBuffer caption, RustBuffer formatted_caption, - RustBuffer progress_watcher, RustCallStatus *uniffi_out_err); + RustBuffer progress_watcher, int8_t use_send_queue, + RustCallStatus *uniffi_out_err); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_timeline_subscribe_to_back_pagination_status( void *ptr, uint64_t listener); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_timeline_toggle_reaction( - void *ptr, RustBuffer unique_id, RustBuffer key); + void *ptr, RustBuffer item_id, RustBuffer key); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_timeline_unpin_event(void *ptr, RustBuffer event_id); @@ -1317,6 +1353,8 @@ uniffi_matrix_sdk_ffi_fn_clone_useridentity(void *ptr, RustCallStatus *uniffi_out_err); void uniffi_matrix_sdk_ffi_fn_free_useridentity(void *ptr, RustCallStatus *uniffi_out_err); +int8_t uniffi_matrix_sdk_ffi_fn_method_useridentity_is_verified( + void *ptr, RustCallStatus *uniffi_out_err); RustBuffer uniffi_matrix_sdk_ffi_fn_method_useridentity_master_key( void *ptr, RustCallStatus *uniffi_out_err); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_useridentity_pin(void *ptr); @@ -1397,6 +1435,8 @@ RustBuffer uniffi_matrix_sdk_ffi_fn_func_gen_transaction_id( RustBuffer uniffi_matrix_sdk_ffi_fn_func_get_element_call_required_permissions( RustBuffer own_user_id, RustBuffer own_device_id, RustCallStatus *uniffi_out_err); +int8_t uniffi_matrix_sdk_ffi_fn_func_is_room_alias_format_valid( + RustBuffer alias, RustCallStatus *uniffi_out_err); void uniffi_matrix_sdk_ffi_fn_func_log_event(RustBuffer file, RustBuffer line, RustBuffer level, RustBuffer target, @@ -1427,6 +1467,8 @@ RustBuffer uniffi_matrix_sdk_ffi_fn_func_new_virtual_element_call_widget( RustBuffer props, RustCallStatus *uniffi_out_err); RustBuffer uniffi_matrix_sdk_ffi_fn_func_parse_matrix_entity_from( RustBuffer uri, RustCallStatus *uniffi_out_err); +RustBuffer uniffi_matrix_sdk_ffi_fn_func_room_alias_name_from_room_display_name( + RustBuffer room_name, RustCallStatus *uniffi_out_err); RustBuffer uniffi_matrix_sdk_ffi_fn_func_sdk_git_sha(RustCallStatus *uniffi_out_err); void uniffi_matrix_sdk_ffi_fn_func_setup_tracing( @@ -1568,6 +1610,7 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_func_gen_transaction_id(); uint16_t uniffi_matrix_sdk_ffi_checksum_func_generate_webview_url(); uint16_t uniffi_matrix_sdk_ffi_checksum_func_get_element_call_required_permissions(); +uint16_t uniffi_matrix_sdk_ffi_checksum_func_is_room_alias_format_valid(); uint16_t uniffi_matrix_sdk_ffi_checksum_func_log_event(); uint16_t uniffi_matrix_sdk_ffi_checksum_func_make_element_well_known(); uint16_t uniffi_matrix_sdk_ffi_checksum_func_make_widget_driver(); @@ -1584,6 +1627,8 @@ uniffi_matrix_sdk_ffi_checksum_func_message_event_content_from_markdown_as_emote uint16_t uniffi_matrix_sdk_ffi_checksum_func_message_event_content_new(); uint16_t uniffi_matrix_sdk_ffi_checksum_func_new_virtual_element_call_widget(); uint16_t uniffi_matrix_sdk_ffi_checksum_func_parse_matrix_entity_from(); +uint16_t +uniffi_matrix_sdk_ffi_checksum_func_room_alias_name_from_room_display_name(); uint16_t uniffi_matrix_sdk_ffi_checksum_func_sdk_git_sha(); uint16_t uniffi_matrix_sdk_ffi_checksum_func_setup_tracing(); uint16_t uniffi_matrix_sdk_ffi_checksum_func_suggested_power_level_for_role(); @@ -1592,7 +1637,7 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_mediasource_url(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_roommessageeventcontentwithoutrelation_with_mentions(); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_login(); +uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_auth(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_account_data(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_account_url(); uint16_t @@ -1602,6 +1647,7 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_await_room_remote_echo(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_cached_avatar_url(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_can_deactivate_account(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_create_room(); +uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_create_room_alias(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_custom_login_with_jwt(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_deactivate_account(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_delete_pusher(); @@ -1630,9 +1676,11 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_homeserver_login_details(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_ignore_user(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_ignored_users(); +uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_is_room_alias_available(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_join_room_by_id(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_join_room_by_id_or_alias(); +uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_knock(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_login(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_login_with_email(); uint16_t @@ -1644,6 +1692,7 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_reset_server_capabilities(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_resolve_room_alias(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_restore_session(); +uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_room_alias_exists(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_room_directory_search(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_rooms(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_search_users(); @@ -1665,7 +1714,7 @@ uniffi_matrix_sdk_ffi_checksum_method_client_track_recently_visited_room(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_unignore_user(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_upload_avatar(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_upload_media(); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc_login(); +uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_user_id(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_client_user_id_server_name(); uint16_t @@ -1680,13 +1729,15 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_build(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_build_with_qr_code(); uint16_t +uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_cross_process_store_locks_holder_name(); +uint16_t uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_disable_automatic_token_refresh(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_disable_built_in_root_certificates(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_disable_ssl_verification(); uint16_t -uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_enable_cross_process_refresh_lock(); +uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_enable_oidc_refresh_lock(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_homeserver_url(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_passphrase(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_proxy(); @@ -1715,7 +1766,6 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_encryption_disable_recovery(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_encryption_ed25519_key(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_encryption_enable_backups(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_encryption_enable_recovery(); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_encryption_get_user_identity(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_encryption_is_last_device(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_encryption_recover(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_encryption_recover_and_reset(); @@ -1724,6 +1774,7 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_encryption_recovery_state_listener(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_encryption_reset_identity(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_encryption_reset_recovery_key(); +uint16_t uniffi_matrix_sdk_ffi_checksum_method_encryption_user_identity(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_encryption_verification_state(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_encryption_verification_state_listener(); @@ -1732,12 +1783,10 @@ uniffi_matrix_sdk_ffi_checksum_method_encryption_wait_for_backup_upload_steady_s uint16_t uniffi_matrix_sdk_ffi_checksum_method_encryption_wait_for_e2ee_initialization_tasks(); uint16_t -uniffi_matrix_sdk_ffi_checksum_method_eventshieldsprovider_get_shields(); -uint16_t -uniffi_matrix_sdk_ffi_checksum_method_eventtimelineitemdebuginfoprovider_get(); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_sliding_sync_version(); uint16_t +uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_supported_oidc_prompts(); +uint16_t uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_supports_oidc_login(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_supports_password_login(); @@ -1747,6 +1796,12 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_identityresethandle_cancel(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_identityresethandle_reset(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_inreplytodetails_event(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_inreplytodetails_event_id(); +uint16_t +uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_debug_info(); +uint16_t +uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_get_send_handle(); +uint16_t +uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_get_shields(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_mediafilehandle_path(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_mediafilehandle_persist(); uint16_t @@ -1871,7 +1926,6 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_suggested_role_for_user(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_timeline(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_timeline_focused_on_event(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_topic(); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_try_resend(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_typing_notice(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_unban_user(); uint16_t @@ -1913,6 +1967,7 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_is_timeline_initialized(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_latest_event(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_membership(); +uint16_t uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_preview_room(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_room_info(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_all_rooms(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_room(); @@ -1922,10 +1977,18 @@ uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_subscribe_to_rooms(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_sync_indicator(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_roommembersiterator_len(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_roommembersiterator_next_chunk(); +uint16_t uniffi_matrix_sdk_ffi_checksum_method_roompreview_info(); +uint16_t uniffi_matrix_sdk_ffi_checksum_method_roompreview_inviter(); +uint16_t uniffi_matrix_sdk_ffi_checksum_method_roompreview_leave(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_cancel(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_join(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_sendhandle_abort(); +uint16_t uniffi_matrix_sdk_ffi_checksum_method_sendhandle_try_resend(); +uint16_t +uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_accept_verification_request(); +uint16_t +uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_acknowledge_verification_request(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_approve_verification(); uint16_t @@ -1933,8 +1996,6 @@ uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_cancel_verif uint16_t uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_decline_verification(); uint16_t -uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_is_verified(); -uint16_t uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_request_verification(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_set_delegate(); @@ -1973,8 +2034,6 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_timeline_focused_paginate_forwards(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_timeline_get_event_timeline_item_by_event_id(); -uint16_t -uniffi_matrix_sdk_ffi_checksum_method_timeline_get_event_timeline_item_by_transaction_id(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_timeline_load_reply_details(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_timeline_mark_as_read(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_timeline_paginate_backwards(); @@ -2018,6 +2077,7 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_unreadnotificationscount_highlight_count(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_unreadnotificationscount_notification_count(); +uint16_t uniffi_matrix_sdk_ffi_checksum_method_useridentity_is_verified(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_useridentity_master_key(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_useridentity_pin(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_widgetdriver_run(); @@ -2072,6 +2132,8 @@ uniffi_matrix_sdk_ffi_checksum_method_roomlistservicesyncindicatorlistener_on_up uint16_t uniffi_matrix_sdk_ffi_checksum_method_sendqueueroomerrorlistener_on_error(); uint16_t +uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_receive_verification_request(); +uint16_t uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_accept_verification_request(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_start_sas_verification(); @@ -8772,21 +8834,23 @@ using namespace facebook; // We need to store a lambda in a global so we can call it from // a function pointer. The function pointer is passed to Rust. -static std::function rsLambda = - nullptr; +static std::function + rsLambda = nullptr; // This is the main body of the callback. It's called from the lambda, // which itself is called from the callback function which is passed to Rust. static void body(jsi::Runtime &rt, std::shared_ptr callInvoker, std::shared_ptr callbackValue, - uint64_t rs_uniffiHandle, void *rs_uniffiOutReturn, - RustCallStatus *uniffi_call_status) { + uint64_t rs_uniffiHandle, RustBuffer rs_details, + void *rs_uniffiOutReturn, RustCallStatus *uniffi_call_status) { // Convert the arguments from Rust, into jsi::Values. // We'll use the Bridging class to do this… auto js_uniffiHandle = uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_uniffiHandle); + auto js_details = uniffi::matrix_sdk_ffi::Bridging::toJs( + rt, callInvoker, rs_details); // … but we need to take extra care for the return value. // In the typescript we use a dummy object we called a ReferenceHolder. auto js_uniffiOutReturn = @@ -8803,7 +8867,8 @@ static void body(jsi::Runtime &rt, try { // Getting the callback function auto cb = callbackValue->asObject(rt).asFunction(rt); - cb.call(rt, js_uniffiHandle, js_uniffiOutReturn, uniffiCallStatus); + cb.call(rt, js_uniffiHandle, js_details, js_uniffiOutReturn, + uniffiCallStatus); // Now copy the result back from JS into the RustCallStatus object. uniffi::matrix_sdk_ffi::Bridging::copyFromJs( @@ -8825,7 +8890,8 @@ static void body(jsi::Runtime &rt, } } -static void callback(uint64_t rs_uniffiHandle, void *rs_uniffiOutReturn, +static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_details, + void *rs_uniffiOutReturn, RustCallStatus *uniffi_call_status) { // If the runtime has shutdown, then there is no point in trying to // call into Javascript. BUT how do we tell if the runtime has shutdown? @@ -8842,7 +8908,7 @@ static void callback(uint64_t rs_uniffiHandle, void *rs_uniffiOutReturn, // The runtime, the actual callback jsi::funtion, and the callInvoker // are all in the lambda. - rsLambda(rs_uniffiHandle, rs_uniffiOutReturn, uniffi_call_status); + rsLambda(rs_uniffiHandle, rs_details, rs_uniffiOutReturn, uniffi_call_status); } static UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod0 @@ -8852,15 +8918,15 @@ makeCallbackFunction( // uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionver const jsi::Value &value) { auto callbackFunction = value.asObject(rt).asFunction(rt); auto callbackValue = std::make_shared(rt, callbackFunction); - rsLambda = [&rt, callInvoker, - callbackValue](uint64_t rs_uniffiHandle, void *rs_uniffiOutReturn, - RustCallStatus *uniffi_call_status) { + rsLambda = [&rt, callInvoker, callbackValue]( + uint64_t rs_uniffiHandle, RustBuffer rs_details, + void *rs_uniffiOutReturn, RustCallStatus *uniffi_call_status) { // We immediately make a lambda which will do the work of transforming the // arguments into JSI values and calling the callback. uniffi_runtime::UniffiCallFunc jsLambda = - [callInvoker, callbackValue, rs_uniffiHandle, rs_uniffiOutReturn, - uniffi_call_status](jsi::Runtime &rt) mutable { - body(rt, callInvoker, callbackValue, rs_uniffiHandle, + [callInvoker, callbackValue, rs_uniffiHandle, rs_details, + rs_uniffiOutReturn, uniffi_call_status](jsi::Runtime &rt) mutable { + body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_details, rs_uniffiOutReturn, uniffi_call_status); }; // We'll then call that lambda from the callInvoker which will @@ -9030,6 +9096,136 @@ namespace uniffi::matrix_sdk_ffi::cb:: callbackinterfacesessionverificationcontrollerdelegatemethod2 { using namespace facebook; +// We need to store a lambda in a global so we can call it from +// a function pointer. The function pointer is passed to Rust. +static std::function rsLambda = + nullptr; + +// This is the main body of the callback. It's called from the lambda, +// which itself is called from the callback function which is passed to Rust. +static void body(jsi::Runtime &rt, + std::shared_ptr callInvoker, + std::shared_ptr callbackValue, + uint64_t rs_uniffiHandle, void *rs_uniffiOutReturn, + RustCallStatus *uniffi_call_status) { + + // Convert the arguments from Rust, into jsi::Values. + // We'll use the Bridging class to do this… + auto js_uniffiHandle = + uniffi_jsi::Bridging::toJs(rt, callInvoker, rs_uniffiHandle); + // … but we need to take extra care for the return value. + // In the typescript we use a dummy object we called a ReferenceHolder. + auto js_uniffiOutReturn = + uniffi_jsi::Bridging>::jsNew(rt); + + // The RustCallStatus is another very simple JS object which will + // report errors back to Rust. + auto uniffiCallStatus = + uniffi::matrix_sdk_ffi::Bridging::jsSuccess(rt); + + // Now we are ready to call the callback. + // We should be using callInvoker at this point, but for now + // we think that there are no threading issues to worry about. + try { + // Getting the callback function + auto cb = callbackValue->asObject(rt).asFunction(rt); + cb.call(rt, js_uniffiHandle, js_uniffiOutReturn, uniffiCallStatus); + + // Now copy the result back from JS into the RustCallStatus object. + uniffi::matrix_sdk_ffi::Bridging::copyFromJs( + rt, callInvoker, uniffiCallStatus, uniffi_call_status); + + if (uniffi_call_status->code != UNIFFI_CALL_STATUS_OK) { + // The JS callback finished abnormally, so we cannot retrieve the return + // value. + return; + } + + } catch (const jsi::JSError &error) { + std::cout << "Error in callback " + "UniffiCallbackInterfaceSessionVerificationControllerDelegateM" + "ethod2: " + << error.what() << std::endl; + uniffi::matrix_sdk_ffi::Bridging::copyFromJs( + rt, callInvoker, uniffiCallStatus, uniffi_call_status); + } +} + +static void callback(uint64_t rs_uniffiHandle, void *rs_uniffiOutReturn, + RustCallStatus *uniffi_call_status) { + // If the runtime has shutdown, then there is no point in trying to + // call into Javascript. BUT how do we tell if the runtime has shutdown? + // + // Answer: the module destructor calls into callback `cleanup` method, + // which nulls out the rsLamda. + // + // If rsLamda is null, then there is no runtime to call into. + if (rsLambda == nullptr) { + // This only occurs when destructors are calling into Rust free/drop, + // which causes the JS callback to be dropped. + return; + } + + // The runtime, the actual callback jsi::funtion, and the callInvoker + // are all in the lambda. + rsLambda(rs_uniffiHandle, rs_uniffiOutReturn, uniffi_call_status); +} + +static UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod2 +makeCallbackFunction( // uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod2 + jsi::Runtime &rt, + std::shared_ptr callInvoker, + const jsi::Value &value) { + auto callbackFunction = value.asObject(rt).asFunction(rt); + auto callbackValue = std::make_shared(rt, callbackFunction); + rsLambda = [&rt, callInvoker, + callbackValue](uint64_t rs_uniffiHandle, void *rs_uniffiOutReturn, + RustCallStatus *uniffi_call_status) { + // We immediately make a lambda which will do the work of transforming the + // arguments into JSI values and calling the callback. + uniffi_runtime::UniffiCallFunc jsLambda = + [callInvoker, callbackValue, rs_uniffiHandle, rs_uniffiOutReturn, + uniffi_call_status](jsi::Runtime &rt) mutable { + body(rt, callInvoker, callbackValue, rs_uniffiHandle, + rs_uniffiOutReturn, uniffi_call_status); + }; + // We'll then call that lambda from the callInvoker which will + // look after calling it on the correct thread. + callInvoker->invokeBlocking(rt, jsLambda); + }; + return callback; +} + +// This method is called from the destructor of NativeMatrixSdkFfi, which only +// happens when the jsi::Runtime is being destroyed. +static void cleanup() { + // The lambda holds a reference to the the Runtime, so when this is nulled + // out, then the pointer will no longer be left dangling. + rsLambda = nullptr; +} +} // namespace + // uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod2 + // Implementation of callback function calling from Rust to JS + // CallbackInterfaceSessionVerificationControllerDelegateMethod3 + +// Callback function: +// uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod3::UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod3 +// +// We have the following constraints: +// - we need to pass a function pointer to Rust. +// - we need a jsi::Runtime and jsi::Function to call into JS. +// - function pointers can't store state, so we can't use a lamda. +// +// For this, we store a lambda as a global, as `rsLambda`. The `callback` +// function calls the lambda, which itself calls the `body` which then calls +// into JS. +// +// We then give the `callback` function pointer to Rust which will call the +// lambda sometime in the future. +namespace uniffi::matrix_sdk_ffi::cb:: + callbackinterfacesessionverificationcontrollerdelegatemethod3 { +using namespace facebook; + // We need to store a lambda in a global so we can call it from // a function pointer. The function pointer is passed to Rust. static std::function @@ -9080,7 +9276,7 @@ static void body(jsi::Runtime &rt, } catch (const jsi::JSError &error) { std::cout << "Error in callback " "UniffiCallbackInterfaceSessionVerificationControllerDelegateM" - "ethod2: " + "ethod3: " << error.what() << std::endl; uniffi::matrix_sdk_ffi::Bridging::copyFromJs( rt, callInvoker, uniffiCallStatus, uniffi_call_status); @@ -9108,8 +9304,8 @@ static void callback(uint64_t rs_uniffiHandle, RustBuffer rs_data, rsLambda(rs_uniffiHandle, rs_data, rs_uniffiOutReturn, uniffi_call_status); } -static UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod2 -makeCallbackFunction( // uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod2 +static UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod3 +makeCallbackFunction( // uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod3 jsi::Runtime &rt, std::shared_ptr callInvoker, const jsi::Value &value) { @@ -9141,12 +9337,12 @@ static void cleanup() { rsLambda = nullptr; } } // namespace - // uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod2 + // uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod3 // Implementation of callback function calling from Rust to JS - // CallbackInterfaceSessionVerificationControllerDelegateMethod3 + // CallbackInterfaceSessionVerificationControllerDelegateMethod4 // Callback function: -// uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod3::UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod3 +// uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod4::UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod4 // // We have the following constraints: // - we need to pass a function pointer to Rust. @@ -9160,7 +9356,7 @@ static void cleanup() { // We then give the `callback` function pointer to Rust which will call the // lambda sometime in the future. namespace uniffi::matrix_sdk_ffi::cb:: - callbackinterfacesessionverificationcontrollerdelegatemethod3 { + callbackinterfacesessionverificationcontrollerdelegatemethod4 { using namespace facebook; // We need to store a lambda in a global so we can call it from @@ -9211,7 +9407,7 @@ static void body(jsi::Runtime &rt, } catch (const jsi::JSError &error) { std::cout << "Error in callback " "UniffiCallbackInterfaceSessionVerificationControllerDelegateM" - "ethod3: " + "ethod4: " << error.what() << std::endl; uniffi::matrix_sdk_ffi::Bridging::copyFromJs( rt, callInvoker, uniffiCallStatus, uniffi_call_status); @@ -9238,8 +9434,8 @@ static void callback(uint64_t rs_uniffiHandle, void *rs_uniffiOutReturn, rsLambda(rs_uniffiHandle, rs_uniffiOutReturn, uniffi_call_status); } -static UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod3 -makeCallbackFunction( // uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod3 +static UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod4 +makeCallbackFunction( // uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod4 jsi::Runtime &rt, std::shared_ptr callInvoker, const jsi::Value &value) { @@ -9271,12 +9467,12 @@ static void cleanup() { rsLambda = nullptr; } } // namespace - // uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod3 + // uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod4 // Implementation of callback function calling from Rust to JS - // CallbackInterfaceSessionVerificationControllerDelegateMethod4 + // CallbackInterfaceSessionVerificationControllerDelegateMethod5 // Callback function: -// uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod4::UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod4 +// uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod5::UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod5 // // We have the following constraints: // - we need to pass a function pointer to Rust. @@ -9290,7 +9486,7 @@ static void cleanup() { // We then give the `callback` function pointer to Rust which will call the // lambda sometime in the future. namespace uniffi::matrix_sdk_ffi::cb:: - callbackinterfacesessionverificationcontrollerdelegatemethod4 { + callbackinterfacesessionverificationcontrollerdelegatemethod5 { using namespace facebook; // We need to store a lambda in a global so we can call it from @@ -9341,7 +9537,7 @@ static void body(jsi::Runtime &rt, } catch (const jsi::JSError &error) { std::cout << "Error in callback " "UniffiCallbackInterfaceSessionVerificationControllerDelegateM" - "ethod4: " + "ethod5: " << error.what() << std::endl; uniffi::matrix_sdk_ffi::Bridging::copyFromJs( rt, callInvoker, uniffiCallStatus, uniffi_call_status); @@ -9368,8 +9564,8 @@ static void callback(uint64_t rs_uniffiHandle, void *rs_uniffiOutReturn, rsLambda(rs_uniffiHandle, rs_uniffiOutReturn, uniffi_call_status); } -static UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod4 -makeCallbackFunction( // uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod4 +static UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod5 +makeCallbackFunction( // uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod5 jsi::Runtime &rt, std::shared_ptr callInvoker, const jsi::Value &value) { @@ -9401,12 +9597,12 @@ static void cleanup() { rsLambda = nullptr; } } // namespace - // uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod4 + // uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod5 // Implementation of callback function calling from Rust to JS - // CallbackInterfaceSessionVerificationControllerDelegateMethod5 + // CallbackInterfaceSessionVerificationControllerDelegateMethod6 // Callback function: -// uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod5::UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod5 +// uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod6::UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod6 // // We have the following constraints: // - we need to pass a function pointer to Rust. @@ -9420,7 +9616,7 @@ static void cleanup() { // We then give the `callback` function pointer to Rust which will call the // lambda sometime in the future. namespace uniffi::matrix_sdk_ffi::cb:: - callbackinterfacesessionverificationcontrollerdelegatemethod5 { + callbackinterfacesessionverificationcontrollerdelegatemethod6 { using namespace facebook; // We need to store a lambda in a global so we can call it from @@ -9471,7 +9667,7 @@ static void body(jsi::Runtime &rt, } catch (const jsi::JSError &error) { std::cout << "Error in callback " "UniffiCallbackInterfaceSessionVerificationControllerDelegateM" - "ethod5: " + "ethod6: " << error.what() << std::endl; uniffi::matrix_sdk_ffi::Bridging::copyFromJs( rt, callInvoker, uniffiCallStatus, uniffi_call_status); @@ -9498,8 +9694,8 @@ static void callback(uint64_t rs_uniffiHandle, void *rs_uniffiOutReturn, rsLambda(rs_uniffiHandle, rs_uniffiOutReturn, uniffi_call_status); } -static UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod5 -makeCallbackFunction( // uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod5 +static UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod6 +makeCallbackFunction( // uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod6 jsi::Runtime &rt, std::shared_ptr callInvoker, const jsi::Value &value) { @@ -9531,7 +9727,7 @@ static void cleanup() { rsLambda = nullptr; } } // namespace - // uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod5 + // uniffi::matrix_sdk_ffi::cb::callbackinterfacesessionverificationcontrollerdelegatemethod6 // Implementation of callback function calling from Rust to JS // CallbackInterfaceSyncServiceStateObserverMethod0 @@ -11072,31 +11268,36 @@ struct Bridging< UniffiVTableCallbackInterfaceSessionVerificationControllerDelegate rsObject; // Create the vtable from the js callbacks. - rsObject.did_accept_verification_request = uniffi::matrix_sdk_ffi::cb:: + rsObject.did_receive_verification_request = uniffi::matrix_sdk_ffi::cb:: callbackinterfacesessionverificationcontrollerdelegatemethod0:: + makeCallbackFunction( + rt, callInvoker, + jsObject.getProperty(rt, "didReceiveVerificationRequest")); + rsObject.did_accept_verification_request = uniffi::matrix_sdk_ffi::cb:: + callbackinterfacesessionverificationcontrollerdelegatemethod1:: makeCallbackFunction( rt, callInvoker, jsObject.getProperty(rt, "didAcceptVerificationRequest")); rsObject.did_start_sas_verification = uniffi::matrix_sdk_ffi::cb:: - callbackinterfacesessionverificationcontrollerdelegatemethod1:: + callbackinterfacesessionverificationcontrollerdelegatemethod2:: makeCallbackFunction( rt, callInvoker, jsObject.getProperty(rt, "didStartSasVerification")); rsObject.did_receive_verification_data = uniffi::matrix_sdk_ffi::cb:: - callbackinterfacesessionverificationcontrollerdelegatemethod2:: + callbackinterfacesessionverificationcontrollerdelegatemethod3:: makeCallbackFunction( rt, callInvoker, jsObject.getProperty(rt, "didReceiveVerificationData")); rsObject.did_fail = uniffi::matrix_sdk_ffi::cb:: - callbackinterfacesessionverificationcontrollerdelegatemethod3:: + callbackinterfacesessionverificationcontrollerdelegatemethod4:: makeCallbackFunction(rt, callInvoker, jsObject.getProperty(rt, "didFail")); rsObject.did_cancel = uniffi::matrix_sdk_ffi::cb:: - callbackinterfacesessionverificationcontrollerdelegatemethod4:: + callbackinterfacesessionverificationcontrollerdelegatemethod5:: makeCallbackFunction(rt, callInvoker, jsObject.getProperty(rt, "didCancel")); rsObject.did_finish = uniffi::matrix_sdk_ffi::cb:: - callbackinterfacesessionverificationcontrollerdelegatemethod5:: + callbackinterfacesessionverificationcontrollerdelegatemethod6:: makeCallbackFunction(rt, callInvoker, jsObject.getProperty(rt, "didFinish")); rsObject.uniffi_free = uniffi::matrix_sdk_ffi::st:: @@ -11512,16 +11713,16 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( return this->cpp_uniffi_matrix_sdk_ffi_fn_free_client(rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_fn_method_client_abort_oidc_login"] = + props["uniffi_matrix_sdk_ffi_fn_method_client_abort_oidc_auth"] = jsi::Function::createFromHostFunction( rt, jsi::PropNameID::forAscii( - rt, "uniffi_matrix_sdk_ffi_fn_method_client_abort_oidc_login"), + rt, "uniffi_matrix_sdk_ffi_fn_method_client_abort_oidc_auth"), 2, [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value { return this - ->cpp_uniffi_matrix_sdk_ffi_fn_method_client_abort_oidc_login( + ->cpp_uniffi_matrix_sdk_ffi_fn_method_client_abort_oidc_auth( rt, thisVal, args, count); }); props["uniffi_matrix_sdk_ffi_fn_method_client_account_data"] = @@ -11619,6 +11820,18 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( return this->cpp_uniffi_matrix_sdk_ffi_fn_method_client_create_room( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_fn_method_client_create_room_alias"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_method_client_create_room_alias"), + 3, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_fn_method_client_create_room_alias( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_fn_method_client_custom_login_with_jwt"] = jsi::Function::createFromHostFunction( rt, @@ -11878,6 +12091,19 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_method_client_ignored_users( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_fn_method_client_is_room_alias_available"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, + "uniffi_matrix_sdk_ffi_fn_method_client_is_room_alias_available"), + 2, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_fn_method_client_is_room_alias_available( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_fn_method_client_join_room_by_id"] = jsi::Function::createFromHostFunction( rt, @@ -11902,6 +12128,17 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_method_client_join_room_by_id_or_alias( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_fn_method_client_knock"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_method_client_knock"), + 4, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this->cpp_uniffi_matrix_sdk_ffi_fn_method_client_knock( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_fn_method_client_login"] = jsi::Function::createFromHostFunction( rt, @@ -12008,6 +12245,18 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_method_client_restore_session( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_fn_method_client_room_alias_exists"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_method_client_room_alias_exists"), + 2, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_fn_method_client_room_alias_exists( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_fn_method_client_room_directory_search"] = jsi::Function::createFromHostFunction( rt, @@ -12222,16 +12471,16 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_method_client_upload_media( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc_login"] = + props["uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc"] = jsi::Function::createFromHostFunction( rt, jsi::PropNameID::forAscii( - rt, "uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc_login"), - 2, + rt, "uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc"), + 3, [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value { return this - ->cpp_uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc_login( + ->cpp_uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc( rt, thisVal, args, count); }); props["uniffi_matrix_sdk_ffi_fn_method_client_user_id"] = @@ -12363,6 +12612,19 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_build_with_qr_code( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_fn_method_clientbuilder_cross_process_store_" + "locks_holder_name"] = jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii(rt, + "uniffi_matrix_sdk_ffi_fn_method_clientbuilder_" + "cross_process_store_locks_holder_name"), + 2, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_cross_process_store_locks_holder_name( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_fn_method_clientbuilder_disable_automatic_token_" "refresh"] = jsi::Function::createFromHostFunction( rt, @@ -12401,17 +12663,16 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_disable_ssl_verification( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_fn_method_clientbuilder_enable_cross_process_" - "refresh_lock"] = jsi::Function::createFromHostFunction( + props["uniffi_matrix_sdk_ffi_fn_method_clientbuilder_enable_oidc_refresh_" + "lock"] = jsi::Function::createFromHostFunction( rt, - jsi::PropNameID::forAscii(rt, - "uniffi_matrix_sdk_ffi_fn_method_clientbuilder_" - "enable_cross_process_refresh_lock"), - 3, + jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_fn_method_" + "clientbuilder_enable_oidc_refresh_lock"), + 1, [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value { return this - ->cpp_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_enable_cross_process_refresh_lock( + ->cpp_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_enable_oidc_refresh_lock( rt, thisVal, args, count); }); props["uniffi_matrix_sdk_ffi_fn_method_clientbuilder_homeserver_url"] = @@ -12696,19 +12957,6 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_method_encryption_enable_recovery( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_fn_method_encryption_get_user_identity"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, - "uniffi_matrix_sdk_ffi_fn_method_encryption_get_user_identity"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_matrix_sdk_ffi_fn_method_encryption_get_user_identity( - rt, thisVal, args, count); - }); props["uniffi_matrix_sdk_ffi_fn_method_encryption_is_last_device"] = jsi::Function::createFromHostFunction( rt, @@ -12794,6 +13042,18 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_method_encryption_reset_recovery_key( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_fn_method_encryption_user_identity"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_method_encryption_user_identity"), + 2, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_fn_method_encryption_user_identity( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_fn_method_encryption_verification_state"] = jsi::Function::createFromHostFunction( rt, @@ -12845,77 +13105,6 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_method_encryption_wait_for_e2ee_initialization_tasks( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_fn_clone_eventshieldsprovider"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "uniffi_matrix_sdk_ffi_fn_clone_eventshieldsprovider"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_matrix_sdk_ffi_fn_clone_eventshieldsprovider( - rt, thisVal, args, count); - }); - props["uniffi_matrix_sdk_ffi_fn_free_eventshieldsprovider"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "uniffi_matrix_sdk_ffi_fn_free_eventshieldsprovider"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_matrix_sdk_ffi_fn_free_eventshieldsprovider( - rt, thisVal, args, count); - }); - props["uniffi_matrix_sdk_ffi_fn_method_eventshieldsprovider_get_shields"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_fn_method_" - "eventshieldsprovider_get_shields"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_matrix_sdk_ffi_fn_method_eventshieldsprovider_get_shields( - rt, thisVal, args, count); - }); - props["uniffi_matrix_sdk_ffi_fn_clone_eventtimelineitemdebuginfoprovider"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_fn_clone_" - "eventtimelineitemdebuginfoprovider"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_matrix_sdk_ffi_fn_clone_eventtimelineitemdebuginfoprovider( - rt, thisVal, args, count); - }); - props["uniffi_matrix_sdk_ffi_fn_free_eventtimelineitemdebuginfoprovider"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_fn_free_" - "eventtimelineitemdebuginfoprovider"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_matrix_sdk_ffi_fn_free_eventtimelineitemdebuginfoprovider( - rt, thisVal, args, count); - }); - props["uniffi_matrix_sdk_ffi_fn_method_eventtimelineitemdebuginfoprovider_" - "get"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_fn_method_" - "eventtimelineitemdebuginfoprovider_get"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_matrix_sdk_ffi_fn_method_eventtimelineitemdebuginfoprovider_get( - rt, thisVal, args, count); - }); props["uniffi_matrix_sdk_ffi_fn_clone_homeserverlogindetails"] = jsi::Function::createFromHostFunction( rt, @@ -12953,6 +13142,19 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_method_homeserverlogindetails_sliding_sync_version( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_fn_method_homeserverlogindetails_supported_oidc_" + "prompts"] = jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_method_homeserverlogindetails_" + "supported_oidc_prompts"), + 1, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_fn_method_homeserverlogindetails_supported_oidc_prompts( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_fn_method_homeserverlogindetails_supports_oidc_" "login"] = jsi::Function::createFromHostFunction( rt, @@ -13096,6 +13298,66 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_method_inreplytodetails_event_id( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_fn_clone_lazytimelineitemprovider"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_clone_lazytimelineitemprovider"), + 1, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_fn_clone_lazytimelineitemprovider( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_fn_free_lazytimelineitemprovider"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_free_lazytimelineitemprovider"), + 1, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_fn_free_lazytimelineitemprovider( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_debug_info"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_fn_method_" + "lazytimelineitemprovider_debug_info"), + 1, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_debug_info( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_get_send_" + "handle"] = jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_fn_method_" + "lazytimelineitemprovider_get_send_handle"), + 1, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_get_send_handle( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_get_" + "shields"] = jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_fn_method_" + "lazytimelineitemprovider_get_shields"), + 2, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_get_shields( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_fn_clone_mediafilehandle"] = jsi::Function::createFromHostFunction( rt, @@ -14360,17 +14622,6 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( return this->cpp_uniffi_matrix_sdk_ffi_fn_method_room_topic( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_fn_method_room_try_resend"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "uniffi_matrix_sdk_ffi_fn_method_room_try_resend"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this->cpp_uniffi_matrix_sdk_ffi_fn_method_room_try_resend( - rt, thisVal, args, count); - }); props["uniffi_matrix_sdk_ffi_fn_method_room_typing_notice"] = jsi::Function::createFromHostFunction( rt, @@ -14505,7 +14756,7 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( rt, jsi::PropNameID::forAscii( rt, "uniffi_matrix_sdk_ffi_fn_method_roomdirectorysearch_search"), - 3, + 4, [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value { return this @@ -14855,6 +15106,18 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_method_roomlistitem_membership( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_fn_method_roomlistitem_preview_room"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_method_roomlistitem_preview_room"), + 2, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_fn_method_roomlistitem_preview_room( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_fn_method_roomlistitem_room_info"] = jsi::Function::createFromHostFunction( rt, @@ -14930,7 +15193,7 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( rt, jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_fn_method_" "roomlistservice_subscribe_to_rooms"), - 3, + 2, [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value { return this @@ -14997,6 +15260,62 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_method_roommembersiterator_next_chunk( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_fn_clone_roompreview"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_clone_roompreview"), + 1, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this->cpp_uniffi_matrix_sdk_ffi_fn_clone_roompreview( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_fn_free_roompreview"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_free_roompreview"), + 1, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this->cpp_uniffi_matrix_sdk_ffi_fn_free_roompreview( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_fn_method_roompreview_info"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_method_roompreview_info"), + 1, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this->cpp_uniffi_matrix_sdk_ffi_fn_method_roompreview_info( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_fn_method_roompreview_inviter"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_method_roompreview_inviter"), + 1, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_fn_method_roompreview_inviter( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_fn_method_roompreview_leave"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_method_roompreview_leave"), + 1, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this->cpp_uniffi_matrix_sdk_ffi_fn_method_roompreview_leave( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_fn_clone_sendattachmentjoinhandle"] = jsi::Function::createFromHostFunction( rt, @@ -15079,6 +15398,18 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( return this->cpp_uniffi_matrix_sdk_ffi_fn_method_sendhandle_abort( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_fn_method_sendhandle_try_resend"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_method_sendhandle_try_resend"), + 1, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_fn_method_sendhandle_try_resend( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_fn_clone_sessionverificationcontroller"] = jsi::Function::createFromHostFunction( rt, @@ -15105,6 +15436,32 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_free_sessionverificationcontroller( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_accept_" + "verification_request"] = jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_" + "accept_verification_request"), + 1, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_accept_verification_request( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_" + "acknowledge_verification_request"] = jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_" + "acknowledge_verification_request"), + 3, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_acknowledge_verification_request( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_approve_" "verification"] = jsi::Function::createFromHostFunction( rt, @@ -15144,19 +15501,6 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_decline_verification( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_is_" - "verified"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "uniffi_matrix_sdk_ffi_fn_method_" - "sessionverificationcontroller_is_verified"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_is_verified( - rt, thisVal, args, count); - }); props["uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_request_" "verification"] = jsi::Function::createFromHostFunction( rt, @@ -15471,7 +15815,7 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_fn_method_" "syncservicebuilder_with_cross_process_lock"), - 2, + 1, [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value { return this @@ -15663,19 +16007,6 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_method_timeline_get_event_timeline_item_by_event_id( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_fn_method_timeline_get_event_timeline_item_by_" - "transaction_id"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "uniffi_matrix_sdk_ffi_fn_method_timeline_get_" - "event_timeline_item_by_transaction_id"), - 2, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_matrix_sdk_ffi_fn_method_timeline_get_event_timeline_item_by_transaction_id( - rt, thisVal, args, count); - }); props["uniffi_matrix_sdk_ffi_fn_method_timeline_load_reply_details"] = jsi::Function::createFromHostFunction( rt, @@ -15765,7 +16096,7 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( rt, jsi::PropNameID::forAscii( rt, "uniffi_matrix_sdk_ffi_fn_method_timeline_send_audio"), - 6, + 7, [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value { return this @@ -15777,7 +16108,7 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( rt, jsi::PropNameID::forAscii( rt, "uniffi_matrix_sdk_ffi_fn_method_timeline_send_file"), - 4, + 7, [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value { return this->cpp_uniffi_matrix_sdk_ffi_fn_method_timeline_send_file( @@ -15788,7 +16119,7 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( rt, jsi::PropNameID::forAscii( rt, "uniffi_matrix_sdk_ffi_fn_method_timeline_send_image"), - 7, + 8, [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value { return this @@ -15849,7 +16180,7 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( rt, jsi::PropNameID::forAscii( rt, "uniffi_matrix_sdk_ffi_fn_method_timeline_send_video"), - 7, + 8, [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value { return this @@ -15862,7 +16193,7 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( jsi::PropNameID::forAscii( rt, "uniffi_matrix_sdk_ffi_fn_method_timeline_send_voice_message"), - 7, + 8, [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value { return this @@ -16305,6 +16636,18 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( return this->cpp_uniffi_matrix_sdk_ffi_fn_free_useridentity( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_fn_method_useridentity_is_verified"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_method_useridentity_is_verified"), + 1, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_fn_method_useridentity_is_verified( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_fn_method_useridentity_master_key"] = jsi::Function::createFromHostFunction( rt, @@ -16453,6 +16796,18 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_func_get_element_call_required_permissions( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_fn_func_is_room_alias_format_valid"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_func_is_room_alias_format_valid"), + 1, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_fn_func_is_room_alias_format_valid( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_fn_func_log_event"] = jsi::Function::createFromHostFunction( rt, @@ -16610,6 +16965,18 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_func_parse_matrix_entity_from( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_fn_func_room_alias_name_from_room_display_" + "name"] = jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_fn_func_room_alias_" + "name_from_room_display_name"), + 1, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_fn_func_room_alias_name_from_room_display_name( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_fn_func_sdk_git_sha"] = jsi::Function::createFromHostFunction( rt, @@ -17279,6 +17646,19 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_func_get_element_call_required_permissions( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_checksum_func_is_room_alias_format_valid"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, + "uniffi_matrix_sdk_ffi_checksum_func_is_room_alias_format_valid"), + 0, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_checksum_func_is_room_alias_format_valid( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_checksum_func_log_event"] = jsi::Function::createFromHostFunction( rt, @@ -17439,6 +17819,18 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_func_parse_matrix_entity_from( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_checksum_func_room_alias_name_from_room_display_" + "name"] = jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_checksum_func_room_" + "alias_name_from_room_display_name"), + 0, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_checksum_func_room_alias_name_from_room_display_name( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_checksum_func_sdk_git_sha"] = jsi::Function::createFromHostFunction( rt, @@ -17523,17 +17915,17 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_roommessageeventcontentwithoutrelation_with_mentions( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_login"] = + props["uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_auth"] = jsi::Function::createFromHostFunction( rt, jsi::PropNameID::forAscii( rt, - "uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_login"), + "uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_auth"), 0, [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value { return this - ->cpp_uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_login( + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_auth( rt, thisVal, args, count); }); props["uniffi_matrix_sdk_ffi_checksum_method_client_account_data"] = @@ -17633,6 +18025,19 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_client_create_room( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_checksum_method_client_create_room_alias"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, + "uniffi_matrix_sdk_ffi_checksum_method_client_create_room_alias"), + 0, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_client_create_room_alias( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_checksum_method_client_custom_login_with_jwt"] = jsi::Function::createFromHostFunction( rt, @@ -17900,6 +18305,18 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_client_ignored_users( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_checksum_method_client_is_room_alias_" + "available"] = jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_checksum_method_" + "client_is_room_alias_available"), + 0, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_client_is_room_alias_available( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_checksum_method_client_join_room_by_id"] = jsi::Function::createFromHostFunction( rt, @@ -17925,6 +18342,17 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_client_join_room_by_id_or_alias( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_checksum_method_client_knock"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_checksum_method_client_knock"), + 0, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this->cpp_uniffi_matrix_sdk_ffi_checksum_method_client_knock( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_checksum_method_client_login"] = jsi::Function::createFromHostFunction( rt, @@ -18034,6 +18462,19 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_client_restore_session( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_checksum_method_client_room_alias_exists"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, + "uniffi_matrix_sdk_ffi_checksum_method_client_room_alias_exists"), + 0, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_client_room_alias_exists( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_checksum_method_client_room_directory_search"] = jsi::Function::createFromHostFunction( rt, @@ -18252,16 +18693,16 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_client_upload_media( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc_login"] = + props["uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc"] = jsi::Function::createFromHostFunction( rt, - jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_checksum_method_" - "client_url_for_oidc_login"), + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc"), 0, [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value { return this - ->cpp_uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc_login( + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc( rt, thisVal, args, count); }); props["uniffi_matrix_sdk_ffi_checksum_method_client_user_id"] = @@ -18360,6 +18801,19 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_build_with_qr_code( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_cross_process_" + "store_locks_holder_name"] = jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_cross_" + "process_store_locks_holder_name"), + 0, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_cross_process_store_locks_holder_name( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_disable_automatic_" "token_refresh"] = jsi::Function::createFromHostFunction( rt, @@ -18398,17 +18852,16 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_disable_ssl_verification( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_enable_cross_" - "process_refresh_lock"] = jsi::Function::createFromHostFunction( + props["uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_enable_oidc_" + "refresh_lock"] = jsi::Function::createFromHostFunction( rt, - jsi::PropNameID::forAscii( - rt, "uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_enable_" - "cross_process_refresh_lock"), + jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_checksum_method_" + "clientbuilder_enable_oidc_refresh_lock"), 0, [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value { return this - ->cpp_uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_enable_cross_process_refresh_lock( + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_enable_oidc_refresh_lock( rt, thisVal, args, count); }); props["uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_homeserver_url"] = @@ -18672,18 +19125,6 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_encryption_enable_recovery( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_checksum_method_encryption_get_user_identity"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_checksum_method_" - "encryption_get_user_identity"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_matrix_sdk_ffi_checksum_method_encryption_get_user_identity( - rt, thisVal, args, count); - }); props["uniffi_matrix_sdk_ffi_checksum_method_encryption_is_last_device"] = jsi::Function::createFromHostFunction( rt, @@ -18768,6 +19209,19 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_encryption_reset_recovery_key( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_checksum_method_encryption_user_identity"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, + "uniffi_matrix_sdk_ffi_checksum_method_encryption_user_identity"), + 0, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_encryption_user_identity( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_checksum_method_encryption_verification_state"] = jsi::Function::createFromHostFunction( rt, @@ -18818,43 +19272,30 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_encryption_wait_for_e2ee_initialization_tasks( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_checksum_method_eventshieldsprovider_get_" - "shields"] = jsi::Function::createFromHostFunction( + props["uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_sliding_" + "sync_version"] = jsi::Function::createFromHostFunction( rt, - jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_checksum_method_" - "eventshieldsprovider_get_shields"), + jsi::PropNameID::forAscii(rt, + "uniffi_matrix_sdk_ffi_checksum_method_" + "homeserverlogindetails_sliding_sync_version"), 0, [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value { return this - ->cpp_uniffi_matrix_sdk_ffi_checksum_method_eventshieldsprovider_get_shields( + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_sliding_sync_version( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_checksum_method_" - "eventtimelineitemdebuginfoprovider_get"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "uniffi_matrix_sdk_ffi_checksum_method_" - "eventtimelineitemdebuginfoprovider_get"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_matrix_sdk_ffi_checksum_method_eventtimelineitemdebuginfoprovider_get( - rt, thisVal, args, count); - }); - props["uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_sliding_" - "sync_version"] = jsi::Function::createFromHostFunction( + props["uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_" + "supported_oidc_prompts"] = jsi::Function::createFromHostFunction( rt, - jsi::PropNameID::forAscii(rt, - "uniffi_matrix_sdk_ffi_checksum_method_" - "homeserverlogindetails_sliding_sync_version"), + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_" + "supported_oidc_prompts"), 0, [this](jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) -> jsi::Value { return this - ->cpp_uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_sliding_sync_version( + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_supported_oidc_prompts( rt, thisVal, args, count); }); props["uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_supports_" @@ -18956,6 +19397,42 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_inreplytodetails_event_id( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_debug_" + "info"] = jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_checksum_method_" + "lazytimelineitemprovider_debug_info"), + 0, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_debug_info( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_get_" + "send_handle"] = jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_checksum_method_" + "lazytimelineitemprovider_get_send_handle"), + 0, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_get_send_handle( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_get_" + "shields"] = jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_checksum_method_" + "lazytimelineitemprovider_get_shields"), + 0, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_get_shields( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_checksum_method_mediafilehandle_path"] = jsi::Function::createFromHostFunction( rt, @@ -20133,18 +20610,6 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( return this->cpp_uniffi_matrix_sdk_ffi_checksum_method_room_topic( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_checksum_method_room_try_resend"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "uniffi_matrix_sdk_ffi_checksum_method_room_try_resend"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_matrix_sdk_ffi_checksum_method_room_try_resend( - rt, thisVal, args, count); - }); props["uniffi_matrix_sdk_ffi_checksum_method_room_typing_notice"] = jsi::Function::createFromHostFunction( rt, @@ -20520,6 +20985,18 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_membership( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_preview_room"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_checksum_method_" + "roomlistitem_preview_room"), + 0, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_preview_room( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_room_info"] = jsi::Function::createFromHostFunction( rt, @@ -20619,6 +21096,42 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_roommembersiterator_next_chunk( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_checksum_method_roompreview_info"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_checksum_method_roompreview_info"), + 0, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_roompreview_info( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_checksum_method_roompreview_inviter"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_checksum_method_roompreview_inviter"), + 0, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_roompreview_inviter( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_checksum_method_roompreview_leave"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_checksum_method_roompreview_leave"), + 0, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_roompreview_leave( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_" "cancel"] = jsi::Function::createFromHostFunction( rt, @@ -20655,6 +21168,45 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_sendhandle_abort( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_checksum_method_sendhandle_try_resend"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, + "uniffi_matrix_sdk_ffi_checksum_method_sendhandle_try_resend"), + 0, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_sendhandle_try_resend( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_" + "accept_verification_request"] = jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_checksum_method_" + "sessionverificationcontroller_accept_verification_request"), + 0, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_accept_verification_request( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_" + "acknowledge_verification_request"] = jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_checksum_method_" + "sessionverificationcontroller_acknowledge_verification_request"), + 0, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_acknowledge_verification_request( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_" "approve_verification"] = jsi::Function::createFromHostFunction( rt, @@ -20694,19 +21246,6 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_decline_verification( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_" - "is_verified"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "uniffi_matrix_sdk_ffi_checksum_method_" - "sessionverificationcontroller_is_verified"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_is_verified( - rt, thisVal, args, count); - }); props["uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_" "request_verification"] = jsi::Function::createFromHostFunction( rt, @@ -21048,19 +21587,6 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_timeline_get_event_timeline_item_by_event_id( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_checksum_method_timeline_get_event_timeline_" - "item_by_transaction_id"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "uniffi_matrix_sdk_ffi_checksum_method_timeline_get_event_" - "timeline_item_by_transaction_id"), - 0, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_matrix_sdk_ffi_checksum_method_timeline_get_event_timeline_item_by_transaction_id( - rt, thisVal, args, count); - }); props["uniffi_matrix_sdk_ffi_checksum_method_timeline_load_reply_details"] = jsi::Function::createFromHostFunction( rt, @@ -21547,6 +22073,19 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_unreadnotificationscount_notification_count( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_checksum_method_useridentity_is_verified"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, + "uniffi_matrix_sdk_ffi_checksum_method_useridentity_is_verified"), + 0, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_useridentity_is_verified( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_checksum_method_useridentity_master_key"] = jsi::Function::createFromHostFunction( rt, @@ -21957,6 +22496,20 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_sendqueueroomerrorlistener_on_error( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_checksum_method_" + "sessionverificationcontrollerdelegate_did_receive_verification_" + "request"] = jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_checksum_method_" + "sessionverificationcontrollerdelegate_did_" + "receive_verification_request"), + 0, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_receive_verification_request( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_checksum_method_" "sessionverificationcontrollerdelegate_did_accept_verification_" "request"] = jsi::Function::createFromHostFunction( @@ -22510,32 +23063,6 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_internal_fn_method_encryption_ffi__bless_pointer( rt, thisVal, args, count); }); - props["uniffi_internal_fn_method_eventshieldsprovider_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii(rt, - "uniffi_internal_fn_method_" - "eventshieldsprovider_ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_eventshieldsprovider_ffi__bless_pointer( - rt, thisVal, args, count); - }); - props["uniffi_internal_fn_method_eventtimelineitemdebuginfoprovider_ffi__" - "bless_pointer"] = jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "uniffi_internal_fn_method_eventtimelineitemdebuginfoprovider_" - "ffi__bless_pointer"), - 1, - [this](jsi::Runtime &rt, const jsi::Value &thisVal, - const jsi::Value *args, size_t count) -> jsi::Value { - return this - ->cpp_uniffi_internal_fn_method_eventtimelineitemdebuginfoprovider_ffi__bless_pointer( - rt, thisVal, args, count); - }); props["uniffi_internal_fn_method_homeserverlogindetails_ffi__bless_pointer"] = jsi::Function::createFromHostFunction( rt, @@ -22575,6 +23102,19 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_internal_fn_method_inreplytodetails_ffi__bless_pointer( rt, thisVal, args, count); }); + props["uniffi_internal_fn_method_lazytimelineitemprovider_ffi__bless_" + "pointer"] = jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii(rt, + "uniffi_internal_fn_method_" + "lazytimelineitemprovider_ffi__bless_pointer"), + 1, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_internal_fn_method_lazytimelineitemprovider_ffi__bless_pointer( + rt, thisVal, args, count); + }); props["uniffi_internal_fn_method_mediafilehandle_ffi__bless_pointer"] = jsi::Function::createFromHostFunction( rt, @@ -22726,6 +23266,18 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_internal_fn_method_roommembersiterator_ffi__bless_pointer( rt, thisVal, args, count); }); + props["uniffi_internal_fn_method_roompreview_ffi__bless_pointer"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_internal_fn_method_roompreview_ffi__bless_pointer"), + 1, + [this](jsi::Runtime &rt, const jsi::Value &thisVal, + const jsi::Value *args, size_t count) -> jsi::Value { + return this + ->cpp_uniffi_internal_fn_method_roompreview_ffi__bless_pointer( + rt, thisVal, args, count); + }); props["uniffi_internal_fn_method_sendattachmentjoinhandle_ffi__bless_" "pointer"] = jsi::Function::createFromHostFunction( rt, @@ -23156,6 +23708,10 @@ NativeMatrixSdkFfi::~NativeMatrixSdkFfi() { uniffi::matrix_sdk_ffi::cb:: callbackinterfacesessionverificationcontrollerdelegatemethod5::cleanup(); // Cleanup for callback function + // CallbackInterfaceSessionVerificationControllerDelegateMethod6 + uniffi::matrix_sdk_ffi::cb:: + callbackinterfacesessionverificationcontrollerdelegatemethod6::cleanup(); + // Cleanup for callback function // CallbackInterfaceSyncServiceStateObserverMethod0 uniffi::matrix_sdk_ffi::cb::callbackinterfacesyncservicestateobservermethod0:: cleanup(); @@ -23283,23 +23839,7 @@ NativeMatrixSdkFfi::cpp_uniffi_internal_fn_method_encryption_ffi__bless_pointer( return jsi::Value(rt, obj); } jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_internal_fn_method_eventshieldsprovider_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto pointer = - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); - auto static destructor = [](uint64_t p) { - auto pointer = reinterpret_cast(static_cast(p)); - RustCallStatus status = {0}; - uniffi_matrix_sdk_ffi_fn_free_eventshieldsprovider(pointer, &status); - }; - auto ptrObj = - std::make_shared(pointer, destructor); - auto obj = jsi::Object::createFromHostObject(rt, ptrObj); - return jsi::Value(rt, obj); -} -jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_internal_fn_method_eventtimelineitemdebuginfoprovider_ffi__bless_pointer( + cpp_uniffi_internal_fn_method_homeserverlogindetails_ffi__bless_pointer( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { auto pointer = @@ -23307,8 +23847,7 @@ jsi::Value NativeMatrixSdkFfi:: auto static destructor = [](uint64_t p) { auto pointer = reinterpret_cast(static_cast(p)); RustCallStatus status = {0}; - uniffi_matrix_sdk_ffi_fn_free_eventtimelineitemdebuginfoprovider(pointer, - &status); + uniffi_matrix_sdk_ffi_fn_free_homeserverlogindetails(pointer, &status); }; auto ptrObj = std::make_shared(pointer, destructor); @@ -23316,7 +23855,7 @@ jsi::Value NativeMatrixSdkFfi:: return jsi::Value(rt, obj); } jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_internal_fn_method_homeserverlogindetails_ffi__bless_pointer( + cpp_uniffi_internal_fn_method_identityresethandle_ffi__bless_pointer( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { auto pointer = @@ -23324,7 +23863,7 @@ jsi::Value NativeMatrixSdkFfi:: auto static destructor = [](uint64_t p) { auto pointer = reinterpret_cast(static_cast(p)); RustCallStatus status = {0}; - uniffi_matrix_sdk_ffi_fn_free_homeserverlogindetails(pointer, &status); + uniffi_matrix_sdk_ffi_fn_free_identityresethandle(pointer, &status); }; auto ptrObj = std::make_shared(pointer, destructor); @@ -23332,7 +23871,7 @@ jsi::Value NativeMatrixSdkFfi:: return jsi::Value(rt, obj); } jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_internal_fn_method_identityresethandle_ffi__bless_pointer( + cpp_uniffi_internal_fn_method_inreplytodetails_ffi__bless_pointer( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { auto pointer = @@ -23340,7 +23879,7 @@ jsi::Value NativeMatrixSdkFfi:: auto static destructor = [](uint64_t p) { auto pointer = reinterpret_cast(static_cast(p)); RustCallStatus status = {0}; - uniffi_matrix_sdk_ffi_fn_free_identityresethandle(pointer, &status); + uniffi_matrix_sdk_ffi_fn_free_inreplytodetails(pointer, &status); }; auto ptrObj = std::make_shared(pointer, destructor); @@ -23348,7 +23887,7 @@ jsi::Value NativeMatrixSdkFfi:: return jsi::Value(rt, obj); } jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_internal_fn_method_inreplytodetails_ffi__bless_pointer( + cpp_uniffi_internal_fn_method_lazytimelineitemprovider_ffi__bless_pointer( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { auto pointer = @@ -23356,7 +23895,7 @@ jsi::Value NativeMatrixSdkFfi:: auto static destructor = [](uint64_t p) { auto pointer = reinterpret_cast(static_cast(p)); RustCallStatus status = {0}; - uniffi_matrix_sdk_ffi_fn_free_inreplytodetails(pointer, &status); + uniffi_matrix_sdk_ffi_fn_free_lazytimelineitemprovider(pointer, &status); }; auto ptrObj = std::make_shared(pointer, destructor); @@ -23557,6 +24096,22 @@ jsi::Value NativeMatrixSdkFfi:: auto obj = jsi::Object::createFromHostObject(rt, ptrObj); return jsi::Value(rt, obj); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_internal_fn_method_roompreview_ffi__bless_pointer( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto pointer = + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]); + auto static destructor = [](uint64_t p) { + auto pointer = reinterpret_cast(static_cast(p)); + RustCallStatus status = {0}; + uniffi_matrix_sdk_ffi_fn_free_roompreview(pointer, &status); + }; + auto ptrObj = + std::make_shared(pointer, destructor); + auto obj = jsi::Object::createFromHostObject(rt, ptrObj); + return jsi::Value(rt, obj); +} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_internal_fn_method_sendattachmentjoinhandle_ffi__bless_pointer( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -23985,10 +24540,10 @@ jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_free_client( return jsi::Value::undefined(); } jsi::Value -NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_client_abort_oidc_login( +NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_client_abort_oidc_auth( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { - auto value = uniffi_matrix_sdk_ffi_fn_method_client_abort_oidc_login( + auto value = uniffi_matrix_sdk_ffi_fn_method_client_abort_oidc_auth( uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1])); @@ -24091,6 +24646,20 @@ NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_client_create_room( return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_fn_method_client_create_room_alias( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_fn_method_client_create_room_alias( + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), + uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, + args[1]), + uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, + args[2])); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, + value); +} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_fn_method_client_custom_login_with_jwt( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -24372,6 +24941,18 @@ NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_client_ignored_users( return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_fn_method_client_is_room_alias_available( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_fn_method_client_is_room_alias_available( + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), + uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, + args[1])); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, + value); +} jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_client_join_room_by_id( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -24398,6 +24979,21 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_client_knock( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_fn_method_client_knock( + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), + uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, + args[1]), + uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, + args[2]), + uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, + args[3])); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, + value); +} jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_client_login( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { @@ -24512,6 +25108,18 @@ NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_client_restore_session( return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_fn_method_client_room_alias_exists( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_fn_method_client_room_alias_exists( + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), + uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, + args[1])); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, + value); +} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_fn_method_client_room_directory_search( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -24772,14 +25380,16 @@ NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_client_upload_media( return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } -jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc_login( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc_login( +jsi::Value +NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc( uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, - args[1])); + args[1]), + uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, + args[2])); return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); @@ -24938,6 +25548,23 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_cross_process_store_locks_holder_name( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + RustCallStatus status = + uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); + auto value = + uniffi_matrix_sdk_ffi_fn_method_clientbuilder_cross_process_store_locks_holder_name( + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), + uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, + args[1]), + &status); + uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( + rt, callInvoker, status, args[count - 1]); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_disable_automatic_token_refresh( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -24984,17 +25611,14 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_enable_cross_process_refresh_lock( + cpp_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_enable_oidc_refresh_lock( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { RustCallStatus status = uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); auto value = - uniffi_matrix_sdk_ffi_fn_method_clientbuilder_enable_cross_process_refresh_lock( + uniffi_matrix_sdk_ffi_fn_method_clientbuilder_enable_oidc_refresh_lock( uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, - args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2]), &status); uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( rt, callInvoker, status, args[count - 1]); @@ -25333,18 +25957,6 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } -jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_fn_method_encryption_get_user_identity( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_matrix_sdk_ffi_fn_method_encryption_get_user_identity( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_fn_method_encryption_is_last_device( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -25429,6 +26041,18 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_fn_method_encryption_user_identity( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_fn_method_encryption_user_identity( + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), + uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, + args[1])); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, + value); +} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_fn_method_encryption_verification_state( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -25484,12 +26108,12 @@ jsi::Value NativeMatrixSdkFfi:: value); } jsi::Value -NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_clone_eventshieldsprovider( +NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_clone_homeserverlogindetails( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { RustCallStatus status = uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); - auto value = uniffi_matrix_sdk_ffi_fn_clone_eventshieldsprovider( + auto value = uniffi_matrix_sdk_ffi_fn_clone_homeserverlogindetails( uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( rt, callInvoker, status, args[count - 1]); @@ -25497,55 +26121,12 @@ NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_clone_eventshieldsprovider( return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } jsi::Value -NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_free_eventshieldsprovider( +NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_free_homeserverlogindetails( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { RustCallStatus status = uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); - uniffi_matrix_sdk_ffi_fn_free_eventshieldsprovider( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} -jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_fn_method_eventshieldsprovider_get_shields( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); - auto value = uniffi_matrix_sdk_ffi_fn_method_eventshieldsprovider_get_shields( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), &status); - uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi::matrix_sdk_ffi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_fn_clone_eventtimelineitemdebuginfoprovider( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); - auto value = - uniffi_matrix_sdk_ffi_fn_clone_eventtimelineitemdebuginfoprovider( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - &status); - uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_fn_free_eventtimelineitemdebuginfoprovider( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); - uniffi_matrix_sdk_ffi_fn_free_eventtimelineitemdebuginfoprovider( + uniffi_matrix_sdk_ffi_fn_free_homeserverlogindetails( uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( rt, callInvoker, status, args[count - 1]); @@ -25553,13 +26134,13 @@ jsi::Value NativeMatrixSdkFfi:: return jsi::Value::undefined(); } jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_fn_method_eventtimelineitemdebuginfoprovider_get( + cpp_uniffi_matrix_sdk_ffi_fn_method_homeserverlogindetails_sliding_sync_version( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { RustCallStatus status = uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); auto value = - uniffi_matrix_sdk_ffi_fn_method_eventtimelineitemdebuginfoprovider_get( + uniffi_matrix_sdk_ffi_fn_method_homeserverlogindetails_sliding_sync_version( uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( @@ -25568,40 +26149,14 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi::matrix_sdk_ffi::Bridging::toJs(rt, callInvoker, value); } -jsi::Value -NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_clone_homeserverlogindetails( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); - auto value = uniffi_matrix_sdk_ffi_fn_clone_homeserverlogindetails( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_free_homeserverlogindetails( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - RustCallStatus status = - uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); - uniffi_matrix_sdk_ffi_fn_free_homeserverlogindetails( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); - uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( - rt, callInvoker, status, args[count - 1]); - - return jsi::Value::undefined(); -} jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_fn_method_homeserverlogindetails_sliding_sync_version( + cpp_uniffi_matrix_sdk_ffi_fn_method_homeserverlogindetails_supported_oidc_prompts( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { RustCallStatus status = uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); auto value = - uniffi_matrix_sdk_ffi_fn_method_homeserverlogindetails_sliding_sync_version( + uniffi_matrix_sdk_ffi_fn_method_homeserverlogindetails_supported_oidc_prompts( uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( @@ -25771,6 +26326,81 @@ jsi::Value NativeMatrixSdkFfi:: value); } jsi::Value +NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_clone_lazytimelineitemprovider( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + RustCallStatus status = + uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); + auto value = uniffi_matrix_sdk_ffi_fn_clone_lazytimelineitemprovider( + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); + uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( + rt, callInvoker, status, args[count - 1]); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} +jsi::Value +NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_free_lazytimelineitemprovider( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + RustCallStatus status = + uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); + uniffi_matrix_sdk_ffi_fn_free_lazytimelineitemprovider( + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); + uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( + rt, callInvoker, status, args[count - 1]); + + return jsi::Value::undefined(); +} +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_debug_info( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + RustCallStatus status = + uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); + auto value = + uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_debug_info( + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), + &status); + uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( + rt, callInvoker, status, args[count - 1]); + + return uniffi::matrix_sdk_ffi::Bridging::toJs(rt, callInvoker, + value); +} +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_get_send_handle( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + RustCallStatus status = + uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); + auto value = + uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_get_send_handle( + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), + &status); + uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( + rt, callInvoker, status, args[count - 1]); + + return uniffi::matrix_sdk_ffi::Bridging::toJs(rt, callInvoker, + value); +} +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_get_shields( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + RustCallStatus status = + uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); + auto value = + uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_get_shields( + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[1]), + &status); + uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( + rt, callInvoker, status, args[count - 1]); + + return uniffi::matrix_sdk_ffi::Bridging::toJs(rt, callInvoker, + value); +} +jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_clone_mediafilehandle( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { @@ -26536,8 +27166,7 @@ jsi::Value NativeMatrixSdkFfi:: uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, - args[2])); + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2])); return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); @@ -27125,18 +27754,6 @@ jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_room_topic( value); } jsi::Value -NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_room_try_resend( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_matrix_sdk_ffi_fn_method_room_try_resend( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} -jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_room_typing_notice( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { @@ -27199,8 +27816,7 @@ jsi::Value NativeMatrixSdkFfi:: uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, - args[2])); + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2])); return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); @@ -27281,7 +27897,9 @@ jsi::Value NativeMatrixSdkFfi:: uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2])); + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[2]), + uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, + args[3])); return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); @@ -27668,6 +28286,18 @@ NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_roomlistitem_membership( return uniffi::matrix_sdk_ffi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_fn_method_roomlistitem_preview_room( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_fn_method_roomlistitem_preview_room( + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), + uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, + args[1])); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, + value); +} jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_roomlistitem_room_info( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -27755,8 +28385,6 @@ jsi::Value NativeMatrixSdkFfi:: uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, args[1]), - uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, - args[2]), &status); uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( rt, callInvoker, status, args[count - 1]); @@ -27835,6 +28463,64 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi::matrix_sdk_ffi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_clone_roompreview( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + RustCallStatus status = + uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); + auto value = uniffi_matrix_sdk_ffi_fn_clone_roompreview( + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); + uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( + rt, callInvoker, status, args[count - 1]); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} +jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_free_roompreview( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + RustCallStatus status = + uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); + uniffi_matrix_sdk_ffi_fn_free_roompreview( + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); + uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( + rt, callInvoker, status, args[count - 1]); + + return jsi::Value::undefined(); +} +jsi::Value +NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_roompreview_info( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + RustCallStatus status = + uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); + auto value = uniffi_matrix_sdk_ffi_fn_method_roompreview_info( + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); + uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( + rt, callInvoker, status, args[count - 1]); + + return uniffi::matrix_sdk_ffi::Bridging::toJs(rt, callInvoker, + value); +} +jsi::Value +NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_roompreview_inviter( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_fn_method_roompreview_inviter( + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, + value); +} +jsi::Value +NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_roompreview_leave( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_fn_method_roompreview_leave( + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, + value); +} jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_clone_sendattachmentjoinhandle( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -27918,6 +28604,16 @@ NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_sendhandle_abort( return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value +NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_sendhandle_try_resend( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_fn_method_sendhandle_try_resend( + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, + value); +} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_fn_clone_sessionverificationcontroller( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -27945,44 +28641,59 @@ jsi::Value NativeMatrixSdkFfi:: return jsi::Value::undefined(); } jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_approve_verification( + cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_accept_verification_request( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { auto value = - uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_approve_verification( + uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_accept_verification_request( uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_cancel_verification( + cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_acknowledge_verification_request( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { auto value = - uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_cancel_verification( + uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_acknowledge_verification_request( + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), + uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, + args[1]), + uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, + args[2])); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, + value); +} +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_approve_verification( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = + uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_approve_verification( uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_decline_verification( + cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_cancel_verification( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { auto value = - uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_decline_verification( + uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_cancel_verification( uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_is_verified( + cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_decline_verification( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { auto value = - uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_is_verified( + uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_decline_verification( uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0])); return uniffi_jsi::Bridging::toJs(rt, callInvoker, @@ -28344,8 +29055,6 @@ jsi::Value NativeMatrixSdkFfi:: auto value = uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_cross_process_lock( uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, - args[1]), &status); uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( rt, callInvoker, status, args[count - 1]); @@ -28561,19 +29270,6 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } -jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_fn_method_timeline_get_event_timeline_item_by_transaction_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_matrix_sdk_ffi_fn_method_timeline_get_event_timeline_item_by_transaction_id( - uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), - uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, - args[1])); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, - value); -} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_fn_method_timeline_load_reply_details( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -28680,7 +29376,7 @@ NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_timeline_send_audio( args[4]), uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, args[5]), - &status); + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[6]), &status); uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( rt, callInvoker, status, args[count - 1]); @@ -28700,7 +29396,11 @@ NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_timeline_send_file( args[2]), uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, args[3]), - &status); + uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, + args[4]), + uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, + args[5]), + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[6]), &status); uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( rt, callInvoker, status, args[count - 1]); @@ -28726,7 +29426,7 @@ NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_timeline_send_image( args[5]), uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, args[6]), - &status); + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[7]), &status); uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( rt, callInvoker, status, args[count - 1]); @@ -28813,7 +29513,7 @@ NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_timeline_send_video( args[5]), uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, args[6]), - &status); + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[7]), &status); uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( rt, callInvoker, status, args[count - 1]); @@ -28839,7 +29539,7 @@ jsi::Value NativeMatrixSdkFfi:: args[5]), uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, args[6]), - &status); + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[7]), &status); uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( rt, callInvoker, status, args[count - 1]); @@ -29345,6 +30045,19 @@ jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_free_useridentity( return jsi::Value::undefined(); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_fn_method_useridentity_is_verified( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + RustCallStatus status = + uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); + auto value = uniffi_matrix_sdk_ffi_fn_method_useridentity_is_verified( + uniffi_jsi::Bridging::fromJs(rt, callInvoker, args[0]), &status); + uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( + rt, callInvoker, status, args[count - 1]); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_useridentity_master_key( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -29515,6 +30228,21 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi::matrix_sdk_ffi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_fn_func_is_room_alias_format_valid( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + RustCallStatus status = + uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); + auto value = uniffi_matrix_sdk_ffi_fn_func_is_room_alias_format_valid( + uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, + args[0]), + &status); + uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( + rt, callInvoker, status, args[count - 1]); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_func_log_event( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { @@ -29730,6 +30458,23 @@ NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_func_parse_matrix_entity_from( return uniffi::matrix_sdk_ffi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_fn_func_room_alias_name_from_room_display_name( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + RustCallStatus status = + uniffi::matrix_sdk_ffi::Bridging::rustSuccess(rt); + auto value = + uniffi_matrix_sdk_ffi_fn_func_room_alias_name_from_room_display_name( + uniffi::matrix_sdk_ffi::Bridging::fromJs(rt, callInvoker, + args[0]), + &status); + uniffi::matrix_sdk_ffi::Bridging::copyIntoJs( + rt, callInvoker, status, args[count - 1]); + + return uniffi::matrix_sdk_ffi::Bridging::toJs(rt, callInvoker, + value); +} jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_func_sdk_git_sha( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { @@ -30424,6 +31169,14 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_checksum_func_is_room_alias_format_valid( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_checksum_func_is_room_alias_format_valid(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_checksum_func_log_event( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -30534,6 +31287,15 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_checksum_func_room_alias_name_from_room_display_name( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = + uniffi_matrix_sdk_ffi_checksum_func_room_alias_name_from_room_display_name(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_checksum_func_sdk_git_sha( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -30594,10 +31356,10 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_login( + cpp_uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_auth( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { - auto value = uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_login(); + auto value = uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_auth(); return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } @@ -30668,6 +31430,14 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_checksum_method_client_create_room_alias( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_checksum_method_client_create_room_alias(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_checksum_method_client_custom_login_with_jwt( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -30854,6 +31624,15 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_checksum_method_client_is_room_alias_available( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = + uniffi_matrix_sdk_ffi_checksum_method_client_is_room_alias_available(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_checksum_method_client_join_room_by_id( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -30872,6 +31651,14 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } jsi::Value +NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_checksum_method_client_knock( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_checksum_method_client_knock(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} +jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_checksum_method_client_login( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { @@ -30947,6 +31734,14 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_checksum_method_client_room_alias_exists( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_checksum_method_client_room_alias_exists(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_checksum_method_client_room_directory_search( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -31097,11 +31892,10 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc_login( + cpp_uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { - auto value = - uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc_login(); + auto value = uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc(); return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } @@ -31175,6 +31969,15 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_cross_process_store_locks_holder_name( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = + uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_cross_process_store_locks_holder_name(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_disable_automatic_token_refresh( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -31203,11 +32006,11 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_enable_cross_process_refresh_lock( + cpp_uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_enable_oidc_refresh_lock( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { auto value = - uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_enable_cross_process_refresh_lock(); + uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_enable_oidc_refresh_lock(); return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } @@ -31394,15 +32197,6 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } -jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_checksum_method_encryption_get_user_identity( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_matrix_sdk_ffi_checksum_method_encryption_get_user_identity(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_checksum_method_encryption_is_last_device( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -31465,6 +32259,14 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_checksum_method_encryption_user_identity( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_checksum_method_encryption_user_identity(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_checksum_method_encryption_verification_state( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -31502,29 +32304,20 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_checksum_method_eventshieldsprovider_get_shields( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_matrix_sdk_ffi_checksum_method_eventshieldsprovider_get_shields(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_checksum_method_eventtimelineitemdebuginfoprovider_get( + cpp_uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_sliding_sync_version( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { auto value = - uniffi_matrix_sdk_ffi_checksum_method_eventtimelineitemdebuginfoprovider_get(); + uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_sliding_sync_version(); return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_sliding_sync_version( + cpp_uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_supported_oidc_prompts( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { auto value = - uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_sliding_sync_version(); + uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_supported_oidc_prompts(); return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } @@ -31599,6 +32392,33 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_debug_info( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = + uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_debug_info(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_get_send_handle( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = + uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_get_send_handle(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_get_shields( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = + uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_get_shields(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_checksum_method_mediafilehandle_path( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -32409,14 +33229,6 @@ NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_checksum_method_room_topic( return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } -jsi::Value -NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_checksum_method_room_try_resend( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_matrix_sdk_ffi_checksum_method_room_try_resend(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_checksum_method_room_typing_notice( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -32677,6 +33489,15 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_preview_room( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = + uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_preview_room(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_room_info( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -32745,6 +33566,30 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value +NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_checksum_method_roompreview_info( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_checksum_method_roompreview_info(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_checksum_method_roompreview_inviter( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_checksum_method_roompreview_inviter(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} +jsi::Value +NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_checksum_method_roompreview_leave( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_checksum_method_roompreview_leave(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_cancel( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -32772,38 +33617,55 @@ NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_checksum_method_sendhandle_abort( return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_approve_verification( + cpp_uniffi_matrix_sdk_ffi_checksum_method_sendhandle_try_resend( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_checksum_method_sendhandle_try_resend(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_accept_verification_request( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { auto value = - uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_approve_verification(); + uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_accept_verification_request(); return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_cancel_verification( + cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_acknowledge_verification_request( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { auto value = - uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_cancel_verification(); + uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_acknowledge_verification_request(); return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_decline_verification( + cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_approve_verification( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { auto value = - uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_decline_verification(); + uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_approve_verification(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_cancel_verification( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = + uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_cancel_verification(); return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_is_verified( + cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_decline_verification( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { auto value = - uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_is_verified(); + uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_decline_verification(); return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } @@ -33044,15 +33906,6 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } -jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_checksum_method_timeline_get_event_timeline_item_by_transaction_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = - uniffi_matrix_sdk_ffi_checksum_method_timeline_get_event_timeline_item_by_transaction_id(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_checksum_method_timeline_load_reply_details( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -33375,6 +34228,14 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_checksum_method_useridentity_is_verified( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_checksum_method_useridentity_is_verified(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_checksum_method_useridentity_master_key( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -33663,6 +34524,15 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_receive_verification_request( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = + uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_receive_verification_request(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_accept_verification_request( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, diff --git a/cpp/generated/matrix_sdk_ffi.hpp b/cpp/generated/matrix_sdk_ffi.hpp index 3ac8c3e..8b01cb8 100644 --- a/cpp/generated/matrix_sdk_ffi.hpp +++ b/cpp/generated/matrix_sdk_ffi.hpp @@ -62,7 +62,7 @@ class NativeMatrixSdkFfi : public jsi::HostObject { const jsi::Value &thisVal, const jsi::Value *args, size_t count); - jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_client_abort_oidc_login( + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_client_abort_oidc_auth( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_client_account_data( @@ -90,6 +90,9 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_client_create_room( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_client_create_room_alias( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_client_custom_login_with_jwt( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -162,6 +165,9 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_client_ignored_users( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_client_is_room_alias_available( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_client_join_room_by_id( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -169,6 +175,9 @@ class NativeMatrixSdkFfi : public jsi::HostObject { cpp_uniffi_matrix_sdk_ffi_fn_method_client_join_room_by_id_or_alias( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_client_knock( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_client_login( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -198,6 +207,9 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_client_restore_session( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_client_room_alias_exists( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_client_room_directory_search( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -255,7 +267,7 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_client_upload_media( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); - jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc_login( + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_client_user_id( @@ -297,6 +309,10 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value + cpp_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_cross_process_store_locks_holder_name( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_disable_automatic_token_refresh( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -309,7 +325,7 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value - cpp_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_enable_cross_process_refresh_lock( + cpp_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_enable_oidc_refresh_lock( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_homeserver_url( @@ -388,9 +404,6 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_encryption_enable_recovery( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); - jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_encryption_get_user_identity( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_encryption_is_last_device( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -413,6 +426,9 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_encryption_reset_recovery_key( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_encryption_user_identity( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_encryption_verification_state( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -428,28 +444,6 @@ class NativeMatrixSdkFfi : public jsi::HostObject { cpp_uniffi_matrix_sdk_ffi_fn_method_encryption_wait_for_e2ee_initialization_tasks( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); - jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_clone_eventshieldsprovider( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_free_eventshieldsprovider( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_matrix_sdk_ffi_fn_method_eventshieldsprovider_get_shields( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_matrix_sdk_ffi_fn_clone_eventtimelineitemdebuginfoprovider( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_matrix_sdk_ffi_fn_free_eventtimelineitemdebuginfoprovider( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_matrix_sdk_ffi_fn_method_eventtimelineitemdebuginfoprovider_get( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_clone_homeserverlogindetails( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -461,6 +455,10 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value + cpp_uniffi_matrix_sdk_ffi_fn_method_homeserverlogindetails_supported_oidc_prompts( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_homeserverlogindetails_supports_oidc_login( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -498,6 +496,24 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_inreplytodetails_event_id( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_clone_lazytimelineitemprovider( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_free_lazytimelineitemprovider( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value + cpp_uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_debug_info( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value + cpp_uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_get_send_handle( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value + cpp_uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_get_shields( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_clone_mediafilehandle( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -849,9 +865,6 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_room_topic( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); - jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_room_try_resend( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_room_typing_notice( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -986,6 +999,9 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_roomlistitem_membership( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_roomlistitem_preview_room( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_roomlistitem_room_info( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -1023,6 +1039,21 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_roommembersiterator_next_chunk( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_clone_roompreview( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_free_roompreview( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_roompreview_info( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_roompreview_inviter( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_roompreview_leave( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_clone_sendattachmentjoinhandle( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -1045,6 +1076,9 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_sendhandle_abort( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_sendhandle_try_resend( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_clone_sessionverificationcontroller( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -1052,19 +1086,23 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value - cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_approve_verification( + cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_accept_verification_request( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value - cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_cancel_verification( + cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_acknowledge_verification_request( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value - cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_decline_verification( + cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_approve_verification( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value + cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_cancel_verification( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value - cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_is_verified( + cpp_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_decline_verification( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value @@ -1212,10 +1250,6 @@ class NativeMatrixSdkFfi : public jsi::HostObject { cpp_uniffi_matrix_sdk_ffi_fn_method_timeline_get_event_timeline_item_by_event_id( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); - jsi::Value - cpp_uniffi_matrix_sdk_ffi_fn_method_timeline_get_event_timeline_item_by_transaction_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_timeline_load_reply_details( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -1381,6 +1415,9 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_free_useridentity( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_useridentity_is_verified( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_useridentity_master_key( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -1422,6 +1459,9 @@ class NativeMatrixSdkFfi : public jsi::HostObject { cpp_uniffi_matrix_sdk_ffi_fn_func_get_element_call_required_permissions( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_func_is_room_alias_format_valid( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_func_log_event( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -1464,6 +1504,10 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_func_parse_matrix_entity_from( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value + cpp_uniffi_matrix_sdk_ffi_fn_func_room_alias_name_from_room_display_name( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_func_sdk_git_sha( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -1646,6 +1690,9 @@ class NativeMatrixSdkFfi : public jsi::HostObject { cpp_uniffi_matrix_sdk_ffi_checksum_func_get_element_call_required_permissions( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_func_is_room_alias_format_valid( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_func_log_event( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -1691,6 +1738,10 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_func_parse_matrix_entity_from( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value + cpp_uniffi_matrix_sdk_ffi_checksum_func_room_alias_name_from_room_display_name( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_func_sdk_git_sha( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -1715,7 +1766,7 @@ class NativeMatrixSdkFfi : public jsi::HostObject { cpp_uniffi_matrix_sdk_ffi_checksum_method_roommessageeventcontentwithoutrelation_with_mentions( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); - jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_login( + jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_auth( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_client_account_data( @@ -1745,6 +1796,9 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_client_create_room( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_client_create_room_alias( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_client_custom_login_with_jwt( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -1821,6 +1875,10 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_client_ignored_users( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value + cpp_uniffi_matrix_sdk_ffi_checksum_method_client_is_room_alias_available( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_client_join_room_by_id( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -1828,6 +1886,9 @@ class NativeMatrixSdkFfi : public jsi::HostObject { cpp_uniffi_matrix_sdk_ffi_checksum_method_client_join_room_by_id_or_alias( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_client_knock( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_client_login( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -1859,6 +1920,9 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_client_restore_session( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_client_room_alias_exists( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_client_room_directory_search( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -1918,8 +1982,7 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_client_upload_media( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); - jsi::Value - cpp_uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc_login( + jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_client_user_id( @@ -1953,6 +2016,10 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value + cpp_uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_cross_process_store_locks_holder_name( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_disable_automatic_token_refresh( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -1965,7 +2032,7 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value - cpp_uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_enable_cross_process_refresh_lock( + cpp_uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_enable_oidc_refresh_lock( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value @@ -2047,10 +2114,6 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value - cpp_uniffi_matrix_sdk_ffi_checksum_method_encryption_get_user_identity( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_encryption_is_last_device( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -2077,6 +2140,9 @@ class NativeMatrixSdkFfi : public jsi::HostObject { cpp_uniffi_matrix_sdk_ffi_checksum_method_encryption_reset_recovery_key( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_encryption_user_identity( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_encryption_verification_state( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -2094,15 +2160,11 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value - cpp_uniffi_matrix_sdk_ffi_checksum_method_eventshieldsprovider_get_shields( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_matrix_sdk_ffi_checksum_method_eventtimelineitemdebuginfoprovider_get( + cpp_uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_sliding_sync_version( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value - cpp_uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_sliding_sync_version( + cpp_uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_supported_oidc_prompts( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value @@ -2136,6 +2198,18 @@ class NativeMatrixSdkFfi : public jsi::HostObject { cpp_uniffi_matrix_sdk_ffi_checksum_method_inreplytodetails_event_id( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value + cpp_uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_debug_info( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value + cpp_uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_get_send_handle( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value + cpp_uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_get_shields( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_mediafilehandle_path( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -2466,9 +2540,6 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_room_topic( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); - jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_room_try_resend( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_room_typing_notice( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -2579,6 +2650,10 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_membership( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value + cpp_uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_preview_room( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_room_info( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -2607,6 +2682,15 @@ class NativeMatrixSdkFfi : public jsi::HostObject { cpp_uniffi_matrix_sdk_ffi_checksum_method_roommembersiterator_next_chunk( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_roompreview_info( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_roompreview_inviter( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_roompreview_leave( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_cancel( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -2618,20 +2702,27 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_sendhandle_abort( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_sendhandle_try_resend( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value - cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_approve_verification( + cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_accept_verification_request( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value - cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_cancel_verification( + cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_acknowledge_verification_request( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value - cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_decline_verification( + cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_approve_verification( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value + cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_cancel_verification( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value - cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_is_verified( + cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_decline_verification( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value @@ -2732,10 +2823,6 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value - cpp_uniffi_matrix_sdk_ffi_checksum_method_timeline_get_event_timeline_item_by_transaction_id( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_timeline_load_reply_details( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -2862,6 +2949,9 @@ class NativeMatrixSdkFfi : public jsi::HostObject { cpp_uniffi_matrix_sdk_ffi_checksum_method_unreadnotificationscount_notification_count( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_useridentity_is_verified( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_useridentity_master_key( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -2986,6 +3076,10 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value + cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_receive_verification_request( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_accept_verification_request( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -3153,14 +3247,6 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value - cpp_uniffi_internal_fn_method_eventshieldsprovider_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value - cpp_uniffi_internal_fn_method_eventtimelineitemdebuginfoprovider_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_internal_fn_method_homeserverlogindetails_ffi__bless_pointer( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -3171,6 +3257,10 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_internal_fn_method_inreplytodetails_ffi__bless_pointer( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value + cpp_uniffi_internal_fn_method_lazytimelineitemprovider_ffi__bless_pointer( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_internal_fn_method_mediafilehandle_ffi__bless_pointer( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -3213,6 +3303,9 @@ class NativeMatrixSdkFfi : public jsi::HostObject { cpp_uniffi_internal_fn_method_roommembersiterator_ffi__bless_pointer( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_internal_fn_method_roompreview_ffi__bless_pointer( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_internal_fn_method_sendattachmentjoinhandle_ffi__bless_pointer( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, diff --git a/src/generated/matrix_sdk_crypto.ts b/src/generated/matrix_sdk_crypto.ts index a98981e..7a4eaf5 100644 --- a/src/generated/matrix_sdk_crypto.ts +++ b/src/generated/matrix_sdk_crypto.ts @@ -908,10 +908,30 @@ export enum UtdCause { */ Unknown, /** - * This event was sent when we were not a member of the room (or invited), - * so it is impossible to decrypt (without MSC3061). + * We are missing the keys for this event, and the event was sent when we + * were not a member of the room (or invited). */ - Membership, + SentBeforeWeJoined, + /** + * The message was sent by a user identity we have not verified, but the + * user was previously verified. + */ + VerificationViolation, + /** + * The [`crate::TrustRequirement`] requires that the sending device be + * signed by its owner, and it was not. + */ + UnsignedDevice, + /** + * The [`crate::TrustRequirement`] requires that the sending device be + * signed by its owner, and we were unable to securely find the device. + * + * This could be because the device has since been deleted, because we + * haven't yet downloaded it from the server, or because the session + * data was obtained from an insecure source (imported from a file, + * obtained from a legacy (asymmetric) backup, unsafe key forward, etc.) + */ + UnknownDevice, } const FfiConverterTypeUtdCause = (() => { @@ -923,7 +943,13 @@ const FfiConverterTypeUtdCause = (() => { case 1: return UtdCause.Unknown; case 2: - return UtdCause.Membership; + return UtdCause.SentBeforeWeJoined; + case 3: + return UtdCause.VerificationViolation; + case 4: + return UtdCause.UnsignedDevice; + case 5: + return UtdCause.UnknownDevice; default: throw new UniffiInternalError.UnexpectedEnumCase(); } @@ -932,8 +958,14 @@ const FfiConverterTypeUtdCause = (() => { switch (value) { case UtdCause.Unknown: return ordinalConverter.write(1, into); - case UtdCause.Membership: + case UtdCause.SentBeforeWeJoined: return ordinalConverter.write(2, into); + case UtdCause.VerificationViolation: + return ordinalConverter.write(3, into); + case UtdCause.UnsignedDevice: + return ordinalConverter.write(4, into); + case UtdCause.UnknownDevice: + return ordinalConverter.write(5, into); } } allocationSize(value: TypeName): number { diff --git a/src/generated/matrix_sdk_ffi-ffi.ts b/src/generated/matrix_sdk_ffi-ffi.ts index cd82fa8..bbfa434 100644 --- a/src/generated/matrix_sdk_ffi-ffi.ts +++ b/src/generated/matrix_sdk_ffi-ffi.ts @@ -63,7 +63,7 @@ interface NativeModuleInterface { ptr: bigint, uniffi_out_err: UniffiRustCallStatus ): void; - uniffi_matrix_sdk_ffi_fn_method_client_abort_oidc_login( + uniffi_matrix_sdk_ffi_fn_method_client_abort_oidc_auth( ptr: bigint, authorizationData: bigint ): bigint; @@ -95,6 +95,11 @@ interface NativeModuleInterface { ptr: bigint, request: ArrayBuffer ): bigint; + uniffi_matrix_sdk_ffi_fn_method_client_create_room_alias( + ptr: bigint, + roomAlias: ArrayBuffer, + roomId: ArrayBuffer + ): bigint; uniffi_matrix_sdk_ffi_fn_method_client_custom_login_with_jwt( ptr: bigint, jwt: ArrayBuffer, @@ -135,7 +140,7 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_fn_method_client_get_media_file( ptr: bigint, mediaSource: bigint, - body: ArrayBuffer, + filename: ArrayBuffer, mimeType: ArrayBuffer, useCache: number, tempDir: ArrayBuffer @@ -185,6 +190,10 @@ interface NativeModuleInterface { userId: ArrayBuffer ): bigint; uniffi_matrix_sdk_ffi_fn_method_client_ignored_users(ptr: bigint): bigint; + uniffi_matrix_sdk_ffi_fn_method_client_is_room_alias_available( + ptr: bigint, + alias: ArrayBuffer + ): bigint; uniffi_matrix_sdk_ffi_fn_method_client_join_room_by_id( ptr: bigint, roomId: ArrayBuffer @@ -194,6 +203,12 @@ interface NativeModuleInterface { roomIdOrAlias: ArrayBuffer, serverNames: ArrayBuffer ): bigint; + uniffi_matrix_sdk_ffi_fn_method_client_knock( + ptr: bigint, + roomIdOrAlias: ArrayBuffer, + reason: ArrayBuffer, + serverNames: ArrayBuffer + ): bigint; uniffi_matrix_sdk_ffi_fn_method_client_login( ptr: bigint, username: ArrayBuffer, @@ -230,6 +245,10 @@ interface NativeModuleInterface { ptr: bigint, session: ArrayBuffer ): bigint; + uniffi_matrix_sdk_ffi_fn_method_client_room_alias_exists( + ptr: bigint, + roomAlias: ArrayBuffer + ): bigint; uniffi_matrix_sdk_ffi_fn_method_client_room_directory_search( ptr: bigint, uniffi_out_err: UniffiRustCallStatus @@ -316,9 +335,10 @@ interface NativeModuleInterface { data: ArrayBuffer, progressWatcher: ArrayBuffer ): bigint; - uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc_login( + uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc( ptr: bigint, - oidcConfiguration: ArrayBuffer + oidcConfiguration: ArrayBuffer, + prompt: ArrayBuffer ): bigint; uniffi_matrix_sdk_ffi_fn_method_client_user_id( ptr: bigint, @@ -366,6 +386,11 @@ interface NativeModuleInterface { oidcConfiguration: ArrayBuffer, progressListener: bigint ): bigint; + uniffi_matrix_sdk_ffi_fn_method_clientbuilder_cross_process_store_locks_holder_name( + ptr: bigint, + holderName: ArrayBuffer, + uniffi_out_err: UniffiRustCallStatus + ): bigint; uniffi_matrix_sdk_ffi_fn_method_clientbuilder_disable_automatic_token_refresh( ptr: bigint, uniffi_out_err: UniffiRustCallStatus @@ -378,10 +403,8 @@ interface NativeModuleInterface { ptr: bigint, uniffi_out_err: UniffiRustCallStatus ): bigint; - uniffi_matrix_sdk_ffi_fn_method_clientbuilder_enable_cross_process_refresh_lock( + uniffi_matrix_sdk_ffi_fn_method_clientbuilder_enable_oidc_refresh_lock( ptr: bigint, - processId: ArrayBuffer, - sessionDelegate: bigint, uniffi_out_err: UniffiRustCallStatus ): bigint; uniffi_matrix_sdk_ffi_fn_method_clientbuilder_homeserver_url( @@ -486,10 +509,6 @@ interface NativeModuleInterface { passphrase: ArrayBuffer, progressListener: bigint ): bigint; - uniffi_matrix_sdk_ffi_fn_method_encryption_get_user_identity( - ptr: bigint, - userId: ArrayBuffer - ): bigint; uniffi_matrix_sdk_ffi_fn_method_encryption_is_last_device( ptr: bigint ): bigint; @@ -516,6 +535,10 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_fn_method_encryption_reset_recovery_key( ptr: bigint ): bigint; + uniffi_matrix_sdk_ffi_fn_method_encryption_user_identity( + ptr: bigint, + userId: ArrayBuffer + ): bigint; uniffi_matrix_sdk_ffi_fn_method_encryption_verification_state( ptr: bigint, uniffi_out_err: UniffiRustCallStatus @@ -532,31 +555,6 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_fn_method_encryption_wait_for_e2ee_initialization_tasks( ptr: bigint ): bigint; - uniffi_matrix_sdk_ffi_fn_clone_eventshieldsprovider( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - uniffi_matrix_sdk_ffi_fn_free_eventshieldsprovider( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - uniffi_matrix_sdk_ffi_fn_method_eventshieldsprovider_get_shields( - ptr: bigint, - strict: number, - uniffi_out_err: UniffiRustCallStatus - ): ArrayBuffer; - uniffi_matrix_sdk_ffi_fn_clone_eventtimelineitemdebuginfoprovider( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - uniffi_matrix_sdk_ffi_fn_free_eventtimelineitemdebuginfoprovider( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - uniffi_matrix_sdk_ffi_fn_method_eventtimelineitemdebuginfoprovider_get( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): ArrayBuffer; uniffi_matrix_sdk_ffi_fn_clone_homeserverlogindetails( ptr: bigint, uniffi_out_err: UniffiRustCallStatus @@ -569,6 +567,10 @@ interface NativeModuleInterface { ptr: bigint, uniffi_out_err: UniffiRustCallStatus ): ArrayBuffer; + uniffi_matrix_sdk_ffi_fn_method_homeserverlogindetails_supported_oidc_prompts( + ptr: bigint, + uniffi_out_err: UniffiRustCallStatus + ): ArrayBuffer; uniffi_matrix_sdk_ffi_fn_method_homeserverlogindetails_supports_oidc_login( ptr: bigint, uniffi_out_err: UniffiRustCallStatus @@ -616,6 +618,27 @@ interface NativeModuleInterface { ptr: bigint, uniffi_out_err: UniffiRustCallStatus ): ArrayBuffer; + uniffi_matrix_sdk_ffi_fn_clone_lazytimelineitemprovider( + ptr: bigint, + uniffi_out_err: UniffiRustCallStatus + ): bigint; + uniffi_matrix_sdk_ffi_fn_free_lazytimelineitemprovider( + ptr: bigint, + uniffi_out_err: UniffiRustCallStatus + ): void; + uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_debug_info( + ptr: bigint, + uniffi_out_err: UniffiRustCallStatus + ): ArrayBuffer; + uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_get_send_handle( + ptr: bigint, + uniffi_out_err: UniffiRustCallStatus + ): ArrayBuffer; + uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_get_shields( + ptr: bigint, + strict: number, + uniffi_out_err: UniffiRustCallStatus + ): ArrayBuffer; uniffi_matrix_sdk_ffi_fn_clone_mediafilehandle( ptr: bigint, uniffi_out_err: UniffiRustCallStatus @@ -857,7 +880,7 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_fn_method_room_ignore_device_trust_and_resend( ptr: bigint, devices: ArrayBuffer, - transactionId: ArrayBuffer + sendHandle: bigint ): bigint; uniffi_matrix_sdk_ffi_fn_method_room_ignore_user( ptr: bigint, @@ -1029,10 +1052,6 @@ interface NativeModuleInterface { ptr: bigint, uniffi_out_err: UniffiRustCallStatus ): ArrayBuffer; - uniffi_matrix_sdk_ffi_fn_method_room_try_resend( - ptr: bigint, - transactionId: ArrayBuffer - ): bigint; uniffi_matrix_sdk_ffi_fn_method_room_typing_notice( ptr: bigint, isTyping: number @@ -1055,7 +1074,7 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_fn_method_room_withdraw_verification_and_resend( ptr: bigint, userIds: ArrayBuffer, - transactionId: ArrayBuffer + sendHandle: bigint ): bigint; uniffi_matrix_sdk_ffi_fn_clone_roomdirectorysearch( ptr: bigint, @@ -1081,7 +1100,8 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_fn_method_roomdirectorysearch_search( ptr: bigint, filter: ArrayBuffer, - batchSize: number + batchSize: number, + viaServerName: ArrayBuffer ): bigint; uniffi_matrix_sdk_ffi_fn_clone_roomlist( ptr: bigint, @@ -1199,6 +1219,10 @@ interface NativeModuleInterface { ptr: bigint, uniffi_out_err: UniffiRustCallStatus ): ArrayBuffer; + uniffi_matrix_sdk_ffi_fn_method_roomlistitem_preview_room( + ptr: bigint, + via: ArrayBuffer + ): bigint; uniffi_matrix_sdk_ffi_fn_method_roomlistitem_room_info(ptr: bigint): bigint; uniffi_matrix_sdk_ffi_fn_clone_roomlistservice( ptr: bigint, @@ -1224,7 +1248,6 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_fn_method_roomlistservice_subscribe_to_rooms( ptr: bigint, roomIds: ArrayBuffer, - settings: ArrayBuffer, uniffi_out_err: UniffiRustCallStatus ): void; uniffi_matrix_sdk_ffi_fn_method_roomlistservice_sync_indicator( @@ -1251,6 +1274,20 @@ interface NativeModuleInterface { chunkSize: number, uniffi_out_err: UniffiRustCallStatus ): ArrayBuffer; + uniffi_matrix_sdk_ffi_fn_clone_roompreview( + ptr: bigint, + uniffi_out_err: UniffiRustCallStatus + ): bigint; + uniffi_matrix_sdk_ffi_fn_free_roompreview( + ptr: bigint, + uniffi_out_err: UniffiRustCallStatus + ): void; + uniffi_matrix_sdk_ffi_fn_method_roompreview_info( + ptr: bigint, + uniffi_out_err: UniffiRustCallStatus + ): ArrayBuffer; + uniffi_matrix_sdk_ffi_fn_method_roompreview_inviter(ptr: bigint): bigint; + uniffi_matrix_sdk_ffi_fn_method_roompreview_leave(ptr: bigint): bigint; uniffi_matrix_sdk_ffi_fn_clone_sendattachmentjoinhandle( ptr: bigint, uniffi_out_err: UniffiRustCallStatus @@ -1275,6 +1312,7 @@ interface NativeModuleInterface { uniffi_out_err: UniffiRustCallStatus ): void; uniffi_matrix_sdk_ffi_fn_method_sendhandle_abort(ptr: bigint): bigint; + uniffi_matrix_sdk_ffi_fn_method_sendhandle_try_resend(ptr: bigint): bigint; uniffi_matrix_sdk_ffi_fn_clone_sessionverificationcontroller( ptr: bigint, uniffi_out_err: UniffiRustCallStatus @@ -1283,6 +1321,14 @@ interface NativeModuleInterface { ptr: bigint, uniffi_out_err: UniffiRustCallStatus ): void; + uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_accept_verification_request( + ptr: bigint + ): bigint; + uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_acknowledge_verification_request( + ptr: bigint, + senderId: ArrayBuffer, + flowId: ArrayBuffer + ): bigint; uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_approve_verification( ptr: bigint ): bigint; @@ -1292,9 +1338,6 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_decline_verification( ptr: bigint ): bigint; - uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_is_verified( - ptr: bigint - ): bigint; uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_request_verification( ptr: bigint ): bigint; @@ -1401,7 +1444,6 @@ interface NativeModuleInterface { ): bigint; uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_cross_process_lock( ptr: bigint, - appIdentifier: ArrayBuffer, uniffi_out_err: UniffiRustCallStatus ): bigint; uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_utd_hook( @@ -1472,10 +1514,6 @@ interface NativeModuleInterface { ptr: bigint, eventId: ArrayBuffer ): bigint; - uniffi_matrix_sdk_ffi_fn_method_timeline_get_event_timeline_item_by_transaction_id( - ptr: bigint, - transactionId: ArrayBuffer - ): bigint; uniffi_matrix_sdk_ffi_fn_method_timeline_load_reply_details( ptr: bigint, eventIdStr: ArrayBuffer @@ -1513,13 +1551,17 @@ interface NativeModuleInterface { caption: ArrayBuffer, formattedCaption: ArrayBuffer, progressWatcher: ArrayBuffer, + useSendQueue: number, uniffi_out_err: UniffiRustCallStatus ): bigint; uniffi_matrix_sdk_ffi_fn_method_timeline_send_file( ptr: bigint, url: ArrayBuffer, fileInfo: ArrayBuffer, + caption: ArrayBuffer, + formattedCaption: ArrayBuffer, progressWatcher: ArrayBuffer, + useSendQueue: number, uniffi_out_err: UniffiRustCallStatus ): bigint; uniffi_matrix_sdk_ffi_fn_method_timeline_send_image( @@ -1530,6 +1572,7 @@ interface NativeModuleInterface { caption: ArrayBuffer, formattedCaption: ArrayBuffer, progressWatcher: ArrayBuffer, + useSendQueue: number, uniffi_out_err: UniffiRustCallStatus ): bigint; uniffi_matrix_sdk_ffi_fn_method_timeline_send_location( @@ -1563,6 +1606,7 @@ interface NativeModuleInterface { caption: ArrayBuffer, formattedCaption: ArrayBuffer, progressWatcher: ArrayBuffer, + useSendQueue: number, uniffi_out_err: UniffiRustCallStatus ): bigint; uniffi_matrix_sdk_ffi_fn_method_timeline_send_voice_message( @@ -1573,6 +1617,7 @@ interface NativeModuleInterface { caption: ArrayBuffer, formattedCaption: ArrayBuffer, progressWatcher: ArrayBuffer, + useSendQueue: number, uniffi_out_err: UniffiRustCallStatus ): bigint; uniffi_matrix_sdk_ffi_fn_method_timeline_subscribe_to_back_pagination_status( @@ -1581,7 +1626,7 @@ interface NativeModuleInterface { ): bigint; uniffi_matrix_sdk_ffi_fn_method_timeline_toggle_reaction( ptr: bigint, - uniqueId: ArrayBuffer, + itemId: ArrayBuffer, key: ArrayBuffer ): bigint; uniffi_matrix_sdk_ffi_fn_method_timeline_unpin_event( @@ -1724,6 +1769,10 @@ interface NativeModuleInterface { ptr: bigint, uniffi_out_err: UniffiRustCallStatus ): void; + uniffi_matrix_sdk_ffi_fn_method_useridentity_is_verified( + ptr: bigint, + uniffi_out_err: UniffiRustCallStatus + ): number; uniffi_matrix_sdk_ffi_fn_method_useridentity_master_key( ptr: bigint, uniffi_out_err: UniffiRustCallStatus @@ -1772,6 +1821,10 @@ interface NativeModuleInterface { ownDeviceId: ArrayBuffer, uniffi_out_err: UniffiRustCallStatus ): ArrayBuffer; + uniffi_matrix_sdk_ffi_fn_func_is_room_alias_format_valid( + alias: ArrayBuffer, + uniffi_out_err: UniffiRustCallStatus + ): number; uniffi_matrix_sdk_ffi_fn_func_log_event( file: ArrayBuffer, line: ArrayBuffer, @@ -1830,6 +1883,10 @@ interface NativeModuleInterface { uri: ArrayBuffer, uniffi_out_err: UniffiRustCallStatus ): ArrayBuffer; + uniffi_matrix_sdk_ffi_fn_func_room_alias_name_from_room_display_name( + roomName: ArrayBuffer, + uniffi_out_err: UniffiRustCallStatus + ): ArrayBuffer; uniffi_matrix_sdk_ffi_fn_func_sdk_git_sha( uniffi_out_err: UniffiRustCallStatus ): ArrayBuffer; @@ -1992,6 +2049,7 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_func_gen_transaction_id(): number; uniffi_matrix_sdk_ffi_checksum_func_generate_webview_url(): number; uniffi_matrix_sdk_ffi_checksum_func_get_element_call_required_permissions(): number; + uniffi_matrix_sdk_ffi_checksum_func_is_room_alias_format_valid(): number; uniffi_matrix_sdk_ffi_checksum_func_log_event(): number; uniffi_matrix_sdk_ffi_checksum_func_make_element_well_known(): number; uniffi_matrix_sdk_ffi_checksum_func_make_widget_driver(): number; @@ -2005,6 +2063,7 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_func_message_event_content_new(): number; uniffi_matrix_sdk_ffi_checksum_func_new_virtual_element_call_widget(): number; uniffi_matrix_sdk_ffi_checksum_func_parse_matrix_entity_from(): number; + uniffi_matrix_sdk_ffi_checksum_func_room_alias_name_from_room_display_name(): number; uniffi_matrix_sdk_ffi_checksum_func_sdk_git_sha(): number; uniffi_matrix_sdk_ffi_checksum_func_setup_tracing(): number; uniffi_matrix_sdk_ffi_checksum_func_suggested_power_level_for_role(): number; @@ -2012,7 +2071,7 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json(): number; uniffi_matrix_sdk_ffi_checksum_method_mediasource_url(): number; uniffi_matrix_sdk_ffi_checksum_method_roommessageeventcontentwithoutrelation_with_mentions(): number; - uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_login(): number; + uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_auth(): number; uniffi_matrix_sdk_ffi_checksum_method_client_account_data(): number; uniffi_matrix_sdk_ffi_checksum_method_client_account_url(): number; uniffi_matrix_sdk_ffi_checksum_method_client_available_sliding_sync_versions(): number; @@ -2021,6 +2080,7 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_method_client_cached_avatar_url(): number; uniffi_matrix_sdk_ffi_checksum_method_client_can_deactivate_account(): number; uniffi_matrix_sdk_ffi_checksum_method_client_create_room(): number; + uniffi_matrix_sdk_ffi_checksum_method_client_create_room_alias(): number; uniffi_matrix_sdk_ffi_checksum_method_client_custom_login_with_jwt(): number; uniffi_matrix_sdk_ffi_checksum_method_client_deactivate_account(): number; uniffi_matrix_sdk_ffi_checksum_method_client_delete_pusher(): number; @@ -2043,8 +2103,10 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_method_client_homeserver_login_details(): number; uniffi_matrix_sdk_ffi_checksum_method_client_ignore_user(): number; uniffi_matrix_sdk_ffi_checksum_method_client_ignored_users(): number; + uniffi_matrix_sdk_ffi_checksum_method_client_is_room_alias_available(): number; uniffi_matrix_sdk_ffi_checksum_method_client_join_room_by_id(): number; uniffi_matrix_sdk_ffi_checksum_method_client_join_room_by_id_or_alias(): number; + uniffi_matrix_sdk_ffi_checksum_method_client_knock(): number; uniffi_matrix_sdk_ffi_checksum_method_client_login(): number; uniffi_matrix_sdk_ffi_checksum_method_client_login_with_email(): number; uniffi_matrix_sdk_ffi_checksum_method_client_login_with_oidc_callback(): number; @@ -2054,6 +2116,7 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_method_client_reset_server_capabilities(): number; uniffi_matrix_sdk_ffi_checksum_method_client_resolve_room_alias(): number; uniffi_matrix_sdk_ffi_checksum_method_client_restore_session(): number; + uniffi_matrix_sdk_ffi_checksum_method_client_room_alias_exists(): number; uniffi_matrix_sdk_ffi_checksum_method_client_room_directory_search(): number; uniffi_matrix_sdk_ffi_checksum_method_client_rooms(): number; uniffi_matrix_sdk_ffi_checksum_method_client_search_users(): number; @@ -2072,7 +2135,7 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_method_client_unignore_user(): number; uniffi_matrix_sdk_ffi_checksum_method_client_upload_avatar(): number; uniffi_matrix_sdk_ffi_checksum_method_client_upload_media(): number; - uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc_login(): number; + uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc(): number; uniffi_matrix_sdk_ffi_checksum_method_client_user_id(): number; uniffi_matrix_sdk_ffi_checksum_method_client_user_id_server_name(): number; uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_add_root_certificates(): number; @@ -2081,10 +2144,11 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_backup_download_strategy(): number; uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_build(): number; uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_build_with_qr_code(): number; + uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_cross_process_store_locks_holder_name(): number; uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_disable_automatic_token_refresh(): number; uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_disable_built_in_root_certificates(): number; uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_disable_ssl_verification(): number; - uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_enable_cross_process_refresh_lock(): number; + uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_enable_oidc_refresh_lock(): number; uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_homeserver_url(): number; uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_passphrase(): number; uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_proxy(): number; @@ -2106,7 +2170,6 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_method_encryption_ed25519_key(): number; uniffi_matrix_sdk_ffi_checksum_method_encryption_enable_backups(): number; uniffi_matrix_sdk_ffi_checksum_method_encryption_enable_recovery(): number; - uniffi_matrix_sdk_ffi_checksum_method_encryption_get_user_identity(): number; uniffi_matrix_sdk_ffi_checksum_method_encryption_is_last_device(): number; uniffi_matrix_sdk_ffi_checksum_method_encryption_recover(): number; uniffi_matrix_sdk_ffi_checksum_method_encryption_recover_and_reset(): number; @@ -2114,13 +2177,13 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_method_encryption_recovery_state_listener(): number; uniffi_matrix_sdk_ffi_checksum_method_encryption_reset_identity(): number; uniffi_matrix_sdk_ffi_checksum_method_encryption_reset_recovery_key(): number; + uniffi_matrix_sdk_ffi_checksum_method_encryption_user_identity(): number; uniffi_matrix_sdk_ffi_checksum_method_encryption_verification_state(): number; uniffi_matrix_sdk_ffi_checksum_method_encryption_verification_state_listener(): number; uniffi_matrix_sdk_ffi_checksum_method_encryption_wait_for_backup_upload_steady_state(): number; uniffi_matrix_sdk_ffi_checksum_method_encryption_wait_for_e2ee_initialization_tasks(): number; - uniffi_matrix_sdk_ffi_checksum_method_eventshieldsprovider_get_shields(): number; - uniffi_matrix_sdk_ffi_checksum_method_eventtimelineitemdebuginfoprovider_get(): number; uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_sliding_sync_version(): number; + uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_supported_oidc_prompts(): number; uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_supports_oidc_login(): number; uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_supports_password_login(): number; uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_url(): number; @@ -2129,6 +2192,9 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_method_identityresethandle_reset(): number; uniffi_matrix_sdk_ffi_checksum_method_inreplytodetails_event(): number; uniffi_matrix_sdk_ffi_checksum_method_inreplytodetails_event_id(): number; + uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_debug_info(): number; + uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_get_send_handle(): number; + uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_get_shields(): number; uniffi_matrix_sdk_ffi_checksum_method_mediafilehandle_path(): number; uniffi_matrix_sdk_ffi_checksum_method_mediafilehandle_persist(): number; uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_notification(): number; @@ -2225,7 +2291,6 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_method_room_timeline(): number; uniffi_matrix_sdk_ffi_checksum_method_room_timeline_focused_on_event(): number; uniffi_matrix_sdk_ffi_checksum_method_room_topic(): number; - uniffi_matrix_sdk_ffi_checksum_method_room_try_resend(): number; uniffi_matrix_sdk_ffi_checksum_method_room_typing_notice(): number; uniffi_matrix_sdk_ffi_checksum_method_room_unban_user(): number; uniffi_matrix_sdk_ffi_checksum_method_room_update_power_levels_for_users(): number; @@ -2256,6 +2321,7 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_is_timeline_initialized(): number; uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_latest_event(): number; uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_membership(): number; + uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_preview_room(): number; uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_room_info(): number; uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_all_rooms(): number; uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_room(): number; @@ -2264,13 +2330,18 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_sync_indicator(): number; uniffi_matrix_sdk_ffi_checksum_method_roommembersiterator_len(): number; uniffi_matrix_sdk_ffi_checksum_method_roommembersiterator_next_chunk(): number; + uniffi_matrix_sdk_ffi_checksum_method_roompreview_info(): number; + uniffi_matrix_sdk_ffi_checksum_method_roompreview_inviter(): number; + uniffi_matrix_sdk_ffi_checksum_method_roompreview_leave(): number; uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_cancel(): number; uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_join(): number; uniffi_matrix_sdk_ffi_checksum_method_sendhandle_abort(): number; + uniffi_matrix_sdk_ffi_checksum_method_sendhandle_try_resend(): number; + uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_accept_verification_request(): number; + uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_acknowledge_verification_request(): number; uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_approve_verification(): number; uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_cancel_verification(): number; uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_decline_verification(): number; - uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_is_verified(): number; uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_request_verification(): number; uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_set_delegate(): number; uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_start_sas_verification(): number; @@ -2299,7 +2370,6 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_method_timeline_fetch_members(): number; uniffi_matrix_sdk_ffi_checksum_method_timeline_focused_paginate_forwards(): number; uniffi_matrix_sdk_ffi_checksum_method_timeline_get_event_timeline_item_by_event_id(): number; - uniffi_matrix_sdk_ffi_checksum_method_timeline_get_event_timeline_item_by_transaction_id(): number; uniffi_matrix_sdk_ffi_checksum_method_timeline_load_reply_details(): number; uniffi_matrix_sdk_ffi_checksum_method_timeline_mark_as_read(): number; uniffi_matrix_sdk_ffi_checksum_method_timeline_paginate_backwards(): number; @@ -2339,6 +2409,7 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_method_unreadnotificationscount_has_notifications(): number; uniffi_matrix_sdk_ffi_checksum_method_unreadnotificationscount_highlight_count(): number; uniffi_matrix_sdk_ffi_checksum_method_unreadnotificationscount_notification_count(): number; + uniffi_matrix_sdk_ffi_checksum_method_useridentity_is_verified(): number; uniffi_matrix_sdk_ffi_checksum_method_useridentity_master_key(): number; uniffi_matrix_sdk_ffi_checksum_method_useridentity_pin(): number; uniffi_matrix_sdk_ffi_checksum_method_widgetdriver_run(): number; @@ -2372,6 +2443,7 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_method_roomlistservicestatelistener_on_update(): number; uniffi_matrix_sdk_ffi_checksum_method_roomlistservicesyncindicatorlistener_on_update(): number; uniffi_matrix_sdk_ffi_checksum_method_sendqueueroomerrorlistener_on_error(): number; + uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_receive_verification_request(): number; uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_accept_verification_request(): number; uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_start_sas_verification(): number; uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_receive_verification_data(): number; @@ -2483,14 +2555,6 @@ interface NativeModuleInterface { pointer: bigint, uniffi_out_err: UniffiRustCallStatus ): UniffiRustArcPtr; - uniffi_internal_fn_method_eventshieldsprovider_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; - uniffi_internal_fn_method_eventtimelineitemdebuginfoprovider_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; uniffi_internal_fn_method_homeserverlogindetails_ffi__bless_pointer( pointer: bigint, uniffi_out_err: UniffiRustCallStatus @@ -2503,6 +2567,10 @@ interface NativeModuleInterface { pointer: bigint, uniffi_out_err: UniffiRustCallStatus ): UniffiRustArcPtr; + uniffi_internal_fn_method_lazytimelineitemprovider_ffi__bless_pointer( + pointer: bigint, + uniffi_out_err: UniffiRustCallStatus + ): UniffiRustArcPtr; uniffi_internal_fn_method_mediafilehandle_ffi__bless_pointer( pointer: bigint, uniffi_out_err: UniffiRustCallStatus @@ -2551,6 +2619,10 @@ interface NativeModuleInterface { pointer: bigint, uniffi_out_err: UniffiRustCallStatus ): UniffiRustArcPtr; + uniffi_internal_fn_method_roompreview_ffi__bless_pointer( + pointer: bigint, + uniffi_out_err: UniffiRustCallStatus + ): UniffiRustArcPtr; uniffi_internal_fn_method_sendattachmentjoinhandle_ffi__bless_pointer( pointer: bigint, uniffi_out_err: UniffiRustCallStatus @@ -2875,6 +2947,7 @@ type UniffiCallbackInterfaceSendQueueRoomErrorListenerMethod0 = ( ) => void; type UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod0 = ( uniffiHandle: bigint, + details: ArrayBuffer, uniffiOutReturn: /*pointer*/ bigint, callStatus: UniffiRustCallStatus ) => void; @@ -2885,12 +2958,12 @@ type UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod1 = ( ) => void; type UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod2 = ( uniffiHandle: bigint, - data: ArrayBuffer, uniffiOutReturn: /*pointer*/ bigint, callStatus: UniffiRustCallStatus ) => void; type UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod3 = ( uniffiHandle: bigint, + data: ArrayBuffer, uniffiOutReturn: /*pointer*/ bigint, callStatus: UniffiRustCallStatus ) => void; @@ -2904,6 +2977,11 @@ type UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod5 = ( uniffiOutReturn: /*pointer*/ bigint, callStatus: UniffiRustCallStatus ) => void; +type UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod6 = ( + uniffiHandle: bigint, + uniffiOutReturn: /*pointer*/ bigint, + callStatus: UniffiRustCallStatus +) => void; type UniffiCallbackInterfaceSyncServiceStateObserverMethod0 = ( uniffiHandle: bigint, state: ArrayBuffer, @@ -3021,12 +3099,13 @@ export type UniffiVTableCallbackInterfaceSendQueueRoomErrorListener = { }; export type UniffiVTableCallbackInterfaceSessionVerificationControllerDelegate = { - didAcceptVerificationRequest: UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod0; - didStartSasVerification: UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod1; - didReceiveVerificationData: UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod2; - didFail: UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod3; - didCancel: UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod4; - didFinish: UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod5; + didReceiveVerificationRequest: UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod0; + didAcceptVerificationRequest: UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod1; + didStartSasVerification: UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod2; + didReceiveVerificationData: UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod3; + didFail: UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod4; + didCancel: UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod5; + didFinish: UniffiCallbackInterfaceSessionVerificationControllerDelegateMethod6; uniffiFree: UniffiCallbackInterfaceFree; }; export type UniffiVTableCallbackInterfaceSyncServiceStateObserver = { diff --git a/src/generated/matrix_sdk_ffi.ts b/src/generated/matrix_sdk_ffi.ts index 745de87..6bd0906 100644 --- a/src/generated/matrix_sdk_ffi.ts +++ b/src/generated/matrix_sdk_ffi.ts @@ -265,6 +265,26 @@ export function getElementCallRequiredPermissions( ) ); } +/** + * Verifies the passed `String` matches the expected room alias format: + * + * This means it's lowercase, with no whitespace chars, has a single leading + * `#` char and a single `:` separator between the local and domain parts, and + * the local part only contains characters that can't be percent encoded. + */ +export function isRoomAliasFormatValid(alias: string): boolean { + return FfiConverterBool.lift( + rustCall( + /*caller:*/ (callStatus) => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_func_is_room_alias_format_valid( + FfiConverterString.lower(alias), + callStatus + ); + }, + /*liftString:*/ FfiConverterString.lift + ) + ); +} /** * Log an event. * @@ -524,6 +544,22 @@ export function parseMatrixEntityFrom(uri: string): MatrixEntity | undefined { ) ); } +/** + * Transforms a Room's display name into a valid room alias name. + */ +export function roomAliasNameFromRoomDisplayName(roomName: string): string { + return FfiConverterString.lift( + rustCall( + /*caller:*/ (callStatus) => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_func_room_alias_name_from_room_display_name( + FfiConverterString.lower(roomName), + callStatus + ); + }, + /*liftString:*/ FfiConverterString.lift + ) + ); +} export function sdkGitSha(): string { return FfiConverterString.lift( rustCall( @@ -1577,6 +1613,9 @@ const FfiConverterTypeSendQueueRoomErrorListener = new FfiConverterCallback(); export interface SessionVerificationControllerDelegate { + didReceiveVerificationRequest( + details: SessionVerificationRequestDetails + ): void; didAcceptVerificationRequest(): void; didStartSasVerification(): void; didReceiveVerificationData(data: SessionVerificationData): void; @@ -1593,6 +1632,30 @@ const uniffiCallbackInterfaceSessionVerificationControllerDelegate: { // Create the VTable using a series of closures. // ts automatically converts these into C callback functions. vtable: { + didReceiveVerificationRequest: ( + uniffiHandle: bigint, + details: ArrayBuffer, + uniffiOutReturn: /*pointer*/ bigint, + uniffiCallStatus: UniffiRustCallStatus + ) => { + const uniffiMakeCall = (): void => { + const jsCallback = + FfiConverterTypeSessionVerificationControllerDelegate.lift( + uniffiHandle + ); + return jsCallback.didReceiveVerificationRequest( + FfiConverterTypeSessionVerificationRequestDetails.lift(details) + ); + }; + + const uniffiWriteReturn = (obj: any) => {}; + uniffiTraitInterfaceCall( + /*callStatus:*/ uniffiCallStatus, + /*makeCall:*/ uniffiMakeCall, + /*writeReturn:*/ uniffiWriteReturn, + /*lowerString:*/ FfiConverterString.lower + ); + }, didAcceptVerificationRequest: ( uniffiHandle: bigint, uniffiOutReturn: /*pointer*/ bigint, @@ -2096,21 +2159,6 @@ const FfiConverterTypeAudioInfo = (() => { })(); export type AudioMessageContent = { - /** - * The original body field, deserialized from the event. Prefer the use of - * `filename` and `caption` over this. - */ - body: string; - /** - * The original formatted body field, deserialized from the event. Prefer - * the use of `filename` and `formatted_caption` over this. - */ - formatted: FormattedBody | undefined; - /** - * The original filename field, deserialized from the event. Prefer the use - * of `filename` over this. - */ - rawFilename: string | undefined; /** * The computed filename, for use in a client. */ @@ -2158,9 +2206,6 @@ const FfiConverterTypeAudioMessageContent = (() => { class FFIConverter extends AbstractFfiConverterArrayBuffer { read(from: RustBuffer): TypeName { return { - body: FfiConverterString.read(from), - formatted: FfiConverterOptionalTypeFormattedBody.read(from), - rawFilename: FfiConverterOptionalString.read(from), filename: FfiConverterString.read(from), caption: FfiConverterOptionalString.read(from), formattedCaption: FfiConverterOptionalTypeFormattedBody.read(from), @@ -2171,9 +2216,6 @@ const FfiConverterTypeAudioMessageContent = (() => { }; } write(value: TypeName, into: RustBuffer): void { - FfiConverterString.write(value.body, into); - FfiConverterOptionalTypeFormattedBody.write(value.formatted, into); - FfiConverterOptionalString.write(value.rawFilename, into); FfiConverterString.write(value.filename, into); FfiConverterOptionalString.write(value.caption, into); FfiConverterOptionalTypeFormattedBody.write(value.formattedCaption, into); @@ -2187,9 +2229,6 @@ const FfiConverterTypeAudioMessageContent = (() => { } allocationSize(value: TypeName): number { return ( - FfiConverterString.allocationSize(value.body) + - FfiConverterOptionalTypeFormattedBody.allocationSize(value.formatted) + - FfiConverterOptionalString.allocationSize(value.rawFilename) + FfiConverterString.allocationSize(value.filename) + FfiConverterOptionalString.allocationSize(value.caption) + FfiConverterOptionalTypeFormattedBody.allocationSize( @@ -2432,6 +2471,8 @@ export type CreateRoomParameters = { invite: Array | undefined; avatar: string | undefined; powerLevelContentOverride: PowerLevels | undefined; + joinRuleOverride: JoinRule | undefined; + canonicalAlias: string | undefined; }; /** @@ -2444,6 +2485,8 @@ export const CreateRoomParameters = (() => { invite: undefined, avatar: undefined, powerLevelContentOverride: undefined, + joinRuleOverride: undefined, + canonicalAlias: undefined, }); const create = (() => { return uniffiCreateRecord< @@ -2486,6 +2529,8 @@ const FfiConverterTypeCreateRoomParameters = (() => { avatar: FfiConverterOptionalString.read(from), powerLevelContentOverride: FfiConverterOptionalTypePowerLevels.read(from), + joinRuleOverride: FfiConverterOptionalTypeJoinRule.read(from), + canonicalAlias: FfiConverterOptionalString.read(from), }; } write(value: TypeName, into: RustBuffer): void { @@ -2501,6 +2546,8 @@ const FfiConverterTypeCreateRoomParameters = (() => { value.powerLevelContentOverride, into ); + FfiConverterOptionalTypeJoinRule.write(value.joinRuleOverride, into); + FfiConverterOptionalString.write(value.canonicalAlias, into); } allocationSize(value: TypeName): number { return ( @@ -2514,7 +2561,11 @@ const FfiConverterTypeCreateRoomParameters = (() => { FfiConverterOptionalString.allocationSize(value.avatar) + FfiConverterOptionalTypePowerLevels.allocationSize( value.powerLevelContentOverride - ) + ) + + FfiConverterOptionalTypeJoinRule.allocationSize( + value.joinRuleOverride + ) + + FfiConverterOptionalString.allocationSize(value.canonicalAlias) ); } } @@ -2699,7 +2750,9 @@ const FfiConverterTypeEmoteMessageContent = (() => { })(); export type EventTimelineItem = { - isLocal: boolean; + /** + * Indicates that an event is remote. + */ isRemote: boolean; eventOrTransactionId: EventOrTransactionId; sender: string; @@ -2709,12 +2762,11 @@ export type EventTimelineItem = { content: TimelineItemContent; timestamp: /*u64*/ bigint; reactions: Array; - debugInfoProvider: EventTimelineItemDebugInfoProviderInterface; localSendState: EventSendState | undefined; readReceipts: Map; origin: EventItemOrigin | undefined; canBeRepliedTo: boolean; - shieldsProvider: EventShieldsProviderInterface; + lazyProvider: LazyTimelineItemProviderInterface; }; /** @@ -2752,7 +2804,6 @@ const FfiConverterTypeEventTimelineItem = (() => { class FFIConverter extends AbstractFfiConverterArrayBuffer { read(from: RustBuffer): TypeName { return { - isLocal: FfiConverterBool.read(from), isRemote: FfiConverterBool.read(from), eventOrTransactionId: FfiConverterTypeEventOrTransactionId.read(from), sender: FfiConverterString.read(from), @@ -2762,17 +2813,14 @@ const FfiConverterTypeEventTimelineItem = (() => { content: FfiConverterTypeTimelineItemContent.read(from), timestamp: FfiConverterUInt64.read(from), reactions: FfiConverterArrayTypeReaction.read(from), - debugInfoProvider: - FfiConverterTypeEventTimelineItemDebugInfoProvider.read(from), localSendState: FfiConverterOptionalTypeEventSendState.read(from), readReceipts: FfiConverterMapStringTypeReceipt.read(from), origin: FfiConverterOptionalTypeEventItemOrigin.read(from), canBeRepliedTo: FfiConverterBool.read(from), - shieldsProvider: FfiConverterTypeEventShieldsProvider.read(from), + lazyProvider: FfiConverterTypeLazyTimelineItemProvider.read(from), }; } write(value: TypeName, into: RustBuffer): void { - FfiConverterBool.write(value.isLocal, into); FfiConverterBool.write(value.isRemote, into); FfiConverterTypeEventOrTransactionId.write( value.eventOrTransactionId, @@ -2785,19 +2833,14 @@ const FfiConverterTypeEventTimelineItem = (() => { FfiConverterTypeTimelineItemContent.write(value.content, into); FfiConverterUInt64.write(value.timestamp, into); FfiConverterArrayTypeReaction.write(value.reactions, into); - FfiConverterTypeEventTimelineItemDebugInfoProvider.write( - value.debugInfoProvider, - into - ); FfiConverterOptionalTypeEventSendState.write(value.localSendState, into); FfiConverterMapStringTypeReceipt.write(value.readReceipts, into); FfiConverterOptionalTypeEventItemOrigin.write(value.origin, into); FfiConverterBool.write(value.canBeRepliedTo, into); - FfiConverterTypeEventShieldsProvider.write(value.shieldsProvider, into); + FfiConverterTypeLazyTimelineItemProvider.write(value.lazyProvider, into); } allocationSize(value: TypeName): number { return ( - FfiConverterBool.allocationSize(value.isLocal) + FfiConverterBool.allocationSize(value.isRemote) + FfiConverterTypeEventOrTransactionId.allocationSize( value.eventOrTransactionId @@ -2809,17 +2852,14 @@ const FfiConverterTypeEventTimelineItem = (() => { FfiConverterTypeTimelineItemContent.allocationSize(value.content) + FfiConverterUInt64.allocationSize(value.timestamp) + FfiConverterArrayTypeReaction.allocationSize(value.reactions) + - FfiConverterTypeEventTimelineItemDebugInfoProvider.allocationSize( - value.debugInfoProvider - ) + FfiConverterOptionalTypeEventSendState.allocationSize( value.localSendState ) + FfiConverterMapStringTypeReceipt.allocationSize(value.readReceipts) + FfiConverterOptionalTypeEventItemOrigin.allocationSize(value.origin) + FfiConverterBool.allocationSize(value.canBeRepliedTo) + - FfiConverterTypeEventShieldsProvider.allocationSize( - value.shieldsProvider + FfiConverterTypeLazyTimelineItemProvider.allocationSize( + value.lazyProvider ) ); } @@ -2960,21 +3000,6 @@ const FfiConverterTypeFileInfo = (() => { })(); export type FileMessageContent = { - /** - * The original body field, deserialized from the event. Prefer the use of - * `filename` and `caption` over this. - */ - body: string; - /** - * The original formatted body field, deserialized from the event. Prefer - * the use of `filename` and `formatted_caption` over this. - */ - formatted: FormattedBody | undefined; - /** - * The original filename field, deserialized from the event. Prefer the use - * of `filename` over this. - */ - rawFilename: string | undefined; /** * The computed filename, for use in a client. */ @@ -3020,9 +3045,6 @@ const FfiConverterTypeFileMessageContent = (() => { class FFIConverter extends AbstractFfiConverterArrayBuffer { read(from: RustBuffer): TypeName { return { - body: FfiConverterString.read(from), - formatted: FfiConverterOptionalTypeFormattedBody.read(from), - rawFilename: FfiConverterOptionalString.read(from), filename: FfiConverterString.read(from), caption: FfiConverterOptionalString.read(from), formattedCaption: FfiConverterOptionalTypeFormattedBody.read(from), @@ -3031,9 +3053,6 @@ const FfiConverterTypeFileMessageContent = (() => { }; } write(value: TypeName, into: RustBuffer): void { - FfiConverterString.write(value.body, into); - FfiConverterOptionalTypeFormattedBody.write(value.formatted, into); - FfiConverterOptionalString.write(value.rawFilename, into); FfiConverterString.write(value.filename, into); FfiConverterOptionalString.write(value.caption, into); FfiConverterOptionalTypeFormattedBody.write(value.formattedCaption, into); @@ -3042,9 +3061,6 @@ const FfiConverterTypeFileMessageContent = (() => { } allocationSize(value: TypeName): number { return ( - FfiConverterString.allocationSize(value.body) + - FfiConverterOptionalTypeFormattedBody.allocationSize(value.formatted) + - FfiConverterOptionalString.allocationSize(value.rawFilename) + FfiConverterString.allocationSize(value.filename) + FfiConverterOptionalString.allocationSize(value.caption) + FfiConverterOptionalTypeFormattedBody.allocationSize( @@ -3324,21 +3340,6 @@ const FfiConverterTypeImageInfo = (() => { })(); export type ImageMessageContent = { - /** - * The original body field, deserialized from the event. Prefer the use of - * `filename` and `caption` over this. - */ - body: string; - /** - * The original formatted body field, deserialized from the event. Prefer - * the use of `filename` and `formatted_caption` over this. - */ - formatted: FormattedBody | undefined; - /** - * The original filename field, deserialized from the event. Prefer the use - * of `filename` over this. - */ - rawFilename: string | undefined; /** * The computed filename, for use in a client. */ @@ -3384,9 +3385,6 @@ const FfiConverterTypeImageMessageContent = (() => { class FFIConverter extends AbstractFfiConverterArrayBuffer { read(from: RustBuffer): TypeName { return { - body: FfiConverterString.read(from), - formatted: FfiConverterOptionalTypeFormattedBody.read(from), - rawFilename: FfiConverterOptionalString.read(from), filename: FfiConverterString.read(from), caption: FfiConverterOptionalString.read(from), formattedCaption: FfiConverterOptionalTypeFormattedBody.read(from), @@ -3395,9 +3393,6 @@ const FfiConverterTypeImageMessageContent = (() => { }; } write(value: TypeName, into: RustBuffer): void { - FfiConverterString.write(value.body, into); - FfiConverterOptionalTypeFormattedBody.write(value.formatted, into); - FfiConverterOptionalString.write(value.rawFilename, into); FfiConverterString.write(value.filename, into); FfiConverterOptionalString.write(value.caption, into); FfiConverterOptionalTypeFormattedBody.write(value.formattedCaption, into); @@ -3406,9 +3401,6 @@ const FfiConverterTypeImageMessageContent = (() => { } allocationSize(value: TypeName): number { return ( - FfiConverterString.allocationSize(value.body) + - FfiConverterOptionalTypeFormattedBody.allocationSize(value.formatted) + - FfiConverterOptionalString.allocationSize(value.rawFilename) + FfiConverterString.allocationSize(value.filename) + FfiConverterOptionalString.allocationSize(value.caption) + FfiConverterOptionalTypeFormattedBody.allocationSize( @@ -4771,64 +4763,6 @@ const FfiConverterTypeRequestConfig = (() => { return new FFIConverter(); })(); -export type RequiredState = { - key: string; - value: string; -}; - -/** - * Generated factory for {@link RequiredState} record objects. - */ -export const RequiredState = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link RequiredState}, with defaults specified - * in Rust, in the {@link matrix_sdk_ffi} crate. - */ - create, - - /** - * Create a frozen instance of {@link RequiredState}, with defaults specified - * in Rust, in the {@link matrix_sdk_ffi} crate. - */ - new: create, - - /** - * Defaults specified in the {@link matrix_sdk_ffi} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeRequiredState = (() => { - type TypeName = RequiredState; - class FFIConverter extends AbstractFfiConverterArrayBuffer { - read(from: RustBuffer): TypeName { - return { - key: FfiConverterString.read(from), - value: FfiConverterString.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterString.write(value.key, into); - FfiConverterString.write(value.value, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterString.allocationSize(value.key) + - FfiConverterString.allocationSize(value.value) - ); - } - } - return new FFIConverter(); -})(); - /** * Information about a room, that was resolved from a room alias. */ @@ -5657,7 +5591,7 @@ const FfiConverterTypeRoomPowerLevels = (() => { /** * The preview of a room, be it invited/joined/left, or not. */ -export type RoomPreview = { +export type RoomPreviewInfo = { /** * The room id for this room. */ @@ -5682,51 +5616,51 @@ export type RoomPreview = { * The number of joined members. */ numJoinedMembers: /*u64*/ bigint; + /** + * The number of active members, if known (joined + invited). + */ + numActiveMembers: /*u64*/ bigint | undefined; /** * The room type (space, custom) or nothing, if it's a regular room. */ - roomType: string | undefined; + roomType: RoomType; /** * Is the history world-readable for this room? */ isHistoryWorldReadable: boolean; /** - * Is the room joined by the current user? + * The membership state for the current user, if known. */ - isJoined: boolean; + membership: Membership | undefined; /** - * Is the current user invited to this room? + * The join rule for this room (private, public, knock, etc.). */ - isInvited: boolean; + joinRule: JoinRule; /** - * is the join rule public for this room? + * Whether the room is direct or not, if known. */ - isPublic: boolean; - /** - * Can we knock (or restricted-knock) to this room? - */ - canKnock: boolean; + isDirect: boolean | undefined; }; /** - * Generated factory for {@link RoomPreview} record objects. + * Generated factory for {@link RoomPreviewInfo} record objects. */ -export const RoomPreview = (() => { +export const RoomPreviewInfo = (() => { const defaults = () => ({}); const create = (() => { - return uniffiCreateRecord>( + return uniffiCreateRecord>( defaults ); })(); return Object.freeze({ /** - * Create a frozen instance of {@link RoomPreview}, with defaults specified + * Create a frozen instance of {@link RoomPreviewInfo}, with defaults specified * in Rust, in the {@link matrix_sdk_ffi} crate. */ create, /** - * Create a frozen instance of {@link RoomPreview}, with defaults specified + * Create a frozen instance of {@link RoomPreviewInfo}, with defaults specified * in Rust, in the {@link matrix_sdk_ffi} crate. */ new: create, @@ -5734,12 +5668,12 @@ export const RoomPreview = (() => { /** * Defaults specified in the {@link matrix_sdk_ffi} crate. */ - defaults: () => Object.freeze(defaults()) as Partial, + defaults: () => Object.freeze(defaults()) as Partial, }); })(); -const FfiConverterTypeRoomPreview = (() => { - type TypeName = RoomPreview; +const FfiConverterTypeRoomPreviewInfo = (() => { + type TypeName = RoomPreviewInfo; class FFIConverter extends AbstractFfiConverterArrayBuffer { read(from: RustBuffer): TypeName { return { @@ -5749,12 +5683,12 @@ const FfiConverterTypeRoomPreview = (() => { topic: FfiConverterOptionalString.read(from), avatarUrl: FfiConverterOptionalString.read(from), numJoinedMembers: FfiConverterUInt64.read(from), - roomType: FfiConverterOptionalString.read(from), + numActiveMembers: FfiConverterOptionalUInt64.read(from), + roomType: FfiConverterTypeRoomType.read(from), isHistoryWorldReadable: FfiConverterBool.read(from), - isJoined: FfiConverterBool.read(from), - isInvited: FfiConverterBool.read(from), - isPublic: FfiConverterBool.read(from), - canKnock: FfiConverterBool.read(from), + membership: FfiConverterOptionalTypeMembership.read(from), + joinRule: FfiConverterTypeJoinRule.read(from), + isDirect: FfiConverterOptionalBool.read(from), }; } write(value: TypeName, into: RustBuffer): void { @@ -5764,12 +5698,12 @@ const FfiConverterTypeRoomPreview = (() => { FfiConverterOptionalString.write(value.topic, into); FfiConverterOptionalString.write(value.avatarUrl, into); FfiConverterUInt64.write(value.numJoinedMembers, into); - FfiConverterOptionalString.write(value.roomType, into); + FfiConverterOptionalUInt64.write(value.numActiveMembers, into); + FfiConverterTypeRoomType.write(value.roomType, into); FfiConverterBool.write(value.isHistoryWorldReadable, into); - FfiConverterBool.write(value.isJoined, into); - FfiConverterBool.write(value.isInvited, into); - FfiConverterBool.write(value.isPublic, into); - FfiConverterBool.write(value.canKnock, into); + FfiConverterOptionalTypeMembership.write(value.membership, into); + FfiConverterTypeJoinRule.write(value.joinRule, into); + FfiConverterOptionalBool.write(value.isDirect, into); } allocationSize(value: TypeName): number { return ( @@ -5779,79 +5713,12 @@ const FfiConverterTypeRoomPreview = (() => { FfiConverterOptionalString.allocationSize(value.topic) + FfiConverterOptionalString.allocationSize(value.avatarUrl) + FfiConverterUInt64.allocationSize(value.numJoinedMembers) + - FfiConverterOptionalString.allocationSize(value.roomType) + + FfiConverterOptionalUInt64.allocationSize(value.numActiveMembers) + + FfiConverterTypeRoomType.allocationSize(value.roomType) + FfiConverterBool.allocationSize(value.isHistoryWorldReadable) + - FfiConverterBool.allocationSize(value.isJoined) + - FfiConverterBool.allocationSize(value.isInvited) + - FfiConverterBool.allocationSize(value.isPublic) + - FfiConverterBool.allocationSize(value.canKnock) - ); - } - } - return new FFIConverter(); -})(); - -export type RoomSubscription = { - requiredState: Array | undefined; - timelineLimit: /*u32*/ number; - includeHeroes: boolean | undefined; -}; - -/** - * Generated factory for {@link RoomSubscription} record objects. - */ -export const RoomSubscription = (() => { - const defaults = () => ({}); - const create = (() => { - return uniffiCreateRecord>( - defaults - ); - })(); - return Object.freeze({ - /** - * Create a frozen instance of {@link RoomSubscription}, with defaults specified - * in Rust, in the {@link matrix_sdk_ffi} crate. - */ - create, - - /** - * Create a frozen instance of {@link RoomSubscription}, with defaults specified - * in Rust, in the {@link matrix_sdk_ffi} crate. - */ - new: create, - - /** - * Defaults specified in the {@link matrix_sdk_ffi} crate. - */ - defaults: () => Object.freeze(defaults()) as Partial, - }); -})(); - -const FfiConverterTypeRoomSubscription = (() => { - type TypeName = RoomSubscription; - class FFIConverter extends AbstractFfiConverterArrayBuffer { - read(from: RustBuffer): TypeName { - return { - requiredState: FfiConverterOptionalArrayTypeRequiredState.read(from), - timelineLimit: FfiConverterUInt32.read(from), - includeHeroes: FfiConverterOptionalBool.read(from), - }; - } - write(value: TypeName, into: RustBuffer): void { - FfiConverterOptionalArrayTypeRequiredState.write( - value.requiredState, - into - ); - FfiConverterUInt32.write(value.timelineLimit, into); - FfiConverterOptionalBool.write(value.includeHeroes, into); - } - allocationSize(value: TypeName): number { - return ( - FfiConverterOptionalArrayTypeRequiredState.allocationSize( - value.requiredState - ) + - FfiConverterUInt32.allocationSize(value.timelineLimit) + - FfiConverterOptionalBool.allocationSize(value.includeHeroes) + FfiConverterOptionalTypeMembership.allocationSize(value.membership) + + FfiConverterTypeJoinRule.allocationSize(value.joinRule) + + FfiConverterOptionalBool.allocationSize(value.isDirect) ); } } @@ -6018,6 +5885,84 @@ const FfiConverterTypeSession = (() => { return new FFIConverter(); })(); +/** + * Details about the incoming verification request + */ +export type SessionVerificationRequestDetails = { + senderId: string; + flowId: string; + deviceId: string; + displayName: string | undefined; + /** + * First time this device was seen in milliseconds since epoch. + */ + firstSeenTimestamp: /*u64*/ bigint; +}; + +/** + * Generated factory for {@link SessionVerificationRequestDetails} record objects. + */ +export const SessionVerificationRequestDetails = (() => { + const defaults = () => ({}); + const create = (() => { + return uniffiCreateRecord< + SessionVerificationRequestDetails, + ReturnType + >(defaults); + })(); + return Object.freeze({ + /** + * Create a frozen instance of {@link SessionVerificationRequestDetails}, with defaults specified + * in Rust, in the {@link matrix_sdk_ffi} crate. + */ + create, + + /** + * Create a frozen instance of {@link SessionVerificationRequestDetails}, with defaults specified + * in Rust, in the {@link matrix_sdk_ffi} crate. + */ + new: create, + + /** + * Defaults specified in the {@link matrix_sdk_ffi} crate. + */ + defaults: () => + Object.freeze(defaults()) as Partial, + }); +})(); + +const FfiConverterTypeSessionVerificationRequestDetails = (() => { + type TypeName = SessionVerificationRequestDetails; + class FFIConverter extends AbstractFfiConverterArrayBuffer { + read(from: RustBuffer): TypeName { + return { + senderId: FfiConverterString.read(from), + flowId: FfiConverterString.read(from), + deviceId: FfiConverterString.read(from), + displayName: FfiConverterOptionalString.read(from), + firstSeenTimestamp: FfiConverterUInt64.read(from), + }; + } + write(value: TypeName, into: RustBuffer): void { + FfiConverterString.write(value.senderId, into); + FfiConverterString.write(value.flowId, into); + FfiConverterString.write(value.deviceId, into); + FfiConverterOptionalString.write(value.displayName, into); + FfiConverterUInt64.write(value.firstSeenTimestamp, into); + } + allocationSize(value: TypeName): number { + return ( + FfiConverterString.allocationSize(value.senderId) + + FfiConverterString.allocationSize(value.flowId) + + FfiConverterString.allocationSize(value.deviceId) + + FfiConverterOptionalString.allocationSize(value.displayName) + + FfiConverterUInt64.allocationSize(value.firstSeenTimestamp) + ); + } + } + return new FFIConverter(); +})(); + export type SetData = { index: /*u32*/ number; item: TimelineItemInterface; @@ -6198,6 +6143,58 @@ const FfiConverterTypeThumbnailInfo = (() => { return new FFIConverter(); })(); +export type TimelineUniqueId = { + id: string; +}; + +/** + * Generated factory for {@link TimelineUniqueId} record objects. + */ +export const TimelineUniqueId = (() => { + const defaults = () => ({}); + const create = (() => { + return uniffiCreateRecord>( + defaults + ); + })(); + return Object.freeze({ + /** + * Create a frozen instance of {@link TimelineUniqueId}, with defaults specified + * in Rust, in the {@link matrix_sdk_ffi} crate. + */ + create, + + /** + * Create a frozen instance of {@link TimelineUniqueId}, with defaults specified + * in Rust, in the {@link matrix_sdk_ffi} crate. + */ + new: create, + + /** + * Defaults specified in the {@link matrix_sdk_ffi} crate. + */ + defaults: () => Object.freeze(defaults()) as Partial, + }); +})(); + +const FfiConverterTypeTimelineUniqueId = (() => { + type TypeName = TimelineUniqueId; + class FFIConverter extends AbstractFfiConverterArrayBuffer { + read(from: RustBuffer): TypeName { + return { + id: FfiConverterString.read(from), + }; + } + write(value: TypeName, into: RustBuffer): void { + FfiConverterString.write(value.id, into); + } + allocationSize(value: TypeName): number { + return FfiConverterString.allocationSize(value.id); + } + } + return new FFIConverter(); +})(); + export type TracingConfiguration = { /** * A filter line following the [RUST_LOG format]. @@ -6822,21 +6819,6 @@ const FfiConverterTypeVideoInfo = (() => { })(); export type VideoMessageContent = { - /** - * The original body field, deserialized from the event. Prefer the use of - * `filename` and `caption` over this. - */ - body: string; - /** - * The original formatted body field, deserialized from the event. Prefer - * the use of `filename` and `formatted_caption` over this. - */ - formatted: FormattedBody | undefined; - /** - * The original filename field, deserialized from the event. Prefer the use - * of `filename` over this. - */ - rawFilename: string | undefined; /** * The computed filename, for use in a client. */ @@ -6882,9 +6864,6 @@ const FfiConverterTypeVideoMessageContent = (() => { class FFIConverter extends AbstractFfiConverterArrayBuffer { read(from: RustBuffer): TypeName { return { - body: FfiConverterString.read(from), - formatted: FfiConverterOptionalTypeFormattedBody.read(from), - rawFilename: FfiConverterOptionalString.read(from), filename: FfiConverterString.read(from), caption: FfiConverterOptionalString.read(from), formattedCaption: FfiConverterOptionalTypeFormattedBody.read(from), @@ -6893,9 +6872,6 @@ const FfiConverterTypeVideoMessageContent = (() => { }; } write(value: TypeName, into: RustBuffer): void { - FfiConverterString.write(value.body, into); - FfiConverterOptionalTypeFormattedBody.write(value.formatted, into); - FfiConverterOptionalString.write(value.rawFilename, into); FfiConverterString.write(value.filename, into); FfiConverterOptionalString.write(value.caption, into); FfiConverterOptionalTypeFormattedBody.write(value.formattedCaption, into); @@ -6904,9 +6880,6 @@ const FfiConverterTypeVideoMessageContent = (() => { } allocationSize(value: TypeName): number { return ( - FfiConverterString.allocationSize(value.body) + - FfiConverterOptionalTypeFormattedBody.allocationSize(value.formatted) + - FfiConverterOptionalString.allocationSize(value.rawFilename) + FfiConverterString.allocationSize(value.filename) + FfiConverterOptionalString.allocationSize(value.caption) + FfiConverterOptionalTypeFormattedBody.allocationSize( @@ -7655,6 +7628,110 @@ const FfiConverterTypeAccountManagementAction = (() => { return new FFIConverter(); })(); +// Enum: AllowRule +export enum AllowRule_Tags { + RoomMembership = 'RoomMembership', +} +/** + * An allow rule which defines a condition that allows joining a room. + */ +export const AllowRule = (() => { + type RoomMembership__interface = { + tag: AllowRule_Tags.RoomMembership; + inner: Readonly<{ roomId: string }>; + }; + + /** + * Only a member of the `room_id` Room can join the one this rule is used + * in. + */ + class RoomMembership_ + extends UniffiEnum + implements RoomMembership__interface + { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'AllowRule'; + readonly tag = AllowRule_Tags.RoomMembership; + readonly inner: Readonly<{ roomId: string }>; + constructor(inner: { roomId: string }) { + super('AllowRule', 'RoomMembership'); + this.inner = Object.freeze(inner); + } + + static new(inner: { roomId: string }): RoomMembership_ { + return new RoomMembership_(inner); + } + + static instanceOf(obj: any): obj is RoomMembership_ { + return obj.tag === AllowRule_Tags.RoomMembership; + } + } + + function instanceOf(obj: any): obj is AllowRule { + return obj[uniffiTypeNameSymbol] === 'AllowRule'; + } + + return Object.freeze({ + instanceOf, + RoomMembership: RoomMembership_, + }); +})(); + +/** + * An allow rule which defines a condition that allows joining a room. + */ + +export type AllowRule = InstanceType< + (typeof AllowRule)[keyof Omit] +>; + +// FfiConverter for enum AllowRule +const FfiConverterTypeAllowRule = (() => { + const ordinalConverter = FfiConverterInt32; + type TypeName = AllowRule; + class FFIConverter extends AbstractFfiConverterArrayBuffer { + read(from: RustBuffer): TypeName { + switch (ordinalConverter.read(from)) { + case 1: + return new AllowRule.RoomMembership({ + roomId: FfiConverterString.read(from), + }); + default: + throw new UniffiInternalError.UnexpectedEnumCase(); + } + } + write(value: TypeName, into: RustBuffer): void { + switch (value.tag) { + case AllowRule_Tags.RoomMembership: { + ordinalConverter.write(1, into); + const inner = value.inner; + FfiConverterString.write(inner.roomId, into); + return; + } + default: + // Throwing from here means that AllowRule_Tags hasn't matched an ordinal. + throw new UniffiInternalError.UnexpectedEnumCase(); + } + } + allocationSize(value: TypeName): number { + switch (value.tag) { + case AllowRule_Tags.RoomMembership: { + const inner = value.inner; + let size = ordinalConverter.allocationSize(1); + size += FfiConverterString.allocationSize(inner.roomId); + return size; + } + default: + throw new UniffiInternalError.UnexpectedEnumCase(); + } + } + } + return new FFIConverter(); +})(); + export enum AssetType { Sender, Pin, @@ -9759,10 +9836,6 @@ const FfiConverterTypeEventOrTransactionId = (() => { // Enum: EventSendState export enum EventSendState_Tags { NotSentYet = 'NotSentYet', - VerifiedUserHasUnsignedDevice = 'VerifiedUserHasUnsignedDevice', - VerifiedUserChangedIdentity = 'VerifiedUserChangedIdentity', - CrossSigningNotSetup = 'CrossSigningNotSetup', - SendingFromUnverifiedDevice = 'SendingFromUnverifiedDevice', SendingFailed = 'SendingFailed', Sent = 'Sent', } @@ -9797,165 +9870,9 @@ export const EventSendState = (() => { } } - type VerifiedUserHasUnsignedDevice__interface = { - tag: EventSendState_Tags.VerifiedUserHasUnsignedDevice; - inner: Readonly<{ devices: Map> }>; - }; - - /** - * One or more verified users in the room has an unsigned device. - * - * Happens only when the room key recipient strategy (as set by - * [`ClientBuilder::room_key_recipient_strategy`]) has - * [`error_on_verified_user_problem`](CollectStrategy::DeviceBasedStrategy::error_on_verified_user_problem) set. - */ - class VerifiedUserHasUnsignedDevice_ - extends UniffiEnum - implements VerifiedUserHasUnsignedDevice__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'EventSendState'; - readonly tag = EventSendState_Tags.VerifiedUserHasUnsignedDevice; - readonly inner: Readonly<{ devices: Map> }>; - constructor(inner: { - /** - * The unsigned devices belonging to verified users. A map from user ID - * to a list of device IDs. - */ devices: Map>; - }) { - super('EventSendState', 'VerifiedUserHasUnsignedDevice'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - /** - * The unsigned devices belonging to verified users. A map from user ID - * to a list of device IDs. - */ devices: Map>; - }): VerifiedUserHasUnsignedDevice_ { - return new VerifiedUserHasUnsignedDevice_(inner); - } - - static instanceOf(obj: any): obj is VerifiedUserHasUnsignedDevice_ { - return obj.tag === EventSendState_Tags.VerifiedUserHasUnsignedDevice; - } - } - - type VerifiedUserChangedIdentity__interface = { - tag: EventSendState_Tags.VerifiedUserChangedIdentity; - inner: Readonly<{ users: Array }>; - }; - - /** - * One or more verified users in the room has changed identity since they - * were verified. - * - * Happens only when the room key recipient strategy (as set by - * [`ClientBuilder::room_key_recipient_strategy`]) has - * [`error_on_verified_user_problem`](CollectStrategy::DeviceBasedStrategy::error_on_verified_user_problem) - * set, or when using [`CollectStrategy::IdentityBasedStrategy`]. - */ - class VerifiedUserChangedIdentity_ - extends UniffiEnum - implements VerifiedUserChangedIdentity__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'EventSendState'; - readonly tag = EventSendState_Tags.VerifiedUserChangedIdentity; - readonly inner: Readonly<{ users: Array }>; - constructor(inner: { - /** - * The users that were previously verified, but are no longer - */ users: Array; - }) { - super('EventSendState', 'VerifiedUserChangedIdentity'); - this.inner = Object.freeze(inner); - } - - static new(inner: { - /** - * The users that were previously verified, but are no longer - */ users: Array; - }): VerifiedUserChangedIdentity_ { - return new VerifiedUserChangedIdentity_(inner); - } - - static instanceOf(obj: any): obj is VerifiedUserChangedIdentity_ { - return obj.tag === EventSendState_Tags.VerifiedUserChangedIdentity; - } - } - - type CrossSigningNotSetup__interface = { - tag: EventSendState_Tags.CrossSigningNotSetup; - }; - - /** - * The user does not have cross-signing set up, but - * [`CollectStrategy::IdentityBasedStrategy`] was used. - */ - class CrossSigningNotSetup_ - extends UniffiEnum - implements CrossSigningNotSetup__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'EventSendState'; - readonly tag = EventSendState_Tags.CrossSigningNotSetup; - constructor() { - super('EventSendState', 'CrossSigningNotSetup'); - } - - static new(): CrossSigningNotSetup_ { - return new CrossSigningNotSetup_(); - } - - static instanceOf(obj: any): obj is CrossSigningNotSetup_ { - return obj.tag === EventSendState_Tags.CrossSigningNotSetup; - } - } - - type SendingFromUnverifiedDevice__interface = { - tag: EventSendState_Tags.SendingFromUnverifiedDevice; - }; - - /** - * The current device is not verified, but - * [`CollectStrategy::IdentityBasedStrategy`] was used. - */ - class SendingFromUnverifiedDevice_ - extends UniffiEnum - implements SendingFromUnverifiedDevice__interface - { - /** - * @private - * This field is private and should not be used, use `tag` instead. - */ - readonly [uniffiTypeNameSymbol] = 'EventSendState'; - readonly tag = EventSendState_Tags.SendingFromUnverifiedDevice; - constructor() { - super('EventSendState', 'SendingFromUnverifiedDevice'); - } - - static new(): SendingFromUnverifiedDevice_ { - return new SendingFromUnverifiedDevice_(); - } - - static instanceOf(obj: any): obj is SendingFromUnverifiedDevice_ { - return obj.tag === EventSendState_Tags.SendingFromUnverifiedDevice; - } - } - type SendingFailed__interface = { tag: EventSendState_Tags.SendingFailed; - inner: Readonly<{ error: string; isRecoverable: boolean }>; + inner: Readonly<{ error: QueueWedgeError; isRecoverable: boolean }>; }; /** @@ -9969,11 +9886,14 @@ export const EventSendState = (() => { */ readonly [uniffiTypeNameSymbol] = 'EventSendState'; readonly tag = EventSendState_Tags.SendingFailed; - readonly inner: Readonly<{ error: string; isRecoverable: boolean }>; + readonly inner: Readonly<{ + error: QueueWedgeError; + isRecoverable: boolean; + }>; constructor(inner: { /** - * Stringified error message. - */ error: string; + * The error reason, with information for the user. + */ error: QueueWedgeError; /** * Whether the error is considered recoverable or not. * @@ -9988,8 +9908,8 @@ export const EventSendState = (() => { static new(inner: { /** - * Stringified error message. - */ error: string; + * The error reason, with information for the user. + */ error: QueueWedgeError; /** * Whether the error is considered recoverable or not. * @@ -10043,10 +9963,6 @@ export const EventSendState = (() => { return Object.freeze({ instanceOf, NotSentYet: NotSentYet_, - VerifiedUserHasUnsignedDevice: VerifiedUserHasUnsignedDevice_, - VerifiedUserChangedIdentity: VerifiedUserChangedIdentity_, - CrossSigningNotSetup: CrossSigningNotSetup_, - SendingFromUnverifiedDevice: SendingFromUnverifiedDevice_, SendingFailed: SendingFailed_, Sent: Sent_, }); @@ -10070,23 +9986,11 @@ const FfiConverterTypeEventSendState = (() => { case 1: return new EventSendState.NotSentYet(); case 2: - return new EventSendState.VerifiedUserHasUnsignedDevice({ - devices: FfiConverterMapStringArrayString.read(from), - }); - case 3: - return new EventSendState.VerifiedUserChangedIdentity({ - users: FfiConverterArrayString.read(from), - }); - case 4: - return new EventSendState.CrossSigningNotSetup(); - case 5: - return new EventSendState.SendingFromUnverifiedDevice(); - case 6: return new EventSendState.SendingFailed({ - error: FfiConverterString.read(from), + error: FfiConverterTypeQueueWedgeError.read(from), isRecoverable: FfiConverterBool.read(from), }); - case 7: + case 3: return new EventSendState.Sent({ eventId: FfiConverterString.read(from), }); @@ -10100,35 +10004,15 @@ const FfiConverterTypeEventSendState = (() => { ordinalConverter.write(1, into); return; } - case EventSendState_Tags.VerifiedUserHasUnsignedDevice: { - ordinalConverter.write(2, into); - const inner = value.inner; - FfiConverterMapStringArrayString.write(inner.devices, into); - return; - } - case EventSendState_Tags.VerifiedUserChangedIdentity: { - ordinalConverter.write(3, into); - const inner = value.inner; - FfiConverterArrayString.write(inner.users, into); - return; - } - case EventSendState_Tags.CrossSigningNotSetup: { - ordinalConverter.write(4, into); - return; - } - case EventSendState_Tags.SendingFromUnverifiedDevice: { - ordinalConverter.write(5, into); - return; - } case EventSendState_Tags.SendingFailed: { - ordinalConverter.write(6, into); + ordinalConverter.write(2, into); const inner = value.inner; - FfiConverterString.write(inner.error, into); + FfiConverterTypeQueueWedgeError.write(inner.error, into); FfiConverterBool.write(inner.isRecoverable, into); return; } case EventSendState_Tags.Sent: { - ordinalConverter.write(7, into); + ordinalConverter.write(3, into); const inner = value.inner; FfiConverterString.write(inner.eventId, into); return; @@ -10143,36 +10027,16 @@ const FfiConverterTypeEventSendState = (() => { case EventSendState_Tags.NotSentYet: { return ordinalConverter.allocationSize(1); } - case EventSendState_Tags.VerifiedUserHasUnsignedDevice: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(2); - size += FfiConverterMapStringArrayString.allocationSize( - inner.devices - ); - return size; - } - case EventSendState_Tags.VerifiedUserChangedIdentity: { - const inner = value.inner; - let size = ordinalConverter.allocationSize(3); - size += FfiConverterArrayString.allocationSize(inner.users); - return size; - } - case EventSendState_Tags.CrossSigningNotSetup: { - return ordinalConverter.allocationSize(4); - } - case EventSendState_Tags.SendingFromUnverifiedDevice: { - return ordinalConverter.allocationSize(5); - } case EventSendState_Tags.SendingFailed: { const inner = value.inner; - let size = ordinalConverter.allocationSize(6); - size += FfiConverterString.allocationSize(inner.error); + let size = ordinalConverter.allocationSize(2); + size += FfiConverterTypeQueueWedgeError.allocationSize(inner.error); size += FfiConverterBool.allocationSize(inner.isRecoverable); return size; } case EventSendState_Tags.Sent: { const inner = value.inner; - let size = ordinalConverter.allocationSize(7); + let size = ordinalConverter.allocationSize(3); size += FfiConverterString.allocationSize(inner.eventId); return size; } @@ -10953,6 +10817,370 @@ const FfiConverterTypeHumanQrLoginError = (() => { return new FFIConverter(); })(); +// Enum: JoinRule +export enum JoinRule_Tags { + Public = 'Public', + Invite = 'Invite', + Knock = 'Knock', + Private = 'Private', + Restricted = 'Restricted', + KnockRestricted = 'KnockRestricted', + Custom = 'Custom', +} +/** + * The rule used for users wishing to join this room. + */ +export const JoinRule = (() => { + type Public__interface = { + tag: JoinRule_Tags.Public; + }; + + /** + * Anyone can join the room without any prior action. + */ + class Public_ extends UniffiEnum implements Public__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'JoinRule'; + readonly tag = JoinRule_Tags.Public; + constructor() { + super('JoinRule', 'Public'); + } + + static new(): Public_ { + return new Public_(); + } + + static instanceOf(obj: any): obj is Public_ { + return obj.tag === JoinRule_Tags.Public; + } + } + + type Invite__interface = { + tag: JoinRule_Tags.Invite; + }; + + /** + * A user who wishes to join the room must first receive an invite to the + * room from someone already inside of the room. + */ + class Invite_ extends UniffiEnum implements Invite__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'JoinRule'; + readonly tag = JoinRule_Tags.Invite; + constructor() { + super('JoinRule', 'Invite'); + } + + static new(): Invite_ { + return new Invite_(); + } + + static instanceOf(obj: any): obj is Invite_ { + return obj.tag === JoinRule_Tags.Invite; + } + } + + type Knock__interface = { + tag: JoinRule_Tags.Knock; + }; + + /** + * Users can join the room if they are invited, or they can request an + * invite to the room. + * + * They can be allowed (invited) or denied (kicked/banned) access. + */ + class Knock_ extends UniffiEnum implements Knock__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'JoinRule'; + readonly tag = JoinRule_Tags.Knock; + constructor() { + super('JoinRule', 'Knock'); + } + + static new(): Knock_ { + return new Knock_(); + } + + static instanceOf(obj: any): obj is Knock_ { + return obj.tag === JoinRule_Tags.Knock; + } + } + + type Private__interface = { + tag: JoinRule_Tags.Private; + }; + + /** + * Reserved but not yet implemented by the Matrix specification. + */ + class Private_ extends UniffiEnum implements Private__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'JoinRule'; + readonly tag = JoinRule_Tags.Private; + constructor() { + super('JoinRule', 'Private'); + } + + static new(): Private_ { + return new Private_(); + } + + static instanceOf(obj: any): obj is Private_ { + return obj.tag === JoinRule_Tags.Private; + } + } + + type Restricted__interface = { + tag: JoinRule_Tags.Restricted; + inner: Readonly<{ rules: Array }>; + }; + + /** + * Users can join the room if they are invited, or if they meet any of the + * conditions described in a set of [`AllowRule`]s. + */ + class Restricted_ extends UniffiEnum implements Restricted__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'JoinRule'; + readonly tag = JoinRule_Tags.Restricted; + readonly inner: Readonly<{ rules: Array }>; + constructor(inner: { rules: Array }) { + super('JoinRule', 'Restricted'); + this.inner = Object.freeze(inner); + } + + static new(inner: { rules: Array }): Restricted_ { + return new Restricted_(inner); + } + + static instanceOf(obj: any): obj is Restricted_ { + return obj.tag === JoinRule_Tags.Restricted; + } + } + + type KnockRestricted__interface = { + tag: JoinRule_Tags.KnockRestricted; + inner: Readonly<{ rules: Array }>; + }; + + /** + * Users can join the room if they are invited, or if they meet any of the + * conditions described in a set of [`AllowRule`]s, or they can request + * an invite to the room. + */ + class KnockRestricted_ + extends UniffiEnum + implements KnockRestricted__interface + { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'JoinRule'; + readonly tag = JoinRule_Tags.KnockRestricted; + readonly inner: Readonly<{ rules: Array }>; + constructor(inner: { rules: Array }) { + super('JoinRule', 'KnockRestricted'); + this.inner = Object.freeze(inner); + } + + static new(inner: { rules: Array }): KnockRestricted_ { + return new KnockRestricted_(inner); + } + + static instanceOf(obj: any): obj is KnockRestricted_ { + return obj.tag === JoinRule_Tags.KnockRestricted; + } + } + + type Custom__interface = { + tag: JoinRule_Tags.Custom; + inner: Readonly<{ repr: string }>; + }; + + /** + * A custom join rule, up for interpretation by the consumer. + */ + class Custom_ extends UniffiEnum implements Custom__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'JoinRule'; + readonly tag = JoinRule_Tags.Custom; + readonly inner: Readonly<{ repr: string }>; + constructor(inner: { + /** + * The string representation for this custom rule. + */ repr: string; + }) { + super('JoinRule', 'Custom'); + this.inner = Object.freeze(inner); + } + + static new(inner: { + /** + * The string representation for this custom rule. + */ repr: string; + }): Custom_ { + return new Custom_(inner); + } + + static instanceOf(obj: any): obj is Custom_ { + return obj.tag === JoinRule_Tags.Custom; + } + } + + function instanceOf(obj: any): obj is JoinRule { + return obj[uniffiTypeNameSymbol] === 'JoinRule'; + } + + return Object.freeze({ + instanceOf, + Public: Public_, + Invite: Invite_, + Knock: Knock_, + Private: Private_, + Restricted: Restricted_, + KnockRestricted: KnockRestricted_, + Custom: Custom_, + }); +})(); + +/** + * The rule used for users wishing to join this room. + */ + +export type JoinRule = InstanceType< + (typeof JoinRule)[keyof Omit] +>; + +// FfiConverter for enum JoinRule +const FfiConverterTypeJoinRule = (() => { + const ordinalConverter = FfiConverterInt32; + type TypeName = JoinRule; + class FFIConverter extends AbstractFfiConverterArrayBuffer { + read(from: RustBuffer): TypeName { + switch (ordinalConverter.read(from)) { + case 1: + return new JoinRule.Public(); + case 2: + return new JoinRule.Invite(); + case 3: + return new JoinRule.Knock(); + case 4: + return new JoinRule.Private(); + case 5: + return new JoinRule.Restricted({ + rules: FfiConverterArrayTypeAllowRule.read(from), + }); + case 6: + return new JoinRule.KnockRestricted({ + rules: FfiConverterArrayTypeAllowRule.read(from), + }); + case 7: + return new JoinRule.Custom({ repr: FfiConverterString.read(from) }); + default: + throw new UniffiInternalError.UnexpectedEnumCase(); + } + } + write(value: TypeName, into: RustBuffer): void { + switch (value.tag) { + case JoinRule_Tags.Public: { + ordinalConverter.write(1, into); + return; + } + case JoinRule_Tags.Invite: { + ordinalConverter.write(2, into); + return; + } + case JoinRule_Tags.Knock: { + ordinalConverter.write(3, into); + return; + } + case JoinRule_Tags.Private: { + ordinalConverter.write(4, into); + return; + } + case JoinRule_Tags.Restricted: { + ordinalConverter.write(5, into); + const inner = value.inner; + FfiConverterArrayTypeAllowRule.write(inner.rules, into); + return; + } + case JoinRule_Tags.KnockRestricted: { + ordinalConverter.write(6, into); + const inner = value.inner; + FfiConverterArrayTypeAllowRule.write(inner.rules, into); + return; + } + case JoinRule_Tags.Custom: { + ordinalConverter.write(7, into); + const inner = value.inner; + FfiConverterString.write(inner.repr, into); + return; + } + default: + // Throwing from here means that JoinRule_Tags hasn't matched an ordinal. + throw new UniffiInternalError.UnexpectedEnumCase(); + } + } + allocationSize(value: TypeName): number { + switch (value.tag) { + case JoinRule_Tags.Public: { + return ordinalConverter.allocationSize(1); + } + case JoinRule_Tags.Invite: { + return ordinalConverter.allocationSize(2); + } + case JoinRule_Tags.Knock: { + return ordinalConverter.allocationSize(3); + } + case JoinRule_Tags.Private: { + return ordinalConverter.allocationSize(4); + } + case JoinRule_Tags.Restricted: { + const inner = value.inner; + let size = ordinalConverter.allocationSize(5); + size += FfiConverterArrayTypeAllowRule.allocationSize(inner.rules); + return size; + } + case JoinRule_Tags.KnockRestricted: { + const inner = value.inner; + let size = ordinalConverter.allocationSize(6); + size += FfiConverterArrayTypeAllowRule.allocationSize(inner.rules); + return size; + } + case JoinRule_Tags.Custom: { + const inner = value.inner; + let size = ordinalConverter.allocationSize(7); + size += FfiConverterString.allocationSize(inner.repr); + return size; + } + default: + throw new UniffiInternalError.UnexpectedEnumCase(); + } + } + } + return new FFIConverter(); +})(); + export enum LogLevel { Error, Warn, @@ -11384,6 +11612,7 @@ export enum Membership { Invited, Joined, Left, + Knocked, } const FfiConverterTypeMembership = (() => { @@ -11398,6 +11627,8 @@ const FfiConverterTypeMembership = (() => { return Membership.Joined; case 3: return Membership.Left; + case 4: + return Membership.Knocked; default: throw new UniffiInternalError.UnexpectedEnumCase(); } @@ -11410,6 +11641,8 @@ const FfiConverterTypeMembership = (() => { return ordinalConverter.write(2, into); case Membership.Left: return ordinalConverter.write(3, into); + case Membership.Knocked: + return ordinalConverter.write(4, into); } } allocationSize(value: TypeName): number { @@ -11528,29 +11761,201 @@ const FfiConverterTypeMembershipChange = (() => { return new FFIConverter(); })(); -export enum MembershipState { +// Enum: MembershipState +export enum MembershipState_Tags { + Ban = 'Ban', + Invite = 'Invite', + Join = 'Join', + Knock = 'Knock', + Leave = 'Leave', + Custom = 'Custom', +} +export const MembershipState = (() => { + type Ban__interface = { + tag: MembershipState_Tags.Ban; + }; + /** * The user is banned. */ - Ban, + class Ban_ extends UniffiEnum implements Ban__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'MembershipState'; + readonly tag = MembershipState_Tags.Ban; + constructor() { + super('MembershipState', 'Ban'); + } + + static new(): Ban_ { + return new Ban_(); + } + + static instanceOf(obj: any): obj is Ban_ { + return obj.tag === MembershipState_Tags.Ban; + } + } + + type Invite__interface = { + tag: MembershipState_Tags.Invite; + }; + /** * The user has been invited. */ - Invite, + class Invite_ extends UniffiEnum implements Invite__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'MembershipState'; + readonly tag = MembershipState_Tags.Invite; + constructor() { + super('MembershipState', 'Invite'); + } + + static new(): Invite_ { + return new Invite_(); + } + + static instanceOf(obj: any): obj is Invite_ { + return obj.tag === MembershipState_Tags.Invite; + } + } + + type Join__interface = { + tag: MembershipState_Tags.Join; + }; + /** * The user has joined. */ - Join, + class Join_ extends UniffiEnum implements Join__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'MembershipState'; + readonly tag = MembershipState_Tags.Join; + constructor() { + super('MembershipState', 'Join'); + } + + static new(): Join_ { + return new Join_(); + } + + static instanceOf(obj: any): obj is Join_ { + return obj.tag === MembershipState_Tags.Join; + } + } + + type Knock__interface = { + tag: MembershipState_Tags.Knock; + }; + /** * The user has requested to join. */ - Knock, + class Knock_ extends UniffiEnum implements Knock__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'MembershipState'; + readonly tag = MembershipState_Tags.Knock; + constructor() { + super('MembershipState', 'Knock'); + } + + static new(): Knock_ { + return new Knock_(); + } + + static instanceOf(obj: any): obj is Knock_ { + return obj.tag === MembershipState_Tags.Knock; + } + } + + type Leave__interface = { + tag: MembershipState_Tags.Leave; + }; + /** * The user has left. */ - Leave, -} + class Leave_ extends UniffiEnum implements Leave__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'MembershipState'; + readonly tag = MembershipState_Tags.Leave; + constructor() { + super('MembershipState', 'Leave'); + } + + static new(): Leave_ { + return new Leave_(); + } + + static instanceOf(obj: any): obj is Leave_ { + return obj.tag === MembershipState_Tags.Leave; + } + } + + type Custom__interface = { + tag: MembershipState_Tags.Custom; + inner: Readonly<{ value: string }>; + }; + + /** + * A custom membership state value. + */ + class Custom_ extends UniffiEnum implements Custom__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'MembershipState'; + readonly tag = MembershipState_Tags.Custom; + readonly inner: Readonly<{ value: string }>; + constructor(inner: { value: string }) { + super('MembershipState', 'Custom'); + this.inner = Object.freeze(inner); + } + + static new(inner: { value: string }): Custom_ { + return new Custom_(inner); + } + + static instanceOf(obj: any): obj is Custom_ { + return obj.tag === MembershipState_Tags.Custom; + } + } + + function instanceOf(obj: any): obj is MembershipState { + return obj[uniffiTypeNameSymbol] === 'MembershipState'; + } + + return Object.freeze({ + instanceOf, + Ban: Ban_, + Invite: Invite_, + Join: Join_, + Knock: Knock_, + Leave: Leave_, + Custom: Custom_, + }); +})(); +export type MembershipState = InstanceType< + (typeof MembershipState)[keyof Omit] +>; + +// FfiConverter for enum MembershipState const FfiConverterTypeMembershipState = (() => { const ordinalConverter = FfiConverterInt32; type TypeName = MembershipState; @@ -11558,35 +11963,82 @@ const FfiConverterTypeMembershipState = (() => { read(from: RustBuffer): TypeName { switch (ordinalConverter.read(from)) { case 1: - return MembershipState.Ban; + return new MembershipState.Ban(); case 2: - return MembershipState.Invite; + return new MembershipState.Invite(); case 3: - return MembershipState.Join; + return new MembershipState.Join(); case 4: - return MembershipState.Knock; + return new MembershipState.Knock(); case 5: - return MembershipState.Leave; + return new MembershipState.Leave(); + case 6: + return new MembershipState.Custom({ + value: FfiConverterString.read(from), + }); default: throw new UniffiInternalError.UnexpectedEnumCase(); } } write(value: TypeName, into: RustBuffer): void { - switch (value) { - case MembershipState.Ban: - return ordinalConverter.write(1, into); - case MembershipState.Invite: - return ordinalConverter.write(2, into); - case MembershipState.Join: - return ordinalConverter.write(3, into); - case MembershipState.Knock: - return ordinalConverter.write(4, into); - case MembershipState.Leave: - return ordinalConverter.write(5, into); + switch (value.tag) { + case MembershipState_Tags.Ban: { + ordinalConverter.write(1, into); + return; + } + case MembershipState_Tags.Invite: { + ordinalConverter.write(2, into); + return; + } + case MembershipState_Tags.Join: { + ordinalConverter.write(3, into); + return; + } + case MembershipState_Tags.Knock: { + ordinalConverter.write(4, into); + return; + } + case MembershipState_Tags.Leave: { + ordinalConverter.write(5, into); + return; + } + case MembershipState_Tags.Custom: { + ordinalConverter.write(6, into); + const inner = value.inner; + FfiConverterString.write(inner.value, into); + return; + } + default: + // Throwing from here means that MembershipState_Tags hasn't matched an ordinal. + throw new UniffiInternalError.UnexpectedEnumCase(); } } allocationSize(value: TypeName): number { - return ordinalConverter.allocationSize(0); + switch (value.tag) { + case MembershipState_Tags.Ban: { + return ordinalConverter.allocationSize(1); + } + case MembershipState_Tags.Invite: { + return ordinalConverter.allocationSize(2); + } + case MembershipState_Tags.Join: { + return ordinalConverter.allocationSize(3); + } + case MembershipState_Tags.Knock: { + return ordinalConverter.allocationSize(4); + } + case MembershipState_Tags.Leave: { + return ordinalConverter.allocationSize(5); + } + case MembershipState_Tags.Custom: { + const inner = value.inner; + let size = ordinalConverter.allocationSize(6); + size += FfiConverterString.allocationSize(inner.value); + return size; + } + default: + throw new UniffiInternalError.UnexpectedEnumCase(); + } } } return new FFIConverter(); @@ -14074,6 +14526,300 @@ const FfiConverterTypeOidcError = (() => { return new FfiConverter(); })(); +// Enum: OidcPrompt +export enum OidcPrompt_Tags { + None = 'None', + Login = 'Login', + Consent = 'Consent', + SelectAccount = 'SelectAccount', + Create = 'Create', + Unknown = 'Unknown', +} +export const OidcPrompt = (() => { + type None__interface = { + tag: OidcPrompt_Tags.None; + }; + + /** + * The Authorization Server must not display any authentication or consent + * user interface pages. + */ + class None_ extends UniffiEnum implements None__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'OidcPrompt'; + readonly tag = OidcPrompt_Tags.None; + constructor() { + super('OidcPrompt', 'None'); + } + + static new(): None_ { + return new None_(); + } + + static instanceOf(obj: any): obj is None_ { + return obj.tag === OidcPrompt_Tags.None; + } + } + + type Login__interface = { + tag: OidcPrompt_Tags.Login; + }; + + /** + * The Authorization Server should prompt the End-User for + * reauthentication. + */ + class Login_ extends UniffiEnum implements Login__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'OidcPrompt'; + readonly tag = OidcPrompt_Tags.Login; + constructor() { + super('OidcPrompt', 'Login'); + } + + static new(): Login_ { + return new Login_(); + } + + static instanceOf(obj: any): obj is Login_ { + return obj.tag === OidcPrompt_Tags.Login; + } + } + + type Consent__interface = { + tag: OidcPrompt_Tags.Consent; + }; + + /** + * The Authorization Server should prompt the End-User for consent before + * returning information to the Client. + */ + class Consent_ extends UniffiEnum implements Consent__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'OidcPrompt'; + readonly tag = OidcPrompt_Tags.Consent; + constructor() { + super('OidcPrompt', 'Consent'); + } + + static new(): Consent_ { + return new Consent_(); + } + + static instanceOf(obj: any): obj is Consent_ { + return obj.tag === OidcPrompt_Tags.Consent; + } + } + + type SelectAccount__interface = { + tag: OidcPrompt_Tags.SelectAccount; + }; + + /** + * The Authorization Server should prompt the End-User to select a user + * account. + * + * This enables an End-User who has multiple accounts at the Authorization + * Server to select amongst the multiple accounts that they might have + * current sessions for. + */ + class SelectAccount_ extends UniffiEnum implements SelectAccount__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'OidcPrompt'; + readonly tag = OidcPrompt_Tags.SelectAccount; + constructor() { + super('OidcPrompt', 'SelectAccount'); + } + + static new(): SelectAccount_ { + return new SelectAccount_(); + } + + static instanceOf(obj: any): obj is SelectAccount_ { + return obj.tag === OidcPrompt_Tags.SelectAccount; + } + } + + type Create__interface = { + tag: OidcPrompt_Tags.Create; + }; + + /** + * The Authorization Server should prompt the End-User to create a user + * account. + * + * Defined in [Initiating User Registration via OpenID Connect](https://openid.net/specs/openid-connect-prompt-create-1_0.html). + */ + class Create_ extends UniffiEnum implements Create__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'OidcPrompt'; + readonly tag = OidcPrompt_Tags.Create; + constructor() { + super('OidcPrompt', 'Create'); + } + + static new(): Create_ { + return new Create_(); + } + + static instanceOf(obj: any): obj is Create_ { + return obj.tag === OidcPrompt_Tags.Create; + } + } + + type Unknown__interface = { + tag: OidcPrompt_Tags.Unknown; + inner: Readonly<{ value: string }>; + }; + + /** + * An unknown value. + */ + class Unknown_ extends UniffiEnum implements Unknown__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'OidcPrompt'; + readonly tag = OidcPrompt_Tags.Unknown; + readonly inner: Readonly<{ value: string }>; + constructor(inner: { value: string }) { + super('OidcPrompt', 'Unknown'); + this.inner = Object.freeze(inner); + } + + static new(inner: { value: string }): Unknown_ { + return new Unknown_(inner); + } + + static instanceOf(obj: any): obj is Unknown_ { + return obj.tag === OidcPrompt_Tags.Unknown; + } + } + + function instanceOf(obj: any): obj is OidcPrompt { + return obj[uniffiTypeNameSymbol] === 'OidcPrompt'; + } + + return Object.freeze({ + instanceOf, + None: None_, + Login: Login_, + Consent: Consent_, + SelectAccount: SelectAccount_, + Create: Create_, + Unknown: Unknown_, + }); +})(); + +export type OidcPrompt = InstanceType< + (typeof OidcPrompt)[keyof Omit] +>; + +// FfiConverter for enum OidcPrompt +const FfiConverterTypeOidcPrompt = (() => { + const ordinalConverter = FfiConverterInt32; + type TypeName = OidcPrompt; + class FFIConverter extends AbstractFfiConverterArrayBuffer { + read(from: RustBuffer): TypeName { + switch (ordinalConverter.read(from)) { + case 1: + return new OidcPrompt.None(); + case 2: + return new OidcPrompt.Login(); + case 3: + return new OidcPrompt.Consent(); + case 4: + return new OidcPrompt.SelectAccount(); + case 5: + return new OidcPrompt.Create(); + case 6: + return new OidcPrompt.Unknown({ + value: FfiConverterString.read(from), + }); + default: + throw new UniffiInternalError.UnexpectedEnumCase(); + } + } + write(value: TypeName, into: RustBuffer): void { + switch (value.tag) { + case OidcPrompt_Tags.None: { + ordinalConverter.write(1, into); + return; + } + case OidcPrompt_Tags.Login: { + ordinalConverter.write(2, into); + return; + } + case OidcPrompt_Tags.Consent: { + ordinalConverter.write(3, into); + return; + } + case OidcPrompt_Tags.SelectAccount: { + ordinalConverter.write(4, into); + return; + } + case OidcPrompt_Tags.Create: { + ordinalConverter.write(5, into); + return; + } + case OidcPrompt_Tags.Unknown: { + ordinalConverter.write(6, into); + const inner = value.inner; + FfiConverterString.write(inner.value, into); + return; + } + default: + // Throwing from here means that OidcPrompt_Tags hasn't matched an ordinal. + throw new UniffiInternalError.UnexpectedEnumCase(); + } + } + allocationSize(value: TypeName): number { + switch (value.tag) { + case OidcPrompt_Tags.None: { + return ordinalConverter.allocationSize(1); + } + case OidcPrompt_Tags.Login: { + return ordinalConverter.allocationSize(2); + } + case OidcPrompt_Tags.Consent: { + return ordinalConverter.allocationSize(3); + } + case OidcPrompt_Tags.SelectAccount: { + return ordinalConverter.allocationSize(4); + } + case OidcPrompt_Tags.Create: { + return ordinalConverter.allocationSize(5); + } + case OidcPrompt_Tags.Unknown: { + const inner = value.inner; + let size = ordinalConverter.allocationSize(6); + size += FfiConverterString.allocationSize(inner.value); + return size; + } + default: + throw new UniffiInternalError.UnexpectedEnumCase(); + } + } + } + return new FFIConverter(); +})(); + // Enum: OtherState export enum OtherState_Tags { PolicyRuleRoom = 'PolicyRuleRoom', @@ -16108,6 +16854,379 @@ const FfiConverterTypeQrLoginProgress = (() => { return new FFIConverter(); })(); +// Enum: QueueWedgeError +export enum QueueWedgeError_Tags { + InsecureDevices = 'InsecureDevices', + IdentityViolations = 'IdentityViolations', + CrossVerificationRequired = 'CrossVerificationRequired', + MissingMediaContent = 'MissingMediaContent', + InvalidMimeType = 'InvalidMimeType', + GenericApiError = 'GenericApiError', +} +/** + * Bindings version of the sdk type replacing OwnedUserId/DeviceIds with simple + * String. + * + * Represent a failed to send unrecoverable error of an event sent via the + * send_queue. It is a serializable representation of a client error, see + * `From` implementation for more details. These errors can not be + * automatically retried, but yet some manual action can be taken before retry + * sending. If not the only solution is to delete the local event. + */ +export const QueueWedgeError = (() => { + type InsecureDevices__interface = { + tag: QueueWedgeError_Tags.InsecureDevices; + inner: Readonly<{ userDeviceMap: Map> }>; + }; + + /** + * This error occurs when there are some insecure devices in the room, and + * the current encryption setting prohibit sharing with them. + */ + class InsecureDevices_ + extends UniffiEnum + implements InsecureDevices__interface + { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'QueueWedgeError'; + readonly tag = QueueWedgeError_Tags.InsecureDevices; + readonly inner: Readonly<{ userDeviceMap: Map> }>; + constructor(inner: { + /** + * The insecure devices as a Map of userID to deviceID. + */ userDeviceMap: Map>; + }) { + super('QueueWedgeError', 'InsecureDevices'); + this.inner = Object.freeze(inner); + } + + static new(inner: { + /** + * The insecure devices as a Map of userID to deviceID. + */ userDeviceMap: Map>; + }): InsecureDevices_ { + return new InsecureDevices_(inner); + } + + static instanceOf(obj: any): obj is InsecureDevices_ { + return obj.tag === QueueWedgeError_Tags.InsecureDevices; + } + } + + type IdentityViolations__interface = { + tag: QueueWedgeError_Tags.IdentityViolations; + inner: Readonly<{ users: Array }>; + }; + + /** + * This error occurs when a previously verified user is not anymore, and + * the current encryption setting prohibit sharing when it happens. + */ + class IdentityViolations_ + extends UniffiEnum + implements IdentityViolations__interface + { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'QueueWedgeError'; + readonly tag = QueueWedgeError_Tags.IdentityViolations; + readonly inner: Readonly<{ users: Array }>; + constructor(inner: { + /** + * The users that are expected to be verified but are not. + */ users: Array; + }) { + super('QueueWedgeError', 'IdentityViolations'); + this.inner = Object.freeze(inner); + } + + static new(inner: { + /** + * The users that are expected to be verified but are not. + */ users: Array; + }): IdentityViolations_ { + return new IdentityViolations_(inner); + } + + static instanceOf(obj: any): obj is IdentityViolations_ { + return obj.tag === QueueWedgeError_Tags.IdentityViolations; + } + } + + type CrossVerificationRequired__interface = { + tag: QueueWedgeError_Tags.CrossVerificationRequired; + }; + + /** + * It is required to set up cross-signing and properly erify the current + * session before sending. + */ + class CrossVerificationRequired_ + extends UniffiEnum + implements CrossVerificationRequired__interface + { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'QueueWedgeError'; + readonly tag = QueueWedgeError_Tags.CrossVerificationRequired; + constructor() { + super('QueueWedgeError', 'CrossVerificationRequired'); + } + + static new(): CrossVerificationRequired_ { + return new CrossVerificationRequired_(); + } + + static instanceOf(obj: any): obj is CrossVerificationRequired_ { + return obj.tag === QueueWedgeError_Tags.CrossVerificationRequired; + } + } + + type MissingMediaContent__interface = { + tag: QueueWedgeError_Tags.MissingMediaContent; + }; + + /** + * Some media content to be sent has disappeared from the cache. + */ + class MissingMediaContent_ + extends UniffiEnum + implements MissingMediaContent__interface + { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'QueueWedgeError'; + readonly tag = QueueWedgeError_Tags.MissingMediaContent; + constructor() { + super('QueueWedgeError', 'MissingMediaContent'); + } + + static new(): MissingMediaContent_ { + return new MissingMediaContent_(); + } + + static instanceOf(obj: any): obj is MissingMediaContent_ { + return obj.tag === QueueWedgeError_Tags.MissingMediaContent; + } + } + + type InvalidMimeType__interface = { + tag: QueueWedgeError_Tags.InvalidMimeType; + inner: Readonly<{ mimeType: string }>; + }; + + /** + * Some mime type couldn't be parsed. + */ + class InvalidMimeType_ + extends UniffiEnum + implements InvalidMimeType__interface + { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'QueueWedgeError'; + readonly tag = QueueWedgeError_Tags.InvalidMimeType; + readonly inner: Readonly<{ mimeType: string }>; + constructor(inner: { mimeType: string }) { + super('QueueWedgeError', 'InvalidMimeType'); + this.inner = Object.freeze(inner); + } + + static new(inner: { mimeType: string }): InvalidMimeType_ { + return new InvalidMimeType_(inner); + } + + static instanceOf(obj: any): obj is InvalidMimeType_ { + return obj.tag === QueueWedgeError_Tags.InvalidMimeType; + } + } + + type GenericApiError__interface = { + tag: QueueWedgeError_Tags.GenericApiError; + inner: Readonly<{ msg: string }>; + }; + + /** + * Other errors. + */ + class GenericApiError_ + extends UniffiEnum + implements GenericApiError__interface + { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'QueueWedgeError'; + readonly tag = QueueWedgeError_Tags.GenericApiError; + readonly inner: Readonly<{ msg: string }>; + constructor(inner: { msg: string }) { + super('QueueWedgeError', 'GenericApiError'); + this.inner = Object.freeze(inner); + } + + static new(inner: { msg: string }): GenericApiError_ { + return new GenericApiError_(inner); + } + + static instanceOf(obj: any): obj is GenericApiError_ { + return obj.tag === QueueWedgeError_Tags.GenericApiError; + } + } + + function instanceOf(obj: any): obj is QueueWedgeError { + return obj[uniffiTypeNameSymbol] === 'QueueWedgeError'; + } + + return Object.freeze({ + instanceOf, + InsecureDevices: InsecureDevices_, + IdentityViolations: IdentityViolations_, + CrossVerificationRequired: CrossVerificationRequired_, + MissingMediaContent: MissingMediaContent_, + InvalidMimeType: InvalidMimeType_, + GenericApiError: GenericApiError_, + }); +})(); + +/** + * Bindings version of the sdk type replacing OwnedUserId/DeviceIds with simple + * String. + * + * Represent a failed to send unrecoverable error of an event sent via the + * send_queue. It is a serializable representation of a client error, see + * `From` implementation for more details. These errors can not be + * automatically retried, but yet some manual action can be taken before retry + * sending. If not the only solution is to delete the local event. + */ + +export type QueueWedgeError = InstanceType< + (typeof QueueWedgeError)[keyof Omit] +>; + +// FfiConverter for enum QueueWedgeError +const FfiConverterTypeQueueWedgeError = (() => { + const ordinalConverter = FfiConverterInt32; + type TypeName = QueueWedgeError; + class FFIConverter extends AbstractFfiConverterArrayBuffer { + read(from: RustBuffer): TypeName { + switch (ordinalConverter.read(from)) { + case 1: + return new QueueWedgeError.InsecureDevices({ + userDeviceMap: FfiConverterMapStringArrayString.read(from), + }); + case 2: + return new QueueWedgeError.IdentityViolations({ + users: FfiConverterArrayString.read(from), + }); + case 3: + return new QueueWedgeError.CrossVerificationRequired(); + case 4: + return new QueueWedgeError.MissingMediaContent(); + case 5: + return new QueueWedgeError.InvalidMimeType({ + mimeType: FfiConverterString.read(from), + }); + case 6: + return new QueueWedgeError.GenericApiError({ + msg: FfiConverterString.read(from), + }); + default: + throw new UniffiInternalError.UnexpectedEnumCase(); + } + } + write(value: TypeName, into: RustBuffer): void { + switch (value.tag) { + case QueueWedgeError_Tags.InsecureDevices: { + ordinalConverter.write(1, into); + const inner = value.inner; + FfiConverterMapStringArrayString.write(inner.userDeviceMap, into); + return; + } + case QueueWedgeError_Tags.IdentityViolations: { + ordinalConverter.write(2, into); + const inner = value.inner; + FfiConverterArrayString.write(inner.users, into); + return; + } + case QueueWedgeError_Tags.CrossVerificationRequired: { + ordinalConverter.write(3, into); + return; + } + case QueueWedgeError_Tags.MissingMediaContent: { + ordinalConverter.write(4, into); + return; + } + case QueueWedgeError_Tags.InvalidMimeType: { + ordinalConverter.write(5, into); + const inner = value.inner; + FfiConverterString.write(inner.mimeType, into); + return; + } + case QueueWedgeError_Tags.GenericApiError: { + ordinalConverter.write(6, into); + const inner = value.inner; + FfiConverterString.write(inner.msg, into); + return; + } + default: + // Throwing from here means that QueueWedgeError_Tags hasn't matched an ordinal. + throw new UniffiInternalError.UnexpectedEnumCase(); + } + } + allocationSize(value: TypeName): number { + switch (value.tag) { + case QueueWedgeError_Tags.InsecureDevices: { + const inner = value.inner; + let size = ordinalConverter.allocationSize(1); + size += FfiConverterMapStringArrayString.allocationSize( + inner.userDeviceMap + ); + return size; + } + case QueueWedgeError_Tags.IdentityViolations: { + const inner = value.inner; + let size = ordinalConverter.allocationSize(2); + size += FfiConverterArrayString.allocationSize(inner.users); + return size; + } + case QueueWedgeError_Tags.CrossVerificationRequired: { + return ordinalConverter.allocationSize(3); + } + case QueueWedgeError_Tags.MissingMediaContent: { + return ordinalConverter.allocationSize(4); + } + case QueueWedgeError_Tags.InvalidMimeType: { + const inner = value.inner; + let size = ordinalConverter.allocationSize(5); + size += FfiConverterString.allocationSize(inner.mimeType); + return size; + } + case QueueWedgeError_Tags.GenericApiError: { + const inner = value.inner; + let size = ordinalConverter.allocationSize(6); + size += FfiConverterString.allocationSize(inner.msg); + return size; + } + default: + throw new UniffiInternalError.UnexpectedEnumCase(); + } + } + } + return new FFIConverter(); +})(); + /** * A [`TimelineItem`](super::TimelineItem) that doesn't correspond to an event. */ @@ -18775,7 +19894,7 @@ export const RoomListError = (() => { type IncorrectRoomMembership__interface = { tag: RoomListError_Tags.IncorrectRoomMembership; - inner: Readonly<{ expected: Membership; actual: Membership }>; + inner: Readonly<{ expected: Array; actual: Membership }>; }; class IncorrectRoomMembership_ @@ -18788,14 +19907,17 @@ export const RoomListError = (() => { */ readonly [uniffiTypeNameSymbol] = 'RoomListError'; readonly tag = RoomListError_Tags.IncorrectRoomMembership; - readonly inner: Readonly<{ expected: Membership; actual: Membership }>; - constructor(inner: { expected: Membership; actual: Membership }) { + readonly inner: Readonly<{ + expected: Array; + actual: Membership; + }>; + constructor(inner: { expected: Array; actual: Membership }) { super('RoomListError', 'IncorrectRoomMembership'); this.inner = Object.freeze(inner); } static new(inner: { - expected: Membership; + expected: Array; actual: Membership; }): IncorrectRoomMembership_ { return new IncorrectRoomMembership_(inner); @@ -18811,7 +19933,7 @@ export const RoomListError = (() => { static getInner( obj: IncorrectRoomMembership_ - ): Readonly<{ expected: Membership; actual: Membership }> { + ): Readonly<{ expected: Array; actual: Membership }> { return obj.inner; } } @@ -18882,7 +20004,7 @@ const FfiConverterTypeRoomListError = (() => { }); case 10: return new RoomListError.IncorrectRoomMembership({ - expected: FfiConverterTypeMembership.read(from), + expected: FfiConverterArrayTypeMembership.read(from), actual: FfiConverterTypeMembership.read(from), }); default: @@ -18946,7 +20068,7 @@ const FfiConverterTypeRoomListError = (() => { case RoomListError_Tags.IncorrectRoomMembership: { ordinalConverter.write(10, into); const inner = value.inner; - FfiConverterTypeMembership.write(inner.expected, into); + FfiConverterArrayTypeMembership.write(inner.expected, into); FfiConverterTypeMembership.write(inner.actual, into); return; } @@ -19011,7 +20133,9 @@ const FfiConverterTypeRoomListError = (() => { case RoomListError_Tags.IncorrectRoomMembership: { const inner = value.inner; let size = ordinalConverter.allocationSize(10); - size += FfiConverterTypeMembership.allocationSize(inner.expected); + size += FfiConverterArrayTypeMembership.allocationSize( + inner.expected + ); size += FfiConverterTypeMembership.allocationSize(inner.actual); return size; } @@ -19381,6 +20505,180 @@ const FfiConverterTypeRoomPreset = (() => { return new FFIConverter(); })(); +// Enum: RoomType +export enum RoomType_Tags { + Room = 'Room', + Space = 'Space', + Custom = 'Custom', +} +/** + * The type of room for a [`RoomPreviewInfo`]. + */ +export const RoomType = (() => { + type Room__interface = { + tag: RoomType_Tags.Room; + }; + + /** + * It's a plain chat room. + */ + class Room_ extends UniffiEnum implements Room__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'RoomType'; + readonly tag = RoomType_Tags.Room; + constructor() { + super('RoomType', 'Room'); + } + + static new(): Room_ { + return new Room_(); + } + + static instanceOf(obj: any): obj is Room_ { + return obj.tag === RoomType_Tags.Room; + } + } + + type Space__interface = { + tag: RoomType_Tags.Space; + }; + + /** + * It's a space that can group several rooms. + */ + class Space_ extends UniffiEnum implements Space__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'RoomType'; + readonly tag = RoomType_Tags.Space; + constructor() { + super('RoomType', 'Space'); + } + + static new(): Space_ { + return new Space_(); + } + + static instanceOf(obj: any): obj is Space_ { + return obj.tag === RoomType_Tags.Space; + } + } + + type Custom__interface = { + tag: RoomType_Tags.Custom; + inner: Readonly<{ value: string }>; + }; + + /** + * It's a custom implementation. + */ + class Custom_ extends UniffiEnum implements Custom__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'RoomType'; + readonly tag = RoomType_Tags.Custom; + readonly inner: Readonly<{ value: string }>; + constructor(inner: { value: string }) { + super('RoomType', 'Custom'); + this.inner = Object.freeze(inner); + } + + static new(inner: { value: string }): Custom_ { + return new Custom_(inner); + } + + static instanceOf(obj: any): obj is Custom_ { + return obj.tag === RoomType_Tags.Custom; + } + } + + function instanceOf(obj: any): obj is RoomType { + return obj[uniffiTypeNameSymbol] === 'RoomType'; + } + + return Object.freeze({ + instanceOf, + Room: Room_, + Space: Space_, + Custom: Custom_, + }); +})(); + +/** + * The type of room for a [`RoomPreviewInfo`]. + */ + +export type RoomType = InstanceType< + (typeof RoomType)[keyof Omit] +>; + +// FfiConverter for enum RoomType +const FfiConverterTypeRoomType = (() => { + const ordinalConverter = FfiConverterInt32; + type TypeName = RoomType; + class FFIConverter extends AbstractFfiConverterArrayBuffer { + read(from: RustBuffer): TypeName { + switch (ordinalConverter.read(from)) { + case 1: + return new RoomType.Room(); + case 2: + return new RoomType.Space(); + case 3: + return new RoomType.Custom({ value: FfiConverterString.read(from) }); + default: + throw new UniffiInternalError.UnexpectedEnumCase(); + } + } + write(value: TypeName, into: RustBuffer): void { + switch (value.tag) { + case RoomType_Tags.Room: { + ordinalConverter.write(1, into); + return; + } + case RoomType_Tags.Space: { + ordinalConverter.write(2, into); + return; + } + case RoomType_Tags.Custom: { + ordinalConverter.write(3, into); + const inner = value.inner; + FfiConverterString.write(inner.value, into); + return; + } + default: + // Throwing from here means that RoomType_Tags hasn't matched an ordinal. + throw new UniffiInternalError.UnexpectedEnumCase(); + } + } + allocationSize(value: TypeName): number { + switch (value.tag) { + case RoomType_Tags.Room: { + return ordinalConverter.allocationSize(1); + } + case RoomType_Tags.Space: { + return ordinalConverter.allocationSize(2); + } + case RoomType_Tags.Custom: { + const inner = value.inner; + let size = ordinalConverter.allocationSize(3); + size += FfiConverterString.allocationSize(inner.value); + return size; + } + default: + throw new UniffiInternalError.UnexpectedEnumCase(); + } + } + } + return new FFIConverter(); +})(); + export enum RoomVisibility { /** * Indicates that the room will be shown in the published room list. @@ -21939,6 +23237,7 @@ export const TimelineItemContent = (() => { userId: string; userDisplayName: string | undefined; change: MembershipChange | undefined; + reason: string | undefined; }>; }; @@ -21956,11 +23255,13 @@ export const TimelineItemContent = (() => { userId: string; userDisplayName: string | undefined; change: MembershipChange | undefined; + reason: string | undefined; }>; constructor(inner: { userId: string; userDisplayName: string | undefined; change: MembershipChange | undefined; + reason: string | undefined; }) { super('TimelineItemContent', 'RoomMembership'); this.inner = Object.freeze(inner); @@ -21970,6 +23271,7 @@ export const TimelineItemContent = (() => { userId: string; userDisplayName: string | undefined; change: MembershipChange | undefined; + reason: string | undefined; }): RoomMembership_ { return new RoomMembership_(inner); } @@ -22194,6 +23496,7 @@ const FfiConverterTypeTimelineItemContent = (() => { userId: FfiConverterString.read(from), userDisplayName: FfiConverterOptionalString.read(from), change: FfiConverterOptionalTypeMembershipChange.read(from), + reason: FfiConverterOptionalString.read(from), }); case 9: return new TimelineItemContent.ProfileChange({ @@ -22274,6 +23577,7 @@ const FfiConverterTypeTimelineItemContent = (() => { FfiConverterString.write(inner.userId, into); FfiConverterOptionalString.write(inner.userDisplayName, into); FfiConverterOptionalTypeMembershipChange.write(inner.change, into); + FfiConverterOptionalString.write(inner.reason, into); return; } case TimelineItemContent_Tags.ProfileChange: { @@ -22365,6 +23669,7 @@ const FfiConverterTypeTimelineItemContent = (() => { size += FfiConverterOptionalTypeMembershipChange.allocationSize( inner.change ); + size += FfiConverterOptionalString.allocationSize(inner.reason); return size; } case TimelineItemContent_Tags.ProfileChange: { @@ -22888,7 +24193,7 @@ export interface ClientInterface { * Aborts an existing OIDC login operation that might have been cancelled, * failed etc. */ - abortOidcLogin( + abortOidcAuth( authorizationData: OidcAuthorizationDataInterface, asyncOpts_?: { signal: AbortSignal } ): Promise; @@ -22949,6 +24254,14 @@ export interface ClientInterface { request: CreateRoomParameters, asyncOpts_?: { signal: AbortSignal } ) /*throws*/ : Promise; + /** + * Creates a new room alias associated with the provided room id. + */ + createRoomAlias( + roomAlias: string, + roomId: string, + asyncOpts_?: { signal: AbortSignal } + ) /*throws*/ : Promise; /** * Login using JWT * This is an implementation of the custom_login https://docs.rs/matrix-sdk/latest/matrix_sdk/matrix_auth/struct.MatrixAuth.html#method.login_custom @@ -23009,7 +24322,7 @@ export interface ClientInterface { ) /*throws*/ : Promise; getMediaFile( mediaSource: MediaSourceInterface, - body: string | undefined, + filename: string | undefined, mimeType: string, useCache: boolean, tempDir: string | undefined, @@ -23035,7 +24348,7 @@ export interface ClientInterface { getRoomPreviewFromRoomAlias( roomAlias: string, asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; + ) /*throws*/ : Promise; /** * Given a room id, get the preview of a room, to interact with it. * @@ -23047,7 +24360,7 @@ export interface ClientInterface { roomId: string, viaServers: Array, asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; + ) /*throws*/ : Promise; getSessionVerificationController(asyncOpts_?: { signal: AbortSignal; }) /*throws*/ : Promise; @@ -23076,6 +24389,19 @@ export interface ClientInterface { ignoredUsers(asyncOpts_?: { signal: AbortSignal; }) /*throws*/ : Promise>; + /** + * Checks if a room alias is not in use yet. + * + * Returns: + * - `Ok(true)` if the room alias is available. + * - `Ok(false)` if it's not (the resolve alias request returned a `404` + * status code). + * - An `Err` otherwise. + */ + isRoomAliasAvailable( + alias: string, + asyncOpts_?: { signal: AbortSignal } + ) /*throws*/ : Promise; /** * Join a room by its ID. * @@ -23100,6 +24426,15 @@ export interface ClientInterface { serverNames: Array, asyncOpts_?: { signal: AbortSignal } ) /*throws*/ : Promise; + /** + * Knock on a room to join it using its ID or alias. + */ + knock( + roomIdOrAlias: string, + reason: string | undefined, + serverNames: Array, + asyncOpts_?: { signal: AbortSignal } + ) /*throws*/ : Promise; /** * Login using a username and password. */ @@ -23158,7 +24493,7 @@ export interface ClientInterface { resolveRoomAlias( roomAlias: string, asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; + ) /*throws*/ : Promise; /** * Restores the client from a `Session`. */ @@ -23166,6 +24501,13 @@ export interface ClientInterface { session: Session, asyncOpts_?: { signal: AbortSignal } ) /*throws*/ : Promise; + /** + * Checks if a room alias exists in the current homeserver. + */ + roomAliasExists( + roomAlias: string, + asyncOpts_?: { signal: AbortSignal } + ) /*throws*/ : Promise; roomDirectorySearch(): RoomDirectorySearchInterface; rooms(): Array; searchUsers( @@ -23261,13 +24603,14 @@ export interface ClientInterface { asyncOpts_?: { signal: AbortSignal } ) /*throws*/ : Promise; /** - * Requests the URL needed for login in a web view using OIDC. Once the web + * Requests the URL needed for opening a web view using OIDC. Once the web * view has succeeded, call `login_with_oidc_callback` with the callback it * returns. If a failure occurs and a callback isn't available, make sure - * to call `abort_oidc_login` to inform the client of this. + * to call `abort_oidc_auth` to inform the client of this. */ - urlForOidcLogin( + urlForOidc( oidcConfiguration: OidcConfiguration, + prompt: OidcPrompt, asyncOpts_?: { signal: AbortSignal } ) /*throws*/ : Promise; userId() /*throws*/ : string; @@ -23292,7 +24635,7 @@ export class Client extends UniffiAbstractObject implements ClientInterface { * Aborts an existing OIDC login operation that might have been cancelled, * failed etc. */ - public async abortOidcLogin( + public async abortOidcAuth( authorizationData: OidcAuthorizationDataInterface, asyncOpts_?: { signal: AbortSignal } ): Promise { @@ -23300,7 +24643,7 @@ export class Client extends UniffiAbstractObject implements ClientInterface { try { return await uniffiRustCallAsync( /*rustFutureFunc:*/ () => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_abort_oidc_login( + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_abort_oidc_auth( uniffiTypeClientObjectFactory.clonePointer(this), FfiConverterTypeOidcAuthorizationData.lower(authorizationData) ); @@ -23604,6 +24947,45 @@ export class Client extends UniffiAbstractObject implements ClientInterface { } } + /** + * Creates a new room alias associated with the provided room id. + */ + public async createRoomAlias( + roomAlias: string, + roomId: string, + asyncOpts_?: { signal: AbortSignal } + ): Promise /*throws*/ { + const __stack = uniffiIsDebug ? new Error().stack : undefined; + try { + return await uniffiRustCallAsync( + /*rustFutureFunc:*/ () => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_create_room_alias( + uniffiTypeClientObjectFactory.clonePointer(this), + FfiConverterString.lower(roomAlias), + FfiConverterString.lower(roomId) + ); + }, + /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_void, + /*cancelFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_cancel_void, + /*completeFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_complete_void, + /*freeFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_free_void, + /*liftFunc:*/ (_v) => {}, + /*liftString:*/ FfiConverterString.lift, + /*asyncOpts:*/ asyncOpts_, + /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( + FfiConverterTypeClientError + ) + ); + } catch (__error: any) { + if (uniffiIsDebug && __error instanceof Error) { + __error.stack = __stack; + } + throw __error; + } + } + /** * Login using JWT * This is an implementation of the custom_login https://docs.rs/matrix-sdk/latest/matrix_sdk/matrix_auth/struct.MatrixAuth.html#method.login_custom @@ -23895,7 +25277,7 @@ export class Client extends UniffiAbstractObject implements ClientInterface { public async getMediaFile( mediaSource: MediaSourceInterface, - body: string | undefined, + filename: string | undefined, mimeType: string, useCache: boolean, tempDir: string | undefined, @@ -23908,7 +25290,7 @@ export class Client extends UniffiAbstractObject implements ClientInterface { return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_get_media_file( uniffiTypeClientObjectFactory.clonePointer(this), FfiConverterTypeMediaSource.lower(mediaSource), - FfiConverterOptionalString.lower(body), + FfiConverterOptionalString.lower(filename), FfiConverterString.lower(mimeType), FfiConverterBool.lower(useCache), FfiConverterOptionalString.lower(tempDir) @@ -24075,7 +25457,7 @@ export class Client extends UniffiAbstractObject implements ClientInterface { public async getRoomPreviewFromRoomAlias( roomAlias: string, asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { + ): Promise /*throws*/ { const __stack = uniffiIsDebug ? new Error().stack : undefined; try { return await uniffiRustCallAsync( @@ -24086,13 +25468,13 @@ export class Client extends UniffiAbstractObject implements ClientInterface { ); }, /*pollFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer, + .ffi_matrix_sdk_ffi_rust_future_poll_pointer, /*cancelFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer, + .ffi_matrix_sdk_ffi_rust_future_cancel_pointer, /*completeFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer, + .ffi_matrix_sdk_ffi_rust_future_complete_pointer, /*freeFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_free_rust_buffer, + .ffi_matrix_sdk_ffi_rust_future_free_pointer, /*liftFunc:*/ FfiConverterTypeRoomPreview.lift.bind( FfiConverterTypeRoomPreview ), @@ -24121,7 +25503,7 @@ export class Client extends UniffiAbstractObject implements ClientInterface { roomId: string, viaServers: Array, asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { + ): Promise /*throws*/ { const __stack = uniffiIsDebug ? new Error().stack : undefined; try { return await uniffiRustCallAsync( @@ -24133,13 +25515,13 @@ export class Client extends UniffiAbstractObject implements ClientInterface { ); }, /*pollFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer, + .ffi_matrix_sdk_ffi_rust_future_poll_pointer, /*cancelFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer, + .ffi_matrix_sdk_ffi_rust_future_cancel_pointer, /*completeFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer, + .ffi_matrix_sdk_ffi_rust_future_complete_pointer, /*freeFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_free_rust_buffer, + .ffi_matrix_sdk_ffi_rust_future_free_pointer, /*liftFunc:*/ FfiConverterTypeRoomPreview.lift.bind( FfiConverterTypeRoomPreview ), @@ -24356,6 +25738,48 @@ export class Client extends UniffiAbstractObject implements ClientInterface { } } + /** + * Checks if a room alias is not in use yet. + * + * Returns: + * - `Ok(true)` if the room alias is available. + * - `Ok(false)` if it's not (the resolve alias request returned a `404` + * status code). + * - An `Err` otherwise. + */ + public async isRoomAliasAvailable( + alias: string, + asyncOpts_?: { signal: AbortSignal } + ): Promise /*throws*/ { + const __stack = uniffiIsDebug ? new Error().stack : undefined; + try { + return await uniffiRustCallAsync( + /*rustFutureFunc:*/ () => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_is_room_alias_available( + uniffiTypeClientObjectFactory.clonePointer(this), + FfiConverterString.lower(alias) + ); + }, + /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_i8, + /*cancelFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_cancel_i8, + /*completeFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_complete_i8, + /*freeFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_free_i8, + /*liftFunc:*/ FfiConverterBool.lift.bind(FfiConverterBool), + /*liftString:*/ FfiConverterString.lift, + /*asyncOpts:*/ asyncOpts_, + /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( + FfiConverterTypeClientError + ) + ); + } catch (__error: any) { + if (uniffiIsDebug && __error instanceof Error) { + __error.stack = __stack; + } + throw __error; + } + } + /** * Join a room by its ID. * @@ -24445,6 +25869,49 @@ export class Client extends UniffiAbstractObject implements ClientInterface { } } + /** + * Knock on a room to join it using its ID or alias. + */ + public async knock( + roomIdOrAlias: string, + reason: string | undefined, + serverNames: Array, + asyncOpts_?: { signal: AbortSignal } + ): Promise /*throws*/ { + const __stack = uniffiIsDebug ? new Error().stack : undefined; + try { + return await uniffiRustCallAsync( + /*rustFutureFunc:*/ () => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_knock( + uniffiTypeClientObjectFactory.clonePointer(this), + FfiConverterString.lower(roomIdOrAlias), + FfiConverterOptionalString.lower(reason), + FfiConverterArrayString.lower(serverNames) + ); + }, + /*pollFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_poll_pointer, + /*cancelFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_cancel_pointer, + /*completeFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_complete_pointer, + /*freeFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_free_pointer, + /*liftFunc:*/ FfiConverterTypeRoom.lift.bind(FfiConverterTypeRoom), + /*liftString:*/ FfiConverterString.lift, + /*asyncOpts:*/ asyncOpts_, + /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( + FfiConverterTypeClientError + ) + ); + } catch (__error: any) { + if (uniffiIsDebug && __error instanceof Error) { + __error.stack = __stack; + } + throw __error; + } + } + /** * Login using a username and password. */ @@ -24489,25 +25956,214 @@ export class Client extends UniffiAbstractObject implements ClientInterface { } /** - * Login using an email and password. + * Login using an email and password. + */ + public async loginWithEmail( + email: string, + password: string, + initialDeviceName: string | undefined, + deviceId: string | undefined, + asyncOpts_?: { signal: AbortSignal } + ): Promise /*throws*/ { + const __stack = uniffiIsDebug ? new Error().stack : undefined; + try { + return await uniffiRustCallAsync( + /*rustFutureFunc:*/ () => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_login_with_email( + uniffiTypeClientObjectFactory.clonePointer(this), + FfiConverterString.lower(email), + FfiConverterString.lower(password), + FfiConverterOptionalString.lower(initialDeviceName), + FfiConverterOptionalString.lower(deviceId) + ); + }, + /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_void, + /*cancelFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_cancel_void, + /*completeFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_complete_void, + /*freeFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_free_void, + /*liftFunc:*/ (_v) => {}, + /*liftString:*/ FfiConverterString.lift, + /*asyncOpts:*/ asyncOpts_, + /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( + FfiConverterTypeClientError + ) + ); + } catch (__error: any) { + if (uniffiIsDebug && __error instanceof Error) { + __error.stack = __stack; + } + throw __error; + } + } + + /** + * Completes the OIDC login process. + */ + public async loginWithOidcCallback( + authorizationData: OidcAuthorizationDataInterface, + callbackUrl: string, + asyncOpts_?: { signal: AbortSignal } + ): Promise /*throws*/ { + const __stack = uniffiIsDebug ? new Error().stack : undefined; + try { + return await uniffiRustCallAsync( + /*rustFutureFunc:*/ () => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_login_with_oidc_callback( + uniffiTypeClientObjectFactory.clonePointer(this), + FfiConverterTypeOidcAuthorizationData.lower(authorizationData), + FfiConverterString.lower(callbackUrl) + ); + }, + /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_void, + /*cancelFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_cancel_void, + /*completeFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_complete_void, + /*freeFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_free_void, + /*liftFunc:*/ (_v) => {}, + /*liftString:*/ FfiConverterString.lift, + /*asyncOpts:*/ asyncOpts_, + /*errorHandler:*/ FfiConverterTypeOidcError.lift.bind( + FfiConverterTypeOidcError + ) + ); + } catch (__error: any) { + if (uniffiIsDebug && __error instanceof Error) { + __error.stack = __stack; + } + throw __error; + } + } + + /** + * Log out the current user. This method returns an optional URL that + * should be presented to the user to complete logout (in the case of + * Session having been authenticated using OIDC). + */ + public async logout(asyncOpts_?: { + signal: AbortSignal; + }): Promise /*throws*/ { + const __stack = uniffiIsDebug ? new Error().stack : undefined; + try { + return await uniffiRustCallAsync( + /*rustFutureFunc:*/ () => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_logout( + uniffiTypeClientObjectFactory.clonePointer(this) + ); + }, + /*pollFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer, + /*cancelFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer, + /*completeFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer, + /*freeFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_free_rust_buffer, + /*liftFunc:*/ FfiConverterOptionalString.lift.bind( + FfiConverterOptionalString + ), + /*liftString:*/ FfiConverterString.lift, + /*asyncOpts:*/ asyncOpts_, + /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( + FfiConverterTypeClientError + ) + ); + } catch (__error: any) { + if (uniffiIsDebug && __error instanceof Error) { + __error.stack = __stack; + } + throw __error; + } + } + + public async notificationClient( + processSetup: NotificationProcessSetup, + asyncOpts_?: { signal: AbortSignal } + ): Promise /*throws*/ { + const __stack = uniffiIsDebug ? new Error().stack : undefined; + try { + return await uniffiRustCallAsync( + /*rustFutureFunc:*/ () => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_notification_client( + uniffiTypeClientObjectFactory.clonePointer(this), + FfiConverterTypeNotificationProcessSetup.lower(processSetup) + ); + }, + /*pollFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_poll_pointer, + /*cancelFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_cancel_pointer, + /*completeFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_complete_pointer, + /*freeFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_free_pointer, + /*liftFunc:*/ FfiConverterTypeNotificationClient.lift.bind( + FfiConverterTypeNotificationClient + ), + /*liftString:*/ FfiConverterString.lift, + /*asyncOpts:*/ asyncOpts_, + /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( + FfiConverterTypeClientError + ) + ); + } catch (__error: any) { + if (uniffiIsDebug && __error instanceof Error) { + __error.stack = __stack; + } + throw __error; + } + } + + public async removeAvatar(asyncOpts_?: { + signal: AbortSignal; + }): Promise /*throws*/ { + const __stack = uniffiIsDebug ? new Error().stack : undefined; + try { + return await uniffiRustCallAsync( + /*rustFutureFunc:*/ () => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_remove_avatar( + uniffiTypeClientObjectFactory.clonePointer(this) + ); + }, + /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_void, + /*cancelFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_cancel_void, + /*completeFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_complete_void, + /*freeFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_free_void, + /*liftFunc:*/ (_v) => {}, + /*liftString:*/ FfiConverterString.lift, + /*asyncOpts:*/ asyncOpts_, + /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( + FfiConverterTypeClientError + ) + ); + } catch (__error: any) { + if (uniffiIsDebug && __error instanceof Error) { + __error.stack = __stack; + } + throw __error; + } + } + + /** + * Empty the server version and unstable features cache. + * + * Since the SDK caches server capabilities (versions and unstable + * features), it's possible to have a stale entry in the cache. This + * functions makes it possible to force reset it. */ - public async loginWithEmail( - email: string, - password: string, - initialDeviceName: string | undefined, - deviceId: string | undefined, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { + public async resetServerCapabilities(asyncOpts_?: { + signal: AbortSignal; + }): Promise /*throws*/ { const __stack = uniffiIsDebug ? new Error().stack : undefined; try { return await uniffiRustCallAsync( /*rustFutureFunc:*/ () => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_login_with_email( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterString.lower(email), - FfiConverterString.lower(password), - FfiConverterOptionalString.lower(initialDeviceName), - FfiConverterOptionalString.lower(deviceId) + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_reset_server_capabilities( + uniffiTypeClientObjectFactory.clonePointer(this) ); }, /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_void, @@ -24532,58 +26188,20 @@ export class Client extends UniffiAbstractObject implements ClientInterface { } /** - * Completes the OIDC login process. + * Resolves the given room alias to a room ID (and a list of servers), if + * possible. */ - public async loginWithOidcCallback( - authorizationData: OidcAuthorizationDataInterface, - callbackUrl: string, + public async resolveRoomAlias( + roomAlias: string, asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { + ): Promise /*throws*/ { const __stack = uniffiIsDebug ? new Error().stack : undefined; try { return await uniffiRustCallAsync( /*rustFutureFunc:*/ () => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_login_with_oidc_callback( + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_resolve_room_alias( uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterTypeOidcAuthorizationData.lower(authorizationData), - FfiConverterString.lower(callbackUrl) - ); - }, - /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeOidcError.lift.bind( - FfiConverterTypeOidcError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Log out the current user. This method returns an optional URL that - * should be presented to the user to complete logout (in the case of - * Session having been authenticated using OIDC). - */ - public async logout(asyncOpts_?: { - signal: AbortSignal; - }): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustFutureFunc:*/ () => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_logout( - uniffiTypeClientObjectFactory.clonePointer(this) + FfiConverterString.lower(roomAlias) ); }, /*pollFunc:*/ nativeModule() @@ -24594,8 +26212,8 @@ export class Client extends UniffiAbstractObject implements ClientInterface { .ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/ nativeModule() .ffi_matrix_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterOptionalString.lift.bind( - FfiConverterOptionalString + /*liftFunc:*/ FfiConverterOptionalTypeResolvedRoomAlias.lift.bind( + FfiConverterOptionalTypeResolvedRoomAlias ), /*liftString:*/ FfiConverterString.lift, /*asyncOpts:*/ asyncOpts_, @@ -24611,92 +26229,20 @@ export class Client extends UniffiAbstractObject implements ClientInterface { } } - public async notificationClient( - processSetup: NotificationProcessSetup, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustFutureFunc:*/ () => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_notification_client( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterTypeNotificationProcessSetup.lower(processSetup) - ); - }, - /*pollFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_poll_pointer, - /*cancelFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_cancel_pointer, - /*completeFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_complete_pointer, - /*freeFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_free_pointer, - /*liftFunc:*/ FfiConverterTypeNotificationClient.lift.bind( - FfiConverterTypeNotificationClient - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( - FfiConverterTypeClientError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - public async removeAvatar(asyncOpts_?: { - signal: AbortSignal; - }): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustFutureFunc:*/ () => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_remove_avatar( - uniffiTypeClientObjectFactory.clonePointer(this) - ); - }, - /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( - FfiConverterTypeClientError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - /** - * Empty the server version and unstable features cache. - * - * Since the SDK caches server capabilities (versions and unstable - * features), it's possible to have a stale entry in the cache. This - * functions makes it possible to force reset it. + * Restores the client from a `Session`. */ - public async resetServerCapabilities(asyncOpts_?: { - signal: AbortSignal; - }): Promise /*throws*/ { + public async restoreSession( + session: Session, + asyncOpts_?: { signal: AbortSignal } + ): Promise /*throws*/ { const __stack = uniffiIsDebug ? new Error().stack : undefined; try { return await uniffiRustCallAsync( /*rustFutureFunc:*/ () => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_reset_server_capabilities( - uniffiTypeClientObjectFactory.clonePointer(this) + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_restore_session( + uniffiTypeClientObjectFactory.clonePointer(this), + FfiConverterTypeSession.lower(session) ); }, /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_void, @@ -24721,70 +26267,27 @@ export class Client extends UniffiAbstractObject implements ClientInterface { } /** - * Resolves the given room alias to a room ID (and a list of servers), if - * possible. + * Checks if a room alias exists in the current homeserver. */ - public async resolveRoomAlias( + public async roomAliasExists( roomAlias: string, asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { + ): Promise /*throws*/ { const __stack = uniffiIsDebug ? new Error().stack : undefined; try { return await uniffiRustCallAsync( /*rustFutureFunc:*/ () => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_resolve_room_alias( + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_room_alias_exists( uniffiTypeClientObjectFactory.clonePointer(this), FfiConverterString.lower(roomAlias) ); }, - /*pollFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeResolvedRoomAlias.lift.bind( - FfiConverterTypeResolvedRoomAlias - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( - FfiConverterTypeClientError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - - /** - * Restores the client from a `Session`. - */ - public async restoreSession( - session: Session, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustFutureFunc:*/ () => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_restore_session( - uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterTypeSession.lower(session) - ); - }, - /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_cancel_void, + /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_i8, + /*cancelFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_cancel_i8, /*completeFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, + .ffi_matrix_sdk_ffi_rust_future_complete_i8, + /*freeFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_free_i8, + /*liftFunc:*/ FfiConverterBool.lift.bind(FfiConverterBool), /*liftString:*/ FfiConverterString.lift, /*asyncOpts:*/ asyncOpts_, /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( @@ -25310,22 +26813,24 @@ export class Client extends UniffiAbstractObject implements ClientInterface { } /** - * Requests the URL needed for login in a web view using OIDC. Once the web + * Requests the URL needed for opening a web view using OIDC. Once the web * view has succeeded, call `login_with_oidc_callback` with the callback it * returns. If a failure occurs and a callback isn't available, make sure - * to call `abort_oidc_login` to inform the client of this. + * to call `abort_oidc_auth` to inform the client of this. */ - public async urlForOidcLogin( + public async urlForOidc( oidcConfiguration: OidcConfiguration, + prompt: OidcPrompt, asyncOpts_?: { signal: AbortSignal } ): Promise /*throws*/ { const __stack = uniffiIsDebug ? new Error().stack : undefined; try { return await uniffiRustCallAsync( /*rustFutureFunc:*/ () => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc_login( + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc( uniffiTypeClientObjectFactory.clonePointer(this), - FfiConverterTypeOidcConfiguration.lower(oidcConfiguration) + FfiConverterTypeOidcConfiguration.lower(oidcConfiguration), + FfiConverterTypeOidcPrompt.lower(prompt) ); }, /*pollFunc:*/ nativeModule() @@ -25507,6 +27012,7 @@ export interface ClientBuilderInterface { progressListener: QrLoginProgressListener, asyncOpts_?: { signal: AbortSignal } ) /*throws*/ : Promise; + crossProcessStoreLocksHolderName(holderName: string): ClientBuilderInterface; disableAutomaticTokenRefresh(): ClientBuilderInterface; /** * Don't trust any system root certificates, only trust the certificates @@ -25515,10 +27021,7 @@ export interface ClientBuilderInterface { */ disableBuiltInRootCertificates(): ClientBuilderInterface; disableSslVerification(): ClientBuilderInterface; - enableCrossProcessRefreshLock( - processId: string, - sessionDelegate: ClientSessionDelegate - ): ClientBuilderInterface; + enableOidcRefreshLock(): ClientBuilderInterface; homeserverUrl(url: string): ClientBuilderInterface; passphrase(passphrase: string | undefined): ClientBuilderInterface; proxy(url: string): ClientBuilderInterface; @@ -25745,6 +27248,23 @@ export class ClientBuilder } } + public crossProcessStoreLocksHolderName( + holderName: string + ): ClientBuilderInterface { + return FfiConverterTypeClientBuilder.lift( + rustCall( + /*caller:*/ (callStatus) => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_clientbuilder_cross_process_store_locks_holder_name( + uniffiTypeClientBuilderObjectFactory.clonePointer(this), + FfiConverterString.lower(holderName), + callStatus + ); + }, + /*liftString:*/ FfiConverterString.lift + ) + ); + } + public disableAutomaticTokenRefresh(): ClientBuilderInterface { return FfiConverterTypeClientBuilder.lift( rustCall( @@ -25792,17 +27312,12 @@ export class ClientBuilder ); } - public enableCrossProcessRefreshLock( - processId: string, - sessionDelegate: ClientSessionDelegate - ): ClientBuilderInterface { + public enableOidcRefreshLock(): ClientBuilderInterface { return FfiConverterTypeClientBuilder.lift( rustCall( /*caller:*/ (callStatus) => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_method_clientbuilder_enable_cross_process_refresh_lock( + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_clientbuilder_enable_oidc_refresh_lock( uniffiTypeClientBuilderObjectFactory.clonePointer(this), - FfiConverterString.lower(processId), - FfiConverterTypeClientSessionDelegate.lower(sessionDelegate), callStatus ); }, @@ -26159,18 +27674,6 @@ export interface EncryptionInterface { progressListener: EnableRecoveryProgressListener, asyncOpts_?: { signal: AbortSignal } ) /*throws*/ : Promise; - /** - * Get the E2EE identity of a user. - * - * Returns Ok(None) if this user does not exist. - * - * Returns an error if there was a problem contacting the crypto store, or - * if our client is not logged in. - */ - getUserIdentity( - userId: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; isLastDevice(asyncOpts_?: { signal: AbortSignal; }) /*throws*/ : Promise; @@ -26194,6 +27697,28 @@ export interface EncryptionInterface { resetRecoveryKey(asyncOpts_?: { signal: AbortSignal; }) /*throws*/ : Promise; + /** + * Get the E2EE identity of a user. + * + * This method always tries to fetch the identity from the store, which we + * only have if the user is tracked, meaning that we are both members + * of the same encrypted room. If no user is found locally, a request will + * be made to the homeserver. + * + * # Arguments + * + * * `user_id` - The ID of the user that the identity belongs to. + * + * Returns a `UserIdentity` if one is found. Returns an error if there + * was an issue with the crypto store or with the request to the + * homeserver. + * + * This will always return `None` if the client hasn't been logged in. + */ + userIdentity( + userId: string, + asyncOpts_?: { signal: AbortSignal } + ) /*throws*/ : Promise; verificationState(): VerificationState; verificationStateListener( listener: VerificationStateListener @@ -26479,52 +28004,6 @@ export class Encryption } } - /** - * Get the E2EE identity of a user. - * - * Returns Ok(None) if this user does not exist. - * - * Returns an error if there was a problem contacting the crypto store, or - * if our client is not logged in. - */ - public async getUserIdentity( - userId: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustFutureFunc:*/ () => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_method_encryption_get_user_identity( - uniffiTypeEncryptionObjectFactory.clonePointer(this), - FfiConverterString.lower(userId) - ); - }, - /*pollFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterOptionalTypeUserIdentity.lift.bind( - FfiConverterOptionalTypeUserIdentity - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( - FfiConverterTypeClientError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - public async isLastDevice(asyncOpts_?: { signal: AbortSignal; }): Promise /*throws*/ { @@ -26731,6 +28210,62 @@ export class Encryption } } + /** + * Get the E2EE identity of a user. + * + * This method always tries to fetch the identity from the store, which we + * only have if the user is tracked, meaning that we are both members + * of the same encrypted room. If no user is found locally, a request will + * be made to the homeserver. + * + * # Arguments + * + * * `user_id` - The ID of the user that the identity belongs to. + * + * Returns a `UserIdentity` if one is found. Returns an error if there + * was an issue with the crypto store or with the request to the + * homeserver. + * + * This will always return `None` if the client hasn't been logged in. + */ + public async userIdentity( + userId: string, + asyncOpts_?: { signal: AbortSignal } + ): Promise /*throws*/ { + const __stack = uniffiIsDebug ? new Error().stack : undefined; + try { + return await uniffiRustCallAsync( + /*rustFutureFunc:*/ () => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_encryption_user_identity( + uniffiTypeEncryptionObjectFactory.clonePointer(this), + FfiConverterString.lower(userId) + ); + }, + /*pollFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer, + /*cancelFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer, + /*completeFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer, + /*freeFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_free_rust_buffer, + /*liftFunc:*/ FfiConverterOptionalTypeUserIdentity.lift.bind( + FfiConverterOptionalTypeUserIdentity + ), + /*liftString:*/ FfiConverterString.lift, + /*asyncOpts:*/ asyncOpts_, + /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( + FfiConverterTypeClientError + ) + ); + } catch (__error: any) { + if (uniffiIsDebug && __error instanceof Error) { + __error.stack = __stack; + } + throw __error; + } + } + public verificationState(): VerificationState { return FfiConverterTypeVerificationState.lift( rustCall( @@ -26910,270 +28445,16 @@ const FfiConverterTypeEncryption = new FfiConverterObject( uniffiTypeEncryptionObjectFactory ); -/** - * Wrapper to retrieve the shields info lazily. - */ -export interface EventShieldsProviderInterface { - getShields(strict: boolean): ShieldState | undefined; -} - -/** - * Wrapper to retrieve the shields info lazily. - */ -export class EventShieldsProvider - extends UniffiAbstractObject - implements EventShieldsProviderInterface -{ - readonly [uniffiTypeNameSymbol] = 'EventShieldsProvider'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeEventShieldsProviderObjectFactory.bless(pointer); - } - - public getShields(strict: boolean): ShieldState | undefined { - return FfiConverterOptionalTypeShieldState.lift( - rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_method_eventshieldsprovider_get_shields( - uniffiTypeEventShieldsProviderObjectFactory.clonePointer(this), - FfiConverterBool.lower(strict), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - if ((this as any)[destructorGuardSymbol]) { - const pointer = uniffiTypeEventShieldsProviderObjectFactory.pointer(this); - uniffiTypeEventShieldsProviderObjectFactory.freePointer(pointer); - this[destructorGuardSymbol].markDestroyed(); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is EventShieldsProvider { - return uniffiTypeEventShieldsProviderObjectFactory.isConcreteType(obj); - } -} - -const uniffiTypeEventShieldsProviderObjectFactory: UniffiObjectFactory = - { - create(pointer: UnsafeMutableRawPointer): EventShieldsProviderInterface { - const instance = Object.create(EventShieldsProvider.prototype); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'EventShieldsProvider'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return rustCall( - /*caller:*/ (status) => - nativeModule().uniffi_internal_fn_method_eventshieldsprovider_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - pointer(obj: EventShieldsProviderInterface): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer(obj: EventShieldsProviderInterface): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return rustCall( - /*caller:*/ (callStatus) => - nativeModule().uniffi_matrix_sdk_ffi_fn_clone_eventshieldsprovider( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - rustCall( - /*caller:*/ (callStatus) => - nativeModule().uniffi_matrix_sdk_ffi_fn_free_eventshieldsprovider( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType(obj: any): obj is EventShieldsProviderInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'EventShieldsProvider' - ); - }, - }; -// FfiConverter for EventShieldsProviderInterface -const FfiConverterTypeEventShieldsProvider = new FfiConverterObject( - uniffiTypeEventShieldsProviderObjectFactory -); - -/** - * Wrapper to retrieve the debug info lazily instead of immediately - * transforming it for each timeline event. - */ -export interface EventTimelineItemDebugInfoProviderInterface { - get(): EventTimelineItemDebugInfo; -} - -/** - * Wrapper to retrieve the debug info lazily instead of immediately - * transforming it for each timeline event. - */ -export class EventTimelineItemDebugInfoProvider - extends UniffiAbstractObject - implements EventTimelineItemDebugInfoProviderInterface -{ - readonly [uniffiTypeNameSymbol] = 'EventTimelineItemDebugInfoProvider'; - readonly [destructorGuardSymbol]: UniffiRustArcPtr; - readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; - // No primary constructor declared for this class. - private constructor(pointer: UnsafeMutableRawPointer) { - super(); - this[pointerLiteralSymbol] = pointer; - this[destructorGuardSymbol] = - uniffiTypeEventTimelineItemDebugInfoProviderObjectFactory.bless(pointer); - } - - public get(): EventTimelineItemDebugInfo { - return FfiConverterTypeEventTimelineItemDebugInfo.lift( - rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_method_eventtimelineitemdebuginfoprovider_get( - uniffiTypeEventTimelineItemDebugInfoProviderObjectFactory.clonePointer( - this - ), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); - } - - /** - * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} - */ - uniffiDestroy(): void { - if ((this as any)[destructorGuardSymbol]) { - const pointer = - uniffiTypeEventTimelineItemDebugInfoProviderObjectFactory.pointer(this); - uniffiTypeEventTimelineItemDebugInfoProviderObjectFactory.freePointer( - pointer - ); - this[destructorGuardSymbol].markDestroyed(); - delete (this as any)[destructorGuardSymbol]; - } - } - - static instanceOf(obj: any): obj is EventTimelineItemDebugInfoProvider { - return uniffiTypeEventTimelineItemDebugInfoProviderObjectFactory.isConcreteType( - obj - ); - } -} - -const uniffiTypeEventTimelineItemDebugInfoProviderObjectFactory: UniffiObjectFactory = - { - create( - pointer: UnsafeMutableRawPointer - ): EventTimelineItemDebugInfoProviderInterface { - const instance = Object.create( - EventTimelineItemDebugInfoProvider.prototype - ); - instance[pointerLiteralSymbol] = pointer; - instance[destructorGuardSymbol] = this.bless(pointer); - instance[uniffiTypeNameSymbol] = 'EventTimelineItemDebugInfoProvider'; - return instance; - }, - - bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { - return rustCall( - /*caller:*/ (status) => - nativeModule().uniffi_internal_fn_method_eventtimelineitemdebuginfoprovider_ffi__bless_pointer( - p, - status - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - pointer( - obj: EventTimelineItemDebugInfoProviderInterface - ): UnsafeMutableRawPointer { - if ((obj as any)[destructorGuardSymbol] === undefined) { - throw new UniffiInternalError.UnexpectedNullPointer(); - } - return (obj as any)[pointerLiteralSymbol]; - }, - - clonePointer( - obj: EventTimelineItemDebugInfoProviderInterface - ): UnsafeMutableRawPointer { - const pointer = this.pointer(obj); - return rustCall( - /*caller:*/ (callStatus) => - nativeModule().uniffi_matrix_sdk_ffi_fn_clone_eventtimelineitemdebuginfoprovider( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - freePointer(pointer: UnsafeMutableRawPointer): void { - rustCall( - /*caller:*/ (callStatus) => - nativeModule().uniffi_matrix_sdk_ffi_fn_free_eventtimelineitemdebuginfoprovider( - pointer, - callStatus - ), - /*liftString:*/ FfiConverterString.lift - ); - }, - - isConcreteType( - obj: any - ): obj is EventTimelineItemDebugInfoProviderInterface { - return ( - obj[destructorGuardSymbol] && - obj[uniffiTypeNameSymbol] === 'EventTimelineItemDebugInfoProvider' - ); - }, - }; -// FfiConverter for EventTimelineItemDebugInfoProviderInterface -const FfiConverterTypeEventTimelineItemDebugInfoProvider = - new FfiConverterObject( - uniffiTypeEventTimelineItemDebugInfoProviderObjectFactory - ); - export interface HomeserverLoginDetailsInterface { /** * The sliding sync version. */ slidingSyncVersion(): SlidingSyncVersion; + /** + * The prompts advertised by the authentication issuer for use in the login + * URL. + */ + supportedOidcPrompts(): Array; /** * Whether the current homeserver supports login using OIDC. */ @@ -27220,6 +28501,24 @@ export class HomeserverLoginDetails ); } + /** + * The prompts advertised by the authentication issuer for use in the login + * URL. + */ + public supportedOidcPrompts(): Array { + return FfiConverterArrayTypeOidcPrompt.lift( + rustCall( + /*caller:*/ (callStatus) => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_homeserverlogindetails_supported_oidc_prompts( + uniffiTypeHomeserverLoginDetailsObjectFactory.clonePointer(this), + callStatus + ); + }, + /*liftString:*/ FfiConverterString.lift + ) + ); + } + /** * Whether the current homeserver supports login using OIDC. */ @@ -27687,6 +28986,181 @@ const FfiConverterTypeInReplyToDetails = new FfiConverterObject( uniffiTypeInReplyToDetailsObjectFactory ); +/** + * Wrapper to retrieve some timeline item info lazily. + */ +export interface LazyTimelineItemProviderInterface { + /** + * Returns some debug information for this event timeline item. + */ + debugInfo(): EventTimelineItemDebugInfo; + /** + * For local echoes, return the associated send handle; returns `None` for + * remote echoes. + */ + getSendHandle(): SendHandleInterface | undefined; + /** + * Returns the shields for this event timeline item. + */ + getShields(strict: boolean): ShieldState | undefined; +} + +/** + * Wrapper to retrieve some timeline item info lazily. + */ +export class LazyTimelineItemProvider + extends UniffiAbstractObject + implements LazyTimelineItemProviderInterface +{ + readonly [uniffiTypeNameSymbol] = 'LazyTimelineItemProvider'; + readonly [destructorGuardSymbol]: UniffiRustArcPtr; + readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; + // No primary constructor declared for this class. + private constructor(pointer: UnsafeMutableRawPointer) { + super(); + this[pointerLiteralSymbol] = pointer; + this[destructorGuardSymbol] = + uniffiTypeLazyTimelineItemProviderObjectFactory.bless(pointer); + } + + /** + * Returns some debug information for this event timeline item. + */ + public debugInfo(): EventTimelineItemDebugInfo { + return FfiConverterTypeEventTimelineItemDebugInfo.lift( + rustCall( + /*caller:*/ (callStatus) => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_debug_info( + uniffiTypeLazyTimelineItemProviderObjectFactory.clonePointer(this), + callStatus + ); + }, + /*liftString:*/ FfiConverterString.lift + ) + ); + } + + /** + * For local echoes, return the associated send handle; returns `None` for + * remote echoes. + */ + public getSendHandle(): SendHandleInterface | undefined { + return FfiConverterOptionalTypeSendHandle.lift( + rustCall( + /*caller:*/ (callStatus) => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_get_send_handle( + uniffiTypeLazyTimelineItemProviderObjectFactory.clonePointer(this), + callStatus + ); + }, + /*liftString:*/ FfiConverterString.lift + ) + ); + } + + /** + * Returns the shields for this event timeline item. + */ + public getShields(strict: boolean): ShieldState | undefined { + return FfiConverterOptionalTypeShieldState.lift( + rustCall( + /*caller:*/ (callStatus) => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_lazytimelineitemprovider_get_shields( + uniffiTypeLazyTimelineItemProviderObjectFactory.clonePointer(this), + FfiConverterBool.lower(strict), + callStatus + ); + }, + /*liftString:*/ FfiConverterString.lift + ) + ); + } + + /** + * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} + */ + uniffiDestroy(): void { + if ((this as any)[destructorGuardSymbol]) { + const pointer = + uniffiTypeLazyTimelineItemProviderObjectFactory.pointer(this); + uniffiTypeLazyTimelineItemProviderObjectFactory.freePointer(pointer); + this[destructorGuardSymbol].markDestroyed(); + delete (this as any)[destructorGuardSymbol]; + } + } + + static instanceOf(obj: any): obj is LazyTimelineItemProvider { + return uniffiTypeLazyTimelineItemProviderObjectFactory.isConcreteType(obj); + } +} + +const uniffiTypeLazyTimelineItemProviderObjectFactory: UniffiObjectFactory = + { + create( + pointer: UnsafeMutableRawPointer + ): LazyTimelineItemProviderInterface { + const instance = Object.create(LazyTimelineItemProvider.prototype); + instance[pointerLiteralSymbol] = pointer; + instance[destructorGuardSymbol] = this.bless(pointer); + instance[uniffiTypeNameSymbol] = 'LazyTimelineItemProvider'; + return instance; + }, + + bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { + return rustCall( + /*caller:*/ (status) => + nativeModule().uniffi_internal_fn_method_lazytimelineitemprovider_ffi__bless_pointer( + p, + status + ), + /*liftString:*/ FfiConverterString.lift + ); + }, + + pointer(obj: LazyTimelineItemProviderInterface): UnsafeMutableRawPointer { + if ((obj as any)[destructorGuardSymbol] === undefined) { + throw new UniffiInternalError.UnexpectedNullPointer(); + } + return (obj as any)[pointerLiteralSymbol]; + }, + + clonePointer( + obj: LazyTimelineItemProviderInterface + ): UnsafeMutableRawPointer { + const pointer = this.pointer(obj); + return rustCall( + /*caller:*/ (callStatus) => + nativeModule().uniffi_matrix_sdk_ffi_fn_clone_lazytimelineitemprovider( + pointer, + callStatus + ), + /*liftString:*/ FfiConverterString.lift + ); + }, + + freePointer(pointer: UnsafeMutableRawPointer): void { + rustCall( + /*caller:*/ (callStatus) => + nativeModule().uniffi_matrix_sdk_ffi_fn_free_lazytimelineitemprovider( + pointer, + callStatus + ), + /*liftString:*/ FfiConverterString.lift + ); + }, + + isConcreteType(obj: any): obj is LazyTimelineItemProviderInterface { + return ( + obj[destructorGuardSymbol] && + obj[uniffiTypeNameSymbol] === 'LazyTimelineItemProvider' + ); + }, + }; +// FfiConverter for LazyTimelineItemProviderInterface +const FfiConverterTypeLazyTimelineItemProvider = new FfiConverterObject( + uniffiTypeLazyTimelineItemProviderObjectFactory +); + /** * A file handle that takes ownership of a media file on disk. When the handle * is dropped, the file will be removed from the disk. @@ -29402,7 +30876,7 @@ export interface RoomInterface { */ ignoreDeviceTrustAndResend( devices: Map>, - transactionId: string, + sendHandle: SendHandleInterface, asyncOpts_?: { signal: AbortSignal } ) /*throws*/ : Promise; /** @@ -29651,24 +31125,6 @@ export interface RoomInterface { asyncOpts_?: { signal: AbortSignal } ) /*throws*/ : Promise; topic(): string | undefined; - /** - * Attempt to manually resend messages that failed to send due to issues - * that should now have been fixed. - * - * This is useful for example, when there's a - * `SessionRecipientCollectionError::VerifiedUserChangedIdentity` error; - * the user may have re-verified on a different device and would now - * like to send the failed message that's waiting on this device. - * - * # Arguments - * - * * `transaction_id` - The send queue transaction identifier of the local - * echo that should be unwedged. - */ - tryResend( - transactionId: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; typingNotice( isTyping: boolean, asyncOpts_?: { signal: AbortSignal } @@ -29717,7 +31173,7 @@ export interface RoomInterface { */ withdrawVerificationAndResend( userIds: Array, - transactionId: string, + sendHandle: SendHandleInterface, asyncOpts_?: { signal: AbortSignal } ) /*throws*/ : Promise; } @@ -30438,7 +31894,7 @@ export class Room extends UniffiAbstractObject implements RoomInterface { */ public async ignoreDeviceTrustAndResend( devices: Map>, - transactionId: string, + sendHandle: SendHandleInterface, asyncOpts_?: { signal: AbortSignal } ): Promise /*throws*/ { const __stack = uniffiIsDebug ? new Error().stack : undefined; @@ -30448,7 +31904,7 @@ export class Room extends UniffiAbstractObject implements RoomInterface { return nativeModule().uniffi_matrix_sdk_ffi_fn_method_room_ignore_device_trust_and_resend( uniffiTypeRoomObjectFactory.clonePointer(this), FfiConverterMapStringArrayString.lower(devices), - FfiConverterString.lower(transactionId) + FfiConverterTypeSendHandle.lower(sendHandle) ); }, /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_void, @@ -31943,54 +33399,6 @@ export class Room extends UniffiAbstractObject implements RoomInterface { ); } - /** - * Attempt to manually resend messages that failed to send due to issues - * that should now have been fixed. - * - * This is useful for example, when there's a - * `SessionRecipientCollectionError::VerifiedUserChangedIdentity` error; - * the user may have re-verified on a different device and would now - * like to send the failed message that's waiting on this device. - * - * # Arguments - * - * * `transaction_id` - The send queue transaction identifier of the local - * echo that should be unwedged. - */ - public async tryResend( - transactionId: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustFutureFunc:*/ () => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_method_room_try_resend( - uniffiTypeRoomObjectFactory.clonePointer(this), - FfiConverterString.lower(transactionId) - ); - }, - /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_void, - /*cancelFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_cancel_void, - /*completeFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_complete_void, - /*freeFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_free_void, - /*liftFunc:*/ (_v) => {}, - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( - FfiConverterTypeClientError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - public async typingNotice( isTyping: boolean, asyncOpts_?: { signal: AbortSignal } @@ -32162,7 +33570,7 @@ export class Room extends UniffiAbstractObject implements RoomInterface { */ public async withdrawVerificationAndResend( userIds: Array, - transactionId: string, + sendHandle: SendHandleInterface, asyncOpts_?: { signal: AbortSignal } ): Promise /*throws*/ { const __stack = uniffiIsDebug ? new Error().stack : undefined; @@ -32172,7 +33580,7 @@ export class Room extends UniffiAbstractObject implements RoomInterface { return nativeModule().uniffi_matrix_sdk_ffi_fn_method_room_withdraw_verification_and_resend( uniffiTypeRoomObjectFactory.clonePointer(this), FfiConverterArrayString.lower(userIds), - FfiConverterString.lower(transactionId) + FfiConverterTypeSendHandle.lower(sendHandle) ); }, /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_void, @@ -32266,25 +33674,67 @@ const FfiConverterTypeRoom = new FfiConverterObject( uniffiTypeRoomObjectFactory ); +/** + * A helper for performing room searches in the room directory. + * The way this is intended to be used is: + * + * 1. Register a callback using [`RoomDirectorySearch::results`]. + * 2. Start the room search with [`RoomDirectorySearch::search`]. + * 3. To get more results, use [`RoomDirectorySearch::next_page`]. + */ export interface RoomDirectorySearchInterface { + /** + * Get whether the search is at the last page. + */ isAtLastPage(asyncOpts_?: { signal: AbortSignal; }) /*throws*/ : Promise; + /** + * Get the number of pages that have been loaded so far. + */ loadedPages(asyncOpts_?: { signal: AbortSignal; }) /*throws*/ : Promise; + /** + * Asks the server for the next page of the current search. + */ nextPage(asyncOpts_?: { signal: AbortSignal }) /*throws*/ : Promise; + /** + * Registers a callback to receive new search results when starting a + * search or getting new paginated results. + */ results( listener: RoomDirectorySearchEntriesListener, asyncOpts_?: { signal: AbortSignal } ): Promise; + /** + * Starts a filtered search for the server. + * + * If the `filter` is not provided it will search for all the rooms. + * You can specify a `batch_size` to control the number of rooms to fetch + * per request. + * + * If the `via_server` is not provided it will search in the current + * homeserver by default. + * + * This method will clear the current search results and start a new one. + */ search( filter: string | undefined, batchSize: /*u32*/ number, + viaServerName: string | undefined, asyncOpts_?: { signal: AbortSignal } ) /*throws*/ : Promise; } +/** + * A helper for performing room searches in the room directory. + * The way this is intended to be used is: + * + * 1. Register a callback using [`RoomDirectorySearch::results`]. + * 2. Start the room search with [`RoomDirectorySearch::search`]. + * 3. To get more results, use [`RoomDirectorySearch::next_page`]. + */ export class RoomDirectorySearch extends UniffiAbstractObject implements RoomDirectorySearchInterface @@ -32300,6 +33750,9 @@ export class RoomDirectorySearch uniffiTypeRoomDirectorySearchObjectFactory.bless(pointer); } + /** + * Get whether the search is at the last page. + */ public async isAtLastPage(asyncOpts_?: { signal: AbortSignal; }): Promise /*throws*/ { @@ -32331,6 +33784,9 @@ export class RoomDirectorySearch } } + /** + * Get the number of pages that have been loaded so far. + */ public async loadedPages(asyncOpts_?: { signal: AbortSignal; }): Promise /*throws*/ { @@ -32363,6 +33819,9 @@ export class RoomDirectorySearch } } + /** + * Asks the server for the next page of the current search. + */ public async nextPage(asyncOpts_?: { signal: AbortSignal; }): Promise /*throws*/ { @@ -32395,6 +33854,10 @@ export class RoomDirectorySearch } } + /** + * Registers a callback to receive new search results when starting a + * search or getting new paginated results. + */ public async results( listener: RoomDirectorySearchEntriesListener, asyncOpts_?: { signal: AbortSignal } @@ -32430,9 +33893,22 @@ export class RoomDirectorySearch } } + /** + * Starts a filtered search for the server. + * + * If the `filter` is not provided it will search for all the rooms. + * You can specify a `batch_size` to control the number of rooms to fetch + * per request. + * + * If the `via_server` is not provided it will search in the current + * homeserver by default. + * + * This method will clear the current search results and start a new one. + */ public async search( filter: string | undefined, batchSize: /*u32*/ number, + viaServerName: string | undefined, asyncOpts_?: { signal: AbortSignal } ): Promise /*throws*/ { const __stack = uniffiIsDebug ? new Error().stack : undefined; @@ -32442,7 +33918,8 @@ export class RoomDirectorySearch return nativeModule().uniffi_matrix_sdk_ffi_fn_method_roomdirectorysearch_search( uniffiTypeRoomDirectorySearchObjectFactory.clonePointer(this), FfiConverterOptionalString.lower(filter), - FfiConverterUInt32.lower(batchSize) + FfiConverterUInt32.lower(batchSize), + FfiConverterOptionalString.lower(viaServerName) ); }, /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_void, @@ -33054,12 +34531,12 @@ export interface RoomListItemInterface { ) /*throws*/ : Promise; /** * Builds a `Room` FFI from an invited room without initializing its - * internal timeline + * internal timeline. * - * An error will be returned if the room is a state different than invited + * An error will be returned if the room is a state different than invited. * * ⚠️ Holding on to this room instance after it has been joined is not - * safe. Use `full_room` instead + * safe. Use `full_room` instead. */ invitedRoom() /*throws*/ : RoomInterface; isDirect(): boolean; @@ -33081,6 +34558,17 @@ export interface RoomListItemInterface { * The room's current membership state. */ membership(): Membership; + /** + * Builds a `RoomPreview` from a room list item. This is intended for + * invited or knocked rooms. + * + * An error will be returned if the room is in a state other than invited + * or knocked. + */ + previewRoom( + via: Array, + asyncOpts_?: { signal: AbortSignal } + ) /*throws*/ : Promise; roomInfo(asyncOpts_?: { signal: AbortSignal }) /*throws*/ : Promise; } @@ -33233,12 +34721,12 @@ export class RoomListItem /** * Builds a `Room` FFI from an invited room without initializing its - * internal timeline + * internal timeline. * - * An error will be returned if the room is a state different than invited + * An error will be returned if the room is a state different than invited. * * ⚠️ Holding on to this room instance after it has been joined is not - * safe. Use `full_room` instead + * safe. Use `full_room` instead. */ public invitedRoom(): RoomInterface /*throws*/ { return FfiConverterTypeRoom.lift( @@ -33372,6 +34860,51 @@ export class RoomListItem ); } + /** + * Builds a `RoomPreview` from a room list item. This is intended for + * invited or knocked rooms. + * + * An error will be returned if the room is in a state other than invited + * or knocked. + */ + public async previewRoom( + via: Array, + asyncOpts_?: { signal: AbortSignal } + ): Promise /*throws*/ { + const __stack = uniffiIsDebug ? new Error().stack : undefined; + try { + return await uniffiRustCallAsync( + /*rustFutureFunc:*/ () => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_roomlistitem_preview_room( + uniffiTypeRoomListItemObjectFactory.clonePointer(this), + FfiConverterArrayString.lower(via) + ); + }, + /*pollFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_poll_pointer, + /*cancelFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_cancel_pointer, + /*completeFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_complete_pointer, + /*freeFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_free_pointer, + /*liftFunc:*/ FfiConverterTypeRoomPreview.lift.bind( + FfiConverterTypeRoomPreview + ), + /*liftString:*/ FfiConverterString.lift, + /*asyncOpts:*/ asyncOpts_, + /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( + FfiConverterTypeClientError + ) + ); + } catch (__error: any) { + if (uniffiIsDebug && __error instanceof Error) { + __error.stack = __stack; + } + throw __error; + } + } + public async roomInfo(asyncOpts_?: { signal: AbortSignal; }): Promise /*throws*/ { @@ -33494,10 +35027,7 @@ export interface RoomListServiceInterface { }) /*throws*/ : Promise; room(roomId: string) /*throws*/ : RoomListItemInterface; state(listener: RoomListServiceStateListener): TaskHandleInterface; - subscribeToRooms( - roomIds: Array, - settings: RoomSubscription | undefined - ) /*throws*/ : void; + subscribeToRooms(roomIds: Array) /*throws*/ : void; syncIndicator( delayBeforeShowingInMs: /*u32*/ number, delayBeforeHidingInMs: /*u32*/ number, @@ -33589,10 +35119,7 @@ export class RoomListService ); } - public subscribeToRooms( - roomIds: Array, - settings: RoomSubscription | undefined - ): void /*throws*/ { + public subscribeToRooms(roomIds: Array): void /*throws*/ { rustCallWithError( /*liftError:*/ FfiConverterTypeRoomListError.lift.bind( FfiConverterTypeRoomListError @@ -33601,7 +35128,6 @@ export class RoomListService nativeModule().uniffi_matrix_sdk_ffi_fn_method_roomlistservice_subscribe_to_rooms( uniffiTypeRoomListServiceObjectFactory.clonePointer(this), FfiConverterArrayString.lower(roomIds), - FfiConverterOptionalTypeRoomSubscription.lower(settings), callStatus ); }, @@ -33981,8 +35507,235 @@ const FfiConverterTypeRoomMessageEventContentWithoutRelation = uniffiTypeRoomMessageEventContentWithoutRelationObjectFactory ); +/** + * A room preview for a room. It's intended to be used to represent rooms that + * aren't joined yet. + */ +export interface RoomPreviewInterface { + /** + * Returns the room info the preview contains. + */ + info() /*throws*/ : RoomPreviewInfo; + /** + * Get the user who created the invite, if any. + */ + inviter(asyncOpts_?: { + signal: AbortSignal; + }): Promise; + /** + * Leave the room if the room preview state is either joined, invited or + * knocked. + * + * Will return an error otherwise. + */ + leave(asyncOpts_?: { signal: AbortSignal }) /*throws*/ : Promise; +} + +/** + * A room preview for a room. It's intended to be used to represent rooms that + * aren't joined yet. + */ +export class RoomPreview + extends UniffiAbstractObject + implements RoomPreviewInterface +{ + readonly [uniffiTypeNameSymbol] = 'RoomPreview'; + readonly [destructorGuardSymbol]: UniffiRustArcPtr; + readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer; + // No primary constructor declared for this class. + private constructor(pointer: UnsafeMutableRawPointer) { + super(); + this[pointerLiteralSymbol] = pointer; + this[destructorGuardSymbol] = + uniffiTypeRoomPreviewObjectFactory.bless(pointer); + } + + /** + * Returns the room info the preview contains. + */ + public info(): RoomPreviewInfo /*throws*/ { + return FfiConverterTypeRoomPreviewInfo.lift( + rustCallWithError( + /*liftError:*/ FfiConverterTypeClientError.lift.bind( + FfiConverterTypeClientError + ), + /*caller:*/ (callStatus) => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_roompreview_info( + uniffiTypeRoomPreviewObjectFactory.clonePointer(this), + callStatus + ); + }, + /*liftString:*/ FfiConverterString.lift + ) + ); + } + + /** + * Get the user who created the invite, if any. + */ + public async inviter(asyncOpts_?: { + signal: AbortSignal; + }): Promise { + const __stack = uniffiIsDebug ? new Error().stack : undefined; + try { + return await uniffiRustCallAsync( + /*rustFutureFunc:*/ () => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_roompreview_inviter( + uniffiTypeRoomPreviewObjectFactory.clonePointer(this) + ); + }, + /*pollFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer, + /*cancelFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer, + /*completeFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer, + /*freeFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_free_rust_buffer, + /*liftFunc:*/ FfiConverterOptionalTypeRoomMember.lift.bind( + FfiConverterOptionalTypeRoomMember + ), + /*liftString:*/ FfiConverterString.lift, + /*asyncOpts:*/ asyncOpts_ + ); + } catch (__error: any) { + if (uniffiIsDebug && __error instanceof Error) { + __error.stack = __stack; + } + throw __error; + } + } + + /** + * Leave the room if the room preview state is either joined, invited or + * knocked. + * + * Will return an error otherwise. + */ + public async leave(asyncOpts_?: { + signal: AbortSignal; + }): Promise /*throws*/ { + const __stack = uniffiIsDebug ? new Error().stack : undefined; + try { + return await uniffiRustCallAsync( + /*rustFutureFunc:*/ () => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_roompreview_leave( + uniffiTypeRoomPreviewObjectFactory.clonePointer(this) + ); + }, + /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_void, + /*cancelFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_cancel_void, + /*completeFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_complete_void, + /*freeFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_free_void, + /*liftFunc:*/ (_v) => {}, + /*liftString:*/ FfiConverterString.lift, + /*asyncOpts:*/ asyncOpts_, + /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( + FfiConverterTypeClientError + ) + ); + } catch (__error: any) { + if (uniffiIsDebug && __error instanceof Error) { + __error.stack = __stack; + } + throw __error; + } + } + + /** + * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} + */ + uniffiDestroy(): void { + if ((this as any)[destructorGuardSymbol]) { + const pointer = uniffiTypeRoomPreviewObjectFactory.pointer(this); + uniffiTypeRoomPreviewObjectFactory.freePointer(pointer); + this[destructorGuardSymbol].markDestroyed(); + delete (this as any)[destructorGuardSymbol]; + } + } + + static instanceOf(obj: any): obj is RoomPreview { + return uniffiTypeRoomPreviewObjectFactory.isConcreteType(obj); + } +} + +const uniffiTypeRoomPreviewObjectFactory: UniffiObjectFactory = + { + create(pointer: UnsafeMutableRawPointer): RoomPreviewInterface { + const instance = Object.create(RoomPreview.prototype); + instance[pointerLiteralSymbol] = pointer; + instance[destructorGuardSymbol] = this.bless(pointer); + instance[uniffiTypeNameSymbol] = 'RoomPreview'; + return instance; + }, + + bless(p: UnsafeMutableRawPointer): UniffiRustArcPtr { + return rustCall( + /*caller:*/ (status) => + nativeModule().uniffi_internal_fn_method_roompreview_ffi__bless_pointer( + p, + status + ), + /*liftString:*/ FfiConverterString.lift + ); + }, + + pointer(obj: RoomPreviewInterface): UnsafeMutableRawPointer { + if ((obj as any)[destructorGuardSymbol] === undefined) { + throw new UniffiInternalError.UnexpectedNullPointer(); + } + return (obj as any)[pointerLiteralSymbol]; + }, + + clonePointer(obj: RoomPreviewInterface): UnsafeMutableRawPointer { + const pointer = this.pointer(obj); + return rustCall( + /*caller:*/ (callStatus) => + nativeModule().uniffi_matrix_sdk_ffi_fn_clone_roompreview( + pointer, + callStatus + ), + /*liftString:*/ FfiConverterString.lift + ); + }, + + freePointer(pointer: UnsafeMutableRawPointer): void { + rustCall( + /*caller:*/ (callStatus) => + nativeModule().uniffi_matrix_sdk_ffi_fn_free_roompreview( + pointer, + callStatus + ), + /*liftString:*/ FfiConverterString.lift + ); + }, + + isConcreteType(obj: any): obj is RoomPreviewInterface { + return ( + obj[destructorGuardSymbol] && + obj[uniffiTypeNameSymbol] === 'RoomPreview' + ); + }, + }; +// FfiConverter for RoomPreviewInterface +const FfiConverterTypeRoomPreview = new FfiConverterObject( + uniffiTypeRoomPreviewObjectFactory +); + export interface SendAttachmentJoinHandleInterface { + /** + * Cancel the current sending task. + * + * A subsequent call to [`Self::join`] will return immediately. + */ cancel(): void; + /** + * Wait until the attachment has been sent. + * + * If the sending had been cancelled, will return immediately. + */ join(asyncOpts_?: { signal: AbortSignal }) /*throws*/ : Promise; } @@ -34001,6 +35754,11 @@ export class SendAttachmentJoinHandle uniffiTypeSendAttachmentJoinHandleObjectFactory.bless(pointer); } + /** + * Cancel the current sending task. + * + * A subsequent call to [`Self::join`] will return immediately. + */ public cancel(): void { rustCall( /*caller:*/ (callStatus) => { @@ -34013,6 +35771,11 @@ export class SendAttachmentJoinHandle ); } + /** + * Wait until the attachment has been sent. + * + * If the sending had been cancelled, will return immediately. + */ public async join(asyncOpts_?: { signal: AbortSignal; }): Promise /*throws*/ { @@ -34130,6 +35893,9 @@ const FfiConverterTypeSendAttachmentJoinHandle = new FfiConverterObject( uniffiTypeSendAttachmentJoinHandleObjectFactory ); +/** + * A handle to perform actions onto a local echo. + */ export interface SendHandleInterface { /** * Try to abort the sending of the current event. @@ -34142,8 +35908,26 @@ export interface SendHandleInterface { * return `false`. */ abort(asyncOpts_?: { signal: AbortSignal }) /*throws*/ : Promise; + /** + * Attempt to manually resend messages that failed to send due to issues + * that should now have been fixed. + * + * This is useful for example, when there's a + * `SessionRecipientCollectionError::VerifiedUserChangedIdentity` error; + * the user may have re-verified on a different device and would now + * like to send the failed message that's waiting on this device. + * + * # Arguments + * + * * `transaction_id` - The send queue transaction identifier of the local + * echo that should be unwedged. + */ + tryResend(asyncOpts_?: { signal: AbortSignal }) /*throws*/ : Promise; } +/** + * A handle to perform actions onto a local echo. + */ export class SendHandle extends UniffiAbstractObject implements SendHandleInterface @@ -34200,6 +35984,52 @@ export class SendHandle } } + /** + * Attempt to manually resend messages that failed to send due to issues + * that should now have been fixed. + * + * This is useful for example, when there's a + * `SessionRecipientCollectionError::VerifiedUserChangedIdentity` error; + * the user may have re-verified on a different device and would now + * like to send the failed message that's waiting on this device. + * + * # Arguments + * + * * `transaction_id` - The send queue transaction identifier of the local + * echo that should be unwedged. + */ + public async tryResend(asyncOpts_?: { + signal: AbortSignal; + }): Promise /*throws*/ { + const __stack = uniffiIsDebug ? new Error().stack : undefined; + try { + return await uniffiRustCallAsync( + /*rustFutureFunc:*/ () => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_sendhandle_try_resend( + uniffiTypeSendHandleObjectFactory.clonePointer(this) + ); + }, + /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_void, + /*cancelFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_cancel_void, + /*completeFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_complete_void, + /*freeFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_free_void, + /*liftFunc:*/ (_v) => {}, + /*liftString:*/ FfiConverterString.lift, + /*asyncOpts:*/ asyncOpts_, + /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( + FfiConverterTypeClientError + ) + ); + } catch (__error: any) { + if (uniffiIsDebug && __error instanceof Error) { + __error.stack = __stack; + } + throw __error; + } + } + /** * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy} */ @@ -34280,24 +36110,54 @@ const FfiConverterTypeSendHandle = new FfiConverterObject( ); export interface SessionVerificationControllerInterface { + /** + * Accept the previously acknowledged verification request + */ + acceptVerificationRequest(asyncOpts_?: { + signal: AbortSignal; + }) /*throws*/ : Promise; + /** + * Set this particular request as the currently active one and register for + * events pertaining it. + * * `sender_id` - The user requesting verification. + * * `flow_id` - - The ID that uniquely identifies the verification flow. + */ + acknowledgeVerificationRequest( + senderId: string, + flowId: string, + asyncOpts_?: { signal: AbortSignal } + ) /*throws*/ : Promise; + /** + * Confirm that the short auth strings match on both sides. + */ approveVerification(asyncOpts_?: { signal: AbortSignal; }) /*throws*/ : Promise; + /** + * Cancel the current verification request + */ cancelVerification(asyncOpts_?: { signal: AbortSignal; }) /*throws*/ : Promise; + /** + * Reject the short auth string + */ declineVerification(asyncOpts_?: { signal: AbortSignal; }) /*throws*/ : Promise; - isVerified(asyncOpts_?: { - signal: AbortSignal; - }) /*throws*/ : Promise; + /** + * Request verification for the current device + */ requestVerification(asyncOpts_?: { signal: AbortSignal; }) /*throws*/ : Promise; setDelegate( delegate: SessionVerificationControllerDelegate | undefined ): void; + /** + * Transition the current verification request into a SAS verification + * flow. + */ startSasVerification(asyncOpts_?: { signal: AbortSignal; }) /*throws*/ : Promise; @@ -34318,14 +36178,17 @@ export class SessionVerificationController uniffiTypeSessionVerificationControllerObjectFactory.bless(pointer); } - public async approveVerification(asyncOpts_?: { + /** + * Accept the previously acknowledged verification request + */ + public async acceptVerificationRequest(asyncOpts_?: { signal: AbortSignal; }): Promise /*throws*/ { const __stack = uniffiIsDebug ? new Error().stack : undefined; try { return await uniffiRustCallAsync( /*rustFutureFunc:*/ () => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_approve_verification( + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_accept_verification_request( uniffiTypeSessionVerificationControllerObjectFactory.clonePointer( this ) @@ -34352,14 +36215,61 @@ export class SessionVerificationController } } - public async cancelVerification(asyncOpts_?: { + /** + * Set this particular request as the currently active one and register for + * events pertaining it. + * * `sender_id` - The user requesting verification. + * * `flow_id` - - The ID that uniquely identifies the verification flow. + */ + public async acknowledgeVerificationRequest( + senderId: string, + flowId: string, + asyncOpts_?: { signal: AbortSignal } + ): Promise /*throws*/ { + const __stack = uniffiIsDebug ? new Error().stack : undefined; + try { + return await uniffiRustCallAsync( + /*rustFutureFunc:*/ () => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_acknowledge_verification_request( + uniffiTypeSessionVerificationControllerObjectFactory.clonePointer( + this + ), + FfiConverterString.lower(senderId), + FfiConverterString.lower(flowId) + ); + }, + /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_void, + /*cancelFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_cancel_void, + /*completeFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_complete_void, + /*freeFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_free_void, + /*liftFunc:*/ (_v) => {}, + /*liftString:*/ FfiConverterString.lift, + /*asyncOpts:*/ asyncOpts_, + /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( + FfiConverterTypeClientError + ) + ); + } catch (__error: any) { + if (uniffiIsDebug && __error instanceof Error) { + __error.stack = __stack; + } + throw __error; + } + } + + /** + * Confirm that the short auth strings match on both sides. + */ + public async approveVerification(asyncOpts_?: { signal: AbortSignal; }): Promise /*throws*/ { const __stack = uniffiIsDebug ? new Error().stack : undefined; try { return await uniffiRustCallAsync( /*rustFutureFunc:*/ () => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_cancel_verification( + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_approve_verification( uniffiTypeSessionVerificationControllerObjectFactory.clonePointer( this ) @@ -34386,14 +36296,17 @@ export class SessionVerificationController } } - public async declineVerification(asyncOpts_?: { + /** + * Cancel the current verification request + */ + public async cancelVerification(asyncOpts_?: { signal: AbortSignal; }): Promise /*throws*/ { const __stack = uniffiIsDebug ? new Error().stack : undefined; try { return await uniffiRustCallAsync( /*rustFutureFunc:*/ () => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_decline_verification( + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_cancel_verification( uniffiTypeSessionVerificationControllerObjectFactory.clonePointer( this ) @@ -34420,25 +36333,29 @@ export class SessionVerificationController } } - public async isVerified(asyncOpts_?: { + /** + * Reject the short auth string + */ + public async declineVerification(asyncOpts_?: { signal: AbortSignal; - }): Promise /*throws*/ { + }): Promise /*throws*/ { const __stack = uniffiIsDebug ? new Error().stack : undefined; try { return await uniffiRustCallAsync( /*rustFutureFunc:*/ () => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_is_verified( + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_decline_verification( uniffiTypeSessionVerificationControllerObjectFactory.clonePointer( this ) ); }, - /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_i8, - /*cancelFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_cancel_i8, + /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_void, + /*cancelFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_cancel_void, /*completeFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_complete_i8, - /*freeFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_free_i8, - /*liftFunc:*/ FfiConverterBool.lift.bind(FfiConverterBool), + .ffi_matrix_sdk_ffi_rust_future_complete_void, + /*freeFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_free_void, + /*liftFunc:*/ (_v) => {}, /*liftString:*/ FfiConverterString.lift, /*asyncOpts:*/ asyncOpts_, /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( @@ -34453,6 +36370,9 @@ export class SessionVerificationController } } + /** + * Request verification for the current device + */ public async requestVerification(asyncOpts_?: { signal: AbortSignal; }): Promise /*throws*/ { @@ -34506,6 +36426,10 @@ export class SessionVerificationController ); } + /** + * Transition the current verification request into a SAS verification + * flow. + */ public async startSasVerification(asyncOpts_?: { signal: AbortSignal; }): Promise /*throws*/ { @@ -35310,9 +37234,7 @@ export interface SyncServiceBuilderInterface { finish(asyncOpts_?: { signal: AbortSignal; }) /*throws*/ : Promise; - withCrossProcessLock( - appIdentifier: string | undefined - ): SyncServiceBuilderInterface; + withCrossProcessLock(): SyncServiceBuilderInterface; withUtdHook( delegate: UnableToDecryptDelegate, asyncOpts_?: { signal: AbortSignal } @@ -35370,15 +37292,12 @@ export class SyncServiceBuilder } } - public withCrossProcessLock( - appIdentifier: string | undefined - ): SyncServiceBuilderInterface { + public withCrossProcessLock(): SyncServiceBuilderInterface { return FfiConverterTypeSyncServiceBuilder.lift( rustCall( /*caller:*/ (callStatus) => { return nativeModule().uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_cross_process_lock( uniffiTypeSyncServiceBuilderObjectFactory.clonePointer(this), - FfiConverterOptionalString.lower(appIdentifier), callStatus ); }, @@ -35674,7 +37593,7 @@ export interface TimelineInterface { eventOrTransactionId: EventOrTransactionId, newContent: EditedContent, asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; + ) /*throws*/ : Promise; endPoll(pollStartEventId: string, text: string) /*throws*/ : void; fetchDetailsForEvent( eventId: string, @@ -35704,19 +37623,6 @@ export interface TimelineInterface { eventId: string, asyncOpts_?: { signal: AbortSignal } ) /*throws*/ : Promise; - /** - * Get the current timeline item for the given transaction ID, if any. - * - * This will always return a local echo, if found. - * - * It's preferable to store the timeline items in the model for your UI, if - * possible, instead of just storing IDs and coming back to the timeline - * object to look up items. - */ - getEventTimelineItemByTransactionId( - transactionId: string, - asyncOpts_?: { signal: AbortSignal } - ) /*throws*/ : Promise; /** * Load the reply details for the given event id. * @@ -35792,12 +37698,16 @@ export interface TimelineInterface { audioInfo: AudioInfo, caption: string | undefined, formattedCaption: FormattedBody | undefined, - progressWatcher: ProgressWatcher | undefined + progressWatcher: ProgressWatcher | undefined, + useSendQueue: boolean ): SendAttachmentJoinHandleInterface; sendFile( url: string, fileInfo: FileInfo, - progressWatcher: ProgressWatcher | undefined + caption: string | undefined, + formattedCaption: FormattedBody | undefined, + progressWatcher: ProgressWatcher | undefined, + useSendQueue: boolean ): SendAttachmentJoinHandleInterface; sendImage( url: string, @@ -35805,7 +37715,8 @@ export interface TimelineInterface { imageInfo: ImageInfo, caption: string | undefined, formattedCaption: FormattedBody | undefined, - progressWatcher: ProgressWatcher | undefined + progressWatcher: ProgressWatcher | undefined, + useSendQueue: boolean ): SendAttachmentJoinHandleInterface; sendLocation( body: string, @@ -35836,7 +37747,8 @@ export interface TimelineInterface { videoInfo: VideoInfo, caption: string | undefined, formattedCaption: FormattedBody | undefined, - progressWatcher: ProgressWatcher | undefined + progressWatcher: ProgressWatcher | undefined, + useSendQueue: boolean ): SendAttachmentJoinHandleInterface; sendVoiceMessage( url: string, @@ -35844,7 +37756,8 @@ export interface TimelineInterface { waveform: Array, caption: string | undefined, formattedCaption: FormattedBody | undefined, - progressWatcher: ProgressWatcher | undefined + progressWatcher: ProgressWatcher | undefined, + useSendQueue: boolean ): SendAttachmentJoinHandleInterface; subscribeToBackPaginationStatus( listener: PaginationStatusListener, @@ -35853,20 +37766,18 @@ export interface TimelineInterface { /** * Toggle a reaction on an event. * - * The `unique_id` parameter is a string returned by - * the `TimelineItem::unique_id()` method. As such, this method works both - * on local echoes and remote items. - * * Adds or redacts a reaction based on the state of the reaction at the * time it is called. * + * This method works both on local echoes and remote items. + * * When redacting a previous reaction, the redaction reason is not set. * * Ensures that only one reaction is sent at a time to avoid race * conditions and spamming the homeserver with requests. */ toggleReaction( - uniqueId: string, + itemId: EventOrTransactionId, key: string, asyncOpts_?: { signal: AbortSignal } ) /*throws*/ : Promise; @@ -36004,7 +37915,7 @@ export class Timeline eventOrTransactionId: EventOrTransactionId, newContent: EditedContent, asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { + ): Promise /*throws*/ { const __stack = uniffiIsDebug ? new Error().stack : undefined; try { return await uniffiRustCallAsync( @@ -36015,12 +37926,13 @@ export class Timeline FfiConverterTypeEditedContent.lower(newContent) ); }, - /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_i8, - /*cancelFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_cancel_i8, + /*pollFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_poll_void, + /*cancelFunc:*/ nativeModule() + .ffi_matrix_sdk_ffi_rust_future_cancel_void, /*completeFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_complete_i8, - /*freeFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_free_i8, - /*liftFunc:*/ FfiConverterBool.lift.bind(FfiConverterBool), + .ffi_matrix_sdk_ffi_rust_future_complete_void, + /*freeFunc:*/ nativeModule().ffi_matrix_sdk_ffi_rust_future_free_void, + /*liftFunc:*/ (_v) => {}, /*liftString:*/ FfiConverterString.lift, /*asyncOpts:*/ asyncOpts_, /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( @@ -36201,53 +38113,6 @@ export class Timeline } } - /** - * Get the current timeline item for the given transaction ID, if any. - * - * This will always return a local echo, if found. - * - * It's preferable to store the timeline items in the model for your UI, if - * possible, instead of just storing IDs and coming back to the timeline - * object to look up items. - */ - public async getEventTimelineItemByTransactionId( - transactionId: string, - asyncOpts_?: { signal: AbortSignal } - ): Promise /*throws*/ { - const __stack = uniffiIsDebug ? new Error().stack : undefined; - try { - return await uniffiRustCallAsync( - /*rustFutureFunc:*/ () => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_method_timeline_get_event_timeline_item_by_transaction_id( - uniffiTypeTimelineObjectFactory.clonePointer(this), - FfiConverterString.lower(transactionId) - ); - }, - /*pollFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer, - /*cancelFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer, - /*completeFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer, - /*freeFunc:*/ nativeModule() - .ffi_matrix_sdk_ffi_rust_future_free_rust_buffer, - /*liftFunc:*/ FfiConverterTypeEventTimelineItem.lift.bind( - FfiConverterTypeEventTimelineItem - ), - /*liftString:*/ FfiConverterString.lift, - /*asyncOpts:*/ asyncOpts_, - /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( - FfiConverterTypeClientError - ) - ); - } catch (__error: any) { - if (uniffiIsDebug && __error instanceof Error) { - __error.stack = __stack; - } - throw __error; - } - } - /** * Load the reply details for the given event id. * @@ -36522,7 +38387,8 @@ export class Timeline audioInfo: AudioInfo, caption: string | undefined, formattedCaption: FormattedBody | undefined, - progressWatcher: ProgressWatcher | undefined + progressWatcher: ProgressWatcher | undefined, + useSendQueue: boolean ): SendAttachmentJoinHandleInterface { return FfiConverterTypeSendAttachmentJoinHandle.lift( rustCall( @@ -36534,6 +38400,7 @@ export class Timeline FfiConverterOptionalString.lower(caption), FfiConverterOptionalTypeFormattedBody.lower(formattedCaption), FfiConverterOptionalTypeProgressWatcher.lower(progressWatcher), + FfiConverterBool.lower(useSendQueue), callStatus ); }, @@ -36545,7 +38412,10 @@ export class Timeline public sendFile( url: string, fileInfo: FileInfo, - progressWatcher: ProgressWatcher | undefined + caption: string | undefined, + formattedCaption: FormattedBody | undefined, + progressWatcher: ProgressWatcher | undefined, + useSendQueue: boolean ): SendAttachmentJoinHandleInterface { return FfiConverterTypeSendAttachmentJoinHandle.lift( rustCall( @@ -36554,7 +38424,10 @@ export class Timeline uniffiTypeTimelineObjectFactory.clonePointer(this), FfiConverterString.lower(url), FfiConverterTypeFileInfo.lower(fileInfo), + FfiConverterOptionalString.lower(caption), + FfiConverterOptionalTypeFormattedBody.lower(formattedCaption), FfiConverterOptionalTypeProgressWatcher.lower(progressWatcher), + FfiConverterBool.lower(useSendQueue), callStatus ); }, @@ -36569,7 +38442,8 @@ export class Timeline imageInfo: ImageInfo, caption: string | undefined, formattedCaption: FormattedBody | undefined, - progressWatcher: ProgressWatcher | undefined + progressWatcher: ProgressWatcher | undefined, + useSendQueue: boolean ): SendAttachmentJoinHandleInterface { return FfiConverterTypeSendAttachmentJoinHandle.lift( rustCall( @@ -36582,6 +38456,7 @@ export class Timeline FfiConverterOptionalString.lower(caption), FfiConverterOptionalTypeFormattedBody.lower(formattedCaption), FfiConverterOptionalTypeProgressWatcher.lower(progressWatcher), + FfiConverterBool.lower(useSendQueue), callStatus ); }, @@ -36743,7 +38618,8 @@ export class Timeline videoInfo: VideoInfo, caption: string | undefined, formattedCaption: FormattedBody | undefined, - progressWatcher: ProgressWatcher | undefined + progressWatcher: ProgressWatcher | undefined, + useSendQueue: boolean ): SendAttachmentJoinHandleInterface { return FfiConverterTypeSendAttachmentJoinHandle.lift( rustCall( @@ -36756,6 +38632,7 @@ export class Timeline FfiConverterOptionalString.lower(caption), FfiConverterOptionalTypeFormattedBody.lower(formattedCaption), FfiConverterOptionalTypeProgressWatcher.lower(progressWatcher), + FfiConverterBool.lower(useSendQueue), callStatus ); }, @@ -36770,7 +38647,8 @@ export class Timeline waveform: Array, caption: string | undefined, formattedCaption: FormattedBody | undefined, - progressWatcher: ProgressWatcher | undefined + progressWatcher: ProgressWatcher | undefined, + useSendQueue: boolean ): SendAttachmentJoinHandleInterface { return FfiConverterTypeSendAttachmentJoinHandle.lift( rustCall( @@ -36783,6 +38661,7 @@ export class Timeline FfiConverterOptionalString.lower(caption), FfiConverterOptionalTypeFormattedBody.lower(formattedCaption), FfiConverterOptionalTypeProgressWatcher.lower(progressWatcher), + FfiConverterBool.lower(useSendQueue), callStatus ); }, @@ -36832,20 +38711,18 @@ export class Timeline /** * Toggle a reaction on an event. * - * The `unique_id` parameter is a string returned by - * the `TimelineItem::unique_id()` method. As such, this method works both - * on local echoes and remote items. - * * Adds or redacts a reaction based on the state of the reaction at the * time it is called. * + * This method works both on local echoes and remote items. + * * When redacting a previous reaction, the redaction reason is not set. * * Ensures that only one reaction is sent at a time to avoid race * conditions and spamming the homeserver with requests. */ public async toggleReaction( - uniqueId: string, + itemId: EventOrTransactionId, key: string, asyncOpts_?: { signal: AbortSignal } ): Promise /*throws*/ { @@ -36855,7 +38732,7 @@ export class Timeline /*rustFutureFunc:*/ () => { return nativeModule().uniffi_matrix_sdk_ffi_fn_method_timeline_toggle_reaction( uniffiTypeTimelineObjectFactory.clonePointer(this), - FfiConverterString.lower(uniqueId), + FfiConverterTypeEventOrTransactionId.lower(itemId), FfiConverterString.lower(key) ); }, @@ -37529,7 +39406,10 @@ export interface TimelineItemInterface { asEvent(): EventTimelineItem | undefined; asVirtual(): VirtualTimelineItem | undefined; fmtDebug(): string; - uniqueId(): string; + /** + * An opaque unique identifier for this timeline item. + */ + uniqueId(): TimelineUniqueId; } export class TimelineItem @@ -37589,8 +39469,11 @@ export class TimelineItem ); } - public uniqueId(): string { - return FfiConverterString.lift( + /** + * An opaque unique identifier for this timeline item. + */ + public uniqueId(): TimelineUniqueId { + return FfiConverterTypeTimelineUniqueId.lift( rustCall( /*caller:*/ (callStatus) => { return nativeModule().uniffi_matrix_sdk_ffi_fn_method_timelineitem_unique_id( @@ -37835,6 +39718,13 @@ const FfiConverterTypeUnreadNotificationsCount = new FfiConverterObject( * The E2EE identity of a user. */ export interface UserIdentityInterface { + /** + * Is the user identity considered to be verified. + * + * If the identity belongs to another user, our own user identity needs to + * be verified as well for the identity to be considered to be verified. + */ + isVerified(): boolean; /** * Get the public part of the Master key of this user identity. * @@ -37881,6 +39771,26 @@ export class UserIdentity uniffiTypeUserIdentityObjectFactory.bless(pointer); } + /** + * Is the user identity considered to be verified. + * + * If the identity belongs to another user, our own user identity needs to + * be verified as well for the identity to be considered to be verified. + */ + public isVerified(): boolean { + return FfiConverterBool.lift( + rustCall( + /*caller:*/ (callStatus) => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_method_useridentity_is_verified( + uniffiTypeUserIdentityObjectFactory.clonePointer(this), + callStatus + ); + }, + /*liftString:*/ FfiConverterString.lift + ) + ); + } + /** * Get the public part of the Master key of this user identity. * @@ -38479,16 +40389,16 @@ const FfiConverterOptionalTypePowerLevels = new FfiConverterOptional( FfiConverterTypePowerLevels ); +// FfiConverter for ResolvedRoomAlias | undefined +const FfiConverterOptionalTypeResolvedRoomAlias = new FfiConverterOptional( + FfiConverterTypeResolvedRoomAlias +); + // FfiConverter for RoomMember | undefined const FfiConverterOptionalTypeRoomMember = new FfiConverterOptional( FfiConverterTypeRoomMember ); -// FfiConverter for RoomSubscription | undefined -const FfiConverterOptionalTypeRoomSubscription = new FfiConverterOptional( - FfiConverterTypeRoomSubscription -); - // FfiConverter for SetData | undefined const FfiConverterOptionalTypeSetData = new FfiConverterOptional( FfiConverterTypeSetData @@ -38554,11 +40464,6 @@ const FfiConverterArrayTypeReactionSenderData = new FfiConverterArray( FfiConverterTypeReactionSenderData ); -// FfiConverter for Array -const FfiConverterArrayTypeRequiredState = new FfiConverterArray( - FfiConverterTypeRequiredState -); - // FfiConverter for Array const FfiConverterArrayTypeRoomDescription = new FfiConverterArray( FfiConverterTypeRoomDescription @@ -38615,6 +40520,16 @@ const FfiConverterOptionalTypeEventSendState = new FfiConverterOptional( FfiConverterTypeEventSendState ); +// FfiConverter for JoinRule | undefined +const FfiConverterOptionalTypeJoinRule = new FfiConverterOptional( + FfiConverterTypeJoinRule +); + +// FfiConverter for Membership | undefined +const FfiConverterOptionalTypeMembership = new FfiConverterOptional( + FfiConverterTypeMembership +); + // FfiConverter for MembershipChange | undefined const FfiConverterOptionalTypeMembershipChange = new FfiConverterOptional( FfiConverterTypeMembershipChange @@ -38676,6 +40591,11 @@ const FfiConverterOptionalTypeRoomMessageEventContentWithoutRelation = FfiConverterTypeRoomMessageEventContentWithoutRelation ); +// FfiConverter for SendHandleInterface | undefined +const FfiConverterOptionalTypeSendHandle = new FfiConverterOptional( + FfiConverterTypeSendHandle +); + // FfiConverter for TaskHandleInterface | undefined const FfiConverterOptionalTypeTaskHandle = new FfiConverterOptional( FfiConverterTypeTaskHandle @@ -38695,11 +40615,6 @@ const FfiConverterOptionalTypeUserIdentity = new FfiConverterOptional( FfiConverterTypeUserIdentity ); -// FfiConverter for Array | undefined -const FfiConverterOptionalArrayTypeRequiredState = new FfiConverterOptional( - FfiConverterArrayTypeRequiredState -); - // FfiConverter for Array | undefined const FfiConverterOptionalArrayTypeRoomMember = new FfiConverterOptional( FfiConverterArrayTypeRoomMember @@ -38710,11 +40625,26 @@ const FfiConverterOptionalArrayString = new FfiConverterOptional( FfiConverterArrayString ); +// FfiConverter for Array +const FfiConverterArrayTypeAllowRule = new FfiConverterArray( + FfiConverterTypeAllowRule +); + // FfiConverter for Array const FfiConverterArrayTypeFilterTimelineEventType = new FfiConverterArray( FfiConverterTypeFilterTimelineEventType ); +// FfiConverter for Array +const FfiConverterArrayTypeMembership = new FfiConverterArray( + FfiConverterTypeMembership +); + +// FfiConverter for Array +const FfiConverterArrayTypeOidcPrompt = new FfiConverterArray( + FfiConverterTypeOidcPrompt +); + // FfiConverter for Array const FfiConverterArrayTypeRoomDirectorySearchEntryUpdate = new FfiConverterArray(FfiConverterTypeRoomDirectorySearchEntryUpdate); @@ -38820,6 +40750,14 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_func_get_element_call_required_permissions' ); } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_func_is_room_alias_format_valid() !== + 54845 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_func_is_room_alias_format_valid' + ); + } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_func_log_event() !== 62286 ) { @@ -38923,6 +40861,14 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_func_parse_matrix_entity_from' ); } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_func_room_alias_name_from_room_display_name() !== + 65010 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_func_room_alias_name_from_room_display_name' + ); + } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_func_sdk_git_sha() !== 4038 ) { @@ -38978,11 +40924,11 @@ function uniffiEnsureInitialized() { ); } if ( - nativeModule().uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_login() !== - 22230 + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_auth() !== + 6754 ) { throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_login' + 'uniffi_matrix_sdk_ffi_checksum_method_client_abort_oidc_auth' ); } if ( @@ -39049,6 +40995,14 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_method_client_create_room' ); } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_client_create_room_alias() !== + 54261 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_client_create_room_alias' + ); + } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_client_custom_login_with_jwt() !== 19710 @@ -39123,7 +41077,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_client_get_media_file() !== - 47034 + 52604 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_client_get_media_file' @@ -39163,7 +41117,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_client_get_room_preview_from_room_alias() !== - 10849 + 7674 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_client_get_room_preview_from_room_alias' @@ -39171,7 +41125,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_client_get_room_preview_from_room_id() !== - 6925 + 36348 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_client_get_room_preview_from_room_id' @@ -39225,6 +41179,14 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_method_client_ignored_users' ); } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_client_is_room_alias_available() !== + 23322 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_client_is_room_alias_available' + ); + } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_client_join_room_by_id() !== 64032 @@ -39241,6 +41203,14 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_method_client_join_room_by_id_or_alias' ); } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_client_knock() !== + 48652 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_client_knock' + ); + } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_client_login() !== 33276 @@ -39299,7 +41269,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_client_resolve_room_alias() !== - 14306 + 3551 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_client_resolve_room_alias' @@ -39313,6 +41283,14 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_method_client_restore_session' ); } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_client_room_alias_exists() !== + 20359 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_client_room_alias_exists' + ); + } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_client_room_directory_search() !== 39855 @@ -39458,11 +41436,11 @@ function uniffiEnsureInitialized() { ); } if ( - nativeModule().uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc_login() !== - 43171 + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc() !== + 30079 ) { throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc_login' + 'uniffi_matrix_sdk_ffi_checksum_method_client_url_for_oidc' ); } if ( @@ -39529,6 +41507,14 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_build_with_qr_code' ); } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_cross_process_store_locks_holder_name() !== + 46627 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_cross_process_store_locks_holder_name' + ); + } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_disable_automatic_token_refresh() !== 43839 @@ -39554,11 +41540,11 @@ function uniffiEnsureInitialized() { ); } if ( - nativeModule().uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_enable_cross_process_refresh_lock() !== - 34129 + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_enable_oidc_refresh_lock() !== + 42214 ) { throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_enable_cross_process_refresh_lock' + 'uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_enable_oidc_refresh_lock' ); } if ( @@ -39729,14 +41715,6 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_method_encryption_enable_recovery' ); } - if ( - nativeModule().uniffi_matrix_sdk_ffi_checksum_method_encryption_get_user_identity() !== - 40601 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_matrix_sdk_ffi_checksum_method_encryption_get_user_identity' - ); - } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_encryption_is_last_device() !== 27955 @@ -39793,6 +41771,14 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_method_encryption_reset_recovery_key' ); } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_encryption_user_identity() !== + 20644 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_encryption_user_identity' + ); + } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_encryption_verification_state() !== 29114 @@ -39826,27 +41812,19 @@ function uniffiEnsureInitialized() { ); } if ( - nativeModule().uniffi_matrix_sdk_ffi_checksum_method_eventshieldsprovider_get_shields() !== - 28772 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_matrix_sdk_ffi_checksum_method_eventshieldsprovider_get_shields' - ); - } - if ( - nativeModule().uniffi_matrix_sdk_ffi_checksum_method_eventtimelineitemdebuginfoprovider_get() !== - 57546 + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_sliding_sync_version() !== + 36573 ) { throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_matrix_sdk_ffi_checksum_method_eventtimelineitemdebuginfoprovider_get' + 'uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_sliding_sync_version' ); } if ( - nativeModule().uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_sliding_sync_version() !== - 36573 + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_supported_oidc_prompts() !== + 63396 ) { throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_sliding_sync_version' + 'uniffi_matrix_sdk_ffi_checksum_method_homeserverlogindetails_supported_oidc_prompts' ); } if ( @@ -39913,6 +41891,30 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_method_inreplytodetails_event_id' ); } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_debug_info() !== + 55450 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_debug_info' + ); + } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_get_send_handle() !== + 46057 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_get_send_handle' + ); + } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_get_shields() !== + 12518 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_lazytimelineitemprovider_get_shields' + ); + } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_mediafilehandle_path() !== 16357 @@ -40296,7 +42298,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_room_ignore_device_trust_and_resend() !== - 18289 + 39984 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_room_ignore_device_trust_and_resend' @@ -40672,14 +42674,6 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_method_room_topic' ); } - if ( - nativeModule().uniffi_matrix_sdk_ffi_checksum_method_room_try_resend() !== - 40157 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_matrix_sdk_ffi_checksum_method_room_try_resend' - ); - } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_room_typing_notice() !== 28642 @@ -40714,7 +42708,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_room_withdraw_verification_and_resend() !== - 48968 + 33485 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_room_withdraw_verification_and_resend' @@ -40722,7 +42716,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_roomdirectorysearch_is_at_last_page() !== - 22509 + 34221 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_roomdirectorysearch_is_at_last_page' @@ -40730,7 +42724,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_roomdirectorysearch_loaded_pages() !== - 7109 + 2923 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_roomdirectorysearch_loaded_pages' @@ -40738,7 +42732,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_roomdirectorysearch_next_page() !== - 14603 + 29305 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_roomdirectorysearch_next_page' @@ -40746,7 +42740,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_roomdirectorysearch_results() !== - 40665 + 30207 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_roomdirectorysearch_results' @@ -40754,7 +42748,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_roomdirectorysearch_search() !== - 26558 + 24438 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_roomdirectorysearch_search' @@ -40874,7 +42868,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_invited_room() !== - 34665 + 44344 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_invited_room' @@ -40920,6 +42914,14 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_membership' ); } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_preview_room() !== + 32277 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_preview_room' + ); + } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_room_info() !== 32985 @@ -40954,7 +42956,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_subscribe_to_rooms() !== - 21360 + 59765 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_subscribe_to_rooms' @@ -40984,9 +42986,33 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_method_roommembersiterator_next_chunk' ); } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_roompreview_info() !== + 9145 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_roompreview_info' + ); + } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_roompreview_inviter() !== + 1297 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_roompreview_inviter' + ); + } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_roompreview_leave() !== + 5096 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_roompreview_leave' + ); + } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_cancel() !== - 19759 + 62384 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_cancel' @@ -40994,7 +43020,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_join() !== - 49985 + 1903 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_join' @@ -41008,9 +43034,33 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_method_sendhandle_abort' ); } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_sendhandle_try_resend() !== + 28691 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_sendhandle_try_resend' + ); + } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_accept_verification_request() !== + 53466 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_accept_verification_request' + ); + } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_acknowledge_verification_request() !== + 37982 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_acknowledge_verification_request' + ); + } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_approve_verification() !== - 12154 + 27140 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_approve_verification' @@ -41018,7 +43068,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_cancel_verification() !== - 42503 + 32994 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_cancel_verification' @@ -41026,23 +43076,15 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_decline_verification() !== - 51976 + 64345 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_decline_verification' ); } - if ( - nativeModule().uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_is_verified() !== - 60081 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_is_verified' - ); - } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_request_verification() !== - 22948 + 17229 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_request_verification' @@ -41058,7 +43100,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_start_sas_verification() !== - 17409 + 16328 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_start_sas_verification' @@ -41160,7 +43202,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_cross_process_lock() !== - 31599 + 56326 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_cross_process_lock' @@ -41216,7 +43258,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_timeline_edit() !== - 27268 + 42189 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_timeline_edit' @@ -41262,14 +43304,6 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_method_timeline_get_event_timeline_item_by_event_id' ); } - if ( - nativeModule().uniffi_matrix_sdk_ffi_checksum_method_timeline_get_event_timeline_item_by_transaction_id() !== - 54739 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_matrix_sdk_ffi_checksum_method_timeline_get_event_timeline_item_by_transaction_id' - ); - } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_timeline_load_reply_details() !== 54225 @@ -41328,7 +43362,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_timeline_send_audio() !== - 47157 + 43163 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_timeline_send_audio' @@ -41336,7 +43370,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_timeline_send_file() !== - 9210 + 37925 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_timeline_send_file' @@ -41344,7 +43378,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_timeline_send_image() !== - 30540 + 45681 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_timeline_send_image' @@ -41384,7 +43418,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_timeline_send_video() !== - 34287 + 22670 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_timeline_send_video' @@ -41392,7 +43426,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_timeline_send_voice_message() !== - 49989 + 58509 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_timeline_send_voice_message' @@ -41408,7 +43442,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_timeline_toggle_reaction() !== - 62959 + 29303 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_timeline_toggle_reaction' @@ -41552,7 +43586,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_timelineitem_unique_id() !== - 30409 + 39945 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_timelineitem_unique_id' @@ -41582,6 +43616,14 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_method_unreadnotificationscount_notification_count' ); } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_useridentity_is_verified() !== + 61954 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_useridentity_is_verified' + ); + } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_useridentity_master_key() !== 4041 @@ -41846,9 +43888,17 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_method_sendqueueroomerrorlistener_on_error' ); } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_receive_verification_request() !== + 3417 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_receive_verification_request' + ); + } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_accept_verification_request() !== - 22759 + 3733 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_accept_verification_request' @@ -41856,7 +43906,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_start_sas_verification() !== - 54982 + 56833 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_start_sas_verification' @@ -41864,7 +43914,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_receive_verification_data() !== - 19380 + 30840 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_receive_verification_data' @@ -41872,7 +43922,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_fail() !== - 56823 + 32164 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_fail' @@ -41880,7 +43930,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_cancel() !== - 29888 + 3367 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_cancel' @@ -41888,7 +43938,7 @@ function uniffiEnsureInitialized() { } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_finish() !== - 54532 + 37905 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontrollerdelegate_did_finish' @@ -41975,6 +44025,7 @@ export default Object.freeze({ initialize: uniffiEnsureInitialized, converters: { FfiConverterTypeAccountManagementAction, + FfiConverterTypeAllowRule, FfiConverterTypeAssetType, FfiConverterTypeAudioInfo, FfiConverterTypeAudioMessageContent, @@ -41999,10 +44050,8 @@ export default Object.freeze({ FfiConverterTypeEncryptionSystem, FfiConverterTypeEventOrTransactionId, FfiConverterTypeEventSendState, - FfiConverterTypeEventShieldsProvider, FfiConverterTypeEventTimelineItem, FfiConverterTypeEventTimelineItemDebugInfo, - FfiConverterTypeEventTimelineItemDebugInfoProvider, FfiConverterTypeFileInfo, FfiConverterTypeFileMessageContent, FfiConverterTypeFilterTimelineEventType, @@ -42015,6 +44064,8 @@ export default Object.freeze({ FfiConverterTypeImageMessageContent, FfiConverterTypeInReplyToDetails, FfiConverterTypeInsertData, + FfiConverterTypeJoinRule, + FfiConverterTypeLazyTimelineItemProvider, FfiConverterTypeLocationContent, FfiConverterTypeLogLevel, FfiConverterTypeMatrixEntity, @@ -42042,6 +44093,7 @@ export default Object.freeze({ FfiConverterTypeNotifyType, FfiConverterTypeOidcConfiguration, FfiConverterTypeOidcCrossSigningResetInfo, + FfiConverterTypeOidcPrompt, FfiConverterTypeOtherState, FfiConverterTypePollAnswer, FfiConverterTypePollData, @@ -42054,6 +44106,7 @@ export default Object.freeze({ FfiConverterTypePusherKind, FfiConverterTypeQrCodeData, FfiConverterTypeQrLoginProgress, + FfiConverterTypeQueueWedgeError, FfiConverterTypeReaction, FfiConverterTypeReactionSenderData, FfiConverterTypeReceipt, @@ -42061,7 +44114,6 @@ export default Object.freeze({ FfiConverterTypeRecoveryState, FfiConverterTypeRepliedToEventDetails, FfiConverterTypeRequestConfig, - FfiConverterTypeRequiredState, FfiConverterTypeResolvedRoomAlias, FfiConverterTypeRoom, FfiConverterTypeRoomDescription, @@ -42090,7 +44142,8 @@ export default Object.freeze({ FfiConverterTypeRoomPowerLevels, FfiConverterTypeRoomPreset, FfiConverterTypeRoomPreview, - FfiConverterTypeRoomSubscription, + FfiConverterTypeRoomPreviewInfo, + FfiConverterTypeRoomType, FfiConverterTypeRoomVisibility, FfiConverterTypeRtcApplicationType, FfiConverterTypeSearchUsersResults, @@ -42100,6 +44153,7 @@ export default Object.freeze({ FfiConverterTypeSessionVerificationController, FfiConverterTypeSessionVerificationData, FfiConverterTypeSessionVerificationEmoji, + FfiConverterTypeSessionVerificationRequestDetails, FfiConverterTypeSetData, FfiConverterTypeShieldState, FfiConverterTypeSlidingSyncVersion, @@ -42122,6 +44176,7 @@ export default Object.freeze({ FfiConverterTypeTimelineEventTypeFilter, FfiConverterTypeTimelineItem, FfiConverterTypeTimelineItemContent, + FfiConverterTypeTimelineUniqueId, FfiConverterTypeTracingConfiguration, FfiConverterTypeTracingFileConfiguration, FfiConverterTypeTransmissionProgress, diff --git a/ubrn.yaml b/ubrn.yaml index fef8b26..77662fd 100644 --- a/ubrn.yaml +++ b/ubrn.yaml @@ -1,7 +1,7 @@ --- crate: repo: https://github.com/matrix-org/matrix-rust-sdk - rev: 19b9a73ecc3e31d502dbf0c5850bfdfaddf02afe # matrix-sdk-ffi/20241008 + rev: 0b16d488adc6122e7bacb6e11f5e39641fecc774 # matrix-sdk-0.8.0 manifestPath: bindings/matrix-sdk-ffi/Cargo.toml android: cargoExtras: []