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.
@@ -1,7 +1,7 @@
1
- var _process;function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i["return"])&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this;}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(_regenerator=function _regenerator(){return{w:i,m:f};})();}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2));},_regeneratorDefine2(e,r,n,t);}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 asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}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.
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{AbstractFfiConverterByteArray,FfiConverterArray,FfiConverterArrayBuffer,FfiConverterBool,FfiConverterCallback,FfiConverterDuration,FfiConverterFloat32,FfiConverterFloat64,FfiConverterInt32,FfiConverterInt64,FfiConverterMap,FfiConverterObject,FfiConverterOptional,FfiConverterUInt16,FfiConverterUInt32,FfiConverterUInt64,FfiConverterUInt8,UniffiAbstractObject,UniffiEnum,UniffiError,UniffiInternalError,UniffiResult,UniffiRustCaller,destructorGuardSymbol,pointerLiteralSymbol,uniffiCreateFfiConverterString,uniffiCreateRecord,uniffiRustCallAsync,uniffiTraitInterfaceCall,uniffiTraitInterfaceCallWithError,uniffiTypeNameSymbol,variantOrdinalSymbol}from"uniffi-bindgen-react-native";// Get converters from the other files, if any.
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(_x,_x2,_x3,_x4){return _generateWebviewUrl.apply(this,arguments);}/**
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
- */function _generateWebviewUrl(){_generateWebviewUrl=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee274(widgetSettings,room,props,asyncOpts_){var __stack,_t274;return _regenerator().w(function(_context274){while(1)switch(_context274.p=_context274.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context274.p=1;_context274.n=2;return 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));case 2:return _context274.a(2,_context274.v);case 3:_context274.p=3;_t274=_context274.v;if(uniffiIsDebug&&_t274 instanceof Error){_t274.stack=__stack;}throw _t274;case 4:return _context274.a(2);}},_callee274,null,[[1,3]]);}));return _generateWebviewUrl.apply(this,arguments);}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));}/**
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:(function(){var _send=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(code,asyncOpts_){var _this595=this;var __stack,_t;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context.p=1;_context.n=2;return 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));case 2:return _context.a(2,_context.v);case 3:_context.p=3;_t=_context.v;if(uniffiIsDebug&&_t instanceof Error){_t.stack=__stack;}throw _t;case 4:return _context.a(2);}},_callee,null,[[1,3]]);}));function send(_x5,_x6){return _send.apply(this,arguments);}return send;}()/**
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
- */)},{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" />
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:(function(){var _abortOidcAuth=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(authorizationData,asyncOpts_){var _this597=this;var __stack,_t2;return _regenerator().w(function(_context2){while(1)switch(_context2.p=_context2.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context2.p=1;_context2.n=2;return 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_);case 2:return _context2.a(2,_context2.v);case 3:_context2.p=3;_t2=_context2.v;if(uniffiIsDebug&&_t2 instanceof Error){_t2.stack=__stack;}throw _t2;case 4:return _context2.a(2);}},_callee2,null,[[1,3]]);}));function abortOidcAuth(_x7,_x8){return _abortOidcAuth.apply(this,arguments);}return abortOidcAuth;}()/**
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
- */)},{key:"accountData",value:(function(){var _accountData=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(eventType,asyncOpts_){var _this598=this;var __stack,_t3;return _regenerator().w(function(_context3){while(1)switch(_context3.p=_context3.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context3.p=1;_context3.n=2;return 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));case 2:return _context3.a(2,_context3.v);case 3:_context3.p=3;_t3=_context3.v;if(uniffiIsDebug&&_t3 instanceof Error){_t3.stack=__stack;}throw _t3;case 4:return _context3.a(2);}},_callee3,null,[[1,3]]);}));function accountData(_x9,_x0){return _accountData.apply(this,arguments);}return accountData;}())},{key:"accountUrl",value:function(){var _accountUrl=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(action,asyncOpts_){var _this599=this;var __stack,_t4;return _regenerator().w(function(_context4){while(1)switch(_context4.p=_context4.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context4.p=1;_context4.n=2;return 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));case 2:return _context4.a(2,_context4.v);case 3:_context4.p=3;_t4=_context4.v;if(uniffiIsDebug&&_t4 instanceof Error){_t4.stack=__stack;}throw _t4;case 4:return _context4.a(2);}},_callee4,null,[[1,3]]);}));function accountUrl(_x1,_x10){return _accountUrl.apply(this,arguments);}return accountUrl;}()/**
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:(function(){var _availableSlidingSyncVersions=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(asyncOpts_){var _this600=this;var __stack,_t5;return _regenerator().w(function(_context5){while(1)switch(_context5.p=_context5.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context5.p=1;_context5.n=2;return 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_);case 2:return _context5.a(2,_context5.v);case 3:_context5.p=3;_t5=_context5.v;if(uniffiIsDebug&&_t5 instanceof Error){_t5.stack=__stack;}throw _t5;case 4:return _context5.a(2);}},_callee5,null,[[1,3]]);}));function availableSlidingSyncVersions(_x11){return _availableSlidingSyncVersions.apply(this,arguments);}return availableSlidingSyncVersions;}()/**
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
- */)},{key:"avatarUrl",value:(function(){var _avatarUrl=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(asyncOpts_){var _this601=this;var __stack,_t6;return _regenerator().w(function(_context6){while(1)switch(_context6.p=_context6.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context6.p=1;_context6.n=2;return 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));case 2:return _context6.a(2,_context6.v);case 3:_context6.p=3;_t6=_context6.v;if(uniffiIsDebug&&_t6 instanceof Error){_t6.stack=__stack;}throw _t6;case 4:return _context6.a(2);}},_callee6,null,[[1,3]]);}));function avatarUrl(_x12){return _avatarUrl.apply(this,arguments);}return avatarUrl;}()/**
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
- */)},{key:"awaitRoomRemoteEcho",value:(function(){var _awaitRoomRemoteEcho=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(roomId,asyncOpts_){var _this602=this;var __stack,_t7;return _regenerator().w(function(_context7){while(1)switch(_context7.p=_context7.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context7.p=1;_context7.n=2;return 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));case 2:return _context7.a(2,_context7.v);case 3:_context7.p=3;_t7=_context7.v;if(uniffiIsDebug&&_t7 instanceof Error){_t7.stack=__stack;}throw _t7;case 4:return _context7.a(2);}},_callee7,null,[[1,3]]);}));function awaitRoomRemoteEcho(_x13,_x14){return _awaitRoomRemoteEcho.apply(this,arguments);}return awaitRoomRemoteEcho;}()/**
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
- */)},{key:"cachedAvatarUrl",value:(function(){var _cachedAvatarUrl=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(asyncOpts_){var _this603=this;var __stack,_t8;return _regenerator().w(function(_context8){while(1)switch(_context8.p=_context8.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context8.p=1;_context8.n=2;return 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));case 2:return _context8.a(2,_context8.v);case 3:_context8.p=3;_t8=_context8.v;if(uniffiIsDebug&&_t8 instanceof Error){_t8.stack=__stack;}throw _t8;case 4:return _context8.a(2);}},_callee8,null,[[1,3]]);}));function cachedAvatarUrl(_x15){return _cachedAvatarUrl.apply(this,arguments);}return cachedAvatarUrl;}()/**
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
- */)},{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));}/**
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:(function(){var _clearCaches=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(syncService,asyncOpts_){var _this605=this;var __stack,_t9;return _regenerator().w(function(_context9){while(1)switch(_context9.p=_context9.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context9.p=1;_context9.n=2;return 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));case 2:return _context9.a(2,_context9.v);case 3:_context9.p=3;_t9=_context9.v;if(uniffiIsDebug&&_t9 instanceof Error){_t9.stack=__stack;}throw _t9;case 4:return _context9.a(2);}},_callee9,null,[[1,3]]);}));function clearCaches(_x16,_x17){return _clearCaches.apply(this,arguments);}return clearCaches;}())},{key:"createRoom",value:function(){var _createRoom=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(request,asyncOpts_){var _this606=this;var __stack,_t0;return _regenerator().w(function(_context0){while(1)switch(_context0.p=_context0.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context0.p=1;_context0.n=2;return 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));case 2:return _context0.a(2,_context0.v);case 3:_context0.p=3;_t0=_context0.v;if(uniffiIsDebug&&_t0 instanceof Error){_t0.stack=__stack;}throw _t0;case 4:return _context0.a(2);}},_callee0,null,[[1,3]]);}));function createRoom(_x18,_x19){return _createRoom.apply(this,arguments);}return createRoom;}()/**
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:(function(){var _customLoginWithJwt=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(jwt,initialDeviceName,deviceId,asyncOpts_){var _this607=this;var __stack,_t1;return _regenerator().w(function(_context1){while(1)switch(_context1.p=_context1.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context1.p=1;_context1.n=2;return 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));case 2:return _context1.a(2,_context1.v);case 3:_context1.p=3;_t1=_context1.v;if(uniffiIsDebug&&_t1 instanceof Error){_t1.stack=__stack;}throw _t1;case 4:return _context1.a(2);}},_callee1,null,[[1,3]]);}));function customLoginWithJwt(_x20,_x21,_x22,_x23){return _customLoginWithJwt.apply(this,arguments);}return customLoginWithJwt;}()/**
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
- */)},{key:"deactivateAccount",value:(function(){var _deactivateAccount=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10(authData,eraseData,asyncOpts_){var _this608=this;var __stack,_t10;return _regenerator().w(function(_context10){while(1)switch(_context10.p=_context10.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context10.p=1;_context10.n=2;return 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));case 2:return _context10.a(2,_context10.v);case 3:_context10.p=3;_t10=_context10.v;if(uniffiIsDebug&&_t10 instanceof Error){_t10.stack=__stack;}throw _t10;case 4:return _context10.a(2);}},_callee10,null,[[1,3]]);}));function deactivateAccount(_x24,_x25,_x26){return _deactivateAccount.apply(this,arguments);}return deactivateAccount;}()/**
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
- */)},{key:"deletePusher",value:(function(){var _deletePusher=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11(identifiers,asyncOpts_){var _this609=this;var __stack,_t11;return _regenerator().w(function(_context11){while(1)switch(_context11.p=_context11.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context11.p=1;_context11.n=2;return 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));case 2:return _context11.a(2,_context11.v);case 3:_context11.p=3;_t11=_context11.v;if(uniffiIsDebug&&_t11 instanceof Error){_t11.stack=__stack;}throw _t11;case 4:return _context11.a(2);}},_callee11,null,[[1,3]]);}));function deletePusher(_x27,_x28){return _deletePusher.apply(this,arguments);}return deletePusher;}())},{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:function(){var _displayName=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12(asyncOpts_){var _this611=this;var __stack,_t12;return _regenerator().w(function(_context12){while(1)switch(_context12.p=_context12.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context12.p=1;_context12.n=2;return 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));case 2:return _context12.a(2,_context12.v);case 3:_context12.p=3;_t12=_context12.v;if(uniffiIsDebug&&_t12 instanceof Error){_t12.stack=__stack;}throw _t12;case 4:return _context12.a(2);}},_callee12,null,[[1,3]]);}));function displayName(_x29){return _displayName.apply(this,arguments);}return displayName;}()/**
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:(function(){var _enableAllSendQueues=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee13(enable,asyncOpts_){var _this612=this;var __stack,_t13;return _regenerator().w(function(_context13){while(1)switch(_context13.p=_context13.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context13.p=1;_context13.n=2;return 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_);case 2:return _context13.a(2,_context13.v);case 3:_context13.p=3;_t13=_context13.v;if(uniffiIsDebug&&_t13 instanceof Error){_t13.stack=__stack;}throw _t13;case 4:return _context13.a(2);}},_callee13,null,[[1,3]]);}));function enableAllSendQueues(_x30,_x31){return _enableAllSendQueues.apply(this,arguments);}return enableAllSendQueues;}()/**
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
- */)},{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);}/**
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:(function(){var _fetchMediaPreviewConfig=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14(asyncOpts_){var _this616=this;var __stack,_t14;return _regenerator().w(function(_context14){while(1)switch(_context14.p=_context14.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context14.p=1;_context14.n=2;return 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));case 2:return _context14.a(2,_context14.v);case 3:_context14.p=3;_t14=_context14.v;if(uniffiIsDebug&&_t14 instanceof Error){_t14.stack=__stack;}throw _t14;case 4:return _context14.a(2);}},_callee14,null,[[1,3]]);}));function fetchMediaPreviewConfig(_x32){return _fetchMediaPreviewConfig.apply(this,arguments);}return fetchMediaPreviewConfig;}())},{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));}/**
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:(function(){var _getInviteAvatarsDisplayPolicy=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee15(asyncOpts_){var _this618=this;var __stack,_t15;return _regenerator().w(function(_context15){while(1)switch(_context15.p=_context15.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context15.p=1;_context15.n=2;return 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));case 2:return _context15.a(2,_context15.v);case 3:_context15.p=3;_t15=_context15.v;if(uniffiIsDebug&&_t15 instanceof Error){_t15.stack=__stack;}throw _t15;case 4:return _context15.a(2);}},_callee15,null,[[1,3]]);}));function getInviteAvatarsDisplayPolicy(_x33){return _getInviteAvatarsDisplayPolicy.apply(this,arguments);}return getInviteAvatarsDisplayPolicy;}()/**
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
- */)},{key:"getMaxMediaUploadSize",value:(function(){var _getMaxMediaUploadSize=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee16(asyncOpts_){var _this619=this;var __stack,_t16;return _regenerator().w(function(_context16){while(1)switch(_context16.p=_context16.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context16.p=1;_context16.n=2;return 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));case 2:return _context16.a(2,_context16.v);case 3:_context16.p=3;_t16=_context16.v;if(uniffiIsDebug&&_t16 instanceof Error){_t16.stack=__stack;}throw _t16;case 4:return _context16.a(2);}},_callee16,null,[[1,3]]);}));function getMaxMediaUploadSize(_x34){return _getMaxMediaUploadSize.apply(this,arguments);}return getMaxMediaUploadSize;}())},{key:"getMediaContent",value:function(){var _getMediaContent=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee17(mediaSource,asyncOpts_){var _this620=this;var __stack,_t17;return _regenerator().w(function(_context17){while(1)switch(_context17.p=_context17.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context17.p=1;_context17.n=2;return 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));case 2:return _context17.a(2,_context17.v);case 3:_context17.p=3;_t17=_context17.v;if(uniffiIsDebug&&_t17 instanceof Error){_t17.stack=__stack;}throw _t17;case 4:return _context17.a(2);}},_callee17,null,[[1,3]]);}));function getMediaContent(_x35,_x36){return _getMediaContent.apply(this,arguments);}return getMediaContent;}()/**
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:(function(){var _getMediaFile=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee18(mediaSource,filename,mimeType,useCache,tempDir,asyncOpts_){var _this621=this;var __stack,_t18;return _regenerator().w(function(_context18){while(1)switch(_context18.p=_context18.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context18.p=1;_context18.n=2;return 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));case 2:return _context18.a(2,_context18.v);case 3:_context18.p=3;_t18=_context18.v;if(uniffiIsDebug&&_t18 instanceof Error){_t18.stack=__stack;}throw _t18;case 4:return _context18.a(2);}},_callee18,null,[[1,3]]);}));function getMediaFile(_x37,_x38,_x39,_x40,_x41,_x42){return _getMediaFile.apply(this,arguments);}return getMediaFile;}()/**
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
- */)},{key:"getMediaPreviewDisplayPolicy",value:(function(){var _getMediaPreviewDisplayPolicy=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee19(asyncOpts_){var _this622=this;var __stack,_t19;return _regenerator().w(function(_context19){while(1)switch(_context19.p=_context19.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context19.p=1;_context19.n=2;return 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));case 2:return _context19.a(2,_context19.v);case 3:_context19.p=3;_t19=_context19.v;if(uniffiIsDebug&&_t19 instanceof Error){_t19.stack=__stack;}throw _t19;case 4:return _context19.a(2);}},_callee19,null,[[1,3]]);}));function getMediaPreviewDisplayPolicy(_x43){return _getMediaPreviewDisplayPolicy.apply(this,arguments);}return getMediaPreviewDisplayPolicy;}())},{key:"getMediaThumbnail",value:function(){var _getMediaThumbnail=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee20(mediaSource,width,height,asyncOpts_){var _this623=this;var __stack,_t20;return _regenerator().w(function(_context20){while(1)switch(_context20.p=_context20.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context20.p=1;_context20.n=2;return 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));case 2:return _context20.a(2,_context20.v);case 3:_context20.p=3;_t20=_context20.v;if(uniffiIsDebug&&_t20 instanceof Error){_t20.stack=__stack;}throw _t20;case 4:return _context20.a(2);}},_callee20,null,[[1,3]]);}));function getMediaThumbnail(_x44,_x45,_x46,_x47){return _getMediaThumbnail.apply(this,arguments);}return getMediaThumbnail;}()},{key:"getNotificationSettings",value:function(){var _getNotificationSettings=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee21(asyncOpts_){var _this624=this;var __stack,_t21;return _regenerator().w(function(_context21){while(1)switch(_context21.p=_context21.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context21.p=1;_context21.n=2;return 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_);case 2:return _context21.a(2,_context21.v);case 3:_context21.p=3;_t21=_context21.v;if(uniffiIsDebug&&_t21 instanceof Error){_t21.stack=__stack;}throw _t21;case 4:return _context21.a(2);}},_callee21,null,[[1,3]]);}));function getNotificationSettings(_x48){return _getNotificationSettings.apply(this,arguments);}return getNotificationSettings;}()},{key:"getProfile",value:function(){var _getProfile=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee22(userId,asyncOpts_){var _this625=this;var __stack,_t22;return _regenerator().w(function(_context22){while(1)switch(_context22.p=_context22.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context22.p=1;_context22.n=2;return 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));case 2:return _context22.a(2,_context22.v);case 3:_context22.p=3;_t22=_context22.v;if(uniffiIsDebug&&_t22 instanceof Error){_t22.stack=__stack;}throw _t22;case 4:return _context22.a(2);}},_callee22,null,[[1,3]]);}));function getProfile(_x49,_x50){return _getProfile.apply(this,arguments);}return getProfile;}()},{key:"getRecentlyVisitedRooms",value:function(){var _getRecentlyVisitedRooms=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee23(asyncOpts_){var _this626=this;var __stack,_t23;return _regenerator().w(function(_context23){while(1)switch(_context23.p=_context23.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context23.p=1;_context23.n=2;return 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));case 2:return _context23.a(2,_context23.v);case 3:_context23.p=3;_t23=_context23.v;if(uniffiIsDebug&&_t23 instanceof Error){_t23.stack=__stack;}throw _t23;case 4:return _context23.a(2);}},_callee23,null,[[1,3]]);}));function getRecentlyVisitedRooms(_x51){return _getRecentlyVisitedRooms.apply(this,arguments);}return getRecentlyVisitedRooms;}()/**
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:(function(){var _getRoomPreviewFromRoomAlias=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee24(roomAlias,asyncOpts_){var _this628=this;var __stack,_t24;return _regenerator().w(function(_context24){while(1)switch(_context24.p=_context24.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context24.p=1;_context24.n=2;return 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));case 2:return _context24.a(2,_context24.v);case 3:_context24.p=3;_t24=_context24.v;if(uniffiIsDebug&&_t24 instanceof Error){_t24.stack=__stack;}throw _t24;case 4:return _context24.a(2);}},_callee24,null,[[1,3]]);}));function getRoomPreviewFromRoomAlias(_x52,_x53){return _getRoomPreviewFromRoomAlias.apply(this,arguments);}return getRoomPreviewFromRoomAlias;}()/**
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
- */)},{key:"getRoomPreviewFromRoomId",value:(function(){var _getRoomPreviewFromRoomId=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee25(roomId,viaServers,asyncOpts_){var _this629=this;var __stack,_t25;return _regenerator().w(function(_context25){while(1)switch(_context25.p=_context25.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context25.p=1;_context25.n=2;return 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));case 2:return _context25.a(2,_context25.v);case 3:_context25.p=3;_t25=_context25.v;if(uniffiIsDebug&&_t25 instanceof Error){_t25.stack=__stack;}throw _t25;case 4:return _context25.a(2);}},_callee25,null,[[1,3]]);}));function getRoomPreviewFromRoomId(_x54,_x55,_x56){return _getRoomPreviewFromRoomId.apply(this,arguments);}return getRoomPreviewFromRoomId;}())},{key:"getSessionVerificationController",value:function(){var _getSessionVerificationController=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee26(asyncOpts_){var _this630=this;var __stack,_t26;return _regenerator().w(function(_context26){while(1)switch(_context26.p=_context26.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context26.p=1;_context26.n=2;return 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));case 2:return _context26.a(2,_context26.v);case 3:_context26.p=3;_t26=_context26.v;if(uniffiIsDebug&&_t26 instanceof Error){_t26.stack=__stack;}throw _t26;case 4:return _context26.a(2);}},_callee26,null,[[1,3]]);}));function getSessionVerificationController(_x57){return _getSessionVerificationController.apply(this,arguments);}return getSessionVerificationController;}()/**
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:(function(){var _getStoreSizes=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee27(asyncOpts_){var _this631=this;var __stack,_t27;return _regenerator().w(function(_context27){while(1)switch(_context27.p=_context27.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context27.p=1;_context27.n=2;return 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));case 2:return _context27.a(2,_context27.v);case 3:_context27.p=3;_t27=_context27.v;if(uniffiIsDebug&&_t27 instanceof Error){_t27.stack=__stack;}throw _t27;case 4:return _context27.a(2);}},_callee27,null,[[1,3]]);}));function getStoreSizes(_x58){return _getStoreSizes.apply(this,arguments);}return getStoreSizes;}()/**
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
- */)},{key:"getUrl",value:(function(){var _getUrl=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee28(url,asyncOpts_){var _this632=this;var __stack,_t28;return _regenerator().w(function(_context28){while(1)switch(_context28.p=_context28.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context28.p=1;_context28.n=2;return 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));case 2:return _context28.a(2,_context28.v);case 3:_context28.p=3;_t28=_context28.v;if(uniffiIsDebug&&_t28 instanceof Error){_t28.stack=__stack;}throw _t28;case 4:return _context28.a(2);}},_callee28,null,[[1,3]]);}));function getUrl(_x59,_x60){return _getUrl.apply(this,arguments);}return getUrl;}()/**
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
- */)},{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));}/**
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:(function(){var _homeserverLoginDetails=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee29(asyncOpts_){var _this635=this;var __stack,_t29;return _regenerator().w(function(_context29){while(1)switch(_context29.p=_context29.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context29.p=1;_context29.n=2;return 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_);case 2:return _context29.a(2,_context29.v);case 3:_context29.p=3;_t29=_context29.v;if(uniffiIsDebug&&_t29 instanceof Error){_t29.stack=__stack;}throw _t29;case 4:return _context29.a(2);}},_callee29,null,[[1,3]]);}));function homeserverLoginDetails(_x61){return _homeserverLoginDetails.apply(this,arguments);}return homeserverLoginDetails;}())},{key:"ignoreUser",value:function(){var _ignoreUser=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee30(userId,asyncOpts_){var _this636=this;var __stack,_t30;return _regenerator().w(function(_context30){while(1)switch(_context30.p=_context30.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context30.p=1;_context30.n=2;return 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));case 2:return _context30.a(2,_context30.v);case 3:_context30.p=3;_t30=_context30.v;if(uniffiIsDebug&&_t30 instanceof Error){_t30.stack=__stack;}throw _t30;case 4:return _context30.a(2);}},_callee30,null,[[1,3]]);}));function ignoreUser(_x62,_x63){return _ignoreUser.apply(this,arguments);}return ignoreUser;}()},{key:"ignoredUsers",value:function(){var _ignoredUsers=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee31(asyncOpts_){var _this637=this;var __stack,_t31;return _regenerator().w(function(_context31){while(1)switch(_context31.p=_context31.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context31.p=1;_context31.n=2;return 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));case 2:return _context31.a(2,_context31.v);case 3:_context31.p=3;_t31=_context31.v;if(uniffiIsDebug&&_t31 instanceof Error){_t31.stack=__stack;}throw _t31;case 4:return _context31.a(2);}},_callee31,null,[[1,3]]);}));function ignoredUsers(_x64){return _ignoredUsers.apply(this,arguments);}return ignoredUsers;}()/**
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:(function(){var _isLivekitRtcSupported=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee32(asyncOpts_){var _this638=this;var __stack,_t32;return _regenerator().w(function(_context32){while(1)switch(_context32.p=_context32.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context32.p=1;_context32.n=2;return 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));case 2:return _context32.a(2,_context32.v);case 3:_context32.p=3;_t32=_context32.v;if(uniffiIsDebug&&_t32 instanceof Error){_t32.stack=__stack;}throw _t32;case 4:return _context32.a(2);}},_callee32,null,[[1,3]]);}));function isLivekitRtcSupported(_x65){return _isLivekitRtcSupported.apply(this,arguments);}return isLivekitRtcSupported;}()/**
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
- */)},{key:"isLoginWithQrCodeSupported",value:(function(){var _isLoginWithQrCodeSupported=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee33(asyncOpts_){var _this639=this;var __stack,_t33;return _regenerator().w(function(_context33){while(1)switch(_context33.p=_context33.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context33.p=1;_context33.n=2;return 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));case 2:return _context33.a(2,_context33.v);case 3:_context33.p=3;_t33=_context33.v;if(uniffiIsDebug&&_t33 instanceof Error){_t33.stack=__stack;}throw _t33;case 4:return _context33.a(2);}},_callee33,null,[[1,3]]);}));function isLoginWithQrCodeSupported(_x66){return _isLoginWithQrCodeSupported.apply(this,arguments);}return isLoginWithQrCodeSupported;}()/**
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
- */)},{key:"isReportRoomApiSupported",value:(function(){var _isReportRoomApiSupported=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee34(asyncOpts_){var _this640=this;var __stack,_t34;return _regenerator().w(function(_context34){while(1)switch(_context34.p=_context34.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context34.p=1;_context34.n=2;return 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));case 2:return _context34.a(2,_context34.v);case 3:_context34.p=3;_t34=_context34.v;if(uniffiIsDebug&&_t34 instanceof Error){_t34.stack=__stack;}throw _t34;case 4:return _context34.a(2);}},_callee34,null,[[1,3]]);}));function isReportRoomApiSupported(_x67){return _isReportRoomApiSupported.apply(this,arguments);}return isReportRoomApiSupported;}()/**
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
- */)},{key:"isRoomAliasAvailable",value:(function(){var _isRoomAliasAvailable=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee35(alias,asyncOpts_){var _this641=this;var __stack,_t35;return _regenerator().w(function(_context35){while(1)switch(_context35.p=_context35.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context35.p=1;_context35.n=2;return 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));case 2:return _context35.a(2,_context35.v);case 3:_context35.p=3;_t35=_context35.v;if(uniffiIsDebug&&_t35 instanceof Error){_t35.stack=__stack;}throw _t35;case 4:return _context35.a(2);}},_callee35,null,[[1,3]]);}));function isRoomAliasAvailable(_x68,_x69){return _isRoomAliasAvailable.apply(this,arguments);}return isRoomAliasAvailable;}()/**
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
- */)},{key:"joinRoomById",value:(function(){var _joinRoomById=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee36(roomId,asyncOpts_){var _this642=this;var __stack,_t36;return _regenerator().w(function(_context36){while(1)switch(_context36.p=_context36.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context36.p=1;_context36.n=2;return 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));case 2:return _context36.a(2,_context36.v);case 3:_context36.p=3;_t36=_context36.v;if(uniffiIsDebug&&_t36 instanceof Error){_t36.stack=__stack;}throw _t36;case 4:return _context36.a(2);}},_callee36,null,[[1,3]]);}));function joinRoomById(_x70,_x71){return _joinRoomById.apply(this,arguments);}return joinRoomById;}()/**
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
- */)},{key:"joinRoomByIdOrAlias",value:(function(){var _joinRoomByIdOrAlias=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee37(roomIdOrAlias,serverNames,asyncOpts_){var _this643=this;var __stack,_t37;return _regenerator().w(function(_context37){while(1)switch(_context37.p=_context37.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context37.p=1;_context37.n=2;return 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));case 2:return _context37.a(2,_context37.v);case 3:_context37.p=3;_t37=_context37.v;if(uniffiIsDebug&&_t37 instanceof Error){_t37.stack=__stack;}throw _t37;case 4:return _context37.a(2);}},_callee37,null,[[1,3]]);}));function joinRoomByIdOrAlias(_x72,_x73,_x74){return _joinRoomByIdOrAlias.apply(this,arguments);}return joinRoomByIdOrAlias;}()/**
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
- */)},{key:"knock",value:(function(){var _knock=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee38(roomIdOrAlias,reason,serverNames,asyncOpts_){var _this644=this;var __stack,_t38;return _regenerator().w(function(_context38){while(1)switch(_context38.p=_context38.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context38.p=1;_context38.n=2;return 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));case 2:return _context38.a(2,_context38.v);case 3:_context38.p=3;_t38=_context38.v;if(uniffiIsDebug&&_t38 instanceof Error){_t38.stack=__stack;}throw _t38;case 4:return _context38.a(2);}},_callee38,null,[[1,3]]);}));function knock(_x75,_x76,_x77,_x78){return _knock.apply(this,arguments);}return knock;}()/**
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
- */)},{key:"login",value:(function(){var _login=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee39(username,password,initialDeviceName,deviceId,asyncOpts_){var _this645=this;var __stack,_t39;return _regenerator().w(function(_context39){while(1)switch(_context39.p=_context39.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context39.p=1;_context39.n=2;return 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));case 2:return _context39.a(2,_context39.v);case 3:_context39.p=3;_t39=_context39.v;if(uniffiIsDebug&&_t39 instanceof Error){_t39.stack=__stack;}throw _t39;case 4:return _context39.a(2);}},_callee39,null,[[1,3]]);}));function login(_x79,_x80,_x81,_x82,_x83){return _login.apply(this,arguments);}return login;}()/**
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
- */)},{key:"loginWithEmail",value:(function(){var _loginWithEmail=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee40(email,password,initialDeviceName,deviceId,asyncOpts_){var _this646=this;var __stack,_t40;return _regenerator().w(function(_context40){while(1)switch(_context40.p=_context40.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context40.p=1;_context40.n=2;return 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));case 2:return _context40.a(2,_context40.v);case 3:_context40.p=3;_t40=_context40.v;if(uniffiIsDebug&&_t40 instanceof Error){_t40.stack=__stack;}throw _t40;case 4:return _context40.a(2);}},_callee40,null,[[1,3]]);}));function loginWithEmail(_x84,_x85,_x86,_x87,_x88){return _loginWithEmail.apply(this,arguments);}return loginWithEmail;}()/**
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
- */)},{key:"loginWithOidcCallback",value:(function(){var _loginWithOidcCallback=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee41(callbackUrl,asyncOpts_){var _this647=this;var __stack,_t41;return _regenerator().w(function(_context41){while(1)switch(_context41.p=_context41.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context41.p=1;_context41.n=2;return 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));case 2:return _context41.a(2,_context41.v);case 3:_context41.p=3;_t41=_context41.v;if(uniffiIsDebug&&_t41 instanceof Error){_t41.stack=__stack;}throw _t41;case 4:return _context41.a(2);}},_callee41,null,[[1,3]]);}));function loginWithOidcCallback(_x89,_x90){return _loginWithOidcCallback.apply(this,arguments);}return loginWithOidcCallback;}()/**
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
- */)},{key:"logout",value:(function(){var _logout=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee42(asyncOpts_){var _this648=this;var __stack,_t42;return _regenerator().w(function(_context42){while(1)switch(_context42.p=_context42.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context42.p=1;_context42.n=2;return 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));case 2:return _context42.a(2,_context42.v);case 3:_context42.p=3;_t42=_context42.v;if(uniffiIsDebug&&_t42 instanceof Error){_t42.stack=__stack;}throw _t42;case 4:return _context42.a(2);}},_callee42,null,[[1,3]]);}));function logout(_x91){return _logout.apply(this,arguments);}return logout;}()/**
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
- */)},{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));}/**
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:function(){var _notificationClient=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee43(processSetup,asyncOpts_){var _this651=this;var __stack,_t43;return _regenerator().w(function(_context43){while(1)switch(_context43.p=_context43.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context43.p=1;_context43.n=2;return 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));case 2:return _context43.a(2,_context43.v);case 3:_context43.p=3;_t43=_context43.v;if(uniffiIsDebug&&_t43 instanceof Error){_t43.stack=__stack;}throw _t43;case 4:return _context43.a(2);}},_callee43,null,[[1,3]]);}));function notificationClient(_x92,_x93){return _notificationClient.apply(this,arguments);}return notificationClient;}()/**
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:(function(){var _optimizeStores=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee44(asyncOpts_){var _this654=this;var __stack,_t44;return _regenerator().w(function(_context44){while(1)switch(_context44.p=_context44.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context44.p=1;_context44.n=2;return 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));case 2:return _context44.a(2,_context44.v);case 3:_context44.p=3;_t44=_context44.v;if(uniffiIsDebug&&_t44 instanceof Error){_t44.stack=__stack;}throw _t44;case 4:return _context44.a(2);}},_callee44,null,[[1,3]]);}));function optimizeStores(_x94){return _optimizeStores.apply(this,arguments);}return optimizeStores;}()/**
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
- */)},{key:"registerNotificationHandler",value:(function(){var _registerNotificationHandler=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee45(listener,asyncOpts_){var _this655=this;var __stack,_t45;return _regenerator().w(function(_context45){while(1)switch(_context45.p=_context45.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context45.p=1;_context45.n=2;return 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_);case 2:return _context45.a(2,_context45.v);case 3:_context45.p=3;_t45=_context45.v;if(uniffiIsDebug&&_t45 instanceof Error){_t45.stack=__stack;}throw _t45;case 4:return _context45.a(2);}},_callee45,null,[[1,3]]);}));function registerNotificationHandler(_x95,_x96){return _registerNotificationHandler.apply(this,arguments);}return registerNotificationHandler;}())},{key:"removeAvatar",value:function(){var _removeAvatar=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee46(asyncOpts_){var _this656=this;var __stack,_t46;return _regenerator().w(function(_context46){while(1)switch(_context46.p=_context46.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context46.p=1;_context46.n=2;return 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));case 2:return _context46.a(2,_context46.v);case 3:_context46.p=3;_t46=_context46.v;if(uniffiIsDebug&&_t46 instanceof Error){_t46.stack=__stack;}throw _t46;case 4:return _context46.a(2);}},_callee46,null,[[1,3]]);}));function removeAvatar(_x97){return _removeAvatar.apply(this,arguments);}return removeAvatar;}()/**
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:(function(){var _resetSupportedVersions=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee47(asyncOpts_){var _this657=this;var __stack,_t47;return _regenerator().w(function(_context47){while(1)switch(_context47.p=_context47.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context47.p=1;_context47.n=2;return 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));case 2:return _context47.a(2,_context47.v);case 3:_context47.p=3;_t47=_context47.v;if(uniffiIsDebug&&_t47 instanceof Error){_t47.stack=__stack;}throw _t47;case 4:return _context47.a(2);}},_callee47,null,[[1,3]]);}));function resetSupportedVersions(_x98){return _resetSupportedVersions.apply(this,arguments);}return resetSupportedVersions;}()/**
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
- */)},{key:"resetWellKnown",value:(function(){var _resetWellKnown=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee48(asyncOpts_){var _this658=this;var __stack,_t48;return _regenerator().w(function(_context48){while(1)switch(_context48.p=_context48.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context48.p=1;_context48.n=2;return 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));case 2:return _context48.a(2,_context48.v);case 3:_context48.p=3;_t48=_context48.v;if(uniffiIsDebug&&_t48 instanceof Error){_t48.stack=__stack;}throw _t48;case 4:return _context48.a(2);}},_callee48,null,[[1,3]]);}));function resetWellKnown(_x99){return _resetWellKnown.apply(this,arguments);}return resetWellKnown;}()/**
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
- */)},{key:"resolveRoomAlias",value:(function(){var _resolveRoomAlias=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee49(roomAlias,asyncOpts_){var _this659=this;var __stack,_t49;return _regenerator().w(function(_context49){while(1)switch(_context49.p=_context49.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context49.p=1;_context49.n=2;return 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));case 2:return _context49.a(2,_context49.v);case 3:_context49.p=3;_t49=_context49.v;if(uniffiIsDebug&&_t49 instanceof Error){_t49.stack=__stack;}throw _t49;case 4:return _context49.a(2);}},_callee49,null,[[1,3]]);}));function resolveRoomAlias(_x100,_x101){return _resolveRoomAlias.apply(this,arguments);}return resolveRoomAlias;}()/**
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
- */)},{key:"restoreSession",value:(function(){var _restoreSession=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee50(session,asyncOpts_){var _this660=this;var __stack,_t50;return _regenerator().w(function(_context50){while(1)switch(_context50.p=_context50.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context50.p=1;_context50.n=2;return 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));case 2:return _context50.a(2,_context50.v);case 3:_context50.p=3;_t50=_context50.v;if(uniffiIsDebug&&_t50 instanceof Error){_t50.stack=__stack;}throw _t50;case 4:return _context50.a(2);}},_callee50,null,[[1,3]]);}));function restoreSession(_x102,_x103){return _restoreSession.apply(this,arguments);}return restoreSession;}()/**
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
- */)},{key:"restoreSessionWith",value:(function(){var _restoreSessionWith=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee51(session,roomLoadSettings,asyncOpts_){var _this661=this;var __stack,_t51;return _regenerator().w(function(_context51){while(1)switch(_context51.p=_context51.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context51.p=1;_context51.n=2;return 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));case 2:return _context51.a(2,_context51.v);case 3:_context51.p=3;_t51=_context51.v;if(uniffiIsDebug&&_t51 instanceof Error){_t51.stack=__stack;}throw _t51;case 4:return _context51.a(2);}},_callee51,null,[[1,3]]);}));function restoreSessionWith(_x104,_x105,_x106){return _restoreSessionWith.apply(this,arguments);}return restoreSessionWith;}()/**
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
- */)},{key:"roomAliasExists",value:(function(){var _roomAliasExists=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee52(roomAlias,asyncOpts_){var _this662=this;var __stack,_t52;return _regenerator().w(function(_context52){while(1)switch(_context52.p=_context52.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context52.p=1;_context52.n=2;return 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));case 2:return _context52.a(2,_context52.v);case 3:_context52.p=3;_t52=_context52.v;if(uniffiIsDebug&&_t52 instanceof Error){_t52.stack=__stack;}throw _t52;case 4:return _context52.a(2);}},_callee52,null,[[1,3]]);}));function roomAliasExists(_x107,_x108){return _roomAliasExists.apply(this,arguments);}return roomAliasExists;}())},{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:function(){var _searchUsers=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee53(searchTerm,limit,asyncOpts_){var _this665=this;var __stack,_t53;return _regenerator().w(function(_context53){while(1)switch(_context53.p=_context53.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context53.p=1;_context53.n=2;return 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));case 2:return _context53.a(2,_context53.v);case 3:_context53.p=3;_t53=_context53.v;if(uniffiIsDebug&&_t53 instanceof Error){_t53.stack=__stack;}throw _t53;case 4:return _context53.a(2);}},_callee53,null,[[1,3]]);}));function searchUsers(_x109,_x110,_x111){return _searchUsers.apply(this,arguments);}return searchUsers;}()/**
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:(function(){var _serverVendorInfo=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee54(asyncOpts_){var _this667=this;var __stack,_t54;return _regenerator().w(function(_context54){while(1)switch(_context54.p=_context54.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context54.p=1;_context54.n=2;return 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));case 2:return _context54.a(2,_context54.v);case 3:_context54.p=3;_t54=_context54.v;if(uniffiIsDebug&&_t54 instanceof Error){_t54.stack=__stack;}throw _t54;case 4:return _context54.a(2);}},_callee54,null,[[1,3]]);}));function serverVendorInfo(_x112){return _serverVendorInfo.apply(this,arguments);}return serverVendorInfo;}())},{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));}/**
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:(function(){var _setAccountData=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee55(eventType,content,asyncOpts_){var _this669=this;var __stack,_t55;return _regenerator().w(function(_context55){while(1)switch(_context55.p=_context55.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context55.p=1;_context55.n=2;return 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));case 2:return _context55.a(2,_context55.v);case 3:_context55.p=3;_t55=_context55.v;if(uniffiIsDebug&&_t55 instanceof Error){_t55.stack=__stack;}throw _t55;case 4:return _context55.a(2);}},_callee55,null,[[1,3]]);}));function setAccountData(_x113,_x114,_x115){return _setAccountData.apply(this,arguments);}return setAccountData;}()/**
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
- */)},{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:function(){var _setDisplayName=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee56(name,asyncOpts_){var _this671=this;var __stack,_t56;return _regenerator().w(function(_context56){while(1)switch(_context56.p=_context56.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context56.p=1;_context56.n=2;return 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));case 2:return _context56.a(2,_context56.v);case 3:_context56.p=3;_t56=_context56.v;if(uniffiIsDebug&&_t56 instanceof Error){_t56.stack=__stack;}throw _t56;case 4:return _context56.a(2);}},_callee56,null,[[1,3]]);}));function setDisplayName(_x116,_x117){return _setDisplayName.apply(this,arguments);}return setDisplayName;}()/**
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:(function(){var _setInviteAvatarsDisplayPolicy=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee57(policy,asyncOpts_){var _this672=this;var __stack,_t57;return _regenerator().w(function(_context57){while(1)switch(_context57.p=_context57.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context57.p=1;_context57.n=2;return 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));case 2:return _context57.a(2,_context57.v);case 3:_context57.p=3;_t57=_context57.v;if(uniffiIsDebug&&_t57 instanceof Error){_t57.stack=__stack;}throw _t57;case 4:return _context57.a(2);}},_callee57,null,[[1,3]]);}));function setInviteAvatarsDisplayPolicy(_x118,_x119){return _setInviteAvatarsDisplayPolicy.apply(this,arguments);}return setInviteAvatarsDisplayPolicy;}()/**
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
- */)},{key:"setMediaPreviewDisplayPolicy",value:(function(){var _setMediaPreviewDisplayPolicy=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee58(policy,asyncOpts_){var _this673=this;var __stack,_t58;return _regenerator().w(function(_context58){while(1)switch(_context58.p=_context58.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context58.p=1;_context58.n=2;return 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));case 2:return _context58.a(2,_context58.v);case 3:_context58.p=3;_t58=_context58.v;if(uniffiIsDebug&&_t58 instanceof Error){_t58.stack=__stack;}throw _t58;case 4:return _context58.a(2);}},_callee58,null,[[1,3]]);}));function setMediaPreviewDisplayPolicy(_x120,_x121){return _setMediaPreviewDisplayPolicy.apply(this,arguments);}return setMediaPreviewDisplayPolicy;}()/**
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
- */)},{key:"setMediaRetentionPolicy",value:(function(){var _setMediaRetentionPolicy=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee59(policy,asyncOpts_){var _this674=this;var __stack,_t59;return _regenerator().w(function(_context59){while(1)switch(_context59.p=_context59.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context59.p=1;_context59.n=2;return 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));case 2:return _context59.a(2,_context59.v);case 3:_context59.p=3;_t59=_context59.v;if(uniffiIsDebug&&_t59 instanceof Error){_t59.stack=__stack;}throw _t59;case 4:return _context59.a(2);}},_callee59,null,[[1,3]]);}));function setMediaRetentionPolicy(_x122,_x123){return _setMediaRetentionPolicy.apply(this,arguments);}return setMediaRetentionPolicy;}()/**
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
- */)},{key:"setPusher",value:(function(){var _setPusher=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee60(identifiers,kind,appDisplayName,deviceDisplayName,profileTag,lang,asyncOpts_){var _this675=this;var __stack,_t60;return _regenerator().w(function(_context60){while(1)switch(_context60.p=_context60.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context60.p=1;_context60.n=2;return 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));case 2:return _context60.a(2,_context60.v);case 3:_context60.p=3;_t60=_context60.v;if(uniffiIsDebug&&_t60 instanceof Error){_t60.stack=__stack;}throw _t60;case 4:return _context60.a(2);}},_callee60,null,[[1,3]]);}));function setPusher(_x124,_x125,_x126,_x127,_x128,_x129,_x130){return _setPusher.apply(this,arguments);}return setPusher;}()/**
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
- */)},{key:"setUtdDelegate",value:(function(){var _setUtdDelegate=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee61(utdDelegate,asyncOpts_){var _this676=this;var __stack,_t61;return _regenerator().w(function(_context61){while(1)switch(_context61.p=_context61.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context61.p=1;_context61.n=2;return 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));case 2:return _context61.a(2,_context61.v);case 3:_context61.p=3;_t61=_context61.v;if(uniffiIsDebug&&_t61 instanceof Error){_t61.stack=__stack;}throw _t61;case 4:return _context61.a(2);}},_callee61,null,[[1,3]]);}));function setUtdDelegate(_x131,_x132){return _setUtdDelegate.apply(this,arguments);}return setUtdDelegate;}()/**
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
- */)},{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:function(){var _spaceService=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee62(asyncOpts_){var _this678=this;var __stack,_t62;return _regenerator().w(function(_context62){while(1)switch(_context62.p=_context62.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context62.p=1;_context62.n=2;return 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_);case 2:return _context62.a(2,_context62.v);case 3:_context62.p=3;_t62=_context62.v;if(uniffiIsDebug&&_t62 instanceof Error){_t62.stack=__stack;}throw _t62;case 4:return _context62.a(2);}},_callee62,null,[[1,3]]);}));function spaceService(_x133){return _spaceService.apply(this,arguments);}return spaceService;}()/**
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:(function(){var _startSsoLogin=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee63(redirectUrl,idpId,asyncOpts_){var _this679=this;var __stack,_t63;return _regenerator().w(function(_context63){while(1)switch(_context63.p=_context63.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context63.p=1;_context63.n=2;return 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));case 2:return _context63.a(2,_context63.v);case 3:_context63.p=3;_t63=_context63.v;if(uniffiIsDebug&&_t63 instanceof Error){_t63.stack=__stack;}throw _t63;case 4:return _context63.a(2);}},_callee63,null,[[1,3]]);}));function startSsoLogin(_x134,_x135,_x136){return _startSsoLogin.apply(this,arguments);}return startSsoLogin;}()/**
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
- */)},{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));}/**
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:(function(){var _subscribeToMediaPreviewConfig=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee64(listener,asyncOpts_){var _this682=this;var __stack,_t64;return _regenerator().w(function(_context64){while(1)switch(_context64.p=_context64.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context64.p=1;_context64.n=2;return 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));case 2:return _context64.a(2,_context64.v);case 3:_context64.p=3;_t64=_context64.v;if(uniffiIsDebug&&_t64 instanceof Error){_t64.stack=__stack;}throw _t64;case 4:return _context64.a(2);}},_callee64,null,[[1,3]]);}));function subscribeToMediaPreviewConfig(_x137,_x138){return _subscribeToMediaPreviewConfig.apply(this,arguments);}return subscribeToMediaPreviewConfig;}()/**
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
- */)},{key:"subscribeToRoomInfo",value:(function(){var _subscribeToRoomInfo=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee65(roomId,listener,asyncOpts_){var _this683=this;var __stack,_t65;return _regenerator().w(function(_context65){while(1)switch(_context65.p=_context65.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context65.p=1;_context65.n=2;return 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));case 2:return _context65.a(2,_context65.v);case 3:_context65.p=3;_t65=_context65.v;if(uniffiIsDebug&&_t65 instanceof Error){_t65.stack=__stack;}throw _t65;case 4:return _context65.a(2);}},_callee65,null,[[1,3]]);}));function subscribeToRoomInfo(_x139,_x140,_x141){return _subscribeToRoomInfo.apply(this,arguments);}return subscribeToRoomInfo;}()/**
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
- */)},{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));}/**
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:(function(){var _subscribeToSendQueueUpdates=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee66(listener,asyncOpts_){var _this685=this;var __stack,_t66;return _regenerator().w(function(_context66){while(1)switch(_context66.p=_context66.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context66.p=1;_context66.n=2;return 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));case 2:return _context66.a(2,_context66.v);case 3:_context66.p=3;_t66=_context66.v;if(uniffiIsDebug&&_t66 instanceof Error){_t66.stack=__stack;}throw _t66;case 4:return _context66.a(2);}},_callee66,null,[[1,3]]);}));function subscribeToSendQueueUpdates(_x142,_x143){return _subscribeToSendQueueUpdates.apply(this,arguments);}return subscribeToSendQueueUpdates;}()/**
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
- */)},{key:"syncOnceV2",value:(function(){var _syncOnceV=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee67(settings,asyncOpts_){var _this686=this;var __stack,_t67;return _regenerator().w(function(_context67){while(1)switch(_context67.p=_context67.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context67.p=1;_context67.n=2;return 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));case 2:return _context67.a(2,_context67.v);case 3:_context67.p=3;_t67=_context67.v;if(uniffiIsDebug&&_t67 instanceof Error){_t67.stack=__stack;}throw _t67;case 4:return _context67.a(2);}},_callee67,null,[[1,3]]);}));function syncOnceV2(_x144,_x145){return _syncOnceV.apply(this,arguments);}return syncOnceV2;}())},{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));}/**
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:function(){var _trackRecentlyVisitedRoom=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee68(room,asyncOpts_){var _this689=this;var __stack,_t68;return _regenerator().w(function(_context68){while(1)switch(_context68.p=_context68.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context68.p=1;_context68.n=2;return 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));case 2:return _context68.a(2,_context68.v);case 3:_context68.p=3;_t68=_context68.v;if(uniffiIsDebug&&_t68 instanceof Error){_t68.stack=__stack;}throw _t68;case 4:return _context68.a(2);}},_callee68,null,[[1,3]]);}));function trackRecentlyVisitedRoom(_x146,_x147){return _trackRecentlyVisitedRoom.apply(this,arguments);}return trackRecentlyVisitedRoom;}()},{key:"unignoreUser",value:function(){var _unignoreUser=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee69(userId,asyncOpts_){var _this690=this;var __stack,_t69;return _regenerator().w(function(_context69){while(1)switch(_context69.p=_context69.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context69.p=1;_context69.n=2;return 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));case 2:return _context69.a(2,_context69.v);case 3:_context69.p=3;_t69=_context69.v;if(uniffiIsDebug&&_t69 instanceof Error){_t69.stack=__stack;}throw _t69;case 4:return _context69.a(2);}},_callee69,null,[[1,3]]);}));function unignoreUser(_x148,_x149){return _unignoreUser.apply(this,arguments);}return unignoreUser;}()},{key:"uploadAvatar",value:function(){var _uploadAvatar=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee70(mimeType,data,asyncOpts_){var _this691=this;var __stack,_t70;return _regenerator().w(function(_context70){while(1)switch(_context70.p=_context70.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context70.p=1;_context70.n=2;return 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));case 2:return _context70.a(2,_context70.v);case 3:_context70.p=3;_t70=_context70.v;if(uniffiIsDebug&&_t70 instanceof Error){_t70.stack=__stack;}throw _t70;case 4:return _context70.a(2);}},_callee70,null,[[1,3]]);}));function uploadAvatar(_x150,_x151,_x152){return _uploadAvatar.apply(this,arguments);}return uploadAvatar;}()},{key:"uploadMedia",value:function(){var _uploadMedia=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee71(mimeType,data,progressWatcher,asyncOpts_){var _this692=this;var __stack,_t71;return _regenerator().w(function(_context71){while(1)switch(_context71.p=_context71.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context71.p=1;_context71.n=2;return 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));case 2:return _context71.a(2,_context71.v);case 3:_context71.p=3;_t71=_context71.v;if(uniffiIsDebug&&_t71 instanceof Error){_t71.stack=__stack;}throw _t71;case 4:return _context71.a(2);}},_callee71,null,[[1,3]]);}));function uploadMedia(_x153,_x154,_x155,_x156){return _uploadMedia.apply(this,arguments);}return uploadMedia;}()/**
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:(function(){var _urlForOidc=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee72(oidcConfiguration,prompt,loginHint,deviceId,additionalScopes,asyncOpts_){var _this693=this;var __stack,_t72;return _regenerator().w(function(_context72){while(1)switch(_context72.p=_context72.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context72.p=1;_context72.n=2;return 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));case 2:return _context72.a(2,_context72.v);case 3:_context72.p=3;_t72=_context72.v;if(uniffiIsDebug&&_t72 instanceof Error){_t72.stack=__stack;}throw _t72;case 4:return _context72.a(2);}},_callee72,null,[[1,3]]);}));function urlForOidc(_x157,_x158,_x159,_x160,_x161,_x162){return _urlForOidc.apply(this,arguments);}return urlForOidc;}())},{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));}/**
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(_x163){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(_x164){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));}/**
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(_x165){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:function(){var _build=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee73(asyncOpts_){var _this701=this;var __stack,_t73;return _regenerator().w(function(_context73){while(1)switch(_context73.p=_context73.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context73.p=1;_context73.n=2;return 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));case 2:return _context73.a(2,_context73.v);case 3:_context73.p=3;_t73=_context73.v;if(uniffiIsDebug&&_t73 instanceof Error){_t73.stack=__stack;}throw _t73;case 4:return _context73.a(2);}},_callee73,null,[[1,3]]);}));function build(_x172){return _build.apply(this,arguments);}return build;}()},{key:"crossProcessLockConfig",value:function(_crossProcessLockConfig){function crossProcessLockConfig(_x166){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));}/**
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(_x167){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));}/**
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(_x168){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));}/**
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(_x169){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));}/**
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(_x170){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(_x171){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));}/**
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:(function(){var _backupExistsOnServer=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee74(asyncOpts_){var _this723=this;var __stack,_t74;return _regenerator().w(function(_context74){while(1)switch(_context74.p=_context74.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context74.p=1;_context74.n=2;return 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));case 2:return _context74.a(2,_context74.v);case 3:_context74.p=3;_t74=_context74.v;if(uniffiIsDebug&&_t74 instanceof Error){_t74.stack=__stack;}throw _t74;case 4:return _context74.a(2);}},_callee74,null,[[1,3]]);}));function backupExistsOnServer(_x173){return _backupExistsOnServer.apply(this,arguments);}return backupExistsOnServer;}())},{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));}/**
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:(function(){var _curve25519Key=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee75(asyncOpts_){var _this726=this;var __stack,_t75;return _regenerator().w(function(_context75){while(1)switch(_context75.p=_context75.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context75.p=1;_context75.n=2;return 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_);case 2:return _context75.a(2,_context75.v);case 3:_context75.p=3;_t75=_context75.v;if(uniffiIsDebug&&_t75 instanceof Error){_t75.stack=__stack;}throw _t75;case 4:return _context75.a(2);}},_callee75,null,[[1,3]]);}));function curve25519Key(_x174){return _curve25519Key.apply(this,arguments);}return curve25519Key;}())},{key:"disableRecovery",value:function(){var _disableRecovery=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee76(asyncOpts_){var _this727=this;var __stack,_t76;return _regenerator().w(function(_context76){while(1)switch(_context76.p=_context76.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context76.p=1;_context76.n=2;return 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));case 2:return _context76.a(2,_context76.v);case 3:_context76.p=3;_t76=_context76.v;if(uniffiIsDebug&&_t76 instanceof Error){_t76.stack=__stack;}throw _t76;case 4:return _context76.a(2);}},_callee76,null,[[1,3]]);}));function disableRecovery(_x175){return _disableRecovery.apply(this,arguments);}return disableRecovery;}()/**
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:(function(){var _ed25519Key=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee77(asyncOpts_){var _this728=this;var __stack,_t77;return _regenerator().w(function(_context77){while(1)switch(_context77.p=_context77.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context77.p=1;_context77.n=2;return 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_);case 2:return _context77.a(2,_context77.v);case 3:_context77.p=3;_t77=_context77.v;if(uniffiIsDebug&&_t77 instanceof Error){_t77.stack=__stack;}throw _t77;case 4:return _context77.a(2);}},_callee77,null,[[1,3]]);}));function ed25519Key(_x176){return _ed25519Key.apply(this,arguments);}return ed25519Key;}())},{key:"enableBackups",value:function(){var _enableBackups=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee78(asyncOpts_){var _this729=this;var __stack,_t78;return _regenerator().w(function(_context78){while(1)switch(_context78.p=_context78.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context78.p=1;_context78.n=2;return 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));case 2:return _context78.a(2,_context78.v);case 3:_context78.p=3;_t78=_context78.v;if(uniffiIsDebug&&_t78 instanceof Error){_t78.stack=__stack;}throw _t78;case 4:return _context78.a(2);}},_callee78,null,[[1,3]]);}));function enableBackups(_x177){return _enableBackups.apply(this,arguments);}return enableBackups;}()},{key:"enableRecovery",value:function(){var _enableRecovery=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee79(waitForBackupsToUpload,passphrase,progressListener,asyncOpts_){var _this730=this;var __stack,_t79;return _regenerator().w(function(_context79){while(1)switch(_context79.p=_context79.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context79.p=1;_context79.n=2;return 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));case 2:return _context79.a(2,_context79.v);case 3:_context79.p=3;_t79=_context79.v;if(uniffiIsDebug&&_t79 instanceof Error){_t79.stack=__stack;}throw _t79;case 4:return _context79.a(2);}},_callee79,null,[[1,3]]);}));function enableRecovery(_x178,_x179,_x180,_x181){return _enableRecovery.apply(this,arguments);}return enableRecovery;}()/**
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:(function(){var _hasDevicesToVerifyAgainst=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee80(asyncOpts_){var _this731=this;var __stack,_t80;return _regenerator().w(function(_context80){while(1)switch(_context80.p=_context80.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context80.p=1;_context80.n=2;return 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));case 2:return _context80.a(2,_context80.v);case 3:_context80.p=3;_t80=_context80.v;if(uniffiIsDebug&&_t80 instanceof Error){_t80.stack=__stack;}throw _t80;case 4:return _context80.a(2);}},_callee80,null,[[1,3]]);}));function hasDevicesToVerifyAgainst(_x182){return _hasDevicesToVerifyAgainst.apply(this,arguments);}return hasDevicesToVerifyAgainst;}())},{key:"isLastDevice",value:function(){var _isLastDevice=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee81(asyncOpts_){var _this732=this;var __stack,_t81;return _regenerator().w(function(_context81){while(1)switch(_context81.p=_context81.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context81.p=1;_context81.n=2;return 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));case 2:return _context81.a(2,_context81.v);case 3:_context81.p=3;_t81=_context81.v;if(uniffiIsDebug&&_t81 instanceof Error){_t81.stack=__stack;}throw _t81;case 4:return _context81.a(2);}},_callee81,null,[[1,3]]);}));function isLastDevice(_x183){return _isLastDevice.apply(this,arguments);}return isLastDevice;}()/**
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:(function(){var _recover=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee82(recoveryKey,asyncOpts_){var _this733=this;var __stack,_t82;return _regenerator().w(function(_context82){while(1)switch(_context82.p=_context82.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context82.p=1;_context82.n=2;return 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));case 2:return _context82.a(2,_context82.v);case 3:_context82.p=3;_t82=_context82.v;if(uniffiIsDebug&&_t82 instanceof Error){_t82.stack=__stack;}throw _t82;case 4:return _context82.a(2);}},_callee82,null,[[1,3]]);}));function recover(_x184,_x185){return _recover.apply(this,arguments);}return recover;}()/**
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
- */)},{key:"recoverAndFixBackup",value:(function(){var _recoverAndFixBackup=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee83(recoveryKey,asyncOpts_){var _this734=this;var __stack,_t83;return _regenerator().w(function(_context83){while(1)switch(_context83.p=_context83.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context83.p=1;_context83.n=2;return 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));case 2:return _context83.a(2,_context83.v);case 3:_context83.p=3;_t83=_context83.v;if(uniffiIsDebug&&_t83 instanceof Error){_t83.stack=__stack;}throw _t83;case 4:return _context83.a(2);}},_callee83,null,[[1,3]]);}));function recoverAndFixBackup(_x186,_x187){return _recoverAndFixBackup.apply(this,arguments);}return recoverAndFixBackup;}())},{key:"recoverAndReset",value:function(){var _recoverAndReset=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee84(oldRecoveryKey,asyncOpts_){var _this735=this;var __stack,_t84;return _regenerator().w(function(_context84){while(1)switch(_context84.p=_context84.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context84.p=1;_context84.n=2;return 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));case 2:return _context84.a(2,_context84.v);case 3:_context84.p=3;_t84=_context84.v;if(uniffiIsDebug&&_t84 instanceof Error){_t84.stack=__stack;}throw _t84;case 4:return _context84.a(2);}},_callee84,null,[[1,3]]);}));function recoverAndReset(_x188,_x189){return _recoverAndReset.apply(this,arguments);}return recoverAndReset;}()},{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));}/**
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:(function(){var _resetIdentity=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee85(asyncOpts_){var _this738=this;var __stack,_t85;return _regenerator().w(function(_context85){while(1)switch(_context85.p=_context85.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context85.p=1;_context85.n=2;return 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));case 2:return _context85.a(2,_context85.v);case 3:_context85.p=3;_t85=_context85.v;if(uniffiIsDebug&&_t85 instanceof Error){_t85.stack=__stack;}throw _t85;case 4:return _context85.a(2);}},_callee85,null,[[1,3]]);}));function resetIdentity(_x190){return _resetIdentity.apply(this,arguments);}return resetIdentity;}())},{key:"resetRecoveryKey",value:function(){var _resetRecoveryKey=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee86(asyncOpts_){var _this739=this;var __stack,_t86;return _regenerator().w(function(_context86){while(1)switch(_context86.p=_context86.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context86.p=1;_context86.n=2;return 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));case 2:return _context86.a(2,_context86.v);case 3:_context86.p=3;_t86=_context86.v;if(uniffiIsDebug&&_t86 instanceof Error){_t86.stack=__stack;}throw _t86;case 4:return _context86.a(2);}},_callee86,null,[[1,3]]);}));function resetRecoveryKey(_x191){return _resetRecoveryKey.apply(this,arguments);}return resetRecoveryKey;}()/**
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:(function(){var _userIdentity=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee87(userId,fallbackToServer,asyncOpts_){var _this740=this;var __stack,_t87;return _regenerator().w(function(_context87){while(1)switch(_context87.p=_context87.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context87.p=1;_context87.n=2;return 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));case 2:return _context87.a(2,_context87.v);case 3:_context87.p=3;_t87=_context87.v;if(uniffiIsDebug&&_t87 instanceof Error){_t87.stack=__stack;}throw _t87;case 4:return _context87.a(2);}},_callee87,null,[[1,3]]);}));function userIdentity(_x192,_x193,_x194){return _userIdentity.apply(this,arguments);}return userIdentity;}())},{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:function(){var _waitForBackupUploadSteadyState=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee88(progressListener,asyncOpts_){var _this743=this;var __stack,_t88;return _regenerator().w(function(_context88){while(1)switch(_context88.p=_context88.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context88.p=1;_context88.n=2;return 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));case 2:return _context88.a(2,_context88.v);case 3:_context88.p=3;_t88=_context88.v;if(uniffiIsDebug&&_t88 instanceof Error){_t88.stack=__stack;}throw _t88;case 4:return _context88.a(2);}},_callee88,null,[[1,3]]);}));function waitForBackupUploadSteadyState(_x195,_x196){return _waitForBackupUploadSteadyState.apply(this,arguments);}return waitForBackupUploadSteadyState;}()/**
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:(function(){var _waitForE2eeInitializationTasks=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee89(asyncOpts_){var _this744=this;var __stack,_t89;return _regenerator().w(function(_context89){while(1)switch(_context89.p=_context89.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context89.p=1;_context89.n=2;return 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_);case 2:return _context89.a(2,_context89.v);case 3:_context89.p=3;_t89=_context89.v;if(uniffiIsDebug&&_t89 instanceof Error){_t89.stack=__stack;}throw _t89;case 4:return _context89.a(2);}},_callee89,null,[[1,3]]);}));function waitForE2eeInitializationTasks(_x197){return _waitForE2eeInitializationTasks.apply(this,arguments);}return waitForE2eeInitializationTasks;}()/**
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
- */)},{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" />
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:(function(){var _generate=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee90(progressListener,asyncOpts_){var _this746=this;var __stack,_t90;return _regenerator().w(function(_context90){while(1)switch(_context90.p=_context90.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context90.p=1;_context90.n=2;return 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));case 2:return _context90.a(2,_context90.v);case 3:_context90.p=3;_t90=_context90.v;if(uniffiIsDebug&&_t90 instanceof Error){_t90.stack=__stack;}throw _t90;case 4:return _context90.a(2);}},_callee90,null,[[1,3]]);}));function generate(_x198,_x199){return _generate.apply(this,arguments);}return generate;}()/**
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
- */)},{key:"scan",value:(function(){var _scan=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee91(qrCodeData,progressListener,asyncOpts_){var _this747=this;var __stack,_t91;return _regenerator().w(function(_context91){while(1)switch(_context91.p=_context91.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context91.p=1;_context91.n=2;return 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));case 2:return _context91.a(2,_context91.v);case 3:_context91.p=3;_t91=_context91.v;if(uniffiIsDebug&&_t91 instanceof Error){_t91.stack=__stack;}throw _t91;case 4:return _context91.a(2);}},_callee91,null,[[1,3]]);}));function scan(_x200,_x201,_x202){return _scan.apply(this,arguments);}return scan;}()/**
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
- */)},{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" />
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:function(){var _cancel=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee100(asyncOpts_){var _this766=this;var __stack,_t100;return _regenerator().w(function(_context100){while(1)switch(_context100.p=_context100.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context100.p=1;_context100.n=2;return 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_);case 2:return _context100.a(2,_context100.v);case 3:_context100.p=3;_t100=_context100.v;if(uniffiIsDebug&&_t100 instanceof Error){_t100.stack=__stack;}throw _t100;case 4:return _context100.a(2);}},_callee100,null,[[1,3]]);}));function cancel(_x211){return _cancel.apply(this,arguments);}return cancel;}()/**
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:(function(){var _reset=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee101(auth,asyncOpts_){var _this767=this;var __stack,_t101;return _regenerator().w(function(_context101){while(1)switch(_context101.p=_context101.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context101.p=1;_context101.n=2;return 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));case 2:return _context101.a(2,_context101.v);case 3:_context101.p=3;_t101=_context101.v;if(uniffiIsDebug&&_t101 instanceof Error){_t101.stack=__stack;}throw _t101;case 4:return _context101.a(2);}},_callee101,null,[[1,3]]);}));function reset(_x212,_x213){return _reset.apply(this,arguments);}return reset;}()/**
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
- */)},{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" />
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(_x214){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));}/**
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:(function(){var _accept=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee102(asyncOpts_){var _this774=this;var __stack,_t102;return _regenerator().w(function(_context102){while(1)switch(_context102.p=_context102.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context102.p=1;_context102.n=2;return 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));case 2:return _context102.a(2,_context102.v);case 3:_context102.p=3;_t102=_context102.v;if(uniffiIsDebug&&_t102 instanceof Error){_t102.stack=__stack;}throw _t102;case 4:return _context102.a(2);}},_callee102,null,[[1,3]]);}));function accept(_x215){return _accept.apply(this,arguments);}return accept;}()/**
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
- */)},{key:"decline",value:(function(){var _decline=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee103(reason,asyncOpts_){var _this775=this;var __stack,_t103;return _regenerator().w(function(_context103){while(1)switch(_context103.p=_context103.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context103.p=1;_context103.n=2;return 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));case 2:return _context103.a(2,_context103.v);case 3:_context103.p=3;_t103=_context103.v;if(uniffiIsDebug&&_t103 instanceof Error){_t103.stack=__stack;}throw _t103;case 4:return _context103.a(2);}},_callee103,null,[[1,3]]);}));function decline(_x216,_x217){return _decline.apply(this,arguments);}return decline;}()/**
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
- */)},{key:"declineAndBan",value:(function(){var _declineAndBan=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee104(reason,asyncOpts_){var _this776=this;var __stack,_t104;return _regenerator().w(function(_context104){while(1)switch(_context104.p=_context104.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context104.p=1;_context104.n=2;return 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));case 2:return _context104.a(2,_context104.v);case 3:_context104.p=3;_t104=_context104.v;if(uniffiIsDebug&&_t104 instanceof Error){_t104.stack=__stack;}throw _t104;case 4:return _context104.a(2);}},_callee104,null,[[1,3]]);}));function declineAndBan(_x218,_x219){return _declineAndBan.apply(this,arguments);}return declineAndBan;}()/**
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
- */)},{key:"markAsSeen",value:(function(){var _markAsSeen=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee105(asyncOpts_){var _this777=this;var __stack,_t105;return _regenerator().w(function(_context105){while(1)switch(_context105.p=_context105.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context105.p=1;_context105.n=2;return 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));case 2:return _context105.a(2,_context105.v);case 3:_context105.p=3;_t105=_context105.v;if(uniffiIsDebug&&_t105 instanceof Error){_t105.stack=__stack;}throw _t105;case 4:return _context105.a(2);}},_callee105,null,[[1,3]]);}));function markAsSeen(_x220){return _markAsSeen.apply(this,arguments);}return markAsSeen;}()/**
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
- */)},{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" />
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:(function(){var _leave=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee106(roomIds,asyncOpts_){var _this785=this;var __stack,_t106;return _regenerator().w(function(_context106){while(1)switch(_context106.p=_context106.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context106.p=1;_context106.n=2;return 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));case 2:return _context106.a(2,_context106.v);case 3:_context106.p=3;_t106=_context106.v;if(uniffiIsDebug&&_t106 instanceof Error){_t106.stack=__stack;}throw _t106;case 4:return _context106.a(2);}},_callee106,null,[[1,3]]);}));function leave(_x221,_x222){return _leave.apply(this,arguments);}return leave;}()/**
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
- */)},{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));}/**
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:(function(){var _generate2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee107(progressListener,asyncOpts_){var _this788=this;var __stack,_t107;return _regenerator().w(function(_context107){while(1)switch(_context107.p=_context107.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context107.p=1;_context107.n=2;return 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));case 2:return _context107.a(2,_context107.v);case 3:_context107.p=3;_t107=_context107.v;if(uniffiIsDebug&&_t107 instanceof Error){_t107.stack=__stack;}throw _t107;case 4:return _context107.a(2);}},_callee107,null,[[1,3]]);}));function generate(_x223,_x224){return _generate2.apply(this,arguments);}return generate;}()/**
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
- */)},{key:"scan",value:(function(){var _scan2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee108(qrCodeData,progressListener,asyncOpts_){var _this789=this;var __stack,_t108;return _regenerator().w(function(_context108){while(1)switch(_context108.p=_context108.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context108.p=1;_context108.n=2;return 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));case 2:return _context108.a(2,_context108.v);case 3:_context108.p=3;_t108=_context108.v;if(uniffiIsDebug&&_t108 instanceof Error){_t108.stack=__stack;}throw _t108;case 4:return _context108.a(2);}},_callee108,null,[[1,3]]);}));function scan(_x225,_x226,_x227){return _scan2.apply(this,arguments);}return scan;}()/**
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
- */)},{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" />
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:(function(){var _getNotification=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee109(roomId,eventId,asyncOpts_){var _this797=this;var __stack,_t109;return _regenerator().w(function(_context109){while(1)switch(_context109.p=_context109.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context109.p=1;_context109.n=2;return 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));case 2:return _context109.a(2,_context109.v);case 3:_context109.p=3;_t109=_context109.v;if(uniffiIsDebug&&_t109 instanceof Error){_t109.stack=__stack;}throw _t109;case 4:return _context109.a(2);}},_callee109,null,[[1,3]]);}));function getNotification(_x228,_x229,_x230){return _getNotification.apply(this,arguments);}return getNotification;}()/**
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
- */)},{key:"getNotifications",value:(function(){var _getNotifications=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee110(requests,asyncOpts_){var _this798=this;var __stack,_t110;return _regenerator().w(function(_context110){while(1)switch(_context110.p=_context110.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context110.p=1;_context110.n=2;return 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));case 2:return _context110.a(2,_context110.v);case 3:_context110.p=3;_t110=_context110.v;if(uniffiIsDebug&&_t110 instanceof Error){_t110.stack=__stack;}throw _t110;case 4:return _context110.a(2);}},_callee110,null,[[1,3]]);}));function getNotifications(_x231,_x232){return _getNotifications.apply(this,arguments);}return getNotifications;}()/**
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
- */)},{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));}/**
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:(function(){var _canHomeserverPushEncryptedEventToDevice=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee111(asyncOpts_){var _this801=this;var __stack,_t111;return _regenerator().w(function(_context111){while(1)switch(_context111.p=_context111.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context111.p=1;_context111.n=2;return 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_);case 2:return _context111.a(2,_context111.v);case 3:_context111.p=3;_t111=_context111.v;if(uniffiIsDebug&&_t111 instanceof Error){_t111.stack=__stack;}throw _t111;case 4:return _context111.a(2);}},_callee111,null,[[1,3]]);}));function canHomeserverPushEncryptedEventToDevice(_x233){return _canHomeserverPushEncryptedEventToDevice.apply(this,arguments);}return canHomeserverPushEncryptedEventToDevice;}()/**
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
- */)},{key:"canPushEncryptedEventToDevice",value:(function(){var _canPushEncryptedEventToDevice=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee112(asyncOpts_){var _this802=this;var __stack,_t112;return _regenerator().w(function(_context112){while(1)switch(_context112.p=_context112.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context112.p=1;_context112.n=2;return 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_);case 2:return _context112.a(2,_context112.v);case 3:_context112.p=3;_t112=_context112.v;if(uniffiIsDebug&&_t112 instanceof Error){_t112.stack=__stack;}throw _t112;case 4:return _context112.a(2);}},_callee112,null,[[1,3]]);}));function canPushEncryptedEventToDevice(_x234){return _canPushEncryptedEventToDevice.apply(this,arguments);}return canPushEncryptedEventToDevice;}()/**
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
- */)},{key:"containsKeywordsRules",value:(function(){var _containsKeywordsRules=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee113(asyncOpts_){var _this803=this;var __stack,_t113;return _regenerator().w(function(_context113){while(1)switch(_context113.p=_context113.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context113.p=1;_context113.n=2;return 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_);case 2:return _context113.a(2,_context113.v);case 3:_context113.p=3;_t113=_context113.v;if(uniffiIsDebug&&_t113 instanceof Error){_t113.stack=__stack;}throw _t113;case 4:return _context113.a(2);}},_callee113,null,[[1,3]]);}));function containsKeywordsRules(_x235){return _containsKeywordsRules.apply(this,arguments);}return containsKeywordsRules;}()/**
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
- */)},{key:"getDefaultRoomNotificationMode",value:(function(){var _getDefaultRoomNotificationMode=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee114(isEncrypted,isOneToOne,asyncOpts_){var _this804=this;var __stack,_t114;return _regenerator().w(function(_context114){while(1)switch(_context114.p=_context114.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context114.p=1;_context114.n=2;return 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_);case 2:return _context114.a(2,_context114.v);case 3:_context114.p=3;_t114=_context114.v;if(uniffiIsDebug&&_t114 instanceof Error){_t114.stack=__stack;}throw _t114;case 4:return _context114.a(2);}},_callee114,null,[[1,3]]);}));function getDefaultRoomNotificationMode(_x236,_x237,_x238){return _getDefaultRoomNotificationMode.apply(this,arguments);}return getDefaultRoomNotificationMode;}()/**
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
- */)},{key:"getRawPushRules",value:(function(){var _getRawPushRules=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee115(asyncOpts_){var _this805=this;var __stack,_t115;return _regenerator().w(function(_context115){while(1)switch(_context115.p=_context115.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context115.p=1;_context115.n=2;return 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));case 2:return _context115.a(2,_context115.v);case 3:_context115.p=3;_t115=_context115.v;if(uniffiIsDebug&&_t115 instanceof Error){_t115.stack=__stack;}throw _t115;case 4:return _context115.a(2);}},_callee115,null,[[1,3]]);}));function getRawPushRules(_x239){return _getRawPushRules.apply(this,arguments);}return getRawPushRules;}()/**
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
- */)},{key:"getRoomNotificationSettings",value:(function(){var _getRoomNotificationSettings=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee116(roomId,isEncrypted,isOneToOne,asyncOpts_){var _this806=this;var __stack,_t116;return _regenerator().w(function(_context116){while(1)switch(_context116.p=_context116.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context116.p=1;_context116.n=2;return 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));case 2:return _context116.a(2,_context116.v);case 3:_context116.p=3;_t116=_context116.v;if(uniffiIsDebug&&_t116 instanceof Error){_t116.stack=__stack;}throw _t116;case 4:return _context116.a(2);}},_callee116,null,[[1,3]]);}));function getRoomNotificationSettings(_x240,_x241,_x242,_x243){return _getRoomNotificationSettings.apply(this,arguments);}return getRoomNotificationSettings;}()/**
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
- */)},{key:"getRoomsWithUserDefinedRules",value:(function(){var _getRoomsWithUserDefinedRules=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee117(enabled,asyncOpts_){var _this807=this;var __stack,_t117;return _regenerator().w(function(_context117){while(1)switch(_context117.p=_context117.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context117.p=1;_context117.n=2;return 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_);case 2:return _context117.a(2,_context117.v);case 3:_context117.p=3;_t117=_context117.v;if(uniffiIsDebug&&_t117 instanceof Error){_t117.stack=__stack;}throw _t117;case 4:return _context117.a(2);}},_callee117,null,[[1,3]]);}));function getRoomsWithUserDefinedRules(_x244,_x245){return _getRoomsWithUserDefinedRules.apply(this,arguments);}return getRoomsWithUserDefinedRules;}()/**
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
- */)},{key:"getUserDefinedRoomNotificationMode",value:(function(){var _getUserDefinedRoomNotificationMode=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee118(roomId,asyncOpts_){var _this808=this;var __stack,_t118;return _regenerator().w(function(_context118){while(1)switch(_context118.p=_context118.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context118.p=1;_context118.n=2;return 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));case 2:return _context118.a(2,_context118.v);case 3:_context118.p=3;_t118=_context118.v;if(uniffiIsDebug&&_t118 instanceof Error){_t118.stack=__stack;}throw _t118;case 4:return _context118.a(2);}},_callee118,null,[[1,3]]);}));function getUserDefinedRoomNotificationMode(_x246,_x247){return _getUserDefinedRoomNotificationMode.apply(this,arguments);}return getUserDefinedRoomNotificationMode;}()/**
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
- */)},{key:"isCallEnabled",value:(function(){var _isCallEnabled=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee119(asyncOpts_){var _this809=this;var __stack,_t119;return _regenerator().w(function(_context119){while(1)switch(_context119.p=_context119.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context119.p=1;_context119.n=2;return 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));case 2:return _context119.a(2,_context119.v);case 3:_context119.p=3;_t119=_context119.v;if(uniffiIsDebug&&_t119 instanceof Error){_t119.stack=__stack;}throw _t119;case 4:return _context119.a(2);}},_callee119,null,[[1,3]]);}));function isCallEnabled(_x248){return _isCallEnabled.apply(this,arguments);}return isCallEnabled;}()/**
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
- */)},{key:"isInviteForMeEnabled",value:(function(){var _isInviteForMeEnabled=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee120(asyncOpts_){var _this810=this;var __stack,_t120;return _regenerator().w(function(_context120){while(1)switch(_context120.p=_context120.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context120.p=1;_context120.n=2;return 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));case 2:return _context120.a(2,_context120.v);case 3:_context120.p=3;_t120=_context120.v;if(uniffiIsDebug&&_t120 instanceof Error){_t120.stack=__stack;}throw _t120;case 4:return _context120.a(2);}},_callee120,null,[[1,3]]);}));function isInviteForMeEnabled(_x249){return _isInviteForMeEnabled.apply(this,arguments);}return isInviteForMeEnabled;}()/**
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
- */)},{key:"isRoomMentionEnabled",value:(function(){var _isRoomMentionEnabled=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee121(asyncOpts_){var _this811=this;var __stack,_t121;return _regenerator().w(function(_context121){while(1)switch(_context121.p=_context121.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context121.p=1;_context121.n=2;return 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));case 2:return _context121.a(2,_context121.v);case 3:_context121.p=3;_t121=_context121.v;if(uniffiIsDebug&&_t121 instanceof Error){_t121.stack=__stack;}throw _t121;case 4:return _context121.a(2);}},_callee121,null,[[1,3]]);}));function isRoomMentionEnabled(_x250){return _isRoomMentionEnabled.apply(this,arguments);}return isRoomMentionEnabled;}()/**
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
- */)},{key:"isUserMentionEnabled",value:(function(){var _isUserMentionEnabled=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee122(asyncOpts_){var _this812=this;var __stack,_t122;return _regenerator().w(function(_context122){while(1)switch(_context122.p=_context122.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context122.p=1;_context122.n=2;return 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));case 2:return _context122.a(2,_context122.v);case 3:_context122.p=3;_t122=_context122.v;if(uniffiIsDebug&&_t122 instanceof Error){_t122.stack=__stack;}throw _t122;case 4:return _context122.a(2);}},_callee122,null,[[1,3]]);}));function isUserMentionEnabled(_x251){return _isUserMentionEnabled.apply(this,arguments);}return isUserMentionEnabled;}()/**
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
- */)},{key:"restoreDefaultRoomNotificationMode",value:(function(){var _restoreDefaultRoomNotificationMode=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee123(roomId,asyncOpts_){var _this813=this;var __stack,_t123;return _regenerator().w(function(_context123){while(1)switch(_context123.p=_context123.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context123.p=1;_context123.n=2;return 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));case 2:return _context123.a(2,_context123.v);case 3:_context123.p=3;_t123=_context123.v;if(uniffiIsDebug&&_t123 instanceof Error){_t123.stack=__stack;}throw _t123;case 4:return _context123.a(2);}},_callee123,null,[[1,3]]);}));function restoreDefaultRoomNotificationMode(_x252,_x253){return _restoreDefaultRoomNotificationMode.apply(this,arguments);}return restoreDefaultRoomNotificationMode;}()/**
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
- */)},{key:"setCallEnabled",value:(function(){var _setCallEnabled=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee124(enabled,asyncOpts_){var _this814=this;var __stack,_t124;return _regenerator().w(function(_context124){while(1)switch(_context124.p=_context124.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context124.p=1;_context124.n=2;return 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));case 2:return _context124.a(2,_context124.v);case 3:_context124.p=3;_t124=_context124.v;if(uniffiIsDebug&&_t124 instanceof Error){_t124.stack=__stack;}throw _t124;case 4:return _context124.a(2);}},_callee124,null,[[1,3]]);}));function setCallEnabled(_x254,_x255){return _setCallEnabled.apply(this,arguments);}return setCallEnabled;}()/**
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
- */)},{key:"setCustomPushRule",value:(function(){var _setCustomPushRule=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee125(ruleId,ruleKind,actions,conditions,asyncOpts_){var _this815=this;var __stack,_t125;return _regenerator().w(function(_context125){while(1)switch(_context125.p=_context125.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context125.p=1;_context125.n=2;return 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));case 2:return _context125.a(2,_context125.v);case 3:_context125.p=3;_t125=_context125.v;if(uniffiIsDebug&&_t125 instanceof Error){_t125.stack=__stack;}throw _t125;case 4:return _context125.a(2);}},_callee125,null,[[1,3]]);}));function setCustomPushRule(_x256,_x257,_x258,_x259,_x260){return _setCustomPushRule.apply(this,arguments);}return setCustomPushRule;}()/**
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
- */)},{key:"setDefaultRoomNotificationMode",value:(function(){var _setDefaultRoomNotificationMode=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee126(isEncrypted,isOneToOne,mode,asyncOpts_){var _this816=this;var __stack,_t126;return _regenerator().w(function(_context126){while(1)switch(_context126.p=_context126.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context126.p=1;_context126.n=2;return 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));case 2:return _context126.a(2,_context126.v);case 3:_context126.p=3;_t126=_context126.v;if(uniffiIsDebug&&_t126 instanceof Error){_t126.stack=__stack;}throw _t126;case 4:return _context126.a(2);}},_callee126,null,[[1,3]]);}));function setDefaultRoomNotificationMode(_x261,_x262,_x263,_x264){return _setDefaultRoomNotificationMode.apply(this,arguments);}return setDefaultRoomNotificationMode;}())},{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);}/**
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:(function(){var _setInviteForMeEnabled=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee127(enabled,asyncOpts_){var _this818=this;var __stack,_t127;return _regenerator().w(function(_context127){while(1)switch(_context127.p=_context127.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context127.p=1;_context127.n=2;return 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));case 2:return _context127.a(2,_context127.v);case 3:_context127.p=3;_t127=_context127.v;if(uniffiIsDebug&&_t127 instanceof Error){_t127.stack=__stack;}throw _t127;case 4:return _context127.a(2);}},_callee127,null,[[1,3]]);}));function setInviteForMeEnabled(_x265,_x266){return _setInviteForMeEnabled.apply(this,arguments);}return setInviteForMeEnabled;}()/**
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
- */)},{key:"setRoomMentionEnabled",value:(function(){var _setRoomMentionEnabled=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee128(enabled,asyncOpts_){var _this819=this;var __stack,_t128;return _regenerator().w(function(_context128){while(1)switch(_context128.p=_context128.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context128.p=1;_context128.n=2;return 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));case 2:return _context128.a(2,_context128.v);case 3:_context128.p=3;_t128=_context128.v;if(uniffiIsDebug&&_t128 instanceof Error){_t128.stack=__stack;}throw _t128;case 4:return _context128.a(2);}},_callee128,null,[[1,3]]);}));function setRoomMentionEnabled(_x267,_x268){return _setRoomMentionEnabled.apply(this,arguments);}return setRoomMentionEnabled;}()/**
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
- */)},{key:"setRoomNotificationMode",value:(function(){var _setRoomNotificationMode=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee129(roomId,mode,asyncOpts_){var _this820=this;var __stack,_t129;return _regenerator().w(function(_context129){while(1)switch(_context129.p=_context129.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context129.p=1;_context129.n=2;return 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));case 2:return _context129.a(2,_context129.v);case 3:_context129.p=3;_t129=_context129.v;if(uniffiIsDebug&&_t129 instanceof Error){_t129.stack=__stack;}throw _t129;case 4:return _context129.a(2);}},_callee129,null,[[1,3]]);}));function setRoomNotificationMode(_x269,_x270,_x271){return _setRoomNotificationMode.apply(this,arguments);}return setRoomNotificationMode;}()/**
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
- */)},{key:"setUserMentionEnabled",value:(function(){var _setUserMentionEnabled=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee130(enabled,asyncOpts_){var _this821=this;var __stack,_t130;return _regenerator().w(function(_context130){while(1)switch(_context130.p=_context130.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context130.p=1;_context130.n=2;return 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));case 2:return _context130.a(2,_context130.v);case 3:_context130.p=3;_t130=_context130.v;if(uniffiIsDebug&&_t130 instanceof Error){_t130.stack=__stack;}throw _t130;case 4:return _context130.a(2);}},_callee130,null,[[1,3]]);}));function setUserMentionEnabled(_x272,_x273){return _setUserMentionEnabled.apply(this,arguments);}return setUserMentionEnabled;}()/**
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
- */)},{key:"unmuteRoom",value:(function(){var _unmuteRoom=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee131(roomId,isEncrypted,isOneToOne,asyncOpts_){var _this822=this;var __stack,_t131;return _regenerator().w(function(_context131){while(1)switch(_context131.p=_context131.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context131.p=1;_context131.n=2;return 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));case 2:return _context131.a(2,_context131.v);case 3:_context131.p=3;_t131=_context131.v;if(uniffiIsDebug&&_t131 instanceof Error){_t131.stack=__stack;}throw _t131;case 4:return _context131.a(2);}},_callee131,null,[[1,3]]);}));function unmuteRoom(_x274,_x275,_x276,_x277){return _unmuteRoom.apply(this,arguments);}return unmuteRoom;}()/**
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
- */)},{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" />
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:function(){var _applyPowerLevelChanges=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee132(changes,asyncOpts_){var _this832=this;var __stack,_t132;return _regenerator().w(function(_context132){while(1)switch(_context132.p=_context132.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context132.p=1;_context132.n=2;return 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));case 2:return _context132.a(2,_context132.v);case 3:_context132.p=3;_t132=_context132.v;if(uniffiIsDebug&&_t132 instanceof Error){_t132.stack=__stack;}throw _t132;case 4:return _context132.a(2);}},_callee132,null,[[1,3]]);}));function applyPowerLevelChanges(_x278,_x279){return _applyPowerLevelChanges.apply(this,arguments);}return applyPowerLevelChanges;}()},{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:function(){var _banUser=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee133(userId,reason,asyncOpts_){var _this834=this;var __stack,_t133;return _regenerator().w(function(_context133){while(1)switch(_context133.p=_context133.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context133.p=1;_context133.n=2;return 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));case 2:return _context133.a(2,_context133.v);case 3:_context133.p=3;_t133=_context133.v;if(uniffiIsDebug&&_t133 instanceof Error){_t133.stack=__stack;}throw _t133;case 4:return _context133.a(2);}},_callee133,null,[[1,3]]);}));function banUser(_x280,_x281,_x282){return _banUser.apply(this,arguments);}return banUser;}()},{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));}/**
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:(function(){var _clearComposerDraft=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee134(threadRoot,asyncOpts_){var _this836=this;var __stack,_t134;return _regenerator().w(function(_context134){while(1)switch(_context134.p=_context134.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context134.p=1;_context134.n=2;return 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));case 2:return _context134.a(2,_context134.v);case 3:_context134.p=3;_t134=_context134.v;if(uniffiIsDebug&&_t134 instanceof Error){_t134.stack=__stack;}throw _t134;case 4:return _context134.a(2);}},_callee134,null,[[1,3]]);}));function clearComposerDraft(_x283,_x284){return _clearComposerDraft.apply(this,arguments);}return clearComposerDraft;}()/**
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
- */)},{key:"clearEventCacheStorage",value:(function(){var _clearEventCacheStorage=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee135(asyncOpts_){var _this837=this;var __stack,_t135;return _regenerator().w(function(_context135){while(1)switch(_context135.p=_context135.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context135.p=1;_context135.n=2;return 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));case 2:return _context135.a(2,_context135.v);case 3:_context135.p=3;_t135=_context135.v;if(uniffiIsDebug&&_t135 instanceof Error){_t135.stack=__stack;}throw _t135;case 4:return _context135.a(2);}},_callee135,null,[[1,3]]);}));function clearEventCacheStorage(_x285){return _clearEventCacheStorage.apply(this,arguments);}return clearEventCacheStorage;}()/**
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
- */)},{key:"declineCall",value:(function(){var _declineCall=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee136(rtcNotificationEventId,asyncOpts_){var _this838=this;var __stack,_t136;return _regenerator().w(function(_context136){while(1)switch(_context136.p=_context136.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context136.p=1;_context136.n=2;return 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));case 2:return _context136.a(2,_context136.v);case 3:_context136.p=3;_t136=_context136.v;if(uniffiIsDebug&&_t136 instanceof Error){_t136.stack=__stack;}throw _t136;case 4:return _context136.a(2);}},_callee136,null,[[1,3]]);}));function declineCall(_x286,_x287){return _declineCall.apply(this,arguments);}return declineCall;}()/**
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
- */)},{key:"discardRoomKey",value:(function(){var _discardRoomKey=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee137(asyncOpts_){var _this839=this;var __stack,_t137;return _regenerator().w(function(_context137){while(1)switch(_context137.p=_context137.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context137.p=1;_context137.n=2;return 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));case 2:return _context137.a(2,_context137.v);case 3:_context137.p=3;_t137=_context137.v;if(uniffiIsDebug&&_t137 instanceof Error){_t137.stack=__stack;}throw _t137;case 4:return _context137.a(2);}},_callee137,null,[[1,3]]);}));function discardRoomKey(_x288){return _discardRoomKey.apply(this,arguments);}return discardRoomKey;}()/**
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
- */)},{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));}/**
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:(function(){var _edit=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee138(eventId,newContent,asyncOpts_){var _this841=this;var __stack,_t138;return _regenerator().w(function(_context138){while(1)switch(_context138.p=_context138.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context138.p=1;_context138.n=2;return 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));case 2:return _context138.a(2,_context138.v);case 3:_context138.p=3;_t138=_context138.v;if(uniffiIsDebug&&_t138 instanceof Error){_t138.stack=__stack;}throw _t138;case 4:return _context138.a(2);}},_callee138,null,[[1,3]]);}));function edit(_x289,_x290,_x291){return _edit.apply(this,arguments);}return edit;}()/**
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
- */)},{key:"enableEncryption",value:(function(){var _enableEncryption=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee139(asyncOpts_){var _this842=this;var __stack,_t139;return _regenerator().w(function(_context139){while(1)switch(_context139.p=_context139.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context139.p=1;_context139.n=2;return 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));case 2:return _context139.a(2,_context139.v);case 3:_context139.p=3;_t139=_context139.v;if(uniffiIsDebug&&_t139 instanceof Error){_t139.stack=__stack;}throw _t139;case 4:return _context139.a(2);}},_callee139,null,[[1,3]]);}));function enableEncryption(_x292){return _enableEncryption.apply(this,arguments);}return enableEncryption;}()/**
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
- */)},{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));}/**
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:(function(){var _fetchThreadSubscription=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee140(threadRootEventId,asyncOpts_){var _this845=this;var __stack,_t140;return _regenerator().w(function(_context140){while(1)switch(_context140.p=_context140.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context140.p=1;_context140.n=2;return 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));case 2:return _context140.a(2,_context140.v);case 3:_context140.p=3;_t140=_context140.v;if(uniffiIsDebug&&_t140 instanceof Error){_t140.stack=__stack;}throw _t140;case 4:return _context140.a(2);}},_callee140,null,[[1,3]]);}));function fetchThreadSubscription(_x293,_x294){return _fetchThreadSubscription.apply(this,arguments);}return fetchThreadSubscription;}()/**
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
- */)},{key:"forget",value:(function(){var _forget=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee141(asyncOpts_){var _this846=this;var __stack,_t141;return _regenerator().w(function(_context141){while(1)switch(_context141.p=_context141.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context141.p=1;_context141.n=2;return 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));case 2:return _context141.a(2,_context141.v);case 3:_context141.p=3;_t141=_context141.v;if(uniffiIsDebug&&_t141 instanceof Error){_t141.stack=__stack;}throw _t141;case 4:return _context141.a(2);}},_callee141,null,[[1,3]]);}));function forget(_x295){return _forget.apply(this,arguments);}return forget;}())},{key:"getPowerLevels",value:function(){var _getPowerLevels=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee142(asyncOpts_){var _this847=this;var __stack,_t142;return _regenerator().w(function(_context142){while(1)switch(_context142.p=_context142.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context142.p=1;_context142.n=2;return 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));case 2:return _context142.a(2,_context142.v);case 3:_context142.p=3;_t142=_context142.v;if(uniffiIsDebug&&_t142 instanceof Error){_t142.stack=__stack;}throw _t142;case 4:return _context142.a(2);}},_callee142,null,[[1,3]]);}));function getPowerLevels(_x296){return _getPowerLevels.apply(this,arguments);}return getPowerLevels;}()/**
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:(function(){var _getRoomVisibility=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee143(asyncOpts_){var _this848=this;var __stack,_t143;return _regenerator().w(function(_context143){while(1)switch(_context143.p=_context143.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context143.p=1;_context143.n=2;return 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));case 2:return _context143.a(2,_context143.v);case 3:_context143.p=3;_t143=_context143.v;if(uniffiIsDebug&&_t143 instanceof Error){_t143.stack=__stack;}throw _t143;case 4:return _context143.a(2);}},_callee143,null,[[1,3]]);}));function getRoomVisibility(_x297){return _getRoomVisibility.apply(this,arguments);}return getRoomVisibility;}()/**
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
- */)},{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));}/**
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:(function(){var _ignoreDeviceTrustAndResend=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee144(devices,sendHandle,asyncOpts_){var _this852=this;var __stack,_t144;return _regenerator().w(function(_context144){while(1)switch(_context144.p=_context144.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context144.p=1;_context144.n=2;return 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));case 2:return _context144.a(2,_context144.v);case 3:_context144.p=3;_t144=_context144.v;if(uniffiIsDebug&&_t144 instanceof Error){_t144.stack=__stack;}throw _t144;case 4:return _context144.a(2);}},_callee144,null,[[1,3]]);}));function ignoreDeviceTrustAndResend(_x298,_x299,_x300){return _ignoreDeviceTrustAndResend.apply(this,arguments);}return ignoreDeviceTrustAndResend;}()/**
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
- */)},{key:"ignoreUser",value:(function(){var _ignoreUser2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee145(userId,asyncOpts_){var _this853=this;var __stack,_t145;return _regenerator().w(function(_context145){while(1)switch(_context145.p=_context145.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context145.p=1;_context145.n=2;return 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));case 2:return _context145.a(2,_context145.v);case 3:_context145.p=3;_t145=_context145.v;if(uniffiIsDebug&&_t145 instanceof Error){_t145.stack=__stack;}throw _t145;case 4:return _context145.a(2);}},_callee145,null,[[1,3]]);}));function ignoreUser(_x301,_x302){return _ignoreUser2.apply(this,arguments);}return ignoreUser;}())},{key:"inviteUserById",value:function(){var _inviteUserById=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee146(userId,asyncOpts_){var _this854=this;var __stack,_t146;return _regenerator().w(function(_context146){while(1)switch(_context146.p=_context146.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context146.p=1;_context146.n=2;return 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));case 2:return _context146.a(2,_context146.v);case 3:_context146.p=3;_t146=_context146.v;if(uniffiIsDebug&&_t146 instanceof Error){_t146.stack=__stack;}throw _t146;case 4:return _context146.a(2);}},_callee146,null,[[1,3]]);}));function inviteUserById(_x303,_x304){return _inviteUserById.apply(this,arguments);}return inviteUserById;}()},{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));}/**
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:(function(){var _inviter=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee147(asyncOpts_){var _this856=this;var __stack,_t147;return _regenerator().w(function(_context147){while(1)switch(_context147.p=_context147.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context147.p=1;_context147.n=2;return 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));case 2:return _context147.a(2,_context147.v);case 3:_context147.p=3;_t147=_context147.v;if(uniffiIsDebug&&_t147 instanceof Error){_t147.stack=__stack;}throw _t147;case 4:return _context147.a(2);}},_callee147,null,[[1,3]]);}));function inviter(_x305){return _inviter.apply(this,arguments);}return inviter;}())},{key:"isDirect",value:function(){var _isDirect=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee148(asyncOpts_){var _this857=this;var __stack,_t148;return _regenerator().w(function(_context148){while(1)switch(_context148.p=_context148.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context148.p=1;_context148.n=2;return 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_);case 2:return _context148.a(2,_context148.v);case 3:_context148.p=3;_t148=_context148.v;if(uniffiIsDebug&&_t148 instanceof Error){_t148.stack=__stack;}throw _t148;case 4:return _context148.a(2);}},_callee148,null,[[1,3]]);}));function isDirect(_x306){return _isDirect.apply(this,arguments);}return isDirect;}()/**
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:(function(){var _isEncrypted=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee149(asyncOpts_){var _this858=this;var __stack,_t149;return _regenerator().w(function(_context149){while(1)switch(_context149.p=_context149.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context149.p=1;_context149.n=2;return 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_);case 2:return _context149.a(2,_context149.v);case 3:_context149.p=3;_t149=_context149.v;if(uniffiIsDebug&&_t149 instanceof Error){_t149.stack=__stack;}throw _t149;case 4:return _context149.a(2);}},_callee149,null,[[1,3]]);}));function isEncrypted(_x307){return _isEncrypted.apply(this,arguments);}return isEncrypted;}()/**
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
- */)},{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));}/**
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:(function(){var _join=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee150(asyncOpts_){var _this862=this;var __stack,_t150;return _regenerator().w(function(_context150){while(1)switch(_context150.p=_context150.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context150.p=1;_context150.n=2;return 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));case 2:return _context150.a(2,_context150.v);case 3:_context150.p=3;_t150=_context150.v;if(uniffiIsDebug&&_t150 instanceof Error){_t150.stack=__stack;}throw _t150;case 4:return _context150.a(2);}},_callee150,null,[[1,3]]);}));function join(_x308){return _join.apply(this,arguments);}return join;}())},{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:function(){var _kickUser=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee151(userId,reason,asyncOpts_){var _this864=this;var __stack,_t151;return _regenerator().w(function(_context151){while(1)switch(_context151.p=_context151.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context151.p=1;_context151.n=2;return 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));case 2:return _context151.a(2,_context151.v);case 3:_context151.p=3;_t151=_context151.v;if(uniffiIsDebug&&_t151 instanceof Error){_t151.stack=__stack;}throw _t151;case 4:return _context151.a(2);}},_callee151,null,[[1,3]]);}));function kickUser(_x309,_x310,_x311){return _kickUser.apply(this,arguments);}return kickUser;}()},{key:"latestEncryptionState",value:function(){var _latestEncryptionState=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee152(asyncOpts_){var _this865=this;var __stack,_t152;return _regenerator().w(function(_context152){while(1)switch(_context152.p=_context152.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context152.p=1;_context152.n=2;return 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));case 2:return _context152.a(2,_context152.v);case 3:_context152.p=3;_t152=_context152.v;if(uniffiIsDebug&&_t152 instanceof Error){_t152.stack=__stack;}throw _t152;case 4:return _context152.a(2);}},_callee152,null,[[1,3]]);}));function latestEncryptionState(_x312){return _latestEncryptionState.apply(this,arguments);}return latestEncryptionState;}()},{key:"latestEvent",value:function(){var _latestEvent=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee153(asyncOpts_){var _this866=this;var __stack,_t153;return _regenerator().w(function(_context153){while(1)switch(_context153.p=_context153.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context153.p=1;_context153.n=2;return 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_);case 2:return _context153.a(2,_context153.v);case 3:_context153.p=3;_t153=_context153.v;if(uniffiIsDebug&&_t153 instanceof Error){_t153.stack=__stack;}throw _t153;case 4:return _context153.a(2);}},_callee153,null,[[1,3]]);}));function latestEvent(_x313){return _latestEvent.apply(this,arguments);}return latestEvent;}()/**
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:(function(){var _leave2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee154(asyncOpts_){var _this867=this;var __stack,_t154;return _regenerator().w(function(_context154){while(1)switch(_context154.p=_context154.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context154.p=1;_context154.n=2;return 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));case 2:return _context154.a(2,_context154.v);case 3:_context154.p=3;_t154=_context154.v;if(uniffiIsDebug&&_t154 instanceof Error){_t154.stack=__stack;}throw _t154;case 4:return _context154.a(2);}},_callee154,null,[[1,3]]);}));function leave(_x314){return _leave2.apply(this,arguments);}return leave;}()/**
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
- */)},{key:"loadComposerDraft",value:(function(){var _loadComposerDraft=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee155(threadRoot,asyncOpts_){var _this868=this;var __stack,_t155;return _regenerator().w(function(_context155){while(1)switch(_context155.p=_context155.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context155.p=1;_context155.n=2;return 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));case 2:return _context155.a(2,_context155.v);case 3:_context155.p=3;_t155=_context155.v;if(uniffiIsDebug&&_t155 instanceof Error){_t155.stack=__stack;}throw _t155;case 4:return _context155.a(2);}},_callee155,null,[[1,3]]);}));function loadComposerDraft(_x315,_x316){return _loadComposerDraft.apply(this,arguments);}return loadComposerDraft;}()/**
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
- */)},{key:"loadOrFetchEvent",value:(function(){var _loadOrFetchEvent=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee156(eventId,asyncOpts_){var _this869=this;var __stack,_t156;return _regenerator().w(function(_context156){while(1)switch(_context156.p=_context156.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context156.p=1;_context156.n=2;return 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));case 2:return _context156.a(2,_context156.v);case 3:_context156.p=3;_t156=_context156.v;if(uniffiIsDebug&&_t156 instanceof Error){_t156.stack=__stack;}throw _t156;case 4:return _context156.a(2);}},_callee156,null,[[1,3]]);}));function loadOrFetchEvent(_x317,_x318){return _loadOrFetchEvent.apply(this,arguments);}return loadOrFetchEvent;}()/**
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
- */)},{key:"markAsFullyReadUnchecked",value:(function(){var _markAsFullyReadUnchecked=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee157(eventId,asyncOpts_){var _this870=this;var __stack,_t157;return _regenerator().w(function(_context157){while(1)switch(_context157.p=_context157.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context157.p=1;_context157.n=2;return 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));case 2:return _context157.a(2,_context157.v);case 3:_context157.p=3;_t157=_context157.v;if(uniffiIsDebug&&_t157 instanceof Error){_t157.stack=__stack;}throw _t157;case 4:return _context157.a(2);}},_callee157,null,[[1,3]]);}));function markAsFullyReadUnchecked(_x319,_x320){return _markAsFullyReadUnchecked.apply(this,arguments);}return markAsFullyReadUnchecked;}()/**
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
- */)},{key:"markAsRead",value:(function(){var _markAsRead=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee158(receiptType,asyncOpts_){var _this871=this;var __stack,_t158;return _regenerator().w(function(_context158){while(1)switch(_context158.p=_context158.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context158.p=1;_context158.n=2;return 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));case 2:return _context158.a(2,_context158.v);case 3:_context158.p=3;_t158=_context158.v;if(uniffiIsDebug&&_t158 instanceof Error){_t158.stack=__stack;}throw _t158;case 4:return _context158.a(2);}},_callee158,null,[[1,3]]);}));function markAsRead(_x321,_x322){return _markAsRead.apply(this,arguments);}return markAsRead;}())},{key:"matrixToEventPermalink",value:function(){var _matrixToEventPermalink=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee159(eventId,asyncOpts_){var _this872=this;var __stack,_t159;return _regenerator().w(function(_context159){while(1)switch(_context159.p=_context159.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context159.p=1;_context159.n=2;return 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));case 2:return _context159.a(2,_context159.v);case 3:_context159.p=3;_t159=_context159.v;if(uniffiIsDebug&&_t159 instanceof Error){_t159.stack=__stack;}throw _t159;case 4:return _context159.a(2);}},_callee159,null,[[1,3]]);}));function matrixToEventPermalink(_x323,_x324){return _matrixToEventPermalink.apply(this,arguments);}return matrixToEventPermalink;}()},{key:"matrixToPermalink",value:function(){var _matrixToPermalink=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee160(asyncOpts_){var _this873=this;var __stack,_t160;return _regenerator().w(function(_context160){while(1)switch(_context160.p=_context160.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context160.p=1;_context160.n=2;return 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));case 2:return _context160.a(2,_context160.v);case 3:_context160.p=3;_t160=_context160.v;if(uniffiIsDebug&&_t160 instanceof Error){_t160.stack=__stack;}throw _t160;case 4:return _context160.a(2);}},_callee160,null,[[1,3]]);}));function matrixToPermalink(_x325){return _matrixToPermalink.apply(this,arguments);}return matrixToPermalink;}()},{key:"member",value:function(){var _member=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee161(userId,asyncOpts_){var _this874=this;var __stack,_t161;return _regenerator().w(function(_context161){while(1)switch(_context161.p=_context161.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context161.p=1;_context161.n=2;return 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));case 2:return _context161.a(2,_context161.v);case 3:_context161.p=3;_t161=_context161.v;if(uniffiIsDebug&&_t161 instanceof Error){_t161.stack=__stack;}throw _t161;case 4:return _context161.a(2);}},_callee161,null,[[1,3]]);}));function member(_x326,_x327){return _member.apply(this,arguments);}return member;}()},{key:"memberAvatarUrl",value:function(){var _memberAvatarUrl=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee162(userId,asyncOpts_){var _this875=this;var __stack,_t162;return _regenerator().w(function(_context162){while(1)switch(_context162.p=_context162.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context162.p=1;_context162.n=2;return 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));case 2:return _context162.a(2,_context162.v);case 3:_context162.p=3;_t162=_context162.v;if(uniffiIsDebug&&_t162 instanceof Error){_t162.stack=__stack;}throw _t162;case 4:return _context162.a(2);}},_callee162,null,[[1,3]]);}));function memberAvatarUrl(_x328,_x329){return _memberAvatarUrl.apply(this,arguments);}return memberAvatarUrl;}()},{key:"memberDisplayName",value:function(){var _memberDisplayName=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee163(userId,asyncOpts_){var _this876=this;var __stack,_t163;return _regenerator().w(function(_context163){while(1)switch(_context163.p=_context163.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context163.p=1;_context163.n=2;return 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));case 2:return _context163.a(2,_context163.v);case 3:_context163.p=3;_t163=_context163.v;if(uniffiIsDebug&&_t163 instanceof Error){_t163.stack=__stack;}throw _t163;case 4:return _context163.a(2);}},_callee163,null,[[1,3]]);}));function memberDisplayName(_x330,_x331){return _memberDisplayName.apply(this,arguments);}return memberDisplayName;}()/**
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:(function(){var _memberWithSenderInfo=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee164(userId,asyncOpts_){var _this877=this;var __stack,_t164;return _regenerator().w(function(_context164){while(1)switch(_context164.p=_context164.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context164.p=1;_context164.n=2;return 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));case 2:return _context164.a(2,_context164.v);case 3:_context164.p=3;_t164=_context164.v;if(uniffiIsDebug&&_t164 instanceof Error){_t164.stack=__stack;}throw _t164;case 4:return _context164.a(2);}},_callee164,null,[[1,3]]);}));function memberWithSenderInfo(_x332,_x333){return _memberWithSenderInfo.apply(this,arguments);}return memberWithSenderInfo;}())},{key:"members",value:function(){var _members=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee165(asyncOpts_){var _this878=this;var __stack,_t165;return _regenerator().w(function(_context165){while(1)switch(_context165.p=_context165.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context165.p=1;_context165.n=2;return 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));case 2:return _context165.a(2,_context165.v);case 3:_context165.p=3;_t165=_context165.v;if(uniffiIsDebug&&_t165 instanceof Error){_t165.stack=__stack;}throw _t165;case 4:return _context165.a(2);}},_callee165,null,[[1,3]]);}));function members(_x334){return _members.apply(this,arguments);}return members;}()},{key:"membersNoSync",value:function(){var _membersNoSync=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee166(asyncOpts_){var _this879=this;var __stack,_t166;return _regenerator().w(function(_context166){while(1)switch(_context166.p=_context166.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context166.p=1;_context166.n=2;return 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));case 2:return _context166.a(2,_context166.v);case 3:_context166.p=3;_t166=_context166.v;if(uniffiIsDebug&&_t166 instanceof Error){_t166.stack=__stack;}throw _t166;case 4:return _context166.a(2);}},_callee166,null,[[1,3]]);}));function membersNoSync(_x335){return _membersNoSync.apply(this,arguments);}return membersNoSync;}()/**
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:(function(){var _previewRoom=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee167(via,asyncOpts_){var _this883=this;var __stack,_t167;return _regenerator().w(function(_context167){while(1)switch(_context167.p=_context167.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context167.p=1;_context167.n=2;return 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));case 2:return _context167.a(2,_context167.v);case 3:_context167.p=3;_t167=_context167.v;if(uniffiIsDebug&&_t167 instanceof Error){_t167.stack=__stack;}throw _t167;case 4:return _context167.a(2);}},_callee167,null,[[1,3]]);}));function previewRoom(_x336,_x337){return _previewRoom.apply(this,arguments);}return previewRoom;}()/**
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
- */)},{key:"publishRoomAliasInRoomDirectory",value:(function(){var _publishRoomAliasInRoomDirectory=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee168(alias,asyncOpts_){var _this884=this;var __stack,_t168;return _regenerator().w(function(_context168){while(1)switch(_context168.p=_context168.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context168.p=1;_context168.n=2;return 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));case 2:return _context168.a(2,_context168.v);case 3:_context168.p=3;_t168=_context168.v;if(uniffiIsDebug&&_t168 instanceof Error){_t168.stack=__stack;}throw _t168;case 4:return _context168.a(2);}},_callee168,null,[[1,3]]);}));function publishRoomAliasInRoomDirectory(_x338,_x339){return _publishRoomAliasInRoomDirectory.apply(this,arguments);}return publishRoomAliasInRoomDirectory;}()/**
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
- */)},{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));}/**
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:(function(){var _redact=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee169(eventId,reason,asyncOpts_){var _this886=this;var __stack,_t169;return _regenerator().w(function(_context169){while(1)switch(_context169.p=_context169.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context169.p=1;_context169.n=2;return 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));case 2:return _context169.a(2,_context169.v);case 3:_context169.p=3;_t169=_context169.v;if(uniffiIsDebug&&_t169 instanceof Error){_t169.stack=__stack;}throw _t169;case 4:return _context169.a(2);}},_callee169,null,[[1,3]]);}));function redact(_x340,_x341,_x342){return _redact.apply(this,arguments);}return redact;}()/**
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
- */)},{key:"removeAvatar",value:(function(){var _removeAvatar2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee170(asyncOpts_){var _this887=this;var __stack,_t170;return _regenerator().w(function(_context170){while(1)switch(_context170.p=_context170.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context170.p=1;_context170.n=2;return 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));case 2:return _context170.a(2,_context170.v);case 3:_context170.p=3;_t170=_context170.v;if(uniffiIsDebug&&_t170 instanceof Error){_t170.stack=__stack;}throw _t170;case 4:return _context170.a(2);}},_callee170,null,[[1,3]]);}));function removeAvatar(_x343){return _removeAvatar2.apply(this,arguments);}return removeAvatar;}()/**
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
- */)},{key:"removeRoomAliasFromRoomDirectory",value:(function(){var _removeRoomAliasFromRoomDirectory=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee171(alias,asyncOpts_){var _this888=this;var __stack,_t171;return _regenerator().w(function(_context171){while(1)switch(_context171.p=_context171.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context171.p=1;_context171.n=2;return 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));case 2:return _context171.a(2,_context171.v);case 3:_context171.p=3;_t171=_context171.v;if(uniffiIsDebug&&_t171 instanceof Error){_t171.stack=__stack;}throw _t171;case 4:return _context171.a(2);}},_callee171,null,[[1,3]]);}));function removeRoomAliasFromRoomDirectory(_x344,_x345){return _removeRoomAliasFromRoomDirectory.apply(this,arguments);}return removeRoomAliasFromRoomDirectory;}()/**
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
- */)},{key:"reportContent",value:(function(){var _reportContent=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee172(eventId,reason,asyncOpts_){var _this889=this;var __stack,_t172;return _regenerator().w(function(_context172){while(1)switch(_context172.p=_context172.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context172.p=1;_context172.n=2;return 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));case 2:return _context172.a(2,_context172.v);case 3:_context172.p=3;_t172=_context172.v;if(uniffiIsDebug&&_t172 instanceof Error){_t172.stack=__stack;}throw _t172;case 4:return _context172.a(2);}},_callee172,null,[[1,3]]);}));function reportContent(_x346,_x347,_x348){return _reportContent.apply(this,arguments);}return reportContent;}()/**
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
- */)},{key:"reportRoom",value:(function(){var _reportRoom=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee173(reason,asyncOpts_){var _this890=this;var __stack,_t173;return _regenerator().w(function(_context173){while(1)switch(_context173.p=_context173.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context173.p=1;_context173.n=2;return 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));case 2:return _context173.a(2,_context173.v);case 3:_context173.p=3;_t173=_context173.v;if(uniffiIsDebug&&_t173 instanceof Error){_t173.stack=__stack;}throw _t173;case 4:return _context173.a(2);}},_callee173,null,[[1,3]]);}));function reportRoom(_x349,_x350){return _reportRoom.apply(this,arguments);}return reportRoom;}())},{key:"resetPowerLevels",value:function(){var _resetPowerLevels=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee174(asyncOpts_){var _this891=this;var __stack,_t174;return _regenerator().w(function(_context174){while(1)switch(_context174.p=_context174.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context174.p=1;_context174.n=2;return 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));case 2:return _context174.a(2,_context174.v);case 3:_context174.p=3;_t174=_context174.v;if(uniffiIsDebug&&_t174 instanceof Error){_t174.stack=__stack;}throw _t174;case 4:return _context174.a(2);}},_callee174,null,[[1,3]]);}));function resetPowerLevels(_x351){return _resetPowerLevels.apply(this,arguments);}return resetPowerLevels;}()/**
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:(function(){var _roomEventsDebugString=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee175(asyncOpts_){var _this892=this;var __stack,_t175;return _regenerator().w(function(_context175){while(1)switch(_context175.p=_context175.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context175.p=1;_context175.n=2;return 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));case 2:return _context175.a(2,_context175.v);case 3:_context175.p=3;_t175=_context175.v;if(uniffiIsDebug&&_t175 instanceof Error){_t175.stack=__stack;}throw _t175;case 4:return _context175.a(2);}},_callee175,null,[[1,3]]);}));function roomEventsDebugString(_x352){return _roomEventsDebugString.apply(this,arguments);}return roomEventsDebugString;}())},{key:"roomInfo",value:function(){var _roomInfo=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee176(asyncOpts_){var _this893=this;var __stack,_t176;return _regenerator().w(function(_context176){while(1)switch(_context176.p=_context176.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context176.p=1;_context176.n=2;return 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));case 2:return _context176.a(2,_context176.v);case 3:_context176.p=3;_t176=_context176.v;if(uniffiIsDebug&&_t176 instanceof Error){_t176.stack=__stack;}throw _t176;case 4:return _context176.a(2);}},_callee176,null,[[1,3]]);}));function roomInfo(_x353){return _roomInfo.apply(this,arguments);}return roomInfo;}()/**
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:(function(){var _saveComposerDraft=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee177(draft,threadRoot,asyncOpts_){var _this894=this;var __stack,_t177;return _regenerator().w(function(_context177){while(1)switch(_context177.p=_context177.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context177.p=1;_context177.n=2;return 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));case 2:return _context177.a(2,_context177.v);case 3:_context177.p=3;_t177=_context177.v;if(uniffiIsDebug&&_t177 instanceof Error){_t177.stack=__stack;}throw _t177;case 4:return _context177.a(2);}},_callee177,null,[[1,3]]);}));function saveComposerDraft(_x354,_x355,_x356){return _saveComposerDraft.apply(this,arguments);}return saveComposerDraft;}()/**
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
- */)},{key:"sendLiveLocation",value:(function(){var _sendLiveLocation=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee178(geoUri,asyncOpts_){var _this895=this;var __stack,_t178;return _regenerator().w(function(_context178){while(1)switch(_context178.p=_context178.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context178.p=1;_context178.n=2;return 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));case 2:return _context178.a(2,_context178.v);case 3:_context178.p=3;_t178=_context178.v;if(uniffiIsDebug&&_t178 instanceof Error){_t178.stack=__stack;}throw _t178;case 4:return _context178.a(2);}},_callee178,null,[[1,3]]);}));function sendLiveLocation(_x357,_x358){return _sendLiveLocation.apply(this,arguments);}return sendLiveLocation;}()/**
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
- */)},{key:"sendRaw",value:(function(){var _sendRaw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee179(eventType,content,asyncOpts_){var _this896=this;var __stack,_t179;return _regenerator().w(function(_context179){while(1)switch(_context179.p=_context179.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context179.p=1;_context179.n=2;return 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));case 2:return _context179.a(2,_context179.v);case 3:_context179.p=3;_t179=_context179.v;if(uniffiIsDebug&&_t179 instanceof Error){_t179.stack=__stack;}throw _t179;case 4:return _context179.a(2);}},_callee179,null,[[1,3]]);}));function sendRaw(_x359,_x360,_x361){return _sendRaw.apply(this,arguments);}return sendRaw;}()/**
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
- */)},{key:"sendStateEventRaw",value:(function(){var _sendStateEventRaw=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee180(eventType,stateKey,content,asyncOpts_){var _this897=this;var __stack,_t180;return _regenerator().w(function(_context180){while(1)switch(_context180.p=_context180.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context180.p=1;_context180.n=2;return 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));case 2:return _context180.a(2,_context180.v);case 3:_context180.p=3;_t180=_context180.v;if(uniffiIsDebug&&_t180 instanceof Error){_t180.stack=__stack;}throw _t180;case 4:return _context180.a(2);}},_callee180,null,[[1,3]]);}));function sendStateEventRaw(_x362,_x363,_x364,_x365){return _sendStateEventRaw.apply(this,arguments);}return sendStateEventRaw;}())},{key:"setIsFavourite",value:function(){var _setIsFavourite=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee181(isFavourite,tagOrder,asyncOpts_){var _this898=this;var __stack,_t181;return _regenerator().w(function(_context181){while(1)switch(_context181.p=_context181.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context181.p=1;_context181.n=2;return 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));case 2:return _context181.a(2,_context181.v);case 3:_context181.p=3;_t181=_context181.v;if(uniffiIsDebug&&_t181 instanceof Error){_t181.stack=__stack;}throw _t181;case 4:return _context181.a(2);}},_callee181,null,[[1,3]]);}));function setIsFavourite(_x366,_x367,_x368){return _setIsFavourite.apply(this,arguments);}return setIsFavourite;}()},{key:"setIsLowPriority",value:function(){var _setIsLowPriority=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee182(isLowPriority,tagOrder,asyncOpts_){var _this899=this;var __stack,_t182;return _regenerator().w(function(_context182){while(1)switch(_context182.p=_context182.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context182.p=1;_context182.n=2;return 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));case 2:return _context182.a(2,_context182.v);case 3:_context182.p=3;_t182=_context182.v;if(uniffiIsDebug&&_t182 instanceof Error){_t182.stack=__stack;}throw _t182;case 4:return _context182.a(2);}},_callee182,null,[[1,3]]);}));function setIsLowPriority(_x369,_x370,_x371){return _setIsLowPriority.apply(this,arguments);}return setIsLowPriority;}()/**
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:(function(){var _setName=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee183(name,asyncOpts_){var _this900=this;var __stack,_t183;return _regenerator().w(function(_context183){while(1)switch(_context183.p=_context183.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context183.p=1;_context183.n=2;return 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));case 2:return _context183.a(2,_context183.v);case 3:_context183.p=3;_t183=_context183.v;if(uniffiIsDebug&&_t183 instanceof Error){_t183.stack=__stack;}throw _t183;case 4:return _context183.a(2);}},_callee183,null,[[1,3]]);}));function setName(_x372,_x373){return _setName.apply(this,arguments);}return setName;}())},{key:"setOwnMemberDisplayName",value:function(){var _setOwnMemberDisplayName=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee184(displayName,asyncOpts_){var _this901=this;var __stack,_t184;return _regenerator().w(function(_context184){while(1)switch(_context184.p=_context184.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context184.p=1;_context184.n=2;return 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));case 2:return _context184.a(2,_context184.v);case 3:_context184.p=3;_t184=_context184.v;if(uniffiIsDebug&&_t184 instanceof Error){_t184.stack=__stack;}throw _t184;case 4:return _context184.a(2);}},_callee184,null,[[1,3]]);}));function setOwnMemberDisplayName(_x374,_x375){return _setOwnMemberDisplayName.apply(this,arguments);}return setOwnMemberDisplayName;}()/**
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:(function(){var _setThreadSubscription=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee185(threadRootEventId,subscribed,asyncOpts_){var _this902=this;var __stack,_t185;return _regenerator().w(function(_context185){while(1)switch(_context185.p=_context185.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context185.p=1;_context185.n=2;return 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));case 2:return _context185.a(2,_context185.v);case 3:_context185.p=3;_t185=_context185.v;if(uniffiIsDebug&&_t185 instanceof Error){_t185.stack=__stack;}throw _t185;case 4:return _context185.a(2);}},_callee185,null,[[1,3]]);}));function setThreadSubscription(_x376,_x377,_x378){return _setThreadSubscription.apply(this,arguments);}return setThreadSubscription;}()/**
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
- */)},{key:"setTopic",value:(function(){var _setTopic=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee186(topic,asyncOpts_){var _this903=this;var __stack,_t186;return _regenerator().w(function(_context186){while(1)switch(_context186.p=_context186.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context186.p=1;_context186.n=2;return 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));case 2:return _context186.a(2,_context186.v);case 3:_context186.p=3;_t186=_context186.v;if(uniffiIsDebug&&_t186 instanceof Error){_t186.stack=__stack;}throw _t186;case 4:return _context186.a(2);}},_callee186,null,[[1,3]]);}));function setTopic(_x379,_x380){return _setTopic.apply(this,arguments);}return setTopic;}()/**
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
- */)},{key:"setUnreadFlag",value:(function(){var _setUnreadFlag=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee187(newValue,asyncOpts_){var _this904=this;var __stack,_t187;return _regenerator().w(function(_context187){while(1)switch(_context187.p=_context187.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context187.p=1;_context187.n=2;return 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));case 2:return _context187.a(2,_context187.v);case 3:_context187.p=3;_t187=_context187.v;if(uniffiIsDebug&&_t187 instanceof Error){_t187.stack=__stack;}throw _t187;case 4:return _context187.a(2);}},_callee187,null,[[1,3]]);}));function setUnreadFlag(_x381,_x382){return _setUnreadFlag.apply(this,arguments);}return setUnreadFlag;}()/**
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
- */)},{key:"startLiveLocationShare",value:(function(){var _startLiveLocationShare=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee188(durationMillis,asyncOpts_){var _this905=this;var __stack,_t188;return _regenerator().w(function(_context188){while(1)switch(_context188.p=_context188.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context188.p=1;_context188.n=2;return 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));case 2:return _context188.a(2,_context188.v);case 3:_context188.p=3;_t188=_context188.v;if(uniffiIsDebug&&_t188 instanceof Error){_t188.stack=__stack;}throw _t188;case 4:return _context188.a(2);}},_callee188,null,[[1,3]]);}));function startLiveLocationShare(_x383,_x384){return _startLiveLocationShare.apply(this,arguments);}return startLiveLocationShare;}()/**
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
- */)},{key:"stopLiveLocationShare",value:(function(){var _stopLiveLocationShare=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee189(asyncOpts_){var _this906=this;var __stack,_t189;return _regenerator().w(function(_context189){while(1)switch(_context189.p=_context189.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context189.p=1;_context189.n=2;return 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));case 2:return _context189.a(2,_context189.v);case 3:_context189.p=3;_t189=_context189.v;if(uniffiIsDebug&&_t189 instanceof Error){_t189.stack=__stack;}throw _t189;case 4:return _context189.a(2);}},_callee189,null,[[1,3]]);}));function stopLiveLocationShare(_x385){return _stopLiveLocationShare.apply(this,arguments);}return stopLiveLocationShare;}()/**
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
- */)},{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:function(){var _subscribeToIdentityStatusChanges=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee190(listener,asyncOpts_){var _this908=this;var __stack,_t190;return _regenerator().w(function(_context190){while(1)switch(_context190.p=_context190.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context190.p=1;_context190.n=2;return 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));case 2:return _context190.a(2,_context190.v);case 3:_context190.p=3;_t190=_context190.v;if(uniffiIsDebug&&_t190 instanceof Error){_t190.stack=__stack;}throw _t190;case 4:return _context190.a(2);}},_callee190,null,[[1,3]]);}));function subscribeToIdentityStatusChanges(_x386,_x387){return _subscribeToIdentityStatusChanges.apply(this,arguments);}return subscribeToIdentityStatusChanges;}()/**
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:(function(){var _subscribeToKnockRequests=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee191(listener,asyncOpts_){var _this909=this;var __stack,_t191;return _regenerator().w(function(_context191){while(1)switch(_context191.p=_context191.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context191.p=1;_context191.n=2;return 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));case 2:return _context191.a(2,_context191.v);case 3:_context191.p=3;_t191=_context191.v;if(uniffiIsDebug&&_t191 instanceof Error){_t191.stack=__stack;}throw _t191;case 4:return _context191.a(2);}},_callee191,null,[[1,3]]);}));function subscribeToKnockRequests(_x388,_x389){return _subscribeToKnockRequests.apply(this,arguments);}return subscribeToKnockRequests;}()/**
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
- */)},{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));}/**
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:(function(){var _subscribeToSendQueueUpdates2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee192(listener,asyncOpts_){var _this912=this;var __stack,_t192;return _regenerator().w(function(_context192){while(1)switch(_context192.p=_context192.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context192.p=1;_context192.n=2;return 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));case 2:return _context192.a(2,_context192.v);case 3:_context192.p=3;_t192=_context192.v;if(uniffiIsDebug&&_t192 instanceof Error){_t192.stack=__stack;}throw _t192;case 4:return _context192.a(2);}},_callee192,null,[[1,3]]);}));function subscribeToSendQueueUpdates(_x390,_x391){return _subscribeToSendQueueUpdates2.apply(this,arguments);}return subscribeToSendQueueUpdates;}())},{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));}/**
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:function(){var _suggestedRoleForUser=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee193(userId,asyncOpts_){var _this915=this;var __stack,_t193;return _regenerator().w(function(_context193){while(1)switch(_context193.p=_context193.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context193.p=1;_context193.n=2;return 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));case 2:return _context193.a(2,_context193.v);case 3:_context193.p=3;_t193=_context193.v;if(uniffiIsDebug&&_t193 instanceof Error){_t193.stack=__stack;}throw _t193;case 4:return _context193.a(2);}},_callee193,null,[[1,3]]);}));function suggestedRoleForUser(_x392,_x393){return _suggestedRoleForUser.apply(this,arguments);}return suggestedRoleForUser;}()/**
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:(function(){var _timeline=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee194(asyncOpts_){var _this917=this;var __stack,_t194;return _regenerator().w(function(_context194){while(1)switch(_context194.p=_context194.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context194.p=1;_context194.n=2;return 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));case 2:return _context194.a(2,_context194.v);case 3:_context194.p=3;_t194=_context194.v;if(uniffiIsDebug&&_t194 instanceof Error){_t194.stack=__stack;}throw _t194;case 4:return _context194.a(2);}},_callee194,null,[[1,3]]);}));function timeline(_x394){return _timeline.apply(this,arguments);}return timeline;}()/**
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
- */)},{key:"timelineWithConfiguration",value:(function(){var _timelineWithConfiguration=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee195(configuration,asyncOpts_){var _this918=this;var __stack,_t195;return _regenerator().w(function(_context195){while(1)switch(_context195.p=_context195.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context195.p=1;_context195.n=2;return 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));case 2:return _context195.a(2,_context195.v);case 3:_context195.p=3;_t195=_context195.v;if(uniffiIsDebug&&_t195 instanceof Error){_t195.stack=__stack;}throw _t195;case 4:return _context195.a(2);}},_callee195,null,[[1,3]]);}));function timelineWithConfiguration(_x395,_x396){return _timelineWithConfiguration.apply(this,arguments);}return timelineWithConfiguration;}())},{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:function(){var _typingNotice=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee196(isTyping,asyncOpts_){var _this920=this;var __stack,_t196;return _regenerator().w(function(_context196){while(1)switch(_context196.p=_context196.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context196.p=1;_context196.n=2;return 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));case 2:return _context196.a(2,_context196.v);case 3:_context196.p=3;_t196=_context196.v;if(uniffiIsDebug&&_t196 instanceof Error){_t196.stack=__stack;}throw _t196;case 4:return _context196.a(2);}},_callee196,null,[[1,3]]);}));function typingNotice(_x397,_x398){return _typingNotice.apply(this,arguments);}return typingNotice;}()},{key:"unbanUser",value:function(){var _unbanUser=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee197(userId,reason,asyncOpts_){var _this921=this;var __stack,_t197;return _regenerator().w(function(_context197){while(1)switch(_context197.p=_context197.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context197.p=1;_context197.n=2;return 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));case 2:return _context197.a(2,_context197.v);case 3:_context197.p=3;_t197=_context197.v;if(uniffiIsDebug&&_t197 instanceof Error){_t197.stack=__stack;}throw _t197;case 4:return _context197.a(2);}},_callee197,null,[[1,3]]);}));function unbanUser(_x399,_x400,_x401){return _unbanUser.apply(this,arguments);}return unbanUser;}()/**
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:(function(){var _updateCanonicalAlias=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee198(alias,altAliases,asyncOpts_){var _this922=this;var __stack,_t198;return _regenerator().w(function(_context198){while(1)switch(_context198.p=_context198.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context198.p=1;_context198.n=2;return 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));case 2:return _context198.a(2,_context198.v);case 3:_context198.p=3;_t198=_context198.v;if(uniffiIsDebug&&_t198 instanceof Error){_t198.stack=__stack;}throw _t198;case 4:return _context198.a(2);}},_callee198,null,[[1,3]]);}));function updateCanonicalAlias(_x402,_x403,_x404){return _updateCanonicalAlias.apply(this,arguments);}return updateCanonicalAlias;}()/**
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
- */)},{key:"updateHistoryVisibility",value:(function(){var _updateHistoryVisibility=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee199(visibility,asyncOpts_){var _this923=this;var __stack,_t199;return _regenerator().w(function(_context199){while(1)switch(_context199.p=_context199.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context199.p=1;_context199.n=2;return 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));case 2:return _context199.a(2,_context199.v);case 3:_context199.p=3;_t199=_context199.v;if(uniffiIsDebug&&_t199 instanceof Error){_t199.stack=__stack;}throw _t199;case 4:return _context199.a(2);}},_callee199,null,[[1,3]]);}));function updateHistoryVisibility(_x405,_x406){return _updateHistoryVisibility.apply(this,arguments);}return updateHistoryVisibility;}()/**
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
- */)},{key:"updateJoinRules",value:(function(){var _updateJoinRules=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee200(newRule,asyncOpts_){var _this924=this;var __stack,_t200;return _regenerator().w(function(_context200){while(1)switch(_context200.p=_context200.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context200.p=1;_context200.n=2;return 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));case 2:return _context200.a(2,_context200.v);case 3:_context200.p=3;_t200=_context200.v;if(uniffiIsDebug&&_t200 instanceof Error){_t200.stack=__stack;}throw _t200;case 4:return _context200.a(2);}},_callee200,null,[[1,3]]);}));function updateJoinRules(_x407,_x408){return _updateJoinRules.apply(this,arguments);}return updateJoinRules;}())},{key:"updatePowerLevelsForUsers",value:function(){var _updatePowerLevelsForUsers=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee201(updates,asyncOpts_){var _this925=this;var __stack,_t201;return _regenerator().w(function(_context201){while(1)switch(_context201.p=_context201.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context201.p=1;_context201.n=2;return 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));case 2:return _context201.a(2,_context201.v);case 3:_context201.p=3;_t201=_context201.v;if(uniffiIsDebug&&_t201 instanceof Error){_t201.stack=__stack;}throw _t201;case 4:return _context201.a(2);}},_callee201,null,[[1,3]]);}));function updatePowerLevelsForUsers(_x409,_x410){return _updatePowerLevelsForUsers.apply(this,arguments);}return updatePowerLevelsForUsers;}()/**
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:(function(){var _updateRoomVisibility=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee202(visibility,asyncOpts_){var _this926=this;var __stack,_t202;return _regenerator().w(function(_context202){while(1)switch(_context202.p=_context202.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context202.p=1;_context202.n=2;return 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));case 2:return _context202.a(2,_context202.v);case 3:_context202.p=3;_t202=_context202.v;if(uniffiIsDebug&&_t202 instanceof Error){_t202.stack=__stack;}throw _t202;case 4:return _context202.a(2);}},_callee202,null,[[1,3]]);}));function updateRoomVisibility(_x411,_x412){return _updateRoomVisibility.apply(this,arguments);}return updateRoomVisibility;}()/**
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
- */)},{key:"uploadAvatar",value:(function(){var _uploadAvatar2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee203(mimeType,data,mediaInfo,asyncOpts_){var _this927=this;var __stack,_t203;return _regenerator().w(function(_context203){while(1)switch(_context203.p=_context203.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context203.p=1;_context203.n=2;return 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));case 2:return _context203.a(2,_context203.v);case 3:_context203.p=3;_t203=_context203.v;if(uniffiIsDebug&&_t203 instanceof Error){_t203.stack=__stack;}throw _t203;case 4:return _context203.a(2);}},_callee203,null,[[1,3]]);}));function uploadAvatar(_x413,_x414,_x415,_x416){return _uploadAvatar2.apply(this,arguments);}return uploadAvatar;}()/**
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
- */)},{key:"withdrawVerificationAndResend",value:(function(){var _withdrawVerificationAndResend=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee204(userIds,sendHandle,asyncOpts_){var _this928=this;var __stack,_t204;return _regenerator().w(function(_context204){while(1)switch(_context204.p=_context204.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context204.p=1;_context204.n=2;return 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));case 2:return _context204.a(2,_context204.v);case 3:_context204.p=3;_t204=_context204.v;if(uniffiIsDebug&&_t204 instanceof Error){_t204.stack=__stack;}throw _t204;case 4:return _context204.a(2);}},_callee204,null,[[1,3]]);}));function withdrawVerificationAndResend(_x417,_x418,_x419){return _withdrawVerificationAndResend.apply(this,arguments);}return withdrawVerificationAndResend;}()/**
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
- */)},{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" />
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:(function(){var _isAtLastPage=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee205(asyncOpts_){var _this930=this;var __stack,_t205;return _regenerator().w(function(_context205){while(1)switch(_context205.p=_context205.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context205.p=1;_context205.n=2;return 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));case 2:return _context205.a(2,_context205.v);case 3:_context205.p=3;_t205=_context205.v;if(uniffiIsDebug&&_t205 instanceof Error){_t205.stack=__stack;}throw _t205;case 4:return _context205.a(2);}},_callee205,null,[[1,3]]);}));function isAtLastPage(_x420){return _isAtLastPage.apply(this,arguments);}return isAtLastPage;}()/**
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
- */)},{key:"loadedPages",value:(function(){var _loadedPages=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee206(asyncOpts_){var _this931=this;var __stack,_t206;return _regenerator().w(function(_context206){while(1)switch(_context206.p=_context206.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context206.p=1;_context206.n=2;return 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));case 2:return _context206.a(2,_context206.v);case 3:_context206.p=3;_t206=_context206.v;if(uniffiIsDebug&&_t206 instanceof Error){_t206.stack=__stack;}throw _t206;case 4:return _context206.a(2);}},_callee206,null,[[1,3]]);}));function loadedPages(_x421){return _loadedPages.apply(this,arguments);}return loadedPages;}()/**
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
- */)},{key:"nextPage",value:(function(){var _nextPage=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee207(asyncOpts_){var _this932=this;var __stack,_t207;return _regenerator().w(function(_context207){while(1)switch(_context207.p=_context207.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context207.p=1;_context207.n=2;return 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));case 2:return _context207.a(2,_context207.v);case 3:_context207.p=3;_t207=_context207.v;if(uniffiIsDebug&&_t207 instanceof Error){_t207.stack=__stack;}throw _t207;case 4:return _context207.a(2);}},_callee207,null,[[1,3]]);}));function nextPage(_x422){return _nextPage.apply(this,arguments);}return nextPage;}()/**
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
- */)},{key:"results",value:(function(){var _results=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee208(listener,asyncOpts_){var _this933=this;var __stack,_t208;return _regenerator().w(function(_context208){while(1)switch(_context208.p=_context208.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context208.p=1;_context208.n=2;return 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_);case 2:return _context208.a(2,_context208.v);case 3:_context208.p=3;_t208=_context208.v;if(uniffiIsDebug&&_t208 instanceof Error){_t208.stack=__stack;}throw _t208;case 4:return _context208.a(2);}},_callee208,null,[[1,3]]);}));function results(_x423,_x424){return _results.apply(this,arguments);}return results;}()/**
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
- */)},{key:"search",value:(function(){var _search=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee209(filter,batchSize,viaServerName,asyncOpts_){var _this934=this;var __stack,_t209;return _regenerator().w(function(_context209){while(1)switch(_context209.p=_context209.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context209.p=1;_context209.n=2;return 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));case 2:return _context209.a(2,_context209.v);case 3:_context209.p=3;_t209=_context209.v;if(uniffiIsDebug&&_t209 instanceof Error){_t209.stack=__stack;}throw _t209;case 4:return _context209.a(2);}},_callee209,null,[[1,3]]);}));function search(_x425,_x426,_x427,_x428){return _search.apply(this,arguments);}return search;}()/**
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
- */)},{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" />
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:function(){var _allRooms=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee210(asyncOpts_){var _this947=this;var __stack,_t210;return _regenerator().w(function(_context210){while(1)switch(_context210.p=_context210.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context210.p=1;_context210.n=2;return 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));case 2:return _context210.a(2,_context210.v);case 3:_context210.p=3;_t210=_context210.v;if(uniffiIsDebug&&_t210 instanceof Error){_t210.stack=__stack;}throw _t210;case 4:return _context210.a(2);}},_callee210,null,[[1,3]]);}));function allRooms(_x429){return _allRooms.apply(this,arguments);}return allRooms;}()},{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:function(){var _subscribeToRooms=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee211(roomIds,asyncOpts_){var _this950=this;var __stack,_t211;return _regenerator().w(function(_context211){while(1)switch(_context211.p=_context211.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context211.p=1;_context211.n=2;return 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));case 2:return _context211.a(2,_context211.v);case 3:_context211.p=3;_t211=_context211.v;if(uniffiIsDebug&&_t211 instanceof Error){_t211.stack=__stack;}throw _t211;case 4:return _context211.a(2);}},_callee211,null,[[1,3]]);}));function subscribeToRooms(_x430,_x431){return _subscribeToRooms.apply(this,arguments);}return subscribeToRooms;}()},{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));}/**
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:(function(){var _forget2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee212(asyncOpts_){var _this980=this;var __stack,_t212;return _regenerator().w(function(_context212){while(1)switch(_context212.p=_context212.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context212.p=1;_context212.n=2;return 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));case 2:return _context212.a(2,_context212.v);case 3:_context212.p=3;_t212=_context212.v;if(uniffiIsDebug&&_t212 instanceof Error){_t212.stack=__stack;}throw _t212;case 4:return _context212.a(2);}},_callee212,null,[[1,3]]);}));function forget(_x432){return _forget2.apply(this,arguments);}return forget;}()/**
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
- */)},{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));}/**
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:(function(){var _inviter2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee213(asyncOpts_){var _this982=this;var __stack,_t213;return _regenerator().w(function(_context213){while(1)switch(_context213.p=_context213.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context213.p=1;_context213.n=2;return 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_);case 2:return _context213.a(2,_context213.v);case 3:_context213.p=3;_t213=_context213.v;if(uniffiIsDebug&&_t213 instanceof Error){_t213.stack=__stack;}throw _t213;case 4:return _context213.a(2);}},_callee213,null,[[1,3]]);}));function inviter(_x433){return _inviter2.apply(this,arguments);}return inviter;}()/**
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
- */)},{key:"leave",value:(function(){var _leave3=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee214(asyncOpts_){var _this983=this;var __stack,_t214;return _regenerator().w(function(_context214){while(1)switch(_context214.p=_context214.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context214.p=1;_context214.n=2;return 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));case 2:return _context214.a(2,_context214.v);case 3:_context214.p=3;_t214=_context214.v;if(uniffiIsDebug&&_t214 instanceof Error){_t214.stack=__stack;}throw _t214;case 4:return _context214.a(2);}},_callee214,null,[[1,3]]);}));function leave(_x434){return _leave3.apply(this,arguments);}return leave;}()/**
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
- */)},{key:"ownMembershipDetails",value:(function(){var _ownMembershipDetails=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee215(asyncOpts_){var _this984=this;var __stack,_t215;return _regenerator().w(function(_context215){while(1)switch(_context215.p=_context215.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context215.p=1;_context215.n=2;return 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_);case 2:return _context215.a(2,_context215.v);case 3:_context215.p=3;_t215=_context215.v;if(uniffiIsDebug&&_t215 instanceof Error){_t215.stack=__stack;}throw _t215;case 4:return _context215.a(2);}},_callee215,null,[[1,3]]);}));function ownMembershipDetails(_x435){return _ownMembershipDetails.apply(this,arguments);}return ownMembershipDetails;}()/**
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
- */)},{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" />
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:(function(){var _join2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee216(asyncOpts_){var _this987=this;var __stack,_t216;return _regenerator().w(function(_context216){while(1)switch(_context216.p=_context216.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context216.p=1;_context216.n=2;return 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));case 2:return _context216.a(2,_context216.v);case 3:_context216.p=3;_t216=_context216.v;if(uniffiIsDebug&&_t216 instanceof Error){_t216.stack=__stack;}throw _t216;case 4:return _context216.a(2);}},_callee216,null,[[1,3]]);}));function join(_x436){return _join2.apply(this,arguments);}return join;}()/**
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
- */)},{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" />
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:(function(){var _abort=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee217(asyncOpts_){var _this989=this;var __stack,_t217;return _regenerator().w(function(_context217){while(1)switch(_context217.p=_context217.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context217.p=1;_context217.n=2;return 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));case 2:return _context217.a(2,_context217.v);case 3:_context217.p=3;_t217=_context217.v;if(uniffiIsDebug&&_t217 instanceof Error){_t217.stack=__stack;}throw _t217;case 4:return _context217.a(2);}},_callee217,null,[[1,3]]);}));function abort(_x437){return _abort.apply(this,arguments);}return abort;}()/**
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
- */)},{key:"tryResend",value:(function(){var _tryResend=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee218(asyncOpts_){var _this990=this;var __stack,_t218;return _regenerator().w(function(_context218){while(1)switch(_context218.p=_context218.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context218.p=1;_context218.n=2;return 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));case 2:return _context218.a(2,_context218.v);case 3:_context218.p=3;_t218=_context218.v;if(uniffiIsDebug&&_t218 instanceof Error){_t218.stack=__stack;}throw _t218;case 4:return _context218.a(2);}},_callee218,null,[[1,3]]);}));function tryResend(_x438){return _tryResend.apply(this,arguments);}return tryResend;}()/**
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
- */)},{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" />
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:(function(){var _acceptVerificationRequest=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee219(asyncOpts_){var _this992=this;var __stack,_t219;return _regenerator().w(function(_context219){while(1)switch(_context219.p=_context219.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context219.p=1;_context219.n=2;return 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));case 2:return _context219.a(2,_context219.v);case 3:_context219.p=3;_t219=_context219.v;if(uniffiIsDebug&&_t219 instanceof Error){_t219.stack=__stack;}throw _t219;case 4:return _context219.a(2);}},_callee219,null,[[1,3]]);}));function acceptVerificationRequest(_x439){return _acceptVerificationRequest.apply(this,arguments);}return acceptVerificationRequest;}()/**
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
- */)},{key:"acknowledgeVerificationRequest",value:(function(){var _acknowledgeVerificationRequest=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee220(senderId,flowId,asyncOpts_){var _this993=this;var __stack,_t220;return _regenerator().w(function(_context220){while(1)switch(_context220.p=_context220.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context220.p=1;_context220.n=2;return 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));case 2:return _context220.a(2,_context220.v);case 3:_context220.p=3;_t220=_context220.v;if(uniffiIsDebug&&_t220 instanceof Error){_t220.stack=__stack;}throw _t220;case 4:return _context220.a(2);}},_callee220,null,[[1,3]]);}));function acknowledgeVerificationRequest(_x440,_x441,_x442){return _acknowledgeVerificationRequest.apply(this,arguments);}return acknowledgeVerificationRequest;}()/**
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
- */)},{key:"approveVerification",value:(function(){var _approveVerification=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee221(asyncOpts_){var _this994=this;var __stack,_t221;return _regenerator().w(function(_context221){while(1)switch(_context221.p=_context221.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context221.p=1;_context221.n=2;return 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));case 2:return _context221.a(2,_context221.v);case 3:_context221.p=3;_t221=_context221.v;if(uniffiIsDebug&&_t221 instanceof Error){_t221.stack=__stack;}throw _t221;case 4:return _context221.a(2);}},_callee221,null,[[1,3]]);}));function approveVerification(_x443){return _approveVerification.apply(this,arguments);}return approveVerification;}()/**
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
- */)},{key:"cancelVerification",value:(function(){var _cancelVerification=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee222(asyncOpts_){var _this995=this;var __stack,_t222;return _regenerator().w(function(_context222){while(1)switch(_context222.p=_context222.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context222.p=1;_context222.n=2;return 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));case 2:return _context222.a(2,_context222.v);case 3:_context222.p=3;_t222=_context222.v;if(uniffiIsDebug&&_t222 instanceof Error){_t222.stack=__stack;}throw _t222;case 4:return _context222.a(2);}},_callee222,null,[[1,3]]);}));function cancelVerification(_x444){return _cancelVerification.apply(this,arguments);}return cancelVerification;}()/**
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
- */)},{key:"declineVerification",value:(function(){var _declineVerification=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee223(asyncOpts_){var _this996=this;var __stack,_t223;return _regenerator().w(function(_context223){while(1)switch(_context223.p=_context223.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context223.p=1;_context223.n=2;return 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));case 2:return _context223.a(2,_context223.v);case 3:_context223.p=3;_t223=_context223.v;if(uniffiIsDebug&&_t223 instanceof Error){_t223.stack=__stack;}throw _t223;case 4:return _context223.a(2);}},_callee223,null,[[1,3]]);}));function declineVerification(_x445){return _declineVerification.apply(this,arguments);}return declineVerification;}()/**
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
- */)},{key:"requestDeviceVerification",value:(function(){var _requestDeviceVerification=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee224(asyncOpts_){var _this997=this;var __stack,_t224;return _regenerator().w(function(_context224){while(1)switch(_context224.p=_context224.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context224.p=1;_context224.n=2;return 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));case 2:return _context224.a(2,_context224.v);case 3:_context224.p=3;_t224=_context224.v;if(uniffiIsDebug&&_t224 instanceof Error){_t224.stack=__stack;}throw _t224;case 4:return _context224.a(2);}},_callee224,null,[[1,3]]);}));function requestDeviceVerification(_x446){return _requestDeviceVerification.apply(this,arguments);}return requestDeviceVerification;}()/**
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
- */)},{key:"requestUserVerification",value:(function(){var _requestUserVerification=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee225(userId,asyncOpts_){var _this998=this;var __stack,_t225;return _regenerator().w(function(_context225){while(1)switch(_context225.p=_context225.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context225.p=1;_context225.n=2;return 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));case 2:return _context225.a(2,_context225.v);case 3:_context225.p=3;_t225=_context225.v;if(uniffiIsDebug&&_t225 instanceof Error){_t225.stack=__stack;}throw _t225;case 4:return _context225.a(2);}},_callee225,null,[[1,3]]);}));function requestUserVerification(_x447,_x448){return _requestUserVerification.apply(this,arguments);}return requestUserVerification;}())},{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);}/**
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:(function(){var _startSasVerification=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee226(asyncOpts_){var _this1000=this;var __stack,_t226;return _regenerator().w(function(_context226){while(1)switch(_context226.p=_context226.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context226.p=1;_context226.n=2;return 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));case 2:return _context226.a(2,_context226.v);case 3:_context226.p=3;_t226=_context226.v;if(uniffiIsDebug&&_t226 instanceof Error){_t226.stack=__stack;}throw _t226;case 4:return _context226.a(2);}},_callee226,null,[[1,3]]);}));function startSasVerification(_x449){return _startSasVerification.apply(this,arguments);}return startSasVerification;}()/**
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
- */)},{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" />
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:(function(){var _paginate=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee227(asyncOpts_){var _this1005=this;var __stack,_t227;return _regenerator().w(function(_context227){while(1)switch(_context227.p=_context227.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context227.p=1;_context227.n=2;return 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));case 2:return _context227.a(2,_context227.v);case 3:_context227.p=3;_t227=_context227.v;if(uniffiIsDebug&&_t227 instanceof Error){_t227.stack=__stack;}throw _t227;case 4:return _context227.a(2);}},_callee227,null,[[1,3]]);}));function paginate(_x450){return _paginate.apply(this,arguments);}return paginate;}()/**
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
- */)},{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));}/**
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:(function(){var _reset2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee228(asyncOpts_){var _this1007=this;var __stack,_t228;return _regenerator().w(function(_context228){while(1)switch(_context228.p=_context228.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context228.p=1;_context228.n=2;return 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_);case 2:return _context228.a(2,_context228.v);case 3:_context228.p=3;_t228=_context228.v;if(uniffiIsDebug&&_t228 instanceof Error){_t228.stack=__stack;}throw _t228;case 4:return _context228.a(2);}},_callee228,null,[[1,3]]);}));function reset(_x451){return _reset2.apply(this,arguments);}return reset;}()/**
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
- */)},{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));}/**
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:function(){var _addChildToSpace=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee229(childId,spaceId,asyncOpts_){var _this1014=this;var __stack,_t229;return _regenerator().w(function(_context229){while(1)switch(_context229.p=_context229.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context229.p=1;_context229.n=2;return 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));case 2:return _context229.a(2,_context229.v);case 3:_context229.p=3;_t229=_context229.v;if(uniffiIsDebug&&_t229 instanceof Error){_t229.stack=__stack;}throw _t229;case 4:return _context229.a(2);}},_callee229,null,[[1,3]]);}));function addChildToSpace(_x452,_x453,_x454){return _addChildToSpace.apply(this,arguments);}return addChildToSpace;}()/**
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:(function(){var _editableSpaces=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee230(asyncOpts_){var _this1015=this;var __stack,_t230;return _regenerator().w(function(_context230){while(1)switch(_context230.p=_context230.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context230.p=1;_context230.n=2;return 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_);case 2:return _context230.a(2,_context230.v);case 3:_context230.p=3;_t230=_context230.v;if(uniffiIsDebug&&_t230 instanceof Error){_t230.stack=__stack;}throw _t230;case 4:return _context230.a(2);}},_callee230,null,[[1,3]]);}));function editableSpaces(_x455){return _editableSpaces.apply(this,arguments);}return editableSpaces;}()/**
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
- */)},{key:"getSpaceRoom",value:(function(){var _getSpaceRoom=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee231(roomId,asyncOpts_){var _this1016=this;var __stack,_t231;return _regenerator().w(function(_context231){while(1)switch(_context231.p=_context231.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context231.p=1;_context231.n=2;return 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));case 2:return _context231.a(2,_context231.v);case 3:_context231.p=3;_t231=_context231.v;if(uniffiIsDebug&&_t231 instanceof Error){_t231.stack=__stack;}throw _t231;case 4:return _context231.a(2);}},_callee231,null,[[1,3]]);}));function getSpaceRoom(_x456,_x457){return _getSpaceRoom.apply(this,arguments);}return getSpaceRoom;}()/**
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
- */)},{key:"joinedParentsOfChild",value:(function(){var _joinedParentsOfChild=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee232(childId,asyncOpts_){var _this1017=this;var __stack,_t232;return _regenerator().w(function(_context232){while(1)switch(_context232.p=_context232.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context232.p=1;_context232.n=2;return 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));case 2:return _context232.a(2,_context232.v);case 3:_context232.p=3;_t232=_context232.v;if(uniffiIsDebug&&_t232 instanceof Error){_t232.stack=__stack;}throw _t232;case 4:return _context232.a(2);}},_callee232,null,[[1,3]]);}));function joinedParentsOfChild(_x458,_x459){return _joinedParentsOfChild.apply(this,arguments);}return joinedParentsOfChild;}()/**
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
- */)},{key:"leaveSpace",value:(function(){var _leaveSpace=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee233(spaceId,asyncOpts_){var _this1018=this;var __stack,_t233;return _regenerator().w(function(_context233){while(1)switch(_context233.p=_context233.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context233.p=1;_context233.n=2;return 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));case 2:return _context233.a(2,_context233.v);case 3:_context233.p=3;_t233=_context233.v;if(uniffiIsDebug&&_t233 instanceof Error){_t233.stack=__stack;}throw _t233;case 4:return _context233.a(2);}},_callee233,null,[[1,3]]);}));function leaveSpace(_x460,_x461){return _leaveSpace.apply(this,arguments);}return leaveSpace;}())},{key:"removeChildFromSpace",value:function(){var _removeChildFromSpace=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee234(childId,spaceId,asyncOpts_){var _this1019=this;var __stack,_t234;return _regenerator().w(function(_context234){while(1)switch(_context234.p=_context234.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context234.p=1;_context234.n=2;return 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));case 2:return _context234.a(2,_context234.v);case 3:_context234.p=3;_t234=_context234.v;if(uniffiIsDebug&&_t234 instanceof Error){_t234.stack=__stack;}throw _t234;case 4:return _context234.a(2);}},_callee234,null,[[1,3]]);}));function removeChildFromSpace(_x462,_x463,_x464){return _removeChildFromSpace.apply(this,arguments);}return removeChildFromSpace;}()/**
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:(function(){var _spaceFilters=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee235(asyncOpts_){var _this1020=this;var __stack,_t235;return _regenerator().w(function(_context235){while(1)switch(_context235.p=_context235.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context235.p=1;_context235.n=2;return 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_);case 2:return _context235.a(2,_context235.v);case 3:_context235.p=3;_t235=_context235.v;if(uniffiIsDebug&&_t235 instanceof Error){_t235.stack=__stack;}throw _t235;case 4:return _context235.a(2);}},_callee235,null,[[1,3]]);}));function spaceFilters(_x465){return _spaceFilters.apply(this,arguments);}return spaceFilters;}()/**
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
- */)},{key:"spaceRoomList",value:(function(){var _spaceRoomList=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee236(spaceId,asyncOpts_){var _this1021=this;var __stack,_t236;return _regenerator().w(function(_context236){while(1)switch(_context236.p=_context236.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context236.p=1;_context236.n=2;return 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));case 2:return _context236.a(2,_context236.v);case 3:_context236.p=3;_t236=_context236.v;if(uniffiIsDebug&&_t236 instanceof Error){_t236.stack=__stack;}throw _t236;case 4:return _context236.a(2);}},_callee236,null,[[1,3]]);}));function spaceRoomList(_x466,_x467){return _spaceRoomList.apply(this,arguments);}return spaceRoomList;}()/**
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
- */)},{key:"subscribeToSpaceFilters",value:(function(){var _subscribeToSpaceFilters=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee237(listener,asyncOpts_){var _this1022=this;var __stack,_t237;return _regenerator().w(function(_context237){while(1)switch(_context237.p=_context237.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context237.p=1;_context237.n=2;return 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_);case 2:return _context237.a(2,_context237.v);case 3:_context237.p=3;_t237=_context237.v;if(uniffiIsDebug&&_t237 instanceof Error){_t237.stack=__stack;}throw _t237;case 4:return _context237.a(2);}},_callee237,null,[[1,3]]);}));function subscribeToSpaceFilters(_x468,_x469){return _subscribeToSpaceFilters.apply(this,arguments);}return subscribeToSpaceFilters;}()/**
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
- */)},{key:"subscribeToTopLevelJoinedSpaces",value:(function(){var _subscribeToTopLevelJoinedSpaces=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee238(listener,asyncOpts_){var _this1023=this;var __stack,_t238;return _regenerator().w(function(_context238){while(1)switch(_context238.p=_context238.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context238.p=1;_context238.n=2;return 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_);case 2:return _context238.a(2,_context238.v);case 3:_context238.p=3;_t238=_context238.v;if(uniffiIsDebug&&_t238 instanceof Error){_t238.stack=__stack;}throw _t238;case 4:return _context238.a(2);}},_callee238,null,[[1,3]]);}));function subscribeToTopLevelJoinedSpaces(_x470,_x471){return _subscribeToTopLevelJoinedSpaces.apply(this,arguments);}return subscribeToTopLevelJoinedSpaces;}()/**
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
- */)},{key:"topLevelJoinedSpaces",value:(function(){var _topLevelJoinedSpaces=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee239(asyncOpts_){var _this1024=this;var __stack,_t239;return _regenerator().w(function(_context239){while(1)switch(_context239.p=_context239.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context239.p=1;_context239.n=2;return 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_);case 2:return _context239.a(2,_context239.v);case 3:_context239.p=3;_t239=_context239.v;if(uniffiIsDebug&&_t239 instanceof Error){_t239.stack=__stack;}throw _t239;case 4:return _context239.a(2);}},_callee239,null,[[1,3]]);}));function topLevelJoinedSpaces(_x472){return _topLevelJoinedSpaces.apply(this,arguments);}return topLevelJoinedSpaces;}()/**
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
- */)},{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" />
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:(function(){var _finish=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee240(callbackUrl,asyncOpts_){var _this1030=this;var __stack,_t240;return _regenerator().w(function(_context240){while(1)switch(_context240.p=_context240.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context240.p=1;_context240.n=2;return 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));case 2:return _context240.a(2,_context240.v);case 3:_context240.p=3;_t240=_context240.v;if(uniffiIsDebug&&_t240 instanceof Error){_t240.stack=__stack;}throw _t240;case 4:return _context240.a(2);}},_callee240,null,[[1,3]]);}));function finish(_x473,_x474){return _finish.apply(this,arguments);}return finish;}()/**
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
- */)},{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));}/**
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:(function(){var _expireSessions=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee241(asyncOpts_){var _this1033=this;var __stack,_t241;return _regenerator().w(function(_context241){while(1)switch(_context241.p=_context241.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context241.p=1;_context241.n=2;return 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_);case 2:return _context241.a(2,_context241.v);case 3:_context241.p=3;_t241=_context241.v;if(uniffiIsDebug&&_t241 instanceof Error){_t241.stack=__stack;}throw _t241;case 4:return _context241.a(2);}},_callee241,null,[[1,3]]);}));function expireSessions(_x475){return _expireSessions.apply(this,arguments);}return expireSessions;}())},{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:function(){var _start=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee242(asyncOpts_){var _this1035=this;var __stack,_t242;return _regenerator().w(function(_context242){while(1)switch(_context242.p=_context242.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context242.p=1;_context242.n=2;return 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_);case 2:return _context242.a(2,_context242.v);case 3:_context242.p=3;_t242=_context242.v;if(uniffiIsDebug&&_t242 instanceof Error){_t242.stack=__stack;}throw _t242;case 4:return _context242.a(2);}},_callee242,null,[[1,3]]);}));function start(_x476){return _start.apply(this,arguments);}return start;}()},{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:function(){var _stop=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee243(asyncOpts_){var _this1037=this;var __stack,_t243;return _regenerator().w(function(_context243){while(1)switch(_context243.p=_context243.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context243.p=1;_context243.n=2;return 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_);case 2:return _context243.a(2,_context243.v);case 3:_context243.p=3;_t243=_context243.v;if(uniffiIsDebug&&_t243 instanceof Error){_t243.stack=__stack;}throw _t243;case 4:return _context243.a(2);}},_callee243,null,[[1,3]]);}));function stop(_x477){return _stop.apply(this,arguments);}return stop;}()/**
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:function(){var _finish2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee244(asyncOpts_){var _this1039=this;var __stack,_t244;return _regenerator().w(function(_context244){while(1)switch(_context244.p=_context244.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context244.p=1;_context244.n=2;return 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));case 2:return _context244.a(2,_context244.v);case 3:_context244.p=3;_t244=_context244.v;if(uniffiIsDebug&&_t244 instanceof Error){_t244.stack=__stack;}throw _t244;case 4:return _context244.a(2);}},_callee244,null,[[1,3]]);}));function finish(_x478){return _finish2.apply(this,arguments);}return finish;}()/**
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:(function(){var _paginate2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee245(asyncOpts_){var _this1047=this;var __stack,_t245;return _regenerator().w(function(_context245){while(1)switch(_context245.p=_context245.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context245.p=1;_context245.n=2;return 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));case 2:return _context245.a(2,_context245.v);case 3:_context245.p=3;_t245=_context245.v;if(uniffiIsDebug&&_t245 instanceof Error){_t245.stack=__stack;}throw _t245;case 4:return _context245.a(2);}},_callee245,null,[[1,3]]);}));function paginate(_x479){return _paginate2.apply(this,arguments);}return paginate;}()/**
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
- */)},{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));}/**
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:(function(){var _reset3=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee246(asyncOpts_){var _this1049=this;var __stack,_t246;return _regenerator().w(function(_context246){while(1)switch(_context246.p=_context246.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context246.p=1;_context246.n=2;return 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_);case 2:return _context246.a(2,_context246.v);case 3:_context246.p=3;_t246=_context246.v;if(uniffiIsDebug&&_t246 instanceof Error){_t246.stack=__stack;}throw _t246;case 4:return _context246.a(2);}},_callee246,null,[[1,3]]);}));function reset(_x480){return _reset3.apply(this,arguments);}return reset;}()/**
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
- */)},{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));}/**
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:function(){var _addListener=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee247(listener,asyncOpts_){var _this1056=this;var __stack,_t247;return _regenerator().w(function(_context247){while(1)switch(_context247.p=_context247.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context247.p=1;_context247.n=2;return 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_);case 2:return _context247.a(2,_context247.v);case 3:_context247.p=3;_t247=_context247.v;if(uniffiIsDebug&&_t247 instanceof Error){_t247.stack=__stack;}throw _t247;case 4:return _context247.a(2);}},_callee247,null,[[1,3]]);}));function addListener(_x481,_x482){return _addListener.apply(this,arguments);}return addListener;}()},{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:function(){var _createPoll=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee248(question,answers,maxSelections,pollKind,asyncOpts_){var _this1058=this;var __stack,_t248;return _regenerator().w(function(_context248){while(1)switch(_context248.p=_context248.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context248.p=1;_context248.n=2;return 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));case 2:return _context248.a(2,_context248.v);case 3:_context248.p=3;_t248=_context248.v;if(uniffiIsDebug&&_t248 instanceof Error){_t248.stack=__stack;}throw _t248;case 4:return _context248.a(2);}},_callee248,null,[[1,3]]);}));function createPoll(_x483,_x484,_x485,_x486,_x487){return _createPoll.apply(this,arguments);}return createPoll;}()/**
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:(function(){var _edit2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee249(eventOrTransactionId,newContent,asyncOpts_){var _this1059=this;var __stack,_t249;return _regenerator().w(function(_context249){while(1)switch(_context249.p=_context249.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context249.p=1;_context249.n=2;return 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));case 2:return _context249.a(2,_context249.v);case 3:_context249.p=3;_t249=_context249.v;if(uniffiIsDebug&&_t249 instanceof Error){_t249.stack=__stack;}throw _t249;case 4:return _context249.a(2);}},_callee249,null,[[1,3]]);}));function edit(_x488,_x489,_x490){return _edit2.apply(this,arguments);}return edit;}())},{key:"endPoll",value:function(){var _endPoll=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee250(pollStartEventId,text,asyncOpts_){var _this1060=this;var __stack,_t250;return _regenerator().w(function(_context250){while(1)switch(_context250.p=_context250.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context250.p=1;_context250.n=2;return 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));case 2:return _context250.a(2,_context250.v);case 3:_context250.p=3;_t250=_context250.v;if(uniffiIsDebug&&_t250 instanceof Error){_t250.stack=__stack;}throw _t250;case 4:return _context250.a(2);}},_callee250,null,[[1,3]]);}));function endPoll(_x491,_x492,_x493){return _endPoll.apply(this,arguments);}return endPoll;}()},{key:"fetchDetailsForEvent",value:function(){var _fetchDetailsForEvent=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee251(eventId,asyncOpts_){var _this1061=this;var __stack,_t251;return _regenerator().w(function(_context251){while(1)switch(_context251.p=_context251.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context251.p=1;_context251.n=2;return 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));case 2:return _context251.a(2,_context251.v);case 3:_context251.p=3;_t251=_context251.v;if(uniffiIsDebug&&_t251 instanceof Error){_t251.stack=__stack;}throw _t251;case 4:return _context251.a(2);}},_callee251,null,[[1,3]]);}));function fetchDetailsForEvent(_x494,_x495){return _fetchDetailsForEvent.apply(this,arguments);}return fetchDetailsForEvent;}()},{key:"fetchMembers",value:function(){var _fetchMembers=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee252(asyncOpts_){var _this1062=this;var __stack,_t252;return _regenerator().w(function(_context252){while(1)switch(_context252.p=_context252.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context252.p=1;_context252.n=2;return 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_);case 2:return _context252.a(2,_context252.v);case 3:_context252.p=3;_t252=_context252.v;if(uniffiIsDebug&&_t252 instanceof Error){_t252.stack=__stack;}throw _t252;case 4:return _context252.a(2);}},_callee252,null,[[1,3]]);}));function fetchMembers(_x496){return _fetchMembers.apply(this,arguments);}return fetchMembers;}()/**
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:(function(){var _getEventTimelineItemByEventId=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee253(eventId,asyncOpts_){var _this1063=this;var __stack,_t253;return _regenerator().w(function(_context253){while(1)switch(_context253.p=_context253.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context253.p=1;_context253.n=2;return 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));case 2:return _context253.a(2,_context253.v);case 3:_context253.p=3;_t253=_context253.v;if(uniffiIsDebug&&_t253 instanceof Error){_t253.stack=__stack;}throw _t253;case 4:return _context253.a(2);}},_callee253,null,[[1,3]]);}));function getEventTimelineItemByEventId(_x497,_x498){return _getEventTimelineItemByEventId.apply(this,arguments);}return getEventTimelineItemByEventId;}()/**
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
- */)},{key:"latestEventId",value:(function(){var _latestEventId=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee254(asyncOpts_){var _this1064=this;var __stack,_t254;return _regenerator().w(function(_context254){while(1)switch(_context254.p=_context254.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context254.p=1;_context254.n=2;return 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_);case 2:return _context254.a(2,_context254.v);case 3:_context254.p=3;_t254=_context254.v;if(uniffiIsDebug&&_t254 instanceof Error){_t254.stack=__stack;}throw _t254;case 4:return _context254.a(2);}},_callee254,null,[[1,3]]);}));function latestEventId(_x499){return _latestEventId.apply(this,arguments);}return latestEventId;}()/**
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
- */)},{key:"loadReplyDetails",value:(function(){var _loadReplyDetails=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee255(eventIdStr,asyncOpts_){var _this1065=this;var __stack,_t255;return _regenerator().w(function(_context255){while(1)switch(_context255.p=_context255.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context255.p=1;_context255.n=2;return 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));case 2:return _context255.a(2,_context255.v);case 3:_context255.p=3;_t255=_context255.v;if(uniffiIsDebug&&_t255 instanceof Error){_t255.stack=__stack;}throw _t255;case 4:return _context255.a(2);}},_callee255,null,[[1,3]]);}));function loadReplyDetails(_x500,_x501){return _loadReplyDetails.apply(this,arguments);}return loadReplyDetails;}()/**
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
- */)},{key:"markAsRead",value:(function(){var _markAsRead2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee256(receiptType,asyncOpts_){var _this1066=this;var __stack,_t256;return _regenerator().w(function(_context256){while(1)switch(_context256.p=_context256.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context256.p=1;_context256.n=2;return 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));case 2:return _context256.a(2,_context256.v);case 3:_context256.p=3;_t256=_context256.v;if(uniffiIsDebug&&_t256 instanceof Error){_t256.stack=__stack;}throw _t256;case 4:return _context256.a(2);}},_callee256,null,[[1,3]]);}));function markAsRead(_x502,_x503){return _markAsRead2.apply(this,arguments);}return markAsRead;}()/**
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
- */)},{key:"paginateBackwards",value:(function(){var _paginateBackwards=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee257(numEvents,asyncOpts_){var _this1067=this;var __stack,_t257;return _regenerator().w(function(_context257){while(1)switch(_context257.p=_context257.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context257.p=1;_context257.n=2;return 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));case 2:return _context257.a(2,_context257.v);case 3:_context257.p=3;_t257=_context257.v;if(uniffiIsDebug&&_t257 instanceof Error){_t257.stack=__stack;}throw _t257;case 4:return _context257.a(2);}},_callee257,null,[[1,3]]);}));function paginateBackwards(_x504,_x505){return _paginateBackwards.apply(this,arguments);}return paginateBackwards;}()/**
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
- */)},{key:"paginateForwards",value:(function(){var _paginateForwards=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee258(numEvents,asyncOpts_){var _this1068=this;var __stack,_t258;return _regenerator().w(function(_context258){while(1)switch(_context258.p=_context258.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context258.p=1;_context258.n=2;return 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));case 2:return _context258.a(2,_context258.v);case 3:_context258.p=3;_t258=_context258.v;if(uniffiIsDebug&&_t258 instanceof Error){_t258.stack=__stack;}throw _t258;case 4:return _context258.a(2);}},_callee258,null,[[1,3]]);}));function paginateForwards(_x506,_x507){return _paginateForwards.apply(this,arguments);}return paginateForwards;}()/**
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
- */)},{key:"pinEvent",value:(function(){var _pinEvent=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee259(eventId,asyncOpts_){var _this1069=this;var __stack,_t259;return _regenerator().w(function(_context259){while(1)switch(_context259.p=_context259.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context259.p=1;_context259.n=2;return 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));case 2:return _context259.a(2,_context259.v);case 3:_context259.p=3;_t259=_context259.v;if(uniffiIsDebug&&_t259 instanceof Error){_t259.stack=__stack;}throw _t259;case 4:return _context259.a(2);}},_callee259,null,[[1,3]]);}));function pinEvent(_x508,_x509){return _pinEvent.apply(this,arguments);}return pinEvent;}()/**
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
- */)},{key:"redactEvent",value:(function(){var _redactEvent=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee260(eventOrTransactionId,reason,asyncOpts_){var _this1070=this;var __stack,_t260;return _regenerator().w(function(_context260){while(1)switch(_context260.p=_context260.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context260.p=1;_context260.n=2;return 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));case 2:return _context260.a(2,_context260.v);case 3:_context260.p=3;_t260=_context260.v;if(uniffiIsDebug&&_t260 instanceof Error){_t260.stack=__stack;}throw _t260;case 4:return _context260.a(2);}},_callee260,null,[[1,3]]);}));function redactEvent(_x510,_x511,_x512){return _redactEvent.apply(this,arguments);}return redactEvent;}())},{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);}/**
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:(function(){var _send2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee261(msg,asyncOpts_){var _this1072=this;var __stack,_t261;return _regenerator().w(function(_context261){while(1)switch(_context261.p=_context261.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context261.p=1;_context261.n=2;return 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));case 2:return _context261.a(2,_context261.v);case 3:_context261.p=3;_t261=_context261.v;if(uniffiIsDebug&&_t261 instanceof Error){_t261.stack=__stack;}throw _t261;case 4:return _context261.a(2);}},_callee261,null,[[1,3]]);}));function send(_x513,_x514){return _send2.apply(this,arguments);}return send;}())},{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:function(){var _sendLocation=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee262(body,geoUri,description,zoomLevel,assetType,repliedToEventId,asyncOpts_){var _this1076=this;var __stack,_t262;return _regenerator().w(function(_context262){while(1)switch(_context262.p=_context262.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context262.p=1;_context262.n=2;return 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));case 2:return _context262.a(2,_context262.v);case 3:_context262.p=3;_t262=_context262.v;if(uniffiIsDebug&&_t262 instanceof Error){_t262.stack=__stack;}throw _t262;case 4:return _context262.a(2);}},_callee262,null,[[1,3]]);}));function sendLocation(_x515,_x516,_x517,_x518,_x519,_x520,_x521){return _sendLocation.apply(this,arguments);}return sendLocation;}()},{key:"sendPollResponse",value:function(){var _sendPollResponse=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee263(pollStartEventId,answers,asyncOpts_){var _this1077=this;var __stack,_t263;return _regenerator().w(function(_context263){while(1)switch(_context263.p=_context263.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context263.p=1;_context263.n=2;return 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));case 2:return _context263.a(2,_context263.v);case 3:_context263.p=3;_t263=_context263.v;if(uniffiIsDebug&&_t263 instanceof Error){_t263.stack=__stack;}throw _t263;case 4:return _context263.a(2);}},_callee263,null,[[1,3]]);}));function sendPollResponse(_x522,_x523,_x524){return _sendPollResponse.apply(this,arguments);}return sendPollResponse;}()},{key:"sendReadReceipt",value:function(){var _sendReadReceipt=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee264(receiptType,eventId,asyncOpts_){var _this1078=this;var __stack,_t264;return _regenerator().w(function(_context264){while(1)switch(_context264.p=_context264.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context264.p=1;_context264.n=2;return 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));case 2:return _context264.a(2,_context264.v);case 3:_context264.p=3;_t264=_context264.v;if(uniffiIsDebug&&_t264 instanceof Error){_t264.stack=__stack;}throw _t264;case 4:return _context264.a(2);}},_callee264,null,[[1,3]]);}));function sendReadReceipt(_x525,_x526,_x527){return _sendReadReceipt.apply(this,arguments);}return sendReadReceipt;}()/**
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:(function(){var _sendReply=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee265(msg,eventId,asyncOpts_){var _this1079=this;var __stack,_t265;return _regenerator().w(function(_context265){while(1)switch(_context265.p=_context265.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context265.p=1;_context265.n=2;return 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));case 2:return _context265.a(2,_context265.v);case 3:_context265.p=3;_t265=_context265.v;if(uniffiIsDebug&&_t265 instanceof Error){_t265.stack=__stack;}throw _t265;case 4:return _context265.a(2);}},_callee265,null,[[1,3]]);}));function sendReply(_x528,_x529,_x530){return _sendReply.apply(this,arguments);}return sendReply;}())},{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:function(){var _subscribeToBackPaginationStatus=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee266(listener,asyncOpts_){var _this1082=this;var __stack,_t266;return _regenerator().w(function(_context266){while(1)switch(_context266.p=_context266.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context266.p=1;_context266.n=2;return 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));case 2:return _context266.a(2,_context266.v);case 3:_context266.p=3;_t266=_context266.v;if(uniffiIsDebug&&_t266 instanceof Error){_t266.stack=__stack;}throw _t266;case 4:return _context266.a(2);}},_callee266,null,[[1,3]]);}));function subscribeToBackPaginationStatus(_x531,_x532){return _subscribeToBackPaginationStatus.apply(this,arguments);}return subscribeToBackPaginationStatus;}()/**
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:(function(){var _toggleReaction=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee267(itemId,key,asyncOpts_){var _this1083=this;var __stack,_t267;return _regenerator().w(function(_context267){while(1)switch(_context267.p=_context267.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context267.p=1;_context267.n=2;return 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));case 2:return _context267.a(2,_context267.v);case 3:_context267.p=3;_t267=_context267.v;if(uniffiIsDebug&&_t267 instanceof Error){_t267.stack=__stack;}throw _t267;case 4:return _context267.a(2);}},_callee267,null,[[1,3]]);}));function toggleReaction(_x533,_x534,_x535){return _toggleReaction.apply(this,arguments);}return toggleReaction;}()/**
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
- */)},{key:"unpinEvent",value:(function(){var _unpinEvent=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee268(eventId,asyncOpts_){var _this1084=this;var __stack,_t268;return _regenerator().w(function(_context268){while(1)switch(_context268.p=_context268.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context268.p=1;_context268.n=2;return 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));case 2:return _context268.a(2,_context268.v);case 3:_context268.p=3;_t268=_context268.v;if(uniffiIsDebug&&_t268 instanceof Error){_t268.stack=__stack;}throw _t268;case 4:return _context268.a(2);}},_callee268,null,[[1,3]]);}));function unpinEvent(_x536,_x537){return _unpinEvent.apply(this,arguments);}return unpinEvent;}()/**
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
- */)},{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" />
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:(function(){var _pin=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee269(asyncOpts_){var _this1105=this;var __stack,_t269;return _regenerator().w(function(_context269){while(1)switch(_context269.p=_context269.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context269.p=1;_context269.n=2;return 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));case 2:return _context269.a(2,_context269.v);case 3:_context269.p=3;_t269=_context269.v;if(uniffiIsDebug&&_t269 instanceof Error){_t269.stack=__stack;}throw _t269;case 4:return _context269.a(2);}},_callee269,null,[[1,3]]);}));function pin(_x538){return _pin.apply(this,arguments);}return pin;}()/**
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
- */)},{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));}/**
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:(function(){var _withdrawVerification=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee270(asyncOpts_){var _this1107=this;var __stack,_t270;return _regenerator().w(function(_context270){while(1)switch(_context270.p=_context270.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context270.p=1;_context270.n=2;return 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));case 2:return _context270.a(2,_context270.v);case 3:_context270.p=3;_t270=_context270.v;if(uniffiIsDebug&&_t270 instanceof Error){_t270.stack=__stack;}throw _t270;case 4:return _context270.a(2);}},_callee270,null,[[1,3]]);}));function withdrawVerification(_x539){return _withdrawVerification.apply(this,arguments);}return withdrawVerification;}()/**
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
- */)},{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" />
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:function(){var _run=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee271(room,capabilitiesProvider,asyncOpts_){var _this1109=this;var __stack,_t271;return _regenerator().w(function(_context271){while(1)switch(_context271.p=_context271.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context271.p=1;_context271.n=2;return 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_);case 2:return _context271.a(2,_context271.v);case 3:_context271.p=3;_t271=_context271.v;if(uniffiIsDebug&&_t271 instanceof Error){_t271.stack=__stack;}throw _t271;case 4:return _context271.a(2);}},_callee271,null,[[1,3]]);}));function run(_x540,_x541,_x542){return _run.apply(this,arguments);}return run;}()/**
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:(function(){var _recv=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee272(asyncOpts_){var _this1111=this;var __stack,_t272;return _regenerator().w(function(_context272){while(1)switch(_context272.p=_context272.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context272.p=1;_context272.n=2;return 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_);case 2:return _context272.a(2,_context272.v);case 3:_context272.p=3;_t272=_context272.v;if(uniffiIsDebug&&_t272 instanceof Error){_t272.stack=__stack;}throw _t272;case 4:return _context272.a(2);}},_callee272,null,[[1,3]]);}));function recv(_x543){return _recv.apply(this,arguments);}return recv;}()/**
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
- */)},{key:"send",value:(function(){var _send3=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee273(msg,asyncOpts_){var _this1112=this;var __stack,_t273;return _regenerator().w(function(_context273){while(1)switch(_context273.p=_context273.n){case 0:__stack=uniffiIsDebug?new Error().stack:undefined;_context273.p=1;_context273.n=2;return 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_);case 2:return _context273.a(2,_context273.v);case 3:_context273.p=3;_t273=_context273.v;if(uniffiIsDebug&&_t273 instanceof Error){_t273.stack=__stack;}throw _t273;case 4:return _context273.a(2);}},_callee273,null,[[1,3]]);}));function send(_x544,_x545){return _send3.apply(this,arguments);}return send;}()/**
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
- */)},{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" />
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