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