ffi-bindings 1.0.2 → 1.0.4

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,13 +1,4 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = exports.UtdCause = exports.TrustRequirement = exports.SignatureState = exports.SecretsBundle = exports.QrCodeIntent = exports.LoginQrCodeDecodeError_Tags = exports.LoginQrCodeDecodeError = exports.LocalTrust = exports.IdentityState = exports.DecryptionSettings = exports.CrossSigningSecrets = exports.CollectStrategy = exports.BackupSecrets = void 0;
7
- var wasmBundle = _interopRequireWildcard(require("./wasm-bindgen/index.js"));
8
- var _uniffiBindgenReactNative = require("uniffi-bindgen-react-native");
9
1
  var _process;
10
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
11
2
  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; }
12
3
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
13
4
  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); } }
@@ -21,14 +12,21 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
21
12
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
22
13
  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); }
23
14
  function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
24
- 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.
15
+ 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); }
16
+ // This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
25
17
  // Trust me, you don't want to mess with it!
26
- /* tslint:disable */ /* eslint-disable */ // @ts-nocheck
18
+
19
+ /* tslint:disable */
20
+ /* eslint-disable */
21
+ // @ts-nocheck
22
+ import * as wasmBundle from "./wasm-bindgen/index.js";
23
+ import { AbstractFfiConverterByteArray, FfiConverterInt32, FfiConverterObject, UniffiAbstractObject, UniffiError, UniffiInternalError, UniffiRustCaller, destructorGuardSymbol, pointerLiteralSymbol, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiTypeNameSymbol, variantOrdinalSymbol } from "uniffi-bindgen-react-native";
24
+
27
25
  // Get converters from the other files, if any.
28
26
  var nativeModule = function nativeModule() {
29
27
  return wasmBundle;
30
28
  };
31
- var uniffiCaller = new _uniffiBindgenReactNative.UniffiRustCaller(function () {
29
+ var uniffiCaller = new UniffiRustCaller(function () {
32
30
  return new wasmBundle.RustCallStatus();
33
31
  });
34
32
  var uniffiIsDebug =
@@ -45,12 +43,12 @@ var uniffiIsDebug =
45
43
  /**
46
44
  * Generated factory for {@link DecryptionSettings} record objects.
47
45
  */
48
- var DecryptionSettings = exports.DecryptionSettings = function () {
46
+ export var DecryptionSettings = function () {
49
47
  var _defaults = function defaults() {
50
48
  return {};
51
49
  };
52
50
  var create = function () {
53
- return (0, _uniffiBindgenReactNative.uniffiCreateRecord)(_defaults);
51
+ return uniffiCreateRecord(_defaults);
54
52
  }();
55
53
  return Object.freeze({
56
54
  create: create,
@@ -85,7 +83,7 @@ var FfiConverterTypeDecryptionSettings = function () {
85
83
  return FfiConverterTypeTrustRequirement.allocationSize(value.senderDeviceTrustRequirement);
86
84
  }
87
85
  }]);
88
- }(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
86
+ }(AbstractFfiConverterByteArray);
89
87
  ;
90
88
  return new FFIConverter();
91
89
  }();
@@ -104,13 +102,13 @@ var stringConverter = function () {
104
102
  }
105
103
  };
106
104
  }();
107
- var FfiConverterString = (0, _uniffiBindgenReactNative.uniffiCreateFfiConverterString)(stringConverter);
105
+ var FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
108
106
 
109
107
  /**
110
108
  * Strategy to collect the devices that should receive room keys for the
111
109
  * current discussion.
112
110
  */
113
- var CollectStrategy = exports.CollectStrategy = /*#__PURE__*/function (CollectStrategy) {
111
+ export var CollectStrategy = /*#__PURE__*/function (CollectStrategy) {
114
112
  /**
115
113
  * Share with all (unblacklisted) devices.
116
114
  *
@@ -178,7 +176,7 @@ var CollectStrategy = exports.CollectStrategy = /*#__PURE__*/function (CollectSt
178
176
  return CollectStrategy;
179
177
  }({});
180
178
  var FfiConverterTypeCollectStrategy = function () {
181
- var ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
179
+ var ordinalConverter = FfiConverterInt32;
182
180
  var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter2) {
183
181
  function FFIConverter() {
184
182
  _classCallCheck(this, FFIConverter);
@@ -198,7 +196,7 @@ var FfiConverterTypeCollectStrategy = function () {
198
196
  case 4:
199
197
  return CollectStrategy.OnlyTrustedDevices;
200
198
  default:
201
- throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
199
+ throw new UniffiInternalError.UnexpectedEnumCase();
202
200
  }
203
201
  }
204
202
  }, {
@@ -221,14 +219,14 @@ var FfiConverterTypeCollectStrategy = function () {
221
219
  return ordinalConverter.allocationSize(0);
222
220
  }
223
221
  }]);
224
- }(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
222
+ }(AbstractFfiConverterByteArray);
225
223
  return new FFIConverter();
226
224
  }();
227
225
 
228
226
  /**
229
227
  * The state of an identity - verified, pinned etc.
230
228
  */
231
- var IdentityState = exports.IdentityState = /*#__PURE__*/function (IdentityState) {
229
+ export var IdentityState = /*#__PURE__*/function (IdentityState) {
232
230
  /**
233
231
  * The user is verified with us
234
232
  */
@@ -257,7 +255,7 @@ var IdentityState = exports.IdentityState = /*#__PURE__*/function (IdentityState
257
255
  return IdentityState;
258
256
  }({});
259
257
  var FfiConverterTypeIdentityState = function () {
260
- var ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
258
+ var ordinalConverter = FfiConverterInt32;
261
259
  var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter3) {
262
260
  function FFIConverter() {
263
261
  _classCallCheck(this, FFIConverter);
@@ -277,7 +275,7 @@ var FfiConverterTypeIdentityState = function () {
277
275
  case 4:
278
276
  return IdentityState.VerificationViolation;
279
277
  default:
280
- throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
278
+ throw new UniffiInternalError.UnexpectedEnumCase();
281
279
  }
282
280
  }
283
281
  }, {
@@ -300,14 +298,14 @@ var FfiConverterTypeIdentityState = function () {
300
298
  return ordinalConverter.allocationSize(0);
301
299
  }
302
300
  }]);
303
- }(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
301
+ }(AbstractFfiConverterByteArray);
304
302
  return new FFIConverter();
305
303
  }();
306
304
 
307
305
  /**
308
306
  * The local trust state of a device.
309
307
  */
310
- var LocalTrust = exports.LocalTrust = /*#__PURE__*/function (LocalTrust) {
308
+ export var LocalTrust = /*#__PURE__*/function (LocalTrust) {
311
309
  /**
312
310
  * The device has been verified and is trusted.
313
311
  */
@@ -327,7 +325,7 @@ var LocalTrust = exports.LocalTrust = /*#__PURE__*/function (LocalTrust) {
327
325
  return LocalTrust;
328
326
  }({});
329
327
  var FfiConverterTypeLocalTrust = function () {
330
- var ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
328
+ var ordinalConverter = FfiConverterInt32;
331
329
  var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter4) {
332
330
  function FFIConverter() {
333
331
  _classCallCheck(this, FFIConverter);
@@ -347,7 +345,7 @@ var FfiConverterTypeLocalTrust = function () {
347
345
  case 4:
348
346
  return LocalTrust.Unset;
349
347
  default:
350
- throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
348
+ throw new UniffiInternalError.UnexpectedEnumCase();
351
349
  }
352
350
  }
353
351
  }, {
@@ -370,12 +368,12 @@ var FfiConverterTypeLocalTrust = function () {
370
368
  return ordinalConverter.allocationSize(0);
371
369
  }
372
370
  }]);
373
- }(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
371
+ }(AbstractFfiConverterByteArray);
374
372
  return new FFIConverter();
375
373
  }();
376
374
 
377
375
  // Flat error type: LoginQrCodeDecodeError
378
- var LoginQrCodeDecodeError_Tags = exports.LoginQrCodeDecodeError_Tags = /*#__PURE__*/function (LoginQrCodeDecodeError_Tags) {
376
+ export var LoginQrCodeDecodeError_Tags = /*#__PURE__*/function (LoginQrCodeDecodeError_Tags) {
379
377
  LoginQrCodeDecodeError_Tags["NotEnoughData"] = "NotEnoughData";
380
378
  LoginQrCodeDecodeError_Tags["NotUtf8"] = "NotUtf8";
381
379
  LoginQrCodeDecodeError_Tags["UrlParse"] = "UrlParse";
@@ -388,7 +386,7 @@ var LoginQrCodeDecodeError_Tags = exports.LoginQrCodeDecodeError_Tags = /*#__PUR
388
386
  /**
389
387
  * Error type for the decoding of the [`QrCodeData`].
390
388
  */
391
- var LoginQrCodeDecodeError = exports.LoginQrCodeDecodeError = function () {
389
+ export var LoginQrCodeDecodeError = function () {
392
390
  /**
393
391
  * The QR code data is no long enough, it's missing some fields.
394
392
  */
@@ -401,12 +399,12 @@ var LoginQrCodeDecodeError = exports.LoginQrCodeDecodeError = function () {
401
399
  * @private
402
400
  * This field is private and should not be used.
403
401
  */
404
- _defineProperty(_this, _uniffiBindgenReactNative.uniffiTypeNameSymbol, "LoginQrCodeDecodeError");
402
+ _defineProperty(_this, uniffiTypeNameSymbol, "LoginQrCodeDecodeError");
405
403
  /**
406
404
  * @private
407
405
  * This field is private and should not be used.
408
406
  */
409
- _defineProperty(_this, _uniffiBindgenReactNative.variantOrdinalSymbol, 1);
407
+ _defineProperty(_this, variantOrdinalSymbol, 1);
410
408
  _defineProperty(_this, "tag", LoginQrCodeDecodeError_Tags.NotEnoughData);
411
409
  return _this;
412
410
  }
@@ -414,10 +412,10 @@ var LoginQrCodeDecodeError = exports.LoginQrCodeDecodeError = function () {
414
412
  return _createClass(NotEnoughData, null, [{
415
413
  key: "instanceOf",
416
414
  value: function instanceOf(e) {
417
- return _instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 1;
415
+ return _instanceOf(e) && e[variantOrdinalSymbol] === 1;
418
416
  }
419
417
  }]);
420
- }(_uniffiBindgenReactNative.UniffiError);
418
+ }(UniffiError);
421
419
  /**
422
420
  * One of the URLs in the QR code data is not a valid UTF-8 encoded string.
423
421
  */
@@ -430,12 +428,12 @@ var LoginQrCodeDecodeError = exports.LoginQrCodeDecodeError = function () {
430
428
  * @private
431
429
  * This field is private and should not be used.
432
430
  */
433
- _defineProperty(_this2, _uniffiBindgenReactNative.uniffiTypeNameSymbol, "LoginQrCodeDecodeError");
431
+ _defineProperty(_this2, uniffiTypeNameSymbol, "LoginQrCodeDecodeError");
434
432
  /**
435
433
  * @private
436
434
  * This field is private and should not be used.
437
435
  */
438
- _defineProperty(_this2, _uniffiBindgenReactNative.variantOrdinalSymbol, 2);
436
+ _defineProperty(_this2, variantOrdinalSymbol, 2);
439
437
  _defineProperty(_this2, "tag", LoginQrCodeDecodeError_Tags.NotUtf8);
440
438
  return _this2;
441
439
  }
@@ -443,10 +441,10 @@ var LoginQrCodeDecodeError = exports.LoginQrCodeDecodeError = function () {
443
441
  return _createClass(NotUtf8, null, [{
444
442
  key: "instanceOf",
445
443
  value: function instanceOf(e) {
446
- return _instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 2;
444
+ return _instanceOf(e) && e[variantOrdinalSymbol] === 2;
447
445
  }
448
446
  }]);
449
- }(_uniffiBindgenReactNative.UniffiError);
447
+ }(UniffiError);
450
448
  /**
451
449
  * One of the URLs in the QR code data could not be parsed.
452
450
  */
@@ -459,12 +457,12 @@ var LoginQrCodeDecodeError = exports.LoginQrCodeDecodeError = function () {
459
457
  * @private
460
458
  * This field is private and should not be used.
461
459
  */
462
- _defineProperty(_this3, _uniffiBindgenReactNative.uniffiTypeNameSymbol, "LoginQrCodeDecodeError");
460
+ _defineProperty(_this3, uniffiTypeNameSymbol, "LoginQrCodeDecodeError");
463
461
  /**
464
462
  * @private
465
463
  * This field is private and should not be used.
466
464
  */
467
- _defineProperty(_this3, _uniffiBindgenReactNative.variantOrdinalSymbol, 3);
465
+ _defineProperty(_this3, variantOrdinalSymbol, 3);
468
466
  _defineProperty(_this3, "tag", LoginQrCodeDecodeError_Tags.UrlParse);
469
467
  return _this3;
470
468
  }
@@ -472,10 +470,10 @@ var LoginQrCodeDecodeError = exports.LoginQrCodeDecodeError = function () {
472
470
  return _createClass(UrlParse, null, [{
473
471
  key: "instanceOf",
474
472
  value: function instanceOf(e) {
475
- return _instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 3;
473
+ return _instanceOf(e) && e[variantOrdinalSymbol] === 3;
476
474
  }
477
475
  }]);
478
- }(_uniffiBindgenReactNative.UniffiError);
476
+ }(UniffiError);
479
477
  /**
480
478
  * The QR code data contains an invalid intent, we expect the login
481
479
  * intent or the reciprocate intent.
@@ -489,12 +487,12 @@ var LoginQrCodeDecodeError = exports.LoginQrCodeDecodeError = function () {
489
487
  * @private
490
488
  * This field is private and should not be used.
491
489
  */
492
- _defineProperty(_this4, _uniffiBindgenReactNative.uniffiTypeNameSymbol, "LoginQrCodeDecodeError");
490
+ _defineProperty(_this4, uniffiTypeNameSymbol, "LoginQrCodeDecodeError");
493
491
  /**
494
492
  * @private
495
493
  * This field is private and should not be used.
496
494
  */
497
- _defineProperty(_this4, _uniffiBindgenReactNative.variantOrdinalSymbol, 4);
495
+ _defineProperty(_this4, variantOrdinalSymbol, 4);
498
496
  _defineProperty(_this4, "tag", LoginQrCodeDecodeError_Tags.InvalidIntent);
499
497
  return _this4;
500
498
  }
@@ -502,10 +500,10 @@ var LoginQrCodeDecodeError = exports.LoginQrCodeDecodeError = function () {
502
500
  return _createClass(InvalidIntent, null, [{
503
501
  key: "instanceOf",
504
502
  value: function instanceOf(e) {
505
- return _instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 4;
503
+ return _instanceOf(e) && e[variantOrdinalSymbol] === 4;
506
504
  }
507
505
  }]);
508
- }(_uniffiBindgenReactNative.UniffiError);
506
+ }(UniffiError);
509
507
  /**
510
508
  * The QR code data contains an unsupported type.
511
509
  */
@@ -518,12 +516,12 @@ var LoginQrCodeDecodeError = exports.LoginQrCodeDecodeError = function () {
518
516
  * @private
519
517
  * This field is private and should not be used.
520
518
  */
521
- _defineProperty(_this5, _uniffiBindgenReactNative.uniffiTypeNameSymbol, "LoginQrCodeDecodeError");
519
+ _defineProperty(_this5, uniffiTypeNameSymbol, "LoginQrCodeDecodeError");
522
520
  /**
523
521
  * @private
524
522
  * This field is private and should not be used.
525
523
  */
526
- _defineProperty(_this5, _uniffiBindgenReactNative.variantOrdinalSymbol, 5);
524
+ _defineProperty(_this5, variantOrdinalSymbol, 5);
527
525
  _defineProperty(_this5, "tag", LoginQrCodeDecodeError_Tags.InvalidType);
528
526
  return _this5;
529
527
  }
@@ -531,10 +529,10 @@ var LoginQrCodeDecodeError = exports.LoginQrCodeDecodeError = function () {
531
529
  return _createClass(InvalidType, null, [{
532
530
  key: "instanceOf",
533
531
  value: function instanceOf(e) {
534
- return _instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 5;
532
+ return _instanceOf(e) && e[variantOrdinalSymbol] === 5;
535
533
  }
536
534
  }]);
537
- }(_uniffiBindgenReactNative.UniffiError);
535
+ }(UniffiError);
538
536
  /**
539
537
  * The base64 encoded variant of the QR code data is not a valid base64
540
538
  * string.
@@ -548,12 +546,12 @@ var LoginQrCodeDecodeError = exports.LoginQrCodeDecodeError = function () {
548
546
  * @private
549
547
  * This field is private and should not be used.
550
548
  */
551
- _defineProperty(_this6, _uniffiBindgenReactNative.uniffiTypeNameSymbol, "LoginQrCodeDecodeError");
549
+ _defineProperty(_this6, uniffiTypeNameSymbol, "LoginQrCodeDecodeError");
552
550
  /**
553
551
  * @private
554
552
  * This field is private and should not be used.
555
553
  */
556
- _defineProperty(_this6, _uniffiBindgenReactNative.variantOrdinalSymbol, 6);
554
+ _defineProperty(_this6, variantOrdinalSymbol, 6);
557
555
  _defineProperty(_this6, "tag", LoginQrCodeDecodeError_Tags.Base64);
558
556
  return _this6;
559
557
  }
@@ -561,10 +559,10 @@ var LoginQrCodeDecodeError = exports.LoginQrCodeDecodeError = function () {
561
559
  return _createClass(Base64, null, [{
562
560
  key: "instanceOf",
563
561
  value: function instanceOf(e) {
564
- return _instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 6;
562
+ return _instanceOf(e) && e[variantOrdinalSymbol] === 6;
565
563
  }
566
564
  }]);
567
- }(_uniffiBindgenReactNative.UniffiError);
565
+ }(UniffiError);
568
566
  /**
569
567
  * The QR code data doesn't contain the expected `MATRIX` prefix.
570
568
  */
@@ -577,12 +575,12 @@ var LoginQrCodeDecodeError = exports.LoginQrCodeDecodeError = function () {
577
575
  * @private
578
576
  * This field is private and should not be used.
579
577
  */
580
- _defineProperty(_this7, _uniffiBindgenReactNative.uniffiTypeNameSymbol, "LoginQrCodeDecodeError");
578
+ _defineProperty(_this7, uniffiTypeNameSymbol, "LoginQrCodeDecodeError");
581
579
  /**
582
580
  * @private
583
581
  * This field is private and should not be used.
584
582
  */
585
- _defineProperty(_this7, _uniffiBindgenReactNative.variantOrdinalSymbol, 7);
583
+ _defineProperty(_this7, variantOrdinalSymbol, 7);
586
584
  _defineProperty(_this7, "tag", LoginQrCodeDecodeError_Tags.InvalidPrefix);
587
585
  return _this7;
588
586
  }
@@ -590,12 +588,12 @@ var LoginQrCodeDecodeError = exports.LoginQrCodeDecodeError = function () {
590
588
  return _createClass(InvalidPrefix, null, [{
591
589
  key: "instanceOf",
592
590
  value: function instanceOf(e) {
593
- return _instanceOf(e) && e[_uniffiBindgenReactNative.variantOrdinalSymbol] === 7;
591
+ return _instanceOf(e) && e[variantOrdinalSymbol] === 7;
594
592
  }
595
593
  }]);
596
- }(_uniffiBindgenReactNative.UniffiError); // Utility function which does not rely on instanceof.
594
+ }(UniffiError); // Utility function which does not rely on instanceof.
597
595
  function _instanceOf(e) {
598
- return e[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "LoginQrCodeDecodeError";
596
+ return e[uniffiTypeNameSymbol] === "LoginQrCodeDecodeError";
599
597
  }
600
598
  return {
601
599
  NotEnoughData: NotEnoughData,
@@ -616,7 +614,7 @@ var LoginQrCodeDecodeError = exports.LoginQrCodeDecodeError = function () {
616
614
  */
617
615
 
618
616
  var FfiConverterTypeLoginQrCodeDecodeError = function () {
619
- var intConverter = _uniffiBindgenReactNative.FfiConverterInt32;
617
+ var intConverter = FfiConverterInt32;
620
618
  var FfiConverter = /*#__PURE__*/function (_AbstractFfiConverter5) {
621
619
  function FfiConverter() {
622
620
  _classCallCheck(this, FfiConverter);
@@ -642,14 +640,14 @@ var FfiConverterTypeLoginQrCodeDecodeError = function () {
642
640
  case 7:
643
641
  return new LoginQrCodeDecodeError.InvalidPrefix(FfiConverterString.read(from));
644
642
  default:
645
- throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
643
+ throw new UniffiInternalError.UnexpectedEnumCase();
646
644
  }
647
645
  }
648
646
  }, {
649
647
  key: "write",
650
648
  value: function write(value, into) {
651
649
  var obj = value;
652
- var index = obj[_uniffiBindgenReactNative.variantOrdinalSymbol];
650
+ var index = obj[variantOrdinalSymbol];
653
651
  intConverter.write(index, into);
654
652
  }
655
653
  }, {
@@ -658,7 +656,7 @@ var FfiConverterTypeLoginQrCodeDecodeError = function () {
658
656
  return intConverter.allocationSize(0);
659
657
  }
660
658
  }]);
661
- }(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
659
+ }(AbstractFfiConverterByteArray);
662
660
  return new FfiConverter();
663
661
  }();
664
662
 
@@ -671,7 +669,7 @@ var FfiConverterTypeLoginQrCodeDecodeError = function () {
671
669
  * The different intents have an explicit one-byte identifier which gets added
672
670
  * to the QR code data.
673
671
  */
674
- var QrCodeIntent = exports.QrCodeIntent = /*#__PURE__*/function (QrCodeIntent) {
672
+ export var QrCodeIntent = /*#__PURE__*/function (QrCodeIntent) {
675
673
  /**
676
674
  * Enum variant for the case where the new device is displaying the QR
677
675
  * code.
@@ -685,7 +683,7 @@ var QrCodeIntent = exports.QrCodeIntent = /*#__PURE__*/function (QrCodeIntent) {
685
683
  return QrCodeIntent;
686
684
  }({});
687
685
  var FfiConverterTypeQrCodeIntent = function () {
688
- var ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
686
+ var ordinalConverter = FfiConverterInt32;
689
687
  var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter6) {
690
688
  function FFIConverter() {
691
689
  _classCallCheck(this, FFIConverter);
@@ -701,7 +699,7 @@ var FfiConverterTypeQrCodeIntent = function () {
701
699
  case 2:
702
700
  return QrCodeIntent.Reciprocate;
703
701
  default:
704
- throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
702
+ throw new UniffiInternalError.UnexpectedEnumCase();
705
703
  }
706
704
  }
707
705
  }, {
@@ -720,14 +718,14 @@ var FfiConverterTypeQrCodeIntent = function () {
720
718
  return ordinalConverter.allocationSize(0);
721
719
  }
722
720
  }]);
723
- }(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
721
+ }(AbstractFfiConverterByteArray);
724
722
  return new FFIConverter();
725
723
  }();
726
724
 
727
725
  /**
728
726
  * The result of a signature check.
729
727
  */
730
- var SignatureState = exports.SignatureState = /*#__PURE__*/function (SignatureState) {
728
+ export var SignatureState = /*#__PURE__*/function (SignatureState) {
731
729
  /**
732
730
  * The signature is missing.
733
731
  */
@@ -749,7 +747,7 @@ var SignatureState = exports.SignatureState = /*#__PURE__*/function (SignatureSt
749
747
  return SignatureState;
750
748
  }({});
751
749
  var FfiConverterTypeSignatureState = function () {
752
- var ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
750
+ var ordinalConverter = FfiConverterInt32;
753
751
  var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter7) {
754
752
  function FFIConverter() {
755
753
  _classCallCheck(this, FFIConverter);
@@ -769,7 +767,7 @@ var FfiConverterTypeSignatureState = function () {
769
767
  case 4:
770
768
  return SignatureState.ValidAndTrusted;
771
769
  default:
772
- throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
770
+ throw new UniffiInternalError.UnexpectedEnumCase();
773
771
  }
774
772
  }
775
773
  }, {
@@ -792,7 +790,7 @@ var FfiConverterTypeSignatureState = function () {
792
790
  return ordinalConverter.allocationSize(0);
793
791
  }
794
792
  }]);
795
- }(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
793
+ }(AbstractFfiConverterByteArray);
796
794
  return new FFIConverter();
797
795
  }();
798
796
 
@@ -800,7 +798,7 @@ var FfiConverterTypeSignatureState = function () {
800
798
  * The trust level in the sender's device that is required to decrypt an
801
799
  * event.
802
800
  */
803
- var TrustRequirement = exports.TrustRequirement = /*#__PURE__*/function (TrustRequirement) {
801
+ export var TrustRequirement = /*#__PURE__*/function (TrustRequirement) {
804
802
  /**
805
803
  * Decrypt events from everyone regardless of trust.
806
804
  *
@@ -821,7 +819,7 @@ var TrustRequirement = exports.TrustRequirement = /*#__PURE__*/function (TrustRe
821
819
  return TrustRequirement;
822
820
  }({});
823
821
  var FfiConverterTypeTrustRequirement = function () {
824
- var ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
822
+ var ordinalConverter = FfiConverterInt32;
825
823
  var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter8) {
826
824
  function FFIConverter() {
827
825
  _classCallCheck(this, FFIConverter);
@@ -839,7 +837,7 @@ var FfiConverterTypeTrustRequirement = function () {
839
837
  case 3:
840
838
  return TrustRequirement.CrossSigned;
841
839
  default:
842
- throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
840
+ throw new UniffiInternalError.UnexpectedEnumCase();
843
841
  }
844
842
  }
845
843
  }, {
@@ -860,14 +858,14 @@ var FfiConverterTypeTrustRequirement = function () {
860
858
  return ordinalConverter.allocationSize(0);
861
859
  }
862
860
  }]);
863
- }(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
861
+ }(AbstractFfiConverterByteArray);
864
862
  return new FFIConverter();
865
863
  }();
866
864
 
867
865
  /**
868
866
  * Our best guess at the reason why an event can't be decrypted.
869
867
  */
870
- var UtdCause = exports.UtdCause = /*#__PURE__*/function (UtdCause) {
868
+ export var UtdCause = /*#__PURE__*/function (UtdCause) {
871
869
  /**
872
870
  * We don't have an explanation for why this UTD happened - it is probably
873
871
  * a bug, or a network split between the two homeservers.
@@ -953,7 +951,7 @@ var UtdCause = exports.UtdCause = /*#__PURE__*/function (UtdCause) {
953
951
  return UtdCause;
954
952
  }({});
955
953
  var FfiConverterTypeUtdCause = function () {
956
- var ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
954
+ var ordinalConverter = FfiConverterInt32;
957
955
  var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter9) {
958
956
  function FFIConverter() {
959
957
  _classCallCheck(this, FFIConverter);
@@ -983,7 +981,7 @@ var FfiConverterTypeUtdCause = function () {
983
981
  case 9:
984
982
  return UtdCause.HistoricalMessageAndDeviceIsUnverified;
985
983
  default:
986
- throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
984
+ throw new UniffiInternalError.UnexpectedEnumCase();
987
985
  }
988
986
  }
989
987
  }, {
@@ -1016,7 +1014,7 @@ var FfiConverterTypeUtdCause = function () {
1016
1014
  return ordinalConverter.allocationSize(0);
1017
1015
  }
1018
1016
  }]);
1019
- }(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
1017
+ }(AbstractFfiConverterByteArray);
1020
1018
  return new FFIConverter();
1021
1019
  }();
1022
1020
 
@@ -1027,20 +1025,21 @@ var FfiConverterTypeUtdCause = function () {
1027
1025
  /**
1028
1026
  * @deprecated Use `BackupSecretsLike` instead.
1029
1027
  */
1028
+
1030
1029
  /**
1031
1030
  * Enum for the algorithm-specific secrets for the room key backup.
1032
1031
  */
1033
- var BackupSecrets = exports.BackupSecrets = /*#__PURE__*/function (_UniffiAbstractObject) {
1032
+ export var BackupSecrets = /*#__PURE__*/function (_UniffiAbstractObject) {
1034
1033
  // No primary constructor declared for this class.
1035
1034
  function BackupSecrets(pointer) {
1036
1035
  var _this8;
1037
1036
  _classCallCheck(this, BackupSecrets);
1038
1037
  _this8 = _callSuper(this, BackupSecrets);
1039
- _defineProperty(_this8, _uniffiBindgenReactNative.uniffiTypeNameSymbol, "BackupSecrets");
1040
- _defineProperty(_this8, _uniffiBindgenReactNative.destructorGuardSymbol, void 0);
1041
- _defineProperty(_this8, _uniffiBindgenReactNative.pointerLiteralSymbol, void 0);
1042
- _this8[_uniffiBindgenReactNative.pointerLiteralSymbol] = pointer;
1043
- _this8[_uniffiBindgenReactNative.destructorGuardSymbol] = uniffiTypeBackupSecretsObjectFactory.bless(pointer);
1038
+ _defineProperty(_this8, uniffiTypeNameSymbol, "BackupSecrets");
1039
+ _defineProperty(_this8, destructorGuardSymbol, void 0);
1040
+ _defineProperty(_this8, pointerLiteralSymbol, void 0);
1041
+ _this8[pointerLiteralSymbol] = pointer;
1042
+ _this8[destructorGuardSymbol] = uniffiTypeBackupSecretsObjectFactory.bless(pointer);
1044
1043
  return _this8;
1045
1044
  }
1046
1045
 
@@ -1051,12 +1050,12 @@ var BackupSecrets = exports.BackupSecrets = /*#__PURE__*/function (_UniffiAbstra
1051
1050
  return _createClass(BackupSecrets, [{
1052
1051
  key: "uniffiDestroy",
1053
1052
  value: function uniffiDestroy() {
1054
- var ptr = this[_uniffiBindgenReactNative.destructorGuardSymbol];
1053
+ var ptr = this[destructorGuardSymbol];
1055
1054
  if (ptr !== undefined) {
1056
1055
  var pointer = uniffiTypeBackupSecretsObjectFactory.pointer(this);
1057
1056
  uniffiTypeBackupSecretsObjectFactory.freePointer(pointer);
1058
1057
  uniffiTypeBackupSecretsObjectFactory.unbless(ptr);
1059
- delete this[_uniffiBindgenReactNative.destructorGuardSymbol];
1058
+ delete this[destructorGuardSymbol];
1060
1059
  }
1061
1060
  }
1062
1061
  }], [{
@@ -1065,7 +1064,7 @@ var BackupSecrets = exports.BackupSecrets = /*#__PURE__*/function (_UniffiAbstra
1065
1064
  return uniffiTypeBackupSecretsObjectFactory.isConcreteType(obj);
1066
1065
  }
1067
1066
  }]);
1068
- }(_uniffiBindgenReactNative.UniffiAbstractObject);
1067
+ }(UniffiAbstractObject);
1069
1068
  var uniffiTypeBackupSecretsObjectFactory = function () {
1070
1069
  /// <reference lib="es2021" />
1071
1070
  var registry = typeof FinalizationRegistry !== 'undefined' ? new FinalizationRegistry(function (heldValue) {
@@ -1074,9 +1073,9 @@ var uniffiTypeBackupSecretsObjectFactory = function () {
1074
1073
  return {
1075
1074
  create: function create(pointer) {
1076
1075
  var instance = Object.create(BackupSecrets.prototype);
1077
- instance[_uniffiBindgenReactNative.pointerLiteralSymbol] = pointer;
1078
- instance[_uniffiBindgenReactNative.destructorGuardSymbol] = this.bless(pointer);
1079
- instance[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "BackupSecrets";
1076
+ instance[pointerLiteralSymbol] = pointer;
1077
+ instance[destructorGuardSymbol] = this.bless(pointer);
1078
+ instance[uniffiTypeNameSymbol] = "BackupSecrets";
1080
1079
  return instance;
1081
1080
  },
1082
1081
  bless: function bless(p) {
@@ -1098,10 +1097,10 @@ var uniffiTypeBackupSecretsObjectFactory = function () {
1098
1097
  }
1099
1098
  },
1100
1099
  pointer: function pointer(obj) {
1101
- if (obj[_uniffiBindgenReactNative.destructorGuardSymbol] === undefined) {
1102
- throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedNullPointer();
1100
+ if (obj[destructorGuardSymbol] === undefined) {
1101
+ throw new UniffiInternalError.UnexpectedNullPointer();
1103
1102
  }
1104
- return obj[_uniffiBindgenReactNative.pointerLiteralSymbol];
1103
+ return obj[pointerLiteralSymbol];
1105
1104
  },
1106
1105
  clonePointer: function clonePointer(obj) {
1107
1106
  var pointer = this.pointer(obj);
@@ -1115,12 +1114,12 @@ var uniffiTypeBackupSecretsObjectFactory = function () {
1115
1114
  }, /*liftString:*/FfiConverterString.lift);
1116
1115
  },
1117
1116
  isConcreteType: function isConcreteType(obj) {
1118
- return obj[_uniffiBindgenReactNative.destructorGuardSymbol] && obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "BackupSecrets";
1117
+ return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === "BackupSecrets";
1119
1118
  }
1120
1119
  };
1121
1120
  }();
1122
1121
  // FfiConverter for BackupSecretsLike
1123
- var FfiConverterTypeBackupSecrets = new _uniffiBindgenReactNative.FfiConverterObject(uniffiTypeBackupSecretsObjectFactory);
1122
+ var FfiConverterTypeBackupSecrets = new FfiConverterObject(uniffiTypeBackupSecretsObjectFactory);
1124
1123
 
1125
1124
  /**
1126
1125
  * Data for the secrets bundle containing the cross-signing keys.
@@ -1129,20 +1128,21 @@ var FfiConverterTypeBackupSecrets = new _uniffiBindgenReactNative.FfiConverterOb
1129
1128
  /**
1130
1129
  * @deprecated Use `CrossSigningSecretsLike` instead.
1131
1130
  */
1131
+
1132
1132
  /**
1133
1133
  * Data for the secrets bundle containing the cross-signing keys.
1134
1134
  */
1135
- var CrossSigningSecrets = exports.CrossSigningSecrets = /*#__PURE__*/function (_UniffiAbstractObject2) {
1135
+ export var CrossSigningSecrets = /*#__PURE__*/function (_UniffiAbstractObject2) {
1136
1136
  // No primary constructor declared for this class.
1137
1137
  function CrossSigningSecrets(pointer) {
1138
1138
  var _this9;
1139
1139
  _classCallCheck(this, CrossSigningSecrets);
1140
1140
  _this9 = _callSuper(this, CrossSigningSecrets);
1141
- _defineProperty(_this9, _uniffiBindgenReactNative.uniffiTypeNameSymbol, "CrossSigningSecrets");
1142
- _defineProperty(_this9, _uniffiBindgenReactNative.destructorGuardSymbol, void 0);
1143
- _defineProperty(_this9, _uniffiBindgenReactNative.pointerLiteralSymbol, void 0);
1144
- _this9[_uniffiBindgenReactNative.pointerLiteralSymbol] = pointer;
1145
- _this9[_uniffiBindgenReactNative.destructorGuardSymbol] = uniffiTypeCrossSigningSecretsObjectFactory.bless(pointer);
1141
+ _defineProperty(_this9, uniffiTypeNameSymbol, "CrossSigningSecrets");
1142
+ _defineProperty(_this9, destructorGuardSymbol, void 0);
1143
+ _defineProperty(_this9, pointerLiteralSymbol, void 0);
1144
+ _this9[pointerLiteralSymbol] = pointer;
1145
+ _this9[destructorGuardSymbol] = uniffiTypeCrossSigningSecretsObjectFactory.bless(pointer);
1146
1146
  return _this9;
1147
1147
  }
1148
1148
 
@@ -1153,12 +1153,12 @@ var CrossSigningSecrets = exports.CrossSigningSecrets = /*#__PURE__*/function (_
1153
1153
  return _createClass(CrossSigningSecrets, [{
1154
1154
  key: "uniffiDestroy",
1155
1155
  value: function uniffiDestroy() {
1156
- var ptr = this[_uniffiBindgenReactNative.destructorGuardSymbol];
1156
+ var ptr = this[destructorGuardSymbol];
1157
1157
  if (ptr !== undefined) {
1158
1158
  var pointer = uniffiTypeCrossSigningSecretsObjectFactory.pointer(this);
1159
1159
  uniffiTypeCrossSigningSecretsObjectFactory.freePointer(pointer);
1160
1160
  uniffiTypeCrossSigningSecretsObjectFactory.unbless(ptr);
1161
- delete this[_uniffiBindgenReactNative.destructorGuardSymbol];
1161
+ delete this[destructorGuardSymbol];
1162
1162
  }
1163
1163
  }
1164
1164
  }], [{
@@ -1167,7 +1167,7 @@ var CrossSigningSecrets = exports.CrossSigningSecrets = /*#__PURE__*/function (_
1167
1167
  return uniffiTypeCrossSigningSecretsObjectFactory.isConcreteType(obj);
1168
1168
  }
1169
1169
  }]);
1170
- }(_uniffiBindgenReactNative.UniffiAbstractObject);
1170
+ }(UniffiAbstractObject);
1171
1171
  var uniffiTypeCrossSigningSecretsObjectFactory = function () {
1172
1172
  /// <reference lib="es2021" />
1173
1173
  var registry = typeof FinalizationRegistry !== 'undefined' ? new FinalizationRegistry(function (heldValue) {
@@ -1176,9 +1176,9 @@ var uniffiTypeCrossSigningSecretsObjectFactory = function () {
1176
1176
  return {
1177
1177
  create: function create(pointer) {
1178
1178
  var instance = Object.create(CrossSigningSecrets.prototype);
1179
- instance[_uniffiBindgenReactNative.pointerLiteralSymbol] = pointer;
1180
- instance[_uniffiBindgenReactNative.destructorGuardSymbol] = this.bless(pointer);
1181
- instance[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "CrossSigningSecrets";
1179
+ instance[pointerLiteralSymbol] = pointer;
1180
+ instance[destructorGuardSymbol] = this.bless(pointer);
1181
+ instance[uniffiTypeNameSymbol] = "CrossSigningSecrets";
1182
1182
  return instance;
1183
1183
  },
1184
1184
  bless: function bless(p) {
@@ -1200,10 +1200,10 @@ var uniffiTypeCrossSigningSecretsObjectFactory = function () {
1200
1200
  }
1201
1201
  },
1202
1202
  pointer: function pointer(obj) {
1203
- if (obj[_uniffiBindgenReactNative.destructorGuardSymbol] === undefined) {
1204
- throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedNullPointer();
1203
+ if (obj[destructorGuardSymbol] === undefined) {
1204
+ throw new UniffiInternalError.UnexpectedNullPointer();
1205
1205
  }
1206
- return obj[_uniffiBindgenReactNative.pointerLiteralSymbol];
1206
+ return obj[pointerLiteralSymbol];
1207
1207
  },
1208
1208
  clonePointer: function clonePointer(obj) {
1209
1209
  var pointer = this.pointer(obj);
@@ -1217,12 +1217,12 @@ var uniffiTypeCrossSigningSecretsObjectFactory = function () {
1217
1217
  }, /*liftString:*/FfiConverterString.lift);
1218
1218
  },
1219
1219
  isConcreteType: function isConcreteType(obj) {
1220
- return obj[_uniffiBindgenReactNative.destructorGuardSymbol] && obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "CrossSigningSecrets";
1220
+ return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === "CrossSigningSecrets";
1221
1221
  }
1222
1222
  };
1223
1223
  }();
1224
1224
  // FfiConverter for CrossSigningSecretsLike
1225
- var FfiConverterTypeCrossSigningSecrets = new _uniffiBindgenReactNative.FfiConverterObject(uniffiTypeCrossSigningSecretsObjectFactory);
1225
+ var FfiConverterTypeCrossSigningSecrets = new FfiConverterObject(uniffiTypeCrossSigningSecretsObjectFactory);
1226
1226
 
1227
1227
  /**
1228
1228
  * Struct containing the bundle of secrets to fully activate a new devices for
@@ -1232,21 +1232,22 @@ var FfiConverterTypeCrossSigningSecrets = new _uniffiBindgenReactNative.FfiConve
1232
1232
  /**
1233
1233
  * @deprecated Use `SecretsBundleLike` instead.
1234
1234
  */
1235
+
1235
1236
  /**
1236
1237
  * Struct containing the bundle of secrets to fully activate a new devices for
1237
1238
  * end-to-end encryption.
1238
1239
  */
1239
- var SecretsBundle = exports.SecretsBundle = /*#__PURE__*/function (_UniffiAbstractObject3) {
1240
+ export var SecretsBundle = /*#__PURE__*/function (_UniffiAbstractObject3) {
1240
1241
  // No primary constructor declared for this class.
1241
1242
  function SecretsBundle(pointer) {
1242
1243
  var _this0;
1243
1244
  _classCallCheck(this, SecretsBundle);
1244
1245
  _this0 = _callSuper(this, SecretsBundle);
1245
- _defineProperty(_this0, _uniffiBindgenReactNative.uniffiTypeNameSymbol, "SecretsBundle");
1246
- _defineProperty(_this0, _uniffiBindgenReactNative.destructorGuardSymbol, void 0);
1247
- _defineProperty(_this0, _uniffiBindgenReactNative.pointerLiteralSymbol, void 0);
1248
- _this0[_uniffiBindgenReactNative.pointerLiteralSymbol] = pointer;
1249
- _this0[_uniffiBindgenReactNative.destructorGuardSymbol] = uniffiTypeSecretsBundleObjectFactory.bless(pointer);
1246
+ _defineProperty(_this0, uniffiTypeNameSymbol, "SecretsBundle");
1247
+ _defineProperty(_this0, destructorGuardSymbol, void 0);
1248
+ _defineProperty(_this0, pointerLiteralSymbol, void 0);
1249
+ _this0[pointerLiteralSymbol] = pointer;
1250
+ _this0[destructorGuardSymbol] = uniffiTypeSecretsBundleObjectFactory.bless(pointer);
1250
1251
  return _this0;
1251
1252
  }
1252
1253
 
@@ -1257,12 +1258,12 @@ var SecretsBundle = exports.SecretsBundle = /*#__PURE__*/function (_UniffiAbstra
1257
1258
  return _createClass(SecretsBundle, [{
1258
1259
  key: "uniffiDestroy",
1259
1260
  value: function uniffiDestroy() {
1260
- var ptr = this[_uniffiBindgenReactNative.destructorGuardSymbol];
1261
+ var ptr = this[destructorGuardSymbol];
1261
1262
  if (ptr !== undefined) {
1262
1263
  var pointer = uniffiTypeSecretsBundleObjectFactory.pointer(this);
1263
1264
  uniffiTypeSecretsBundleObjectFactory.freePointer(pointer);
1264
1265
  uniffiTypeSecretsBundleObjectFactory.unbless(ptr);
1265
- delete this[_uniffiBindgenReactNative.destructorGuardSymbol];
1266
+ delete this[destructorGuardSymbol];
1266
1267
  }
1267
1268
  }
1268
1269
  }], [{
@@ -1271,7 +1272,7 @@ var SecretsBundle = exports.SecretsBundle = /*#__PURE__*/function (_UniffiAbstra
1271
1272
  return uniffiTypeSecretsBundleObjectFactory.isConcreteType(obj);
1272
1273
  }
1273
1274
  }]);
1274
- }(_uniffiBindgenReactNative.UniffiAbstractObject);
1275
+ }(UniffiAbstractObject);
1275
1276
  var uniffiTypeSecretsBundleObjectFactory = function () {
1276
1277
  /// <reference lib="es2021" />
1277
1278
  var registry = typeof FinalizationRegistry !== 'undefined' ? new FinalizationRegistry(function (heldValue) {
@@ -1280,9 +1281,9 @@ var uniffiTypeSecretsBundleObjectFactory = function () {
1280
1281
  return {
1281
1282
  create: function create(pointer) {
1282
1283
  var instance = Object.create(SecretsBundle.prototype);
1283
- instance[_uniffiBindgenReactNative.pointerLiteralSymbol] = pointer;
1284
- instance[_uniffiBindgenReactNative.destructorGuardSymbol] = this.bless(pointer);
1285
- instance[_uniffiBindgenReactNative.uniffiTypeNameSymbol] = "SecretsBundle";
1284
+ instance[pointerLiteralSymbol] = pointer;
1285
+ instance[destructorGuardSymbol] = this.bless(pointer);
1286
+ instance[uniffiTypeNameSymbol] = "SecretsBundle";
1286
1287
  return instance;
1287
1288
  },
1288
1289
  bless: function bless(p) {
@@ -1304,10 +1305,10 @@ var uniffiTypeSecretsBundleObjectFactory = function () {
1304
1305
  }
1305
1306
  },
1306
1307
  pointer: function pointer(obj) {
1307
- if (obj[_uniffiBindgenReactNative.destructorGuardSymbol] === undefined) {
1308
- throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedNullPointer();
1308
+ if (obj[destructorGuardSymbol] === undefined) {
1309
+ throw new UniffiInternalError.UnexpectedNullPointer();
1309
1310
  }
1310
- return obj[_uniffiBindgenReactNative.pointerLiteralSymbol];
1311
+ return obj[pointerLiteralSymbol];
1311
1312
  },
1312
1313
  clonePointer: function clonePointer(obj) {
1313
1314
  var pointer = this.pointer(obj);
@@ -1321,12 +1322,12 @@ var uniffiTypeSecretsBundleObjectFactory = function () {
1321
1322
  }, /*liftString:*/FfiConverterString.lift);
1322
1323
  },
1323
1324
  isConcreteType: function isConcreteType(obj) {
1324
- return obj[_uniffiBindgenReactNative.destructorGuardSymbol] && obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "SecretsBundle";
1325
+ return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === "SecretsBundle";
1325
1326
  }
1326
1327
  };
1327
1328
  }();
1328
1329
  // FfiConverter for SecretsBundleLike
1329
- var FfiConverterTypeSecretsBundle = new _uniffiBindgenReactNative.FfiConverterObject(uniffiTypeSecretsBundleObjectFactory);
1330
+ var FfiConverterTypeSecretsBundle = new FfiConverterObject(uniffiTypeSecretsBundleObjectFactory);
1330
1331
 
1331
1332
  /**
1332
1333
  * This should be called before anything else.
@@ -1344,10 +1345,10 @@ function uniffiEnsureInitialized() {
1344
1345
  // Get the scaffolding contract version by calling the into the dylib
1345
1346
  var scaffoldingContractVersion = nativeModule().ubrn_ffi_matrix_sdk_crypto_uniffi_contract_version();
1346
1347
  if (bindingsContractVersion !== scaffoldingContractVersion) {
1347
- throw new _uniffiBindgenReactNative.UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
1348
+ throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
1348
1349
  }
1349
1350
  }
1350
- var _default = exports["default"] = Object.freeze({
1351
+ export default Object.freeze({
1351
1352
  initialize: uniffiEnsureInitialized,
1352
1353
  converters: {
1353
1354
  FfiConverterTypeBackupSecrets: FfiConverterTypeBackupSecrets,