@wireapp/core-crypto 10.2.0 → 10.3.0
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/dist/browser/autogenerated/wasm-bindgen/index_bg.wasm +0 -0
- package/dist/browser/autogenerated/wasm-bindgen/index_bg.wasm.d.ts +22 -22
- package/dist/browser/corecrypto.d.ts +523 -296
- package/dist/browser/corecrypto.js +1000 -823
- package/dist/native/corecrypto.d.ts +523 -296
- package/dist/native/corecrypto.js +1496 -1545
- package/dist/native/libcore_crypto_ffi.dylib +0 -0
- package/dist/native/libcore_crypto_ffi.so +0 -0
- package/package.json +1 -1
|
@@ -9,11 +9,7 @@ var DEFINITIONS = {
|
|
|
9
9
|
},
|
|
10
10
|
functions: {
|
|
11
11
|
ffi_core_crypto_ffi_rust_future_poll_u8: {
|
|
12
|
-
args: [
|
|
13
|
-
FfiType.Handle,
|
|
14
|
-
FfiType.Callback("RustFutureContinuationCallback"),
|
|
15
|
-
FfiType.Handle
|
|
16
|
-
],
|
|
12
|
+
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
17
13
|
ret: FfiType.Void,
|
|
18
14
|
hasRustCallStatus: false
|
|
19
15
|
},
|
|
@@ -33,11 +29,7 @@ var DEFINITIONS = {
|
|
|
33
29
|
hasRustCallStatus: false
|
|
34
30
|
},
|
|
35
31
|
ffi_core_crypto_ffi_rust_future_poll_i8: {
|
|
36
|
-
args: [
|
|
37
|
-
FfiType.Handle,
|
|
38
|
-
FfiType.Callback("RustFutureContinuationCallback"),
|
|
39
|
-
FfiType.Handle
|
|
40
|
-
],
|
|
32
|
+
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
41
33
|
ret: FfiType.Void,
|
|
42
34
|
hasRustCallStatus: false
|
|
43
35
|
},
|
|
@@ -57,11 +49,7 @@ var DEFINITIONS = {
|
|
|
57
49
|
hasRustCallStatus: false
|
|
58
50
|
},
|
|
59
51
|
ffi_core_crypto_ffi_rust_future_poll_u16: {
|
|
60
|
-
args: [
|
|
61
|
-
FfiType.Handle,
|
|
62
|
-
FfiType.Callback("RustFutureContinuationCallback"),
|
|
63
|
-
FfiType.Handle
|
|
64
|
-
],
|
|
52
|
+
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
65
53
|
ret: FfiType.Void,
|
|
66
54
|
hasRustCallStatus: false
|
|
67
55
|
},
|
|
@@ -81,11 +69,7 @@ var DEFINITIONS = {
|
|
|
81
69
|
hasRustCallStatus: false
|
|
82
70
|
},
|
|
83
71
|
ffi_core_crypto_ffi_rust_future_poll_i16: {
|
|
84
|
-
args: [
|
|
85
|
-
FfiType.Handle,
|
|
86
|
-
FfiType.Callback("RustFutureContinuationCallback"),
|
|
87
|
-
FfiType.Handle
|
|
88
|
-
],
|
|
72
|
+
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
89
73
|
ret: FfiType.Void,
|
|
90
74
|
hasRustCallStatus: false
|
|
91
75
|
},
|
|
@@ -105,11 +89,7 @@ var DEFINITIONS = {
|
|
|
105
89
|
hasRustCallStatus: false
|
|
106
90
|
},
|
|
107
91
|
ffi_core_crypto_ffi_rust_future_poll_u32: {
|
|
108
|
-
args: [
|
|
109
|
-
FfiType.Handle,
|
|
110
|
-
FfiType.Callback("RustFutureContinuationCallback"),
|
|
111
|
-
FfiType.Handle
|
|
112
|
-
],
|
|
92
|
+
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
113
93
|
ret: FfiType.Void,
|
|
114
94
|
hasRustCallStatus: false
|
|
115
95
|
},
|
|
@@ -129,11 +109,7 @@ var DEFINITIONS = {
|
|
|
129
109
|
hasRustCallStatus: false
|
|
130
110
|
},
|
|
131
111
|
ffi_core_crypto_ffi_rust_future_poll_i32: {
|
|
132
|
-
args: [
|
|
133
|
-
FfiType.Handle,
|
|
134
|
-
FfiType.Callback("RustFutureContinuationCallback"),
|
|
135
|
-
FfiType.Handle
|
|
136
|
-
],
|
|
112
|
+
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
137
113
|
ret: FfiType.Void,
|
|
138
114
|
hasRustCallStatus: false
|
|
139
115
|
},
|
|
@@ -153,11 +129,7 @@ var DEFINITIONS = {
|
|
|
153
129
|
hasRustCallStatus: false
|
|
154
130
|
},
|
|
155
131
|
ffi_core_crypto_ffi_rust_future_poll_u64: {
|
|
156
|
-
args: [
|
|
157
|
-
FfiType.Handle,
|
|
158
|
-
FfiType.Callback("RustFutureContinuationCallback"),
|
|
159
|
-
FfiType.Handle
|
|
160
|
-
],
|
|
132
|
+
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
161
133
|
ret: FfiType.Void,
|
|
162
134
|
hasRustCallStatus: false
|
|
163
135
|
},
|
|
@@ -177,11 +149,7 @@ var DEFINITIONS = {
|
|
|
177
149
|
hasRustCallStatus: false
|
|
178
150
|
},
|
|
179
151
|
ffi_core_crypto_ffi_rust_future_poll_i64: {
|
|
180
|
-
args: [
|
|
181
|
-
FfiType.Handle,
|
|
182
|
-
FfiType.Callback("RustFutureContinuationCallback"),
|
|
183
|
-
FfiType.Handle
|
|
184
|
-
],
|
|
152
|
+
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
185
153
|
ret: FfiType.Void,
|
|
186
154
|
hasRustCallStatus: false
|
|
187
155
|
},
|
|
@@ -201,11 +169,7 @@ var DEFINITIONS = {
|
|
|
201
169
|
hasRustCallStatus: false
|
|
202
170
|
},
|
|
203
171
|
ffi_core_crypto_ffi_rust_future_poll_f32: {
|
|
204
|
-
args: [
|
|
205
|
-
FfiType.Handle,
|
|
206
|
-
FfiType.Callback("RustFutureContinuationCallback"),
|
|
207
|
-
FfiType.Handle
|
|
208
|
-
],
|
|
172
|
+
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
209
173
|
ret: FfiType.Void,
|
|
210
174
|
hasRustCallStatus: false
|
|
211
175
|
},
|
|
@@ -225,11 +189,7 @@ var DEFINITIONS = {
|
|
|
225
189
|
hasRustCallStatus: false
|
|
226
190
|
},
|
|
227
191
|
ffi_core_crypto_ffi_rust_future_poll_f64: {
|
|
228
|
-
args: [
|
|
229
|
-
FfiType.Handle,
|
|
230
|
-
FfiType.Callback("RustFutureContinuationCallback"),
|
|
231
|
-
FfiType.Handle
|
|
232
|
-
],
|
|
192
|
+
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
233
193
|
ret: FfiType.Void,
|
|
234
194
|
hasRustCallStatus: false
|
|
235
195
|
},
|
|
@@ -249,11 +209,7 @@ var DEFINITIONS = {
|
|
|
249
209
|
hasRustCallStatus: false
|
|
250
210
|
},
|
|
251
211
|
ffi_core_crypto_ffi_rust_future_poll_rust_buffer: {
|
|
252
|
-
args: [
|
|
253
|
-
FfiType.Handle,
|
|
254
|
-
FfiType.Callback("RustFutureContinuationCallback"),
|
|
255
|
-
FfiType.Handle
|
|
256
|
-
],
|
|
212
|
+
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
257
213
|
ret: FfiType.Void,
|
|
258
214
|
hasRustCallStatus: false
|
|
259
215
|
},
|
|
@@ -273,11 +229,7 @@ var DEFINITIONS = {
|
|
|
273
229
|
hasRustCallStatus: false
|
|
274
230
|
},
|
|
275
231
|
ffi_core_crypto_ffi_rust_future_poll_void: {
|
|
276
|
-
args: [
|
|
277
|
-
FfiType.Handle,
|
|
278
|
-
FfiType.Callback("RustFutureContinuationCallback"),
|
|
279
|
-
FfiType.Handle
|
|
280
|
-
],
|
|
232
|
+
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
281
233
|
ret: FfiType.Void,
|
|
282
234
|
hasRustCallStatus: false
|
|
283
235
|
},
|
|
@@ -537,44 +489,32 @@ var DEFINITIONS = {
|
|
|
537
489
|
hasRustCallStatus: true
|
|
538
490
|
},
|
|
539
491
|
uniffi_core_crypto_ffi_fn_init_callback_vtable_corecryptocommand: {
|
|
540
|
-
args: [
|
|
541
|
-
FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceCoreCryptoFfiCoreCryptoCommand"))
|
|
542
|
-
],
|
|
492
|
+
args: [FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceCoreCryptoFfiCoreCryptoCommand"))],
|
|
543
493
|
ret: FfiType.Void,
|
|
544
494
|
hasRustCallStatus: false
|
|
545
495
|
},
|
|
546
496
|
uniffi_core_crypto_ffi_fn_init_callback_vtable_corecryptologger: {
|
|
547
|
-
args: [
|
|
548
|
-
FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceCoreCryptoFfiCoreCryptoLogger"))
|
|
549
|
-
],
|
|
497
|
+
args: [FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceCoreCryptoFfiCoreCryptoLogger"))],
|
|
550
498
|
ret: FfiType.Void,
|
|
551
499
|
hasRustCallStatus: false
|
|
552
500
|
},
|
|
553
501
|
uniffi_core_crypto_ffi_fn_init_callback_vtable_epochobserver: {
|
|
554
|
-
args: [
|
|
555
|
-
FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceCoreCryptoFfiEpochObserver"))
|
|
556
|
-
],
|
|
502
|
+
args: [FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceCoreCryptoFfiEpochObserver"))],
|
|
557
503
|
ret: FfiType.Void,
|
|
558
504
|
hasRustCallStatus: false
|
|
559
505
|
},
|
|
560
506
|
uniffi_core_crypto_ffi_fn_init_callback_vtable_historyobserver: {
|
|
561
|
-
args: [
|
|
562
|
-
FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceCoreCryptoFfiHistoryObserver"))
|
|
563
|
-
],
|
|
507
|
+
args: [FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceCoreCryptoFfiHistoryObserver"))],
|
|
564
508
|
ret: FfiType.Void,
|
|
565
509
|
hasRustCallStatus: false
|
|
566
510
|
},
|
|
567
511
|
uniffi_core_crypto_ffi_fn_init_callback_vtable_mlstransport: {
|
|
568
|
-
args: [
|
|
569
|
-
FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceCoreCryptoFfiMlsTransport"))
|
|
570
|
-
],
|
|
512
|
+
args: [FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceCoreCryptoFfiMlsTransport"))],
|
|
571
513
|
ret: FfiType.Void,
|
|
572
514
|
hasRustCallStatus: false
|
|
573
515
|
},
|
|
574
516
|
uniffi_core_crypto_ffi_fn_init_callback_vtable_pkienvironmenthooks: {
|
|
575
|
-
args: [
|
|
576
|
-
FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceCoreCryptoFfiPkiEnvironmentHooks"))
|
|
577
|
-
],
|
|
517
|
+
args: [FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceCoreCryptoFfiPkiEnvironmentHooks"))],
|
|
578
518
|
ret: FfiType.Void,
|
|
579
519
|
hasRustCallStatus: false
|
|
580
520
|
},
|
|
@@ -754,12 +694,7 @@ var DEFINITIONS = {
|
|
|
754
694
|
hasRustCallStatus: false
|
|
755
695
|
},
|
|
756
696
|
uniffi_core_crypto_ffi_fn_method_corecryptocontext_create_conversation: {
|
|
757
|
-
args: [
|
|
758
|
-
FfiType.Handle,
|
|
759
|
-
FfiType.Handle,
|
|
760
|
-
FfiType.Handle,
|
|
761
|
-
FfiType.RustBuffer
|
|
762
|
-
],
|
|
697
|
+
args: [FfiType.Handle, FfiType.Handle, FfiType.Handle, FfiType.RustBuffer],
|
|
763
698
|
ret: FfiType.Handle,
|
|
764
699
|
hasRustCallStatus: false
|
|
765
700
|
},
|
|
@@ -1019,14 +954,7 @@ var DEFINITIONS = {
|
|
|
1019
954
|
hasRustCallStatus: false
|
|
1020
955
|
},
|
|
1021
956
|
uniffi_core_crypto_ffi_fn_method_corecryptoffi_find_credentials_ffi: {
|
|
1022
|
-
args: [
|
|
1023
|
-
FfiType.Handle,
|
|
1024
|
-
FfiType.RustBuffer,
|
|
1025
|
-
FfiType.RustBuffer,
|
|
1026
|
-
FfiType.RustBuffer,
|
|
1027
|
-
FfiType.RustBuffer,
|
|
1028
|
-
FfiType.RustBuffer
|
|
1029
|
-
],
|
|
957
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
1030
958
|
ret: FfiType.Handle,
|
|
1031
959
|
hasRustCallStatus: false
|
|
1032
960
|
},
|
|
@@ -1111,12 +1039,7 @@ var DEFINITIONS = {
|
|
|
1111
1039
|
hasRustCallStatus: false
|
|
1112
1040
|
},
|
|
1113
1041
|
uniffi_core_crypto_ffi_fn_method_corecryptologger_log: {
|
|
1114
|
-
args: [
|
|
1115
|
-
FfiType.Handle,
|
|
1116
|
-
FfiType.RustBuffer,
|
|
1117
|
-
FfiType.RustBuffer,
|
|
1118
|
-
FfiType.RustBuffer
|
|
1119
|
-
],
|
|
1042
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
1120
1043
|
ret: FfiType.Void,
|
|
1121
1044
|
hasRustCallStatus: true
|
|
1122
1045
|
},
|
|
@@ -1366,24 +1289,12 @@ var DEFINITIONS = {
|
|
|
1366
1289
|
hasRustCallStatus: false
|
|
1367
1290
|
},
|
|
1368
1291
|
uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_http_request: {
|
|
1369
|
-
args: [
|
|
1370
|
-
FfiType.Handle,
|
|
1371
|
-
FfiType.RustBuffer,
|
|
1372
|
-
FfiType.RustBuffer,
|
|
1373
|
-
FfiType.RustBuffer,
|
|
1374
|
-
FfiType.RustBuffer
|
|
1375
|
-
],
|
|
1292
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
1376
1293
|
ret: FfiType.Handle,
|
|
1377
1294
|
hasRustCallStatus: false
|
|
1378
1295
|
},
|
|
1379
1296
|
uniffi_core_crypto_ffi_fn_method_pkienvironmenthooks_authenticate: {
|
|
1380
|
-
args: [
|
|
1381
|
-
FfiType.Handle,
|
|
1382
|
-
FfiType.RustBuffer,
|
|
1383
|
-
FfiType.RustBuffer,
|
|
1384
|
-
FfiType.RustBuffer,
|
|
1385
|
-
FfiType.RustBuffer
|
|
1386
|
-
],
|
|
1297
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
1387
1298
|
ret: FfiType.Handle,
|
|
1388
1299
|
hasRustCallStatus: false
|
|
1389
1300
|
},
|
|
@@ -1473,12 +1384,7 @@ var DEFINITIONS = {
|
|
|
1473
1384
|
hasRustCallStatus: true
|
|
1474
1385
|
},
|
|
1475
1386
|
uniffi_core_crypto_ffi_fn_constructor_x509credentialacquisition_new_from_credential_ref: {
|
|
1476
|
-
args: [
|
|
1477
|
-
FfiType.Handle,
|
|
1478
|
-
FfiType.RustBuffer,
|
|
1479
|
-
FfiType.Handle,
|
|
1480
|
-
FfiType.RustBuffer
|
|
1481
|
-
],
|
|
1387
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Handle, FfiType.RustBuffer],
|
|
1482
1388
|
ret: FfiType.Handle,
|
|
1483
1389
|
hasRustCallStatus: false
|
|
1484
1390
|
},
|
|
@@ -2255,12 +2161,7 @@ var DEFINITIONS = {
|
|
|
2255
2161
|
hasRustCallStatus: false
|
|
2256
2162
|
},
|
|
2257
2163
|
CallbackInterfaceCoreCryptoFfiCoreCryptoCommandMethod0: {
|
|
2258
|
-
args: [
|
|
2259
|
-
FfiType.Handle,
|
|
2260
|
-
FfiType.Handle,
|
|
2261
|
-
FfiType.Callback("ForeignFutureCompletevoid"),
|
|
2262
|
-
FfiType.Handle
|
|
2263
|
-
],
|
|
2164
|
+
args: [FfiType.Handle, FfiType.Handle, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
|
|
2264
2165
|
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
2265
2166
|
hasRustCallStatus: false,
|
|
2266
2167
|
outReturn: true
|
|
@@ -2276,12 +2177,7 @@ var DEFINITIONS = {
|
|
|
2276
2177
|
hasRustCallStatus: false
|
|
2277
2178
|
},
|
|
2278
2179
|
CallbackInterfaceCoreCryptoFfiCoreCryptoLoggerMethod0: {
|
|
2279
|
-
args: [
|
|
2280
|
-
FfiType.Handle,
|
|
2281
|
-
FfiType.RustBuffer,
|
|
2282
|
-
FfiType.RustBuffer,
|
|
2283
|
-
FfiType.RustBuffer
|
|
2284
|
-
],
|
|
2180
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
2285
2181
|
ret: FfiType.VoidPointer,
|
|
2286
2182
|
hasRustCallStatus: true,
|
|
2287
2183
|
outReturn: true
|
|
@@ -2297,13 +2193,7 @@ var DEFINITIONS = {
|
|
|
2297
2193
|
hasRustCallStatus: false
|
|
2298
2194
|
},
|
|
2299
2195
|
CallbackInterfaceCoreCryptoFfiEpochObserverMethod0: {
|
|
2300
|
-
args: [
|
|
2301
|
-
FfiType.Handle,
|
|
2302
|
-
FfiType.Handle,
|
|
2303
|
-
FfiType.UInt64,
|
|
2304
|
-
FfiType.Callback("ForeignFutureCompletevoid"),
|
|
2305
|
-
FfiType.Handle
|
|
2306
|
-
],
|
|
2196
|
+
args: [FfiType.Handle, FfiType.Handle, FfiType.UInt64, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
|
|
2307
2197
|
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
2308
2198
|
hasRustCallStatus: false,
|
|
2309
2199
|
outReturn: true
|
|
@@ -2319,13 +2209,7 @@ var DEFINITIONS = {
|
|
|
2319
2209
|
hasRustCallStatus: false
|
|
2320
2210
|
},
|
|
2321
2211
|
CallbackInterfaceCoreCryptoFfiHistoryObserverMethod0: {
|
|
2322
|
-
args: [
|
|
2323
|
-
FfiType.Handle,
|
|
2324
|
-
FfiType.Handle,
|
|
2325
|
-
FfiType.RustBuffer,
|
|
2326
|
-
FfiType.Callback("ForeignFutureCompletevoid"),
|
|
2327
|
-
FfiType.Handle
|
|
2328
|
-
],
|
|
2212
|
+
args: [FfiType.Handle, FfiType.Handle, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
|
|
2329
2213
|
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
2330
2214
|
hasRustCallStatus: false,
|
|
2331
2215
|
outReturn: true
|
|
@@ -2341,31 +2225,18 @@ var DEFINITIONS = {
|
|
|
2341
2225
|
hasRustCallStatus: false
|
|
2342
2226
|
},
|
|
2343
2227
|
CallbackInterfaceCoreCryptoFfiMlsTransportMethod0: {
|
|
2344
|
-
args: [
|
|
2345
|
-
FfiType.Handle,
|
|
2346
|
-
FfiType.RustBuffer,
|
|
2347
|
-
FfiType.Callback("ForeignFutureCompletevoid"),
|
|
2348
|
-
FfiType.Handle
|
|
2349
|
-
],
|
|
2228
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
|
|
2350
2229
|
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
2351
2230
|
hasRustCallStatus: false,
|
|
2352
2231
|
outReturn: true
|
|
2353
2232
|
},
|
|
2354
2233
|
ForeignFutureCompleterust_buffer: {
|
|
2355
|
-
args: [
|
|
2356
|
-
FfiType.Handle,
|
|
2357
|
-
FfiType.Struct("ForeignFutureResultRustBuffer")
|
|
2358
|
-
],
|
|
2234
|
+
args: [FfiType.Handle, FfiType.Struct("ForeignFutureResultRustBuffer")],
|
|
2359
2235
|
ret: FfiType.Void,
|
|
2360
2236
|
hasRustCallStatus: false
|
|
2361
2237
|
},
|
|
2362
2238
|
CallbackInterfaceCoreCryptoFfiMlsTransportMethod1: {
|
|
2363
|
-
args: [
|
|
2364
|
-
FfiType.Handle,
|
|
2365
|
-
FfiType.RustBuffer,
|
|
2366
|
-
FfiType.Callback("ForeignFutureCompleterust_buffer"),
|
|
2367
|
-
FfiType.Handle
|
|
2368
|
-
],
|
|
2239
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompleterust_buffer"), FfiType.Handle],
|
|
2369
2240
|
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
2370
2241
|
hasRustCallStatus: false,
|
|
2371
2242
|
outReturn: true
|
|
@@ -2381,50 +2252,25 @@ var DEFINITIONS = {
|
|
|
2381
2252
|
hasRustCallStatus: false
|
|
2382
2253
|
},
|
|
2383
2254
|
CallbackInterfaceCoreCryptoFfiPkiEnvironmentHooksMethod0: {
|
|
2384
|
-
args: [
|
|
2385
|
-
FfiType.Handle,
|
|
2386
|
-
FfiType.RustBuffer,
|
|
2387
|
-
FfiType.RustBuffer,
|
|
2388
|
-
FfiType.RustBuffer,
|
|
2389
|
-
FfiType.RustBuffer,
|
|
2390
|
-
FfiType.Callback("ForeignFutureCompleterust_buffer"),
|
|
2391
|
-
FfiType.Handle
|
|
2392
|
-
],
|
|
2255
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompleterust_buffer"), FfiType.Handle],
|
|
2393
2256
|
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
2394
2257
|
hasRustCallStatus: false,
|
|
2395
2258
|
outReturn: true
|
|
2396
2259
|
},
|
|
2397
2260
|
CallbackInterfaceCoreCryptoFfiPkiEnvironmentHooksMethod1: {
|
|
2398
|
-
args: [
|
|
2399
|
-
FfiType.Handle,
|
|
2400
|
-
FfiType.RustBuffer,
|
|
2401
|
-
FfiType.RustBuffer,
|
|
2402
|
-
FfiType.RustBuffer,
|
|
2403
|
-
FfiType.RustBuffer,
|
|
2404
|
-
FfiType.Callback("ForeignFutureCompleterust_buffer"),
|
|
2405
|
-
FfiType.Handle
|
|
2406
|
-
],
|
|
2261
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompleterust_buffer"), FfiType.Handle],
|
|
2407
2262
|
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
2408
2263
|
hasRustCallStatus: false,
|
|
2409
2264
|
outReturn: true
|
|
2410
2265
|
},
|
|
2411
2266
|
CallbackInterfaceCoreCryptoFfiPkiEnvironmentHooksMethod2: {
|
|
2412
|
-
args: [
|
|
2413
|
-
FfiType.Handle,
|
|
2414
|
-
FfiType.Callback("ForeignFutureCompleterust_buffer"),
|
|
2415
|
-
FfiType.Handle
|
|
2416
|
-
],
|
|
2267
|
+
args: [FfiType.Handle, FfiType.Callback("ForeignFutureCompleterust_buffer"), FfiType.Handle],
|
|
2417
2268
|
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
2418
2269
|
hasRustCallStatus: false,
|
|
2419
2270
|
outReturn: true
|
|
2420
2271
|
},
|
|
2421
2272
|
CallbackInterfaceCoreCryptoFfiPkiEnvironmentHooksMethod3: {
|
|
2422
|
-
args: [
|
|
2423
|
-
FfiType.Handle,
|
|
2424
|
-
FfiType.RustBuffer,
|
|
2425
|
-
FfiType.Callback("ForeignFutureCompleterust_buffer"),
|
|
2426
|
-
FfiType.Handle
|
|
2427
|
-
],
|
|
2273
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompleterust_buffer"), FfiType.Handle],
|
|
2428
2274
|
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
2429
2275
|
hasRustCallStatus: false,
|
|
2430
2276
|
outReturn: true
|
|
@@ -2443,117 +2289,48 @@ var DEFINITIONS = {
|
|
|
2443
2289
|
structs: {
|
|
2444
2290
|
ForeignFutureDroppedCallbackStruct: [
|
|
2445
2291
|
{ name: "handle", type: FfiType.Handle },
|
|
2446
|
-
{
|
|
2447
|
-
name: "free",
|
|
2448
|
-
type: FfiType.Callback("ForeignFutureDroppedCallback")
|
|
2449
|
-
}
|
|
2292
|
+
{ name: "free", type: FfiType.Callback("ForeignFutureDroppedCallback") }
|
|
2450
2293
|
],
|
|
2451
2294
|
ForeignFutureResultVoid: [
|
|
2452
2295
|
{ name: "call_status", type: FfiType.RustCallStatus }
|
|
2453
2296
|
],
|
|
2454
2297
|
VTableCallbackInterfaceCoreCryptoFfiCoreCryptoCommand: [
|
|
2455
|
-
{
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
},
|
|
2459
|
-
{
|
|
2460
|
-
name: "uniffi_clone",
|
|
2461
|
-
type: FfiType.Callback("CallbackInterfaceCloneCoreCryptoFfi_CoreCryptoCommand")
|
|
2462
|
-
},
|
|
2463
|
-
{
|
|
2464
|
-
name: "execute",
|
|
2465
|
-
type: FfiType.Callback("CallbackInterfaceCoreCryptoFfiCoreCryptoCommandMethod0")
|
|
2466
|
-
}
|
|
2298
|
+
{ name: "uniffi_free", type: FfiType.Callback("CallbackInterfaceFreeCoreCryptoFfi_CoreCryptoCommand") },
|
|
2299
|
+
{ name: "uniffi_clone", type: FfiType.Callback("CallbackInterfaceCloneCoreCryptoFfi_CoreCryptoCommand") },
|
|
2300
|
+
{ name: "execute", type: FfiType.Callback("CallbackInterfaceCoreCryptoFfiCoreCryptoCommandMethod0") }
|
|
2467
2301
|
],
|
|
2468
2302
|
VTableCallbackInterfaceCoreCryptoFfiCoreCryptoLogger: [
|
|
2469
|
-
{
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
},
|
|
2473
|
-
{
|
|
2474
|
-
name: "uniffi_clone",
|
|
2475
|
-
type: FfiType.Callback("CallbackInterfaceCloneCoreCryptoFfi_CoreCryptoLogger")
|
|
2476
|
-
},
|
|
2477
|
-
{
|
|
2478
|
-
name: "log",
|
|
2479
|
-
type: FfiType.Callback("CallbackInterfaceCoreCryptoFfiCoreCryptoLoggerMethod0")
|
|
2480
|
-
}
|
|
2303
|
+
{ name: "uniffi_free", type: FfiType.Callback("CallbackInterfaceFreeCoreCryptoFfi_CoreCryptoLogger") },
|
|
2304
|
+
{ name: "uniffi_clone", type: FfiType.Callback("CallbackInterfaceCloneCoreCryptoFfi_CoreCryptoLogger") },
|
|
2305
|
+
{ name: "log", type: FfiType.Callback("CallbackInterfaceCoreCryptoFfiCoreCryptoLoggerMethod0") }
|
|
2481
2306
|
],
|
|
2482
2307
|
VTableCallbackInterfaceCoreCryptoFfiEpochObserver: [
|
|
2483
|
-
{
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
},
|
|
2487
|
-
{
|
|
2488
|
-
name: "uniffi_clone",
|
|
2489
|
-
type: FfiType.Callback("CallbackInterfaceCloneCoreCryptoFfi_EpochObserver")
|
|
2490
|
-
},
|
|
2491
|
-
{
|
|
2492
|
-
name: "epoch_changed",
|
|
2493
|
-
type: FfiType.Callback("CallbackInterfaceCoreCryptoFfiEpochObserverMethod0")
|
|
2494
|
-
}
|
|
2308
|
+
{ name: "uniffi_free", type: FfiType.Callback("CallbackInterfaceFreeCoreCryptoFfi_EpochObserver") },
|
|
2309
|
+
{ name: "uniffi_clone", type: FfiType.Callback("CallbackInterfaceCloneCoreCryptoFfi_EpochObserver") },
|
|
2310
|
+
{ name: "epoch_changed", type: FfiType.Callback("CallbackInterfaceCoreCryptoFfiEpochObserverMethod0") }
|
|
2495
2311
|
],
|
|
2496
2312
|
VTableCallbackInterfaceCoreCryptoFfiHistoryObserver: [
|
|
2497
|
-
{
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
},
|
|
2501
|
-
{
|
|
2502
|
-
name: "uniffi_clone",
|
|
2503
|
-
type: FfiType.Callback("CallbackInterfaceCloneCoreCryptoFfi_HistoryObserver")
|
|
2504
|
-
},
|
|
2505
|
-
{
|
|
2506
|
-
name: "history_client_created",
|
|
2507
|
-
type: FfiType.Callback("CallbackInterfaceCoreCryptoFfiHistoryObserverMethod0")
|
|
2508
|
-
}
|
|
2313
|
+
{ name: "uniffi_free", type: FfiType.Callback("CallbackInterfaceFreeCoreCryptoFfi_HistoryObserver") },
|
|
2314
|
+
{ name: "uniffi_clone", type: FfiType.Callback("CallbackInterfaceCloneCoreCryptoFfi_HistoryObserver") },
|
|
2315
|
+
{ name: "history_client_created", type: FfiType.Callback("CallbackInterfaceCoreCryptoFfiHistoryObserverMethod0") }
|
|
2509
2316
|
],
|
|
2510
2317
|
ForeignFutureResultRustBuffer: [
|
|
2511
2318
|
{ name: "return_value", type: FfiType.RustBuffer },
|
|
2512
2319
|
{ name: "call_status", type: FfiType.RustCallStatus }
|
|
2513
2320
|
],
|
|
2514
2321
|
VTableCallbackInterfaceCoreCryptoFfiMlsTransport: [
|
|
2515
|
-
{
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
}
|
|
2519
|
-
{
|
|
2520
|
-
name: "uniffi_clone",
|
|
2521
|
-
type: FfiType.Callback("CallbackInterfaceCloneCoreCryptoFfi_MlsTransport")
|
|
2522
|
-
},
|
|
2523
|
-
{
|
|
2524
|
-
name: "send_commit_bundle",
|
|
2525
|
-
type: FfiType.Callback("CallbackInterfaceCoreCryptoFfiMlsTransportMethod0")
|
|
2526
|
-
},
|
|
2527
|
-
{
|
|
2528
|
-
name: "prepare_for_transport",
|
|
2529
|
-
type: FfiType.Callback("CallbackInterfaceCoreCryptoFfiMlsTransportMethod1")
|
|
2530
|
-
}
|
|
2322
|
+
{ name: "uniffi_free", type: FfiType.Callback("CallbackInterfaceFreeCoreCryptoFfi_MlsTransport") },
|
|
2323
|
+
{ name: "uniffi_clone", type: FfiType.Callback("CallbackInterfaceCloneCoreCryptoFfi_MlsTransport") },
|
|
2324
|
+
{ name: "send_commit_bundle", type: FfiType.Callback("CallbackInterfaceCoreCryptoFfiMlsTransportMethod0") },
|
|
2325
|
+
{ name: "prepare_for_transport", type: FfiType.Callback("CallbackInterfaceCoreCryptoFfiMlsTransportMethod1") }
|
|
2531
2326
|
],
|
|
2532
2327
|
VTableCallbackInterfaceCoreCryptoFfiPkiEnvironmentHooks: [
|
|
2533
|
-
{
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
},
|
|
2537
|
-
{
|
|
2538
|
-
|
|
2539
|
-
type: FfiType.Callback("CallbackInterfaceCloneCoreCryptoFfi_PkiEnvironmentHooks")
|
|
2540
|
-
},
|
|
2541
|
-
{
|
|
2542
|
-
name: "http_request",
|
|
2543
|
-
type: FfiType.Callback("CallbackInterfaceCoreCryptoFfiPkiEnvironmentHooksMethod0")
|
|
2544
|
-
},
|
|
2545
|
-
{
|
|
2546
|
-
name: "authenticate",
|
|
2547
|
-
type: FfiType.Callback("CallbackInterfaceCoreCryptoFfiPkiEnvironmentHooksMethod1")
|
|
2548
|
-
},
|
|
2549
|
-
{
|
|
2550
|
-
name: "get_backend_nonce",
|
|
2551
|
-
type: FfiType.Callback("CallbackInterfaceCoreCryptoFfiPkiEnvironmentHooksMethod2")
|
|
2552
|
-
},
|
|
2553
|
-
{
|
|
2554
|
-
name: "fetch_backend_access_token",
|
|
2555
|
-
type: FfiType.Callback("CallbackInterfaceCoreCryptoFfiPkiEnvironmentHooksMethod3")
|
|
2556
|
-
}
|
|
2328
|
+
{ name: "uniffi_free", type: FfiType.Callback("CallbackInterfaceFreeCoreCryptoFfi_PkiEnvironmentHooks") },
|
|
2329
|
+
{ name: "uniffi_clone", type: FfiType.Callback("CallbackInterfaceCloneCoreCryptoFfi_PkiEnvironmentHooks") },
|
|
2330
|
+
{ name: "http_request", type: FfiType.Callback("CallbackInterfaceCoreCryptoFfiPkiEnvironmentHooksMethod0") },
|
|
2331
|
+
{ name: "authenticate", type: FfiType.Callback("CallbackInterfaceCoreCryptoFfiPkiEnvironmentHooksMethod1") },
|
|
2332
|
+
{ name: "get_backend_nonce", type: FfiType.Callback("CallbackInterfaceCoreCryptoFfiPkiEnvironmentHooksMethod2") },
|
|
2333
|
+
{ name: "fetch_backend_access_token", type: FfiType.Callback("CallbackInterfaceCoreCryptoFfiPkiEnvironmentHooksMethod3") }
|
|
2557
2334
|
]
|
|
2558
2335
|
}
|
|
2559
2336
|
};
|
|
@@ -2588,6 +2365,7 @@ import {
|
|
|
2588
2365
|
FfiConverterUInt64,
|
|
2589
2366
|
FfiConverterUint8Array,
|
|
2590
2367
|
UniffiAbstractObject,
|
|
2368
|
+
UniffiEnum,
|
|
2591
2369
|
UniffiError,
|
|
2592
2370
|
UniffiInternalError,
|
|
2593
2371
|
UniffiResult,
|
|
@@ -2695,101 +2473,6 @@ function version() {
|
|
|
2695
2473
|
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_func_version(callStatus);
|
|
2696
2474
|
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
2697
2475
|
}
|
|
2698
|
-
|
|
2699
|
-
class Uuid extends UniffiAbstractObject {
|
|
2700
|
-
[uniffiTypeNameSymbol] = "Uuid";
|
|
2701
|
-
[destructorGuardSymbol];
|
|
2702
|
-
[pointerLiteralSymbol];
|
|
2703
|
-
constructor(uuid) {
|
|
2704
|
-
super();
|
|
2705
|
-
const pointer = uniffiCaller.rustCallWithError(FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError), (callStatus) => {
|
|
2706
|
-
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_constructor_uuid_new(FfiConverterString.lower(uuid, core_crypto_ffi_ffi_default().rustbuffer_alloc), callStatus);
|
|
2707
|
-
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
2708
|
-
this[pointerLiteralSymbol] = pointer;
|
|
2709
|
-
this[destructorGuardSymbol] = uniffiTypeUuidObjectFactory.bless(pointer);
|
|
2710
|
-
}
|
|
2711
|
-
toString() {
|
|
2712
|
-
return ((__rb) => {
|
|
2713
|
-
try {
|
|
2714
|
-
return FfiConverterString.lift(__rb);
|
|
2715
|
-
} finally {
|
|
2716
|
-
core_crypto_ffi_ffi_default().rustbuffer_free(__rb);
|
|
2717
|
-
}
|
|
2718
|
-
})(uniffiCaller.rustCall((callStatus) => {
|
|
2719
|
-
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_display(uniffiTypeUuidObjectFactory.clonePointer(this), callStatus);
|
|
2720
|
-
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
2721
|
-
}
|
|
2722
|
-
equals(other) {
|
|
2723
|
-
return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
|
|
2724
|
-
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_eq(uniffiTypeUuidObjectFactory.clonePointer(this), FfiConverterTypeUuid.lower(other, core_crypto_ffi_ffi_default().rustbuffer_alloc), callStatus);
|
|
2725
|
-
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
2726
|
-
}
|
|
2727
|
-
hashCode() {
|
|
2728
|
-
return FfiConverterUInt64.lift(uniffiCaller.rustCall((callStatus) => {
|
|
2729
|
-
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_hash(uniffiTypeUuidObjectFactory.clonePointer(this), callStatus);
|
|
2730
|
-
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
2731
|
-
}
|
|
2732
|
-
uniffiDestroy() {
|
|
2733
|
-
const ptr = this[destructorGuardSymbol];
|
|
2734
|
-
if (ptr !== undefined) {
|
|
2735
|
-
const pointer = uniffiTypeUuidObjectFactory.pointer(this);
|
|
2736
|
-
uniffiTypeUuidObjectFactory.freePointer(pointer);
|
|
2737
|
-
uniffiTypeUuidObjectFactory.unbless(ptr);
|
|
2738
|
-
delete this[destructorGuardSymbol];
|
|
2739
|
-
}
|
|
2740
|
-
}
|
|
2741
|
-
static instanceOf(obj_) {
|
|
2742
|
-
return uniffiTypeUuidObjectFactory.isConcreteType(obj_);
|
|
2743
|
-
}
|
|
2744
|
-
}
|
|
2745
|
-
var uniffiTypeUuidObjectFactory = (() => {
|
|
2746
|
-
const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
|
|
2747
|
-
uniffiTypeUuidObjectFactory.freePointer(heldValue);
|
|
2748
|
-
}) : null;
|
|
2749
|
-
return {
|
|
2750
|
-
create(pointer) {
|
|
2751
|
-
const instance = Object.create(Uuid.prototype);
|
|
2752
|
-
instance[pointerLiteralSymbol] = pointer;
|
|
2753
|
-
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
2754
|
-
instance[uniffiTypeNameSymbol] = "Uuid";
|
|
2755
|
-
return instance;
|
|
2756
|
-
},
|
|
2757
|
-
bless(p) {
|
|
2758
|
-
const ptr = {
|
|
2759
|
-
p,
|
|
2760
|
-
markDestroyed: () => {
|
|
2761
|
-
return;
|
|
2762
|
-
}
|
|
2763
|
-
};
|
|
2764
|
-
if (registry) {
|
|
2765
|
-
registry.register(ptr, p, ptr);
|
|
2766
|
-
}
|
|
2767
|
-
return ptr;
|
|
2768
|
-
},
|
|
2769
|
-
unbless(ptr_) {
|
|
2770
|
-
if (registry) {
|
|
2771
|
-
registry.unregister(ptr_);
|
|
2772
|
-
}
|
|
2773
|
-
},
|
|
2774
|
-
pointer(obj_) {
|
|
2775
|
-
if (obj_[destructorGuardSymbol] === undefined) {
|
|
2776
|
-
throw new UniffiInternalError.UnexpectedNullPointer;
|
|
2777
|
-
}
|
|
2778
|
-
return obj_[pointerLiteralSymbol];
|
|
2779
|
-
},
|
|
2780
|
-
clonePointer(obj_) {
|
|
2781
|
-
const pointer = this.pointer(obj_);
|
|
2782
|
-
return uniffiCaller.rustCall((callStatus) => core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_clone_uuid(pointer, callStatus), FfiConverterString.lift);
|
|
2783
|
-
},
|
|
2784
|
-
freePointer(pointer) {
|
|
2785
|
-
uniffiCaller.rustCall((callStatus) => core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_free_uuid(pointer, callStatus), FfiConverterString.lift);
|
|
2786
|
-
},
|
|
2787
|
-
isConcreteType(obj_) {
|
|
2788
|
-
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "Uuid";
|
|
2789
|
-
}
|
|
2790
|
-
};
|
|
2791
|
-
})();
|
|
2792
|
-
var FfiConverterTypeUuid = new FfiConverterObject(uniffiTypeUuidObjectFactory);
|
|
2793
2476
|
var stringConverter = (() => {
|
|
2794
2477
|
const encoder = new TextEncoder;
|
|
2795
2478
|
const decoder = new TextDecoder;
|
|
@@ -2805,112 +2488,7 @@ var stringConverter = (() => {
|
|
|
2805
2488
|
};
|
|
2806
2489
|
})();
|
|
2807
2490
|
var FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
|
|
2808
|
-
|
|
2809
|
-
class DeviceId extends UniffiAbstractObject {
|
|
2810
|
-
[uniffiTypeNameSymbol] = "DeviceId";
|
|
2811
|
-
[destructorGuardSymbol];
|
|
2812
|
-
[pointerLiteralSymbol];
|
|
2813
|
-
constructor(id) {
|
|
2814
|
-
super();
|
|
2815
|
-
const pointer = uniffiCaller.rustCall((callStatus) => {
|
|
2816
|
-
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_constructor_deviceid_new(FfiConverterUInt64.lower(id, core_crypto_ffi_ffi_default().rustbuffer_alloc), callStatus);
|
|
2817
|
-
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
2818
|
-
this[pointerLiteralSymbol] = pointer;
|
|
2819
|
-
this[destructorGuardSymbol] = uniffiTypeDeviceIdObjectFactory.bless(pointer);
|
|
2820
|
-
}
|
|
2821
|
-
static fromHexString(hexString) {
|
|
2822
|
-
return FfiConverterTypeDeviceId.lift(uniffiCaller.rustCallWithError(FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError), (callStatus) => {
|
|
2823
|
-
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_constructor_deviceid_from_hex_string(FfiConverterString.lower(hexString, core_crypto_ffi_ffi_default().rustbuffer_alloc), callStatus);
|
|
2824
|
-
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
2825
|
-
}
|
|
2826
|
-
toHexString() {
|
|
2827
|
-
return ((__rb) => {
|
|
2828
|
-
try {
|
|
2829
|
-
return FfiConverterString.lift(__rb);
|
|
2830
|
-
} finally {
|
|
2831
|
-
core_crypto_ffi_ffi_default().rustbuffer_free(__rb);
|
|
2832
|
-
}
|
|
2833
|
-
})(uniffiCaller.rustCall((callStatus) => {
|
|
2834
|
-
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_deviceid_to_hex_string(uniffiTypeDeviceIdObjectFactory.clonePointer(this), callStatus);
|
|
2835
|
-
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
2836
|
-
}
|
|
2837
|
-
toU64() {
|
|
2838
|
-
return FfiConverterUInt64.lift(uniffiCaller.rustCall((callStatus) => {
|
|
2839
|
-
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_deviceid_to_u64(uniffiTypeDeviceIdObjectFactory.clonePointer(this), callStatus);
|
|
2840
|
-
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
2841
|
-
}
|
|
2842
|
-
equals(other) {
|
|
2843
|
-
return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
|
|
2844
|
-
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_eq(uniffiTypeDeviceIdObjectFactory.clonePointer(this), FfiConverterTypeDeviceId.lower(other, core_crypto_ffi_ffi_default().rustbuffer_alloc), callStatus);
|
|
2845
|
-
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
2846
|
-
}
|
|
2847
|
-
hashCode() {
|
|
2848
|
-
return FfiConverterUInt64.lift(uniffiCaller.rustCall((callStatus) => {
|
|
2849
|
-
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_hash(uniffiTypeDeviceIdObjectFactory.clonePointer(this), callStatus);
|
|
2850
|
-
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
2851
|
-
}
|
|
2852
|
-
uniffiDestroy() {
|
|
2853
|
-
const ptr = this[destructorGuardSymbol];
|
|
2854
|
-
if (ptr !== undefined) {
|
|
2855
|
-
const pointer = uniffiTypeDeviceIdObjectFactory.pointer(this);
|
|
2856
|
-
uniffiTypeDeviceIdObjectFactory.freePointer(pointer);
|
|
2857
|
-
uniffiTypeDeviceIdObjectFactory.unbless(ptr);
|
|
2858
|
-
delete this[destructorGuardSymbol];
|
|
2859
|
-
}
|
|
2860
|
-
}
|
|
2861
|
-
static instanceOf(obj_) {
|
|
2862
|
-
return uniffiTypeDeviceIdObjectFactory.isConcreteType(obj_);
|
|
2863
|
-
}
|
|
2864
|
-
}
|
|
2865
|
-
var uniffiTypeDeviceIdObjectFactory = (() => {
|
|
2866
|
-
const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
|
|
2867
|
-
uniffiTypeDeviceIdObjectFactory.freePointer(heldValue);
|
|
2868
|
-
}) : null;
|
|
2869
|
-
return {
|
|
2870
|
-
create(pointer) {
|
|
2871
|
-
const instance = Object.create(DeviceId.prototype);
|
|
2872
|
-
instance[pointerLiteralSymbol] = pointer;
|
|
2873
|
-
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
2874
|
-
instance[uniffiTypeNameSymbol] = "DeviceId";
|
|
2875
|
-
return instance;
|
|
2876
|
-
},
|
|
2877
|
-
bless(p) {
|
|
2878
|
-
const ptr = {
|
|
2879
|
-
p,
|
|
2880
|
-
markDestroyed: () => {
|
|
2881
|
-
return;
|
|
2882
|
-
}
|
|
2883
|
-
};
|
|
2884
|
-
if (registry) {
|
|
2885
|
-
registry.register(ptr, p, ptr);
|
|
2886
|
-
}
|
|
2887
|
-
return ptr;
|
|
2888
|
-
},
|
|
2889
|
-
unbless(ptr_) {
|
|
2890
|
-
if (registry) {
|
|
2891
|
-
registry.unregister(ptr_);
|
|
2892
|
-
}
|
|
2893
|
-
},
|
|
2894
|
-
pointer(obj_) {
|
|
2895
|
-
if (obj_[destructorGuardSymbol] === undefined) {
|
|
2896
|
-
throw new UniffiInternalError.UnexpectedNullPointer;
|
|
2897
|
-
}
|
|
2898
|
-
return obj_[pointerLiteralSymbol];
|
|
2899
|
-
},
|
|
2900
|
-
clonePointer(obj_) {
|
|
2901
|
-
const pointer = this.pointer(obj_);
|
|
2902
|
-
return uniffiCaller.rustCall((callStatus) => core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_clone_deviceid(pointer, callStatus), FfiConverterString.lift);
|
|
2903
|
-
},
|
|
2904
|
-
freePointer(pointer) {
|
|
2905
|
-
uniffiCaller.rustCall((callStatus) => core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_free_deviceid(pointer, callStatus), FfiConverterString.lift);
|
|
2906
|
-
},
|
|
2907
|
-
isConcreteType(obj_) {
|
|
2908
|
-
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "DeviceId";
|
|
2909
|
-
}
|
|
2910
|
-
};
|
|
2911
|
-
})();
|
|
2912
|
-
var FfiConverterTypeDeviceId = new FfiConverterObject(uniffiTypeDeviceIdObjectFactory);
|
|
2913
|
-
var DeserializedClientId = (() => {
|
|
2491
|
+
var BuildMetadata = (() => {
|
|
2914
2492
|
const defaults = () => ({});
|
|
2915
2493
|
const create = (() => {
|
|
2916
2494
|
return uniffiCreateRecord(defaults);
|
|
@@ -2918,603 +2496,722 @@ var DeserializedClientId = (() => {
|
|
|
2918
2496
|
return Object.freeze({
|
|
2919
2497
|
create,
|
|
2920
2498
|
new: create,
|
|
2921
|
-
defaults: () => Object.freeze(defaults())
|
|
2922
|
-
toString(self_) {
|
|
2923
|
-
return ((__rb) => {
|
|
2924
|
-
try {
|
|
2925
|
-
return FfiConverterString.lift(__rb);
|
|
2926
|
-
} finally {
|
|
2927
|
-
core_crypto_ffi_ffi_default().rustbuffer_free(__rb);
|
|
2928
|
-
}
|
|
2929
|
-
})(uniffiCaller.rustCall((callStatus) => {
|
|
2930
|
-
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_deserializedclientid_uniffi_trait_display(FfiConverterTypeDeserializedClientId.lower(self_, core_crypto_ffi_ffi_default().rustbuffer_alloc), callStatus);
|
|
2931
|
-
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
2932
|
-
}
|
|
2499
|
+
defaults: () => Object.freeze(defaults())
|
|
2933
2500
|
});
|
|
2934
2501
|
})();
|
|
2935
|
-
var
|
|
2502
|
+
var FfiConverterTypeBuildMetadata = (() => {
|
|
2936
2503
|
|
|
2937
2504
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
2938
2505
|
read(from) {
|
|
2939
2506
|
return {
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2507
|
+
timestamp: FfiConverterString.read(from),
|
|
2508
|
+
cargoDebug: FfiConverterString.read(from),
|
|
2509
|
+
cargoFeatures: FfiConverterString.read(from),
|
|
2510
|
+
optLevel: FfiConverterString.read(from),
|
|
2511
|
+
targetTriple: FfiConverterString.read(from),
|
|
2512
|
+
gitBranch: FfiConverterString.read(from),
|
|
2513
|
+
gitDescribe: FfiConverterString.read(from),
|
|
2514
|
+
gitSha: FfiConverterString.read(from),
|
|
2515
|
+
gitDirty: FfiConverterString.read(from)
|
|
2944
2516
|
};
|
|
2945
2517
|
}
|
|
2946
2518
|
write(value, into) {
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
FfiConverterString.write(value.
|
|
2519
|
+
FfiConverterString.write(value.timestamp, into);
|
|
2520
|
+
FfiConverterString.write(value.cargoDebug, into);
|
|
2521
|
+
FfiConverterString.write(value.cargoFeatures, into);
|
|
2522
|
+
FfiConverterString.write(value.optLevel, into);
|
|
2523
|
+
FfiConverterString.write(value.targetTriple, into);
|
|
2524
|
+
FfiConverterString.write(value.gitBranch, into);
|
|
2525
|
+
FfiConverterString.write(value.gitDescribe, into);
|
|
2526
|
+
FfiConverterString.write(value.gitSha, into);
|
|
2527
|
+
FfiConverterString.write(value.gitDirty, into);
|
|
2951
2528
|
}
|
|
2952
2529
|
allocationSize(value) {
|
|
2953
|
-
return
|
|
2530
|
+
return FfiConverterString.allocationSize(value.timestamp) + FfiConverterString.allocationSize(value.cargoDebug) + FfiConverterString.allocationSize(value.cargoFeatures) + FfiConverterString.allocationSize(value.optLevel) + FfiConverterString.allocationSize(value.targetTriple) + FfiConverterString.allocationSize(value.gitBranch) + FfiConverterString.allocationSize(value.gitDescribe) + FfiConverterString.allocationSize(value.gitSha) + FfiConverterString.allocationSize(value.gitDirty);
|
|
2954
2531
|
}
|
|
2955
2532
|
}
|
|
2956
2533
|
return new FFIConverter;
|
|
2957
2534
|
})();
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
[
|
|
2961
|
-
[
|
|
2962
|
-
[
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
}
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
2535
|
+
var MlsError_Tags;
|
|
2536
|
+
((MlsError_Tags2) => {
|
|
2537
|
+
MlsError_Tags2["ConversationAlreadyExists"] = "ConversationAlreadyExists";
|
|
2538
|
+
MlsError_Tags2["DuplicateMessage"] = "DuplicateMessage";
|
|
2539
|
+
MlsError_Tags2["BufferedFutureMessage"] = "BufferedFutureMessage";
|
|
2540
|
+
MlsError_Tags2["WrongEpoch"] = "WrongEpoch";
|
|
2541
|
+
MlsError_Tags2["BufferedCommit"] = "BufferedCommit";
|
|
2542
|
+
MlsError_Tags2["MessageEpochTooOld"] = "MessageEpochTooOld";
|
|
2543
|
+
MlsError_Tags2["SelfCommitIgnored"] = "SelfCommitIgnored";
|
|
2544
|
+
MlsError_Tags2["UnmergedPendingGroup"] = "UnmergedPendingGroup";
|
|
2545
|
+
MlsError_Tags2["StaleProposal"] = "StaleProposal";
|
|
2546
|
+
MlsError_Tags2["StaleCommit"] = "StaleCommit";
|
|
2547
|
+
MlsError_Tags2["OrphanWelcome"] = "OrphanWelcome";
|
|
2548
|
+
MlsError_Tags2["MessageRejected"] = "MessageRejected";
|
|
2549
|
+
MlsError_Tags2["Other"] = "Other";
|
|
2550
|
+
})(MlsError_Tags ||= {});
|
|
2551
|
+
var MlsError = (() => {
|
|
2552
|
+
|
|
2553
|
+
class ConversationAlreadyExists_ extends UniffiError {
|
|
2554
|
+
[uniffiTypeNameSymbol] = "MlsError";
|
|
2555
|
+
tag = "ConversationAlreadyExists" /* ConversationAlreadyExists */;
|
|
2556
|
+
inner;
|
|
2557
|
+
constructor(inner) {
|
|
2558
|
+
super("MlsError", "ConversationAlreadyExists");
|
|
2559
|
+
this.inner = Object.freeze(inner);
|
|
2560
|
+
}
|
|
2561
|
+
static new(inner) {
|
|
2562
|
+
return new ConversationAlreadyExists_(inner);
|
|
2563
|
+
}
|
|
2564
|
+
static instanceOf(obj) {
|
|
2565
|
+
return obj.tag === "ConversationAlreadyExists" /* ConversationAlreadyExists */;
|
|
2566
|
+
}
|
|
2567
|
+
static hasInner(obj) {
|
|
2568
|
+
return ConversationAlreadyExists_.instanceOf(obj);
|
|
2569
|
+
}
|
|
2570
|
+
static getInner(obj) {
|
|
2571
|
+
return obj.inner;
|
|
2572
|
+
}
|
|
2997
2573
|
}
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
2574
|
+
|
|
2575
|
+
class DuplicateMessage_ extends UniffiError {
|
|
2576
|
+
[uniffiTypeNameSymbol] = "MlsError";
|
|
2577
|
+
tag = "DuplicateMessage" /* DuplicateMessage */;
|
|
2578
|
+
constructor() {
|
|
2579
|
+
super("MlsError", "DuplicateMessage");
|
|
2580
|
+
}
|
|
2581
|
+
static new() {
|
|
2582
|
+
return new DuplicateMessage_;
|
|
2583
|
+
}
|
|
2584
|
+
static instanceOf(obj) {
|
|
2585
|
+
return obj.tag === "DuplicateMessage" /* DuplicateMessage */;
|
|
2586
|
+
}
|
|
2587
|
+
static hasInner(obj) {
|
|
2588
|
+
return false;
|
|
2589
|
+
}
|
|
3002
2590
|
}
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
2591
|
+
|
|
2592
|
+
class BufferedFutureMessage_ extends UniffiError {
|
|
2593
|
+
[uniffiTypeNameSymbol] = "MlsError";
|
|
2594
|
+
tag = "BufferedFutureMessage" /* BufferedFutureMessage */;
|
|
2595
|
+
constructor() {
|
|
2596
|
+
super("MlsError", "BufferedFutureMessage");
|
|
2597
|
+
}
|
|
2598
|
+
static new() {
|
|
2599
|
+
return new BufferedFutureMessage_;
|
|
2600
|
+
}
|
|
2601
|
+
static instanceOf(obj) {
|
|
2602
|
+
return obj.tag === "BufferedFutureMessage" /* BufferedFutureMessage */;
|
|
2603
|
+
}
|
|
2604
|
+
static hasInner(obj) {
|
|
2605
|
+
return false;
|
|
3010
2606
|
}
|
|
3011
2607
|
}
|
|
3012
|
-
|
|
3013
|
-
|
|
2608
|
+
|
|
2609
|
+
class WrongEpoch_ extends UniffiError {
|
|
2610
|
+
[uniffiTypeNameSymbol] = "MlsError";
|
|
2611
|
+
tag = "WrongEpoch" /* WrongEpoch */;
|
|
2612
|
+
constructor() {
|
|
2613
|
+
super("MlsError", "WrongEpoch");
|
|
2614
|
+
}
|
|
2615
|
+
static new() {
|
|
2616
|
+
return new WrongEpoch_;
|
|
2617
|
+
}
|
|
2618
|
+
static instanceOf(obj) {
|
|
2619
|
+
return obj.tag === "WrongEpoch" /* WrongEpoch */;
|
|
2620
|
+
}
|
|
2621
|
+
static hasInner(obj) {
|
|
2622
|
+
return false;
|
|
2623
|
+
}
|
|
3014
2624
|
}
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
create(pointer) {
|
|
3022
|
-
const instance = Object.create(ClientId.prototype);
|
|
3023
|
-
instance[pointerLiteralSymbol] = pointer;
|
|
3024
|
-
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
3025
|
-
instance[uniffiTypeNameSymbol] = "ClientId";
|
|
3026
|
-
return instance;
|
|
3027
|
-
},
|
|
3028
|
-
bless(p) {
|
|
3029
|
-
const ptr = {
|
|
3030
|
-
p,
|
|
3031
|
-
markDestroyed: () => {
|
|
3032
|
-
return;
|
|
3033
|
-
}
|
|
3034
|
-
};
|
|
3035
|
-
if (registry) {
|
|
3036
|
-
registry.register(ptr, p, ptr);
|
|
3037
|
-
}
|
|
3038
|
-
return ptr;
|
|
3039
|
-
},
|
|
3040
|
-
unbless(ptr_) {
|
|
3041
|
-
if (registry) {
|
|
3042
|
-
registry.unregister(ptr_);
|
|
3043
|
-
}
|
|
3044
|
-
},
|
|
3045
|
-
pointer(obj_) {
|
|
3046
|
-
if (obj_[destructorGuardSymbol] === undefined) {
|
|
3047
|
-
throw new UniffiInternalError.UnexpectedNullPointer;
|
|
3048
|
-
}
|
|
3049
|
-
return obj_[pointerLiteralSymbol];
|
|
3050
|
-
},
|
|
3051
|
-
clonePointer(obj_) {
|
|
3052
|
-
const pointer = this.pointer(obj_);
|
|
3053
|
-
return uniffiCaller.rustCall((callStatus) => core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_clone_clientid(pointer, callStatus), FfiConverterString.lift);
|
|
3054
|
-
},
|
|
3055
|
-
freePointer(pointer) {
|
|
3056
|
-
uniffiCaller.rustCall((callStatus) => core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_free_clientid(pointer, callStatus), FfiConverterString.lift);
|
|
3057
|
-
},
|
|
3058
|
-
isConcreteType(obj_) {
|
|
3059
|
-
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "ClientId";
|
|
2625
|
+
|
|
2626
|
+
class BufferedCommit_ extends UniffiError {
|
|
2627
|
+
[uniffiTypeNameSymbol] = "MlsError";
|
|
2628
|
+
tag = "BufferedCommit" /* BufferedCommit */;
|
|
2629
|
+
constructor() {
|
|
2630
|
+
super("MlsError", "BufferedCommit");
|
|
3060
2631
|
}
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
}
|
|
3070
|
-
|
|
3071
|
-
const ordinalConverter = FfiConverterInt32;
|
|
2632
|
+
static new() {
|
|
2633
|
+
return new BufferedCommit_;
|
|
2634
|
+
}
|
|
2635
|
+
static instanceOf(obj) {
|
|
2636
|
+
return obj.tag === "BufferedCommit" /* BufferedCommit */;
|
|
2637
|
+
}
|
|
2638
|
+
static hasInner(obj) {
|
|
2639
|
+
return false;
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
3072
2642
|
|
|
3073
|
-
class
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
case 2:
|
|
3079
|
-
return 2 /* Expired */;
|
|
3080
|
-
case 3:
|
|
3081
|
-
return 3 /* Revoked */;
|
|
3082
|
-
default:
|
|
3083
|
-
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
3084
|
-
}
|
|
2643
|
+
class MessageEpochTooOld_ extends UniffiError {
|
|
2644
|
+
[uniffiTypeNameSymbol] = "MlsError";
|
|
2645
|
+
tag = "MessageEpochTooOld" /* MessageEpochTooOld */;
|
|
2646
|
+
constructor() {
|
|
2647
|
+
super("MlsError", "MessageEpochTooOld");
|
|
3085
2648
|
}
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
case 1 /* Valid */:
|
|
3089
|
-
return ordinalConverter.write(1, into);
|
|
3090
|
-
case 2 /* Expired */:
|
|
3091
|
-
return ordinalConverter.write(2, into);
|
|
3092
|
-
case 3 /* Revoked */:
|
|
3093
|
-
return ordinalConverter.write(3, into);
|
|
3094
|
-
}
|
|
2649
|
+
static new() {
|
|
2650
|
+
return new MessageEpochTooOld_;
|
|
3095
2651
|
}
|
|
3096
|
-
|
|
3097
|
-
return
|
|
2652
|
+
static instanceOf(obj) {
|
|
2653
|
+
return obj.tag === "MessageEpochTooOld" /* MessageEpochTooOld */;
|
|
2654
|
+
}
|
|
2655
|
+
static hasInner(obj) {
|
|
2656
|
+
return false;
|
|
3098
2657
|
}
|
|
3099
2658
|
}
|
|
3100
|
-
return new FFIConverter;
|
|
3101
|
-
})();
|
|
3102
|
-
var CredentialType;
|
|
3103
|
-
((CredentialType2) => {
|
|
3104
|
-
CredentialType2[CredentialType2["Basic"] = 1] = "Basic";
|
|
3105
|
-
CredentialType2[CredentialType2["X509"] = 2] = "X509";
|
|
3106
|
-
})(CredentialType ||= {});
|
|
3107
|
-
var FfiConverterTypeCredentialType = (() => {
|
|
3108
|
-
const ordinalConverter = FfiConverterInt32;
|
|
3109
2659
|
|
|
3110
|
-
class
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
case 2:
|
|
3116
|
-
return 2 /* X509 */;
|
|
3117
|
-
default:
|
|
3118
|
-
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
3119
|
-
}
|
|
2660
|
+
class SelfCommitIgnored_ extends UniffiError {
|
|
2661
|
+
[uniffiTypeNameSymbol] = "MlsError";
|
|
2662
|
+
tag = "SelfCommitIgnored" /* SelfCommitIgnored */;
|
|
2663
|
+
constructor() {
|
|
2664
|
+
super("MlsError", "SelfCommitIgnored");
|
|
3120
2665
|
}
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
case 1 /* Basic */:
|
|
3124
|
-
return ordinalConverter.write(1, into);
|
|
3125
|
-
case 2 /* X509 */:
|
|
3126
|
-
return ordinalConverter.write(2, into);
|
|
3127
|
-
}
|
|
2666
|
+
static new() {
|
|
2667
|
+
return new SelfCommitIgnored_;
|
|
3128
2668
|
}
|
|
3129
|
-
|
|
3130
|
-
return
|
|
2669
|
+
static instanceOf(obj) {
|
|
2670
|
+
return obj.tag === "SelfCommitIgnored" /* SelfCommitIgnored */;
|
|
2671
|
+
}
|
|
2672
|
+
static hasInner(obj) {
|
|
2673
|
+
return false;
|
|
3131
2674
|
}
|
|
3132
2675
|
}
|
|
3133
|
-
return new FFIConverter;
|
|
3134
|
-
})();
|
|
3135
|
-
var FfiConverterTypeTimestamp = FfiConverterTimestamp;
|
|
3136
|
-
var X509Identity = (() => {
|
|
3137
|
-
const defaults = () => ({});
|
|
3138
|
-
const create = (() => {
|
|
3139
|
-
return uniffiCreateRecord(defaults);
|
|
3140
|
-
})();
|
|
3141
|
-
return Object.freeze({
|
|
3142
|
-
create,
|
|
3143
|
-
new: create,
|
|
3144
|
-
defaults: () => Object.freeze(defaults())
|
|
3145
|
-
});
|
|
3146
|
-
})();
|
|
3147
|
-
var FfiConverterTypeX509Identity = (() => {
|
|
3148
2676
|
|
|
3149
|
-
class
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
domain: FfiConverterString.read(from),
|
|
3155
|
-
certificate: FfiConverterString.read(from),
|
|
3156
|
-
serialNumber: FfiConverterString.read(from),
|
|
3157
|
-
notBefore: FfiConverterTypeTimestamp.read(from),
|
|
3158
|
-
notAfter: FfiConverterTypeTimestamp.read(from)
|
|
3159
|
-
};
|
|
2677
|
+
class UnmergedPendingGroup_ extends UniffiError {
|
|
2678
|
+
[uniffiTypeNameSymbol] = "MlsError";
|
|
2679
|
+
tag = "UnmergedPendingGroup" /* UnmergedPendingGroup */;
|
|
2680
|
+
constructor() {
|
|
2681
|
+
super("MlsError", "UnmergedPendingGroup");
|
|
3160
2682
|
}
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
FfiConverterString.write(value.displayName, into);
|
|
3164
|
-
FfiConverterString.write(value.domain, into);
|
|
3165
|
-
FfiConverterString.write(value.certificate, into);
|
|
3166
|
-
FfiConverterString.write(value.serialNumber, into);
|
|
3167
|
-
FfiConverterTypeTimestamp.write(value.notBefore, into);
|
|
3168
|
-
FfiConverterTypeTimestamp.write(value.notAfter, into);
|
|
2683
|
+
static new() {
|
|
2684
|
+
return new UnmergedPendingGroup_;
|
|
3169
2685
|
}
|
|
3170
|
-
|
|
3171
|
-
return
|
|
2686
|
+
static instanceOf(obj) {
|
|
2687
|
+
return obj.tag === "UnmergedPendingGroup" /* UnmergedPendingGroup */;
|
|
2688
|
+
}
|
|
2689
|
+
static hasInner(obj) {
|
|
2690
|
+
return false;
|
|
3172
2691
|
}
|
|
3173
2692
|
}
|
|
3174
|
-
return new FFIConverter;
|
|
3175
|
-
})();
|
|
3176
|
-
var WireIdentity = (() => {
|
|
3177
|
-
const defaults = () => ({});
|
|
3178
|
-
const create = (() => {
|
|
3179
|
-
return uniffiCreateRecord(defaults);
|
|
3180
|
-
})();
|
|
3181
|
-
return Object.freeze({
|
|
3182
|
-
create,
|
|
3183
|
-
new: create,
|
|
3184
|
-
defaults: () => Object.freeze(defaults())
|
|
3185
|
-
});
|
|
3186
|
-
})();
|
|
3187
|
-
var FfiConverterTypeWireIdentity = (() => {
|
|
3188
2693
|
|
|
3189
|
-
class
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
thumbprint: FfiConverterString.read(from),
|
|
3195
|
-
credentialType: FfiConverterTypeCredentialType.read(from),
|
|
3196
|
-
x509Identity: FfiConverterOptionalTypeX509Identity.read(from)
|
|
3197
|
-
};
|
|
2694
|
+
class StaleProposal_ extends UniffiError {
|
|
2695
|
+
[uniffiTypeNameSymbol] = "MlsError";
|
|
2696
|
+
tag = "StaleProposal" /* StaleProposal */;
|
|
2697
|
+
constructor() {
|
|
2698
|
+
super("MlsError", "StaleProposal");
|
|
3198
2699
|
}
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
FfiConverterTypeDeviceStatus.write(value.status, into);
|
|
3202
|
-
FfiConverterString.write(value.thumbprint, into);
|
|
3203
|
-
FfiConverterTypeCredentialType.write(value.credentialType, into);
|
|
3204
|
-
FfiConverterOptionalTypeX509Identity.write(value.x509Identity, into);
|
|
2700
|
+
static new() {
|
|
2701
|
+
return new StaleProposal_;
|
|
3205
2702
|
}
|
|
3206
|
-
|
|
3207
|
-
return
|
|
2703
|
+
static instanceOf(obj) {
|
|
2704
|
+
return obj.tag === "StaleProposal" /* StaleProposal */;
|
|
2705
|
+
}
|
|
2706
|
+
static hasInner(obj) {
|
|
2707
|
+
return false;
|
|
3208
2708
|
}
|
|
3209
2709
|
}
|
|
3210
|
-
return new FFIConverter;
|
|
3211
|
-
})();
|
|
3212
|
-
var BufferedDecryptedMessage = (() => {
|
|
3213
|
-
const defaults = () => ({});
|
|
3214
|
-
const create = (() => {
|
|
3215
|
-
return uniffiCreateRecord(defaults);
|
|
3216
|
-
})();
|
|
3217
|
-
return Object.freeze({
|
|
3218
|
-
create,
|
|
3219
|
-
new: create,
|
|
3220
|
-
defaults: () => Object.freeze(defaults())
|
|
3221
|
-
});
|
|
3222
|
-
})();
|
|
3223
|
-
var FfiConverterTypeBufferedDecryptedMessage = (() => {
|
|
3224
2710
|
|
|
3225
|
-
class
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
commitDelay: FfiConverterOptionalUInt64.read(from),
|
|
3231
|
-
senderClientId: FfiConverterOptionalTypeClientId.read(from),
|
|
3232
|
-
identity: FfiConverterTypeWireIdentity.read(from)
|
|
3233
|
-
};
|
|
2711
|
+
class StaleCommit_ extends UniffiError {
|
|
2712
|
+
[uniffiTypeNameSymbol] = "MlsError";
|
|
2713
|
+
tag = "StaleCommit" /* StaleCommit */;
|
|
2714
|
+
constructor() {
|
|
2715
|
+
super("MlsError", "StaleCommit");
|
|
3234
2716
|
}
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
FfiConverterBool.write(value.isActive, into);
|
|
3238
|
-
FfiConverterOptionalUInt64.write(value.commitDelay, into);
|
|
3239
|
-
FfiConverterOptionalTypeClientId.write(value.senderClientId, into);
|
|
3240
|
-
FfiConverterTypeWireIdentity.write(value.identity, into);
|
|
2717
|
+
static new() {
|
|
2718
|
+
return new StaleCommit_;
|
|
3241
2719
|
}
|
|
3242
|
-
|
|
3243
|
-
return
|
|
2720
|
+
static instanceOf(obj) {
|
|
2721
|
+
return obj.tag === "StaleCommit" /* StaleCommit */;
|
|
2722
|
+
}
|
|
2723
|
+
static hasInner(obj) {
|
|
2724
|
+
return false;
|
|
3244
2725
|
}
|
|
3245
2726
|
}
|
|
3246
|
-
return new FFIConverter;
|
|
3247
|
-
})();
|
|
3248
|
-
var BuildMetadata = (() => {
|
|
3249
|
-
const defaults = () => ({});
|
|
3250
|
-
const create = (() => {
|
|
3251
|
-
return uniffiCreateRecord(defaults);
|
|
3252
|
-
})();
|
|
3253
|
-
return Object.freeze({
|
|
3254
|
-
create,
|
|
3255
|
-
new: create,
|
|
3256
|
-
defaults: () => Object.freeze(defaults())
|
|
3257
|
-
});
|
|
3258
|
-
})();
|
|
3259
|
-
var FfiConverterTypeBuildMetadata = (() => {
|
|
3260
2727
|
|
|
3261
|
-
class
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
cargoFeatures: FfiConverterString.read(from),
|
|
3267
|
-
optLevel: FfiConverterString.read(from),
|
|
3268
|
-
targetTriple: FfiConverterString.read(from),
|
|
3269
|
-
gitBranch: FfiConverterString.read(from),
|
|
3270
|
-
gitDescribe: FfiConverterString.read(from),
|
|
3271
|
-
gitSha: FfiConverterString.read(from),
|
|
3272
|
-
gitDirty: FfiConverterString.read(from)
|
|
3273
|
-
};
|
|
2728
|
+
class OrphanWelcome_ extends UniffiError {
|
|
2729
|
+
[uniffiTypeNameSymbol] = "MlsError";
|
|
2730
|
+
tag = "OrphanWelcome" /* OrphanWelcome */;
|
|
2731
|
+
constructor() {
|
|
2732
|
+
super("MlsError", "OrphanWelcome");
|
|
3274
2733
|
}
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
FfiConverterString.write(value.cargoDebug, into);
|
|
3278
|
-
FfiConverterString.write(value.cargoFeatures, into);
|
|
3279
|
-
FfiConverterString.write(value.optLevel, into);
|
|
3280
|
-
FfiConverterString.write(value.targetTriple, into);
|
|
3281
|
-
FfiConverterString.write(value.gitBranch, into);
|
|
3282
|
-
FfiConverterString.write(value.gitDescribe, into);
|
|
3283
|
-
FfiConverterString.write(value.gitSha, into);
|
|
3284
|
-
FfiConverterString.write(value.gitDirty, into);
|
|
2734
|
+
static new() {
|
|
2735
|
+
return new OrphanWelcome_;
|
|
3285
2736
|
}
|
|
3286
|
-
|
|
3287
|
-
return
|
|
2737
|
+
static instanceOf(obj) {
|
|
2738
|
+
return obj.tag === "OrphanWelcome" /* OrphanWelcome */;
|
|
2739
|
+
}
|
|
2740
|
+
static hasInner(obj) {
|
|
2741
|
+
return false;
|
|
3288
2742
|
}
|
|
3289
2743
|
}
|
|
3290
|
-
return new FFIConverter;
|
|
3291
|
-
})();
|
|
3292
|
-
var MlsError_Tags;
|
|
3293
|
-
((MlsError_Tags2) => {
|
|
3294
|
-
MlsError_Tags2["ConversationAlreadyExists"] = "ConversationAlreadyExists";
|
|
3295
|
-
MlsError_Tags2["DuplicateMessage"] = "DuplicateMessage";
|
|
3296
|
-
MlsError_Tags2["BufferedFutureMessage"] = "BufferedFutureMessage";
|
|
3297
|
-
MlsError_Tags2["WrongEpoch"] = "WrongEpoch";
|
|
3298
|
-
MlsError_Tags2["BufferedCommit"] = "BufferedCommit";
|
|
3299
|
-
MlsError_Tags2["MessageEpochTooOld"] = "MessageEpochTooOld";
|
|
3300
|
-
MlsError_Tags2["SelfCommitIgnored"] = "SelfCommitIgnored";
|
|
3301
|
-
MlsError_Tags2["UnmergedPendingGroup"] = "UnmergedPendingGroup";
|
|
3302
|
-
MlsError_Tags2["StaleProposal"] = "StaleProposal";
|
|
3303
|
-
MlsError_Tags2["StaleCommit"] = "StaleCommit";
|
|
3304
|
-
MlsError_Tags2["OrphanWelcome"] = "OrphanWelcome";
|
|
3305
|
-
MlsError_Tags2["MessageRejected"] = "MessageRejected";
|
|
3306
|
-
MlsError_Tags2["Other"] = "Other";
|
|
3307
|
-
})(MlsError_Tags ||= {});
|
|
3308
|
-
var MlsError = (() => {
|
|
3309
2744
|
|
|
3310
|
-
class
|
|
2745
|
+
class MessageRejected_ extends UniffiError {
|
|
3311
2746
|
[uniffiTypeNameSymbol] = "MlsError";
|
|
3312
|
-
tag = "
|
|
2747
|
+
tag = "MessageRejected" /* MessageRejected */;
|
|
3313
2748
|
inner;
|
|
3314
2749
|
constructor(inner) {
|
|
3315
|
-
super("MlsError", "
|
|
2750
|
+
super("MlsError", "MessageRejected");
|
|
3316
2751
|
this.inner = Object.freeze(inner);
|
|
3317
2752
|
}
|
|
3318
2753
|
static new(inner) {
|
|
3319
|
-
return new
|
|
2754
|
+
return new MessageRejected_(inner);
|
|
3320
2755
|
}
|
|
3321
2756
|
static instanceOf(obj) {
|
|
3322
|
-
return obj.tag === "
|
|
2757
|
+
return obj.tag === "MessageRejected" /* MessageRejected */;
|
|
3323
2758
|
}
|
|
3324
2759
|
static hasInner(obj) {
|
|
3325
|
-
return
|
|
2760
|
+
return MessageRejected_.instanceOf(obj);
|
|
3326
2761
|
}
|
|
3327
2762
|
static getInner(obj) {
|
|
3328
2763
|
return obj.inner;
|
|
3329
2764
|
}
|
|
3330
2765
|
}
|
|
3331
2766
|
|
|
3332
|
-
class
|
|
2767
|
+
class Other_ extends UniffiError {
|
|
3333
2768
|
[uniffiTypeNameSymbol] = "MlsError";
|
|
3334
|
-
tag = "
|
|
3335
|
-
|
|
3336
|
-
|
|
2769
|
+
tag = "Other" /* Other */;
|
|
2770
|
+
inner;
|
|
2771
|
+
constructor(inner) {
|
|
2772
|
+
super("MlsError", "Other");
|
|
2773
|
+
this.inner = Object.freeze(inner);
|
|
3337
2774
|
}
|
|
3338
|
-
static new() {
|
|
3339
|
-
return new
|
|
2775
|
+
static new(inner) {
|
|
2776
|
+
return new Other_(inner);
|
|
3340
2777
|
}
|
|
3341
2778
|
static instanceOf(obj) {
|
|
3342
|
-
return obj.tag === "
|
|
2779
|
+
return obj.tag === "Other" /* Other */;
|
|
3343
2780
|
}
|
|
3344
2781
|
static hasInner(obj) {
|
|
3345
|
-
return
|
|
2782
|
+
return Other_.instanceOf(obj);
|
|
2783
|
+
}
|
|
2784
|
+
static getInner(obj) {
|
|
2785
|
+
return obj.inner;
|
|
3346
2786
|
}
|
|
3347
2787
|
}
|
|
2788
|
+
function instanceOf(obj) {
|
|
2789
|
+
return obj[uniffiTypeNameSymbol] === "MlsError";
|
|
2790
|
+
}
|
|
2791
|
+
return Object.freeze({
|
|
2792
|
+
instanceOf,
|
|
2793
|
+
ConversationAlreadyExists: ConversationAlreadyExists_,
|
|
2794
|
+
DuplicateMessage: DuplicateMessage_,
|
|
2795
|
+
BufferedFutureMessage: BufferedFutureMessage_,
|
|
2796
|
+
WrongEpoch: WrongEpoch_,
|
|
2797
|
+
BufferedCommit: BufferedCommit_,
|
|
2798
|
+
MessageEpochTooOld: MessageEpochTooOld_,
|
|
2799
|
+
SelfCommitIgnored: SelfCommitIgnored_,
|
|
2800
|
+
UnmergedPendingGroup: UnmergedPendingGroup_,
|
|
2801
|
+
StaleProposal: StaleProposal_,
|
|
2802
|
+
StaleCommit: StaleCommit_,
|
|
2803
|
+
OrphanWelcome: OrphanWelcome_,
|
|
2804
|
+
MessageRejected: MessageRejected_,
|
|
2805
|
+
Other: Other_
|
|
2806
|
+
});
|
|
2807
|
+
})();
|
|
2808
|
+
var FfiConverterTypeMlsError = (() => {
|
|
2809
|
+
const ordinalConverter = FfiConverterInt32;
|
|
3348
2810
|
|
|
3349
|
-
class
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
2811
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
2812
|
+
read(from) {
|
|
2813
|
+
switch (ordinalConverter.read(from)) {
|
|
2814
|
+
case 1:
|
|
2815
|
+
return new MlsError.ConversationAlreadyExists({ conversationId: FfiConverterUint8Array.read(from) });
|
|
2816
|
+
case 2:
|
|
2817
|
+
return new MlsError.DuplicateMessage;
|
|
2818
|
+
case 3:
|
|
2819
|
+
return new MlsError.BufferedFutureMessage;
|
|
2820
|
+
case 4:
|
|
2821
|
+
return new MlsError.WrongEpoch;
|
|
2822
|
+
case 5:
|
|
2823
|
+
return new MlsError.BufferedCommit;
|
|
2824
|
+
case 6:
|
|
2825
|
+
return new MlsError.MessageEpochTooOld;
|
|
2826
|
+
case 7:
|
|
2827
|
+
return new MlsError.SelfCommitIgnored;
|
|
2828
|
+
case 8:
|
|
2829
|
+
return new MlsError.UnmergedPendingGroup;
|
|
2830
|
+
case 9:
|
|
2831
|
+
return new MlsError.StaleProposal;
|
|
2832
|
+
case 10:
|
|
2833
|
+
return new MlsError.StaleCommit;
|
|
2834
|
+
case 11:
|
|
2835
|
+
return new MlsError.OrphanWelcome;
|
|
2836
|
+
case 12:
|
|
2837
|
+
return new MlsError.MessageRejected({ reason: FfiConverterString.read(from) });
|
|
2838
|
+
case 13:
|
|
2839
|
+
return new MlsError.Other({ msg: FfiConverterString.read(from) });
|
|
2840
|
+
default:
|
|
2841
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
2842
|
+
}
|
|
3357
2843
|
}
|
|
3358
|
-
|
|
3359
|
-
|
|
2844
|
+
write(value, into) {
|
|
2845
|
+
switch (value.tag) {
|
|
2846
|
+
case "ConversationAlreadyExists" /* ConversationAlreadyExists */: {
|
|
2847
|
+
ordinalConverter.write(1, into);
|
|
2848
|
+
const inner = value.inner;
|
|
2849
|
+
FfiConverterUint8Array.write(inner.conversationId, into);
|
|
2850
|
+
return;
|
|
2851
|
+
}
|
|
2852
|
+
case "DuplicateMessage" /* DuplicateMessage */: {
|
|
2853
|
+
ordinalConverter.write(2, into);
|
|
2854
|
+
return;
|
|
2855
|
+
}
|
|
2856
|
+
case "BufferedFutureMessage" /* BufferedFutureMessage */: {
|
|
2857
|
+
ordinalConverter.write(3, into);
|
|
2858
|
+
return;
|
|
2859
|
+
}
|
|
2860
|
+
case "WrongEpoch" /* WrongEpoch */: {
|
|
2861
|
+
ordinalConverter.write(4, into);
|
|
2862
|
+
return;
|
|
2863
|
+
}
|
|
2864
|
+
case "BufferedCommit" /* BufferedCommit */: {
|
|
2865
|
+
ordinalConverter.write(5, into);
|
|
2866
|
+
return;
|
|
2867
|
+
}
|
|
2868
|
+
case "MessageEpochTooOld" /* MessageEpochTooOld */: {
|
|
2869
|
+
ordinalConverter.write(6, into);
|
|
2870
|
+
return;
|
|
2871
|
+
}
|
|
2872
|
+
case "SelfCommitIgnored" /* SelfCommitIgnored */: {
|
|
2873
|
+
ordinalConverter.write(7, into);
|
|
2874
|
+
return;
|
|
2875
|
+
}
|
|
2876
|
+
case "UnmergedPendingGroup" /* UnmergedPendingGroup */: {
|
|
2877
|
+
ordinalConverter.write(8, into);
|
|
2878
|
+
return;
|
|
2879
|
+
}
|
|
2880
|
+
case "StaleProposal" /* StaleProposal */: {
|
|
2881
|
+
ordinalConverter.write(9, into);
|
|
2882
|
+
return;
|
|
2883
|
+
}
|
|
2884
|
+
case "StaleCommit" /* StaleCommit */: {
|
|
2885
|
+
ordinalConverter.write(10, into);
|
|
2886
|
+
return;
|
|
2887
|
+
}
|
|
2888
|
+
case "OrphanWelcome" /* OrphanWelcome */: {
|
|
2889
|
+
ordinalConverter.write(11, into);
|
|
2890
|
+
return;
|
|
2891
|
+
}
|
|
2892
|
+
case "MessageRejected" /* MessageRejected */: {
|
|
2893
|
+
ordinalConverter.write(12, into);
|
|
2894
|
+
const inner = value.inner;
|
|
2895
|
+
FfiConverterString.write(inner.reason, into);
|
|
2896
|
+
return;
|
|
2897
|
+
}
|
|
2898
|
+
case "Other" /* Other */: {
|
|
2899
|
+
ordinalConverter.write(13, into);
|
|
2900
|
+
const inner = value.inner;
|
|
2901
|
+
FfiConverterString.write(inner.msg, into);
|
|
2902
|
+
return;
|
|
2903
|
+
}
|
|
2904
|
+
default:
|
|
2905
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
2906
|
+
}
|
|
3360
2907
|
}
|
|
3361
|
-
|
|
3362
|
-
|
|
2908
|
+
allocationSize(value) {
|
|
2909
|
+
switch (value.tag) {
|
|
2910
|
+
case "ConversationAlreadyExists" /* ConversationAlreadyExists */: {
|
|
2911
|
+
const inner = value.inner;
|
|
2912
|
+
let size = ordinalConverter.allocationSize(1);
|
|
2913
|
+
size += FfiConverterUint8Array.allocationSize(inner.conversationId);
|
|
2914
|
+
return size;
|
|
2915
|
+
}
|
|
2916
|
+
case "DuplicateMessage" /* DuplicateMessage */: {
|
|
2917
|
+
return ordinalConverter.allocationSize(2);
|
|
2918
|
+
}
|
|
2919
|
+
case "BufferedFutureMessage" /* BufferedFutureMessage */: {
|
|
2920
|
+
return ordinalConverter.allocationSize(3);
|
|
2921
|
+
}
|
|
2922
|
+
case "WrongEpoch" /* WrongEpoch */: {
|
|
2923
|
+
return ordinalConverter.allocationSize(4);
|
|
2924
|
+
}
|
|
2925
|
+
case "BufferedCommit" /* BufferedCommit */: {
|
|
2926
|
+
return ordinalConverter.allocationSize(5);
|
|
2927
|
+
}
|
|
2928
|
+
case "MessageEpochTooOld" /* MessageEpochTooOld */: {
|
|
2929
|
+
return ordinalConverter.allocationSize(6);
|
|
2930
|
+
}
|
|
2931
|
+
case "SelfCommitIgnored" /* SelfCommitIgnored */: {
|
|
2932
|
+
return ordinalConverter.allocationSize(7);
|
|
2933
|
+
}
|
|
2934
|
+
case "UnmergedPendingGroup" /* UnmergedPendingGroup */: {
|
|
2935
|
+
return ordinalConverter.allocationSize(8);
|
|
2936
|
+
}
|
|
2937
|
+
case "StaleProposal" /* StaleProposal */: {
|
|
2938
|
+
return ordinalConverter.allocationSize(9);
|
|
2939
|
+
}
|
|
2940
|
+
case "StaleCommit" /* StaleCommit */: {
|
|
2941
|
+
return ordinalConverter.allocationSize(10);
|
|
2942
|
+
}
|
|
2943
|
+
case "OrphanWelcome" /* OrphanWelcome */: {
|
|
2944
|
+
return ordinalConverter.allocationSize(11);
|
|
2945
|
+
}
|
|
2946
|
+
case "MessageRejected" /* MessageRejected */: {
|
|
2947
|
+
const inner = value.inner;
|
|
2948
|
+
let size = ordinalConverter.allocationSize(12);
|
|
2949
|
+
size += FfiConverterString.allocationSize(inner.reason);
|
|
2950
|
+
return size;
|
|
2951
|
+
}
|
|
2952
|
+
case "Other" /* Other */: {
|
|
2953
|
+
const inner = value.inner;
|
|
2954
|
+
let size = ordinalConverter.allocationSize(13);
|
|
2955
|
+
size += FfiConverterString.allocationSize(inner.msg);
|
|
2956
|
+
return size;
|
|
2957
|
+
}
|
|
2958
|
+
default:
|
|
2959
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
2960
|
+
}
|
|
3363
2961
|
}
|
|
3364
2962
|
}
|
|
2963
|
+
return new FFIConverter;
|
|
2964
|
+
})();
|
|
2965
|
+
var ProteusError_Tags;
|
|
2966
|
+
((ProteusError_Tags2) => {
|
|
2967
|
+
ProteusError_Tags2["SessionNotFound"] = "SessionNotFound";
|
|
2968
|
+
ProteusError_Tags2["DuplicateMessage"] = "DuplicateMessage";
|
|
2969
|
+
ProteusError_Tags2["RemoteIdentityChanged"] = "RemoteIdentityChanged";
|
|
2970
|
+
ProteusError_Tags2["Other"] = "Other";
|
|
2971
|
+
})(ProteusError_Tags ||= {});
|
|
2972
|
+
var ProteusError = (() => {
|
|
3365
2973
|
|
|
3366
|
-
class
|
|
3367
|
-
[uniffiTypeNameSymbol] = "
|
|
3368
|
-
tag = "
|
|
2974
|
+
class SessionNotFound_ extends UniffiError {
|
|
2975
|
+
[uniffiTypeNameSymbol] = "ProteusError";
|
|
2976
|
+
tag = "SessionNotFound" /* SessionNotFound */;
|
|
3369
2977
|
constructor() {
|
|
3370
|
-
super("
|
|
2978
|
+
super("ProteusError", "SessionNotFound");
|
|
3371
2979
|
}
|
|
3372
2980
|
static new() {
|
|
3373
|
-
return new
|
|
2981
|
+
return new SessionNotFound_;
|
|
3374
2982
|
}
|
|
3375
2983
|
static instanceOf(obj) {
|
|
3376
|
-
return obj.tag === "
|
|
2984
|
+
return obj.tag === "SessionNotFound" /* SessionNotFound */;
|
|
3377
2985
|
}
|
|
3378
2986
|
static hasInner(obj) {
|
|
3379
2987
|
return false;
|
|
3380
2988
|
}
|
|
3381
2989
|
}
|
|
3382
2990
|
|
|
3383
|
-
class
|
|
3384
|
-
[uniffiTypeNameSymbol] = "
|
|
3385
|
-
tag = "
|
|
2991
|
+
class DuplicateMessage_ extends UniffiError {
|
|
2992
|
+
[uniffiTypeNameSymbol] = "ProteusError";
|
|
2993
|
+
tag = "DuplicateMessage" /* DuplicateMessage */;
|
|
3386
2994
|
constructor() {
|
|
3387
|
-
super("
|
|
2995
|
+
super("ProteusError", "DuplicateMessage");
|
|
3388
2996
|
}
|
|
3389
2997
|
static new() {
|
|
3390
|
-
return new
|
|
2998
|
+
return new DuplicateMessage_;
|
|
3391
2999
|
}
|
|
3392
3000
|
static instanceOf(obj) {
|
|
3393
|
-
return obj.tag === "
|
|
3001
|
+
return obj.tag === "DuplicateMessage" /* DuplicateMessage */;
|
|
3394
3002
|
}
|
|
3395
3003
|
static hasInner(obj) {
|
|
3396
3004
|
return false;
|
|
3397
3005
|
}
|
|
3398
3006
|
}
|
|
3399
3007
|
|
|
3400
|
-
class
|
|
3401
|
-
[uniffiTypeNameSymbol] = "
|
|
3402
|
-
tag = "
|
|
3008
|
+
class RemoteIdentityChanged_ extends UniffiError {
|
|
3009
|
+
[uniffiTypeNameSymbol] = "ProteusError";
|
|
3010
|
+
tag = "RemoteIdentityChanged" /* RemoteIdentityChanged */;
|
|
3403
3011
|
constructor() {
|
|
3404
|
-
super("
|
|
3012
|
+
super("ProteusError", "RemoteIdentityChanged");
|
|
3405
3013
|
}
|
|
3406
3014
|
static new() {
|
|
3407
|
-
return new
|
|
3015
|
+
return new RemoteIdentityChanged_;
|
|
3408
3016
|
}
|
|
3409
3017
|
static instanceOf(obj) {
|
|
3410
|
-
return obj.tag === "
|
|
3018
|
+
return obj.tag === "RemoteIdentityChanged" /* RemoteIdentityChanged */;
|
|
3411
3019
|
}
|
|
3412
3020
|
static hasInner(obj) {
|
|
3413
3021
|
return false;
|
|
3414
3022
|
}
|
|
3415
3023
|
}
|
|
3416
3024
|
|
|
3417
|
-
class
|
|
3418
|
-
[uniffiTypeNameSymbol] = "
|
|
3419
|
-
tag = "
|
|
3420
|
-
|
|
3421
|
-
|
|
3025
|
+
class Other_ extends UniffiError {
|
|
3026
|
+
[uniffiTypeNameSymbol] = "ProteusError";
|
|
3027
|
+
tag = "Other" /* Other */;
|
|
3028
|
+
inner;
|
|
3029
|
+
constructor(inner) {
|
|
3030
|
+
super("ProteusError", "Other");
|
|
3031
|
+
this.inner = Object.freeze(inner);
|
|
3422
3032
|
}
|
|
3423
|
-
static new() {
|
|
3424
|
-
return new
|
|
3033
|
+
static new(inner) {
|
|
3034
|
+
return new Other_(inner);
|
|
3425
3035
|
}
|
|
3426
3036
|
static instanceOf(obj) {
|
|
3427
|
-
return obj.tag === "
|
|
3037
|
+
return obj.tag === "Other" /* Other */;
|
|
3428
3038
|
}
|
|
3429
3039
|
static hasInner(obj) {
|
|
3430
|
-
return
|
|
3040
|
+
return Other_.instanceOf(obj);
|
|
3041
|
+
}
|
|
3042
|
+
static getInner(obj) {
|
|
3043
|
+
return obj.inner;
|
|
3431
3044
|
}
|
|
3432
3045
|
}
|
|
3046
|
+
function instanceOf(obj) {
|
|
3047
|
+
return obj[uniffiTypeNameSymbol] === "ProteusError";
|
|
3048
|
+
}
|
|
3049
|
+
return Object.freeze({
|
|
3050
|
+
instanceOf,
|
|
3051
|
+
SessionNotFound: SessionNotFound_,
|
|
3052
|
+
DuplicateMessage: DuplicateMessage_,
|
|
3053
|
+
RemoteIdentityChanged: RemoteIdentityChanged_,
|
|
3054
|
+
Other: Other_
|
|
3055
|
+
});
|
|
3056
|
+
})();
|
|
3057
|
+
var FfiConverterTypeProteusError = (() => {
|
|
3058
|
+
const ordinalConverter = FfiConverterInt32;
|
|
3433
3059
|
|
|
3434
|
-
class
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3060
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
3061
|
+
read(from) {
|
|
3062
|
+
switch (ordinalConverter.read(from)) {
|
|
3063
|
+
case 1:
|
|
3064
|
+
return new ProteusError.SessionNotFound;
|
|
3065
|
+
case 2:
|
|
3066
|
+
return new ProteusError.DuplicateMessage;
|
|
3067
|
+
case 3:
|
|
3068
|
+
return new ProteusError.RemoteIdentityChanged;
|
|
3069
|
+
case 4:
|
|
3070
|
+
return new ProteusError.Other({ errorCode: FfiConverterUInt16.read(from) });
|
|
3071
|
+
default:
|
|
3072
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
3073
|
+
}
|
|
3442
3074
|
}
|
|
3443
|
-
|
|
3444
|
-
|
|
3075
|
+
write(value, into) {
|
|
3076
|
+
switch (value.tag) {
|
|
3077
|
+
case "SessionNotFound" /* SessionNotFound */: {
|
|
3078
|
+
ordinalConverter.write(1, into);
|
|
3079
|
+
return;
|
|
3080
|
+
}
|
|
3081
|
+
case "DuplicateMessage" /* DuplicateMessage */: {
|
|
3082
|
+
ordinalConverter.write(2, into);
|
|
3083
|
+
return;
|
|
3084
|
+
}
|
|
3085
|
+
case "RemoteIdentityChanged" /* RemoteIdentityChanged */: {
|
|
3086
|
+
ordinalConverter.write(3, into);
|
|
3087
|
+
return;
|
|
3088
|
+
}
|
|
3089
|
+
case "Other" /* Other */: {
|
|
3090
|
+
ordinalConverter.write(4, into);
|
|
3091
|
+
const inner = value.inner;
|
|
3092
|
+
FfiConverterUInt16.write(inner.errorCode, into);
|
|
3093
|
+
return;
|
|
3094
|
+
}
|
|
3095
|
+
default:
|
|
3096
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
3097
|
+
}
|
|
3445
3098
|
}
|
|
3446
|
-
|
|
3447
|
-
|
|
3099
|
+
allocationSize(value) {
|
|
3100
|
+
switch (value.tag) {
|
|
3101
|
+
case "SessionNotFound" /* SessionNotFound */: {
|
|
3102
|
+
return ordinalConverter.allocationSize(1);
|
|
3103
|
+
}
|
|
3104
|
+
case "DuplicateMessage" /* DuplicateMessage */: {
|
|
3105
|
+
return ordinalConverter.allocationSize(2);
|
|
3106
|
+
}
|
|
3107
|
+
case "RemoteIdentityChanged" /* RemoteIdentityChanged */: {
|
|
3108
|
+
return ordinalConverter.allocationSize(3);
|
|
3109
|
+
}
|
|
3110
|
+
case "Other" /* Other */: {
|
|
3111
|
+
const inner = value.inner;
|
|
3112
|
+
let size = ordinalConverter.allocationSize(4);
|
|
3113
|
+
size += FfiConverterUInt16.allocationSize(inner.errorCode);
|
|
3114
|
+
return size;
|
|
3115
|
+
}
|
|
3116
|
+
default:
|
|
3117
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
3118
|
+
}
|
|
3448
3119
|
}
|
|
3449
3120
|
}
|
|
3121
|
+
return new FFIConverter;
|
|
3122
|
+
})();
|
|
3123
|
+
var CoreCryptoError_Tags;
|
|
3124
|
+
((CoreCryptoError_Tags2) => {
|
|
3125
|
+
CoreCryptoError_Tags2["Mls"] = "Mls";
|
|
3126
|
+
CoreCryptoError_Tags2["Proteus"] = "Proteus";
|
|
3127
|
+
CoreCryptoError_Tags2["E2ei"] = "E2ei";
|
|
3128
|
+
CoreCryptoError_Tags2["TransactionFailed"] = "TransactionFailed";
|
|
3129
|
+
CoreCryptoError_Tags2["Other"] = "Other";
|
|
3130
|
+
})(CoreCryptoError_Tags ||= {});
|
|
3131
|
+
var CoreCryptoError = (() => {
|
|
3450
3132
|
|
|
3451
|
-
class
|
|
3452
|
-
[uniffiTypeNameSymbol] = "
|
|
3453
|
-
tag = "
|
|
3454
|
-
|
|
3455
|
-
|
|
3133
|
+
class Mls_ extends UniffiError {
|
|
3134
|
+
[uniffiTypeNameSymbol] = "CoreCryptoError";
|
|
3135
|
+
tag = "Mls" /* Mls */;
|
|
3136
|
+
inner;
|
|
3137
|
+
constructor(inner) {
|
|
3138
|
+
super("CoreCryptoError", "Mls");
|
|
3139
|
+
this.inner = Object.freeze(inner);
|
|
3456
3140
|
}
|
|
3457
|
-
static new() {
|
|
3458
|
-
return new
|
|
3141
|
+
static new(inner) {
|
|
3142
|
+
return new Mls_(inner);
|
|
3459
3143
|
}
|
|
3460
3144
|
static instanceOf(obj) {
|
|
3461
|
-
return obj.tag === "
|
|
3145
|
+
return obj.tag === "Mls" /* Mls */;
|
|
3462
3146
|
}
|
|
3463
3147
|
static hasInner(obj) {
|
|
3464
|
-
return
|
|
3148
|
+
return Mls_.instanceOf(obj);
|
|
3149
|
+
}
|
|
3150
|
+
static getInner(obj) {
|
|
3151
|
+
return obj.inner;
|
|
3465
3152
|
}
|
|
3466
3153
|
}
|
|
3467
3154
|
|
|
3468
|
-
class
|
|
3469
|
-
[uniffiTypeNameSymbol] = "
|
|
3470
|
-
tag = "
|
|
3471
|
-
|
|
3472
|
-
|
|
3155
|
+
class Proteus_ extends UniffiError {
|
|
3156
|
+
[uniffiTypeNameSymbol] = "CoreCryptoError";
|
|
3157
|
+
tag = "Proteus" /* Proteus */;
|
|
3158
|
+
inner;
|
|
3159
|
+
constructor(inner) {
|
|
3160
|
+
super("CoreCryptoError", "Proteus");
|
|
3161
|
+
this.inner = Object.freeze(inner);
|
|
3473
3162
|
}
|
|
3474
|
-
static new() {
|
|
3475
|
-
return new
|
|
3163
|
+
static new(inner) {
|
|
3164
|
+
return new Proteus_(inner);
|
|
3476
3165
|
}
|
|
3477
3166
|
static instanceOf(obj) {
|
|
3478
|
-
return obj.tag === "
|
|
3167
|
+
return obj.tag === "Proteus" /* Proteus */;
|
|
3479
3168
|
}
|
|
3480
3169
|
static hasInner(obj) {
|
|
3481
|
-
return
|
|
3170
|
+
return Proteus_.instanceOf(obj);
|
|
3171
|
+
}
|
|
3172
|
+
static getInner(obj) {
|
|
3173
|
+
return obj.inner;
|
|
3482
3174
|
}
|
|
3483
3175
|
}
|
|
3484
3176
|
|
|
3485
|
-
class
|
|
3486
|
-
[uniffiTypeNameSymbol] = "
|
|
3487
|
-
tag = "
|
|
3488
|
-
|
|
3489
|
-
|
|
3177
|
+
class E2ei_ extends UniffiError {
|
|
3178
|
+
[uniffiTypeNameSymbol] = "CoreCryptoError";
|
|
3179
|
+
tag = "E2ei" /* E2ei */;
|
|
3180
|
+
inner;
|
|
3181
|
+
constructor(inner) {
|
|
3182
|
+
super("CoreCryptoError", "E2ei");
|
|
3183
|
+
this.inner = Object.freeze(inner);
|
|
3490
3184
|
}
|
|
3491
|
-
static new() {
|
|
3492
|
-
return new
|
|
3185
|
+
static new(inner) {
|
|
3186
|
+
return new E2ei_(inner);
|
|
3493
3187
|
}
|
|
3494
3188
|
static instanceOf(obj) {
|
|
3495
|
-
return obj.tag === "
|
|
3189
|
+
return obj.tag === "E2ei" /* E2ei */;
|
|
3496
3190
|
}
|
|
3497
3191
|
static hasInner(obj) {
|
|
3498
|
-
return
|
|
3192
|
+
return E2ei_.instanceOf(obj);
|
|
3193
|
+
}
|
|
3194
|
+
static getInner(obj) {
|
|
3195
|
+
return obj.inner;
|
|
3499
3196
|
}
|
|
3500
3197
|
}
|
|
3501
3198
|
|
|
3502
|
-
class
|
|
3503
|
-
[uniffiTypeNameSymbol] = "
|
|
3504
|
-
tag = "
|
|
3199
|
+
class TransactionFailed_ extends UniffiError {
|
|
3200
|
+
[uniffiTypeNameSymbol] = "CoreCryptoError";
|
|
3201
|
+
tag = "TransactionFailed" /* TransactionFailed */;
|
|
3505
3202
|
inner;
|
|
3506
3203
|
constructor(inner) {
|
|
3507
|
-
super("
|
|
3204
|
+
super("CoreCryptoError", "TransactionFailed");
|
|
3508
3205
|
this.inner = Object.freeze(inner);
|
|
3509
3206
|
}
|
|
3510
3207
|
static new(inner) {
|
|
3511
|
-
return new
|
|
3208
|
+
return new TransactionFailed_(inner);
|
|
3512
3209
|
}
|
|
3513
3210
|
static instanceOf(obj) {
|
|
3514
|
-
return obj.tag === "
|
|
3211
|
+
return obj.tag === "TransactionFailed" /* TransactionFailed */;
|
|
3515
3212
|
}
|
|
3516
3213
|
static hasInner(obj) {
|
|
3517
|
-
return
|
|
3214
|
+
return TransactionFailed_.instanceOf(obj);
|
|
3518
3215
|
}
|
|
3519
3216
|
static getInner(obj) {
|
|
3520
3217
|
return obj.inner;
|
|
@@ -3522,11 +3219,11 @@ var MlsError = (() => {
|
|
|
3522
3219
|
}
|
|
3523
3220
|
|
|
3524
3221
|
class Other_ extends UniffiError {
|
|
3525
|
-
[uniffiTypeNameSymbol] = "
|
|
3222
|
+
[uniffiTypeNameSymbol] = "CoreCryptoError";
|
|
3526
3223
|
tag = "Other" /* Other */;
|
|
3527
3224
|
inner;
|
|
3528
3225
|
constructor(inner) {
|
|
3529
|
-
super("
|
|
3226
|
+
super("CoreCryptoError", "Other");
|
|
3530
3227
|
this.inner = Object.freeze(inner);
|
|
3531
3228
|
}
|
|
3532
3229
|
static new(inner) {
|
|
@@ -3543,123 +3240,65 @@ var MlsError = (() => {
|
|
|
3543
3240
|
}
|
|
3544
3241
|
}
|
|
3545
3242
|
function instanceOf(obj) {
|
|
3546
|
-
return obj[uniffiTypeNameSymbol] === "
|
|
3243
|
+
return obj[uniffiTypeNameSymbol] === "CoreCryptoError";
|
|
3547
3244
|
}
|
|
3548
3245
|
return Object.freeze({
|
|
3549
3246
|
instanceOf,
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
BufferedCommit: BufferedCommit_,
|
|
3555
|
-
MessageEpochTooOld: MessageEpochTooOld_,
|
|
3556
|
-
SelfCommitIgnored: SelfCommitIgnored_,
|
|
3557
|
-
UnmergedPendingGroup: UnmergedPendingGroup_,
|
|
3558
|
-
StaleProposal: StaleProposal_,
|
|
3559
|
-
StaleCommit: StaleCommit_,
|
|
3560
|
-
OrphanWelcome: OrphanWelcome_,
|
|
3561
|
-
MessageRejected: MessageRejected_,
|
|
3247
|
+
Mls: Mls_,
|
|
3248
|
+
Proteus: Proteus_,
|
|
3249
|
+
E2ei: E2ei_,
|
|
3250
|
+
TransactionFailed: TransactionFailed_,
|
|
3562
3251
|
Other: Other_
|
|
3563
3252
|
});
|
|
3564
3253
|
})();
|
|
3565
|
-
var
|
|
3254
|
+
var FfiConverterTypeCoreCryptoError = (() => {
|
|
3566
3255
|
const ordinalConverter = FfiConverterInt32;
|
|
3567
3256
|
|
|
3568
3257
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
3569
3258
|
read(from) {
|
|
3570
3259
|
switch (ordinalConverter.read(from)) {
|
|
3571
3260
|
case 1:
|
|
3572
|
-
return new
|
|
3573
|
-
conversationId: FfiConverterUint8Array.read(from)
|
|
3574
|
-
});
|
|
3261
|
+
return new CoreCryptoError.Mls({ mlsError: FfiConverterTypeMlsError.read(from) });
|
|
3575
3262
|
case 2:
|
|
3576
|
-
return new
|
|
3263
|
+
return new CoreCryptoError.Proteus({ exception: FfiConverterTypeProteusError.read(from) });
|
|
3577
3264
|
case 3:
|
|
3578
|
-
return new
|
|
3265
|
+
return new CoreCryptoError.E2ei({ e2eiError: FfiConverterString.read(from) });
|
|
3579
3266
|
case 4:
|
|
3580
|
-
return new
|
|
3267
|
+
return new CoreCryptoError.TransactionFailed({ error: FfiConverterString.read(from) });
|
|
3581
3268
|
case 5:
|
|
3582
|
-
return new
|
|
3583
|
-
case 6:
|
|
3584
|
-
return new MlsError.MessageEpochTooOld;
|
|
3585
|
-
case 7:
|
|
3586
|
-
return new MlsError.SelfCommitIgnored;
|
|
3587
|
-
case 8:
|
|
3588
|
-
return new MlsError.UnmergedPendingGroup;
|
|
3589
|
-
case 9:
|
|
3590
|
-
return new MlsError.StaleProposal;
|
|
3591
|
-
case 10:
|
|
3592
|
-
return new MlsError.StaleCommit;
|
|
3593
|
-
case 11:
|
|
3594
|
-
return new MlsError.OrphanWelcome;
|
|
3595
|
-
case 12:
|
|
3596
|
-
return new MlsError.MessageRejected({
|
|
3597
|
-
reason: FfiConverterString.read(from)
|
|
3598
|
-
});
|
|
3599
|
-
case 13:
|
|
3600
|
-
return new MlsError.Other({
|
|
3601
|
-
msg: FfiConverterString.read(from)
|
|
3602
|
-
});
|
|
3269
|
+
return new CoreCryptoError.Other({ msg: FfiConverterString.read(from) });
|
|
3603
3270
|
default:
|
|
3604
3271
|
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
3605
3272
|
}
|
|
3606
3273
|
}
|
|
3607
3274
|
write(value, into) {
|
|
3608
3275
|
switch (value.tag) {
|
|
3609
|
-
case "
|
|
3276
|
+
case "Mls" /* Mls */: {
|
|
3610
3277
|
ordinalConverter.write(1, into);
|
|
3611
3278
|
const inner = value.inner;
|
|
3612
|
-
|
|
3613
|
-
return;
|
|
3614
|
-
}
|
|
3615
|
-
case "DuplicateMessage" /* DuplicateMessage */: {
|
|
3616
|
-
ordinalConverter.write(2, into);
|
|
3617
|
-
return;
|
|
3618
|
-
}
|
|
3619
|
-
case "BufferedFutureMessage" /* BufferedFutureMessage */: {
|
|
3620
|
-
ordinalConverter.write(3, into);
|
|
3621
|
-
return;
|
|
3622
|
-
}
|
|
3623
|
-
case "WrongEpoch" /* WrongEpoch */: {
|
|
3624
|
-
ordinalConverter.write(4, into);
|
|
3625
|
-
return;
|
|
3626
|
-
}
|
|
3627
|
-
case "BufferedCommit" /* BufferedCommit */: {
|
|
3628
|
-
ordinalConverter.write(5, into);
|
|
3629
|
-
return;
|
|
3630
|
-
}
|
|
3631
|
-
case "MessageEpochTooOld" /* MessageEpochTooOld */: {
|
|
3632
|
-
ordinalConverter.write(6, into);
|
|
3633
|
-
return;
|
|
3634
|
-
}
|
|
3635
|
-
case "SelfCommitIgnored" /* SelfCommitIgnored */: {
|
|
3636
|
-
ordinalConverter.write(7, into);
|
|
3637
|
-
return;
|
|
3638
|
-
}
|
|
3639
|
-
case "UnmergedPendingGroup" /* UnmergedPendingGroup */: {
|
|
3640
|
-
ordinalConverter.write(8, into);
|
|
3641
|
-
return;
|
|
3642
|
-
}
|
|
3643
|
-
case "StaleProposal" /* StaleProposal */: {
|
|
3644
|
-
ordinalConverter.write(9, into);
|
|
3279
|
+
FfiConverterTypeMlsError.write(inner.mlsError, into);
|
|
3645
3280
|
return;
|
|
3646
3281
|
}
|
|
3647
|
-
case "
|
|
3648
|
-
ordinalConverter.write(
|
|
3282
|
+
case "Proteus" /* Proteus */: {
|
|
3283
|
+
ordinalConverter.write(2, into);
|
|
3284
|
+
const inner = value.inner;
|
|
3285
|
+
FfiConverterTypeProteusError.write(inner.exception, into);
|
|
3649
3286
|
return;
|
|
3650
3287
|
}
|
|
3651
|
-
case "
|
|
3652
|
-
ordinalConverter.write(
|
|
3288
|
+
case "E2ei" /* E2ei */: {
|
|
3289
|
+
ordinalConverter.write(3, into);
|
|
3290
|
+
const inner = value.inner;
|
|
3291
|
+
FfiConverterString.write(inner.e2eiError, into);
|
|
3653
3292
|
return;
|
|
3654
3293
|
}
|
|
3655
|
-
case "
|
|
3656
|
-
ordinalConverter.write(
|
|
3294
|
+
case "TransactionFailed" /* TransactionFailed */: {
|
|
3295
|
+
ordinalConverter.write(4, into);
|
|
3657
3296
|
const inner = value.inner;
|
|
3658
|
-
FfiConverterString.write(inner.
|
|
3297
|
+
FfiConverterString.write(inner.error, into);
|
|
3659
3298
|
return;
|
|
3660
3299
|
}
|
|
3661
3300
|
case "Other" /* Other */: {
|
|
3662
|
-
ordinalConverter.write(
|
|
3301
|
+
ordinalConverter.write(5, into);
|
|
3663
3302
|
const inner = value.inner;
|
|
3664
3303
|
FfiConverterString.write(inner.msg, into);
|
|
3665
3304
|
return;
|
|
@@ -3670,51 +3309,33 @@ var FfiConverterTypeMlsError = (() => {
|
|
|
3670
3309
|
}
|
|
3671
3310
|
allocationSize(value) {
|
|
3672
3311
|
switch (value.tag) {
|
|
3673
|
-
case "
|
|
3312
|
+
case "Mls" /* Mls */: {
|
|
3674
3313
|
const inner = value.inner;
|
|
3675
3314
|
let size = ordinalConverter.allocationSize(1);
|
|
3676
|
-
size +=
|
|
3315
|
+
size += FfiConverterTypeMlsError.allocationSize(inner.mlsError);
|
|
3677
3316
|
return size;
|
|
3678
3317
|
}
|
|
3679
|
-
case "
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
return
|
|
3684
|
-
}
|
|
3685
|
-
case "WrongEpoch" /* WrongEpoch */: {
|
|
3686
|
-
return ordinalConverter.allocationSize(4);
|
|
3687
|
-
}
|
|
3688
|
-
case "BufferedCommit" /* BufferedCommit */: {
|
|
3689
|
-
return ordinalConverter.allocationSize(5);
|
|
3690
|
-
}
|
|
3691
|
-
case "MessageEpochTooOld" /* MessageEpochTooOld */: {
|
|
3692
|
-
return ordinalConverter.allocationSize(6);
|
|
3693
|
-
}
|
|
3694
|
-
case "SelfCommitIgnored" /* SelfCommitIgnored */: {
|
|
3695
|
-
return ordinalConverter.allocationSize(7);
|
|
3696
|
-
}
|
|
3697
|
-
case "UnmergedPendingGroup" /* UnmergedPendingGroup */: {
|
|
3698
|
-
return ordinalConverter.allocationSize(8);
|
|
3699
|
-
}
|
|
3700
|
-
case "StaleProposal" /* StaleProposal */: {
|
|
3701
|
-
return ordinalConverter.allocationSize(9);
|
|
3702
|
-
}
|
|
3703
|
-
case "StaleCommit" /* StaleCommit */: {
|
|
3704
|
-
return ordinalConverter.allocationSize(10);
|
|
3318
|
+
case "Proteus" /* Proteus */: {
|
|
3319
|
+
const inner = value.inner;
|
|
3320
|
+
let size = ordinalConverter.allocationSize(2);
|
|
3321
|
+
size += FfiConverterTypeProteusError.allocationSize(inner.exception);
|
|
3322
|
+
return size;
|
|
3705
3323
|
}
|
|
3706
|
-
case "
|
|
3707
|
-
|
|
3324
|
+
case "E2ei" /* E2ei */: {
|
|
3325
|
+
const inner = value.inner;
|
|
3326
|
+
let size = ordinalConverter.allocationSize(3);
|
|
3327
|
+
size += FfiConverterString.allocationSize(inner.e2eiError);
|
|
3328
|
+
return size;
|
|
3708
3329
|
}
|
|
3709
|
-
case "
|
|
3330
|
+
case "TransactionFailed" /* TransactionFailed */: {
|
|
3710
3331
|
const inner = value.inner;
|
|
3711
|
-
let size = ordinalConverter.allocationSize(
|
|
3712
|
-
size += FfiConverterString.allocationSize(inner.
|
|
3332
|
+
let size = ordinalConverter.allocationSize(4);
|
|
3333
|
+
size += FfiConverterString.allocationSize(inner.error);
|
|
3713
3334
|
return size;
|
|
3714
3335
|
}
|
|
3715
3336
|
case "Other" /* Other */: {
|
|
3716
3337
|
const inner = value.inner;
|
|
3717
|
-
let size = ordinalConverter.allocationSize(
|
|
3338
|
+
let size = ordinalConverter.allocationSize(5);
|
|
3718
3339
|
size += FfiConverterString.allocationSize(inner.msg);
|
|
3719
3340
|
return size;
|
|
3720
3341
|
}
|
|
@@ -3725,449 +3346,496 @@ var FfiConverterTypeMlsError = (() => {
|
|
|
3725
3346
|
}
|
|
3726
3347
|
return new FFIConverter;
|
|
3727
3348
|
})();
|
|
3728
|
-
var ProteusError_Tags;
|
|
3729
|
-
((ProteusError_Tags2) => {
|
|
3730
|
-
ProteusError_Tags2["SessionNotFound"] = "SessionNotFound";
|
|
3731
|
-
ProteusError_Tags2["DuplicateMessage"] = "DuplicateMessage";
|
|
3732
|
-
ProteusError_Tags2["RemoteIdentityChanged"] = "RemoteIdentityChanged";
|
|
3733
|
-
ProteusError_Tags2["Other"] = "Other";
|
|
3734
|
-
})(ProteusError_Tags ||= {});
|
|
3735
|
-
var ProteusError = (() => {
|
|
3736
3349
|
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
return
|
|
3745
|
-
}
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
}
|
|
3749
|
-
static hasInner(obj) {
|
|
3750
|
-
return false;
|
|
3751
|
-
}
|
|
3350
|
+
class Welcome extends UniffiAbstractObject {
|
|
3351
|
+
[uniffiTypeNameSymbol] = "Welcome";
|
|
3352
|
+
[destructorGuardSymbol];
|
|
3353
|
+
[pointerLiteralSymbol];
|
|
3354
|
+
constructor(bytes) {
|
|
3355
|
+
super();
|
|
3356
|
+
const pointer = uniffiCaller.rustCallWithError(FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError), (callStatus) => {
|
|
3357
|
+
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_constructor_welcome_new(FfiConverterUint8Array.lower(bytes, core_crypto_ffi_ffi_default().rustbuffer_alloc), callStatus);
|
|
3358
|
+
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
3359
|
+
this[pointerLiteralSymbol] = pointer;
|
|
3360
|
+
this[destructorGuardSymbol] = uniffiTypeWelcomeObjectFactory.bless(pointer);
|
|
3752
3361
|
}
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
return
|
|
3762
|
-
}
|
|
3763
|
-
static instanceOf(obj) {
|
|
3764
|
-
return obj.tag === "DuplicateMessage" /* DuplicateMessage */;
|
|
3765
|
-
}
|
|
3766
|
-
static hasInner(obj) {
|
|
3767
|
-
return false;
|
|
3768
|
-
}
|
|
3362
|
+
serialize() {
|
|
3363
|
+
return ((__rb) => {
|
|
3364
|
+
try {
|
|
3365
|
+
return FfiConverterUint8Array.lift(__rb);
|
|
3366
|
+
} finally {
|
|
3367
|
+
core_crypto_ffi_ffi_default().rustbuffer_free(__rb);
|
|
3368
|
+
}
|
|
3369
|
+
})(uniffiCaller.rustCallWithError(FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError), (callStatus) => {
|
|
3370
|
+
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_welcome_serialize(uniffiTypeWelcomeObjectFactory.clonePointer(this), callStatus);
|
|
3371
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
3769
3372
|
}
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
static new() {
|
|
3778
|
-
return new RemoteIdentityChanged_;
|
|
3779
|
-
}
|
|
3780
|
-
static instanceOf(obj) {
|
|
3781
|
-
return obj.tag === "RemoteIdentityChanged" /* RemoteIdentityChanged */;
|
|
3782
|
-
}
|
|
3783
|
-
static hasInner(obj) {
|
|
3784
|
-
return false;
|
|
3373
|
+
uniffiDestroy() {
|
|
3374
|
+
const ptr = this[destructorGuardSymbol];
|
|
3375
|
+
if (ptr !== undefined) {
|
|
3376
|
+
const pointer = uniffiTypeWelcomeObjectFactory.pointer(this);
|
|
3377
|
+
uniffiTypeWelcomeObjectFactory.freePointer(pointer);
|
|
3378
|
+
uniffiTypeWelcomeObjectFactory.unbless(ptr);
|
|
3379
|
+
delete this[destructorGuardSymbol];
|
|
3785
3380
|
}
|
|
3786
3381
|
}
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3382
|
+
static instanceOf(obj_) {
|
|
3383
|
+
return uniffiTypeWelcomeObjectFactory.isConcreteType(obj_);
|
|
3384
|
+
}
|
|
3385
|
+
}
|
|
3386
|
+
var uniffiTypeWelcomeObjectFactory = (() => {
|
|
3387
|
+
const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
|
|
3388
|
+
uniffiTypeWelcomeObjectFactory.freePointer(heldValue);
|
|
3389
|
+
}) : null;
|
|
3390
|
+
return {
|
|
3391
|
+
create(pointer) {
|
|
3392
|
+
const instance = Object.create(Welcome.prototype);
|
|
3393
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
3394
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
3395
|
+
instance[uniffiTypeNameSymbol] = "Welcome";
|
|
3396
|
+
return instance;
|
|
3397
|
+
},
|
|
3398
|
+
bless(p) {
|
|
3399
|
+
const ptr = {
|
|
3400
|
+
p,
|
|
3401
|
+
markDestroyed: () => {
|
|
3402
|
+
return;
|
|
3403
|
+
}
|
|
3404
|
+
};
|
|
3405
|
+
if (registry) {
|
|
3406
|
+
registry.register(ptr, p, ptr);
|
|
3407
|
+
}
|
|
3408
|
+
return ptr;
|
|
3409
|
+
},
|
|
3410
|
+
unbless(ptr_) {
|
|
3411
|
+
if (registry) {
|
|
3412
|
+
registry.unregister(ptr_);
|
|
3413
|
+
}
|
|
3414
|
+
},
|
|
3415
|
+
pointer(obj_) {
|
|
3416
|
+
if (obj_[destructorGuardSymbol] === undefined) {
|
|
3417
|
+
throw new UniffiInternalError.UnexpectedNullPointer;
|
|
3418
|
+
}
|
|
3419
|
+
return obj_[pointerLiteralSymbol];
|
|
3420
|
+
},
|
|
3421
|
+
clonePointer(obj_) {
|
|
3422
|
+
const pointer = this.pointer(obj_);
|
|
3423
|
+
return uniffiCaller.rustCall((callStatus) => core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_clone_welcome(pointer, callStatus), FfiConverterString.lift);
|
|
3424
|
+
},
|
|
3425
|
+
freePointer(pointer) {
|
|
3426
|
+
uniffiCaller.rustCall((callStatus) => core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_free_welcome(pointer, callStatus), FfiConverterString.lift);
|
|
3427
|
+
},
|
|
3428
|
+
isConcreteType(obj_) {
|
|
3429
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "Welcome";
|
|
3801
3430
|
}
|
|
3802
|
-
|
|
3803
|
-
|
|
3431
|
+
};
|
|
3432
|
+
})();
|
|
3433
|
+
var FfiConverterTypeWelcome = new FfiConverterObject(uniffiTypeWelcomeObjectFactory);
|
|
3434
|
+
var MlsGroupInfoEncryptionType;
|
|
3435
|
+
((MlsGroupInfoEncryptionType2) => {
|
|
3436
|
+
MlsGroupInfoEncryptionType2[MlsGroupInfoEncryptionType2["Plaintext"] = 1] = "Plaintext";
|
|
3437
|
+
MlsGroupInfoEncryptionType2[MlsGroupInfoEncryptionType2["JweEncrypted"] = 2] = "JweEncrypted";
|
|
3438
|
+
})(MlsGroupInfoEncryptionType ||= {});
|
|
3439
|
+
var FfiConverterTypeMlsGroupInfoEncryptionType = (() => {
|
|
3440
|
+
const ordinalConverter = FfiConverterInt32;
|
|
3441
|
+
|
|
3442
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
3443
|
+
read(from) {
|
|
3444
|
+
switch (ordinalConverter.read(from)) {
|
|
3445
|
+
case 1:
|
|
3446
|
+
return 1 /* Plaintext */;
|
|
3447
|
+
case 2:
|
|
3448
|
+
return 2 /* JweEncrypted */;
|
|
3449
|
+
default:
|
|
3450
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
3451
|
+
}
|
|
3804
3452
|
}
|
|
3805
|
-
|
|
3806
|
-
|
|
3453
|
+
write(value, into) {
|
|
3454
|
+
switch (value) {
|
|
3455
|
+
case 1 /* Plaintext */:
|
|
3456
|
+
return ordinalConverter.write(1, into);
|
|
3457
|
+
case 2 /* JweEncrypted */:
|
|
3458
|
+
return ordinalConverter.write(2, into);
|
|
3459
|
+
}
|
|
3807
3460
|
}
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
}
|
|
3812
|
-
return
|
|
3813
|
-
instanceOf,
|
|
3814
|
-
SessionNotFound: SessionNotFound_,
|
|
3815
|
-
DuplicateMessage: DuplicateMessage_,
|
|
3816
|
-
RemoteIdentityChanged: RemoteIdentityChanged_,
|
|
3817
|
-
Other: Other_
|
|
3818
|
-
});
|
|
3461
|
+
allocationSize(value) {
|
|
3462
|
+
return ordinalConverter.allocationSize(0);
|
|
3463
|
+
}
|
|
3464
|
+
}
|
|
3465
|
+
return new FFIConverter;
|
|
3819
3466
|
})();
|
|
3820
|
-
var
|
|
3467
|
+
var MlsRatchetTreeType;
|
|
3468
|
+
((MlsRatchetTreeType2) => {
|
|
3469
|
+
MlsRatchetTreeType2[MlsRatchetTreeType2["Full"] = 1] = "Full";
|
|
3470
|
+
MlsRatchetTreeType2[MlsRatchetTreeType2["Delta"] = 2] = "Delta";
|
|
3471
|
+
MlsRatchetTreeType2[MlsRatchetTreeType2["ByRef"] = 3] = "ByRef";
|
|
3472
|
+
})(MlsRatchetTreeType ||= {});
|
|
3473
|
+
var FfiConverterTypeMlsRatchetTreeType = (() => {
|
|
3821
3474
|
const ordinalConverter = FfiConverterInt32;
|
|
3822
3475
|
|
|
3823
3476
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
3824
3477
|
read(from) {
|
|
3825
3478
|
switch (ordinalConverter.read(from)) {
|
|
3826
3479
|
case 1:
|
|
3827
|
-
return
|
|
3480
|
+
return 1 /* Full */;
|
|
3828
3481
|
case 2:
|
|
3829
|
-
return
|
|
3482
|
+
return 2 /* Delta */;
|
|
3830
3483
|
case 3:
|
|
3831
|
-
return
|
|
3832
|
-
case 4:
|
|
3833
|
-
return new ProteusError.Other({
|
|
3834
|
-
errorCode: FfiConverterUInt16.read(from)
|
|
3835
|
-
});
|
|
3484
|
+
return 3 /* ByRef */;
|
|
3836
3485
|
default:
|
|
3837
3486
|
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
3838
3487
|
}
|
|
3839
3488
|
}
|
|
3840
3489
|
write(value, into) {
|
|
3841
|
-
switch (value
|
|
3842
|
-
case
|
|
3843
|
-
ordinalConverter.write(1, into);
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
case
|
|
3847
|
-
ordinalConverter.write(
|
|
3848
|
-
return;
|
|
3849
|
-
}
|
|
3850
|
-
case "RemoteIdentityChanged" /* RemoteIdentityChanged */: {
|
|
3851
|
-
ordinalConverter.write(3, into);
|
|
3852
|
-
return;
|
|
3853
|
-
}
|
|
3854
|
-
case "Other" /* Other */: {
|
|
3855
|
-
ordinalConverter.write(4, into);
|
|
3856
|
-
const inner = value.inner;
|
|
3857
|
-
FfiConverterUInt16.write(inner.errorCode, into);
|
|
3858
|
-
return;
|
|
3859
|
-
}
|
|
3860
|
-
default:
|
|
3861
|
-
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
3490
|
+
switch (value) {
|
|
3491
|
+
case 1 /* Full */:
|
|
3492
|
+
return ordinalConverter.write(1, into);
|
|
3493
|
+
case 2 /* Delta */:
|
|
3494
|
+
return ordinalConverter.write(2, into);
|
|
3495
|
+
case 3 /* ByRef */:
|
|
3496
|
+
return ordinalConverter.write(3, into);
|
|
3862
3497
|
}
|
|
3863
3498
|
}
|
|
3864
3499
|
allocationSize(value) {
|
|
3865
|
-
|
|
3866
|
-
case "SessionNotFound" /* SessionNotFound */: {
|
|
3867
|
-
return ordinalConverter.allocationSize(1);
|
|
3868
|
-
}
|
|
3869
|
-
case "DuplicateMessage" /* DuplicateMessage */: {
|
|
3870
|
-
return ordinalConverter.allocationSize(2);
|
|
3871
|
-
}
|
|
3872
|
-
case "RemoteIdentityChanged" /* RemoteIdentityChanged */: {
|
|
3873
|
-
return ordinalConverter.allocationSize(3);
|
|
3874
|
-
}
|
|
3875
|
-
case "Other" /* Other */: {
|
|
3876
|
-
const inner = value.inner;
|
|
3877
|
-
let size = ordinalConverter.allocationSize(4);
|
|
3878
|
-
size += FfiConverterUInt16.allocationSize(inner.errorCode);
|
|
3879
|
-
return size;
|
|
3880
|
-
}
|
|
3881
|
-
default:
|
|
3882
|
-
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
3883
|
-
}
|
|
3500
|
+
return ordinalConverter.allocationSize(0);
|
|
3884
3501
|
}
|
|
3885
3502
|
}
|
|
3886
3503
|
return new FFIConverter;
|
|
3887
3504
|
})();
|
|
3888
|
-
var
|
|
3889
|
-
(
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3505
|
+
var GroupInfoBundle = (() => {
|
|
3506
|
+
const defaults = () => ({});
|
|
3507
|
+
const create = (() => {
|
|
3508
|
+
return uniffiCreateRecord(defaults);
|
|
3509
|
+
})();
|
|
3510
|
+
return Object.freeze({
|
|
3511
|
+
create,
|
|
3512
|
+
new: create,
|
|
3513
|
+
defaults: () => Object.freeze(defaults())
|
|
3514
|
+
});
|
|
3515
|
+
})();
|
|
3516
|
+
var FfiConverterTypeGroupInfoBundle = (() => {
|
|
3897
3517
|
|
|
3898
|
-
class
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
}
|
|
3906
|
-
static new(inner) {
|
|
3907
|
-
return new Mls_(inner);
|
|
3908
|
-
}
|
|
3909
|
-
static instanceOf(obj) {
|
|
3910
|
-
return obj.tag === "Mls" /* Mls */;
|
|
3518
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
3519
|
+
read(from) {
|
|
3520
|
+
return {
|
|
3521
|
+
encryptionType: FfiConverterTypeMlsGroupInfoEncryptionType.read(from),
|
|
3522
|
+
ratchetTreeType: FfiConverterTypeMlsRatchetTreeType.read(from),
|
|
3523
|
+
payload: FfiConverterUint8Array.read(from)
|
|
3524
|
+
};
|
|
3911
3525
|
}
|
|
3912
|
-
|
|
3913
|
-
|
|
3526
|
+
write(value, into) {
|
|
3527
|
+
FfiConverterTypeMlsGroupInfoEncryptionType.write(value.encryptionType, into);
|
|
3528
|
+
FfiConverterTypeMlsRatchetTreeType.write(value.ratchetTreeType, into);
|
|
3529
|
+
FfiConverterUint8Array.write(value.payload, into);
|
|
3914
3530
|
}
|
|
3915
|
-
|
|
3916
|
-
return
|
|
3531
|
+
allocationSize(value) {
|
|
3532
|
+
return FfiConverterTypeMlsGroupInfoEncryptionType.allocationSize(value.encryptionType) + FfiConverterTypeMlsRatchetTreeType.allocationSize(value.ratchetTreeType) + FfiConverterUint8Array.allocationSize(value.payload);
|
|
3917
3533
|
}
|
|
3918
3534
|
}
|
|
3535
|
+
return new FFIConverter;
|
|
3536
|
+
})();
|
|
3537
|
+
var CommitBundle = (() => {
|
|
3538
|
+
const defaults = () => ({});
|
|
3539
|
+
const create = (() => {
|
|
3540
|
+
return uniffiCreateRecord(defaults);
|
|
3541
|
+
})();
|
|
3542
|
+
return Object.freeze({
|
|
3543
|
+
create,
|
|
3544
|
+
new: create,
|
|
3545
|
+
defaults: () => Object.freeze(defaults())
|
|
3546
|
+
});
|
|
3547
|
+
})();
|
|
3548
|
+
var FfiConverterTypeCommitBundle = (() => {
|
|
3919
3549
|
|
|
3920
|
-
class
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
static new(inner) {
|
|
3929
|
-
return new Proteus_(inner);
|
|
3930
|
-
}
|
|
3931
|
-
static instanceOf(obj) {
|
|
3932
|
-
return obj.tag === "Proteus" /* Proteus */;
|
|
3550
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
3551
|
+
read(from) {
|
|
3552
|
+
return {
|
|
3553
|
+
welcome: FfiConverterOptionalTypeWelcome.read(from),
|
|
3554
|
+
commit: FfiConverterUint8Array.read(from),
|
|
3555
|
+
groupInfo: FfiConverterTypeGroupInfoBundle.read(from),
|
|
3556
|
+
encryptedMessage: FfiConverterOptionalBytes.read(from)
|
|
3557
|
+
};
|
|
3933
3558
|
}
|
|
3934
|
-
|
|
3935
|
-
|
|
3559
|
+
write(value, into) {
|
|
3560
|
+
FfiConverterOptionalTypeWelcome.write(value.welcome, into);
|
|
3561
|
+
FfiConverterUint8Array.write(value.commit, into);
|
|
3562
|
+
FfiConverterTypeGroupInfoBundle.write(value.groupInfo, into);
|
|
3563
|
+
FfiConverterOptionalBytes.write(value.encryptedMessage, into);
|
|
3936
3564
|
}
|
|
3937
|
-
|
|
3938
|
-
return
|
|
3565
|
+
allocationSize(value) {
|
|
3566
|
+
return FfiConverterOptionalTypeWelcome.allocationSize(value.welcome) + FfiConverterUint8Array.allocationSize(value.commit) + FfiConverterTypeGroupInfoBundle.allocationSize(value.groupInfo) + FfiConverterOptionalBytes.allocationSize(value.encryptedMessage);
|
|
3939
3567
|
}
|
|
3940
3568
|
}
|
|
3569
|
+
return new FFIConverter;
|
|
3570
|
+
})();
|
|
3941
3571
|
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
static instanceOf(obj) {
|
|
3954
|
-
return obj.tag === "E2ei" /* E2ei */;
|
|
3955
|
-
}
|
|
3956
|
-
static hasInner(obj) {
|
|
3957
|
-
return E2ei_.instanceOf(obj);
|
|
3958
|
-
}
|
|
3959
|
-
static getInner(obj) {
|
|
3960
|
-
return obj.inner;
|
|
3961
|
-
}
|
|
3572
|
+
class ClientId extends UniffiAbstractObject {
|
|
3573
|
+
[uniffiTypeNameSymbol] = "ClientId";
|
|
3574
|
+
[destructorGuardSymbol];
|
|
3575
|
+
[pointerLiteralSymbol];
|
|
3576
|
+
constructor(userId, deviceId, domain) {
|
|
3577
|
+
super();
|
|
3578
|
+
const pointer = uniffiCaller.rustCall((callStatus) => {
|
|
3579
|
+
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_constructor_clientid_new(FfiConverterTypeUuid.lower(userId, core_crypto_ffi_ffi_default().rustbuffer_alloc), FfiConverterTypeDeviceId.lower(deviceId, core_crypto_ffi_ffi_default().rustbuffer_alloc), FfiConverterString.lower(domain, core_crypto_ffi_ffi_default().rustbuffer_alloc), callStatus);
|
|
3580
|
+
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
3581
|
+
this[pointerLiteralSymbol] = pointer;
|
|
3582
|
+
this[destructorGuardSymbol] = uniffiTypeClientIdObjectFactory.bless(pointer);
|
|
3962
3583
|
}
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
return new TransactionFailed_(inner);
|
|
3974
|
-
}
|
|
3975
|
-
static instanceOf(obj) {
|
|
3976
|
-
return obj.tag === "TransactionFailed" /* TransactionFailed */;
|
|
3977
|
-
}
|
|
3978
|
-
static hasInner(obj) {
|
|
3979
|
-
return TransactionFailed_.instanceOf(obj);
|
|
3980
|
-
}
|
|
3981
|
-
static getInner(obj) {
|
|
3982
|
-
return obj.inner;
|
|
3983
|
-
}
|
|
3584
|
+
copyBytes() {
|
|
3585
|
+
return ((__rb) => {
|
|
3586
|
+
try {
|
|
3587
|
+
return FfiConverterUint8Array.lift(__rb);
|
|
3588
|
+
} finally {
|
|
3589
|
+
core_crypto_ffi_ffi_default().rustbuffer_free(__rb);
|
|
3590
|
+
}
|
|
3591
|
+
})(uniffiCaller.rustCall((callStatus) => {
|
|
3592
|
+
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_clientid_copy_bytes(uniffiTypeClientIdObjectFactory.clonePointer(this), callStatus);
|
|
3593
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
3984
3594
|
}
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
return
|
|
3999
|
-
}
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
3595
|
+
deserialize() {
|
|
3596
|
+
return ((__rb) => {
|
|
3597
|
+
try {
|
|
3598
|
+
return FfiConverterTypeDeserializedClientId.lift(__rb);
|
|
3599
|
+
} finally {
|
|
3600
|
+
core_crypto_ffi_ffi_default().rustbuffer_free(__rb);
|
|
3601
|
+
}
|
|
3602
|
+
})(uniffiCaller.rustCall((callStatus) => {
|
|
3603
|
+
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_clientid_deserialize(uniffiTypeClientIdObjectFactory.clonePointer(this), callStatus);
|
|
3604
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
3605
|
+
}
|
|
3606
|
+
equals(other) {
|
|
3607
|
+
return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
|
|
3608
|
+
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_eq_eq(uniffiTypeClientIdObjectFactory.clonePointer(this), FfiConverterTypeClientId.lower(other, core_crypto_ffi_ffi_default().rustbuffer_alloc), callStatus);
|
|
3609
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
3610
|
+
}
|
|
3611
|
+
hashCode() {
|
|
3612
|
+
return FfiConverterUInt64.lift(uniffiCaller.rustCall((callStatus) => {
|
|
3613
|
+
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_clientid_uniffi_trait_hash(uniffiTypeClientIdObjectFactory.clonePointer(this), callStatus);
|
|
3614
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
3615
|
+
}
|
|
3616
|
+
uniffiDestroy() {
|
|
3617
|
+
const ptr = this[destructorGuardSymbol];
|
|
3618
|
+
if (ptr !== undefined) {
|
|
3619
|
+
const pointer = uniffiTypeClientIdObjectFactory.pointer(this);
|
|
3620
|
+
uniffiTypeClientIdObjectFactory.freePointer(pointer);
|
|
3621
|
+
uniffiTypeClientIdObjectFactory.unbless(ptr);
|
|
3622
|
+
delete this[destructorGuardSymbol];
|
|
4005
3623
|
}
|
|
4006
3624
|
}
|
|
4007
|
-
|
|
4008
|
-
return
|
|
3625
|
+
static instanceOf(obj_) {
|
|
3626
|
+
return uniffiTypeClientIdObjectFactory.isConcreteType(obj_);
|
|
4009
3627
|
}
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
3628
|
+
}
|
|
3629
|
+
var uniffiTypeClientIdObjectFactory = (() => {
|
|
3630
|
+
const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
|
|
3631
|
+
uniffiTypeClientIdObjectFactory.freePointer(heldValue);
|
|
3632
|
+
}) : null;
|
|
3633
|
+
return {
|
|
3634
|
+
create(pointer) {
|
|
3635
|
+
const instance = Object.create(ClientId.prototype);
|
|
3636
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
3637
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
3638
|
+
instance[uniffiTypeNameSymbol] = "ClientId";
|
|
3639
|
+
return instance;
|
|
3640
|
+
},
|
|
3641
|
+
bless(p) {
|
|
3642
|
+
const ptr = {
|
|
3643
|
+
p,
|
|
3644
|
+
markDestroyed: () => {
|
|
3645
|
+
return;
|
|
3646
|
+
}
|
|
3647
|
+
};
|
|
3648
|
+
if (registry) {
|
|
3649
|
+
registry.register(ptr, p, ptr);
|
|
3650
|
+
}
|
|
3651
|
+
return ptr;
|
|
3652
|
+
},
|
|
3653
|
+
unbless(ptr_) {
|
|
3654
|
+
if (registry) {
|
|
3655
|
+
registry.unregister(ptr_);
|
|
3656
|
+
}
|
|
3657
|
+
},
|
|
3658
|
+
pointer(obj_) {
|
|
3659
|
+
if (obj_[destructorGuardSymbol] === undefined) {
|
|
3660
|
+
throw new UniffiInternalError.UnexpectedNullPointer;
|
|
3661
|
+
}
|
|
3662
|
+
return obj_[pointerLiteralSymbol];
|
|
3663
|
+
},
|
|
3664
|
+
clonePointer(obj_) {
|
|
3665
|
+
const pointer = this.pointer(obj_);
|
|
3666
|
+
return uniffiCaller.rustCall((callStatus) => core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_clone_clientid(pointer, callStatus), FfiConverterString.lift);
|
|
3667
|
+
},
|
|
3668
|
+
freePointer(pointer) {
|
|
3669
|
+
uniffiCaller.rustCall((callStatus) => core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_free_clientid(pointer, callStatus), FfiConverterString.lift);
|
|
3670
|
+
},
|
|
3671
|
+
isConcreteType(obj_) {
|
|
3672
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "ClientId";
|
|
3673
|
+
}
|
|
3674
|
+
};
|
|
4018
3675
|
})();
|
|
4019
|
-
var
|
|
4020
|
-
const ordinalConverter = FfiConverterInt32;
|
|
3676
|
+
var FfiConverterTypeClientId = new FfiConverterObject(uniffiTypeClientIdObjectFactory);
|
|
4021
3677
|
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
});
|
|
4041
|
-
case 5:
|
|
4042
|
-
return new CoreCryptoError.Other({
|
|
4043
|
-
msg: FfiConverterString.read(from)
|
|
4044
|
-
});
|
|
4045
|
-
default:
|
|
4046
|
-
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
3678
|
+
class Uuid extends UniffiAbstractObject {
|
|
3679
|
+
[uniffiTypeNameSymbol] = "Uuid";
|
|
3680
|
+
[destructorGuardSymbol];
|
|
3681
|
+
[pointerLiteralSymbol];
|
|
3682
|
+
constructor(uuid) {
|
|
3683
|
+
super();
|
|
3684
|
+
const pointer = uniffiCaller.rustCallWithError(FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError), (callStatus) => {
|
|
3685
|
+
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_constructor_uuid_new(FfiConverterString.lower(uuid, core_crypto_ffi_ffi_default().rustbuffer_alloc), callStatus);
|
|
3686
|
+
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
3687
|
+
this[pointerLiteralSymbol] = pointer;
|
|
3688
|
+
this[destructorGuardSymbol] = uniffiTypeUuidObjectFactory.bless(pointer);
|
|
3689
|
+
}
|
|
3690
|
+
toString() {
|
|
3691
|
+
return ((__rb) => {
|
|
3692
|
+
try {
|
|
3693
|
+
return FfiConverterString.lift(__rb);
|
|
3694
|
+
} finally {
|
|
3695
|
+
core_crypto_ffi_ffi_default().rustbuffer_free(__rb);
|
|
4047
3696
|
}
|
|
3697
|
+
})(uniffiCaller.rustCall((callStatus) => {
|
|
3698
|
+
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_display(uniffiTypeUuidObjectFactory.clonePointer(this), callStatus);
|
|
3699
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
3700
|
+
}
|
|
3701
|
+
equals(other) {
|
|
3702
|
+
return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
|
|
3703
|
+
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_eq(uniffiTypeUuidObjectFactory.clonePointer(this), FfiConverterTypeUuid.lower(other, core_crypto_ffi_ffi_default().rustbuffer_alloc), callStatus);
|
|
3704
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
3705
|
+
}
|
|
3706
|
+
hashCode() {
|
|
3707
|
+
return FfiConverterUInt64.lift(uniffiCaller.rustCall((callStatus) => {
|
|
3708
|
+
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_hash(uniffiTypeUuidObjectFactory.clonePointer(this), callStatus);
|
|
3709
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
3710
|
+
}
|
|
3711
|
+
uniffiDestroy() {
|
|
3712
|
+
const ptr = this[destructorGuardSymbol];
|
|
3713
|
+
if (ptr !== undefined) {
|
|
3714
|
+
const pointer = uniffiTypeUuidObjectFactory.pointer(this);
|
|
3715
|
+
uniffiTypeUuidObjectFactory.freePointer(pointer);
|
|
3716
|
+
uniffiTypeUuidObjectFactory.unbless(ptr);
|
|
3717
|
+
delete this[destructorGuardSymbol];
|
|
4048
3718
|
}
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
ordinalConverter.write(4, into);
|
|
4071
|
-
const inner = value.inner;
|
|
4072
|
-
FfiConverterString.write(inner.error, into);
|
|
4073
|
-
return;
|
|
4074
|
-
}
|
|
4075
|
-
case "Other" /* Other */: {
|
|
4076
|
-
ordinalConverter.write(5, into);
|
|
4077
|
-
const inner = value.inner;
|
|
4078
|
-
FfiConverterString.write(inner.msg, into);
|
|
3719
|
+
}
|
|
3720
|
+
static instanceOf(obj_) {
|
|
3721
|
+
return uniffiTypeUuidObjectFactory.isConcreteType(obj_);
|
|
3722
|
+
}
|
|
3723
|
+
}
|
|
3724
|
+
var uniffiTypeUuidObjectFactory = (() => {
|
|
3725
|
+
const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
|
|
3726
|
+
uniffiTypeUuidObjectFactory.freePointer(heldValue);
|
|
3727
|
+
}) : null;
|
|
3728
|
+
return {
|
|
3729
|
+
create(pointer) {
|
|
3730
|
+
const instance = Object.create(Uuid.prototype);
|
|
3731
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
3732
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
3733
|
+
instance[uniffiTypeNameSymbol] = "Uuid";
|
|
3734
|
+
return instance;
|
|
3735
|
+
},
|
|
3736
|
+
bless(p) {
|
|
3737
|
+
const ptr = {
|
|
3738
|
+
p,
|
|
3739
|
+
markDestroyed: () => {
|
|
4079
3740
|
return;
|
|
4080
3741
|
}
|
|
4081
|
-
|
|
4082
|
-
|
|
3742
|
+
};
|
|
3743
|
+
if (registry) {
|
|
3744
|
+
registry.register(ptr, p, ptr);
|
|
4083
3745
|
}
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
const inner = value.inner;
|
|
4095
|
-
let size = ordinalConverter.allocationSize(2);
|
|
4096
|
-
size += FfiConverterTypeProteusError.allocationSize(inner.exception);
|
|
4097
|
-
return size;
|
|
4098
|
-
}
|
|
4099
|
-
case "E2ei" /* E2ei */: {
|
|
4100
|
-
const inner = value.inner;
|
|
4101
|
-
let size = ordinalConverter.allocationSize(3);
|
|
4102
|
-
size += FfiConverterString.allocationSize(inner.e2eiError);
|
|
4103
|
-
return size;
|
|
4104
|
-
}
|
|
4105
|
-
case "TransactionFailed" /* TransactionFailed */: {
|
|
4106
|
-
const inner = value.inner;
|
|
4107
|
-
let size = ordinalConverter.allocationSize(4);
|
|
4108
|
-
size += FfiConverterString.allocationSize(inner.error);
|
|
4109
|
-
return size;
|
|
4110
|
-
}
|
|
4111
|
-
case "Other" /* Other */: {
|
|
4112
|
-
const inner = value.inner;
|
|
4113
|
-
let size = ordinalConverter.allocationSize(5);
|
|
4114
|
-
size += FfiConverterString.allocationSize(inner.msg);
|
|
4115
|
-
return size;
|
|
4116
|
-
}
|
|
4117
|
-
default:
|
|
4118
|
-
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
3746
|
+
return ptr;
|
|
3747
|
+
},
|
|
3748
|
+
unbless(ptr_) {
|
|
3749
|
+
if (registry) {
|
|
3750
|
+
registry.unregister(ptr_);
|
|
3751
|
+
}
|
|
3752
|
+
},
|
|
3753
|
+
pointer(obj_) {
|
|
3754
|
+
if (obj_[destructorGuardSymbol] === undefined) {
|
|
3755
|
+
throw new UniffiInternalError.UnexpectedNullPointer;
|
|
4119
3756
|
}
|
|
3757
|
+
return obj_[pointerLiteralSymbol];
|
|
3758
|
+
},
|
|
3759
|
+
clonePointer(obj_) {
|
|
3760
|
+
const pointer = this.pointer(obj_);
|
|
3761
|
+
return uniffiCaller.rustCall((callStatus) => core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_clone_uuid(pointer, callStatus), FfiConverterString.lift);
|
|
3762
|
+
},
|
|
3763
|
+
freePointer(pointer) {
|
|
3764
|
+
uniffiCaller.rustCall((callStatus) => core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_free_uuid(pointer, callStatus), FfiConverterString.lift);
|
|
3765
|
+
},
|
|
3766
|
+
isConcreteType(obj_) {
|
|
3767
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "Uuid";
|
|
4120
3768
|
}
|
|
4121
|
-
}
|
|
4122
|
-
return new FFIConverter;
|
|
3769
|
+
};
|
|
4123
3770
|
})();
|
|
3771
|
+
var FfiConverterTypeUuid = new FfiConverterObject(uniffiTypeUuidObjectFactory);
|
|
4124
3772
|
|
|
4125
|
-
class
|
|
4126
|
-
[uniffiTypeNameSymbol] = "
|
|
3773
|
+
class DeviceId extends UniffiAbstractObject {
|
|
3774
|
+
[uniffiTypeNameSymbol] = "DeviceId";
|
|
4127
3775
|
[destructorGuardSymbol];
|
|
4128
3776
|
[pointerLiteralSymbol];
|
|
4129
|
-
constructor(
|
|
3777
|
+
constructor(id) {
|
|
4130
3778
|
super();
|
|
4131
|
-
const pointer = uniffiCaller.
|
|
4132
|
-
return core_crypto_ffi_ffi_default().
|
|
3779
|
+
const pointer = uniffiCaller.rustCall((callStatus) => {
|
|
3780
|
+
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_constructor_deviceid_new(FfiConverterUInt64.lower(id, core_crypto_ffi_ffi_default().rustbuffer_alloc), callStatus);
|
|
4133
3781
|
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
4134
3782
|
this[pointerLiteralSymbol] = pointer;
|
|
4135
|
-
this[destructorGuardSymbol] =
|
|
3783
|
+
this[destructorGuardSymbol] = uniffiTypeDeviceIdObjectFactory.bless(pointer);
|
|
4136
3784
|
}
|
|
4137
|
-
|
|
3785
|
+
static fromHexString(hexString) {
|
|
3786
|
+
return FfiConverterTypeDeviceId.lift(uniffiCaller.rustCallWithError(FfiConverterTypeCoreCryptoError.lift.bind(FfiConverterTypeCoreCryptoError), (callStatus) => {
|
|
3787
|
+
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_constructor_deviceid_from_hex_string(FfiConverterString.lower(hexString, core_crypto_ffi_ffi_default().rustbuffer_alloc), callStatus);
|
|
3788
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
3789
|
+
}
|
|
3790
|
+
toHexString() {
|
|
4138
3791
|
return ((__rb) => {
|
|
4139
3792
|
try {
|
|
4140
|
-
return
|
|
3793
|
+
return FfiConverterString.lift(__rb);
|
|
4141
3794
|
} finally {
|
|
4142
3795
|
core_crypto_ffi_ffi_default().rustbuffer_free(__rb);
|
|
4143
3796
|
}
|
|
4144
|
-
})(uniffiCaller.
|
|
4145
|
-
return core_crypto_ffi_ffi_default().
|
|
3797
|
+
})(uniffiCaller.rustCall((callStatus) => {
|
|
3798
|
+
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_deviceid_to_hex_string(uniffiTypeDeviceIdObjectFactory.clonePointer(this), callStatus);
|
|
3799
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
3800
|
+
}
|
|
3801
|
+
toU64() {
|
|
3802
|
+
return FfiConverterUInt64.lift(uniffiCaller.rustCall((callStatus) => {
|
|
3803
|
+
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_deviceid_to_u64(uniffiTypeDeviceIdObjectFactory.clonePointer(this), callStatus);
|
|
3804
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
3805
|
+
}
|
|
3806
|
+
equals(other) {
|
|
3807
|
+
return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
|
|
3808
|
+
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_eq_eq(uniffiTypeDeviceIdObjectFactory.clonePointer(this), FfiConverterTypeDeviceId.lower(other, core_crypto_ffi_ffi_default().rustbuffer_alloc), callStatus);
|
|
3809
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
3810
|
+
}
|
|
3811
|
+
hashCode() {
|
|
3812
|
+
return FfiConverterUInt64.lift(uniffiCaller.rustCall((callStatus) => {
|
|
3813
|
+
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_hash(uniffiTypeDeviceIdObjectFactory.clonePointer(this), callStatus);
|
|
4146
3814
|
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
4147
3815
|
}
|
|
4148
3816
|
uniffiDestroy() {
|
|
4149
3817
|
const ptr = this[destructorGuardSymbol];
|
|
4150
3818
|
if (ptr !== undefined) {
|
|
4151
|
-
const pointer =
|
|
4152
|
-
|
|
4153
|
-
|
|
3819
|
+
const pointer = uniffiTypeDeviceIdObjectFactory.pointer(this);
|
|
3820
|
+
uniffiTypeDeviceIdObjectFactory.freePointer(pointer);
|
|
3821
|
+
uniffiTypeDeviceIdObjectFactory.unbless(ptr);
|
|
4154
3822
|
delete this[destructorGuardSymbol];
|
|
4155
3823
|
}
|
|
4156
3824
|
}
|
|
4157
3825
|
static instanceOf(obj_) {
|
|
4158
|
-
return
|
|
3826
|
+
return uniffiTypeDeviceIdObjectFactory.isConcreteType(obj_);
|
|
4159
3827
|
}
|
|
4160
3828
|
}
|
|
4161
|
-
var
|
|
3829
|
+
var uniffiTypeDeviceIdObjectFactory = (() => {
|
|
4162
3830
|
const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
|
|
4163
|
-
|
|
3831
|
+
uniffiTypeDeviceIdObjectFactory.freePointer(heldValue);
|
|
4164
3832
|
}) : null;
|
|
4165
3833
|
return {
|
|
4166
3834
|
create(pointer) {
|
|
4167
|
-
const instance = Object.create(
|
|
3835
|
+
const instance = Object.create(DeviceId.prototype);
|
|
4168
3836
|
instance[pointerLiteralSymbol] = pointer;
|
|
4169
3837
|
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
4170
|
-
instance[uniffiTypeNameSymbol] = "
|
|
3838
|
+
instance[uniffiTypeNameSymbol] = "DeviceId";
|
|
4171
3839
|
return instance;
|
|
4172
3840
|
},
|
|
4173
3841
|
bless(p) {
|
|
@@ -4195,89 +3863,63 @@ var uniffiTypeWelcomeObjectFactory = (() => {
|
|
|
4195
3863
|
},
|
|
4196
3864
|
clonePointer(obj_) {
|
|
4197
3865
|
const pointer = this.pointer(obj_);
|
|
4198
|
-
return uniffiCaller.rustCall((callStatus) => core_crypto_ffi_ffi_default().
|
|
3866
|
+
return uniffiCaller.rustCall((callStatus) => core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_clone_deviceid(pointer, callStatus), FfiConverterString.lift);
|
|
4199
3867
|
},
|
|
4200
3868
|
freePointer(pointer) {
|
|
4201
|
-
uniffiCaller.rustCall((callStatus) => core_crypto_ffi_ffi_default().
|
|
3869
|
+
uniffiCaller.rustCall((callStatus) => core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_free_deviceid(pointer, callStatus), FfiConverterString.lift);
|
|
4202
3870
|
},
|
|
4203
3871
|
isConcreteType(obj_) {
|
|
4204
|
-
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "
|
|
3872
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "DeviceId";
|
|
4205
3873
|
}
|
|
4206
3874
|
};
|
|
4207
3875
|
})();
|
|
4208
|
-
var
|
|
4209
|
-
var
|
|
4210
|
-
(
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
})(
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
return
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
write(value, into) {
|
|
4229
|
-
switch (value) {
|
|
4230
|
-
case 1 /* Plaintext */:
|
|
4231
|
-
return ordinalConverter.write(1, into);
|
|
4232
|
-
case 2 /* JweEncrypted */:
|
|
4233
|
-
return ordinalConverter.write(2, into);
|
|
4234
|
-
}
|
|
4235
|
-
}
|
|
4236
|
-
allocationSize(value) {
|
|
4237
|
-
return ordinalConverter.allocationSize(0);
|
|
3876
|
+
var FfiConverterTypeDeviceId = new FfiConverterObject(uniffiTypeDeviceIdObjectFactory);
|
|
3877
|
+
var DeserializedClientId = (() => {
|
|
3878
|
+
const defaults = () => ({});
|
|
3879
|
+
const create = (() => {
|
|
3880
|
+
return uniffiCreateRecord(defaults);
|
|
3881
|
+
})();
|
|
3882
|
+
return Object.freeze({
|
|
3883
|
+
create,
|
|
3884
|
+
new: create,
|
|
3885
|
+
defaults: () => Object.freeze(defaults()),
|
|
3886
|
+
toString(self_) {
|
|
3887
|
+
return ((__rb) => {
|
|
3888
|
+
try {
|
|
3889
|
+
return FfiConverterString.lift(__rb);
|
|
3890
|
+
} finally {
|
|
3891
|
+
core_crypto_ffi_ffi_default().rustbuffer_free(__rb);
|
|
3892
|
+
}
|
|
3893
|
+
})(uniffiCaller.rustCall((callStatus) => {
|
|
3894
|
+
return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_deserializedclientid_uniffi_trait_display(FfiConverterTypeDeserializedClientId.lower(self_, core_crypto_ffi_ffi_default().rustbuffer_alloc), callStatus);
|
|
3895
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
4238
3896
|
}
|
|
4239
|
-
}
|
|
4240
|
-
return new FFIConverter;
|
|
3897
|
+
});
|
|
4241
3898
|
})();
|
|
4242
|
-
var
|
|
4243
|
-
((MlsRatchetTreeType2) => {
|
|
4244
|
-
MlsRatchetTreeType2[MlsRatchetTreeType2["Full"] = 1] = "Full";
|
|
4245
|
-
MlsRatchetTreeType2[MlsRatchetTreeType2["Delta"] = 2] = "Delta";
|
|
4246
|
-
MlsRatchetTreeType2[MlsRatchetTreeType2["ByRef"] = 3] = "ByRef";
|
|
4247
|
-
})(MlsRatchetTreeType ||= {});
|
|
4248
|
-
var FfiConverterTypeMlsRatchetTreeType = (() => {
|
|
4249
|
-
const ordinalConverter = FfiConverterInt32;
|
|
3899
|
+
var FfiConverterTypeDeserializedClientId = (() => {
|
|
4250
3900
|
|
|
4251
3901
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
4252
3902
|
read(from) {
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
return 3 /* ByRef */;
|
|
4260
|
-
default:
|
|
4261
|
-
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
4262
|
-
}
|
|
3903
|
+
return {
|
|
3904
|
+
clientId: FfiConverterTypeClientId.read(from),
|
|
3905
|
+
userId: FfiConverterTypeUuid.read(from),
|
|
3906
|
+
deviceId: FfiConverterTypeDeviceId.read(from),
|
|
3907
|
+
domain: FfiConverterString.read(from)
|
|
3908
|
+
};
|
|
4263
3909
|
}
|
|
4264
3910
|
write(value, into) {
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
return ordinalConverter.write(2, into);
|
|
4270
|
-
case 3 /* ByRef */:
|
|
4271
|
-
return ordinalConverter.write(3, into);
|
|
4272
|
-
}
|
|
3911
|
+
FfiConverterTypeClientId.write(value.clientId, into);
|
|
3912
|
+
FfiConverterTypeUuid.write(value.userId, into);
|
|
3913
|
+
FfiConverterTypeDeviceId.write(value.deviceId, into);
|
|
3914
|
+
FfiConverterString.write(value.domain, into);
|
|
4273
3915
|
}
|
|
4274
3916
|
allocationSize(value) {
|
|
4275
|
-
return
|
|
3917
|
+
return FfiConverterTypeClientId.allocationSize(value.clientId) + FfiConverterTypeUuid.allocationSize(value.userId) + FfiConverterTypeDeviceId.allocationSize(value.deviceId) + FfiConverterString.allocationSize(value.domain);
|
|
4276
3918
|
}
|
|
4277
3919
|
}
|
|
4278
3920
|
return new FFIConverter;
|
|
4279
3921
|
})();
|
|
4280
|
-
var
|
|
3922
|
+
var HistorySecret = (() => {
|
|
4281
3923
|
const defaults = () => ({});
|
|
4282
3924
|
const create = (() => {
|
|
4283
3925
|
return uniffiCreateRecord(defaults);
|
|
@@ -4288,28 +3930,26 @@ var GroupInfoBundle = (() => {
|
|
|
4288
3930
|
defaults: () => Object.freeze(defaults())
|
|
4289
3931
|
});
|
|
4290
3932
|
})();
|
|
4291
|
-
var
|
|
3933
|
+
var FfiConverterTypeHistorySecret = (() => {
|
|
4292
3934
|
|
|
4293
3935
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
4294
3936
|
read(from) {
|
|
4295
3937
|
return {
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
payload: FfiConverterUint8Array.read(from)
|
|
3938
|
+
clientId: FfiConverterTypeClientId.read(from),
|
|
3939
|
+
data: FfiConverterUint8Array.read(from)
|
|
4299
3940
|
};
|
|
4300
3941
|
}
|
|
4301
3942
|
write(value, into) {
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
FfiConverterUint8Array.write(value.payload, into);
|
|
3943
|
+
FfiConverterTypeClientId.write(value.clientId, into);
|
|
3944
|
+
FfiConverterUint8Array.write(value.data, into);
|
|
4305
3945
|
}
|
|
4306
3946
|
allocationSize(value) {
|
|
4307
|
-
return
|
|
3947
|
+
return FfiConverterTypeClientId.allocationSize(value.clientId) + FfiConverterUint8Array.allocationSize(value.data);
|
|
4308
3948
|
}
|
|
4309
3949
|
}
|
|
4310
3950
|
return new FFIConverter;
|
|
4311
3951
|
})();
|
|
4312
|
-
var
|
|
3952
|
+
var HttpHeader = (() => {
|
|
4313
3953
|
const defaults = () => ({});
|
|
4314
3954
|
const create = (() => {
|
|
4315
3955
|
return uniffiCreateRecord(defaults);
|
|
@@ -4320,30 +3960,26 @@ var CommitBundle = (() => {
|
|
|
4320
3960
|
defaults: () => Object.freeze(defaults())
|
|
4321
3961
|
});
|
|
4322
3962
|
})();
|
|
4323
|
-
var
|
|
3963
|
+
var FfiConverterTypeHttpHeader = (() => {
|
|
4324
3964
|
|
|
4325
3965
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
4326
3966
|
read(from) {
|
|
4327
3967
|
return {
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
groupInfo: FfiConverterTypeGroupInfoBundle.read(from),
|
|
4331
|
-
encryptedMessage: FfiConverterOptionalBytes.read(from)
|
|
3968
|
+
name: FfiConverterString.read(from),
|
|
3969
|
+
value: FfiConverterString.read(from)
|
|
4332
3970
|
};
|
|
4333
3971
|
}
|
|
4334
3972
|
write(value, into) {
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
FfiConverterTypeGroupInfoBundle.write(value.groupInfo, into);
|
|
4338
|
-
FfiConverterOptionalBytes.write(value.encryptedMessage, into);
|
|
3973
|
+
FfiConverterString.write(value.name, into);
|
|
3974
|
+
FfiConverterString.write(value.value, into);
|
|
4339
3975
|
}
|
|
4340
3976
|
allocationSize(value) {
|
|
4341
|
-
return
|
|
3977
|
+
return FfiConverterString.allocationSize(value.name) + FfiConverterString.allocationSize(value.value);
|
|
4342
3978
|
}
|
|
4343
3979
|
}
|
|
4344
3980
|
return new FFIConverter;
|
|
4345
3981
|
})();
|
|
4346
|
-
var
|
|
3982
|
+
var HttpResponse = (() => {
|
|
4347
3983
|
const defaults = () => ({});
|
|
4348
3984
|
const create = (() => {
|
|
4349
3985
|
return uniffiCreateRecord(defaults);
|
|
@@ -4354,34 +3990,28 @@ var DecryptedMessage = (() => {
|
|
|
4354
3990
|
defaults: () => Object.freeze(defaults())
|
|
4355
3991
|
});
|
|
4356
3992
|
})();
|
|
4357
|
-
var
|
|
3993
|
+
var FfiConverterTypeHttpResponse = (() => {
|
|
4358
3994
|
|
|
4359
3995
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
4360
3996
|
read(from) {
|
|
4361
3997
|
return {
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
senderClientId: FfiConverterOptionalTypeClientId.read(from),
|
|
4366
|
-
identity: FfiConverterTypeWireIdentity.read(from),
|
|
4367
|
-
bufferedMessages: FfiConverterOptionalSequenceTypeBufferedDecryptedMessage.read(from)
|
|
3998
|
+
status: FfiConverterUInt16.read(from),
|
|
3999
|
+
headers: FfiConverterSequenceTypeHttpHeader.read(from),
|
|
4000
|
+
body: FfiConverterUint8Array.read(from)
|
|
4368
4001
|
};
|
|
4369
4002
|
}
|
|
4370
4003
|
write(value, into) {
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
FfiConverterOptionalTypeClientId.write(value.senderClientId, into);
|
|
4375
|
-
FfiConverterTypeWireIdentity.write(value.identity, into);
|
|
4376
|
-
FfiConverterOptionalSequenceTypeBufferedDecryptedMessage.write(value.bufferedMessages, into);
|
|
4004
|
+
FfiConverterUInt16.write(value.status, into);
|
|
4005
|
+
FfiConverterSequenceTypeHttpHeader.write(value.headers, into);
|
|
4006
|
+
FfiConverterUint8Array.write(value.body, into);
|
|
4377
4007
|
}
|
|
4378
4008
|
allocationSize(value) {
|
|
4379
|
-
return
|
|
4009
|
+
return FfiConverterUInt16.allocationSize(value.status) + FfiConverterSequenceTypeHttpHeader.allocationSize(value.headers) + FfiConverterUint8Array.allocationSize(value.body);
|
|
4380
4010
|
}
|
|
4381
4011
|
}
|
|
4382
4012
|
return new FFIConverter;
|
|
4383
4013
|
})();
|
|
4384
|
-
var
|
|
4014
|
+
var ProteusAutoPrekeyBundle = (() => {
|
|
4385
4015
|
const defaults = () => ({});
|
|
4386
4016
|
const create = (() => {
|
|
4387
4017
|
return uniffiCreateRecord(defaults);
|
|
@@ -4392,56 +4022,98 @@ var HistorySecret = (() => {
|
|
|
4392
4022
|
defaults: () => Object.freeze(defaults())
|
|
4393
4023
|
});
|
|
4394
4024
|
})();
|
|
4395
|
-
var
|
|
4025
|
+
var FfiConverterTypeProteusAutoPrekeyBundle = (() => {
|
|
4396
4026
|
|
|
4397
4027
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
4398
4028
|
read(from) {
|
|
4399
4029
|
return {
|
|
4400
|
-
|
|
4401
|
-
|
|
4030
|
+
id: FfiConverterUInt16.read(from),
|
|
4031
|
+
pkb: FfiConverterUint8Array.read(from)
|
|
4402
4032
|
};
|
|
4403
4033
|
}
|
|
4404
4034
|
write(value, into) {
|
|
4405
|
-
|
|
4406
|
-
FfiConverterUint8Array.write(value.
|
|
4035
|
+
FfiConverterUInt16.write(value.id, into);
|
|
4036
|
+
FfiConverterUint8Array.write(value.pkb, into);
|
|
4407
4037
|
}
|
|
4408
4038
|
allocationSize(value) {
|
|
4409
|
-
return
|
|
4039
|
+
return FfiConverterUInt16.allocationSize(value.id) + FfiConverterUint8Array.allocationSize(value.pkb);
|
|
4410
4040
|
}
|
|
4411
4041
|
}
|
|
4412
4042
|
return new FFIConverter;
|
|
4413
4043
|
})();
|
|
4414
|
-
var
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4044
|
+
var DeviceStatus;
|
|
4045
|
+
((DeviceStatus2) => {
|
|
4046
|
+
DeviceStatus2[DeviceStatus2["Valid"] = 1] = "Valid";
|
|
4047
|
+
DeviceStatus2[DeviceStatus2["Expired"] = 2] = "Expired";
|
|
4048
|
+
DeviceStatus2[DeviceStatus2["Revoked"] = 3] = "Revoked";
|
|
4049
|
+
})(DeviceStatus ||= {});
|
|
4050
|
+
var FfiConverterTypeDeviceStatus = (() => {
|
|
4051
|
+
const ordinalConverter = FfiConverterInt32;
|
|
4052
|
+
|
|
4053
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
4054
|
+
read(from) {
|
|
4055
|
+
switch (ordinalConverter.read(from)) {
|
|
4056
|
+
case 1:
|
|
4057
|
+
return 1 /* Valid */;
|
|
4058
|
+
case 2:
|
|
4059
|
+
return 2 /* Expired */;
|
|
4060
|
+
case 3:
|
|
4061
|
+
return 3 /* Revoked */;
|
|
4062
|
+
default:
|
|
4063
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
4064
|
+
}
|
|
4065
|
+
}
|
|
4066
|
+
write(value, into) {
|
|
4067
|
+
switch (value) {
|
|
4068
|
+
case 1 /* Valid */:
|
|
4069
|
+
return ordinalConverter.write(1, into);
|
|
4070
|
+
case 2 /* Expired */:
|
|
4071
|
+
return ordinalConverter.write(2, into);
|
|
4072
|
+
case 3 /* Revoked */:
|
|
4073
|
+
return ordinalConverter.write(3, into);
|
|
4074
|
+
}
|
|
4075
|
+
}
|
|
4076
|
+
allocationSize(value) {
|
|
4077
|
+
return ordinalConverter.allocationSize(0);
|
|
4078
|
+
}
|
|
4079
|
+
}
|
|
4080
|
+
return new FFIConverter;
|
|
4424
4081
|
})();
|
|
4425
|
-
var
|
|
4082
|
+
var CredentialType;
|
|
4083
|
+
((CredentialType2) => {
|
|
4084
|
+
CredentialType2[CredentialType2["Basic"] = 1] = "Basic";
|
|
4085
|
+
CredentialType2[CredentialType2["X509"] = 2] = "X509";
|
|
4086
|
+
})(CredentialType ||= {});
|
|
4087
|
+
var FfiConverterTypeCredentialType = (() => {
|
|
4088
|
+
const ordinalConverter = FfiConverterInt32;
|
|
4426
4089
|
|
|
4427
4090
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
4428
4091
|
read(from) {
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4092
|
+
switch (ordinalConverter.read(from)) {
|
|
4093
|
+
case 1:
|
|
4094
|
+
return 1 /* Basic */;
|
|
4095
|
+
case 2:
|
|
4096
|
+
return 2 /* X509 */;
|
|
4097
|
+
default:
|
|
4098
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
4099
|
+
}
|
|
4433
4100
|
}
|
|
4434
4101
|
write(value, into) {
|
|
4435
|
-
|
|
4436
|
-
|
|
4102
|
+
switch (value) {
|
|
4103
|
+
case 1 /* Basic */:
|
|
4104
|
+
return ordinalConverter.write(1, into);
|
|
4105
|
+
case 2 /* X509 */:
|
|
4106
|
+
return ordinalConverter.write(2, into);
|
|
4107
|
+
}
|
|
4437
4108
|
}
|
|
4438
4109
|
allocationSize(value) {
|
|
4439
|
-
return
|
|
4110
|
+
return ordinalConverter.allocationSize(0);
|
|
4440
4111
|
}
|
|
4441
4112
|
}
|
|
4442
4113
|
return new FFIConverter;
|
|
4443
4114
|
})();
|
|
4444
|
-
var
|
|
4115
|
+
var FfiConverterTypeTimestamp = FfiConverterTimestamp;
|
|
4116
|
+
var X509Identity = (() => {
|
|
4445
4117
|
const defaults = () => ({});
|
|
4446
4118
|
const create = (() => {
|
|
4447
4119
|
return uniffiCreateRecord(defaults);
|
|
@@ -4452,28 +4124,36 @@ var HttpResponse = (() => {
|
|
|
4452
4124
|
defaults: () => Object.freeze(defaults())
|
|
4453
4125
|
});
|
|
4454
4126
|
})();
|
|
4455
|
-
var
|
|
4127
|
+
var FfiConverterTypeX509Identity = (() => {
|
|
4456
4128
|
|
|
4457
4129
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
4458
4130
|
read(from) {
|
|
4459
4131
|
return {
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4132
|
+
handle: FfiConverterString.read(from),
|
|
4133
|
+
displayName: FfiConverterString.read(from),
|
|
4134
|
+
domain: FfiConverterString.read(from),
|
|
4135
|
+
certificate: FfiConverterString.read(from),
|
|
4136
|
+
serialNumber: FfiConverterString.read(from),
|
|
4137
|
+
notBefore: FfiConverterTypeTimestamp.read(from),
|
|
4138
|
+
notAfter: FfiConverterTypeTimestamp.read(from)
|
|
4463
4139
|
};
|
|
4464
4140
|
}
|
|
4465
4141
|
write(value, into) {
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4142
|
+
FfiConverterString.write(value.handle, into);
|
|
4143
|
+
FfiConverterString.write(value.displayName, into);
|
|
4144
|
+
FfiConverterString.write(value.domain, into);
|
|
4145
|
+
FfiConverterString.write(value.certificate, into);
|
|
4146
|
+
FfiConverterString.write(value.serialNumber, into);
|
|
4147
|
+
FfiConverterTypeTimestamp.write(value.notBefore, into);
|
|
4148
|
+
FfiConverterTypeTimestamp.write(value.notAfter, into);
|
|
4469
4149
|
}
|
|
4470
4150
|
allocationSize(value) {
|
|
4471
|
-
return
|
|
4151
|
+
return FfiConverterString.allocationSize(value.handle) + FfiConverterString.allocationSize(value.displayName) + FfiConverterString.allocationSize(value.domain) + FfiConverterString.allocationSize(value.certificate) + FfiConverterString.allocationSize(value.serialNumber) + FfiConverterTypeTimestamp.allocationSize(value.notBefore) + FfiConverterTypeTimestamp.allocationSize(value.notAfter);
|
|
4472
4152
|
}
|
|
4473
4153
|
}
|
|
4474
4154
|
return new FFIConverter;
|
|
4475
4155
|
})();
|
|
4476
|
-
var
|
|
4156
|
+
var WireIdentity = (() => {
|
|
4477
4157
|
const defaults = () => ({});
|
|
4478
4158
|
const create = (() => {
|
|
4479
4159
|
return uniffiCreateRecord(defaults);
|
|
@@ -4484,21 +4164,27 @@ var ProteusAutoPrekeyBundle = (() => {
|
|
|
4484
4164
|
defaults: () => Object.freeze(defaults())
|
|
4485
4165
|
});
|
|
4486
4166
|
})();
|
|
4487
|
-
var
|
|
4167
|
+
var FfiConverterTypeWireIdentity = (() => {
|
|
4488
4168
|
|
|
4489
4169
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
4490
4170
|
read(from) {
|
|
4491
4171
|
return {
|
|
4492
|
-
|
|
4493
|
-
|
|
4172
|
+
clientId: FfiConverterOptionalTypeClientId.read(from),
|
|
4173
|
+
status: FfiConverterTypeDeviceStatus.read(from),
|
|
4174
|
+
thumbprint: FfiConverterString.read(from),
|
|
4175
|
+
credentialType: FfiConverterTypeCredentialType.read(from),
|
|
4176
|
+
x509Identity: FfiConverterOptionalTypeX509Identity.read(from)
|
|
4494
4177
|
};
|
|
4495
4178
|
}
|
|
4496
4179
|
write(value, into) {
|
|
4497
|
-
|
|
4498
|
-
|
|
4180
|
+
FfiConverterOptionalTypeClientId.write(value.clientId, into);
|
|
4181
|
+
FfiConverterTypeDeviceStatus.write(value.status, into);
|
|
4182
|
+
FfiConverterString.write(value.thumbprint, into);
|
|
4183
|
+
FfiConverterTypeCredentialType.write(value.credentialType, into);
|
|
4184
|
+
FfiConverterOptionalTypeX509Identity.write(value.x509Identity, into);
|
|
4499
4185
|
}
|
|
4500
4186
|
allocationSize(value) {
|
|
4501
|
-
return
|
|
4187
|
+
return FfiConverterOptionalTypeClientId.allocationSize(value.clientId) + FfiConverterTypeDeviceStatus.allocationSize(value.status) + FfiConverterString.allocationSize(value.thumbprint) + FfiConverterTypeCredentialType.allocationSize(value.credentialType) + FfiConverterOptionalTypeX509Identity.allocationSize(value.x509Identity);
|
|
4502
4188
|
}
|
|
4503
4189
|
}
|
|
4504
4190
|
return new FFIConverter;
|
|
@@ -4603,6 +4289,139 @@ var FfiConverterTypeX509CredentialAcquisitionConfiguration = (() => {
|
|
|
4603
4289
|
}
|
|
4604
4290
|
return new FFIConverter;
|
|
4605
4291
|
})();
|
|
4292
|
+
var BufferedDecryptedMessage = (() => {
|
|
4293
|
+
class Text_ extends UniffiEnum {
|
|
4294
|
+
[uniffiTypeNameSymbol] = "BufferedDecryptedMessage";
|
|
4295
|
+
tag = "Text" /* Text */;
|
|
4296
|
+
inner;
|
|
4297
|
+
constructor(inner) {
|
|
4298
|
+
super("BufferedDecryptedMessage", "Text");
|
|
4299
|
+
this.inner = Object.freeze(inner);
|
|
4300
|
+
}
|
|
4301
|
+
static new(inner) {
|
|
4302
|
+
return new Text_(inner);
|
|
4303
|
+
}
|
|
4304
|
+
static instanceOf(obj) {
|
|
4305
|
+
return obj.tag === "Text" /* Text */;
|
|
4306
|
+
}
|
|
4307
|
+
}
|
|
4308
|
+
|
|
4309
|
+
class Commit_ extends UniffiEnum {
|
|
4310
|
+
[uniffiTypeNameSymbol] = "BufferedDecryptedMessage";
|
|
4311
|
+
tag = "Commit" /* Commit */;
|
|
4312
|
+
inner;
|
|
4313
|
+
constructor(inner) {
|
|
4314
|
+
super("BufferedDecryptedMessage", "Commit");
|
|
4315
|
+
this.inner = Object.freeze(inner);
|
|
4316
|
+
}
|
|
4317
|
+
static new(inner) {
|
|
4318
|
+
return new Commit_(inner);
|
|
4319
|
+
}
|
|
4320
|
+
static instanceOf(obj) {
|
|
4321
|
+
return obj.tag === "Commit" /* Commit */;
|
|
4322
|
+
}
|
|
4323
|
+
}
|
|
4324
|
+
|
|
4325
|
+
class Proposal_ extends UniffiEnum {
|
|
4326
|
+
[uniffiTypeNameSymbol] = "BufferedDecryptedMessage";
|
|
4327
|
+
tag = "Proposal" /* Proposal */;
|
|
4328
|
+
inner;
|
|
4329
|
+
constructor(inner) {
|
|
4330
|
+
super("BufferedDecryptedMessage", "Proposal");
|
|
4331
|
+
this.inner = Object.freeze(inner);
|
|
4332
|
+
}
|
|
4333
|
+
static new(inner) {
|
|
4334
|
+
return new Proposal_(inner);
|
|
4335
|
+
}
|
|
4336
|
+
static instanceOf(obj) {
|
|
4337
|
+
return obj.tag === "Proposal" /* Proposal */;
|
|
4338
|
+
}
|
|
4339
|
+
}
|
|
4340
|
+
function instanceOf(obj) {
|
|
4341
|
+
return obj[uniffiTypeNameSymbol] === "BufferedDecryptedMessage";
|
|
4342
|
+
}
|
|
4343
|
+
return Object.freeze({
|
|
4344
|
+
instanceOf,
|
|
4345
|
+
Text: Text_,
|
|
4346
|
+
Commit: Commit_,
|
|
4347
|
+
Proposal: Proposal_
|
|
4348
|
+
});
|
|
4349
|
+
})();
|
|
4350
|
+
var FfiConverterTypeBufferedDecryptedMessage = (() => {
|
|
4351
|
+
const ordinalConverter = FfiConverterInt32;
|
|
4352
|
+
|
|
4353
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
4354
|
+
read(from) {
|
|
4355
|
+
switch (ordinalConverter.read(from)) {
|
|
4356
|
+
case 1:
|
|
4357
|
+
return new BufferedDecryptedMessage.Text({ plaintext: FfiConverterUint8Array.read(from), senderClientId: FfiConverterTypeClientId.read(from), identity: FfiConverterTypeWireIdentity.read(from) });
|
|
4358
|
+
case 2:
|
|
4359
|
+
return new BufferedDecryptedMessage.Commit({ isActive: FfiConverterBool.read(from), identity: FfiConverterTypeWireIdentity.read(from) });
|
|
4360
|
+
case 3:
|
|
4361
|
+
return new BufferedDecryptedMessage.Proposal({ delay: FfiConverterOptionalUInt64.read(from), identity: FfiConverterTypeWireIdentity.read(from) });
|
|
4362
|
+
default:
|
|
4363
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
4364
|
+
}
|
|
4365
|
+
}
|
|
4366
|
+
write(value, into) {
|
|
4367
|
+
switch (value.tag) {
|
|
4368
|
+
case "Text" /* Text */: {
|
|
4369
|
+
ordinalConverter.write(1, into);
|
|
4370
|
+
const inner = value.inner;
|
|
4371
|
+
FfiConverterUint8Array.write(inner.plaintext, into);
|
|
4372
|
+
FfiConverterTypeClientId.write(inner.senderClientId, into);
|
|
4373
|
+
FfiConverterTypeWireIdentity.write(inner.identity, into);
|
|
4374
|
+
return;
|
|
4375
|
+
}
|
|
4376
|
+
case "Commit" /* Commit */: {
|
|
4377
|
+
ordinalConverter.write(2, into);
|
|
4378
|
+
const inner = value.inner;
|
|
4379
|
+
FfiConverterBool.write(inner.isActive, into);
|
|
4380
|
+
FfiConverterTypeWireIdentity.write(inner.identity, into);
|
|
4381
|
+
return;
|
|
4382
|
+
}
|
|
4383
|
+
case "Proposal" /* Proposal */: {
|
|
4384
|
+
ordinalConverter.write(3, into);
|
|
4385
|
+
const inner = value.inner;
|
|
4386
|
+
FfiConverterOptionalUInt64.write(inner.delay, into);
|
|
4387
|
+
FfiConverterTypeWireIdentity.write(inner.identity, into);
|
|
4388
|
+
return;
|
|
4389
|
+
}
|
|
4390
|
+
default:
|
|
4391
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
4392
|
+
}
|
|
4393
|
+
}
|
|
4394
|
+
allocationSize(value) {
|
|
4395
|
+
switch (value.tag) {
|
|
4396
|
+
case "Text" /* Text */: {
|
|
4397
|
+
const inner = value.inner;
|
|
4398
|
+
let size = ordinalConverter.allocationSize(1);
|
|
4399
|
+
size += FfiConverterUint8Array.allocationSize(inner.plaintext);
|
|
4400
|
+
size += FfiConverterTypeClientId.allocationSize(inner.senderClientId);
|
|
4401
|
+
size += FfiConverterTypeWireIdentity.allocationSize(inner.identity);
|
|
4402
|
+
return size;
|
|
4403
|
+
}
|
|
4404
|
+
case "Commit" /* Commit */: {
|
|
4405
|
+
const inner = value.inner;
|
|
4406
|
+
let size = ordinalConverter.allocationSize(2);
|
|
4407
|
+
size += FfiConverterBool.allocationSize(inner.isActive);
|
|
4408
|
+
size += FfiConverterTypeWireIdentity.allocationSize(inner.identity);
|
|
4409
|
+
return size;
|
|
4410
|
+
}
|
|
4411
|
+
case "Proposal" /* Proposal */: {
|
|
4412
|
+
const inner = value.inner;
|
|
4413
|
+
let size = ordinalConverter.allocationSize(3);
|
|
4414
|
+
size += FfiConverterOptionalUInt64.allocationSize(inner.delay);
|
|
4415
|
+
size += FfiConverterTypeWireIdentity.allocationSize(inner.identity);
|
|
4416
|
+
return size;
|
|
4417
|
+
}
|
|
4418
|
+
default:
|
|
4419
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
4420
|
+
}
|
|
4421
|
+
}
|
|
4422
|
+
}
|
|
4423
|
+
return new FFIConverter;
|
|
4424
|
+
})();
|
|
4606
4425
|
var CoreCryptoLogLevel;
|
|
4607
4426
|
((CoreCryptoLogLevel2) => {
|
|
4608
4427
|
CoreCryptoLogLevel2[CoreCryptoLogLevel2["Off"] = 1] = "Off";
|
|
@@ -4656,6 +4475,141 @@ var FfiConverterTypeCoreCryptoLogLevel = (() => {
|
|
|
4656
4475
|
}
|
|
4657
4476
|
return new FFIConverter;
|
|
4658
4477
|
})();
|
|
4478
|
+
var DecryptedMessage = (() => {
|
|
4479
|
+
class Text_ extends UniffiEnum {
|
|
4480
|
+
[uniffiTypeNameSymbol] = "DecryptedMessage";
|
|
4481
|
+
tag = "Text" /* Text */;
|
|
4482
|
+
inner;
|
|
4483
|
+
constructor(inner) {
|
|
4484
|
+
super("DecryptedMessage", "Text");
|
|
4485
|
+
this.inner = Object.freeze(inner);
|
|
4486
|
+
}
|
|
4487
|
+
static new(inner) {
|
|
4488
|
+
return new Text_(inner);
|
|
4489
|
+
}
|
|
4490
|
+
static instanceOf(obj) {
|
|
4491
|
+
return obj.tag === "Text" /* Text */;
|
|
4492
|
+
}
|
|
4493
|
+
}
|
|
4494
|
+
|
|
4495
|
+
class Commit_ extends UniffiEnum {
|
|
4496
|
+
[uniffiTypeNameSymbol] = "DecryptedMessage";
|
|
4497
|
+
tag = "Commit" /* Commit */;
|
|
4498
|
+
inner;
|
|
4499
|
+
constructor(inner) {
|
|
4500
|
+
super("DecryptedMessage", "Commit");
|
|
4501
|
+
this.inner = Object.freeze(inner);
|
|
4502
|
+
}
|
|
4503
|
+
static new(inner) {
|
|
4504
|
+
return new Commit_(inner);
|
|
4505
|
+
}
|
|
4506
|
+
static instanceOf(obj) {
|
|
4507
|
+
return obj.tag === "Commit" /* Commit */;
|
|
4508
|
+
}
|
|
4509
|
+
}
|
|
4510
|
+
|
|
4511
|
+
class Proposal_ extends UniffiEnum {
|
|
4512
|
+
[uniffiTypeNameSymbol] = "DecryptedMessage";
|
|
4513
|
+
tag = "Proposal" /* Proposal */;
|
|
4514
|
+
inner;
|
|
4515
|
+
constructor(inner) {
|
|
4516
|
+
super("DecryptedMessage", "Proposal");
|
|
4517
|
+
this.inner = Object.freeze(inner);
|
|
4518
|
+
}
|
|
4519
|
+
static new(inner) {
|
|
4520
|
+
return new Proposal_(inner);
|
|
4521
|
+
}
|
|
4522
|
+
static instanceOf(obj) {
|
|
4523
|
+
return obj.tag === "Proposal" /* Proposal */;
|
|
4524
|
+
}
|
|
4525
|
+
}
|
|
4526
|
+
function instanceOf(obj) {
|
|
4527
|
+
return obj[uniffiTypeNameSymbol] === "DecryptedMessage";
|
|
4528
|
+
}
|
|
4529
|
+
return Object.freeze({
|
|
4530
|
+
instanceOf,
|
|
4531
|
+
Text: Text_,
|
|
4532
|
+
Commit: Commit_,
|
|
4533
|
+
Proposal: Proposal_
|
|
4534
|
+
});
|
|
4535
|
+
})();
|
|
4536
|
+
var FfiConverterTypeDecryptedMessage = (() => {
|
|
4537
|
+
const ordinalConverter = FfiConverterInt32;
|
|
4538
|
+
|
|
4539
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
4540
|
+
read(from) {
|
|
4541
|
+
switch (ordinalConverter.read(from)) {
|
|
4542
|
+
case 1:
|
|
4543
|
+
return new DecryptedMessage.Text({ plaintext: FfiConverterUint8Array.read(from), senderClientId: FfiConverterTypeClientId.read(from), identity: FfiConverterTypeWireIdentity.read(from) });
|
|
4544
|
+
case 2:
|
|
4545
|
+
return new DecryptedMessage.Commit({ isActive: FfiConverterBool.read(from), bufferedMessages: FfiConverterOptionalSequenceTypeBufferedDecryptedMessage.read(from), identity: FfiConverterTypeWireIdentity.read(from) });
|
|
4546
|
+
case 3:
|
|
4547
|
+
return new DecryptedMessage.Proposal({ delay: FfiConverterOptionalUInt64.read(from), identity: FfiConverterTypeWireIdentity.read(from) });
|
|
4548
|
+
default:
|
|
4549
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
4550
|
+
}
|
|
4551
|
+
}
|
|
4552
|
+
write(value, into) {
|
|
4553
|
+
switch (value.tag) {
|
|
4554
|
+
case "Text" /* Text */: {
|
|
4555
|
+
ordinalConverter.write(1, into);
|
|
4556
|
+
const inner = value.inner;
|
|
4557
|
+
FfiConverterUint8Array.write(inner.plaintext, into);
|
|
4558
|
+
FfiConverterTypeClientId.write(inner.senderClientId, into);
|
|
4559
|
+
FfiConverterTypeWireIdentity.write(inner.identity, into);
|
|
4560
|
+
return;
|
|
4561
|
+
}
|
|
4562
|
+
case "Commit" /* Commit */: {
|
|
4563
|
+
ordinalConverter.write(2, into);
|
|
4564
|
+
const inner = value.inner;
|
|
4565
|
+
FfiConverterBool.write(inner.isActive, into);
|
|
4566
|
+
FfiConverterOptionalSequenceTypeBufferedDecryptedMessage.write(inner.bufferedMessages, into);
|
|
4567
|
+
FfiConverterTypeWireIdentity.write(inner.identity, into);
|
|
4568
|
+
return;
|
|
4569
|
+
}
|
|
4570
|
+
case "Proposal" /* Proposal */: {
|
|
4571
|
+
ordinalConverter.write(3, into);
|
|
4572
|
+
const inner = value.inner;
|
|
4573
|
+
FfiConverterOptionalUInt64.write(inner.delay, into);
|
|
4574
|
+
FfiConverterTypeWireIdentity.write(inner.identity, into);
|
|
4575
|
+
return;
|
|
4576
|
+
}
|
|
4577
|
+
default:
|
|
4578
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
4579
|
+
}
|
|
4580
|
+
}
|
|
4581
|
+
allocationSize(value) {
|
|
4582
|
+
switch (value.tag) {
|
|
4583
|
+
case "Text" /* Text */: {
|
|
4584
|
+
const inner = value.inner;
|
|
4585
|
+
let size = ordinalConverter.allocationSize(1);
|
|
4586
|
+
size += FfiConverterUint8Array.allocationSize(inner.plaintext);
|
|
4587
|
+
size += FfiConverterTypeClientId.allocationSize(inner.senderClientId);
|
|
4588
|
+
size += FfiConverterTypeWireIdentity.allocationSize(inner.identity);
|
|
4589
|
+
return size;
|
|
4590
|
+
}
|
|
4591
|
+
case "Commit" /* Commit */: {
|
|
4592
|
+
const inner = value.inner;
|
|
4593
|
+
let size = ordinalConverter.allocationSize(2);
|
|
4594
|
+
size += FfiConverterBool.allocationSize(inner.isActive);
|
|
4595
|
+
size += FfiConverterOptionalSequenceTypeBufferedDecryptedMessage.allocationSize(inner.bufferedMessages);
|
|
4596
|
+
size += FfiConverterTypeWireIdentity.allocationSize(inner.identity);
|
|
4597
|
+
return size;
|
|
4598
|
+
}
|
|
4599
|
+
case "Proposal" /* Proposal */: {
|
|
4600
|
+
const inner = value.inner;
|
|
4601
|
+
let size = ordinalConverter.allocationSize(3);
|
|
4602
|
+
size += FfiConverterOptionalUInt64.allocationSize(inner.delay);
|
|
4603
|
+
size += FfiConverterTypeWireIdentity.allocationSize(inner.identity);
|
|
4604
|
+
return size;
|
|
4605
|
+
}
|
|
4606
|
+
default:
|
|
4607
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
4608
|
+
}
|
|
4609
|
+
}
|
|
4610
|
+
}
|
|
4611
|
+
return new FFIConverter;
|
|
4612
|
+
})();
|
|
4659
4613
|
var E2eiConversationState;
|
|
4660
4614
|
((E2eiConversationState2) => {
|
|
4661
4615
|
E2eiConversationState2[E2eiConversationState2["Verified"] = 1] = "Verified";
|
|
@@ -4880,9 +4834,7 @@ var FfiConverterTypeMlsTransportError = (() => {
|
|
|
4880
4834
|
read(from) {
|
|
4881
4835
|
switch (ordinalConverter.read(from)) {
|
|
4882
4836
|
case 1:
|
|
4883
|
-
return new MlsTransportError.MessageRejected({
|
|
4884
|
-
reason: FfiConverterString.read(from)
|
|
4885
|
-
});
|
|
4837
|
+
return new MlsTransportError.MessageRejected({ reason: FfiConverterString.read(from) });
|
|
4886
4838
|
default:
|
|
4887
4839
|
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
4888
4840
|
}
|
|
@@ -4994,9 +4946,7 @@ var FfiConverterTypePkiEnvironmentHooksError = (() => {
|
|
|
4994
4946
|
read(from) {
|
|
4995
4947
|
switch (ordinalConverter.read(from)) {
|
|
4996
4948
|
case 1:
|
|
4997
|
-
return new PkiEnvironmentHooksError.Error({
|
|
4998
|
-
reason: FfiConverterString.read(from)
|
|
4999
|
-
});
|
|
4949
|
+
return new PkiEnvironmentHooksError.Error({ reason: FfiConverterString.read(from) });
|
|
5000
4950
|
default:
|
|
5001
4951
|
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
5002
4952
|
}
|
|
@@ -8317,15 +8267,15 @@ var uniffiTypeX509CredentialAcquisitionObjectFactory = (() => {
|
|
|
8317
8267
|
};
|
|
8318
8268
|
})();
|
|
8319
8269
|
var FfiConverterTypeX509CredentialAcquisition = new FfiConverterObject(uniffiTypeX509CredentialAcquisitionObjectFactory);
|
|
8270
|
+
var FfiConverterOptionalTypeWelcome = new FfiConverterOptional(FfiConverterTypeWelcome);
|
|
8320
8271
|
var FfiConverterOptionalBytes = new FfiConverterOptional(FfiConverterUint8Array);
|
|
8321
|
-
var
|
|
8272
|
+
var FfiConverterSequenceTypeHttpHeader = new FfiConverterArray(FfiConverterTypeHttpHeader);
|
|
8322
8273
|
var FfiConverterOptionalTypeClientId = new FfiConverterOptional(FfiConverterTypeClientId);
|
|
8323
8274
|
var FfiConverterOptionalTypeX509Identity = new FfiConverterOptional(FfiConverterTypeX509Identity);
|
|
8324
|
-
var
|
|
8275
|
+
var FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString);
|
|
8276
|
+
var FfiConverterOptionalUInt64 = new FfiConverterOptional(FfiConverterUInt64);
|
|
8325
8277
|
var FfiConverterSequenceTypeBufferedDecryptedMessage = new FfiConverterArray(FfiConverterTypeBufferedDecryptedMessage);
|
|
8326
8278
|
var FfiConverterOptionalSequenceTypeBufferedDecryptedMessage = new FfiConverterOptional(FfiConverterSequenceTypeBufferedDecryptedMessage);
|
|
8327
|
-
var FfiConverterSequenceTypeHttpHeader = new FfiConverterArray(FfiConverterTypeHttpHeader);
|
|
8328
|
-
var FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString);
|
|
8329
8279
|
var FfiConverterSequenceTypeKeyPackage = new FfiConverterArray(FfiConverterTypeKeyPackage);
|
|
8330
8280
|
var FfiConverterOptionalTypeExternalSender = new FfiConverterOptional(FfiConverterTypeExternalSender);
|
|
8331
8281
|
var FfiConverterOptionalDuration = new FfiConverterOptional(FfiConverterDuration);
|
|
@@ -8428,7 +8378,7 @@ function uniffiEnsureInitialized() {
|
|
|
8428
8378
|
if (core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_checksum_method_corecryptocontext_create_conversation() !== 63673) {
|
|
8429
8379
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_corecryptocontext_create_conversation");
|
|
8430
8380
|
}
|
|
8431
|
-
if (core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_checksum_method_corecryptocontext_decrypt_message() !==
|
|
8381
|
+
if (core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_checksum_method_corecryptocontext_decrypt_message() !== 8493) {
|
|
8432
8382
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_core_crypto_ffi_checksum_method_corecryptocontext_decrypt_message");
|
|
8433
8383
|
}
|
|
8434
8384
|
if (core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_checksum_method_corecryptocontext_disable_history_sharing() !== 27456) {
|
|
@@ -8984,6 +8934,7 @@ export {
|
|
|
8984
8934
|
DeviceStatus,
|
|
8985
8935
|
DeviceId,
|
|
8986
8936
|
DeserializedClientId,
|
|
8937
|
+
DecryptedMessage,
|
|
8987
8938
|
DatabaseKey,
|
|
8988
8939
|
Database,
|
|
8989
8940
|
CredentialType,
|