@xmtp/wasm-bindings 1.6.6 → 1.6.9
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 +482 -460
- package/dist/bindings_wasm.js +410 -293
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +422 -414
- package/package.json +1 -1
package/dist/bindings_wasm.js
CHANGED
|
@@ -225,41 +225,43 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
225
225
|
return real;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
function takeFromExternrefTable0(idx) {
|
|
229
|
-
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
230
|
-
wasm.__externref_table_dealloc(idx);
|
|
231
|
-
return value;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
228
|
function _assertClass(instance, klass) {
|
|
235
229
|
if (!(instance instanceof klass)) {
|
|
236
230
|
throw new Error(`expected instance of ${klass.name}`);
|
|
237
231
|
}
|
|
238
232
|
}
|
|
233
|
+
|
|
234
|
+
function takeFromExternrefTable0(idx) {
|
|
235
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
236
|
+
wasm.__externref_table_dealloc(idx);
|
|
237
|
+
return value;
|
|
238
|
+
}
|
|
239
239
|
/**
|
|
240
|
-
* @param {
|
|
241
|
-
* @returns {
|
|
240
|
+
* @param {EncodedContent} encoded_content
|
|
241
|
+
* @returns {LeaveRequest}
|
|
242
242
|
*/
|
|
243
|
-
export function
|
|
244
|
-
_assertClass(
|
|
245
|
-
var ptr0 =
|
|
246
|
-
const ret = wasm.
|
|
243
|
+
export function decodeLeaveRequest(encoded_content) {
|
|
244
|
+
_assertClass(encoded_content, EncodedContent);
|
|
245
|
+
var ptr0 = encoded_content.__destroy_into_raw();
|
|
246
|
+
const ret = wasm.decodeLeaveRequest(ptr0);
|
|
247
247
|
if (ret[2]) {
|
|
248
248
|
throw takeFromExternrefTable0(ret[1]);
|
|
249
249
|
}
|
|
250
|
-
return
|
|
250
|
+
return LeaveRequest.__wrap(ret[0]);
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
/**
|
|
254
|
-
* @param {
|
|
255
|
-
* @returns {
|
|
254
|
+
* @param {LeaveRequest} leaveRequest
|
|
255
|
+
* @returns {Uint8Array}
|
|
256
256
|
*/
|
|
257
|
-
export function
|
|
258
|
-
|
|
257
|
+
export function encodeLeaveRequest(leaveRequest) {
|
|
258
|
+
_assertClass(leaveRequest, LeaveRequest);
|
|
259
|
+
var ptr0 = leaveRequest.__destroy_into_raw();
|
|
260
|
+
const ret = wasm.encodeLeaveRequest(ptr0);
|
|
259
261
|
if (ret[2]) {
|
|
260
262
|
throw takeFromExternrefTable0(ret[1]);
|
|
261
263
|
}
|
|
262
|
-
return
|
|
264
|
+
return takeFromExternrefTable0(ret[0]);
|
|
263
265
|
}
|
|
264
266
|
|
|
265
267
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
@@ -272,37 +274,27 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
272
274
|
return ptr;
|
|
273
275
|
}
|
|
274
276
|
/**
|
|
275
|
-
* @param {
|
|
276
|
-
* @returns {
|
|
277
|
+
* @param {EncodedContent} encoded_content
|
|
278
|
+
* @returns {Reply}
|
|
277
279
|
*/
|
|
278
|
-
export function
|
|
279
|
-
|
|
280
|
+
export function decodeReply(encoded_content) {
|
|
281
|
+
_assertClass(encoded_content, EncodedContent);
|
|
282
|
+
var ptr0 = encoded_content.__destroy_into_raw();
|
|
283
|
+
const ret = wasm.decodeReply(ptr0);
|
|
280
284
|
if (ret[2]) {
|
|
281
285
|
throw takeFromExternrefTable0(ret[1]);
|
|
282
286
|
}
|
|
283
|
-
return
|
|
287
|
+
return Reply.__wrap(ret[0]);
|
|
284
288
|
}
|
|
285
289
|
|
|
286
290
|
/**
|
|
287
|
-
* @param {
|
|
291
|
+
* @param {Reply} reply
|
|
288
292
|
* @returns {Uint8Array}
|
|
289
293
|
*/
|
|
290
|
-
export function
|
|
291
|
-
_assertClass(
|
|
292
|
-
var ptr0 =
|
|
293
|
-
const ret = wasm.
|
|
294
|
-
if (ret[2]) {
|
|
295
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
296
|
-
}
|
|
297
|
-
return takeFromExternrefTable0(ret[0]);
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* @param {Uint8Array} bytes
|
|
302
|
-
* @returns {any}
|
|
303
|
-
*/
|
|
304
|
-
export function decodeWalletSendCalls(bytes) {
|
|
305
|
-
const ret = wasm.decodeWalletSendCalls(bytes);
|
|
294
|
+
export function encodeReply(reply) {
|
|
295
|
+
_assertClass(reply, Reply);
|
|
296
|
+
var ptr0 = reply.__destroy_into_raw();
|
|
297
|
+
const ret = wasm.encodeReply(ptr0);
|
|
306
298
|
if (ret[2]) {
|
|
307
299
|
throw takeFromExternrefTable0(ret[1]);
|
|
308
300
|
}
|
|
@@ -310,11 +302,13 @@ export function decodeWalletSendCalls(bytes) {
|
|
|
310
302
|
}
|
|
311
303
|
|
|
312
304
|
/**
|
|
313
|
-
* @param {
|
|
305
|
+
* @param {Actions} actions
|
|
314
306
|
* @returns {Uint8Array}
|
|
315
307
|
*/
|
|
316
|
-
export function
|
|
317
|
-
|
|
308
|
+
export function encodeActions(actions) {
|
|
309
|
+
_assertClass(actions, Actions);
|
|
310
|
+
var ptr0 = actions.__destroy_into_raw();
|
|
311
|
+
const ret = wasm.encodeActions(ptr0);
|
|
318
312
|
if (ret[2]) {
|
|
319
313
|
throw takeFromExternrefTable0(ret[1]);
|
|
320
314
|
}
|
|
@@ -322,28 +316,35 @@ export function encodeWalletSendCalls(wallet_send_calls) {
|
|
|
322
316
|
}
|
|
323
317
|
|
|
324
318
|
/**
|
|
325
|
-
* @param {
|
|
326
|
-
* @returns {
|
|
319
|
+
* @param {EncodedContent} encoded_content
|
|
320
|
+
* @returns {Actions}
|
|
327
321
|
*/
|
|
328
|
-
export function
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
const ret = wasm.
|
|
322
|
+
export function decodeActions(encoded_content) {
|
|
323
|
+
_assertClass(encoded_content, EncodedContent);
|
|
324
|
+
var ptr0 = encoded_content.__destroy_into_raw();
|
|
325
|
+
const ret = wasm.decodeActions(ptr0);
|
|
332
326
|
if (ret[2]) {
|
|
333
327
|
throw takeFromExternrefTable0(ret[1]);
|
|
334
328
|
}
|
|
335
|
-
return
|
|
329
|
+
return Actions.__wrap(ret[0]);
|
|
336
330
|
}
|
|
337
331
|
|
|
332
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
333
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
334
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
335
|
+
WASM_VECTOR_LEN = arg.length;
|
|
336
|
+
return ptr;
|
|
337
|
+
}
|
|
338
338
|
/**
|
|
339
|
-
* @param {
|
|
339
|
+
* @param {Identifier} accountIdentifier
|
|
340
|
+
* @param {bigint | null} [nonce]
|
|
340
341
|
* @returns {string}
|
|
341
342
|
*/
|
|
342
|
-
export function
|
|
343
|
+
export function generateInboxId(accountIdentifier, nonce) {
|
|
343
344
|
let deferred2_0;
|
|
344
345
|
let deferred2_1;
|
|
345
346
|
try {
|
|
346
|
-
const ret = wasm.
|
|
347
|
+
const ret = wasm.generateInboxId(accountIdentifier, !isLikeNone(nonce), isLikeNone(nonce) ? BigInt(0) : nonce);
|
|
347
348
|
var ptr1 = ret[0];
|
|
348
349
|
var len1 = ret[1];
|
|
349
350
|
if (ret[3]) {
|
|
@@ -358,6 +359,21 @@ export function decodeXmtpText(bytes) {
|
|
|
358
359
|
}
|
|
359
360
|
}
|
|
360
361
|
|
|
362
|
+
/**
|
|
363
|
+
* @param {string} host
|
|
364
|
+
* @param {string | null | undefined} gatewayHost
|
|
365
|
+
* @param {Identifier} accountIdentifier
|
|
366
|
+
* @returns {Promise<string | undefined>}
|
|
367
|
+
*/
|
|
368
|
+
export function getInboxIdForIdentifier(host, gatewayHost, accountIdentifier) {
|
|
369
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
370
|
+
const len0 = WASM_VECTOR_LEN;
|
|
371
|
+
var ptr1 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
372
|
+
var len1 = WASM_VECTOR_LEN;
|
|
373
|
+
const ret = wasm.getInboxIdForIdentifier(ptr0, len0, ptr1, len1, accountIdentifier);
|
|
374
|
+
return ret;
|
|
375
|
+
}
|
|
376
|
+
|
|
361
377
|
/**
|
|
362
378
|
* @param {Reaction} reaction
|
|
363
379
|
* @returns {Uint8Array}
|
|
@@ -373,23 +389,75 @@ export function encodeReaction(reaction) {
|
|
|
373
389
|
}
|
|
374
390
|
|
|
375
391
|
/**
|
|
376
|
-
* @param {
|
|
392
|
+
* @param {EncodedContent} encoded_content
|
|
377
393
|
* @returns {Reaction}
|
|
378
394
|
*/
|
|
379
|
-
export function decodeReaction(
|
|
380
|
-
|
|
395
|
+
export function decodeReaction(encoded_content) {
|
|
396
|
+
_assertClass(encoded_content, EncodedContent);
|
|
397
|
+
var ptr0 = encoded_content.__destroy_into_raw();
|
|
398
|
+
const ret = wasm.decodeReaction(ptr0);
|
|
381
399
|
if (ret[2]) {
|
|
382
400
|
throw takeFromExternrefTable0(ret[1]);
|
|
383
401
|
}
|
|
384
402
|
return Reaction.__wrap(ret[0]);
|
|
385
403
|
}
|
|
386
404
|
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
405
|
+
/**
|
|
406
|
+
* @param {EncodedContent} encoded_content
|
|
407
|
+
* @returns {RemoteAttachment}
|
|
408
|
+
*/
|
|
409
|
+
export function decodeRemoteAttachment(encoded_content) {
|
|
410
|
+
_assertClass(encoded_content, EncodedContent);
|
|
411
|
+
var ptr0 = encoded_content.__destroy_into_raw();
|
|
412
|
+
const ret = wasm.decodeRemoteAttachment(ptr0);
|
|
413
|
+
if (ret[2]) {
|
|
414
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
415
|
+
}
|
|
416
|
+
return RemoteAttachment.__wrap(ret[0]);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* @param {RemoteAttachment} remoteAttachment
|
|
421
|
+
* @returns {Uint8Array}
|
|
422
|
+
*/
|
|
423
|
+
export function encodeRemoteAttachment(remoteAttachment) {
|
|
424
|
+
_assertClass(remoteAttachment, RemoteAttachment);
|
|
425
|
+
var ptr0 = remoteAttachment.__destroy_into_raw();
|
|
426
|
+
const ret = wasm.encodeRemoteAttachment(ptr0);
|
|
427
|
+
if (ret[2]) {
|
|
428
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
429
|
+
}
|
|
430
|
+
return takeFromExternrefTable0(ret[0]);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* @param {Intent} intent
|
|
435
|
+
* @returns {Uint8Array}
|
|
436
|
+
*/
|
|
437
|
+
export function encodeIntent(intent) {
|
|
438
|
+
_assertClass(intent, Intent);
|
|
439
|
+
var ptr0 = intent.__destroy_into_raw();
|
|
440
|
+
const ret = wasm.encodeIntent(ptr0);
|
|
441
|
+
if (ret[2]) {
|
|
442
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
443
|
+
}
|
|
444
|
+
return takeFromExternrefTable0(ret[0]);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* @param {EncodedContent} encoded_content
|
|
449
|
+
* @returns {Intent}
|
|
450
|
+
*/
|
|
451
|
+
export function decodeIntent(encoded_content) {
|
|
452
|
+
_assertClass(encoded_content, EncodedContent);
|
|
453
|
+
var ptr0 = encoded_content.__destroy_into_raw();
|
|
454
|
+
const ret = wasm.decodeIntent(ptr0);
|
|
455
|
+
if (ret[2]) {
|
|
456
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
457
|
+
}
|
|
458
|
+
return Intent.__wrap(ret[0]);
|
|
392
459
|
}
|
|
460
|
+
|
|
393
461
|
/**
|
|
394
462
|
* @param {string} v3_host
|
|
395
463
|
* @param {string | null | undefined} gateway_host
|
|
@@ -444,6 +512,45 @@ export function verifySignedWithPublicKey(signature_text, signature_bytes, publi
|
|
|
444
512
|
}
|
|
445
513
|
}
|
|
446
514
|
|
|
515
|
+
/**
|
|
516
|
+
* @param {string} text
|
|
517
|
+
* @returns {Uint8Array}
|
|
518
|
+
*/
|
|
519
|
+
export function encodeXmtpText(text) {
|
|
520
|
+
const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
521
|
+
const len0 = WASM_VECTOR_LEN;
|
|
522
|
+
const ret = wasm.encodeXmtpText(ptr0, len0);
|
|
523
|
+
if (ret[2]) {
|
|
524
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
525
|
+
}
|
|
526
|
+
return takeFromExternrefTable0(ret[0]);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* @param {EncodedContent} encoded_content
|
|
531
|
+
* @returns {string}
|
|
532
|
+
*/
|
|
533
|
+
export function decodeXmtpText(encoded_content) {
|
|
534
|
+
let deferred3_0;
|
|
535
|
+
let deferred3_1;
|
|
536
|
+
try {
|
|
537
|
+
_assertClass(encoded_content, EncodedContent);
|
|
538
|
+
var ptr0 = encoded_content.__destroy_into_raw();
|
|
539
|
+
const ret = wasm.decodeXmtpText(ptr0);
|
|
540
|
+
var ptr2 = ret[0];
|
|
541
|
+
var len2 = ret[1];
|
|
542
|
+
if (ret[3]) {
|
|
543
|
+
ptr2 = 0; len2 = 0;
|
|
544
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
545
|
+
}
|
|
546
|
+
deferred3_0 = ptr2;
|
|
547
|
+
deferred3_1 = len2;
|
|
548
|
+
return getStringFromWasm0(ptr2, len2);
|
|
549
|
+
} finally {
|
|
550
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
|
|
447
554
|
/**
|
|
448
555
|
* @param {string} v3_host
|
|
449
556
|
* @param {string | null | undefined} gateway_host
|
|
@@ -462,55 +569,19 @@ export function inboxStateFromInboxIds(v3_host, gateway_host, inbox_ids) {
|
|
|
462
569
|
}
|
|
463
570
|
|
|
464
571
|
/**
|
|
465
|
-
* @param {
|
|
572
|
+
* @param {EncodedContent} encoded_content
|
|
466
573
|
* @returns {GroupUpdated}
|
|
467
574
|
*/
|
|
468
|
-
export function decodeGroupUpdated(
|
|
469
|
-
|
|
575
|
+
export function decodeGroupUpdated(encoded_content) {
|
|
576
|
+
_assertClass(encoded_content, EncodedContent);
|
|
577
|
+
var ptr0 = encoded_content.__destroy_into_raw();
|
|
578
|
+
const ret = wasm.decodeGroupUpdated(ptr0);
|
|
470
579
|
if (ret[2]) {
|
|
471
580
|
throw takeFromExternrefTable0(ret[1]);
|
|
472
581
|
}
|
|
473
582
|
return GroupUpdated.__wrap(ret[0]);
|
|
474
583
|
}
|
|
475
584
|
|
|
476
|
-
/**
|
|
477
|
-
* @param {Uint8Array} bytes
|
|
478
|
-
* @returns {RemoteAttachment}
|
|
479
|
-
*/
|
|
480
|
-
export function decodeRemoteAttachment(bytes) {
|
|
481
|
-
const ret = wasm.decodeRemoteAttachment(bytes);
|
|
482
|
-
if (ret[2]) {
|
|
483
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
484
|
-
}
|
|
485
|
-
return RemoteAttachment.__wrap(ret[0]);
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
/**
|
|
489
|
-
* @param {RemoteAttachment} remoteAttachment
|
|
490
|
-
* @returns {Uint8Array}
|
|
491
|
-
*/
|
|
492
|
-
export function encodeRemoteAttachment(remoteAttachment) {
|
|
493
|
-
_assertClass(remoteAttachment, RemoteAttachment);
|
|
494
|
-
var ptr0 = remoteAttachment.__destroy_into_raw();
|
|
495
|
-
const ret = wasm.encodeRemoteAttachment(ptr0);
|
|
496
|
-
if (ret[2]) {
|
|
497
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
498
|
-
}
|
|
499
|
-
return takeFromExternrefTable0(ret[0]);
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
/**
|
|
503
|
-
* @param {Uint8Array} bytes
|
|
504
|
-
* @returns {TransactionReference}
|
|
505
|
-
*/
|
|
506
|
-
export function decodeTransactionReference(bytes) {
|
|
507
|
-
const ret = wasm.decodeTransactionReference(bytes);
|
|
508
|
-
if (ret[2]) {
|
|
509
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
510
|
-
}
|
|
511
|
-
return TransactionReference.__wrap(ret[0]);
|
|
512
|
-
}
|
|
513
|
-
|
|
514
585
|
/**
|
|
515
586
|
* @param {TransactionReference} transactionReference
|
|
516
587
|
* @returns {Uint8Array}
|
|
@@ -526,25 +597,27 @@ export function encodeTransactionReference(transactionReference) {
|
|
|
526
597
|
}
|
|
527
598
|
|
|
528
599
|
/**
|
|
529
|
-
* @param {
|
|
530
|
-
* @returns {
|
|
600
|
+
* @param {EncodedContent} encoded_content
|
|
601
|
+
* @returns {TransactionReference}
|
|
531
602
|
*/
|
|
532
|
-
export function
|
|
533
|
-
_assertClass(
|
|
534
|
-
var ptr0 =
|
|
535
|
-
const ret = wasm.
|
|
603
|
+
export function decodeTransactionReference(encoded_content) {
|
|
604
|
+
_assertClass(encoded_content, EncodedContent);
|
|
605
|
+
var ptr0 = encoded_content.__destroy_into_raw();
|
|
606
|
+
const ret = wasm.decodeTransactionReference(ptr0);
|
|
536
607
|
if (ret[2]) {
|
|
537
608
|
throw takeFromExternrefTable0(ret[1]);
|
|
538
609
|
}
|
|
539
|
-
return
|
|
610
|
+
return TransactionReference.__wrap(ret[0]);
|
|
540
611
|
}
|
|
541
612
|
|
|
542
613
|
/**
|
|
543
|
-
* @param {
|
|
614
|
+
* @param {EncodedContent} encoded_content
|
|
544
615
|
* @returns {MultiRemoteAttachment}
|
|
545
616
|
*/
|
|
546
|
-
export function decodeMultiRemoteAttachment(
|
|
547
|
-
|
|
617
|
+
export function decodeMultiRemoteAttachment(encoded_content) {
|
|
618
|
+
_assertClass(encoded_content, EncodedContent);
|
|
619
|
+
var ptr0 = encoded_content.__destroy_into_raw();
|
|
620
|
+
const ret = wasm.decodeMultiRemoteAttachment(ptr0);
|
|
548
621
|
if (ret[2]) {
|
|
549
622
|
throw takeFromExternrefTable0(ret[1]);
|
|
550
623
|
}
|
|
@@ -552,25 +625,13 @@ export function decodeMultiRemoteAttachment(bytes) {
|
|
|
552
625
|
}
|
|
553
626
|
|
|
554
627
|
/**
|
|
555
|
-
* @param {
|
|
556
|
-
* @returns {Actions}
|
|
557
|
-
*/
|
|
558
|
-
export function decodeActions(bytes) {
|
|
559
|
-
const ret = wasm.decodeActions(bytes);
|
|
560
|
-
if (ret[2]) {
|
|
561
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
562
|
-
}
|
|
563
|
-
return Actions.__wrap(ret[0]);
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
/**
|
|
567
|
-
* @param {Actions} actions
|
|
628
|
+
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
568
629
|
* @returns {Uint8Array}
|
|
569
630
|
*/
|
|
570
|
-
export function
|
|
571
|
-
_assertClass(
|
|
572
|
-
var ptr0 =
|
|
573
|
-
const ret = wasm.
|
|
631
|
+
export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
|
|
632
|
+
_assertClass(multiRemoteAttachment, MultiRemoteAttachment);
|
|
633
|
+
var ptr0 = multiRemoteAttachment.__destroy_into_raw();
|
|
634
|
+
const ret = wasm.encodeMultiRemoteAttachment(ptr0);
|
|
574
635
|
if (ret[2]) {
|
|
575
636
|
throw takeFromExternrefTable0(ret[1]);
|
|
576
637
|
}
|
|
@@ -624,64 +685,55 @@ export function createClient(host, inbox_id, account_identifier, db_path, encryp
|
|
|
624
685
|
}
|
|
625
686
|
|
|
626
687
|
/**
|
|
627
|
-
* @param {
|
|
628
|
-
* @
|
|
629
|
-
* @param {Identifier} accountIdentifier
|
|
630
|
-
* @returns {Promise<string | undefined>}
|
|
688
|
+
* @param {Attachment} attachment
|
|
689
|
+
* @returns {Uint8Array}
|
|
631
690
|
*/
|
|
632
|
-
export function
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
691
|
+
export function encodeAttachment(attachment) {
|
|
692
|
+
_assertClass(attachment, Attachment);
|
|
693
|
+
var ptr0 = attachment.__destroy_into_raw();
|
|
694
|
+
const ret = wasm.encodeAttachment(ptr0);
|
|
695
|
+
if (ret[2]) {
|
|
696
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
697
|
+
}
|
|
698
|
+
return takeFromExternrefTable0(ret[0]);
|
|
639
699
|
}
|
|
640
700
|
|
|
641
701
|
/**
|
|
642
|
-
* @param {
|
|
643
|
-
* @
|
|
644
|
-
* @returns {string}
|
|
702
|
+
* @param {EncodedContent} encoded_content
|
|
703
|
+
* @returns {Attachment}
|
|
645
704
|
*/
|
|
646
|
-
export function
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
var len1 = ret[1];
|
|
653
|
-
if (ret[3]) {
|
|
654
|
-
ptr1 = 0; len1 = 0;
|
|
655
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
656
|
-
}
|
|
657
|
-
deferred2_0 = ptr1;
|
|
658
|
-
deferred2_1 = len1;
|
|
659
|
-
return getStringFromWasm0(ptr1, len1);
|
|
660
|
-
} finally {
|
|
661
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
705
|
+
export function decodeAttachment(encoded_content) {
|
|
706
|
+
_assertClass(encoded_content, EncodedContent);
|
|
707
|
+
var ptr0 = encoded_content.__destroy_into_raw();
|
|
708
|
+
const ret = wasm.decodeAttachment(ptr0);
|
|
709
|
+
if (ret[2]) {
|
|
710
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
662
711
|
}
|
|
712
|
+
return Attachment.__wrap(ret[0]);
|
|
663
713
|
}
|
|
664
714
|
|
|
665
715
|
/**
|
|
666
|
-
* @param {
|
|
667
|
-
* @returns {
|
|
716
|
+
* @param {EncodedContent} encoded_content
|
|
717
|
+
* @returns {ReadReceipt}
|
|
668
718
|
*/
|
|
669
|
-
export function
|
|
670
|
-
|
|
719
|
+
export function decodeReadReceipt(encoded_content) {
|
|
720
|
+
_assertClass(encoded_content, EncodedContent);
|
|
721
|
+
var ptr0 = encoded_content.__destroy_into_raw();
|
|
722
|
+
const ret = wasm.decodeReadReceipt(ptr0);
|
|
671
723
|
if (ret[2]) {
|
|
672
724
|
throw takeFromExternrefTable0(ret[1]);
|
|
673
725
|
}
|
|
674
|
-
return
|
|
726
|
+
return ReadReceipt.__wrap(ret[0]);
|
|
675
727
|
}
|
|
676
728
|
|
|
677
729
|
/**
|
|
678
|
-
* @param {
|
|
730
|
+
* @param {ReadReceipt} readReceipt
|
|
679
731
|
* @returns {Uint8Array}
|
|
680
732
|
*/
|
|
681
|
-
export function
|
|
682
|
-
_assertClass(
|
|
683
|
-
var ptr0 =
|
|
684
|
-
const ret = wasm.
|
|
733
|
+
export function encodeReadReceipt(readReceipt) {
|
|
734
|
+
_assertClass(readReceipt, ReadReceipt);
|
|
735
|
+
var ptr0 = readReceipt.__destroy_into_raw();
|
|
736
|
+
const ret = wasm.encodeReadReceipt(ptr0);
|
|
685
737
|
if (ret[2]) {
|
|
686
738
|
throw takeFromExternrefTable0(ret[1]);
|
|
687
739
|
}
|
|
@@ -689,25 +741,25 @@ export function encodeAttachment(attachment) {
|
|
|
689
741
|
}
|
|
690
742
|
|
|
691
743
|
/**
|
|
692
|
-
* @param {
|
|
693
|
-
* @returns {
|
|
744
|
+
* @param {EncodedContent} encoded_content
|
|
745
|
+
* @returns {any}
|
|
694
746
|
*/
|
|
695
|
-
export function
|
|
696
|
-
|
|
747
|
+
export function decodeWalletSendCalls(encoded_content) {
|
|
748
|
+
_assertClass(encoded_content, EncodedContent);
|
|
749
|
+
var ptr0 = encoded_content.__destroy_into_raw();
|
|
750
|
+
const ret = wasm.decodeWalletSendCalls(ptr0);
|
|
697
751
|
if (ret[2]) {
|
|
698
752
|
throw takeFromExternrefTable0(ret[1]);
|
|
699
753
|
}
|
|
700
|
-
return
|
|
754
|
+
return takeFromExternrefTable0(ret[0]);
|
|
701
755
|
}
|
|
702
756
|
|
|
703
757
|
/**
|
|
704
|
-
* @param {
|
|
758
|
+
* @param {any} wallet_send_calls
|
|
705
759
|
* @returns {Uint8Array}
|
|
706
760
|
*/
|
|
707
|
-
export function
|
|
708
|
-
|
|
709
|
-
var ptr0 = intent.__destroy_into_raw();
|
|
710
|
-
const ret = wasm.encodeIntent(ptr0);
|
|
761
|
+
export function encodeWalletSendCalls(wallet_send_calls) {
|
|
762
|
+
const ret = wasm.encodeWalletSendCalls(wallet_send_calls);
|
|
711
763
|
if (ret[2]) {
|
|
712
764
|
throw takeFromExternrefTable0(ret[1]);
|
|
713
765
|
}
|
|
@@ -725,24 +777,24 @@ export function task_worker_entry_point(ptr) {
|
|
|
725
777
|
}
|
|
726
778
|
}
|
|
727
779
|
|
|
728
|
-
function
|
|
729
|
-
wasm.
|
|
780
|
+
function wasm_bindgen__convert__closures_____invoke__he553f5a75ceef16c(arg0, arg1) {
|
|
781
|
+
wasm.wasm_bindgen__convert__closures_____invoke__he553f5a75ceef16c(arg0, arg1);
|
|
730
782
|
}
|
|
731
783
|
|
|
732
|
-
function
|
|
733
|
-
wasm.
|
|
784
|
+
function wasm_bindgen__convert__closures_____invoke__h922fe5fb24b1beed(arg0, arg1) {
|
|
785
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h922fe5fb24b1beed(arg0, arg1);
|
|
734
786
|
}
|
|
735
787
|
|
|
736
|
-
function
|
|
737
|
-
wasm.
|
|
788
|
+
function wasm_bindgen__convert__closures_____invoke__h7a7839898bdc8c05(arg0, arg1) {
|
|
789
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7a7839898bdc8c05(arg0, arg1);
|
|
738
790
|
}
|
|
739
791
|
|
|
740
|
-
function
|
|
741
|
-
wasm.
|
|
792
|
+
function wasm_bindgen__convert__closures_____invoke__h03e85ac1b34d0273(arg0, arg1, arg2) {
|
|
793
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h03e85ac1b34d0273(arg0, arg1, arg2);
|
|
742
794
|
}
|
|
743
795
|
|
|
744
|
-
function
|
|
745
|
-
wasm.
|
|
796
|
+
function wasm_bindgen__convert__closures_____invoke__h68a31ad8ab9398c3(arg0, arg1, arg2, arg3) {
|
|
797
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h68a31ad8ab9398c3(arg0, arg1, arg2, arg3);
|
|
746
798
|
}
|
|
747
799
|
|
|
748
800
|
/**
|
|
@@ -776,19 +828,20 @@ export const ConsentState = Object.freeze({
|
|
|
776
828
|
Denied: 2, "2": "Denied",
|
|
777
829
|
});
|
|
778
830
|
/**
|
|
779
|
-
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}
|
|
831
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}
|
|
780
832
|
*/
|
|
781
833
|
export const ContentType = Object.freeze({
|
|
782
834
|
Unknown: 0, "0": "Unknown",
|
|
783
835
|
Text: 1, "1": "Text",
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
836
|
+
LeaveRequest: 2, "2": "LeaveRequest",
|
|
837
|
+
GroupMembershipChange: 3, "3": "GroupMembershipChange",
|
|
838
|
+
GroupUpdated: 4, "4": "GroupUpdated",
|
|
839
|
+
Reaction: 5, "5": "Reaction",
|
|
840
|
+
ReadReceipt: 6, "6": "ReadReceipt",
|
|
841
|
+
Reply: 7, "7": "Reply",
|
|
842
|
+
Attachment: 8, "8": "Attachment",
|
|
843
|
+
RemoteAttachment: 9, "9": "RemoteAttachment",
|
|
844
|
+
TransactionReference: 10, "10": "TransactionReference",
|
|
792
845
|
});
|
|
793
846
|
/**
|
|
794
847
|
* @enum {0 | 1 | 2 | 3}
|
|
@@ -857,7 +910,7 @@ export const MetadataField = Object.freeze({
|
|
|
857
910
|
MessageExpirationMS: 4, "4": "MessageExpirationMS",
|
|
858
911
|
});
|
|
859
912
|
/**
|
|
860
|
-
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12}
|
|
913
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13}
|
|
861
914
|
*/
|
|
862
915
|
export const PayloadType = Object.freeze({
|
|
863
916
|
Text: 0, "0": "Text",
|
|
@@ -869,10 +922,11 @@ export const PayloadType = Object.freeze({
|
|
|
869
922
|
TransactionReference: 6, "6": "TransactionReference",
|
|
870
923
|
GroupUpdated: 7, "7": "GroupUpdated",
|
|
871
924
|
ReadReceipt: 8, "8": "ReadReceipt",
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
925
|
+
LeaveRequest: 9, "9": "LeaveRequest",
|
|
926
|
+
WalletSendCalls: 10, "10": "WalletSendCalls",
|
|
927
|
+
Intent: 11, "11": "Intent",
|
|
928
|
+
Actions: 12, "12": "Actions",
|
|
929
|
+
Custom: 13, "13": "Custom",
|
|
876
930
|
});
|
|
877
931
|
/**
|
|
878
932
|
* @enum {0 | 1 | 2}
|
|
@@ -1617,6 +1671,27 @@ export class Client {
|
|
|
1617
1671
|
const ret = wasm.client_revokeAllOtherInstallationsSignatureRequest(this.__wbg_ptr);
|
|
1618
1672
|
return ret;
|
|
1619
1673
|
}
|
|
1674
|
+
/**
|
|
1675
|
+
* @param {ConsentEntityType} entity_type
|
|
1676
|
+
* @param {string} entity
|
|
1677
|
+
* @returns {Promise<ConsentState>}
|
|
1678
|
+
*/
|
|
1679
|
+
getConsentState(entity_type, entity) {
|
|
1680
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1681
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1682
|
+
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
1683
|
+
return ret;
|
|
1684
|
+
}
|
|
1685
|
+
/**
|
|
1686
|
+
* @param {Consent[]} records
|
|
1687
|
+
* @returns {Promise<void>}
|
|
1688
|
+
*/
|
|
1689
|
+
setConsentStates(records) {
|
|
1690
|
+
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
1691
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1692
|
+
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
1693
|
+
return ret;
|
|
1694
|
+
}
|
|
1620
1695
|
/**
|
|
1621
1696
|
*
|
|
1622
1697
|
* * Get the client's inbox state.
|
|
@@ -1656,27 +1731,6 @@ export class Client {
|
|
|
1656
1731
|
const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
|
|
1657
1732
|
return ret;
|
|
1658
1733
|
}
|
|
1659
|
-
/**
|
|
1660
|
-
* @param {ConsentEntityType} entity_type
|
|
1661
|
-
* @param {string} entity
|
|
1662
|
-
* @returns {Promise<ConsentState>}
|
|
1663
|
-
*/
|
|
1664
|
-
getConsentState(entity_type, entity) {
|
|
1665
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1666
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1667
|
-
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
1668
|
-
return ret;
|
|
1669
|
-
}
|
|
1670
|
-
/**
|
|
1671
|
-
* @param {Consent[]} records
|
|
1672
|
-
* @returns {Promise<void>}
|
|
1673
|
-
*/
|
|
1674
|
-
setConsentStates(records) {
|
|
1675
|
-
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
1676
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1677
|
-
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
1678
|
-
return ret;
|
|
1679
|
-
}
|
|
1680
1734
|
/**
|
|
1681
1735
|
* @returns {string}
|
|
1682
1736
|
*/
|
|
@@ -2157,6 +2211,13 @@ export class Conversation {
|
|
|
2157
2211
|
const ret = wasm.conversation_addMembers(this.__wbg_ptr, ptr0, len0);
|
|
2158
2212
|
return ret;
|
|
2159
2213
|
}
|
|
2214
|
+
/**
|
|
2215
|
+
* @returns {Promise<void>}
|
|
2216
|
+
*/
|
|
2217
|
+
leaveGroup() {
|
|
2218
|
+
const ret = wasm.conversation_leaveGroup(this.__wbg_ptr);
|
|
2219
|
+
return ret;
|
|
2220
|
+
}
|
|
2160
2221
|
/**
|
|
2161
2222
|
* @returns {Promise<any>}
|
|
2162
2223
|
*/
|
|
@@ -2367,19 +2428,6 @@ export class Conversation {
|
|
|
2367
2428
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
2368
2429
|
}
|
|
2369
2430
|
}
|
|
2370
|
-
/**
|
|
2371
|
-
* @param {ListMessagesOptions | null} [opts]
|
|
2372
|
-
* @returns {Promise<DecodedMessage[]>}
|
|
2373
|
-
*/
|
|
2374
|
-
findMessagesV2(opts) {
|
|
2375
|
-
let ptr0 = 0;
|
|
2376
|
-
if (!isLikeNone(opts)) {
|
|
2377
|
-
_assertClass(opts, ListMessagesOptions);
|
|
2378
|
-
ptr0 = opts.__destroy_into_raw();
|
|
2379
|
-
}
|
|
2380
|
-
const ret = wasm.conversation_findMessagesV2(this.__wbg_ptr, ptr0);
|
|
2381
|
-
return ret;
|
|
2382
|
-
}
|
|
2383
2431
|
/**
|
|
2384
2432
|
* @returns {string}
|
|
2385
2433
|
*/
|
|
@@ -2460,6 +2508,19 @@ export class Conversation {
|
|
|
2460
2508
|
const ret = wasm.conversation_getLastReadTimes(this.__wbg_ptr);
|
|
2461
2509
|
return ret;
|
|
2462
2510
|
}
|
|
2511
|
+
/**
|
|
2512
|
+
* @param {ListMessagesOptions | null} [opts]
|
|
2513
|
+
* @returns {Promise<DecodedMessage[]>}
|
|
2514
|
+
*/
|
|
2515
|
+
findEnrichedMessages(opts) {
|
|
2516
|
+
let ptr0 = 0;
|
|
2517
|
+
if (!isLikeNone(opts)) {
|
|
2518
|
+
_assertClass(opts, ListMessagesOptions);
|
|
2519
|
+
ptr0 = opts.__destroy_into_raw();
|
|
2520
|
+
}
|
|
2521
|
+
const ret = wasm.conversation_findEnrichedMessages(this.__wbg_ptr, ptr0);
|
|
2522
|
+
return ret;
|
|
2523
|
+
}
|
|
2463
2524
|
/**
|
|
2464
2525
|
* @returns {string}
|
|
2465
2526
|
*/
|
|
@@ -2569,6 +2630,14 @@ export class Conversation {
|
|
|
2569
2630
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2570
2631
|
}
|
|
2571
2632
|
}
|
|
2633
|
+
/**
|
|
2634
|
+
* @param {Uint8Array} envelope_bytes
|
|
2635
|
+
* @returns {Promise<Message>}
|
|
2636
|
+
*/
|
|
2637
|
+
processStreamedGroupMessage(envelope_bytes) {
|
|
2638
|
+
const ret = wasm.conversation_processStreamedGroupMessage(this.__wbg_ptr, envelope_bytes);
|
|
2639
|
+
return ret;
|
|
2640
|
+
}
|
|
2572
2641
|
/**
|
|
2573
2642
|
* @returns {boolean}
|
|
2574
2643
|
*/
|
|
@@ -3764,6 +3833,13 @@ export class DecodedMessageContent {
|
|
|
3764
3833
|
const ret = wasm.decodedmessagecontent_asGroupUpdated(this.__wbg_ptr);
|
|
3765
3834
|
return ret === 0 ? undefined : GroupUpdated.__wrap(ret);
|
|
3766
3835
|
}
|
|
3836
|
+
/**
|
|
3837
|
+
* @returns {LeaveRequest | undefined}
|
|
3838
|
+
*/
|
|
3839
|
+
asLeaveRequest() {
|
|
3840
|
+
const ret = wasm.decodedmessagecontent_asLeaveRequest(this.__wbg_ptr);
|
|
3841
|
+
return ret === 0 ? undefined : LeaveRequest.__wrap(ret);
|
|
3842
|
+
}
|
|
3767
3843
|
/**
|
|
3768
3844
|
* @returns {RemoteAttachment | undefined}
|
|
3769
3845
|
*/
|
|
@@ -4349,7 +4425,7 @@ export class GroupUpdated {
|
|
|
4349
4425
|
set initiatedByInboxId(arg0) {
|
|
4350
4426
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4351
4427
|
const len0 = WASM_VECTOR_LEN;
|
|
4352
|
-
wasm.
|
|
4428
|
+
wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
|
|
4353
4429
|
}
|
|
4354
4430
|
/**
|
|
4355
4431
|
* @returns {Inbox[]}
|
|
@@ -4673,7 +4749,7 @@ export class Inbox {
|
|
|
4673
4749
|
set inboxId(arg0) {
|
|
4674
4750
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4675
4751
|
const len0 = WASM_VECTOR_LEN;
|
|
4676
|
-
wasm.
|
|
4752
|
+
wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
|
|
4677
4753
|
}
|
|
4678
4754
|
}
|
|
4679
4755
|
if (Symbol.dispose) Inbox.prototype[Symbol.dispose] = Inbox.prototype.free;
|
|
@@ -4742,7 +4818,7 @@ export class InboxState {
|
|
|
4742
4818
|
set inboxId(arg0) {
|
|
4743
4819
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4744
4820
|
const len0 = WASM_VECTOR_LEN;
|
|
4745
|
-
wasm.
|
|
4821
|
+
wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
|
|
4746
4822
|
}
|
|
4747
4823
|
/**
|
|
4748
4824
|
* @returns {Identifier}
|
|
@@ -4873,7 +4949,7 @@ export class Installation {
|
|
|
4873
4949
|
set id(arg0) {
|
|
4874
4950
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4875
4951
|
const len0 = WASM_VECTOR_LEN;
|
|
4876
|
-
wasm.
|
|
4952
|
+
wasm.__wbg_set_installation_id(this.__wbg_ptr, ptr0, len0);
|
|
4877
4953
|
}
|
|
4878
4954
|
/**
|
|
4879
4955
|
* @returns {bigint | undefined}
|
|
@@ -4886,7 +4962,7 @@ export class Installation {
|
|
|
4886
4962
|
* @param {bigint | null} [arg0]
|
|
4887
4963
|
*/
|
|
4888
4964
|
set clientTimestampNs(arg0) {
|
|
4889
|
-
wasm.
|
|
4965
|
+
wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
4890
4966
|
}
|
|
4891
4967
|
}
|
|
4892
4968
|
if (Symbol.dispose) Installation.prototype[Symbol.dispose] = Installation.prototype.free;
|
|
@@ -4937,7 +5013,7 @@ export class Intent {
|
|
|
4937
5013
|
set id(arg0) {
|
|
4938
5014
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4939
5015
|
const len0 = WASM_VECTOR_LEN;
|
|
4940
|
-
wasm.
|
|
5016
|
+
wasm.__wbg_set_intent_id(this.__wbg_ptr, ptr0, len0);
|
|
4941
5017
|
}
|
|
4942
5018
|
/**
|
|
4943
5019
|
* @returns {string}
|
|
@@ -4960,7 +5036,7 @@ export class Intent {
|
|
|
4960
5036
|
set actionId(arg0) {
|
|
4961
5037
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4962
5038
|
const len0 = WASM_VECTOR_LEN;
|
|
4963
|
-
wasm.
|
|
5039
|
+
wasm.__wbg_set_intent_actionId(this.__wbg_ptr, ptr0, len0);
|
|
4964
5040
|
}
|
|
4965
5041
|
/**
|
|
4966
5042
|
* @returns {any}
|
|
@@ -5163,7 +5239,7 @@ export class KeyPackageStatus {
|
|
|
5163
5239
|
_assertClass(arg0, Lifetime);
|
|
5164
5240
|
ptr0 = arg0.__destroy_into_raw();
|
|
5165
5241
|
}
|
|
5166
|
-
wasm.
|
|
5242
|
+
wasm.__wbg_set_createdmoptions_messageDisappearingSettings(this.__wbg_ptr, ptr0);
|
|
5167
5243
|
}
|
|
5168
5244
|
/**
|
|
5169
5245
|
* @returns {string | undefined}
|
|
@@ -5188,6 +5264,47 @@ export class KeyPackageStatus {
|
|
|
5188
5264
|
}
|
|
5189
5265
|
if (Symbol.dispose) KeyPackageStatus.prototype[Symbol.dispose] = KeyPackageStatus.prototype.free;
|
|
5190
5266
|
|
|
5267
|
+
const LeaveRequestFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5268
|
+
? { register: () => {}, unregister: () => {} }
|
|
5269
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_leaverequest_free(ptr >>> 0, 1));
|
|
5270
|
+
|
|
5271
|
+
export class LeaveRequest {
|
|
5272
|
+
|
|
5273
|
+
static __wrap(ptr) {
|
|
5274
|
+
ptr = ptr >>> 0;
|
|
5275
|
+
const obj = Object.create(LeaveRequest.prototype);
|
|
5276
|
+
obj.__wbg_ptr = ptr;
|
|
5277
|
+
LeaveRequestFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
5278
|
+
return obj;
|
|
5279
|
+
}
|
|
5280
|
+
|
|
5281
|
+
__destroy_into_raw() {
|
|
5282
|
+
const ptr = this.__wbg_ptr;
|
|
5283
|
+
this.__wbg_ptr = 0;
|
|
5284
|
+
LeaveRequestFinalization.unregister(this);
|
|
5285
|
+
return ptr;
|
|
5286
|
+
}
|
|
5287
|
+
|
|
5288
|
+
free() {
|
|
5289
|
+
const ptr = this.__destroy_into_raw();
|
|
5290
|
+
wasm.__wbg_leaverequest_free(ptr, 0);
|
|
5291
|
+
}
|
|
5292
|
+
/**
|
|
5293
|
+
* @returns {Uint8Array | undefined}
|
|
5294
|
+
*/
|
|
5295
|
+
get authenticatedNote() {
|
|
5296
|
+
const ret = wasm.__wbg_get_leaverequest_authenticatedNote(this.__wbg_ptr);
|
|
5297
|
+
return ret;
|
|
5298
|
+
}
|
|
5299
|
+
/**
|
|
5300
|
+
* @param {Uint8Array | null} [arg0]
|
|
5301
|
+
*/
|
|
5302
|
+
set authenticatedNote(arg0) {
|
|
5303
|
+
wasm.__wbg_set_leaverequest_authenticatedNote(this.__wbg_ptr, isLikeNone(arg0) ? 0 : addToExternrefTable0(arg0));
|
|
5304
|
+
}
|
|
5305
|
+
}
|
|
5306
|
+
if (Symbol.dispose) LeaveRequest.prototype[Symbol.dispose] = LeaveRequest.prototype.free;
|
|
5307
|
+
|
|
5191
5308
|
const LifetimeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5192
5309
|
? { register: () => {}, unregister: () => {} }
|
|
5193
5310
|
: new FinalizationRegistry(ptr => wasm.__wbg_lifetime_free(ptr >>> 0, 1));
|
|
@@ -5217,14 +5334,14 @@ export class Lifetime {
|
|
|
5217
5334
|
* @returns {bigint}
|
|
5218
5335
|
*/
|
|
5219
5336
|
get not_before() {
|
|
5220
|
-
const ret = wasm.
|
|
5337
|
+
const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
|
|
5221
5338
|
return BigInt.asUintN(64, ret);
|
|
5222
5339
|
}
|
|
5223
5340
|
/**
|
|
5224
5341
|
* @param {bigint} arg0
|
|
5225
5342
|
*/
|
|
5226
5343
|
set not_before(arg0) {
|
|
5227
|
-
wasm.
|
|
5344
|
+
wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
|
|
5228
5345
|
}
|
|
5229
5346
|
/**
|
|
5230
5347
|
* @returns {bigint}
|
|
@@ -5303,7 +5420,7 @@ export class ListConversationsOptions {
|
|
|
5303
5420
|
* @param {bigint | null} [arg0]
|
|
5304
5421
|
*/
|
|
5305
5422
|
set createdAfterNs(arg0) {
|
|
5306
|
-
wasm.
|
|
5423
|
+
wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
5307
5424
|
}
|
|
5308
5425
|
/**
|
|
5309
5426
|
* @returns {bigint | undefined}
|
|
@@ -5471,7 +5588,7 @@ export class ListMessagesOptions {
|
|
|
5471
5588
|
* @param {bigint | null} [arg0]
|
|
5472
5589
|
*/
|
|
5473
5590
|
set sentBeforeNs(arg0) {
|
|
5474
|
-
wasm.
|
|
5591
|
+
wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
5475
5592
|
}
|
|
5476
5593
|
/**
|
|
5477
5594
|
* @returns {bigint | undefined}
|
|
@@ -5484,7 +5601,7 @@ export class ListMessagesOptions {
|
|
|
5484
5601
|
* @param {bigint | null} [arg0]
|
|
5485
5602
|
*/
|
|
5486
5603
|
set sentAfterNs(arg0) {
|
|
5487
|
-
wasm.
|
|
5604
|
+
wasm.__wbg_set_listconversationsoptions_createdBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
5488
5605
|
}
|
|
5489
5606
|
/**
|
|
5490
5607
|
* @returns {bigint | undefined}
|
|
@@ -5497,7 +5614,7 @@ export class ListMessagesOptions {
|
|
|
5497
5614
|
* @param {bigint | null} [arg0]
|
|
5498
5615
|
*/
|
|
5499
5616
|
set limit(arg0) {
|
|
5500
|
-
wasm.
|
|
5617
|
+
wasm.__wbg_set_listconversationsoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
5501
5618
|
}
|
|
5502
5619
|
/**
|
|
5503
5620
|
* @returns {DeliveryStatus | undefined}
|
|
@@ -5737,14 +5854,14 @@ export class Message {
|
|
|
5737
5854
|
* @returns {bigint}
|
|
5738
5855
|
*/
|
|
5739
5856
|
get sentAtNs() {
|
|
5740
|
-
const ret = wasm.
|
|
5857
|
+
const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
|
|
5741
5858
|
return ret;
|
|
5742
5859
|
}
|
|
5743
5860
|
/**
|
|
5744
5861
|
* @param {bigint} arg0
|
|
5745
5862
|
*/
|
|
5746
5863
|
set sentAtNs(arg0) {
|
|
5747
|
-
wasm.
|
|
5864
|
+
wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
|
|
5748
5865
|
}
|
|
5749
5866
|
/**
|
|
5750
5867
|
* @returns {string}
|
|
@@ -5901,14 +6018,14 @@ export class MessageDisappearingSettings {
|
|
|
5901
6018
|
* @returns {bigint}
|
|
5902
6019
|
*/
|
|
5903
6020
|
get inNs() {
|
|
5904
|
-
const ret = wasm.
|
|
6021
|
+
const ret = wasm.__wbg_get_lifetime_not_after(this.__wbg_ptr);
|
|
5905
6022
|
return ret;
|
|
5906
6023
|
}
|
|
5907
6024
|
/**
|
|
5908
6025
|
* @param {bigint} arg0
|
|
5909
6026
|
*/
|
|
5910
6027
|
set inNs(arg0) {
|
|
5911
|
-
wasm.
|
|
6028
|
+
wasm.__wbg_set_lifetime_not_after(this.__wbg_ptr, arg0);
|
|
5912
6029
|
}
|
|
5913
6030
|
/**
|
|
5914
6031
|
* @param {bigint} from_ns
|
|
@@ -6036,7 +6153,7 @@ export class MetadataFieldChange {
|
|
|
6036
6153
|
set fieldName(arg0) {
|
|
6037
6154
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6038
6155
|
const len0 = WASM_VECTOR_LEN;
|
|
6039
|
-
wasm.
|
|
6156
|
+
wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
|
|
6040
6157
|
}
|
|
6041
6158
|
/**
|
|
6042
6159
|
* @returns {string | undefined}
|
|
@@ -6494,7 +6611,7 @@ export class Reaction {
|
|
|
6494
6611
|
set reference(arg0) {
|
|
6495
6612
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6496
6613
|
const len0 = WASM_VECTOR_LEN;
|
|
6497
|
-
wasm.
|
|
6614
|
+
wasm.__wbg_set_reaction_reference(this.__wbg_ptr, ptr0, len0);
|
|
6498
6615
|
}
|
|
6499
6616
|
/**
|
|
6500
6617
|
* @returns {string}
|
|
@@ -6517,7 +6634,7 @@ export class Reaction {
|
|
|
6517
6634
|
set referenceInboxId(arg0) {
|
|
6518
6635
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6519
6636
|
const len0 = WASM_VECTOR_LEN;
|
|
6520
|
-
wasm.
|
|
6637
|
+
wasm.__wbg_set_reaction_referenceInboxId(this.__wbg_ptr, ptr0, len0);
|
|
6521
6638
|
}
|
|
6522
6639
|
/**
|
|
6523
6640
|
* @returns {ReactionAction}
|
|
@@ -6636,7 +6753,7 @@ export class ReactionPayload {
|
|
|
6636
6753
|
set reference(arg0) {
|
|
6637
6754
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6638
6755
|
const len0 = WASM_VECTOR_LEN;
|
|
6639
|
-
wasm.
|
|
6756
|
+
wasm.__wbg_set_reaction_reference(this.__wbg_ptr, ptr0, len0);
|
|
6640
6757
|
}
|
|
6641
6758
|
/**
|
|
6642
6759
|
* @returns {string}
|
|
@@ -6659,7 +6776,7 @@ export class ReactionPayload {
|
|
|
6659
6776
|
set referenceInboxId(arg0) {
|
|
6660
6777
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6661
6778
|
const len0 = WASM_VECTOR_LEN;
|
|
6662
|
-
wasm.
|
|
6779
|
+
wasm.__wbg_set_reaction_referenceInboxId(this.__wbg_ptr, ptr0, len0);
|
|
6663
6780
|
}
|
|
6664
6781
|
/**
|
|
6665
6782
|
* @returns {ReactionActionPayload}
|
|
@@ -6787,7 +6904,7 @@ export class RemoteAttachment {
|
|
|
6787
6904
|
set url(arg0) {
|
|
6788
6905
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6789
6906
|
const len0 = WASM_VECTOR_LEN;
|
|
6790
|
-
wasm.
|
|
6907
|
+
wasm.__wbg_set_intent_id(this.__wbg_ptr, ptr0, len0);
|
|
6791
6908
|
}
|
|
6792
6909
|
/**
|
|
6793
6910
|
* @returns {string}
|
|
@@ -6810,7 +6927,7 @@ export class RemoteAttachment {
|
|
|
6810
6927
|
set contentDigest(arg0) {
|
|
6811
6928
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6812
6929
|
const len0 = WASM_VECTOR_LEN;
|
|
6813
|
-
wasm.
|
|
6930
|
+
wasm.__wbg_set_intent_actionId(this.__wbg_ptr, ptr0, len0);
|
|
6814
6931
|
}
|
|
6815
6932
|
/**
|
|
6816
6933
|
* @returns {Uint8Array}
|
|
@@ -7047,7 +7164,7 @@ export class RemoteAttachmentInfo {
|
|
|
7047
7164
|
set url(arg0) {
|
|
7048
7165
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7049
7166
|
const len0 = WASM_VECTOR_LEN;
|
|
7050
|
-
wasm.
|
|
7167
|
+
wasm.__wbg_set_remoteattachmentinfo_url(this.__wbg_ptr, ptr0, len0);
|
|
7051
7168
|
}
|
|
7052
7169
|
/**
|
|
7053
7170
|
* @returns {Uint8Array}
|
|
@@ -7437,7 +7554,7 @@ export class TextContent {
|
|
|
7437
7554
|
set content(arg0) {
|
|
7438
7555
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7439
7556
|
const len0 = WASM_VECTOR_LEN;
|
|
7440
|
-
wasm.
|
|
7557
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
7441
7558
|
}
|
|
7442
7559
|
}
|
|
7443
7560
|
if (Symbol.dispose) TextContent.prototype[Symbol.dispose] = TextContent.prototype.free;
|
|
@@ -7488,7 +7605,7 @@ export class TransactionMetadata {
|
|
|
7488
7605
|
set transactionType(arg0) {
|
|
7489
7606
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7490
7607
|
const len0 = WASM_VECTOR_LEN;
|
|
7491
|
-
wasm.
|
|
7608
|
+
wasm.__wbg_set_conversationdebuginfo_forkDetails(this.__wbg_ptr, ptr0, len0);
|
|
7492
7609
|
}
|
|
7493
7610
|
/**
|
|
7494
7611
|
* @returns {string}
|
|
@@ -7511,7 +7628,7 @@ export class TransactionMetadata {
|
|
|
7511
7628
|
set currency(arg0) {
|
|
7512
7629
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7513
7630
|
const len0 = WASM_VECTOR_LEN;
|
|
7514
|
-
wasm.
|
|
7631
|
+
wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
|
|
7515
7632
|
}
|
|
7516
7633
|
/**
|
|
7517
7634
|
* @returns {number}
|
|
@@ -7560,7 +7677,7 @@ export class TransactionMetadata {
|
|
|
7560
7677
|
set fromAddress(arg0) {
|
|
7561
7678
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7562
7679
|
const len0 = WASM_VECTOR_LEN;
|
|
7563
|
-
wasm.
|
|
7680
|
+
wasm.__wbg_set_conversationdebuginfo_remoteCommitLog(this.__wbg_ptr, ptr0, len0);
|
|
7564
7681
|
}
|
|
7565
7682
|
/**
|
|
7566
7683
|
* @returns {string}
|
|
@@ -7583,7 +7700,7 @@ export class TransactionMetadata {
|
|
|
7583
7700
|
set toAddress(arg0) {
|
|
7584
7701
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7585
7702
|
const len0 = WASM_VECTOR_LEN;
|
|
7586
|
-
wasm.
|
|
7703
|
+
wasm.__wbg_set_transactionmetadata_toAddress(this.__wbg_ptr, ptr0, len0);
|
|
7587
7704
|
}
|
|
7588
7705
|
}
|
|
7589
7706
|
if (Symbol.dispose) TransactionMetadata.prototype[Symbol.dispose] = TransactionMetadata.prototype.free;
|
|
@@ -8381,7 +8498,7 @@ function __wbg_get_imports() {
|
|
|
8381
8498
|
const a = state0.a;
|
|
8382
8499
|
state0.a = 0;
|
|
8383
8500
|
try {
|
|
8384
|
-
return
|
|
8501
|
+
return wasm_bindgen__convert__closures_____invoke__h68a31ad8ab9398c3(a, state0.b, arg0, arg1);
|
|
8385
8502
|
} finally {
|
|
8386
8503
|
state0.a = a;
|
|
8387
8504
|
}
|
|
@@ -8472,26 +8589,26 @@ function __wbg_get_imports() {
|
|
|
8472
8589
|
const ret = Date.now();
|
|
8473
8590
|
return ret;
|
|
8474
8591
|
};
|
|
8475
|
-
imports.wbg.
|
|
8592
|
+
imports.wbg.__wbg_on_auth_required_a399c3af4a4c2185 = function() { return handleError(function (arg0) {
|
|
8476
8593
|
const ret = arg0.on_auth_required();
|
|
8477
8594
|
return ret;
|
|
8478
8595
|
}, arguments) };
|
|
8479
|
-
imports.wbg.
|
|
8596
|
+
imports.wbg.__wbg_on_close_0cb093e466f2e1c8 = function(arg0) {
|
|
8480
8597
|
arg0.on_close();
|
|
8481
8598
|
};
|
|
8482
|
-
imports.wbg.
|
|
8599
|
+
imports.wbg.__wbg_on_consent_update_018da3c07a044217 = function(arg0, arg1) {
|
|
8483
8600
|
arg0.on_consent_update(arg1);
|
|
8484
8601
|
};
|
|
8485
|
-
imports.wbg.
|
|
8602
|
+
imports.wbg.__wbg_on_conversation_91d9c03f28235f32 = function(arg0, arg1) {
|
|
8486
8603
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
8487
8604
|
};
|
|
8488
|
-
imports.wbg.
|
|
8605
|
+
imports.wbg.__wbg_on_error_f08795b2fc98f4db = function(arg0, arg1) {
|
|
8489
8606
|
arg0.on_error(arg1);
|
|
8490
8607
|
};
|
|
8491
|
-
imports.wbg.
|
|
8608
|
+
imports.wbg.__wbg_on_message_99567dc02020a3b9 = function(arg0, arg1) {
|
|
8492
8609
|
arg0.on_message(Message.__wrap(arg1));
|
|
8493
8610
|
};
|
|
8494
|
-
imports.wbg.
|
|
8611
|
+
imports.wbg.__wbg_on_message_deleted_1022f7ad6a5b0865 = function(arg0, arg1, arg2) {
|
|
8495
8612
|
let deferred0_0;
|
|
8496
8613
|
let deferred0_1;
|
|
8497
8614
|
try {
|
|
@@ -8502,7 +8619,7 @@ function __wbg_get_imports() {
|
|
|
8502
8619
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
8503
8620
|
}
|
|
8504
8621
|
};
|
|
8505
|
-
imports.wbg.
|
|
8622
|
+
imports.wbg.__wbg_on_user_preference_update_712683558529deaa = function(arg0, arg1, arg2) {
|
|
8506
8623
|
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
8507
8624
|
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
8508
8625
|
arg0.on_user_preference_update(v0);
|
|
@@ -8786,11 +8903,6 @@ function __wbg_get_imports() {
|
|
|
8786
8903
|
const ret = XmtpCursor.__unwrap(arg0);
|
|
8787
8904
|
return ret;
|
|
8788
8905
|
};
|
|
8789
|
-
imports.wbg.__wbindgen_cast_0dcbf355c8c44095 = function(arg0, arg1) {
|
|
8790
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 6806, function: Function { arguments: [], shim_idx: 6807, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8791
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5e0a3136249b832f, wasm_bindgen__convert__closures_____invoke__h9011598bdd38acb2);
|
|
8792
|
-
return ret;
|
|
8793
|
-
};
|
|
8794
8906
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
8795
8907
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
8796
8908
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
@@ -8808,9 +8920,14 @@ function __wbg_get_imports() {
|
|
|
8808
8920
|
const ret = v0;
|
|
8809
8921
|
return ret;
|
|
8810
8922
|
};
|
|
8811
|
-
imports.wbg.
|
|
8812
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
8813
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
8923
|
+
imports.wbg.__wbindgen_cast_6a03ed41049387d5 = function(arg0, arg1) {
|
|
8924
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 6802, function: Function { arguments: [], shim_idx: 6803, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8925
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hf682406d9647bfe2, wasm_bindgen__convert__closures_____invoke__h922fe5fb24b1beed);
|
|
8926
|
+
return ret;
|
|
8927
|
+
};
|
|
8928
|
+
imports.wbg.__wbindgen_cast_7bfd6afd1c25f1f9 = function(arg0, arg1) {
|
|
8929
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7214, function: Function { arguments: [Externref], shim_idx: 7215, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8930
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h4589b9dda0a82164, wasm_bindgen__convert__closures_____invoke__h03e85ac1b34d0273);
|
|
8814
8931
|
return ret;
|
|
8815
8932
|
};
|
|
8816
8933
|
imports.wbg.__wbindgen_cast_8e37b4ad2f2ba653 = function(arg0, arg1) {
|
|
@@ -8832,9 +8949,14 @@ function __wbg_get_imports() {
|
|
|
8832
8949
|
const ret = arg0;
|
|
8833
8950
|
return ret;
|
|
8834
8951
|
};
|
|
8835
|
-
imports.wbg.
|
|
8836
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
8837
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
8952
|
+
imports.wbg.__wbindgen_cast_bf4309e1be8fe4e3 = function(arg0, arg1) {
|
|
8953
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7017, function: Function { arguments: [], shim_idx: 7018, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8954
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h68c8e9e8c7c33e7c, wasm_bindgen__convert__closures_____invoke__h7a7839898bdc8c05);
|
|
8955
|
+
return ret;
|
|
8956
|
+
};
|
|
8957
|
+
imports.wbg.__wbindgen_cast_ca8eabc83e5b3279 = function(arg0, arg1) {
|
|
8958
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7181, function: Function { arguments: [], shim_idx: 7182, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8959
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h9f4e0badb87b6c7f, wasm_bindgen__convert__closures_____invoke__he553f5a75ceef16c);
|
|
8838
8960
|
return ret;
|
|
8839
8961
|
};
|
|
8840
8962
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
@@ -8842,11 +8964,6 @@ function __wbg_get_imports() {
|
|
|
8842
8964
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
8843
8965
|
return ret;
|
|
8844
8966
|
};
|
|
8845
|
-
imports.wbg.__wbindgen_cast_d24c038e51b83c0a = function(arg0, arg1) {
|
|
8846
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 7183, function: Function { arguments: [], shim_idx: 7184, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8847
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h83869f5b20c236a6, wasm_bindgen__convert__closures_____invoke__hafab8b28acda63ce);
|
|
8848
|
-
return ret;
|
|
8849
|
-
};
|
|
8850
8967
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
8851
8968
|
// Cast intrinsic for `F64 -> Externref`.
|
|
8852
8969
|
const ret = arg0;
|