diff --git a/cpp/generated/matrix_sdk_ffi.cpp b/cpp/generated/matrix_sdk_ffi.cpp index 433f1a6..abd85ae 100644 --- a/cpp/generated/matrix_sdk_ffi.cpp +++ b/cpp/generated/matrix_sdk_ffi.cpp @@ -333,18 +333,6 @@ typedef struct UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider { UniffiCallbackInterfaceWidgetCapabilitiesProviderMethod0 acquire_capabilities; UniffiCallbackInterfaceFree uniffi_free; } UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider; -void * -uniffi_matrix_sdk_ffi_fn_clone_mediasource(void *ptr, - RustCallStatus *uniffi_out_err); -void uniffi_matrix_sdk_ffi_fn_free_mediasource(void *ptr, - RustCallStatus *uniffi_out_err); -void *uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_json( - RustBuffer json, RustCallStatus *uniffi_out_err); -RustBuffer uniffi_matrix_sdk_ffi_fn_method_mediasource_to_json( - void *ptr, RustCallStatus *uniffi_out_err); -RustBuffer -uniffi_matrix_sdk_ffi_fn_method_mediasource_url(void *ptr, - RustCallStatus *uniffi_out_err); void *uniffi_matrix_sdk_ffi_fn_clone_roommessageeventcontentwithoutrelation( void *ptr, RustCallStatus *uniffi_out_err); void uniffi_matrix_sdk_ffi_fn_free_roommessageeventcontentwithoutrelation( @@ -698,6 +686,20 @@ RustBuffer uniffi_matrix_sdk_ffi_fn_method_mediafilehandle_path( void *ptr, RustCallStatus *uniffi_out_err); int8_t uniffi_matrix_sdk_ffi_fn_method_mediafilehandle_persist( void *ptr, RustBuffer path, RustCallStatus *uniffi_out_err); +void * +uniffi_matrix_sdk_ffi_fn_clone_mediasource(void *ptr, + RustCallStatus *uniffi_out_err); +void uniffi_matrix_sdk_ffi_fn_free_mediasource(void *ptr, + RustCallStatus *uniffi_out_err); +void *uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_json( + RustBuffer json, RustCallStatus *uniffi_out_err); +void *uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_url( + RustBuffer url, RustCallStatus *uniffi_out_err); +RustBuffer uniffi_matrix_sdk_ffi_fn_method_mediasource_to_json( + void *ptr, RustCallStatus *uniffi_out_err); +RustBuffer +uniffi_matrix_sdk_ffi_fn_method_mediasource_url(void *ptr, + RustCallStatus *uniffi_out_err); void *uniffi_matrix_sdk_ffi_fn_clone_notificationclient( void *ptr, RustCallStatus *uniffi_out_err); void uniffi_matrix_sdk_ffi_fn_free_notificationclient( @@ -897,6 +899,9 @@ uniffi_matrix_sdk_ffi_fn_method_room_members_no_sync(void *ptr); RustBuffer uniffi_matrix_sdk_ffi_fn_method_room_membership(void *ptr, RustCallStatus *uniffi_out_err); +/*handle*/ uint64_t +uniffi_matrix_sdk_ffi_fn_method_room_message_filtered_timeline( + void *ptr, RustBuffer internal_id_prefix, RustBuffer allowed_message_types); RustBuffer uniffi_matrix_sdk_ffi_fn_method_room_own_user_id( void *ptr, RustCallStatus *uniffi_out_err); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_method_room_pinned_events_timeline( @@ -1428,6 +1433,9 @@ void uniffi_matrix_sdk_ffi_fn_init_callback_vtable_widgetcapabilitiesprovider( UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider *vtable); void *uniffi_matrix_sdk_ffi_fn_func_content_without_relation_from_message( RustBuffer message, RustCallStatus *uniffi_out_err); +RustBuffer uniffi_matrix_sdk_ffi_fn_func_create_caption_edit( + RustBuffer caption, RustBuffer formatted_caption, + RustCallStatus *uniffi_out_err); RustBuffer uniffi_matrix_sdk_ffi_fn_func_gen_transaction_id( RustCallStatus *uniffi_out_err); /*handle*/ uint64_t uniffi_matrix_sdk_ffi_fn_func_generate_webview_url( @@ -1450,8 +1458,6 @@ RustBuffer uniffi_matrix_sdk_ffi_fn_func_matrix_to_room_alias_permalink( RustBuffer room_alias, RustCallStatus *uniffi_out_err); RustBuffer uniffi_matrix_sdk_ffi_fn_func_matrix_to_user_permalink( RustBuffer user_id, RustCallStatus *uniffi_out_err); -void *uniffi_matrix_sdk_ffi_fn_func_media_source_from_url( - RustBuffer url, RustCallStatus *uniffi_out_err); void *uniffi_matrix_sdk_ffi_fn_func_message_event_content_from_html( RustBuffer body, RustBuffer html_body, RustCallStatus *uniffi_out_err); void *uniffi_matrix_sdk_ffi_fn_func_message_event_content_from_html_as_emote( @@ -1606,6 +1612,7 @@ void ffi_matrix_sdk_ffi_rust_future_complete_void( /*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err); uint16_t uniffi_matrix_sdk_ffi_checksum_func_content_without_relation_from_message(); +uint16_t uniffi_matrix_sdk_ffi_checksum_func_create_caption_edit(); uint16_t uniffi_matrix_sdk_ffi_checksum_func_gen_transaction_id(); uint16_t uniffi_matrix_sdk_ffi_checksum_func_generate_webview_url(); uint16_t @@ -1616,7 +1623,6 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_func_make_element_well_known(); uint16_t uniffi_matrix_sdk_ffi_checksum_func_make_widget_driver(); uint16_t uniffi_matrix_sdk_ffi_checksum_func_matrix_to_room_alias_permalink(); uint16_t uniffi_matrix_sdk_ffi_checksum_func_matrix_to_user_permalink(); -uint16_t uniffi_matrix_sdk_ffi_checksum_func_media_source_from_url(); uint16_t uniffi_matrix_sdk_ffi_checksum_func_message_event_content_from_html(); uint16_t uniffi_matrix_sdk_ffi_checksum_func_message_event_content_from_html_as_emote(); @@ -1633,8 +1639,6 @@ 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(); uint16_t uniffi_matrix_sdk_ffi_checksum_func_suggested_role_for_power_level(); -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_auth(); @@ -1804,6 +1808,8 @@ 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 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_notificationclient_get_notification(); uint16_t @@ -1899,6 +1905,7 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_member_display_name(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_members(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_members_no_sync(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_membership(); +uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_message_filtered_timeline(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_own_user_id(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_pinned_events_timeline(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_room_raw_name(); @@ -2083,8 +2090,9 @@ uint16_t uniffi_matrix_sdk_ffi_checksum_method_useridentity_pin(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_widgetdriver_run(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_widgetdriverhandle_recv(); uint16_t uniffi_matrix_sdk_ffi_checksum_method_widgetdriverhandle_send(); -uint16_t uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_json(); uint16_t uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new(); +uint16_t uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_json(); +uint16_t uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_url(); uint16_t uniffi_matrix_sdk_ffi_checksum_constructor_qrcodedata_from_bytes(); uint16_t uniffi_matrix_sdk_ffi_checksum_constructor_span_current(); uint16_t uniffi_matrix_sdk_ffi_checksum_constructor_span_new(); @@ -11593,63 +11601,6 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( return this->cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_fn_clone_mediasource"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "uniffi_matrix_sdk_ffi_fn_clone_mediasource"), - 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_mediasource( - rt, thisVal, args, count); - }); - props["uniffi_matrix_sdk_ffi_fn_free_mediasource"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "uniffi_matrix_sdk_ffi_fn_free_mediasource"), - 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_mediasource( - rt, thisVal, args, count); - }); - props["uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_json"), - 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_constructor_mediasource_from_json( - rt, thisVal, args, count); - }); - props["uniffi_matrix_sdk_ffi_fn_method_mediasource_to_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "uniffi_matrix_sdk_ffi_fn_method_mediasource_to_json"), - 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_mediasource_to_json( - rt, thisVal, args, count); - }); - props["uniffi_matrix_sdk_ffi_fn_method_mediasource_url"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "uniffi_matrix_sdk_ffi_fn_method_mediasource_url"), - 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_mediasource_url( - rt, thisVal, args, count); - }); props["uniffi_matrix_sdk_ffi_fn_clone_" "roommessageeventcontentwithoutrelation"] = jsi::Function::createFromHostFunction( @@ -13404,6 +13355,75 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_method_mediafilehandle_persist( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_fn_clone_mediasource"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_clone_mediasource"), + 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_mediasource( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_fn_free_mediasource"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_free_mediasource"), + 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_mediasource( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_json"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_json"), + 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_constructor_mediasource_from_json( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_url"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_url"), + 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_constructor_mediasource_from_url( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_fn_method_mediasource_to_json"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_method_mediasource_to_json"), + 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_mediasource_to_json( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_fn_method_mediasource_url"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_method_mediasource_url"), + 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_mediasource_url( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_fn_clone_notificationclient"] = jsi::Function::createFromHostFunction( rt, @@ -14351,6 +14371,19 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( return this->cpp_uniffi_matrix_sdk_ffi_fn_method_room_membership( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_fn_method_room_message_filtered_timeline"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, + "uniffi_matrix_sdk_ffi_fn_method_room_message_filtered_timeline"), + 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_room_message_filtered_timeline( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_fn_method_room_own_user_id"] = jsi::Function::createFromHostFunction( rt, @@ -16762,6 +16795,17 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_func_content_without_relation_from_message( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_fn_func_create_caption_edit"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_fn_func_create_caption_edit"), + 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_func_create_caption_edit( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_fn_func_gen_transaction_id"] = jsi::Function::createFromHostFunction( rt, @@ -16867,18 +16911,6 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_func_matrix_to_user_permalink( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_fn_func_media_source_from_url"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "uniffi_matrix_sdk_ffi_fn_func_media_source_from_url"), - 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_media_source_from_url( - rt, thisVal, args, count); - }); props["uniffi_matrix_sdk_ffi_fn_func_message_event_content_from_html"] = jsi::Function::createFromHostFunction( rt, @@ -17610,6 +17642,18 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_func_content_without_relation_from_message( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_checksum_func_create_caption_edit"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_checksum_func_create_caption_edit"), + 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_create_caption_edit( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_checksum_func_gen_transaction_id"] = jsi::Function::createFromHostFunction( rt, @@ -17720,18 +17764,6 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_func_matrix_to_user_permalink( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_checksum_func_media_source_from_url"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "uniffi_matrix_sdk_ffi_checksum_func_media_source_from_url"), - 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_media_source_from_url( - rt, thisVal, args, count); - }); props["uniffi_matrix_sdk_ffi_checksum_func_message_event_content_from_html"] = jsi::Function::createFromHostFunction( rt, @@ -17877,30 +17909,6 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_func_suggested_role_for_power_level( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json"), - 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_mediasource_to_json( - rt, thisVal, args, count); - }); - props["uniffi_matrix_sdk_ffi_checksum_method_mediasource_url"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "uniffi_matrix_sdk_ffi_checksum_method_mediasource_url"), - 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_mediasource_url( - rt, thisVal, args, count); - }); props["uniffi_matrix_sdk_ffi_checksum_method_" "roommessageeventcontentwithoutrelation_with_mentions"] = jsi::Function::createFromHostFunction( @@ -19458,6 +19466,30 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_mediafilehandle_persist( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json"), + 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_mediasource_to_json( + rt, thisVal, args, count); + }); + props["uniffi_matrix_sdk_ffi_checksum_method_mediasource_url"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_matrix_sdk_ffi_checksum_method_mediasource_url"), + 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_mediasource_url( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_" "notification"] = jsi::Function::createFromHostFunction( rt, @@ -20331,6 +20363,18 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_room_membership( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_checksum_method_room_message_filtered_" + "timeline"] = jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_checksum_method_" + "room_message_filtered_timeline"), + 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_message_filtered_timeline( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_checksum_method_room_own_user_id"] = jsi::Function::createFromHostFunction( rt, @@ -22149,6 +22193,19 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_method_widgetdriverhandle_send( rt, thisVal, args, count); }); + props["uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, + "uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new"), + 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_constructor_clientbuilder_new( + rt, thisVal, args, count); + }); props["uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_json"] = jsi::Function::createFromHostFunction( rt, @@ -22161,17 +22218,16 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_json( rt, thisVal, args, count); }); - props["uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new"] = + props["uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_url"] = jsi::Function::createFromHostFunction( rt, - jsi::PropNameID::forAscii( - rt, - "uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new"), + jsi::PropNameID::forAscii(rt, "uniffi_matrix_sdk_ffi_checksum_" + "constructor_mediasource_from_url"), 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_constructor_clientbuilder_new( + ->cpp_uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_url( rt, thisVal, args, count); }); props["uniffi_matrix_sdk_ffi_checksum_constructor_qrcodedata_from_bytes"] = @@ -23002,18 +23058,6 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_matrix_sdk_ffi_fn_init_callback_vtable_widgetcapabilitiesprovider( rt, thisVal, args, count); }); - props["uniffi_internal_fn_method_mediasource_ffi__bless_pointer"] = - jsi::Function::createFromHostFunction( - rt, - jsi::PropNameID::forAscii( - rt, "uniffi_internal_fn_method_mediasource_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_mediasource_ffi__bless_pointer( - rt, thisVal, args, count); - }); props["uniffi_internal_fn_method_roommessageeventcontentwithoutrelation_ffi__" "bless_pointer"] = jsi::Function::createFromHostFunction( rt, @@ -23128,6 +23172,18 @@ NativeMatrixSdkFfi::NativeMatrixSdkFfi( ->cpp_uniffi_internal_fn_method_mediafilehandle_ffi__bless_pointer( rt, thisVal, args, count); }); + props["uniffi_internal_fn_method_mediasource_ffi__bless_pointer"] = + jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii( + rt, "uniffi_internal_fn_method_mediasource_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_mediasource_ffi__bless_pointer( + rt, thisVal, args, count); + }); props["uniffi_internal_fn_method_notificationclient_ffi__bless_pointer"] = jsi::Function::createFromHostFunction( rt, @@ -23757,22 +23813,6 @@ NativeMatrixSdkFfi::cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string( size_t count) { return uniffi_jsi::Bridging::arraybuffer_to_string(rt, args[0]); } -jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_internal_fn_method_mediasource_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_mediasource(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_roommessageeventcontentwithoutrelation_ffi__bless_pointer( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -23918,6 +23958,22 @@ jsi::Value NativeMatrixSdkFfi:: auto obj = jsi::Object::createFromHostObject(rt, ptrObj); return jsi::Value(rt, obj); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_internal_fn_method_mediasource_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_mediasource(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_notificationclient_ffi__bless_pointer( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -24403,73 +24459,6 @@ jsi::Value NativeMatrixSdkFfi:: } // Methods calling directly into the uniffi generated C API of the Rust crate. -jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_clone_mediasource( - 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_mediasource( - 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_mediasource( - 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_mediasource( - 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_constructor_mediasource_from_json( - 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_constructor_mediasource_from_json( - 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_method_mediasource_to_json( - 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_mediasource_to_json( - 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_mediasource_url( - 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_mediasource_url( - 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_clone_roommessageeventcontentwithoutrelation( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -26456,6 +26445,88 @@ NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_mediafilehandle_persist( return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_clone_mediasource( + 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_mediasource( + 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_mediasource( + 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_mediasource( + 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_constructor_mediasource_from_json( + 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_constructor_mediasource_from_json( + 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_constructor_mediasource_from_url( + 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_constructor_mediasource_from_url( + 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_method_mediasource_to_json( + 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_mediasource_to_json( + 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_mediasource_url( + 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_mediasource_url( + 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_clone_notificationclient( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -27452,6 +27523,20 @@ NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_method_room_membership( return uniffi::matrix_sdk_ffi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_fn_method_room_message_filtered_timeline( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_fn_method_room_message_filtered_timeline( + 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_room_own_user_id( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -30183,6 +30268,24 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } jsi::Value +NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_func_create_caption_edit( + 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_create_caption_edit( + uniffi::matrix_sdk_ffi::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::matrix_sdk_ffi::Bridging::toJs(rt, callInvoker, + value); +} +jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_func_gen_transaction_id( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { @@ -30329,21 +30432,6 @@ NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_func_matrix_to_user_permalink( return uniffi::matrix_sdk_ffi::Bridging::toJs(rt, callInvoker, value); } -jsi::Value -NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_fn_func_media_source_from_url( - 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_media_source_from_url( - 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_message_event_content_from_html( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -31145,6 +31233,14 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } jsi::Value +NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_checksum_func_create_caption_edit( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_checksum_func_create_caption_edit(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} +jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_checksum_func_gen_transaction_id( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { @@ -31218,14 +31314,6 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } -jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_checksum_func_media_source_from_url( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_matrix_sdk_ffi_checksum_func_media_source_from_url(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_checksum_func_message_event_content_from_html( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -31330,22 +31418,6 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } -jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} -jsi::Value -NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_checksum_method_mediasource_url( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count) { - auto value = uniffi_matrix_sdk_ffi_checksum_method_mediasource_url(); - - return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); -} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_checksum_method_roommessageeventcontentwithoutrelation_with_mentions( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -32435,6 +32507,22 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} +jsi::Value +NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_checksum_method_mediasource_url( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_checksum_method_mediasource_url(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_notification( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -33037,6 +33125,15 @@ NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_checksum_method_room_membership( return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_checksum_method_room_message_filtered_timeline( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = + uniffi_matrix_sdk_ffi_checksum_method_room_message_filtered_timeline(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} jsi::Value NativeMatrixSdkFfi::cpp_uniffi_matrix_sdk_ffi_checksum_method_room_own_user_id( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -34276,6 +34373,14 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } +jsi::Value NativeMatrixSdkFfi:: + cpp_uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count) { + auto value = uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new(); + + return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); +} jsi::Value NativeMatrixSdkFfi:: cpp_uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_json( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -34286,10 +34391,11 @@ jsi::Value NativeMatrixSdkFfi:: return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } jsi::Value NativeMatrixSdkFfi:: - cpp_uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new( + cpp_uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_url( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count) { - auto value = uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new(); + auto value = + uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_url(); return uniffi_jsi::Bridging::toJs(rt, callInvoker, value); } diff --git a/cpp/generated/matrix_sdk_ffi.hpp b/cpp/generated/matrix_sdk_ffi.hpp index 8b01cb8..e9dc2ed 100644 --- a/cpp/generated/matrix_sdk_ffi.hpp +++ b/cpp/generated/matrix_sdk_ffi.hpp @@ -28,21 +28,6 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); - jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_clone_mediasource( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_free_mediasource( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_mediasource_to_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_mediasource_url( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_clone_roommessageeventcontentwithoutrelation( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -526,6 +511,24 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_mediafilehandle_persist( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_clone_mediasource( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_free_mediasource( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_json( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_url( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_mediasource_to_json( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_mediasource_url( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_clone_notificationclient( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -792,6 +795,9 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_room_membership( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_room_message_filtered_timeline( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_method_room_own_user_id( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -1449,6 +1455,9 @@ class NativeMatrixSdkFfi : public jsi::HostObject { cpp_uniffi_matrix_sdk_ffi_fn_func_content_without_relation_from_message( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_func_create_caption_edit( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_func_gen_transaction_id( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -1477,9 +1486,6 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_func_matrix_to_user_permalink( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); - jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_func_media_source_from_url( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_fn_func_message_event_content_from_html( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -1680,6 +1686,9 @@ class NativeMatrixSdkFfi : public jsi::HostObject { cpp_uniffi_matrix_sdk_ffi_checksum_func_content_without_relation_from_message( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_func_create_caption_edit( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_func_gen_transaction_id( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -1709,9 +1718,6 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_func_matrix_to_user_permalink( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); - jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_func_media_source_from_url( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_func_message_event_content_from_html( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -1756,12 +1762,6 @@ class NativeMatrixSdkFfi : public jsi::HostObject { cpp_uniffi_matrix_sdk_ffi_checksum_func_suggested_role_for_power_level( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); - jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); - jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_mediasource_url( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_roommessageeventcontentwithoutrelation_with_mentions( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -2216,6 +2216,12 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_mediafilehandle_persist( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_mediasource_url( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_notification( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -2463,6 +2469,10 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_room_membership( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value + cpp_uniffi_matrix_sdk_ffi_checksum_method_room_message_filtered_timeline( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_room_own_user_id( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); @@ -2967,11 +2977,15 @@ class NativeMatrixSdkFfi : public jsi::HostObject { jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_method_widgetdriverhandle_send( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); + jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_json( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); - jsi::Value cpp_uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new( + jsi::Value + cpp_uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_url( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); jsi::Value @@ -3230,9 +3244,6 @@ class NativeMatrixSdkFfi : public jsi::HostObject { cpp_uniffi_matrix_sdk_ffi_fn_init_callback_vtable_widgetcapabilitiesprovider( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, size_t count); - jsi::Value cpp_uniffi_internal_fn_method_mediasource_ffi__bless_pointer( - jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, - size_t count); jsi::Value cpp_uniffi_internal_fn_method_roommessageeventcontentwithoutrelation_ffi__bless_pointer( jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, @@ -3264,6 +3275,9 @@ class NativeMatrixSdkFfi : public jsi::HostObject { 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); + jsi::Value cpp_uniffi_internal_fn_method_mediasource_ffi__bless_pointer( + jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args, + size_t count); jsi::Value cpp_uniffi_internal_fn_method_notificationclient_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 7a4eaf5..f1484dd 100644 --- a/src/generated/matrix_sdk_crypto.ts +++ b/src/generated/matrix_sdk_crypto.ts @@ -932,6 +932,32 @@ export enum UtdCause { * obtained from a legacy (asymmetric) backup, unsafe key forward, etc.) */ UnknownDevice, + /** + * We are missing the keys for this event, but it is a "device-historical" + * message and no backup is accessible or usable. + * + * Device-historical means that the message was sent before the current + * device existed (but the current user was probably a member of the room + * at the time the message was sent). Not to + * be confused with pre-join or pre-invite messages (see + * [`UtdCause::SentBeforeWeJoined`] for that). + */ + HistoricalMessage, + /** + * The keys for this event are intentionally withheld. + * + * The sender has refused to share the key because our device does not meet + * the sender's security requirements. + */ + WithheldForUnverifiedOrInsecureDevice, + /** + * The keys for this event are missing, likely because the sender was + * unable to share them (e.g., failure to establish an Olm 1:1 + * channel). Alternatively, the sender may have deliberately excluded + * this device by cherry-picking and blocking it, in which case, no action + * can be taken on our side. + */ + WithheldBySender, } const FfiConverterTypeUtdCause = (() => { @@ -950,6 +976,12 @@ const FfiConverterTypeUtdCause = (() => { return UtdCause.UnsignedDevice; case 5: return UtdCause.UnknownDevice; + case 6: + return UtdCause.HistoricalMessage; + case 7: + return UtdCause.WithheldForUnverifiedOrInsecureDevice; + case 8: + return UtdCause.WithheldBySender; default: throw new UniffiInternalError.UnexpectedEnumCase(); } @@ -966,6 +998,12 @@ const FfiConverterTypeUtdCause = (() => { return ordinalConverter.write(4, into); case UtdCause.UnknownDevice: return ordinalConverter.write(5, into); + case UtdCause.HistoricalMessage: + return ordinalConverter.write(6, into); + case UtdCause.WithheldForUnverifiedOrInsecureDevice: + return ordinalConverter.write(7, into); + case UtdCause.WithheldBySender: + return ordinalConverter.write(8, into); } } allocationSize(value: TypeName): number { diff --git a/src/generated/matrix_sdk_ffi-ffi.ts b/src/generated/matrix_sdk_ffi-ffi.ts index bbfa434..52b7adf 100644 --- a/src/generated/matrix_sdk_ffi-ffi.ts +++ b/src/generated/matrix_sdk_ffi-ffi.ts @@ -22,26 +22,6 @@ interface NativeModuleInterface { buffer: ArrayBuffer, uniffi_out_err: UniffiRustCallStatus ): string; - uniffi_matrix_sdk_ffi_fn_clone_mediasource( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - uniffi_matrix_sdk_ffi_fn_free_mediasource( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): void; - uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_json( - json: ArrayBuffer, - uniffi_out_err: UniffiRustCallStatus - ): bigint; - uniffi_matrix_sdk_ffi_fn_method_mediasource_to_json( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): ArrayBuffer; - uniffi_matrix_sdk_ffi_fn_method_mediasource_url( - ptr: bigint, - uniffi_out_err: UniffiRustCallStatus - ): ArrayBuffer; uniffi_matrix_sdk_ffi_fn_clone_roommessageeventcontentwithoutrelation( ptr: bigint, uniffi_out_err: UniffiRustCallStatus @@ -656,6 +636,30 @@ interface NativeModuleInterface { path: ArrayBuffer, uniffi_out_err: UniffiRustCallStatus ): number; + uniffi_matrix_sdk_ffi_fn_clone_mediasource( + ptr: bigint, + uniffi_out_err: UniffiRustCallStatus + ): bigint; + uniffi_matrix_sdk_ffi_fn_free_mediasource( + ptr: bigint, + uniffi_out_err: UniffiRustCallStatus + ): void; + uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_json( + json: ArrayBuffer, + uniffi_out_err: UniffiRustCallStatus + ): bigint; + uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_url( + url: ArrayBuffer, + uniffi_out_err: UniffiRustCallStatus + ): bigint; + uniffi_matrix_sdk_ffi_fn_method_mediasource_to_json( + ptr: bigint, + uniffi_out_err: UniffiRustCallStatus + ): ArrayBuffer; + uniffi_matrix_sdk_ffi_fn_method_mediasource_url( + ptr: bigint, + uniffi_out_err: UniffiRustCallStatus + ): ArrayBuffer; uniffi_matrix_sdk_ffi_fn_clone_notificationclient( ptr: bigint, uniffi_out_err: UniffiRustCallStatus @@ -958,6 +962,11 @@ interface NativeModuleInterface { ptr: bigint, uniffi_out_err: UniffiRustCallStatus ): ArrayBuffer; + uniffi_matrix_sdk_ffi_fn_method_room_message_filtered_timeline( + ptr: bigint, + internalIdPrefix: ArrayBuffer, + allowedMessageTypes: ArrayBuffer + ): bigint; uniffi_matrix_sdk_ffi_fn_method_room_own_user_id( ptr: bigint, uniffi_out_err: UniffiRustCallStatus @@ -1808,6 +1817,11 @@ interface NativeModuleInterface { message: ArrayBuffer, uniffi_out_err: UniffiRustCallStatus ): bigint; + uniffi_matrix_sdk_ffi_fn_func_create_caption_edit( + caption: ArrayBuffer, + formattedCaption: ArrayBuffer, + uniffi_out_err: UniffiRustCallStatus + ): ArrayBuffer; uniffi_matrix_sdk_ffi_fn_func_gen_transaction_id( uniffi_out_err: UniffiRustCallStatus ): ArrayBuffer; @@ -1849,10 +1863,6 @@ interface NativeModuleInterface { userId: ArrayBuffer, uniffi_out_err: UniffiRustCallStatus ): ArrayBuffer; - uniffi_matrix_sdk_ffi_fn_func_media_source_from_url( - url: ArrayBuffer, - uniffi_out_err: UniffiRustCallStatus - ): bigint; uniffi_matrix_sdk_ffi_fn_func_message_event_content_from_html( body: ArrayBuffer, htmlBody: ArrayBuffer, @@ -2046,6 +2056,7 @@ interface NativeModuleInterface { uniffi_out_err: UniffiRustCallStatus ): void; uniffi_matrix_sdk_ffi_checksum_func_content_without_relation_from_message(): number; + uniffi_matrix_sdk_ffi_checksum_func_create_caption_edit(): number; 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; @@ -2055,7 +2066,6 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_func_make_widget_driver(): number; uniffi_matrix_sdk_ffi_checksum_func_matrix_to_room_alias_permalink(): number; uniffi_matrix_sdk_ffi_checksum_func_matrix_to_user_permalink(): number; - uniffi_matrix_sdk_ffi_checksum_func_media_source_from_url(): number; uniffi_matrix_sdk_ffi_checksum_func_message_event_content_from_html(): number; uniffi_matrix_sdk_ffi_checksum_func_message_event_content_from_html_as_emote(): number; uniffi_matrix_sdk_ffi_checksum_func_message_event_content_from_markdown(): number; @@ -2068,8 +2078,6 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_func_setup_tracing(): number; uniffi_matrix_sdk_ffi_checksum_func_suggested_power_level_for_role(): number; uniffi_matrix_sdk_ffi_checksum_func_suggested_role_for_power_level(): number; - 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_auth(): number; uniffi_matrix_sdk_ffi_checksum_method_client_account_data(): number; @@ -2197,6 +2205,8 @@ interface NativeModuleInterface { 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_mediasource_to_json(): number; + uniffi_matrix_sdk_ffi_checksum_method_mediasource_url(): number; uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_notification(): number; uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_can_homeserver_push_encrypted_event_to_device(): number; uniffi_matrix_sdk_ffi_checksum_method_notificationsettings_can_push_encrypted_event_to_device(): number; @@ -2268,6 +2278,7 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_method_room_members(): number; uniffi_matrix_sdk_ffi_checksum_method_room_members_no_sync(): number; uniffi_matrix_sdk_ffi_checksum_method_room_membership(): number; + uniffi_matrix_sdk_ffi_checksum_method_room_message_filtered_timeline(): number; uniffi_matrix_sdk_ffi_checksum_method_room_own_user_id(): number; uniffi_matrix_sdk_ffi_checksum_method_room_pinned_events_timeline(): number; uniffi_matrix_sdk_ffi_checksum_method_room_raw_name(): number; @@ -2415,8 +2426,9 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_checksum_method_widgetdriver_run(): number; uniffi_matrix_sdk_ffi_checksum_method_widgetdriverhandle_recv(): number; uniffi_matrix_sdk_ffi_checksum_method_widgetdriverhandle_send(): number; - uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_json(): number; uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new(): number; + uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_json(): number; + uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_url(): number; uniffi_matrix_sdk_ffi_checksum_constructor_qrcodedata_from_bytes(): number; uniffi_matrix_sdk_ffi_checksum_constructor_span_current(): number; uniffi_matrix_sdk_ffi_checksum_constructor_span_new(): number; @@ -2535,10 +2547,6 @@ interface NativeModuleInterface { uniffi_matrix_sdk_ffi_fn_init_callback_vtable_widgetcapabilitiesprovider( vtable: UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider ): void; - uniffi_internal_fn_method_mediasource_ffi__bless_pointer( - pointer: bigint, - uniffi_out_err: UniffiRustCallStatus - ): UniffiRustArcPtr; uniffi_internal_fn_method_roommessageeventcontentwithoutrelation_ffi__bless_pointer( pointer: bigint, uniffi_out_err: UniffiRustCallStatus @@ -2575,6 +2583,10 @@ interface NativeModuleInterface { pointer: bigint, uniffi_out_err: UniffiRustCallStatus ): UniffiRustArcPtr; + uniffi_internal_fn_method_mediasource_ffi__bless_pointer( + pointer: bigint, + uniffi_out_err: UniffiRustCallStatus + ): UniffiRustArcPtr; uniffi_internal_fn_method_notificationclient_ffi__bless_pointer( pointer: bigint, uniffi_out_err: UniffiRustCallStatus diff --git a/src/generated/matrix_sdk_ffi.ts b/src/generated/matrix_sdk_ffi.ts index 6bd0906..a25b507 100644 --- a/src/generated/matrix_sdk_ffi.ts +++ b/src/generated/matrix_sdk_ffi.ts @@ -174,6 +174,29 @@ export function contentWithoutRelationFromMessage( ) ); } +/** + * Create a caption edit. + * + * If no `formatted_caption` is provided, then it's assumed the `caption` + * represents valid Markdown that can be used as the formatted caption. + */ +export function createCaptionEdit( + caption: string | undefined, + formattedCaption: FormattedBody | undefined +): EditedContent { + return FfiConverterTypeEditedContent.lift( + rustCall( + /*caller:*/ (callStatus) => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_func_create_caption_edit( + FfiConverterOptionalString.lower(caption), + FfiConverterOptionalTypeFormattedBody.lower(formattedCaption), + callStatus + ); + }, + /*liftString:*/ FfiConverterString.lift + ) + ); +} export function genTransactionId(): string { return FfiConverterString.lift( rustCall( @@ -399,19 +422,6 @@ export function matrixToUserPermalink(userId: string): string /*throws*/ { ) ); } -export function mediaSourceFromUrl(url: string): MediaSourceInterface { - return FfiConverterTypeMediaSource.lift( - rustCall( - /*caller:*/ (callStatus) => { - return nativeModule().uniffi_matrix_sdk_ffi_fn_func_media_source_from_url( - FfiConverterString.lower(url), - callStatus - ); - }, - /*liftString:*/ FfiConverterString.lift - ) - ); -} export function messageEventContentFromHtml( body: string, htmlBody: string @@ -5100,9 +5110,13 @@ export type RoomInfo = { */ numUnreadMentions: /*u64*/ bigint; /** - * The currently pinned event ids + * The currently pinned event ids. */ pinnedEventIds: Array; + /** + * The join rule for this room, if known. + */ + joinRule: JoinRule | undefined; }; /** @@ -5169,6 +5183,7 @@ const FfiConverterTypeRoomInfo = (() => { numUnreadNotifications: FfiConverterUInt64.read(from), numUnreadMentions: FfiConverterUInt64.read(from), pinnedEventIds: FfiConverterArrayString.read(from), + joinRule: FfiConverterOptionalTypeJoinRule.read(from), }; } write(value: TypeName, into: RustBuffer): void { @@ -5205,6 +5220,7 @@ const FfiConverterTypeRoomInfo = (() => { FfiConverterUInt64.write(value.numUnreadNotifications, into); FfiConverterUInt64.write(value.numUnreadMentions, into); FfiConverterArrayString.write(value.pinnedEventIds, into); + FfiConverterOptionalTypeJoinRule.write(value.joinRule, into); } allocationSize(value: TypeName): number { return ( @@ -5241,7 +5257,8 @@ const FfiConverterTypeRoomInfo = (() => { FfiConverterUInt64.allocationSize(value.numUnreadMessages) + FfiConverterUInt64.allocationSize(value.numUnreadNotifications) + FfiConverterUInt64.allocationSize(value.numUnreadMentions) + - FfiConverterArrayString.allocationSize(value.pinnedEventIds) + FfiConverterArrayString.allocationSize(value.pinnedEventIds) + + FfiConverterOptionalTypeJoinRule.allocationSize(value.joinRule) ); } } @@ -5627,7 +5644,7 @@ export type RoomPreviewInfo = { /** * Is the history world-readable for this room? */ - isHistoryWorldReadable: boolean; + isHistoryWorldReadable: boolean | undefined; /** * The membership state for the current user, if known. */ @@ -5640,6 +5657,10 @@ export type RoomPreviewInfo = { * Whether the room is direct or not, if known. */ isDirect: boolean | undefined; + /** + * Room heroes. + */ + heroes: Array | undefined; }; /** @@ -5685,10 +5706,11 @@ const FfiConverterTypeRoomPreviewInfo = (() => { numJoinedMembers: FfiConverterUInt64.read(from), numActiveMembers: FfiConverterOptionalUInt64.read(from), roomType: FfiConverterTypeRoomType.read(from), - isHistoryWorldReadable: FfiConverterBool.read(from), + isHistoryWorldReadable: FfiConverterOptionalBool.read(from), membership: FfiConverterOptionalTypeMembership.read(from), joinRule: FfiConverterTypeJoinRule.read(from), isDirect: FfiConverterOptionalBool.read(from), + heroes: FfiConverterOptionalArrayTypeRoomHero.read(from), }; } write(value: TypeName, into: RustBuffer): void { @@ -5700,10 +5722,11 @@ const FfiConverterTypeRoomPreviewInfo = (() => { FfiConverterUInt64.write(value.numJoinedMembers, into); FfiConverterOptionalUInt64.write(value.numActiveMembers, into); FfiConverterTypeRoomType.write(value.roomType, into); - FfiConverterBool.write(value.isHistoryWorldReadable, into); + FfiConverterOptionalBool.write(value.isHistoryWorldReadable, into); FfiConverterOptionalTypeMembership.write(value.membership, into); FfiConverterTypeJoinRule.write(value.joinRule, into); FfiConverterOptionalBool.write(value.isDirect, into); + FfiConverterOptionalArrayTypeRoomHero.write(value.heroes, into); } allocationSize(value: TypeName): number { return ( @@ -5715,10 +5738,11 @@ const FfiConverterTypeRoomPreviewInfo = (() => { FfiConverterUInt64.allocationSize(value.numJoinedMembers) + FfiConverterOptionalUInt64.allocationSize(value.numActiveMembers) + FfiConverterTypeRoomType.allocationSize(value.roomType) + - FfiConverterBool.allocationSize(value.isHistoryWorldReadable) + + FfiConverterOptionalBool.allocationSize(value.isHistoryWorldReadable) + FfiConverterOptionalTypeMembership.allocationSize(value.membership) + FfiConverterTypeJoinRule.allocationSize(value.joinRule) + - FfiConverterOptionalBool.allocationSize(value.isDirect) + FfiConverterOptionalBool.allocationSize(value.isDirect) + + FfiConverterOptionalArrayTypeRoomHero.allocationSize(value.heroes) ); } } @@ -7631,6 +7655,7 @@ const FfiConverterTypeAccountManagementAction = (() => { // Enum: AllowRule export enum AllowRule_Tags { RoomMembership = 'RoomMembership', + Custom = 'Custom', } /** * An allow rule which defines a condition that allows joining a room. @@ -7670,6 +7695,37 @@ export const AllowRule = (() => { } } + type Custom__interface = { + tag: AllowRule_Tags.Custom; + inner: Readonly<{ json: string }>; + }; + + /** + * A custom allow rule implementation, containing its JSON representation + * as a `String`. + */ + class Custom_ extends UniffiEnum implements Custom__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'AllowRule'; + readonly tag = AllowRule_Tags.Custom; + readonly inner: Readonly<{ json: string }>; + constructor(inner: { json: string }) { + super('AllowRule', 'Custom'); + this.inner = Object.freeze(inner); + } + + static new(inner: { json: string }): Custom_ { + return new Custom_(inner); + } + + static instanceOf(obj: any): obj is Custom_ { + return obj.tag === AllowRule_Tags.Custom; + } + } + function instanceOf(obj: any): obj is AllowRule { return obj[uniffiTypeNameSymbol] === 'AllowRule'; } @@ -7677,6 +7733,7 @@ export const AllowRule = (() => { return Object.freeze({ instanceOf, RoomMembership: RoomMembership_, + Custom: Custom_, }); })(); @@ -7699,6 +7756,8 @@ const FfiConverterTypeAllowRule = (() => { return new AllowRule.RoomMembership({ roomId: FfiConverterString.read(from), }); + case 2: + return new AllowRule.Custom({ json: FfiConverterString.read(from) }); default: throw new UniffiInternalError.UnexpectedEnumCase(); } @@ -7711,6 +7770,12 @@ const FfiConverterTypeAllowRule = (() => { FfiConverterString.write(inner.roomId, into); return; } + case AllowRule_Tags.Custom: { + ordinalConverter.write(2, into); + const inner = value.inner; + FfiConverterString.write(inner.json, into); + return; + } default: // Throwing from here means that AllowRule_Tags hasn't matched an ordinal. throw new UniffiInternalError.UnexpectedEnumCase(); @@ -7724,6 +7789,12 @@ const FfiConverterTypeAllowRule = (() => { size += FfiConverterString.allocationSize(inner.roomId); return size; } + case AllowRule_Tags.Custom: { + const inner = value.inner; + let size = ordinalConverter.allocationSize(2); + size += FfiConverterString.allocationSize(inner.json); + return size; + } default: throw new UniffiInternalError.UnexpectedEnumCase(); } @@ -8841,6 +8912,7 @@ const FfiConverterTypeCrossSigningResetAuthType = (() => { // Enum: EditedContent export enum EditedContent_Tags { RoomMessage = 'RoomMessage', + MediaCaption = 'MediaCaption', PollStart = 'PollStart', } export const EditedContent = (() => { @@ -8879,6 +8951,45 @@ export const EditedContent = (() => { } } + type MediaCaption__interface = { + tag: EditedContent_Tags.MediaCaption; + inner: Readonly<{ + caption: string | undefined; + formattedCaption: FormattedBody | undefined; + }>; + }; + + class MediaCaption_ extends UniffiEnum implements MediaCaption__interface { + /** + * @private + * This field is private and should not be used, use `tag` instead. + */ + readonly [uniffiTypeNameSymbol] = 'EditedContent'; + readonly tag = EditedContent_Tags.MediaCaption; + readonly inner: Readonly<{ + caption: string | undefined; + formattedCaption: FormattedBody | undefined; + }>; + constructor(inner: { + caption: string | undefined; + formattedCaption: FormattedBody | undefined; + }) { + super('EditedContent', 'MediaCaption'); + this.inner = Object.freeze(inner); + } + + static new(inner: { + caption: string | undefined; + formattedCaption: FormattedBody | undefined; + }): MediaCaption_ { + return new MediaCaption_(inner); + } + + static instanceOf(obj: any): obj is MediaCaption_ { + return obj.tag === EditedContent_Tags.MediaCaption; + } + } + type PollStart__interface = { tag: EditedContent_Tags.PollStart; inner: Readonly<{ pollData: PollData }>; @@ -8913,6 +9024,7 @@ export const EditedContent = (() => { return Object.freeze({ instanceOf, RoomMessage: RoomMessage_, + MediaCaption: MediaCaption_, PollStart: PollStart_, }); })(); @@ -8934,6 +9046,11 @@ const FfiConverterTypeEditedContent = (() => { FfiConverterTypeRoomMessageEventContentWithoutRelation.read(from), }); case 2: + return new EditedContent.MediaCaption({ + caption: FfiConverterOptionalString.read(from), + formattedCaption: FfiConverterOptionalTypeFormattedBody.read(from), + }); + case 3: return new EditedContent.PollStart({ pollData: FfiConverterTypePollData.read(from), }); @@ -8952,9 +9069,19 @@ const FfiConverterTypeEditedContent = (() => { ); return; } - case EditedContent_Tags.PollStart: { + case EditedContent_Tags.MediaCaption: { ordinalConverter.write(2, into); const inner = value.inner; + FfiConverterOptionalString.write(inner.caption, into); + FfiConverterOptionalTypeFormattedBody.write( + inner.formattedCaption, + into + ); + return; + } + case EditedContent_Tags.PollStart: { + ordinalConverter.write(3, into); + const inner = value.inner; FfiConverterTypePollData.write(inner.pollData, into); return; } @@ -8974,9 +9101,18 @@ const FfiConverterTypeEditedContent = (() => { ); return size; } - case EditedContent_Tags.PollStart: { + case EditedContent_Tags.MediaCaption: { const inner = value.inner; let size = ordinalConverter.allocationSize(2); + size += FfiConverterOptionalString.allocationSize(inner.caption); + size += FfiConverterOptionalTypeFormattedBody.allocationSize( + inner.formattedCaption + ); + return size; + } + case EditedContent_Tags.PollStart: { + const inner = value.inner; + let size = ordinalConverter.allocationSize(3); size += FfiConverterTypePollData.allocationSize(inner.pollData); return size; } @@ -20403,6 +20539,85 @@ const FfiConverterTypeRoomListServiceSyncIndicator = (() => { return new FFIConverter(); })(); +export enum RoomMessageEventMessageType { + Audio, + Emote, + File, + Image, + Location, + Notice, + ServerNotice, + Text, + Video, + VerificationRequest, + Other, +} + +const FfiConverterTypeRoomMessageEventMessageType = (() => { + const ordinalConverter = FfiConverterInt32; + type TypeName = RoomMessageEventMessageType; + class FFIConverter extends AbstractFfiConverterArrayBuffer { + read(from: RustBuffer): TypeName { + switch (ordinalConverter.read(from)) { + case 1: + return RoomMessageEventMessageType.Audio; + case 2: + return RoomMessageEventMessageType.Emote; + case 3: + return RoomMessageEventMessageType.File; + case 4: + return RoomMessageEventMessageType.Image; + case 5: + return RoomMessageEventMessageType.Location; + case 6: + return RoomMessageEventMessageType.Notice; + case 7: + return RoomMessageEventMessageType.ServerNotice; + case 8: + return RoomMessageEventMessageType.Text; + case 9: + return RoomMessageEventMessageType.Video; + case 10: + return RoomMessageEventMessageType.VerificationRequest; + case 11: + return RoomMessageEventMessageType.Other; + default: + throw new UniffiInternalError.UnexpectedEnumCase(); + } + } + write(value: TypeName, into: RustBuffer): void { + switch (value) { + case RoomMessageEventMessageType.Audio: + return ordinalConverter.write(1, into); + case RoomMessageEventMessageType.Emote: + return ordinalConverter.write(2, into); + case RoomMessageEventMessageType.File: + return ordinalConverter.write(3, into); + case RoomMessageEventMessageType.Image: + return ordinalConverter.write(4, into); + case RoomMessageEventMessageType.Location: + return ordinalConverter.write(5, into); + case RoomMessageEventMessageType.Notice: + return ordinalConverter.write(6, into); + case RoomMessageEventMessageType.ServerNotice: + return ordinalConverter.write(7, into); + case RoomMessageEventMessageType.Text: + return ordinalConverter.write(8, into); + case RoomMessageEventMessageType.Video: + return ordinalConverter.write(9, into); + case RoomMessageEventMessageType.VerificationRequest: + return ordinalConverter.write(10, into); + case RoomMessageEventMessageType.Other: + return ordinalConverter.write(11, into); + } + } + allocationSize(value: TypeName): number { + return ordinalConverter.allocationSize(0); + } + } + return new FFIConverter(); +})(); + /** * Enum representing the push notification modes for a room. */ @@ -29347,6 +29562,23 @@ export class MediaSource ); } + public static fromUrl(url: string): MediaSourceInterface /*throws*/ { + return FfiConverterTypeMediaSource.lift( + rustCallWithError( + /*liftError:*/ FfiConverterTypeClientError.lift.bind( + FfiConverterTypeClientError + ), + /*caller:*/ (callStatus) => { + return nativeModule().uniffi_matrix_sdk_ffi_fn_constructor_mediasource_from_url( + FfiConverterString.lower(url), + callStatus + ); + }, + /*liftString:*/ FfiConverterString.lift + ) + ); + } + public toJson(): string { return FfiConverterString.lift( rustCall( @@ -30972,6 +31204,27 @@ export interface RoomInterface { signal: AbortSignal; }) /*throws*/ : Promise; membership(): Membership; + /** + * A timeline instance that can be configured to only include RoomMessage + * type events and filter those further based on their message type. + * + * Virtual timeline items will still be provided and the + * `default_event_filter` will be applied before everything else. + * + * # Arguments + * + * * `internal_id_prefix` - An optional String that will be prepended to + * all the timeline item's internal IDs, making it possible to + * distinguish different timeline instances from each other. + * + * * `allowed_message_types` - A list of `RoomMessageEventMessageType` that + * will be allowed to appear in the timeline + */ + messageFilteredTimeline( + internalIdPrefix: string | undefined, + allowedMessageTypes: Array, + asyncOpts_?: { signal: AbortSignal } + ) /*throws*/ : Promise; ownUserId(): string; pinnedEventsTimeline( internalIdPrefix: string | undefined, @@ -32618,6 +32871,64 @@ export class Room extends UniffiAbstractObject implements RoomInterface { ); } + /** + * A timeline instance that can be configured to only include RoomMessage + * type events and filter those further based on their message type. + * + * Virtual timeline items will still be provided and the + * `default_event_filter` will be applied before everything else. + * + * # Arguments + * + * * `internal_id_prefix` - An optional String that will be prepended to + * all the timeline item's internal IDs, making it possible to + * distinguish different timeline instances from each other. + * + * * `allowed_message_types` - A list of `RoomMessageEventMessageType` that + * will be allowed to appear in the timeline + */ + public async messageFilteredTimeline( + internalIdPrefix: string | undefined, + allowedMessageTypes: 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_room_message_filtered_timeline( + uniffiTypeRoomObjectFactory.clonePointer(this), + FfiConverterOptionalString.lower(internalIdPrefix), + FfiConverterArrayTypeRoomMessageEventMessageType.lower( + allowedMessageTypes + ) + ); + }, + /*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:*/ FfiConverterTypeTimeline.lift.bind( + FfiConverterTypeTimeline + ), + /*liftString:*/ FfiConverterString.lift, + /*asyncOpts:*/ asyncOpts_, + /*errorHandler:*/ FfiConverterTypeClientError.lift.bind( + FfiConverterTypeClientError + ) + ); + } catch (__error: any) { + if (uniffiIsDebug && __error instanceof Error) { + __error.stack = __stack; + } + throw __error; + } + } + public ownUserId(): string { return FfiConverterString.lift( rustCall( @@ -40615,6 +40926,11 @@ const FfiConverterOptionalTypeUserIdentity = new FfiConverterOptional( FfiConverterTypeUserIdentity ); +// FfiConverter for Array | undefined +const FfiConverterOptionalArrayTypeRoomHero = new FfiConverterOptional( + FfiConverterArrayTypeRoomHero +); + // FfiConverter for Array | undefined const FfiConverterOptionalArrayTypeRoomMember = new FfiConverterOptional( FfiConverterArrayTypeRoomMember @@ -40658,6 +40974,11 @@ const FfiConverterArrayTypeRoomListEntriesUpdate = new FfiConverterArray( FfiConverterTypeRoomListEntriesUpdate ); +// FfiConverter for Array +const FfiConverterArrayTypeRoomMessageEventMessageType = new FfiConverterArray( + FfiConverterTypeRoomMessageEventMessageType +); + // FfiConverter for Array const FfiConverterArrayTypeSlidingSyncVersion = new FfiConverterArray( FfiConverterTypeSlidingSyncVersion @@ -40726,6 +41047,14 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_func_content_without_relation_from_message' ); } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_func_create_caption_edit() !== + 49747 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_func_create_caption_edit' + ); + } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_func_gen_transaction_id() !== 15808 @@ -40797,14 +41126,6 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_func_matrix_to_user_permalink' ); } - if ( - nativeModule().uniffi_matrix_sdk_ffi_checksum_func_media_source_from_url() !== - 12165 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_matrix_sdk_ffi_checksum_func_media_source_from_url' - ); - } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_func_message_event_content_from_html() !== 37203 @@ -40899,22 +41220,6 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_func_suggested_role_for_power_level' ); } - if ( - nativeModule().uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json() !== - 2998 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json' - ); - } - if ( - nativeModule().uniffi_matrix_sdk_ffi_checksum_method_mediasource_url() !== - 34026 - ) { - throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_matrix_sdk_ffi_checksum_method_mediasource_url' - ); - } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_roommessageeventcontentwithoutrelation_with_mentions() !== 8867 @@ -41931,6 +42236,22 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_method_mediafilehandle_persist' ); } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json() !== + 23306 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_mediasource_to_json' + ); + } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_mediasource_url() !== + 62692 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_mediasource_url' + ); + } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_notification() !== 2524 @@ -42493,6 +42814,14 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_method_room_membership' ); } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_method_room_message_filtered_timeline() !== + 47862 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_method_room_message_filtered_timeline' + ); + } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_method_room_own_user_id() !== 39510 @@ -43664,20 +43993,28 @@ function uniffiEnsureInitialized() { 'uniffi_matrix_sdk_ffi_checksum_method_widgetdriverhandle_send' ); } + if ( + nativeModule().uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new() !== + 27991 + ) { + throw new UniffiInternalError.ApiChecksumMismatch( + 'uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new' + ); + } if ( nativeModule().uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_json() !== - 29216 + 10564 ) { throw new UniffiInternalError.ApiChecksumMismatch( 'uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_json' ); } if ( - nativeModule().uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new() !== - 27991 + nativeModule().uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_url() !== + 11983 ) { throw new UniffiInternalError.ApiChecksumMismatch( - 'uniffi_matrix_sdk_ffi_checksum_constructor_clientbuilder_new' + 'uniffi_matrix_sdk_ffi_checksum_constructor_mediasource_from_url' ); } if ( @@ -44137,6 +44474,7 @@ export default Object.freeze({ FfiConverterTypeRoomMember, FfiConverterTypeRoomMembersIterator, FfiConverterTypeRoomMessageEventContentWithoutRelation, + FfiConverterTypeRoomMessageEventMessageType, FfiConverterTypeRoomNotificationMode, FfiConverterTypeRoomNotificationSettings, FfiConverterTypeRoomPowerLevels, diff --git a/ubrn.yaml b/ubrn.yaml index 77662fd..cd1965e 100644 --- a/ubrn.yaml +++ b/ubrn.yaml @@ -1,7 +1,7 @@ --- crate: repo: https://github.com/matrix-org/matrix-rust-sdk - rev: 0b16d488adc6122e7bacb6e11f5e39641fecc774 # matrix-sdk-0.8.0 + rev: ee93c278dff6f343b322bbf2a8be4115cfb30b40 # matrix-sdk-ffi/20241204 manifestPath: bindings/matrix-sdk-ffi/Cargo.toml android: cargoExtras: []