ffi-bindings 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +15 -2
- package/src/generated-compat/matrix_sdk.js +346 -288
- package/src/generated-compat/matrix_sdk_base.js +18 -15
- package/src/generated-compat/matrix_sdk_common.js +230 -22
- package/src/generated-compat/matrix_sdk_crypto.js +483 -63
- package/src/generated-compat/matrix_sdk_ffi.js +2681 -2320
- package/src/generated-compat/matrix_sdk_ui.js +547 -15
- package/src/generated-compat/wasm-bindgen/index.d.js +66 -0
- package/src/generated-compat/wasm-bindgen/index.d.ts +5455 -0
- package/src/generated-compat/wasm-bindgen/index.js +9309 -8376
- package/src/generated-compat/wasm-bindgen/index_bg.wasm +0 -0
- package/src/generated-compat/wasm-bindgen/index_bg.wasm.d.ts +2840 -0
- package/src/index.web.js +41 -18
- package/src/index.web.js.bak +63 -0
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
*/
|