@xmtp/wasm-bindings 1.1.3 → 1.1.7
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/bindings_wasm.d.ts +176 -136
- package/dist/bindings_wasm.js +367 -146
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +141 -126
- package/dist/version.json +5 -0
- package/package.json +8 -5
package/dist/bindings_wasm.js
CHANGED
|
@@ -102,6 +102,11 @@ function isLikeNone(x) {
|
|
|
102
102
|
return x === undefined || x === null;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
106
|
+
ptr = ptr >>> 0;
|
|
107
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
108
|
+
}
|
|
109
|
+
|
|
105
110
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
106
111
|
ptr = ptr >>> 0;
|
|
107
112
|
const mem = getDataViewMemory0();
|
|
@@ -113,11 +118,6 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
113
118
|
return result;
|
|
114
119
|
}
|
|
115
120
|
|
|
116
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
117
|
-
ptr = ptr >>> 0;
|
|
118
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
121
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
122
122
|
? { register: () => {}, unregister: () => {} }
|
|
123
123
|
: new FinalizationRegistry(state => {
|
|
@@ -214,6 +214,12 @@ function debugString(val) {
|
|
|
214
214
|
return className;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
+
function takeFromExternrefTable0(idx) {
|
|
218
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
219
|
+
wasm.__externref_table_dealloc(idx);
|
|
220
|
+
return value;
|
|
221
|
+
}
|
|
222
|
+
|
|
217
223
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
218
224
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
219
225
|
for (let i = 0; i < array.length; i++) {
|
|
@@ -229,64 +235,47 @@ function _assertClass(instance, klass) {
|
|
|
229
235
|
throw new Error(`expected instance of ${klass.name}`);
|
|
230
236
|
}
|
|
231
237
|
}
|
|
232
|
-
|
|
233
|
-
function takeFromExternrefTable0(idx) {
|
|
234
|
-
const value = wasm.__wbindgen_export_4.get(idx);
|
|
235
|
-
wasm.__externref_table_dealloc(idx);
|
|
236
|
-
return value;
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
240
|
-
* @returns {Uint8Array}
|
|
241
|
-
*/
|
|
242
|
-
export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
|
|
243
|
-
_assertClass(multiRemoteAttachment, MultiRemoteAttachment);
|
|
244
|
-
var ptr0 = multiRemoteAttachment.__destroy_into_raw();
|
|
245
|
-
const ret = wasm.encodeMultiRemoteAttachment(ptr0);
|
|
246
|
-
if (ret[2]) {
|
|
247
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
248
|
-
}
|
|
249
|
-
return takeFromExternrefTable0(ret[0]);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
238
|
/**
|
|
253
|
-
* @param {
|
|
254
|
-
* @
|
|
239
|
+
* @param {string} host
|
|
240
|
+
* @param {Identifier} accountIdentifier
|
|
241
|
+
* @returns {Promise<string | undefined>}
|
|
255
242
|
*/
|
|
256
|
-
export function
|
|
257
|
-
const
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
return MultiRemoteAttachment.__wrap(ret[0]);
|
|
243
|
+
export function getInboxIdForIdentifier(host, accountIdentifier) {
|
|
244
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
245
|
+
const len0 = WASM_VECTOR_LEN;
|
|
246
|
+
const ret = wasm.getInboxIdForIdentifier(ptr0, len0, accountIdentifier);
|
|
247
|
+
return ret;
|
|
262
248
|
}
|
|
263
249
|
|
|
264
250
|
/**
|
|
265
|
-
* @param {
|
|
266
|
-
* @returns {
|
|
251
|
+
* @param {Identifier} accountIdentifier
|
|
252
|
+
* @returns {string}
|
|
267
253
|
*/
|
|
268
|
-
export function
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
254
|
+
export function generateInboxId(accountIdentifier) {
|
|
255
|
+
let deferred2_0;
|
|
256
|
+
let deferred2_1;
|
|
257
|
+
try {
|
|
258
|
+
const ret = wasm.generateInboxId(accountIdentifier);
|
|
259
|
+
var ptr1 = ret[0];
|
|
260
|
+
var len1 = ret[1];
|
|
261
|
+
if (ret[3]) {
|
|
262
|
+
ptr1 = 0; len1 = 0;
|
|
263
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
264
|
+
}
|
|
265
|
+
deferred2_0 = ptr1;
|
|
266
|
+
deferred2_1 = len1;
|
|
267
|
+
return getStringFromWasm0(ptr1, len1);
|
|
268
|
+
} finally {
|
|
269
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
274
270
|
}
|
|
275
|
-
return takeFromExternrefTable0(ret[0]);
|
|
276
271
|
}
|
|
277
272
|
|
|
278
|
-
|
|
279
|
-
*
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
const ret = wasm.decodeReaction(bytes);
|
|
284
|
-
if (ret[2]) {
|
|
285
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
286
|
-
}
|
|
287
|
-
return Reaction.__wrap(ret[0]);
|
|
273
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
274
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
275
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
276
|
+
WASM_VECTOR_LEN = arg.length;
|
|
277
|
+
return ptr;
|
|
288
278
|
}
|
|
289
|
-
|
|
290
279
|
/**
|
|
291
280
|
* @param {string} signature_text
|
|
292
281
|
* @param {Uint8Array} signature_bytes
|
|
@@ -329,62 +318,81 @@ export function createClient(host, inbox_id, account_identifier, db_path, encryp
|
|
|
329
318
|
return ret;
|
|
330
319
|
}
|
|
331
320
|
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
321
|
+
/**
|
|
322
|
+
* @param {Reaction} reaction
|
|
323
|
+
* @returns {Uint8Array}
|
|
324
|
+
*/
|
|
325
|
+
export function encodeReaction(reaction) {
|
|
326
|
+
_assertClass(reaction, Reaction);
|
|
327
|
+
var ptr0 = reaction.__destroy_into_raw();
|
|
328
|
+
const ret = wasm.encodeReaction(ptr0);
|
|
329
|
+
if (ret[2]) {
|
|
330
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
331
|
+
}
|
|
332
|
+
return takeFromExternrefTable0(ret[0]);
|
|
337
333
|
}
|
|
334
|
+
|
|
338
335
|
/**
|
|
339
|
-
* @param {
|
|
340
|
-
* @
|
|
341
|
-
* @returns {Promise<string | undefined>}
|
|
336
|
+
* @param {Uint8Array} bytes
|
|
337
|
+
* @returns {Reaction}
|
|
342
338
|
*/
|
|
343
|
-
export function
|
|
344
|
-
const
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
339
|
+
export function decodeReaction(bytes) {
|
|
340
|
+
const ret = wasm.decodeReaction(bytes);
|
|
341
|
+
if (ret[2]) {
|
|
342
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
343
|
+
}
|
|
344
|
+
return Reaction.__wrap(ret[0]);
|
|
348
345
|
}
|
|
349
346
|
|
|
350
347
|
/**
|
|
351
|
-
* @param {
|
|
352
|
-
* @returns {
|
|
348
|
+
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
349
|
+
* @returns {Uint8Array}
|
|
353
350
|
*/
|
|
354
|
-
export function
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
var len1 = ret[1];
|
|
361
|
-
if (ret[3]) {
|
|
362
|
-
ptr1 = 0; len1 = 0;
|
|
363
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
364
|
-
}
|
|
365
|
-
deferred2_0 = ptr1;
|
|
366
|
-
deferred2_1 = len1;
|
|
367
|
-
return getStringFromWasm0(ptr1, len1);
|
|
368
|
-
} finally {
|
|
369
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
351
|
+
export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
|
|
352
|
+
_assertClass(multiRemoteAttachment, MultiRemoteAttachment);
|
|
353
|
+
var ptr0 = multiRemoteAttachment.__destroy_into_raw();
|
|
354
|
+
const ret = wasm.encodeMultiRemoteAttachment(ptr0);
|
|
355
|
+
if (ret[2]) {
|
|
356
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
370
357
|
}
|
|
358
|
+
return takeFromExternrefTable0(ret[0]);
|
|
371
359
|
}
|
|
372
360
|
|
|
373
|
-
|
|
374
|
-
|
|
361
|
+
/**
|
|
362
|
+
* @param {Uint8Array} bytes
|
|
363
|
+
* @returns {MultiRemoteAttachment}
|
|
364
|
+
*/
|
|
365
|
+
export function decodeMultiRemoteAttachment(bytes) {
|
|
366
|
+
const ret = wasm.decodeMultiRemoteAttachment(bytes);
|
|
367
|
+
if (ret[2]) {
|
|
368
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
369
|
+
}
|
|
370
|
+
return MultiRemoteAttachment.__wrap(ret[0]);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
function __wbg_adapter_50(arg0, arg1) {
|
|
374
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6040dd5f55152215(arg0, arg1);
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
-
function
|
|
378
|
-
wasm.
|
|
377
|
+
function __wbg_adapter_53(arg0, arg1) {
|
|
378
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9b134efb6b08a208(arg0, arg1);
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
function
|
|
382
|
-
|
|
381
|
+
function __wbg_adapter_56(arg0, arg1, arg2) {
|
|
382
|
+
wasm.closure3984_externref_shim(arg0, arg1, arg2);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
function __wbg_adapter_59(arg0, arg1) {
|
|
386
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f45197f24caef5a(arg0, arg1);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
function __wbg_adapter_640(arg0, arg1, arg2, arg3, arg4) {
|
|
390
|
+
const ret = wasm.closure4877_externref_shim(arg0, arg1, arg2, arg3, arg4);
|
|
383
391
|
return ret !== 0;
|
|
384
392
|
}
|
|
385
393
|
|
|
386
|
-
function
|
|
387
|
-
wasm.
|
|
394
|
+
function __wbg_adapter_741(arg0, arg1, arg2, arg3) {
|
|
395
|
+
wasm.closure4876_externref_shim(arg0, arg1, arg2, arg3);
|
|
388
396
|
}
|
|
389
397
|
|
|
390
398
|
/**
|
|
@@ -513,13 +521,14 @@ export const ReactionSchema = Object.freeze({
|
|
|
513
521
|
Custom: 3, "3": "Custom",
|
|
514
522
|
});
|
|
515
523
|
/**
|
|
516
|
-
* @enum {0 | 1 | 2 | 3}
|
|
524
|
+
* @enum {0 | 1 | 2 | 3 | 4}
|
|
517
525
|
*/
|
|
518
526
|
export const SignatureRequestType = Object.freeze({
|
|
519
527
|
AddWallet: 0, "0": "AddWallet",
|
|
520
528
|
CreateInbox: 1, "1": "CreateInbox",
|
|
521
529
|
RevokeWallet: 2, "2": "RevokeWallet",
|
|
522
530
|
RevokeInstallations: 3, "3": "RevokeInstallations",
|
|
531
|
+
ChangeRecoveryIdentifier: 4, "4": "ChangeRecoveryIdentifier",
|
|
523
532
|
});
|
|
524
533
|
/**
|
|
525
534
|
* @enum {0 | 1}
|
|
@@ -562,6 +571,27 @@ export class Client {
|
|
|
562
571
|
const ptr = this.__destroy_into_raw();
|
|
563
572
|
wasm.__wbg_client_free(ptr, 0);
|
|
564
573
|
}
|
|
574
|
+
/**
|
|
575
|
+
* @param {Consent[]} records
|
|
576
|
+
* @returns {Promise<void>}
|
|
577
|
+
*/
|
|
578
|
+
setConsentStates(records) {
|
|
579
|
+
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
580
|
+
const len0 = WASM_VECTOR_LEN;
|
|
581
|
+
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
582
|
+
return ret;
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* @param {ConsentEntityType} entity_type
|
|
586
|
+
* @param {string} entity
|
|
587
|
+
* @returns {Promise<ConsentState>}
|
|
588
|
+
*/
|
|
589
|
+
getConsentState(entity_type, entity) {
|
|
590
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
591
|
+
const len0 = WASM_VECTOR_LEN;
|
|
592
|
+
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
593
|
+
return ret;
|
|
594
|
+
}
|
|
565
595
|
/**
|
|
566
596
|
* @returns {string | undefined}
|
|
567
597
|
*/
|
|
@@ -610,6 +640,14 @@ export class Client {
|
|
|
610
640
|
const ret = wasm.client_revokeInstallationsSignatureText(this.__wbg_ptr, ptr0, len0);
|
|
611
641
|
return ret;
|
|
612
642
|
}
|
|
643
|
+
/**
|
|
644
|
+
* @param {Identifier} new_recovery_identifier
|
|
645
|
+
* @returns {Promise<string>}
|
|
646
|
+
*/
|
|
647
|
+
changeRecoveryIdentifierSignatureText(new_recovery_identifier) {
|
|
648
|
+
const ret = wasm.client_changeRecoveryIdentifierSignatureText(this.__wbg_ptr, new_recovery_identifier);
|
|
649
|
+
return ret;
|
|
650
|
+
}
|
|
613
651
|
/**
|
|
614
652
|
* @param {SignatureRequestType} signature_type
|
|
615
653
|
* @param {Uint8Array} signature_bytes
|
|
@@ -807,24 +845,18 @@ export class Client {
|
|
|
807
845
|
return ret;
|
|
808
846
|
}
|
|
809
847
|
/**
|
|
810
|
-
*
|
|
811
|
-
*
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
return ret;
|
|
818
|
-
}
|
|
819
|
-
/**
|
|
820
|
-
* @param {ConsentEntityType} entity_type
|
|
821
|
-
* @param {string} entity
|
|
822
|
-
* @returns {Promise<ConsentState>}
|
|
848
|
+
*
|
|
849
|
+
* * Get key package statuses for a list of installation IDs.
|
|
850
|
+
* *
|
|
851
|
+
* * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
|
|
852
|
+
*
|
|
853
|
+
* @param {string[]} installation_ids
|
|
854
|
+
* @returns {Promise<any>}
|
|
823
855
|
*/
|
|
824
|
-
|
|
825
|
-
const ptr0 =
|
|
856
|
+
getKeyPackageStatusesForInstallationIds(installation_ids) {
|
|
857
|
+
const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
|
|
826
858
|
const len0 = WASM_VECTOR_LEN;
|
|
827
|
-
const ret = wasm.
|
|
859
|
+
const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
|
|
828
860
|
return ret;
|
|
829
861
|
}
|
|
830
862
|
}
|
|
@@ -1057,6 +1089,25 @@ export class Conversation {
|
|
|
1057
1089
|
const ptr = this.__destroy_into_raw();
|
|
1058
1090
|
wasm.__wbg_conversation_free(ptr, 0);
|
|
1059
1091
|
}
|
|
1092
|
+
/**
|
|
1093
|
+
* @returns {ConsentState}
|
|
1094
|
+
*/
|
|
1095
|
+
consentState() {
|
|
1096
|
+
const ret = wasm.conversation_consentState(this.__wbg_ptr);
|
|
1097
|
+
if (ret[2]) {
|
|
1098
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1099
|
+
}
|
|
1100
|
+
return ret[0];
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* @param {ConsentState} state
|
|
1104
|
+
*/
|
|
1105
|
+
updateConsentState(state) {
|
|
1106
|
+
const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
|
|
1107
|
+
if (ret[1]) {
|
|
1108
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1060
1111
|
/**
|
|
1061
1112
|
* @returns {string}
|
|
1062
1113
|
*/
|
|
@@ -1537,25 +1588,6 @@ export class Conversation {
|
|
|
1537
1588
|
}
|
|
1538
1589
|
return takeFromExternrefTable0(ret[0]);
|
|
1539
1590
|
}
|
|
1540
|
-
/**
|
|
1541
|
-
* @returns {ConsentState}
|
|
1542
|
-
*/
|
|
1543
|
-
consentState() {
|
|
1544
|
-
const ret = wasm.conversation_consentState(this.__wbg_ptr);
|
|
1545
|
-
if (ret[2]) {
|
|
1546
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1547
|
-
}
|
|
1548
|
-
return ret[0];
|
|
1549
|
-
}
|
|
1550
|
-
/**
|
|
1551
|
-
* @param {ConsentState} state
|
|
1552
|
-
*/
|
|
1553
|
-
updateConsentState(state) {
|
|
1554
|
-
const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
|
|
1555
|
-
if (ret[1]) {
|
|
1556
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
1557
|
-
}
|
|
1558
|
-
}
|
|
1559
1591
|
}
|
|
1560
1592
|
|
|
1561
1593
|
const ConversationListItemFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -2277,7 +2309,7 @@ export class GroupMember {
|
|
|
2277
2309
|
set inboxId(arg0) {
|
|
2278
2310
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2279
2311
|
const len0 = WASM_VECTOR_LEN;
|
|
2280
|
-
wasm.
|
|
2312
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
2281
2313
|
}
|
|
2282
2314
|
/**
|
|
2283
2315
|
* @returns {Identifier[]}
|
|
@@ -2850,6 +2882,116 @@ export class IntoUnderlyingSource {
|
|
|
2850
2882
|
}
|
|
2851
2883
|
}
|
|
2852
2884
|
|
|
2885
|
+
const KeyPackageStatusFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2886
|
+
? { register: () => {}, unregister: () => {} }
|
|
2887
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_keypackagestatus_free(ptr >>> 0, 1));
|
|
2888
|
+
|
|
2889
|
+
export class KeyPackageStatus {
|
|
2890
|
+
|
|
2891
|
+
__destroy_into_raw() {
|
|
2892
|
+
const ptr = this.__wbg_ptr;
|
|
2893
|
+
this.__wbg_ptr = 0;
|
|
2894
|
+
KeyPackageStatusFinalization.unregister(this);
|
|
2895
|
+
return ptr;
|
|
2896
|
+
}
|
|
2897
|
+
|
|
2898
|
+
free() {
|
|
2899
|
+
const ptr = this.__destroy_into_raw();
|
|
2900
|
+
wasm.__wbg_keypackagestatus_free(ptr, 0);
|
|
2901
|
+
}
|
|
2902
|
+
/**
|
|
2903
|
+
* @returns {Lifetime | undefined}
|
|
2904
|
+
*/
|
|
2905
|
+
get lifetime() {
|
|
2906
|
+
const ret = wasm.__wbg_get_keypackagestatus_lifetime(this.__wbg_ptr);
|
|
2907
|
+
return ret === 0 ? undefined : Lifetime.__wrap(ret);
|
|
2908
|
+
}
|
|
2909
|
+
/**
|
|
2910
|
+
* @param {Lifetime | null} [arg0]
|
|
2911
|
+
*/
|
|
2912
|
+
set lifetime(arg0) {
|
|
2913
|
+
let ptr0 = 0;
|
|
2914
|
+
if (!isLikeNone(arg0)) {
|
|
2915
|
+
_assertClass(arg0, Lifetime);
|
|
2916
|
+
ptr0 = arg0.__destroy_into_raw();
|
|
2917
|
+
}
|
|
2918
|
+
wasm.__wbg_set_keypackagestatus_lifetime(this.__wbg_ptr, ptr0);
|
|
2919
|
+
}
|
|
2920
|
+
/**
|
|
2921
|
+
* @returns {string | undefined}
|
|
2922
|
+
*/
|
|
2923
|
+
get validationError() {
|
|
2924
|
+
const ret = wasm.__wbg_get_keypackagestatus_validationError(this.__wbg_ptr);
|
|
2925
|
+
let v1;
|
|
2926
|
+
if (ret[0] !== 0) {
|
|
2927
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
2928
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2929
|
+
}
|
|
2930
|
+
return v1;
|
|
2931
|
+
}
|
|
2932
|
+
/**
|
|
2933
|
+
* @param {string | null} [arg0]
|
|
2934
|
+
*/
|
|
2935
|
+
set validationError(arg0) {
|
|
2936
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2937
|
+
var len0 = WASM_VECTOR_LEN;
|
|
2938
|
+
wasm.__wbg_set_keypackagestatus_validationError(this.__wbg_ptr, ptr0, len0);
|
|
2939
|
+
}
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2942
|
+
const LifetimeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2943
|
+
? { register: () => {}, unregister: () => {} }
|
|
2944
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_lifetime_free(ptr >>> 0, 1));
|
|
2945
|
+
|
|
2946
|
+
export class Lifetime {
|
|
2947
|
+
|
|
2948
|
+
static __wrap(ptr) {
|
|
2949
|
+
ptr = ptr >>> 0;
|
|
2950
|
+
const obj = Object.create(Lifetime.prototype);
|
|
2951
|
+
obj.__wbg_ptr = ptr;
|
|
2952
|
+
LifetimeFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2953
|
+
return obj;
|
|
2954
|
+
}
|
|
2955
|
+
|
|
2956
|
+
__destroy_into_raw() {
|
|
2957
|
+
const ptr = this.__wbg_ptr;
|
|
2958
|
+
this.__wbg_ptr = 0;
|
|
2959
|
+
LifetimeFinalization.unregister(this);
|
|
2960
|
+
return ptr;
|
|
2961
|
+
}
|
|
2962
|
+
|
|
2963
|
+
free() {
|
|
2964
|
+
const ptr = this.__destroy_into_raw();
|
|
2965
|
+
wasm.__wbg_lifetime_free(ptr, 0);
|
|
2966
|
+
}
|
|
2967
|
+
/**
|
|
2968
|
+
* @returns {bigint}
|
|
2969
|
+
*/
|
|
2970
|
+
get not_before() {
|
|
2971
|
+
const ret = wasm.__wbg_get_lifetime_not_before(this.__wbg_ptr);
|
|
2972
|
+
return BigInt.asUintN(64, ret);
|
|
2973
|
+
}
|
|
2974
|
+
/**
|
|
2975
|
+
* @param {bigint} arg0
|
|
2976
|
+
*/
|
|
2977
|
+
set not_before(arg0) {
|
|
2978
|
+
wasm.__wbg_set_lifetime_not_before(this.__wbg_ptr, arg0);
|
|
2979
|
+
}
|
|
2980
|
+
/**
|
|
2981
|
+
* @returns {bigint}
|
|
2982
|
+
*/
|
|
2983
|
+
get not_after() {
|
|
2984
|
+
const ret = wasm.__wbg_get_lifetime_not_after(this.__wbg_ptr);
|
|
2985
|
+
return BigInt.asUintN(64, ret);
|
|
2986
|
+
}
|
|
2987
|
+
/**
|
|
2988
|
+
* @param {bigint} arg0
|
|
2989
|
+
*/
|
|
2990
|
+
set not_after(arg0) {
|
|
2991
|
+
wasm.__wbg_set_lifetime_not_after(this.__wbg_ptr, arg0);
|
|
2992
|
+
}
|
|
2993
|
+
}
|
|
2994
|
+
|
|
2853
2995
|
const ListConversationsOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2854
2996
|
? { register: () => {}, unregister: () => {} }
|
|
2855
2997
|
: new FinalizationRegistry(ptr => wasm.__wbg_listconversationsoptions_free(ptr >>> 0, 1));
|
|
@@ -3527,6 +3669,13 @@ export class Opfs {
|
|
|
3527
3669
|
const ptr = this.__destroy_into_raw();
|
|
3528
3670
|
wasm.__wbg_opfs_free(ptr, 0);
|
|
3529
3671
|
}
|
|
3672
|
+
/**
|
|
3673
|
+
* @returns {Promise<void>}
|
|
3674
|
+
*/
|
|
3675
|
+
static init_sqlite_opfs() {
|
|
3676
|
+
const ret = wasm.opfs_init_sqlite_opfs();
|
|
3677
|
+
return ret;
|
|
3678
|
+
}
|
|
3530
3679
|
/**
|
|
3531
3680
|
* Check if the global OPFS object has been initialized
|
|
3532
3681
|
* @returns {boolean}
|
|
@@ -3857,7 +4006,7 @@ export class Reaction {
|
|
|
3857
4006
|
set reference(arg0) {
|
|
3858
4007
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3859
4008
|
const len0 = WASM_VECTOR_LEN;
|
|
3860
|
-
wasm.
|
|
4009
|
+
wasm.__wbg_set_inboxstate_inboxId(this.__wbg_ptr, ptr0, len0);
|
|
3861
4010
|
}
|
|
3862
4011
|
/**
|
|
3863
4012
|
* @returns {string}
|
|
@@ -4251,6 +4400,9 @@ function __wbg_get_imports() {
|
|
|
4251
4400
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
4252
4401
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
4253
4402
|
};
|
|
4403
|
+
imports.wbg.__wbg_abort_410ec47a64ac6117 = function(arg0, arg1) {
|
|
4404
|
+
arg0.abort(arg1);
|
|
4405
|
+
};
|
|
4254
4406
|
imports.wbg.__wbg_abort_775ef1d17fc65868 = function(arg0) {
|
|
4255
4407
|
arg0.abort();
|
|
4256
4408
|
};
|
|
@@ -4313,6 +4465,14 @@ function __wbg_get_imports() {
|
|
|
4313
4465
|
const ret = clearTimeout(arg0);
|
|
4314
4466
|
return ret;
|
|
4315
4467
|
};
|
|
4468
|
+
imports.wbg.__wbg_clearTimeout_86721db0036bea98 = function(arg0) {
|
|
4469
|
+
const ret = clearTimeout(arg0);
|
|
4470
|
+
return ret;
|
|
4471
|
+
};
|
|
4472
|
+
imports.wbg.__wbg_clearTimeout_96804de0ab838f26 = function(arg0) {
|
|
4473
|
+
const ret = clearTimeout(arg0);
|
|
4474
|
+
return ret;
|
|
4475
|
+
};
|
|
4316
4476
|
imports.wbg.__wbg_clear_1f96150ecf4061a6 = function(arg0) {
|
|
4317
4477
|
arg0.clear();
|
|
4318
4478
|
};
|
|
@@ -4332,6 +4492,10 @@ function __wbg_get_imports() {
|
|
|
4332
4492
|
imports.wbg.__wbg_close_a17af48266bd9942 = function(arg0) {
|
|
4333
4493
|
arg0.close();
|
|
4334
4494
|
};
|
|
4495
|
+
imports.wbg.__wbg_code_cfd8f6868bdaed9b = function(arg0) {
|
|
4496
|
+
const ret = arg0.code;
|
|
4497
|
+
return ret;
|
|
4498
|
+
};
|
|
4335
4499
|
imports.wbg.__wbg_consent_unwrap = function(arg0) {
|
|
4336
4500
|
const ret = Consent.__unwrap(arg0);
|
|
4337
4501
|
return ret;
|
|
@@ -4409,7 +4573,7 @@ function __wbg_get_imports() {
|
|
|
4409
4573
|
const a = state0.a;
|
|
4410
4574
|
state0.a = 0;
|
|
4411
4575
|
try {
|
|
4412
|
-
return
|
|
4576
|
+
return __wbg_adapter_640(a, state0.b, arg0, arg1, arg2);
|
|
4413
4577
|
} finally {
|
|
4414
4578
|
state0.a = a;
|
|
4415
4579
|
}
|
|
@@ -4420,14 +4584,14 @@ function __wbg_get_imports() {
|
|
|
4420
4584
|
state0.a = state0.b = 0;
|
|
4421
4585
|
}
|
|
4422
4586
|
};
|
|
4423
|
-
imports.wbg.__wbg_fetch_4465c2b10f21a927 = function(arg0) {
|
|
4424
|
-
const ret = fetch(arg0);
|
|
4425
|
-
return ret;
|
|
4426
|
-
};
|
|
4427
4587
|
imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
|
|
4428
4588
|
const ret = arg0.fetch(arg1);
|
|
4429
4589
|
return ret;
|
|
4430
4590
|
};
|
|
4591
|
+
imports.wbg.__wbg_fetch_d36a73832f0a45e8 = function(arg0) {
|
|
4592
|
+
const ret = fetch(arg0);
|
|
4593
|
+
return ret;
|
|
4594
|
+
};
|
|
4431
4595
|
imports.wbg.__wbg_fill_3311db9cdf18c6c4 = function(arg0, arg1, arg2, arg3) {
|
|
4432
4596
|
const ret = arg0.fill(arg1, arg2 >>> 0, arg3 >>> 0);
|
|
4433
4597
|
return ret;
|
|
@@ -4439,7 +4603,7 @@ function __wbg_get_imports() {
|
|
|
4439
4603
|
const a = state0.a;
|
|
4440
4604
|
state0.a = 0;
|
|
4441
4605
|
try {
|
|
4442
|
-
return
|
|
4606
|
+
return __wbg_adapter_640(a, state0.b, arg0, arg1, arg2);
|
|
4443
4607
|
} finally {
|
|
4444
4608
|
state0.a = a;
|
|
4445
4609
|
}
|
|
@@ -4493,6 +4657,9 @@ function __wbg_get_imports() {
|
|
|
4493
4657
|
const ret = arg0.getMonth();
|
|
4494
4658
|
return ret;
|
|
4495
4659
|
};
|
|
4660
|
+
imports.wbg.__wbg_getRandomValues_21a0191e74d0e1d3 = function() { return handleError(function (arg0, arg1) {
|
|
4661
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
4662
|
+
}, arguments) };
|
|
4496
4663
|
imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
|
|
4497
4664
|
arg0.getRandomValues(arg1);
|
|
4498
4665
|
}, arguments) };
|
|
@@ -4596,6 +4763,26 @@ function __wbg_get_imports() {
|
|
|
4596
4763
|
const ret = result;
|
|
4597
4764
|
return ret;
|
|
4598
4765
|
};
|
|
4766
|
+
imports.wbg.__wbg_instanceof_DomException_ed1ccb7aaf39034c = function(arg0) {
|
|
4767
|
+
let result;
|
|
4768
|
+
try {
|
|
4769
|
+
result = arg0 instanceof DOMException;
|
|
4770
|
+
} catch (_) {
|
|
4771
|
+
result = false;
|
|
4772
|
+
}
|
|
4773
|
+
const ret = result;
|
|
4774
|
+
return ret;
|
|
4775
|
+
};
|
|
4776
|
+
imports.wbg.__wbg_instanceof_Performance_0ac1286c87171f57 = function(arg0) {
|
|
4777
|
+
let result;
|
|
4778
|
+
try {
|
|
4779
|
+
result = arg0 instanceof Performance;
|
|
4780
|
+
} catch (_) {
|
|
4781
|
+
result = false;
|
|
4782
|
+
}
|
|
4783
|
+
const ret = result;
|
|
4784
|
+
return ret;
|
|
4785
|
+
};
|
|
4599
4786
|
imports.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function(arg0) {
|
|
4600
4787
|
let result;
|
|
4601
4788
|
try {
|
|
@@ -4692,6 +4879,13 @@ function __wbg_get_imports() {
|
|
|
4692
4879
|
imports.wbg.__wbg_measure_7728846525e2cced = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4693
4880
|
arg0.measure(getStringFromWasm0(arg1, arg2), arg3);
|
|
4694
4881
|
}, arguments) };
|
|
4882
|
+
imports.wbg.__wbg_message_5c5d919204d42400 = function(arg0, arg1) {
|
|
4883
|
+
const ret = arg1.message;
|
|
4884
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4885
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4886
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
4887
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
4888
|
+
};
|
|
4695
4889
|
imports.wbg.__wbg_message_new = function(arg0) {
|
|
4696
4890
|
const ret = Message.__wrap(arg0);
|
|
4697
4891
|
return ret;
|
|
@@ -4708,6 +4902,13 @@ function __wbg_get_imports() {
|
|
|
4708
4902
|
const ret = arg0.msCrypto;
|
|
4709
4903
|
return ret;
|
|
4710
4904
|
};
|
|
4905
|
+
imports.wbg.__wbg_name_f2d27098bfd843e7 = function(arg0, arg1) {
|
|
4906
|
+
const ret = arg1.name;
|
|
4907
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4908
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4909
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
4910
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
4911
|
+
};
|
|
4711
4912
|
imports.wbg.__wbg_navigator_0a9bf1120e24fec2 = function(arg0) {
|
|
4712
4913
|
const ret = arg0.navigator;
|
|
4713
4914
|
return ret;
|
|
@@ -4727,7 +4928,7 @@ function __wbg_get_imports() {
|
|
|
4727
4928
|
const a = state0.a;
|
|
4728
4929
|
state0.a = 0;
|
|
4729
4930
|
try {
|
|
4730
|
-
return
|
|
4931
|
+
return __wbg_adapter_741(a, state0.b, arg0, arg1);
|
|
4731
4932
|
} finally {
|
|
4732
4933
|
state0.a = a;
|
|
4733
4934
|
}
|
|
@@ -4834,19 +5035,19 @@ function __wbg_get_imports() {
|
|
|
4834
5035
|
const ret = arg0.now();
|
|
4835
5036
|
return ret;
|
|
4836
5037
|
};
|
|
4837
|
-
imports.wbg.
|
|
5038
|
+
imports.wbg.__wbg_onconsentupdate_ee0062bf1ab59903 = function(arg0, arg1) {
|
|
4838
5039
|
arg0.on_consent_update(arg1);
|
|
4839
5040
|
};
|
|
4840
|
-
imports.wbg.
|
|
5041
|
+
imports.wbg.__wbg_onconversation_ab707573172baa4f = function(arg0, arg1) {
|
|
4841
5042
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
4842
5043
|
};
|
|
4843
|
-
imports.wbg.
|
|
5044
|
+
imports.wbg.__wbg_onerror_3e9c056835275a95 = function(arg0, arg1) {
|
|
4844
5045
|
arg0.on_error(arg1);
|
|
4845
5046
|
};
|
|
4846
|
-
imports.wbg.
|
|
5047
|
+
imports.wbg.__wbg_onmessage_889b249e6e9cc3b3 = function(arg0, arg1) {
|
|
4847
5048
|
arg0.on_message(Message.__wrap(arg1));
|
|
4848
5049
|
};
|
|
4849
|
-
imports.wbg.
|
|
5050
|
+
imports.wbg.__wbg_onuserpreferenceupdate_c55dd1f9e44519f4 = function(arg0, arg1, arg2) {
|
|
4850
5051
|
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
4851
5052
|
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
4852
5053
|
arg0.on_user_preference_update(v0);
|
|
@@ -4938,10 +5139,18 @@ function __wbg_get_imports() {
|
|
|
4938
5139
|
const ret = setInterval(arg0, arg1);
|
|
4939
5140
|
return ret;
|
|
4940
5141
|
}, arguments) };
|
|
5142
|
+
imports.wbg.__wbg_setTimeout_2e707715f8cc9497 = function(arg0, arg1) {
|
|
5143
|
+
const ret = setTimeout(arg0, arg1);
|
|
5144
|
+
return ret;
|
|
5145
|
+
};
|
|
4941
5146
|
imports.wbg.__wbg_setTimeout_db2dbaeefb6f39c7 = function() { return handleError(function (arg0, arg1) {
|
|
4942
5147
|
const ret = setTimeout(arg0, arg1);
|
|
4943
5148
|
return ret;
|
|
4944
5149
|
}, arguments) };
|
|
5150
|
+
imports.wbg.__wbg_setTimeout_eefe7f4c234b0c6b = function() { return handleError(function (arg0, arg1) {
|
|
5151
|
+
const ret = setTimeout(arg0, arg1);
|
|
5152
|
+
return ret;
|
|
5153
|
+
}, arguments) };
|
|
4945
5154
|
imports.wbg.__wbg_setUint32_ad8826b8caeaf63d = function(arg0, arg1, arg2) {
|
|
4946
5155
|
arg0.setUint32(arg1 >>> 0, arg2 >>> 0);
|
|
4947
5156
|
};
|
|
@@ -5116,6 +5325,10 @@ function __wbg_get_imports() {
|
|
|
5116
5325
|
const ret = arg0;
|
|
5117
5326
|
return ret;
|
|
5118
5327
|
};
|
|
5328
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
5329
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
5330
|
+
return ret;
|
|
5331
|
+
};
|
|
5119
5332
|
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
5120
5333
|
const v = arg0;
|
|
5121
5334
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
@@ -5130,12 +5343,20 @@ function __wbg_get_imports() {
|
|
|
5130
5343
|
const ret = false;
|
|
5131
5344
|
return ret;
|
|
5132
5345
|
};
|
|
5133
|
-
imports.wbg.
|
|
5134
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5346
|
+
imports.wbg.__wbindgen_closure_wrapper15224 = function(arg0, arg1, arg2) {
|
|
5347
|
+
const ret = makeMutClosure(arg0, arg1, 3650, __wbg_adapter_50);
|
|
5348
|
+
return ret;
|
|
5349
|
+
};
|
|
5350
|
+
imports.wbg.__wbindgen_closure_wrapper15366 = function(arg0, arg1, arg2) {
|
|
5351
|
+
const ret = makeMutClosure(arg0, arg1, 3673, __wbg_adapter_53);
|
|
5352
|
+
return ret;
|
|
5353
|
+
};
|
|
5354
|
+
imports.wbg.__wbindgen_closure_wrapper18382 = function(arg0, arg1, arg2) {
|
|
5355
|
+
const ret = makeMutClosure(arg0, arg1, 3985, __wbg_adapter_56);
|
|
5135
5356
|
return ret;
|
|
5136
5357
|
};
|
|
5137
|
-
imports.wbg.
|
|
5138
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5358
|
+
imports.wbg.__wbindgen_closure_wrapper18501 = function(arg0, arg1, arg2) {
|
|
5359
|
+
const ret = makeMutClosure(arg0, arg1, 3999, __wbg_adapter_59);
|
|
5139
5360
|
return ret;
|
|
5140
5361
|
};
|
|
5141
5362
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|