@xmtp/wasm-bindings 1.2.0-dev.bed98df → 1.2.0-rc1

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.
@@ -102,6 +102,11 @@ function isLikeNone(x) {
102
102
  return x === undefined || x === null;
103
103
  }
104
104
 
105
+ function getArrayU8FromWasm0(ptr, len) {
106
+ ptr = ptr >>> 0;
107
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
108
+ }
109
+
105
110
  function getArrayJsValueFromWasm0(ptr, len) {
106
111
  ptr = ptr >>> 0;
107
112
  const mem = getDataViewMemory0();
@@ -113,11 +118,6 @@ function getArrayJsValueFromWasm0(ptr, len) {
113
118
  return result;
114
119
  }
115
120
 
116
- function getArrayU8FromWasm0(ptr, len) {
117
- ptr = ptr >>> 0;
118
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
119
- }
120
-
121
121
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
122
122
  ? { register: () => {}, unregister: () => {} }
123
123
  : new FinalizationRegistry(state => {
@@ -224,17 +224,87 @@ function passArrayJsValueToWasm0(array, malloc) {
224
224
  return ptr;
225
225
  }
226
226
 
227
+ function takeFromExternrefTable0(idx) {
228
+ const value = wasm.__wbindgen_export_4.get(idx);
229
+ wasm.__externref_table_dealloc(idx);
230
+ return value;
231
+ }
232
+
227
233
  function _assertClass(instance, klass) {
228
234
  if (!(instance instanceof klass)) {
229
235
  throw new Error(`expected instance of ${klass.name}`);
230
236
  }
231
237
  }
238
+ /**
239
+ * @param {string} host
240
+ * @param {Identifier} accountIdentifier
241
+ * @returns {Promise<string | undefined>}
242
+ */
243
+ export function getInboxIdForIdentifier(host, accountIdentifier) {
244
+ const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
245
+ const len0 = WASM_VECTOR_LEN;
246
+ const ret = wasm.getInboxIdForIdentifier(ptr0, len0, accountIdentifier);
247
+ return ret;
248
+ }
232
249
 
233
- function takeFromExternrefTable0(idx) {
234
- const value = wasm.__wbindgen_export_4.get(idx);
235
- wasm.__externref_table_dealloc(idx);
236
- return value;
250
+ /**
251
+ * @param {Identifier} accountIdentifier
252
+ * @returns {string}
253
+ */
254
+ export function generateInboxId(accountIdentifier) {
255
+ let deferred2_0;
256
+ let deferred2_1;
257
+ try {
258
+ const ret = wasm.generateInboxId(accountIdentifier);
259
+ var ptr1 = ret[0];
260
+ var len1 = ret[1];
261
+ if (ret[3]) {
262
+ ptr1 = 0; len1 = 0;
263
+ throw takeFromExternrefTable0(ret[2]);
264
+ }
265
+ deferred2_0 = ptr1;
266
+ deferred2_1 = len1;
267
+ return getStringFromWasm0(ptr1, len1);
268
+ } finally {
269
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
270
+ }
271
+ }
272
+
273
+ function passArray8ToWasm0(arg, malloc) {
274
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
275
+ getUint8ArrayMemory0().set(arg, ptr / 1);
276
+ WASM_VECTOR_LEN = arg.length;
277
+ return ptr;
237
278
  }
279
+ /**
280
+ * @param {string} host
281
+ * @param {string} inbox_id
282
+ * @param {Identifier} account_identifier
283
+ * @param {string | null} [db_path]
284
+ * @param {Uint8Array | null} [encryption_key]
285
+ * @param {string | null} [device_sync_server_url]
286
+ * @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
287
+ * @param {LogOptions | null} [log_options]
288
+ * @returns {Promise<Client>}
289
+ */
290
+ export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options) {
291
+ const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
292
+ const len0 = WASM_VECTOR_LEN;
293
+ const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
294
+ const len1 = WASM_VECTOR_LEN;
295
+ var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
296
+ var len2 = WASM_VECTOR_LEN;
297
+ var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
298
+ var len3 = WASM_VECTOR_LEN;
299
+ let ptr4 = 0;
300
+ if (!isLikeNone(log_options)) {
301
+ _assertClass(log_options, LogOptions);
302
+ ptr4 = log_options.__destroy_into_raw();
303
+ }
304
+ 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);
305
+ return ret;
306
+ }
307
+
238
308
  /**
239
309
  * @param {MultiRemoteAttachment} multiRemoteAttachment
240
310
  * @returns {Uint8Array}
@@ -301,90 +371,29 @@ export function verifySignedWithPublicKey(signature_text, signature_bytes, publi
301
371
  }
302
372
  }
303
373
 
304
- function passArray8ToWasm0(arg, malloc) {
305
- const ptr = malloc(arg.length * 1, 1) >>> 0;
306
- getUint8ArrayMemory0().set(arg, ptr / 1);
307
- WASM_VECTOR_LEN = arg.length;
308
- return ptr;
309
- }
310
- /**
311
- * @param {string} host
312
- * @param {Identifier} accountIdentifier
313
- * @returns {Promise<string | undefined>}
314
- */
315
- export function getInboxIdForIdentifier(host, accountIdentifier) {
316
- const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
317
- const len0 = WASM_VECTOR_LEN;
318
- const ret = wasm.getInboxIdForIdentifier(ptr0, len0, accountIdentifier);
319
- return ret;
374
+ function __wbg_adapter_50(arg0, arg1) {
375
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6040dd5f55152215(arg0, arg1);
320
376
  }
321
377
 
322
- /**
323
- * @param {Identifier} accountIdentifier
324
- * @returns {string}
325
- */
326
- export function generateInboxId(accountIdentifier) {
327
- let deferred2_0;
328
- let deferred2_1;
329
- try {
330
- const ret = wasm.generateInboxId(accountIdentifier);
331
- var ptr1 = ret[0];
332
- var len1 = ret[1];
333
- if (ret[3]) {
334
- ptr1 = 0; len1 = 0;
335
- throw takeFromExternrefTable0(ret[2]);
336
- }
337
- deferred2_0 = ptr1;
338
- deferred2_1 = len1;
339
- return getStringFromWasm0(ptr1, len1);
340
- } finally {
341
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
342
- }
378
+ function __wbg_adapter_53(arg0, arg1) {
379
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h89dafc0baf46c12b(arg0, arg1);
343
380
  }
344
381
 
345
- /**
346
- * @param {string} host
347
- * @param {string} inbox_id
348
- * @param {Identifier} account_identifier
349
- * @param {string | null} [db_path]
350
- * @param {Uint8Array | null} [encryption_key]
351
- * @param {string | null} [history_sync_url]
352
- * @param {LogOptions | null} [log_options]
353
- * @returns {Promise<Client>}
354
- */
355
- export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, history_sync_url, log_options) {
356
- const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
357
- const len0 = WASM_VECTOR_LEN;
358
- const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
359
- const len1 = WASM_VECTOR_LEN;
360
- var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
361
- var len2 = WASM_VECTOR_LEN;
362
- var ptr3 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
363
- var len3 = WASM_VECTOR_LEN;
364
- let ptr4 = 0;
365
- if (!isLikeNone(log_options)) {
366
- _assertClass(log_options, LogOptions);
367
- ptr4 = log_options.__destroy_into_raw();
368
- }
369
- const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, ptr4);
370
- return ret;
371
- }
372
-
373
- function __wbg_adapter_50(arg0, arg1) {
374
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd11fcf7148e8db56(arg0, arg1);
382
+ function __wbg_adapter_56(arg0, arg1, arg2) {
383
+ wasm.closure4460_externref_shim(arg0, arg1, arg2);
375
384
  }
376
385
 
377
- function __wbg_adapter_53(arg0, arg1, arg2) {
378
- wasm.closure3862_externref_shim(arg0, arg1, arg2);
386
+ function __wbg_adapter_59(arg0, arg1) {
387
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f45197f24caef5a(arg0, arg1);
379
388
  }
380
389
 
381
- function __wbg_adapter_611(arg0, arg1, arg2, arg3, arg4) {
382
- const ret = wasm.closure4857_externref_shim(arg0, arg1, arg2, arg3, arg4);
390
+ function __wbg_adapter_652(arg0, arg1, arg2, arg3, arg4) {
391
+ const ret = wasm.closure5467_externref_shim(arg0, arg1, arg2, arg3, arg4);
383
392
  return ret !== 0;
384
393
  }
385
394
 
386
- function __wbg_adapter_712(arg0, arg1, arg2, arg3) {
387
- wasm.closure4856_externref_shim(arg0, arg1, arg2, arg3);
395
+ function __wbg_adapter_753(arg0, arg1, arg2, arg3) {
396
+ wasm.closure5466_externref_shim(arg0, arg1, arg2, arg3);
388
397
  }
389
398
 
390
399
  /**
@@ -434,12 +443,13 @@ export const DeliveryStatus = Object.freeze({
434
443
  Failed: 2, "2": "Failed",
435
444
  });
436
445
  /**
437
- * @enum {0 | 1 | 2}
446
+ * @enum {0 | 1 | 2 | 3}
438
447
  */
439
448
  export const GroupMembershipState = Object.freeze({
440
449
  Allowed: 0, "0": "Allowed",
441
450
  Rejected: 1, "1": "Rejected",
442
451
  Pending: 2, "2": "Pending",
452
+ Restored: 3, "3": "Restored",
443
453
  });
444
454
  /**
445
455
  * @enum {0 | 1}
@@ -530,6 +540,8 @@ export const SortDirection = Object.freeze({
530
540
  Descending: 1, "1": "Descending",
531
541
  });
532
542
 
543
+ const __wbindgen_enum_DeviceSyncWorkerMode = ["enabled", "disabled"];
544
+
533
545
  const __wbindgen_enum_LogLevel = ["off", "error", "warn", "info", "debug", "trace"];
534
546
 
535
547
  const __wbindgen_enum_ReadableStreamType = ["bytes"];
@@ -564,143 +576,63 @@ export class Client {
564
576
  wasm.__wbg_client_free(ptr, 0);
565
577
  }
566
578
  /**
567
- * @returns {string | undefined}
568
- */
569
- createInboxSignatureText() {
570
- const ret = wasm.client_createInboxSignatureText(this.__wbg_ptr);
571
- if (ret[3]) {
572
- throw takeFromExternrefTable0(ret[2]);
573
- }
574
- let v1;
575
- if (ret[0] !== 0) {
576
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
577
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
578
- }
579
- return v1;
580
- }
581
- /**
582
- * @param {Identifier} new_identifier
583
- * @returns {Promise<string>}
584
- */
585
- addWalletSignatureText(new_identifier) {
586
- const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, new_identifier);
587
- return ret;
588
- }
589
- /**
590
- * @param {Identifier} identifier
591
- * @returns {Promise<string>}
592
- */
593
- revokeWalletSignatureText(identifier) {
594
- const ret = wasm.client_revokeWalletSignatureText(this.__wbg_ptr, identifier);
595
- return ret;
596
- }
597
- /**
598
- * @returns {Promise<string>}
599
- */
600
- revokeAllOtherInstallationsSignatureText() {
601
- const ret = wasm.client_revokeAllOtherInstallationsSignatureText(this.__wbg_ptr);
602
- return ret;
603
- }
604
- /**
605
- * @param {Uint8Array[]} installation_ids
606
- * @returns {Promise<string>}
607
- */
608
- revokeInstallationsSignatureText(installation_ids) {
609
- const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
610
- const len0 = WASM_VECTOR_LEN;
611
- const ret = wasm.client_revokeInstallationsSignatureText(this.__wbg_ptr, ptr0, len0);
612
- return ret;
613
- }
614
- /**
615
- * @param {Identifier} new_recovery_identifier
616
- * @returns {Promise<string>}
617
- */
618
- changeRecoveryIdentifierSignatureText(new_recovery_identifier) {
619
- const ret = wasm.client_changeRecoveryIdentifierSignatureText(this.__wbg_ptr, new_recovery_identifier);
620
- return ret;
621
- }
622
- /**
623
- * @param {SignatureRequestType} signature_type
624
- * @param {Uint8Array} signature_bytes
625
- * @returns {Promise<void>}
626
- */
627
- addEcdsaSignature(signature_type, signature_bytes) {
628
- const ret = wasm.client_addEcdsaSignature(this.__wbg_ptr, signature_type, signature_bytes);
629
- return ret;
630
- }
631
- /**
632
- * @param {SignatureRequestType} signature_type
633
- * @param {PasskeySignature} signature
579
+ * @param {Consent[]} records
634
580
  * @returns {Promise<void>}
635
581
  */
636
- addPasskeySignature(signature_type, signature) {
637
- _assertClass(signature, PasskeySignature);
638
- var ptr0 = signature.__destroy_into_raw();
639
- const ret = wasm.client_addPasskeySignature(this.__wbg_ptr, signature_type, ptr0);
582
+ setConsentStates(records) {
583
+ const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
584
+ const len0 = WASM_VECTOR_LEN;
585
+ const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
640
586
  return ret;
641
587
  }
642
588
  /**
643
- * @param {SignatureRequestType} signature_type
644
- * @param {Uint8Array} signature_bytes
645
- * @param {bigint} chain_id
646
- * @param {bigint | null} [block_number]
647
- * @returns {Promise<void>}
589
+ * @param {ConsentEntityType} entity_type
590
+ * @param {string} entity
591
+ * @returns {Promise<ConsentState>}
648
592
  */
649
- addScwSignature(signature_type, signature_bytes, chain_id, block_number) {
650
- const ret = wasm.client_addScwSignature(this.__wbg_ptr, signature_type, signature_bytes, chain_id, !isLikeNone(block_number), isLikeNone(block_number) ? BigInt(0) : block_number);
593
+ getConsentState(entity_type, entity) {
594
+ const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
595
+ const len0 = WASM_VECTOR_LEN;
596
+ const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
651
597
  return ret;
652
598
  }
653
599
  /**
654
- * @returns {Promise<void>}
600
+ *
601
+ * * Get the client's inbox state.
602
+ * *
603
+ * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
604
+ * * Otherwise, the state will be read from the local database.
605
+ *
606
+ * @param {boolean} refresh_from_network
607
+ * @returns {Promise<InboxState>}
655
608
  */
656
- applySignatureRequests() {
657
- const ret = wasm.client_applySignatureRequests(this.__wbg_ptr);
609
+ inboxState(refresh_from_network) {
610
+ const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
658
611
  return ret;
659
612
  }
660
613
  /**
661
- * @param {string} signature_text
662
- * @returns {Uint8Array}
663
- */
664
- signWithInstallationKey(signature_text) {
665
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
666
- const len0 = WASM_VECTOR_LEN;
667
- const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
668
- if (ret[2]) {
669
- throw takeFromExternrefTable0(ret[1]);
670
- }
671
- return takeFromExternrefTable0(ret[0]);
672
- }
673
- /**
674
- * @param {string} signature_text
675
- * @param {Uint8Array} signature_bytes
676
- */
677
- verifySignedWithInstallationKey(signature_text, signature_bytes) {
678
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
679
- const len0 = WASM_VECTOR_LEN;
680
- const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
681
- if (ret[1]) {
682
- throw takeFromExternrefTable0(ret[0]);
683
- }
684
- }
685
- /**
686
- * @param {Consent[]} records
687
- * @returns {Promise<void>}
614
+ * @param {string} inbox_id
615
+ * @returns {Promise<InboxState>}
688
616
  */
689
- setConsentStates(records) {
690
- const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
617
+ getLatestInboxState(inbox_id) {
618
+ const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
691
619
  const len0 = WASM_VECTOR_LEN;
692
- const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
620
+ const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
693
621
  return ret;
694
622
  }
695
623
  /**
696
- * @param {ConsentEntityType} entity_type
697
- * @param {string} entity
698
- * @returns {Promise<ConsentState>}
624
+ *
625
+ * * Get key package statuses for a list of installation IDs.
626
+ * *
627
+ * * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
628
+ *
629
+ * @param {string[]} installation_ids
630
+ * @returns {Promise<any>}
699
631
  */
700
- getConsentState(entity_type, entity) {
701
- const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
632
+ getKeyPackageStatusesForInstallationIds(installation_ids) {
633
+ const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
702
634
  const len0 = WASM_VECTOR_LEN;
703
- const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
635
+ const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
704
636
  return ret;
705
637
  }
706
638
  /**
@@ -775,81 +707,161 @@ export class Client {
775
707
  /**
776
708
  * @returns {Promise<void>}
777
709
  */
778
- sendHistorySyncRequest() {
779
- const ret = wasm.client_sendHistorySyncRequest(this.__wbg_ptr);
710
+ sendSyncRequest() {
711
+ const ret = wasm.client_sendSyncRequest(this.__wbg_ptr);
780
712
  return ret;
781
713
  }
782
714
  /**
783
- * @returns {Promise<void>}
715
+ * @param {Identifier} identifier
716
+ * @returns {Promise<string | undefined>}
784
717
  */
785
- sendConsentSyncRequest() {
786
- const ret = wasm.client_sendConsentSyncRequest(this.__wbg_ptr);
718
+ findInboxIdByIdentifier(identifier) {
719
+ const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
720
+ return ret;
721
+ }
722
+ /**
723
+ * @param {string[]} inbox_ids
724
+ * @param {boolean} refresh_from_network
725
+ * @returns {Promise<InboxState[]>}
726
+ */
727
+ inboxStateFromInboxIds(inbox_ids, refresh_from_network) {
728
+ const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
729
+ const len0 = WASM_VECTOR_LEN;
730
+ const ret = wasm.client_inboxStateFromInboxIds(this.__wbg_ptr, ptr0, len0, refresh_from_network);
731
+ return ret;
732
+ }
733
+ /**
734
+ * @returns {Conversations}
735
+ */
736
+ conversations() {
737
+ const ret = wasm.client_conversations(this.__wbg_ptr);
738
+ return Conversations.__wrap(ret);
739
+ }
740
+ /**
741
+ * @returns {Promise<number>}
742
+ */
743
+ syncPreferences() {
744
+ const ret = wasm.client_syncPreferences(this.__wbg_ptr);
745
+ return ret;
746
+ }
747
+ /**
748
+ * @returns {string | undefined}
749
+ */
750
+ createInboxSignatureText() {
751
+ const ret = wasm.client_createInboxSignatureText(this.__wbg_ptr);
752
+ if (ret[3]) {
753
+ throw takeFromExternrefTable0(ret[2]);
754
+ }
755
+ let v1;
756
+ if (ret[0] !== 0) {
757
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
758
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
759
+ }
760
+ return v1;
761
+ }
762
+ /**
763
+ * @param {Identifier} new_identifier
764
+ * @returns {Promise<string>}
765
+ */
766
+ addWalletSignatureText(new_identifier) {
767
+ const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, new_identifier);
787
768
  return ret;
788
769
  }
789
770
  /**
790
771
  * @param {Identifier} identifier
791
- * @returns {Promise<string | undefined>}
772
+ * @returns {Promise<string>}
773
+ */
774
+ revokeWalletSignatureText(identifier) {
775
+ const ret = wasm.client_revokeWalletSignatureText(this.__wbg_ptr, identifier);
776
+ return ret;
777
+ }
778
+ /**
779
+ * @returns {Promise<string>}
780
+ */
781
+ revokeAllOtherInstallationsSignatureText() {
782
+ const ret = wasm.client_revokeAllOtherInstallationsSignatureText(this.__wbg_ptr);
783
+ return ret;
784
+ }
785
+ /**
786
+ * @param {Uint8Array[]} installation_ids
787
+ * @returns {Promise<string>}
788
+ */
789
+ revokeInstallationsSignatureText(installation_ids) {
790
+ const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
791
+ const len0 = WASM_VECTOR_LEN;
792
+ const ret = wasm.client_revokeInstallationsSignatureText(this.__wbg_ptr, ptr0, len0);
793
+ return ret;
794
+ }
795
+ /**
796
+ * @param {Identifier} new_recovery_identifier
797
+ * @returns {Promise<string>}
798
+ */
799
+ changeRecoveryIdentifierSignatureText(new_recovery_identifier) {
800
+ const ret = wasm.client_changeRecoveryIdentifierSignatureText(this.__wbg_ptr, new_recovery_identifier);
801
+ return ret;
802
+ }
803
+ /**
804
+ * @param {SignatureRequestType} signature_type
805
+ * @param {Uint8Array} signature_bytes
806
+ * @returns {Promise<void>}
792
807
  */
793
- findInboxIdByIdentifier(identifier) {
794
- const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
808
+ addEcdsaSignature(signature_type, signature_bytes) {
809
+ const ret = wasm.client_addEcdsaSignature(this.__wbg_ptr, signature_type, signature_bytes);
795
810
  return ret;
796
811
  }
797
812
  /**
798
- * @param {string[]} inbox_ids
799
- * @param {boolean} refresh_from_network
800
- * @returns {Promise<InboxState[]>}
813
+ * @param {SignatureRequestType} signature_type
814
+ * @param {PasskeySignature} signature
815
+ * @returns {Promise<void>}
801
816
  */
802
- inboxStateFromInboxIds(inbox_ids, refresh_from_network) {
803
- const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
804
- const len0 = WASM_VECTOR_LEN;
805
- const ret = wasm.client_inboxStateFromInboxIds(this.__wbg_ptr, ptr0, len0, refresh_from_network);
817
+ addPasskeySignature(signature_type, signature) {
818
+ _assertClass(signature, PasskeySignature);
819
+ var ptr0 = signature.__destroy_into_raw();
820
+ const ret = wasm.client_addPasskeySignature(this.__wbg_ptr, signature_type, ptr0);
806
821
  return ret;
807
822
  }
808
823
  /**
809
- * @returns {Conversations}
824
+ * @param {SignatureRequestType} signature_type
825
+ * @param {Uint8Array} signature_bytes
826
+ * @param {bigint} chain_id
827
+ * @param {bigint | null} [block_number]
828
+ * @returns {Promise<void>}
810
829
  */
811
- conversations() {
812
- const ret = wasm.client_conversations(this.__wbg_ptr);
813
- return Conversations.__wrap(ret);
830
+ addScwSignature(signature_type, signature_bytes, chain_id, block_number) {
831
+ const ret = wasm.client_addScwSignature(this.__wbg_ptr, signature_type, signature_bytes, chain_id, !isLikeNone(block_number), isLikeNone(block_number) ? BigInt(0) : block_number);
832
+ return ret;
814
833
  }
815
834
  /**
816
- *
817
- * * Get the client's inbox state.
818
- * *
819
- * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
820
- * * Otherwise, the state will be read from the local database.
821
- *
822
- * @param {boolean} refresh_from_network
823
- * @returns {Promise<InboxState>}
835
+ * @returns {Promise<void>}
824
836
  */
825
- inboxState(refresh_from_network) {
826
- const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
837
+ applySignatureRequests() {
838
+ const ret = wasm.client_applySignatureRequests(this.__wbg_ptr);
827
839
  return ret;
828
840
  }
829
841
  /**
830
- * @param {string} inbox_id
831
- * @returns {Promise<InboxState>}
842
+ * @param {string} signature_text
843
+ * @returns {Uint8Array}
832
844
  */
833
- getLatestInboxState(inbox_id) {
834
- const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
845
+ signWithInstallationKey(signature_text) {
846
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
835
847
  const len0 = WASM_VECTOR_LEN;
836
- const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
837
- return ret;
848
+ const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
849
+ if (ret[2]) {
850
+ throw takeFromExternrefTable0(ret[1]);
851
+ }
852
+ return takeFromExternrefTable0(ret[0]);
838
853
  }
839
854
  /**
840
- *
841
- * * Get key package statuses for a list of installation IDs.
842
- * *
843
- * * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
844
- *
845
- * @param {string[]} installation_ids
846
- * @returns {Promise<any>}
855
+ * @param {string} signature_text
856
+ * @param {Uint8Array} signature_bytes
847
857
  */
848
- getKeyPackageStatusesForInstallationIds(installation_ids) {
849
- const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
858
+ verifySignedWithInstallationKey(signature_text, signature_bytes) {
859
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
850
860
  const len0 = WASM_VECTOR_LEN;
851
- const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
852
- return ret;
861
+ const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
862
+ if (ret[1]) {
863
+ throw takeFromExternrefTable0(ret[0]);
864
+ }
853
865
  }
854
866
  }
855
867
 
@@ -987,7 +999,7 @@ export class ContentTypeId {
987
999
  set authorityId(arg0) {
988
1000
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
989
1001
  const len0 = WASM_VECTOR_LEN;
990
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
1002
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
991
1003
  }
992
1004
  /**
993
1005
  * @returns {string}
@@ -1081,6 +1093,25 @@ export class Conversation {
1081
1093
  const ptr = this.__destroy_into_raw();
1082
1094
  wasm.__wbg_conversation_free(ptr, 0);
1083
1095
  }
1096
+ /**
1097
+ * @returns {ConsentState}
1098
+ */
1099
+ consentState() {
1100
+ const ret = wasm.conversation_consentState(this.__wbg_ptr);
1101
+ if (ret[2]) {
1102
+ throw takeFromExternrefTable0(ret[1]);
1103
+ }
1104
+ return ret[0];
1105
+ }
1106
+ /**
1107
+ * @param {ConsentState} state
1108
+ */
1109
+ updateConsentState(state) {
1110
+ const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
1111
+ if (ret[1]) {
1112
+ throw takeFromExternrefTable0(ret[0]);
1113
+ }
1114
+ }
1084
1115
  /**
1085
1116
  * @returns {string}
1086
1117
  */
@@ -1562,24 +1593,87 @@ export class Conversation {
1562
1593
  return takeFromExternrefTable0(ret[0]);
1563
1594
  }
1564
1595
  /**
1565
- * @returns {ConsentState}
1596
+ * @returns {Promise<any>}
1566
1597
  */
1567
- consentState() {
1568
- const ret = wasm.conversation_consentState(this.__wbg_ptr);
1569
- if (ret[2]) {
1570
- throw takeFromExternrefTable0(ret[1]);
1571
- }
1572
- return ret[0];
1598
+ getDebugInfo() {
1599
+ const ret = wasm.conversation_getDebugInfo(this.__wbg_ptr);
1600
+ return ret;
1573
1601
  }
1574
1602
  /**
1575
- * @param {ConsentState} state
1603
+ * @returns {Promise<Conversation[]>}
1576
1604
  */
1577
- updateConsentState(state) {
1578
- const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
1579
- if (ret[1]) {
1580
- throw takeFromExternrefTable0(ret[0]);
1605
+ findDuplicateDms() {
1606
+ const ret = wasm.conversation_findDuplicateDms(this.__wbg_ptr);
1607
+ return ret;
1608
+ }
1609
+ }
1610
+
1611
+ const ConversationDebugInfoFinalization = (typeof FinalizationRegistry === 'undefined')
1612
+ ? { register: () => {}, unregister: () => {} }
1613
+ : new FinalizationRegistry(ptr => wasm.__wbg_conversationdebuginfo_free(ptr >>> 0, 1));
1614
+
1615
+ export class ConversationDebugInfo {
1616
+
1617
+ __destroy_into_raw() {
1618
+ const ptr = this.__wbg_ptr;
1619
+ this.__wbg_ptr = 0;
1620
+ ConversationDebugInfoFinalization.unregister(this);
1621
+ return ptr;
1622
+ }
1623
+
1624
+ free() {
1625
+ const ptr = this.__destroy_into_raw();
1626
+ wasm.__wbg_conversationdebuginfo_free(ptr, 0);
1627
+ }
1628
+ /**
1629
+ * @returns {bigint}
1630
+ */
1631
+ get epoch() {
1632
+ const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
1633
+ return BigInt.asUintN(64, ret);
1634
+ }
1635
+ /**
1636
+ * @param {bigint} arg0
1637
+ */
1638
+ set epoch(arg0) {
1639
+ wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
1640
+ }
1641
+ /**
1642
+ * @returns {boolean}
1643
+ */
1644
+ get maybeForked() {
1645
+ const ret = wasm.__wbg_get_conversationdebuginfo_maybeForked(this.__wbg_ptr);
1646
+ return ret !== 0;
1647
+ }
1648
+ /**
1649
+ * @param {boolean} arg0
1650
+ */
1651
+ set maybeForked(arg0) {
1652
+ wasm.__wbg_set_conversationdebuginfo_maybeForked(this.__wbg_ptr, arg0);
1653
+ }
1654
+ /**
1655
+ * @returns {string}
1656
+ */
1657
+ get forkDetails() {
1658
+ let deferred1_0;
1659
+ let deferred1_1;
1660
+ try {
1661
+ const ret = wasm.__wbg_get_conversationdebuginfo_forkDetails(this.__wbg_ptr);
1662
+ deferred1_0 = ret[0];
1663
+ deferred1_1 = ret[1];
1664
+ return getStringFromWasm0(ret[0], ret[1]);
1665
+ } finally {
1666
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1581
1667
  }
1582
1668
  }
1669
+ /**
1670
+ * @param {string} arg0
1671
+ */
1672
+ set forkDetails(arg0) {
1673
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1674
+ const len0 = WASM_VECTOR_LEN;
1675
+ wasm.__wbg_set_conversationdebuginfo_forkDetails(this.__wbg_ptr, ptr0, len0);
1676
+ }
1583
1677
  }
1584
1678
 
1585
1679
  const ConversationListItemFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1684,6 +1778,22 @@ export class Conversations {
1684
1778
  const ptr = this.__destroy_into_raw();
1685
1779
  wasm.__wbg_conversations_free(ptr, 0);
1686
1780
  }
1781
+ /**
1782
+ * @param {CreateGroupOptions | null} [options]
1783
+ * @returns {Conversation}
1784
+ */
1785
+ createGroupOptimistic(options) {
1786
+ let ptr0 = 0;
1787
+ if (!isLikeNone(options)) {
1788
+ _assertClass(options, CreateGroupOptions);
1789
+ ptr0 = options.__destroy_into_raw();
1790
+ }
1791
+ const ret = wasm.conversations_createGroupOptimistic(this.__wbg_ptr, ptr0);
1792
+ if (ret[2]) {
1793
+ throw takeFromExternrefTable0(ret[1]);
1794
+ }
1795
+ return Conversation.__wrap(ret[0]);
1796
+ }
1687
1797
  /**
1688
1798
  * @param {Identifier[]} account_identifiers
1689
1799
  * @param {CreateGroupOptions | null} [options]
@@ -1802,6 +1912,13 @@ export class Conversations {
1802
1912
  const ret = wasm.conversations_syncAllConversations(this.__wbg_ptr, ptr0, len0);
1803
1913
  return ret;
1804
1914
  }
1915
+ /**
1916
+ * @returns {Promise<void>}
1917
+ */
1918
+ syncDeviceSync() {
1919
+ const ret = wasm.conversations_syncDeviceSync(this.__wbg_ptr);
1920
+ return ret;
1921
+ }
1805
1922
  /**
1806
1923
  * @param {ListConversationsOptions | null} [opts]
1807
1924
  * @returns {Array<any>}
@@ -1897,10 +2014,13 @@ export class Conversations {
1897
2014
  /**
1898
2015
  * @param {any} callback
1899
2016
  * @param {ConversationType | null} [conversation_type]
2017
+ * @param {any[] | null} [consent_states]
1900
2018
  * @returns {StreamCloser}
1901
2019
  */
1902
- streamAllMessages(callback, conversation_type) {
1903
- const ret = wasm.conversations_streamAllMessages(this.__wbg_ptr, callback, isLikeNone(conversation_type) ? 3 : conversation_type);
2020
+ streamAllMessages(callback, conversation_type, consent_states) {
2021
+ var ptr0 = isLikeNone(consent_states) ? 0 : passArrayJsValueToWasm0(consent_states, wasm.__wbindgen_malloc);
2022
+ var len0 = WASM_VECTOR_LEN;
2023
+ const ret = wasm.conversations_streamAllMessages(this.__wbg_ptr, callback, isLikeNone(conversation_type) ? 3 : conversation_type, ptr0, len0);
1904
2024
  if (ret[2]) {
1905
2025
  throw takeFromExternrefTable0(ret[1]);
1906
2026
  }
@@ -2301,7 +2421,7 @@ export class GroupMember {
2301
2421
  set inboxId(arg0) {
2302
2422
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2303
2423
  const len0 = WASM_VECTOR_LEN;
2304
- wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
2424
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
2305
2425
  }
2306
2426
  /**
2307
2427
  * @returns {Identifier[]}
@@ -2520,20 +2640,20 @@ export class HmacKey {
2520
2640
  set key(arg0) {
2521
2641
  const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
2522
2642
  const len0 = WASM_VECTOR_LEN;
2523
- wasm.__wbg_set_hmackey_key(this.__wbg_ptr, ptr0, len0);
2643
+ wasm.__wbg_set_conversationdebuginfo_forkDetails(this.__wbg_ptr, ptr0, len0);
2524
2644
  }
2525
2645
  /**
2526
2646
  * @returns {bigint}
2527
2647
  */
2528
2648
  get epoch() {
2529
- const ret = wasm.__wbg_get_hmackey_epoch(this.__wbg_ptr);
2649
+ const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
2530
2650
  return ret;
2531
2651
  }
2532
2652
  /**
2533
2653
  * @param {bigint} arg0
2534
2654
  */
2535
2655
  set epoch(arg0) {
2536
- wasm.__wbg_set_hmackey_epoch(this.__wbg_ptr, arg0);
2656
+ wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
2537
2657
  }
2538
2658
  }
2539
2659
 
@@ -2583,7 +2703,7 @@ export class InboxState {
2583
2703
  set inboxId(arg0) {
2584
2704
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2585
2705
  const len0 = WASM_VECTOR_LEN;
2586
- wasm.__wbg_set_inboxstate_inboxId(this.__wbg_ptr, ptr0, len0);
2706
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
2587
2707
  }
2588
2708
  /**
2589
2709
  * @returns {Identifier}
@@ -3192,6 +3312,19 @@ export class ListMessagesOptions {
3192
3312
  set direction(arg0) {
3193
3313
  wasm.__wbg_set_listmessagesoptions_direction(this.__wbg_ptr, isLikeNone(arg0) ? 2 : arg0);
3194
3314
  }
3315
+ /**
3316
+ * @returns {GroupMessageKind | undefined}
3317
+ */
3318
+ get kind() {
3319
+ const ret = wasm.__wbg_get_listmessagesoptions_kind(this.__wbg_ptr);
3320
+ return ret === 2 ? undefined : ret;
3321
+ }
3322
+ /**
3323
+ * @param {GroupMessageKind | null} [arg0]
3324
+ */
3325
+ set kind(arg0) {
3326
+ wasm.__wbg_set_listmessagesoptions_kind(this.__wbg_ptr, isLikeNone(arg0) ? 2 : arg0);
3327
+ }
3195
3328
  /**
3196
3329
  * @param {bigint | null} [sent_before_ns]
3197
3330
  * @param {bigint | null} [sent_after_ns]
@@ -3199,11 +3332,12 @@ export class ListMessagesOptions {
3199
3332
  * @param {DeliveryStatus | null} [delivery_status]
3200
3333
  * @param {SortDirection | null} [direction]
3201
3334
  * @param {any[] | null} [content_types]
3335
+ * @param {GroupMessageKind | null} [kind]
3202
3336
  */
3203
- constructor(sent_before_ns, sent_after_ns, limit, delivery_status, direction, content_types) {
3337
+ constructor(sent_before_ns, sent_after_ns, limit, delivery_status, direction, content_types, kind) {
3204
3338
  var ptr0 = isLikeNone(content_types) ? 0 : passArrayJsValueToWasm0(content_types, wasm.__wbindgen_malloc);
3205
3339
  var len0 = WASM_VECTOR_LEN;
3206
- const ret = wasm.listmessagesoptions_new(!isLikeNone(sent_before_ns), isLikeNone(sent_before_ns) ? BigInt(0) : sent_before_ns, !isLikeNone(sent_after_ns), isLikeNone(sent_after_ns) ? BigInt(0) : sent_after_ns, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit, isLikeNone(delivery_status) ? 3 : delivery_status, isLikeNone(direction) ? 2 : direction, ptr0, len0);
3340
+ const ret = wasm.listmessagesoptions_new(!isLikeNone(sent_before_ns), isLikeNone(sent_before_ns) ? BigInt(0) : sent_before_ns, !isLikeNone(sent_after_ns), isLikeNone(sent_after_ns) ? BigInt(0) : sent_after_ns, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit, isLikeNone(delivery_status) ? 3 : delivery_status, isLikeNone(direction) ? 2 : direction, ptr0, len0, isLikeNone(kind) ? 2 : kind);
3207
3341
  this.__wbg_ptr = ret >>> 0;
3208
3342
  ListMessagesOptionsFinalization.register(this, this.__wbg_ptr, this);
3209
3343
  return this;
@@ -3346,14 +3480,14 @@ export class Message {
3346
3480
  * @returns {bigint}
3347
3481
  */
3348
3482
  get sentAtNs() {
3349
- const ret = wasm.__wbg_get_hmackey_epoch(this.__wbg_ptr);
3483
+ const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
3350
3484
  return ret;
3351
3485
  }
3352
3486
  /**
3353
3487
  * @param {bigint} arg0
3354
3488
  */
3355
3489
  set sentAtNs(arg0) {
3356
- wasm.__wbg_set_hmackey_epoch(this.__wbg_ptr, arg0);
3490
+ wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
3357
3491
  }
3358
3492
  /**
3359
3493
  * @returns {string}
@@ -3496,14 +3630,14 @@ export class MessageDisappearingSettings {
3496
3630
  * @returns {bigint}
3497
3631
  */
3498
3632
  get fromNs() {
3499
- const ret = wasm.__wbg_get_hmackey_epoch(this.__wbg_ptr);
3633
+ const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
3500
3634
  return ret;
3501
3635
  }
3502
3636
  /**
3503
3637
  * @param {bigint} arg0
3504
3638
  */
3505
3639
  set fromNs(arg0) {
3506
- wasm.__wbg_set_hmackey_epoch(this.__wbg_ptr, arg0);
3640
+ wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
3507
3641
  }
3508
3642
  /**
3509
3643
  * @returns {bigint}
@@ -3661,6 +3795,13 @@ export class Opfs {
3661
3795
  const ptr = this.__destroy_into_raw();
3662
3796
  wasm.__wbg_opfs_free(ptr, 0);
3663
3797
  }
3798
+ /**
3799
+ * @returns {Promise<void>}
3800
+ */
3801
+ static init_sqlite_opfs() {
3802
+ const ret = wasm.opfs_init_sqlite_opfs();
3803
+ return ret;
3804
+ }
3664
3805
  /**
3665
3806
  * Check if the global OPFS object has been initialized
3666
3807
  * @returns {boolean}
@@ -3991,7 +4132,7 @@ export class Reaction {
3991
4132
  set reference(arg0) {
3992
4133
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3993
4134
  const len0 = WASM_VECTOR_LEN;
3994
- wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
4135
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
3995
4136
  }
3996
4137
  /**
3997
4138
  * @returns {string}
@@ -4014,7 +4155,7 @@ export class Reaction {
4014
4155
  set referenceInboxId(arg0) {
4015
4156
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4016
4157
  const len0 = WASM_VECTOR_LEN;
4017
- wasm.__wbg_set_reaction_referenceInboxId(this.__wbg_ptr, ptr0, len0);
4158
+ wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
4018
4159
  }
4019
4160
  /**
4020
4161
  * @returns {ReactionAction}
@@ -4385,6 +4526,9 @@ function __wbg_get_imports() {
4385
4526
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
4386
4527
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
4387
4528
  };
4529
+ imports.wbg.__wbg_abort_410ec47a64ac6117 = function(arg0, arg1) {
4530
+ arg0.abort(arg1);
4531
+ };
4388
4532
  imports.wbg.__wbg_abort_775ef1d17fc65868 = function(arg0) {
4389
4533
  arg0.abort();
4390
4534
  };
@@ -4447,6 +4591,14 @@ function __wbg_get_imports() {
4447
4591
  const ret = clearTimeout(arg0);
4448
4592
  return ret;
4449
4593
  };
4594
+ imports.wbg.__wbg_clearTimeout_86721db0036bea98 = function(arg0) {
4595
+ const ret = clearTimeout(arg0);
4596
+ return ret;
4597
+ };
4598
+ imports.wbg.__wbg_clearTimeout_96804de0ab838f26 = function(arg0) {
4599
+ const ret = clearTimeout(arg0);
4600
+ return ret;
4601
+ };
4450
4602
  imports.wbg.__wbg_clear_1f96150ecf4061a6 = function(arg0) {
4451
4603
  arg0.clear();
4452
4604
  };
@@ -4466,6 +4618,10 @@ function __wbg_get_imports() {
4466
4618
  imports.wbg.__wbg_close_a17af48266bd9942 = function(arg0) {
4467
4619
  arg0.close();
4468
4620
  };
4621
+ imports.wbg.__wbg_code_cfd8f6868bdaed9b = function(arg0) {
4622
+ const ret = arg0.code;
4623
+ return ret;
4624
+ };
4469
4625
  imports.wbg.__wbg_consent_unwrap = function(arg0) {
4470
4626
  const ret = Consent.__unwrap(arg0);
4471
4627
  return ret;
@@ -4543,7 +4699,7 @@ function __wbg_get_imports() {
4543
4699
  const a = state0.a;
4544
4700
  state0.a = 0;
4545
4701
  try {
4546
- return __wbg_adapter_611(a, state0.b, arg0, arg1, arg2);
4702
+ return __wbg_adapter_652(a, state0.b, arg0, arg1, arg2);
4547
4703
  } finally {
4548
4704
  state0.a = a;
4549
4705
  }
@@ -4554,14 +4710,14 @@ function __wbg_get_imports() {
4554
4710
  state0.a = state0.b = 0;
4555
4711
  }
4556
4712
  };
4557
- imports.wbg.__wbg_fetch_4465c2b10f21a927 = function(arg0) {
4558
- const ret = fetch(arg0);
4559
- return ret;
4560
- };
4561
4713
  imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
4562
4714
  const ret = arg0.fetch(arg1);
4563
4715
  return ret;
4564
4716
  };
4717
+ imports.wbg.__wbg_fetch_d36a73832f0a45e8 = function(arg0) {
4718
+ const ret = fetch(arg0);
4719
+ return ret;
4720
+ };
4565
4721
  imports.wbg.__wbg_fill_3311db9cdf18c6c4 = function(arg0, arg1, arg2, arg3) {
4566
4722
  const ret = arg0.fill(arg1, arg2 >>> 0, arg3 >>> 0);
4567
4723
  return ret;
@@ -4573,7 +4729,7 @@ function __wbg_get_imports() {
4573
4729
  const a = state0.a;
4574
4730
  state0.a = 0;
4575
4731
  try {
4576
- return __wbg_adapter_611(a, state0.b, arg0, arg1, arg2);
4732
+ return __wbg_adapter_652(a, state0.b, arg0, arg1, arg2);
4577
4733
  } finally {
4578
4734
  state0.a = a;
4579
4735
  }
@@ -4627,6 +4783,9 @@ function __wbg_get_imports() {
4627
4783
  const ret = arg0.getMonth();
4628
4784
  return ret;
4629
4785
  };
4786
+ imports.wbg.__wbg_getRandomValues_21a0191e74d0e1d3 = function() { return handleError(function (arg0, arg1) {
4787
+ globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
4788
+ }, arguments) };
4630
4789
  imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
4631
4790
  arg0.getRandomValues(arg1);
4632
4791
  }, arguments) };
@@ -4730,6 +4889,26 @@ function __wbg_get_imports() {
4730
4889
  const ret = result;
4731
4890
  return ret;
4732
4891
  };
4892
+ imports.wbg.__wbg_instanceof_DomException_ed1ccb7aaf39034c = function(arg0) {
4893
+ let result;
4894
+ try {
4895
+ result = arg0 instanceof DOMException;
4896
+ } catch (_) {
4897
+ result = false;
4898
+ }
4899
+ const ret = result;
4900
+ return ret;
4901
+ };
4902
+ imports.wbg.__wbg_instanceof_Performance_0ac1286c87171f57 = function(arg0) {
4903
+ let result;
4904
+ try {
4905
+ result = arg0 instanceof Performance;
4906
+ } catch (_) {
4907
+ result = false;
4908
+ }
4909
+ const ret = result;
4910
+ return ret;
4911
+ };
4733
4912
  imports.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function(arg0) {
4734
4913
  let result;
4735
4914
  try {
@@ -4826,6 +5005,13 @@ function __wbg_get_imports() {
4826
5005
  imports.wbg.__wbg_measure_7728846525e2cced = function() { return handleError(function (arg0, arg1, arg2, arg3) {
4827
5006
  arg0.measure(getStringFromWasm0(arg1, arg2), arg3);
4828
5007
  }, arguments) };
5008
+ imports.wbg.__wbg_message_5c5d919204d42400 = function(arg0, arg1) {
5009
+ const ret = arg1.message;
5010
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5011
+ const len1 = WASM_VECTOR_LEN;
5012
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
5013
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
5014
+ };
4829
5015
  imports.wbg.__wbg_message_new = function(arg0) {
4830
5016
  const ret = Message.__wrap(arg0);
4831
5017
  return ret;
@@ -4842,6 +5028,13 @@ function __wbg_get_imports() {
4842
5028
  const ret = arg0.msCrypto;
4843
5029
  return ret;
4844
5030
  };
5031
+ imports.wbg.__wbg_name_f2d27098bfd843e7 = function(arg0, arg1) {
5032
+ const ret = arg1.name;
5033
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5034
+ const len1 = WASM_VECTOR_LEN;
5035
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
5036
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
5037
+ };
4845
5038
  imports.wbg.__wbg_navigator_0a9bf1120e24fec2 = function(arg0) {
4846
5039
  const ret = arg0.navigator;
4847
5040
  return ret;
@@ -4861,7 +5054,7 @@ function __wbg_get_imports() {
4861
5054
  const a = state0.a;
4862
5055
  state0.a = 0;
4863
5056
  try {
4864
- return __wbg_adapter_712(a, state0.b, arg0, arg1);
5057
+ return __wbg_adapter_753(a, state0.b, arg0, arg1);
4865
5058
  } finally {
4866
5059
  state0.a = a;
4867
5060
  }
@@ -4968,19 +5161,19 @@ function __wbg_get_imports() {
4968
5161
  const ret = arg0.now();
4969
5162
  return ret;
4970
5163
  };
4971
- imports.wbg.__wbg_onconsentupdate_4c6fac1d9f867a49 = function(arg0, arg1) {
5164
+ imports.wbg.__wbg_onconsentupdate_5a23153c4da12d2f = function(arg0, arg1) {
4972
5165
  arg0.on_consent_update(arg1);
4973
5166
  };
4974
- imports.wbg.__wbg_onconversation_53ee00b78b2567f0 = function(arg0, arg1) {
5167
+ imports.wbg.__wbg_onconversation_31b65a43349398a1 = function(arg0, arg1) {
4975
5168
  arg0.on_conversation(Conversation.__wrap(arg1));
4976
5169
  };
4977
- imports.wbg.__wbg_onerror_f83f69679f719d45 = function(arg0, arg1) {
5170
+ imports.wbg.__wbg_onerror_f9ea1c3816616b61 = function(arg0, arg1) {
4978
5171
  arg0.on_error(arg1);
4979
5172
  };
4980
- imports.wbg.__wbg_onmessage_9af0c0b07630e1bb = function(arg0, arg1) {
5173
+ imports.wbg.__wbg_onmessage_c4f143e88c048184 = function(arg0, arg1) {
4981
5174
  arg0.on_message(Message.__wrap(arg1));
4982
5175
  };
4983
- imports.wbg.__wbg_onuserpreferenceupdate_0a3e44916ebf35a2 = function(arg0, arg1, arg2) {
5176
+ imports.wbg.__wbg_onuserpreferenceupdate_df90cad511ab99f8 = function(arg0, arg1, arg2) {
4984
5177
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
4985
5178
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
4986
5179
  arg0.on_user_preference_update(v0);
@@ -5072,10 +5265,18 @@ function __wbg_get_imports() {
5072
5265
  const ret = setInterval(arg0, arg1);
5073
5266
  return ret;
5074
5267
  }, arguments) };
5268
+ imports.wbg.__wbg_setTimeout_2e707715f8cc9497 = function(arg0, arg1) {
5269
+ const ret = setTimeout(arg0, arg1);
5270
+ return ret;
5271
+ };
5075
5272
  imports.wbg.__wbg_setTimeout_db2dbaeefb6f39c7 = function() { return handleError(function (arg0, arg1) {
5076
5273
  const ret = setTimeout(arg0, arg1);
5077
5274
  return ret;
5078
5275
  }, arguments) };
5276
+ imports.wbg.__wbg_setTimeout_eefe7f4c234b0c6b = function() { return handleError(function (arg0, arg1) {
5277
+ const ret = setTimeout(arg0, arg1);
5278
+ return ret;
5279
+ }, arguments) };
5079
5280
  imports.wbg.__wbg_setUint32_ad8826b8caeaf63d = function(arg0, arg1, arg2) {
5080
5281
  arg0.setUint32(arg1 >>> 0, arg2 >>> 0);
5081
5282
  };
@@ -5268,12 +5469,20 @@ function __wbg_get_imports() {
5268
5469
  const ret = false;
5269
5470
  return ret;
5270
5471
  };
5271
- imports.wbg.__wbindgen_closure_wrapper16501 = function(arg0, arg1, arg2) {
5272
- const ret = makeMutClosure(arg0, arg1, 3792, __wbg_adapter_50);
5472
+ imports.wbg.__wbindgen_closure_wrapper17267 = function(arg0, arg1, arg2) {
5473
+ const ret = makeMutClosure(arg0, arg1, 4093, __wbg_adapter_50);
5474
+ return ret;
5475
+ };
5476
+ imports.wbg.__wbindgen_closure_wrapper17311 = function(arg0, arg1, arg2) {
5477
+ const ret = makeMutClosure(arg0, arg1, 4103, __wbg_adapter_53);
5478
+ return ret;
5479
+ };
5480
+ imports.wbg.__wbindgen_closure_wrapper20525 = function(arg0, arg1, arg2) {
5481
+ const ret = makeMutClosure(arg0, arg1, 4461, __wbg_adapter_56);
5273
5482
  return ret;
5274
5483
  };
5275
- imports.wbg.__wbindgen_closure_wrapper16780 = function(arg0, arg1, arg2) {
5276
- const ret = makeMutClosure(arg0, arg1, 3863, __wbg_adapter_53);
5484
+ imports.wbg.__wbindgen_closure_wrapper20646 = function(arg0, arg1, arg2) {
5485
+ const ret = makeMutClosure(arg0, arg1, 4475, __wbg_adapter_59);
5277
5486
  return ret;
5278
5487
  };
5279
5488
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {