@xmtp/wasm-bindings 1.6.0-dev.419b6dc → 1.6.0-dev.da83377

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.
@@ -229,25 +229,6 @@ function makeMutClosure(arg0, arg1, dtor, f) {
229
229
  return real;
230
230
  }
231
231
 
232
- function takeFromExternrefTable0(idx) {
233
- const value = wasm.__wbindgen_export_4.get(idx);
234
- wasm.__externref_table_dealloc(idx);
235
- return value;
236
- }
237
-
238
- function passArray8ToWasm0(arg, malloc) {
239
- const ptr = malloc(arg.length * 1, 1) >>> 0;
240
- getUint8ArrayMemory0().set(arg, ptr / 1);
241
- WASM_VECTOR_LEN = arg.length;
242
- return ptr;
243
- }
244
-
245
- function _assertClass(instance, klass) {
246
- if (!(instance instanceof klass)) {
247
- throw new Error(`expected instance of ${klass.name}`);
248
- }
249
- }
250
-
251
232
  function passArrayJsValueToWasm0(array, malloc) {
252
233
  const ptr = malloc(array.length * 4, 4) >>> 0;
253
234
  for (let i = 0; i < array.length; i++) {
@@ -257,86 +238,42 @@ function passArrayJsValueToWasm0(array, malloc) {
257
238
  WASM_VECTOR_LEN = array.length;
258
239
  return ptr;
259
240
  }
260
- /**
261
- * @param {string} signature_text
262
- * @param {Uint8Array} signature_bytes
263
- * @param {Uint8Array} public_key
264
- */
265
- export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
266
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
267
- const len0 = WASM_VECTOR_LEN;
268
- const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
269
- if (ret[1]) {
270
- throw takeFromExternrefTable0(ret[0]);
241
+
242
+ function _assertClass(instance, klass) {
243
+ if (!(instance instanceof klass)) {
244
+ throw new Error(`expected instance of ${klass.name}`);
271
245
  }
272
246
  }
273
247
 
274
- /**
275
- * @param {string} v3_host
276
- * @param {string | null | undefined} gateway_host
277
- * @param {Identifier} recovery_identifier
278
- * @param {string} inbox_id
279
- * @param {Uint8Array[]} installation_ids
280
- * @returns {SignatureRequestHandle}
281
- */
282
- export function revokeInstallationsSignatureRequest(v3_host, gateway_host, recovery_identifier, inbox_id, installation_ids) {
283
- const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
284
- const len0 = WASM_VECTOR_LEN;
285
- var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
286
- var len1 = WASM_VECTOR_LEN;
287
- const ptr2 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
288
- const len2 = WASM_VECTOR_LEN;
289
- const ptr3 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
290
- const len3 = WASM_VECTOR_LEN;
291
- const ret = wasm.revokeInstallationsSignatureRequest(ptr0, len0, ptr1, len1, recovery_identifier, ptr2, len2, ptr3, len3);
292
- if (ret[2]) {
293
- throw takeFromExternrefTable0(ret[1]);
294
- }
295
- return SignatureRequestHandle.__wrap(ret[0]);
248
+ function passArray8ToWasm0(arg, malloc) {
249
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
250
+ getUint8ArrayMemory0().set(arg, ptr / 1);
251
+ WASM_VECTOR_LEN = arg.length;
252
+ return ptr;
296
253
  }
297
254
 
255
+ function takeFromExternrefTable0(idx) {
256
+ const value = wasm.__wbindgen_export_4.get(idx);
257
+ wasm.__externref_table_dealloc(idx);
258
+ return value;
259
+ }
298
260
  /**
299
261
  * @param {string} v3_host
300
262
  * @param {string | null | undefined} gateway_host
301
- * @param {SignatureRequestHandle} signature_request
302
- * @returns {Promise<void>}
263
+ * @param {string[]} inbox_ids
264
+ * @returns {Promise<InboxState[]>}
303
265
  */
304
- export function applySignatureRequest(v3_host, gateway_host, signature_request) {
266
+ export function inboxStateFromInboxIds(v3_host, gateway_host, inbox_ids) {
305
267
  const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
306
268
  const len0 = WASM_VECTOR_LEN;
307
269
  var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
308
270
  var len1 = WASM_VECTOR_LEN;
309
- _assertClass(signature_request, SignatureRequestHandle);
310
- const ret = wasm.applySignatureRequest(ptr0, len0, ptr1, len1, signature_request.__wbg_ptr);
271
+ const ptr2 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
272
+ const len2 = WASM_VECTOR_LEN;
273
+ const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
311
274
  return ret;
312
275
  }
313
276
 
314
- /**
315
- * @param {MultiRemoteAttachment} multiRemoteAttachment
316
- * @returns {Uint8Array}
317
- */
318
- export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
319
- _assertClass(multiRemoteAttachment, MultiRemoteAttachment);
320
- var ptr0 = multiRemoteAttachment.__destroy_into_raw();
321
- const ret = wasm.encodeMultiRemoteAttachment(ptr0);
322
- if (ret[2]) {
323
- throw takeFromExternrefTable0(ret[1]);
324
- }
325
- return takeFromExternrefTable0(ret[0]);
326
- }
327
-
328
- /**
329
- * @param {Uint8Array} bytes
330
- * @returns {MultiRemoteAttachment}
331
- */
332
- export function decodeMultiRemoteAttachment(bytes) {
333
- const ret = wasm.decodeMultiRemoteAttachment(bytes);
334
- if (ret[2]) {
335
- throw takeFromExternrefTable0(ret[1]);
336
- }
337
- return MultiRemoteAttachment.__wrap(ret[0]);
338
- }
339
-
340
277
  /**
341
278
  * @param {Reaction} reaction
342
279
  * @returns {Uint8Array}
@@ -401,23 +338,6 @@ export function generateInboxId(accountIdentifier) {
401
338
  }
402
339
  }
403
340
 
404
- /**
405
- * @param {string} v3_host
406
- * @param {string | null | undefined} gateway_host
407
- * @param {string[]} inbox_ids
408
- * @returns {Promise<InboxState[]>}
409
- */
410
- export function inboxStateFromInboxIds(v3_host, gateway_host, inbox_ids) {
411
- const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
412
- const len0 = WASM_VECTOR_LEN;
413
- var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
414
- var len1 = WASM_VECTOR_LEN;
415
- const ptr2 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
416
- const len2 = WASM_VECTOR_LEN;
417
- const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
418
- return ret;
419
- }
420
-
421
341
  /**
422
342
  * @param {string} host
423
343
  * @param {string} inbox_id
@@ -455,6 +375,86 @@ export function createClient(host, inbox_id, account_identifier, db_path, encryp
455
375
  return ret;
456
376
  }
457
377
 
378
+ /**
379
+ * @param {string} signature_text
380
+ * @param {Uint8Array} signature_bytes
381
+ * @param {Uint8Array} public_key
382
+ */
383
+ export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
384
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
385
+ const len0 = WASM_VECTOR_LEN;
386
+ const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
387
+ if (ret[1]) {
388
+ throw takeFromExternrefTable0(ret[0]);
389
+ }
390
+ }
391
+
392
+ /**
393
+ * @param {string} v3_host
394
+ * @param {string | null | undefined} gateway_host
395
+ * @param {Identifier} recovery_identifier
396
+ * @param {string} inbox_id
397
+ * @param {Uint8Array[]} installation_ids
398
+ * @returns {SignatureRequestHandle}
399
+ */
400
+ export function revokeInstallationsSignatureRequest(v3_host, gateway_host, recovery_identifier, inbox_id, installation_ids) {
401
+ const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
402
+ const len0 = WASM_VECTOR_LEN;
403
+ var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
404
+ var len1 = WASM_VECTOR_LEN;
405
+ const ptr2 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
406
+ const len2 = WASM_VECTOR_LEN;
407
+ const ptr3 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
408
+ const len3 = WASM_VECTOR_LEN;
409
+ const ret = wasm.revokeInstallationsSignatureRequest(ptr0, len0, ptr1, len1, recovery_identifier, ptr2, len2, ptr3, len3);
410
+ if (ret[2]) {
411
+ throw takeFromExternrefTable0(ret[1]);
412
+ }
413
+ return SignatureRequestHandle.__wrap(ret[0]);
414
+ }
415
+
416
+ /**
417
+ * @param {string} v3_host
418
+ * @param {string | null | undefined} gateway_host
419
+ * @param {SignatureRequestHandle} signature_request
420
+ * @returns {Promise<void>}
421
+ */
422
+ export function applySignatureRequest(v3_host, gateway_host, signature_request) {
423
+ const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
424
+ const len0 = WASM_VECTOR_LEN;
425
+ var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
426
+ var len1 = WASM_VECTOR_LEN;
427
+ _assertClass(signature_request, SignatureRequestHandle);
428
+ const ret = wasm.applySignatureRequest(ptr0, len0, ptr1, len1, signature_request.__wbg_ptr);
429
+ return ret;
430
+ }
431
+
432
+ /**
433
+ * @param {MultiRemoteAttachment} multiRemoteAttachment
434
+ * @returns {Uint8Array}
435
+ */
436
+ export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
437
+ _assertClass(multiRemoteAttachment, MultiRemoteAttachment);
438
+ var ptr0 = multiRemoteAttachment.__destroy_into_raw();
439
+ const ret = wasm.encodeMultiRemoteAttachment(ptr0);
440
+ if (ret[2]) {
441
+ throw takeFromExternrefTable0(ret[1]);
442
+ }
443
+ return takeFromExternrefTable0(ret[0]);
444
+ }
445
+
446
+ /**
447
+ * @param {Uint8Array} bytes
448
+ * @returns {MultiRemoteAttachment}
449
+ */
450
+ export function decodeMultiRemoteAttachment(bytes) {
451
+ const ret = wasm.decodeMultiRemoteAttachment(bytes);
452
+ if (ret[2]) {
453
+ throw takeFromExternrefTable0(ret[1]);
454
+ }
455
+ return MultiRemoteAttachment.__wrap(ret[0]);
456
+ }
457
+
458
458
  /**
459
459
  * Entry point invoked by JavaScript in a worker.
460
460
  * @param {number} ptr
@@ -466,24 +466,24 @@ export function task_worker_entry_point(ptr) {
466
466
  }
467
467
  }
468
468
 
469
- function __wbg_adapter_14(arg0, arg1) {
470
- wasm.wasm_bindgen__convert__closures_____invoke__ha8342c4eebc28ece(arg0, arg1);
469
+ function __wbg_adapter_6(arg0, arg1, arg2) {
470
+ wasm.closure7014_externref_shim(arg0, arg1, arg2);
471
471
  }
472
472
 
473
473
  function __wbg_adapter_19(arg0, arg1) {
474
- wasm.wasm_bindgen__convert__closures_____invoke__h4b9132d070774788(arg0, arg1);
474
+ wasm.wasm_bindgen__convert__closures_____invoke__h8d2688e22b07e25f(arg0, arg1);
475
475
  }
476
476
 
477
- function __wbg_adapter_30(arg0, arg1) {
478
- wasm.wasm_bindgen__convert__closures_____invoke__h6553f0a100c562a9(arg0, arg1);
477
+ function __wbg_adapter_28(arg0, arg1) {
478
+ wasm.wasm_bindgen__convert__closures_____invoke__h040a93cf6078a98e(arg0, arg1);
479
479
  }
480
480
 
481
- function __wbg_adapter_33(arg0, arg1, arg2) {
482
- wasm.closure6979_externref_shim(arg0, arg1, arg2);
481
+ function __wbg_adapter_33(arg0, arg1) {
482
+ wasm.wasm_bindgen__convert__closures_____invoke__h6553f0a100c562a9(arg0, arg1);
483
483
  }
484
484
 
485
- function __wbg_adapter_930(arg0, arg1, arg2, arg3) {
486
- wasm.closure7944_externref_shim(arg0, arg1, arg2, arg3);
485
+ function __wbg_adapter_938(arg0, arg1, arg2, arg3) {
486
+ wasm.closure7982_externref_shim(arg0, arg1, arg2, arg3);
487
487
  }
488
488
 
489
489
  /**
@@ -534,14 +534,13 @@ export const DeliveryStatus = Object.freeze({
534
534
  Failed: 2, "2": "Failed",
535
535
  });
536
536
  /**
537
- * @enum {0 | 1 | 2 | 3 | 4}
537
+ * @enum {0 | 1 | 2 | 3}
538
538
  */
539
539
  export const GroupMembershipState = Object.freeze({
540
540
  Allowed: 0, "0": "Allowed",
541
541
  Rejected: 1, "1": "Rejected",
542
542
  Pending: 2, "2": "Pending",
543
543
  Restored: 3, "3": "Restored",
544
- PendingRemove: 4, "4": "PendingRemove",
545
544
  });
546
545
  /**
547
546
  * @enum {0 | 1}
@@ -859,178 +858,62 @@ export class Attachment {
859
858
  deferred1_0 = ret[0];
860
859
  deferred1_1 = ret[1];
861
860
  return getStringFromWasm0(ret[0], ret[1]);
862
- } finally {
863
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
864
- }
865
- }
866
- /**
867
- * @param {string} arg0
868
- */
869
- set mimeType(arg0) {
870
- const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
871
- const len0 = WASM_VECTOR_LEN;
872
- wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
873
- }
874
- /**
875
- * @returns {Uint8Array}
876
- */
877
- get content() {
878
- const ret = wasm.__wbg_get_attachment_content(this.__wbg_ptr);
879
- var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
880
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
881
- return v1;
882
- }
883
- /**
884
- * @param {Uint8Array} arg0
885
- */
886
- set content(arg0) {
887
- const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
888
- const len0 = WASM_VECTOR_LEN;
889
- wasm.__wbg_set_attachment_content(this.__wbg_ptr, ptr0, len0);
890
- }
891
- }
892
- if (Symbol.dispose) Attachment.prototype[Symbol.dispose] = Attachment.prototype.free;
893
-
894
- const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
895
- ? { register: () => {}, unregister: () => {} }
896
- : new FinalizationRegistry(ptr => wasm.__wbg_client_free(ptr >>> 0, 1));
897
-
898
- export class Client {
899
-
900
- static __wrap(ptr) {
901
- ptr = ptr >>> 0;
902
- const obj = Object.create(Client.prototype);
903
- obj.__wbg_ptr = ptr;
904
- ClientFinalization.register(obj, obj.__wbg_ptr, obj);
905
- return obj;
906
- }
907
-
908
- __destroy_into_raw() {
909
- const ptr = this.__wbg_ptr;
910
- this.__wbg_ptr = 0;
911
- ClientFinalization.unregister(this);
912
- return ptr;
913
- }
914
-
915
- free() {
916
- const ptr = this.__destroy_into_raw();
917
- wasm.__wbg_client_free(ptr, 0);
918
- }
919
- /**
920
- * @returns {SignatureRequestHandle | undefined}
921
- */
922
- createInboxSignatureRequest() {
923
- const ret = wasm.client_createInboxSignatureRequest(this.__wbg_ptr);
924
- if (ret[2]) {
925
- throw takeFromExternrefTable0(ret[1]);
926
- }
927
- return ret[0] === 0 ? undefined : SignatureRequestHandle.__wrap(ret[0]);
928
- }
929
- /**
930
- * @param {Identifier} new_identifier
931
- * @returns {Promise<SignatureRequestHandle>}
932
- */
933
- addWalletSignatureRequest(new_identifier) {
934
- const ret = wasm.client_addWalletSignatureRequest(this.__wbg_ptr, new_identifier);
935
- return ret;
936
- }
937
- /**
938
- * @param {Identifier} identifier
939
- * @returns {Promise<SignatureRequestHandle>}
940
- */
941
- revokeWalletSignatureRequest(identifier) {
942
- const ret = wasm.client_revokeWalletSignatureRequest(this.__wbg_ptr, identifier);
943
- return ret;
944
- }
945
- /**
946
- * @returns {Promise<SignatureRequestHandle>}
947
- */
948
- revokeAllOtherInstallationsSignatureRequest() {
949
- const ret = wasm.client_revokeAllOtherInstallationsSignatureRequest(this.__wbg_ptr);
950
- return ret;
951
- }
952
- /**
953
- * @param {Uint8Array[]} installation_ids
954
- * @returns {Promise<SignatureRequestHandle>}
955
- */
956
- revokeInstallationsSignatureRequest(installation_ids) {
957
- const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
958
- const len0 = WASM_VECTOR_LEN;
959
- const ret = wasm.client_revokeInstallationsSignatureRequest(this.__wbg_ptr, ptr0, len0);
960
- return ret;
961
- }
962
- /**
963
- * @param {Identifier} new_recovery_identifier
964
- * @returns {Promise<SignatureRequestHandle>}
965
- */
966
- changeRecoveryIdentifierSignatureRequest(new_recovery_identifier) {
967
- const ret = wasm.client_changeRecoveryIdentifierSignatureRequest(this.__wbg_ptr, new_recovery_identifier);
968
- return ret;
969
- }
970
- /**
971
- * @param {SignatureRequestHandle} signature_request
972
- * @returns {Promise<void>}
973
- */
974
- applySignatureRequest(signature_request) {
975
- _assertClass(signature_request, SignatureRequestHandle);
976
- const ret = wasm.client_applySignatureRequest(this.__wbg_ptr, signature_request.__wbg_ptr);
977
- return ret;
978
- }
979
- /**
980
- * @param {SignatureRequestHandle} signature_request
981
- * @returns {Promise<void>}
982
- */
983
- registerIdentity(signature_request) {
984
- _assertClass(signature_request, SignatureRequestHandle);
985
- var ptr0 = signature_request.__destroy_into_raw();
986
- const ret = wasm.client_registerIdentity(this.__wbg_ptr, ptr0);
987
- return ret;
988
- }
989
- /**
990
- * @param {string} signature_text
991
- * @returns {Uint8Array}
992
- */
993
- signWithInstallationKey(signature_text) {
994
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
995
- const len0 = WASM_VECTOR_LEN;
996
- const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
997
- if (ret[2]) {
998
- throw takeFromExternrefTable0(ret[1]);
999
- }
1000
- return takeFromExternrefTable0(ret[0]);
1001
- }
1002
- /**
1003
- * @param {string} signature_text
1004
- * @param {Uint8Array} signature_bytes
1005
- */
1006
- verifySignedWithInstallationKey(signature_text, signature_bytes) {
1007
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1008
- const len0 = WASM_VECTOR_LEN;
1009
- const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
1010
- if (ret[1]) {
1011
- throw takeFromExternrefTable0(ret[0]);
861
+ } finally {
862
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1012
863
  }
1013
864
  }
1014
865
  /**
1015
- * @param {Consent[]} records
1016
- * @returns {Promise<void>}
866
+ * @param {string} arg0
1017
867
  */
1018
- setConsentStates(records) {
1019
- const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
868
+ set mimeType(arg0) {
869
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1020
870
  const len0 = WASM_VECTOR_LEN;
1021
- const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
1022
- return ret;
871
+ wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
1023
872
  }
1024
873
  /**
1025
- * @param {ConsentEntityType} entity_type
1026
- * @param {string} entity
1027
- * @returns {Promise<ConsentState>}
874
+ * @returns {Uint8Array}
1028
875
  */
1029
- getConsentState(entity_type, entity) {
1030
- const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
876
+ get content() {
877
+ const ret = wasm.__wbg_get_attachment_content(this.__wbg_ptr);
878
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
879
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
880
+ return v1;
881
+ }
882
+ /**
883
+ * @param {Uint8Array} arg0
884
+ */
885
+ set content(arg0) {
886
+ const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
1031
887
  const len0 = WASM_VECTOR_LEN;
1032
- const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
1033
- return ret;
888
+ wasm.__wbg_set_attachment_content(this.__wbg_ptr, ptr0, len0);
889
+ }
890
+ }
891
+ if (Symbol.dispose) Attachment.prototype[Symbol.dispose] = Attachment.prototype.free;
892
+
893
+ const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
894
+ ? { register: () => {}, unregister: () => {} }
895
+ : new FinalizationRegistry(ptr => wasm.__wbg_client_free(ptr >>> 0, 1));
896
+
897
+ export class Client {
898
+
899
+ static __wrap(ptr) {
900
+ ptr = ptr >>> 0;
901
+ const obj = Object.create(Client.prototype);
902
+ obj.__wbg_ptr = ptr;
903
+ ClientFinalization.register(obj, obj.__wbg_ptr, obj);
904
+ return obj;
905
+ }
906
+
907
+ __destroy_into_raw() {
908
+ const ptr = this.__wbg_ptr;
909
+ this.__wbg_ptr = 0;
910
+ ClientFinalization.unregister(this);
911
+ return ptr;
912
+ }
913
+
914
+ free() {
915
+ const ptr = this.__destroy_into_raw();
916
+ wasm.__wbg_client_free(ptr, 0);
1034
917
  }
1035
918
  /**
1036
919
  *
@@ -1071,6 +954,27 @@ export class Client {
1071
954
  const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
1072
955
  return ret;
1073
956
  }
957
+ /**
958
+ * @param {Consent[]} records
959
+ * @returns {Promise<void>}
960
+ */
961
+ setConsentStates(records) {
962
+ const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
963
+ const len0 = WASM_VECTOR_LEN;
964
+ const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
965
+ return ret;
966
+ }
967
+ /**
968
+ * @param {ConsentEntityType} entity_type
969
+ * @param {string} entity
970
+ * @returns {Promise<ConsentState>}
971
+ */
972
+ getConsentState(entity_type, entity) {
973
+ const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
974
+ const len0 = WASM_VECTOR_LEN;
975
+ const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
976
+ return ret;
977
+ }
1074
978
  /**
1075
979
  * @returns {Identifier}
1076
980
  */
@@ -1197,7 +1101,7 @@ export class Client {
1197
1101
  return Conversations.__wrap(ret);
1198
1102
  }
1199
1103
  /**
1200
- * @returns {Promise<number>}
1104
+ * @returns {Promise<GroupSyncSummary>}
1201
1105
  */
1202
1106
  syncPreferences() {
1203
1107
  const ret = wasm.client_syncPreferences(this.__wbg_ptr);
@@ -1268,6 +1172,101 @@ export class Client {
1268
1172
  const ret = wasm.client_messageV2(this.__wbg_ptr, ptr0, len0);
1269
1173
  return ret;
1270
1174
  }
1175
+ /**
1176
+ * @returns {SignatureRequestHandle | undefined}
1177
+ */
1178
+ createInboxSignatureRequest() {
1179
+ const ret = wasm.client_createInboxSignatureRequest(this.__wbg_ptr);
1180
+ if (ret[2]) {
1181
+ throw takeFromExternrefTable0(ret[1]);
1182
+ }
1183
+ return ret[0] === 0 ? undefined : SignatureRequestHandle.__wrap(ret[0]);
1184
+ }
1185
+ /**
1186
+ * @param {Identifier} new_identifier
1187
+ * @returns {Promise<SignatureRequestHandle>}
1188
+ */
1189
+ addWalletSignatureRequest(new_identifier) {
1190
+ const ret = wasm.client_addWalletSignatureRequest(this.__wbg_ptr, new_identifier);
1191
+ return ret;
1192
+ }
1193
+ /**
1194
+ * @param {Identifier} identifier
1195
+ * @returns {Promise<SignatureRequestHandle>}
1196
+ */
1197
+ revokeWalletSignatureRequest(identifier) {
1198
+ const ret = wasm.client_revokeWalletSignatureRequest(this.__wbg_ptr, identifier);
1199
+ return ret;
1200
+ }
1201
+ /**
1202
+ * @returns {Promise<SignatureRequestHandle>}
1203
+ */
1204
+ revokeAllOtherInstallationsSignatureRequest() {
1205
+ const ret = wasm.client_revokeAllOtherInstallationsSignatureRequest(this.__wbg_ptr);
1206
+ return ret;
1207
+ }
1208
+ /**
1209
+ * @param {Uint8Array[]} installation_ids
1210
+ * @returns {Promise<SignatureRequestHandle>}
1211
+ */
1212
+ revokeInstallationsSignatureRequest(installation_ids) {
1213
+ const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
1214
+ const len0 = WASM_VECTOR_LEN;
1215
+ const ret = wasm.client_revokeInstallationsSignatureRequest(this.__wbg_ptr, ptr0, len0);
1216
+ return ret;
1217
+ }
1218
+ /**
1219
+ * @param {Identifier} new_recovery_identifier
1220
+ * @returns {Promise<SignatureRequestHandle>}
1221
+ */
1222
+ changeRecoveryIdentifierSignatureRequest(new_recovery_identifier) {
1223
+ const ret = wasm.client_changeRecoveryIdentifierSignatureRequest(this.__wbg_ptr, new_recovery_identifier);
1224
+ return ret;
1225
+ }
1226
+ /**
1227
+ * @param {SignatureRequestHandle} signature_request
1228
+ * @returns {Promise<void>}
1229
+ */
1230
+ applySignatureRequest(signature_request) {
1231
+ _assertClass(signature_request, SignatureRequestHandle);
1232
+ const ret = wasm.client_applySignatureRequest(this.__wbg_ptr, signature_request.__wbg_ptr);
1233
+ return ret;
1234
+ }
1235
+ /**
1236
+ * @param {SignatureRequestHandle} signature_request
1237
+ * @returns {Promise<void>}
1238
+ */
1239
+ registerIdentity(signature_request) {
1240
+ _assertClass(signature_request, SignatureRequestHandle);
1241
+ var ptr0 = signature_request.__destroy_into_raw();
1242
+ const ret = wasm.client_registerIdentity(this.__wbg_ptr, ptr0);
1243
+ return ret;
1244
+ }
1245
+ /**
1246
+ * @param {string} signature_text
1247
+ * @returns {Uint8Array}
1248
+ */
1249
+ signWithInstallationKey(signature_text) {
1250
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1251
+ const len0 = WASM_VECTOR_LEN;
1252
+ const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
1253
+ if (ret[2]) {
1254
+ throw takeFromExternrefTable0(ret[1]);
1255
+ }
1256
+ return takeFromExternrefTable0(ret[0]);
1257
+ }
1258
+ /**
1259
+ * @param {string} signature_text
1260
+ * @param {Uint8Array} signature_bytes
1261
+ */
1262
+ verifySignedWithInstallationKey(signature_text, signature_bytes) {
1263
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1264
+ const len0 = WASM_VECTOR_LEN;
1265
+ const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
1266
+ if (ret[1]) {
1267
+ throw takeFromExternrefTable0(ret[0]);
1268
+ }
1269
+ }
1271
1270
  }
1272
1271
  if (Symbol.dispose) Client.prototype[Symbol.dispose] = Client.prototype.free;
1273
1272
 
@@ -1342,7 +1341,7 @@ export class Consent {
1342
1341
  set entity(arg0) {
1343
1342
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1344
1343
  const len0 = WASM_VECTOR_LEN;
1345
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
1344
+ wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
1346
1345
  }
1347
1346
  /**
1348
1347
  * @param {ConsentEntityType} entity_type
@@ -1406,7 +1405,7 @@ export class ContentTypeId {
1406
1405
  set authorityId(arg0) {
1407
1406
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1408
1407
  const len0 = WASM_VECTOR_LEN;
1409
- wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
1408
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
1410
1409
  }
1411
1410
  /**
1412
1411
  * @returns {string}
@@ -1429,7 +1428,7 @@ export class ContentTypeId {
1429
1428
  set typeId(arg0) {
1430
1429
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1431
1430
  const len0 = WASM_VECTOR_LEN;
1432
- wasm.__wbg_set_attachment_content(this.__wbg_ptr, ptr0, len0);
1431
+ wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
1433
1432
  }
1434
1433
  /**
1435
1434
  * @returns {number}
@@ -2444,7 +2443,7 @@ export class Conversations {
2444
2443
  }
2445
2444
  /**
2446
2445
  * @param {any[] | null} [consent_states]
2447
- * @returns {Promise<number>}
2446
+ * @returns {Promise<GroupSyncSummary>}
2448
2447
  */
2449
2448
  syncAllConversations(consent_states) {
2450
2449
  var ptr0 = isLikeNone(consent_states) ? 0 : passArrayJsValueToWasm0(consent_states, wasm.__wbindgen_malloc);
@@ -3313,7 +3312,7 @@ export class GroupMember {
3313
3312
  set inboxId(arg0) {
3314
3313
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3315
3314
  const len0 = WASM_VECTOR_LEN;
3316
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
3315
+ wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
3317
3316
  }
3318
3317
  /**
3319
3318
  * @returns {Identifier[]}
@@ -3503,6 +3502,70 @@ export class GroupPermissions {
3503
3502
  }
3504
3503
  if (Symbol.dispose) GroupPermissions.prototype[Symbol.dispose] = GroupPermissions.prototype.free;
3505
3504
 
3505
+ const GroupSyncSummaryFinalization = (typeof FinalizationRegistry === 'undefined')
3506
+ ? { register: () => {}, unregister: () => {} }
3507
+ : new FinalizationRegistry(ptr => wasm.__wbg_groupsyncsummary_free(ptr >>> 0, 1));
3508
+
3509
+ export class GroupSyncSummary {
3510
+
3511
+ static __wrap(ptr) {
3512
+ ptr = ptr >>> 0;
3513
+ const obj = Object.create(GroupSyncSummary.prototype);
3514
+ obj.__wbg_ptr = ptr;
3515
+ GroupSyncSummaryFinalization.register(obj, obj.__wbg_ptr, obj);
3516
+ return obj;
3517
+ }
3518
+
3519
+ __destroy_into_raw() {
3520
+ const ptr = this.__wbg_ptr;
3521
+ this.__wbg_ptr = 0;
3522
+ GroupSyncSummaryFinalization.unregister(this);
3523
+ return ptr;
3524
+ }
3525
+
3526
+ free() {
3527
+ const ptr = this.__destroy_into_raw();
3528
+ wasm.__wbg_groupsyncsummary_free(ptr, 0);
3529
+ }
3530
+ /**
3531
+ * @returns {number}
3532
+ */
3533
+ get numEligible() {
3534
+ const ret = wasm.__wbg_get_groupsyncsummary_numEligible(this.__wbg_ptr);
3535
+ return ret >>> 0;
3536
+ }
3537
+ /**
3538
+ * @param {number} arg0
3539
+ */
3540
+ set numEligible(arg0) {
3541
+ wasm.__wbg_set_groupsyncsummary_numEligible(this.__wbg_ptr, arg0);
3542
+ }
3543
+ /**
3544
+ * @returns {number}
3545
+ */
3546
+ get numSynced() {
3547
+ const ret = wasm.__wbg_get_groupsyncsummary_numSynced(this.__wbg_ptr);
3548
+ return ret >>> 0;
3549
+ }
3550
+ /**
3551
+ * @param {number} arg0
3552
+ */
3553
+ set numSynced(arg0) {
3554
+ wasm.__wbg_set_groupsyncsummary_numSynced(this.__wbg_ptr, arg0);
3555
+ }
3556
+ /**
3557
+ * @param {number} num_eligible
3558
+ * @param {number} num_synced
3559
+ */
3560
+ constructor(num_eligible, num_synced) {
3561
+ const ret = wasm.groupsyncsummary_new(num_eligible, num_synced);
3562
+ this.__wbg_ptr = ret >>> 0;
3563
+ GroupSyncSummaryFinalization.register(this, this.__wbg_ptr, this);
3564
+ return this;
3565
+ }
3566
+ }
3567
+ if (Symbol.dispose) GroupSyncSummary.prototype[Symbol.dispose] = GroupSyncSummary.prototype.free;
3568
+
3506
3569
  const GroupUpdatedFinalization = (typeof FinalizationRegistry === 'undefined')
3507
3570
  ? { register: () => {}, unregister: () => {} }
3508
3571
  : new FinalizationRegistry(ptr => wasm.__wbg_groupupdated_free(ptr >>> 0, 1));
@@ -3839,7 +3902,7 @@ export class InboxState {
3839
3902
  set inboxId(arg0) {
3840
3903
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3841
3904
  const len0 = WASM_VECTOR_LEN;
3842
- wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
3905
+ wasm.__wbg_set_inboxstate_inboxId(this.__wbg_ptr, ptr0, len0);
3843
3906
  }
3844
3907
  /**
3845
3908
  * @returns {Identifier}
@@ -4164,7 +4227,7 @@ export class KeyPackageStatus {
4164
4227
  * @returns {Lifetime | undefined}
4165
4228
  */
4166
4229
  get lifetime() {
4167
- const ret = wasm.__wbg_get_keypackagestatus_lifetime(this.__wbg_ptr);
4230
+ const ret = wasm.__wbg_get_createdmoptions_messageDisappearingSettings(this.__wbg_ptr);
4168
4231
  return ret === 0 ? undefined : Lifetime.__wrap(ret);
4169
4232
  }
4170
4233
  /**
@@ -4444,7 +4507,7 @@ export class ListMessagesOptions {
4444
4507
  * @param {bigint | null} [arg0]
4445
4508
  */
4446
4509
  set sentBeforeNs(arg0) {
4447
- wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
4510
+ wasm.__wbg_set_listmessagesoptions_sentBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
4448
4511
  }
4449
4512
  /**
4450
4513
  * @returns {bigint | undefined}
@@ -4457,7 +4520,7 @@ export class ListMessagesOptions {
4457
4520
  * @param {bigint | null} [arg0]
4458
4521
  */
4459
4522
  set sentAfterNs(arg0) {
4460
- wasm.__wbg_set_listconversationsoptions_createdBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
4523
+ wasm.__wbg_set_listmessagesoptions_sentAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
4461
4524
  }
4462
4525
  /**
4463
4526
  * @returns {bigint | undefined}
@@ -4470,7 +4533,7 @@ export class ListMessagesOptions {
4470
4533
  * @param {bigint | null} [arg0]
4471
4534
  */
4472
4535
  set limit(arg0) {
4473
- wasm.__wbg_set_listconversationsoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
4536
+ wasm.__wbg_set_listmessagesoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
4474
4537
  }
4475
4538
  /**
4476
4539
  * @returns {DeliveryStatus | undefined}
@@ -4694,14 +4757,14 @@ export class Message {
4694
4757
  * @returns {bigint}
4695
4758
  */
4696
4759
  get sentAtNs() {
4697
- const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
4760
+ const ret = wasm.__wbg_get_message_sentAtNs(this.__wbg_ptr);
4698
4761
  return ret;
4699
4762
  }
4700
4763
  /**
4701
4764
  * @param {bigint} arg0
4702
4765
  */
4703
4766
  set sentAtNs(arg0) {
4704
- wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
4767
+ wasm.__wbg_set_message_sentAtNs(this.__wbg_ptr, arg0);
4705
4768
  }
4706
4769
  /**
4707
4770
  * @returns {string}
@@ -5510,7 +5573,7 @@ export class Reaction {
5510
5573
  set content(arg0) {
5511
5574
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5512
5575
  const len0 = WASM_VECTOR_LEN;
5513
- wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
5576
+ wasm.__wbg_set_reaction_content(this.__wbg_ptr, ptr0, len0);
5514
5577
  }
5515
5578
  /**
5516
5579
  * @returns {ReactionSchema}
@@ -5652,7 +5715,7 @@ export class ReactionPayload {
5652
5715
  set content(arg0) {
5653
5716
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5654
5717
  const len0 = WASM_VECTOR_LEN;
5655
- wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
5718
+ wasm.__wbg_set_reaction_content(this.__wbg_ptr, ptr0, len0);
5656
5719
  }
5657
5720
  /**
5658
5721
  * @returns {ReactionSchemaPayload}
@@ -6109,6 +6172,15 @@ export class SendMessageOpts {
6109
6172
  set shouldPush(arg0) {
6110
6173
  wasm.__wbg_set_sendmessageopts_shouldPush(this.__wbg_ptr, arg0);
6111
6174
  }
6175
+ /**
6176
+ * @param {boolean} should_push
6177
+ */
6178
+ constructor(should_push) {
6179
+ const ret = wasm.sendmessageopts_new(should_push);
6180
+ this.__wbg_ptr = ret >>> 0;
6181
+ SendMessageOptsFinalization.register(this, this.__wbg_ptr, this);
6182
+ return this;
6183
+ }
6112
6184
  }
6113
6185
  if (Symbol.dispose) SendMessageOpts.prototype[Symbol.dispose] = SendMessageOpts.prototype.free;
6114
6186
 
@@ -6282,7 +6354,7 @@ export class TextContent {
6282
6354
  set content(arg0) {
6283
6355
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6284
6356
  const len0 = WASM_VECTOR_LEN;
6285
- wasm.__wbg_set_groupupdated_initiatedByInboxId(this.__wbg_ptr, ptr0, len0);
6357
+ wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
6286
6358
  }
6287
6359
  }
6288
6360
  if (Symbol.dispose) TextContent.prototype[Symbol.dispose] = TextContent.prototype.free;
@@ -6333,7 +6405,7 @@ export class TransactionMetadata {
6333
6405
  set transactionType(arg0) {
6334
6406
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6335
6407
  const len0 = WASM_VECTOR_LEN;
6336
- wasm.__wbg_set_conversationdebuginfo_forkDetails(this.__wbg_ptr, ptr0, len0);
6408
+ wasm.__wbg_set_transactionmetadata_transactionType(this.__wbg_ptr, ptr0, len0);
6337
6409
  }
6338
6410
  /**
6339
6411
  * @returns {string}
@@ -6356,7 +6428,7 @@ export class TransactionMetadata {
6356
6428
  set currency(arg0) {
6357
6429
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6358
6430
  const len0 = WASM_VECTOR_LEN;
6359
- wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
6431
+ wasm.__wbg_set_transactionmetadata_currency(this.__wbg_ptr, ptr0, len0);
6360
6432
  }
6361
6433
  /**
6362
6434
  * @returns {number}
@@ -6405,7 +6477,7 @@ export class TransactionMetadata {
6405
6477
  set fromAddress(arg0) {
6406
6478
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6407
6479
  const len0 = WASM_VECTOR_LEN;
6408
- wasm.__wbg_set_conversationdebuginfo_remoteCommitLog(this.__wbg_ptr, ptr0, len0);
6480
+ wasm.__wbg_set_transactionmetadata_fromAddress(this.__wbg_ptr, ptr0, len0);
6409
6481
  }
6410
6482
  /**
6411
6483
  * @returns {string}
@@ -6956,6 +7028,10 @@ function __wbg_get_imports() {
6956
7028
  const ret = GroupMetadata.__wrap(arg0);
6957
7029
  return ret;
6958
7030
  };
7031
+ imports.wbg.__wbg_groupsyncsummary_new = function(arg0) {
7032
+ const ret = GroupSyncSummary.__wrap(arg0);
7033
+ return ret;
7034
+ };
6959
7035
  imports.wbg.__wbg_has_6a9bff5f4208cfca = function(arg0, arg1) {
6960
7036
  const ret = arg0.has(arg1);
6961
7037
  return ret;
@@ -7145,7 +7221,7 @@ function __wbg_get_imports() {
7145
7221
  const a = state0.a;
7146
7222
  state0.a = 0;
7147
7223
  try {
7148
- return __wbg_adapter_930(a, state0.b, arg0, arg1);
7224
+ return __wbg_adapter_938(a, state0.b, arg0, arg1);
7149
7225
  } finally {
7150
7226
  state0.a = a;
7151
7227
  }
@@ -7627,21 +7703,11 @@ function __wbg_get_imports() {
7627
7703
  const ret = XmtpCursor.__unwrap(arg0);
7628
7704
  return ret;
7629
7705
  };
7630
- imports.wbg.__wbindgen_cast_0fe22db7490762e9 = function(arg0, arg1) {
7631
- // Cast intrinsic for `Closure(Closure { dtor_idx: 6566, function: Function { arguments: [], shim_idx: 6567, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7632
- const ret = makeMutClosure(arg0, arg1, 6566, __wbg_adapter_19);
7633
- return ret;
7634
- };
7635
7706
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
7636
7707
  // Cast intrinsic for `Ref(String) -> Externref`.
7637
7708
  const ret = getStringFromWasm0(arg0, arg1);
7638
7709
  return ret;
7639
7710
  };
7640
- imports.wbg.__wbindgen_cast_4281f6fa3a7af8cb = function(arg0, arg1) {
7641
- // Cast intrinsic for `Closure(Closure { dtor_idx: 6955, function: Function { arguments: [], shim_idx: 6956, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7642
- const ret = makeMutClosure(arg0, arg1, 6955, __wbg_adapter_30);
7643
- return ret;
7644
- };
7645
7711
  imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
7646
7712
  // Cast intrinsic for `U64 -> Externref`.
7647
7713
  const ret = BigInt.asUintN(64, arg0);
@@ -7654,9 +7720,14 @@ function __wbg_get_imports() {
7654
7720
  const ret = v0;
7655
7721
  return ret;
7656
7722
  };
7657
- imports.wbg.__wbindgen_cast_5cdffc6a64ddb7af = function(arg0, arg1) {
7658
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4739, function: Function { arguments: [], shim_idx: 4740, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7659
- const ret = makeMutClosure(arg0, arg1, 4739, __wbg_adapter_14);
7723
+ imports.wbg.__wbindgen_cast_536121b45127786a = function(arg0, arg1) {
7724
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 6990, function: Function { arguments: [], shim_idx: 6991, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7725
+ const ret = makeMutClosure(arg0, arg1, 6990, __wbg_adapter_33);
7726
+ return ret;
7727
+ };
7728
+ imports.wbg.__wbindgen_cast_7924ea3df674d909 = function(arg0, arg1) {
7729
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4753, function: Function { arguments: [], shim_idx: 4754, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7730
+ const ret = makeMutClosure(arg0, arg1, 4753, __wbg_adapter_19);
7660
7731
  return ret;
7661
7732
  };
7662
7733
  imports.wbg.__wbindgen_cast_8e37b4ad2f2ba653 = function(arg0, arg1) {
@@ -7678,11 +7749,21 @@ function __wbg_get_imports() {
7678
7749
  const ret = arg0;
7679
7750
  return ret;
7680
7751
  };
7752
+ imports.wbg.__wbindgen_cast_9ccb490273fba73e = function(arg0, arg1) {
7753
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7003, function: Function { arguments: [Externref], shim_idx: 7014, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7754
+ const ret = makeMutClosure(arg0, arg1, 7003, __wbg_adapter_6);
7755
+ return ret;
7756
+ };
7681
7757
  imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
7682
7758
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
7683
7759
  const ret = getArrayU8FromWasm0(arg0, arg1);
7684
7760
  return ret;
7685
7761
  };
7762
+ imports.wbg.__wbindgen_cast_cdd77e1d61f6b80f = function(arg0, arg1) {
7763
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 6593, function: Function { arguments: [], shim_idx: 6594, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7764
+ const ret = makeMutClosure(arg0, arg1, 6593, __wbg_adapter_28);
7765
+ return ret;
7766
+ };
7686
7767
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
7687
7768
  // Cast intrinsic for `F64 -> Externref`.
7688
7769
  const ret = arg0;
@@ -7702,11 +7783,6 @@ function __wbg_get_imports() {
7702
7783
  const ret = v0;
7703
7784
  return ret;
7704
7785
  };
7705
- imports.wbg.__wbindgen_cast_fa4bd61d4b49ccb5 = function(arg0, arg1) {
7706
- // Cast intrinsic for `Closure(Closure { dtor_idx: 6968, function: Function { arguments: [Externref], shim_idx: 6979, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7707
- const ret = makeMutClosure(arg0, arg1, 6968, __wbg_adapter_33);
7708
- return ret;
7709
- };
7710
7786
  imports.wbg.__wbindgen_init_externref_table = function() {
7711
7787
  const table = wasm.__wbindgen_export_4;
7712
7788
  const offset = table.grow(4);