@xmtp/wasm-bindings 0.0.11 → 0.0.13
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 +255 -207
- package/dist/bindings_wasm.js +492 -377
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +154 -142
- package/package.json +1 -1
package/dist/bindings_wasm.js
CHANGED
|
@@ -200,22 +200,57 @@ function debugString(val) {
|
|
|
200
200
|
return className;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
+
function takeFromExternrefTable0(idx) {
|
|
204
|
+
const value = wasm.__wbindgen_export_5.get(idx);
|
|
205
|
+
wasm.__externref_table_dealloc(idx);
|
|
206
|
+
return value;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
function _assertClass(instance, klass) {
|
|
210
|
+
if (!(instance instanceof klass)) {
|
|
211
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* @param {string} host
|
|
216
|
+
* @param {string} inbox_id
|
|
217
|
+
* @param {string} account_address
|
|
218
|
+
* @param {string | null} [db_path]
|
|
219
|
+
* @param {Uint8Array | null} [encryption_key]
|
|
220
|
+
* @param {string | null} [history_sync_url]
|
|
221
|
+
* @param {LogOptions | null} [log_options]
|
|
222
|
+
* @returns {Promise<Client>}
|
|
223
|
+
*/
|
|
224
|
+
export function createClient(host, inbox_id, account_address, db_path, encryption_key, history_sync_url, log_options) {
|
|
225
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
226
|
+
const len0 = WASM_VECTOR_LEN;
|
|
227
|
+
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
228
|
+
const len1 = WASM_VECTOR_LEN;
|
|
229
|
+
const ptr2 = passStringToWasm0(account_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
230
|
+
const len2 = WASM_VECTOR_LEN;
|
|
231
|
+
var ptr3 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
232
|
+
var len3 = WASM_VECTOR_LEN;
|
|
233
|
+
var ptr4 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
234
|
+
var len4 = WASM_VECTOR_LEN;
|
|
235
|
+
let ptr5 = 0;
|
|
236
|
+
if (!isLikeNone(log_options)) {
|
|
237
|
+
_assertClass(log_options, LogOptions);
|
|
238
|
+
ptr5 = log_options.__destroy_into_raw();
|
|
239
|
+
}
|
|
240
|
+
const ret = wasm.createClient(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr4, len4, ptr5);
|
|
241
|
+
return ret;
|
|
242
|
+
}
|
|
243
|
+
|
|
203
244
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
204
245
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
205
|
-
const mem = getDataViewMemory0();
|
|
206
246
|
for (let i = 0; i < array.length; i++) {
|
|
207
|
-
|
|
247
|
+
const add = addToExternrefTable0(array[i]);
|
|
248
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
208
249
|
}
|
|
209
250
|
WASM_VECTOR_LEN = array.length;
|
|
210
251
|
return ptr;
|
|
211
252
|
}
|
|
212
253
|
|
|
213
|
-
function takeFromExternrefTable0(idx) {
|
|
214
|
-
const value = wasm.__wbindgen_export_5.get(idx);
|
|
215
|
-
wasm.__externref_table_dealloc(idx);
|
|
216
|
-
return value;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
254
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
220
255
|
ptr = ptr >>> 0;
|
|
221
256
|
const mem = getDataViewMemory0();
|
|
@@ -226,12 +261,6 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
226
261
|
wasm.__externref_drop_slice(ptr, len);
|
|
227
262
|
return result;
|
|
228
263
|
}
|
|
229
|
-
|
|
230
|
-
function _assertClass(instance, klass) {
|
|
231
|
-
if (!(instance instanceof klass)) {
|
|
232
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
264
|
/**
|
|
236
265
|
* @param {string} host
|
|
237
266
|
* @param {string} account_address
|
|
@@ -285,42 +314,23 @@ export function verifySignedWithPublicKey(signature_text, signature_bytes, publi
|
|
|
285
314
|
}
|
|
286
315
|
}
|
|
287
316
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
* @param {string} account_address
|
|
292
|
-
* @param {string | undefined} [db_path]
|
|
293
|
-
* @param {Uint8Array | undefined} [encryption_key]
|
|
294
|
-
* @param {string | undefined} [history_sync_url]
|
|
295
|
-
* @param {LogOptions | undefined} [log_options]
|
|
296
|
-
* @returns {Promise<Client>}
|
|
297
|
-
*/
|
|
298
|
-
export function createClient(host, inbox_id, account_address, db_path, encryption_key, history_sync_url, log_options) {
|
|
299
|
-
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
300
|
-
const len0 = WASM_VECTOR_LEN;
|
|
301
|
-
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
302
|
-
const len1 = WASM_VECTOR_LEN;
|
|
303
|
-
const ptr2 = passStringToWasm0(account_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
304
|
-
const len2 = WASM_VECTOR_LEN;
|
|
305
|
-
var ptr3 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
306
|
-
var len3 = WASM_VECTOR_LEN;
|
|
307
|
-
var ptr4 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
308
|
-
var len4 = WASM_VECTOR_LEN;
|
|
309
|
-
let ptr5 = 0;
|
|
310
|
-
if (!isLikeNone(log_options)) {
|
|
311
|
-
_assertClass(log_options, LogOptions);
|
|
312
|
-
ptr5 = log_options.__destroy_into_raw();
|
|
313
|
-
}
|
|
314
|
-
const ret = wasm.createClient(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr4, len4, ptr5);
|
|
315
|
-
return ret;
|
|
317
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
318
|
+
ptr = ptr >>> 0;
|
|
319
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
316
320
|
}
|
|
317
321
|
|
|
318
|
-
function
|
|
319
|
-
|
|
322
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
323
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
324
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
325
|
+
WASM_VECTOR_LEN = arg.length;
|
|
326
|
+
return ptr;
|
|
327
|
+
}
|
|
328
|
+
function __wbg_adapter_52(arg0, arg1, arg2) {
|
|
329
|
+
wasm.closure2596_externref_shim(arg0, arg1, arg2);
|
|
320
330
|
}
|
|
321
331
|
|
|
322
|
-
function
|
|
323
|
-
wasm.
|
|
332
|
+
function __wbg_adapter_591(arg0, arg1, arg2, arg3) {
|
|
333
|
+
wasm.closure3688_externref_shim(arg0, arg1, arg2, arg3);
|
|
324
334
|
}
|
|
325
335
|
|
|
326
336
|
/**
|
|
@@ -374,7 +384,7 @@ export const GroupMessageKind = Object.freeze({
|
|
|
374
384
|
* @enum {0 | 1 | 2}
|
|
375
385
|
*/
|
|
376
386
|
export const GroupPermissionsOptions = Object.freeze({
|
|
377
|
-
|
|
387
|
+
Default: 0, "0": "Default",
|
|
378
388
|
AdminOnly: 1, "1": "AdminOnly",
|
|
379
389
|
CustomPolicy: 2, "2": "CustomPolicy",
|
|
380
390
|
});
|
|
@@ -467,7 +477,114 @@ export class Client {
|
|
|
467
477
|
wasm.__wbg_client_free(ptr, 0);
|
|
468
478
|
}
|
|
469
479
|
/**
|
|
470
|
-
* @
|
|
480
|
+
* @returns {string}
|
|
481
|
+
*/
|
|
482
|
+
get accountAddress() {
|
|
483
|
+
let deferred1_0;
|
|
484
|
+
let deferred1_1;
|
|
485
|
+
try {
|
|
486
|
+
const ret = wasm.client_accountAddress(this.__wbg_ptr);
|
|
487
|
+
deferred1_0 = ret[0];
|
|
488
|
+
deferred1_1 = ret[1];
|
|
489
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
490
|
+
} finally {
|
|
491
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* @returns {string}
|
|
496
|
+
*/
|
|
497
|
+
get inboxId() {
|
|
498
|
+
let deferred1_0;
|
|
499
|
+
let deferred1_1;
|
|
500
|
+
try {
|
|
501
|
+
const ret = wasm.client_inboxId(this.__wbg_ptr);
|
|
502
|
+
deferred1_0 = ret[0];
|
|
503
|
+
deferred1_1 = ret[1];
|
|
504
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
505
|
+
} finally {
|
|
506
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* @returns {boolean}
|
|
511
|
+
*/
|
|
512
|
+
get isRegistered() {
|
|
513
|
+
const ret = wasm.client_isRegistered(this.__wbg_ptr);
|
|
514
|
+
return ret !== 0;
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* @returns {string}
|
|
518
|
+
*/
|
|
519
|
+
get installationId() {
|
|
520
|
+
let deferred1_0;
|
|
521
|
+
let deferred1_1;
|
|
522
|
+
try {
|
|
523
|
+
const ret = wasm.client_installationId(this.__wbg_ptr);
|
|
524
|
+
deferred1_0 = ret[0];
|
|
525
|
+
deferred1_1 = ret[1];
|
|
526
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
527
|
+
} finally {
|
|
528
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* @returns {Uint8Array}
|
|
533
|
+
*/
|
|
534
|
+
get installationIdBytes() {
|
|
535
|
+
const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
|
|
536
|
+
return ret;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* @param {string[]} account_addresses
|
|
540
|
+
* @returns {Promise<any>}
|
|
541
|
+
*/
|
|
542
|
+
canMessage(account_addresses) {
|
|
543
|
+
const ptr0 = passArrayJsValueToWasm0(account_addresses, wasm.__wbindgen_malloc);
|
|
544
|
+
const len0 = WASM_VECTOR_LEN;
|
|
545
|
+
const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
|
|
546
|
+
return ret;
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* @returns {Promise<void>}
|
|
550
|
+
*/
|
|
551
|
+
registerIdentity() {
|
|
552
|
+
const ret = wasm.client_registerIdentity(this.__wbg_ptr);
|
|
553
|
+
return ret;
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* @returns {Promise<void>}
|
|
557
|
+
*/
|
|
558
|
+
sendHistorySyncRequest() {
|
|
559
|
+
const ret = wasm.client_sendHistorySyncRequest(this.__wbg_ptr);
|
|
560
|
+
return ret;
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* @returns {Promise<void>}
|
|
564
|
+
*/
|
|
565
|
+
sendConsentSyncRequest() {
|
|
566
|
+
const ret = wasm.client_sendConsentSyncRequest(this.__wbg_ptr);
|
|
567
|
+
return ret;
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* @param {string} address
|
|
571
|
+
* @returns {Promise<string | undefined>}
|
|
572
|
+
*/
|
|
573
|
+
findInboxIdByAddress(address) {
|
|
574
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
575
|
+
const len0 = WASM_VECTOR_LEN;
|
|
576
|
+
const ret = wasm.client_findInboxIdByAddress(this.__wbg_ptr, ptr0, len0);
|
|
577
|
+
return ret;
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* @returns {Conversations}
|
|
581
|
+
*/
|
|
582
|
+
conversations() {
|
|
583
|
+
const ret = wasm.client_conversations(this.__wbg_ptr);
|
|
584
|
+
return Conversations.__wrap(ret);
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* @param {Consent[]} records
|
|
471
588
|
* @returns {Promise<void>}
|
|
472
589
|
*/
|
|
473
590
|
setConsentStates(records) {
|
|
@@ -487,6 +604,30 @@ export class Client {
|
|
|
487
604
|
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
488
605
|
return ret;
|
|
489
606
|
}
|
|
607
|
+
/**
|
|
608
|
+
*
|
|
609
|
+
* * Get the client's inbox state.
|
|
610
|
+
* *
|
|
611
|
+
* * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
|
|
612
|
+
* * Otherwise, the state will be read from the local database.
|
|
613
|
+
*
|
|
614
|
+
* @param {boolean} refresh_from_network
|
|
615
|
+
* @returns {Promise<InboxState>}
|
|
616
|
+
*/
|
|
617
|
+
inboxState(refresh_from_network) {
|
|
618
|
+
const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
|
|
619
|
+
return ret;
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* @param {string} inbox_id
|
|
623
|
+
* @returns {Promise<InboxState>}
|
|
624
|
+
*/
|
|
625
|
+
getLatestInboxState(inbox_id) {
|
|
626
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
627
|
+
const len0 = WASM_VECTOR_LEN;
|
|
628
|
+
const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
|
|
629
|
+
return ret;
|
|
630
|
+
}
|
|
490
631
|
/**
|
|
491
632
|
* @returns {Promise<string | undefined>}
|
|
492
633
|
*/
|
|
@@ -522,7 +663,7 @@ export class Client {
|
|
|
522
663
|
return ret;
|
|
523
664
|
}
|
|
524
665
|
/**
|
|
525
|
-
* @param {
|
|
666
|
+
* @param {Uint8Array[]} installation_ids
|
|
526
667
|
* @returns {Promise<string>}
|
|
527
668
|
*/
|
|
528
669
|
revokeInstallationsSignatureText(installation_ids) {
|
|
@@ -544,7 +685,7 @@ export class Client {
|
|
|
544
685
|
* @param {SignatureRequestType} signature_type
|
|
545
686
|
* @param {Uint8Array} signature_bytes
|
|
546
687
|
* @param {bigint} chain_id
|
|
547
|
-
* @param {bigint |
|
|
688
|
+
* @param {bigint | null} [block_number]
|
|
548
689
|
* @returns {Promise<void>}
|
|
549
690
|
*/
|
|
550
691
|
addScwSignature(signature_type, signature_bytes, chain_id, block_number) {
|
|
@@ -583,137 +724,6 @@ export class Client {
|
|
|
583
724
|
throw takeFromExternrefTable0(ret[0]);
|
|
584
725
|
}
|
|
585
726
|
}
|
|
586
|
-
/**
|
|
587
|
-
*
|
|
588
|
-
* * Get the client's inbox state.
|
|
589
|
-
* *
|
|
590
|
-
* * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
|
|
591
|
-
* * Otherwise, the state will be read from the local database.
|
|
592
|
-
*
|
|
593
|
-
* @param {boolean} refresh_from_network
|
|
594
|
-
* @returns {Promise<InboxState>}
|
|
595
|
-
*/
|
|
596
|
-
inboxState(refresh_from_network) {
|
|
597
|
-
const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
|
|
598
|
-
return ret;
|
|
599
|
-
}
|
|
600
|
-
/**
|
|
601
|
-
* @param {string} inbox_id
|
|
602
|
-
* @returns {Promise<InboxState>}
|
|
603
|
-
*/
|
|
604
|
-
getLatestInboxState(inbox_id) {
|
|
605
|
-
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
606
|
-
const len0 = WASM_VECTOR_LEN;
|
|
607
|
-
const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
|
|
608
|
-
return ret;
|
|
609
|
-
}
|
|
610
|
-
/**
|
|
611
|
-
* @returns {string}
|
|
612
|
-
*/
|
|
613
|
-
get accountAddress() {
|
|
614
|
-
let deferred1_0;
|
|
615
|
-
let deferred1_1;
|
|
616
|
-
try {
|
|
617
|
-
const ret = wasm.client_accountAddress(this.__wbg_ptr);
|
|
618
|
-
deferred1_0 = ret[0];
|
|
619
|
-
deferred1_1 = ret[1];
|
|
620
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
621
|
-
} finally {
|
|
622
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
/**
|
|
626
|
-
* @returns {string}
|
|
627
|
-
*/
|
|
628
|
-
get inboxId() {
|
|
629
|
-
let deferred1_0;
|
|
630
|
-
let deferred1_1;
|
|
631
|
-
try {
|
|
632
|
-
const ret = wasm.client_inboxId(this.__wbg_ptr);
|
|
633
|
-
deferred1_0 = ret[0];
|
|
634
|
-
deferred1_1 = ret[1];
|
|
635
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
636
|
-
} finally {
|
|
637
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
/**
|
|
641
|
-
* @returns {boolean}
|
|
642
|
-
*/
|
|
643
|
-
get isRegistered() {
|
|
644
|
-
const ret = wasm.client_isRegistered(this.__wbg_ptr);
|
|
645
|
-
return ret !== 0;
|
|
646
|
-
}
|
|
647
|
-
/**
|
|
648
|
-
* @returns {string}
|
|
649
|
-
*/
|
|
650
|
-
get installationId() {
|
|
651
|
-
let deferred1_0;
|
|
652
|
-
let deferred1_1;
|
|
653
|
-
try {
|
|
654
|
-
const ret = wasm.client_installationId(this.__wbg_ptr);
|
|
655
|
-
deferred1_0 = ret[0];
|
|
656
|
-
deferred1_1 = ret[1];
|
|
657
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
658
|
-
} finally {
|
|
659
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
/**
|
|
663
|
-
* @returns {Uint8Array}
|
|
664
|
-
*/
|
|
665
|
-
get installationIdBytes() {
|
|
666
|
-
const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
|
|
667
|
-
return ret;
|
|
668
|
-
}
|
|
669
|
-
/**
|
|
670
|
-
* @param {(string)[]} account_addresses
|
|
671
|
-
* @returns {Promise<any>}
|
|
672
|
-
*/
|
|
673
|
-
canMessage(account_addresses) {
|
|
674
|
-
const ptr0 = passArrayJsValueToWasm0(account_addresses, wasm.__wbindgen_malloc);
|
|
675
|
-
const len0 = WASM_VECTOR_LEN;
|
|
676
|
-
const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
|
|
677
|
-
return ret;
|
|
678
|
-
}
|
|
679
|
-
/**
|
|
680
|
-
* @returns {Promise<void>}
|
|
681
|
-
*/
|
|
682
|
-
registerIdentity() {
|
|
683
|
-
const ret = wasm.client_registerIdentity(this.__wbg_ptr);
|
|
684
|
-
return ret;
|
|
685
|
-
}
|
|
686
|
-
/**
|
|
687
|
-
* @returns {Promise<void>}
|
|
688
|
-
*/
|
|
689
|
-
sendHistorySyncRequest() {
|
|
690
|
-
const ret = wasm.client_sendHistorySyncRequest(this.__wbg_ptr);
|
|
691
|
-
return ret;
|
|
692
|
-
}
|
|
693
|
-
/**
|
|
694
|
-
* @returns {Promise<void>}
|
|
695
|
-
*/
|
|
696
|
-
sendConsentSyncRequest() {
|
|
697
|
-
const ret = wasm.client_sendConsentSyncRequest(this.__wbg_ptr);
|
|
698
|
-
return ret;
|
|
699
|
-
}
|
|
700
|
-
/**
|
|
701
|
-
* @param {string} address
|
|
702
|
-
* @returns {Promise<string | undefined>}
|
|
703
|
-
*/
|
|
704
|
-
findInboxIdByAddress(address) {
|
|
705
|
-
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
706
|
-
const len0 = WASM_VECTOR_LEN;
|
|
707
|
-
const ret = wasm.client_findInboxIdByAddress(this.__wbg_ptr, ptr0, len0);
|
|
708
|
-
return ret;
|
|
709
|
-
}
|
|
710
|
-
/**
|
|
711
|
-
* @returns {Conversations}
|
|
712
|
-
*/
|
|
713
|
-
conversations() {
|
|
714
|
-
const ret = wasm.client_conversations(this.__wbg_ptr);
|
|
715
|
-
return Conversations.__wrap(ret);
|
|
716
|
-
}
|
|
717
727
|
}
|
|
718
728
|
|
|
719
729
|
const ConsentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -850,7 +860,7 @@ export class ContentTypeId {
|
|
|
850
860
|
set authorityId(arg0) {
|
|
851
861
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
852
862
|
const len0 = WASM_VECTOR_LEN;
|
|
853
|
-
wasm.
|
|
863
|
+
wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
|
|
854
864
|
}
|
|
855
865
|
/**
|
|
856
866
|
* @returns {string}
|
|
@@ -1029,8 +1039,8 @@ export class Conversation {
|
|
|
1029
1039
|
return ret;
|
|
1030
1040
|
}
|
|
1031
1041
|
/**
|
|
1032
|
-
* @param {ListMessagesOptions |
|
|
1033
|
-
* @returns {Promise<
|
|
1042
|
+
* @param {ListMessagesOptions | null} [opts]
|
|
1043
|
+
* @returns {Promise<Message[]>}
|
|
1034
1044
|
*/
|
|
1035
1045
|
findMessages(opts) {
|
|
1036
1046
|
let ptr0 = 0;
|
|
@@ -1049,7 +1059,7 @@ export class Conversation {
|
|
|
1049
1059
|
return ret;
|
|
1050
1060
|
}
|
|
1051
1061
|
/**
|
|
1052
|
-
* @returns {
|
|
1062
|
+
* @returns {string[]}
|
|
1053
1063
|
*/
|
|
1054
1064
|
adminList() {
|
|
1055
1065
|
const ret = wasm.conversation_adminList(this.__wbg_ptr);
|
|
@@ -1061,7 +1071,7 @@ export class Conversation {
|
|
|
1061
1071
|
return v1;
|
|
1062
1072
|
}
|
|
1063
1073
|
/**
|
|
1064
|
-
* @returns {
|
|
1074
|
+
* @returns {string[]}
|
|
1065
1075
|
*/
|
|
1066
1076
|
superAdminList() {
|
|
1067
1077
|
const ret = wasm.conversation_superAdminList(this.__wbg_ptr);
|
|
@@ -1099,7 +1109,7 @@ export class Conversation {
|
|
|
1099
1109
|
return ret[0] !== 0;
|
|
1100
1110
|
}
|
|
1101
1111
|
/**
|
|
1102
|
-
* @param {
|
|
1112
|
+
* @param {string[]} account_addresses
|
|
1103
1113
|
* @returns {Promise<void>}
|
|
1104
1114
|
*/
|
|
1105
1115
|
addMembers(account_addresses) {
|
|
@@ -1159,7 +1169,7 @@ export class Conversation {
|
|
|
1159
1169
|
return GroupPermissions.__wrap(ret[0]);
|
|
1160
1170
|
}
|
|
1161
1171
|
/**
|
|
1162
|
-
* @param {
|
|
1172
|
+
* @param {string[]} inbox_ids
|
|
1163
1173
|
* @returns {Promise<void>}
|
|
1164
1174
|
*/
|
|
1165
1175
|
addMembersByInboxId(inbox_ids) {
|
|
@@ -1169,7 +1179,7 @@ export class Conversation {
|
|
|
1169
1179
|
return ret;
|
|
1170
1180
|
}
|
|
1171
1181
|
/**
|
|
1172
|
-
* @param {
|
|
1182
|
+
* @param {string[]} account_addresses
|
|
1173
1183
|
* @returns {Promise<void>}
|
|
1174
1184
|
*/
|
|
1175
1185
|
removeMembers(account_addresses) {
|
|
@@ -1179,7 +1189,7 @@ export class Conversation {
|
|
|
1179
1189
|
return ret;
|
|
1180
1190
|
}
|
|
1181
1191
|
/**
|
|
1182
|
-
* @param {
|
|
1192
|
+
* @param {string[]} inbox_ids
|
|
1183
1193
|
* @returns {Promise<void>}
|
|
1184
1194
|
*/
|
|
1185
1195
|
removeMembersByInboxId(inbox_ids) {
|
|
@@ -1381,7 +1391,7 @@ export class Conversation {
|
|
|
1381
1391
|
/**
|
|
1382
1392
|
* @param {PermissionUpdateType} permission_update_type
|
|
1383
1393
|
* @param {PermissionPolicy} permission_policy_option
|
|
1384
|
-
* @param {MetadataField |
|
|
1394
|
+
* @param {MetadataField | null} [metadata_field]
|
|
1385
1395
|
* @returns {Promise<void>}
|
|
1386
1396
|
*/
|
|
1387
1397
|
updatePermissionPolicy(permission_update_type, permission_policy_option, metadata_field) {
|
|
@@ -1416,8 +1426,8 @@ export class Conversations {
|
|
|
1416
1426
|
wasm.__wbg_conversations_free(ptr, 0);
|
|
1417
1427
|
}
|
|
1418
1428
|
/**
|
|
1419
|
-
* @param {
|
|
1420
|
-
* @param {CreateGroupOptions |
|
|
1429
|
+
* @param {string[]} account_addresses
|
|
1430
|
+
* @param {CreateGroupOptions | null} [options]
|
|
1421
1431
|
* @returns {Promise<Conversation>}
|
|
1422
1432
|
*/
|
|
1423
1433
|
createGroup(account_addresses, options) {
|
|
@@ -1495,7 +1505,7 @@ export class Conversations {
|
|
|
1495
1505
|
return ret;
|
|
1496
1506
|
}
|
|
1497
1507
|
/**
|
|
1498
|
-
* @param {ListConversationsOptions |
|
|
1508
|
+
* @param {ListConversationsOptions | null} [opts]
|
|
1499
1509
|
* @returns {Array<any>}
|
|
1500
1510
|
*/
|
|
1501
1511
|
list(opts) {
|
|
@@ -1511,7 +1521,7 @@ export class Conversations {
|
|
|
1511
1521
|
return takeFromExternrefTable0(ret[0]);
|
|
1512
1522
|
}
|
|
1513
1523
|
/**
|
|
1514
|
-
* @param {ListConversationsOptions |
|
|
1524
|
+
* @param {ListConversationsOptions | null} [opts]
|
|
1515
1525
|
* @returns {Array<any>}
|
|
1516
1526
|
*/
|
|
1517
1527
|
listGroups(opts) {
|
|
@@ -1527,7 +1537,7 @@ export class Conversations {
|
|
|
1527
1537
|
return takeFromExternrefTable0(ret[0]);
|
|
1528
1538
|
}
|
|
1529
1539
|
/**
|
|
1530
|
-
* @param {ListConversationsOptions |
|
|
1540
|
+
* @param {ListConversationsOptions | null} [opts]
|
|
1531
1541
|
* @returns {Array<any>}
|
|
1532
1542
|
*/
|
|
1533
1543
|
listDms(opts) {
|
|
@@ -1542,6 +1552,16 @@ export class Conversations {
|
|
|
1542
1552
|
}
|
|
1543
1553
|
return takeFromExternrefTable0(ret[0]);
|
|
1544
1554
|
}
|
|
1555
|
+
/**
|
|
1556
|
+
* @returns {any}
|
|
1557
|
+
*/
|
|
1558
|
+
getHmacKeys() {
|
|
1559
|
+
const ret = wasm.conversations_getHmacKeys(this.__wbg_ptr);
|
|
1560
|
+
if (ret[2]) {
|
|
1561
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1562
|
+
}
|
|
1563
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1564
|
+
}
|
|
1545
1565
|
}
|
|
1546
1566
|
|
|
1547
1567
|
const CreateGroupOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1569,7 +1589,7 @@ export class CreateGroupOptions {
|
|
|
1569
1589
|
return ret === 3 ? undefined : ret;
|
|
1570
1590
|
}
|
|
1571
1591
|
/**
|
|
1572
|
-
* @param {GroupPermissionsOptions |
|
|
1592
|
+
* @param {GroupPermissionsOptions | null} [arg0]
|
|
1573
1593
|
*/
|
|
1574
1594
|
set permissions(arg0) {
|
|
1575
1595
|
wasm.__wbg_set_creategroupoptions_permissions(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0);
|
|
@@ -1587,7 +1607,7 @@ export class CreateGroupOptions {
|
|
|
1587
1607
|
return v1;
|
|
1588
1608
|
}
|
|
1589
1609
|
/**
|
|
1590
|
-
* @param {string |
|
|
1610
|
+
* @param {string | null} [arg0]
|
|
1591
1611
|
*/
|
|
1592
1612
|
set groupName(arg0) {
|
|
1593
1613
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1607,7 +1627,7 @@ export class CreateGroupOptions {
|
|
|
1607
1627
|
return v1;
|
|
1608
1628
|
}
|
|
1609
1629
|
/**
|
|
1610
|
-
* @param {string |
|
|
1630
|
+
* @param {string | null} [arg0]
|
|
1611
1631
|
*/
|
|
1612
1632
|
set groupImageUrlSquare(arg0) {
|
|
1613
1633
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1627,7 +1647,7 @@ export class CreateGroupOptions {
|
|
|
1627
1647
|
return v1;
|
|
1628
1648
|
}
|
|
1629
1649
|
/**
|
|
1630
|
-
* @param {string |
|
|
1650
|
+
* @param {string | null} [arg0]
|
|
1631
1651
|
*/
|
|
1632
1652
|
set groupDescription(arg0) {
|
|
1633
1653
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1647,7 +1667,7 @@ export class CreateGroupOptions {
|
|
|
1647
1667
|
return v1;
|
|
1648
1668
|
}
|
|
1649
1669
|
/**
|
|
1650
|
-
* @param {string |
|
|
1670
|
+
* @param {string | null} [arg0]
|
|
1651
1671
|
*/
|
|
1652
1672
|
set groupPinnedFrameUrl(arg0) {
|
|
1653
1673
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1662,7 +1682,7 @@ export class CreateGroupOptions {
|
|
|
1662
1682
|
return ret === 0 ? undefined : PermissionPolicySet.__wrap(ret);
|
|
1663
1683
|
}
|
|
1664
1684
|
/**
|
|
1665
|
-
* @param {PermissionPolicySet |
|
|
1685
|
+
* @param {PermissionPolicySet | null} [arg0]
|
|
1666
1686
|
*/
|
|
1667
1687
|
set customPermissionPolicySet(arg0) {
|
|
1668
1688
|
let ptr0 = 0;
|
|
@@ -1673,14 +1693,42 @@ export class CreateGroupOptions {
|
|
|
1673
1693
|
wasm.__wbg_set_creategroupoptions_customPermissionPolicySet(this.__wbg_ptr, ptr0);
|
|
1674
1694
|
}
|
|
1675
1695
|
/**
|
|
1676
|
-
* @
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1696
|
+
* @returns {bigint | undefined}
|
|
1697
|
+
*/
|
|
1698
|
+
get messageExpirationFromMillis() {
|
|
1699
|
+
const ret = wasm.__wbg_get_creategroupoptions_messageExpirationFromMillis(this.__wbg_ptr);
|
|
1700
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
1701
|
+
}
|
|
1702
|
+
/**
|
|
1703
|
+
* @param {bigint | null} [arg0]
|
|
1682
1704
|
*/
|
|
1683
|
-
|
|
1705
|
+
set messageExpirationFromMillis(arg0) {
|
|
1706
|
+
wasm.__wbg_set_creategroupoptions_messageExpirationFromMillis(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
1707
|
+
}
|
|
1708
|
+
/**
|
|
1709
|
+
* @returns {bigint | undefined}
|
|
1710
|
+
*/
|
|
1711
|
+
get messageExpirationMillis() {
|
|
1712
|
+
const ret = wasm.__wbg_get_creategroupoptions_messageExpirationMillis(this.__wbg_ptr);
|
|
1713
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
1714
|
+
}
|
|
1715
|
+
/**
|
|
1716
|
+
* @param {bigint | null} [arg0]
|
|
1717
|
+
*/
|
|
1718
|
+
set messageExpirationMillis(arg0) {
|
|
1719
|
+
wasm.__wbg_set_creategroupoptions_messageExpirationMillis(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
1720
|
+
}
|
|
1721
|
+
/**
|
|
1722
|
+
* @param {GroupPermissionsOptions | null} [permissions]
|
|
1723
|
+
* @param {string | null} [group_name]
|
|
1724
|
+
* @param {string | null} [group_image_url_square]
|
|
1725
|
+
* @param {string | null} [group_description]
|
|
1726
|
+
* @param {string | null} [group_pinned_frame_url]
|
|
1727
|
+
* @param {PermissionPolicySet | null} [custom_permission_policy_set]
|
|
1728
|
+
* @param {bigint | null} [message_expiration_from_ms]
|
|
1729
|
+
* @param {bigint | null} [message_expiration_ms]
|
|
1730
|
+
*/
|
|
1731
|
+
constructor(permissions, group_name, group_image_url_square, group_description, group_pinned_frame_url, custom_permission_policy_set, message_expiration_from_ms, message_expiration_ms) {
|
|
1684
1732
|
var ptr0 = isLikeNone(group_name) ? 0 : passStringToWasm0(group_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1685
1733
|
var len0 = WASM_VECTOR_LEN;
|
|
1686
1734
|
var ptr1 = isLikeNone(group_image_url_square) ? 0 : passStringToWasm0(group_image_url_square, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1694,7 +1742,7 @@ export class CreateGroupOptions {
|
|
|
1694
1742
|
_assertClass(custom_permission_policy_set, PermissionPolicySet);
|
|
1695
1743
|
ptr4 = custom_permission_policy_set.__destroy_into_raw();
|
|
1696
1744
|
}
|
|
1697
|
-
const ret = wasm.creategroupoptions_new(isLikeNone(permissions) ? 3 : permissions, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4);
|
|
1745
|
+
const ret = wasm.creategroupoptions_new(isLikeNone(permissions) ? 3 : permissions, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, !isLikeNone(message_expiration_from_ms), isLikeNone(message_expiration_from_ms) ? BigInt(0) : message_expiration_from_ms, !isLikeNone(message_expiration_ms), isLikeNone(message_expiration_ms) ? BigInt(0) : message_expiration_ms);
|
|
1698
1746
|
this.__wbg_ptr = ret >>> 0;
|
|
1699
1747
|
CreateGroupOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
1700
1748
|
return this;
|
|
@@ -1734,7 +1782,7 @@ export class EncodedContent {
|
|
|
1734
1782
|
return ret === 0 ? undefined : ContentTypeId.__wrap(ret);
|
|
1735
1783
|
}
|
|
1736
1784
|
/**
|
|
1737
|
-
* @param {ContentTypeId |
|
|
1785
|
+
* @param {ContentTypeId | null} [arg0]
|
|
1738
1786
|
*/
|
|
1739
1787
|
set type(arg0) {
|
|
1740
1788
|
let ptr0 = 0;
|
|
@@ -1770,7 +1818,7 @@ export class EncodedContent {
|
|
|
1770
1818
|
return v1;
|
|
1771
1819
|
}
|
|
1772
1820
|
/**
|
|
1773
|
-
* @param {string |
|
|
1821
|
+
* @param {string | null} [arg0]
|
|
1774
1822
|
*/
|
|
1775
1823
|
set fallback(arg0) {
|
|
1776
1824
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1785,7 +1833,7 @@ export class EncodedContent {
|
|
|
1785
1833
|
return ret === 0x100000001 ? undefined : ret;
|
|
1786
1834
|
}
|
|
1787
1835
|
/**
|
|
1788
|
-
* @param {number |
|
|
1836
|
+
* @param {number | null} [arg0]
|
|
1789
1837
|
*/
|
|
1790
1838
|
set compression(arg0) {
|
|
1791
1839
|
wasm.__wbg_set_encodedcontent_compression(this.__wbg_ptr, isLikeNone(arg0) ? 0x100000001 : (arg0) >> 0);
|
|
@@ -1804,10 +1852,10 @@ export class EncodedContent {
|
|
|
1804
1852
|
wasm.__wbg_set_encodedcontent_content(this.__wbg_ptr, arg0);
|
|
1805
1853
|
}
|
|
1806
1854
|
/**
|
|
1807
|
-
* @param {ContentTypeId | undefined} type
|
|
1855
|
+
* @param {ContentTypeId | null | undefined} type
|
|
1808
1856
|
* @param {any} parameters
|
|
1809
|
-
* @param {string | undefined} fallback
|
|
1810
|
-
* @param {number | undefined} compression
|
|
1857
|
+
* @param {string | null | undefined} fallback
|
|
1858
|
+
* @param {number | null | undefined} compression
|
|
1811
1859
|
* @param {Uint8Array} content
|
|
1812
1860
|
*/
|
|
1813
1861
|
constructor(type, parameters, fallback, compression, content) {
|
|
@@ -1863,10 +1911,10 @@ export class GroupMember {
|
|
|
1863
1911
|
set inboxId(arg0) {
|
|
1864
1912
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1865
1913
|
const len0 = WASM_VECTOR_LEN;
|
|
1866
|
-
wasm.
|
|
1914
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
1867
1915
|
}
|
|
1868
1916
|
/**
|
|
1869
|
-
* @returns {
|
|
1917
|
+
* @returns {string[]}
|
|
1870
1918
|
*/
|
|
1871
1919
|
get accountAddresses() {
|
|
1872
1920
|
const ret = wasm.__wbg_get_groupmember_accountAddresses(this.__wbg_ptr);
|
|
@@ -1875,7 +1923,7 @@ export class GroupMember {
|
|
|
1875
1923
|
return v1;
|
|
1876
1924
|
}
|
|
1877
1925
|
/**
|
|
1878
|
-
* @param {
|
|
1926
|
+
* @param {string[]} arg0
|
|
1879
1927
|
*/
|
|
1880
1928
|
set accountAddresses(arg0) {
|
|
1881
1929
|
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
@@ -1883,7 +1931,7 @@ export class GroupMember {
|
|
|
1883
1931
|
wasm.__wbg_set_groupmember_accountAddresses(this.__wbg_ptr, ptr0, len0);
|
|
1884
1932
|
}
|
|
1885
1933
|
/**
|
|
1886
|
-
* @returns {
|
|
1934
|
+
* @returns {string[]}
|
|
1887
1935
|
*/
|
|
1888
1936
|
get installationIds() {
|
|
1889
1937
|
const ret = wasm.__wbg_get_groupmember_installationIds(this.__wbg_ptr);
|
|
@@ -1892,7 +1940,7 @@ export class GroupMember {
|
|
|
1892
1940
|
return v1;
|
|
1893
1941
|
}
|
|
1894
1942
|
/**
|
|
1895
|
-
* @param {
|
|
1943
|
+
* @param {string[]} arg0
|
|
1896
1944
|
*/
|
|
1897
1945
|
set installationIds(arg0) {
|
|
1898
1946
|
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
@@ -1927,8 +1975,8 @@ export class GroupMember {
|
|
|
1927
1975
|
}
|
|
1928
1976
|
/**
|
|
1929
1977
|
* @param {string} inbox_id
|
|
1930
|
-
* @param {
|
|
1931
|
-
* @param {
|
|
1978
|
+
* @param {string[]} account_addresses
|
|
1979
|
+
* @param {string[]} installation_ids
|
|
1932
1980
|
* @param {PermissionLevel} permission_level
|
|
1933
1981
|
* @param {ConsentState} consent_state
|
|
1934
1982
|
*/
|
|
@@ -2050,6 +2098,55 @@ export class GroupPermissions {
|
|
|
2050
2098
|
}
|
|
2051
2099
|
}
|
|
2052
2100
|
|
|
2101
|
+
const HmacKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2102
|
+
? { register: () => {}, unregister: () => {} }
|
|
2103
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_hmackey_free(ptr >>> 0, 1));
|
|
2104
|
+
|
|
2105
|
+
export class HmacKey {
|
|
2106
|
+
|
|
2107
|
+
__destroy_into_raw() {
|
|
2108
|
+
const ptr = this.__wbg_ptr;
|
|
2109
|
+
this.__wbg_ptr = 0;
|
|
2110
|
+
HmacKeyFinalization.unregister(this);
|
|
2111
|
+
return ptr;
|
|
2112
|
+
}
|
|
2113
|
+
|
|
2114
|
+
free() {
|
|
2115
|
+
const ptr = this.__destroy_into_raw();
|
|
2116
|
+
wasm.__wbg_hmackey_free(ptr, 0);
|
|
2117
|
+
}
|
|
2118
|
+
/**
|
|
2119
|
+
* @returns {Uint8Array}
|
|
2120
|
+
*/
|
|
2121
|
+
get key() {
|
|
2122
|
+
const ret = wasm.__wbg_get_hmackey_key(this.__wbg_ptr);
|
|
2123
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2124
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2125
|
+
return v1;
|
|
2126
|
+
}
|
|
2127
|
+
/**
|
|
2128
|
+
* @param {Uint8Array} arg0
|
|
2129
|
+
*/
|
|
2130
|
+
set key(arg0) {
|
|
2131
|
+
const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
2132
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2133
|
+
wasm.__wbg_set_hmackey_key(this.__wbg_ptr, ptr0, len0);
|
|
2134
|
+
}
|
|
2135
|
+
/**
|
|
2136
|
+
* @returns {bigint}
|
|
2137
|
+
*/
|
|
2138
|
+
get epoch() {
|
|
2139
|
+
const ret = wasm.__wbg_get_hmackey_epoch(this.__wbg_ptr);
|
|
2140
|
+
return ret;
|
|
2141
|
+
}
|
|
2142
|
+
/**
|
|
2143
|
+
* @param {bigint} arg0
|
|
2144
|
+
*/
|
|
2145
|
+
set epoch(arg0) {
|
|
2146
|
+
wasm.__wbg_set_hmackey_epoch(this.__wbg_ptr, arg0);
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2053
2150
|
const InboxStateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2054
2151
|
? { register: () => {}, unregister: () => {} }
|
|
2055
2152
|
: new FinalizationRegistry(ptr => wasm.__wbg_inboxstate_free(ptr >>> 0, 1));
|
|
@@ -2096,7 +2193,7 @@ export class InboxState {
|
|
|
2096
2193
|
set inboxId(arg0) {
|
|
2097
2194
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2098
2195
|
const len0 = WASM_VECTOR_LEN;
|
|
2099
|
-
wasm.
|
|
2196
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
2100
2197
|
}
|
|
2101
2198
|
/**
|
|
2102
2199
|
* @returns {string}
|
|
@@ -2122,7 +2219,7 @@ export class InboxState {
|
|
|
2122
2219
|
wasm.__wbg_set_inboxstate_recoveryAddress(this.__wbg_ptr, ptr0, len0);
|
|
2123
2220
|
}
|
|
2124
2221
|
/**
|
|
2125
|
-
* @returns {
|
|
2222
|
+
* @returns {Installation[]}
|
|
2126
2223
|
*/
|
|
2127
2224
|
get installations() {
|
|
2128
2225
|
const ret = wasm.__wbg_get_inboxstate_installations(this.__wbg_ptr);
|
|
@@ -2131,7 +2228,7 @@ export class InboxState {
|
|
|
2131
2228
|
return v1;
|
|
2132
2229
|
}
|
|
2133
2230
|
/**
|
|
2134
|
-
* @param {
|
|
2231
|
+
* @param {Installation[]} arg0
|
|
2135
2232
|
*/
|
|
2136
2233
|
set installations(arg0) {
|
|
2137
2234
|
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
@@ -2139,7 +2236,7 @@ export class InboxState {
|
|
|
2139
2236
|
wasm.__wbg_set_inboxstate_installations(this.__wbg_ptr, ptr0, len0);
|
|
2140
2237
|
}
|
|
2141
2238
|
/**
|
|
2142
|
-
* @returns {
|
|
2239
|
+
* @returns {string[]}
|
|
2143
2240
|
*/
|
|
2144
2241
|
get accountAddresses() {
|
|
2145
2242
|
const ret = wasm.__wbg_get_inboxstate_accountAddresses(this.__wbg_ptr);
|
|
@@ -2148,7 +2245,7 @@ export class InboxState {
|
|
|
2148
2245
|
return v1;
|
|
2149
2246
|
}
|
|
2150
2247
|
/**
|
|
2151
|
-
* @param {
|
|
2248
|
+
* @param {string[]} arg0
|
|
2152
2249
|
*/
|
|
2153
2250
|
set accountAddresses(arg0) {
|
|
2154
2251
|
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
@@ -2158,8 +2255,8 @@ export class InboxState {
|
|
|
2158
2255
|
/**
|
|
2159
2256
|
* @param {string} inbox_id
|
|
2160
2257
|
* @param {string} recovery_address
|
|
2161
|
-
* @param {
|
|
2162
|
-
* @param {
|
|
2258
|
+
* @param {Installation[]} installations
|
|
2259
|
+
* @param {string[]} account_addresses
|
|
2163
2260
|
*/
|
|
2164
2261
|
constructor(inbox_id, recovery_address, installations, account_addresses) {
|
|
2165
2262
|
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2253,7 +2350,7 @@ export class Installation {
|
|
|
2253
2350
|
return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
|
|
2254
2351
|
}
|
|
2255
2352
|
/**
|
|
2256
|
-
* @param {bigint |
|
|
2353
|
+
* @param {bigint | null} [arg0]
|
|
2257
2354
|
*/
|
|
2258
2355
|
set clientTimestampNs(arg0) {
|
|
2259
2356
|
wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
@@ -2261,7 +2358,7 @@ export class Installation {
|
|
|
2261
2358
|
/**
|
|
2262
2359
|
* @param {Uint8Array} bytes
|
|
2263
2360
|
* @param {string} id
|
|
2264
|
-
* @param {bigint |
|
|
2361
|
+
* @param {bigint | null} [client_timestamp_ns]
|
|
2265
2362
|
*/
|
|
2266
2363
|
constructor(bytes, id, client_timestamp_ns) {
|
|
2267
2364
|
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2429,7 +2526,7 @@ export class ListConversationsOptions {
|
|
|
2429
2526
|
return v1;
|
|
2430
2527
|
}
|
|
2431
2528
|
/**
|
|
2432
|
-
* @param {any[] |
|
|
2529
|
+
* @param {any[] | null} [arg0]
|
|
2433
2530
|
*/
|
|
2434
2531
|
set allowedStates(arg0) {
|
|
2435
2532
|
var ptr0 = isLikeNone(arg0) ? 0 : passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
@@ -2444,7 +2541,7 @@ export class ListConversationsOptions {
|
|
|
2444
2541
|
return ret === 3 ? undefined : ret;
|
|
2445
2542
|
}
|
|
2446
2543
|
/**
|
|
2447
|
-
* @param {ConversationType |
|
|
2544
|
+
* @param {ConversationType | null} [arg0]
|
|
2448
2545
|
*/
|
|
2449
2546
|
set conversationType(arg0) {
|
|
2450
2547
|
wasm.__wbg_set_listconversationsoptions_conversationType(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0);
|
|
@@ -2457,10 +2554,10 @@ export class ListConversationsOptions {
|
|
|
2457
2554
|
return ret[0] === 0 ? undefined : ret[1];
|
|
2458
2555
|
}
|
|
2459
2556
|
/**
|
|
2460
|
-
* @param {bigint |
|
|
2557
|
+
* @param {bigint | null} [arg0]
|
|
2461
2558
|
*/
|
|
2462
2559
|
set createdAfterNs(arg0) {
|
|
2463
|
-
wasm.
|
|
2560
|
+
wasm.__wbg_set_creategroupoptions_messageExpirationFromMillis(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2464
2561
|
}
|
|
2465
2562
|
/**
|
|
2466
2563
|
* @returns {bigint | undefined}
|
|
@@ -2470,10 +2567,10 @@ export class ListConversationsOptions {
|
|
|
2470
2567
|
return ret[0] === 0 ? undefined : ret[1];
|
|
2471
2568
|
}
|
|
2472
2569
|
/**
|
|
2473
|
-
* @param {bigint |
|
|
2570
|
+
* @param {bigint | null} [arg0]
|
|
2474
2571
|
*/
|
|
2475
2572
|
set createdBeforeNs(arg0) {
|
|
2476
|
-
wasm.
|
|
2573
|
+
wasm.__wbg_set_creategroupoptions_messageExpirationMillis(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2477
2574
|
}
|
|
2478
2575
|
/**
|
|
2479
2576
|
* @returns {bigint | undefined}
|
|
@@ -2483,17 +2580,17 @@ export class ListConversationsOptions {
|
|
|
2483
2580
|
return ret[0] === 0 ? undefined : ret[1];
|
|
2484
2581
|
}
|
|
2485
2582
|
/**
|
|
2486
|
-
* @param {bigint |
|
|
2583
|
+
* @param {bigint | null} [arg0]
|
|
2487
2584
|
*/
|
|
2488
2585
|
set limit(arg0) {
|
|
2489
2586
|
wasm.__wbg_set_listconversationsoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2490
2587
|
}
|
|
2491
2588
|
/**
|
|
2492
|
-
* @param {any[] |
|
|
2493
|
-
* @param {ConversationType |
|
|
2494
|
-
* @param {bigint |
|
|
2495
|
-
* @param {bigint |
|
|
2496
|
-
* @param {bigint |
|
|
2589
|
+
* @param {any[] | null} [allowed_states]
|
|
2590
|
+
* @param {ConversationType | null} [conversation_type]
|
|
2591
|
+
* @param {bigint | null} [created_after_ns]
|
|
2592
|
+
* @param {bigint | null} [created_before_ns]
|
|
2593
|
+
* @param {bigint | null} [limit]
|
|
2497
2594
|
*/
|
|
2498
2595
|
constructor(allowed_states, conversation_type, created_after_ns, created_before_ns, limit) {
|
|
2499
2596
|
var ptr0 = isLikeNone(allowed_states) ? 0 : passArrayJsValueToWasm0(allowed_states, wasm.__wbindgen_malloc);
|
|
@@ -2530,10 +2627,10 @@ export class ListMessagesOptions {
|
|
|
2530
2627
|
return ret[0] === 0 ? undefined : ret[1];
|
|
2531
2628
|
}
|
|
2532
2629
|
/**
|
|
2533
|
-
* @param {bigint |
|
|
2630
|
+
* @param {bigint | null} [arg0]
|
|
2534
2631
|
*/
|
|
2535
2632
|
set sentBeforeNs(arg0) {
|
|
2536
|
-
wasm.
|
|
2633
|
+
wasm.__wbg_set_creategroupoptions_messageExpirationFromMillis(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2537
2634
|
}
|
|
2538
2635
|
/**
|
|
2539
2636
|
* @returns {bigint | undefined}
|
|
@@ -2543,10 +2640,10 @@ export class ListMessagesOptions {
|
|
|
2543
2640
|
return ret[0] === 0 ? undefined : ret[1];
|
|
2544
2641
|
}
|
|
2545
2642
|
/**
|
|
2546
|
-
* @param {bigint |
|
|
2643
|
+
* @param {bigint | null} [arg0]
|
|
2547
2644
|
*/
|
|
2548
2645
|
set sentAfterNs(arg0) {
|
|
2549
|
-
wasm.
|
|
2646
|
+
wasm.__wbg_set_creategroupoptions_messageExpirationMillis(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2550
2647
|
}
|
|
2551
2648
|
/**
|
|
2552
2649
|
* @returns {bigint | undefined}
|
|
@@ -2556,7 +2653,7 @@ export class ListMessagesOptions {
|
|
|
2556
2653
|
return ret[0] === 0 ? undefined : ret[1];
|
|
2557
2654
|
}
|
|
2558
2655
|
/**
|
|
2559
|
-
* @param {bigint |
|
|
2656
|
+
* @param {bigint | null} [arg0]
|
|
2560
2657
|
*/
|
|
2561
2658
|
set limit(arg0) {
|
|
2562
2659
|
wasm.__wbg_set_listconversationsoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
@@ -2569,7 +2666,7 @@ export class ListMessagesOptions {
|
|
|
2569
2666
|
return ret === 3 ? undefined : ret;
|
|
2570
2667
|
}
|
|
2571
2668
|
/**
|
|
2572
|
-
* @param {DeliveryStatus |
|
|
2669
|
+
* @param {DeliveryStatus | null} [arg0]
|
|
2573
2670
|
*/
|
|
2574
2671
|
set deliveryStatus(arg0) {
|
|
2575
2672
|
wasm.__wbg_set_listmessagesoptions_deliveryStatus(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0);
|
|
@@ -2582,17 +2679,17 @@ export class ListMessagesOptions {
|
|
|
2582
2679
|
return ret === 2 ? undefined : ret;
|
|
2583
2680
|
}
|
|
2584
2681
|
/**
|
|
2585
|
-
* @param {SortDirection |
|
|
2682
|
+
* @param {SortDirection | null} [arg0]
|
|
2586
2683
|
*/
|
|
2587
2684
|
set direction(arg0) {
|
|
2588
2685
|
wasm.__wbg_set_listmessagesoptions_direction(this.__wbg_ptr, isLikeNone(arg0) ? 2 : arg0);
|
|
2589
2686
|
}
|
|
2590
2687
|
/**
|
|
2591
|
-
* @param {bigint |
|
|
2592
|
-
* @param {bigint |
|
|
2593
|
-
* @param {bigint |
|
|
2594
|
-
* @param {DeliveryStatus |
|
|
2595
|
-
* @param {SortDirection |
|
|
2688
|
+
* @param {bigint | null} [sent_before_ns]
|
|
2689
|
+
* @param {bigint | null} [sent_after_ns]
|
|
2690
|
+
* @param {bigint | null} [limit]
|
|
2691
|
+
* @param {DeliveryStatus | null} [delivery_status]
|
|
2692
|
+
* @param {SortDirection | null} [direction]
|
|
2596
2693
|
*/
|
|
2597
2694
|
constructor(sent_before_ns, sent_after_ns, limit, delivery_status, direction) {
|
|
2598
2695
|
const ret = wasm.listmessagesoptions_new(!isLikeNone(sent_before_ns), isLikeNone(sent_before_ns) ? BigInt(0) : sent_before_ns, !isLikeNone(sent_after_ns), isLikeNone(sent_after_ns) ? BigInt(0) : sent_after_ns, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit, isLikeNone(delivery_status) ? 3 : delivery_status, isLikeNone(direction) ? 2 : direction);
|
|
@@ -2661,7 +2758,7 @@ export class LogOptions {
|
|
|
2661
2758
|
}
|
|
2662
2759
|
/**
|
|
2663
2760
|
* filter for logs
|
|
2664
|
-
* @param {LogLevel |
|
|
2761
|
+
* @param {LogLevel | null} [arg0]
|
|
2665
2762
|
*/
|
|
2666
2763
|
set level(arg0) {
|
|
2667
2764
|
wasm.__wbg_set_logoptions_level(this.__wbg_ptr, isLikeNone(arg0) ? 7 : ((__wbindgen_enum_LogLevel.indexOf(arg0) + 1 || 7) - 1));
|
|
@@ -2669,7 +2766,7 @@ export class LogOptions {
|
|
|
2669
2766
|
/**
|
|
2670
2767
|
* @param {boolean} structured
|
|
2671
2768
|
* @param {boolean} performance
|
|
2672
|
-
* @param {LogLevel |
|
|
2769
|
+
* @param {LogLevel | null} [level]
|
|
2673
2770
|
*/
|
|
2674
2771
|
constructor(structured, performance, level) {
|
|
2675
2772
|
const ret = wasm.logoptions_new(structured, performance, isLikeNone(level) ? 7 : ((__wbindgen_enum_LogLevel.indexOf(level) + 1 || 7) - 1));
|
|
@@ -2731,14 +2828,14 @@ export class Message {
|
|
|
2731
2828
|
* @returns {bigint}
|
|
2732
2829
|
*/
|
|
2733
2830
|
get sentAtNs() {
|
|
2734
|
-
const ret = wasm.
|
|
2831
|
+
const ret = wasm.__wbg_get_hmackey_epoch(this.__wbg_ptr);
|
|
2735
2832
|
return ret;
|
|
2736
2833
|
}
|
|
2737
2834
|
/**
|
|
2738
2835
|
* @param {bigint} arg0
|
|
2739
2836
|
*/
|
|
2740
2837
|
set sentAtNs(arg0) {
|
|
2741
|
-
wasm.
|
|
2838
|
+
wasm.__wbg_set_hmackey_epoch(this.__wbg_ptr, arg0);
|
|
2742
2839
|
}
|
|
2743
2840
|
/**
|
|
2744
2841
|
* @returns {string}
|
|
@@ -2981,6 +3078,19 @@ export class PermissionPolicySet {
|
|
|
2981
3078
|
set updateGroupPinnedFrameUrlPolicy(arg0) {
|
|
2982
3079
|
wasm.__wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy(this.__wbg_ptr, arg0);
|
|
2983
3080
|
}
|
|
3081
|
+
/**
|
|
3082
|
+
* @returns {PermissionPolicy}
|
|
3083
|
+
*/
|
|
3084
|
+
get updateMessageExpirationPolicy() {
|
|
3085
|
+
const ret = wasm.__wbg_get_permissionpolicyset_updateMessageExpirationPolicy(this.__wbg_ptr);
|
|
3086
|
+
return ret;
|
|
3087
|
+
}
|
|
3088
|
+
/**
|
|
3089
|
+
* @param {PermissionPolicy} arg0
|
|
3090
|
+
*/
|
|
3091
|
+
set updateMessageExpirationPolicy(arg0) {
|
|
3092
|
+
wasm.__wbg_set_permissionpolicyset_updateMessageExpirationPolicy(this.__wbg_ptr, arg0);
|
|
3093
|
+
}
|
|
2984
3094
|
/**
|
|
2985
3095
|
* @param {PermissionPolicy} add_member_policy
|
|
2986
3096
|
* @param {PermissionPolicy} remove_member_policy
|
|
@@ -2990,9 +3100,10 @@ export class PermissionPolicySet {
|
|
|
2990
3100
|
* @param {PermissionPolicy} update_group_description_policy
|
|
2991
3101
|
* @param {PermissionPolicy} update_group_image_url_square_policy
|
|
2992
3102
|
* @param {PermissionPolicy} update_group_pinned_frame_url_policy
|
|
3103
|
+
* @param {PermissionPolicy} update_message_expiration_ms_policy
|
|
2993
3104
|
*/
|
|
2994
|
-
constructor(add_member_policy, remove_member_policy, add_admin_policy, remove_admin_policy, update_group_name_policy, update_group_description_policy, update_group_image_url_square_policy, update_group_pinned_frame_url_policy) {
|
|
2995
|
-
const ret = wasm.permissionpolicyset_new(add_member_policy, remove_member_policy, add_admin_policy, remove_admin_policy, update_group_name_policy, update_group_description_policy, update_group_image_url_square_policy, update_group_pinned_frame_url_policy);
|
|
3105
|
+
constructor(add_member_policy, remove_member_policy, add_admin_policy, remove_admin_policy, update_group_name_policy, update_group_description_policy, update_group_image_url_square_policy, update_group_pinned_frame_url_policy, update_message_expiration_ms_policy) {
|
|
3106
|
+
const ret = wasm.permissionpolicyset_new(add_member_policy, remove_member_policy, add_admin_policy, remove_admin_policy, update_group_name_policy, update_group_description_policy, update_group_image_url_square_policy, update_group_pinned_frame_url_policy, update_message_expiration_ms_policy);
|
|
2996
3107
|
this.__wbg_ptr = ret >>> 0;
|
|
2997
3108
|
PermissionPolicySetFinalization.register(this, this.__wbg_ptr, this);
|
|
2998
3109
|
return this;
|
|
@@ -3131,7 +3242,7 @@ function __wbg_get_imports() {
|
|
|
3131
3242
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3132
3243
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3133
3244
|
};
|
|
3134
|
-
imports.wbg.
|
|
3245
|
+
imports.wbg.__wbg_abort_775ef1d17fc65868 = function(arg0) {
|
|
3135
3246
|
arg0.abort();
|
|
3136
3247
|
};
|
|
3137
3248
|
imports.wbg.__wbg_allocCString_69f9010fb2b096f0 = function(arg0, arg1, arg2) {
|
|
@@ -3162,10 +3273,10 @@ function __wbg_get_imports() {
|
|
|
3162
3273
|
const ret = arg0.alloc;
|
|
3163
3274
|
return ret;
|
|
3164
3275
|
};
|
|
3165
|
-
imports.wbg.
|
|
3276
|
+
imports.wbg.__wbg_append_8c7dd8d641a5f01b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3166
3277
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
3167
3278
|
}, arguments) };
|
|
3168
|
-
imports.wbg.
|
|
3279
|
+
imports.wbg.__wbg_arrayBuffer_d1b44c4390db422f = function() { return handleError(function (arg0) {
|
|
3169
3280
|
const ret = arg0.arrayBuffer();
|
|
3170
3281
|
return ret;
|
|
3171
3282
|
}, arguments) };
|
|
@@ -3193,32 +3304,32 @@ function __wbg_get_imports() {
|
|
|
3193
3304
|
const ret = arg0.bind_text(arg1, arg2, arg3 >>> 0, arg4, arg5);
|
|
3194
3305
|
return ret;
|
|
3195
3306
|
};
|
|
3196
|
-
imports.wbg.
|
|
3307
|
+
imports.wbg.__wbg_buffer_09165b52af8c5237 = function(arg0) {
|
|
3197
3308
|
const ret = arg0.buffer;
|
|
3198
3309
|
return ret;
|
|
3199
3310
|
};
|
|
3200
|
-
imports.wbg.
|
|
3311
|
+
imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
3201
3312
|
const ret = arg0.buffer;
|
|
3202
3313
|
return ret;
|
|
3203
3314
|
};
|
|
3204
|
-
imports.wbg.
|
|
3315
|
+
imports.wbg.__wbg_byobRequest_77d9adf63337edfb = function(arg0) {
|
|
3205
3316
|
const ret = arg0.byobRequest;
|
|
3206
3317
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3207
3318
|
};
|
|
3208
|
-
imports.wbg.
|
|
3319
|
+
imports.wbg.__wbg_byteLength_e674b853d9c77e1d = function(arg0) {
|
|
3209
3320
|
const ret = arg0.byteLength;
|
|
3210
3321
|
return ret;
|
|
3211
3322
|
};
|
|
3212
|
-
imports.wbg.
|
|
3323
|
+
imports.wbg.__wbg_byteOffset_fd862df290ef848d = function(arg0) {
|
|
3213
3324
|
const ret = arg0.byteOffset;
|
|
3214
3325
|
return ret;
|
|
3215
3326
|
};
|
|
3216
|
-
imports.wbg.
|
|
3217
|
-
const ret = arg0.call(arg1
|
|
3327
|
+
imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
|
|
3328
|
+
const ret = arg0.call(arg1);
|
|
3218
3329
|
return ret;
|
|
3219
3330
|
}, arguments) };
|
|
3220
|
-
imports.wbg.
|
|
3221
|
-
const ret = arg0.call(arg1);
|
|
3331
|
+
imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3332
|
+
const ret = arg0.call(arg1, arg2);
|
|
3222
3333
|
return ret;
|
|
3223
3334
|
}, arguments) };
|
|
3224
3335
|
imports.wbg.__wbg_capi_b2cd9cd3325d1164 = function(arg0) {
|
|
@@ -3237,10 +3348,10 @@ function __wbg_get_imports() {
|
|
|
3237
3348
|
const ret = arg0.close(arg1);
|
|
3238
3349
|
return ret;
|
|
3239
3350
|
};
|
|
3240
|
-
imports.wbg.
|
|
3351
|
+
imports.wbg.__wbg_close_304cc1fef3466669 = function() { return handleError(function (arg0) {
|
|
3241
3352
|
arg0.close();
|
|
3242
3353
|
}, arguments) };
|
|
3243
|
-
imports.wbg.
|
|
3354
|
+
imports.wbg.__wbg_close_5ce03e29be453811 = function() { return handleError(function (arg0) {
|
|
3244
3355
|
arg0.close();
|
|
3245
3356
|
}, arguments) };
|
|
3246
3357
|
imports.wbg.__wbg_columncount_328a9b2639ca5c51 = function(arg0, arg1) {
|
|
@@ -3266,7 +3377,7 @@ function __wbg_get_imports() {
|
|
|
3266
3377
|
const ret = Conversation.__wrap(arg0);
|
|
3267
3378
|
return ret;
|
|
3268
3379
|
};
|
|
3269
|
-
imports.wbg.
|
|
3380
|
+
imports.wbg.__wbg_create_cfe43ccc88c64e0a = function(arg0) {
|
|
3270
3381
|
const ret = Object.create(arg0);
|
|
3271
3382
|
return ret;
|
|
3272
3383
|
};
|
|
@@ -3281,20 +3392,20 @@ function __wbg_get_imports() {
|
|
|
3281
3392
|
imports.wbg.__wbg_dealloc_83aa46cc9ca6df71 = function(arg0, arg1) {
|
|
3282
3393
|
arg0.dealloc(arg1 >>> 0);
|
|
3283
3394
|
};
|
|
3284
|
-
imports.wbg.
|
|
3395
|
+
imports.wbg.__wbg_debug_3cb59063b29f58c1 = function(arg0) {
|
|
3285
3396
|
console.debug(arg0);
|
|
3286
3397
|
};
|
|
3287
|
-
imports.wbg.
|
|
3398
|
+
imports.wbg.__wbg_debug_e17b51583ca6a632 = function(arg0, arg1, arg2, arg3) {
|
|
3288
3399
|
console.debug(arg0, arg1, arg2, arg3);
|
|
3289
3400
|
};
|
|
3290
|
-
imports.wbg.
|
|
3401
|
+
imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
|
|
3291
3402
|
const ret = arg0.done;
|
|
3292
3403
|
return ret;
|
|
3293
3404
|
};
|
|
3294
|
-
imports.wbg.
|
|
3405
|
+
imports.wbg.__wbg_enqueue_bb16ba72f537dc9e = function() { return handleError(function (arg0, arg1) {
|
|
3295
3406
|
arg0.enqueue(arg1);
|
|
3296
3407
|
}, arguments) };
|
|
3297
|
-
imports.wbg.
|
|
3408
|
+
imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
|
|
3298
3409
|
const ret = Object.entries(arg0);
|
|
3299
3410
|
return ret;
|
|
3300
3411
|
};
|
|
@@ -3305,8 +3416,8 @@ function __wbg_get_imports() {
|
|
|
3305
3416
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3306
3417
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3307
3418
|
};
|
|
3308
|
-
imports.wbg.
|
|
3309
|
-
console.error(arg0
|
|
3419
|
+
imports.wbg.__wbg_error_524f506f44df1645 = function(arg0) {
|
|
3420
|
+
console.error(arg0);
|
|
3310
3421
|
};
|
|
3311
3422
|
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
3312
3423
|
let deferred0_0;
|
|
@@ -3319,8 +3430,8 @@ function __wbg_get_imports() {
|
|
|
3319
3430
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3320
3431
|
}
|
|
3321
3432
|
};
|
|
3322
|
-
imports.wbg.
|
|
3323
|
-
console.error(arg0);
|
|
3433
|
+
imports.wbg.__wbg_error_80de38b3f7cc3c3c = function(arg0, arg1, arg2, arg3) {
|
|
3434
|
+
console.error(arg0, arg1, arg2, arg3);
|
|
3324
3435
|
};
|
|
3325
3436
|
imports.wbg.__wbg_errstr_503ebc5fc9ad1b72 = function(arg0, arg1, arg2) {
|
|
3326
3437
|
const ret = arg1.errstr(arg2);
|
|
@@ -3336,7 +3447,7 @@ function __wbg_get_imports() {
|
|
|
3336
3447
|
const ret = arg0.extended_errcode(arg1);
|
|
3337
3448
|
return ret;
|
|
3338
3449
|
};
|
|
3339
|
-
imports.wbg.
|
|
3450
|
+
imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
|
|
3340
3451
|
const ret = arg0.fetch(arg1);
|
|
3341
3452
|
return ret;
|
|
3342
3453
|
};
|
|
@@ -3365,14 +3476,14 @@ function __wbg_get_imports() {
|
|
|
3365
3476
|
imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
|
|
3366
3477
|
arg0.getRandomValues(arg1);
|
|
3367
3478
|
}, arguments) };
|
|
3368
|
-
imports.wbg.
|
|
3369
|
-
const ret = arg0[arg1 >>> 0];
|
|
3370
|
-
return ret;
|
|
3371
|
-
};
|
|
3372
|
-
imports.wbg.__wbg_get_bbccf8970793c087 = function() { return handleError(function (arg0, arg1) {
|
|
3479
|
+
imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
|
|
3373
3480
|
const ret = Reflect.get(arg0, arg1);
|
|
3374
3481
|
return ret;
|
|
3375
3482
|
}, arguments) };
|
|
3483
|
+
imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
|
|
3484
|
+
const ret = arg0[arg1 >>> 0];
|
|
3485
|
+
return ret;
|
|
3486
|
+
};
|
|
3376
3487
|
imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
|
|
3377
3488
|
const ret = arg0[arg1];
|
|
3378
3489
|
return ret;
|
|
@@ -3381,11 +3492,11 @@ function __wbg_get_imports() {
|
|
|
3381
3492
|
const ret = GroupMetadata.__wrap(arg0);
|
|
3382
3493
|
return ret;
|
|
3383
3494
|
};
|
|
3384
|
-
imports.wbg.
|
|
3495
|
+
imports.wbg.__wbg_has_a5ea9117f258a0ec = function() { return handleError(function (arg0, arg1) {
|
|
3385
3496
|
const ret = Reflect.has(arg0, arg1);
|
|
3386
3497
|
return ret;
|
|
3387
3498
|
}, arguments) };
|
|
3388
|
-
imports.wbg.
|
|
3499
|
+
imports.wbg.__wbg_headers_9cb51cfd2ac780a4 = function(arg0) {
|
|
3389
3500
|
const ret = arg0.headers;
|
|
3390
3501
|
return ret;
|
|
3391
3502
|
};
|
|
@@ -3401,10 +3512,10 @@ function __wbg_get_imports() {
|
|
|
3401
3512
|
const ret = InboxState.__wrap(arg0);
|
|
3402
3513
|
return ret;
|
|
3403
3514
|
};
|
|
3404
|
-
imports.wbg.
|
|
3515
|
+
imports.wbg.__wbg_info_033d8b8a0838f1d3 = function(arg0, arg1, arg2, arg3) {
|
|
3405
3516
|
console.info(arg0, arg1, arg2, arg3);
|
|
3406
3517
|
};
|
|
3407
|
-
imports.wbg.
|
|
3518
|
+
imports.wbg.__wbg_info_3daf2e093e091b66 = function(arg0) {
|
|
3408
3519
|
console.info(arg0);
|
|
3409
3520
|
};
|
|
3410
3521
|
imports.wbg.__wbg_initmodule_694b4b8a6236ad25 = function(arg0) {
|
|
@@ -3419,7 +3530,7 @@ function __wbg_get_imports() {
|
|
|
3419
3530
|
const ret = Installation.__unwrap(arg0);
|
|
3420
3531
|
return ret;
|
|
3421
3532
|
};
|
|
3422
|
-
imports.wbg.
|
|
3533
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
|
|
3423
3534
|
let result;
|
|
3424
3535
|
try {
|
|
3425
3536
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -3429,7 +3540,7 @@ function __wbg_get_imports() {
|
|
|
3429
3540
|
const ret = result;
|
|
3430
3541
|
return ret;
|
|
3431
3542
|
};
|
|
3432
|
-
imports.wbg.
|
|
3543
|
+
imports.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function(arg0) {
|
|
3433
3544
|
let result;
|
|
3434
3545
|
try {
|
|
3435
3546
|
result = arg0 instanceof Response;
|
|
@@ -3439,7 +3550,7 @@ function __wbg_get_imports() {
|
|
|
3439
3550
|
const ret = result;
|
|
3440
3551
|
return ret;
|
|
3441
3552
|
};
|
|
3442
|
-
imports.wbg.
|
|
3553
|
+
imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
|
|
3443
3554
|
let result;
|
|
3444
3555
|
try {
|
|
3445
3556
|
result = arg0 instanceof Uint8Array;
|
|
@@ -3449,7 +3560,7 @@ function __wbg_get_imports() {
|
|
|
3449
3560
|
const ret = result;
|
|
3450
3561
|
return ret;
|
|
3451
3562
|
};
|
|
3452
|
-
imports.wbg.
|
|
3563
|
+
imports.wbg.__wbg_instanceof_WorkerGlobalScope_dbdbdea7e3b56493 = function(arg0) {
|
|
3453
3564
|
let result;
|
|
3454
3565
|
try {
|
|
3455
3566
|
result = arg0 instanceof WorkerGlobalScope;
|
|
@@ -3459,19 +3570,19 @@ function __wbg_get_imports() {
|
|
|
3459
3570
|
const ret = result;
|
|
3460
3571
|
return ret;
|
|
3461
3572
|
};
|
|
3462
|
-
imports.wbg.
|
|
3573
|
+
imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
|
|
3463
3574
|
const ret = Number.isSafeInteger(arg0);
|
|
3464
3575
|
return ret;
|
|
3465
3576
|
};
|
|
3466
|
-
imports.wbg.
|
|
3577
|
+
imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
|
|
3467
3578
|
const ret = Symbol.iterator;
|
|
3468
3579
|
return ret;
|
|
3469
3580
|
};
|
|
3470
|
-
imports.wbg.
|
|
3581
|
+
imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
3471
3582
|
const ret = arg0.length;
|
|
3472
3583
|
return ret;
|
|
3473
3584
|
};
|
|
3474
|
-
imports.wbg.
|
|
3585
|
+
imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
|
|
3475
3586
|
const ret = arg0.length;
|
|
3476
3587
|
return ret;
|
|
3477
3588
|
};
|
|
@@ -3495,26 +3606,18 @@ function __wbg_get_imports() {
|
|
|
3495
3606
|
const ret = arg0.msCrypto;
|
|
3496
3607
|
return ret;
|
|
3497
3608
|
};
|
|
3498
|
-
imports.wbg.
|
|
3499
|
-
const ret = new Array();
|
|
3500
|
-
return ret;
|
|
3501
|
-
};
|
|
3502
|
-
imports.wbg.__wbg_new_35d748855c4620b9 = function() { return handleError(function () {
|
|
3609
|
+
imports.wbg.__wbg_new_018dcc2d6c8c2f6a = function() { return handleError(function () {
|
|
3503
3610
|
const ret = new Headers();
|
|
3504
3611
|
return ret;
|
|
3505
3612
|
}, arguments) };
|
|
3506
|
-
imports.wbg.
|
|
3507
|
-
const ret = new SQLite(arg0);
|
|
3508
|
-
return ret;
|
|
3509
|
-
};
|
|
3510
|
-
imports.wbg.__wbg_new_3d446df9155128ef = function(arg0, arg1) {
|
|
3613
|
+
imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
3511
3614
|
try {
|
|
3512
3615
|
var state0 = {a: arg0, b: arg1};
|
|
3513
3616
|
var cb0 = (arg0, arg1) => {
|
|
3514
3617
|
const a = state0.a;
|
|
3515
3618
|
state0.a = 0;
|
|
3516
3619
|
try {
|
|
3517
|
-
return
|
|
3620
|
+
return __wbg_adapter_591(a, state0.b, arg0, arg1);
|
|
3518
3621
|
} finally {
|
|
3519
3622
|
state0.a = a;
|
|
3520
3623
|
}
|
|
@@ -3525,63 +3628,71 @@ function __wbg_get_imports() {
|
|
|
3525
3628
|
state0.a = state0.b = 0;
|
|
3526
3629
|
}
|
|
3527
3630
|
};
|
|
3528
|
-
imports.wbg.
|
|
3529
|
-
const ret = new
|
|
3530
|
-
return ret;
|
|
3531
|
-
};
|
|
3532
|
-
imports.wbg.__wbg_new_5f48f21d4be11586 = function() { return handleError(function () {
|
|
3533
|
-
const ret = new AbortController();
|
|
3631
|
+
imports.wbg.__wbg_new_263e3ed0ecf4a0f0 = function() { return handleError(function (arg0) {
|
|
3632
|
+
const ret = new WebAssembly.Memory(arg0);
|
|
3534
3633
|
return ret;
|
|
3535
3634
|
}, arguments) };
|
|
3536
|
-
imports.wbg.
|
|
3537
|
-
const ret = new
|
|
3635
|
+
imports.wbg.__wbg_new_3c34f3fe365c1436 = function(arg0) {
|
|
3636
|
+
const ret = new SQLite(arg0);
|
|
3538
3637
|
return ret;
|
|
3539
3638
|
};
|
|
3540
|
-
imports.wbg.
|
|
3639
|
+
imports.wbg.__wbg_new_405e22f390576ce2 = function() {
|
|
3541
3640
|
const ret = new Object();
|
|
3542
3641
|
return ret;
|
|
3543
3642
|
};
|
|
3643
|
+
imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
|
|
3644
|
+
const ret = new Map();
|
|
3645
|
+
return ret;
|
|
3646
|
+
};
|
|
3647
|
+
imports.wbg.__wbg_new_78feb108b6472713 = function() {
|
|
3648
|
+
const ret = new Array();
|
|
3649
|
+
return ret;
|
|
3650
|
+
};
|
|
3544
3651
|
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
3545
3652
|
const ret = new Error();
|
|
3546
3653
|
return ret;
|
|
3547
3654
|
};
|
|
3548
|
-
imports.wbg.
|
|
3549
|
-
const ret = new
|
|
3655
|
+
imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
3656
|
+
const ret = new Uint8Array(arg0);
|
|
3550
3657
|
return ret;
|
|
3551
3658
|
};
|
|
3552
|
-
imports.wbg.
|
|
3553
|
-
const ret = new
|
|
3659
|
+
imports.wbg.__wbg_new_c68d7209be747379 = function(arg0, arg1) {
|
|
3660
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
3661
|
+
return ret;
|
|
3662
|
+
};
|
|
3663
|
+
imports.wbg.__wbg_new_e25e5aab09ff45db = function() { return handleError(function () {
|
|
3664
|
+
const ret = new AbortController();
|
|
3554
3665
|
return ret;
|
|
3555
3666
|
}, arguments) };
|
|
3556
|
-
imports.wbg.
|
|
3667
|
+
imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
|
|
3557
3668
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3558
3669
|
return ret;
|
|
3559
3670
|
};
|
|
3560
|
-
imports.wbg.
|
|
3671
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
|
|
3561
3672
|
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
3562
3673
|
return ret;
|
|
3563
3674
|
};
|
|
3564
|
-
imports.wbg.
|
|
3675
|
+
imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
|
|
3565
3676
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
3566
3677
|
return ret;
|
|
3567
3678
|
};
|
|
3568
|
-
imports.wbg.
|
|
3679
|
+
imports.wbg.__wbg_newwithstrandinit_06c535e0a867c635 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3569
3680
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
3570
3681
|
return ret;
|
|
3571
3682
|
}, arguments) };
|
|
3572
|
-
imports.wbg.
|
|
3573
|
-
const ret = arg0.next();
|
|
3574
|
-
return ret;
|
|
3575
|
-
}, arguments) };
|
|
3576
|
-
imports.wbg.__wbg_next_137428deb98342b0 = function(arg0) {
|
|
3683
|
+
imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
|
|
3577
3684
|
const ret = arg0.next;
|
|
3578
3685
|
return ret;
|
|
3579
3686
|
};
|
|
3687
|
+
imports.wbg.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
|
|
3688
|
+
const ret = arg0.next();
|
|
3689
|
+
return ret;
|
|
3690
|
+
}, arguments) };
|
|
3580
3691
|
imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) {
|
|
3581
3692
|
const ret = arg0.node;
|
|
3582
3693
|
return ret;
|
|
3583
3694
|
};
|
|
3584
|
-
imports.wbg.
|
|
3695
|
+
imports.wbg.__wbg_now_807e54c39636c349 = function() {
|
|
3585
3696
|
const ret = Date.now();
|
|
3586
3697
|
return ret;
|
|
3587
3698
|
};
|
|
@@ -3613,14 +3724,14 @@ function __wbg_get_imports() {
|
|
|
3613
3724
|
const ret = arg0.pstack;
|
|
3614
3725
|
return ret;
|
|
3615
3726
|
};
|
|
3616
|
-
imports.wbg.
|
|
3727
|
+
imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
|
|
3617
3728
|
const ret = arg0.push(arg1);
|
|
3618
3729
|
return ret;
|
|
3619
3730
|
};
|
|
3620
|
-
imports.wbg.
|
|
3731
|
+
imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
|
|
3621
3732
|
queueMicrotask(arg0);
|
|
3622
3733
|
};
|
|
3623
|
-
imports.wbg.
|
|
3734
|
+
imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
|
|
3624
3735
|
const ret = arg0.queueMicrotask;
|
|
3625
3736
|
return ret;
|
|
3626
3737
|
};
|
|
@@ -3638,56 +3749,56 @@ function __wbg_get_imports() {
|
|
|
3638
3749
|
const ret = arg0.reset(arg1);
|
|
3639
3750
|
return ret;
|
|
3640
3751
|
};
|
|
3641
|
-
imports.wbg.
|
|
3752
|
+
imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
|
|
3642
3753
|
const ret = Promise.resolve(arg0);
|
|
3643
3754
|
return ret;
|
|
3644
3755
|
};
|
|
3645
|
-
imports.wbg.
|
|
3756
|
+
imports.wbg.__wbg_respond_1f279fa9f8edcb1c = function() { return handleError(function (arg0, arg1) {
|
|
3646
3757
|
arg0.respond(arg1 >>> 0);
|
|
3647
3758
|
}, arguments) };
|
|
3648
3759
|
imports.wbg.__wbg_restore_43c154983844b05b = function(arg0, arg1) {
|
|
3649
3760
|
arg0.restore(arg1);
|
|
3650
3761
|
};
|
|
3651
|
-
imports.wbg.
|
|
3762
|
+
imports.wbg.__wbg_setTimeout_b4ee584b3f982e97 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3652
3763
|
const ret = arg0.setTimeout(arg1, arg2);
|
|
3653
3764
|
return ret;
|
|
3654
3765
|
}, arguments) };
|
|
3655
|
-
imports.wbg.
|
|
3766
|
+
imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
|
|
3656
3767
|
arg0[arg1 >>> 0] = arg2;
|
|
3657
3768
|
};
|
|
3658
|
-
imports.wbg.__wbg_set_23d69db4e5c66a6e = function(arg0, arg1, arg2) {
|
|
3659
|
-
arg0.set(arg1, arg2 >>> 0);
|
|
3660
|
-
};
|
|
3661
3769
|
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
3662
3770
|
arg0[arg1] = arg2;
|
|
3663
3771
|
};
|
|
3664
|
-
imports.wbg.
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
imports.wbg.__wbg_set_76818dc3c59a63d5 = function(arg0, arg1, arg2) {
|
|
3772
|
+
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
3773
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
3774
|
+
};
|
|
3775
|
+
imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
|
|
3669
3776
|
const ret = arg0.set(arg1, arg2);
|
|
3670
3777
|
return ret;
|
|
3671
3778
|
};
|
|
3672
|
-
imports.wbg.
|
|
3779
|
+
imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3780
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
3781
|
+
return ret;
|
|
3782
|
+
}, arguments) };
|
|
3783
|
+
imports.wbg.__wbg_setbody_5923b78a95eedf29 = function(arg0, arg1) {
|
|
3673
3784
|
arg0.body = arg1;
|
|
3674
3785
|
};
|
|
3675
|
-
imports.wbg.
|
|
3786
|
+
imports.wbg.__wbg_setcredentials_c3a22f1cd105a2c6 = function(arg0, arg1) {
|
|
3676
3787
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
3677
3788
|
};
|
|
3678
|
-
imports.wbg.
|
|
3789
|
+
imports.wbg.__wbg_setheaders_834c0bdb6a8949ad = function(arg0, arg1) {
|
|
3679
3790
|
arg0.headers = arg1;
|
|
3680
3791
|
};
|
|
3681
|
-
imports.wbg.
|
|
3792
|
+
imports.wbg.__wbg_setmethod_3c5280fe5d890842 = function(arg0, arg1, arg2) {
|
|
3682
3793
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
3683
3794
|
};
|
|
3684
|
-
imports.wbg.
|
|
3795
|
+
imports.wbg.__wbg_setmode_5dc300b865044b65 = function(arg0, arg1) {
|
|
3685
3796
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
3686
3797
|
};
|
|
3687
|
-
imports.wbg.
|
|
3798
|
+
imports.wbg.__wbg_setsignal_75b21ef3a81de905 = function(arg0, arg1) {
|
|
3688
3799
|
arg0.signal = arg1;
|
|
3689
3800
|
};
|
|
3690
|
-
imports.wbg.
|
|
3801
|
+
imports.wbg.__wbg_signal_aaf9ad74119f20a4 = function(arg0) {
|
|
3691
3802
|
const ret = arg0.signal;
|
|
3692
3803
|
return ret;
|
|
3693
3804
|
};
|
|
@@ -3702,23 +3813,23 @@ function __wbg_get_imports() {
|
|
|
3702
3813
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3703
3814
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3704
3815
|
};
|
|
3705
|
-
imports.wbg.
|
|
3816
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
|
|
3706
3817
|
const ret = typeof global === 'undefined' ? null : global;
|
|
3707
3818
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3708
3819
|
};
|
|
3709
|
-
imports.wbg.
|
|
3820
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
|
|
3710
3821
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
3711
3822
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3712
3823
|
};
|
|
3713
|
-
imports.wbg.
|
|
3824
|
+
imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
|
|
3714
3825
|
const ret = typeof self === 'undefined' ? null : self;
|
|
3715
3826
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3716
3827
|
};
|
|
3717
|
-
imports.wbg.
|
|
3828
|
+
imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
|
|
3718
3829
|
const ret = typeof window === 'undefined' ? null : window;
|
|
3719
3830
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3720
3831
|
};
|
|
3721
|
-
imports.wbg.
|
|
3832
|
+
imports.wbg.__wbg_status_f6360336ca686bf0 = function(arg0) {
|
|
3722
3833
|
const ret = arg0.status;
|
|
3723
3834
|
return ret;
|
|
3724
3835
|
};
|
|
@@ -3726,34 +3837,34 @@ function __wbg_get_imports() {
|
|
|
3726
3837
|
const ret = arg0.step(arg1);
|
|
3727
3838
|
return ret;
|
|
3728
3839
|
};
|
|
3729
|
-
imports.wbg.
|
|
3840
|
+
imports.wbg.__wbg_stringify_f7ed6987935b4a24 = function() { return handleError(function (arg0) {
|
|
3730
3841
|
const ret = JSON.stringify(arg0);
|
|
3731
3842
|
return ret;
|
|
3732
3843
|
}, arguments) };
|
|
3733
|
-
imports.wbg.
|
|
3844
|
+
imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
|
|
3734
3845
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3735
3846
|
return ret;
|
|
3736
3847
|
};
|
|
3737
|
-
imports.wbg.
|
|
3848
|
+
imports.wbg.__wbg_text_7805bea50de2af49 = function() { return handleError(function (arg0) {
|
|
3738
3849
|
const ret = arg0.text();
|
|
3739
3850
|
return ret;
|
|
3740
3851
|
}, arguments) };
|
|
3741
|
-
imports.wbg.
|
|
3852
|
+
imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
|
|
3742
3853
|
const ret = arg0.then(arg1);
|
|
3743
3854
|
return ret;
|
|
3744
3855
|
};
|
|
3745
|
-
imports.wbg.
|
|
3856
|
+
imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
|
|
3746
3857
|
const ret = arg0.then(arg1, arg2);
|
|
3747
3858
|
return ret;
|
|
3748
3859
|
};
|
|
3749
|
-
imports.wbg.
|
|
3860
|
+
imports.wbg.__wbg_url_ae10c34ca209681d = function(arg0, arg1) {
|
|
3750
3861
|
const ret = arg1.url;
|
|
3751
3862
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3752
3863
|
const len1 = WASM_VECTOR_LEN;
|
|
3753
3864
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3754
3865
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3755
3866
|
};
|
|
3756
|
-
imports.wbg.
|
|
3867
|
+
imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
|
|
3757
3868
|
const ret = arg0.value;
|
|
3758
3869
|
return ret;
|
|
3759
3870
|
};
|
|
@@ -3799,14 +3910,14 @@ function __wbg_get_imports() {
|
|
|
3799
3910
|
const ret = arg0.versions;
|
|
3800
3911
|
return ret;
|
|
3801
3912
|
};
|
|
3802
|
-
imports.wbg.
|
|
3913
|
+
imports.wbg.__wbg_view_fd8a56e8983f448d = function(arg0) {
|
|
3803
3914
|
const ret = arg0.view;
|
|
3804
3915
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3805
3916
|
};
|
|
3806
|
-
imports.wbg.
|
|
3917
|
+
imports.wbg.__wbg_warn_4ca3906c248c47c4 = function(arg0) {
|
|
3807
3918
|
console.warn(arg0);
|
|
3808
3919
|
};
|
|
3809
|
-
imports.wbg.
|
|
3920
|
+
imports.wbg.__wbg_warn_aaf1f4664a035bd6 = function(arg0, arg1, arg2, arg3) {
|
|
3810
3921
|
console.warn(arg0, arg1, arg2, arg3);
|
|
3811
3922
|
};
|
|
3812
3923
|
imports.wbg.__wbg_wasm_a5f31e71db23f94b = function(arg0) {
|
|
@@ -3824,6 +3935,10 @@ function __wbg_get_imports() {
|
|
|
3824
3935
|
const ret = +arg0;
|
|
3825
3936
|
return ret;
|
|
3826
3937
|
};
|
|
3938
|
+
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
3939
|
+
const ret = arg0;
|
|
3940
|
+
return ret;
|
|
3941
|
+
};
|
|
3827
3942
|
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
3828
3943
|
const v = arg0;
|
|
3829
3944
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
@@ -3838,8 +3953,8 @@ function __wbg_get_imports() {
|
|
|
3838
3953
|
const ret = false;
|
|
3839
3954
|
return ret;
|
|
3840
3955
|
};
|
|
3841
|
-
imports.wbg.
|
|
3842
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3956
|
+
imports.wbg.__wbindgen_closure_wrapper11373 = function(arg0, arg1, arg2) {
|
|
3957
|
+
const ret = makeMutClosure(arg0, arg1, 2597, __wbg_adapter_52);
|
|
3843
3958
|
return ret;
|
|
3844
3959
|
};
|
|
3845
3960
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|