@xmtp/wasm-bindings 1.6.2 → 1.6.6-dev.ce60f3f
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 +386 -343
- package/dist/bindings_wasm.js +573 -301
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +341 -317
- package/package.json +1 -1
package/dist/bindings_wasm.js
CHANGED
|
@@ -225,12 +225,6 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
225
225
|
return real;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
function _assertClass(instance, klass) {
|
|
229
|
-
if (!(instance instanceof klass)) {
|
|
230
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
228
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
235
229
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
236
230
|
for (let i = 0; i < array.length; i++) {
|
|
@@ -240,22 +234,6 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
240
234
|
WASM_VECTOR_LEN = array.length;
|
|
241
235
|
return ptr;
|
|
242
236
|
}
|
|
243
|
-
/**
|
|
244
|
-
* @param {string} v3_host
|
|
245
|
-
* @param {string | null | undefined} gateway_host
|
|
246
|
-
* @param {string[]} inbox_ids
|
|
247
|
-
* @returns {Promise<InboxState[]>}
|
|
248
|
-
*/
|
|
249
|
-
export function inboxStateFromInboxIds(v3_host, gateway_host, inbox_ids) {
|
|
250
|
-
const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
251
|
-
const len0 = WASM_VECTOR_LEN;
|
|
252
|
-
var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
253
|
-
var len1 = WASM_VECTOR_LEN;
|
|
254
|
-
const ptr2 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
255
|
-
const len2 = WASM_VECTOR_LEN;
|
|
256
|
-
const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
257
|
-
return ret;
|
|
258
|
-
}
|
|
259
237
|
|
|
260
238
|
function takeFromExternrefTable0(idx) {
|
|
261
239
|
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
@@ -263,12 +241,43 @@ function takeFromExternrefTable0(idx) {
|
|
|
263
241
|
return value;
|
|
264
242
|
}
|
|
265
243
|
|
|
244
|
+
function _assertClass(instance, klass) {
|
|
245
|
+
if (!(instance instanceof klass)) {
|
|
246
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* @param {Uint8Array} bytes
|
|
251
|
+
* @returns {RemoteAttachment}
|
|
252
|
+
*/
|
|
253
|
+
export function decodeRemoteAttachment(bytes) {
|
|
254
|
+
const ret = wasm.decodeRemoteAttachment(bytes);
|
|
255
|
+
if (ret[2]) {
|
|
256
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
257
|
+
}
|
|
258
|
+
return RemoteAttachment.__wrap(ret[0]);
|
|
259
|
+
}
|
|
260
|
+
|
|
266
261
|
function passArray8ToWasm0(arg, malloc) {
|
|
267
262
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
268
263
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
269
264
|
WASM_VECTOR_LEN = arg.length;
|
|
270
265
|
return ptr;
|
|
271
266
|
}
|
|
267
|
+
/**
|
|
268
|
+
* @param {RemoteAttachment} remoteAttachment
|
|
269
|
+
* @returns {Uint8Array}
|
|
270
|
+
*/
|
|
271
|
+
export function encodeRemoteAttachment(remoteAttachment) {
|
|
272
|
+
_assertClass(remoteAttachment, RemoteAttachment);
|
|
273
|
+
var ptr0 = remoteAttachment.__destroy_into_raw();
|
|
274
|
+
const ret = wasm.encodeRemoteAttachment(ptr0);
|
|
275
|
+
if (ret[2]) {
|
|
276
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
277
|
+
}
|
|
278
|
+
return takeFromExternrefTable0(ret[0]);
|
|
279
|
+
}
|
|
280
|
+
|
|
272
281
|
/**
|
|
273
282
|
* @param {Uint8Array} bytes
|
|
274
283
|
* @returns {Reply}
|
|
@@ -322,29 +331,18 @@ export function decodeActions(bytes) {
|
|
|
322
331
|
}
|
|
323
332
|
|
|
324
333
|
/**
|
|
325
|
-
* @param {
|
|
326
|
-
* @
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
_assertClass(multiRemoteAttachment, MultiRemoteAttachment);
|
|
330
|
-
var ptr0 = multiRemoteAttachment.__destroy_into_raw();
|
|
331
|
-
const ret = wasm.encodeMultiRemoteAttachment(ptr0);
|
|
332
|
-
if (ret[2]) {
|
|
333
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
334
|
-
}
|
|
335
|
-
return takeFromExternrefTable0(ret[0]);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* @param {Uint8Array} bytes
|
|
340
|
-
* @returns {MultiRemoteAttachment}
|
|
334
|
+
* @param {string} host
|
|
335
|
+
* @param {string | null | undefined} gatewayHost
|
|
336
|
+
* @param {Identifier} accountIdentifier
|
|
337
|
+
* @returns {Promise<string | undefined>}
|
|
341
338
|
*/
|
|
342
|
-
export function
|
|
343
|
-
const
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
339
|
+
export function getInboxIdForIdentifier(host, gatewayHost, accountIdentifier) {
|
|
340
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
341
|
+
const len0 = WASM_VECTOR_LEN;
|
|
342
|
+
var ptr1 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
343
|
+
var len1 = WASM_VECTOR_LEN;
|
|
344
|
+
const ret = wasm.getInboxIdForIdentifier(ptr0, len0, ptr1, len1, accountIdentifier);
|
|
345
|
+
return ret;
|
|
348
346
|
}
|
|
349
347
|
|
|
350
348
|
/**
|
|
@@ -372,82 +370,130 @@ export function generateInboxId(accountIdentifier, nonce) {
|
|
|
372
370
|
}
|
|
373
371
|
|
|
374
372
|
/**
|
|
375
|
-
* @param {
|
|
376
|
-
* @
|
|
377
|
-
* @param {Identifier} accountIdentifier
|
|
378
|
-
* @returns {Promise<string | undefined>}
|
|
373
|
+
* @param {Uint8Array} bytes
|
|
374
|
+
* @returns {GroupUpdated}
|
|
379
375
|
*/
|
|
380
|
-
export function
|
|
381
|
-
const
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
return ret;
|
|
376
|
+
export function decodeGroupUpdated(bytes) {
|
|
377
|
+
const ret = wasm.decodeGroupUpdated(bytes);
|
|
378
|
+
if (ret[2]) {
|
|
379
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
380
|
+
}
|
|
381
|
+
return GroupUpdated.__wrap(ret[0]);
|
|
387
382
|
}
|
|
388
383
|
|
|
389
384
|
/**
|
|
390
|
-
* @param {
|
|
391
|
-
* @
|
|
392
|
-
* @param {SignatureRequestHandle} signature_request
|
|
393
|
-
* @returns {Promise<void>}
|
|
385
|
+
* @param {Uint8Array} bytes
|
|
386
|
+
* @returns {Intent}
|
|
394
387
|
*/
|
|
395
|
-
export function
|
|
396
|
-
const
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
388
|
+
export function decodeIntent(bytes) {
|
|
389
|
+
const ret = wasm.decodeIntent(bytes);
|
|
390
|
+
if (ret[2]) {
|
|
391
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
392
|
+
}
|
|
393
|
+
return Intent.__wrap(ret[0]);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* @param {Intent} intent
|
|
398
|
+
* @returns {Uint8Array}
|
|
399
|
+
*/
|
|
400
|
+
export function encodeIntent(intent) {
|
|
401
|
+
_assertClass(intent, Intent);
|
|
402
|
+
var ptr0 = intent.__destroy_into_raw();
|
|
403
|
+
const ret = wasm.encodeIntent(ptr0);
|
|
404
|
+
if (ret[2]) {
|
|
405
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
406
|
+
}
|
|
407
|
+
return takeFromExternrefTable0(ret[0]);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* @param {Uint8Array} bytes
|
|
412
|
+
* @returns {ReadReceipt}
|
|
413
|
+
*/
|
|
414
|
+
export function decodeReadReceipt(bytes) {
|
|
415
|
+
const ret = wasm.decodeReadReceipt(bytes);
|
|
416
|
+
if (ret[2]) {
|
|
417
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
418
|
+
}
|
|
419
|
+
return ReadReceipt.__wrap(ret[0]);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* @param {ReadReceipt} readReceipt
|
|
424
|
+
* @returns {Uint8Array}
|
|
425
|
+
*/
|
|
426
|
+
export function encodeReadReceipt(readReceipt) {
|
|
427
|
+
_assertClass(readReceipt, ReadReceipt);
|
|
428
|
+
var ptr0 = readReceipt.__destroy_into_raw();
|
|
429
|
+
const ret = wasm.encodeReadReceipt(ptr0);
|
|
430
|
+
if (ret[2]) {
|
|
431
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
432
|
+
}
|
|
433
|
+
return takeFromExternrefTable0(ret[0]);
|
|
403
434
|
}
|
|
404
435
|
|
|
405
436
|
/**
|
|
406
437
|
* @param {string} v3_host
|
|
407
438
|
* @param {string | null | undefined} gateway_host
|
|
408
|
-
* @param {
|
|
409
|
-
* @
|
|
410
|
-
* @param {Uint8Array[]} installation_ids
|
|
411
|
-
* @returns {SignatureRequestHandle}
|
|
439
|
+
* @param {string[]} inbox_ids
|
|
440
|
+
* @returns {Promise<InboxState[]>}
|
|
412
441
|
*/
|
|
413
|
-
export function
|
|
442
|
+
export function inboxStateFromInboxIds(v3_host, gateway_host, inbox_ids) {
|
|
414
443
|
const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
415
444
|
const len0 = WASM_VECTOR_LEN;
|
|
416
445
|
var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
417
446
|
var len1 = WASM_VECTOR_LEN;
|
|
418
|
-
const ptr2 =
|
|
447
|
+
const ptr2 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
419
448
|
const len2 = WASM_VECTOR_LEN;
|
|
420
|
-
const
|
|
421
|
-
|
|
422
|
-
|
|
449
|
+
const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
450
|
+
return ret;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* @param {Uint8Array} bytes
|
|
455
|
+
* @returns {Attachment}
|
|
456
|
+
*/
|
|
457
|
+
export function decodeAttachment(bytes) {
|
|
458
|
+
const ret = wasm.decodeAttachment(bytes);
|
|
423
459
|
if (ret[2]) {
|
|
424
460
|
throw takeFromExternrefTable0(ret[1]);
|
|
425
461
|
}
|
|
426
|
-
return
|
|
462
|
+
return Attachment.__wrap(ret[0]);
|
|
427
463
|
}
|
|
428
464
|
|
|
429
465
|
/**
|
|
430
|
-
* @param {
|
|
431
|
-
* @
|
|
432
|
-
* @param {Uint8Array} public_key
|
|
466
|
+
* @param {Attachment} attachment
|
|
467
|
+
* @returns {Uint8Array}
|
|
433
468
|
*/
|
|
434
|
-
export function
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
const ret = wasm.
|
|
438
|
-
if (ret[
|
|
439
|
-
throw takeFromExternrefTable0(ret[
|
|
469
|
+
export function encodeAttachment(attachment) {
|
|
470
|
+
_assertClass(attachment, Attachment);
|
|
471
|
+
var ptr0 = attachment.__destroy_into_raw();
|
|
472
|
+
const ret = wasm.encodeAttachment(ptr0);
|
|
473
|
+
if (ret[2]) {
|
|
474
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
440
475
|
}
|
|
476
|
+
return takeFromExternrefTable0(ret[0]);
|
|
441
477
|
}
|
|
442
478
|
|
|
443
479
|
/**
|
|
444
|
-
* @param {
|
|
480
|
+
* @param {Uint8Array} bytes
|
|
481
|
+
* @returns {any}
|
|
482
|
+
*/
|
|
483
|
+
export function decodeWalletSendCalls(bytes) {
|
|
484
|
+
const ret = wasm.decodeWalletSendCalls(bytes);
|
|
485
|
+
if (ret[2]) {
|
|
486
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
487
|
+
}
|
|
488
|
+
return takeFromExternrefTable0(ret[0]);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* @param {any} wallet_send_calls
|
|
445
493
|
* @returns {Uint8Array}
|
|
446
494
|
*/
|
|
447
|
-
export function
|
|
448
|
-
|
|
449
|
-
var ptr0 = intent.__destroy_into_raw();
|
|
450
|
-
const ret = wasm.encodeIntent(ptr0);
|
|
495
|
+
export function encodeWalletSendCalls(wallet_send_calls) {
|
|
496
|
+
const ret = wasm.encodeWalletSendCalls(wallet_send_calls);
|
|
451
497
|
if (ret[2]) {
|
|
452
498
|
throw takeFromExternrefTable0(ret[1]);
|
|
453
499
|
}
|
|
@@ -456,24 +502,87 @@ export function encodeIntent(intent) {
|
|
|
456
502
|
|
|
457
503
|
/**
|
|
458
504
|
* @param {Uint8Array} bytes
|
|
459
|
-
* @returns {
|
|
505
|
+
* @returns {TransactionReference}
|
|
460
506
|
*/
|
|
461
|
-
export function
|
|
462
|
-
const ret = wasm.
|
|
507
|
+
export function decodeTransactionReference(bytes) {
|
|
508
|
+
const ret = wasm.decodeTransactionReference(bytes);
|
|
463
509
|
if (ret[2]) {
|
|
464
510
|
throw takeFromExternrefTable0(ret[1]);
|
|
465
511
|
}
|
|
466
|
-
return
|
|
512
|
+
return TransactionReference.__wrap(ret[0]);
|
|
467
513
|
}
|
|
468
514
|
|
|
469
515
|
/**
|
|
470
|
-
* @param {
|
|
516
|
+
* @param {TransactionReference} transactionReference
|
|
471
517
|
* @returns {Uint8Array}
|
|
472
518
|
*/
|
|
473
|
-
export function
|
|
474
|
-
_assertClass(
|
|
475
|
-
var ptr0 =
|
|
476
|
-
const ret = wasm.
|
|
519
|
+
export function encodeTransactionReference(transactionReference) {
|
|
520
|
+
_assertClass(transactionReference, TransactionReference);
|
|
521
|
+
var ptr0 = transactionReference.__destroy_into_raw();
|
|
522
|
+
const ret = wasm.encodeTransactionReference(ptr0);
|
|
523
|
+
if (ret[2]) {
|
|
524
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
525
|
+
}
|
|
526
|
+
return takeFromExternrefTable0(ret[0]);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
531
|
+
* @returns {Uint8Array}
|
|
532
|
+
*/
|
|
533
|
+
export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
|
|
534
|
+
_assertClass(multiRemoteAttachment, MultiRemoteAttachment);
|
|
535
|
+
var ptr0 = multiRemoteAttachment.__destroy_into_raw();
|
|
536
|
+
const ret = wasm.encodeMultiRemoteAttachment(ptr0);
|
|
537
|
+
if (ret[2]) {
|
|
538
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
539
|
+
}
|
|
540
|
+
return takeFromExternrefTable0(ret[0]);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* @param {Uint8Array} bytes
|
|
545
|
+
* @returns {MultiRemoteAttachment}
|
|
546
|
+
*/
|
|
547
|
+
export function decodeMultiRemoteAttachment(bytes) {
|
|
548
|
+
const ret = wasm.decodeMultiRemoteAttachment(bytes);
|
|
549
|
+
if (ret[2]) {
|
|
550
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
551
|
+
}
|
|
552
|
+
return MultiRemoteAttachment.__wrap(ret[0]);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* @param {Uint8Array} bytes
|
|
557
|
+
* @returns {string}
|
|
558
|
+
*/
|
|
559
|
+
export function decodeXmtpText(bytes) {
|
|
560
|
+
let deferred2_0;
|
|
561
|
+
let deferred2_1;
|
|
562
|
+
try {
|
|
563
|
+
const ret = wasm.decodeXmtpText(bytes);
|
|
564
|
+
var ptr1 = ret[0];
|
|
565
|
+
var len1 = ret[1];
|
|
566
|
+
if (ret[3]) {
|
|
567
|
+
ptr1 = 0; len1 = 0;
|
|
568
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
569
|
+
}
|
|
570
|
+
deferred2_0 = ptr1;
|
|
571
|
+
deferred2_1 = len1;
|
|
572
|
+
return getStringFromWasm0(ptr1, len1);
|
|
573
|
+
} finally {
|
|
574
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* @param {string} text
|
|
580
|
+
* @returns {Uint8Array}
|
|
581
|
+
*/
|
|
582
|
+
export function encodeXmtpText(text) {
|
|
583
|
+
const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
584
|
+
const len0 = WASM_VECTOR_LEN;
|
|
585
|
+
const ret = wasm.encodeXmtpText(ptr0, len0);
|
|
477
586
|
if (ret[2]) {
|
|
478
587
|
throw takeFromExternrefTable0(ret[1]);
|
|
479
588
|
}
|
|
@@ -492,6 +601,20 @@ export function decodeReaction(bytes) {
|
|
|
492
601
|
return Reaction.__wrap(ret[0]);
|
|
493
602
|
}
|
|
494
603
|
|
|
604
|
+
/**
|
|
605
|
+
* @param {Reaction} reaction
|
|
606
|
+
* @returns {Uint8Array}
|
|
607
|
+
*/
|
|
608
|
+
export function encodeReaction(reaction) {
|
|
609
|
+
_assertClass(reaction, Reaction);
|
|
610
|
+
var ptr0 = reaction.__destroy_into_raw();
|
|
611
|
+
const ret = wasm.encodeReaction(ptr0);
|
|
612
|
+
if (ret[2]) {
|
|
613
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
614
|
+
}
|
|
615
|
+
return takeFromExternrefTable0(ret[0]);
|
|
616
|
+
}
|
|
617
|
+
|
|
495
618
|
/**
|
|
496
619
|
* @param {string} host
|
|
497
620
|
* @param {string} inbox_id
|
|
@@ -538,6 +661,60 @@ export function createClient(host, inbox_id, account_identifier, db_path, encryp
|
|
|
538
661
|
return ret;
|
|
539
662
|
}
|
|
540
663
|
|
|
664
|
+
/**
|
|
665
|
+
* @param {string} signature_text
|
|
666
|
+
* @param {Uint8Array} signature_bytes
|
|
667
|
+
* @param {Uint8Array} public_key
|
|
668
|
+
*/
|
|
669
|
+
export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
|
|
670
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
671
|
+
const len0 = WASM_VECTOR_LEN;
|
|
672
|
+
const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
|
|
673
|
+
if (ret[1]) {
|
|
674
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* @param {string} v3_host
|
|
680
|
+
* @param {string | null | undefined} gateway_host
|
|
681
|
+
* @param {Identifier} recovery_identifier
|
|
682
|
+
* @param {string} inbox_id
|
|
683
|
+
* @param {Uint8Array[]} installation_ids
|
|
684
|
+
* @returns {SignatureRequestHandle}
|
|
685
|
+
*/
|
|
686
|
+
export function revokeInstallationsSignatureRequest(v3_host, gateway_host, recovery_identifier, inbox_id, installation_ids) {
|
|
687
|
+
const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
688
|
+
const len0 = WASM_VECTOR_LEN;
|
|
689
|
+
var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
690
|
+
var len1 = WASM_VECTOR_LEN;
|
|
691
|
+
const ptr2 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
692
|
+
const len2 = WASM_VECTOR_LEN;
|
|
693
|
+
const ptr3 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
|
|
694
|
+
const len3 = WASM_VECTOR_LEN;
|
|
695
|
+
const ret = wasm.revokeInstallationsSignatureRequest(ptr0, len0, ptr1, len1, recovery_identifier, ptr2, len2, ptr3, len3);
|
|
696
|
+
if (ret[2]) {
|
|
697
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
698
|
+
}
|
|
699
|
+
return SignatureRequestHandle.__wrap(ret[0]);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* @param {string} v3_host
|
|
704
|
+
* @param {string | null | undefined} gateway_host
|
|
705
|
+
* @param {SignatureRequestHandle} signature_request
|
|
706
|
+
* @returns {Promise<void>}
|
|
707
|
+
*/
|
|
708
|
+
export function applySignatureRequest(v3_host, gateway_host, signature_request) {
|
|
709
|
+
const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
710
|
+
const len0 = WASM_VECTOR_LEN;
|
|
711
|
+
var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
712
|
+
var len1 = WASM_VECTOR_LEN;
|
|
713
|
+
_assertClass(signature_request, SignatureRequestHandle);
|
|
714
|
+
const ret = wasm.applySignatureRequest(ptr0, len0, ptr1, len1, signature_request.__wbg_ptr);
|
|
715
|
+
return ret;
|
|
716
|
+
}
|
|
717
|
+
|
|
541
718
|
/**
|
|
542
719
|
* Entry point invoked by JavaScript in a worker.
|
|
543
720
|
* @param {number} ptr
|
|
@@ -549,24 +726,24 @@ export function task_worker_entry_point(ptr) {
|
|
|
549
726
|
}
|
|
550
727
|
}
|
|
551
728
|
|
|
552
|
-
function
|
|
553
|
-
wasm.
|
|
729
|
+
function wasm_bindgen__convert__closures_____invoke__h7a7839898bdc8c05(arg0, arg1) {
|
|
730
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7a7839898bdc8c05(arg0, arg1);
|
|
554
731
|
}
|
|
555
732
|
|
|
556
|
-
function
|
|
557
|
-
wasm.
|
|
733
|
+
function wasm_bindgen__convert__closures_____invoke__h922fe5fb24b1beed(arg0, arg1) {
|
|
734
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h922fe5fb24b1beed(arg0, arg1);
|
|
558
735
|
}
|
|
559
736
|
|
|
560
|
-
function
|
|
561
|
-
wasm.
|
|
737
|
+
function wasm_bindgen__convert__closures_____invoke__h03e85ac1b34d0273(arg0, arg1, arg2) {
|
|
738
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h03e85ac1b34d0273(arg0, arg1, arg2);
|
|
562
739
|
}
|
|
563
740
|
|
|
564
|
-
function
|
|
565
|
-
wasm.
|
|
741
|
+
function wasm_bindgen__convert__closures_____invoke__he553f5a75ceef16c(arg0, arg1) {
|
|
742
|
+
wasm.wasm_bindgen__convert__closures_____invoke__he553f5a75ceef16c(arg0, arg1);
|
|
566
743
|
}
|
|
567
744
|
|
|
568
|
-
function
|
|
569
|
-
wasm.
|
|
745
|
+
function wasm_bindgen__convert__closures_____invoke__h68a31ad8ab9398c3(arg0, arg1, arg2, arg3) {
|
|
746
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h68a31ad8ab9398c3(arg0, arg1, arg2, arg3);
|
|
570
747
|
}
|
|
571
748
|
|
|
572
749
|
/**
|
|
@@ -1347,158 +1524,63 @@ export class Client {
|
|
|
1347
1524
|
wasm.__wbg_client_free(ptr, 0);
|
|
1348
1525
|
}
|
|
1349
1526
|
/**
|
|
1350
|
-
*
|
|
1351
|
-
*
|
|
1352
|
-
*
|
|
1353
|
-
* * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
|
|
1354
|
-
* * Otherwise, the state will be read from the local database.
|
|
1355
|
-
*
|
|
1356
|
-
* @param {boolean} refresh_from_network
|
|
1357
|
-
* @returns {Promise<InboxState>}
|
|
1358
|
-
*/
|
|
1359
|
-
inboxState(refresh_from_network) {
|
|
1360
|
-
const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
|
|
1361
|
-
return ret;
|
|
1362
|
-
}
|
|
1363
|
-
/**
|
|
1364
|
-
* @param {string} inbox_id
|
|
1365
|
-
* @returns {Promise<InboxState>}
|
|
1366
|
-
*/
|
|
1367
|
-
getLatestInboxState(inbox_id) {
|
|
1368
|
-
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1369
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1370
|
-
const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
|
|
1371
|
-
return ret;
|
|
1372
|
-
}
|
|
1373
|
-
/**
|
|
1374
|
-
*
|
|
1375
|
-
* * Get key package statuses for a list of installation IDs.
|
|
1376
|
-
* *
|
|
1377
|
-
* * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
|
|
1378
|
-
*
|
|
1379
|
-
* @param {string[]} installation_ids
|
|
1380
|
-
* @returns {Promise<any>}
|
|
1527
|
+
* @param {ConsentEntityType} entity_type
|
|
1528
|
+
* @param {string} entity
|
|
1529
|
+
* @returns {Promise<ConsentState>}
|
|
1381
1530
|
*/
|
|
1382
|
-
|
|
1383
|
-
const ptr0 =
|
|
1531
|
+
getConsentState(entity_type, entity) {
|
|
1532
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1384
1533
|
const len0 = WASM_VECTOR_LEN;
|
|
1385
|
-
const ret = wasm.
|
|
1386
|
-
return ret;
|
|
1387
|
-
}
|
|
1388
|
-
/**
|
|
1389
|
-
* @param {SignatureRequestHandle} signature_request
|
|
1390
|
-
* @returns {Promise<void>}
|
|
1391
|
-
*/
|
|
1392
|
-
registerIdentity(signature_request) {
|
|
1393
|
-
_assertClass(signature_request, SignatureRequestHandle);
|
|
1394
|
-
var ptr0 = signature_request.__destroy_into_raw();
|
|
1395
|
-
const ret = wasm.client_registerIdentity(this.__wbg_ptr, ptr0);
|
|
1534
|
+
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
1396
1535
|
return ret;
|
|
1397
1536
|
}
|
|
1398
1537
|
/**
|
|
1399
|
-
* @param {
|
|
1538
|
+
* @param {Consent[]} records
|
|
1400
1539
|
* @returns {Promise<void>}
|
|
1401
1540
|
*/
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
const ret = wasm.client_applySignatureRequest(this.__wbg_ptr, signature_request.__wbg_ptr);
|
|
1405
|
-
return ret;
|
|
1406
|
-
}
|
|
1407
|
-
/**
|
|
1408
|
-
* @param {string} signature_text
|
|
1409
|
-
* @returns {Uint8Array}
|
|
1410
|
-
*/
|
|
1411
|
-
signWithInstallationKey(signature_text) {
|
|
1412
|
-
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1413
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1414
|
-
const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
|
|
1415
|
-
if (ret[2]) {
|
|
1416
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1417
|
-
}
|
|
1418
|
-
return takeFromExternrefTable0(ret[0]);
|
|
1419
|
-
}
|
|
1420
|
-
/**
|
|
1421
|
-
* @returns {SignatureRequestHandle | undefined}
|
|
1422
|
-
*/
|
|
1423
|
-
createInboxSignatureRequest() {
|
|
1424
|
-
const ret = wasm.client_createInboxSignatureRequest(this.__wbg_ptr);
|
|
1425
|
-
if (ret[2]) {
|
|
1426
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1427
|
-
}
|
|
1428
|
-
return ret[0] === 0 ? undefined : SignatureRequestHandle.__wrap(ret[0]);
|
|
1429
|
-
}
|
|
1430
|
-
/**
|
|
1431
|
-
* @param {Identifier} new_identifier
|
|
1432
|
-
* @returns {Promise<SignatureRequestHandle>}
|
|
1433
|
-
*/
|
|
1434
|
-
addWalletSignatureRequest(new_identifier) {
|
|
1435
|
-
const ret = wasm.client_addWalletSignatureRequest(this.__wbg_ptr, new_identifier);
|
|
1436
|
-
return ret;
|
|
1437
|
-
}
|
|
1438
|
-
/**
|
|
1439
|
-
* @param {Identifier} identifier
|
|
1440
|
-
* @returns {Promise<SignatureRequestHandle>}
|
|
1441
|
-
*/
|
|
1442
|
-
revokeWalletSignatureRequest(identifier) {
|
|
1443
|
-
const ret = wasm.client_revokeWalletSignatureRequest(this.__wbg_ptr, identifier);
|
|
1444
|
-
return ret;
|
|
1445
|
-
}
|
|
1446
|
-
/**
|
|
1447
|
-
* @param {string} signature_text
|
|
1448
|
-
* @param {Uint8Array} signature_bytes
|
|
1449
|
-
*/
|
|
1450
|
-
verifySignedWithInstallationKey(signature_text, signature_bytes) {
|
|
1451
|
-
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1452
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1453
|
-
const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
|
|
1454
|
-
if (ret[1]) {
|
|
1455
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
1456
|
-
}
|
|
1457
|
-
}
|
|
1458
|
-
/**
|
|
1459
|
-
* @param {Uint8Array[]} installation_ids
|
|
1460
|
-
* @returns {Promise<SignatureRequestHandle>}
|
|
1461
|
-
*/
|
|
1462
|
-
revokeInstallationsSignatureRequest(installation_ids) {
|
|
1463
|
-
const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
|
|
1541
|
+
setConsentStates(records) {
|
|
1542
|
+
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
1464
1543
|
const len0 = WASM_VECTOR_LEN;
|
|
1465
|
-
const ret = wasm.
|
|
1466
|
-
return ret;
|
|
1467
|
-
}
|
|
1468
|
-
/**
|
|
1469
|
-
* @param {Identifier} new_recovery_identifier
|
|
1470
|
-
* @returns {Promise<SignatureRequestHandle>}
|
|
1471
|
-
*/
|
|
1472
|
-
changeRecoveryIdentifierSignatureRequest(new_recovery_identifier) {
|
|
1473
|
-
const ret = wasm.client_changeRecoveryIdentifierSignatureRequest(this.__wbg_ptr, new_recovery_identifier);
|
|
1544
|
+
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
1474
1545
|
return ret;
|
|
1475
1546
|
}
|
|
1476
1547
|
/**
|
|
1477
|
-
*
|
|
1548
|
+
*
|
|
1549
|
+
* * Get the client's inbox state.
|
|
1550
|
+
* *
|
|
1551
|
+
* * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
|
|
1552
|
+
* * Otherwise, the state will be read from the local database.
|
|
1553
|
+
*
|
|
1554
|
+
* @param {boolean} refresh_from_network
|
|
1555
|
+
* @returns {Promise<InboxState>}
|
|
1478
1556
|
*/
|
|
1479
|
-
|
|
1480
|
-
const ret = wasm.
|
|
1557
|
+
inboxState(refresh_from_network) {
|
|
1558
|
+
const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
|
|
1481
1559
|
return ret;
|
|
1482
1560
|
}
|
|
1483
1561
|
/**
|
|
1484
|
-
* @param {
|
|
1485
|
-
* @
|
|
1486
|
-
* @returns {Promise<ConsentState>}
|
|
1562
|
+
* @param {string} inbox_id
|
|
1563
|
+
* @returns {Promise<InboxState>}
|
|
1487
1564
|
*/
|
|
1488
|
-
|
|
1489
|
-
const ptr0 = passStringToWasm0(
|
|
1565
|
+
getLatestInboxState(inbox_id) {
|
|
1566
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1490
1567
|
const len0 = WASM_VECTOR_LEN;
|
|
1491
|
-
const ret = wasm.
|
|
1568
|
+
const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
|
|
1492
1569
|
return ret;
|
|
1493
1570
|
}
|
|
1494
1571
|
/**
|
|
1495
|
-
*
|
|
1496
|
-
*
|
|
1572
|
+
*
|
|
1573
|
+
* * Get key package statuses for a list of installation IDs.
|
|
1574
|
+
* *
|
|
1575
|
+
* * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
|
|
1576
|
+
*
|
|
1577
|
+
* @param {string[]} installation_ids
|
|
1578
|
+
* @returns {Promise<any>}
|
|
1497
1579
|
*/
|
|
1498
|
-
|
|
1499
|
-
const ptr0 = passArrayJsValueToWasm0(
|
|
1580
|
+
getKeyPackageStatusesForInstallationIds(installation_ids) {
|
|
1581
|
+
const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
|
|
1500
1582
|
const len0 = WASM_VECTOR_LEN;
|
|
1501
|
-
const ret = wasm.
|
|
1583
|
+
const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
|
|
1502
1584
|
return ret;
|
|
1503
1585
|
}
|
|
1504
1586
|
/**
|
|
@@ -1698,6 +1780,101 @@ export class Client {
|
|
|
1698
1780
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1699
1781
|
}
|
|
1700
1782
|
}
|
|
1783
|
+
/**
|
|
1784
|
+
* @param {SignatureRequestHandle} signature_request
|
|
1785
|
+
* @returns {Promise<void>}
|
|
1786
|
+
*/
|
|
1787
|
+
registerIdentity(signature_request) {
|
|
1788
|
+
_assertClass(signature_request, SignatureRequestHandle);
|
|
1789
|
+
var ptr0 = signature_request.__destroy_into_raw();
|
|
1790
|
+
const ret = wasm.client_registerIdentity(this.__wbg_ptr, ptr0);
|
|
1791
|
+
return ret;
|
|
1792
|
+
}
|
|
1793
|
+
/**
|
|
1794
|
+
* @param {SignatureRequestHandle} signature_request
|
|
1795
|
+
* @returns {Promise<void>}
|
|
1796
|
+
*/
|
|
1797
|
+
applySignatureRequest(signature_request) {
|
|
1798
|
+
_assertClass(signature_request, SignatureRequestHandle);
|
|
1799
|
+
const ret = wasm.client_applySignatureRequest(this.__wbg_ptr, signature_request.__wbg_ptr);
|
|
1800
|
+
return ret;
|
|
1801
|
+
}
|
|
1802
|
+
/**
|
|
1803
|
+
* @param {string} signature_text
|
|
1804
|
+
* @returns {Uint8Array}
|
|
1805
|
+
*/
|
|
1806
|
+
signWithInstallationKey(signature_text) {
|
|
1807
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1808
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1809
|
+
const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
|
|
1810
|
+
if (ret[2]) {
|
|
1811
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1812
|
+
}
|
|
1813
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1814
|
+
}
|
|
1815
|
+
/**
|
|
1816
|
+
* @returns {SignatureRequestHandle | undefined}
|
|
1817
|
+
*/
|
|
1818
|
+
createInboxSignatureRequest() {
|
|
1819
|
+
const ret = wasm.client_createInboxSignatureRequest(this.__wbg_ptr);
|
|
1820
|
+
if (ret[2]) {
|
|
1821
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1822
|
+
}
|
|
1823
|
+
return ret[0] === 0 ? undefined : SignatureRequestHandle.__wrap(ret[0]);
|
|
1824
|
+
}
|
|
1825
|
+
/**
|
|
1826
|
+
* @param {Identifier} new_identifier
|
|
1827
|
+
* @returns {Promise<SignatureRequestHandle>}
|
|
1828
|
+
*/
|
|
1829
|
+
addWalletSignatureRequest(new_identifier) {
|
|
1830
|
+
const ret = wasm.client_addWalletSignatureRequest(this.__wbg_ptr, new_identifier);
|
|
1831
|
+
return ret;
|
|
1832
|
+
}
|
|
1833
|
+
/**
|
|
1834
|
+
* @param {Identifier} identifier
|
|
1835
|
+
* @returns {Promise<SignatureRequestHandle>}
|
|
1836
|
+
*/
|
|
1837
|
+
revokeWalletSignatureRequest(identifier) {
|
|
1838
|
+
const ret = wasm.client_revokeWalletSignatureRequest(this.__wbg_ptr, identifier);
|
|
1839
|
+
return ret;
|
|
1840
|
+
}
|
|
1841
|
+
/**
|
|
1842
|
+
* @param {string} signature_text
|
|
1843
|
+
* @param {Uint8Array} signature_bytes
|
|
1844
|
+
*/
|
|
1845
|
+
verifySignedWithInstallationKey(signature_text, signature_bytes) {
|
|
1846
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1847
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1848
|
+
const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
|
|
1849
|
+
if (ret[1]) {
|
|
1850
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
/**
|
|
1854
|
+
* @param {Uint8Array[]} installation_ids
|
|
1855
|
+
* @returns {Promise<SignatureRequestHandle>}
|
|
1856
|
+
*/
|
|
1857
|
+
revokeInstallationsSignatureRequest(installation_ids) {
|
|
1858
|
+
const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
|
|
1859
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1860
|
+
const ret = wasm.client_revokeInstallationsSignatureRequest(this.__wbg_ptr, ptr0, len0);
|
|
1861
|
+
return ret;
|
|
1862
|
+
}
|
|
1863
|
+
/**
|
|
1864
|
+
* @param {Identifier} new_recovery_identifier
|
|
1865
|
+
* @returns {Promise<SignatureRequestHandle>}
|
|
1866
|
+
*/
|
|
1867
|
+
changeRecoveryIdentifierSignatureRequest(new_recovery_identifier) {
|
|
1868
|
+
const ret = wasm.client_changeRecoveryIdentifierSignatureRequest(this.__wbg_ptr, new_recovery_identifier);
|
|
1869
|
+
return ret;
|
|
1870
|
+
}
|
|
1871
|
+
/**
|
|
1872
|
+
* @returns {Promise<SignatureRequestHandle | undefined>}
|
|
1873
|
+
*/
|
|
1874
|
+
revokeAllOtherInstallationsSignatureRequest() {
|
|
1875
|
+
const ret = wasm.client_revokeAllOtherInstallationsSignatureRequest(this.__wbg_ptr);
|
|
1876
|
+
return ret;
|
|
1877
|
+
}
|
|
1701
1878
|
}
|
|
1702
1879
|
if (Symbol.dispose) Client.prototype[Symbol.dispose] = Client.prototype.free;
|
|
1703
1880
|
|
|
@@ -1852,7 +2029,7 @@ export class ContentTypeId {
|
|
|
1852
2029
|
set authorityId(arg0) {
|
|
1853
2030
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1854
2031
|
const len0 = WASM_VECTOR_LEN;
|
|
1855
|
-
wasm.
|
|
2032
|
+
wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
|
|
1856
2033
|
}
|
|
1857
2034
|
/**
|
|
1858
2035
|
* @returns {string}
|
|
@@ -1875,7 +2052,7 @@ export class ContentTypeId {
|
|
|
1875
2052
|
set typeId(arg0) {
|
|
1876
2053
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1877
2054
|
const len0 = WASM_VECTOR_LEN;
|
|
1878
|
-
wasm.
|
|
2055
|
+
wasm.__wbg_set_attachment_content(this.__wbg_ptr, ptr0, len0);
|
|
1879
2056
|
}
|
|
1880
2057
|
/**
|
|
1881
2058
|
* @returns {number}
|
|
@@ -2140,6 +2317,16 @@ export class Conversation {
|
|
|
2140
2317
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
2141
2318
|
}
|
|
2142
2319
|
}
|
|
2320
|
+
/**
|
|
2321
|
+
* @returns {GroupMembershipState}
|
|
2322
|
+
*/
|
|
2323
|
+
membershipState() {
|
|
2324
|
+
const ret = wasm.conversation_membershipState(this.__wbg_ptr);
|
|
2325
|
+
if (ret[2]) {
|
|
2326
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2327
|
+
}
|
|
2328
|
+
return ret[0];
|
|
2329
|
+
}
|
|
2143
2330
|
/**
|
|
2144
2331
|
* Publish all unpublished messages
|
|
2145
2332
|
* @returns {Promise<void>}
|
|
@@ -3882,7 +4069,7 @@ export class GroupMember {
|
|
|
3882
4069
|
set inboxId(arg0) {
|
|
3883
4070
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3884
4071
|
const len0 = WASM_VECTOR_LEN;
|
|
3885
|
-
wasm.
|
|
4072
|
+
wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
|
|
3886
4073
|
}
|
|
3887
4074
|
/**
|
|
3888
4075
|
* @returns {Identifier[]}
|
|
@@ -4163,7 +4350,7 @@ export class GroupUpdated {
|
|
|
4163
4350
|
set initiatedByInboxId(arg0) {
|
|
4164
4351
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4165
4352
|
const len0 = WASM_VECTOR_LEN;
|
|
4166
|
-
wasm.
|
|
4353
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
4167
4354
|
}
|
|
4168
4355
|
/**
|
|
4169
4356
|
* @returns {Inbox[]}
|
|
@@ -4199,6 +4386,23 @@ export class GroupUpdated {
|
|
|
4199
4386
|
const len0 = WASM_VECTOR_LEN;
|
|
4200
4387
|
wasm.__wbg_set_groupupdated_removedInboxes(this.__wbg_ptr, ptr0, len0);
|
|
4201
4388
|
}
|
|
4389
|
+
/**
|
|
4390
|
+
* @returns {Inbox[]}
|
|
4391
|
+
*/
|
|
4392
|
+
get leftInboxes() {
|
|
4393
|
+
const ret = wasm.__wbg_get_groupupdated_leftInboxes(this.__wbg_ptr);
|
|
4394
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
4395
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
4396
|
+
return v1;
|
|
4397
|
+
}
|
|
4398
|
+
/**
|
|
4399
|
+
* @param {Inbox[]} arg0
|
|
4400
|
+
*/
|
|
4401
|
+
set leftInboxes(arg0) {
|
|
4402
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
4403
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4404
|
+
wasm.__wbg_set_groupupdated_leftInboxes(this.__wbg_ptr, ptr0, len0);
|
|
4405
|
+
}
|
|
4202
4406
|
/**
|
|
4203
4407
|
* @returns {MetadataFieldChange[]}
|
|
4204
4408
|
*/
|
|
@@ -4216,6 +4420,74 @@ export class GroupUpdated {
|
|
|
4216
4420
|
const len0 = WASM_VECTOR_LEN;
|
|
4217
4421
|
wasm.__wbg_set_groupupdated_metadataFieldChanges(this.__wbg_ptr, ptr0, len0);
|
|
4218
4422
|
}
|
|
4423
|
+
/**
|
|
4424
|
+
* @returns {Inbox[]}
|
|
4425
|
+
*/
|
|
4426
|
+
get addedAdminInboxes() {
|
|
4427
|
+
const ret = wasm.__wbg_get_groupupdated_addedAdminInboxes(this.__wbg_ptr);
|
|
4428
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
4429
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
4430
|
+
return v1;
|
|
4431
|
+
}
|
|
4432
|
+
/**
|
|
4433
|
+
* @param {Inbox[]} arg0
|
|
4434
|
+
*/
|
|
4435
|
+
set addedAdminInboxes(arg0) {
|
|
4436
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
4437
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4438
|
+
wasm.__wbg_set_groupupdated_addedAdminInboxes(this.__wbg_ptr, ptr0, len0);
|
|
4439
|
+
}
|
|
4440
|
+
/**
|
|
4441
|
+
* @returns {Inbox[]}
|
|
4442
|
+
*/
|
|
4443
|
+
get removedAdminInboxes() {
|
|
4444
|
+
const ret = wasm.__wbg_get_groupupdated_removedAdminInboxes(this.__wbg_ptr);
|
|
4445
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
4446
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
4447
|
+
return v1;
|
|
4448
|
+
}
|
|
4449
|
+
/**
|
|
4450
|
+
* @param {Inbox[]} arg0
|
|
4451
|
+
*/
|
|
4452
|
+
set removedAdminInboxes(arg0) {
|
|
4453
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
4454
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4455
|
+
wasm.__wbg_set_groupupdated_removedAdminInboxes(this.__wbg_ptr, ptr0, len0);
|
|
4456
|
+
}
|
|
4457
|
+
/**
|
|
4458
|
+
* @returns {Inbox[]}
|
|
4459
|
+
*/
|
|
4460
|
+
get addedSuperAdminInboxes() {
|
|
4461
|
+
const ret = wasm.__wbg_get_groupupdated_addedSuperAdminInboxes(this.__wbg_ptr);
|
|
4462
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
4463
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
4464
|
+
return v1;
|
|
4465
|
+
}
|
|
4466
|
+
/**
|
|
4467
|
+
* @param {Inbox[]} arg0
|
|
4468
|
+
*/
|
|
4469
|
+
set addedSuperAdminInboxes(arg0) {
|
|
4470
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
4471
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4472
|
+
wasm.__wbg_set_groupupdated_addedSuperAdminInboxes(this.__wbg_ptr, ptr0, len0);
|
|
4473
|
+
}
|
|
4474
|
+
/**
|
|
4475
|
+
* @returns {Inbox[]}
|
|
4476
|
+
*/
|
|
4477
|
+
get removedSuperAdminInboxes() {
|
|
4478
|
+
const ret = wasm.__wbg_get_groupupdated_removedSuperAdminInboxes(this.__wbg_ptr);
|
|
4479
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
4480
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
4481
|
+
return v1;
|
|
4482
|
+
}
|
|
4483
|
+
/**
|
|
4484
|
+
* @param {Inbox[]} arg0
|
|
4485
|
+
*/
|
|
4486
|
+
set removedSuperAdminInboxes(arg0) {
|
|
4487
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
4488
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4489
|
+
wasm.__wbg_set_groupupdated_removedSuperAdminInboxes(this.__wbg_ptr, ptr0, len0);
|
|
4490
|
+
}
|
|
4219
4491
|
}
|
|
4220
4492
|
if (Symbol.dispose) GroupUpdated.prototype[Symbol.dispose] = GroupUpdated.prototype.free;
|
|
4221
4493
|
|
|
@@ -4402,7 +4674,7 @@ export class Inbox {
|
|
|
4402
4674
|
set inboxId(arg0) {
|
|
4403
4675
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4404
4676
|
const len0 = WASM_VECTOR_LEN;
|
|
4405
|
-
wasm.
|
|
4677
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
4406
4678
|
}
|
|
4407
4679
|
}
|
|
4408
4680
|
if (Symbol.dispose) Inbox.prototype[Symbol.dispose] = Inbox.prototype.free;
|
|
@@ -4602,7 +4874,7 @@ export class Installation {
|
|
|
4602
4874
|
set id(arg0) {
|
|
4603
4875
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4604
4876
|
const len0 = WASM_VECTOR_LEN;
|
|
4605
|
-
wasm.
|
|
4877
|
+
wasm.__wbg_set_installation_id(this.__wbg_ptr, ptr0, len0);
|
|
4606
4878
|
}
|
|
4607
4879
|
/**
|
|
4608
4880
|
* @returns {bigint | undefined}
|
|
@@ -4615,7 +4887,7 @@ export class Installation {
|
|
|
4615
4887
|
* @param {bigint | null} [arg0]
|
|
4616
4888
|
*/
|
|
4617
4889
|
set clientTimestampNs(arg0) {
|
|
4618
|
-
wasm.
|
|
4890
|
+
wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
4619
4891
|
}
|
|
4620
4892
|
}
|
|
4621
4893
|
if (Symbol.dispose) Installation.prototype[Symbol.dispose] = Installation.prototype.free;
|
|
@@ -4892,7 +5164,7 @@ export class KeyPackageStatus {
|
|
|
4892
5164
|
_assertClass(arg0, Lifetime);
|
|
4893
5165
|
ptr0 = arg0.__destroy_into_raw();
|
|
4894
5166
|
}
|
|
4895
|
-
wasm.
|
|
5167
|
+
wasm.__wbg_set_createdmoptions_messageDisappearingSettings(this.__wbg_ptr, ptr0);
|
|
4896
5168
|
}
|
|
4897
5169
|
/**
|
|
4898
5170
|
* @returns {string | undefined}
|
|
@@ -4946,14 +5218,14 @@ export class Lifetime {
|
|
|
4946
5218
|
* @returns {bigint}
|
|
4947
5219
|
*/
|
|
4948
5220
|
get not_before() {
|
|
4949
|
-
const ret = wasm.
|
|
5221
|
+
const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
|
|
4950
5222
|
return BigInt.asUintN(64, ret);
|
|
4951
5223
|
}
|
|
4952
5224
|
/**
|
|
4953
5225
|
* @param {bigint} arg0
|
|
4954
5226
|
*/
|
|
4955
5227
|
set not_before(arg0) {
|
|
4956
|
-
wasm.
|
|
5228
|
+
wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
|
|
4957
5229
|
}
|
|
4958
5230
|
/**
|
|
4959
5231
|
* @returns {bigint}
|
|
@@ -5032,7 +5304,7 @@ export class ListConversationsOptions {
|
|
|
5032
5304
|
* @param {bigint | null} [arg0]
|
|
5033
5305
|
*/
|
|
5034
5306
|
set createdAfterNs(arg0) {
|
|
5035
|
-
wasm.
|
|
5307
|
+
wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
5036
5308
|
}
|
|
5037
5309
|
/**
|
|
5038
5310
|
* @returns {bigint | undefined}
|
|
@@ -5200,7 +5472,7 @@ export class ListMessagesOptions {
|
|
|
5200
5472
|
* @param {bigint | null} [arg0]
|
|
5201
5473
|
*/
|
|
5202
5474
|
set sentBeforeNs(arg0) {
|
|
5203
|
-
wasm.
|
|
5475
|
+
wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
5204
5476
|
}
|
|
5205
5477
|
/**
|
|
5206
5478
|
* @returns {bigint | undefined}
|
|
@@ -5630,14 +5902,14 @@ export class MessageDisappearingSettings {
|
|
|
5630
5902
|
* @returns {bigint}
|
|
5631
5903
|
*/
|
|
5632
5904
|
get inNs() {
|
|
5633
|
-
const ret = wasm.
|
|
5905
|
+
const ret = wasm.__wbg_get_lifetime_not_after(this.__wbg_ptr);
|
|
5634
5906
|
return ret;
|
|
5635
5907
|
}
|
|
5636
5908
|
/**
|
|
5637
5909
|
* @param {bigint} arg0
|
|
5638
5910
|
*/
|
|
5639
5911
|
set inNs(arg0) {
|
|
5640
|
-
wasm.
|
|
5912
|
+
wasm.__wbg_set_lifetime_not_after(this.__wbg_ptr, arg0);
|
|
5641
5913
|
}
|
|
5642
5914
|
/**
|
|
5643
5915
|
* @param {bigint} from_ns
|
|
@@ -5765,7 +6037,7 @@ export class MetadataFieldChange {
|
|
|
5765
6037
|
set fieldName(arg0) {
|
|
5766
6038
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5767
6039
|
const len0 = WASM_VECTOR_LEN;
|
|
5768
|
-
wasm.
|
|
6040
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
5769
6041
|
}
|
|
5770
6042
|
/**
|
|
5771
6043
|
* @returns {string | undefined}
|
|
@@ -5805,7 +6077,7 @@ export class MetadataFieldChange {
|
|
|
5805
6077
|
set newValue(arg0) {
|
|
5806
6078
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5807
6079
|
var len0 = WASM_VECTOR_LEN;
|
|
5808
|
-
wasm.
|
|
6080
|
+
wasm.__wbg_set_metadatafieldchange_newValue(this.__wbg_ptr, ptr0, len0);
|
|
5809
6081
|
}
|
|
5810
6082
|
}
|
|
5811
6083
|
if (Symbol.dispose) MetadataFieldChange.prototype[Symbol.dispose] = MetadataFieldChange.prototype.free;
|
|
@@ -6223,7 +6495,7 @@ export class Reaction {
|
|
|
6223
6495
|
set reference(arg0) {
|
|
6224
6496
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6225
6497
|
const len0 = WASM_VECTOR_LEN;
|
|
6226
|
-
wasm.
|
|
6498
|
+
wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
|
|
6227
6499
|
}
|
|
6228
6500
|
/**
|
|
6229
6501
|
* @returns {string}
|
|
@@ -6246,7 +6518,7 @@ export class Reaction {
|
|
|
6246
6518
|
set referenceInboxId(arg0) {
|
|
6247
6519
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6248
6520
|
const len0 = WASM_VECTOR_LEN;
|
|
6249
|
-
wasm.
|
|
6521
|
+
wasm.__wbg_set_attachment_content(this.__wbg_ptr, ptr0, len0);
|
|
6250
6522
|
}
|
|
6251
6523
|
/**
|
|
6252
6524
|
* @returns {ReactionAction}
|
|
@@ -6282,7 +6554,7 @@ export class Reaction {
|
|
|
6282
6554
|
set content(arg0) {
|
|
6283
6555
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6284
6556
|
const len0 = WASM_VECTOR_LEN;
|
|
6285
|
-
wasm.
|
|
6557
|
+
wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
|
|
6286
6558
|
}
|
|
6287
6559
|
/**
|
|
6288
6560
|
* @returns {ReactionSchema}
|
|
@@ -6365,7 +6637,7 @@ export class ReactionPayload {
|
|
|
6365
6637
|
set reference(arg0) {
|
|
6366
6638
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6367
6639
|
const len0 = WASM_VECTOR_LEN;
|
|
6368
|
-
wasm.
|
|
6640
|
+
wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
|
|
6369
6641
|
}
|
|
6370
6642
|
/**
|
|
6371
6643
|
* @returns {string}
|
|
@@ -6388,7 +6660,7 @@ export class ReactionPayload {
|
|
|
6388
6660
|
set referenceInboxId(arg0) {
|
|
6389
6661
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6390
6662
|
const len0 = WASM_VECTOR_LEN;
|
|
6391
|
-
wasm.
|
|
6663
|
+
wasm.__wbg_set_attachment_content(this.__wbg_ptr, ptr0, len0);
|
|
6392
6664
|
}
|
|
6393
6665
|
/**
|
|
6394
6666
|
* @returns {ReactionActionPayload}
|
|
@@ -6424,7 +6696,7 @@ export class ReactionPayload {
|
|
|
6424
6696
|
set content(arg0) {
|
|
6425
6697
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6426
6698
|
const len0 = WASM_VECTOR_LEN;
|
|
6427
|
-
wasm.
|
|
6699
|
+
wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
|
|
6428
6700
|
}
|
|
6429
6701
|
/**
|
|
6430
6702
|
* @returns {ReactionSchemaPayload}
|
|
@@ -6516,7 +6788,7 @@ export class RemoteAttachment {
|
|
|
6516
6788
|
set url(arg0) {
|
|
6517
6789
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6518
6790
|
const len0 = WASM_VECTOR_LEN;
|
|
6519
|
-
wasm.
|
|
6791
|
+
wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
|
|
6520
6792
|
}
|
|
6521
6793
|
/**
|
|
6522
6794
|
* @returns {string}
|
|
@@ -6616,14 +6888,14 @@ export class RemoteAttachment {
|
|
|
6616
6888
|
wasm.__wbg_set_remoteattachment_scheme(this.__wbg_ptr, ptr0, len0);
|
|
6617
6889
|
}
|
|
6618
6890
|
/**
|
|
6619
|
-
* @returns {
|
|
6891
|
+
* @returns {number}
|
|
6620
6892
|
*/
|
|
6621
6893
|
get contentLength() {
|
|
6622
6894
|
const ret = wasm.__wbg_get_remoteattachment_contentLength(this.__wbg_ptr);
|
|
6623
|
-
return ret;
|
|
6895
|
+
return ret >>> 0;
|
|
6624
6896
|
}
|
|
6625
6897
|
/**
|
|
6626
|
-
* @param {
|
|
6898
|
+
* @param {number} arg0
|
|
6627
6899
|
*/
|
|
6628
6900
|
set contentLength(arg0) {
|
|
6629
6901
|
wasm.__wbg_set_remoteattachment_contentLength(this.__wbg_ptr, arg0);
|
|
@@ -6912,7 +7184,7 @@ export class Reply {
|
|
|
6912
7184
|
set reference(arg0) {
|
|
6913
7185
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6914
7186
|
const len0 = WASM_VECTOR_LEN;
|
|
6915
|
-
wasm.
|
|
7187
|
+
wasm.__wbg_set_remoteattachment_scheme(this.__wbg_ptr, ptr0, len0);
|
|
6916
7188
|
}
|
|
6917
7189
|
/**
|
|
6918
7190
|
* @returns {string | undefined}
|
|
@@ -6932,7 +7204,7 @@ export class Reply {
|
|
|
6932
7204
|
set referenceInboxId(arg0) {
|
|
6933
7205
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6934
7206
|
var len0 = WASM_VECTOR_LEN;
|
|
6935
|
-
wasm.
|
|
7207
|
+
wasm.__wbg_set_remoteattachment_filename(this.__wbg_ptr, ptr0, len0);
|
|
6936
7208
|
}
|
|
6937
7209
|
/**
|
|
6938
7210
|
* @param {EncodedContent} content
|
|
@@ -7166,7 +7438,7 @@ export class TextContent {
|
|
|
7166
7438
|
set content(arg0) {
|
|
7167
7439
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7168
7440
|
const len0 = WASM_VECTOR_LEN;
|
|
7169
|
-
wasm.
|
|
7441
|
+
wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
|
|
7170
7442
|
}
|
|
7171
7443
|
}
|
|
7172
7444
|
if (Symbol.dispose) TextContent.prototype[Symbol.dispose] = TextContent.prototype.free;
|
|
@@ -7217,7 +7489,7 @@ export class TransactionMetadata {
|
|
|
7217
7489
|
set transactionType(arg0) {
|
|
7218
7490
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7219
7491
|
const len0 = WASM_VECTOR_LEN;
|
|
7220
|
-
wasm.
|
|
7492
|
+
wasm.__wbg_set_conversationdebuginfo_forkDetails(this.__wbg_ptr, ptr0, len0);
|
|
7221
7493
|
}
|
|
7222
7494
|
/**
|
|
7223
7495
|
* @returns {string}
|
|
@@ -7240,7 +7512,7 @@ export class TransactionMetadata {
|
|
|
7240
7512
|
set currency(arg0) {
|
|
7241
7513
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7242
7514
|
const len0 = WASM_VECTOR_LEN;
|
|
7243
|
-
wasm.
|
|
7515
|
+
wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
|
|
7244
7516
|
}
|
|
7245
7517
|
/**
|
|
7246
7518
|
* @returns {number}
|
|
@@ -7289,7 +7561,7 @@ export class TransactionMetadata {
|
|
|
7289
7561
|
set fromAddress(arg0) {
|
|
7290
7562
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7291
7563
|
const len0 = WASM_VECTOR_LEN;
|
|
7292
|
-
wasm.
|
|
7564
|
+
wasm.__wbg_set_conversationdebuginfo_remoteCommitLog(this.__wbg_ptr, ptr0, len0);
|
|
7293
7565
|
}
|
|
7294
7566
|
/**
|
|
7295
7567
|
* @returns {string}
|
|
@@ -8110,7 +8382,7 @@ function __wbg_get_imports() {
|
|
|
8110
8382
|
const a = state0.a;
|
|
8111
8383
|
state0.a = 0;
|
|
8112
8384
|
try {
|
|
8113
|
-
return
|
|
8385
|
+
return wasm_bindgen__convert__closures_____invoke__h68a31ad8ab9398c3(a, state0.b, arg0, arg1);
|
|
8114
8386
|
} finally {
|
|
8115
8387
|
state0.a = a;
|
|
8116
8388
|
}
|
|
@@ -8201,26 +8473,23 @@ function __wbg_get_imports() {
|
|
|
8201
8473
|
const ret = Date.now();
|
|
8202
8474
|
return ret;
|
|
8203
8475
|
};
|
|
8204
|
-
imports.wbg.
|
|
8476
|
+
imports.wbg.__wbg_on_auth_required_29e9f07ec738ae41 = function() { return handleError(function (arg0) {
|
|
8205
8477
|
const ret = arg0.on_auth_required();
|
|
8206
8478
|
return ret;
|
|
8207
8479
|
}, arguments) };
|
|
8208
|
-
imports.wbg.
|
|
8480
|
+
imports.wbg.__wbg_on_close_770a5331097d64e5 = function(arg0) {
|
|
8209
8481
|
arg0.on_close();
|
|
8210
8482
|
};
|
|
8211
|
-
imports.wbg.
|
|
8483
|
+
imports.wbg.__wbg_on_consent_update_ceb3de42638bcfa5 = function(arg0, arg1) {
|
|
8212
8484
|
arg0.on_consent_update(arg1);
|
|
8213
8485
|
};
|
|
8214
|
-
imports.wbg.
|
|
8486
|
+
imports.wbg.__wbg_on_conversation_143b4bca3d329240 = function(arg0, arg1) {
|
|
8215
8487
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
8216
8488
|
};
|
|
8217
|
-
imports.wbg.
|
|
8489
|
+
imports.wbg.__wbg_on_error_082f3f10a72b4ecb = function(arg0, arg1) {
|
|
8218
8490
|
arg0.on_error(arg1);
|
|
8219
8491
|
};
|
|
8220
|
-
imports.wbg.
|
|
8221
|
-
arg0.on_message(Message.__wrap(arg1));
|
|
8222
|
-
};
|
|
8223
|
-
imports.wbg.__wbg_on_message_deleted_c49779aec3c7e0a3 = function(arg0, arg1, arg2) {
|
|
8492
|
+
imports.wbg.__wbg_on_message_deleted_0ac863244e327d7b = function(arg0, arg1, arg2) {
|
|
8224
8493
|
let deferred0_0;
|
|
8225
8494
|
let deferred0_1;
|
|
8226
8495
|
try {
|
|
@@ -8231,7 +8500,10 @@ function __wbg_get_imports() {
|
|
|
8231
8500
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
8232
8501
|
}
|
|
8233
8502
|
};
|
|
8234
|
-
imports.wbg.
|
|
8503
|
+
imports.wbg.__wbg_on_message_f57e56480857f803 = function(arg0, arg1) {
|
|
8504
|
+
arg0.on_message(Message.__wrap(arg1));
|
|
8505
|
+
};
|
|
8506
|
+
imports.wbg.__wbg_on_user_preference_update_856836c512006b95 = function(arg0, arg1, arg2) {
|
|
8235
8507
|
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
8236
8508
|
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
8237
8509
|
arg0.on_user_preference_update(v0);
|
|
@@ -8520,16 +8792,6 @@ function __wbg_get_imports() {
|
|
|
8520
8792
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
8521
8793
|
return ret;
|
|
8522
8794
|
};
|
|
8523
|
-
imports.wbg.__wbindgen_cast_2f81a6d5c564a490 = function(arg0, arg1) {
|
|
8524
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 6970, function: Function { arguments: [], shim_idx: 6971, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8525
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h8a0c80adf0f210e5, wasm_bindgen__convert__closures_____invoke__h753a3e053785270d);
|
|
8526
|
-
return ret;
|
|
8527
|
-
};
|
|
8528
|
-
imports.wbg.__wbindgen_cast_34976a163ea3aeae = function(arg0, arg1) {
|
|
8529
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 6766, function: Function { arguments: [], shim_idx: 6767, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8530
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5e0a3136249b832f, wasm_bindgen__convert__closures_____invoke__h9011598bdd38acb2);
|
|
8531
|
-
return ret;
|
|
8532
|
-
};
|
|
8533
8795
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
8534
8796
|
// Cast intrinsic for `U64 -> Externref`.
|
|
8535
8797
|
const ret = BigInt.asUintN(64, arg0);
|
|
@@ -8542,14 +8804,9 @@ function __wbg_get_imports() {
|
|
|
8542
8804
|
const ret = v0;
|
|
8543
8805
|
return ret;
|
|
8544
8806
|
};
|
|
8545
|
-
imports.wbg.
|
|
8546
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
8547
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
8548
|
-
return ret;
|
|
8549
|
-
};
|
|
8550
|
-
imports.wbg.__wbindgen_cast_8b962a3b668e3729 = function(arg0, arg1) {
|
|
8551
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 7169, function: Function { arguments: [Externref], shim_idx: 7180, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8552
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5faecc40242ea0ca, wasm_bindgen__convert__closures_____invoke__h34df32c886f66f02);
|
|
8807
|
+
imports.wbg.__wbindgen_cast_8dd080359318db87 = function(arg0, arg1) {
|
|
8808
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7157, function: Function { arguments: [], shim_idx: 7158, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8809
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h9f4e0badb87b6c7f, wasm_bindgen__convert__closures_____invoke__he553f5a75ceef16c);
|
|
8553
8810
|
return ret;
|
|
8554
8811
|
};
|
|
8555
8812
|
imports.wbg.__wbindgen_cast_8e37b4ad2f2ba653 = function(arg0, arg1) {
|
|
@@ -8559,6 +8816,11 @@ function __wbg_get_imports() {
|
|
|
8559
8816
|
const ret = v0;
|
|
8560
8817
|
return ret;
|
|
8561
8818
|
};
|
|
8819
|
+
imports.wbg.__wbindgen_cast_937cd3a5cd557156 = function(arg0, arg1) {
|
|
8820
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7190, function: Function { arguments: [Externref], shim_idx: 7191, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8821
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h4589b9dda0a82164, wasm_bindgen__convert__closures_____invoke__h03e85ac1b34d0273);
|
|
8822
|
+
return ret;
|
|
8823
|
+
};
|
|
8562
8824
|
imports.wbg.__wbindgen_cast_998222446b91a002 = function(arg0, arg1) {
|
|
8563
8825
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
8564
8826
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -8571,6 +8833,11 @@ function __wbg_get_imports() {
|
|
|
8571
8833
|
const ret = arg0;
|
|
8572
8834
|
return ret;
|
|
8573
8835
|
};
|
|
8836
|
+
imports.wbg.__wbindgen_cast_9cb605fb7719cb4c = function(arg0, arg1) {
|
|
8837
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 6993, function: Function { arguments: [], shim_idx: 6994, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8838
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h68c8e9e8c7c33e7c, wasm_bindgen__convert__closures_____invoke__h7a7839898bdc8c05);
|
|
8839
|
+
return ret;
|
|
8840
|
+
};
|
|
8574
8841
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
8575
8842
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
8576
8843
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
@@ -8588,6 +8855,11 @@ function __wbg_get_imports() {
|
|
|
8588
8855
|
const ret = v0;
|
|
8589
8856
|
return ret;
|
|
8590
8857
|
};
|
|
8858
|
+
imports.wbg.__wbindgen_cast_e852fcf288a63fef = function(arg0, arg1) {
|
|
8859
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 6778, function: Function { arguments: [], shim_idx: 6779, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8860
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hf682406d9647bfe2, wasm_bindgen__convert__closures_____invoke__h922fe5fb24b1beed);
|
|
8861
|
+
return ret;
|
|
8862
|
+
};
|
|
8591
8863
|
imports.wbg.__wbindgen_cast_f20a506f31063fd0 = function(arg0, arg1) {
|
|
8592
8864
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
8593
8865
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|