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.
@@ -2521,10 +2521,10 @@ export const ubrn_uniffi_matrix_sdk_ffi_fn_method_widgetdriverhandle_send: (a: b
2521
2521
  export const uniffi_matrix_sdk_ffi_fn_method_widgetdriverhandle_send: (a: bigint, b: number) => bigint;
2522
2522
  export const ubrn_ffi_matrix_sdk_base_uniffi_contract_version: () => number;
2523
2523
  export const ffi_matrix_sdk_base_uniffi_contract_version: () => number;
2524
+ export const ubrn_ffi_matrix_sdk_common_uniffi_contract_version: () => number;
2525
+ export const ffi_matrix_sdk_common_uniffi_contract_version: () => number;
2524
2526
  export const ubrn_ffi_matrix_sdk_crypto_uniffi_contract_version: () => number;
2525
2527
  export const ffi_matrix_sdk_crypto_uniffi_contract_version: () => number;
2526
- export const ubrn_ffi_matrix_sdk_ui_uniffi_contract_version: () => number;
2527
- export const ffi_matrix_sdk_ui_uniffi_contract_version: () => number;
2528
2528
  export const ubrn_uniffi_matrix_sdk_crypto_fn_clone_backupsecrets: (a: bigint, b: number) => bigint;
2529
2529
  export const uniffi_matrix_sdk_crypto_fn_clone_backupsecrets: (a: bigint, b: number) => bigint;
2530
2530
  export const ubrn_uniffi_matrix_sdk_crypto_fn_clone_crosssigningsecrets: (a: bigint, b: number) => bigint;
@@ -2547,8 +2547,8 @@ export const ubrn_uniffi_matrix_sdk_fn_free_oauthauthorizationdata: (a: bigint,
2547
2547
  export const uniffi_matrix_sdk_fn_free_oauthauthorizationdata: (a: bigint, b: number) => void;
2548
2548
  export const ubrn_uniffi_matrix_sdk_fn_method_oauthauthorizationdata_login_url: (a: bigint, b: number) => [number, number];
2549
2549
  export const uniffi_matrix_sdk_fn_method_oauthauthorizationdata_login_url: (a: number, b: bigint, c: number) => void;
2550
- export const ubrn_ffi_matrix_sdk_common_uniffi_contract_version: () => number;
2551
- export const ffi_matrix_sdk_common_uniffi_contract_version: () => number;
2550
+ export const ubrn_ffi_matrix_sdk_ui_uniffi_contract_version: () => number;
2551
+ export const ffi_matrix_sdk_ui_uniffi_contract_version: () => number;
2552
2552
  export const __wbg_get_rustcallstatus_code: (a: number) => number;
2553
2553
  export const __wbg_rustcallstatus_free: (a: number, b: number) => void;
2554
2554
  export const __wbg_set_rustcallstatus_code: (a: number, b: number) => void;
package/src/index.web.js CHANGED
@@ -1,7 +1,3 @@
1
- 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 }; })(); }
2
- 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); }
3
- 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); }
4
- 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); }); }; }
5
1
  // Generated by uniffi-bindgen-react-native
6
2
  // Export the generated bindings to the app.
7
3
  export * from './generated-compat/matrix_sdk';
@@ -22,37 +18,23 @@ import * as matrix_sdk_ffi from './generated-compat/matrix_sdk_ffi';
22
18
  import * as matrix_sdk_ui from './generated-compat/matrix_sdk_ui';
23
19
  import initAsync from './generated-compat/wasm-bindgen/index.js';
24
20
  import wasmPath from "./generated-compat/wasm-bindgen/index_bg";
25
- export function uniffiInitAsync() {
26
- return _uniffiInitAsync.apply(this, arguments);
21
+ export async function uniffiInitAsync() {
22
+ await initAsync({
23
+ module_or_path: wasmPath
24
+ });
25
+
26
+ // Initialize the generated bindings: mostly checksums, but also callbacks.
27
+ // - the boolean flag ensures this loads exactly once, even if the JS code
28
+ // is reloaded (e.g. during development with metro).
29
+ matrix_sdk["default"].initialize();
30
+ matrix_sdk_base["default"].initialize();
31
+ matrix_sdk_common["default"].initialize();
32
+ matrix_sdk_crypto["default"].initialize();
33
+ matrix_sdk_ffi["default"].initialize();
34
+ matrix_sdk_ui["default"].initialize();
27
35
  }
28
36
 
29
37
  // Export the crates as individually namespaced objects.
30
- function _uniffiInitAsync() {
31
- _uniffiInitAsync = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
32
- return _regenerator().w(function (_context) {
33
- while (1) switch (_context.n) {
34
- case 0:
35
- _context.n = 1;
36
- return initAsync({
37
- module_or_path: wasmPath
38
- });
39
- case 1:
40
- // Initialize the generated bindings: mostly checksums, but also callbacks.
41
- // - the boolean flag ensures this loads exactly once, even if the JS code
42
- // is reloaded (e.g. during development with metro).
43
- matrix_sdk["default"].initialize();
44
- matrix_sdk_base["default"].initialize();
45
- matrix_sdk_common["default"].initialize();
46
- matrix_sdk_crypto["default"].initialize();
47
- matrix_sdk_ffi["default"].initialize();
48
- matrix_sdk_ui["default"].initialize();
49
- case 2:
50
- return _context.a(2);
51
- }
52
- }, _callee);
53
- }));
54
- return _uniffiInitAsync.apply(this, arguments);
55
- }
56
38
  export default {
57
39
  matrix_sdk: matrix_sdk,
58
40
  matrix_sdk_base: matrix_sdk_base,
@@ -1,58 +1,40 @@
1
- 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 }; })(); }
2
- 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); }
3
- 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); }
4
- 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); }); }; }
5
1
  // Generated by uniffi-bindgen-react-native
6
2
  // Export the generated bindings to the app.
7
- export * from './generated/matrix_sdk';
8
- export * from './generated/matrix_sdk_base';
9
- export * from './generated/matrix_sdk_common';
10
- export * from './generated/matrix_sdk_crypto';
11
- export * from './generated/matrix_sdk_ffi';
12
- export * from './generated/matrix_sdk_ui';
3
+ export * from './generated-compat/matrix_sdk';
4
+ export * from './generated-compat/matrix_sdk_base';
5
+ export * from './generated-compat/matrix_sdk_common';
6
+ export * from './generated-compat/matrix_sdk_crypto';
7
+ export * from './generated-compat/matrix_sdk_ffi';
8
+ export * from './generated-compat/matrix_sdk_ui';
13
9
 
14
10
  // Now import the bindings so we can:
15
11
  // - intialize them
16
12
  // - export them as namespaced objects as the default export.
17
- import * as matrix_sdk from './generated/matrix_sdk';
18
- import * as matrix_sdk_base from './generated/matrix_sdk_base';
19
- import * as matrix_sdk_common from './generated/matrix_sdk_common';
20
- import * as matrix_sdk_crypto from './generated/matrix_sdk_crypto';
21
- import * as matrix_sdk_ffi from './generated/matrix_sdk_ffi';
22
- import * as matrix_sdk_ui from './generated/matrix_sdk_ui';
23
- import initAsync from './generated/wasm-bindgen/index.js';
24
- import wasmPath from "./generated/wasm-bindgen/index_bg.wasm";
25
- export function uniffiInitAsync() {
26
- return _uniffiInitAsync.apply(this, arguments);
13
+ import * as matrix_sdk from './generated-compat/matrix_sdk';
14
+ import * as matrix_sdk_base from './generated-compat/matrix_sdk_base';
15
+ import * as matrix_sdk_common from './generated-compat/matrix_sdk_common';
16
+ import * as matrix_sdk_crypto from './generated-compat/matrix_sdk_crypto';
17
+ import * as matrix_sdk_ffi from './generated-compat/matrix_sdk_ffi';
18
+ import * as matrix_sdk_ui from './generated-compat/matrix_sdk_ui';
19
+ import initAsync from './generated-compat/wasm-bindgen/index.js';
20
+ import wasmPath from "./generated-compat/wasm-bindgen/index_bg.wasm";
21
+ export async function uniffiInitAsync() {
22
+ await initAsync({
23
+ module_or_path: wasmPath
24
+ });
25
+
26
+ // Initialize the generated bindings: mostly checksums, but also callbacks.
27
+ // - the boolean flag ensures this loads exactly once, even if the JS code
28
+ // is reloaded (e.g. during development with metro).
29
+ matrix_sdk["default"].initialize();
30
+ matrix_sdk_base["default"].initialize();
31
+ matrix_sdk_common["default"].initialize();
32
+ matrix_sdk_crypto["default"].initialize();
33
+ matrix_sdk_ffi["default"].initialize();
34
+ matrix_sdk_ui["default"].initialize();
27
35
  }
28
36
 
29
37
  // Export the crates as individually namespaced objects.
30
- function _uniffiInitAsync() {
31
- _uniffiInitAsync = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
32
- return _regenerator().w(function (_context) {
33
- while (1) switch (_context.n) {
34
- case 0:
35
- _context.n = 1;
36
- return initAsync({
37
- module_or_path: wasmPath
38
- });
39
- case 1:
40
- // Initialize the generated bindings: mostly checksums, but also callbacks.
41
- // - the boolean flag ensures this loads exactly once, even if the JS code
42
- // is reloaded (e.g. during development with metro).
43
- matrix_sdk["default"].initialize();
44
- matrix_sdk_base["default"].initialize();
45
- matrix_sdk_common["default"].initialize();
46
- matrix_sdk_crypto["default"].initialize();
47
- matrix_sdk_ffi["default"].initialize();
48
- matrix_sdk_ui["default"].initialize();
49
- case 2:
50
- return _context.a(2);
51
- }
52
- }, _callee);
53
- }));
54
- return _uniffiInitAsync.apply(this, arguments);
55
- }
56
38
  export default {
57
39
  matrix_sdk: matrix_sdk,
58
40
  matrix_sdk_base: matrix_sdk_base,
@@ -0,0 +1,46 @@
1
+ // Generated by uniffi-bindgen-react-native
2
+ // Export the generated bindings to the app.
3
+ export * from './generated/matrix_sdk';
4
+ export * from './generated/matrix_sdk_base';
5
+ export * from './generated/matrix_sdk_common';
6
+ export * from './generated/matrix_sdk_crypto';
7
+ export * from './generated/matrix_sdk_ffi';
8
+ export * from './generated/matrix_sdk_ui';
9
+
10
+ // Now import the bindings so we can:
11
+ // - intialize them
12
+ // - export them as namespaced objects as the default export.
13
+ import * as matrix_sdk from './generated/matrix_sdk';
14
+ import * as matrix_sdk_base from './generated/matrix_sdk_base';
15
+ import * as matrix_sdk_common from './generated/matrix_sdk_common';
16
+ import * as matrix_sdk_crypto from './generated/matrix_sdk_crypto';
17
+ import * as matrix_sdk_ffi from './generated/matrix_sdk_ffi';
18
+ import * as matrix_sdk_ui from './generated/matrix_sdk_ui';
19
+
20
+ import initAsync from './generated/wasm-bindgen/index.js';
21
+ import wasmPath from './generated/wasm-bindgen/index_bg.wasm?url';
22
+
23
+ export async function uniffiInitAsync() {
24
+ await initAsync({ module_or_path: wasmPath })
25
+
26
+ // Initialize the generated bindings: mostly checksums, but also callbacks.
27
+ // - the boolean flag ensures this loads exactly once, even if the JS code
28
+ // is reloaded (e.g. during development with metro).
29
+ matrix_sdk.default.initialize();
30
+ matrix_sdk_base.default.initialize();
31
+ matrix_sdk_common.default.initialize();
32
+ matrix_sdk_crypto.default.initialize();
33
+ matrix_sdk_ffi.default.initialize();
34
+ matrix_sdk_ui.default.initialize();
35
+ }
36
+
37
+ // Export the crates as individually namespaced objects.
38
+ export default {
39
+ matrix_sdk,
40
+ matrix_sdk_base,
41
+ matrix_sdk_common,
42
+ matrix_sdk_crypto,
43
+ matrix_sdk_ffi,
44
+ matrix_sdk_ui,
45
+ };
46
+
@@ -0,0 +1,46 @@
1
+ // Generated by uniffi-bindgen-react-native
2
+ // Export the generated bindings to the app.
3
+ export * from './generated/matrix_sdk';
4
+ export * from './generated/matrix_sdk_base';
5
+ export * from './generated/matrix_sdk_common';
6
+ export * from './generated/matrix_sdk_crypto';
7
+ export * from './generated/matrix_sdk_ffi';
8
+ export * from './generated/matrix_sdk_ui';
9
+
10
+ // Now import the bindings so we can:
11
+ // - intialize them
12
+ // - export them as namespaced objects as the default export.
13
+ import * as matrix_sdk from './generated/matrix_sdk';
14
+ import * as matrix_sdk_base from './generated/matrix_sdk_base';
15
+ import * as matrix_sdk_common from './generated/matrix_sdk_common';
16
+ import * as matrix_sdk_crypto from './generated/matrix_sdk_crypto';
17
+ import * as matrix_sdk_ffi from './generated/matrix_sdk_ffi';
18
+ import * as matrix_sdk_ui from './generated/matrix_sdk_ui';
19
+
20
+ import initAsync from './generated/wasm-bindgen/index.js';
21
+ import wasmPath from './generated/wasm-bindgen/index_bg.wasm';
22
+
23
+ export async function uniffiInitAsync() {
24
+ await initAsync({ module_or_path: wasmPath })
25
+
26
+ // Initialize the generated bindings: mostly checksums, but also callbacks.
27
+ // - the boolean flag ensures this loads exactly once, even if the JS code
28
+ // is reloaded (e.g. during development with metro).
29
+ matrix_sdk.default.initialize();
30
+ matrix_sdk_base.default.initialize();
31
+ matrix_sdk_common.default.initialize();
32
+ matrix_sdk_crypto.default.initialize();
33
+ matrix_sdk_ffi.default.initialize();
34
+ matrix_sdk_ui.default.initialize();
35
+ }
36
+
37
+ // Export the crates as individually namespaced objects.
38
+ export default {
39
+ matrix_sdk,
40
+ matrix_sdk_base,
41
+ matrix_sdk_common,
42
+ matrix_sdk_crypto,
43
+ matrix_sdk_ffi,
44
+ matrix_sdk_ui,
45
+ };
46
+
@@ -1,66 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ShieldStateCode = exports.RustCallStatus = void 0;
7
- 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); }
8
- 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); } }
9
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
10
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
- 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
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
13
- 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); }
14
- /* tslint:disable */
15
- /* eslint-disable */
16
- var RustCallStatus = exports.RustCallStatus = /*#__PURE__*/_createClass(function RustCallStatus() {
17
- _classCallCheck(this, RustCallStatus);
18
- _defineProperty(this, "code", void 0);
19
- });
20
- /**
21
- * A machine-readable representation of the authenticity for a `ShieldState`.
22
- */
23
- var ShieldStateCode = exports.ShieldStateCode = /*#__PURE__*/function (ShieldStateCode) {
24
- /**
25
- * Not enough information available to check the authenticity.
26
- */
27
- ShieldStateCode[ShieldStateCode["AuthenticityNotGuaranteed"] = 0] = "AuthenticityNotGuaranteed";
28
- /**
29
- * The sending device isn't yet known by the Client.
30
- */
31
- ShieldStateCode[ShieldStateCode["UnknownDevice"] = 1] = "UnknownDevice";
32
- /**
33
- * The sending device hasn't been verified by the sender.
34
- */
35
- ShieldStateCode[ShieldStateCode["UnsignedDevice"] = 2] = "UnsignedDevice";
36
- /**
37
- * The sender hasn't been verified by the Client's user.
38
- */
39
- ShieldStateCode[ShieldStateCode["UnverifiedIdentity"] = 3] = "UnverifiedIdentity";
40
- /**
41
- * The sender was previously verified but changed their identity.
42
- */
43
- ShieldStateCode[ShieldStateCode["VerificationViolation"] = 4] = "VerificationViolation";
44
- /**
45
- * The `sender` field on the event does not match the owner of the device
46
- * that established the Megolm session.
47
- */
48
- ShieldStateCode[ShieldStateCode["MismatchedSender"] = 5] = "MismatchedSender";
49
- return ShieldStateCode;
50
- }({});
51
- /**
52
- * Instantiates the given `module`, which can either be bytes or
53
- * a precompiled `WebAssembly.Module`.
54
- *
55
- * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
56
- *
57
- * @returns {InitOutput}
58
- */
59
- /**
60
- * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
61
- * for everything else, calls `WebAssembly.instantiate` directly.
62
- *
63
- * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
64
- *
65
- * @returns {Promise<InitOutput>}
66
- */