ffi-bindings 1.0.1 → 1.0.2
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/matrix_sdk.ts +1843 -0
- package/src/generated/matrix_sdk_base.ts +252 -0
- package/src/generated/matrix_sdk_common.ts +370 -0
- package/src/generated/matrix_sdk_crypto.ts +1280 -0
- package/src/generated/matrix_sdk_ffi.ts +65263 -0
- package/src/generated/matrix_sdk_ui.ts +816 -0
- package/src/generated/wasm-bindgen/index.d.ts +5455 -0
- package/src/generated/wasm-bindgen/index.js +14223 -0
- package/src/generated/wasm-bindgen/index_bg.wasm +0 -0
- package/src/generated/wasm-bindgen/index_bg.wasm.d.ts +2840 -0
- package/src/generated-compat/matrix_sdk.js +454 -395
- package/src/generated-compat/matrix_sdk_base.js +39 -34
- package/src/generated-compat/matrix_sdk_common.js +245 -35
- package/src/generated-compat/matrix_sdk_crypto.js +547 -128
- package/src/generated-compat/matrix_sdk_ffi.js +3057 -2696
- package/src/generated-compat/matrix_sdk_ui.js +580 -46
- 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 +10572 -8359
- 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 +126 -34
- package/src/index.web.js.bak +132 -0
- package/src/index.web.ts +46 -0
- package/src/index.web.ts.bak +46 -0
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.TimelineReadReceiptTracking = exports.TimelineEventShieldStateCode = exports.TimelineEventFocusThreadMode_Tags = exports.TimelineEventFocusThreadMode = exports.ThreadListPaginationState_Tags = exports.ThreadListPaginationState = exports.SpaceRoomListPaginationState_Tags = exports.SpaceRoomListPaginationState = exports.RoomPinnedEventsChange = exports.LatestEventValueLocalState = exports.EventItemOrigin = void 0;
|
|
7
|
+
var wasmBundle = _interopRequireWildcard(require("./wasm-bindgen/index.js"));
|
|
8
|
+
var _uniffiBindgenReactNative = require("uniffi-bindgen-react-native");
|
|
1
9
|
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); }
|
|
2
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; }
|
|
3
12
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
4
13
|
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); } }
|
|
@@ -12,19 +21,14 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
12
21
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
13
22
|
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); }
|
|
14
23
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
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.
|
|
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.
|
|
17
25
|
// Trust me, you don't want to mess with it!
|
|
18
|
-
/* tslint:disable */
|
|
19
|
-
/* eslint-disable */
|
|
20
|
-
// @ts-nocheck
|
|
21
|
-
import * as wasmBundle from "./wasm-bindgen/index.js";
|
|
22
|
-
import { AbstractFfiConverterByteArray, FfiConverterBool, FfiConverterInt32, UniffiEnum, UniffiInternalError, UniffiRustCaller, uniffiCreateFfiConverterString, uniffiTypeNameSymbol } from "uniffi-bindgen-react-native";
|
|
26
|
+
/* tslint:disable */ /* eslint-disable */ // @ts-nocheck
|
|
23
27
|
// Get converters from the other files, if any.
|
|
24
28
|
var nativeModule = function nativeModule() {
|
|
25
29
|
return wasmBundle;
|
|
26
30
|
};
|
|
27
|
-
var uniffiCaller = new UniffiRustCaller(function () {
|
|
31
|
+
var uniffiCaller = new _uniffiBindgenReactNative.UniffiRustCaller(function () {
|
|
28
32
|
return new wasmBundle.RustCallStatus();
|
|
29
33
|
});
|
|
30
34
|
var uniffiIsDebug =
|
|
@@ -33,6 +37,7 @@ var uniffiIsDebug =
|
|
|
33
37
|
// @ts-ignore -- The process global might not be defined
|
|
34
38
|
((_process = process) === null || _process === void 0 || (_process = _process.env) === null || _process === void 0 ? void 0 : _process.NODE_ENV) !== "production" || false;
|
|
35
39
|
// Public interface members begin here.
|
|
40
|
+
|
|
36
41
|
var stringConverter = function () {
|
|
37
42
|
var encoder = new TextEncoder();
|
|
38
43
|
var decoder = new TextDecoder();
|
|
@@ -48,12 +53,12 @@ var stringConverter = function () {
|
|
|
48
53
|
}
|
|
49
54
|
};
|
|
50
55
|
}();
|
|
51
|
-
var FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
|
|
56
|
+
var FfiConverterString = (0, _uniffiBindgenReactNative.uniffiCreateFfiConverterString)(stringConverter);
|
|
57
|
+
|
|
52
58
|
/**
|
|
53
59
|
* Where this event came.
|
|
54
60
|
*/
|
|
55
|
-
|
|
56
|
-
(function (EventItemOrigin) {
|
|
61
|
+
var EventItemOrigin = exports.EventItemOrigin = /*#__PURE__*/function (EventItemOrigin) {
|
|
57
62
|
/**
|
|
58
63
|
* The event was created locally.
|
|
59
64
|
*/
|
|
@@ -70,9 +75,10 @@ export var EventItemOrigin;
|
|
|
70
75
|
* The event came from a cache.
|
|
71
76
|
*/
|
|
72
77
|
EventItemOrigin[EventItemOrigin["Cache"] = 3] = "Cache";
|
|
73
|
-
|
|
78
|
+
return EventItemOrigin;
|
|
79
|
+
}({});
|
|
74
80
|
var FfiConverterTypeEventItemOrigin = function () {
|
|
75
|
-
var ordinalConverter = FfiConverterInt32;
|
|
81
|
+
var ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
|
|
76
82
|
var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter) {
|
|
77
83
|
function FFIConverter() {
|
|
78
84
|
_classCallCheck(this, FFIConverter);
|
|
@@ -92,7 +98,7 @@ var FfiConverterTypeEventItemOrigin = function () {
|
|
|
92
98
|
case 4:
|
|
93
99
|
return EventItemOrigin.Cache;
|
|
94
100
|
default:
|
|
95
|
-
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
101
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
96
102
|
}
|
|
97
103
|
}
|
|
98
104
|
}, {
|
|
@@ -115,14 +121,63 @@ var FfiConverterTypeEventItemOrigin = function () {
|
|
|
115
121
|
return ordinalConverter.allocationSize(0);
|
|
116
122
|
}
|
|
117
123
|
}]);
|
|
118
|
-
}(AbstractFfiConverterByteArray);
|
|
124
|
+
}(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
|
|
119
125
|
return new FFIConverter();
|
|
120
126
|
}();
|
|
127
|
+
var LatestEventValueLocalState = exports.LatestEventValueLocalState = /*#__PURE__*/function (LatestEventValueLocalState) {
|
|
128
|
+
LatestEventValueLocalState[LatestEventValueLocalState["IsSending"] = 0] = "IsSending";
|
|
129
|
+
LatestEventValueLocalState[LatestEventValueLocalState["HasBeenSent"] = 1] = "HasBeenSent";
|
|
130
|
+
LatestEventValueLocalState[LatestEventValueLocalState["CannotBeSent"] = 2] = "CannotBeSent";
|
|
131
|
+
return LatestEventValueLocalState;
|
|
132
|
+
}({});
|
|
133
|
+
var FfiConverterTypeLatestEventValueLocalState = function () {
|
|
134
|
+
var ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
|
|
135
|
+
var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter2) {
|
|
136
|
+
function FFIConverter() {
|
|
137
|
+
_classCallCheck(this, FFIConverter);
|
|
138
|
+
return _callSuper(this, FFIConverter, arguments);
|
|
139
|
+
}
|
|
140
|
+
_inherits(FFIConverter, _AbstractFfiConverter2);
|
|
141
|
+
return _createClass(FFIConverter, [{
|
|
142
|
+
key: "read",
|
|
143
|
+
value: function read(from) {
|
|
144
|
+
switch (ordinalConverter.read(from)) {
|
|
145
|
+
case 1:
|
|
146
|
+
return LatestEventValueLocalState.IsSending;
|
|
147
|
+
case 2:
|
|
148
|
+
return LatestEventValueLocalState.HasBeenSent;
|
|
149
|
+
case 3:
|
|
150
|
+
return LatestEventValueLocalState.CannotBeSent;
|
|
151
|
+
default:
|
|
152
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}, {
|
|
156
|
+
key: "write",
|
|
157
|
+
value: function write(value, into) {
|
|
158
|
+
switch (value) {
|
|
159
|
+
case LatestEventValueLocalState.IsSending:
|
|
160
|
+
return ordinalConverter.write(1, into);
|
|
161
|
+
case LatestEventValueLocalState.HasBeenSent:
|
|
162
|
+
return ordinalConverter.write(2, into);
|
|
163
|
+
case LatestEventValueLocalState.CannotBeSent:
|
|
164
|
+
return ordinalConverter.write(3, into);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}, {
|
|
168
|
+
key: "allocationSize",
|
|
169
|
+
value: function allocationSize(value) {
|
|
170
|
+
return ordinalConverter.allocationSize(0);
|
|
171
|
+
}
|
|
172
|
+
}]);
|
|
173
|
+
}(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
|
|
174
|
+
return new FFIConverter();
|
|
175
|
+
}();
|
|
176
|
+
|
|
121
177
|
/**
|
|
122
178
|
* The type of change between the previous and current pinned events.
|
|
123
179
|
*/
|
|
124
|
-
|
|
125
|
-
(function (RoomPinnedEventsChange) {
|
|
180
|
+
var RoomPinnedEventsChange = exports.RoomPinnedEventsChange = /*#__PURE__*/function (RoomPinnedEventsChange) {
|
|
126
181
|
/**
|
|
127
182
|
* Only new event ids were added.
|
|
128
183
|
*/
|
|
@@ -135,15 +190,16 @@ export var RoomPinnedEventsChange;
|
|
|
135
190
|
* Some change other than only adding or only removing ids happened.
|
|
136
191
|
*/
|
|
137
192
|
RoomPinnedEventsChange[RoomPinnedEventsChange["Changed"] = 2] = "Changed";
|
|
138
|
-
|
|
193
|
+
return RoomPinnedEventsChange;
|
|
194
|
+
}({});
|
|
139
195
|
var FfiConverterTypeRoomPinnedEventsChange = function () {
|
|
140
|
-
var ordinalConverter = FfiConverterInt32;
|
|
141
|
-
var FFIConverter = /*#__PURE__*/function (
|
|
196
|
+
var ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
|
|
197
|
+
var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter3) {
|
|
142
198
|
function FFIConverter() {
|
|
143
199
|
_classCallCheck(this, FFIConverter);
|
|
144
200
|
return _callSuper(this, FFIConverter, arguments);
|
|
145
201
|
}
|
|
146
|
-
_inherits(FFIConverter,
|
|
202
|
+
_inherits(FFIConverter, _AbstractFfiConverter3);
|
|
147
203
|
return _createClass(FFIConverter, [{
|
|
148
204
|
key: "read",
|
|
149
205
|
value: function read(from) {
|
|
@@ -155,7 +211,7 @@ var FfiConverterTypeRoomPinnedEventsChange = function () {
|
|
|
155
211
|
case 3:
|
|
156
212
|
return RoomPinnedEventsChange.Changed;
|
|
157
213
|
default:
|
|
158
|
-
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
214
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
159
215
|
}
|
|
160
216
|
}
|
|
161
217
|
}, {
|
|
@@ -176,16 +232,17 @@ var FfiConverterTypeRoomPinnedEventsChange = function () {
|
|
|
176
232
|
return ordinalConverter.allocationSize(0);
|
|
177
233
|
}
|
|
178
234
|
}]);
|
|
179
|
-
}(AbstractFfiConverterByteArray);
|
|
235
|
+
}(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
|
|
180
236
|
return new FFIConverter();
|
|
181
237
|
}();
|
|
238
|
+
|
|
182
239
|
// Enum: SpaceRoomListPaginationState
|
|
183
|
-
|
|
184
|
-
(function (SpaceRoomListPaginationState_Tags) {
|
|
240
|
+
var SpaceRoomListPaginationState_Tags = exports.SpaceRoomListPaginationState_Tags = /*#__PURE__*/function (SpaceRoomListPaginationState_Tags) {
|
|
185
241
|
SpaceRoomListPaginationState_Tags["Idle"] = "Idle";
|
|
186
242
|
SpaceRoomListPaginationState_Tags["Loading"] = "Loading";
|
|
187
|
-
|
|
188
|
-
|
|
243
|
+
return SpaceRoomListPaginationState_Tags;
|
|
244
|
+
}({});
|
|
245
|
+
var SpaceRoomListPaginationState = exports.SpaceRoomListPaginationState = function () {
|
|
189
246
|
var Idle_ = /*#__PURE__*/function (_UniffiEnum) {
|
|
190
247
|
function Idle_(inner) {
|
|
191
248
|
var _this;
|
|
@@ -195,7 +252,7 @@ export var SpaceRoomListPaginationState = function () {
|
|
|
195
252
|
* @private
|
|
196
253
|
* This field is private and should not be used, use `tag` instead.
|
|
197
254
|
*/
|
|
198
|
-
_defineProperty(_this, uniffiTypeNameSymbol, "SpaceRoomListPaginationState");
|
|
255
|
+
_defineProperty(_this, _uniffiBindgenReactNative.uniffiTypeNameSymbol, "SpaceRoomListPaginationState");
|
|
199
256
|
_defineProperty(_this, "tag", SpaceRoomListPaginationState_Tags.Idle);
|
|
200
257
|
_defineProperty(_this, "inner", void 0);
|
|
201
258
|
_this.inner = Object.freeze(inner);
|
|
@@ -213,7 +270,7 @@ export var SpaceRoomListPaginationState = function () {
|
|
|
213
270
|
return obj.tag === SpaceRoomListPaginationState_Tags.Idle;
|
|
214
271
|
}
|
|
215
272
|
}]);
|
|
216
|
-
}(UniffiEnum);
|
|
273
|
+
}(_uniffiBindgenReactNative.UniffiEnum);
|
|
217
274
|
var Loading_ = /*#__PURE__*/function (_UniffiEnum2) {
|
|
218
275
|
function Loading_() {
|
|
219
276
|
var _this2;
|
|
@@ -223,7 +280,7 @@ export var SpaceRoomListPaginationState = function () {
|
|
|
223
280
|
* @private
|
|
224
281
|
* This field is private and should not be used, use `tag` instead.
|
|
225
282
|
*/
|
|
226
|
-
_defineProperty(_this2, uniffiTypeNameSymbol, "SpaceRoomListPaginationState");
|
|
283
|
+
_defineProperty(_this2, _uniffiBindgenReactNative.uniffiTypeNameSymbol, "SpaceRoomListPaginationState");
|
|
227
284
|
_defineProperty(_this2, "tag", SpaceRoomListPaginationState_Tags.Loading);
|
|
228
285
|
return _this2;
|
|
229
286
|
}
|
|
@@ -239,9 +296,9 @@ export var SpaceRoomListPaginationState = function () {
|
|
|
239
296
|
return obj.tag === SpaceRoomListPaginationState_Tags.Loading;
|
|
240
297
|
}
|
|
241
298
|
}]);
|
|
242
|
-
}(UniffiEnum);
|
|
299
|
+
}(_uniffiBindgenReactNative.UniffiEnum);
|
|
243
300
|
function instanceOf(obj) {
|
|
244
|
-
return obj[uniffiTypeNameSymbol] === "SpaceRoomListPaginationState";
|
|
301
|
+
return obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "SpaceRoomListPaginationState";
|
|
245
302
|
}
|
|
246
303
|
return Object.freeze({
|
|
247
304
|
instanceOf: instanceOf,
|
|
@@ -251,25 +308,25 @@ export var SpaceRoomListPaginationState = function () {
|
|
|
251
308
|
}();
|
|
252
309
|
// FfiConverter for enum SpaceRoomListPaginationState
|
|
253
310
|
var FfiConverterTypeSpaceRoomListPaginationState = function () {
|
|
254
|
-
var ordinalConverter = FfiConverterInt32;
|
|
255
|
-
var FFIConverter = /*#__PURE__*/function (
|
|
311
|
+
var ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
|
|
312
|
+
var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter4) {
|
|
256
313
|
function FFIConverter() {
|
|
257
314
|
_classCallCheck(this, FFIConverter);
|
|
258
315
|
return _callSuper(this, FFIConverter, arguments);
|
|
259
316
|
}
|
|
260
|
-
_inherits(FFIConverter,
|
|
317
|
+
_inherits(FFIConverter, _AbstractFfiConverter4);
|
|
261
318
|
return _createClass(FFIConverter, [{
|
|
262
319
|
key: "read",
|
|
263
320
|
value: function read(from) {
|
|
264
321
|
switch (ordinalConverter.read(from)) {
|
|
265
322
|
case 1:
|
|
266
323
|
return new SpaceRoomListPaginationState.Idle({
|
|
267
|
-
endReached: FfiConverterBool.read(from)
|
|
324
|
+
endReached: _uniffiBindgenReactNative.FfiConverterBool.read(from)
|
|
268
325
|
});
|
|
269
326
|
case 2:
|
|
270
327
|
return new SpaceRoomListPaginationState.Loading();
|
|
271
328
|
default:
|
|
272
|
-
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
329
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
273
330
|
}
|
|
274
331
|
}
|
|
275
332
|
}, {
|
|
@@ -280,7 +337,7 @@ var FfiConverterTypeSpaceRoomListPaginationState = function () {
|
|
|
280
337
|
{
|
|
281
338
|
ordinalConverter.write(1, into);
|
|
282
339
|
var inner = value.inner;
|
|
283
|
-
FfiConverterBool.write(inner.endReached, into);
|
|
340
|
+
_uniffiBindgenReactNative.FfiConverterBool.write(inner.endReached, into);
|
|
284
341
|
return;
|
|
285
342
|
}
|
|
286
343
|
case SpaceRoomListPaginationState_Tags.Loading:
|
|
@@ -290,7 +347,7 @@ var FfiConverterTypeSpaceRoomListPaginationState = function () {
|
|
|
290
347
|
}
|
|
291
348
|
default:
|
|
292
349
|
// Throwing from here means that SpaceRoomListPaginationState_Tags hasn't matched an ordinal.
|
|
293
|
-
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
350
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
294
351
|
}
|
|
295
352
|
}
|
|
296
353
|
}, {
|
|
@@ -301,7 +358,7 @@ var FfiConverterTypeSpaceRoomListPaginationState = function () {
|
|
|
301
358
|
{
|
|
302
359
|
var inner = value.inner;
|
|
303
360
|
var size = ordinalConverter.allocationSize(1);
|
|
304
|
-
size += FfiConverterBool.allocationSize(inner.endReached);
|
|
361
|
+
size += _uniffiBindgenReactNative.FfiConverterBool.allocationSize(inner.endReached);
|
|
305
362
|
return size;
|
|
306
363
|
}
|
|
307
364
|
case SpaceRoomListPaginationState_Tags.Loading:
|
|
@@ -309,13 +366,485 @@ var FfiConverterTypeSpaceRoomListPaginationState = function () {
|
|
|
309
366
|
return ordinalConverter.allocationSize(2);
|
|
310
367
|
}
|
|
311
368
|
default:
|
|
312
|
-
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
369
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}]);
|
|
373
|
+
}(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
|
|
374
|
+
return new FFIConverter();
|
|
375
|
+
}();
|
|
376
|
+
|
|
377
|
+
// Enum: ThreadListPaginationState
|
|
378
|
+
var ThreadListPaginationState_Tags = exports.ThreadListPaginationState_Tags = /*#__PURE__*/function (ThreadListPaginationState_Tags) {
|
|
379
|
+
ThreadListPaginationState_Tags["Idle"] = "Idle";
|
|
380
|
+
ThreadListPaginationState_Tags["Loading"] = "Loading";
|
|
381
|
+
return ThreadListPaginationState_Tags;
|
|
382
|
+
}({});
|
|
383
|
+
/**
|
|
384
|
+
* The pagination state of a [`ThreadListService`].
|
|
385
|
+
*/
|
|
386
|
+
var ThreadListPaginationState = exports.ThreadListPaginationState = function () {
|
|
387
|
+
/**
|
|
388
|
+
* The list is idle (not currently loading).
|
|
389
|
+
*/
|
|
390
|
+
var Idle_ = /*#__PURE__*/function (_UniffiEnum3) {
|
|
391
|
+
function Idle_(inner) {
|
|
392
|
+
var _this3;
|
|
393
|
+
_classCallCheck(this, Idle_);
|
|
394
|
+
_this3 = _callSuper(this, Idle_, ["ThreadListPaginationState", "Idle"]);
|
|
395
|
+
/**
|
|
396
|
+
* @private
|
|
397
|
+
* This field is private and should not be used, use `tag` instead.
|
|
398
|
+
*/
|
|
399
|
+
_defineProperty(_this3, _uniffiBindgenReactNative.uniffiTypeNameSymbol, "ThreadListPaginationState");
|
|
400
|
+
_defineProperty(_this3, "tag", ThreadListPaginationState_Tags.Idle);
|
|
401
|
+
_defineProperty(_this3, "inner", void 0);
|
|
402
|
+
_this3.inner = Object.freeze(inner);
|
|
403
|
+
return _this3;
|
|
404
|
+
}
|
|
405
|
+
_inherits(Idle_, _UniffiEnum3);
|
|
406
|
+
return _createClass(Idle_, null, [{
|
|
407
|
+
key: "new",
|
|
408
|
+
value: function _new(inner) {
|
|
409
|
+
return new Idle_(inner);
|
|
410
|
+
}
|
|
411
|
+
}, {
|
|
412
|
+
key: "instanceOf",
|
|
413
|
+
value: function instanceOf(obj) {
|
|
414
|
+
return obj.tag === ThreadListPaginationState_Tags.Idle;
|
|
415
|
+
}
|
|
416
|
+
}]);
|
|
417
|
+
}(_uniffiBindgenReactNative.UniffiEnum);
|
|
418
|
+
/**
|
|
419
|
+
* The list is currently loading the next page.
|
|
420
|
+
*/
|
|
421
|
+
var Loading_ = /*#__PURE__*/function (_UniffiEnum4) {
|
|
422
|
+
function Loading_() {
|
|
423
|
+
var _this4;
|
|
424
|
+
_classCallCheck(this, Loading_);
|
|
425
|
+
_this4 = _callSuper(this, Loading_, ["ThreadListPaginationState", "Loading"]);
|
|
426
|
+
/**
|
|
427
|
+
* @private
|
|
428
|
+
* This field is private and should not be used, use `tag` instead.
|
|
429
|
+
*/
|
|
430
|
+
_defineProperty(_this4, _uniffiBindgenReactNative.uniffiTypeNameSymbol, "ThreadListPaginationState");
|
|
431
|
+
_defineProperty(_this4, "tag", ThreadListPaginationState_Tags.Loading);
|
|
432
|
+
return _this4;
|
|
433
|
+
}
|
|
434
|
+
_inherits(Loading_, _UniffiEnum4);
|
|
435
|
+
return _createClass(Loading_, null, [{
|
|
436
|
+
key: "new",
|
|
437
|
+
value: function _new() {
|
|
438
|
+
return new Loading_();
|
|
439
|
+
}
|
|
440
|
+
}, {
|
|
441
|
+
key: "instanceOf",
|
|
442
|
+
value: function instanceOf(obj) {
|
|
443
|
+
return obj.tag === ThreadListPaginationState_Tags.Loading;
|
|
444
|
+
}
|
|
445
|
+
}]);
|
|
446
|
+
}(_uniffiBindgenReactNative.UniffiEnum);
|
|
447
|
+
function instanceOf(obj) {
|
|
448
|
+
return obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "ThreadListPaginationState";
|
|
449
|
+
}
|
|
450
|
+
return Object.freeze({
|
|
451
|
+
instanceOf: instanceOf,
|
|
452
|
+
Idle: Idle_,
|
|
453
|
+
Loading: Loading_
|
|
454
|
+
});
|
|
455
|
+
}();
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* The pagination state of a [`ThreadListService`].
|
|
459
|
+
*/
|
|
460
|
+
|
|
461
|
+
// FfiConverter for enum ThreadListPaginationState
|
|
462
|
+
var FfiConverterTypeThreadListPaginationState = function () {
|
|
463
|
+
var ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
|
|
464
|
+
var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter5) {
|
|
465
|
+
function FFIConverter() {
|
|
466
|
+
_classCallCheck(this, FFIConverter);
|
|
467
|
+
return _callSuper(this, FFIConverter, arguments);
|
|
468
|
+
}
|
|
469
|
+
_inherits(FFIConverter, _AbstractFfiConverter5);
|
|
470
|
+
return _createClass(FFIConverter, [{
|
|
471
|
+
key: "read",
|
|
472
|
+
value: function read(from) {
|
|
473
|
+
switch (ordinalConverter.read(from)) {
|
|
474
|
+
case 1:
|
|
475
|
+
return new ThreadListPaginationState.Idle({
|
|
476
|
+
endReached: _uniffiBindgenReactNative.FfiConverterBool.read(from)
|
|
477
|
+
});
|
|
478
|
+
case 2:
|
|
479
|
+
return new ThreadListPaginationState.Loading();
|
|
480
|
+
default:
|
|
481
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}, {
|
|
485
|
+
key: "write",
|
|
486
|
+
value: function write(value, into) {
|
|
487
|
+
switch (value.tag) {
|
|
488
|
+
case ThreadListPaginationState_Tags.Idle:
|
|
489
|
+
{
|
|
490
|
+
ordinalConverter.write(1, into);
|
|
491
|
+
var inner = value.inner;
|
|
492
|
+
_uniffiBindgenReactNative.FfiConverterBool.write(inner.endReached, into);
|
|
493
|
+
return;
|
|
494
|
+
}
|
|
495
|
+
case ThreadListPaginationState_Tags.Loading:
|
|
496
|
+
{
|
|
497
|
+
ordinalConverter.write(2, into);
|
|
498
|
+
return;
|
|
499
|
+
}
|
|
500
|
+
default:
|
|
501
|
+
// Throwing from here means that ThreadListPaginationState_Tags hasn't matched an ordinal.
|
|
502
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}, {
|
|
506
|
+
key: "allocationSize",
|
|
507
|
+
value: function allocationSize(value) {
|
|
508
|
+
switch (value.tag) {
|
|
509
|
+
case ThreadListPaginationState_Tags.Idle:
|
|
510
|
+
{
|
|
511
|
+
var inner = value.inner;
|
|
512
|
+
var size = ordinalConverter.allocationSize(1);
|
|
513
|
+
size += _uniffiBindgenReactNative.FfiConverterBool.allocationSize(inner.endReached);
|
|
514
|
+
return size;
|
|
515
|
+
}
|
|
516
|
+
case ThreadListPaginationState_Tags.Loading:
|
|
517
|
+
{
|
|
518
|
+
return ordinalConverter.allocationSize(2);
|
|
519
|
+
}
|
|
520
|
+
default:
|
|
521
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}]);
|
|
525
|
+
}(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
|
|
526
|
+
return new FFIConverter();
|
|
527
|
+
}();
|
|
528
|
+
|
|
529
|
+
// Enum: TimelineEventFocusThreadMode
|
|
530
|
+
var TimelineEventFocusThreadMode_Tags = exports.TimelineEventFocusThreadMode_Tags = /*#__PURE__*/function (TimelineEventFocusThreadMode_Tags) {
|
|
531
|
+
TimelineEventFocusThreadMode_Tags["ForceThread"] = "ForceThread";
|
|
532
|
+
TimelineEventFocusThreadMode_Tags["Automatic"] = "Automatic";
|
|
533
|
+
return TimelineEventFocusThreadMode_Tags;
|
|
534
|
+
}({});
|
|
535
|
+
/**
|
|
536
|
+
* Options for controlling the behaviour of [`TimelineFocus::Event`]
|
|
537
|
+
* for threaded events.
|
|
538
|
+
*/
|
|
539
|
+
var TimelineEventFocusThreadMode = exports.TimelineEventFocusThreadMode = function () {
|
|
540
|
+
/**
|
|
541
|
+
* Force the timeline into threaded mode.
|
|
542
|
+
*
|
|
543
|
+
* When the focused event is part of a thread, the timeline will be focused
|
|
544
|
+
* on that thread's root. Otherwise, the timeline will treat the target
|
|
545
|
+
* event itself as the thread root. Threaded events will never be
|
|
546
|
+
* hidden.
|
|
547
|
+
*/
|
|
548
|
+
var ForceThread_ = /*#__PURE__*/function (_UniffiEnum5) {
|
|
549
|
+
function ForceThread_() {
|
|
550
|
+
var _this5;
|
|
551
|
+
_classCallCheck(this, ForceThread_);
|
|
552
|
+
_this5 = _callSuper(this, ForceThread_, ["TimelineEventFocusThreadMode", "ForceThread"]);
|
|
553
|
+
/**
|
|
554
|
+
* @private
|
|
555
|
+
* This field is private and should not be used, use `tag` instead.
|
|
556
|
+
*/
|
|
557
|
+
_defineProperty(_this5, _uniffiBindgenReactNative.uniffiTypeNameSymbol, "TimelineEventFocusThreadMode");
|
|
558
|
+
_defineProperty(_this5, "tag", TimelineEventFocusThreadMode_Tags.ForceThread);
|
|
559
|
+
return _this5;
|
|
560
|
+
}
|
|
561
|
+
_inherits(ForceThread_, _UniffiEnum5);
|
|
562
|
+
return _createClass(ForceThread_, null, [{
|
|
563
|
+
key: "new",
|
|
564
|
+
value: function _new() {
|
|
565
|
+
return new ForceThread_();
|
|
566
|
+
}
|
|
567
|
+
}, {
|
|
568
|
+
key: "instanceOf",
|
|
569
|
+
value: function instanceOf(obj) {
|
|
570
|
+
return obj.tag === TimelineEventFocusThreadMode_Tags.ForceThread;
|
|
571
|
+
}
|
|
572
|
+
}]);
|
|
573
|
+
}(_uniffiBindgenReactNative.UniffiEnum);
|
|
574
|
+
/**
|
|
575
|
+
* Automatically determine if the target event is part of a thread or not.
|
|
576
|
+
*
|
|
577
|
+
* If the event is part of a thread, the timeline
|
|
578
|
+
* will be filtered to on-thread events.
|
|
579
|
+
*/
|
|
580
|
+
var Automatic_ = /*#__PURE__*/function (_UniffiEnum6) {
|
|
581
|
+
function Automatic_(inner) {
|
|
582
|
+
var _this6;
|
|
583
|
+
_classCallCheck(this, Automatic_);
|
|
584
|
+
_this6 = _callSuper(this, Automatic_, ["TimelineEventFocusThreadMode", "Automatic"]);
|
|
585
|
+
/**
|
|
586
|
+
* @private
|
|
587
|
+
* This field is private and should not be used, use `tag` instead.
|
|
588
|
+
*/
|
|
589
|
+
_defineProperty(_this6, _uniffiBindgenReactNative.uniffiTypeNameSymbol, "TimelineEventFocusThreadMode");
|
|
590
|
+
_defineProperty(_this6, "tag", TimelineEventFocusThreadMode_Tags.Automatic);
|
|
591
|
+
_defineProperty(_this6, "inner", void 0);
|
|
592
|
+
_this6.inner = Object.freeze(inner);
|
|
593
|
+
return _this6;
|
|
594
|
+
}
|
|
595
|
+
_inherits(Automatic_, _UniffiEnum6);
|
|
596
|
+
return _createClass(Automatic_, null, [{
|
|
597
|
+
key: "new",
|
|
598
|
+
value: function _new(inner) {
|
|
599
|
+
return new Automatic_(inner);
|
|
600
|
+
}
|
|
601
|
+
}, {
|
|
602
|
+
key: "instanceOf",
|
|
603
|
+
value: function instanceOf(obj) {
|
|
604
|
+
return obj.tag === TimelineEventFocusThreadMode_Tags.Automatic;
|
|
605
|
+
}
|
|
606
|
+
}]);
|
|
607
|
+
}(_uniffiBindgenReactNative.UniffiEnum);
|
|
608
|
+
function instanceOf(obj) {
|
|
609
|
+
return obj[_uniffiBindgenReactNative.uniffiTypeNameSymbol] === "TimelineEventFocusThreadMode";
|
|
610
|
+
}
|
|
611
|
+
return Object.freeze({
|
|
612
|
+
instanceOf: instanceOf,
|
|
613
|
+
ForceThread: ForceThread_,
|
|
614
|
+
Automatic: Automatic_
|
|
615
|
+
});
|
|
616
|
+
}();
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Options for controlling the behaviour of [`TimelineFocus::Event`]
|
|
620
|
+
* for threaded events.
|
|
621
|
+
*/
|
|
622
|
+
|
|
623
|
+
// FfiConverter for enum TimelineEventFocusThreadMode
|
|
624
|
+
var FfiConverterTypeTimelineEventFocusThreadMode = function () {
|
|
625
|
+
var ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
|
|
626
|
+
var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter6) {
|
|
627
|
+
function FFIConverter() {
|
|
628
|
+
_classCallCheck(this, FFIConverter);
|
|
629
|
+
return _callSuper(this, FFIConverter, arguments);
|
|
630
|
+
}
|
|
631
|
+
_inherits(FFIConverter, _AbstractFfiConverter6);
|
|
632
|
+
return _createClass(FFIConverter, [{
|
|
633
|
+
key: "read",
|
|
634
|
+
value: function read(from) {
|
|
635
|
+
switch (ordinalConverter.read(from)) {
|
|
636
|
+
case 1:
|
|
637
|
+
return new TimelineEventFocusThreadMode.ForceThread();
|
|
638
|
+
case 2:
|
|
639
|
+
return new TimelineEventFocusThreadMode.Automatic({
|
|
640
|
+
hideThreadedEvents: _uniffiBindgenReactNative.FfiConverterBool.read(from)
|
|
641
|
+
});
|
|
642
|
+
default:
|
|
643
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
}, {
|
|
647
|
+
key: "write",
|
|
648
|
+
value: function write(value, into) {
|
|
649
|
+
switch (value.tag) {
|
|
650
|
+
case TimelineEventFocusThreadMode_Tags.ForceThread:
|
|
651
|
+
{
|
|
652
|
+
ordinalConverter.write(1, into);
|
|
653
|
+
return;
|
|
654
|
+
}
|
|
655
|
+
case TimelineEventFocusThreadMode_Tags.Automatic:
|
|
656
|
+
{
|
|
657
|
+
ordinalConverter.write(2, into);
|
|
658
|
+
var inner = value.inner;
|
|
659
|
+
_uniffiBindgenReactNative.FfiConverterBool.write(inner.hideThreadedEvents, into);
|
|
660
|
+
return;
|
|
661
|
+
}
|
|
662
|
+
default:
|
|
663
|
+
// Throwing from here means that TimelineEventFocusThreadMode_Tags hasn't matched an ordinal.
|
|
664
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
}, {
|
|
668
|
+
key: "allocationSize",
|
|
669
|
+
value: function allocationSize(value) {
|
|
670
|
+
switch (value.tag) {
|
|
671
|
+
case TimelineEventFocusThreadMode_Tags.ForceThread:
|
|
672
|
+
{
|
|
673
|
+
return ordinalConverter.allocationSize(1);
|
|
674
|
+
}
|
|
675
|
+
case TimelineEventFocusThreadMode_Tags.Automatic:
|
|
676
|
+
{
|
|
677
|
+
var inner = value.inner;
|
|
678
|
+
var size = ordinalConverter.allocationSize(2);
|
|
679
|
+
size += _uniffiBindgenReactNative.FfiConverterBool.allocationSize(inner.hideThreadedEvents);
|
|
680
|
+
return size;
|
|
681
|
+
}
|
|
682
|
+
default:
|
|
683
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
}]);
|
|
687
|
+
}(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
|
|
688
|
+
return new FFIConverter();
|
|
689
|
+
}();
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* Extends [`ShieldStateCode`] to allow for a `SentInClear` code.
|
|
693
|
+
*/
|
|
694
|
+
var TimelineEventShieldStateCode = exports.TimelineEventShieldStateCode = /*#__PURE__*/function (TimelineEventShieldStateCode) {
|
|
695
|
+
/**
|
|
696
|
+
* Not enough information available to check the authenticity.
|
|
697
|
+
*/
|
|
698
|
+
TimelineEventShieldStateCode[TimelineEventShieldStateCode["AuthenticityNotGuaranteed"] = 0] = "AuthenticityNotGuaranteed";
|
|
699
|
+
/**
|
|
700
|
+
* The sending device isn't yet known by the Client.
|
|
701
|
+
*/
|
|
702
|
+
TimelineEventShieldStateCode[TimelineEventShieldStateCode["UnknownDevice"] = 1] = "UnknownDevice";
|
|
703
|
+
/**
|
|
704
|
+
* The sending device hasn't been verified by the sender.
|
|
705
|
+
*/
|
|
706
|
+
TimelineEventShieldStateCode[TimelineEventShieldStateCode["UnsignedDevice"] = 2] = "UnsignedDevice";
|
|
707
|
+
/**
|
|
708
|
+
* The sender hasn't been verified by the Client's user.
|
|
709
|
+
*/
|
|
710
|
+
TimelineEventShieldStateCode[TimelineEventShieldStateCode["UnverifiedIdentity"] = 3] = "UnverifiedIdentity";
|
|
711
|
+
/**
|
|
712
|
+
* The sender was previously verified but changed their identity.
|
|
713
|
+
*/
|
|
714
|
+
TimelineEventShieldStateCode[TimelineEventShieldStateCode["VerificationViolation"] = 4] = "VerificationViolation";
|
|
715
|
+
/**
|
|
716
|
+
* The `sender` field on the event does not match the owner of the device
|
|
717
|
+
* that established the Megolm session.
|
|
718
|
+
*/
|
|
719
|
+
TimelineEventShieldStateCode[TimelineEventShieldStateCode["MismatchedSender"] = 5] = "MismatchedSender";
|
|
720
|
+
/**
|
|
721
|
+
* An unencrypted event in an encrypted room.
|
|
722
|
+
*/
|
|
723
|
+
TimelineEventShieldStateCode[TimelineEventShieldStateCode["SentInClear"] = 6] = "SentInClear";
|
|
724
|
+
return TimelineEventShieldStateCode;
|
|
725
|
+
}({});
|
|
726
|
+
var FfiConverterTypeTimelineEventShieldStateCode = function () {
|
|
727
|
+
var ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
|
|
728
|
+
var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter7) {
|
|
729
|
+
function FFIConverter() {
|
|
730
|
+
_classCallCheck(this, FFIConverter);
|
|
731
|
+
return _callSuper(this, FFIConverter, arguments);
|
|
732
|
+
}
|
|
733
|
+
_inherits(FFIConverter, _AbstractFfiConverter7);
|
|
734
|
+
return _createClass(FFIConverter, [{
|
|
735
|
+
key: "read",
|
|
736
|
+
value: function read(from) {
|
|
737
|
+
switch (ordinalConverter.read(from)) {
|
|
738
|
+
case 1:
|
|
739
|
+
return TimelineEventShieldStateCode.AuthenticityNotGuaranteed;
|
|
740
|
+
case 2:
|
|
741
|
+
return TimelineEventShieldStateCode.UnknownDevice;
|
|
742
|
+
case 3:
|
|
743
|
+
return TimelineEventShieldStateCode.UnsignedDevice;
|
|
744
|
+
case 4:
|
|
745
|
+
return TimelineEventShieldStateCode.UnverifiedIdentity;
|
|
746
|
+
case 5:
|
|
747
|
+
return TimelineEventShieldStateCode.VerificationViolation;
|
|
748
|
+
case 6:
|
|
749
|
+
return TimelineEventShieldStateCode.MismatchedSender;
|
|
750
|
+
case 7:
|
|
751
|
+
return TimelineEventShieldStateCode.SentInClear;
|
|
752
|
+
default:
|
|
753
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
}, {
|
|
757
|
+
key: "write",
|
|
758
|
+
value: function write(value, into) {
|
|
759
|
+
switch (value) {
|
|
760
|
+
case TimelineEventShieldStateCode.AuthenticityNotGuaranteed:
|
|
761
|
+
return ordinalConverter.write(1, into);
|
|
762
|
+
case TimelineEventShieldStateCode.UnknownDevice:
|
|
763
|
+
return ordinalConverter.write(2, into);
|
|
764
|
+
case TimelineEventShieldStateCode.UnsignedDevice:
|
|
765
|
+
return ordinalConverter.write(3, into);
|
|
766
|
+
case TimelineEventShieldStateCode.UnverifiedIdentity:
|
|
767
|
+
return ordinalConverter.write(4, into);
|
|
768
|
+
case TimelineEventShieldStateCode.VerificationViolation:
|
|
769
|
+
return ordinalConverter.write(5, into);
|
|
770
|
+
case TimelineEventShieldStateCode.MismatchedSender:
|
|
771
|
+
return ordinalConverter.write(6, into);
|
|
772
|
+
case TimelineEventShieldStateCode.SentInClear:
|
|
773
|
+
return ordinalConverter.write(7, into);
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
}, {
|
|
777
|
+
key: "allocationSize",
|
|
778
|
+
value: function allocationSize(value) {
|
|
779
|
+
return ordinalConverter.allocationSize(0);
|
|
780
|
+
}
|
|
781
|
+
}]);
|
|
782
|
+
}(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
|
|
783
|
+
return new FFIConverter();
|
|
784
|
+
}();
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* The level of read receipt tracking for the timeline.
|
|
788
|
+
*/
|
|
789
|
+
var TimelineReadReceiptTracking = exports.TimelineReadReceiptTracking = /*#__PURE__*/function (TimelineReadReceiptTracking) {
|
|
790
|
+
/**
|
|
791
|
+
* Track read receipts for all events.
|
|
792
|
+
*/
|
|
793
|
+
TimelineReadReceiptTracking[TimelineReadReceiptTracking["AllEvents"] = 0] = "AllEvents";
|
|
794
|
+
/**
|
|
795
|
+
* Track read receipts only for message-like events.
|
|
796
|
+
*/
|
|
797
|
+
TimelineReadReceiptTracking[TimelineReadReceiptTracking["MessageLikeEvents"] = 1] = "MessageLikeEvents";
|
|
798
|
+
/**
|
|
799
|
+
* Disable read receipt tracking.
|
|
800
|
+
*/
|
|
801
|
+
TimelineReadReceiptTracking[TimelineReadReceiptTracking["Disabled"] = 2] = "Disabled";
|
|
802
|
+
return TimelineReadReceiptTracking;
|
|
803
|
+
}({});
|
|
804
|
+
var FfiConverterTypeTimelineReadReceiptTracking = function () {
|
|
805
|
+
var ordinalConverter = _uniffiBindgenReactNative.FfiConverterInt32;
|
|
806
|
+
var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter8) {
|
|
807
|
+
function FFIConverter() {
|
|
808
|
+
_classCallCheck(this, FFIConverter);
|
|
809
|
+
return _callSuper(this, FFIConverter, arguments);
|
|
810
|
+
}
|
|
811
|
+
_inherits(FFIConverter, _AbstractFfiConverter8);
|
|
812
|
+
return _createClass(FFIConverter, [{
|
|
813
|
+
key: "read",
|
|
814
|
+
value: function read(from) {
|
|
815
|
+
switch (ordinalConverter.read(from)) {
|
|
816
|
+
case 1:
|
|
817
|
+
return TimelineReadReceiptTracking.AllEvents;
|
|
818
|
+
case 2:
|
|
819
|
+
return TimelineReadReceiptTracking.MessageLikeEvents;
|
|
820
|
+
case 3:
|
|
821
|
+
return TimelineReadReceiptTracking.Disabled;
|
|
822
|
+
default:
|
|
823
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.UnexpectedEnumCase();
|
|
313
824
|
}
|
|
314
825
|
}
|
|
826
|
+
}, {
|
|
827
|
+
key: "write",
|
|
828
|
+
value: function write(value, into) {
|
|
829
|
+
switch (value) {
|
|
830
|
+
case TimelineReadReceiptTracking.AllEvents:
|
|
831
|
+
return ordinalConverter.write(1, into);
|
|
832
|
+
case TimelineReadReceiptTracking.MessageLikeEvents:
|
|
833
|
+
return ordinalConverter.write(2, into);
|
|
834
|
+
case TimelineReadReceiptTracking.Disabled:
|
|
835
|
+
return ordinalConverter.write(3, into);
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
}, {
|
|
839
|
+
key: "allocationSize",
|
|
840
|
+
value: function allocationSize(value) {
|
|
841
|
+
return ordinalConverter.allocationSize(0);
|
|
842
|
+
}
|
|
315
843
|
}]);
|
|
316
|
-
}(AbstractFfiConverterByteArray);
|
|
844
|
+
}(_uniffiBindgenReactNative.AbstractFfiConverterByteArray);
|
|
317
845
|
return new FFIConverter();
|
|
318
846
|
}();
|
|
847
|
+
|
|
319
848
|
/**
|
|
320
849
|
* This should be called before anything else.
|
|
321
850
|
*
|
|
@@ -328,18 +857,23 @@ var FfiConverterTypeSpaceRoomListPaginationState = function () {
|
|
|
328
857
|
*/
|
|
329
858
|
function uniffiEnsureInitialized() {
|
|
330
859
|
// Get the bindings contract version from our ComponentInterface
|
|
331
|
-
var bindingsContractVersion =
|
|
860
|
+
var bindingsContractVersion = 30;
|
|
332
861
|
// Get the scaffolding contract version by calling the into the dylib
|
|
333
862
|
var scaffoldingContractVersion = nativeModule().ubrn_ffi_matrix_sdk_ui_uniffi_contract_version();
|
|
334
863
|
if (bindingsContractVersion !== scaffoldingContractVersion) {
|
|
335
|
-
throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
|
|
864
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
|
|
336
865
|
}
|
|
337
866
|
}
|
|
338
|
-
|
|
867
|
+
var _default = exports["default"] = Object.freeze({
|
|
339
868
|
initialize: uniffiEnsureInitialized,
|
|
340
869
|
converters: {
|
|
341
870
|
FfiConverterTypeEventItemOrigin: FfiConverterTypeEventItemOrigin,
|
|
871
|
+
FfiConverterTypeLatestEventValueLocalState: FfiConverterTypeLatestEventValueLocalState,
|
|
342
872
|
FfiConverterTypeRoomPinnedEventsChange: FfiConverterTypeRoomPinnedEventsChange,
|
|
343
|
-
FfiConverterTypeSpaceRoomListPaginationState: FfiConverterTypeSpaceRoomListPaginationState
|
|
873
|
+
FfiConverterTypeSpaceRoomListPaginationState: FfiConverterTypeSpaceRoomListPaginationState,
|
|
874
|
+
FfiConverterTypeThreadListPaginationState: FfiConverterTypeThreadListPaginationState,
|
|
875
|
+
FfiConverterTypeTimelineEventFocusThreadMode: FfiConverterTypeTimelineEventFocusThreadMode,
|
|
876
|
+
FfiConverterTypeTimelineEventShieldStateCode: FfiConverterTypeTimelineEventShieldStateCode,
|
|
877
|
+
FfiConverterTypeTimelineReadReceiptTracking: FfiConverterTypeTimelineReadReceiptTracking
|
|
344
878
|
}
|
|
345
879
|
});
|