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
|
@@ -15,11 +15,13 @@ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf
|
|
|
15
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
16
|
// This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
|
|
17
17
|
// Trust me, you don't want to mess with it!
|
|
18
|
+
|
|
18
19
|
/* tslint:disable */
|
|
19
20
|
/* eslint-disable */
|
|
20
21
|
// @ts-nocheck
|
|
21
22
|
import * as wasmBundle from "./wasm-bindgen/index.js";
|
|
22
23
|
import { AbstractFfiConverterByteArray, FfiConverterBool, FfiConverterFloat64, FfiConverterInt32, FfiConverterInt64, FfiConverterObject, FfiConverterOptional, UniffiAbstractObject, UniffiEnum, UniffiError, UniffiInternalError, UniffiRustCaller, destructorGuardSymbol, pointerLiteralSymbol, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiTypeNameSymbol, variantOrdinalSymbol } from "uniffi-bindgen-react-native";
|
|
24
|
+
|
|
23
25
|
// Get converters from the other files, if any.
|
|
24
26
|
var nativeModule = function nativeModule() {
|
|
25
27
|
return wasmBundle;
|
|
@@ -32,6 +34,14 @@ var uniffiIsDebug =
|
|
|
32
34
|
(typeof process === "undefined" ? "undefined" : _typeof(process)) !== "object" ||
|
|
33
35
|
// @ts-ignore -- The process global might not be defined
|
|
34
36
|
((_process = process) === null || _process === void 0 || (_process = _process.env) === null || _process === void 0 ? void 0 : _process.NODE_ENV) !== "production" || false;
|
|
37
|
+
// Public interface members begin here.
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* A set of common power levels required for various operations within a room,
|
|
41
|
+
* that can be applied as a single operation. When updating these
|
|
42
|
+
* settings, any levels that are `None` will remain unchanged.
|
|
43
|
+
*/
|
|
44
|
+
|
|
35
45
|
/**
|
|
36
46
|
* Generated factory for {@link RoomPowerLevelChanges} record objects.
|
|
37
47
|
*/
|
|
@@ -55,19 +65,8 @@ export var RoomPowerLevelChanges = function () {
|
|
|
55
65
|
return uniffiCreateRecord(_defaults);
|
|
56
66
|
}();
|
|
57
67
|
return Object.freeze({
|
|
58
|
-
/**
|
|
59
|
-
* Create a frozen instance of {@link RoomPowerLevelChanges}, with defaults specified
|
|
60
|
-
* in Rust, in the {@link matrix_sdk} crate.
|
|
61
|
-
*/
|
|
62
68
|
create: create,
|
|
63
|
-
/**
|
|
64
|
-
* Create a frozen instance of {@link RoomPowerLevelChanges}, with defaults specified
|
|
65
|
-
* in Rust, in the {@link matrix_sdk} crate.
|
|
66
|
-
*/
|
|
67
69
|
"new": create,
|
|
68
|
-
/**
|
|
69
|
-
* Defaults specified in the {@link matrix_sdk} crate.
|
|
70
|
-
*/
|
|
71
70
|
defaults: function defaults() {
|
|
72
71
|
return Object.freeze(_defaults());
|
|
73
72
|
}
|
|
@@ -122,6 +121,11 @@ var FfiConverterTypeRoomPowerLevelChanges = function () {
|
|
|
122
121
|
;
|
|
123
122
|
return new FFIConverter();
|
|
124
123
|
}();
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Information about the server vendor obtained from the federation API.
|
|
127
|
+
*/
|
|
128
|
+
|
|
125
129
|
/**
|
|
126
130
|
* Generated factory for {@link ServerVendorInfo} record objects.
|
|
127
131
|
*/
|
|
@@ -133,19 +137,8 @@ export var ServerVendorInfo = function () {
|
|
|
133
137
|
return uniffiCreateRecord(_defaults2);
|
|
134
138
|
}();
|
|
135
139
|
return Object.freeze({
|
|
136
|
-
/**
|
|
137
|
-
* Create a frozen instance of {@link ServerVendorInfo}, with defaults specified
|
|
138
|
-
* in Rust, in the {@link matrix_sdk} crate.
|
|
139
|
-
*/
|
|
140
140
|
create: create,
|
|
141
|
-
/**
|
|
142
|
-
* Create a frozen instance of {@link ServerVendorInfo}, with defaults specified
|
|
143
|
-
* in Rust, in the {@link matrix_sdk} crate.
|
|
144
|
-
*/
|
|
145
141
|
"new": create,
|
|
146
|
-
/**
|
|
147
|
-
* Defaults specified in the {@link matrix_sdk} crate.
|
|
148
|
-
*/
|
|
149
142
|
defaults: function defaults() {
|
|
150
143
|
return Object.freeze(_defaults2());
|
|
151
144
|
}
|
|
@@ -182,6 +175,19 @@ var FfiConverterTypeServerVendorInfo = function () {
|
|
|
182
175
|
;
|
|
183
176
|
return new FFIConverter();
|
|
184
177
|
}();
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Configuration parameters, to create a new virtual Element Call widget.
|
|
181
|
+
*
|
|
182
|
+
* If `intent` is provided the appropriate default values for all other
|
|
183
|
+
* parameters will be used by element call.
|
|
184
|
+
* In most cases its enough to only set the intent. Use the other properties
|
|
185
|
+
* only if you want to deviate from the `intent` defaults.
|
|
186
|
+
*
|
|
187
|
+
* Set [`docs/url-params.md`](https://github.com/element-hq/element-call/blob/livekit/docs/url-params.md)
|
|
188
|
+
* to find out more about the parameters and their defaults.
|
|
189
|
+
*/
|
|
190
|
+
|
|
185
191
|
/**
|
|
186
192
|
* Generated factory for {@link VirtualElementCallWidgetConfig} record objects.
|
|
187
193
|
*/
|
|
@@ -203,19 +209,8 @@ export var VirtualElementCallWidgetConfig = function () {
|
|
|
203
209
|
return uniffiCreateRecord(_defaults3);
|
|
204
210
|
}();
|
|
205
211
|
return Object.freeze({
|
|
206
|
-
/**
|
|
207
|
-
* Create a frozen instance of {@link VirtualElementCallWidgetConfig}, with defaults specified
|
|
208
|
-
* in Rust, in the {@link matrix_sdk} crate.
|
|
209
|
-
*/
|
|
210
212
|
create: create,
|
|
211
|
-
/**
|
|
212
|
-
* Create a frozen instance of {@link VirtualElementCallWidgetConfig}, with defaults specified
|
|
213
|
-
* in Rust, in the {@link matrix_sdk} crate.
|
|
214
|
-
*/
|
|
215
213
|
"new": create,
|
|
216
|
-
/**
|
|
217
|
-
* Defaults specified in the {@link matrix_sdk} crate.
|
|
218
|
-
*/
|
|
219
214
|
defaults: function defaults() {
|
|
220
215
|
return Object.freeze(_defaults3());
|
|
221
216
|
}
|
|
@@ -268,6 +263,15 @@ var FfiConverterTypeVirtualElementCallWidgetConfig = function () {
|
|
|
268
263
|
;
|
|
269
264
|
return new FFIConverter();
|
|
270
265
|
}();
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Properties to create a new virtual Element Call widget.
|
|
269
|
+
*
|
|
270
|
+
* All these are required to start the widget in the first place.
|
|
271
|
+
* This is different from the `VirtualElementCallWidgetConfiguration` which
|
|
272
|
+
* configures the widgets behavior.
|
|
273
|
+
*/
|
|
274
|
+
|
|
271
275
|
/**
|
|
272
276
|
* Generated factory for {@link VirtualElementCallWidgetProperties} record objects.
|
|
273
277
|
*/
|
|
@@ -289,19 +293,8 @@ export var VirtualElementCallWidgetProperties = function () {
|
|
|
289
293
|
return uniffiCreateRecord(_defaults4);
|
|
290
294
|
}();
|
|
291
295
|
return Object.freeze({
|
|
292
|
-
/**
|
|
293
|
-
* Create a frozen instance of {@link VirtualElementCallWidgetProperties}, with defaults specified
|
|
294
|
-
* in Rust, in the {@link matrix_sdk} crate.
|
|
295
|
-
*/
|
|
296
296
|
create: create,
|
|
297
|
-
/**
|
|
298
|
-
* Create a frozen instance of {@link VirtualElementCallWidgetProperties}, with defaults specified
|
|
299
|
-
* in Rust, in the {@link matrix_sdk} crate.
|
|
300
|
-
*/
|
|
301
297
|
"new": create,
|
|
302
|
-
/**
|
|
303
|
-
* Defaults specified in the {@link matrix_sdk} crate.
|
|
304
|
-
*/
|
|
305
298
|
defaults: function defaults() {
|
|
306
299
|
return Object.freeze(_defaults4());
|
|
307
300
|
}
|
|
@@ -374,11 +367,11 @@ var stringConverter = function () {
|
|
|
374
367
|
};
|
|
375
368
|
}();
|
|
376
369
|
var FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
|
|
370
|
+
|
|
377
371
|
/**
|
|
378
372
|
* Settings for end-to-end encryption features.
|
|
379
373
|
*/
|
|
380
|
-
export var BackupDownloadStrategy
|
|
381
|
-
(function (BackupDownloadStrategy) {
|
|
374
|
+
export var BackupDownloadStrategy = /*#__PURE__*/function (BackupDownloadStrategy) {
|
|
382
375
|
/**
|
|
383
376
|
* Automatically download all room keys from the backup when the backup
|
|
384
377
|
* recovery key has been received. The backup recovery key can be received
|
|
@@ -403,7 +396,8 @@ export var BackupDownloadStrategy;
|
|
|
403
396
|
* This is the default option.
|
|
404
397
|
*/
|
|
405
398
|
BackupDownloadStrategy[BackupDownloadStrategy["Manual"] = 2] = "Manual";
|
|
406
|
-
|
|
399
|
+
return BackupDownloadStrategy;
|
|
400
|
+
}({});
|
|
407
401
|
var FfiConverterTypeBackupDownloadStrategy = function () {
|
|
408
402
|
var ordinalConverter = FfiConverterInt32;
|
|
409
403
|
var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter5) {
|
|
@@ -447,13 +441,14 @@ var FfiConverterTypeBackupDownloadStrategy = function () {
|
|
|
447
441
|
}(AbstractFfiConverterByteArray);
|
|
448
442
|
return new FFIConverter();
|
|
449
443
|
}();
|
|
444
|
+
|
|
450
445
|
// Enum: EncryptionSystem
|
|
451
|
-
export var EncryptionSystem_Tags
|
|
452
|
-
(function (EncryptionSystem_Tags) {
|
|
446
|
+
export var EncryptionSystem_Tags = /*#__PURE__*/function (EncryptionSystem_Tags) {
|
|
453
447
|
EncryptionSystem_Tags["Unencrypted"] = "Unencrypted";
|
|
454
448
|
EncryptionSystem_Tags["PerParticipantKeys"] = "PerParticipantKeys";
|
|
455
449
|
EncryptionSystem_Tags["SharedSecret"] = "SharedSecret";
|
|
456
|
-
|
|
450
|
+
return EncryptionSystem_Tags;
|
|
451
|
+
}({});
|
|
457
452
|
/**
|
|
458
453
|
* Defines if a call is encrypted and which encryption system should be used.
|
|
459
454
|
*
|
|
@@ -562,6 +557,13 @@ export var EncryptionSystem = function () {
|
|
|
562
557
|
SharedSecret: SharedSecret_
|
|
563
558
|
});
|
|
564
559
|
}();
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Defines if a call is encrypted and which encryption system should be used.
|
|
563
|
+
*
|
|
564
|
+
* This controls the url parameters: `perParticipantE2EE`, `password`.
|
|
565
|
+
*/
|
|
566
|
+
|
|
565
567
|
// FfiConverter for enum EncryptionSystem
|
|
566
568
|
var FfiConverterTypeEncryptionSystem = function () {
|
|
567
569
|
var ordinalConverter = FfiConverterInt32;
|
|
@@ -640,11 +642,11 @@ var FfiConverterTypeEncryptionSystem = function () {
|
|
|
640
642
|
}(AbstractFfiConverterByteArray);
|
|
641
643
|
return new FFIConverter();
|
|
642
644
|
}();
|
|
645
|
+
|
|
643
646
|
/**
|
|
644
647
|
* Defines how (if) element-call renders a header.
|
|
645
648
|
*/
|
|
646
|
-
export var HeaderStyle
|
|
647
|
-
(function (HeaderStyle) {
|
|
649
|
+
export var HeaderStyle = /*#__PURE__*/function (HeaderStyle) {
|
|
648
650
|
/**
|
|
649
651
|
* The normal header with branding.
|
|
650
652
|
*/
|
|
@@ -657,7 +659,8 @@ export var HeaderStyle;
|
|
|
657
659
|
* No Header (useful for webapps).
|
|
658
660
|
*/
|
|
659
661
|
HeaderStyle[HeaderStyle["None"] = 2] = "None";
|
|
660
|
-
|
|
662
|
+
return HeaderStyle;
|
|
663
|
+
}({});
|
|
661
664
|
var FfiConverterTypeHeaderStyle = function () {
|
|
662
665
|
var ordinalConverter = FfiConverterInt32;
|
|
663
666
|
var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter7) {
|
|
@@ -701,13 +704,13 @@ var FfiConverterTypeHeaderStyle = function () {
|
|
|
701
704
|
}(AbstractFfiConverterByteArray);
|
|
702
705
|
return new FFIConverter();
|
|
703
706
|
}();
|
|
707
|
+
|
|
704
708
|
/**
|
|
705
709
|
* Defines the intent of showing the call.
|
|
706
710
|
*
|
|
707
711
|
* This controls whether to show or skip the lobby.
|
|
708
712
|
*/
|
|
709
|
-
export var Intent
|
|
710
|
-
(function (Intent) {
|
|
713
|
+
export var Intent = /*#__PURE__*/function (Intent) {
|
|
711
714
|
/**
|
|
712
715
|
* The user wants to start a call.
|
|
713
716
|
*/
|
|
@@ -725,7 +728,17 @@ export var Intent;
|
|
|
725
728
|
* The user wants to start a call in a "Direct Message" (DM) room.
|
|
726
729
|
*/
|
|
727
730
|
Intent[Intent["StartCallDm"] = 3] = "StartCallDm";
|
|
728
|
-
|
|
731
|
+
/**
|
|
732
|
+
* The user wants to start a voice call in a "Direct Message" (DM) room.
|
|
733
|
+
*/
|
|
734
|
+
Intent[Intent["StartCallDmVoice"] = 4] = "StartCallDmVoice";
|
|
735
|
+
/**
|
|
736
|
+
* The user wants to join an existing voice call that is a "Direct
|
|
737
|
+
* Message" (DM) room.
|
|
738
|
+
*/
|
|
739
|
+
Intent[Intent["JoinExistingDmVoice"] = 5] = "JoinExistingDmVoice";
|
|
740
|
+
return Intent;
|
|
741
|
+
}({});
|
|
729
742
|
var FfiConverterTypeIntent = function () {
|
|
730
743
|
var ordinalConverter = FfiConverterInt32;
|
|
731
744
|
var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter8) {
|
|
@@ -746,6 +759,10 @@ var FfiConverterTypeIntent = function () {
|
|
|
746
759
|
return Intent.JoinExistingDm;
|
|
747
760
|
case 4:
|
|
748
761
|
return Intent.StartCallDm;
|
|
762
|
+
case 5:
|
|
763
|
+
return Intent.StartCallDmVoice;
|
|
764
|
+
case 6:
|
|
765
|
+
return Intent.JoinExistingDmVoice;
|
|
749
766
|
default:
|
|
750
767
|
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
751
768
|
}
|
|
@@ -762,6 +779,10 @@ var FfiConverterTypeIntent = function () {
|
|
|
762
779
|
return ordinalConverter.write(3, into);
|
|
763
780
|
case Intent.StartCallDm:
|
|
764
781
|
return ordinalConverter.write(4, into);
|
|
782
|
+
case Intent.StartCallDmVoice:
|
|
783
|
+
return ordinalConverter.write(5, into);
|
|
784
|
+
case Intent.JoinExistingDmVoice:
|
|
785
|
+
return ordinalConverter.write(6, into);
|
|
765
786
|
}
|
|
766
787
|
}
|
|
767
788
|
}, {
|
|
@@ -773,11 +794,11 @@ var FfiConverterTypeIntent = function () {
|
|
|
773
794
|
}(AbstractFfiConverterByteArray);
|
|
774
795
|
return new FFIConverter();
|
|
775
796
|
}();
|
|
797
|
+
|
|
776
798
|
/**
|
|
777
799
|
* Types of call notifications.
|
|
778
800
|
*/
|
|
779
|
-
export var NotificationType
|
|
780
|
-
(function (NotificationType) {
|
|
801
|
+
export var NotificationType = /*#__PURE__*/function (NotificationType) {
|
|
781
802
|
/**
|
|
782
803
|
* The receiving client should display a visual notification.
|
|
783
804
|
*/
|
|
@@ -786,7 +807,8 @@ export var NotificationType;
|
|
|
786
807
|
* The receiving client should ring with an audible sound.
|
|
787
808
|
*/
|
|
788
809
|
NotificationType[NotificationType["Ring"] = 1] = "Ring";
|
|
789
|
-
|
|
810
|
+
return NotificationType;
|
|
811
|
+
}({});
|
|
790
812
|
var FfiConverterTypeNotificationType = function () {
|
|
791
813
|
var ordinalConverter = FfiConverterInt32;
|
|
792
814
|
var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter9) {
|
|
@@ -826,11 +848,163 @@ var FfiConverterTypeNotificationType = function () {
|
|
|
826
848
|
}(AbstractFfiConverterByteArray);
|
|
827
849
|
return new FFIConverter();
|
|
828
850
|
}();
|
|
851
|
+
|
|
852
|
+
// Enum: PaginationStatus
|
|
853
|
+
export var PaginationStatus_Tags = /*#__PURE__*/function (PaginationStatus_Tags) {
|
|
854
|
+
PaginationStatus_Tags["Idle"] = "Idle";
|
|
855
|
+
PaginationStatus_Tags["Paginating"] = "Paginating";
|
|
856
|
+
return PaginationStatus_Tags;
|
|
857
|
+
}({});
|
|
858
|
+
/**
|
|
859
|
+
* Status for the pagination on a cache.
|
|
860
|
+
*/
|
|
861
|
+
export var PaginationStatus = function () {
|
|
862
|
+
/**
|
|
863
|
+
* No pagination is happening right now.
|
|
864
|
+
*/
|
|
865
|
+
var Idle_ = /*#__PURE__*/function (_UniffiEnum4) {
|
|
866
|
+
function Idle_(inner) {
|
|
867
|
+
var _this4;
|
|
868
|
+
_classCallCheck(this, Idle_);
|
|
869
|
+
_this4 = _callSuper(this, Idle_, ["PaginationStatus", "Idle"]);
|
|
870
|
+
/**
|
|
871
|
+
* @private
|
|
872
|
+
* This field is private and should not be used, use `tag` instead.
|
|
873
|
+
*/
|
|
874
|
+
_defineProperty(_this4, uniffiTypeNameSymbol, "PaginationStatus");
|
|
875
|
+
_defineProperty(_this4, "tag", PaginationStatus_Tags.Idle);
|
|
876
|
+
_defineProperty(_this4, "inner", void 0);
|
|
877
|
+
_this4.inner = Object.freeze(inner);
|
|
878
|
+
return _this4;
|
|
879
|
+
}
|
|
880
|
+
_inherits(Idle_, _UniffiEnum4);
|
|
881
|
+
return _createClass(Idle_, null, [{
|
|
882
|
+
key: "new",
|
|
883
|
+
value: function _new(inner) {
|
|
884
|
+
return new Idle_(inner);
|
|
885
|
+
}
|
|
886
|
+
}, {
|
|
887
|
+
key: "instanceOf",
|
|
888
|
+
value: function instanceOf(obj) {
|
|
889
|
+
return obj.tag === PaginationStatus_Tags.Idle;
|
|
890
|
+
}
|
|
891
|
+
}]);
|
|
892
|
+
}(UniffiEnum);
|
|
893
|
+
/**
|
|
894
|
+
* Pagination is already running in the background.
|
|
895
|
+
*/
|
|
896
|
+
var Paginating_ = /*#__PURE__*/function (_UniffiEnum5) {
|
|
897
|
+
function Paginating_() {
|
|
898
|
+
var _this5;
|
|
899
|
+
_classCallCheck(this, Paginating_);
|
|
900
|
+
_this5 = _callSuper(this, Paginating_, ["PaginationStatus", "Paginating"]);
|
|
901
|
+
/**
|
|
902
|
+
* @private
|
|
903
|
+
* This field is private and should not be used, use `tag` instead.
|
|
904
|
+
*/
|
|
905
|
+
_defineProperty(_this5, uniffiTypeNameSymbol, "PaginationStatus");
|
|
906
|
+
_defineProperty(_this5, "tag", PaginationStatus_Tags.Paginating);
|
|
907
|
+
return _this5;
|
|
908
|
+
}
|
|
909
|
+
_inherits(Paginating_, _UniffiEnum5);
|
|
910
|
+
return _createClass(Paginating_, null, [{
|
|
911
|
+
key: "new",
|
|
912
|
+
value: function _new() {
|
|
913
|
+
return new Paginating_();
|
|
914
|
+
}
|
|
915
|
+
}, {
|
|
916
|
+
key: "instanceOf",
|
|
917
|
+
value: function instanceOf(obj) {
|
|
918
|
+
return obj.tag === PaginationStatus_Tags.Paginating;
|
|
919
|
+
}
|
|
920
|
+
}]);
|
|
921
|
+
}(UniffiEnum);
|
|
922
|
+
function instanceOf(obj) {
|
|
923
|
+
return obj[uniffiTypeNameSymbol] === "PaginationStatus";
|
|
924
|
+
}
|
|
925
|
+
return Object.freeze({
|
|
926
|
+
instanceOf: instanceOf,
|
|
927
|
+
Idle: Idle_,
|
|
928
|
+
Paginating: Paginating_
|
|
929
|
+
});
|
|
930
|
+
}();
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* Status for the pagination on a cache.
|
|
934
|
+
*/
|
|
935
|
+
|
|
936
|
+
// FfiConverter for enum PaginationStatus
|
|
937
|
+
var FfiConverterTypePaginationStatus = function () {
|
|
938
|
+
var ordinalConverter = FfiConverterInt32;
|
|
939
|
+
var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter0) {
|
|
940
|
+
function FFIConverter() {
|
|
941
|
+
_classCallCheck(this, FFIConverter);
|
|
942
|
+
return _callSuper(this, FFIConverter, arguments);
|
|
943
|
+
}
|
|
944
|
+
_inherits(FFIConverter, _AbstractFfiConverter0);
|
|
945
|
+
return _createClass(FFIConverter, [{
|
|
946
|
+
key: "read",
|
|
947
|
+
value: function read(from) {
|
|
948
|
+
switch (ordinalConverter.read(from)) {
|
|
949
|
+
case 1:
|
|
950
|
+
return new PaginationStatus.Idle({
|
|
951
|
+
hitTimelineStart: FfiConverterBool.read(from)
|
|
952
|
+
});
|
|
953
|
+
case 2:
|
|
954
|
+
return new PaginationStatus.Paginating();
|
|
955
|
+
default:
|
|
956
|
+
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
}, {
|
|
960
|
+
key: "write",
|
|
961
|
+
value: function write(value, into) {
|
|
962
|
+
switch (value.tag) {
|
|
963
|
+
case PaginationStatus_Tags.Idle:
|
|
964
|
+
{
|
|
965
|
+
ordinalConverter.write(1, into);
|
|
966
|
+
var inner = value.inner;
|
|
967
|
+
FfiConverterBool.write(inner.hitTimelineStart, into);
|
|
968
|
+
return;
|
|
969
|
+
}
|
|
970
|
+
case PaginationStatus_Tags.Paginating:
|
|
971
|
+
{
|
|
972
|
+
ordinalConverter.write(2, into);
|
|
973
|
+
return;
|
|
974
|
+
}
|
|
975
|
+
default:
|
|
976
|
+
// Throwing from here means that PaginationStatus_Tags hasn't matched an ordinal.
|
|
977
|
+
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
}, {
|
|
981
|
+
key: "allocationSize",
|
|
982
|
+
value: function allocationSize(value) {
|
|
983
|
+
switch (value.tag) {
|
|
984
|
+
case PaginationStatus_Tags.Idle:
|
|
985
|
+
{
|
|
986
|
+
var inner = value.inner;
|
|
987
|
+
var size = ordinalConverter.allocationSize(1);
|
|
988
|
+
size += FfiConverterBool.allocationSize(inner.hitTimelineStart);
|
|
989
|
+
return size;
|
|
990
|
+
}
|
|
991
|
+
case PaginationStatus_Tags.Paginating:
|
|
992
|
+
{
|
|
993
|
+
return ordinalConverter.allocationSize(2);
|
|
994
|
+
}
|
|
995
|
+
default:
|
|
996
|
+
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
}]);
|
|
1000
|
+
}(AbstractFfiConverterByteArray);
|
|
1001
|
+
return new FFIConverter();
|
|
1002
|
+
}();
|
|
1003
|
+
|
|
829
1004
|
/**
|
|
830
1005
|
* Current state of a [`Paginator`].
|
|
831
1006
|
*/
|
|
832
|
-
export var PaginatorState
|
|
833
|
-
(function (PaginatorState) {
|
|
1007
|
+
export var PaginatorState = /*#__PURE__*/function (PaginatorState) {
|
|
834
1008
|
/**
|
|
835
1009
|
* The initial state of the paginator.
|
|
836
1010
|
*/
|
|
@@ -848,15 +1022,16 @@ export var PaginatorState;
|
|
|
848
1022
|
* The paginator is… paginating one direction or another.
|
|
849
1023
|
*/
|
|
850
1024
|
PaginatorState[PaginatorState["Paginating"] = 3] = "Paginating";
|
|
851
|
-
|
|
1025
|
+
return PaginatorState;
|
|
1026
|
+
}({});
|
|
852
1027
|
var FfiConverterTypePaginatorState = function () {
|
|
853
1028
|
var ordinalConverter = FfiConverterInt32;
|
|
854
|
-
var FFIConverter = /*#__PURE__*/function (
|
|
1029
|
+
var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter1) {
|
|
855
1030
|
function FFIConverter() {
|
|
856
1031
|
_classCallCheck(this, FFIConverter);
|
|
857
1032
|
return _callSuper(this, FFIConverter, arguments);
|
|
858
1033
|
}
|
|
859
|
-
_inherits(FFIConverter,
|
|
1034
|
+
_inherits(FFIConverter, _AbstractFfiConverter1);
|
|
860
1035
|
return _createClass(FFIConverter, [{
|
|
861
1036
|
key: "read",
|
|
862
1037
|
value: function read(from) {
|
|
@@ -896,9 +1071,9 @@ var FfiConverterTypePaginatorState = function () {
|
|
|
896
1071
|
}(AbstractFfiConverterByteArray);
|
|
897
1072
|
return new FFIConverter();
|
|
898
1073
|
}();
|
|
1074
|
+
|
|
899
1075
|
// Flat error type: QrCodeLoginError
|
|
900
|
-
export var QrCodeLoginError_Tags
|
|
901
|
-
(function (QrCodeLoginError_Tags) {
|
|
1076
|
+
export var QrCodeLoginError_Tags = /*#__PURE__*/function (QrCodeLoginError_Tags) {
|
|
902
1077
|
QrCodeLoginError_Tags["OAuth"] = "OAuth";
|
|
903
1078
|
QrCodeLoginError_Tags["LoginFailure"] = "LoginFailure";
|
|
904
1079
|
QrCodeLoginError_Tags["UnexpectedMessage"] = "UnexpectedMessage";
|
|
@@ -910,7 +1085,8 @@ export var QrCodeLoginError_Tags;
|
|
|
910
1085
|
QrCodeLoginError_Tags["DeviceKeyUpload"] = "DeviceKeyUpload";
|
|
911
1086
|
QrCodeLoginError_Tags["SecretImport"] = "SecretImport";
|
|
912
1087
|
QrCodeLoginError_Tags["ServerReset"] = "ServerReset";
|
|
913
|
-
|
|
1088
|
+
return QrCodeLoginError_Tags;
|
|
1089
|
+
}({});
|
|
914
1090
|
/**
|
|
915
1091
|
* The error type for failures while trying to log in a new device using a QR
|
|
916
1092
|
* code.
|
|
@@ -922,21 +1098,21 @@ export var QrCodeLoginError = function () {
|
|
|
922
1098
|
*/
|
|
923
1099
|
var OAuth = /*#__PURE__*/function (_UniffiError) {
|
|
924
1100
|
function OAuth(message) {
|
|
925
|
-
var
|
|
1101
|
+
var _this6;
|
|
926
1102
|
_classCallCheck(this, OAuth);
|
|
927
|
-
|
|
1103
|
+
_this6 = _callSuper(this, OAuth, ["QrCodeLoginError", "OAuth", message]);
|
|
928
1104
|
/**
|
|
929
1105
|
* @private
|
|
930
1106
|
* This field is private and should not be used.
|
|
931
1107
|
*/
|
|
932
|
-
_defineProperty(
|
|
1108
|
+
_defineProperty(_this6, uniffiTypeNameSymbol, "QrCodeLoginError");
|
|
933
1109
|
/**
|
|
934
1110
|
* @private
|
|
935
1111
|
* This field is private and should not be used.
|
|
936
1112
|
*/
|
|
937
|
-
_defineProperty(
|
|
938
|
-
_defineProperty(
|
|
939
|
-
return
|
|
1113
|
+
_defineProperty(_this6, variantOrdinalSymbol, 1);
|
|
1114
|
+
_defineProperty(_this6, "tag", QrCodeLoginError_Tags.OAuth);
|
|
1115
|
+
return _this6;
|
|
940
1116
|
}
|
|
941
1117
|
_inherits(OAuth, _UniffiError);
|
|
942
1118
|
return _createClass(OAuth, null, [{
|
|
@@ -951,21 +1127,21 @@ export var QrCodeLoginError = function () {
|
|
|
951
1127
|
*/
|
|
952
1128
|
var LoginFailure = /*#__PURE__*/function (_UniffiError2) {
|
|
953
1129
|
function LoginFailure(message) {
|
|
954
|
-
var
|
|
1130
|
+
var _this7;
|
|
955
1131
|
_classCallCheck(this, LoginFailure);
|
|
956
|
-
|
|
1132
|
+
_this7 = _callSuper(this, LoginFailure, ["QrCodeLoginError", "LoginFailure", message]);
|
|
957
1133
|
/**
|
|
958
1134
|
* @private
|
|
959
1135
|
* This field is private and should not be used.
|
|
960
1136
|
*/
|
|
961
|
-
_defineProperty(
|
|
1137
|
+
_defineProperty(_this7, uniffiTypeNameSymbol, "QrCodeLoginError");
|
|
962
1138
|
/**
|
|
963
1139
|
* @private
|
|
964
1140
|
* This field is private and should not be used.
|
|
965
1141
|
*/
|
|
966
|
-
_defineProperty(
|
|
967
|
-
_defineProperty(
|
|
968
|
-
return
|
|
1142
|
+
_defineProperty(_this7, variantOrdinalSymbol, 2);
|
|
1143
|
+
_defineProperty(_this7, "tag", QrCodeLoginError_Tags.LoginFailure);
|
|
1144
|
+
return _this7;
|
|
969
1145
|
}
|
|
970
1146
|
_inherits(LoginFailure, _UniffiError2);
|
|
971
1147
|
return _createClass(LoginFailure, null, [{
|
|
@@ -980,21 +1156,21 @@ export var QrCodeLoginError = function () {
|
|
|
980
1156
|
*/
|
|
981
1157
|
var UnexpectedMessage = /*#__PURE__*/function (_UniffiError3) {
|
|
982
1158
|
function UnexpectedMessage(message) {
|
|
983
|
-
var
|
|
1159
|
+
var _this8;
|
|
984
1160
|
_classCallCheck(this, UnexpectedMessage);
|
|
985
|
-
|
|
1161
|
+
_this8 = _callSuper(this, UnexpectedMessage, ["QrCodeLoginError", "UnexpectedMessage", message]);
|
|
986
1162
|
/**
|
|
987
1163
|
* @private
|
|
988
1164
|
* This field is private and should not be used.
|
|
989
1165
|
*/
|
|
990
|
-
_defineProperty(
|
|
1166
|
+
_defineProperty(_this8, uniffiTypeNameSymbol, "QrCodeLoginError");
|
|
991
1167
|
/**
|
|
992
1168
|
* @private
|
|
993
1169
|
* This field is private and should not be used.
|
|
994
1170
|
*/
|
|
995
|
-
_defineProperty(
|
|
996
|
-
_defineProperty(
|
|
997
|
-
return
|
|
1171
|
+
_defineProperty(_this8, variantOrdinalSymbol, 3);
|
|
1172
|
+
_defineProperty(_this8, "tag", QrCodeLoginError_Tags.UnexpectedMessage);
|
|
1173
|
+
return _this8;
|
|
998
1174
|
}
|
|
999
1175
|
_inherits(UnexpectedMessage, _UniffiError3);
|
|
1000
1176
|
return _createClass(UnexpectedMessage, null, [{
|
|
@@ -1009,21 +1185,21 @@ export var QrCodeLoginError = function () {
|
|
|
1009
1185
|
*/
|
|
1010
1186
|
var SecureChannel = /*#__PURE__*/function (_UniffiError4) {
|
|
1011
1187
|
function SecureChannel(message) {
|
|
1012
|
-
var
|
|
1188
|
+
var _this9;
|
|
1013
1189
|
_classCallCheck(this, SecureChannel);
|
|
1014
|
-
|
|
1190
|
+
_this9 = _callSuper(this, SecureChannel, ["QrCodeLoginError", "SecureChannel", message]);
|
|
1015
1191
|
/**
|
|
1016
1192
|
* @private
|
|
1017
1193
|
* This field is private and should not be used.
|
|
1018
1194
|
*/
|
|
1019
|
-
_defineProperty(
|
|
1195
|
+
_defineProperty(_this9, uniffiTypeNameSymbol, "QrCodeLoginError");
|
|
1020
1196
|
/**
|
|
1021
1197
|
* @private
|
|
1022
1198
|
* This field is private and should not be used.
|
|
1023
1199
|
*/
|
|
1024
|
-
_defineProperty(
|
|
1025
|
-
_defineProperty(
|
|
1026
|
-
return
|
|
1200
|
+
_defineProperty(_this9, variantOrdinalSymbol, 4);
|
|
1201
|
+
_defineProperty(_this9, "tag", QrCodeLoginError_Tags.SecureChannel);
|
|
1202
|
+
return _this9;
|
|
1027
1203
|
}
|
|
1028
1204
|
_inherits(SecureChannel, _UniffiError4);
|
|
1029
1205
|
return _createClass(SecureChannel, null, [{
|
|
@@ -1038,21 +1214,21 @@ export var QrCodeLoginError = function () {
|
|
|
1038
1214
|
*/
|
|
1039
1215
|
var NotFound = /*#__PURE__*/function (_UniffiError5) {
|
|
1040
1216
|
function NotFound(message) {
|
|
1041
|
-
var
|
|
1217
|
+
var _this0;
|
|
1042
1218
|
_classCallCheck(this, NotFound);
|
|
1043
|
-
|
|
1219
|
+
_this0 = _callSuper(this, NotFound, ["QrCodeLoginError", "NotFound", message]);
|
|
1044
1220
|
/**
|
|
1045
1221
|
* @private
|
|
1046
1222
|
* This field is private and should not be used.
|
|
1047
1223
|
*/
|
|
1048
|
-
_defineProperty(
|
|
1224
|
+
_defineProperty(_this0, uniffiTypeNameSymbol, "QrCodeLoginError");
|
|
1049
1225
|
/**
|
|
1050
1226
|
* @private
|
|
1051
1227
|
* This field is private and should not be used.
|
|
1052
1228
|
*/
|
|
1053
|
-
_defineProperty(
|
|
1054
|
-
_defineProperty(
|
|
1055
|
-
return
|
|
1229
|
+
_defineProperty(_this0, variantOrdinalSymbol, 5);
|
|
1230
|
+
_defineProperty(_this0, "tag", QrCodeLoginError_Tags.NotFound);
|
|
1231
|
+
return _this0;
|
|
1056
1232
|
}
|
|
1057
1233
|
_inherits(NotFound, _UniffiError5);
|
|
1058
1234
|
return _createClass(NotFound, null, [{
|
|
@@ -1067,21 +1243,21 @@ export var QrCodeLoginError = function () {
|
|
|
1067
1243
|
*/
|
|
1068
1244
|
var CrossProcessRefreshLock = /*#__PURE__*/function (_UniffiError6) {
|
|
1069
1245
|
function CrossProcessRefreshLock(message) {
|
|
1070
|
-
var
|
|
1246
|
+
var _this1;
|
|
1071
1247
|
_classCallCheck(this, CrossProcessRefreshLock);
|
|
1072
|
-
|
|
1248
|
+
_this1 = _callSuper(this, CrossProcessRefreshLock, ["QrCodeLoginError", "CrossProcessRefreshLock", message]);
|
|
1073
1249
|
/**
|
|
1074
1250
|
* @private
|
|
1075
1251
|
* This field is private and should not be used.
|
|
1076
1252
|
*/
|
|
1077
|
-
_defineProperty(
|
|
1253
|
+
_defineProperty(_this1, uniffiTypeNameSymbol, "QrCodeLoginError");
|
|
1078
1254
|
/**
|
|
1079
1255
|
* @private
|
|
1080
1256
|
* This field is private and should not be used.
|
|
1081
1257
|
*/
|
|
1082
|
-
_defineProperty(
|
|
1083
|
-
_defineProperty(
|
|
1084
|
-
return
|
|
1258
|
+
_defineProperty(_this1, variantOrdinalSymbol, 6);
|
|
1259
|
+
_defineProperty(_this1, "tag", QrCodeLoginError_Tags.CrossProcessRefreshLock);
|
|
1260
|
+
return _this1;
|
|
1085
1261
|
}
|
|
1086
1262
|
_inherits(CrossProcessRefreshLock, _UniffiError6);
|
|
1087
1263
|
return _createClass(CrossProcessRefreshLock, null, [{
|
|
@@ -1098,21 +1274,21 @@ export var QrCodeLoginError = function () {
|
|
|
1098
1274
|
*/
|
|
1099
1275
|
var UserIdDiscovery = /*#__PURE__*/function (_UniffiError7) {
|
|
1100
1276
|
function UserIdDiscovery(message) {
|
|
1101
|
-
var
|
|
1277
|
+
var _this10;
|
|
1102
1278
|
_classCallCheck(this, UserIdDiscovery);
|
|
1103
|
-
|
|
1279
|
+
_this10 = _callSuper(this, UserIdDiscovery, ["QrCodeLoginError", "UserIdDiscovery", message]);
|
|
1104
1280
|
/**
|
|
1105
1281
|
* @private
|
|
1106
1282
|
* This field is private and should not be used.
|
|
1107
1283
|
*/
|
|
1108
|
-
_defineProperty(
|
|
1284
|
+
_defineProperty(_this10, uniffiTypeNameSymbol, "QrCodeLoginError");
|
|
1109
1285
|
/**
|
|
1110
1286
|
* @private
|
|
1111
1287
|
* This field is private and should not be used.
|
|
1112
1288
|
*/
|
|
1113
|
-
_defineProperty(
|
|
1114
|
-
_defineProperty(
|
|
1115
|
-
return
|
|
1289
|
+
_defineProperty(_this10, variantOrdinalSymbol, 7);
|
|
1290
|
+
_defineProperty(_this10, "tag", QrCodeLoginError_Tags.UserIdDiscovery);
|
|
1291
|
+
return _this10;
|
|
1116
1292
|
}
|
|
1117
1293
|
_inherits(UserIdDiscovery, _UniffiError7);
|
|
1118
1294
|
return _createClass(UserIdDiscovery, null, [{
|
|
@@ -1128,21 +1304,21 @@ export var QrCodeLoginError = function () {
|
|
|
1128
1304
|
*/
|
|
1129
1305
|
var SessionTokens = /*#__PURE__*/function (_UniffiError8) {
|
|
1130
1306
|
function SessionTokens(message) {
|
|
1131
|
-
var
|
|
1307
|
+
var _this11;
|
|
1132
1308
|
_classCallCheck(this, SessionTokens);
|
|
1133
|
-
|
|
1309
|
+
_this11 = _callSuper(this, SessionTokens, ["QrCodeLoginError", "SessionTokens", message]);
|
|
1134
1310
|
/**
|
|
1135
1311
|
* @private
|
|
1136
1312
|
* This field is private and should not be used.
|
|
1137
1313
|
*/
|
|
1138
|
-
_defineProperty(
|
|
1314
|
+
_defineProperty(_this11, uniffiTypeNameSymbol, "QrCodeLoginError");
|
|
1139
1315
|
/**
|
|
1140
1316
|
* @private
|
|
1141
1317
|
* This field is private and should not be used.
|
|
1142
1318
|
*/
|
|
1143
|
-
_defineProperty(
|
|
1144
|
-
_defineProperty(
|
|
1145
|
-
return
|
|
1319
|
+
_defineProperty(_this11, variantOrdinalSymbol, 8);
|
|
1320
|
+
_defineProperty(_this11, "tag", QrCodeLoginError_Tags.SessionTokens);
|
|
1321
|
+
return _this11;
|
|
1146
1322
|
}
|
|
1147
1323
|
_inherits(SessionTokens, _UniffiError8);
|
|
1148
1324
|
return _createClass(SessionTokens, null, [{
|
|
@@ -1157,21 +1333,21 @@ export var QrCodeLoginError = function () {
|
|
|
1157
1333
|
*/
|
|
1158
1334
|
var DeviceKeyUpload = /*#__PURE__*/function (_UniffiError9) {
|
|
1159
1335
|
function DeviceKeyUpload(message) {
|
|
1160
|
-
var
|
|
1336
|
+
var _this12;
|
|
1161
1337
|
_classCallCheck(this, DeviceKeyUpload);
|
|
1162
|
-
|
|
1338
|
+
_this12 = _callSuper(this, DeviceKeyUpload, ["QrCodeLoginError", "DeviceKeyUpload", message]);
|
|
1163
1339
|
/**
|
|
1164
1340
|
* @private
|
|
1165
1341
|
* This field is private and should not be used.
|
|
1166
1342
|
*/
|
|
1167
|
-
_defineProperty(
|
|
1343
|
+
_defineProperty(_this12, uniffiTypeNameSymbol, "QrCodeLoginError");
|
|
1168
1344
|
/**
|
|
1169
1345
|
* @private
|
|
1170
1346
|
* This field is private and should not be used.
|
|
1171
1347
|
*/
|
|
1172
|
-
_defineProperty(
|
|
1173
|
-
_defineProperty(
|
|
1174
|
-
return
|
|
1348
|
+
_defineProperty(_this12, variantOrdinalSymbol, 9);
|
|
1349
|
+
_defineProperty(_this12, "tag", QrCodeLoginError_Tags.DeviceKeyUpload);
|
|
1350
|
+
return _this12;
|
|
1175
1351
|
}
|
|
1176
1352
|
_inherits(DeviceKeyUpload, _UniffiError9);
|
|
1177
1353
|
return _createClass(DeviceKeyUpload, null, [{
|
|
@@ -1187,21 +1363,21 @@ export var QrCodeLoginError = function () {
|
|
|
1187
1363
|
*/
|
|
1188
1364
|
var SecretImport = /*#__PURE__*/function (_UniffiError0) {
|
|
1189
1365
|
function SecretImport(message) {
|
|
1190
|
-
var
|
|
1366
|
+
var _this13;
|
|
1191
1367
|
_classCallCheck(this, SecretImport);
|
|
1192
|
-
|
|
1368
|
+
_this13 = _callSuper(this, SecretImport, ["QrCodeLoginError", "SecretImport", message]);
|
|
1193
1369
|
/**
|
|
1194
1370
|
* @private
|
|
1195
1371
|
* This field is private and should not be used.
|
|
1196
1372
|
*/
|
|
1197
|
-
_defineProperty(
|
|
1373
|
+
_defineProperty(_this13, uniffiTypeNameSymbol, "QrCodeLoginError");
|
|
1198
1374
|
/**
|
|
1199
1375
|
* @private
|
|
1200
1376
|
* This field is private and should not be used.
|
|
1201
1377
|
*/
|
|
1202
|
-
_defineProperty(
|
|
1203
|
-
_defineProperty(
|
|
1204
|
-
return
|
|
1378
|
+
_defineProperty(_this13, variantOrdinalSymbol, 10);
|
|
1379
|
+
_defineProperty(_this13, "tag", QrCodeLoginError_Tags.SecretImport);
|
|
1380
|
+
return _this13;
|
|
1205
1381
|
}
|
|
1206
1382
|
_inherits(SecretImport, _UniffiError0);
|
|
1207
1383
|
return _createClass(SecretImport, null, [{
|
|
@@ -1217,21 +1393,21 @@ export var QrCodeLoginError = function () {
|
|
|
1217
1393
|
*/
|
|
1218
1394
|
var ServerReset = /*#__PURE__*/function (_UniffiError1) {
|
|
1219
1395
|
function ServerReset(message) {
|
|
1220
|
-
var
|
|
1396
|
+
var _this14;
|
|
1221
1397
|
_classCallCheck(this, ServerReset);
|
|
1222
|
-
|
|
1398
|
+
_this14 = _callSuper(this, ServerReset, ["QrCodeLoginError", "ServerReset", message]);
|
|
1223
1399
|
/**
|
|
1224
1400
|
* @private
|
|
1225
1401
|
* This field is private and should not be used.
|
|
1226
1402
|
*/
|
|
1227
|
-
_defineProperty(
|
|
1403
|
+
_defineProperty(_this14, uniffiTypeNameSymbol, "QrCodeLoginError");
|
|
1228
1404
|
/**
|
|
1229
1405
|
* @private
|
|
1230
1406
|
* This field is private and should not be used.
|
|
1231
1407
|
*/
|
|
1232
|
-
_defineProperty(
|
|
1233
|
-
_defineProperty(
|
|
1234
|
-
return
|
|
1408
|
+
_defineProperty(_this14, variantOrdinalSymbol, 11);
|
|
1409
|
+
_defineProperty(_this14, "tag", QrCodeLoginError_Tags.ServerReset);
|
|
1410
|
+
return _this14;
|
|
1235
1411
|
}
|
|
1236
1412
|
_inherits(ServerReset, _UniffiError1);
|
|
1237
1413
|
return _createClass(ServerReset, null, [{
|
|
@@ -1259,14 +1435,22 @@ export var QrCodeLoginError = function () {
|
|
|
1259
1435
|
instanceOf: _instanceOf
|
|
1260
1436
|
};
|
|
1261
1437
|
}();
|
|
1438
|
+
|
|
1439
|
+
// Union type for QrCodeLoginError error type.
|
|
1440
|
+
|
|
1441
|
+
/**
|
|
1442
|
+
* The error type for failures while trying to log in a new device using a QR
|
|
1443
|
+
* code.
|
|
1444
|
+
*/
|
|
1445
|
+
|
|
1262
1446
|
var FfiConverterTypeQRCodeLoginError = function () {
|
|
1263
1447
|
var intConverter = FfiConverterInt32;
|
|
1264
|
-
var FfiConverter = /*#__PURE__*/function (
|
|
1448
|
+
var FfiConverter = /*#__PURE__*/function (_AbstractFfiConverter10) {
|
|
1265
1449
|
function FfiConverter() {
|
|
1266
1450
|
_classCallCheck(this, FfiConverter);
|
|
1267
1451
|
return _callSuper(this, FfiConverter, arguments);
|
|
1268
1452
|
}
|
|
1269
|
-
_inherits(FfiConverter,
|
|
1453
|
+
_inherits(FfiConverter, _AbstractFfiConverter10);
|
|
1270
1454
|
return _createClass(FfiConverter, [{
|
|
1271
1455
|
key: "read",
|
|
1272
1456
|
value: function read(from) {
|
|
@@ -1313,11 +1497,11 @@ var FfiConverterTypeQRCodeLoginError = function () {
|
|
|
1313
1497
|
}(AbstractFfiConverterByteArray);
|
|
1314
1498
|
return new FfiConverter();
|
|
1315
1499
|
}();
|
|
1500
|
+
|
|
1316
1501
|
/**
|
|
1317
1502
|
* The role of a member in a room.
|
|
1318
1503
|
*/
|
|
1319
|
-
export var RoomMemberRole
|
|
1320
|
-
(function (RoomMemberRole) {
|
|
1504
|
+
export var RoomMemberRole = /*#__PURE__*/function (RoomMemberRole) {
|
|
1321
1505
|
/**
|
|
1322
1506
|
* The member is a creator.
|
|
1323
1507
|
*
|
|
@@ -1343,15 +1527,16 @@ export var RoomMemberRole;
|
|
|
1343
1527
|
* The member is a regular user.
|
|
1344
1528
|
*/
|
|
1345
1529
|
RoomMemberRole[RoomMemberRole["User"] = 3] = "User";
|
|
1346
|
-
|
|
1530
|
+
return RoomMemberRole;
|
|
1531
|
+
}({});
|
|
1347
1532
|
var FfiConverterTypeRoomMemberRole = function () {
|
|
1348
1533
|
var ordinalConverter = FfiConverterInt32;
|
|
1349
|
-
var FFIConverter = /*#__PURE__*/function (
|
|
1534
|
+
var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter11) {
|
|
1350
1535
|
function FFIConverter() {
|
|
1351
1536
|
_classCallCheck(this, FFIConverter);
|
|
1352
1537
|
return _callSuper(this, FFIConverter, arguments);
|
|
1353
1538
|
}
|
|
1354
|
-
_inherits(FFIConverter,
|
|
1539
|
+
_inherits(FFIConverter, _AbstractFfiConverter11);
|
|
1355
1540
|
return _createClass(FFIConverter, [{
|
|
1356
1541
|
key: "read",
|
|
1357
1542
|
value: function read(from) {
|
|
@@ -1391,152 +1576,15 @@ var FfiConverterTypeRoomMemberRole = function () {
|
|
|
1391
1576
|
}(AbstractFfiConverterByteArray);
|
|
1392
1577
|
return new FFIConverter();
|
|
1393
1578
|
}();
|
|
1394
|
-
|
|
1395
|
-
export var RoomPaginationStatus_Tags;
|
|
1396
|
-
(function (RoomPaginationStatus_Tags) {
|
|
1397
|
-
RoomPaginationStatus_Tags["Idle"] = "Idle";
|
|
1398
|
-
RoomPaginationStatus_Tags["Paginating"] = "Paginating";
|
|
1399
|
-
})(RoomPaginationStatus_Tags || (RoomPaginationStatus_Tags = {}));
|
|
1579
|
+
|
|
1400
1580
|
/**
|
|
1401
|
-
*
|
|
1581
|
+
* The data needed to perform authorization using OAuth 2.0.
|
|
1402
1582
|
*/
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
function Idle_(inner) {
|
|
1409
|
-
var _this13;
|
|
1410
|
-
_classCallCheck(this, Idle_);
|
|
1411
|
-
_this13 = _callSuper(this, Idle_, ["RoomPaginationStatus", "Idle"]);
|
|
1412
|
-
/**
|
|
1413
|
-
* @private
|
|
1414
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1415
|
-
*/
|
|
1416
|
-
_defineProperty(_this13, uniffiTypeNameSymbol, "RoomPaginationStatus");
|
|
1417
|
-
_defineProperty(_this13, "tag", RoomPaginationStatus_Tags.Idle);
|
|
1418
|
-
_defineProperty(_this13, "inner", void 0);
|
|
1419
|
-
_this13.inner = Object.freeze(inner);
|
|
1420
|
-
return _this13;
|
|
1421
|
-
}
|
|
1422
|
-
_inherits(Idle_, _UniffiEnum4);
|
|
1423
|
-
return _createClass(Idle_, null, [{
|
|
1424
|
-
key: "new",
|
|
1425
|
-
value: function _new(inner) {
|
|
1426
|
-
return new Idle_(inner);
|
|
1427
|
-
}
|
|
1428
|
-
}, {
|
|
1429
|
-
key: "instanceOf",
|
|
1430
|
-
value: function instanceOf(obj) {
|
|
1431
|
-
return obj.tag === RoomPaginationStatus_Tags.Idle;
|
|
1432
|
-
}
|
|
1433
|
-
}]);
|
|
1434
|
-
}(UniffiEnum);
|
|
1435
|
-
/**
|
|
1436
|
-
* Back-pagination is already running in the background.
|
|
1437
|
-
*/
|
|
1438
|
-
var Paginating_ = /*#__PURE__*/function (_UniffiEnum5) {
|
|
1439
|
-
function Paginating_() {
|
|
1440
|
-
var _this14;
|
|
1441
|
-
_classCallCheck(this, Paginating_);
|
|
1442
|
-
_this14 = _callSuper(this, Paginating_, ["RoomPaginationStatus", "Paginating"]);
|
|
1443
|
-
/**
|
|
1444
|
-
* @private
|
|
1445
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1446
|
-
*/
|
|
1447
|
-
_defineProperty(_this14, uniffiTypeNameSymbol, "RoomPaginationStatus");
|
|
1448
|
-
_defineProperty(_this14, "tag", RoomPaginationStatus_Tags.Paginating);
|
|
1449
|
-
return _this14;
|
|
1450
|
-
}
|
|
1451
|
-
_inherits(Paginating_, _UniffiEnum5);
|
|
1452
|
-
return _createClass(Paginating_, null, [{
|
|
1453
|
-
key: "new",
|
|
1454
|
-
value: function _new() {
|
|
1455
|
-
return new Paginating_();
|
|
1456
|
-
}
|
|
1457
|
-
}, {
|
|
1458
|
-
key: "instanceOf",
|
|
1459
|
-
value: function instanceOf(obj) {
|
|
1460
|
-
return obj.tag === RoomPaginationStatus_Tags.Paginating;
|
|
1461
|
-
}
|
|
1462
|
-
}]);
|
|
1463
|
-
}(UniffiEnum);
|
|
1464
|
-
function instanceOf(obj) {
|
|
1465
|
-
return obj[uniffiTypeNameSymbol] === "RoomPaginationStatus";
|
|
1466
|
-
}
|
|
1467
|
-
return Object.freeze({
|
|
1468
|
-
instanceOf: instanceOf,
|
|
1469
|
-
Idle: Idle_,
|
|
1470
|
-
Paginating: Paginating_
|
|
1471
|
-
});
|
|
1472
|
-
}();
|
|
1473
|
-
// FfiConverter for enum RoomPaginationStatus
|
|
1474
|
-
var FfiConverterTypeRoomPaginationStatus = function () {
|
|
1475
|
-
var ordinalConverter = FfiConverterInt32;
|
|
1476
|
-
var FFIConverter = /*#__PURE__*/function (_AbstractFfiConverter11) {
|
|
1477
|
-
function FFIConverter() {
|
|
1478
|
-
_classCallCheck(this, FFIConverter);
|
|
1479
|
-
return _callSuper(this, FFIConverter, arguments);
|
|
1480
|
-
}
|
|
1481
|
-
_inherits(FFIConverter, _AbstractFfiConverter11);
|
|
1482
|
-
return _createClass(FFIConverter, [{
|
|
1483
|
-
key: "read",
|
|
1484
|
-
value: function read(from) {
|
|
1485
|
-
switch (ordinalConverter.read(from)) {
|
|
1486
|
-
case 1:
|
|
1487
|
-
return new RoomPaginationStatus.Idle({
|
|
1488
|
-
hitTimelineStart: FfiConverterBool.read(from)
|
|
1489
|
-
});
|
|
1490
|
-
case 2:
|
|
1491
|
-
return new RoomPaginationStatus.Paginating();
|
|
1492
|
-
default:
|
|
1493
|
-
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1496
|
-
}, {
|
|
1497
|
-
key: "write",
|
|
1498
|
-
value: function write(value, into) {
|
|
1499
|
-
switch (value.tag) {
|
|
1500
|
-
case RoomPaginationStatus_Tags.Idle:
|
|
1501
|
-
{
|
|
1502
|
-
ordinalConverter.write(1, into);
|
|
1503
|
-
var inner = value.inner;
|
|
1504
|
-
FfiConverterBool.write(inner.hitTimelineStart, into);
|
|
1505
|
-
return;
|
|
1506
|
-
}
|
|
1507
|
-
case RoomPaginationStatus_Tags.Paginating:
|
|
1508
|
-
{
|
|
1509
|
-
ordinalConverter.write(2, into);
|
|
1510
|
-
return;
|
|
1511
|
-
}
|
|
1512
|
-
default:
|
|
1513
|
-
// Throwing from here means that RoomPaginationStatus_Tags hasn't matched an ordinal.
|
|
1514
|
-
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
1515
|
-
}
|
|
1516
|
-
}
|
|
1517
|
-
}, {
|
|
1518
|
-
key: "allocationSize",
|
|
1519
|
-
value: function allocationSize(value) {
|
|
1520
|
-
switch (value.tag) {
|
|
1521
|
-
case RoomPaginationStatus_Tags.Idle:
|
|
1522
|
-
{
|
|
1523
|
-
var inner = value.inner;
|
|
1524
|
-
var size = ordinalConverter.allocationSize(1);
|
|
1525
|
-
size += FfiConverterBool.allocationSize(inner.hitTimelineStart);
|
|
1526
|
-
return size;
|
|
1527
|
-
}
|
|
1528
|
-
case RoomPaginationStatus_Tags.Paginating:
|
|
1529
|
-
{
|
|
1530
|
-
return ordinalConverter.allocationSize(2);
|
|
1531
|
-
}
|
|
1532
|
-
default:
|
|
1533
|
-
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
1534
|
-
}
|
|
1535
|
-
}
|
|
1536
|
-
}]);
|
|
1537
|
-
}(AbstractFfiConverterByteArray);
|
|
1538
|
-
return new FFIConverter();
|
|
1539
|
-
}();
|
|
1583
|
+
|
|
1584
|
+
/**
|
|
1585
|
+
* @deprecated Use `OAuthAuthorizationDataLike` instead.
|
|
1586
|
+
*/
|
|
1587
|
+
|
|
1540
1588
|
/**
|
|
1541
1589
|
* The data needed to perform authorization using OAuth 2.0.
|
|
1542
1590
|
*/
|
|
@@ -1553,6 +1601,7 @@ export var OAuthAuthorizationData = /*#__PURE__*/function (_UniffiAbstractObject
|
|
|
1553
1601
|
_this15[destructorGuardSymbol] = uniffiTypeOAuthAuthorizationDataObjectFactory.bless(pointer);
|
|
1554
1602
|
return _this15;
|
|
1555
1603
|
}
|
|
1604
|
+
|
|
1556
1605
|
/**
|
|
1557
1606
|
* The login URL to use for authorization.
|
|
1558
1607
|
*/
|
|
@@ -1565,6 +1614,7 @@ export var OAuthAuthorizationData = /*#__PURE__*/function (_UniffiAbstractObject
|
|
|
1565
1614
|
return nativeModule().ubrn_uniffi_matrix_sdk_fn_method_oauthauthorizationdata_login_url(uniffiTypeOAuthAuthorizationDataObjectFactory.clonePointer(_this16), callStatus);
|
|
1566
1615
|
}, /*liftString:*/FfiConverterString.lift));
|
|
1567
1616
|
}
|
|
1617
|
+
|
|
1568
1618
|
/**
|
|
1569
1619
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
1570
1620
|
*/
|
|
@@ -1639,22 +1689,30 @@ var uniffiTypeOAuthAuthorizationDataObjectFactory = function () {
|
|
|
1639
1689
|
}
|
|
1640
1690
|
};
|
|
1641
1691
|
}();
|
|
1642
|
-
// FfiConverter for
|
|
1692
|
+
// FfiConverter for OAuthAuthorizationDataLike
|
|
1643
1693
|
var FfiConverterTypeOAuthAuthorizationData = new FfiConverterObject(uniffiTypeOAuthAuthorizationDataObjectFactory);
|
|
1694
|
+
|
|
1644
1695
|
// FfiConverter for boolean | undefined
|
|
1645
1696
|
var FfiConverterOptionalBool = new FfiConverterOptional(FfiConverterBool);
|
|
1697
|
+
|
|
1646
1698
|
// FfiConverter for /*f64*/number | undefined
|
|
1647
1699
|
var FfiConverterOptionalFloat64 = new FfiConverterOptional(FfiConverterFloat64);
|
|
1700
|
+
|
|
1648
1701
|
// FfiConverter for /*i64*/bigint | undefined
|
|
1649
1702
|
var FfiConverterOptionalInt64 = new FfiConverterOptional(FfiConverterInt64);
|
|
1703
|
+
|
|
1650
1704
|
// FfiConverter for string | undefined
|
|
1651
1705
|
var FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString);
|
|
1706
|
+
|
|
1652
1707
|
// FfiConverter for HeaderStyle | undefined
|
|
1653
1708
|
var FfiConverterOptionalTypeHeaderStyle = new FfiConverterOptional(FfiConverterTypeHeaderStyle);
|
|
1709
|
+
|
|
1654
1710
|
// FfiConverter for Intent | undefined
|
|
1655
1711
|
var FfiConverterOptionalTypeIntent = new FfiConverterOptional(FfiConverterTypeIntent);
|
|
1712
|
+
|
|
1656
1713
|
// FfiConverter for NotificationType | undefined
|
|
1657
1714
|
var FfiConverterOptionalTypeNotificationType = new FfiConverterOptional(FfiConverterTypeNotificationType);
|
|
1715
|
+
|
|
1658
1716
|
/**
|
|
1659
1717
|
* This should be called before anything else.
|
|
1660
1718
|
*
|
|
@@ -1667,13 +1725,13 @@ var FfiConverterOptionalTypeNotificationType = new FfiConverterOptional(FfiConve
|
|
|
1667
1725
|
*/
|
|
1668
1726
|
function uniffiEnsureInitialized() {
|
|
1669
1727
|
// Get the bindings contract version from our ComponentInterface
|
|
1670
|
-
var bindingsContractVersion =
|
|
1728
|
+
var bindingsContractVersion = 30;
|
|
1671
1729
|
// Get the scaffolding contract version by calling the into the dylib
|
|
1672
1730
|
var scaffoldingContractVersion = nativeModule().ubrn_ffi_matrix_sdk_uniffi_contract_version();
|
|
1673
1731
|
if (bindingsContractVersion !== scaffoldingContractVersion) {
|
|
1674
1732
|
throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
|
|
1675
1733
|
}
|
|
1676
|
-
if (nativeModule().ubrn_uniffi_matrix_sdk_checksum_method_oauthauthorizationdata_login_url() !==
|
|
1734
|
+
if (nativeModule().ubrn_uniffi_matrix_sdk_checksum_method_oauthauthorizationdata_login_url() !== 47865) {
|
|
1677
1735
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_matrix_sdk_checksum_method_oauthauthorizationdata_login_url");
|
|
1678
1736
|
}
|
|
1679
1737
|
}
|
|
@@ -1686,10 +1744,10 @@ export default Object.freeze({
|
|
|
1686
1744
|
FfiConverterTypeIntent: FfiConverterTypeIntent,
|
|
1687
1745
|
FfiConverterTypeNotificationType: FfiConverterTypeNotificationType,
|
|
1688
1746
|
FfiConverterTypeOAuthAuthorizationData: FfiConverterTypeOAuthAuthorizationData,
|
|
1747
|
+
FfiConverterTypePaginationStatus: FfiConverterTypePaginationStatus,
|
|
1689
1748
|
FfiConverterTypePaginatorState: FfiConverterTypePaginatorState,
|
|
1690
1749
|
FfiConverterTypeQRCodeLoginError: FfiConverterTypeQRCodeLoginError,
|
|
1691
1750
|
FfiConverterTypeRoomMemberRole: FfiConverterTypeRoomMemberRole,
|
|
1692
|
-
FfiConverterTypeRoomPaginationStatus: FfiConverterTypeRoomPaginationStatus,
|
|
1693
1751
|
FfiConverterTypeRoomPowerLevelChanges: FfiConverterTypeRoomPowerLevelChanges,
|
|
1694
1752
|
FfiConverterTypeServerVendorInfo: FfiConverterTypeServerVendorInfo,
|
|
1695
1753
|
FfiConverterTypeVirtualElementCallWidgetConfig: FfiConverterTypeVirtualElementCallWidgetConfig,
|