@xmtp/wasm-bindings 1.6.2 → 1.6.6

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.
@@ -225,50 +225,31 @@ 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
+
228
234
  function _assertClass(instance, klass) {
229
235
  if (!(instance instanceof klass)) {
230
236
  throw new Error(`expected instance of ${klass.name}`);
231
237
  }
232
238
  }
233
-
234
- function passArrayJsValueToWasm0(array, malloc) {
235
- const ptr = malloc(array.length * 4, 4) >>> 0;
236
- for (let i = 0; i < array.length; i++) {
237
- const add = addToExternrefTable0(array[i]);
238
- getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
239
- }
240
- WASM_VECTOR_LEN = array.length;
241
- return ptr;
242
- }
243
239
  /**
244
- * @param {string} v3_host
245
- * @param {string | null | undefined} gateway_host
246
- * @param {string[]} inbox_ids
247
- * @returns {Promise<InboxState[]>}
240
+ * @param {Reply} reply
241
+ * @returns {Uint8Array}
248
242
  */
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
-
260
- function takeFromExternrefTable0(idx) {
261
- const value = wasm.__wbindgen_externrefs.get(idx);
262
- wasm.__externref_table_dealloc(idx);
263
- return value;
243
+ export function encodeReply(reply) {
244
+ _assertClass(reply, Reply);
245
+ var ptr0 = reply.__destroy_into_raw();
246
+ const ret = wasm.encodeReply(ptr0);
247
+ if (ret[2]) {
248
+ throw takeFromExternrefTable0(ret[1]);
249
+ }
250
+ return takeFromExternrefTable0(ret[0]);
264
251
  }
265
252
 
266
- function passArray8ToWasm0(arg, malloc) {
267
- const ptr = malloc(arg.length * 1, 1) >>> 0;
268
- getUint8ArrayMemory0().set(arg, ptr / 1);
269
- WASM_VECTOR_LEN = arg.length;
270
- return ptr;
271
- }
272
253
  /**
273
254
  * @param {Uint8Array} bytes
274
255
  * @returns {Reply}
@@ -281,28 +262,35 @@ export function decodeReply(bytes) {
281
262
  return Reply.__wrap(ret[0]);
282
263
  }
283
264
 
265
+ function passArrayJsValueToWasm0(array, malloc) {
266
+ const ptr = malloc(array.length * 4, 4) >>> 0;
267
+ for (let i = 0; i < array.length; i++) {
268
+ const add = addToExternrefTable0(array[i]);
269
+ getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
270
+ }
271
+ WASM_VECTOR_LEN = array.length;
272
+ return ptr;
273
+ }
284
274
  /**
285
- * @param {Reply} reply
286
- * @returns {Uint8Array}
275
+ * @param {Uint8Array} bytes
276
+ * @returns {ReadReceipt}
287
277
  */
288
- export function encodeReply(reply) {
289
- _assertClass(reply, Reply);
290
- var ptr0 = reply.__destroy_into_raw();
291
- const ret = wasm.encodeReply(ptr0);
278
+ export function decodeReadReceipt(bytes) {
279
+ const ret = wasm.decodeReadReceipt(bytes);
292
280
  if (ret[2]) {
293
281
  throw takeFromExternrefTable0(ret[1]);
294
282
  }
295
- return takeFromExternrefTable0(ret[0]);
283
+ return ReadReceipt.__wrap(ret[0]);
296
284
  }
297
285
 
298
286
  /**
299
- * @param {Actions} actions
287
+ * @param {ReadReceipt} readReceipt
300
288
  * @returns {Uint8Array}
301
289
  */
302
- export function encodeActions(actions) {
303
- _assertClass(actions, Actions);
304
- var ptr0 = actions.__destroy_into_raw();
305
- const ret = wasm.encodeActions(ptr0);
290
+ export function encodeReadReceipt(readReceipt) {
291
+ _assertClass(readReceipt, ReadReceipt);
292
+ var ptr0 = readReceipt.__destroy_into_raw();
293
+ const ret = wasm.encodeReadReceipt(ptr0);
306
294
  if (ret[2]) {
307
295
  throw takeFromExternrefTable0(ret[1]);
308
296
  }
@@ -311,24 +299,22 @@ export function encodeActions(actions) {
311
299
 
312
300
  /**
313
301
  * @param {Uint8Array} bytes
314
- * @returns {Actions}
302
+ * @returns {any}
315
303
  */
316
- export function decodeActions(bytes) {
317
- const ret = wasm.decodeActions(bytes);
304
+ export function decodeWalletSendCalls(bytes) {
305
+ const ret = wasm.decodeWalletSendCalls(bytes);
318
306
  if (ret[2]) {
319
307
  throw takeFromExternrefTable0(ret[1]);
320
308
  }
321
- return Actions.__wrap(ret[0]);
309
+ return takeFromExternrefTable0(ret[0]);
322
310
  }
323
311
 
324
312
  /**
325
- * @param {MultiRemoteAttachment} multiRemoteAttachment
313
+ * @param {any} wallet_send_calls
326
314
  * @returns {Uint8Array}
327
315
  */
328
- export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
329
- _assertClass(multiRemoteAttachment, MultiRemoteAttachment);
330
- var ptr0 = multiRemoteAttachment.__destroy_into_raw();
331
- const ret = wasm.encodeMultiRemoteAttachment(ptr0);
316
+ export function encodeWalletSendCalls(wallet_send_calls) {
317
+ const ret = wasm.encodeWalletSendCalls(wallet_send_calls);
332
318
  if (ret[2]) {
333
319
  throw takeFromExternrefTable0(ret[1]);
334
320
  }
@@ -336,27 +322,28 @@ export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
336
322
  }
337
323
 
338
324
  /**
339
- * @param {Uint8Array} bytes
340
- * @returns {MultiRemoteAttachment}
325
+ * @param {string} text
326
+ * @returns {Uint8Array}
341
327
  */
342
- export function decodeMultiRemoteAttachment(bytes) {
343
- const ret = wasm.decodeMultiRemoteAttachment(bytes);
328
+ export function encodeXmtpText(text) {
329
+ const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
330
+ const len0 = WASM_VECTOR_LEN;
331
+ const ret = wasm.encodeXmtpText(ptr0, len0);
344
332
  if (ret[2]) {
345
333
  throw takeFromExternrefTable0(ret[1]);
346
334
  }
347
- return MultiRemoteAttachment.__wrap(ret[0]);
335
+ return takeFromExternrefTable0(ret[0]);
348
336
  }
349
337
 
350
338
  /**
351
- * @param {Identifier} accountIdentifier
352
- * @param {bigint | null} [nonce]
339
+ * @param {Uint8Array} bytes
353
340
  * @returns {string}
354
341
  */
355
- export function generateInboxId(accountIdentifier, nonce) {
342
+ export function decodeXmtpText(bytes) {
356
343
  let deferred2_0;
357
344
  let deferred2_1;
358
345
  try {
359
- const ret = wasm.generateInboxId(accountIdentifier, !isLikeNone(nonce), isLikeNone(nonce) ? BigInt(0) : nonce);
346
+ const ret = wasm.decodeXmtpText(bytes);
360
347
  var ptr1 = ret[0];
361
348
  var len1 = ret[1];
362
349
  if (ret[3]) {
@@ -372,20 +359,37 @@ export function generateInboxId(accountIdentifier, nonce) {
372
359
  }
373
360
 
374
361
  /**
375
- * @param {string} host
376
- * @param {string | null | undefined} gatewayHost
377
- * @param {Identifier} accountIdentifier
378
- * @returns {Promise<string | undefined>}
362
+ * @param {Reaction} reaction
363
+ * @returns {Uint8Array}
379
364
  */
380
- export function getInboxIdForIdentifier(host, gatewayHost, accountIdentifier) {
381
- const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
382
- const len0 = WASM_VECTOR_LEN;
383
- var ptr1 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
384
- var len1 = WASM_VECTOR_LEN;
385
- const ret = wasm.getInboxIdForIdentifier(ptr0, len0, ptr1, len1, accountIdentifier);
386
- return ret;
365
+ export function encodeReaction(reaction) {
366
+ _assertClass(reaction, Reaction);
367
+ var ptr0 = reaction.__destroy_into_raw();
368
+ const ret = wasm.encodeReaction(ptr0);
369
+ if (ret[2]) {
370
+ throw takeFromExternrefTable0(ret[1]);
371
+ }
372
+ return takeFromExternrefTable0(ret[0]);
387
373
  }
388
374
 
375
+ /**
376
+ * @param {Uint8Array} bytes
377
+ * @returns {Reaction}
378
+ */
379
+ export function decodeReaction(bytes) {
380
+ const ret = wasm.decodeReaction(bytes);
381
+ if (ret[2]) {
382
+ throw takeFromExternrefTable0(ret[1]);
383
+ }
384
+ return Reaction.__wrap(ret[0]);
385
+ }
386
+
387
+ function passArray8ToWasm0(arg, malloc) {
388
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
389
+ getUint8ArrayMemory0().set(arg, ptr / 1);
390
+ WASM_VECTOR_LEN = arg.length;
391
+ return ptr;
392
+ }
389
393
  /**
390
394
  * @param {string} v3_host
391
395
  * @param {string | null | undefined} gateway_host
@@ -441,13 +445,54 @@ export function verifySignedWithPublicKey(signature_text, signature_bytes, publi
441
445
  }
442
446
 
443
447
  /**
444
- * @param {Intent} intent
448
+ * @param {string} v3_host
449
+ * @param {string | null | undefined} gateway_host
450
+ * @param {string[]} inbox_ids
451
+ * @returns {Promise<InboxState[]>}
452
+ */
453
+ export function inboxStateFromInboxIds(v3_host, gateway_host, inbox_ids) {
454
+ const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
455
+ const len0 = WASM_VECTOR_LEN;
456
+ var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
457
+ var len1 = WASM_VECTOR_LEN;
458
+ const ptr2 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
459
+ const len2 = WASM_VECTOR_LEN;
460
+ const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
461
+ return ret;
462
+ }
463
+
464
+ /**
465
+ * @param {Uint8Array} bytes
466
+ * @returns {GroupUpdated}
467
+ */
468
+ export function decodeGroupUpdated(bytes) {
469
+ const ret = wasm.decodeGroupUpdated(bytes);
470
+ if (ret[2]) {
471
+ throw takeFromExternrefTable0(ret[1]);
472
+ }
473
+ return GroupUpdated.__wrap(ret[0]);
474
+ }
475
+
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
445
490
  * @returns {Uint8Array}
446
491
  */
447
- export function encodeIntent(intent) {
448
- _assertClass(intent, Intent);
449
- var ptr0 = intent.__destroy_into_raw();
450
- const ret = wasm.encodeIntent(ptr0);
492
+ export function encodeRemoteAttachment(remoteAttachment) {
493
+ _assertClass(remoteAttachment, RemoteAttachment);
494
+ var ptr0 = remoteAttachment.__destroy_into_raw();
495
+ const ret = wasm.encodeRemoteAttachment(ptr0);
451
496
  if (ret[2]) {
452
497
  throw takeFromExternrefTable0(ret[1]);
453
498
  }
@@ -456,24 +501,38 @@ export function encodeIntent(intent) {
456
501
 
457
502
  /**
458
503
  * @param {Uint8Array} bytes
459
- * @returns {Intent}
504
+ * @returns {TransactionReference}
460
505
  */
461
- export function decodeIntent(bytes) {
462
- const ret = wasm.decodeIntent(bytes);
506
+ export function decodeTransactionReference(bytes) {
507
+ const ret = wasm.decodeTransactionReference(bytes);
463
508
  if (ret[2]) {
464
509
  throw takeFromExternrefTable0(ret[1]);
465
510
  }
466
- return Intent.__wrap(ret[0]);
511
+ return TransactionReference.__wrap(ret[0]);
467
512
  }
468
513
 
469
514
  /**
470
- * @param {Reaction} reaction
515
+ * @param {TransactionReference} transactionReference
471
516
  * @returns {Uint8Array}
472
517
  */
473
- export function encodeReaction(reaction) {
474
- _assertClass(reaction, Reaction);
475
- var ptr0 = reaction.__destroy_into_raw();
476
- const ret = wasm.encodeReaction(ptr0);
518
+ export function encodeTransactionReference(transactionReference) {
519
+ _assertClass(transactionReference, TransactionReference);
520
+ var ptr0 = transactionReference.__destroy_into_raw();
521
+ const ret = wasm.encodeTransactionReference(ptr0);
522
+ if (ret[2]) {
523
+ throw takeFromExternrefTable0(ret[1]);
524
+ }
525
+ return takeFromExternrefTable0(ret[0]);
526
+ }
527
+
528
+ /**
529
+ * @param {MultiRemoteAttachment} multiRemoteAttachment
530
+ * @returns {Uint8Array}
531
+ */
532
+ export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
533
+ _assertClass(multiRemoteAttachment, MultiRemoteAttachment);
534
+ var ptr0 = multiRemoteAttachment.__destroy_into_raw();
535
+ const ret = wasm.encodeMultiRemoteAttachment(ptr0);
477
536
  if (ret[2]) {
478
537
  throw takeFromExternrefTable0(ret[1]);
479
538
  }
@@ -482,14 +541,40 @@ export function encodeReaction(reaction) {
482
541
 
483
542
  /**
484
543
  * @param {Uint8Array} bytes
485
- * @returns {Reaction}
544
+ * @returns {MultiRemoteAttachment}
486
545
  */
487
- export function decodeReaction(bytes) {
488
- const ret = wasm.decodeReaction(bytes);
546
+ export function decodeMultiRemoteAttachment(bytes) {
547
+ const ret = wasm.decodeMultiRemoteAttachment(bytes);
489
548
  if (ret[2]) {
490
549
  throw takeFromExternrefTable0(ret[1]);
491
550
  }
492
- return Reaction.__wrap(ret[0]);
551
+ return MultiRemoteAttachment.__wrap(ret[0]);
552
+ }
553
+
554
+ /**
555
+ * @param {Uint8Array} bytes
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
568
+ * @returns {Uint8Array}
569
+ */
570
+ export function encodeActions(actions) {
571
+ _assertClass(actions, Actions);
572
+ var ptr0 = actions.__destroy_into_raw();
573
+ const ret = wasm.encodeActions(ptr0);
574
+ if (ret[2]) {
575
+ throw takeFromExternrefTable0(ret[1]);
576
+ }
577
+ return takeFromExternrefTable0(ret[0]);
493
578
  }
494
579
 
495
580
  /**
@@ -525,17 +610,108 @@ export function createClient(host, inbox_id, account_identifier, db_path, encryp
525
610
  _assertClass(log_options, LogOptions);
526
611
  ptr4 = log_options.__destroy_into_raw();
527
612
  }
528
- var ptr5 = isLikeNone(app_version) ? 0 : passStringToWasm0(app_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
529
- var len5 = WASM_VECTOR_LEN;
530
- var ptr6 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
531
- var len6 = WASM_VECTOR_LEN;
532
- let ptr7 = 0;
533
- if (!isLikeNone(auth_handle)) {
534
- _assertClass(auth_handle, AuthHandle);
535
- ptr7 = auth_handle.__destroy_into_raw();
613
+ var ptr5 = isLikeNone(app_version) ? 0 : passStringToWasm0(app_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
614
+ var len5 = WASM_VECTOR_LEN;
615
+ var ptr6 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
616
+ var len6 = WASM_VECTOR_LEN;
617
+ let ptr7 = 0;
618
+ if (!isLikeNone(auth_handle)) {
619
+ _assertClass(auth_handle, AuthHandle);
620
+ ptr7 = auth_handle.__destroy_into_raw();
621
+ }
622
+ const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, isLikeNone(device_sync_worker_mode) ? 3 : ((__wbindgen_enum_DeviceSyncWorkerMode.indexOf(device_sync_worker_mode) + 1 || 3) - 1), ptr4, isLikeNone(allow_offline) ? 0xFFFFFF : allow_offline ? 1 : 0, isLikeNone(disable_events) ? 0xFFFFFF : disable_events ? 1 : 0, ptr5, len5, ptr6, len6, !isLikeNone(nonce), isLikeNone(nonce) ? BigInt(0) : nonce, isLikeNone(auth_callback) ? 0 : addToExternrefTable0(auth_callback), ptr7, isLikeNone(client_mode) ? 2 : client_mode);
623
+ return ret;
624
+ }
625
+
626
+ /**
627
+ * @param {string} host
628
+ * @param {string | null | undefined} gatewayHost
629
+ * @param {Identifier} accountIdentifier
630
+ * @returns {Promise<string | undefined>}
631
+ */
632
+ export function getInboxIdForIdentifier(host, gatewayHost, accountIdentifier) {
633
+ const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
634
+ const len0 = WASM_VECTOR_LEN;
635
+ var ptr1 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
636
+ var len1 = WASM_VECTOR_LEN;
637
+ const ret = wasm.getInboxIdForIdentifier(ptr0, len0, ptr1, len1, accountIdentifier);
638
+ return ret;
639
+ }
640
+
641
+ /**
642
+ * @param {Identifier} accountIdentifier
643
+ * @param {bigint | null} [nonce]
644
+ * @returns {string}
645
+ */
646
+ export function generateInboxId(accountIdentifier, nonce) {
647
+ let deferred2_0;
648
+ let deferred2_1;
649
+ try {
650
+ const ret = wasm.generateInboxId(accountIdentifier, !isLikeNone(nonce), isLikeNone(nonce) ? BigInt(0) : nonce);
651
+ var ptr1 = ret[0];
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);
662
+ }
663
+ }
664
+
665
+ /**
666
+ * @param {Uint8Array} bytes
667
+ * @returns {Attachment}
668
+ */
669
+ export function decodeAttachment(bytes) {
670
+ const ret = wasm.decodeAttachment(bytes);
671
+ if (ret[2]) {
672
+ throw takeFromExternrefTable0(ret[1]);
673
+ }
674
+ return Attachment.__wrap(ret[0]);
675
+ }
676
+
677
+ /**
678
+ * @param {Attachment} attachment
679
+ * @returns {Uint8Array}
680
+ */
681
+ export function encodeAttachment(attachment) {
682
+ _assertClass(attachment, Attachment);
683
+ var ptr0 = attachment.__destroy_into_raw();
684
+ const ret = wasm.encodeAttachment(ptr0);
685
+ if (ret[2]) {
686
+ throw takeFromExternrefTable0(ret[1]);
687
+ }
688
+ return takeFromExternrefTable0(ret[0]);
689
+ }
690
+
691
+ /**
692
+ * @param {Uint8Array} bytes
693
+ * @returns {Intent}
694
+ */
695
+ export function decodeIntent(bytes) {
696
+ const ret = wasm.decodeIntent(bytes);
697
+ if (ret[2]) {
698
+ throw takeFromExternrefTable0(ret[1]);
536
699
  }
537
- const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, isLikeNone(device_sync_worker_mode) ? 3 : ((__wbindgen_enum_DeviceSyncWorkerMode.indexOf(device_sync_worker_mode) + 1 || 3) - 1), ptr4, isLikeNone(allow_offline) ? 0xFFFFFF : allow_offline ? 1 : 0, isLikeNone(disable_events) ? 0xFFFFFF : disable_events ? 1 : 0, ptr5, len5, ptr6, len6, !isLikeNone(nonce), isLikeNone(nonce) ? BigInt(0) : nonce, isLikeNone(auth_callback) ? 0 : addToExternrefTable0(auth_callback), ptr7, isLikeNone(client_mode) ? 2 : client_mode);
538
- return ret;
700
+ return Intent.__wrap(ret[0]);
701
+ }
702
+
703
+ /**
704
+ * @param {Intent} intent
705
+ * @returns {Uint8Array}
706
+ */
707
+ export function encodeIntent(intent) {
708
+ _assertClass(intent, Intent);
709
+ var ptr0 = intent.__destroy_into_raw();
710
+ const ret = wasm.encodeIntent(ptr0);
711
+ if (ret[2]) {
712
+ throw takeFromExternrefTable0(ret[1]);
713
+ }
714
+ return takeFromExternrefTable0(ret[0]);
539
715
  }
540
716
 
541
717
  /**
@@ -549,14 +725,6 @@ export function task_worker_entry_point(ptr) {
549
725
  }
550
726
  }
551
727
 
552
- function wasm_bindgen__convert__closures_____invoke__hafab8b28acda63ce(arg0, arg1) {
553
- wasm.wasm_bindgen__convert__closures_____invoke__hafab8b28acda63ce(arg0, arg1);
554
- }
555
-
556
- function wasm_bindgen__convert__closures_____invoke__h34df32c886f66f02(arg0, arg1, arg2) {
557
- wasm.wasm_bindgen__convert__closures_____invoke__h34df32c886f66f02(arg0, arg1, arg2);
558
- }
559
-
560
728
  function wasm_bindgen__convert__closures_____invoke__h753a3e053785270d(arg0, arg1) {
561
729
  wasm.wasm_bindgen__convert__closures_____invoke__h753a3e053785270d(arg0, arg1);
562
730
  }
@@ -565,6 +733,14 @@ function wasm_bindgen__convert__closures_____invoke__h9011598bdd38acb2(arg0, arg
565
733
  wasm.wasm_bindgen__convert__closures_____invoke__h9011598bdd38acb2(arg0, arg1);
566
734
  }
567
735
 
736
+ function wasm_bindgen__convert__closures_____invoke__h34df32c886f66f02(arg0, arg1, arg2) {
737
+ wasm.wasm_bindgen__convert__closures_____invoke__h34df32c886f66f02(arg0, arg1, arg2);
738
+ }
739
+
740
+ function wasm_bindgen__convert__closures_____invoke__hafab8b28acda63ce(arg0, arg1) {
741
+ wasm.wasm_bindgen__convert__closures_____invoke__hafab8b28acda63ce(arg0, arg1);
742
+ }
743
+
568
744
  function wasm_bindgen__convert__closures_____invoke__h18a484e2affd7fe5(arg0, arg1, arg2, arg3) {
569
745
  wasm.wasm_bindgen__convert__closures_____invoke__h18a484e2affd7fe5(arg0, arg1, arg2, arg3);
570
746
  }
@@ -1346,45 +1522,6 @@ export class Client {
1346
1522
  const ptr = this.__destroy_into_raw();
1347
1523
  wasm.__wbg_client_free(ptr, 0);
1348
1524
  }
1349
- /**
1350
- *
1351
- * * Get the client's inbox state.
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>}
1381
- */
1382
- getKeyPackageStatusesForInstallationIds(installation_ids) {
1383
- const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
1384
- const len0 = WASM_VECTOR_LEN;
1385
- const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
1386
- return ret;
1387
- }
1388
1525
  /**
1389
1526
  * @param {SignatureRequestHandle} signature_request
1390
1527
  * @returns {Promise<void>}
@@ -1480,6 +1617,45 @@ export class Client {
1480
1617
  const ret = wasm.client_revokeAllOtherInstallationsSignatureRequest(this.__wbg_ptr);
1481
1618
  return ret;
1482
1619
  }
1620
+ /**
1621
+ *
1622
+ * * Get the client's inbox state.
1623
+ * *
1624
+ * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
1625
+ * * Otherwise, the state will be read from the local database.
1626
+ *
1627
+ * @param {boolean} refresh_from_network
1628
+ * @returns {Promise<InboxState>}
1629
+ */
1630
+ inboxState(refresh_from_network) {
1631
+ const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
1632
+ return ret;
1633
+ }
1634
+ /**
1635
+ * @param {string} inbox_id
1636
+ * @returns {Promise<InboxState>}
1637
+ */
1638
+ getLatestInboxState(inbox_id) {
1639
+ const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1640
+ const len0 = WASM_VECTOR_LEN;
1641
+ const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
1642
+ return ret;
1643
+ }
1644
+ /**
1645
+ *
1646
+ * * Get key package statuses for a list of installation IDs.
1647
+ * *
1648
+ * * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
1649
+ *
1650
+ * @param {string[]} installation_ids
1651
+ * @returns {Promise<any>}
1652
+ */
1653
+ getKeyPackageStatusesForInstallationIds(installation_ids) {
1654
+ const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
1655
+ const len0 = WASM_VECTOR_LEN;
1656
+ const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
1657
+ return ret;
1658
+ }
1483
1659
  /**
1484
1660
  * @param {ConsentEntityType} entity_type
1485
1661
  * @param {string} entity
@@ -2140,6 +2316,16 @@ export class Conversation {
2140
2316
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
2141
2317
  }
2142
2318
  }
2319
+ /**
2320
+ * @returns {GroupMembershipState}
2321
+ */
2322
+ membershipState() {
2323
+ const ret = wasm.conversation_membershipState(this.__wbg_ptr);
2324
+ if (ret[2]) {
2325
+ throw takeFromExternrefTable0(ret[1]);
2326
+ }
2327
+ return ret[0];
2328
+ }
2143
2329
  /**
2144
2330
  * Publish all unpublished messages
2145
2331
  * @returns {Promise<void>}
@@ -3882,7 +4068,7 @@ export class GroupMember {
3882
4068
  set inboxId(arg0) {
3883
4069
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3884
4070
  const len0 = WASM_VECTOR_LEN;
3885
- wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
4071
+ wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
3886
4072
  }
3887
4073
  /**
3888
4074
  * @returns {Identifier[]}
@@ -4163,7 +4349,7 @@ export class GroupUpdated {
4163
4349
  set initiatedByInboxId(arg0) {
4164
4350
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4165
4351
  const len0 = WASM_VECTOR_LEN;
4166
- wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
4352
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
4167
4353
  }
4168
4354
  /**
4169
4355
  * @returns {Inbox[]}
@@ -4199,6 +4385,23 @@ export class GroupUpdated {
4199
4385
  const len0 = WASM_VECTOR_LEN;
4200
4386
  wasm.__wbg_set_groupupdated_removedInboxes(this.__wbg_ptr, ptr0, len0);
4201
4387
  }
4388
+ /**
4389
+ * @returns {Inbox[]}
4390
+ */
4391
+ get leftInboxes() {
4392
+ const ret = wasm.__wbg_get_groupupdated_leftInboxes(this.__wbg_ptr);
4393
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4394
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
4395
+ return v1;
4396
+ }
4397
+ /**
4398
+ * @param {Inbox[]} arg0
4399
+ */
4400
+ set leftInboxes(arg0) {
4401
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
4402
+ const len0 = WASM_VECTOR_LEN;
4403
+ wasm.__wbg_set_groupupdated_leftInboxes(this.__wbg_ptr, ptr0, len0);
4404
+ }
4202
4405
  /**
4203
4406
  * @returns {MetadataFieldChange[]}
4204
4407
  */
@@ -4216,6 +4419,74 @@ export class GroupUpdated {
4216
4419
  const len0 = WASM_VECTOR_LEN;
4217
4420
  wasm.__wbg_set_groupupdated_metadataFieldChanges(this.__wbg_ptr, ptr0, len0);
4218
4421
  }
4422
+ /**
4423
+ * @returns {Inbox[]}
4424
+ */
4425
+ get addedAdminInboxes() {
4426
+ const ret = wasm.__wbg_get_groupupdated_addedAdminInboxes(this.__wbg_ptr);
4427
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4428
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
4429
+ return v1;
4430
+ }
4431
+ /**
4432
+ * @param {Inbox[]} arg0
4433
+ */
4434
+ set addedAdminInboxes(arg0) {
4435
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
4436
+ const len0 = WASM_VECTOR_LEN;
4437
+ wasm.__wbg_set_groupupdated_addedAdminInboxes(this.__wbg_ptr, ptr0, len0);
4438
+ }
4439
+ /**
4440
+ * @returns {Inbox[]}
4441
+ */
4442
+ get removedAdminInboxes() {
4443
+ const ret = wasm.__wbg_get_groupupdated_removedAdminInboxes(this.__wbg_ptr);
4444
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4445
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
4446
+ return v1;
4447
+ }
4448
+ /**
4449
+ * @param {Inbox[]} arg0
4450
+ */
4451
+ set removedAdminInboxes(arg0) {
4452
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
4453
+ const len0 = WASM_VECTOR_LEN;
4454
+ wasm.__wbg_set_groupupdated_removedAdminInboxes(this.__wbg_ptr, ptr0, len0);
4455
+ }
4456
+ /**
4457
+ * @returns {Inbox[]}
4458
+ */
4459
+ get addedSuperAdminInboxes() {
4460
+ const ret = wasm.__wbg_get_groupupdated_addedSuperAdminInboxes(this.__wbg_ptr);
4461
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4462
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
4463
+ return v1;
4464
+ }
4465
+ /**
4466
+ * @param {Inbox[]} arg0
4467
+ */
4468
+ set addedSuperAdminInboxes(arg0) {
4469
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
4470
+ const len0 = WASM_VECTOR_LEN;
4471
+ wasm.__wbg_set_groupupdated_addedSuperAdminInboxes(this.__wbg_ptr, ptr0, len0);
4472
+ }
4473
+ /**
4474
+ * @returns {Inbox[]}
4475
+ */
4476
+ get removedSuperAdminInboxes() {
4477
+ const ret = wasm.__wbg_get_groupupdated_removedSuperAdminInboxes(this.__wbg_ptr);
4478
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4479
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
4480
+ return v1;
4481
+ }
4482
+ /**
4483
+ * @param {Inbox[]} arg0
4484
+ */
4485
+ set removedSuperAdminInboxes(arg0) {
4486
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
4487
+ const len0 = WASM_VECTOR_LEN;
4488
+ wasm.__wbg_set_groupupdated_removedSuperAdminInboxes(this.__wbg_ptr, ptr0, len0);
4489
+ }
4219
4490
  }
4220
4491
  if (Symbol.dispose) GroupUpdated.prototype[Symbol.dispose] = GroupUpdated.prototype.free;
4221
4492
 
@@ -4402,7 +4673,7 @@ export class Inbox {
4402
4673
  set inboxId(arg0) {
4403
4674
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4404
4675
  const len0 = WASM_VECTOR_LEN;
4405
- wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
4676
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
4406
4677
  }
4407
4678
  }
4408
4679
  if (Symbol.dispose) Inbox.prototype[Symbol.dispose] = Inbox.prototype.free;
@@ -4471,7 +4742,7 @@ export class InboxState {
4471
4742
  set inboxId(arg0) {
4472
4743
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4473
4744
  const len0 = WASM_VECTOR_LEN;
4474
- wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
4745
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
4475
4746
  }
4476
4747
  /**
4477
4748
  * @returns {Identifier}
@@ -4666,7 +4937,7 @@ export class Intent {
4666
4937
  set id(arg0) {
4667
4938
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4668
4939
  const len0 = WASM_VECTOR_LEN;
4669
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
4940
+ wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
4670
4941
  }
4671
4942
  /**
4672
4943
  * @returns {string}
@@ -4689,7 +4960,7 @@ export class Intent {
4689
4960
  set actionId(arg0) {
4690
4961
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4691
4962
  const len0 = WASM_VECTOR_LEN;
4692
- wasm.__wbg_set_intent_actionId(this.__wbg_ptr, ptr0, len0);
4963
+ wasm.__wbg_set_attachment_content(this.__wbg_ptr, ptr0, len0);
4693
4964
  }
4694
4965
  /**
4695
4966
  * @returns {any}
@@ -5200,7 +5471,7 @@ export class ListMessagesOptions {
5200
5471
  * @param {bigint | null} [arg0]
5201
5472
  */
5202
5473
  set sentBeforeNs(arg0) {
5203
- wasm.__wbg_set_listconversationsoptions_createdAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5474
+ wasm.__wbg_set_listmessagesoptions_sentBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5204
5475
  }
5205
5476
  /**
5206
5477
  * @returns {bigint | undefined}
@@ -5213,7 +5484,7 @@ export class ListMessagesOptions {
5213
5484
  * @param {bigint | null} [arg0]
5214
5485
  */
5215
5486
  set sentAfterNs(arg0) {
5216
- wasm.__wbg_set_listconversationsoptions_createdBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5487
+ wasm.__wbg_set_listmessagesoptions_sentAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5217
5488
  }
5218
5489
  /**
5219
5490
  * @returns {bigint | undefined}
@@ -5226,7 +5497,7 @@ export class ListMessagesOptions {
5226
5497
  * @param {bigint | null} [arg0]
5227
5498
  */
5228
5499
  set limit(arg0) {
5229
- wasm.__wbg_set_listconversationsoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5500
+ wasm.__wbg_set_listmessagesoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5230
5501
  }
5231
5502
  /**
5232
5503
  * @returns {DeliveryStatus | undefined}
@@ -5466,14 +5737,14 @@ export class Message {
5466
5737
  * @returns {bigint}
5467
5738
  */
5468
5739
  get sentAtNs() {
5469
- const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
5740
+ const ret = wasm.__wbg_get_message_sentAtNs(this.__wbg_ptr);
5470
5741
  return ret;
5471
5742
  }
5472
5743
  /**
5473
5744
  * @param {bigint} arg0
5474
5745
  */
5475
5746
  set sentAtNs(arg0) {
5476
- wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
5747
+ wasm.__wbg_set_message_sentAtNs(this.__wbg_ptr, arg0);
5477
5748
  }
5478
5749
  /**
5479
5750
  * @returns {string}
@@ -5765,7 +6036,7 @@ export class MetadataFieldChange {
5765
6036
  set fieldName(arg0) {
5766
6037
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5767
6038
  const len0 = WASM_VECTOR_LEN;
5768
- wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
6039
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
5769
6040
  }
5770
6041
  /**
5771
6042
  * @returns {string | undefined}
@@ -5805,7 +6076,7 @@ export class MetadataFieldChange {
5805
6076
  set newValue(arg0) {
5806
6077
  var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5807
6078
  var len0 = WASM_VECTOR_LEN;
5808
- wasm.__wbg_set_attachment_filename(this.__wbg_ptr, ptr0, len0);
6079
+ wasm.__wbg_set_metadatafieldchange_newValue(this.__wbg_ptr, ptr0, len0);
5809
6080
  }
5810
6081
  }
5811
6082
  if (Symbol.dispose) MetadataFieldChange.prototype[Symbol.dispose] = MetadataFieldChange.prototype.free;
@@ -6223,7 +6494,7 @@ export class Reaction {
6223
6494
  set reference(arg0) {
6224
6495
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6225
6496
  const len0 = WASM_VECTOR_LEN;
6226
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
6497
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
6227
6498
  }
6228
6499
  /**
6229
6500
  * @returns {string}
@@ -6246,7 +6517,7 @@ export class Reaction {
6246
6517
  set referenceInboxId(arg0) {
6247
6518
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6248
6519
  const len0 = WASM_VECTOR_LEN;
6249
- wasm.__wbg_set_intent_actionId(this.__wbg_ptr, ptr0, len0);
6520
+ wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
6250
6521
  }
6251
6522
  /**
6252
6523
  * @returns {ReactionAction}
@@ -6365,7 +6636,7 @@ export class ReactionPayload {
6365
6636
  set reference(arg0) {
6366
6637
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6367
6638
  const len0 = WASM_VECTOR_LEN;
6368
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
6639
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
6369
6640
  }
6370
6641
  /**
6371
6642
  * @returns {string}
@@ -6388,7 +6659,7 @@ export class ReactionPayload {
6388
6659
  set referenceInboxId(arg0) {
6389
6660
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6390
6661
  const len0 = WASM_VECTOR_LEN;
6391
- wasm.__wbg_set_intent_actionId(this.__wbg_ptr, ptr0, len0);
6662
+ wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
6392
6663
  }
6393
6664
  /**
6394
6665
  * @returns {ReactionActionPayload}
@@ -6516,7 +6787,7 @@ export class RemoteAttachment {
6516
6787
  set url(arg0) {
6517
6788
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6518
6789
  const len0 = WASM_VECTOR_LEN;
6519
- wasm.__wbg_set_remoteattachment_url(this.__wbg_ptr, ptr0, len0);
6790
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
6520
6791
  }
6521
6792
  /**
6522
6793
  * @returns {string}
@@ -6616,14 +6887,14 @@ export class RemoteAttachment {
6616
6887
  wasm.__wbg_set_remoteattachment_scheme(this.__wbg_ptr, ptr0, len0);
6617
6888
  }
6618
6889
  /**
6619
- * @returns {bigint}
6890
+ * @returns {number}
6620
6891
  */
6621
6892
  get contentLength() {
6622
6893
  const ret = wasm.__wbg_get_remoteattachment_contentLength(this.__wbg_ptr);
6623
- return ret;
6894
+ return ret >>> 0;
6624
6895
  }
6625
6896
  /**
6626
- * @param {bigint} arg0
6897
+ * @param {number} arg0
6627
6898
  */
6628
6899
  set contentLength(arg0) {
6629
6900
  wasm.__wbg_set_remoteattachment_contentLength(this.__wbg_ptr, arg0);
@@ -6776,7 +7047,7 @@ export class RemoteAttachmentInfo {
6776
7047
  set url(arg0) {
6777
7048
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6778
7049
  const len0 = WASM_VECTOR_LEN;
6779
- wasm.__wbg_set_remoteattachmentinfo_url(this.__wbg_ptr, ptr0, len0);
7050
+ wasm.__wbg_set_action_label(this.__wbg_ptr, ptr0, len0);
6780
7051
  }
6781
7052
  /**
6782
7053
  * @returns {Uint8Array}
@@ -7166,7 +7437,7 @@ export class TextContent {
7166
7437
  set content(arg0) {
7167
7438
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7168
7439
  const len0 = WASM_VECTOR_LEN;
7169
- wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
7440
+ wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
7170
7441
  }
7171
7442
  }
7172
7443
  if (Symbol.dispose) TextContent.prototype[Symbol.dispose] = TextContent.prototype.free;
@@ -7240,7 +7511,7 @@ export class TransactionMetadata {
7240
7511
  set currency(arg0) {
7241
7512
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7242
7513
  const len0 = WASM_VECTOR_LEN;
7243
- wasm.__wbg_set_transactionmetadata_currency(this.__wbg_ptr, ptr0, len0);
7514
+ wasm.__wbg_set_remoteattachment_secret(this.__wbg_ptr, ptr0, len0);
7244
7515
  }
7245
7516
  /**
7246
7517
  * @returns {number}
@@ -7312,7 +7583,7 @@ export class TransactionMetadata {
7312
7583
  set toAddress(arg0) {
7313
7584
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7314
7585
  const len0 = WASM_VECTOR_LEN;
7315
- wasm.__wbg_set_transactionmetadata_toAddress(this.__wbg_ptr, ptr0, len0);
7586
+ wasm.__wbg_set_remoteattachment_nonce(this.__wbg_ptr, ptr0, len0);
7316
7587
  }
7317
7588
  }
7318
7589
  if (Symbol.dispose) TransactionMetadata.prototype[Symbol.dispose] = TransactionMetadata.prototype.free;
@@ -8201,26 +8472,26 @@ function __wbg_get_imports() {
8201
8472
  const ret = Date.now();
8202
8473
  return ret;
8203
8474
  };
8204
- imports.wbg.__wbg_on_auth_required_5ac1caba0598597f = function() { return handleError(function (arg0) {
8475
+ imports.wbg.__wbg_on_auth_required_0073951310891028 = function() { return handleError(function (arg0) {
8205
8476
  const ret = arg0.on_auth_required();
8206
8477
  return ret;
8207
8478
  }, arguments) };
8208
- imports.wbg.__wbg_on_close_73985efed19dd92e = function(arg0) {
8479
+ imports.wbg.__wbg_on_close_ac65e222a18da4ec = function(arg0) {
8209
8480
  arg0.on_close();
8210
8481
  };
8211
- imports.wbg.__wbg_on_consent_update_35b5db29591b8109 = function(arg0, arg1) {
8482
+ imports.wbg.__wbg_on_consent_update_515ca76d1f4692c6 = function(arg0, arg1) {
8212
8483
  arg0.on_consent_update(arg1);
8213
8484
  };
8214
- imports.wbg.__wbg_on_conversation_2254cf97d597e25f = function(arg0, arg1) {
8485
+ imports.wbg.__wbg_on_conversation_2d7c67d16051e9fd = function(arg0, arg1) {
8215
8486
  arg0.on_conversation(Conversation.__wrap(arg1));
8216
8487
  };
8217
- imports.wbg.__wbg_on_error_dda0110e69022a6e = function(arg0, arg1) {
8488
+ imports.wbg.__wbg_on_error_f4cbc08a24b1f45c = function(arg0, arg1) {
8218
8489
  arg0.on_error(arg1);
8219
8490
  };
8220
- imports.wbg.__wbg_on_message_50fa665d9bc370db = function(arg0, arg1) {
8491
+ imports.wbg.__wbg_on_message_1dfdfc11a7a08d9f = function(arg0, arg1) {
8221
8492
  arg0.on_message(Message.__wrap(arg1));
8222
8493
  };
8223
- imports.wbg.__wbg_on_message_deleted_c49779aec3c7e0a3 = function(arg0, arg1, arg2) {
8494
+ imports.wbg.__wbg_on_message_deleted_8318458db6af8b0c = function(arg0, arg1, arg2) {
8224
8495
  let deferred0_0;
8225
8496
  let deferred0_1;
8226
8497
  try {
@@ -8231,7 +8502,7 @@ function __wbg_get_imports() {
8231
8502
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
8232
8503
  }
8233
8504
  };
8234
- imports.wbg.__wbg_on_user_preference_update_73815006f3995f17 = function(arg0, arg1, arg2) {
8505
+ imports.wbg.__wbg_on_user_preference_update_598e2bd9bb61c7ea = function(arg0, arg1, arg2) {
8235
8506
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
8236
8507
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
8237
8508
  arg0.on_user_preference_update(v0);
@@ -8515,21 +8786,16 @@ function __wbg_get_imports() {
8515
8786
  const ret = XmtpCursor.__unwrap(arg0);
8516
8787
  return ret;
8517
8788
  };
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
+ };
8518
8794
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
8519
8795
  // Cast intrinsic for `Ref(String) -> Externref`.
8520
8796
  const ret = getStringFromWasm0(arg0, arg1);
8521
8797
  return ret;
8522
8798
  };
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
8799
  imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
8534
8800
  // Cast intrinsic for `U64 -> Externref`.
8535
8801
  const ret = BigInt.asUintN(64, arg0);
@@ -8542,13 +8808,8 @@ function __wbg_get_imports() {
8542
8808
  const ret = v0;
8543
8809
  return ret;
8544
8810
  };
8545
- imports.wbg.__wbindgen_cast_7ddadc9b977993ea = function(arg0, arg1) {
8546
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7133, function: Function { arguments: [], shim_idx: 7134, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8547
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h83869f5b20c236a6, wasm_bindgen__convert__closures_____invoke__hafab8b28acda63ce);
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`.
8811
+ imports.wbg.__wbindgen_cast_6038cfb3ffda6ae4 = function(arg0, arg1) {
8812
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7219, function: Function { arguments: [Externref], shim_idx: 7230, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8552
8813
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5faecc40242ea0ca, wasm_bindgen__convert__closures_____invoke__h34df32c886f66f02);
8553
8814
  return ret;
8554
8815
  };
@@ -8571,11 +8832,21 @@ function __wbg_get_imports() {
8571
8832
  const ret = arg0;
8572
8833
  return ret;
8573
8834
  };
8835
+ imports.wbg.__wbindgen_cast_b364f81b0bffec21 = function(arg0, arg1) {
8836
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7020, function: Function { arguments: [], shim_idx: 7021, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8837
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h8a0c80adf0f210e5, wasm_bindgen__convert__closures_____invoke__h753a3e053785270d);
8838
+ return ret;
8839
+ };
8574
8840
  imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
8575
8841
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
8576
8842
  const ret = getArrayU8FromWasm0(arg0, arg1);
8577
8843
  return ret;
8578
8844
  };
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
+ };
8579
8850
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
8580
8851
  // Cast intrinsic for `F64 -> Externref`.
8581
8852
  const ret = arg0;