ffi-bindings 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +28139 -0
- package/package.json +12 -3
- package/src/generated/matrix_sdk.ts +1843 -0
- package/src/generated/matrix_sdk_base.ts +252 -0
- package/src/generated/matrix_sdk_common.ts +370 -0
- package/src/generated/matrix_sdk_crypto.ts +1280 -0
- package/src/generated/matrix_sdk_ffi.ts +65263 -0
- package/src/generated/matrix_sdk_ui.ts +816 -0
- package/src/generated/wasm-bindgen/index.d.ts +5455 -0
- package/src/generated/wasm-bindgen/index.js +14223 -0
- package/src/generated/wasm-bindgen/index_bg.wasm +0 -0
- package/src/generated/wasm-bindgen/index_bg.wasm.d.ts +2840 -0
- package/src/generated-compat/matrix_sdk.js +20 -3
- package/src/generated-compat/matrix_sdk_base.js +11 -3
- package/src/generated-compat/matrix_sdk_common.js +10 -3
- package/src/generated-compat/matrix_sdk_crypto.js +15 -3
- package/src/generated-compat/matrix_sdk_ffi.js +259 -259
- package/src/generated-compat/matrix_sdk_ui.js +10 -3
- package/src/generated-compat/wasm-bindgen/index.d.ts +4 -4
- package/src/generated-compat/wasm-bindgen/index.js +155 -221
- package/src/generated-compat/wasm-bindgen/index_bg.wasm +0 -0
- package/src/generated-compat/wasm-bindgen/index_bg.wasm.d.ts +4 -4
- package/src/index.web.js +14 -32
- package/src/index.web.js.bak +28 -46
- package/src/index.web.ts +46 -0
- package/src/index.web.ts.bak +46 -0
- package/src/generated-compat/wasm-bindgen/index.d.js +0 -66
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var _process;function
|
|
1
|
+
var _process;function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}// This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
|
|
2
2
|
// Trust me, you don't want to mess with it!
|
|
3
3
|
/* tslint:disable *//* eslint-disable */// @ts-nocheck
|
|
4
|
-
import*as wasmBundle from"./wasm-bindgen/index.js";import
|
|
4
|
+
import*as wasmBundle from"./wasm-bindgen/index.js";import*as uniffi from"uniffi-bindgen-react-native";var AbstractFfiConverterByteArray=uniffi.AbstractFfiConverterByteArray,FfiConverterArray=uniffi.FfiConverterArray,FfiConverterArrayBuffer=uniffi.FfiConverterArrayBuffer,FfiConverterBool=uniffi.FfiConverterBool,FfiConverterCallback=uniffi.FfiConverterCallback,FfiConverterDuration=uniffi.FfiConverterDuration,FfiConverterFloat32=uniffi.FfiConverterFloat32,FfiConverterFloat64=uniffi.FfiConverterFloat64,FfiConverterInt32=uniffi.FfiConverterInt32,FfiConverterInt64=uniffi.FfiConverterInt64,FfiConverterMap=uniffi.FfiConverterMap,FfiConverterObject=uniffi.FfiConverterObject,FfiConverterOptional=uniffi.FfiConverterOptional,FfiConverterUInt16=uniffi.FfiConverterUInt16,FfiConverterUInt32=uniffi.FfiConverterUInt32,FfiConverterUInt64=uniffi.FfiConverterUInt64,FfiConverterUInt8=uniffi.FfiConverterUInt8,UniffiAbstractObject=uniffi.UniffiAbstractObject,UniffiEnum=uniffi.UniffiEnum,UniffiError=uniffi.UniffiError,UniffiInternalError=uniffi.UniffiInternalError,UniffiResult=uniffi.UniffiResult,UniffiRustCaller=uniffi.UniffiRustCaller,destructorGuardSymbol=uniffi.destructorGuardSymbol,pointerLiteralSymbol=uniffi.pointerLiteralSymbol,uniffiCreateFfiConverterString=uniffi.uniffiCreateFfiConverterString,uniffiCreateRecord=uniffi.uniffiCreateRecord,uniffiRustCallAsync=uniffi.uniffiRustCallAsync,uniffiTraitInterfaceCall=uniffi.uniffiTraitInterfaceCall,uniffiTraitInterfaceCallWithError=uniffi.uniffiTraitInterfaceCallWithError,uniffiTypeNameSymbol=uniffi.uniffiTypeNameSymbol,variantOrdinalSymbol=uniffi.variantOrdinalSymbol;// Get converters from the other files, if any.
|
|
5
5
|
import uniffiMatrixSdkModule from"./matrix_sdk";import uniffiMatrixSdkBaseModule from"./matrix_sdk_base";import uniffiMatrixSdkCommonModule from"./matrix_sdk_common";import uniffiMatrixSdkCryptoModule from"./matrix_sdk_crypto";import uniffiMatrixSdkUiModule from"./matrix_sdk_ui";var _uniffiMatrixSdkModul=uniffiMatrixSdkModule.converters,FfiConverterTypeBackupDownloadStrategy=_uniffiMatrixSdkModul.FfiConverterTypeBackupDownloadStrategy,FfiConverterTypeOAuthAuthorizationData=_uniffiMatrixSdkModul.FfiConverterTypeOAuthAuthorizationData,FfiConverterTypePaginationStatus=_uniffiMatrixSdkModul.FfiConverterTypePaginationStatus,FfiConverterTypeRoomMemberRole=_uniffiMatrixSdkModul.FfiConverterTypeRoomMemberRole,FfiConverterTypeRoomPowerLevelChanges=_uniffiMatrixSdkModul.FfiConverterTypeRoomPowerLevelChanges,FfiConverterTypeServerVendorInfo=_uniffiMatrixSdkModul.FfiConverterTypeServerVendorInfo,FfiConverterTypeVirtualElementCallWidgetConfig=_uniffiMatrixSdkModul.FfiConverterTypeVirtualElementCallWidgetConfig,FfiConverterTypeVirtualElementCallWidgetProperties=_uniffiMatrixSdkModul.FfiConverterTypeVirtualElementCallWidgetProperties;var _uniffiMatrixSdkBaseM=uniffiMatrixSdkBaseModule.converters,FfiConverterTypeEncryptionState=_uniffiMatrixSdkBaseM.FfiConverterTypeEncryptionState,FfiConverterTypeMediaRetentionPolicy=_uniffiMatrixSdkBaseM.FfiConverterTypeMediaRetentionPolicy;var FfiConverterTypeBackgroundTaskFailureReason=uniffiMatrixSdkCommonModule.converters.FfiConverterTypeBackgroundTaskFailureReason;var _uniffiMatrixSdkCrypt=uniffiMatrixSdkCryptoModule.converters,FfiConverterTypeCollectStrategy=_uniffiMatrixSdkCrypt.FfiConverterTypeCollectStrategy,FfiConverterTypeDecryptionSettings=_uniffiMatrixSdkCrypt.FfiConverterTypeDecryptionSettings,FfiConverterTypeIdentityState=_uniffiMatrixSdkCrypt.FfiConverterTypeIdentityState,FfiConverterTypeQrCodeIntent=_uniffiMatrixSdkCrypt.FfiConverterTypeQrCodeIntent,FfiConverterTypeUtdCause=_uniffiMatrixSdkCrypt.FfiConverterTypeUtdCause;var _uniffiMatrixSdkUiMod=uniffiMatrixSdkUiModule.converters,FfiConverterTypeEventItemOrigin=_uniffiMatrixSdkUiMod.FfiConverterTypeEventItemOrigin,FfiConverterTypeLatestEventValueLocalState=_uniffiMatrixSdkUiMod.FfiConverterTypeLatestEventValueLocalState,FfiConverterTypeRoomPinnedEventsChange=_uniffiMatrixSdkUiMod.FfiConverterTypeRoomPinnedEventsChange,FfiConverterTypeSpaceRoomListPaginationState=_uniffiMatrixSdkUiMod.FfiConverterTypeSpaceRoomListPaginationState,FfiConverterTypeThreadListPaginationState=_uniffiMatrixSdkUiMod.FfiConverterTypeThreadListPaginationState,FfiConverterTypeTimelineEventFocusThreadMode=_uniffiMatrixSdkUiMod.FfiConverterTypeTimelineEventFocusThreadMode,FfiConverterTypeTimelineEventShieldStateCode=_uniffiMatrixSdkUiMod.FfiConverterTypeTimelineEventShieldStateCode,FfiConverterTypeTimelineReadReceiptTracking=_uniffiMatrixSdkUiMod.FfiConverterTypeTimelineReadReceiptTracking;var nativeModule=function nativeModule(){return wasmBundle;};var uniffiCaller=new UniffiRustCaller(function(){return new wasmBundle.RustCallStatus();});var uniffiIsDebug=// @ts-ignore -- The process global might not be defined
|
|
6
6
|
(typeof process==="undefined"?"undefined":_typeof(process))!=="object"||// @ts-ignore -- The process global might not be defined
|
|
7
7
|
((_process=process)===null||_process===void 0||(_process=_process.env)===null||_process===void 0?void 0:_process.NODE_ENV)!=="production"||false;// Public interface members begin here.
|
|
@@ -72,7 +72,7 @@ export function sdkGitSha(){return FfiConverterString.lift(uniffiCaller.rustCall
|
|
|
72
72
|
* * `room` - A Matrix room which is used to query the logged in username
|
|
73
73
|
* * `props` - Properties from the client that can be used by a widget to adapt
|
|
74
74
|
* to the client. e.g. language, font-scale...
|
|
75
|
-
*/export function generateWebviewUrl(
|
|
75
|
+
*/export async function generateWebviewUrl(widgetSettings,room,props,asyncOpts_)/*throws*/{var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_func_generate_webview_url(FfiConverterTypeWidgetSettings.lower(widgetSettings),FfiConverterTypeRoom.lower(room),FfiConverterTypeClientProperties.lower(props));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeParseError.lift.bind(FfiConverterTypeParseError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
76
76
|
* The Capabilities required to run a element call widget.
|
|
77
77
|
*
|
|
78
78
|
* This is intended to be used in combination with: `acquire_capabilities` of
|
|
@@ -85,7 +85,7 @@ export function sdkGitSha(){return FfiConverterString.lift(uniffiCaller.rustCall
|
|
|
85
85
|
* Editing and extending the capabilities from this function is also possible,
|
|
86
86
|
* but should only be done as temporal workarounds until this function is
|
|
87
87
|
* adjusted
|
|
88
|
-
*/
|
|
88
|
+
*/export function getElementCallRequiredPermissions(ownUserId,ownDeviceId){return FfiConverterTypeWidgetCapabilities.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_func_get_element_call_required_permissions(FfiConverterString.lower(ownUserId),FfiConverterString.lower(ownDeviceId),callStatus);},/*liftString:*/FfiConverterString.lift));}export function makeWidgetDriver(settings)/*throws*/{return FfiConverterTypeWidgetDriverAndHandle.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeParseError.lift.bind(FfiConverterTypeParseError),/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_func_make_widget_driver(FfiConverterTypeWidgetSettings.lower(settings),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
89
89
|
* `WidgetSettings` are usually created from a state event.
|
|
90
90
|
* (currently unimplemented)
|
|
91
91
|
*
|
|
@@ -3970,9 +3970,9 @@ function CheckCodeSender(pointer){var _this594;_classCallCheck(this,CheckCodeSen
|
|
|
3970
3970
|
* # Arguments
|
|
3971
3971
|
*
|
|
3972
3972
|
* * `check_code` - The check code in digits representation.
|
|
3973
|
-
*/_inherits(CheckCodeSender,_UniffiAbstractObject);return _createClass(CheckCodeSender,[{key:"send",value:
|
|
3973
|
+
*/_inherits(CheckCodeSender,_UniffiAbstractObject);return _createClass(CheckCodeSender,[{key:"send",value:async function send(code,asyncOpts_)/*throws*/{var _this595=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_checkcodesender_send(uniffiTypeCheckCodeSenderObjectFactory.clonePointer(_this595),FfiConverterUInt8.lower(code));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeHumanQrLoginError.lift.bind(FfiConverterTypeHumanQrLoginError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3974
3974
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3975
|
-
*/
|
|
3975
|
+
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeCheckCodeSenderObjectFactory.pointer(this);uniffiTypeCheckCodeSenderObjectFactory.freePointer(pointer);uniffiTypeCheckCodeSenderObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeCheckCodeSenderObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeCheckCodeSenderObjectFactory=function(){/// <reference lib="es2021" />
|
|
3976
3976
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeCheckCodeSenderObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(CheckCodeSender.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="CheckCodeSender";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
3977
3977
|
markDestroyed:function markDestroyed(){return undefined;}};if(registry){registry.register(ptr,p,ptr);}return ptr;},unbless:function unbless(ptr){if(registry){registry.unregister(ptr);}},pointer:function pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer:function clonePointer(obj){var pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_clone_checkcodesender(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},freePointer:function freePointer(pointer){uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_free_checkcodesender(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},isConcreteType:function isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==="CheckCodeSender";}};}();// FfiConverter for CheckCodeSenderLike
|
|
3978
3978
|
var FfiConverterTypeCheckCodeSender=new FfiConverterObject(uniffiTypeCheckCodeSenderObjectFactory);/**
|
|
@@ -3981,12 +3981,12 @@ var FfiConverterTypeCheckCodeSender=new FfiConverterObject(uniffiTypeCheckCodeSe
|
|
|
3981
3981
|
function Client(pointer){var _this596;_classCallCheck(this,Client);_this596=_callSuper(this,Client);_defineProperty(_this596,uniffiTypeNameSymbol,"Client");_defineProperty(_this596,destructorGuardSymbol,void 0);_defineProperty(_this596,pointerLiteralSymbol,void 0);_this596[pointerLiteralSymbol]=pointer;_this596[destructorGuardSymbol]=uniffiTypeClientObjectFactory.bless(pointer);return _this596;}/**
|
|
3982
3982
|
* Aborts an existing OIDC login operation that might have been cancelled,
|
|
3983
3983
|
* failed etc.
|
|
3984
|
-
*/_inherits(Client,_UniffiAbstractObject2);return _createClass(Client,[{key:"abortOidcAuth",value:
|
|
3984
|
+
*/_inherits(Client,_UniffiAbstractObject2);return _createClass(Client,[{key:"abortOidcAuth",value:async function abortOidcAuth(authorizationData,asyncOpts_){var _this597=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_abort_oidc_auth(uniffiTypeClientObjectFactory.clonePointer(_this597),FfiConverterTypeOAuthAuthorizationData.lower(authorizationData));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3985
3985
|
* Get the content of the event of the given type out of the account data
|
|
3986
3986
|
* store.
|
|
3987
3987
|
*
|
|
3988
3988
|
* It will be returned as a JSON string.
|
|
3989
|
-
*/
|
|
3989
|
+
*/},{key:"accountData",value:async function accountData(eventType,asyncOpts_)/*throws*/{var _this598=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_account_data(uniffiTypeClientObjectFactory.clonePointer(_this598),FfiConverterString.lower(eventType));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"accountUrl",value:async function accountUrl(action,asyncOpts_)/*throws*/{var _this599=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_account_url(uniffiTypeClientObjectFactory.clonePointer(_this599),FfiConverterOptionalTypeAccountManagementAction.lower(action));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3990
3990
|
* Find all sliding sync versions that are available.
|
|
3991
3991
|
*
|
|
3992
3992
|
* Be careful: This method may hit the store and will send new requests for
|
|
@@ -3994,21 +3994,21 @@ function Client(pointer){var _this596;_classCallCheck(this,Client);_this596=_cal
|
|
|
3994
3994
|
*
|
|
3995
3995
|
* If `.well-known` or `/versions` is unreachable, it will simply move
|
|
3996
3996
|
* potential sliding sync versions aside. No error will be reported.
|
|
3997
|
-
*/},{key:"availableSlidingSyncVersions",value:
|
|
3997
|
+
*/},{key:"availableSlidingSyncVersions",value:async function availableSlidingSyncVersions(asyncOpts_){var _this600=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_available_sliding_sync_versions(uniffiTypeClientObjectFactory.clonePointer(_this600));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayTypeSlidingSyncVersion.lift.bind(FfiConverterArrayTypeSlidingSyncVersion),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
3998
3998
|
* Sends a request to retrieve the avatar URL. Will fill the cache used by
|
|
3999
3999
|
* [`Self::cached_avatar_url`] on success.
|
|
4000
|
-
*/
|
|
4000
|
+
*/},{key:"avatarUrl",value:async function avatarUrl(asyncOpts_)/*throws*/{var _this601=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_avatar_url(uniffiTypeClientObjectFactory.clonePointer(_this601));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4001
4001
|
* Waits until an at least partially synced room is received, and returns
|
|
4002
4002
|
* it.
|
|
4003
4003
|
*
|
|
4004
4004
|
* **Note: this function will loop endlessly until either it finds the room
|
|
4005
4005
|
* or an externally set timeout happens.**
|
|
4006
|
-
*/
|
|
4006
|
+
*/},{key:"awaitRoomRemoteEcho",value:async function awaitRoomRemoteEcho(roomId,asyncOpts_)/*throws*/{var _this602=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_await_room_remote_echo(uniffiTypeClientObjectFactory.clonePointer(_this602),FfiConverterString.lower(roomId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeRoom.lift.bind(FfiConverterTypeRoom),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4007
4007
|
* Retrieves an avatar cached from a previous call to [`Self::avatar_url`].
|
|
4008
|
-
*/
|
|
4008
|
+
*/},{key:"cachedAvatarUrl",value:async function cachedAvatarUrl(asyncOpts_)/*throws*/{var _this603=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_cached_avatar_url(uniffiTypeClientObjectFactory.clonePointer(_this603));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4009
4009
|
* Lets the user know whether this is an `m.login.password` based
|
|
4010
4010
|
* auth and if the account can actually be deactivated
|
|
4011
|
-
*/
|
|
4011
|
+
*/},{key:"canDeactivateAccount",value:function canDeactivateAccount(){var _this604=this;return FfiConverterBool.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_can_deactivate_account(uniffiTypeClientObjectFactory.clonePointer(_this604),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4012
4012
|
* Clear all the non-critical caches for this Client instance.
|
|
4013
4013
|
*
|
|
4014
4014
|
* WARNING: This will clear all the caches, including the base store (state
|
|
@@ -4031,11 +4031,11 @@ function Client(pointer){var _this596;_classCallCheck(this,Client);_this596=_cal
|
|
|
4031
4031
|
* will start as if they were empty.
|
|
4032
4032
|
* - This will empty the media cache according to the current media
|
|
4033
4033
|
* retention policy.
|
|
4034
|
-
*/},{key:"clearCaches",value:
|
|
4034
|
+
*/},{key:"clearCaches",value:async function clearCaches(syncService,asyncOpts_)/*throws*/{var _this605=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_clear_caches(uniffiTypeClientObjectFactory.clonePointer(_this605),FfiConverterOptionalTypeSyncService.lower(syncService));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"createRoom",value:async function createRoom(request,asyncOpts_)/*throws*/{var _this606=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_create_room(uniffiTypeClientObjectFactory.clonePointer(_this606),FfiConverterTypeCreateRoomParameters.lower(request));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4035
4035
|
* Login using JWT
|
|
4036
4036
|
* This is an implementation of the custom_login https://docs.rs/matrix-sdk/latest/matrix_sdk/matrix_auth/struct.MatrixAuth.html#method.login_custom
|
|
4037
4037
|
* For more information on logging in with JWT: https://element-hq.github.io/synapse/latest/jwt.html
|
|
4038
|
-
*/},{key:"customLoginWithJwt",value:
|
|
4038
|
+
*/},{key:"customLoginWithJwt",value:async function customLoginWithJwt(jwt,initialDeviceName,deviceId,asyncOpts_)/*throws*/{var _this607=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_custom_login_with_jwt(uniffiTypeClientObjectFactory.clonePointer(_this607),FfiConverterString.lower(jwt),FfiConverterOptionalString.lower(initialDeviceName),FfiConverterOptionalString.lower(deviceId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4039
4039
|
* Deactivate this account definitively.
|
|
4040
4040
|
* Similarly to `encryption::reset_identity` this
|
|
4041
4041
|
* will only work with password-based authentication (`m.login.password`)
|
|
@@ -4046,9 +4046,9 @@ function Client(pointer){var _this596;_classCallCheck(this,Client);_this596=_cal
|
|
|
4046
4046
|
* API][uiaa]. The first request needs to set this to `None` and will
|
|
4047
4047
|
* always fail and the same request needs to be made but this time with
|
|
4048
4048
|
* some `auth_data` provided.
|
|
4049
|
-
*/
|
|
4049
|
+
*/},{key:"deactivateAccount",value:async function deactivateAccount(authData,eraseData,asyncOpts_)/*throws*/{var _this608=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_deactivate_account(uniffiTypeClientObjectFactory.clonePointer(_this608),FfiConverterOptionalTypeAuthData.lower(authData),FfiConverterBool.lower(eraseData));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4050
4050
|
* Deletes a pusher of given pusher ids
|
|
4051
|
-
*/
|
|
4051
|
+
*/},{key:"deletePusher",value:async function deletePusher(identifiers,asyncOpts_)/*throws*/{var _this609=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_delete_pusher(uniffiTypeClientObjectFactory.clonePointer(_this609),FfiConverterTypePusherIdentifiers.lower(identifiers));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"deviceId",value:function deviceId()/*throws*/{var _this610=this;return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError),/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_device_id(uniffiTypeClientObjectFactory.clonePointer(_this610),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"displayName",value:async function displayName(asyncOpts_)/*throws*/{var _this611=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_display_name(uniffiTypeClientObjectFactory.clonePointer(_this611));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4052
4052
|
* Enables or disables all the room send queues at once.
|
|
4053
4053
|
*
|
|
4054
4054
|
* When connectivity is lost on a device, it is recommended to disable the
|
|
@@ -4056,31 +4056,31 @@ function Client(pointer){var _this596;_classCallCheck(this,Client);_this596=_cal
|
|
|
4056
4056
|
*
|
|
4057
4057
|
* This can be controlled for individual rooms, using
|
|
4058
4058
|
* [`Room::enable_send_queue`].
|
|
4059
|
-
*/},{key:"enableAllSendQueues",value:
|
|
4059
|
+
*/},{key:"enableAllSendQueues",value:async function enableAllSendQueues(enable,asyncOpts_){var _this612=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_enable_all_send_queues(uniffiTypeClientObjectFactory.clonePointer(_this612),FfiConverterBool.lower(enable));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4060
4060
|
* Whether to enable automatic backpagination under certain conditions
|
|
4061
4061
|
* (e.g. when processing read receipts).
|
|
4062
4062
|
*
|
|
4063
4063
|
* This is an experimental feature, and might cause performance issues on
|
|
4064
4064
|
* large accounts. Use with caution.
|
|
4065
|
-
*/
|
|
4065
|
+
*/},{key:"enableAutomaticBackpagination",value:function enableAutomaticBackpagination(){var _this613=this;uniffiCaller.rustCall(/*caller:*/function(callStatus){nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_enable_automatic_backpagination(uniffiTypeClientObjectFactory.clonePointer(_this613),callStatus);},/*liftString:*/FfiConverterString.lift);}/**
|
|
4066
4066
|
* Enables or disables progress reporting for media uploads in the send
|
|
4067
4067
|
* queue.
|
|
4068
4068
|
*/},{key:"enableSendQueueUploadProgress",value:function enableSendQueueUploadProgress(enable){var _this614=this;uniffiCaller.rustCall(/*caller:*/function(callStatus){nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_enable_send_queue_upload_progress(uniffiTypeClientObjectFactory.clonePointer(_this614),FfiConverterBool.lower(enable),callStatus);},/*liftString:*/FfiConverterString.lift);}},{key:"encryption",value:function encryption(){var _this615=this;return FfiConverterTypeEncryption.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_encryption(uniffiTypeClientObjectFactory.clonePointer(_this615),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4069
4069
|
* Fetch the media preview configuration from the server.
|
|
4070
|
-
*/},{key:"fetchMediaPreviewConfig",value:
|
|
4070
|
+
*/},{key:"fetchMediaPreviewConfig",value:async function fetchMediaPreviewConfig(asyncOpts_)/*throws*/{var _this616=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_fetch_media_preview_config(uniffiTypeClientObjectFactory.clonePointer(_this616));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalTypeMediaPreviewConfig.lift.bind(FfiConverterOptionalTypeMediaPreviewConfig),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"getDmRoom",value:function getDmRoom(userId)/*throws*/{var _this617=this;return FfiConverterOptionalTypeRoom.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError),/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_get_dm_room(uniffiTypeClientObjectFactory.clonePointer(_this617),FfiConverterString.lower(userId),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4071
4071
|
* Get the invite request avatars display policy
|
|
4072
4072
|
* currently stored in the cache.
|
|
4073
|
-
*/},{key:"getInviteAvatarsDisplayPolicy",value:
|
|
4073
|
+
*/},{key:"getInviteAvatarsDisplayPolicy",value:async function getInviteAvatarsDisplayPolicy(asyncOpts_)/*throws*/{var _this618=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_get_invite_avatars_display_policy(uniffiTypeClientObjectFactory.clonePointer(_this618));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalTypeInviteAvatars.lift.bind(FfiConverterOptionalTypeInviteAvatars),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4074
4074
|
* Gets the `max_upload_size` value from the homeserver, which controls the
|
|
4075
4075
|
* max size a media upload request can have.
|
|
4076
|
-
*/
|
|
4076
|
+
*/},{key:"getMaxMediaUploadSize",value:async function getMaxMediaUploadSize(asyncOpts_)/*throws*/{var _this619=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_get_max_media_upload_size(uniffiTypeClientObjectFactory.clonePointer(_this619));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterUInt64.lift.bind(FfiConverterUInt64),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"getMediaContent",value:async function getMediaContent(mediaSource,asyncOpts_)/*throws*/{var _this620=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_get_media_content(uniffiTypeClientObjectFactory.clonePointer(_this620),FfiConverterTypeMediaSource.lower(mediaSource));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayBuffer.lift.bind(FfiConverterArrayBuffer),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4077
4077
|
* Retrieves a media file from the media source
|
|
4078
4078
|
*
|
|
4079
4079
|
* Not available on Wasm platforms, due to lack of accessible file system.
|
|
4080
|
-
*/},{key:"getMediaFile",value:
|
|
4080
|
+
*/},{key:"getMediaFile",value:async function getMediaFile(mediaSource,filename,mimeType,useCache,tempDir,asyncOpts_)/*throws*/{var _this621=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_get_media_file(uniffiTypeClientObjectFactory.clonePointer(_this621),FfiConverterTypeMediaSource.lower(mediaSource),FfiConverterOptionalString.lower(filename),FfiConverterString.lower(mimeType),FfiConverterBool.lower(useCache),FfiConverterOptionalString.lower(tempDir));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeMediaFileHandle.lift.bind(FfiConverterTypeMediaFileHandle),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4081
4081
|
* Get the media previews timeline display policy
|
|
4082
4082
|
* currently stored in the cache.
|
|
4083
|
-
*/
|
|
4083
|
+
*/},{key:"getMediaPreviewDisplayPolicy",value:async function getMediaPreviewDisplayPolicy(asyncOpts_)/*throws*/{var _this622=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_get_media_preview_display_policy(uniffiTypeClientObjectFactory.clonePointer(_this622));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalTypeMediaPreviews.lift.bind(FfiConverterOptionalTypeMediaPreviews),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"getMediaThumbnail",value:async function getMediaThumbnail(mediaSource,width,height,asyncOpts_)/*throws*/{var _this623=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_get_media_thumbnail(uniffiTypeClientObjectFactory.clonePointer(_this623),FfiConverterTypeMediaSource.lower(mediaSource),FfiConverterUInt64.lower(width),FfiConverterUInt64.lower(height));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayBuffer.lift.bind(FfiConverterArrayBuffer),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"getNotificationSettings",value:async function getNotificationSettings(asyncOpts_){var _this624=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_get_notification_settings(uniffiTypeClientObjectFactory.clonePointer(_this624));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeNotificationSettings.lift.bind(FfiConverterTypeNotificationSettings),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"getProfile",value:async function getProfile(userId,asyncOpts_)/*throws*/{var _this625=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_get_profile(uniffiTypeClientObjectFactory.clonePointer(_this625),FfiConverterString.lower(userId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeUserProfile.lift.bind(FfiConverterTypeUserProfile),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"getRecentlyVisitedRooms",value:async function getRecentlyVisitedRooms(asyncOpts_)/*throws*/{var _this626=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_get_recently_visited_rooms(uniffiTypeClientObjectFactory.clonePointer(_this626));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayString.lift.bind(FfiConverterArrayString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4084
4084
|
* Get a room by its ID.
|
|
4085
4085
|
*
|
|
4086
4086
|
* # Arguments
|
|
@@ -4094,15 +4094,15 @@ function Client(pointer){var _this596;_classCallCheck(this,Client);_this596=_cal
|
|
|
4094
4094
|
* events.
|
|
4095
4095
|
*/},{key:"getRoom",value:function getRoom(roomId)/*throws*/{var _this627=this;return FfiConverterOptionalTypeRoom.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError),/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_get_room(uniffiTypeClientObjectFactory.clonePointer(_this627),FfiConverterString.lower(roomId),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4096
4096
|
* Given a room alias, get the preview of a room, to interact with it.
|
|
4097
|
-
*/},{key:"getRoomPreviewFromRoomAlias",value:
|
|
4097
|
+
*/},{key:"getRoomPreviewFromRoomAlias",value:async function getRoomPreviewFromRoomAlias(roomAlias,asyncOpts_)/*throws*/{var _this628=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_get_room_preview_from_room_alias(uniffiTypeClientObjectFactory.clonePointer(_this628),FfiConverterString.lower(roomAlias));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeRoomPreview.lift.bind(FfiConverterTypeRoomPreview),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4098
4098
|
* Given a room id, get the preview of a room, to interact with it.
|
|
4099
4099
|
*
|
|
4100
4100
|
* The list of `via_servers` must be a list of servers that know
|
|
4101
4101
|
* about the room and can resolve it, and that may appear as a `via`
|
|
4102
4102
|
* parameter in e.g. a permalink URL. This list can be empty.
|
|
4103
|
-
*/
|
|
4103
|
+
*/},{key:"getRoomPreviewFromRoomId",value:async function getRoomPreviewFromRoomId(roomId,viaServers,asyncOpts_)/*throws*/{var _this629=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_get_room_preview_from_room_id(uniffiTypeClientObjectFactory.clonePointer(_this629),FfiConverterString.lower(roomId),FfiConverterArrayString.lower(viaServers));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeRoomPreview.lift.bind(FfiConverterTypeRoomPreview),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"getSessionVerificationController",value:async function getSessionVerificationController(asyncOpts_)/*throws*/{var _this630=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_get_session_verification_controller(uniffiTypeClientObjectFactory.clonePointer(_this630));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeSessionVerificationController.lift.bind(FfiConverterTypeSessionVerificationController),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4104
4104
|
* Returns the sizes of the existing stores, if known.
|
|
4105
|
-
*/},{key:"getStoreSizes",value:
|
|
4105
|
+
*/},{key:"getStoreSizes",value:async function getStoreSizes(asyncOpts_)/*throws*/{var _this631=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_get_store_sizes(uniffiTypeClientObjectFactory.clonePointer(_this631));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeStoreSizes.lift.bind(FfiConverterTypeStoreSizes),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4106
4106
|
* Allows generic GET requests to be made through the SDK's internal HTTP
|
|
4107
4107
|
* client. This is useful when the caller's native HTTP client wouldn't
|
|
4108
4108
|
* have the same configuration (such as certificates, proxies, etc.) This
|
|
@@ -4111,17 +4111,17 @@ function Client(pointer){var _this596;_classCallCheck(this,Client);_this596=_cal
|
|
|
4111
4111
|
*
|
|
4112
4112
|
* Note: When an HTTP error occurs, the error response can be found in the
|
|
4113
4113
|
* `ClientError::Generic`'s `details` field.
|
|
4114
|
-
*/
|
|
4114
|
+
*/},{key:"getUrl",value:async function getUrl(url,asyncOpts_)/*throws*/{var _this632=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_get_url(uniffiTypeClientObjectFactory.clonePointer(_this632),FfiConverterString.lower(url));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayBuffer.lift.bind(FfiConverterArrayBuffer),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4115
4115
|
* The homeserver this client is configured to use.
|
|
4116
|
-
*/
|
|
4116
|
+
*/},{key:"homeserver",value:function homeserver(){var _this633=this;return FfiConverterString.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_homeserver(uniffiTypeClientObjectFactory.clonePointer(_this633),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"homeserverCapabilities",value:function homeserverCapabilities(){var _this634=this;return FfiConverterTypeHomeserverCapabilities.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_homeserver_capabilities(uniffiTypeClientObjectFactory.clonePointer(_this634),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4117
4117
|
* Information about login options for the client's homeserver.
|
|
4118
|
-
*/},{key:"homeserverLoginDetails",value:
|
|
4118
|
+
*/},{key:"homeserverLoginDetails",value:async function homeserverLoginDetails(asyncOpts_){var _this635=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_homeserver_login_details(uniffiTypeClientObjectFactory.clonePointer(_this635));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeHomeserverLoginDetails.lift.bind(FfiConverterTypeHomeserverLoginDetails),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"ignoreUser",value:async function ignoreUser(userId,asyncOpts_)/*throws*/{var _this636=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_ignore_user(uniffiTypeClientObjectFactory.clonePointer(_this636),FfiConverterString.lower(userId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"ignoredUsers",value:async function ignoredUsers(asyncOpts_)/*throws*/{var _this637=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_ignored_users(uniffiTypeClientObjectFactory.clonePointer(_this637));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayString.lift.bind(FfiConverterArrayString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4119
4119
|
* Checks if the server supports the LiveKit RTC focus for placing calls.
|
|
4120
|
-
*/},{key:"isLivekitRtcSupported",value:
|
|
4120
|
+
*/},{key:"isLivekitRtcSupported",value:async function isLivekitRtcSupported(asyncOpts_)/*throws*/{var _this638=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_is_livekit_rtc_supported(uniffiTypeClientObjectFactory.clonePointer(_this638));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4121
4121
|
* Checks if the server supports login using a QR code.
|
|
4122
|
-
*/
|
|
4122
|
+
*/},{key:"isLoginWithQrCodeSupported",value:async function isLoginWithQrCodeSupported(asyncOpts_)/*throws*/{var _this639=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_is_login_with_qr_code_supported(uniffiTypeClientObjectFactory.clonePointer(_this639));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4123
4123
|
* Checks if the server supports the report room API.
|
|
4124
|
-
*/
|
|
4124
|
+
*/},{key:"isReportRoomApiSupported",value:async function isReportRoomApiSupported(asyncOpts_)/*throws*/{var _this640=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_is_report_room_api_supported(uniffiTypeClientObjectFactory.clonePointer(_this640));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4125
4125
|
* Checks if a room alias is not in use yet.
|
|
4126
4126
|
*
|
|
4127
4127
|
* Returns:
|
|
@@ -4129,33 +4129,33 @@ function Client(pointer){var _this596;_classCallCheck(this,Client);_this596=_cal
|
|
|
4129
4129
|
* - `Ok(false)` if it's not (the resolve alias request returned a `404`
|
|
4130
4130
|
* status code).
|
|
4131
4131
|
* - An `Err` otherwise.
|
|
4132
|
-
*/
|
|
4132
|
+
*/},{key:"isRoomAliasAvailable",value:async function isRoomAliasAvailable(alias,asyncOpts_)/*throws*/{var _this641=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_is_room_alias_available(uniffiTypeClientObjectFactory.clonePointer(_this641),FfiConverterString.lower(alias));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4133
4133
|
* Join a room by its ID.
|
|
4134
4134
|
*
|
|
4135
4135
|
* Use this method when the homeserver already knows of the given room ID.
|
|
4136
4136
|
* Otherwise use `join_room_by_id_or_alias` so you can pass a list of
|
|
4137
4137
|
* server names for the homeserver to find the room.
|
|
4138
|
-
*/
|
|
4138
|
+
*/},{key:"joinRoomById",value:async function joinRoomById(roomId,asyncOpts_)/*throws*/{var _this642=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_join_room_by_id(uniffiTypeClientObjectFactory.clonePointer(_this642),FfiConverterString.lower(roomId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeRoom.lift.bind(FfiConverterTypeRoom),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4139
4139
|
* Join a room by its ID or alias.
|
|
4140
4140
|
*
|
|
4141
4141
|
* When supplying the room's ID, you can also supply a list of server names
|
|
4142
4142
|
* for the homeserver to find the room. Typically these server names
|
|
4143
4143
|
* come from a permalink's `via` parameters, or from resolving a room's
|
|
4144
4144
|
* alias into an ID.
|
|
4145
|
-
*/
|
|
4145
|
+
*/},{key:"joinRoomByIdOrAlias",value:async function joinRoomByIdOrAlias(roomIdOrAlias,serverNames,asyncOpts_)/*throws*/{var _this643=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_join_room_by_id_or_alias(uniffiTypeClientObjectFactory.clonePointer(_this643),FfiConverterString.lower(roomIdOrAlias),FfiConverterArrayString.lower(serverNames));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeRoom.lift.bind(FfiConverterTypeRoom),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4146
4146
|
* Knock on a room to join it using its ID or alias.
|
|
4147
|
-
*/
|
|
4147
|
+
*/},{key:"knock",value:async function knock(roomIdOrAlias,reason,serverNames,asyncOpts_)/*throws*/{var _this644=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_knock(uniffiTypeClientObjectFactory.clonePointer(_this644),FfiConverterString.lower(roomIdOrAlias),FfiConverterOptionalString.lower(reason),FfiConverterArrayString.lower(serverNames));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeRoom.lift.bind(FfiConverterTypeRoom),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4148
4148
|
* Login using a username and password.
|
|
4149
|
-
*/
|
|
4149
|
+
*/},{key:"login",value:async function login(username,password,initialDeviceName,deviceId,asyncOpts_)/*throws*/{var _this645=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_login(uniffiTypeClientObjectFactory.clonePointer(_this645),FfiConverterString.lower(username),FfiConverterString.lower(password),FfiConverterOptionalString.lower(initialDeviceName),FfiConverterOptionalString.lower(deviceId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4150
4150
|
* Login using an email and password.
|
|
4151
|
-
*/
|
|
4151
|
+
*/},{key:"loginWithEmail",value:async function loginWithEmail(email,password,initialDeviceName,deviceId,asyncOpts_)/*throws*/{var _this646=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_login_with_email(uniffiTypeClientObjectFactory.clonePointer(_this646),FfiConverterString.lower(email),FfiConverterString.lower(password),FfiConverterOptionalString.lower(initialDeviceName),FfiConverterOptionalString.lower(deviceId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4152
4152
|
* Completes the OIDC login process.
|
|
4153
|
-
*/
|
|
4153
|
+
*/},{key:"loginWithOidcCallback",value:async function loginWithOidcCallback(callbackUrl,asyncOpts_)/*throws*/{var _this647=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_login_with_oidc_callback(uniffiTypeClientObjectFactory.clonePointer(_this647),FfiConverterString.lower(callbackUrl));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeOidcError.lift.bind(FfiConverterTypeOidcError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4154
4154
|
* Log the current user out.
|
|
4155
|
-
*/
|
|
4155
|
+
*/},{key:"logout",value:async function logout(asyncOpts_)/*throws*/{var _this648=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_logout(uniffiTypeClientObjectFactory.clonePointer(_this648));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4156
4156
|
* Create a handler for granting login from this device to a new device by
|
|
4157
4157
|
* way of a QR code.
|
|
4158
|
-
*/
|
|
4158
|
+
*/},{key:"newGrantLoginWithQrCodeHandler",value:function newGrantLoginWithQrCodeHandler(){var _this649=this;return FfiConverterTypeGrantLoginWithQrCodeHandler.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_new_grant_login_with_qr_code_handler(uniffiTypeClientObjectFactory.clonePointer(_this649),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4159
4159
|
* Create a handler for requesting an existing device to grant login to
|
|
4160
4160
|
* this device by way of a QR code.
|
|
4161
4161
|
*
|
|
@@ -4163,7 +4163,7 @@ function Client(pointer){var _this596;_classCallCheck(this,Client);_this596=_cal
|
|
|
4163
4163
|
*
|
|
4164
4164
|
* * `oidc_configuration` - The data to restore or register the client with
|
|
4165
4165
|
* the server.
|
|
4166
|
-
*/},{key:"newLoginWithQrCodeHandler",value:function newLoginWithQrCodeHandler(oidcConfiguration){var _this650=this;return FfiConverterTypeLoginWithQrCodeHandler.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_new_login_with_qr_code_handler(uniffiTypeClientObjectFactory.clonePointer(_this650),FfiConverterTypeOidcConfiguration.lower(oidcConfiguration),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"notificationClient",value:
|
|
4166
|
+
*/},{key:"newLoginWithQrCodeHandler",value:function newLoginWithQrCodeHandler(oidcConfiguration){var _this650=this;return FfiConverterTypeLoginWithQrCodeHandler.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_new_login_with_qr_code_handler(uniffiTypeClientObjectFactory.clonePointer(_this650),FfiConverterTypeOidcConfiguration.lower(oidcConfiguration),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"notificationClient",value:async function notificationClient(processSetup,asyncOpts_)/*throws*/{var _this651=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_notification_client(uniffiTypeClientObjectFactory.clonePointer(_this651),FfiConverterTypeNotificationProcessSetup.lower(processSetup));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeNotificationClient.lift.bind(FfiConverterTypeNotificationClient),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4167
4167
|
* Subscribe to updates of global account data events.
|
|
4168
4168
|
*
|
|
4169
4169
|
* Be careful that only the most recent value can be observed. Subscribers
|
|
@@ -4178,7 +4178,7 @@ function Client(pointer){var _this596;_classCallCheck(this,Client);_this596=_cal
|
|
|
4178
4178
|
*/},{key:"observeRoomAccountDataEvent",value:function observeRoomAccountDataEvent(roomId,eventType,listener)/*throws*/{var _this653=this;return FfiConverterTypeTaskHandle.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError),/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_observe_room_account_data_event(uniffiTypeClientObjectFactory.clonePointer(_this653),FfiConverterString.lower(roomId),FfiConverterTypeRoomAccountDataEventType.lower(eventType),FfiConverterTypeRoomAccountDataListener.lower(listener),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4179
4179
|
* Perform database optimizations if any are available, i.e. vacuuming in
|
|
4180
4180
|
* SQLite.
|
|
4181
|
-
*/},{key:"optimizeStores",value:
|
|
4181
|
+
*/},{key:"optimizeStores",value:async function optimizeStores(asyncOpts_)/*throws*/{var _this654=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_optimize_stores(uniffiTypeClientObjectFactory.clonePointer(_this654));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4182
4182
|
* Register a handler for notifications generated from sync responses.
|
|
4183
4183
|
*
|
|
4184
4184
|
* The handler will be called during sync for each event that triggers
|
|
@@ -4190,35 +4190,35 @@ function Client(pointer){var _this596;_classCallCheck(this,Client);_this596=_cal
|
|
|
4190
4190
|
*
|
|
4191
4191
|
* This is useful for implementing custom notification logic, such as
|
|
4192
4192
|
* displaying local notifications or updating notification badges.
|
|
4193
|
-
*/
|
|
4193
|
+
*/},{key:"registerNotificationHandler",value:async function registerNotificationHandler(listener,asyncOpts_){var _this655=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_register_notification_handler(uniffiTypeClientObjectFactory.clonePointer(_this655),FfiConverterTypeSyncNotificationListener.lower(listener));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"removeAvatar",value:async function removeAvatar(asyncOpts_)/*throws*/{var _this656=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_remove_avatar(uniffiTypeClientObjectFactory.clonePointer(_this656));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4194
4194
|
* Empty the server version and unstable features cache.
|
|
4195
4195
|
*
|
|
4196
4196
|
* Since the SDK caches the supported versions, it's possible to have a
|
|
4197
4197
|
* stale entry in the cache. This functions makes it possible to force
|
|
4198
4198
|
* reset it.
|
|
4199
|
-
*/},{key:"resetSupportedVersions",value:
|
|
4199
|
+
*/},{key:"resetSupportedVersions",value:async function resetSupportedVersions(asyncOpts_)/*throws*/{var _this657=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_reset_supported_versions(uniffiTypeClientObjectFactory.clonePointer(_this657));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4200
4200
|
* Empty the well-known cache.
|
|
4201
4201
|
*
|
|
4202
4202
|
* Since the SDK caches the well-known, it's possible to have a stale
|
|
4203
4203
|
* entry in the cache. This functions makes it possible to force reset
|
|
4204
4204
|
* it.
|
|
4205
|
-
*/
|
|
4205
|
+
*/},{key:"resetWellKnown",value:async function resetWellKnown(asyncOpts_)/*throws*/{var _this658=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_reset_well_known(uniffiTypeClientObjectFactory.clonePointer(_this658));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4206
4206
|
* Resolves the given room alias to a room ID (and a list of servers), if
|
|
4207
4207
|
* possible.
|
|
4208
|
-
*/
|
|
4208
|
+
*/},{key:"resolveRoomAlias",value:async function resolveRoomAlias(roomAlias,asyncOpts_)/*throws*/{var _this659=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_resolve_room_alias(uniffiTypeClientObjectFactory.clonePointer(_this659),FfiConverterString.lower(roomAlias));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalTypeResolvedRoomAlias.lift.bind(FfiConverterOptionalTypeResolvedRoomAlias),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4209
4209
|
* Restores the client from a `Session`.
|
|
4210
4210
|
*
|
|
4211
4211
|
* It reloads the entire set of rooms from the previous session.
|
|
4212
4212
|
*
|
|
4213
4213
|
* If you want to control the amount of rooms to reloads, check
|
|
4214
4214
|
* [`Client::restore_session_with`].
|
|
4215
|
-
*/
|
|
4215
|
+
*/},{key:"restoreSession",value:async function restoreSession(session,asyncOpts_)/*throws*/{var _this660=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_restore_session(uniffiTypeClientObjectFactory.clonePointer(_this660),FfiConverterTypeSession.lower(session));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4216
4216
|
* Restores the client from a `Session`.
|
|
4217
4217
|
*
|
|
4218
4218
|
* It reloads a set of rooms controlled by [`RoomLoadSettings`].
|
|
4219
|
-
*/
|
|
4219
|
+
*/},{key:"restoreSessionWith",value:async function restoreSessionWith(session,roomLoadSettings,asyncOpts_)/*throws*/{var _this661=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_restore_session_with(uniffiTypeClientObjectFactory.clonePointer(_this661),FfiConverterTypeSession.lower(session),FfiConverterTypeRoomLoadSettings.lower(roomLoadSettings));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4220
4220
|
* Checks if a room alias exists in the current homeserver.
|
|
4221
|
-
*/
|
|
4221
|
+
*/},{key:"roomAliasExists",value:async function roomAliasExists(roomAlias,asyncOpts_)/*throws*/{var _this662=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_room_alias_exists(uniffiTypeClientObjectFactory.clonePointer(_this662),FfiConverterString.lower(roomAlias));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"roomDirectorySearch",value:function roomDirectorySearch(){var _this663=this;return FfiConverterTypeRoomDirectorySearch.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_room_directory_search(uniffiTypeClientObjectFactory.clonePointer(_this663),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"rooms",value:function rooms(){var _this664=this;return FfiConverterArrayTypeRoom.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_rooms(uniffiTypeClientObjectFactory.clonePointer(_this664),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"searchUsers",value:async function searchUsers(searchTerm,limit,asyncOpts_)/*throws*/{var _this665=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_search_users(uniffiTypeClientObjectFactory.clonePointer(_this665),FfiConverterString.lower(searchTerm),FfiConverterUInt64.lower(limit));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeSearchUsersResults.lift.bind(FfiConverterTypeSearchUsersResults),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4222
4222
|
* The URL of the server.
|
|
4223
4223
|
*
|
|
4224
4224
|
* Not to be confused with the `Self::homeserver`. `server` is usually
|
|
@@ -4235,34 +4235,34 @@ function Client(pointer){var _this596;_classCallCheck(this,Client);_this596=_cal
|
|
|
4235
4235
|
*
|
|
4236
4236
|
* This method retrieves information about the server's name and version
|
|
4237
4237
|
* by calling the `/_matrix/federation/v1/version` endpoint.
|
|
4238
|
-
*/},{key:"serverVendorInfo",value:
|
|
4238
|
+
*/},{key:"serverVendorInfo",value:async function serverVendorInfo(asyncOpts_)/*throws*/{var _this667=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_server_vendor_info(uniffiTypeClientObjectFactory.clonePointer(_this667));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeServerVendorInfo.lift.bind(FfiConverterTypeServerVendorInfo),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"session",value:function session()/*throws*/{var _this668=this;return FfiConverterTypeSession.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError),/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_session(uniffiTypeClientObjectFactory.clonePointer(_this668),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4239
4239
|
* Set the given account data content for the given event type.
|
|
4240
4240
|
*
|
|
4241
4241
|
* It should be supplied as a JSON string.
|
|
4242
|
-
*/},{key:"setAccountData",value:
|
|
4242
|
+
*/},{key:"setAccountData",value:async function setAccountData(eventType,content,asyncOpts_)/*throws*/{var _this669=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_set_account_data(uniffiTypeClientObjectFactory.clonePointer(_this669),FfiConverterString.lower(eventType),FfiConverterString.lower(content));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4243
4243
|
* Sets the [ClientDelegate] which will inform about authentication errors.
|
|
4244
4244
|
* Returns an error if the delegate was already set.
|
|
4245
|
-
*/
|
|
4245
|
+
*/},{key:"setDelegate",value:function setDelegate(delegate)/*throws*/{var _this670=this;return FfiConverterOptionalTypeTaskHandle.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError),/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_set_delegate(uniffiTypeClientObjectFactory.clonePointer(_this670),FfiConverterOptionalTypeClientDelegate.lower(delegate),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"setDisplayName",value:async function setDisplayName(name,asyncOpts_)/*throws*/{var _this671=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_set_display_name(uniffiTypeClientObjectFactory.clonePointer(_this671),FfiConverterString.lower(name));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4246
4246
|
* Set the invite request avatars display policy
|
|
4247
|
-
*/},{key:"setInviteAvatarsDisplayPolicy",value:
|
|
4247
|
+
*/},{key:"setInviteAvatarsDisplayPolicy",value:async function setInviteAvatarsDisplayPolicy(policy,asyncOpts_)/*throws*/{var _this672=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_set_invite_avatars_display_policy(uniffiTypeClientObjectFactory.clonePointer(_this672),FfiConverterTypeInviteAvatars.lower(policy));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4248
4248
|
* Set the media previews timeline display policy
|
|
4249
|
-
*/
|
|
4249
|
+
*/},{key:"setMediaPreviewDisplayPolicy",value:async function setMediaPreviewDisplayPolicy(policy,asyncOpts_)/*throws*/{var _this673=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_set_media_preview_display_policy(uniffiTypeClientObjectFactory.clonePointer(_this673),FfiConverterTypeMediaPreviews.lower(policy));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4250
4250
|
* Set the media retention policy.
|
|
4251
|
-
*/
|
|
4251
|
+
*/},{key:"setMediaRetentionPolicy",value:async function setMediaRetentionPolicy(policy,asyncOpts_)/*throws*/{var _this674=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_set_media_retention_policy(uniffiTypeClientObjectFactory.clonePointer(_this674),FfiConverterTypeMediaRetentionPolicy.lower(policy));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4252
4252
|
* Registers a pusher with given parameters
|
|
4253
|
-
*/
|
|
4253
|
+
*/},{key:"setPusher",value:async function setPusher(identifiers,kind,appDisplayName,deviceDisplayName,profileTag,lang,asyncOpts_)/*throws*/{var _this675=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_set_pusher(uniffiTypeClientObjectFactory.clonePointer(_this675),FfiConverterTypePusherIdentifiers.lower(identifiers),FfiConverterTypePusherKind.lower(kind),FfiConverterString.lower(appDisplayName),FfiConverterString.lower(deviceDisplayName),FfiConverterOptionalString.lower(profileTag),FfiConverterString.lower(lang));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4254
4254
|
* Sets the [`UnableToDecryptDelegate`] which will inform about UTDs.
|
|
4255
4255
|
* Returns an error if the delegate was already set.
|
|
4256
|
-
*/
|
|
4256
|
+
*/},{key:"setUtdDelegate",value:async function setUtdDelegate(utdDelegate,asyncOpts_)/*throws*/{var _this676=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_set_utd_delegate(uniffiTypeClientObjectFactory.clonePointer(_this676),FfiConverterTypeUnableToDecryptDelegate.lower(utdDelegate));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4257
4257
|
* The sliding sync version.
|
|
4258
|
-
*/
|
|
4258
|
+
*/},{key:"slidingSyncVersion",value:function slidingSyncVersion(){var _this677=this;return FfiConverterTypeSlidingSyncVersion.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_sliding_sync_version(uniffiTypeClientObjectFactory.clonePointer(_this677),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"spaceService",value:async function spaceService(asyncOpts_){var _this678=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_space_service(uniffiTypeClientObjectFactory.clonePointer(_this678));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeSpaceService.lift.bind(FfiConverterTypeSpaceService),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4259
4259
|
* Returns a handler to start the SSO login process.
|
|
4260
|
-
*/},{key:"startSsoLogin",value:
|
|
4260
|
+
*/},{key:"startSsoLogin",value:async function startSsoLogin(redirectUrl,idpId,asyncOpts_)/*throws*/{var _this679=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_start_sso_login(uniffiTypeClientObjectFactory.clonePointer(_this679),FfiConverterString.lower(redirectUrl),FfiConverterOptionalString.lower(idpId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeSsoHandler.lift.bind(FfiConverterTypeSsoHandler),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSsoError.lift.bind(FfiConverterTypeSsoError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4261
4261
|
* Subscribe to duplicate key upload errors triggered by requests to
|
|
4262
4262
|
* /keys/upload.
|
|
4263
|
-
*/
|
|
4263
|
+
*/},{key:"subscribeToDuplicateKeyUploadErrors",value:function subscribeToDuplicateKeyUploadErrors(listener){var _this680=this;return FfiConverterTypeTaskHandle.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_subscribe_to_duplicate_key_upload_errors(uniffiTypeClientObjectFactory.clonePointer(_this680),FfiConverterTypeDuplicateKeyUploadErrorListener.lower(listener),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"subscribeToIgnoredUsers",value:function subscribeToIgnoredUsers(listener){var _this681=this;return FfiConverterTypeTaskHandle.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_subscribe_to_ignored_users(uniffiTypeClientObjectFactory.clonePointer(_this681),FfiConverterTypeIgnoredUsersListener.lower(listener),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4264
4264
|
* Subscribe to changes in the media preview configuration.
|
|
4265
|
-
*/},{key:"subscribeToMediaPreviewConfig",value:
|
|
4265
|
+
*/},{key:"subscribeToMediaPreviewConfig",value:async function subscribeToMediaPreviewConfig(listener,asyncOpts_)/*throws*/{var _this682=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_subscribe_to_media_preview_config(uniffiTypeClientObjectFactory.clonePointer(_this682),FfiConverterTypeMediaPreviewConfigListener.lower(listener));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeTaskHandle.lift.bind(FfiConverterTypeTaskHandle),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4266
4266
|
* Subscribe to [`RoomInfo`] updates given a provided [`RoomId`].
|
|
4267
4267
|
*
|
|
4268
4268
|
* This works even for rooms we haven't received yet, so we can subscribe
|
|
@@ -4273,25 +4273,25 @@ function Client(pointer){var _this596;_classCallCheck(this,Client);_this596=_cal
|
|
|
4273
4273
|
* interfaces is expensive, as well as keeping them alive for a long
|
|
4274
4274
|
* time. Usages of this method should be short-lived and dropped as
|
|
4275
4275
|
* soon as possible.
|
|
4276
|
-
*/
|
|
4276
|
+
*/},{key:"subscribeToRoomInfo",value:async function subscribeToRoomInfo(roomId,listener,asyncOpts_)/*throws*/{var _this683=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_subscribe_to_room_info(uniffiTypeClientObjectFactory.clonePointer(_this683),FfiConverterString.lower(roomId),FfiConverterTypeRoomInfoListener.lower(listener));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeTaskHandle.lift.bind(FfiConverterTypeTaskHandle),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4277
4277
|
* Subscribe to the global enablement status of the send queue, at the
|
|
4278
4278
|
* client-wide level.
|
|
4279
4279
|
*
|
|
4280
4280
|
* The given listener will be immediately called with the initial value of
|
|
4281
4281
|
* the enablement status.
|
|
4282
|
-
*/
|
|
4282
|
+
*/},{key:"subscribeToSendQueueStatus",value:function subscribeToSendQueueStatus(listener){var _this684=this;return FfiConverterTypeTaskHandle.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_subscribe_to_send_queue_status(uniffiTypeClientObjectFactory.clonePointer(_this684),FfiConverterTypeSendQueueRoomErrorListener.lower(listener),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4283
4283
|
* Subscribe to the global send queue update reporter, at the
|
|
4284
4284
|
* client-wide level.
|
|
4285
4285
|
*
|
|
4286
4286
|
* The given listener will be immediately called with
|
|
4287
4287
|
* `RoomSendQueueUpdate::NewLocalEvent` for each local echo existing in
|
|
4288
4288
|
* the queue.
|
|
4289
|
-
*/},{key:"subscribeToSendQueueUpdates",value:
|
|
4289
|
+
*/},{key:"subscribeToSendQueueUpdates",value:async function subscribeToSendQueueUpdates(listener,asyncOpts_)/*throws*/{var _this685=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_subscribe_to_send_queue_updates(uniffiTypeClientObjectFactory.clonePointer(_this685),FfiConverterTypeSendQueueRoomUpdateListener.lower(listener));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeTaskHandle.lift.bind(FfiConverterTypeTaskHandle),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4290
4290
|
* Perform a single sync v2 call.
|
|
4291
4291
|
*
|
|
4292
4292
|
* This is useful for performing an initial sync or a one-shot sync
|
|
4293
4293
|
* without entering a continuous loop.
|
|
4294
|
-
*/
|
|
4294
|
+
*/},{key:"syncOnceV2",value:async function syncOnceV2(settings,asyncOpts_)/*throws*/{var _this686=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_sync_once_v2(uniffiTypeClientObjectFactory.clonePointer(_this686),FfiConverterTypeSyncSettingsV2.lower(settings));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeSyncResponseV2.lift.bind(FfiConverterTypeSyncResponseV2),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"syncService",value:function syncService(){var _this687=this;return FfiConverterTypeSyncServiceBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_sync_service(uniffiTypeClientObjectFactory.clonePointer(_this687),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4295
4295
|
* Start a sync v2 loop.
|
|
4296
4296
|
*
|
|
4297
4297
|
* This is an alternative to [`Client::sync_service`] (which uses Sliding
|
|
@@ -4300,7 +4300,7 @@ function Client(pointer){var _this596;_classCallCheck(this,Client);_this596=_cal
|
|
|
4300
4300
|
*
|
|
4301
4301
|
* Returns a `TaskHandle` that can be used to cancel the sync loop.
|
|
4302
4302
|
* The listener is called after each successful sync response.
|
|
4303
|
-
*/},{key:"syncV2",value:function syncV2(settings,listener){var _this688=this;return FfiConverterTypeTaskHandle.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_sync_v2(uniffiTypeClientObjectFactory.clonePointer(_this688),FfiConverterTypeSyncSettingsV2.lower(settings),FfiConverterTypeSyncListenerV2.lower(listener),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"trackRecentlyVisitedRoom",value:
|
|
4303
|
+
*/},{key:"syncV2",value:function syncV2(settings,listener){var _this688=this;return FfiConverterTypeTaskHandle.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_sync_v2(uniffiTypeClientObjectFactory.clonePointer(_this688),FfiConverterTypeSyncSettingsV2.lower(settings),FfiConverterTypeSyncListenerV2.lower(listener),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"trackRecentlyVisitedRoom",value:async function trackRecentlyVisitedRoom(room,asyncOpts_)/*throws*/{var _this689=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_track_recently_visited_room(uniffiTypeClientObjectFactory.clonePointer(_this689),FfiConverterString.lower(room));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"unignoreUser",value:async function unignoreUser(userId,asyncOpts_)/*throws*/{var _this690=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_unignore_user(uniffiTypeClientObjectFactory.clonePointer(_this690),FfiConverterString.lower(userId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"uploadAvatar",value:async function uploadAvatar(mimeType,data,asyncOpts_)/*throws*/{var _this691=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_upload_avatar(uniffiTypeClientObjectFactory.clonePointer(_this691),FfiConverterString.lower(mimeType),FfiConverterArrayBuffer.lower(data));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"uploadMedia",value:async function uploadMedia(mimeType,data,progressWatcher,asyncOpts_)/*throws*/{var _this692=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_upload_media(uniffiTypeClientObjectFactory.clonePointer(_this692),FfiConverterString.lower(mimeType),FfiConverterArrayBuffer.lower(data),FfiConverterOptionalTypeProgressWatcher.lower(progressWatcher));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4304
4304
|
* Requests the URL needed for opening a web view using OIDC. Once the web
|
|
4305
4305
|
* view has succeeded, call `login_with_oidc_callback` with the callback it
|
|
4306
4306
|
* returns. If a failure occurs and a callback isn't available, make sure
|
|
@@ -4333,7 +4333,7 @@ function Client(pointer){var _this596;_classCallCheck(this,Client);_this596=_cal
|
|
|
4333
4333
|
* The scopes for API access and the device ID according to the
|
|
4334
4334
|
* [specification](https://spec.matrix.org/v1.15/client-server-api/#allocated-scope-tokens)
|
|
4335
4335
|
* are always requested.
|
|
4336
|
-
*/},{key:"urlForOidc",value:
|
|
4336
|
+
*/},{key:"urlForOidc",value:async function urlForOidc(oidcConfiguration,prompt,loginHint,deviceId,additionalScopes,asyncOpts_)/*throws*/{var _this693=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_url_for_oidc(uniffiTypeClientObjectFactory.clonePointer(_this693),FfiConverterTypeOidcConfiguration.lower(oidcConfiguration),FfiConverterOptionalTypeOidcPrompt.lower(prompt),FfiConverterOptionalString.lower(loginHint),FfiConverterOptionalString.lower(deviceId),FfiConverterOptionalArrayString.lower(additionalScopes));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeOAuthAuthorizationData.lift.bind(FfiConverterTypeOAuthAuthorizationData),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeOidcError.lift.bind(FfiConverterTypeOidcError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"userId",value:function userId()/*throws*/{var _this694=this;return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError),/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_user_id(uniffiTypeClientObjectFactory.clonePointer(_this694),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4337
4337
|
* The server name part of the current user ID
|
|
4338
4338
|
*/},{key:"userIdServerName",value:function userIdServerName()/*throws*/{var _this695=this;return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError),/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_client_user_id_server_name(uniffiTypeClientObjectFactory.clonePointer(_this695),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4339
4339
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
@@ -4344,14 +4344,14 @@ var FfiConverterTypeClient=new FfiConverterObject(uniffiTypeClientObjectFactory)
|
|
|
4344
4344
|
* @deprecated Use `ClientBuilderLike` instead.
|
|
4345
4345
|
*/export var ClientBuilder=/*#__PURE__*/function(_UniffiAbstractObject3){function ClientBuilder(){var _this696;_classCallCheck(this,ClientBuilder);_this696=_callSuper(this,ClientBuilder);_defineProperty(_this696,uniffiTypeNameSymbol,"ClientBuilder");_defineProperty(_this696,destructorGuardSymbol,void 0);_defineProperty(_this696,pointerLiteralSymbol,void 0);var pointer=uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_constructor_clientbuilder_new(callStatus);},/*liftString:*/FfiConverterString.lift);_this696[pointerLiteralSymbol]=pointer;_this696[destructorGuardSymbol]=uniffiTypeClientBuilderObjectFactory.bless(pointer);return _this696;}_inherits(ClientBuilder,_UniffiAbstractObject3);return _createClass(ClientBuilder,[{key:"addRootCertificates",value:function addRootCertificates(certificates){var _this697=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_add_root_certificates(uniffiTypeClientBuilderObjectFactory.clonePointer(_this697),FfiConverterArrayArrayBuffer.lower(certificates),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4346
4346
|
* Automatically create a backup version if no backup exists.
|
|
4347
|
-
*/},{key:"autoEnableBackups",value:function(_autoEnableBackups){function autoEnableBackups(
|
|
4347
|
+
*/},{key:"autoEnableBackups",value:function(_autoEnableBackups){function autoEnableBackups(_x){return _autoEnableBackups.apply(this,arguments);}autoEnableBackups.toString=function(){return _autoEnableBackups.toString();};return autoEnableBackups;}(function(autoEnableBackups){var _this698=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_auto_enable_backups(uniffiTypeClientBuilderObjectFactory.clonePointer(_this698),FfiConverterBool.lower(autoEnableBackups),callStatus);},/*liftString:*/FfiConverterString.lift));})},{key:"autoEnableCrossSigning",value:function(_autoEnableCrossSigning){function autoEnableCrossSigning(_x2){return _autoEnableCrossSigning.apply(this,arguments);}autoEnableCrossSigning.toString=function(){return _autoEnableCrossSigning.toString();};return autoEnableCrossSigning;}(function(autoEnableCrossSigning){var _this699=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_auto_enable_cross_signing(uniffiTypeClientBuilderObjectFactory.clonePointer(_this699),FfiConverterBool.lower(autoEnableCrossSigning),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4348
4348
|
* Select a strategy to download room keys from the backup. By default
|
|
4349
4349
|
* we download after a decryption failure.
|
|
4350
4350
|
*
|
|
4351
4351
|
* Take a look at the [`BackupDownloadStrategy`] enum for more options.
|
|
4352
|
-
*/)},{key:"backupDownloadStrategy",value:function(_backupDownloadStrategy){function backupDownloadStrategy(
|
|
4352
|
+
*/)},{key:"backupDownloadStrategy",value:function(_backupDownloadStrategy){function backupDownloadStrategy(_x3){return _backupDownloadStrategy.apply(this,arguments);}backupDownloadStrategy.toString=function(){return _backupDownloadStrategy.toString();};return backupDownloadStrategy;}(function(backupDownloadStrategy){var _this700=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_backup_download_strategy(uniffiTypeClientBuilderObjectFactory.clonePointer(_this700),FfiConverterTypeBackupDownloadStrategy.lower(backupDownloadStrategy),callStatus);},/*liftString:*/FfiConverterString.lift));})},{key:"build",value:async function build(asyncOpts_)/*throws*/{var _this701=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_build(uniffiTypeClientBuilderObjectFactory.clonePointer(_this701));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeClient.lift.bind(FfiConverterTypeClient),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientBuildError.lift.bind(FfiConverterTypeClientBuildError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"crossProcessLockConfig",value:function(_crossProcessLockConfig){function crossProcessLockConfig(_x4){return _crossProcessLockConfig.apply(this,arguments);}crossProcessLockConfig.toString=function(){return _crossProcessLockConfig.toString();};return crossProcessLockConfig;}(function(crossProcessLockConfig){var _this702=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_cross_process_lock_config(uniffiTypeClientBuilderObjectFactory.clonePointer(_this702),FfiConverterTypeCrossProcessLockConfig.lower(crossProcessLockConfig),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4353
4353
|
* Set the trust requirement to be used when decrypting events.
|
|
4354
|
-
*/)},{key:"decryptionSettings",value:function(_decryptionSettings){function decryptionSettings(
|
|
4354
|
+
*/)},{key:"decryptionSettings",value:function(_decryptionSettings){function decryptionSettings(_x5){return _decryptionSettings.apply(this,arguments);}decryptionSettings.toString=function(){return _decryptionSettings.toString();};return decryptionSettings;}(function(decryptionSettings){var _this703=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_decryption_settings(uniffiTypeClientBuilderObjectFactory.clonePointer(_this703),FfiConverterTypeDecryptionSettings.lower(decryptionSettings),callStatus);},/*liftString:*/FfiConverterString.lift));})},{key:"disableAutomaticTokenRefresh",value:function disableAutomaticTokenRefresh(){var _this704=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_disable_automatic_token_refresh(uniffiTypeClientBuilderObjectFactory.clonePointer(_this704),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4355
4355
|
* Don't trust any system root certificates, only trust the certificates
|
|
4356
4356
|
* provided through
|
|
4357
4357
|
* [`add_root_certificates`][ClientBuilder::add_root_certificates].
|
|
@@ -4360,7 +4360,7 @@ var FfiConverterTypeClient=new FfiConverterObject(uniffiTypeClientObjectFactory)
|
|
|
4360
4360
|
* encrypted room history on invite, per [MSC4268].
|
|
4361
4361
|
*
|
|
4362
4362
|
* [MSC4268]: https://github.com/matrix-org/matrix-spec-proposals/pull/4268
|
|
4363
|
-
*/},{key:"enableShareHistoryOnInvite",value:function(_enableShareHistoryOnInvite){function enableShareHistoryOnInvite(
|
|
4363
|
+
*/},{key:"enableShareHistoryOnInvite",value:function(_enableShareHistoryOnInvite){function enableShareHistoryOnInvite(_x6){return _enableShareHistoryOnInvite.apply(this,arguments);}enableShareHistoryOnInvite.toString=function(){return _enableShareHistoryOnInvite.toString();};return enableShareHistoryOnInvite;}(function(enableShareHistoryOnInvite){var _this707=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_enable_share_history_on_invite(uniffiTypeClientBuilderObjectFactory.clonePointer(_this707),FfiConverterBool.lower(enableShareHistoryOnInvite),callStatus);},/*liftString:*/FfiConverterString.lift));})},{key:"homeserverUrl",value:function homeserverUrl(url){var _this708=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_homeserver_url(uniffiTypeClientBuilderObjectFactory.clonePointer(_this708),FfiConverterString.lower(url),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4364
4364
|
* Use in-memory session storage.
|
|
4365
4365
|
*/},{key:"inMemoryStore",value:function inMemoryStore(){var _this709=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_in_memory_store(uniffiTypeClientBuilderObjectFactory.clonePointer(_this709),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4366
4366
|
* Use IndexedDB as the session storage.
|
|
@@ -4369,7 +4369,7 @@ var FfiConverterTypeClient=new FfiConverterObject(uniffiTypeClientObjectFactory)
|
|
|
4369
4369
|
*/},{key:"requestConfig",value:function requestConfig(config){var _this712=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_request_config(uniffiTypeClientBuilderObjectFactory.clonePointer(_this712),FfiConverterTypeRequestConfig.lower(config),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4370
4370
|
* Set the strategy to be used for picking recipient devices when sending
|
|
4371
4371
|
* an encrypted message.
|
|
4372
|
-
*/},{key:"roomKeyRecipientStrategy",value:function roomKeyRecipientStrategy(strategy){var _this713=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_room_key_recipient_strategy(uniffiTypeClientBuilderObjectFactory.clonePointer(_this713),FfiConverterTypeCollectStrategy.lower(strategy),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"serverName",value:function(_serverName){function serverName(
|
|
4372
|
+
*/},{key:"roomKeyRecipientStrategy",value:function roomKeyRecipientStrategy(strategy){var _this713=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_room_key_recipient_strategy(uniffiTypeClientBuilderObjectFactory.clonePointer(_this713),FfiConverterTypeCollectStrategy.lower(strategy),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"serverName",value:function(_serverName){function serverName(_x7){return _serverName.apply(this,arguments);}serverName.toString=function(){return _serverName.toString();};return serverName;}(function(serverName){var _this714=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_server_name(uniffiTypeClientBuilderObjectFactory.clonePointer(_this714),FfiConverterString.lower(serverName),callStatus);},/*liftString:*/FfiConverterString.lift));})},{key:"serverNameOrHomeserverUrl",value:function serverNameOrHomeserverUrl(serverNameOrUrl){var _this715=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_server_name_or_homeserver_url(uniffiTypeClientBuilderObjectFactory.clonePointer(_this715),FfiConverterString.lower(serverNameOrUrl),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"setSessionDelegate",value:function setSessionDelegate(sessionDelegate){var _this716=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_set_session_delegate(uniffiTypeClientBuilderObjectFactory.clonePointer(_this716),FfiConverterTypeClientSessionDelegate.lower(sessionDelegate),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"slidingSyncVersionBuilder",value:function slidingSyncVersionBuilder(versionBuilder){var _this717=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_sliding_sync_version_builder(uniffiTypeClientBuilderObjectFactory.clonePointer(_this717),FfiConverterTypeSlidingSyncVersionBuilder.lower(versionBuilder),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4373
4373
|
* Tell the client that the system is memory constrained, like in a push
|
|
4374
4374
|
* notification process for example.
|
|
4375
4375
|
*
|
|
@@ -4380,7 +4380,7 @@ var FfiConverterTypeClient=new FfiConverterObject(uniffiTypeClientObjectFactory)
|
|
|
4380
4380
|
*/},{key:"systemIsMemoryConstrained",value:function systemIsMemoryConstrained(){var _this718=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_system_is_memory_constrained(uniffiTypeClientBuilderObjectFactory.clonePointer(_this718),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4381
4381
|
* Whether the client should support threads client-side or not, and enable
|
|
4382
4382
|
* experimental support for MSC4306 (threads subscriptions) or not.
|
|
4383
|
-
*/},{key:"threadsEnabled",value:function threadsEnabled(enabled,threadSubscriptions){var _this719=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_threads_enabled(uniffiTypeClientBuilderObjectFactory.clonePointer(_this719),FfiConverterBool.lower(enabled),FfiConverterBool.lower(threadSubscriptions),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"userAgent",value:function(_userAgent){function userAgent(
|
|
4383
|
+
*/},{key:"threadsEnabled",value:function threadsEnabled(enabled,threadSubscriptions){var _this719=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_threads_enabled(uniffiTypeClientBuilderObjectFactory.clonePointer(_this719),FfiConverterBool.lower(enabled),FfiConverterBool.lower(threadSubscriptions),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"userAgent",value:function(_userAgent){function userAgent(_x8){return _userAgent.apply(this,arguments);}userAgent.toString=function(){return _userAgent.toString();};return userAgent;}(function(userAgent){var _this720=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_user_agent(uniffiTypeClientBuilderObjectFactory.clonePointer(_this720),FfiConverterString.lower(userAgent),callStatus);},/*liftString:*/FfiConverterString.lift));})},{key:"username",value:function(_username){function username(_x9){return _username.apply(this,arguments);}username.toString=function(){return _username.toString();};return username;}(function(username){var _this721=this;return FfiConverterTypeClientBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_clientbuilder_username(uniffiTypeClientBuilderObjectFactory.clonePointer(_this721),FfiConverterString.lower(username),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4384
4384
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4385
4385
|
*/)},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeClientBuilderObjectFactory.pointer(this);uniffiTypeClientBuilderObjectFactory.freePointer(pointer);uniffiTypeClientBuilderObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeClientBuilderObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeClientBuilderObjectFactory=function(){/// <reference lib="es2021" />
|
|
4386
4386
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeClientBuilderObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(ClientBuilder.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="ClientBuilder";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
@@ -4398,21 +4398,21 @@ function Encryption(pointer){var _this722;_classCallCheck(this,Encryption);_this
|
|
|
4398
4398
|
*
|
|
4399
4399
|
* Therefore it is necessary to poll the server for an answer every time
|
|
4400
4400
|
* you want to differentiate between those two states.
|
|
4401
|
-
*/_inherits(Encryption,_UniffiAbstractObject4);return _createClass(Encryption,[{key:"backupExistsOnServer",value:
|
|
4401
|
+
*/_inherits(Encryption,_UniffiAbstractObject4);return _createClass(Encryption,[{key:"backupExistsOnServer",value:async function backupExistsOnServer(asyncOpts_)/*throws*/{var _this723=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_backup_exists_on_server(uniffiTypeEncryptionObjectFactory.clonePointer(_this723));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"backupState",value:function backupState(){var _this724=this;return FfiConverterTypeBackupState.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_backup_state(uniffiTypeEncryptionObjectFactory.clonePointer(_this724),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"backupStateListener",value:function backupStateListener(listener){var _this725=this;return FfiConverterTypeTaskHandle.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_backup_state_listener(uniffiTypeEncryptionObjectFactory.clonePointer(_this725),FfiConverterTypeBackupStateListener.lower(listener),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4402
4402
|
* Get the public curve25519 key of our own device in base64. This is
|
|
4403
4403
|
* usually what is called the identity key of the device.
|
|
4404
|
-
*/},{key:"curve25519Key",value:
|
|
4404
|
+
*/},{key:"curve25519Key",value:async function curve25519Key(asyncOpts_){var _this726=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_curve25519_key(uniffiTypeEncryptionObjectFactory.clonePointer(_this726));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalString.lift.bind(FfiConverterOptionalString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"disableRecovery",value:async function disableRecovery(asyncOpts_)/*throws*/{var _this727=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_disable_recovery(uniffiTypeEncryptionObjectFactory.clonePointer(_this727));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeRecoveryError.lift.bind(FfiConverterTypeRecoveryError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4405
4405
|
* Get the public ed25519 key of our own device. This is usually what is
|
|
4406
4406
|
* called the fingerprint of the device.
|
|
4407
|
-
*/},{key:"ed25519Key",value:
|
|
4407
|
+
*/},{key:"ed25519Key",value:async function ed25519Key(asyncOpts_){var _this728=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_ed25519_key(uniffiTypeEncryptionObjectFactory.clonePointer(_this728));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalString.lift.bind(FfiConverterOptionalString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"enableBackups",value:async function enableBackups(asyncOpts_)/*throws*/{var _this729=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_enable_backups(uniffiTypeEncryptionObjectFactory.clonePointer(_this729));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeRecoveryError.lift.bind(FfiConverterTypeRecoveryError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"enableRecovery",value:async function enableRecovery(waitForBackupsToUpload,passphrase,progressListener,asyncOpts_)/*throws*/{var _this730=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_enable_recovery(uniffiTypeEncryptionObjectFactory.clonePointer(_this730),FfiConverterBool.lower(waitForBackupsToUpload),FfiConverterOptionalString.lower(passphrase),FfiConverterTypeEnableRecoveryProgressListener.lower(progressListener));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeRecoveryError.lift.bind(FfiConverterTypeRecoveryError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4408
4408
|
* Does the user have other devices that the current device can verify
|
|
4409
4409
|
* against?
|
|
4410
4410
|
*
|
|
4411
4411
|
* The device must be signed by the user's cross-signing key, must have an
|
|
4412
4412
|
* identity, and must not be a dehydrated device.
|
|
4413
|
-
*/},{key:"hasDevicesToVerifyAgainst",value:
|
|
4413
|
+
*/},{key:"hasDevicesToVerifyAgainst",value:async function hasDevicesToVerifyAgainst(asyncOpts_)/*throws*/{var _this731=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_has_devices_to_verify_against(uniffiTypeEncryptionObjectFactory.clonePointer(_this731));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"isLastDevice",value:async function isLastDevice(asyncOpts_)/*throws*/{var _this732=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_is_last_device(uniffiTypeEncryptionObjectFactory.clonePointer(_this732));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeRecoveryError.lift.bind(FfiConverterTypeRecoveryError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4414
4414
|
* Download identity and key backup information from Recovery
|
|
4415
|
-
*/},{key:"recover",value:
|
|
4415
|
+
*/},{key:"recover",value:async function recover(recoveryKey,asyncOpts_)/*throws*/{var _this733=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_recover(uniffiTypeEncryptionObjectFactory.clonePointer(_this733),FfiConverterString.lower(recoveryKey));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeRecoveryError.lift.bind(FfiConverterTypeRecoveryError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4416
4416
|
* Download identity and key backup information from Recovery, and, if the
|
|
4417
4417
|
* key backup information is inconsistent, create a new key backup.
|
|
4418
4418
|
*
|
|
@@ -4422,10 +4422,10 @@ function Encryption(pointer){var _this722;_classCallCheck(this,Encryption);_this
|
|
|
4422
4422
|
* Recovery, or
|
|
4423
4423
|
* * Key backup is enabled and the backup decryption key does not match the
|
|
4424
4424
|
* public key
|
|
4425
|
-
*/
|
|
4425
|
+
*/},{key:"recoverAndFixBackup",value:async function recoverAndFixBackup(recoveryKey,asyncOpts_)/*throws*/{var _this734=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_recover_and_fix_backup(uniffiTypeEncryptionObjectFactory.clonePointer(_this734),FfiConverterString.lower(recoveryKey));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeRecoveryError.lift.bind(FfiConverterTypeRecoveryError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"recoverAndReset",value:async function recoverAndReset(oldRecoveryKey,asyncOpts_)/*throws*/{var _this735=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_recover_and_reset(uniffiTypeEncryptionObjectFactory.clonePointer(_this735),FfiConverterString.lower(oldRecoveryKey));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeRecoveryError.lift.bind(FfiConverterTypeRecoveryError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"recoveryState",value:function recoveryState(){var _this736=this;return FfiConverterTypeRecoveryState.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_recovery_state(uniffiTypeEncryptionObjectFactory.clonePointer(_this736),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"recoveryStateListener",value:function recoveryStateListener(listener){var _this737=this;return FfiConverterTypeTaskHandle.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_recovery_state_listener(uniffiTypeEncryptionObjectFactory.clonePointer(_this737),FfiConverterTypeRecoveryStateListener.lower(listener),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4426
4426
|
* Completely reset the current user's crypto identity: reset the cross
|
|
4427
4427
|
* signing keys, delete the existing backup and recovery key.
|
|
4428
|
-
*/},{key:"resetIdentity",value:
|
|
4428
|
+
*/},{key:"resetIdentity",value:async function resetIdentity(asyncOpts_)/*throws*/{var _this738=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_reset_identity(uniffiTypeEncryptionObjectFactory.clonePointer(_this738));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalTypeIdentityResetHandle.lift.bind(FfiConverterOptionalTypeIdentityResetHandle),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"resetRecoveryKey",value:async function resetRecoveryKey(asyncOpts_)/*throws*/{var _this739=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_reset_recovery_key(uniffiTypeEncryptionObjectFactory.clonePointer(_this739));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeRecoveryError.lift.bind(FfiConverterTypeRecoveryError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4429
4429
|
* Get the E2EE identity of a user.
|
|
4430
4430
|
*
|
|
4431
4431
|
* This method always tries to fetch the identity from the store, which we
|
|
@@ -4444,12 +4444,12 @@ function Encryption(pointer){var _this722;_classCallCheck(this,Encryption);_this
|
|
|
4444
4444
|
* homeserver.
|
|
4445
4445
|
*
|
|
4446
4446
|
* This will always return `None` if the client hasn't been logged in.
|
|
4447
|
-
*/},{key:"userIdentity",value:
|
|
4447
|
+
*/},{key:"userIdentity",value:async function userIdentity(userId,fallbackToServer,asyncOpts_)/*throws*/{var _this740=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_user_identity(uniffiTypeEncryptionObjectFactory.clonePointer(_this740),FfiConverterString.lower(userId),FfiConverterBool.lower(fallbackToServer));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"verificationState",value:function verificationState(){var _this741=this;return FfiConverterTypeVerificationState.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_verification_state(uniffiTypeEncryptionObjectFactory.clonePointer(_this741),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"verificationStateListener",value:function verificationStateListener(listener){var _this742=this;return FfiConverterTypeTaskHandle.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_verification_state_listener(uniffiTypeEncryptionObjectFactory.clonePointer(_this742),FfiConverterTypeVerificationStateListener.lower(listener),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"waitForBackupUploadSteadyState",value:async function waitForBackupUploadSteadyState(progressListener,asyncOpts_)/*throws*/{var _this743=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_wait_for_backup_upload_steady_state(uniffiTypeEncryptionObjectFactory.clonePointer(_this743),FfiConverterOptionalTypeBackupSteadyStateListener.lower(progressListener));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSteadyStateError.lift.bind(FfiConverterTypeSteadyStateError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4448
4448
|
* Waits for end-to-end encryption initialization tasks to finish, if any
|
|
4449
4449
|
* was running in the background.
|
|
4450
|
-
*/},{key:"waitForE2eeInitializationTasks",value:
|
|
4450
|
+
*/},{key:"waitForE2eeInitializationTasks",value:async function waitForE2eeInitializationTasks(asyncOpts_){var _this744=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_encryption_wait_for_e2ee_initialization_tasks(uniffiTypeEncryptionObjectFactory.clonePointer(_this744));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4451
4451
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4452
|
-
*/
|
|
4452
|
+
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeEncryptionObjectFactory.pointer(this);uniffiTypeEncryptionObjectFactory.freePointer(pointer);uniffiTypeEncryptionObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeEncryptionObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeEncryptionObjectFactory=function(){/// <reference lib="es2021" />
|
|
4453
4453
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeEncryptionObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(Encryption.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="Encryption";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
4454
4454
|
markDestroyed:function markDestroyed(){return undefined;}};if(registry){registry.register(ptr,p,ptr);}return ptr;},unbless:function unbless(ptr){if(registry){registry.unregister(ptr);}},pointer:function pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer:function clonePointer(obj){var pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_clone_encryption(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},freePointer:function freePointer(pointer){uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_free_encryption(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},isConcreteType:function isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==="Encryption";}};}();// FfiConverter for EncryptionLike
|
|
4455
4455
|
var FfiConverterTypeEncryption=new FfiConverterObject(uniffiTypeEncryptionObjectFactory);/**
|
|
@@ -4477,7 +4477,7 @@ function GrantLoginWithQrCodeHandler(pointer){var _this745;_classCallCheck(this,
|
|
|
4477
4477
|
* obtain the [`QrCodeData`] and collect the [`CheckCode`] from the user.
|
|
4478
4478
|
*
|
|
4479
4479
|
* [MSC4108]: https://github.com/matrix-org/matrix-spec-proposals/pull/4108
|
|
4480
|
-
*/_inherits(GrantLoginWithQrCodeHandler,_UniffiAbstractObject5);return _createClass(GrantLoginWithQrCodeHandler,[{key:"generate",value:
|
|
4480
|
+
*/_inherits(GrantLoginWithQrCodeHandler,_UniffiAbstractObject5);return _createClass(GrantLoginWithQrCodeHandler,[{key:"generate",value:async function generate(progressListener,asyncOpts_)/*throws*/{var _this746=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_grantloginwithqrcodehandler_generate(uniffiTypeGrantLoginWithQrCodeHandlerObjectFactory.clonePointer(_this746),FfiConverterTypeGrantGeneratedQrLoginProgressListener.lower(progressListener));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeHumanQrGrantLoginError.lift.bind(FfiConverterTypeHumanQrGrantLoginError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4481
4481
|
* This method allows you to grant login with a scanned QR code.
|
|
4482
4482
|
*
|
|
4483
4483
|
* The new device needs to display the QR code which this device can
|
|
@@ -4497,15 +4497,15 @@ function GrantLoginWithQrCodeHandler(pointer){var _this745;_classCallCheck(this,
|
|
|
4497
4497
|
* transfer the [`CheckCode`] to the new device.
|
|
4498
4498
|
*
|
|
4499
4499
|
* [MSC4108]: https://github.com/matrix-org/matrix-spec-proposals/pull/4108
|
|
4500
|
-
*/
|
|
4500
|
+
*/},{key:"scan",value:async function scan(qrCodeData,progressListener,asyncOpts_)/*throws*/{var _this747=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_grantloginwithqrcodehandler_scan(uniffiTypeGrantLoginWithQrCodeHandlerObjectFactory.clonePointer(_this747),FfiConverterTypeQrCodeData.lower(qrCodeData),FfiConverterTypeGrantQrLoginProgressListener.lower(progressListener));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeHumanQrGrantLoginError.lift.bind(FfiConverterTypeHumanQrGrantLoginError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4501
4501
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4502
|
-
*/
|
|
4502
|
+
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeGrantLoginWithQrCodeHandlerObjectFactory.pointer(this);uniffiTypeGrantLoginWithQrCodeHandlerObjectFactory.freePointer(pointer);uniffiTypeGrantLoginWithQrCodeHandlerObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeGrantLoginWithQrCodeHandlerObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeGrantLoginWithQrCodeHandlerObjectFactory=function(){/// <reference lib="es2021" />
|
|
4503
4503
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeGrantLoginWithQrCodeHandlerObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(GrantLoginWithQrCodeHandler.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="GrantLoginWithQrCodeHandler";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
4504
4504
|
markDestroyed:function markDestroyed(){return undefined;}};if(registry){registry.register(ptr,p,ptr);}return ptr;},unbless:function unbless(ptr){if(registry){registry.unregister(ptr);}},pointer:function pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer:function clonePointer(obj){var pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_clone_grantloginwithqrcodehandler(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},freePointer:function freePointer(pointer){uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_free_grantloginwithqrcodehandler(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},isConcreteType:function isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==="GrantLoginWithQrCodeHandler";}};}();// FfiConverter for GrantLoginWithQrCodeHandlerLike
|
|
4505
4505
|
var FfiConverterTypeGrantLoginWithQrCodeHandler=new FfiConverterObject(uniffiTypeGrantLoginWithQrCodeHandlerObjectFactory);/**
|
|
4506
4506
|
* @deprecated Use `HomeserverCapabilitiesLike` instead.
|
|
4507
4507
|
*/export var HomeserverCapabilities=/*#__PURE__*/function(_UniffiAbstractObject6){// No primary constructor declared for this class.
|
|
4508
|
-
function HomeserverCapabilities(pointer){var _this748;_classCallCheck(this,HomeserverCapabilities);_this748=_callSuper(this,HomeserverCapabilities);_defineProperty(_this748,uniffiTypeNameSymbol,"HomeserverCapabilities");_defineProperty(_this748,destructorGuardSymbol,void 0);_defineProperty(_this748,pointerLiteralSymbol,void 0);_this748[pointerLiteralSymbol]=pointer;_this748[destructorGuardSymbol]=uniffiTypeHomeserverCapabilitiesObjectFactory.bless(pointer);return _this748;}_inherits(HomeserverCapabilities,_UniffiAbstractObject6);return _createClass(HomeserverCapabilities,[{key:"canChangeAvatar",value:function(){var _canChangeAvatar=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee92(asyncOpts_){var _this749=this;var __stack,_t92;return _regenerator().w(function(_context92){while(1)switch(_context92.p=_context92.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context92.p=1;_context92.n=2;return uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_homeservercapabilities_can_change_avatar(uniffiTypeHomeserverCapabilitiesObjectFactory.clonePointer(_this749));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));case 2:return _context92.a(2,_context92.v);case 3:_context92.p=3;_t92=_context92.v;if(uniffiIsDebug&&_t92 instanceof Error){_t92.stack=__stack;}throw _t92;case 4:return _context92.a(2);}},_callee92,null,[[1,3]]);}));function canChangeAvatar(_x203){return _canChangeAvatar.apply(this,arguments);}return canChangeAvatar;}()},{key:"canChangeDisplayname",value:function(){var _canChangeDisplayname=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee93(asyncOpts_){var _this750=this;var __stack,_t93;return _regenerator().w(function(_context93){while(1)switch(_context93.p=_context93.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context93.p=1;_context93.n=2;return uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_homeservercapabilities_can_change_displayname(uniffiTypeHomeserverCapabilitiesObjectFactory.clonePointer(_this750));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));case 2:return _context93.a(2,_context93.v);case 3:_context93.p=3;_t93=_context93.v;if(uniffiIsDebug&&_t93 instanceof Error){_t93.stack=__stack;}throw _t93;case 4:return _context93.a(2);}},_callee93,null,[[1,3]]);}));function canChangeDisplayname(_x204){return _canChangeDisplayname.apply(this,arguments);}return canChangeDisplayname;}()},{key:"canChangePassword",value:function(){var _canChangePassword=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee94(asyncOpts_){var _this751=this;var __stack,_t94;return _regenerator().w(function(_context94){while(1)switch(_context94.p=_context94.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context94.p=1;_context94.n=2;return uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_homeservercapabilities_can_change_password(uniffiTypeHomeserverCapabilitiesObjectFactory.clonePointer(_this751));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));case 2:return _context94.a(2,_context94.v);case 3:_context94.p=3;_t94=_context94.v;if(uniffiIsDebug&&_t94 instanceof Error){_t94.stack=__stack;}throw _t94;case 4:return _context94.a(2);}},_callee94,null,[[1,3]]);}));function canChangePassword(_x205){return _canChangePassword.apply(this,arguments);}return canChangePassword;}()},{key:"canChangeThirdpartyIds",value:function(){var _canChangeThirdpartyIds=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee95(asyncOpts_){var _this752=this;var __stack,_t95;return _regenerator().w(function(_context95){while(1)switch(_context95.p=_context95.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context95.p=1;_context95.n=2;return uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_homeservercapabilities_can_change_thirdparty_ids(uniffiTypeHomeserverCapabilitiesObjectFactory.clonePointer(_this752));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));case 2:return _context95.a(2,_context95.v);case 3:_context95.p=3;_t95=_context95.v;if(uniffiIsDebug&&_t95 instanceof Error){_t95.stack=__stack;}throw _t95;case 4:return _context95.a(2);}},_callee95,null,[[1,3]]);}));function canChangeThirdpartyIds(_x206){return _canChangeThirdpartyIds.apply(this,arguments);}return canChangeThirdpartyIds;}()},{key:"canGetLoginToken",value:function(){var _canGetLoginToken=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee96(asyncOpts_){var _this753=this;var __stack,_t96;return _regenerator().w(function(_context96){while(1)switch(_context96.p=_context96.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context96.p=1;_context96.n=2;return uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_homeservercapabilities_can_get_login_token(uniffiTypeHomeserverCapabilitiesObjectFactory.clonePointer(_this753));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));case 2:return _context96.a(2,_context96.v);case 3:_context96.p=3;_t96=_context96.v;if(uniffiIsDebug&&_t96 instanceof Error){_t96.stack=__stack;}throw _t96;case 4:return _context96.a(2);}},_callee96,null,[[1,3]]);}));function canGetLoginToken(_x207){return _canGetLoginToken.apply(this,arguments);}return canGetLoginToken;}()},{key:"extendedProfileFields",value:function(){var _extendedProfileFields=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee97(asyncOpts_){var _this754=this;var __stack,_t97;return _regenerator().w(function(_context97){while(1)switch(_context97.p=_context97.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context97.p=1;_context97.n=2;return uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_homeservercapabilities_extended_profile_fields(uniffiTypeHomeserverCapabilitiesObjectFactory.clonePointer(_this754));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeExtendedProfileFields.lift.bind(FfiConverterTypeExtendedProfileFields),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));case 2:return _context97.a(2,_context97.v);case 3:_context97.p=3;_t97=_context97.v;if(uniffiIsDebug&&_t97 instanceof Error){_t97.stack=__stack;}throw _t97;case 4:return _context97.a(2);}},_callee97,null,[[1,3]]);}));function extendedProfileFields(_x208){return _extendedProfileFields.apply(this,arguments);}return extendedProfileFields;}()},{key:"forgetsRoomWhenLeaving",value:function(){var _forgetsRoomWhenLeaving=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee98(asyncOpts_){var _this755=this;var __stack,_t98;return _regenerator().w(function(_context98){while(1)switch(_context98.p=_context98.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context98.p=1;_context98.n=2;return uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_homeservercapabilities_forgets_room_when_leaving(uniffiTypeHomeserverCapabilitiesObjectFactory.clonePointer(_this755));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));case 2:return _context98.a(2,_context98.v);case 3:_context98.p=3;_t98=_context98.v;if(uniffiIsDebug&&_t98 instanceof Error){_t98.stack=__stack;}throw _t98;case 4:return _context98.a(2);}},_callee98,null,[[1,3]]);}));function forgetsRoomWhenLeaving(_x209){return _forgetsRoomWhenLeaving.apply(this,arguments);}return forgetsRoomWhenLeaving;}()},{key:"refresh",value:function(){var _refresh=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee99(asyncOpts_){var _this756=this;var __stack,_t99;return _regenerator().w(function(_context99){while(1)switch(_context99.p=_context99.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context99.p=1;_context99.n=2;return uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_homeservercapabilities_refresh(uniffiTypeHomeserverCapabilitiesObjectFactory.clonePointer(_this756));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));case 2:return _context99.a(2,_context99.v);case 3:_context99.p=3;_t99=_context99.v;if(uniffiIsDebug&&_t99 instanceof Error){_t99.stack=__stack;}throw _t99;case 4:return _context99.a(2);}},_callee99,null,[[1,3]]);}));function refresh(_x210){return _refresh.apply(this,arguments);}return refresh;}()/**
|
|
4508
|
+
function HomeserverCapabilities(pointer){var _this748;_classCallCheck(this,HomeserverCapabilities);_this748=_callSuper(this,HomeserverCapabilities);_defineProperty(_this748,uniffiTypeNameSymbol,"HomeserverCapabilities");_defineProperty(_this748,destructorGuardSymbol,void 0);_defineProperty(_this748,pointerLiteralSymbol,void 0);_this748[pointerLiteralSymbol]=pointer;_this748[destructorGuardSymbol]=uniffiTypeHomeserverCapabilitiesObjectFactory.bless(pointer);return _this748;}_inherits(HomeserverCapabilities,_UniffiAbstractObject6);return _createClass(HomeserverCapabilities,[{key:"canChangeAvatar",value:async function canChangeAvatar(asyncOpts_)/*throws*/{var _this749=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_homeservercapabilities_can_change_avatar(uniffiTypeHomeserverCapabilitiesObjectFactory.clonePointer(_this749));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"canChangeDisplayname",value:async function canChangeDisplayname(asyncOpts_)/*throws*/{var _this750=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_homeservercapabilities_can_change_displayname(uniffiTypeHomeserverCapabilitiesObjectFactory.clonePointer(_this750));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"canChangePassword",value:async function canChangePassword(asyncOpts_)/*throws*/{var _this751=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_homeservercapabilities_can_change_password(uniffiTypeHomeserverCapabilitiesObjectFactory.clonePointer(_this751));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"canChangeThirdpartyIds",value:async function canChangeThirdpartyIds(asyncOpts_)/*throws*/{var _this752=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_homeservercapabilities_can_change_thirdparty_ids(uniffiTypeHomeserverCapabilitiesObjectFactory.clonePointer(_this752));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"canGetLoginToken",value:async function canGetLoginToken(asyncOpts_)/*throws*/{var _this753=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_homeservercapabilities_can_get_login_token(uniffiTypeHomeserverCapabilitiesObjectFactory.clonePointer(_this753));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"extendedProfileFields",value:async function extendedProfileFields(asyncOpts_)/*throws*/{var _this754=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_homeservercapabilities_extended_profile_fields(uniffiTypeHomeserverCapabilitiesObjectFactory.clonePointer(_this754));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeExtendedProfileFields.lift.bind(FfiConverterTypeExtendedProfileFields),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"forgetsRoomWhenLeaving",value:async function forgetsRoomWhenLeaving(asyncOpts_)/*throws*/{var _this755=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_homeservercapabilities_forgets_room_when_leaving(uniffiTypeHomeserverCapabilitiesObjectFactory.clonePointer(_this755));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"refresh",value:async function refresh(asyncOpts_)/*throws*/{var _this756=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_homeservercapabilities_refresh(uniffiTypeHomeserverCapabilitiesObjectFactory.clonePointer(_this756));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4509
4509
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4510
4510
|
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeHomeserverCapabilitiesObjectFactory.pointer(this);uniffiTypeHomeserverCapabilitiesObjectFactory.freePointer(pointer);uniffiTypeHomeserverCapabilitiesObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeHomeserverCapabilitiesObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeHomeserverCapabilitiesObjectFactory=function(){/// <reference lib="es2021" />
|
|
4511
4511
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeHomeserverCapabilitiesObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(HomeserverCapabilities.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="HomeserverCapabilities";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
@@ -4537,7 +4537,7 @@ var FfiConverterTypeHomeserverLoginDetails=new FfiConverterObject(uniffiTypeHome
|
|
|
4537
4537
|
function IdentityResetHandle(pointer){var _this764;_classCallCheck(this,IdentityResetHandle);_this764=_callSuper(this,IdentityResetHandle);_defineProperty(_this764,uniffiTypeNameSymbol,"IdentityResetHandle");_defineProperty(_this764,destructorGuardSymbol,void 0);_defineProperty(_this764,pointerLiteralSymbol,void 0);_this764[pointerLiteralSymbol]=pointer;_this764[destructorGuardSymbol]=uniffiTypeIdentityResetHandleObjectFactory.bless(pointer);return _this764;}/**
|
|
4538
4538
|
* Get the underlying [`CrossSigningResetAuthType`] this identity reset
|
|
4539
4539
|
* process is using.
|
|
4540
|
-
*/_inherits(IdentityResetHandle,_UniffiAbstractObject8);return _createClass(IdentityResetHandle,[{key:"authType",value:function authType(){var _this765=this;return FfiConverterTypeCrossSigningResetAuthType.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_identityresethandle_auth_type(uniffiTypeIdentityResetHandleObjectFactory.clonePointer(_this765),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"cancel",value:
|
|
4540
|
+
*/_inherits(IdentityResetHandle,_UniffiAbstractObject8);return _createClass(IdentityResetHandle,[{key:"authType",value:function authType(){var _this765=this;return FfiConverterTypeCrossSigningResetAuthType.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_identityresethandle_auth_type(uniffiTypeIdentityResetHandleObjectFactory.clonePointer(_this765),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"cancel",value:async function cancel(asyncOpts_){var _this766=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_identityresethandle_cancel(uniffiTypeIdentityResetHandleObjectFactory.clonePointer(_this766));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4541
4541
|
* This method starts the identity reset process and
|
|
4542
4542
|
* will go through the following steps:
|
|
4543
4543
|
*
|
|
@@ -4545,9 +4545,9 @@ function IdentityResetHandle(pointer){var _this764;_classCallCheck(this,Identity
|
|
|
4545
4545
|
* 2. Disable recovery and delete secret storage
|
|
4546
4546
|
* 3. Go through the cross-signing key reset flow
|
|
4547
4547
|
* 4. Finally, re-enable key backups only if they were enabled before
|
|
4548
|
-
*/},{key:"reset",value:
|
|
4548
|
+
*/},{key:"reset",value:async function reset(auth,asyncOpts_)/*throws*/{var _this767=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_identityresethandle_reset(uniffiTypeIdentityResetHandleObjectFactory.clonePointer(_this767),FfiConverterOptionalTypeAuthData.lower(auth));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4549
4549
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4550
|
-
*/
|
|
4550
|
+
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeIdentityResetHandleObjectFactory.pointer(this);uniffiTypeIdentityResetHandleObjectFactory.freePointer(pointer);uniffiTypeIdentityResetHandleObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeIdentityResetHandleObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeIdentityResetHandleObjectFactory=function(){/// <reference lib="es2021" />
|
|
4551
4551
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeIdentityResetHandleObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(IdentityResetHandle.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="IdentityResetHandle";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
4552
4552
|
markDestroyed:function markDestroyed(){return undefined;}};if(registry){registry.register(ptr,p,ptr);}return ptr;},unbless:function unbless(ptr){if(registry){registry.unregister(ptr);}},pointer:function pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer:function clonePointer(obj){var pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_clone_identityresethandle(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},freePointer:function freePointer(pointer){uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_free_identityresethandle(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},isConcreteType:function isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==="IdentityResetHandle";}};}();// FfiConverter for IdentityResetHandleLike
|
|
4553
4553
|
var FfiConverterTypeIdentityResetHandle=new FfiConverterObject(uniffiTypeIdentityResetHandleObjectFactory);/**
|
|
@@ -4562,7 +4562,7 @@ var FfiConverterTypeInReplyToDetails=new FfiConverterObject(uniffiTypeInReplyToD
|
|
|
4562
4562
|
* @deprecated Use `IndexedDbStoreBuilderLike` instead.
|
|
4563
4563
|
*/export var IndexedDbStoreBuilder=/*#__PURE__*/function(_UniffiAbstractObject0){function IndexedDbStoreBuilder(name){var _this771;_classCallCheck(this,IndexedDbStoreBuilder);_this771=_callSuper(this,IndexedDbStoreBuilder);_defineProperty(_this771,uniffiTypeNameSymbol,"IndexedDbStoreBuilder");_defineProperty(_this771,destructorGuardSymbol,void 0);_defineProperty(_this771,pointerLiteralSymbol,void 0);var pointer=uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_constructor_indexeddbstorebuilder_new(FfiConverterString.lower(name),callStatus);},/*liftString:*/FfiConverterString.lift);_this771[pointerLiteralSymbol]=pointer;_this771[destructorGuardSymbol]=uniffiTypeIndexedDbStoreBuilderObjectFactory.bless(pointer);return _this771;}/**
|
|
4564
4564
|
* Set the passphrase for the stores.
|
|
4565
|
-
*/_inherits(IndexedDbStoreBuilder,_UniffiAbstractObject0);return _createClass(IndexedDbStoreBuilder,[{key:"passphrase",value:function(_passphrase){function passphrase(
|
|
4565
|
+
*/_inherits(IndexedDbStoreBuilder,_UniffiAbstractObject0);return _createClass(IndexedDbStoreBuilder,[{key:"passphrase",value:function(_passphrase){function passphrase(_x0){return _passphrase.apply(this,arguments);}passphrase.toString=function(){return _passphrase.toString();};return passphrase;}(function(passphrase){var _this772=this;return FfiConverterTypeIndexedDbStoreBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_indexeddbstorebuilder_passphrase(uniffiTypeIndexedDbStoreBuilderObjectFactory.clonePointer(_this772),FfiConverterOptionalString.lower(passphrase),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4566
4566
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4567
4567
|
*/)},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeIndexedDbStoreBuilderObjectFactory.pointer(this);uniffiTypeIndexedDbStoreBuilderObjectFactory.freePointer(pointer);uniffiTypeIndexedDbStoreBuilderObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeIndexedDbStoreBuilderObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeIndexedDbStoreBuilderObjectFactory=function(){/// <reference lib="es2021" />
|
|
4568
4568
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeIndexedDbStoreBuilderObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(IndexedDbStoreBuilder.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="IndexedDbStoreBuilder";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
@@ -4576,20 +4576,20 @@ var FfiConverterTypeIndexedDbStoreBuilder=new FfiConverterObject(uniffiTypeIndex
|
|
|
4576
4576
|
*/export var KnockRequestActions=/*#__PURE__*/function(_UniffiAbstractObject1){// No primary constructor declared for this class.
|
|
4577
4577
|
function KnockRequestActions(pointer){var _this773;_classCallCheck(this,KnockRequestActions);_this773=_callSuper(this,KnockRequestActions);_defineProperty(_this773,uniffiTypeNameSymbol,"KnockRequestActions");_defineProperty(_this773,destructorGuardSymbol,void 0);_defineProperty(_this773,pointerLiteralSymbol,void 0);_this773[pointerLiteralSymbol]=pointer;_this773[destructorGuardSymbol]=uniffiTypeKnockRequestActionsObjectFactory.bless(pointer);return _this773;}/**
|
|
4578
4578
|
* Accepts the knock request by inviting the user to the room.
|
|
4579
|
-
*/_inherits(KnockRequestActions,_UniffiAbstractObject1);return _createClass(KnockRequestActions,[{key:"accept",value:
|
|
4579
|
+
*/_inherits(KnockRequestActions,_UniffiAbstractObject1);return _createClass(KnockRequestActions,[{key:"accept",value:async function accept(asyncOpts_)/*throws*/{var _this774=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_knockrequestactions_accept(uniffiTypeKnockRequestActionsObjectFactory.clonePointer(_this774));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4580
4580
|
* Declines the knock request by kicking the user from the room with an
|
|
4581
4581
|
* optional reason.
|
|
4582
|
-
*/
|
|
4582
|
+
*/},{key:"decline",value:async function decline(reason,asyncOpts_)/*throws*/{var _this775=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_knockrequestactions_decline(uniffiTypeKnockRequestActionsObjectFactory.clonePointer(_this775),FfiConverterOptionalString.lower(reason));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4583
4583
|
* Declines the knock request by banning the user from the room with an
|
|
4584
4584
|
* optional reason.
|
|
4585
|
-
*/
|
|
4585
|
+
*/},{key:"declineAndBan",value:async function declineAndBan(reason,asyncOpts_)/*throws*/{var _this776=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_knockrequestactions_decline_and_ban(uniffiTypeKnockRequestActionsObjectFactory.clonePointer(_this776),FfiConverterOptionalString.lower(reason));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4586
4586
|
* Marks the knock request as 'seen'.
|
|
4587
4587
|
*
|
|
4588
4588
|
* **IMPORTANT**: this won't update the current reference to this request,
|
|
4589
4589
|
* a new one with the updated value should be emitted instead.
|
|
4590
|
-
*/
|
|
4590
|
+
*/},{key:"markAsSeen",value:async function markAsSeen(asyncOpts_)/*throws*/{var _this777=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_knockrequestactions_mark_as_seen(uniffiTypeKnockRequestActionsObjectFactory.clonePointer(_this777));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4591
4591
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4592
|
-
*/
|
|
4592
|
+
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeKnockRequestActionsObjectFactory.pointer(this);uniffiTypeKnockRequestActionsObjectFactory.freePointer(pointer);uniffiTypeKnockRequestActionsObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeKnockRequestActionsObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeKnockRequestActionsObjectFactory=function(){/// <reference lib="es2021" />
|
|
4593
4593
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeKnockRequestActionsObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(KnockRequestActions.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="KnockRequestActions";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
4594
4594
|
markDestroyed:function markDestroyed(){return undefined;}};if(registry){registry.register(ptr,p,ptr);}return ptr;},unbless:function unbless(ptr){if(registry){registry.unregister(ptr);}},pointer:function pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer:function clonePointer(obj){var pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_clone_knockrequestactions(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},freePointer:function freePointer(pointer){uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_free_knockrequestactions(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},isConcreteType:function isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==="KnockRequestActions";}};}();// FfiConverter for KnockRequestActionsLike
|
|
4595
4595
|
var FfiConverterTypeKnockRequestActions=new FfiConverterObject(uniffiTypeKnockRequestActionsObjectFactory);/**
|
|
@@ -4634,10 +4634,10 @@ var FfiConverterTypeLazyTimelineItemProvider=new FfiConverterObject(uniffiTypeLa
|
|
|
4634
4634
|
*/export var LeaveSpaceHandle=/*#__PURE__*/function(_UniffiAbstractObject11){// No primary constructor declared for this class.
|
|
4635
4635
|
function LeaveSpaceHandle(pointer){var _this784;_classCallCheck(this,LeaveSpaceHandle);_this784=_callSuper(this,LeaveSpaceHandle);_defineProperty(_this784,uniffiTypeNameSymbol,"LeaveSpaceHandle");_defineProperty(_this784,destructorGuardSymbol,void 0);_defineProperty(_this784,pointerLiteralSymbol,void 0);_this784[pointerLiteralSymbol]=pointer;_this784[destructorGuardSymbol]=uniffiTypeLeaveSpaceHandleObjectFactory.bless(pointer);return _this784;}/**
|
|
4636
4636
|
* Bulk leave the given rooms. Stops when encountering an error.
|
|
4637
|
-
*/_inherits(LeaveSpaceHandle,_UniffiAbstractObject11);return _createClass(LeaveSpaceHandle,[{key:"leave",value:
|
|
4637
|
+
*/_inherits(LeaveSpaceHandle,_UniffiAbstractObject11);return _createClass(LeaveSpaceHandle,[{key:"leave",value:async function leave(roomIds,asyncOpts_)/*throws*/{var _this785=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_leavespacehandle_leave(uniffiTypeLeaveSpaceHandleObjectFactory.clonePointer(_this785),FfiConverterArrayString.lower(roomIds));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4638
4638
|
* A list of rooms to be left which next to normal [`SpaceRoom`] data also
|
|
4639
4639
|
* include leave specific information.
|
|
4640
|
-
*/
|
|
4640
|
+
*/},{key:"rooms",value:function rooms(){var _this786=this;return FfiConverterArrayTypeLeaveSpaceRoom.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_leavespacehandle_rooms(uniffiTypeLeaveSpaceHandleObjectFactory.clonePointer(_this786),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4641
4641
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4642
4642
|
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeLeaveSpaceHandleObjectFactory.pointer(this);uniffiTypeLeaveSpaceHandleObjectFactory.freePointer(pointer);uniffiTypeLeaveSpaceHandleObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeLeaveSpaceHandleObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeLeaveSpaceHandleObjectFactory=function(){/// <reference lib="es2021" />
|
|
4643
4643
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeLeaveSpaceHandleObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(LeaveSpaceHandle.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="LeaveSpaceHandle";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
@@ -4668,7 +4668,7 @@ function LoginWithQrCodeHandler(pointer){var _this787;_classCallCheck(this,Login
|
|
|
4668
4668
|
* obtain the [`QrCodeData`] and collect the [`CheckCode`] from the user.
|
|
4669
4669
|
*
|
|
4670
4670
|
* [MSC4108]: https://github.com/matrix-org/matrix-spec-proposals/pull/4108
|
|
4671
|
-
*/_inherits(LoginWithQrCodeHandler,_UniffiAbstractObject12);return _createClass(LoginWithQrCodeHandler,[{key:"generate",value:
|
|
4671
|
+
*/_inherits(LoginWithQrCodeHandler,_UniffiAbstractObject12);return _createClass(LoginWithQrCodeHandler,[{key:"generate",value:async function generate(progressListener,asyncOpts_)/*throws*/{var _this788=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_loginwithqrcodehandler_generate(uniffiTypeLoginWithQrCodeHandlerObjectFactory.clonePointer(_this788),FfiConverterTypeGeneratedQrLoginProgressListener.lower(progressListener));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeHumanQrLoginError.lift.bind(FfiConverterTypeHumanQrLoginError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4672
4672
|
* This method allows you to log in with a scanned QR code.
|
|
4673
4673
|
*
|
|
4674
4674
|
* The existing device needs to display the QR code which this device can
|
|
@@ -4691,9 +4691,9 @@ function LoginWithQrCodeHandler(pointer){var _this787;_classCallCheck(this,Login
|
|
|
4691
4691
|
* transfer the [`CheckCode`] to the existing device.
|
|
4692
4692
|
*
|
|
4693
4693
|
* [MSC4108]: https://github.com/matrix-org/matrix-spec-proposals/pull/4108
|
|
4694
|
-
*/
|
|
4694
|
+
*/},{key:"scan",value:async function scan(qrCodeData,progressListener,asyncOpts_)/*throws*/{var _this789=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_loginwithqrcodehandler_scan(uniffiTypeLoginWithQrCodeHandlerObjectFactory.clonePointer(_this789),FfiConverterTypeQrCodeData.lower(qrCodeData),FfiConverterTypeQrLoginProgressListener.lower(progressListener));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeHumanQrLoginError.lift.bind(FfiConverterTypeHumanQrLoginError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4695
4695
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4696
|
-
*/
|
|
4696
|
+
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeLoginWithQrCodeHandlerObjectFactory.pointer(this);uniffiTypeLoginWithQrCodeHandlerObjectFactory.freePointer(pointer);uniffiTypeLoginWithQrCodeHandlerObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeLoginWithQrCodeHandlerObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeLoginWithQrCodeHandlerObjectFactory=function(){/// <reference lib="es2021" />
|
|
4697
4697
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeLoginWithQrCodeHandlerObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(LoginWithQrCodeHandler.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="LoginWithQrCodeHandler";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
4698
4698
|
markDestroyed:function markDestroyed(){return undefined;}};if(registry){registry.register(ptr,p,ptr);}return ptr;},unbless:function unbless(ptr){if(registry){registry.unregister(ptr);}},pointer:function pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer:function clonePointer(obj){var pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_clone_loginwithqrcodehandler(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},freePointer:function freePointer(pointer){uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_free_loginwithqrcodehandler(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},isConcreteType:function isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==="LoginWithQrCodeHandler";}};}();// FfiConverter for LoginWithQrCodeHandlerLike
|
|
4699
4699
|
var FfiConverterTypeLoginWithQrCodeHandler=new FfiConverterObject(uniffiTypeLoginWithQrCodeHandlerObjectFactory);/**
|
|
@@ -4732,7 +4732,7 @@ function NotificationClient(pointer){var _this796;_classCallCheck(this,Notificat
|
|
|
4732
4732
|
*
|
|
4733
4733
|
* An error result means that we couldn't resolve the notification; in that
|
|
4734
4734
|
* case, a dummy notification may be displayed instead.
|
|
4735
|
-
*/_inherits(NotificationClient,_UniffiAbstractObject15);return _createClass(NotificationClient,[{key:"getNotification",value:
|
|
4735
|
+
*/_inherits(NotificationClient,_UniffiAbstractObject15);return _createClass(NotificationClient,[{key:"getNotification",value:async function getNotification(roomId,eventId,asyncOpts_)/*throws*/{var _this797=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationclient_get_notification(uniffiTypeNotificationClientObjectFactory.clonePointer(_this797),FfiConverterString.lower(roomId),FfiConverterString.lower(eventId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeNotificationStatus.lift.bind(FfiConverterTypeNotificationStatus),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4736
4736
|
* Get several notification items in a single batch.
|
|
4737
4737
|
*
|
|
4738
4738
|
* Returns an error if the flow failed when preparing to fetch the
|
|
@@ -4740,12 +4740,12 @@ function NotificationClient(pointer){var _this796;_classCallCheck(this,Notificat
|
|
|
4740
4740
|
* [`BatchNotificationResult`], that indicates if the notification was
|
|
4741
4741
|
* successfully fetched (in which case, it's a [`NotificationStatus`]), or
|
|
4742
4742
|
* an error message if it couldn't be fetched.
|
|
4743
|
-
*/
|
|
4743
|
+
*/},{key:"getNotifications",value:async function getNotifications(requests,asyncOpts_)/*throws*/{var _this798=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationclient_get_notifications(uniffiTypeNotificationClientObjectFactory.clonePointer(_this798),FfiConverterArrayTypeNotificationItemsRequest.lower(requests));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterMapStringTypeBatchNotificationResult.lift.bind(FfiConverterMapStringTypeBatchNotificationResult),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4744
4744
|
* Fetches a room by its ID using the in-memory state store backed client.
|
|
4745
4745
|
*
|
|
4746
4746
|
* Useful to retrieve room information after running the limited
|
|
4747
4747
|
* notification client sliding sync loop.
|
|
4748
|
-
*/
|
|
4748
|
+
*/},{key:"getRoom",value:function getRoom(roomId)/*throws*/{var _this799=this;return FfiConverterOptionalTypeRoom.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError),/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationclient_get_room(uniffiTypeNotificationClientObjectFactory.clonePointer(_this799),FfiConverterString.lower(roomId),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4749
4749
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4750
4750
|
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeNotificationClientObjectFactory.pointer(this);uniffiTypeNotificationClientObjectFactory.freePointer(pointer);uniffiTypeNotificationClientObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeNotificationClientObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeNotificationClientObjectFactory=function(){/// <reference lib="es2021" />
|
|
4751
4751
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeNotificationClientObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(NotificationClient.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="NotificationClient";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
@@ -4757,13 +4757,13 @@ function NotificationSettings(pointer){var _this800;_classCallCheck(this,Notific
|
|
|
4757
4757
|
* Check whether [MSC 4028 push rule][rule] is enabled on the homeserver.
|
|
4758
4758
|
*
|
|
4759
4759
|
* [rule]: https://github.com/matrix-org/matrix-spec-proposals/blob/giomfo/push_encrypted_events/proposals/4028-push-all-encrypted-events-except-for-muted-rooms.md
|
|
4760
|
-
*/_inherits(NotificationSettings,_UniffiAbstractObject16);return _createClass(NotificationSettings,[{key:"canHomeserverPushEncryptedEventToDevice",value:
|
|
4760
|
+
*/_inherits(NotificationSettings,_UniffiAbstractObject16);return _createClass(NotificationSettings,[{key:"canHomeserverPushEncryptedEventToDevice",value:async function canHomeserverPushEncryptedEventToDevice(asyncOpts_){var _this801=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_can_homeserver_push_encrypted_event_to_device(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this801));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4761
4761
|
* Returns true if [MSC 4028 push rule][rule] is supported and enabled.
|
|
4762
4762
|
*
|
|
4763
4763
|
* [rule]: https://github.com/matrix-org/matrix-spec-proposals/blob/giomfo/push_encrypted_events/proposals/4028-push-all-encrypted-events-except-for-muted-rooms.md
|
|
4764
|
-
*/
|
|
4764
|
+
*/},{key:"canPushEncryptedEventToDevice",value:async function canPushEncryptedEventToDevice(asyncOpts_){var _this802=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_can_push_encrypted_event_to_device(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this802));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4765
4765
|
* Get whether some enabled keyword rules exist.
|
|
4766
|
-
*/
|
|
4766
|
+
*/},{key:"containsKeywordsRules",value:async function containsKeywordsRules(asyncOpts_){var _this803=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_contains_keywords_rules(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this803));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4767
4767
|
* Get the default room notification mode
|
|
4768
4768
|
*
|
|
4769
4769
|
* The mode will depend on the associated `PushRule` based on whether the
|
|
@@ -4774,9 +4774,9 @@ function NotificationSettings(pointer){var _this800;_classCallCheck(this,Notific
|
|
|
4774
4774
|
* * `is_encrypted` - whether the room is encrypted
|
|
4775
4775
|
* * `is_one_to_one` - whether the room is a direct chats involving two
|
|
4776
4776
|
* people
|
|
4777
|
-
*/
|
|
4777
|
+
*/},{key:"getDefaultRoomNotificationMode",value:async function getDefaultRoomNotificationMode(isEncrypted,isOneToOne,asyncOpts_){var _this804=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_default_room_notification_mode(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this804),FfiConverterBool.lower(isEncrypted),FfiConverterBool.lower(isOneToOne));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeRoomNotificationMode.lift.bind(FfiConverterTypeRoomNotificationMode),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4778
4778
|
* Returns the raw push rules in JSON format.
|
|
4779
|
-
*/
|
|
4779
|
+
*/},{key:"getRawPushRules",value:async function getRawPushRules(asyncOpts_)/*throws*/{var _this805=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_raw_push_rules(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this805));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4780
4780
|
* Get the notification settings for a room.
|
|
4781
4781
|
*
|
|
4782
4782
|
* # Arguments
|
|
@@ -4785,25 +4785,25 @@ function NotificationSettings(pointer){var _this800;_classCallCheck(this,Notific
|
|
|
4785
4785
|
* * `is_encrypted` - whether the room is encrypted
|
|
4786
4786
|
* * `is_one_to_one` - whether the room is a direct chat involving two
|
|
4787
4787
|
* people
|
|
4788
|
-
*/
|
|
4788
|
+
*/},{key:"getRoomNotificationSettings",value:async function getRoomNotificationSettings(roomId,isEncrypted,isOneToOne,asyncOpts_)/*throws*/{var _this806=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_room_notification_settings(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this806),FfiConverterString.lower(roomId),FfiConverterBool.lower(isEncrypted),FfiConverterBool.lower(isOneToOne));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeRoomNotificationSettings.lift.bind(FfiConverterTypeRoomNotificationSettings),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeNotificationSettingsError.lift.bind(FfiConverterTypeNotificationSettingsError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4789
4789
|
* Get all room IDs for which a user-defined rule exists.
|
|
4790
|
-
*/
|
|
4790
|
+
*/},{key:"getRoomsWithUserDefinedRules",value:async function getRoomsWithUserDefinedRules(enabled,asyncOpts_){var _this807=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_rooms_with_user_defined_rules(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this807),FfiConverterOptionalBool.lower(enabled));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayString.lift.bind(FfiConverterArrayString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4791
4791
|
* Get the user defined room notification mode
|
|
4792
|
-
*/
|
|
4792
|
+
*/},{key:"getUserDefinedRoomNotificationMode",value:async function getUserDefinedRoomNotificationMode(roomId,asyncOpts_)/*throws*/{var _this808=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_get_user_defined_room_notification_mode(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this808),FfiConverterString.lower(roomId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalTypeRoomNotificationMode.lift.bind(FfiConverterOptionalTypeRoomNotificationMode),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeNotificationSettingsError.lift.bind(FfiConverterTypeNotificationSettingsError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4793
4793
|
* Get whether the `.m.rule.call` push rule is enabled
|
|
4794
|
-
*/
|
|
4794
|
+
*/},{key:"isCallEnabled",value:async function isCallEnabled(asyncOpts_)/*throws*/{var _this809=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_is_call_enabled(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this809));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeNotificationSettingsError.lift.bind(FfiConverterTypeNotificationSettingsError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4795
4795
|
* Get whether the `.m.rule.invite_for_me` push rule is enabled
|
|
4796
|
-
*/
|
|
4796
|
+
*/},{key:"isInviteForMeEnabled",value:async function isInviteForMeEnabled(asyncOpts_)/*throws*/{var _this810=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_is_invite_for_me_enabled(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this810));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeNotificationSettingsError.lift.bind(FfiConverterTypeNotificationSettingsError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4797
4797
|
* Get whether room mentions are enabled.
|
|
4798
|
-
*/
|
|
4798
|
+
*/},{key:"isRoomMentionEnabled",value:async function isRoomMentionEnabled(asyncOpts_)/*throws*/{var _this811=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_is_room_mention_enabled(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this811));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeNotificationSettingsError.lift.bind(FfiConverterTypeNotificationSettingsError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4799
4799
|
* Get whether user mentions are enabled.
|
|
4800
|
-
*/
|
|
4800
|
+
*/},{key:"isUserMentionEnabled",value:async function isUserMentionEnabled(asyncOpts_)/*throws*/{var _this812=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_is_user_mention_enabled(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this812));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeNotificationSettingsError.lift.bind(FfiConverterTypeNotificationSettingsError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4801
4801
|
* Restore the default notification mode for a room
|
|
4802
|
-
*/
|
|
4802
|
+
*/},{key:"restoreDefaultRoomNotificationMode",value:async function restoreDefaultRoomNotificationMode(roomId,asyncOpts_)/*throws*/{var _this813=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_restore_default_room_notification_mode(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this813),FfiConverterString.lower(roomId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeNotificationSettingsError.lift.bind(FfiConverterTypeNotificationSettingsError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4803
4803
|
* Set whether the `.m.rule.call` push rule is enabled
|
|
4804
|
-
*/
|
|
4804
|
+
*/},{key:"setCallEnabled",value:async function setCallEnabled(enabled,asyncOpts_)/*throws*/{var _this814=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_call_enabled(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this814),FfiConverterBool.lower(enabled));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeNotificationSettingsError.lift.bind(FfiConverterTypeNotificationSettingsError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4805
4805
|
* Sets a custom push rule with the given actions and conditions.
|
|
4806
|
-
*/
|
|
4806
|
+
*/},{key:"setCustomPushRule",value:async function setCustomPushRule(ruleId,ruleKind,actions,conditions,asyncOpts_)/*throws*/{var _this815=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_custom_push_rule(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this815),FfiConverterString.lower(ruleId),FfiConverterTypeRuleKind.lower(ruleKind),FfiConverterArrayTypeAction.lower(actions),FfiConverterArrayTypePushCondition.lower(conditions));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeNotificationSettingsError.lift.bind(FfiConverterTypeNotificationSettingsError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4807
4807
|
* Set the default room notification mode
|
|
4808
4808
|
*
|
|
4809
4809
|
* # Arguments
|
|
@@ -4812,15 +4812,15 @@ function NotificationSettings(pointer){var _this800;_classCallCheck(this,Notific
|
|
|
4812
4812
|
* * `is_one_to_one` - whether the mode is for direct chats involving two
|
|
4813
4813
|
* people
|
|
4814
4814
|
* * `mode` - the new default mode
|
|
4815
|
-
*/
|
|
4815
|
+
*/},{key:"setDefaultRoomNotificationMode",value:async function setDefaultRoomNotificationMode(isEncrypted,isOneToOne,mode,asyncOpts_)/*throws*/{var _this816=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_default_room_notification_mode(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this816),FfiConverterBool.lower(isEncrypted),FfiConverterBool.lower(isOneToOne),FfiConverterTypeRoomNotificationMode.lower(mode));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeNotificationSettingsError.lift.bind(FfiConverterTypeNotificationSettingsError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"setDelegate",value:function setDelegate(delegate){var _this817=this;uniffiCaller.rustCall(/*caller:*/function(callStatus){nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_delegate(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this817),FfiConverterOptionalTypeNotificationSettingsDelegate.lower(delegate),callStatus);},/*liftString:*/FfiConverterString.lift);}/**
|
|
4816
4816
|
* Set whether the `.m.rule.invite_for_me` push rule is enabled
|
|
4817
|
-
*/},{key:"setInviteForMeEnabled",value:
|
|
4817
|
+
*/},{key:"setInviteForMeEnabled",value:async function setInviteForMeEnabled(enabled,asyncOpts_)/*throws*/{var _this818=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_invite_for_me_enabled(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this818),FfiConverterBool.lower(enabled));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeNotificationSettingsError.lift.bind(FfiConverterTypeNotificationSettingsError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4818
4818
|
* Set whether room mentions are enabled.
|
|
4819
|
-
*/
|
|
4819
|
+
*/},{key:"setRoomMentionEnabled",value:async function setRoomMentionEnabled(enabled,asyncOpts_)/*throws*/{var _this819=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_room_mention_enabled(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this819),FfiConverterBool.lower(enabled));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeNotificationSettingsError.lift.bind(FfiConverterTypeNotificationSettingsError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4820
4820
|
* Set the notification mode for a room.
|
|
4821
|
-
*/
|
|
4821
|
+
*/},{key:"setRoomNotificationMode",value:async function setRoomNotificationMode(roomId,mode,asyncOpts_)/*throws*/{var _this820=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_room_notification_mode(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this820),FfiConverterString.lower(roomId),FfiConverterTypeRoomNotificationMode.lower(mode));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeNotificationSettingsError.lift.bind(FfiConverterTypeNotificationSettingsError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4822
4822
|
* Set whether user mentions are enabled.
|
|
4823
|
-
*/
|
|
4823
|
+
*/},{key:"setUserMentionEnabled",value:async function setUserMentionEnabled(enabled,asyncOpts_)/*throws*/{var _this821=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_set_user_mention_enabled(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this821),FfiConverterBool.lower(enabled));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeNotificationSettingsError.lift.bind(FfiConverterTypeNotificationSettingsError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4824
4824
|
* Unmute a room.
|
|
4825
4825
|
*
|
|
4826
4826
|
* # Arguments
|
|
@@ -4829,9 +4829,9 @@ function NotificationSettings(pointer){var _this800;_classCallCheck(this,Notific
|
|
|
4829
4829
|
* * `is_encrypted` - whether the room is encrypted
|
|
4830
4830
|
* * `is_one_to_one` - whether the room is a direct chat involving two
|
|
4831
4831
|
* people
|
|
4832
|
-
*/
|
|
4832
|
+
*/},{key:"unmuteRoom",value:async function unmuteRoom(roomId,isEncrypted,isOneToOne,asyncOpts_)/*throws*/{var _this822=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_notificationsettings_unmute_room(uniffiTypeNotificationSettingsObjectFactory.clonePointer(_this822),FfiConverterString.lower(roomId),FfiConverterBool.lower(isEncrypted),FfiConverterBool.lower(isOneToOne));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeNotificationSettingsError.lift.bind(FfiConverterTypeNotificationSettingsError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4833
4833
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4834
|
-
*/
|
|
4834
|
+
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeNotificationSettingsObjectFactory.pointer(this);uniffiTypeNotificationSettingsObjectFactory.freePointer(pointer);uniffiTypeNotificationSettingsObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeNotificationSettingsObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeNotificationSettingsObjectFactory=function(){/// <reference lib="es2021" />
|
|
4835
4835
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeNotificationSettingsObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(NotificationSettings.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="NotificationSettings";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
4836
4836
|
markDestroyed:function markDestroyed(){return undefined;}};if(registry){registry.register(ptr,p,ptr);}return ptr;},unbless:function unbless(ptr){if(registry){registry.unregister(ptr);}},pointer:function pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer:function clonePointer(obj){var pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_clone_notificationsettings(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},freePointer:function freePointer(pointer){uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_free_notificationsettings(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},isConcreteType:function isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==="NotificationSettings";}};}();// FfiConverter for NotificationSettingsLike
|
|
4837
4837
|
var FfiConverterTypeNotificationSettings=new FfiConverterObject(uniffiTypeNotificationSettingsObjectFactory);/**
|
|
@@ -4888,21 +4888,21 @@ function Room(pointer){var _this828;_classCallCheck(this,Room);_this828=_callSup
|
|
|
4888
4888
|
* amount of sessions.
|
|
4889
4889
|
*
|
|
4890
4890
|
* The vector is ordered by oldest membership user to newest.
|
|
4891
|
-
*/},{key:"activeRoomCallParticipants",value:function activeRoomCallParticipants(){var _this830=this;return FfiConverterArrayString.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_active_room_call_participants(uniffiTypeRoomObjectFactory.clonePointer(_this830),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"alternativeAliases",value:function alternativeAliases(){var _this831=this;return FfiConverterArrayString.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_alternative_aliases(uniffiTypeRoomObjectFactory.clonePointer(_this831),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"applyPowerLevelChanges",value:
|
|
4891
|
+
*/},{key:"activeRoomCallParticipants",value:function activeRoomCallParticipants(){var _this830=this;return FfiConverterArrayString.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_active_room_call_participants(uniffiTypeRoomObjectFactory.clonePointer(_this830),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"alternativeAliases",value:function alternativeAliases(){var _this831=this;return FfiConverterArrayString.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_alternative_aliases(uniffiTypeRoomObjectFactory.clonePointer(_this831),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"applyPowerLevelChanges",value:async function applyPowerLevelChanges(changes,asyncOpts_)/*throws*/{var _this832=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_apply_power_level_changes(uniffiTypeRoomObjectFactory.clonePointer(_this832),FfiConverterTypeRoomPowerLevelChanges.lower(changes));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"avatarUrl",value:function avatarUrl(){var _this833=this;return FfiConverterOptionalString.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_avatar_url(uniffiTypeRoomObjectFactory.clonePointer(_this833),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"banUser",value:async function banUser(userId,reason,asyncOpts_)/*throws*/{var _this834=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_ban_user(uniffiTypeRoomObjectFactory.clonePointer(_this834),FfiConverterString.lower(userId),FfiConverterOptionalString.lower(reason));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"canonicalAlias",value:function canonicalAlias(){var _this835=this;return FfiConverterOptionalString.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_canonical_alias(uniffiTypeRoomObjectFactory.clonePointer(_this835),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4892
4892
|
* Remove the `ComposerDraft` stored in the state store for this room.
|
|
4893
|
-
*/},{key:"clearComposerDraft",value:
|
|
4893
|
+
*/},{key:"clearComposerDraft",value:async function clearComposerDraft(threadRoot,asyncOpts_)/*throws*/{var _this836=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_clear_composer_draft(uniffiTypeRoomObjectFactory.clonePointer(_this836),FfiConverterOptionalString.lower(threadRoot));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4894
4894
|
* Clear the event cache storage for the current room.
|
|
4895
4895
|
*
|
|
4896
4896
|
* This will remove all the information related to the event cache, in
|
|
4897
4897
|
* memory and in the persisted storage, if enabled.
|
|
4898
|
-
*/
|
|
4898
|
+
*/},{key:"clearEventCacheStorage",value:async function clearEventCacheStorage(asyncOpts_)/*throws*/{var _this837=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_clear_event_cache_storage(uniffiTypeRoomObjectFactory.clonePointer(_this837));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4899
4899
|
* Declines a call (and stop ringing).
|
|
4900
4900
|
*
|
|
4901
4901
|
* # Arguments
|
|
4902
4902
|
*
|
|
4903
4903
|
* * `rtc_notification_event_id` - the event id of the m.rtc.notification
|
|
4904
4904
|
* event.
|
|
4905
|
-
*/
|
|
4905
|
+
*/},{key:"declineCall",value:async function declineCall(rtcNotificationEventId,asyncOpts_)/*throws*/{var _this838=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_decline_call(uniffiTypeRoomObjectFactory.clonePointer(_this838),FfiConverterString.lower(rtcNotificationEventId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4906
4906
|
* Forces the currently active room key, which is used to encrypt messages,
|
|
4907
4907
|
* to be rotated.
|
|
4908
4908
|
*
|
|
@@ -4910,41 +4910,41 @@ function Room(pointer){var _this828;_classCallCheck(this,Room);_this828=_callSup
|
|
|
4910
4910
|
* next time a message will be sent. You don't have to call this method,
|
|
4911
4911
|
* room keys will be rotated automatically when necessary. This method is
|
|
4912
4912
|
* still useful for debugging purposes.
|
|
4913
|
-
*/
|
|
4913
|
+
*/},{key:"discardRoomKey",value:async function discardRoomKey(asyncOpts_)/*throws*/{var _this839=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_discard_room_key(uniffiTypeRoomObjectFactory.clonePointer(_this839));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4914
4914
|
* Returns the room's name from the state event if available, otherwise
|
|
4915
4915
|
* compute a room name based on the room's nature (DM or not) and number of
|
|
4916
4916
|
* members.
|
|
4917
|
-
*/
|
|
4917
|
+
*/},{key:"displayName",value:function displayName(){var _this840=this;return FfiConverterOptionalString.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_display_name(uniffiTypeRoomObjectFactory.clonePointer(_this840),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4918
4918
|
* Edit an event given its event id.
|
|
4919
4919
|
*
|
|
4920
4920
|
* Useful outside the context of a timeline, or when a timeline doesn't
|
|
4921
4921
|
* have the full content of an event.
|
|
4922
|
-
*/},{key:"edit",value:
|
|
4922
|
+
*/},{key:"edit",value:async function edit(eventId,newContent,asyncOpts_)/*throws*/{var _this841=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_edit(uniffiTypeRoomObjectFactory.clonePointer(_this841),FfiConverterString.lower(eventId),FfiConverterTypeRoomMessageEventContentWithoutRelation.lower(newContent));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4923
4923
|
* Enable End-to-end encryption in this room.
|
|
4924
|
-
*/
|
|
4924
|
+
*/},{key:"enableEncryption",value:async function enableEncryption(asyncOpts_)/*throws*/{var _this842=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_enable_encryption(uniffiTypeRoomObjectFactory.clonePointer(_this842));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4925
4925
|
* Enable or disable the send queue for that particular room.
|
|
4926
|
-
*/
|
|
4926
|
+
*/},{key:"enableSendQueue",value:function enableSendQueue(enable){var _this843=this;uniffiCaller.rustCall(/*caller:*/function(callStatus){nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_enable_send_queue(uniffiTypeRoomObjectFactory.clonePointer(_this843),FfiConverterBool.lower(enable),callStatus);},/*liftString:*/FfiConverterString.lift);}},{key:"encryptionState",value:function encryptionState(){var _this844=this;return FfiConverterTypeEncryptionState.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_encryption_state(uniffiTypeRoomObjectFactory.clonePointer(_this844),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4927
4927
|
* Return the current MSC4306 thread subscription for the given thread root
|
|
4928
4928
|
* in this room.
|
|
4929
4929
|
*
|
|
4930
4930
|
* Returns `None` if the thread doesn't exist, or isn't subscribed to, or
|
|
4931
4931
|
* the server can't handle MSC4306; otherwise, returns the thread
|
|
4932
4932
|
* subscription status.
|
|
4933
|
-
*/},{key:"fetchThreadSubscription",value:
|
|
4933
|
+
*/},{key:"fetchThreadSubscription",value:async function fetchThreadSubscription(threadRootEventId,asyncOpts_)/*throws*/{var _this845=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_fetch_thread_subscription(uniffiTypeRoomObjectFactory.clonePointer(_this845),FfiConverterString.lower(threadRootEventId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalTypeThreadSubscription.lift.bind(FfiConverterOptionalTypeThreadSubscription),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4934
4934
|
* Forget this room.
|
|
4935
4935
|
*
|
|
4936
4936
|
* This communicates to the homeserver that it should forget the room.
|
|
4937
4937
|
*
|
|
4938
4938
|
* Only left or banned-from rooms can be forgotten.
|
|
4939
|
-
*/
|
|
4939
|
+
*/},{key:"forget",value:async function forget(asyncOpts_)/*throws*/{var _this846=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_forget(uniffiTypeRoomObjectFactory.clonePointer(_this846));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"getPowerLevels",value:async function getPowerLevels(asyncOpts_)/*throws*/{var _this847=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_get_power_levels(uniffiTypeRoomObjectFactory.clonePointer(_this847));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeRoomPowerLevels.lift.bind(FfiConverterTypeRoomPowerLevels),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4940
4940
|
* Returns the visibility for this room in the room directory.
|
|
4941
4941
|
*
|
|
4942
4942
|
* [Public](`RoomVisibility::Public`) rooms are listed in the room
|
|
4943
4943
|
* directory and can be found using it.
|
|
4944
|
-
*/},{key:"getRoomVisibility",value:
|
|
4944
|
+
*/},{key:"getRoomVisibility",value:async function getRoomVisibility(asyncOpts_)/*throws*/{var _this848=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_get_room_visibility(uniffiTypeRoomObjectFactory.clonePointer(_this848));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeRoomVisibility.lift.bind(FfiConverterTypeRoomVisibility),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4945
4945
|
* Is there a non expired membership with application "m.call" and scope
|
|
4946
4946
|
* "m.room" in this room.
|
|
4947
|
-
*/
|
|
4947
|
+
*/},{key:"hasActiveRoomCall",value:function hasActiveRoomCall(){var _this849=this;return FfiConverterBool.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_has_active_room_call(uniffiTypeRoomObjectFactory.clonePointer(_this849),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4948
4948
|
* Returns the room heroes for this room.
|
|
4949
4949
|
*/},{key:"heroes",value:function heroes(){var _this850=this;return FfiConverterArrayTypeRoomHero.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_heroes(uniffiTypeRoomObjectFactory.clonePointer(_this850),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"id",value:function id(){var _this851=this;return FfiConverterString.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_id(uniffiTypeRoomObjectFactory.clonePointer(_this851),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4950
4950
|
* Set the local trust for the given devices to `LocalTrust::Ignored`
|
|
@@ -4957,40 +4957,40 @@ function Room(pointer){var _this828;_classCallCheck(this,Room);_this828=_callSup
|
|
|
4957
4957
|
* received in the error
|
|
4958
4958
|
* * `transaction_id` - The send queue transaction identifier of the local
|
|
4959
4959
|
* echo the send error applies to
|
|
4960
|
-
*/},{key:"ignoreDeviceTrustAndResend",value:
|
|
4960
|
+
*/},{key:"ignoreDeviceTrustAndResend",value:async function ignoreDeviceTrustAndResend(devices,sendHandle,asyncOpts_)/*throws*/{var _this852=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_ignore_device_trust_and_resend(uniffiTypeRoomObjectFactory.clonePointer(_this852),FfiConverterMapStringArrayString.lower(devices),FfiConverterTypeSendHandle.lower(sendHandle));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4961
4961
|
* Ignores a user.
|
|
4962
4962
|
*
|
|
4963
4963
|
* # Arguments
|
|
4964
4964
|
*
|
|
4965
4965
|
* * `user_id` - The ID of the user to ignore.
|
|
4966
|
-
*/
|
|
4966
|
+
*/},{key:"ignoreUser",value:async function ignoreUser(userId,asyncOpts_)/*throws*/{var _this853=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_ignore_user(uniffiTypeRoomObjectFactory.clonePointer(_this853),FfiConverterString.lower(userId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"inviteUserById",value:async function inviteUserById(userId,asyncOpts_)/*throws*/{var _this854=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_invite_user_by_id(uniffiTypeRoomObjectFactory.clonePointer(_this854),FfiConverterString.lower(userId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"invitedMembersCount",value:function invitedMembersCount(){var _this855=this;return FfiConverterUInt64.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_invited_members_count(uniffiTypeRoomObjectFactory.clonePointer(_this855),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4967
4967
|
* Get the user who created the invite, if any.
|
|
4968
|
-
*/},{key:"inviter",value:
|
|
4968
|
+
*/},{key:"inviter",value:async function inviter(asyncOpts_)/*throws*/{var _this856=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_inviter(uniffiTypeRoomObjectFactory.clonePointer(_this856));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalTypeRoomMember.lift.bind(FfiConverterOptionalTypeRoomMember),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"isDirect",value:async function isDirect(asyncOpts_){var _this857=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_is_direct(uniffiTypeRoomObjectFactory.clonePointer(_this857));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4969
4969
|
* Checks whether the room is encrypted or not.
|
|
4970
4970
|
*
|
|
4971
4971
|
* **Note**: this info may not be reliable if you don't set up
|
|
4972
4972
|
* `m.room.encryption` as required state.
|
|
4973
|
-
*/},{key:"isEncrypted",value:
|
|
4973
|
+
*/},{key:"isEncrypted",value:async function isEncrypted(asyncOpts_){var _this858=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_is_encrypted(uniffiTypeRoomObjectFactory.clonePointer(_this858));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4974
4974
|
* Whether the room can be publicly joined or not, based on its join rule.
|
|
4975
4975
|
*
|
|
4976
4976
|
* Can return `None` if the join rule state event is missing.
|
|
4977
|
-
*/
|
|
4977
|
+
*/},{key:"isPublic",value:function isPublic(){var _this859=this;return FfiConverterOptionalBool.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_is_public(uniffiTypeRoomObjectFactory.clonePointer(_this859),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4978
4978
|
* Returns whether the send queue for that particular room is enabled or
|
|
4979
4979
|
* not.
|
|
4980
4980
|
*/},{key:"isSendQueueEnabled",value:function isSendQueueEnabled(){var _this860=this;return FfiConverterBool.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_is_send_queue_enabled(uniffiTypeRoomObjectFactory.clonePointer(_this860),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"isSpace",value:function isSpace(){var _this861=this;return FfiConverterBool.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_is_space(uniffiTypeRoomObjectFactory.clonePointer(_this861),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
4981
4981
|
* Join this room.
|
|
4982
4982
|
*
|
|
4983
4983
|
* Only invited and left rooms can be joined via this method.
|
|
4984
|
-
*/},{key:"join",value:
|
|
4984
|
+
*/},{key:"join",value:async function join(asyncOpts_)/*throws*/{var _this862=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_join(uniffiTypeRoomObjectFactory.clonePointer(_this862));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"joinedMembersCount",value:function joinedMembersCount(){var _this863=this;return FfiConverterUInt64.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_joined_members_count(uniffiTypeRoomObjectFactory.clonePointer(_this863),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"kickUser",value:async function kickUser(userId,reason,asyncOpts_)/*throws*/{var _this864=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_kick_user(uniffiTypeRoomObjectFactory.clonePointer(_this864),FfiConverterString.lower(userId),FfiConverterOptionalString.lower(reason));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"latestEncryptionState",value:async function latestEncryptionState(asyncOpts_)/*throws*/{var _this865=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_latest_encryption_state(uniffiTypeRoomObjectFactory.clonePointer(_this865));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeEncryptionState.lift.bind(FfiConverterTypeEncryptionState),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"latestEvent",value:async function latestEvent(asyncOpts_){var _this866=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_latest_event(uniffiTypeRoomObjectFactory.clonePointer(_this866));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeLatestEventValue.lift.bind(FfiConverterTypeLatestEventValue),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4985
4985
|
* Leave this room.
|
|
4986
4986
|
*
|
|
4987
4987
|
* Only invited and joined rooms can be left.
|
|
4988
|
-
*/},{key:"leave",value:
|
|
4988
|
+
*/},{key:"leave",value:async function leave(asyncOpts_)/*throws*/{var _this867=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_leave(uniffiTypeRoomObjectFactory.clonePointer(_this867));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4989
4989
|
* Retrieve the `ComposerDraft` stored in the state store for this room.
|
|
4990
|
-
*/
|
|
4990
|
+
*/},{key:"loadComposerDraft",value:async function loadComposerDraft(threadRoot,asyncOpts_)/*throws*/{var _this868=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_load_composer_draft(uniffiTypeRoomObjectFactory.clonePointer(_this868),FfiConverterOptionalString.lower(threadRoot));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalTypeComposerDraft.lift.bind(FfiConverterOptionalTypeComposerDraft),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4991
4991
|
* Either loads the event associated with the `event_id` from the event
|
|
4992
4992
|
* cache or fetches it from the homeserver.
|
|
4993
|
-
*/
|
|
4993
|
+
*/},{key:"loadOrFetchEvent",value:async function loadOrFetchEvent(eventId,asyncOpts_)/*throws*/{var _this869=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_load_or_fetch_event(uniffiTypeRoomObjectFactory.clonePointer(_this869),FfiConverterString.lower(eventId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeTimelineEvent.lift.bind(FfiConverterTypeTimelineEvent),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
4994
4994
|
* Mark a room as fully read, by attaching a read receipt to the provided
|
|
4995
4995
|
* `event_id`.
|
|
4996
4996
|
*
|
|
@@ -5000,12 +5000,12 @@ function Room(pointer){var _this828;_classCallCheck(this,Room);_this828=_callSup
|
|
|
5000
5000
|
* *only* be used when some constraint prevents you from instantiating a
|
|
5001
5001
|
* [`Timeline`]. For any other case use [`Timeline::mark_as_read`]
|
|
5002
5002
|
* instead.
|
|
5003
|
-
*/
|
|
5003
|
+
*/},{key:"markAsFullyReadUnchecked",value:async function markAsFullyReadUnchecked(eventId,asyncOpts_)/*throws*/{var _this870=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_mark_as_fully_read_unchecked(uniffiTypeRoomObjectFactory.clonePointer(_this870),FfiConverterString.lower(eventId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5004
5004
|
* Mark a room as read, by attaching a read receipt on the latest event.
|
|
5005
5005
|
*
|
|
5006
5006
|
* Note: this does NOT unset the unread flag; it's the caller's
|
|
5007
5007
|
* responsibility to do so, if need be.
|
|
5008
|
-
*/
|
|
5008
|
+
*/},{key:"markAsRead",value:async function markAsRead(receiptType,asyncOpts_)/*throws*/{var _this871=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_mark_as_read(uniffiTypeRoomObjectFactory.clonePointer(_this871),FfiConverterTypeReceiptType.lower(receiptType));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"matrixToEventPermalink",value:async function matrixToEventPermalink(eventId,asyncOpts_)/*throws*/{var _this872=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_matrix_to_event_permalink(uniffiTypeRoomObjectFactory.clonePointer(_this872),FfiConverterString.lower(eventId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"matrixToPermalink",value:async function matrixToPermalink(asyncOpts_)/*throws*/{var _this873=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_matrix_to_permalink(uniffiTypeRoomObjectFactory.clonePointer(_this873));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"member",value:async function member(userId,asyncOpts_)/*throws*/{var _this874=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_member(uniffiTypeRoomObjectFactory.clonePointer(_this874),FfiConverterString.lower(userId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeRoomMember.lift.bind(FfiConverterTypeRoomMember),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"memberAvatarUrl",value:async function memberAvatarUrl(userId,asyncOpts_)/*throws*/{var _this875=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_member_avatar_url(uniffiTypeRoomObjectFactory.clonePointer(_this875),FfiConverterString.lower(userId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"memberDisplayName",value:async function memberDisplayName(userId,asyncOpts_)/*throws*/{var _this876=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_member_display_name(uniffiTypeRoomObjectFactory.clonePointer(_this876),FfiConverterString.lower(userId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5009
5009
|
* Get the membership details for the current user.
|
|
5010
5010
|
*
|
|
5011
5011
|
* Returns:
|
|
@@ -5014,7 +5014,7 @@ function Room(pointer){var _this828;_classCallCheck(this,Room);_this828=_callSup
|
|
|
5014
5014
|
* user info and the member info of the sender of the `m.room.member`
|
|
5015
5015
|
* event.
|
|
5016
5016
|
* - If the current user is not present, an error.
|
|
5017
|
-
*/},{key:"memberWithSenderInfo",value:
|
|
5017
|
+
*/},{key:"memberWithSenderInfo",value:async function memberWithSenderInfo(userId,asyncOpts_)/*throws*/{var _this877=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_member_with_sender_info(uniffiTypeRoomObjectFactory.clonePointer(_this877),FfiConverterString.lower(userId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeRoomMemberWithSenderInfo.lift.bind(FfiConverterTypeRoomMemberWithSenderInfo),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"members",value:async function members(asyncOpts_)/*throws*/{var _this878=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_members(uniffiTypeRoomObjectFactory.clonePointer(_this878));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeRoomMembersIterator.lift.bind(FfiConverterTypeRoomMembersIterator),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"membersNoSync",value:async function membersNoSync(asyncOpts_)/*throws*/{var _this879=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_members_no_sync(uniffiTypeRoomObjectFactory.clonePointer(_this879));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeRoomMembersIterator.lift.bind(FfiConverterTypeRoomMembersIterator),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5018
5018
|
* The room's current membership state.
|
|
5019
5019
|
*/},{key:"membership",value:function membership(){var _this880=this;return FfiConverterTypeMembership.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_membership(uniffiTypeRoomObjectFactory.clonePointer(_this880),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"ownUserId",value:function ownUserId(){var _this881=this;return FfiConverterString.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_own_user_id(uniffiTypeRoomObjectFactory.clonePointer(_this881),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
5020
5020
|
* If this room is the successor of a tombstoned room, return the
|
|
@@ -5032,16 +5032,16 @@ function Room(pointer){var _this828;_classCallCheck(this,Room);_this828=_callSup
|
|
|
5032
5032
|
*/},{key:"predecessorRoom",value:function predecessorRoom(){var _this882=this;return FfiConverterOptionalTypePredecessorRoom.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_predecessor_room(uniffiTypeRoomObjectFactory.clonePointer(_this882),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
5033
5033
|
* Builds a `RoomPreview` from a room list item. This is intended for
|
|
5034
5034
|
* invited, knocked or banned rooms.
|
|
5035
|
-
*/},{key:"previewRoom",value:
|
|
5035
|
+
*/},{key:"previewRoom",value:async function previewRoom(via,asyncOpts_)/*throws*/{var _this883=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_preview_room(uniffiTypeRoomObjectFactory.clonePointer(_this883),FfiConverterArrayString.lower(via));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeRoomPreview.lift.bind(FfiConverterTypeRoomPreview),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5036
5036
|
* Publish a new room alias for this room in the room directory.
|
|
5037
5037
|
*
|
|
5038
5038
|
* Returns:
|
|
5039
5039
|
* - `true` if the room alias didn't exist and it's now published.
|
|
5040
5040
|
* - `false` if the room alias was already present so it couldn't be
|
|
5041
5041
|
* published.
|
|
5042
|
-
*/
|
|
5042
|
+
*/},{key:"publishRoomAliasInRoomDirectory",value:async function publishRoomAliasInRoomDirectory(alias,asyncOpts_)/*throws*/{var _this884=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_publish_room_alias_in_room_directory(uniffiTypeRoomObjectFactory.clonePointer(_this884),FfiConverterString.lower(alias));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5043
5043
|
* The raw name as present in the room state event.
|
|
5044
|
-
*/
|
|
5044
|
+
*/},{key:"rawName",value:function rawName(){var _this885=this;return FfiConverterOptionalString.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_raw_name(uniffiTypeRoomObjectFactory.clonePointer(_this885),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
5045
5045
|
* Redacts an event from the room.
|
|
5046
5046
|
*
|
|
5047
5047
|
* # Arguments
|
|
@@ -5050,16 +5050,16 @@ function Room(pointer){var _this828;_classCallCheck(this,Room);_this828=_callSup
|
|
|
5050
5050
|
*
|
|
5051
5051
|
* * `reason` - The reason for the event being redacted (optional). its
|
|
5052
5052
|
* transaction ID (optional). If not given one is created.
|
|
5053
|
-
*/},{key:"redact",value:
|
|
5053
|
+
*/},{key:"redact",value:async function redact(eventId,reason,asyncOpts_)/*throws*/{var _this886=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_redact(uniffiTypeRoomObjectFactory.clonePointer(_this886),FfiConverterString.lower(eventId),FfiConverterOptionalString.lower(reason));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5054
5054
|
* Removes the current room avatar
|
|
5055
|
-
*/
|
|
5055
|
+
*/},{key:"removeAvatar",value:async function removeAvatar(asyncOpts_)/*throws*/{var _this887=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_remove_avatar(uniffiTypeRoomObjectFactory.clonePointer(_this887));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5056
5056
|
* Remove an existing room alias for this room in the room directory.
|
|
5057
5057
|
*
|
|
5058
5058
|
* Returns:
|
|
5059
5059
|
* - `true` if the room alias was present and it's now removed from the
|
|
5060
5060
|
* room directory.
|
|
5061
5061
|
* - `false` if the room alias didn't exist so it couldn't be removed.
|
|
5062
|
-
*/
|
|
5062
|
+
*/},{key:"removeRoomAliasFromRoomDirectory",value:async function removeRoomAliasFromRoomDirectory(alias,asyncOpts_)/*throws*/{var _this888=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_remove_room_alias_from_room_directory(uniffiTypeRoomObjectFactory.clonePointer(_this888),FfiConverterString.lower(alias));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5063
5063
|
* Reports an event from the room.
|
|
5064
5064
|
*
|
|
5065
5065
|
* # Arguments
|
|
@@ -5070,7 +5070,7 @@ function Room(pointer){var _this828;_classCallCheck(this,Room);_this828=_callSup
|
|
|
5070
5070
|
*
|
|
5071
5071
|
* * `score` - The score to rate this content as where -100 is most
|
|
5072
5072
|
* offensive and 0 is inoffensive (optional).
|
|
5073
|
-
*/
|
|
5073
|
+
*/},{key:"reportContent",value:async function reportContent(eventId,reason,asyncOpts_)/*throws*/{var _this889=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_report_content(uniffiTypeRoomObjectFactory.clonePointer(_this889),FfiConverterString.lower(eventId),FfiConverterOptionalString.lower(reason));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5074
5074
|
* Reports a room as inappropriate to the server.
|
|
5075
5075
|
* The caller is not required to be joined to the room to report it.
|
|
5076
5076
|
*
|
|
@@ -5081,15 +5081,15 @@ function Room(pointer){var _this828;_classCallCheck(this,Room);_this828=_callSup
|
|
|
5081
5081
|
* # Errors
|
|
5082
5082
|
*
|
|
5083
5083
|
* Returns an error if the room is not found or on rate limit
|
|
5084
|
-
*/
|
|
5084
|
+
*/},{key:"reportRoom",value:async function reportRoom(reason,asyncOpts_)/*throws*/{var _this890=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_report_room(uniffiTypeRoomObjectFactory.clonePointer(_this890),FfiConverterString.lower(reason));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"resetPowerLevels",value:async function resetPowerLevels(asyncOpts_)/*throws*/{var _this891=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_reset_power_levels(uniffiTypeRoomObjectFactory.clonePointer(_this891));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeRoomPowerLevels.lift.bind(FfiConverterTypeRoomPowerLevels),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5085
5085
|
* Return a debug representation for the internal room events data
|
|
5086
5086
|
* structure, one line per entry in the resulting vector.
|
|
5087
|
-
*/},{key:"roomEventsDebugString",value:
|
|
5087
|
+
*/},{key:"roomEventsDebugString",value:async function roomEventsDebugString(asyncOpts_)/*throws*/{var _this892=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_room_events_debug_string(uniffiTypeRoomObjectFactory.clonePointer(_this892));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayString.lift.bind(FfiConverterArrayString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"roomInfo",value:async function roomInfo(asyncOpts_)/*throws*/{var _this893=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_room_info(uniffiTypeRoomObjectFactory.clonePointer(_this893));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeRoomInfo.lift.bind(FfiConverterTypeRoomInfo),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5088
5088
|
* Store the given `ComposerDraft` in the state store using the current
|
|
5089
5089
|
* room id, as identifier.
|
|
5090
|
-
*/},{key:"saveComposerDraft",value:
|
|
5090
|
+
*/},{key:"saveComposerDraft",value:async function saveComposerDraft(draft,threadRoot,asyncOpts_)/*throws*/{var _this894=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_save_composer_draft(uniffiTypeRoomObjectFactory.clonePointer(_this894),FfiConverterTypeComposerDraft.lower(draft),FfiConverterOptionalString.lower(threadRoot));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5091
5091
|
* Send the current users live location beacon in the room.
|
|
5092
|
-
*/
|
|
5092
|
+
*/},{key:"sendLiveLocation",value:async function sendLiveLocation(geoUri,asyncOpts_)/*throws*/{var _this895=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_send_live_location(uniffiTypeRoomObjectFactory.clonePointer(_this895),FfiConverterString.lower(geoUri));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5093
5093
|
* Send a raw event to the room.
|
|
5094
5094
|
*
|
|
5095
5095
|
* # Arguments
|
|
@@ -5097,7 +5097,7 @@ function Room(pointer){var _this828;_classCallCheck(this,Room);_this828=_callSup
|
|
|
5097
5097
|
* * `event_type` - The type of the event to send.
|
|
5098
5098
|
*
|
|
5099
5099
|
* * `content` - The content of the event to send encoded as JSON string.
|
|
5100
|
-
*/
|
|
5100
|
+
*/},{key:"sendRaw",value:async function sendRaw(eventType,content,asyncOpts_)/*throws*/{var _this896=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_send_raw(uniffiTypeRoomObjectFactory.clonePointer(_this896),FfiConverterString.lower(eventType),FfiConverterString.lower(content));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5101
5101
|
* Send a raw state event to the room.
|
|
5102
5102
|
*
|
|
5103
5103
|
* # Arguments
|
|
@@ -5111,9 +5111,9 @@ function Room(pointer){var _this828;_classCallCheck(this,Room);_this828=_callSup
|
|
|
5111
5111
|
* * `content` - The content of the state event encoded as a JSON string.
|
|
5112
5112
|
*
|
|
5113
5113
|
* Returns the event ID of the newly created state event.
|
|
5114
|
-
*/
|
|
5114
|
+
*/},{key:"sendStateEventRaw",value:async function sendStateEventRaw(eventType,stateKey,content,asyncOpts_)/*throws*/{var _this897=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_send_state_event_raw(uniffiTypeRoomObjectFactory.clonePointer(_this897),FfiConverterString.lower(eventType),FfiConverterString.lower(stateKey),FfiConverterString.lower(content));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterString.lift.bind(FfiConverterString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"setIsFavourite",value:async function setIsFavourite(isFavourite,tagOrder,asyncOpts_)/*throws*/{var _this898=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_set_is_favourite(uniffiTypeRoomObjectFactory.clonePointer(_this898),FfiConverterBool.lower(isFavourite),FfiConverterOptionalFloat64.lower(tagOrder));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"setIsLowPriority",value:async function setIsLowPriority(isLowPriority,tagOrder,asyncOpts_)/*throws*/{var _this899=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_set_is_low_priority(uniffiTypeRoomObjectFactory.clonePointer(_this899),FfiConverterBool.lower(isLowPriority),FfiConverterOptionalFloat64.lower(tagOrder));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5115
5115
|
* Sets a new name to the room.
|
|
5116
|
-
*/},{key:"setName",value:
|
|
5116
|
+
*/},{key:"setName",value:async function setName(name,asyncOpts_)/*throws*/{var _this900=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_set_name(uniffiTypeRoomObjectFactory.clonePointer(_this900),FfiConverterString.lower(name));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"setOwnMemberDisplayName",value:async function setOwnMemberDisplayName(displayName,asyncOpts_)/*throws*/{var _this901=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_set_own_member_display_name(uniffiTypeRoomObjectFactory.clonePointer(_this901),FfiConverterOptionalString.lower(displayName));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5117
5117
|
* Set a MSC4306 subscription to a thread in this room, based on the thread
|
|
5118
5118
|
* root event id.
|
|
5119
5119
|
*
|
|
@@ -5125,41 +5125,41 @@ function Room(pointer){var _this828;_classCallCheck(this,Room);_this828=_callSup
|
|
|
5125
5125
|
* trying to subscribe to it (resp. unsubscribe from it), it will do
|
|
5126
5126
|
* nothing, i.e. subscribing (resp. unsubscribing) to a thread is an
|
|
5127
5127
|
* idempotent operation.
|
|
5128
|
-
*/},{key:"setThreadSubscription",value:
|
|
5128
|
+
*/},{key:"setThreadSubscription",value:async function setThreadSubscription(threadRootEventId,subscribed,asyncOpts_)/*throws*/{var _this902=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_set_thread_subscription(uniffiTypeRoomObjectFactory.clonePointer(_this902),FfiConverterString.lower(threadRootEventId),FfiConverterBool.lower(subscribed));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5129
5129
|
* Sets a new topic in the room.
|
|
5130
|
-
*/
|
|
5130
|
+
*/},{key:"setTopic",value:async function setTopic(topic,asyncOpts_)/*throws*/{var _this903=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_set_topic(uniffiTypeRoomObjectFactory.clonePointer(_this903),FfiConverterString.lower(topic));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5131
5131
|
* Set (or unset) a flag on the room to indicate that the user has
|
|
5132
5132
|
* explicitly marked it as unread.
|
|
5133
|
-
*/
|
|
5133
|
+
*/},{key:"setUnreadFlag",value:async function setUnreadFlag(newValue,asyncOpts_)/*throws*/{var _this904=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_set_unread_flag(uniffiTypeRoomObjectFactory.clonePointer(_this904),FfiConverterBool.lower(newValue));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5134
5134
|
* Start the current users live location share in the room.
|
|
5135
|
-
*/
|
|
5135
|
+
*/},{key:"startLiveLocationShare",value:async function startLiveLocationShare(durationMillis,asyncOpts_)/*throws*/{var _this905=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_start_live_location_share(uniffiTypeRoomObjectFactory.clonePointer(_this905),FfiConverterUInt64.lower(durationMillis));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5136
5136
|
* Stop the current users live location share in the room.
|
|
5137
|
-
*/
|
|
5137
|
+
*/},{key:"stopLiveLocationShare",value:async function stopLiveLocationShare(asyncOpts_)/*throws*/{var _this906=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_stop_live_location_share(uniffiTypeRoomObjectFactory.clonePointer(_this906));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5138
5138
|
* Subscribes to call decline for a currently ringing call, using a
|
|
5139
5139
|
* `listener` to be notified when someone declines.
|
|
5140
5140
|
*
|
|
5141
5141
|
* Will error if `rtc_notification_event_id` is not a valid event id.
|
|
5142
5142
|
* Use the [`TaskHandle`] to cancel the subscription.
|
|
5143
|
-
*/
|
|
5143
|
+
*/},{key:"subscribeToCallDeclineEvents",value:function subscribeToCallDeclineEvents(rtcNotificationEventId,listener)/*throws*/{var _this907=this;return FfiConverterTypeTaskHandle.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError),/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_subscribe_to_call_decline_events(uniffiTypeRoomObjectFactory.clonePointer(_this907),FfiConverterString.lower(rtcNotificationEventId),FfiConverterTypeCallDeclineListener.lower(listener),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"subscribeToIdentityStatusChanges",value:async function subscribeToIdentityStatusChanges(listener,asyncOpts_)/*throws*/{var _this908=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_subscribe_to_identity_status_changes(uniffiTypeRoomObjectFactory.clonePointer(_this908),FfiConverterTypeIdentityStatusChangeListener.lower(listener));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeTaskHandle.lift.bind(FfiConverterTypeTaskHandle),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5144
5144
|
* Subscribes to requests to join this room (knock member events), using a
|
|
5145
5145
|
* `listener` to be notified of the changes.
|
|
5146
5146
|
*
|
|
5147
5147
|
* The current requests to join the room will be emitted immediately
|
|
5148
5148
|
* when subscribing, along with a [`TaskHandle`] to cancel the
|
|
5149
5149
|
* subscription.
|
|
5150
|
-
*/},{key:"subscribeToKnockRequests",value:
|
|
5150
|
+
*/},{key:"subscribeToKnockRequests",value:async function subscribeToKnockRequests(listener,asyncOpts_)/*throws*/{var _this909=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_subscribe_to_knock_requests(uniffiTypeRoomObjectFactory.clonePointer(_this909),FfiConverterTypeKnockRequestsListener.lower(listener));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeTaskHandle.lift.bind(FfiConverterTypeTaskHandle),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5151
5151
|
* Subscribes to live location shares in this room, using a `listener` to
|
|
5152
5152
|
* be notified of the changes.
|
|
5153
5153
|
*
|
|
5154
5154
|
* The current live location shares will be emitted immediately when
|
|
5155
5155
|
* subscribing, along with a [`TaskHandle`] to cancel the subscription.
|
|
5156
|
-
*/
|
|
5156
|
+
*/},{key:"subscribeToLiveLocationShares",value:function subscribeToLiveLocationShares(listener){var _this910=this;return FfiConverterTypeTaskHandle.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_subscribe_to_live_location_shares(uniffiTypeRoomObjectFactory.clonePointer(_this910),FfiConverterTypeLiveLocationShareListener.lower(listener),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"subscribeToRoomInfoUpdates",value:function subscribeToRoomInfoUpdates(listener){var _this911=this;return FfiConverterTypeTaskHandle.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_subscribe_to_room_info_updates(uniffiTypeRoomObjectFactory.clonePointer(_this911),FfiConverterTypeRoomInfoListener.lower(listener),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
5157
5157
|
* Subscribe to all send queue updates in this room.
|
|
5158
5158
|
*
|
|
5159
5159
|
* The given listener will be immediately called with
|
|
5160
5160
|
* `RoomSendQueueUpdate::NewLocalEvent` for each local echo existing in
|
|
5161
5161
|
* the queue.
|
|
5162
|
-
*/},{key:"subscribeToSendQueueUpdates",value:
|
|
5162
|
+
*/},{key:"subscribeToSendQueueUpdates",value:async function subscribeToSendQueueUpdates(listener,asyncOpts_)/*throws*/{var _this912=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_subscribe_to_send_queue_updates(uniffiTypeRoomObjectFactory.clonePointer(_this912),FfiConverterTypeSendQueueListener.lower(listener));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeTaskHandle.lift.bind(FfiConverterTypeTaskHandle),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"subscribeToTypingNotifications",value:function subscribeToTypingNotifications(listener){var _this913=this;return FfiConverterTypeTaskHandle.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_subscribe_to_typing_notifications(uniffiTypeRoomObjectFactory.clonePointer(_this913),FfiConverterTypeTypingNotificationsListener.lower(listener),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
5163
5163
|
* If this room is tombstoned, return the “reference” to the successor room
|
|
5164
5164
|
* —i.e. the room replacing this one.
|
|
5165
5165
|
*
|
|
@@ -5167,7 +5167,7 @@ function Room(pointer){var _this828;_classCallCheck(this,Room);_this828=_callSup
|
|
|
5167
5167
|
* event.
|
|
5168
5168
|
*
|
|
5169
5169
|
* [`m.room.tombstone`]: https://spec.matrix.org/v1.14/client-server-api/#mroomtombstone
|
|
5170
|
-
*/},{key:"successorRoom",value:function successorRoom(){var _this914=this;return FfiConverterOptionalTypeSuccessorRoom.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_successor_room(uniffiTypeRoomObjectFactory.clonePointer(_this914),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"suggestedRoleForUser",value:
|
|
5170
|
+
*/},{key:"successorRoom",value:function successorRoom(){var _this914=this;return FfiConverterOptionalTypeSuccessorRoom.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_successor_room(uniffiTypeRoomObjectFactory.clonePointer(_this914),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"suggestedRoleForUser",value:async function suggestedRoleForUser(userId,asyncOpts_)/*throws*/{var _this915=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_suggested_role_for_user(uniffiTypeRoomObjectFactory.clonePointer(_this915),FfiConverterString.lower(userId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterTypeRoomMemberRole.lift.bind(FfiConverterTypeRoomMemberRole),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5171
5171
|
* Creates a new [`ThreadListService`] for this room.
|
|
5172
5172
|
*
|
|
5173
5173
|
* The returned service provides a reactive, paginated list of thread roots
|
|
@@ -5178,19 +5178,19 @@ function Room(pointer){var _this828;_classCallCheck(this,Room);_this828=_callSup
|
|
|
5178
5178
|
*/},{key:"threadListService",value:function threadListService(){var _this916=this;return FfiConverterTypeThreadListService.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_thread_list_service(uniffiTypeRoomObjectFactory.clonePointer(_this916),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
5179
5179
|
* Create a timeline with a default configuration, i.e. a live timeline
|
|
5180
5180
|
* with read receipts and read marker tracking.
|
|
5181
|
-
*/},{key:"timeline",value:
|
|
5181
|
+
*/},{key:"timeline",value:async function timeline(asyncOpts_)/*throws*/{var _this917=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_timeline(uniffiTypeRoomObjectFactory.clonePointer(_this917));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeTimeline.lift.bind(FfiConverterTypeTimeline),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5182
5182
|
* Build a new timeline instance with the given configuration.
|
|
5183
|
-
*/
|
|
5183
|
+
*/},{key:"timelineWithConfiguration",value:async function timelineWithConfiguration(configuration,asyncOpts_)/*throws*/{var _this918=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_timeline_with_configuration(uniffiTypeRoomObjectFactory.clonePointer(_this918),FfiConverterTypeTimelineConfiguration.lower(configuration));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeTimeline.lift.bind(FfiConverterTypeTimeline),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"topic",value:function topic(){var _this919=this;return FfiConverterOptionalString.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_topic(uniffiTypeRoomObjectFactory.clonePointer(_this919),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"typingNotice",value:async function typingNotice(isTyping,asyncOpts_)/*throws*/{var _this920=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_typing_notice(uniffiTypeRoomObjectFactory.clonePointer(_this920),FfiConverterBool.lower(isTyping));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"unbanUser",value:async function unbanUser(userId,reason,asyncOpts_)/*throws*/{var _this921=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_unban_user(uniffiTypeRoomObjectFactory.clonePointer(_this921),FfiConverterString.lower(userId),FfiConverterOptionalString.lower(reason));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5184
5184
|
* Update the canonical alias of the room.
|
|
5185
5185
|
*
|
|
5186
5186
|
* Note that publishing the alias in the room directory is done separately.
|
|
5187
|
-
*/},{key:"updateCanonicalAlias",value:
|
|
5187
|
+
*/},{key:"updateCanonicalAlias",value:async function updateCanonicalAlias(alias,altAliases,asyncOpts_)/*throws*/{var _this922=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_update_canonical_alias(uniffiTypeRoomObjectFactory.clonePointer(_this922),FfiConverterOptionalString.lower(alias),FfiConverterArrayString.lower(altAliases));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5188
5188
|
* Update room history visibility for this room.
|
|
5189
|
-
*/
|
|
5189
|
+
*/},{key:"updateHistoryVisibility",value:async function updateHistoryVisibility(visibility,asyncOpts_)/*throws*/{var _this923=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_update_history_visibility(uniffiTypeRoomObjectFactory.clonePointer(_this923),FfiConverterTypeRoomHistoryVisibility.lower(visibility));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5190
5190
|
* Update the join rule for this room.
|
|
5191
|
-
*/
|
|
5191
|
+
*/},{key:"updateJoinRules",value:async function updateJoinRules(newRule,asyncOpts_)/*throws*/{var _this924=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_update_join_rules(uniffiTypeRoomObjectFactory.clonePointer(_this924),FfiConverterTypeJoinRule.lower(newRule));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"updatePowerLevelsForUsers",value:async function updatePowerLevelsForUsers(updates,asyncOpts_)/*throws*/{var _this925=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_update_power_levels_for_users(uniffiTypeRoomObjectFactory.clonePointer(_this925),FfiConverterArrayTypeUserPowerLevelUpdate.lower(updates));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5192
5192
|
* Update the room's visibility in the room directory.
|
|
5193
|
-
*/},{key:"updateRoomVisibility",value:
|
|
5193
|
+
*/},{key:"updateRoomVisibility",value:async function updateRoomVisibility(visibility,asyncOpts_)/*throws*/{var _this926=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_update_room_visibility(uniffiTypeRoomObjectFactory.clonePointer(_this926),FfiConverterTypeRoomVisibility.lower(visibility));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5194
5194
|
* Upload and set the room's avatar.
|
|
5195
5195
|
*
|
|
5196
5196
|
* This will upload the data produced by the reader to the homeserver's
|
|
@@ -5204,7 +5204,7 @@ function Room(pointer){var _this828;_classCallCheck(this,Room);_this828=_callSup
|
|
|
5204
5204
|
* * `data` - The raw data that will be uploaded to the homeserver's
|
|
5205
5205
|
* content repository
|
|
5206
5206
|
* * `media_info` - The media info used as avatar image info.
|
|
5207
|
-
*/
|
|
5207
|
+
*/},{key:"uploadAvatar",value:async function uploadAvatar(mimeType,data,mediaInfo,asyncOpts_)/*throws*/{var _this927=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_upload_avatar(uniffiTypeRoomObjectFactory.clonePointer(_this927),FfiConverterString.lower(mimeType),FfiConverterArrayBuffer.lower(data),FfiConverterOptionalTypeImageInfo.lower(mediaInfo));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5208
5208
|
* Remove verification requirements for the given users and
|
|
5209
5209
|
* resend messages that failed to send because their identities were no
|
|
5210
5210
|
* longer verified (in response to
|
|
@@ -5215,9 +5215,9 @@ function Room(pointer){var _this828;_classCallCheck(this,Room);_this828=_callSup
|
|
|
5215
5215
|
* * `user_ids` - The list of users identifiers received in the error
|
|
5216
5216
|
* * `transaction_id` - The send queue transaction identifier of the local
|
|
5217
5217
|
* echo the send error applies to
|
|
5218
|
-
*/
|
|
5218
|
+
*/},{key:"withdrawVerificationAndResend",value:async function withdrawVerificationAndResend(userIds,sendHandle,asyncOpts_)/*throws*/{var _this928=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_room_withdraw_verification_and_resend(uniffiTypeRoomObjectFactory.clonePointer(_this928),FfiConverterArrayString.lower(userIds),FfiConverterTypeSendHandle.lower(sendHandle));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5219
5219
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5220
|
-
*/
|
|
5220
|
+
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeRoomObjectFactory.pointer(this);uniffiTypeRoomObjectFactory.freePointer(pointer);uniffiTypeRoomObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeRoomObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeRoomObjectFactory=function(){/// <reference lib="es2021" />
|
|
5221
5221
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeRoomObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(Room.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="Room";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
5222
5222
|
markDestroyed:function markDestroyed(){return undefined;}};if(registry){registry.register(ptr,p,ptr);}return ptr;},unbless:function unbless(ptr){if(registry){registry.unregister(ptr);}},pointer:function pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer:function clonePointer(obj){var pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_clone_room(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},freePointer:function freePointer(pointer){uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_free_room(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},isConcreteType:function isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==="Room";}};}();// FfiConverter for RoomLike
|
|
5223
5223
|
var FfiConverterTypeRoom=new FfiConverterObject(uniffiTypeRoomObjectFactory);/**
|
|
@@ -5239,14 +5239,14 @@ var FfiConverterTypeRoom=new FfiConverterObject(uniffiTypeRoomObjectFactory);/**
|
|
|
5239
5239
|
*/export var RoomDirectorySearch=/*#__PURE__*/function(_UniffiAbstractObject19){// No primary constructor declared for this class.
|
|
5240
5240
|
function RoomDirectorySearch(pointer){var _this929;_classCallCheck(this,RoomDirectorySearch);_this929=_callSuper(this,RoomDirectorySearch);_defineProperty(_this929,uniffiTypeNameSymbol,"RoomDirectorySearch");_defineProperty(_this929,destructorGuardSymbol,void 0);_defineProperty(_this929,pointerLiteralSymbol,void 0);_this929[pointerLiteralSymbol]=pointer;_this929[destructorGuardSymbol]=uniffiTypeRoomDirectorySearchObjectFactory.bless(pointer);return _this929;}/**
|
|
5241
5241
|
* Get whether the search is at the last page.
|
|
5242
|
-
*/_inherits(RoomDirectorySearch,_UniffiAbstractObject19);return _createClass(RoomDirectorySearch,[{key:"isAtLastPage",value:
|
|
5242
|
+
*/_inherits(RoomDirectorySearch,_UniffiAbstractObject19);return _createClass(RoomDirectorySearch,[{key:"isAtLastPage",value:async function isAtLastPage(asyncOpts_)/*throws*/{var _this930=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_roomdirectorysearch_is_at_last_page(uniffiTypeRoomDirectorySearchObjectFactory.clonePointer(_this930));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5243
5243
|
* Get the number of pages that have been loaded so far.
|
|
5244
|
-
*/
|
|
5244
|
+
*/},{key:"loadedPages",value:async function loadedPages(asyncOpts_)/*throws*/{var _this931=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_roomdirectorysearch_loaded_pages(uniffiTypeRoomDirectorySearchObjectFactory.clonePointer(_this931));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u32,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u32,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u32,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u32,/*liftFunc:*/FfiConverterUInt32.lift.bind(FfiConverterUInt32),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5245
5245
|
* Asks the server for the next page of the current search.
|
|
5246
|
-
*/
|
|
5246
|
+
*/},{key:"nextPage",value:async function nextPage(asyncOpts_)/*throws*/{var _this932=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_roomdirectorysearch_next_page(uniffiTypeRoomDirectorySearchObjectFactory.clonePointer(_this932));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5247
5247
|
* Registers a callback to receive new search results when starting a
|
|
5248
5248
|
* search or getting new paginated results.
|
|
5249
|
-
*/
|
|
5249
|
+
*/},{key:"results",value:async function results(listener,asyncOpts_){var _this933=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_roomdirectorysearch_results(uniffiTypeRoomDirectorySearchObjectFactory.clonePointer(_this933),FfiConverterTypeRoomDirectorySearchEntriesListener.lower(listener));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeTaskHandle.lift.bind(FfiConverterTypeTaskHandle),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5250
5250
|
* Starts a filtered search for the server.
|
|
5251
5251
|
*
|
|
5252
5252
|
* If the `filter` is not provided it will search for all the rooms.
|
|
@@ -5257,9 +5257,9 @@ function RoomDirectorySearch(pointer){var _this929;_classCallCheck(this,RoomDire
|
|
|
5257
5257
|
* homeserver by default.
|
|
5258
5258
|
*
|
|
5259
5259
|
* This method will clear the current search results and start a new one.
|
|
5260
|
-
*/
|
|
5260
|
+
*/},{key:"search",value:async function search(filter,batchSize,viaServerName,asyncOpts_)/*throws*/{var _this934=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_roomdirectorysearch_search(uniffiTypeRoomDirectorySearchObjectFactory.clonePointer(_this934),FfiConverterOptionalString.lower(filter),FfiConverterUInt32.lower(batchSize),FfiConverterOptionalString.lower(viaServerName));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5261
5261
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5262
|
-
*/
|
|
5262
|
+
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeRoomDirectorySearchObjectFactory.pointer(this);uniffiTypeRoomDirectorySearchObjectFactory.freePointer(pointer);uniffiTypeRoomDirectorySearchObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeRoomDirectorySearchObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeRoomDirectorySearchObjectFactory=function(){/// <reference lib="es2021" />
|
|
5263
5263
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeRoomDirectorySearchObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(RoomDirectorySearch.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="RoomDirectorySearch";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
5264
5264
|
markDestroyed:function markDestroyed(){return undefined;}};if(registry){registry.register(ptr,p,ptr);}return ptr;},unbless:function unbless(ptr){if(registry){registry.unregister(ptr);}},pointer:function pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer:function clonePointer(obj){var pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_clone_roomdirectorysearch(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},freePointer:function freePointer(pointer){uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_free_roomdirectorysearch(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},isConcreteType:function isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==="RoomDirectorySearch";}};}();// FfiConverter for RoomDirectorySearchLike
|
|
5265
5265
|
var FfiConverterTypeRoomDirectorySearch=new FfiConverterObject(uniffiTypeRoomDirectorySearchObjectFactory);/**
|
|
@@ -5289,7 +5289,7 @@ markDestroyed:function markDestroyed(){return undefined;}};if(registry){registry
|
|
|
5289
5289
|
var FfiConverterTypeRoomListEntriesWithDynamicAdaptersResult=new FfiConverterObject(uniffiTypeRoomListEntriesWithDynamicAdaptersResultObjectFactory);/**
|
|
5290
5290
|
* @deprecated Use `RoomListServiceLike` instead.
|
|
5291
5291
|
*/export var RoomListService=/*#__PURE__*/function(_UniffiAbstractObject23){// No primary constructor declared for this class.
|
|
5292
|
-
function RoomListService(pointer){var _this946;_classCallCheck(this,RoomListService);_this946=_callSuper(this,RoomListService);_defineProperty(_this946,uniffiTypeNameSymbol,"RoomListService");_defineProperty(_this946,destructorGuardSymbol,void 0);_defineProperty(_this946,pointerLiteralSymbol,void 0);_this946[pointerLiteralSymbol]=pointer;_this946[destructorGuardSymbol]=uniffiTypeRoomListServiceObjectFactory.bless(pointer);return _this946;}_inherits(RoomListService,_UniffiAbstractObject23);return _createClass(RoomListService,[{key:"allRooms",value:
|
|
5292
|
+
function RoomListService(pointer){var _this946;_classCallCheck(this,RoomListService);_this946=_callSuper(this,RoomListService);_defineProperty(_this946,uniffiTypeNameSymbol,"RoomListService");_defineProperty(_this946,destructorGuardSymbol,void 0);_defineProperty(_this946,pointerLiteralSymbol,void 0);_this946[pointerLiteralSymbol]=pointer;_this946[destructorGuardSymbol]=uniffiTypeRoomListServiceObjectFactory.bless(pointer);return _this946;}_inherits(RoomListService,_UniffiAbstractObject23);return _createClass(RoomListService,[{key:"allRooms",value:async function allRooms(asyncOpts_)/*throws*/{var _this947=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_roomlistservice_all_rooms(uniffiTypeRoomListServiceObjectFactory.clonePointer(_this947));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeRoomList.lift.bind(FfiConverterTypeRoomList),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeRoomListError.lift.bind(FfiConverterTypeRoomListError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"room",value:function room(roomId)/*throws*/{var _this948=this;return FfiConverterTypeRoom.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeRoomListError.lift.bind(FfiConverterTypeRoomListError),/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_roomlistservice_room(uniffiTypeRoomListServiceObjectFactory.clonePointer(_this948),FfiConverterString.lower(roomId),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"state",value:function state(listener){var _this949=this;return FfiConverterTypeTaskHandle.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_roomlistservice_state(uniffiTypeRoomListServiceObjectFactory.clonePointer(_this949),FfiConverterTypeRoomListServiceStateListener.lower(listener),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"subscribeToRooms",value:async function subscribeToRooms(roomIds,asyncOpts_)/*throws*/{var _this950=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_roomlistservice_subscribe_to_rooms(uniffiTypeRoomListServiceObjectFactory.clonePointer(_this950),FfiConverterArrayString.lower(roomIds));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeRoomListError.lift.bind(FfiConverterTypeRoomListError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"syncIndicator",value:function syncIndicator(delayBeforeShowingInMs,delayBeforeHidingInMs,listener){var _this951=this;return FfiConverterTypeTaskHandle.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_roomlistservice_sync_indicator(uniffiTypeRoomListServiceObjectFactory.clonePointer(_this951),FfiConverterUInt32.lower(delayBeforeShowingInMs),FfiConverterUInt32.lower(delayBeforeHidingInMs),FfiConverterTypeRoomListServiceSyncIndicatorListener.lower(listener),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
5293
5293
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5294
5294
|
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeRoomListServiceObjectFactory.pointer(this);uniffiTypeRoomListServiceObjectFactory.freePointer(pointer);uniffiTypeRoomListServiceObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeRoomListServiceObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeRoomListServiceObjectFactory=function(){/// <reference lib="es2021" />
|
|
5295
5295
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeRoomListServiceObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(RoomListService.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="RoomListService";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
@@ -5401,11 +5401,11 @@ var FfiConverterTypeRoomPowerLevels=new FfiConverterObject(uniffiTypeRoomPowerLe
|
|
|
5401
5401
|
*/export var RoomPreview=/*#__PURE__*/function(_UniffiAbstractObject27){// No primary constructor declared for this class.
|
|
5402
5402
|
function RoomPreview(pointer){var _this979;_classCallCheck(this,RoomPreview);_this979=_callSuper(this,RoomPreview);_defineProperty(_this979,uniffiTypeNameSymbol,"RoomPreview");_defineProperty(_this979,destructorGuardSymbol,void 0);_defineProperty(_this979,pointerLiteralSymbol,void 0);_this979[pointerLiteralSymbol]=pointer;_this979[destructorGuardSymbol]=uniffiTypeRoomPreviewObjectFactory.bless(pointer);return _this979;}/**
|
|
5403
5403
|
* Forget the room if we had access to it, and it was left or banned.
|
|
5404
|
-
*/_inherits(RoomPreview,_UniffiAbstractObject27);return _createClass(RoomPreview,[{key:"forget",value:
|
|
5404
|
+
*/_inherits(RoomPreview,_UniffiAbstractObject27);return _createClass(RoomPreview,[{key:"forget",value:async function forget(asyncOpts_)/*throws*/{var _this980=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_roompreview_forget(uniffiTypeRoomPreviewObjectFactory.clonePointer(_this980));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5405
5405
|
* Returns the room info the preview contains.
|
|
5406
|
-
*/
|
|
5406
|
+
*/},{key:"info",value:function info(){var _this981=this;return FfiConverterTypeRoomPreviewInfo.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_roompreview_info(uniffiTypeRoomPreviewObjectFactory.clonePointer(_this981),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
5407
5407
|
* Get the user who created the invite, if any.
|
|
5408
|
-
*/},{key:"inviter",value:
|
|
5408
|
+
*/},{key:"inviter",value:async function inviter(asyncOpts_){var _this982=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_roompreview_inviter(uniffiTypeRoomPreviewObjectFactory.clonePointer(_this982));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalTypeRoomMember.lift.bind(FfiConverterOptionalTypeRoomMember),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5409
5409
|
* Leave the room if the room preview state is either joined, invited or
|
|
5410
5410
|
* knocked.
|
|
5411
5411
|
*
|
|
@@ -5413,11 +5413,11 @@ function RoomPreview(pointer){var _this979;_classCallCheck(this,RoomPreview);_th
|
|
|
5413
5413
|
* protection against spam attacks.
|
|
5414
5414
|
*
|
|
5415
5415
|
* Will return an error otherwise.
|
|
5416
|
-
*/
|
|
5416
|
+
*/},{key:"leave",value:async function leave(asyncOpts_)/*throws*/{var _this983=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_roompreview_leave(uniffiTypeRoomPreviewObjectFactory.clonePointer(_this983));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5417
5417
|
* Get the membership details for the current user.
|
|
5418
|
-
*/
|
|
5418
|
+
*/},{key:"ownMembershipDetails",value:async function ownMembershipDetails(asyncOpts_){var _this984=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_roompreview_own_membership_details(uniffiTypeRoomPreviewObjectFactory.clonePointer(_this984));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalTypeRoomMemberWithSenderInfo.lift.bind(FfiConverterOptionalTypeRoomMemberWithSenderInfo),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5419
5419
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5420
|
-
*/
|
|
5420
|
+
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeRoomPreviewObjectFactory.pointer(this);uniffiTypeRoomPreviewObjectFactory.freePointer(pointer);uniffiTypeRoomPreviewObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeRoomPreviewObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeRoomPreviewObjectFactory=function(){/// <reference lib="es2021" />
|
|
5421
5421
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeRoomPreviewObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(RoomPreview.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="RoomPreview";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
5422
5422
|
markDestroyed:function markDestroyed(){return undefined;}};if(registry){registry.register(ptr,p,ptr);}return ptr;},unbless:function unbless(ptr){if(registry){registry.unregister(ptr);}},pointer:function pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer:function clonePointer(obj){var pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_clone_roompreview(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},freePointer:function freePointer(pointer){uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_free_roompreview(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},isConcreteType:function isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==="RoomPreview";}};}();// FfiConverter for RoomPreviewLike
|
|
5423
5423
|
var FfiConverterTypeRoomPreview=new FfiConverterObject(uniffiTypeRoomPreviewObjectFactory);/**
|
|
@@ -5431,9 +5431,9 @@ function SendAttachmentJoinHandle(pointer){var _this985;_classCallCheck(this,Sen
|
|
|
5431
5431
|
* Wait until the attachment has been sent.
|
|
5432
5432
|
*
|
|
5433
5433
|
* If the sending had been cancelled, will return immediately.
|
|
5434
|
-
*/},{key:"join",value:
|
|
5434
|
+
*/},{key:"join",value:async function join(asyncOpts_)/*throws*/{var _this987=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_sendattachmentjoinhandle_join(uniffiTypeSendAttachmentJoinHandleObjectFactory.clonePointer(_this987));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeRoomError.lift.bind(FfiConverterTypeRoomError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5435
5435
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5436
|
-
*/
|
|
5436
|
+
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeSendAttachmentJoinHandleObjectFactory.pointer(this);uniffiTypeSendAttachmentJoinHandleObjectFactory.freePointer(pointer);uniffiTypeSendAttachmentJoinHandleObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeSendAttachmentJoinHandleObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeSendAttachmentJoinHandleObjectFactory=function(){/// <reference lib="es2021" />
|
|
5437
5437
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeSendAttachmentJoinHandleObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(SendAttachmentJoinHandle.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="SendAttachmentJoinHandle";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
5438
5438
|
markDestroyed:function markDestroyed(){return undefined;}};if(registry){registry.register(ptr,p,ptr);}return ptr;},unbless:function unbless(ptr){if(registry){registry.unregister(ptr);}},pointer:function pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer:function clonePointer(obj){var pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_clone_sendattachmentjoinhandle(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},freePointer:function freePointer(pointer){uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_free_sendattachmentjoinhandle(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},isConcreteType:function isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==="SendAttachmentJoinHandle";}};}();// FfiConverter for SendAttachmentJoinHandleLike
|
|
5439
5439
|
var FfiConverterTypeSendAttachmentJoinHandle=new FfiConverterObject(uniffiTypeSendAttachmentJoinHandleObjectFactory);/**
|
|
@@ -5452,7 +5452,7 @@ function SendHandle(pointer){var _this988;_classCallCheck(this,SendHandle);_this
|
|
|
5452
5452
|
*
|
|
5453
5453
|
* This has an effect only on the first call; subsequent calls will always
|
|
5454
5454
|
* return `false`.
|
|
5455
|
-
*/_inherits(SendHandle,_UniffiAbstractObject29);return _createClass(SendHandle,[{key:"abort",value:
|
|
5455
|
+
*/_inherits(SendHandle,_UniffiAbstractObject29);return _createClass(SendHandle,[{key:"abort",value:async function abort(asyncOpts_)/*throws*/{var _this989=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_sendhandle_abort(uniffiTypeSendHandleObjectFactory.clonePointer(_this989));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5456
5456
|
* Attempt to manually resend messages that failed to send due to issues
|
|
5457
5457
|
* that should now have been fixed.
|
|
5458
5458
|
*
|
|
@@ -5465,9 +5465,9 @@ function SendHandle(pointer){var _this988;_classCallCheck(this,SendHandle);_this
|
|
|
5465
5465
|
*
|
|
5466
5466
|
* * `transaction_id` - The send queue transaction identifier of the local
|
|
5467
5467
|
* echo that should be unwedged.
|
|
5468
|
-
*/
|
|
5468
|
+
*/},{key:"tryResend",value:async function tryResend(asyncOpts_)/*throws*/{var _this990=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_sendhandle_try_resend(uniffiTypeSendHandleObjectFactory.clonePointer(_this990));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5469
5469
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5470
|
-
*/
|
|
5470
|
+
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeSendHandleObjectFactory.pointer(this);uniffiTypeSendHandleObjectFactory.freePointer(pointer);uniffiTypeSendHandleObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeSendHandleObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeSendHandleObjectFactory=function(){/// <reference lib="es2021" />
|
|
5471
5471
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeSendHandleObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(SendHandle.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="SendHandle";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
5472
5472
|
markDestroyed:function markDestroyed(){return undefined;}};if(registry){registry.register(ptr,p,ptr);}return ptr;},unbless:function unbless(ptr){if(registry){registry.unregister(ptr);}},pointer:function pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer:function clonePointer(obj){var pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_clone_sendhandle(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},freePointer:function freePointer(pointer){uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_free_sendhandle(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},isConcreteType:function isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==="SendHandle";}};}();// FfiConverter for SendHandleLike
|
|
5473
5473
|
var FfiConverterTypeSendHandle=new FfiConverterObject(uniffiTypeSendHandleObjectFactory);/**
|
|
@@ -5475,27 +5475,27 @@ var FfiConverterTypeSendHandle=new FfiConverterObject(uniffiTypeSendHandleObject
|
|
|
5475
5475
|
*/export var SessionVerificationController=/*#__PURE__*/function(_UniffiAbstractObject30){// No primary constructor declared for this class.
|
|
5476
5476
|
function SessionVerificationController(pointer){var _this991;_classCallCheck(this,SessionVerificationController);_this991=_callSuper(this,SessionVerificationController);_defineProperty(_this991,uniffiTypeNameSymbol,"SessionVerificationController");_defineProperty(_this991,destructorGuardSymbol,void 0);_defineProperty(_this991,pointerLiteralSymbol,void 0);_this991[pointerLiteralSymbol]=pointer;_this991[destructorGuardSymbol]=uniffiTypeSessionVerificationControllerObjectFactory.bless(pointer);return _this991;}/**
|
|
5477
5477
|
* Accept the previously acknowledged verification request
|
|
5478
|
-
*/_inherits(SessionVerificationController,_UniffiAbstractObject30);return _createClass(SessionVerificationController,[{key:"acceptVerificationRequest",value:
|
|
5478
|
+
*/_inherits(SessionVerificationController,_UniffiAbstractObject30);return _createClass(SessionVerificationController,[{key:"acceptVerificationRequest",value:async function acceptVerificationRequest(asyncOpts_)/*throws*/{var _this992=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_accept_verification_request(uniffiTypeSessionVerificationControllerObjectFactory.clonePointer(_this992));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5479
5479
|
* Set this particular request as the currently active one and register for
|
|
5480
5480
|
* events pertaining it.
|
|
5481
5481
|
* * `sender_id` - The user requesting verification.
|
|
5482
5482
|
* * `flow_id` - - The ID that uniquely identifies the verification flow.
|
|
5483
|
-
*/
|
|
5483
|
+
*/},{key:"acknowledgeVerificationRequest",value:async function acknowledgeVerificationRequest(senderId,flowId,asyncOpts_)/*throws*/{var _this993=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_acknowledge_verification_request(uniffiTypeSessionVerificationControllerObjectFactory.clonePointer(_this993),FfiConverterString.lower(senderId),FfiConverterString.lower(flowId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5484
5484
|
* Confirm that the short auth strings match on both sides.
|
|
5485
|
-
*/
|
|
5485
|
+
*/},{key:"approveVerification",value:async function approveVerification(asyncOpts_)/*throws*/{var _this994=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_approve_verification(uniffiTypeSessionVerificationControllerObjectFactory.clonePointer(_this994));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5486
5486
|
* Cancel the current verification request
|
|
5487
|
-
*/
|
|
5487
|
+
*/},{key:"cancelVerification",value:async function cancelVerification(asyncOpts_)/*throws*/{var _this995=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_cancel_verification(uniffiTypeSessionVerificationControllerObjectFactory.clonePointer(_this995));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5488
5488
|
* Reject the short auth string
|
|
5489
|
-
*/
|
|
5489
|
+
*/},{key:"declineVerification",value:async function declineVerification(asyncOpts_)/*throws*/{var _this996=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_decline_verification(uniffiTypeSessionVerificationControllerObjectFactory.clonePointer(_this996));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5490
5490
|
* Request verification for the current device
|
|
5491
|
-
*/
|
|
5491
|
+
*/},{key:"requestDeviceVerification",value:async function requestDeviceVerification(asyncOpts_)/*throws*/{var _this997=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_request_device_verification(uniffiTypeSessionVerificationControllerObjectFactory.clonePointer(_this997));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5492
5492
|
* Request verification for the given user
|
|
5493
|
-
*/
|
|
5493
|
+
*/},{key:"requestUserVerification",value:async function requestUserVerification(userId,asyncOpts_)/*throws*/{var _this998=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_request_user_verification(uniffiTypeSessionVerificationControllerObjectFactory.clonePointer(_this998),FfiConverterString.lower(userId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"setDelegate",value:function setDelegate(delegate){var _this999=this;uniffiCaller.rustCall(/*caller:*/function(callStatus){nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_set_delegate(uniffiTypeSessionVerificationControllerObjectFactory.clonePointer(_this999),FfiConverterOptionalTypeSessionVerificationControllerDelegate.lower(delegate),callStatus);},/*liftString:*/FfiConverterString.lift);}/**
|
|
5494
5494
|
* Transition the current verification request into a SAS verification
|
|
5495
5495
|
* flow.
|
|
5496
|
-
*/},{key:"startSasVerification",value:
|
|
5496
|
+
*/},{key:"startSasVerification",value:async function startSasVerification(asyncOpts_)/*throws*/{var _this1000=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_sessionverificationcontroller_start_sas_verification(uniffiTypeSessionVerificationControllerObjectFactory.clonePointer(_this1000));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5497
5497
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5498
|
-
*/
|
|
5498
|
+
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeSessionVerificationControllerObjectFactory.pointer(this);uniffiTypeSessionVerificationControllerObjectFactory.freePointer(pointer);uniffiTypeSessionVerificationControllerObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeSessionVerificationControllerObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeSessionVerificationControllerObjectFactory=function(){/// <reference lib="es2021" />
|
|
5499
5499
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeSessionVerificationControllerObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(SessionVerificationController.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="SessionVerificationController";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
5500
5500
|
markDestroyed:function markDestroyed(){return undefined;}};if(registry){registry.register(ptr,p,ptr);}return ptr;},unbless:function unbless(ptr){if(registry){registry.unregister(ptr);}},pointer:function pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer:function clonePointer(obj){var pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_clone_sessionverificationcontroller(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},freePointer:function freePointer(pointer){uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_free_sessionverificationcontroller(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},isConcreteType:function isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==="SessionVerificationController";}};}();// FfiConverter for SessionVerificationControllerLike
|
|
5501
5501
|
var FfiConverterTypeSessionVerificationController=new FfiConverterObject(uniffiTypeSessionVerificationControllerObjectFactory);/**
|
|
@@ -5532,9 +5532,9 @@ var FfiConverterTypeSessionVerificationEmoji=new FfiConverterObject(uniffiTypeSe
|
|
|
5532
5532
|
function SpaceRoomList(pointer){var _this1004;_classCallCheck(this,SpaceRoomList);_this1004=_callSuper(this,SpaceRoomList);_defineProperty(_this1004,uniffiTypeNameSymbol,"SpaceRoomList");_defineProperty(_this1004,destructorGuardSymbol,void 0);_defineProperty(_this1004,pointerLiteralSymbol,void 0);_this1004[pointerLiteralSymbol]=pointer;_this1004[destructorGuardSymbol]=uniffiTypeSpaceRoomListObjectFactory.bless(pointer);return _this1004;}/**
|
|
5533
5533
|
* Ask the list to retrieve the next page if the end hasn't been reached
|
|
5534
5534
|
* yet. Otherwise it no-ops.
|
|
5535
|
-
*/_inherits(SpaceRoomList,_UniffiAbstractObject32);return _createClass(SpaceRoomList,[{key:"paginate",value:
|
|
5535
|
+
*/_inherits(SpaceRoomList,_UniffiAbstractObject32);return _createClass(SpaceRoomList,[{key:"paginate",value:async function paginate(asyncOpts_)/*throws*/{var _this1005=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_spaceroomlist_paginate(uniffiTypeSpaceRoomListObjectFactory.clonePointer(_this1005));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5536
5536
|
* Returns if the room list is currently paginating or not.
|
|
5537
|
-
*/
|
|
5537
|
+
*/},{key:"paginationState",value:function paginationState(){var _this1006=this;return FfiConverterTypeSpaceRoomListPaginationState.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_spaceroomlist_pagination_state(uniffiTypeSpaceRoomListObjectFactory.clonePointer(_this1006),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
5538
5538
|
* Clears the room list back to its initial state so that any new changes
|
|
5539
5539
|
* to the hierarchy will be included the next time [`Self::paginate`] is
|
|
5540
5540
|
* called.
|
|
@@ -5543,9 +5543,9 @@ function SpaceRoomList(pointer){var _this1004;_classCallCheck(this,SpaceRoomList
|
|
|
5543
5543
|
* the list is based on a cached state that lives server-side, meaning
|
|
5544
5544
|
* the /hierarchy request needs to be restarted from scratch to pick up
|
|
5545
5545
|
* the changes.
|
|
5546
|
-
*/},{key:"reset",value:
|
|
5546
|
+
*/},{key:"reset",value:async function reset(asyncOpts_){var _this1007=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_spaceroomlist_reset(uniffiTypeSpaceRoomListObjectFactory.clonePointer(_this1007));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5547
5547
|
* Return the current list of rooms.
|
|
5548
|
-
*/
|
|
5548
|
+
*/},{key:"rooms",value:function rooms(){var _this1008=this;return FfiConverterArrayTypeSpaceRoom.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_spaceroomlist_rooms(uniffiTypeSpaceRoomListObjectFactory.clonePointer(_this1008),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
5549
5549
|
* Returns the space of the room list if known.
|
|
5550
5550
|
*/},{key:"space",value:function space(){var _this1009=this;return FfiConverterOptionalTypeSpaceRoom.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_spaceroomlist_space(uniffiTypeSpaceRoomListObjectFactory.clonePointer(_this1009),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
5551
5551
|
* Subscribe to pagination updates.
|
|
@@ -5573,18 +5573,18 @@ var FfiConverterTypeSpaceRoomList=new FfiConverterObject(uniffiTypeSpaceRoomList
|
|
|
5573
5573
|
* building a graph out of their `m.space.parent` and `m.space.child` state
|
|
5574
5574
|
* events, and providing access to the top-level spaces and their children.
|
|
5575
5575
|
*/export var SpaceService=/*#__PURE__*/function(_UniffiAbstractObject33){// No primary constructor declared for this class.
|
|
5576
|
-
function SpaceService(pointer){var _this1013;_classCallCheck(this,SpaceService);_this1013=_callSuper(this,SpaceService);_defineProperty(_this1013,uniffiTypeNameSymbol,"SpaceService");_defineProperty(_this1013,destructorGuardSymbol,void 0);_defineProperty(_this1013,pointerLiteralSymbol,void 0);_this1013[pointerLiteralSymbol]=pointer;_this1013[destructorGuardSymbol]=uniffiTypeSpaceServiceObjectFactory.bless(pointer);return _this1013;}_inherits(SpaceService,_UniffiAbstractObject33);return _createClass(SpaceService,[{key:"addChildToSpace",value:
|
|
5576
|
+
function SpaceService(pointer){var _this1013;_classCallCheck(this,SpaceService);_this1013=_callSuper(this,SpaceService);_defineProperty(_this1013,uniffiTypeNameSymbol,"SpaceService");_defineProperty(_this1013,destructorGuardSymbol,void 0);_defineProperty(_this1013,pointerLiteralSymbol,void 0);_this1013[pointerLiteralSymbol]=pointer;_this1013[destructorGuardSymbol]=uniffiTypeSpaceServiceObjectFactory.bless(pointer);return _this1013;}_inherits(SpaceService,_UniffiAbstractObject33);return _createClass(SpaceService,[{key:"addChildToSpace",value:async function addChildToSpace(childId,spaceId,asyncOpts_)/*throws*/{var _this1014=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_spaceservice_add_child_to_space(uniffiTypeSpaceServiceObjectFactory.clonePointer(_this1014),FfiConverterString.lower(childId),FfiConverterString.lower(spaceId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5577
5577
|
* Returns a flattened list containing all the spaces where the user has
|
|
5578
5578
|
* permission to send `m.space.child` state events.
|
|
5579
5579
|
*
|
|
5580
5580
|
* Note: Unlike [`Self::top_level_joined_spaces()`], this method does not
|
|
5581
5581
|
* recompute the space graph, nor does it notify subscribers about changes.
|
|
5582
|
-
*/},{key:"editableSpaces",value:
|
|
5582
|
+
*/},{key:"editableSpaces",value:async function editableSpaces(asyncOpts_){var _this1015=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_spaceservice_editable_spaces(uniffiTypeSpaceServiceObjectFactory.clonePointer(_this1015));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayTypeSpaceRoom.lift.bind(FfiConverterArrayTypeSpaceRoom),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5583
5583
|
* Returns the corresponding `SpaceRoom` for the given room ID, or `None`
|
|
5584
5584
|
* if it isn't known.
|
|
5585
|
-
*/
|
|
5585
|
+
*/},{key:"getSpaceRoom",value:async function getSpaceRoom(roomId,asyncOpts_)/*throws*/{var _this1016=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_spaceservice_get_space_room(uniffiTypeSpaceServiceObjectFactory.clonePointer(_this1016),FfiConverterString.lower(roomId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalTypeSpaceRoom.lift.bind(FfiConverterOptionalTypeSpaceRoom),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5586
5586
|
* Returns all known direct-parents of a given space room ID.
|
|
5587
|
-
*/
|
|
5587
|
+
*/},{key:"joinedParentsOfChild",value:async function joinedParentsOfChild(childId,asyncOpts_)/*throws*/{var _this1017=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_spaceservice_joined_parents_of_child(uniffiTypeSpaceServiceObjectFactory.clonePointer(_this1017),FfiConverterString.lower(childId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayTypeSpaceRoom.lift.bind(FfiConverterArrayTypeSpaceRoom),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5588
5588
|
* Start a space leave process returning a [`LeaveSpaceHandle`] from which
|
|
5589
5589
|
* rooms can be retrieved in reversed BFS order starting from the requested
|
|
5590
5590
|
* `space_id` graph node. If the room is unknown then an error will be
|
|
@@ -5592,7 +5592,7 @@ function SpaceService(pointer){var _this1013;_classCallCheck(this,SpaceService);
|
|
|
5592
5592
|
*
|
|
5593
5593
|
* Once the rooms to be left are chosen the handle can be used to leave
|
|
5594
5594
|
* them.
|
|
5595
|
-
*/
|
|
5595
|
+
*/},{key:"leaveSpace",value:async function leaveSpace(spaceId,asyncOpts_)/*throws*/{var _this1018=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_spaceservice_leave_space(uniffiTypeSpaceServiceObjectFactory.clonePointer(_this1018),FfiConverterString.lower(spaceId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeLeaveSpaceHandle.lift.bind(FfiConverterTypeLeaveSpaceHandle),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"removeChildFromSpace",value:async function removeChildFromSpace(childId,spaceId,asyncOpts_)/*throws*/{var _this1019=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_spaceservice_remove_child_from_space(uniffiTypeSpaceServiceObjectFactory.clonePointer(_this1019),FfiConverterString.lower(childId),FfiConverterString.lower(spaceId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5596
5596
|
* Space filters provide access to a custom subset of the space graph that
|
|
5597
5597
|
* can be used in tandem with the [`crate::RoomListService`] to narrow
|
|
5598
5598
|
* down the presented rooms.
|
|
@@ -5600,20 +5600,20 @@ function SpaceService(pointer){var _this1013;_classCallCheck(this,SpaceService);
|
|
|
5600
5600
|
* They are limited to the first 2 levels of the graph, with the first
|
|
5601
5601
|
* level only containing direct descendants while the second holds the rest
|
|
5602
5602
|
* of them recursively.
|
|
5603
|
-
*/},{key:"spaceFilters",value:
|
|
5603
|
+
*/},{key:"spaceFilters",value:async function spaceFilters(asyncOpts_){var _this1020=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_spaceservice_space_filters(uniffiTypeSpaceServiceObjectFactory.clonePointer(_this1020));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayTypeSpaceFilter.lift.bind(FfiConverterArrayTypeSpaceFilter),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5604
5604
|
* Returns a `SpaceRoomList` for the given space ID.
|
|
5605
|
-
*/
|
|
5605
|
+
*/},{key:"spaceRoomList",value:async function spaceRoomList(spaceId,asyncOpts_)/*throws*/{var _this1021=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_spaceservice_space_room_list(uniffiTypeSpaceServiceObjectFactory.clonePointer(_this1021),FfiConverterString.lower(spaceId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeSpaceRoomList.lift.bind(FfiConverterTypeSpaceRoomList),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5606
5606
|
* Subscribe to changes or updates to the space filters.
|
|
5607
|
-
*/
|
|
5607
|
+
*/},{key:"subscribeToSpaceFilters",value:async function subscribeToSpaceFilters(listener,asyncOpts_){var _this1022=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_spaceservice_subscribe_to_space_filters(uniffiTypeSpaceServiceObjectFactory.clonePointer(_this1022),FfiConverterTypeSpaceServiceSpaceFiltersListener.lower(listener));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeTaskHandle.lift.bind(FfiConverterTypeTaskHandle),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5608
5608
|
* Subscribes to updates on the joined spaces list. If space rooms are
|
|
5609
5609
|
* joined or left, the stream will yield diffs that reflect the changes.
|
|
5610
|
-
*/
|
|
5610
|
+
*/},{key:"subscribeToTopLevelJoinedSpaces",value:async function subscribeToTopLevelJoinedSpaces(listener,asyncOpts_){var _this1023=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_spaceservice_subscribe_to_top_level_joined_spaces(uniffiTypeSpaceServiceObjectFactory.clonePointer(_this1023),FfiConverterTypeSpaceServiceJoinedSpacesListener.lower(listener));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeTaskHandle.lift.bind(FfiConverterTypeTaskHandle),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5611
5611
|
* Returns a list of all the top-level joined spaces. It will eagerly
|
|
5612
5612
|
* compute the latest version and also notify subscribers if there were
|
|
5613
5613
|
* any changes.
|
|
5614
|
-
*/
|
|
5614
|
+
*/},{key:"topLevelJoinedSpaces",value:async function topLevelJoinedSpaces(asyncOpts_){var _this1024=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_spaceservice_top_level_joined_spaces(uniffiTypeSpaceServiceObjectFactory.clonePointer(_this1024));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterArrayTypeSpaceRoom.lift.bind(FfiConverterArrayTypeSpaceRoom),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5615
5615
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5616
|
-
*/
|
|
5616
|
+
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeSpaceServiceObjectFactory.pointer(this);uniffiTypeSpaceServiceObjectFactory.freePointer(pointer);uniffiTypeSpaceServiceObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeSpaceServiceObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeSpaceServiceObjectFactory=function(){/// <reference lib="es2021" />
|
|
5617
5617
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeSpaceServiceObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(SpaceService.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="SpaceService";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
5618
5618
|
markDestroyed:function markDestroyed(){return undefined;}};if(registry){registry.register(ptr,p,ptr);}return ptr;},unbless:function unbless(ptr){if(registry){registry.unregister(ptr);}},pointer:function pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer:function clonePointer(obj){var pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_clone_spaceservice(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},freePointer:function freePointer(pointer){uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_free_spaceservice(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},isConcreteType:function isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==="SpaceService";}};}();// FfiConverter for SpaceServiceLike
|
|
5619
5619
|
var FfiConverterTypeSpaceService=new FfiConverterObject(uniffiTypeSpaceServiceObjectFactory);/**
|
|
@@ -5662,11 +5662,11 @@ var FfiConverterTypeSpan=new FfiConverterObject(uniffiTypeSpanObjectFactory);/**
|
|
|
5662
5662
|
*/export var SsoHandler=/*#__PURE__*/function(_UniffiAbstractObject35){// No primary constructor declared for this class.
|
|
5663
5663
|
function SsoHandler(pointer){var _this1029;_classCallCheck(this,SsoHandler);_this1029=_callSuper(this,SsoHandler);_defineProperty(_this1029,uniffiTypeNameSymbol,"SsoHandler");_defineProperty(_this1029,destructorGuardSymbol,void 0);_defineProperty(_this1029,pointerLiteralSymbol,void 0);_this1029[pointerLiteralSymbol]=pointer;_this1029[destructorGuardSymbol]=uniffiTypeSsoHandlerObjectFactory.bless(pointer);return _this1029;}/**
|
|
5664
5664
|
* Completes the SSO login process.
|
|
5665
|
-
*/_inherits(SsoHandler,_UniffiAbstractObject35);return _createClass(SsoHandler,[{key:"finish",value:
|
|
5665
|
+
*/_inherits(SsoHandler,_UniffiAbstractObject35);return _createClass(SsoHandler,[{key:"finish",value:async function finish(callbackUrl,asyncOpts_)/*throws*/{var _this1030=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_ssohandler_finish(uniffiTypeSsoHandlerObjectFactory.clonePointer(_this1030),FfiConverterString.lower(callbackUrl));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeSsoError.lift.bind(FfiConverterTypeSsoError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5666
5666
|
* Returns the URL for starting SSO authentication. The URL should be
|
|
5667
5667
|
* opened in a web view. Once the web view succeeds, call `finish` with
|
|
5668
5668
|
* the callback URL.
|
|
5669
|
-
*/
|
|
5669
|
+
*/},{key:"url",value:function url(){var _this1031=this;return FfiConverterString.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_ssohandler_url(uniffiTypeSsoHandlerObjectFactory.clonePointer(_this1031),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
5670
5670
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5671
5671
|
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeSsoHandlerObjectFactory.pointer(this);uniffiTypeSsoHandlerObjectFactory.freePointer(pointer);uniffiTypeSsoHandlerObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeSsoHandlerObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeSsoHandlerObjectFactory=function(){/// <reference lib="es2021" />
|
|
5672
5672
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeSsoHandlerObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(SsoHandler.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="SsoHandler";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
@@ -5680,7 +5680,7 @@ function SyncService(pointer){var _this1032;_classCallCheck(this,SyncService);_t
|
|
|
5680
5680
|
* This ensures that the sync service is stopped before expiring both
|
|
5681
5681
|
* sessions. It should be used sparingly, as it will cause a restart of
|
|
5682
5682
|
* the sessions on the server as well.
|
|
5683
|
-
*/_inherits(SyncService,_UniffiAbstractObject36);return _createClass(SyncService,[{key:"expireSessions",value:
|
|
5683
|
+
*/_inherits(SyncService,_UniffiAbstractObject36);return _createClass(SyncService,[{key:"expireSessions",value:async function expireSessions(asyncOpts_){var _this1033=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_syncservice_expire_sessions(uniffiTypeSyncServiceObjectFactory.clonePointer(_this1033));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"roomListService",value:function roomListService(){var _this1034=this;return FfiConverterTypeRoomListService.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_syncservice_room_list_service(uniffiTypeSyncServiceObjectFactory.clonePointer(_this1034),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"start",value:async function start(asyncOpts_){var _this1035=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_syncservice_start(uniffiTypeSyncServiceObjectFactory.clonePointer(_this1035));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"state",value:function state(listener){var _this1036=this;return FfiConverterTypeTaskHandle.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_syncservice_state(uniffiTypeSyncServiceObjectFactory.clonePointer(_this1036),FfiConverterTypeSyncServiceStateObserver.lower(listener),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"stop",value:async function stop(asyncOpts_){var _this1037=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_syncservice_stop(uniffiTypeSyncServiceObjectFactory.clonePointer(_this1037));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5684
5684
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5685
5685
|
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeSyncServiceObjectFactory.pointer(this);uniffiTypeSyncServiceObjectFactory.freePointer(pointer);uniffiTypeSyncServiceObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeSyncServiceObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeSyncServiceObjectFactory=function(){/// <reference lib="es2021" />
|
|
5686
5686
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeSyncServiceObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(SyncService.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="SyncService";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
@@ -5688,7 +5688,7 @@ markDestroyed:function markDestroyed(){return undefined;}};if(registry){registry
|
|
|
5688
5688
|
var FfiConverterTypeSyncService=new FfiConverterObject(uniffiTypeSyncServiceObjectFactory);/**
|
|
5689
5689
|
* @deprecated Use `SyncServiceBuilderLike` instead.
|
|
5690
5690
|
*/export var SyncServiceBuilder=/*#__PURE__*/function(_UniffiAbstractObject37){// No primary constructor declared for this class.
|
|
5691
|
-
function SyncServiceBuilder(pointer){var _this1038;_classCallCheck(this,SyncServiceBuilder);_this1038=_callSuper(this,SyncServiceBuilder);_defineProperty(_this1038,uniffiTypeNameSymbol,"SyncServiceBuilder");_defineProperty(_this1038,destructorGuardSymbol,void 0);_defineProperty(_this1038,pointerLiteralSymbol,void 0);_this1038[pointerLiteralSymbol]=pointer;_this1038[destructorGuardSymbol]=uniffiTypeSyncServiceBuilderObjectFactory.bless(pointer);return _this1038;}_inherits(SyncServiceBuilder,_UniffiAbstractObject37);return _createClass(SyncServiceBuilder,[{key:"finish",value:
|
|
5691
|
+
function SyncServiceBuilder(pointer){var _this1038;_classCallCheck(this,SyncServiceBuilder);_this1038=_callSuper(this,SyncServiceBuilder);_defineProperty(_this1038,uniffiTypeNameSymbol,"SyncServiceBuilder");_defineProperty(_this1038,destructorGuardSymbol,void 0);_defineProperty(_this1038,pointerLiteralSymbol,void 0);_this1038[pointerLiteralSymbol]=pointer;_this1038[destructorGuardSymbol]=uniffiTypeSyncServiceBuilderObjectFactory.bless(pointer);return _this1038;}_inherits(SyncServiceBuilder,_UniffiAbstractObject37);return _createClass(SyncServiceBuilder,[{key:"finish",value:async function finish(asyncOpts_)/*throws*/{var _this1039=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_finish(uniffiTypeSyncServiceBuilderObjectFactory.clonePointer(_this1039));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeSyncService.lift.bind(FfiConverterTypeSyncService),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5692
5692
|
* Enable the "offline" mode for the [`SyncService`].
|
|
5693
5693
|
*/},{key:"withOfflineMode",value:function withOfflineMode(){var _this1040=this;return FfiConverterTypeSyncServiceBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_offline_mode(uniffiTypeSyncServiceBuilderObjectFactory.clonePointer(_this1040),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"withSharePos",value:function withSharePos(enable){var _this1041=this;return FfiConverterTypeSyncServiceBuilder.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_share_pos(uniffiTypeSyncServiceBuilderObjectFactory.clonePointer(_this1041),FfiConverterBool.lower(enable),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
5694
5694
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
@@ -5745,20 +5745,20 @@ function ThreadListService(pointer){var _this1045;_classCallCheck(this,ThreadLis
|
|
|
5745
5745
|
*
|
|
5746
5746
|
* This is a no-op when the list is already loading or the end has been
|
|
5747
5747
|
* reached.
|
|
5748
|
-
*/},{key:"paginate",value:
|
|
5748
|
+
*/},{key:"paginate",value:async function paginate(asyncOpts_)/*throws*/{var _this1047=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_threadlistservice_paginate(uniffiTypeThreadListServiceObjectFactory.clonePointer(_this1047));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5749
5749
|
* Returns a snapshot of the current pagination state.
|
|
5750
|
-
*/
|
|
5750
|
+
*/},{key:"paginationState",value:function paginationState(){var _this1048=this;return FfiConverterTypeThreadListPaginationState.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_threadlistservice_pagination_state(uniffiTypeThreadListServiceObjectFactory.clonePointer(_this1048),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
5751
5751
|
* Resets the service back to its initial, empty state.
|
|
5752
5752
|
*
|
|
5753
5753
|
* Clears all loaded items, discards the pagination token, and sets the
|
|
5754
5754
|
* state to `Idle { end_reached: false }`. The next call to
|
|
5755
5755
|
* [`Self::paginate`] will restart from the beginning of the thread list.
|
|
5756
|
-
*/},{key:"reset",value:
|
|
5756
|
+
*/},{key:"reset",value:async function reset(asyncOpts_){var _this1049=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_threadlistservice_reset(uniffiTypeThreadListServiceObjectFactory.clonePointer(_this1049));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5757
5757
|
* Subscribes to changes in the thread list.
|
|
5758
5758
|
*
|
|
5759
5759
|
* The `listener` receives an initial `Reset` diff containing all currently
|
|
5760
5760
|
* loaded items, followed by subsequent diffs as the list changes.
|
|
5761
|
-
*/
|
|
5761
|
+
*/},{key:"subscribeToItemsUpdates",value:function subscribeToItemsUpdates(listener){var _this1050=this;return FfiConverterTypeTaskHandle.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_threadlistservice_subscribe_to_items_updates(uniffiTypeThreadListServiceObjectFactory.clonePointer(_this1050),FfiConverterTypeThreadListEntriesListener.lower(listener),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
5762
5762
|
* Subscribes to changes in the pagination state.
|
|
5763
5763
|
*
|
|
5764
5764
|
* The `listener` is called once for every state transition. The returned
|
|
@@ -5779,7 +5779,7 @@ markDestroyed:function markDestroyed(){return undefined;}};if(registry){registry
|
|
|
5779
5779
|
var FfiConverterTypeThreadSummary=new FfiConverterObject(uniffiTypeThreadSummaryObjectFactory);/**
|
|
5780
5780
|
* @deprecated Use `TimelineLike` instead.
|
|
5781
5781
|
*/export var Timeline=/*#__PURE__*/function(_UniffiAbstractObject41){// No primary constructor declared for this class.
|
|
5782
|
-
function Timeline(pointer){var _this1055;_classCallCheck(this,Timeline);_this1055=_callSuper(this,Timeline);_defineProperty(_this1055,uniffiTypeNameSymbol,"Timeline");_defineProperty(_this1055,destructorGuardSymbol,void 0);_defineProperty(_this1055,pointerLiteralSymbol,void 0);_this1055[pointerLiteralSymbol]=pointer;_this1055[destructorGuardSymbol]=uniffiTypeTimelineObjectFactory.bless(pointer);return _this1055;}_inherits(Timeline,_UniffiAbstractObject41);return _createClass(Timeline,[{key:"addListener",value:
|
|
5782
|
+
function Timeline(pointer){var _this1055;_classCallCheck(this,Timeline);_this1055=_callSuper(this,Timeline);_defineProperty(_this1055,uniffiTypeNameSymbol,"Timeline");_defineProperty(_this1055,destructorGuardSymbol,void 0);_defineProperty(_this1055,pointerLiteralSymbol,void 0);_this1055[pointerLiteralSymbol]=pointer;_this1055[destructorGuardSymbol]=uniffiTypeTimelineObjectFactory.bless(pointer);return _this1055;}_inherits(Timeline,_UniffiAbstractObject41);return _createClass(Timeline,[{key:"addListener",value:async function addListener(listener,asyncOpts_){var _this1056=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_add_listener(uniffiTypeTimelineObjectFactory.clonePointer(_this1056),FfiConverterTypeTimelineListener.lower(listener));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeTaskHandle.lift.bind(FfiConverterTypeTaskHandle),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"createMessageContent",value:function createMessageContent(msgType){var _this1057=this;return FfiConverterOptionalTypeRoomMessageEventContentWithoutRelation.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_create_message_content(uniffiTypeTimelineObjectFactory.clonePointer(_this1057),FfiConverterTypeMessageType.lower(msgType),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"createPoll",value:async function createPoll(question,answers,maxSelections,pollKind,asyncOpts_)/*throws*/{var _this1058=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_create_poll(uniffiTypeTimelineObjectFactory.clonePointer(_this1058),FfiConverterString.lower(question),FfiConverterArrayString.lower(answers),FfiConverterUInt8.lower(maxSelections),FfiConverterTypePollKind.lower(pollKind));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5783
5783
|
* Edits an event from the timeline.
|
|
5784
5784
|
*
|
|
5785
5785
|
* If it was a local event, this will *try* to edit it, if it was not
|
|
@@ -5788,7 +5788,7 @@ function Timeline(pointer){var _this1055;_classCallCheck(this,Timeline);_this105
|
|
|
5788
5788
|
*
|
|
5789
5789
|
* Returns whether the edit did happen. It can only return false for
|
|
5790
5790
|
* local events that are being processed.
|
|
5791
|
-
*/},{key:"edit",value:
|
|
5791
|
+
*/},{key:"edit",value:async function edit(eventOrTransactionId,newContent,asyncOpts_)/*throws*/{var _this1059=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_edit(uniffiTypeTimelineObjectFactory.clonePointer(_this1059),FfiConverterTypeEventOrTransactionId.lower(eventOrTransactionId),FfiConverterTypeEditedContent.lower(newContent));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"endPoll",value:async function endPoll(pollStartEventId,text,asyncOpts_)/*throws*/{var _this1060=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_end_poll(uniffiTypeTimelineObjectFactory.clonePointer(_this1060),FfiConverterString.lower(pollStartEventId),FfiConverterString.lower(text));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"fetchDetailsForEvent",value:async function fetchDetailsForEvent(eventId,asyncOpts_)/*throws*/{var _this1061=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_fetch_details_for_event(uniffiTypeTimelineObjectFactory.clonePointer(_this1061),FfiConverterString.lower(eventId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"fetchMembers",value:async function fetchMembers(asyncOpts_){var _this1062=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_fetch_members(uniffiTypeTimelineObjectFactory.clonePointer(_this1062));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5792
5792
|
* Get the current timeline item for the given event ID, if any.
|
|
5793
5793
|
*
|
|
5794
5794
|
* Will return a remote event, *or* a local echo that has been sent but not
|
|
@@ -5797,14 +5797,14 @@ function Timeline(pointer){var _this1055;_classCallCheck(this,Timeline);_this105
|
|
|
5797
5797
|
* It's preferable to store the timeline items in the model for your UI, if
|
|
5798
5798
|
* possible, instead of just storing IDs and coming back to the timeline
|
|
5799
5799
|
* object to look up items.
|
|
5800
|
-
*/},{key:"getEventTimelineItemByEventId",value:
|
|
5800
|
+
*/},{key:"getEventTimelineItemByEventId",value:async function getEventTimelineItemByEventId(eventId,asyncOpts_)/*throws*/{var _this1063=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_get_event_timeline_item_by_event_id(uniffiTypeTimelineObjectFactory.clonePointer(_this1063),FfiConverterString.lower(eventId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5801
5801
|
* Returns the latest [`EventId`] in the timeline.
|
|
5802
|
-
*/
|
|
5802
|
+
*/},{key:"latestEventId",value:async function latestEventId(asyncOpts_){var _this1064=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_latest_event_id(uniffiTypeTimelineObjectFactory.clonePointer(_this1064));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalString.lift.bind(FfiConverterOptionalString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5803
5803
|
* Load the reply details for the given event id.
|
|
5804
5804
|
*
|
|
5805
5805
|
* This will return an `InReplyToDetails` object that contains the details
|
|
5806
5806
|
* which will either be ready or an error.
|
|
5807
|
-
*/
|
|
5807
|
+
*/},{key:"loadReplyDetails",value:async function loadReplyDetails(eventIdStr,asyncOpts_)/*throws*/{var _this1065=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_load_reply_details(uniffiTypeTimelineObjectFactory.clonePointer(_this1065),FfiConverterString.lower(eventIdStr));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeInReplyToDetails.lift.bind(FfiConverterTypeInReplyToDetails),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5808
5808
|
* Mark the timeline as read by attempting to send a read receipt on the
|
|
5809
5809
|
* latest visible event.
|
|
5810
5810
|
*
|
|
@@ -5820,21 +5820,21 @@ function Timeline(pointer){var _this1055;_classCallCheck(this,Timeline);_this105
|
|
|
5820
5820
|
* works even if the latest event belongs to a thread, as a threaded
|
|
5821
5821
|
* reply also belongs to the unthreaded timeline. Otherwise the receipt
|
|
5822
5822
|
* thread will be determined based on the timeline's focus kind.
|
|
5823
|
-
*/
|
|
5823
|
+
*/},{key:"markAsRead",value:async function markAsRead(receiptType,asyncOpts_)/*throws*/{var _this1066=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_mark_as_read(uniffiTypeTimelineObjectFactory.clonePointer(_this1066),FfiConverterTypeReceiptType.lower(receiptType));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5824
5824
|
* Paginate backwards, whether we are in focused mode or in live mode.
|
|
5825
5825
|
*
|
|
5826
5826
|
* Returns whether we hit the start of the timeline or not.
|
|
5827
|
-
*/
|
|
5827
|
+
*/},{key:"paginateBackwards",value:async function paginateBackwards(numEvents,asyncOpts_)/*throws*/{var _this1067=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_paginate_backwards(uniffiTypeTimelineObjectFactory.clonePointer(_this1067),FfiConverterUInt16.lower(numEvents));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5828
5828
|
* Paginate forwards, whether we are in focused mode or in live mode.
|
|
5829
5829
|
*
|
|
5830
5830
|
* Returns whether we hit the end of the timeline or not.
|
|
5831
|
-
*/
|
|
5831
|
+
*/},{key:"paginateForwards",value:async function paginateForwards(numEvents,asyncOpts_)/*throws*/{var _this1068=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_paginate_forwards(uniffiTypeTimelineObjectFactory.clonePointer(_this1068),FfiConverterUInt16.lower(numEvents));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5832
5832
|
* Adds a new pinned event by sending an updated `m.room.pinned_events`
|
|
5833
5833
|
* event containing the new event id.
|
|
5834
5834
|
*
|
|
5835
5835
|
* Returns `true` if we sent the request, `false` if the event was already
|
|
5836
5836
|
* pinned.
|
|
5837
|
-
*/
|
|
5837
|
+
*/},{key:"pinEvent",value:async function pinEvent(eventId,asyncOpts_)/*throws*/{var _this1069=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_pin_event(uniffiTypeTimelineObjectFactory.clonePointer(_this1069),FfiConverterString.lower(eventId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5838
5838
|
* Redacts an event from the timeline.
|
|
5839
5839
|
*
|
|
5840
5840
|
* Only works for events that exist as timeline items.
|
|
@@ -5844,19 +5844,19 @@ function Timeline(pointer){var _this1055;_classCallCheck(this,Timeline);_this105
|
|
|
5844
5844
|
* redacted by sending a redaction request to the server.
|
|
5845
5845
|
*
|
|
5846
5846
|
* Will return an error if the event couldn't be redacted.
|
|
5847
|
-
*/
|
|
5847
|
+
*/},{key:"redactEvent",value:async function redactEvent(eventOrTransactionId,reason,asyncOpts_)/*throws*/{var _this1070=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_redact_event(uniffiTypeTimelineObjectFactory.clonePointer(_this1070),FfiConverterTypeEventOrTransactionId.lower(eventOrTransactionId),FfiConverterOptionalString.lower(reason));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"retryDecryption",value:function retryDecryption(sessionIds){var _this1071=this;uniffiCaller.rustCall(/*caller:*/function(callStatus){nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_retry_decryption(uniffiTypeTimelineObjectFactory.clonePointer(_this1071),FfiConverterArrayString.lower(sessionIds),callStatus);},/*liftString:*/FfiConverterString.lift);}/**
|
|
5848
5848
|
* Queues an event in the room's send queue so it's processed for
|
|
5849
5849
|
* sending later.
|
|
5850
5850
|
*
|
|
5851
5851
|
* Returns an abort handle that allows to abort sending, if it hasn't
|
|
5852
5852
|
* happened yet.
|
|
5853
|
-
*/},{key:"send",value:
|
|
5853
|
+
*/},{key:"send",value:async function send(msg,asyncOpts_)/*throws*/{var _this1072=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_send(uniffiTypeTimelineObjectFactory.clonePointer(_this1072),FfiConverterTypeRoomMessageEventContentWithoutRelation.lower(msg));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeSendHandle.lift.bind(FfiConverterTypeSendHandle),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"sendAudio",value:function sendAudio(params,audioInfo)/*throws*/{var _this1073=this;return FfiConverterTypeSendAttachmentJoinHandle.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeRoomError.lift.bind(FfiConverterTypeRoomError),/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_send_audio(uniffiTypeTimelineObjectFactory.clonePointer(_this1073),FfiConverterTypeUploadParameters.lower(params),FfiConverterTypeAudioInfo.lower(audioInfo),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"sendFile",value:function sendFile(params,fileInfo)/*throws*/{var _this1074=this;return FfiConverterTypeSendAttachmentJoinHandle.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeRoomError.lift.bind(FfiConverterTypeRoomError),/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_send_file(uniffiTypeTimelineObjectFactory.clonePointer(_this1074),FfiConverterTypeUploadParameters.lower(params),FfiConverterTypeFileInfo.lower(fileInfo),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"sendImage",value:function sendImage(params,thumbnailSource,imageInfo)/*throws*/{var _this1075=this;return FfiConverterTypeSendAttachmentJoinHandle.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeRoomError.lift.bind(FfiConverterTypeRoomError),/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_send_image(uniffiTypeTimelineObjectFactory.clonePointer(_this1075),FfiConverterTypeUploadParameters.lower(params),FfiConverterOptionalTypeUploadSource.lower(thumbnailSource),FfiConverterTypeImageInfo.lower(imageInfo),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"sendLocation",value:async function sendLocation(body,geoUri,description,zoomLevel,assetType,repliedToEventId,asyncOpts_)/*throws*/{var _this1076=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_send_location(uniffiTypeTimelineObjectFactory.clonePointer(_this1076),FfiConverterString.lower(body),FfiConverterString.lower(geoUri),FfiConverterOptionalString.lower(description),FfiConverterOptionalUInt8.lower(zoomLevel),FfiConverterOptionalTypeAssetType.lower(assetType),FfiConverterOptionalString.lower(repliedToEventId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"sendPollResponse",value:async function sendPollResponse(pollStartEventId,answers,asyncOpts_)/*throws*/{var _this1077=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_send_poll_response(uniffiTypeTimelineObjectFactory.clonePointer(_this1077),FfiConverterString.lower(pollStartEventId),FfiConverterArrayString.lower(answers));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"sendReadReceipt",value:async function sendReadReceipt(receiptType,eventId,asyncOpts_)/*throws*/{var _this1078=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_send_read_receipt(uniffiTypeTimelineObjectFactory.clonePointer(_this1078),FfiConverterTypeReceiptType.lower(receiptType),FfiConverterString.lower(eventId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5854
5854
|
* Send a reply.
|
|
5855
5855
|
*
|
|
5856
5856
|
* If the replied to event has a thread relation, it is forwarded on the
|
|
5857
5857
|
* reply so that clients that support threads can render the reply
|
|
5858
5858
|
* inside the thread.
|
|
5859
|
-
*/},{key:"sendReply",value:
|
|
5859
|
+
*/},{key:"sendReply",value:async function sendReply(msg,eventId,asyncOpts_)/*throws*/{var _this1079=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_send_reply(uniffiTypeTimelineObjectFactory.clonePointer(_this1079),FfiConverterTypeRoomMessageEventContentWithoutRelation.lower(msg),FfiConverterString.lower(eventId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}},{key:"sendVideo",value:function sendVideo(params,thumbnailSource,videoInfo)/*throws*/{var _this1080=this;return FfiConverterTypeSendAttachmentJoinHandle.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeRoomError.lift.bind(FfiConverterTypeRoomError),/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_send_video(uniffiTypeTimelineObjectFactory.clonePointer(_this1080),FfiConverterTypeUploadParameters.lower(params),FfiConverterOptionalTypeUploadSource.lower(thumbnailSource),FfiConverterTypeVideoInfo.lower(videoInfo),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"sendVoiceMessage",value:function sendVoiceMessage(params,audioInfo,waveform)/*throws*/{var _this1081=this;return FfiConverterTypeSendAttachmentJoinHandle.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeRoomError.lift.bind(FfiConverterTypeRoomError),/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_send_voice_message(uniffiTypeTimelineObjectFactory.clonePointer(_this1081),FfiConverterTypeUploadParameters.lower(params),FfiConverterTypeAudioInfo.lower(audioInfo),FfiConverterArrayFloat32.lower(waveform),callStatus);},/*liftString:*/FfiConverterString.lift));}},{key:"subscribeToBackPaginationStatus",value:async function subscribeToBackPaginationStatus(listener,asyncOpts_)/*throws*/{var _this1082=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_subscribe_to_back_pagination_status(uniffiTypeTimelineObjectFactory.clonePointer(_this1082),FfiConverterTypePaginationStatusListener.lower(listener));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_u64,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_u64,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_u64,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_u64,/*liftFunc:*/FfiConverterTypeTaskHandle.lift.bind(FfiConverterTypeTaskHandle),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5860
5860
|
* Toggle a reaction on an event.
|
|
5861
5861
|
*
|
|
5862
5862
|
* Adds or redacts a reaction based on the state of the reaction at the
|
|
@@ -5870,15 +5870,15 @@ function Timeline(pointer){var _this1055;_classCallCheck(this,Timeline);_this105
|
|
|
5870
5870
|
* conditions and spamming the homeserver with requests.
|
|
5871
5871
|
*
|
|
5872
5872
|
* Returns `true` if the reaction was added, `false` if it was removed.
|
|
5873
|
-
*/},{key:"toggleReaction",value:
|
|
5873
|
+
*/},{key:"toggleReaction",value:async function toggleReaction(itemId,key,asyncOpts_)/*throws*/{var _this1083=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_toggle_reaction(uniffiTypeTimelineObjectFactory.clonePointer(_this1083),FfiConverterTypeEventOrTransactionId.lower(itemId),FfiConverterString.lower(key));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5874
5874
|
* Adds a new pinned event by sending an updated `m.room.pinned_events`
|
|
5875
5875
|
* event without the event id we want to remove.
|
|
5876
5876
|
*
|
|
5877
5877
|
* Returns `true` if we sent the request, `false` if the event wasn't
|
|
5878
5878
|
* pinned
|
|
5879
|
-
*/
|
|
5879
|
+
*/},{key:"unpinEvent",value:async function unpinEvent(eventId,asyncOpts_)/*throws*/{var _this1084=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_timeline_unpin_event(uniffiTypeTimelineObjectFactory.clonePointer(_this1084),FfiConverterString.lower(eventId));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_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){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5880
5880
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5881
|
-
*/
|
|
5881
|
+
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeTimelineObjectFactory.pointer(this);uniffiTypeTimelineObjectFactory.freePointer(pointer);uniffiTypeTimelineObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeTimelineObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeTimelineObjectFactory=function(){/// <reference lib="es2021" />
|
|
5882
5882
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeTimelineObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(Timeline.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="Timeline";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
5883
5883
|
markDestroyed:function markDestroyed(){return undefined;}};if(registry){registry.register(ptr,p,ptr);}return ptr;},unbless:function unbless(ptr){if(registry){registry.unregister(ptr);}},pointer:function pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer:function clonePointer(obj){var pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_clone_timeline(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},freePointer:function freePointer(pointer){uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_free_timeline(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},isConcreteType:function isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==="Timeline";}};}();// FfiConverter for TimelineLike
|
|
5884
5884
|
var FfiConverterTypeTimeline=new FfiConverterObject(uniffiTypeTimelineObjectFactory);/**
|
|
@@ -5960,20 +5960,20 @@ function UserIdentity(pointer){var _this1101;_classCallCheck(this,UserIdentity);
|
|
|
5960
5960
|
*
|
|
5961
5961
|
* UIs should display a warning to the user when encountering an identity
|
|
5962
5962
|
* which is not verified and is in pin violation.
|
|
5963
|
-
*/},{key:"pin",value:
|
|
5963
|
+
*/},{key:"pin",value:async function pin(asyncOpts_)/*throws*/{var _this1105=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_useridentity_pin(uniffiTypeUserIdentityObjectFactory.clonePointer(_this1105));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5964
5964
|
* True if we verified this identity at some point in the past.
|
|
5965
5965
|
*
|
|
5966
5966
|
* To reset this latch back to `false`, one must call
|
|
5967
5967
|
* [`UserIdentity::withdraw_verification()`].
|
|
5968
|
-
*/
|
|
5968
|
+
*/},{key:"wasPreviouslyVerified",value:function wasPreviouslyVerified(){var _this1106=this;return FfiConverterBool.lift(uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_useridentity_was_previously_verified(uniffiTypeUserIdentityObjectFactory.clonePointer(_this1106),callStatus);},/*liftString:*/FfiConverterString.lift));}/**
|
|
5969
5969
|
* Remove the requirement for this identity to be verified.
|
|
5970
5970
|
*
|
|
5971
5971
|
* If an identity was previously verified and is not anymore it will be
|
|
5972
5972
|
* reported to the user. In order to remove this notice users have to
|
|
5973
5973
|
* verify again or to withdraw the verification requirement.
|
|
5974
|
-
*/},{key:"withdrawVerification",value:
|
|
5974
|
+
*/},{key:"withdrawVerification",value:async function withdrawVerification(asyncOpts_)/*throws*/{var _this1107=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_useridentity_withdraw_verification(uniffiTypeUserIdentityObjectFactory.clonePointer(_this1107));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_,/*errorHandler:*/FfiConverterTypeClientError.lift.bind(FfiConverterTypeClientError));}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5975
5975
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5976
|
-
*/
|
|
5976
|
+
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeUserIdentityObjectFactory.pointer(this);uniffiTypeUserIdentityObjectFactory.freePointer(pointer);uniffiTypeUserIdentityObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeUserIdentityObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeUserIdentityObjectFactory=function(){/// <reference lib="es2021" />
|
|
5977
5977
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeUserIdentityObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(UserIdentity.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="UserIdentity";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
5978
5978
|
markDestroyed:function markDestroyed(){return undefined;}};if(registry){registry.register(ptr,p,ptr);}return ptr;},unbless:function unbless(ptr){if(registry){registry.unregister(ptr);}},pointer:function pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer:function clonePointer(obj){var pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_clone_useridentity(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},freePointer:function freePointer(pointer){uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_free_useridentity(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},isConcreteType:function isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==="UserIdentity";}};}();// FfiConverter for UserIdentityLike
|
|
5979
5979
|
var FfiConverterTypeUserIdentity=new FfiConverterObject(uniffiTypeUserIdentityObjectFactory);/**
|
|
@@ -5985,7 +5985,7 @@ var FfiConverterTypeUserIdentity=new FfiConverterObject(uniffiTypeUserIdentityOb
|
|
|
5985
5985
|
* An object that handles all interactions of a widget living inside a webview
|
|
5986
5986
|
* or IFrame with the Matrix world.
|
|
5987
5987
|
*/export var WidgetDriver=/*#__PURE__*/function(_UniffiAbstractObject47){// No primary constructor declared for this class.
|
|
5988
|
-
function WidgetDriver(pointer){var _this1108;_classCallCheck(this,WidgetDriver);_this1108=_callSuper(this,WidgetDriver);_defineProperty(_this1108,uniffiTypeNameSymbol,"WidgetDriver");_defineProperty(_this1108,destructorGuardSymbol,void 0);_defineProperty(_this1108,pointerLiteralSymbol,void 0);_this1108[pointerLiteralSymbol]=pointer;_this1108[destructorGuardSymbol]=uniffiTypeWidgetDriverObjectFactory.bless(pointer);return _this1108;}_inherits(WidgetDriver,_UniffiAbstractObject47);return _createClass(WidgetDriver,[{key:"run",value:
|
|
5988
|
+
function WidgetDriver(pointer){var _this1108;_classCallCheck(this,WidgetDriver);_this1108=_callSuper(this,WidgetDriver);_defineProperty(_this1108,uniffiTypeNameSymbol,"WidgetDriver");_defineProperty(_this1108,destructorGuardSymbol,void 0);_defineProperty(_this1108,pointerLiteralSymbol,void 0);_this1108[pointerLiteralSymbol]=pointer;_this1108[destructorGuardSymbol]=uniffiTypeWidgetDriverObjectFactory.bless(pointer);return _this1108;}_inherits(WidgetDriver,_UniffiAbstractObject47);return _createClass(WidgetDriver,[{key:"run",value:async function run(room,capabilitiesProvider,asyncOpts_){var _this1109=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_widgetdriver_run(uniffiTypeWidgetDriverObjectFactory.clonePointer(_this1109),FfiConverterTypeRoom.lower(room),FfiConverterTypeWidgetCapabilitiesProvider.lower(capabilitiesProvider));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_void,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_void,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_void,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_void,/*liftFunc:*/function(_v){},/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
5989
5989
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5990
5990
|
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeWidgetDriverObjectFactory.pointer(this);uniffiTypeWidgetDriverObjectFactory.freePointer(pointer);uniffiTypeWidgetDriverObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeWidgetDriverObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeWidgetDriverObjectFactory=function(){/// <reference lib="es2021" />
|
|
5991
5991
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeWidgetDriverObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(WidgetDriver.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="WidgetDriver";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
@@ -6005,12 +6005,12 @@ function WidgetDriverHandle(pointer){var _this1110;_classCallCheck(this,WidgetDr
|
|
|
6005
6005
|
* The message must be passed on to the widget.
|
|
6006
6006
|
*
|
|
6007
6007
|
* Returns `None` if the widget driver is no longer running.
|
|
6008
|
-
*/_inherits(WidgetDriverHandle,_UniffiAbstractObject48);return _createClass(WidgetDriverHandle,[{key:"recv",value:
|
|
6008
|
+
*/_inherits(WidgetDriverHandle,_UniffiAbstractObject48);return _createClass(WidgetDriverHandle,[{key:"recv",value:async function recv(asyncOpts_){var _this1111=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_widgetdriverhandle_recv(uniffiTypeWidgetDriverHandleObjectFactory.clonePointer(_this1111));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_rust_buffer,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,/*liftFunc:*/FfiConverterOptionalString.lift.bind(FfiConverterOptionalString),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
6009
6009
|
*
|
|
6010
6010
|
* Returns `false` if the widget driver is no longer running.
|
|
6011
|
-
*/
|
|
6011
|
+
*/},{key:"send",value:async function send(msg,asyncOpts_){var _this1112=this;var __stack=uniffiIsDebug?new Error().stack:undefined;try{return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller,/*rustFutureFunc:*/function(){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_method_widgetdriverhandle_send(uniffiTypeWidgetDriverHandleObjectFactory.clonePointer(_this1112),FfiConverterString.lower(msg));},/*pollFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_poll_i8,/*cancelFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_cancel_i8,/*completeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_complete_i8,/*freeFunc:*/nativeModule().ubrn_ffi_matrix_sdk_ffi_rust_future_free_i8,/*liftFunc:*/FfiConverterBool.lift.bind(FfiConverterBool),/*liftString:*/FfiConverterString.lift,/*asyncOpts:*/asyncOpts_);}catch(__error){if(uniffiIsDebug&&__error instanceof Error){__error.stack=__stack;}throw __error;}}/**
|
|
6012
6012
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
6013
|
-
*/
|
|
6013
|
+
*/},{key:"uniffiDestroy",value:function uniffiDestroy(){var ptr=this[destructorGuardSymbol];if(ptr!==undefined){var pointer=uniffiTypeWidgetDriverHandleObjectFactory.pointer(this);uniffiTypeWidgetDriverHandleObjectFactory.freePointer(pointer);uniffiTypeWidgetDriverHandleObjectFactory.unbless(ptr);delete this[destructorGuardSymbol];}}}],[{key:"instanceOf",value:function instanceOf(obj){return uniffiTypeWidgetDriverHandleObjectFactory.isConcreteType(obj);}}]);}(UniffiAbstractObject);var uniffiTypeWidgetDriverHandleObjectFactory=function(){/// <reference lib="es2021" />
|
|
6014
6014
|
var registry=typeof FinalizationRegistry!=='undefined'?new FinalizationRegistry(function(heldValue){uniffiTypeWidgetDriverHandleObjectFactory.freePointer(heldValue);}):null;return{create:function create(pointer){var instance=Object.create(WidgetDriverHandle.prototype);instance[pointerLiteralSymbol]=pointer;instance[destructorGuardSymbol]=this.bless(pointer);instance[uniffiTypeNameSymbol]="WidgetDriverHandle";return instance;},bless:function bless(p){var ptr={p:p,// make sure this object doesn't get optimized away.
|
|
6015
6015
|
markDestroyed:function markDestroyed(){return undefined;}};if(registry){registry.register(ptr,p,ptr);}return ptr;},unbless:function unbless(ptr){if(registry){registry.unregister(ptr);}},pointer:function pointer(obj){if(obj[destructorGuardSymbol]===undefined){throw new UniffiInternalError.UnexpectedNullPointer();}return obj[pointerLiteralSymbol];},clonePointer:function clonePointer(obj){var pointer=this.pointer(obj);return uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_clone_widgetdriverhandle(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},freePointer:function freePointer(pointer){uniffiCaller.rustCall(/*caller:*/function(callStatus){return nativeModule().ubrn_uniffi_matrix_sdk_ffi_fn_free_widgetdriverhandle(pointer,callStatus);},/*liftString:*/FfiConverterString.lift);},isConcreteType:function isConcreteType(obj){return obj[destructorGuardSymbol]&&obj[uniffiTypeNameSymbol]==="WidgetDriverHandle";}};}();// FfiConverter for WidgetDriverHandleLike
|
|
6016
6016
|
var FfiConverterTypeWidgetDriverHandle=new FfiConverterObject(uniffiTypeWidgetDriverHandleObjectFactory);// FfiConverter for boolean | undefined
|