@xmtp/wasm-bindings 1.6.8 → 1.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -225,102 +225,25 @@ function makeMutClosure(arg0, arg1, dtor, f) {
225
225
  return real;
226
226
  }
227
227
 
228
- function takeFromExternrefTable0(idx) {
229
- const value = wasm.__wbindgen_externrefs.get(idx);
230
- wasm.__externref_table_dealloc(idx);
231
- return value;
232
- }
233
- /**
234
- * @param {string} signature_text
235
- * @param {Uint8Array} signature_bytes
236
- * @param {Uint8Array} public_key
237
- */
238
- export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
239
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
240
- const len0 = WASM_VECTOR_LEN;
241
- const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
242
- if (ret[1]) {
243
- throw takeFromExternrefTable0(ret[0]);
244
- }
245
- }
246
-
247
- function passArrayJsValueToWasm0(array, malloc) {
248
- const ptr = malloc(array.length * 4, 4) >>> 0;
249
- for (let i = 0; i < array.length; i++) {
250
- const add = addToExternrefTable0(array[i]);
251
- getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
252
- }
253
- WASM_VECTOR_LEN = array.length;
254
- return ptr;
255
- }
256
- /**
257
- * @param {string} v3_host
258
- * @param {string | null | undefined} gateway_host
259
- * @param {Identifier} recovery_identifier
260
- * @param {string} inbox_id
261
- * @param {Uint8Array[]} installation_ids
262
- * @returns {SignatureRequestHandle}
263
- */
264
- export function revokeInstallationsSignatureRequest(v3_host, gateway_host, recovery_identifier, inbox_id, installation_ids) {
265
- const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
266
- const len0 = WASM_VECTOR_LEN;
267
- var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
268
- var len1 = WASM_VECTOR_LEN;
269
- const ptr2 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
270
- const len2 = WASM_VECTOR_LEN;
271
- const ptr3 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
272
- const len3 = WASM_VECTOR_LEN;
273
- const ret = wasm.revokeInstallationsSignatureRequest(ptr0, len0, ptr1, len1, recovery_identifier, ptr2, len2, ptr3, len3);
274
- if (ret[2]) {
275
- throw takeFromExternrefTable0(ret[1]);
276
- }
277
- return SignatureRequestHandle.__wrap(ret[0]);
278
- }
279
-
280
228
  function _assertClass(instance, klass) {
281
229
  if (!(instance instanceof klass)) {
282
230
  throw new Error(`expected instance of ${klass.name}`);
283
231
  }
284
232
  }
285
- /**
286
- * @param {string} v3_host
287
- * @param {string | null | undefined} gateway_host
288
- * @param {SignatureRequestHandle} signature_request
289
- * @returns {Promise<void>}
290
- */
291
- export function applySignatureRequest(v3_host, gateway_host, signature_request) {
292
- const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
293
- const len0 = WASM_VECTOR_LEN;
294
- var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
295
- var len1 = WASM_VECTOR_LEN;
296
- _assertClass(signature_request, SignatureRequestHandle);
297
- const ret = wasm.applySignatureRequest(ptr0, len0, ptr1, len1, signature_request.__wbg_ptr);
298
- return ret;
299
- }
300
233
 
301
- /**
302
- * @param {string} v3_host
303
- * @param {string | null | undefined} gateway_host
304
- * @param {string[]} inbox_ids
305
- * @returns {Promise<InboxState[]>}
306
- */
307
- export function inboxStateFromInboxIds(v3_host, gateway_host, inbox_ids) {
308
- const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
309
- const len0 = WASM_VECTOR_LEN;
310
- var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
311
- var len1 = WASM_VECTOR_LEN;
312
- const ptr2 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
313
- const len2 = WASM_VECTOR_LEN;
314
- const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
315
- return ret;
234
+ function takeFromExternrefTable0(idx) {
235
+ const value = wasm.__wbindgen_externrefs.get(idx);
236
+ wasm.__externref_table_dealloc(idx);
237
+ return value;
316
238
  }
317
-
318
239
  /**
319
- * @param {Uint8Array} bytes
240
+ * @param {EncodedContent} encoded_content
320
241
  * @returns {LeaveRequest}
321
242
  */
322
- export function decodeLeaveRequest(bytes) {
323
- const ret = wasm.decodeLeaveRequest(bytes);
243
+ export function decodeLeaveRequest(encoded_content) {
244
+ _assertClass(encoded_content, EncodedContent);
245
+ var ptr0 = encoded_content.__destroy_into_raw();
246
+ const ret = wasm.decodeLeaveRequest(ptr0);
324
247
  if (ret[2]) {
325
248
  throw takeFromExternrefTable0(ret[1]);
326
249
  }
@@ -341,42 +264,41 @@ export function encodeLeaveRequest(leaveRequest) {
341
264
  return takeFromExternrefTable0(ret[0]);
342
265
  }
343
266
 
344
- /**
345
- * @param {Uint8Array} bytes
346
- * @returns {MultiRemoteAttachment}
347
- */
348
- export function decodeMultiRemoteAttachment(bytes) {
349
- const ret = wasm.decodeMultiRemoteAttachment(bytes);
350
- if (ret[2]) {
351
- throw takeFromExternrefTable0(ret[1]);
267
+ function passArrayJsValueToWasm0(array, malloc) {
268
+ const ptr = malloc(array.length * 4, 4) >>> 0;
269
+ for (let i = 0; i < array.length; i++) {
270
+ const add = addToExternrefTable0(array[i]);
271
+ getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
352
272
  }
353
- return MultiRemoteAttachment.__wrap(ret[0]);
273
+ WASM_VECTOR_LEN = array.length;
274
+ return ptr;
354
275
  }
355
-
356
276
  /**
357
- * @param {MultiRemoteAttachment} multiRemoteAttachment
358
- * @returns {Uint8Array}
277
+ * @param {EncodedContent} encoded_content
278
+ * @returns {Reply}
359
279
  */
360
- export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
361
- _assertClass(multiRemoteAttachment, MultiRemoteAttachment);
362
- var ptr0 = multiRemoteAttachment.__destroy_into_raw();
363
- const ret = wasm.encodeMultiRemoteAttachment(ptr0);
280
+ export function decodeReply(encoded_content) {
281
+ _assertClass(encoded_content, EncodedContent);
282
+ var ptr0 = encoded_content.__destroy_into_raw();
283
+ const ret = wasm.decodeReply(ptr0);
364
284
  if (ret[2]) {
365
285
  throw takeFromExternrefTable0(ret[1]);
366
286
  }
367
- return takeFromExternrefTable0(ret[0]);
287
+ return Reply.__wrap(ret[0]);
368
288
  }
369
289
 
370
290
  /**
371
- * @param {Uint8Array} bytes
372
- * @returns {Actions}
291
+ * @param {Reply} reply
292
+ * @returns {Uint8Array}
373
293
  */
374
- export function decodeActions(bytes) {
375
- const ret = wasm.decodeActions(bytes);
294
+ export function encodeReply(reply) {
295
+ _assertClass(reply, Reply);
296
+ var ptr0 = reply.__destroy_into_raw();
297
+ const ret = wasm.encodeReply(ptr0);
376
298
  if (ret[2]) {
377
299
  throw takeFromExternrefTable0(ret[1]);
378
300
  }
379
- return Actions.__wrap(ret[0]);
301
+ return takeFromExternrefTable0(ret[0]);
380
302
  }
381
303
 
382
304
  /**
@@ -394,29 +316,17 @@ export function encodeActions(actions) {
394
316
  }
395
317
 
396
318
  /**
397
- * @param {Reaction} reaction
398
- * @returns {Uint8Array}
399
- */
400
- export function encodeReaction(reaction) {
401
- _assertClass(reaction, Reaction);
402
- var ptr0 = reaction.__destroy_into_raw();
403
- const ret = wasm.encodeReaction(ptr0);
404
- if (ret[2]) {
405
- throw takeFromExternrefTable0(ret[1]);
406
- }
407
- return takeFromExternrefTable0(ret[0]);
408
- }
409
-
410
- /**
411
- * @param {Uint8Array} bytes
412
- * @returns {Reaction}
319
+ * @param {EncodedContent} encoded_content
320
+ * @returns {Actions}
413
321
  */
414
- export function decodeReaction(bytes) {
415
- const ret = wasm.decodeReaction(bytes);
322
+ export function decodeActions(encoded_content) {
323
+ _assertClass(encoded_content, EncodedContent);
324
+ var ptr0 = encoded_content.__destroy_into_raw();
325
+ const ret = wasm.decodeActions(ptr0);
416
326
  if (ret[2]) {
417
327
  throw takeFromExternrefTable0(ret[1]);
418
328
  }
419
- return Reaction.__wrap(ret[0]);
329
+ return Actions.__wrap(ret[0]);
420
330
  }
421
331
 
422
332
  function passArray8ToWasm0(arg, malloc) {
@@ -425,52 +335,6 @@ function passArray8ToWasm0(arg, malloc) {
425
335
  WASM_VECTOR_LEN = arg.length;
426
336
  return ptr;
427
337
  }
428
- /**
429
- * @param {string} host
430
- * @param {string} inbox_id
431
- * @param {Identifier} account_identifier
432
- * @param {string | null} [db_path]
433
- * @param {Uint8Array | null} [encryption_key]
434
- * @param {string | null} [device_sync_server_url]
435
- * @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
436
- * @param {LogOptions | null} [log_options]
437
- * @param {boolean | null} [allow_offline]
438
- * @param {boolean | null} [disable_events]
439
- * @param {string | null} [app_version]
440
- * @param {string | null} [gateway_host]
441
- * @param {bigint | null} [nonce]
442
- * @param {any | null} [auth_callback]
443
- * @param {AuthHandle | null} [auth_handle]
444
- * @param {ClientMode | null} [client_mode]
445
- * @returns {Promise<Client>}
446
- */
447
- export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline, disable_events, app_version, gateway_host, nonce, auth_callback, auth_handle, client_mode) {
448
- const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
449
- const len0 = WASM_VECTOR_LEN;
450
- const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
451
- const len1 = WASM_VECTOR_LEN;
452
- var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
453
- var len2 = WASM_VECTOR_LEN;
454
- var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
455
- var len3 = WASM_VECTOR_LEN;
456
- let ptr4 = 0;
457
- if (!isLikeNone(log_options)) {
458
- _assertClass(log_options, LogOptions);
459
- ptr4 = log_options.__destroy_into_raw();
460
- }
461
- var ptr5 = isLikeNone(app_version) ? 0 : passStringToWasm0(app_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
462
- var len5 = WASM_VECTOR_LEN;
463
- var ptr6 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
464
- var len6 = WASM_VECTOR_LEN;
465
- let ptr7 = 0;
466
- if (!isLikeNone(auth_handle)) {
467
- _assertClass(auth_handle, AuthHandle);
468
- ptr7 = auth_handle.__destroy_into_raw();
469
- }
470
- 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);
471
- return ret;
472
- }
473
-
474
338
  /**
475
339
  * @param {Identifier} accountIdentifier
476
340
  * @param {bigint | null} [nonce]
@@ -511,23 +375,55 @@ export function getInboxIdForIdentifier(host, gatewayHost, accountIdentifier) {
511
375
  }
512
376
 
513
377
  /**
514
- * @param {Uint8Array} bytes
515
- * @returns {GroupUpdated}
378
+ * @param {Reaction} reaction
379
+ * @returns {Uint8Array}
516
380
  */
517
- export function decodeGroupUpdated(bytes) {
518
- const ret = wasm.decodeGroupUpdated(bytes);
381
+ export function encodeReaction(reaction) {
382
+ _assertClass(reaction, Reaction);
383
+ var ptr0 = reaction.__destroy_into_raw();
384
+ const ret = wasm.encodeReaction(ptr0);
519
385
  if (ret[2]) {
520
386
  throw takeFromExternrefTable0(ret[1]);
521
387
  }
522
- return GroupUpdated.__wrap(ret[0]);
388
+ return takeFromExternrefTable0(ret[0]);
523
389
  }
524
390
 
525
391
  /**
526
- * @param {Uint8Array} bytes
527
- * @returns {any}
392
+ * @param {EncodedContent} encoded_content
393
+ * @returns {Reaction}
394
+ */
395
+ export function decodeReaction(encoded_content) {
396
+ _assertClass(encoded_content, EncodedContent);
397
+ var ptr0 = encoded_content.__destroy_into_raw();
398
+ const ret = wasm.decodeReaction(ptr0);
399
+ if (ret[2]) {
400
+ throw takeFromExternrefTable0(ret[1]);
401
+ }
402
+ return Reaction.__wrap(ret[0]);
403
+ }
404
+
405
+ /**
406
+ * @param {EncodedContent} encoded_content
407
+ * @returns {RemoteAttachment}
408
+ */
409
+ export function decodeRemoteAttachment(encoded_content) {
410
+ _assertClass(encoded_content, EncodedContent);
411
+ var ptr0 = encoded_content.__destroy_into_raw();
412
+ const ret = wasm.decodeRemoteAttachment(ptr0);
413
+ if (ret[2]) {
414
+ throw takeFromExternrefTable0(ret[1]);
415
+ }
416
+ return RemoteAttachment.__wrap(ret[0]);
417
+ }
418
+
419
+ /**
420
+ * @param {RemoteAttachment} remoteAttachment
421
+ * @returns {Uint8Array}
528
422
  */
529
- export function decodeWalletSendCalls(bytes) {
530
- const ret = wasm.decodeWalletSendCalls(bytes);
423
+ export function encodeRemoteAttachment(remoteAttachment) {
424
+ _assertClass(remoteAttachment, RemoteAttachment);
425
+ var ptr0 = remoteAttachment.__destroy_into_raw();
426
+ const ret = wasm.encodeRemoteAttachment(ptr0);
531
427
  if (ret[2]) {
532
428
  throw takeFromExternrefTable0(ret[1]);
533
429
  }
@@ -535,11 +431,95 @@ export function decodeWalletSendCalls(bytes) {
535
431
  }
536
432
 
537
433
  /**
538
- * @param {any} wallet_send_calls
434
+ * @param {Intent} intent
539
435
  * @returns {Uint8Array}
540
436
  */
541
- export function encodeWalletSendCalls(wallet_send_calls) {
542
- const ret = wasm.encodeWalletSendCalls(wallet_send_calls);
437
+ export function encodeIntent(intent) {
438
+ _assertClass(intent, Intent);
439
+ var ptr0 = intent.__destroy_into_raw();
440
+ const ret = wasm.encodeIntent(ptr0);
441
+ if (ret[2]) {
442
+ throw takeFromExternrefTable0(ret[1]);
443
+ }
444
+ return takeFromExternrefTable0(ret[0]);
445
+ }
446
+
447
+ /**
448
+ * @param {EncodedContent} encoded_content
449
+ * @returns {Intent}
450
+ */
451
+ export function decodeIntent(encoded_content) {
452
+ _assertClass(encoded_content, EncodedContent);
453
+ var ptr0 = encoded_content.__destroy_into_raw();
454
+ const ret = wasm.decodeIntent(ptr0);
455
+ if (ret[2]) {
456
+ throw takeFromExternrefTable0(ret[1]);
457
+ }
458
+ return Intent.__wrap(ret[0]);
459
+ }
460
+
461
+ /**
462
+ * @param {string} v3_host
463
+ * @param {string | null | undefined} gateway_host
464
+ * @param {SignatureRequestHandle} signature_request
465
+ * @returns {Promise<void>}
466
+ */
467
+ export function applySignatureRequest(v3_host, gateway_host, signature_request) {
468
+ const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
469
+ const len0 = WASM_VECTOR_LEN;
470
+ var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
471
+ var len1 = WASM_VECTOR_LEN;
472
+ _assertClass(signature_request, SignatureRequestHandle);
473
+ const ret = wasm.applySignatureRequest(ptr0, len0, ptr1, len1, signature_request.__wbg_ptr);
474
+ return ret;
475
+ }
476
+
477
+ /**
478
+ * @param {string} v3_host
479
+ * @param {string | null | undefined} gateway_host
480
+ * @param {Identifier} recovery_identifier
481
+ * @param {string} inbox_id
482
+ * @param {Uint8Array[]} installation_ids
483
+ * @returns {SignatureRequestHandle}
484
+ */
485
+ export function revokeInstallationsSignatureRequest(v3_host, gateway_host, recovery_identifier, inbox_id, installation_ids) {
486
+ const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
487
+ const len0 = WASM_VECTOR_LEN;
488
+ var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
489
+ var len1 = WASM_VECTOR_LEN;
490
+ const ptr2 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
491
+ const len2 = WASM_VECTOR_LEN;
492
+ const ptr3 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
493
+ const len3 = WASM_VECTOR_LEN;
494
+ const ret = wasm.revokeInstallationsSignatureRequest(ptr0, len0, ptr1, len1, recovery_identifier, ptr2, len2, ptr3, len3);
495
+ if (ret[2]) {
496
+ throw takeFromExternrefTable0(ret[1]);
497
+ }
498
+ return SignatureRequestHandle.__wrap(ret[0]);
499
+ }
500
+
501
+ /**
502
+ * @param {string} signature_text
503
+ * @param {Uint8Array} signature_bytes
504
+ * @param {Uint8Array} public_key
505
+ */
506
+ export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
507
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
508
+ const len0 = WASM_VECTOR_LEN;
509
+ const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
510
+ if (ret[1]) {
511
+ throw takeFromExternrefTable0(ret[0]);
512
+ }
513
+ }
514
+
515
+ /**
516
+ * @param {string} text
517
+ * @returns {Uint8Array}
518
+ */
519
+ export function encodeXmtpText(text) {
520
+ const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
521
+ const len0 = WASM_VECTOR_LEN;
522
+ const ret = wasm.encodeXmtpText(ptr0, len0);
543
523
  if (ret[2]) {
544
524
  throw takeFromExternrefTable0(ret[1]);
545
525
  }
@@ -547,50 +527,69 @@ export function encodeWalletSendCalls(wallet_send_calls) {
547
527
  }
548
528
 
549
529
  /**
550
- * @param {Uint8Array} bytes
530
+ * @param {EncodedContent} encoded_content
551
531
  * @returns {string}
552
532
  */
553
- export function decodeXmtpText(bytes) {
554
- let deferred2_0;
555
- let deferred2_1;
533
+ export function decodeXmtpText(encoded_content) {
534
+ let deferred3_0;
535
+ let deferred3_1;
556
536
  try {
557
- const ret = wasm.decodeXmtpText(bytes);
558
- var ptr1 = ret[0];
559
- var len1 = ret[1];
537
+ _assertClass(encoded_content, EncodedContent);
538
+ var ptr0 = encoded_content.__destroy_into_raw();
539
+ const ret = wasm.decodeXmtpText(ptr0);
540
+ var ptr2 = ret[0];
541
+ var len2 = ret[1];
560
542
  if (ret[3]) {
561
- ptr1 = 0; len1 = 0;
543
+ ptr2 = 0; len2 = 0;
562
544
  throw takeFromExternrefTable0(ret[2]);
563
545
  }
564
- deferred2_0 = ptr1;
565
- deferred2_1 = len1;
566
- return getStringFromWasm0(ptr1, len1);
546
+ deferred3_0 = ptr2;
547
+ deferred3_1 = len2;
548
+ return getStringFromWasm0(ptr2, len2);
567
549
  } finally {
568
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
550
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
569
551
  }
570
552
  }
571
553
 
572
554
  /**
573
- * @param {string} text
574
- * @returns {Uint8Array}
555
+ * @param {string} v3_host
556
+ * @param {string | null | undefined} gateway_host
557
+ * @param {string[]} inbox_ids
558
+ * @returns {Promise<InboxState[]>}
559
+ */
560
+ export function inboxStateFromInboxIds(v3_host, gateway_host, inbox_ids) {
561
+ const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
562
+ const len0 = WASM_VECTOR_LEN;
563
+ var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
564
+ var len1 = WASM_VECTOR_LEN;
565
+ const ptr2 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
566
+ const len2 = WASM_VECTOR_LEN;
567
+ const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
568
+ return ret;
569
+ }
570
+
571
+ /**
572
+ * @param {EncodedContent} encoded_content
573
+ * @returns {GroupUpdated}
575
574
  */
576
- export function encodeXmtpText(text) {
577
- const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
578
- const len0 = WASM_VECTOR_LEN;
579
- const ret = wasm.encodeXmtpText(ptr0, len0);
575
+ export function decodeGroupUpdated(encoded_content) {
576
+ _assertClass(encoded_content, EncodedContent);
577
+ var ptr0 = encoded_content.__destroy_into_raw();
578
+ const ret = wasm.decodeGroupUpdated(ptr0);
580
579
  if (ret[2]) {
581
580
  throw takeFromExternrefTable0(ret[1]);
582
581
  }
583
- return takeFromExternrefTable0(ret[0]);
582
+ return GroupUpdated.__wrap(ret[0]);
584
583
  }
585
584
 
586
585
  /**
587
- * @param {Attachment} attachment
586
+ * @param {TransactionReference} transactionReference
588
587
  * @returns {Uint8Array}
589
588
  */
590
- export function encodeAttachment(attachment) {
591
- _assertClass(attachment, Attachment);
592
- var ptr0 = attachment.__destroy_into_raw();
593
- const ret = wasm.encodeAttachment(ptr0);
589
+ export function encodeTransactionReference(transactionReference) {
590
+ _assertClass(transactionReference, TransactionReference);
591
+ var ptr0 = transactionReference.__destroy_into_raw();
592
+ const ret = wasm.encodeTransactionReference(ptr0);
594
593
  if (ret[2]) {
595
594
  throw takeFromExternrefTable0(ret[1]);
596
595
  }
@@ -598,37 +597,41 @@ export function encodeAttachment(attachment) {
598
597
  }
599
598
 
600
599
  /**
601
- * @param {Uint8Array} bytes
602
- * @returns {Attachment}
600
+ * @param {EncodedContent} encoded_content
601
+ * @returns {TransactionReference}
603
602
  */
604
- export function decodeAttachment(bytes) {
605
- const ret = wasm.decodeAttachment(bytes);
603
+ export function decodeTransactionReference(encoded_content) {
604
+ _assertClass(encoded_content, EncodedContent);
605
+ var ptr0 = encoded_content.__destroy_into_raw();
606
+ const ret = wasm.decodeTransactionReference(ptr0);
606
607
  if (ret[2]) {
607
608
  throw takeFromExternrefTable0(ret[1]);
608
609
  }
609
- return Attachment.__wrap(ret[0]);
610
+ return TransactionReference.__wrap(ret[0]);
610
611
  }
611
612
 
612
613
  /**
613
- * @param {Uint8Array} bytes
614
- * @returns {ReadReceipt}
614
+ * @param {EncodedContent} encoded_content
615
+ * @returns {MultiRemoteAttachment}
615
616
  */
616
- export function decodeReadReceipt(bytes) {
617
- const ret = wasm.decodeReadReceipt(bytes);
617
+ export function decodeMultiRemoteAttachment(encoded_content) {
618
+ _assertClass(encoded_content, EncodedContent);
619
+ var ptr0 = encoded_content.__destroy_into_raw();
620
+ const ret = wasm.decodeMultiRemoteAttachment(ptr0);
618
621
  if (ret[2]) {
619
622
  throw takeFromExternrefTable0(ret[1]);
620
623
  }
621
- return ReadReceipt.__wrap(ret[0]);
624
+ return MultiRemoteAttachment.__wrap(ret[0]);
622
625
  }
623
626
 
624
627
  /**
625
- * @param {ReadReceipt} readReceipt
628
+ * @param {MultiRemoteAttachment} multiRemoteAttachment
626
629
  * @returns {Uint8Array}
627
630
  */
628
- export function encodeReadReceipt(readReceipt) {
629
- _assertClass(readReceipt, ReadReceipt);
630
- var ptr0 = readReceipt.__destroy_into_raw();
631
- const ret = wasm.encodeReadReceipt(ptr0);
631
+ export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
632
+ _assertClass(multiRemoteAttachment, MultiRemoteAttachment);
633
+ var ptr0 = multiRemoteAttachment.__destroy_into_raw();
634
+ const ret = wasm.encodeMultiRemoteAttachment(ptr0);
632
635
  if (ret[2]) {
633
636
  throw takeFromExternrefTable0(ret[1]);
634
637
  }
@@ -636,65 +639,101 @@ export function encodeReadReceipt(readReceipt) {
636
639
  }
637
640
 
638
641
  /**
639
- * @param {RemoteAttachment} remoteAttachment
640
- * @returns {Uint8Array}
642
+ * @param {string} host
643
+ * @param {string} inbox_id
644
+ * @param {Identifier} account_identifier
645
+ * @param {string | null} [db_path]
646
+ * @param {Uint8Array | null} [encryption_key]
647
+ * @param {string | null} [device_sync_server_url]
648
+ * @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
649
+ * @param {LogOptions | null} [log_options]
650
+ * @param {boolean | null} [allow_offline]
651
+ * @param {boolean | null} [disable_events]
652
+ * @param {string | null} [app_version]
653
+ * @param {string | null} [gateway_host]
654
+ * @param {bigint | null} [nonce]
655
+ * @param {any | null} [auth_callback]
656
+ * @param {AuthHandle | null} [auth_handle]
657
+ * @param {ClientMode | null} [client_mode]
658
+ * @returns {Promise<Client>}
641
659
  */
642
- export function encodeRemoteAttachment(remoteAttachment) {
643
- _assertClass(remoteAttachment, RemoteAttachment);
644
- var ptr0 = remoteAttachment.__destroy_into_raw();
645
- const ret = wasm.encodeRemoteAttachment(ptr0);
646
- if (ret[2]) {
647
- throw takeFromExternrefTable0(ret[1]);
660
+ export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline, disable_events, app_version, gateway_host, nonce, auth_callback, auth_handle, client_mode) {
661
+ const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
662
+ const len0 = WASM_VECTOR_LEN;
663
+ const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
664
+ const len1 = WASM_VECTOR_LEN;
665
+ var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
666
+ var len2 = WASM_VECTOR_LEN;
667
+ var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
668
+ var len3 = WASM_VECTOR_LEN;
669
+ let ptr4 = 0;
670
+ if (!isLikeNone(log_options)) {
671
+ _assertClass(log_options, LogOptions);
672
+ ptr4 = log_options.__destroy_into_raw();
648
673
  }
649
- return takeFromExternrefTable0(ret[0]);
674
+ var ptr5 = isLikeNone(app_version) ? 0 : passStringToWasm0(app_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
675
+ var len5 = WASM_VECTOR_LEN;
676
+ var ptr6 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
677
+ var len6 = WASM_VECTOR_LEN;
678
+ let ptr7 = 0;
679
+ if (!isLikeNone(auth_handle)) {
680
+ _assertClass(auth_handle, AuthHandle);
681
+ ptr7 = auth_handle.__destroy_into_raw();
682
+ }
683
+ 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);
684
+ return ret;
650
685
  }
651
686
 
652
687
  /**
653
- * @param {Uint8Array} bytes
654
- * @returns {RemoteAttachment}
688
+ * @param {Attachment} attachment
689
+ * @returns {Uint8Array}
655
690
  */
656
- export function decodeRemoteAttachment(bytes) {
657
- const ret = wasm.decodeRemoteAttachment(bytes);
691
+ export function encodeAttachment(attachment) {
692
+ _assertClass(attachment, Attachment);
693
+ var ptr0 = attachment.__destroy_into_raw();
694
+ const ret = wasm.encodeAttachment(ptr0);
658
695
  if (ret[2]) {
659
696
  throw takeFromExternrefTable0(ret[1]);
660
697
  }
661
- return RemoteAttachment.__wrap(ret[0]);
698
+ return takeFromExternrefTable0(ret[0]);
662
699
  }
663
700
 
664
701
  /**
665
- * @param {Uint8Array} bytes
666
- * @returns {TransactionReference}
702
+ * @param {EncodedContent} encoded_content
703
+ * @returns {Attachment}
667
704
  */
668
- export function decodeTransactionReference(bytes) {
669
- const ret = wasm.decodeTransactionReference(bytes);
705
+ export function decodeAttachment(encoded_content) {
706
+ _assertClass(encoded_content, EncodedContent);
707
+ var ptr0 = encoded_content.__destroy_into_raw();
708
+ const ret = wasm.decodeAttachment(ptr0);
670
709
  if (ret[2]) {
671
710
  throw takeFromExternrefTable0(ret[1]);
672
711
  }
673
- return TransactionReference.__wrap(ret[0]);
712
+ return Attachment.__wrap(ret[0]);
674
713
  }
675
714
 
676
715
  /**
677
- * @param {TransactionReference} transactionReference
678
- * @returns {Uint8Array}
716
+ * @param {EncodedContent} encoded_content
717
+ * @returns {ReadReceipt}
679
718
  */
680
- export function encodeTransactionReference(transactionReference) {
681
- _assertClass(transactionReference, TransactionReference);
682
- var ptr0 = transactionReference.__destroy_into_raw();
683
- const ret = wasm.encodeTransactionReference(ptr0);
719
+ export function decodeReadReceipt(encoded_content) {
720
+ _assertClass(encoded_content, EncodedContent);
721
+ var ptr0 = encoded_content.__destroy_into_raw();
722
+ const ret = wasm.decodeReadReceipt(ptr0);
684
723
  if (ret[2]) {
685
724
  throw takeFromExternrefTable0(ret[1]);
686
725
  }
687
- return takeFromExternrefTable0(ret[0]);
726
+ return ReadReceipt.__wrap(ret[0]);
688
727
  }
689
728
 
690
729
  /**
691
- * @param {Reply} reply
730
+ * @param {ReadReceipt} readReceipt
692
731
  * @returns {Uint8Array}
693
732
  */
694
- export function encodeReply(reply) {
695
- _assertClass(reply, Reply);
696
- var ptr0 = reply.__destroy_into_raw();
697
- const ret = wasm.encodeReply(ptr0);
733
+ export function encodeReadReceipt(readReceipt) {
734
+ _assertClass(readReceipt, ReadReceipt);
735
+ var ptr0 = readReceipt.__destroy_into_raw();
736
+ const ret = wasm.encodeReadReceipt(ptr0);
698
737
  if (ret[2]) {
699
738
  throw takeFromExternrefTable0(ret[1]);
700
739
  }
@@ -702,37 +741,25 @@ export function encodeReply(reply) {
702
741
  }
703
742
 
704
743
  /**
705
- * @param {Uint8Array} bytes
706
- * @returns {Reply}
707
- */
708
- export function decodeReply(bytes) {
709
- const ret = wasm.decodeReply(bytes);
710
- if (ret[2]) {
711
- throw takeFromExternrefTable0(ret[1]);
712
- }
713
- return Reply.__wrap(ret[0]);
714
- }
715
-
716
- /**
717
- * @param {Uint8Array} bytes
718
- * @returns {Intent}
744
+ * @param {EncodedContent} encoded_content
745
+ * @returns {any}
719
746
  */
720
- export function decodeIntent(bytes) {
721
- const ret = wasm.decodeIntent(bytes);
747
+ export function decodeWalletSendCalls(encoded_content) {
748
+ _assertClass(encoded_content, EncodedContent);
749
+ var ptr0 = encoded_content.__destroy_into_raw();
750
+ const ret = wasm.decodeWalletSendCalls(ptr0);
722
751
  if (ret[2]) {
723
752
  throw takeFromExternrefTable0(ret[1]);
724
753
  }
725
- return Intent.__wrap(ret[0]);
754
+ return takeFromExternrefTable0(ret[0]);
726
755
  }
727
756
 
728
757
  /**
729
- * @param {Intent} intent
758
+ * @param {any} wallet_send_calls
730
759
  * @returns {Uint8Array}
731
760
  */
732
- export function encodeIntent(intent) {
733
- _assertClass(intent, Intent);
734
- var ptr0 = intent.__destroy_into_raw();
735
- const ret = wasm.encodeIntent(ptr0);
761
+ export function encodeWalletSendCalls(wallet_send_calls) {
762
+ const ret = wasm.encodeWalletSendCalls(wallet_send_calls);
736
763
  if (ret[2]) {
737
764
  throw takeFromExternrefTable0(ret[1]);
738
765
  }
@@ -750,24 +777,24 @@ export function task_worker_entry_point(ptr) {
750
777
  }
751
778
  }
752
779
 
753
- function wasm_bindgen__convert__closures_____invoke__h753a3e053785270d(arg0, arg1) {
754
- wasm.wasm_bindgen__convert__closures_____invoke__h753a3e053785270d(arg0, arg1);
780
+ function wasm_bindgen__convert__closures_____invoke__he553f5a75ceef16c(arg0, arg1) {
781
+ wasm.wasm_bindgen__convert__closures_____invoke__he553f5a75ceef16c(arg0, arg1);
755
782
  }
756
783
 
757
- function wasm_bindgen__convert__closures_____invoke__hafab8b28acda63ce(arg0, arg1) {
758
- wasm.wasm_bindgen__convert__closures_____invoke__hafab8b28acda63ce(arg0, arg1);
784
+ function wasm_bindgen__convert__closures_____invoke__h922fe5fb24b1beed(arg0, arg1) {
785
+ wasm.wasm_bindgen__convert__closures_____invoke__h922fe5fb24b1beed(arg0, arg1);
759
786
  }
760
787
 
761
- function wasm_bindgen__convert__closures_____invoke__h9011598bdd38acb2(arg0, arg1) {
762
- wasm.wasm_bindgen__convert__closures_____invoke__h9011598bdd38acb2(arg0, arg1);
788
+ function wasm_bindgen__convert__closures_____invoke__h7a7839898bdc8c05(arg0, arg1) {
789
+ wasm.wasm_bindgen__convert__closures_____invoke__h7a7839898bdc8c05(arg0, arg1);
763
790
  }
764
791
 
765
- function wasm_bindgen__convert__closures_____invoke__h34df32c886f66f02(arg0, arg1, arg2) {
766
- wasm.wasm_bindgen__convert__closures_____invoke__h34df32c886f66f02(arg0, arg1, arg2);
792
+ function wasm_bindgen__convert__closures_____invoke__h03e85ac1b34d0273(arg0, arg1, arg2) {
793
+ wasm.wasm_bindgen__convert__closures_____invoke__h03e85ac1b34d0273(arg0, arg1, arg2);
767
794
  }
768
795
 
769
- function wasm_bindgen__convert__closures_____invoke__h18a484e2affd7fe5(arg0, arg1, arg2, arg3) {
770
- wasm.wasm_bindgen__convert__closures_____invoke__h18a484e2affd7fe5(arg0, arg1, arg2, arg3);
796
+ function wasm_bindgen__convert__closures_____invoke__h68a31ad8ab9398c3(arg0, arg1, arg2, arg3) {
797
+ wasm.wasm_bindgen__convert__closures_____invoke__h68a31ad8ab9398c3(arg0, arg1, arg2, arg3);
771
798
  }
772
799
 
773
800
  /**
@@ -1644,6 +1671,27 @@ export class Client {
1644
1671
  const ret = wasm.client_revokeAllOtherInstallationsSignatureRequest(this.__wbg_ptr);
1645
1672
  return ret;
1646
1673
  }
1674
+ /**
1675
+ * @param {ConsentEntityType} entity_type
1676
+ * @param {string} entity
1677
+ * @returns {Promise<ConsentState>}
1678
+ */
1679
+ getConsentState(entity_type, entity) {
1680
+ const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1681
+ const len0 = WASM_VECTOR_LEN;
1682
+ const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
1683
+ return ret;
1684
+ }
1685
+ /**
1686
+ * @param {Consent[]} records
1687
+ * @returns {Promise<void>}
1688
+ */
1689
+ setConsentStates(records) {
1690
+ const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
1691
+ const len0 = WASM_VECTOR_LEN;
1692
+ const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
1693
+ return ret;
1694
+ }
1647
1695
  /**
1648
1696
  *
1649
1697
  * * Get the client's inbox state.
@@ -1683,27 +1731,6 @@ export class Client {
1683
1731
  const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
1684
1732
  return ret;
1685
1733
  }
1686
- /**
1687
- * @param {ConsentEntityType} entity_type
1688
- * @param {string} entity
1689
- * @returns {Promise<ConsentState>}
1690
- */
1691
- getConsentState(entity_type, entity) {
1692
- const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1693
- const len0 = WASM_VECTOR_LEN;
1694
- const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
1695
- return ret;
1696
- }
1697
- /**
1698
- * @param {Consent[]} records
1699
- * @returns {Promise<void>}
1700
- */
1701
- setConsentStates(records) {
1702
- const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
1703
- const len0 = WASM_VECTOR_LEN;
1704
- const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
1705
- return ret;
1706
- }
1707
1734
  /**
1708
1735
  * @returns {string}
1709
1736
  */
@@ -2055,7 +2082,7 @@ export class ContentTypeId {
2055
2082
  set authorityId(arg0) {
2056
2083
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2057
2084
  const len0 = WASM_VECTOR_LEN;
2058
- wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
2085
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
2059
2086
  }
2060
2087
  /**
2061
2088
  * @returns {string}
@@ -2078,7 +2105,7 @@ export class ContentTypeId {
2078
2105
  set typeId(arg0) {
2079
2106
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2080
2107
  const len0 = WASM_VECTOR_LEN;
2081
- wasm.__wbg_set_attachment_content(this.__wbg_ptr, ptr0, len0);
2108
+ wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
2082
2109
  }
2083
2110
  /**
2084
2111
  * @returns {number}
@@ -2134,25 +2161,6 @@ export class Conversation {
2134
2161
  const ptr = this.__destroy_into_raw();
2135
2162
  wasm.__wbg_conversation_free(ptr, 0);
2136
2163
  }
2137
- /**
2138
- * @returns {ConsentState}
2139
- */
2140
- consentState() {
2141
- const ret = wasm.conversation_consentState(this.__wbg_ptr);
2142
- if (ret[2]) {
2143
- throw takeFromExternrefTable0(ret[1]);
2144
- }
2145
- return ret[0];
2146
- }
2147
- /**
2148
- * @param {ConsentState} state
2149
- */
2150
- updateConsentState(state) {
2151
- const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
2152
- if (ret[1]) {
2153
- throw takeFromExternrefTable0(ret[0]);
2154
- }
2155
- }
2156
2164
  /**
2157
2165
  * @returns {string[]}
2158
2166
  */
@@ -2742,6 +2750,25 @@ export class Conversation {
2742
2750
  }
2743
2751
  return ret[0] !== 0;
2744
2752
  }
2753
+ /**
2754
+ * @returns {ConsentState}
2755
+ */
2756
+ consentState() {
2757
+ const ret = wasm.conversation_consentState(this.__wbg_ptr);
2758
+ if (ret[2]) {
2759
+ throw takeFromExternrefTable0(ret[1]);
2760
+ }
2761
+ return ret[0];
2762
+ }
2763
+ /**
2764
+ * @param {ConsentState} state
2765
+ */
2766
+ updateConsentState(state) {
2767
+ const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
2768
+ if (ret[1]) {
2769
+ throw takeFromExternrefTable0(ret[0]);
2770
+ }
2771
+ }
2745
2772
  }
2746
2773
  if (Symbol.dispose) Conversation.prototype[Symbol.dispose] = Conversation.prototype.free;
2747
2774
 
@@ -4398,7 +4425,7 @@ export class GroupUpdated {
4398
4425
  set initiatedByInboxId(arg0) {
4399
4426
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4400
4427
  const len0 = WASM_VECTOR_LEN;
4401
- wasm.__wbg_set_groupupdated_initiatedByInboxId(this.__wbg_ptr, ptr0, len0);
4428
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
4402
4429
  }
4403
4430
  /**
4404
4431
  * @returns {Inbox[]}
@@ -4722,7 +4749,7 @@ export class Inbox {
4722
4749
  set inboxId(arg0) {
4723
4750
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4724
4751
  const len0 = WASM_VECTOR_LEN;
4725
- wasm.__wbg_set_groupupdated_initiatedByInboxId(this.__wbg_ptr, ptr0, len0);
4752
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
4726
4753
  }
4727
4754
  }
4728
4755
  if (Symbol.dispose) Inbox.prototype[Symbol.dispose] = Inbox.prototype.free;
@@ -4791,7 +4818,7 @@ export class InboxState {
4791
4818
  set inboxId(arg0) {
4792
4819
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4793
4820
  const len0 = WASM_VECTOR_LEN;
4794
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
4821
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
4795
4822
  }
4796
4823
  /**
4797
4824
  * @returns {Identifier}
@@ -4922,7 +4949,7 @@ export class Installation {
4922
4949
  set id(arg0) {
4923
4950
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4924
4951
  const len0 = WASM_VECTOR_LEN;
4925
- wasm.__wbg_set_action_id(this.__wbg_ptr, ptr0, len0);
4952
+ wasm.__wbg_set_installation_id(this.__wbg_ptr, ptr0, len0);
4926
4953
  }
4927
4954
  /**
4928
4955
  * @returns {bigint | undefined}
@@ -4935,7 +4962,7 @@ export class Installation {
4935
4962
  * @param {bigint | null} [arg0]
4936
4963
  */
4937
4964
  set clientTimestampNs(arg0) {
4938
- wasm.__wbg_set_action_expiresAtNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
4965
+ wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
4939
4966
  }
4940
4967
  }
4941
4968
  if (Symbol.dispose) Installation.prototype[Symbol.dispose] = Installation.prototype.free;
@@ -4986,7 +5013,7 @@ export class Intent {
4986
5013
  set id(arg0) {
4987
5014
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4988
5015
  const len0 = WASM_VECTOR_LEN;
4989
- wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
5016
+ wasm.__wbg_set_intent_id(this.__wbg_ptr, ptr0, len0);
4990
5017
  }
4991
5018
  /**
4992
5019
  * @returns {string}
@@ -5009,7 +5036,7 @@ export class Intent {
5009
5036
  set actionId(arg0) {
5010
5037
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5011
5038
  const len0 = WASM_VECTOR_LEN;
5012
- wasm.__wbg_set_attachment_content(this.__wbg_ptr, ptr0, len0);
5039
+ wasm.__wbg_set_intent_actionId(this.__wbg_ptr, ptr0, len0);
5013
5040
  }
5014
5041
  /**
5015
5042
  * @returns {any}
@@ -5212,7 +5239,7 @@ export class KeyPackageStatus {
5212
5239
  _assertClass(arg0, Lifetime);
5213
5240
  ptr0 = arg0.__destroy_into_raw();
5214
5241
  }
5215
- wasm.__wbg_set_keypackagestatus_lifetime(this.__wbg_ptr, ptr0);
5242
+ wasm.__wbg_set_createdmoptions_messageDisappearingSettings(this.__wbg_ptr, ptr0);
5216
5243
  }
5217
5244
  /**
5218
5245
  * @returns {string | undefined}
@@ -5307,27 +5334,27 @@ export class Lifetime {
5307
5334
  * @returns {bigint}
5308
5335
  */
5309
5336
  get not_before() {
5310
- const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
5337
+ const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
5311
5338
  return BigInt.asUintN(64, ret);
5312
5339
  }
5313
5340
  /**
5314
5341
  * @param {bigint} arg0
5315
5342
  */
5316
5343
  set not_before(arg0) {
5317
- wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
5344
+ wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
5318
5345
  }
5319
5346
  /**
5320
5347
  * @returns {bigint}
5321
5348
  */
5322
5349
  get not_after() {
5323
- const ret = wasm.__wbg_get_apistats_fetch_key_package(this.__wbg_ptr);
5350
+ const ret = wasm.__wbg_get_lifetime_not_after(this.__wbg_ptr);
5324
5351
  return BigInt.asUintN(64, ret);
5325
5352
  }
5326
5353
  /**
5327
5354
  * @param {bigint} arg0
5328
5355
  */
5329
5356
  set not_after(arg0) {
5330
- wasm.__wbg_set_apistats_fetch_key_package(this.__wbg_ptr, arg0);
5357
+ wasm.__wbg_set_lifetime_not_after(this.__wbg_ptr, arg0);
5331
5358
  }
5332
5359
  }
5333
5360
  if (Symbol.dispose) Lifetime.prototype[Symbol.dispose] = Lifetime.prototype.free;
@@ -5393,7 +5420,7 @@ export class ListConversationsOptions {
5393
5420
  * @param {bigint | null} [arg0]
5394
5421
  */
5395
5422
  set createdAfterNs(arg0) {
5396
- wasm.__wbg_set_listconversationsoptions_createdAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5423
+ wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5397
5424
  }
5398
5425
  /**
5399
5426
  * @returns {bigint | undefined}
@@ -5561,7 +5588,7 @@ export class ListMessagesOptions {
5561
5588
  * @param {bigint | null} [arg0]
5562
5589
  */
5563
5590
  set sentBeforeNs(arg0) {
5564
- wasm.__wbg_set_listmessagesoptions_sentBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5591
+ wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5565
5592
  }
5566
5593
  /**
5567
5594
  * @returns {bigint | undefined}
@@ -5574,7 +5601,7 @@ export class ListMessagesOptions {
5574
5601
  * @param {bigint | null} [arg0]
5575
5602
  */
5576
5603
  set sentAfterNs(arg0) {
5577
- wasm.__wbg_set_listmessagesoptions_sentAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5604
+ wasm.__wbg_set_listconversationsoptions_createdBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5578
5605
  }
5579
5606
  /**
5580
5607
  * @returns {bigint | undefined}
@@ -5587,7 +5614,7 @@ export class ListMessagesOptions {
5587
5614
  * @param {bigint | null} [arg0]
5588
5615
  */
5589
5616
  set limit(arg0) {
5590
- wasm.__wbg_set_listmessagesoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5617
+ wasm.__wbg_set_listconversationsoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5591
5618
  }
5592
5619
  /**
5593
5620
  * @returns {DeliveryStatus | undefined}
@@ -5827,14 +5854,14 @@ export class Message {
5827
5854
  * @returns {bigint}
5828
5855
  */
5829
5856
  get sentAtNs() {
5830
- const ret = wasm.__wbg_get_message_sentAtNs(this.__wbg_ptr);
5857
+ const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
5831
5858
  return ret;
5832
5859
  }
5833
5860
  /**
5834
5861
  * @param {bigint} arg0
5835
5862
  */
5836
5863
  set sentAtNs(arg0) {
5837
- wasm.__wbg_set_message_sentAtNs(this.__wbg_ptr, arg0);
5864
+ wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
5838
5865
  }
5839
5866
  /**
5840
5867
  * @returns {string}
@@ -5991,14 +6018,14 @@ export class MessageDisappearingSettings {
5991
6018
  * @returns {bigint}
5992
6019
  */
5993
6020
  get inNs() {
5994
- const ret = wasm.__wbg_get_messagedisappearingsettings_inNs(this.__wbg_ptr);
6021
+ const ret = wasm.__wbg_get_lifetime_not_after(this.__wbg_ptr);
5995
6022
  return ret;
5996
6023
  }
5997
6024
  /**
5998
6025
  * @param {bigint} arg0
5999
6026
  */
6000
6027
  set inNs(arg0) {
6001
- wasm.__wbg_set_messagedisappearingsettings_inNs(this.__wbg_ptr, arg0);
6028
+ wasm.__wbg_set_lifetime_not_after(this.__wbg_ptr, arg0);
6002
6029
  }
6003
6030
  /**
6004
6031
  * @param {bigint} from_ns
@@ -6126,7 +6153,7 @@ export class MetadataFieldChange {
6126
6153
  set fieldName(arg0) {
6127
6154
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6128
6155
  const len0 = WASM_VECTOR_LEN;
6129
- wasm.__wbg_set_groupupdated_initiatedByInboxId(this.__wbg_ptr, ptr0, len0);
6156
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
6130
6157
  }
6131
6158
  /**
6132
6159
  * @returns {string | undefined}
@@ -6584,7 +6611,7 @@ export class Reaction {
6584
6611
  set reference(arg0) {
6585
6612
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6586
6613
  const len0 = WASM_VECTOR_LEN;
6587
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
6614
+ wasm.__wbg_set_reaction_reference(this.__wbg_ptr, ptr0, len0);
6588
6615
  }
6589
6616
  /**
6590
6617
  * @returns {string}
@@ -6726,7 +6753,7 @@ export class ReactionPayload {
6726
6753
  set reference(arg0) {
6727
6754
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6728
6755
  const len0 = WASM_VECTOR_LEN;
6729
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
6756
+ wasm.__wbg_set_reaction_reference(this.__wbg_ptr, ptr0, len0);
6730
6757
  }
6731
6758
  /**
6732
6759
  * @returns {string}
@@ -6877,7 +6904,7 @@ export class RemoteAttachment {
6877
6904
  set url(arg0) {
6878
6905
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6879
6906
  const len0 = WASM_VECTOR_LEN;
6880
- wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
6907
+ wasm.__wbg_set_intent_id(this.__wbg_ptr, ptr0, len0);
6881
6908
  }
6882
6909
  /**
6883
6910
  * @returns {string}
@@ -6900,7 +6927,7 @@ export class RemoteAttachment {
6900
6927
  set contentDigest(arg0) {
6901
6928
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6902
6929
  const len0 = WASM_VECTOR_LEN;
6903
- wasm.__wbg_set_attachment_content(this.__wbg_ptr, ptr0, len0);
6930
+ wasm.__wbg_set_intent_actionId(this.__wbg_ptr, ptr0, len0);
6904
6931
  }
6905
6932
  /**
6906
6933
  * @returns {Uint8Array}
@@ -7137,7 +7164,7 @@ export class RemoteAttachmentInfo {
7137
7164
  set url(arg0) {
7138
7165
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7139
7166
  const len0 = WASM_VECTOR_LEN;
7140
- wasm.__wbg_set_action_label(this.__wbg_ptr, ptr0, len0);
7167
+ wasm.__wbg_set_remoteattachmentinfo_url(this.__wbg_ptr, ptr0, len0);
7141
7168
  }
7142
7169
  /**
7143
7170
  * @returns {Uint8Array}
@@ -7273,7 +7300,7 @@ export class Reply {
7273
7300
  set reference(arg0) {
7274
7301
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7275
7302
  const len0 = WASM_VECTOR_LEN;
7276
- wasm.__wbg_set_remoteattachment_scheme(this.__wbg_ptr, ptr0, len0);
7303
+ wasm.__wbg_set_reply_reference(this.__wbg_ptr, ptr0, len0);
7277
7304
  }
7278
7305
  /**
7279
7306
  * @returns {string | undefined}
@@ -7293,7 +7320,7 @@ export class Reply {
7293
7320
  set referenceInboxId(arg0) {
7294
7321
  var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7295
7322
  var len0 = WASM_VECTOR_LEN;
7296
- wasm.__wbg_set_remoteattachment_filename(this.__wbg_ptr, ptr0, len0);
7323
+ wasm.__wbg_set_reply_referenceInboxId(this.__wbg_ptr, ptr0, len0);
7297
7324
  }
7298
7325
  /**
7299
7326
  * @param {EncodedContent} content
@@ -7527,7 +7554,7 @@ export class TextContent {
7527
7554
  set content(arg0) {
7528
7555
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7529
7556
  const len0 = WASM_VECTOR_LEN;
7530
- wasm.__wbg_set_groupupdated_initiatedByInboxId(this.__wbg_ptr, ptr0, len0);
7557
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
7531
7558
  }
7532
7559
  }
7533
7560
  if (Symbol.dispose) TextContent.prototype[Symbol.dispose] = TextContent.prototype.free;
@@ -7578,7 +7605,7 @@ export class TransactionMetadata {
7578
7605
  set transactionType(arg0) {
7579
7606
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7580
7607
  const len0 = WASM_VECTOR_LEN;
7581
- wasm.__wbg_set_transactionmetadata_transactionType(this.__wbg_ptr, ptr0, len0);
7608
+ wasm.__wbg_set_conversationdebuginfo_forkDetails(this.__wbg_ptr, ptr0, len0);
7582
7609
  }
7583
7610
  /**
7584
7611
  * @returns {string}
@@ -7601,7 +7628,7 @@ export class TransactionMetadata {
7601
7628
  set currency(arg0) {
7602
7629
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7603
7630
  const len0 = WASM_VECTOR_LEN;
7604
- wasm.__wbg_set_remoteattachment_secret(this.__wbg_ptr, ptr0, len0);
7631
+ wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
7605
7632
  }
7606
7633
  /**
7607
7634
  * @returns {number}
@@ -7650,7 +7677,7 @@ export class TransactionMetadata {
7650
7677
  set fromAddress(arg0) {
7651
7678
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7652
7679
  const len0 = WASM_VECTOR_LEN;
7653
- wasm.__wbg_set_transactionmetadata_fromAddress(this.__wbg_ptr, ptr0, len0);
7680
+ wasm.__wbg_set_conversationdebuginfo_remoteCommitLog(this.__wbg_ptr, ptr0, len0);
7654
7681
  }
7655
7682
  /**
7656
7683
  * @returns {string}
@@ -7673,7 +7700,7 @@ export class TransactionMetadata {
7673
7700
  set toAddress(arg0) {
7674
7701
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7675
7702
  const len0 = WASM_VECTOR_LEN;
7676
- wasm.__wbg_set_remoteattachment_nonce(this.__wbg_ptr, ptr0, len0);
7703
+ wasm.__wbg_set_transactionmetadata_toAddress(this.__wbg_ptr, ptr0, len0);
7677
7704
  }
7678
7705
  }
7679
7706
  if (Symbol.dispose) TransactionMetadata.prototype[Symbol.dispose] = TransactionMetadata.prototype.free;
@@ -8471,7 +8498,7 @@ function __wbg_get_imports() {
8471
8498
  const a = state0.a;
8472
8499
  state0.a = 0;
8473
8500
  try {
8474
- return wasm_bindgen__convert__closures_____invoke__h18a484e2affd7fe5(a, state0.b, arg0, arg1);
8501
+ return wasm_bindgen__convert__closures_____invoke__h68a31ad8ab9398c3(a, state0.b, arg0, arg1);
8475
8502
  } finally {
8476
8503
  state0.a = a;
8477
8504
  }
@@ -8562,26 +8589,26 @@ function __wbg_get_imports() {
8562
8589
  const ret = Date.now();
8563
8590
  return ret;
8564
8591
  };
8565
- imports.wbg.__wbg_on_auth_required_884c3ae8438cc478 = function() { return handleError(function (arg0) {
8592
+ imports.wbg.__wbg_on_auth_required_a399c3af4a4c2185 = function() { return handleError(function (arg0) {
8566
8593
  const ret = arg0.on_auth_required();
8567
8594
  return ret;
8568
8595
  }, arguments) };
8569
- imports.wbg.__wbg_on_close_db7d4d40c2a42d99 = function(arg0) {
8596
+ imports.wbg.__wbg_on_close_0cb093e466f2e1c8 = function(arg0) {
8570
8597
  arg0.on_close();
8571
8598
  };
8572
- imports.wbg.__wbg_on_consent_update_f7a1e7774ce44423 = function(arg0, arg1) {
8599
+ imports.wbg.__wbg_on_consent_update_018da3c07a044217 = function(arg0, arg1) {
8573
8600
  arg0.on_consent_update(arg1);
8574
8601
  };
8575
- imports.wbg.__wbg_on_conversation_3c5fe02f5d11dd38 = function(arg0, arg1) {
8602
+ imports.wbg.__wbg_on_conversation_91d9c03f28235f32 = function(arg0, arg1) {
8576
8603
  arg0.on_conversation(Conversation.__wrap(arg1));
8577
8604
  };
8578
- imports.wbg.__wbg_on_error_de1dd00d3e3ad8c1 = function(arg0, arg1) {
8605
+ imports.wbg.__wbg_on_error_f08795b2fc98f4db = function(arg0, arg1) {
8579
8606
  arg0.on_error(arg1);
8580
8607
  };
8581
- imports.wbg.__wbg_on_message_d54c6d4e3fbf933f = function(arg0, arg1) {
8608
+ imports.wbg.__wbg_on_message_99567dc02020a3b9 = function(arg0, arg1) {
8582
8609
  arg0.on_message(Message.__wrap(arg1));
8583
8610
  };
8584
- imports.wbg.__wbg_on_message_deleted_3cbc940dccca9a39 = function(arg0, arg1, arg2) {
8611
+ imports.wbg.__wbg_on_message_deleted_1022f7ad6a5b0865 = function(arg0, arg1, arg2) {
8585
8612
  let deferred0_0;
8586
8613
  let deferred0_1;
8587
8614
  try {
@@ -8592,7 +8619,7 @@ function __wbg_get_imports() {
8592
8619
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
8593
8620
  }
8594
8621
  };
8595
- imports.wbg.__wbg_on_user_preference_update_3e76d73275e49cc8 = function(arg0, arg1, arg2) {
8622
+ imports.wbg.__wbg_on_user_preference_update_712683558529deaa = function(arg0, arg1, arg2) {
8596
8623
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
8597
8624
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
8598
8625
  arg0.on_user_preference_update(v0);
@@ -8876,11 +8903,6 @@ function __wbg_get_imports() {
8876
8903
  const ret = XmtpCursor.__unwrap(arg0);
8877
8904
  return ret;
8878
8905
  };
8879
- imports.wbg.__wbindgen_cast_0a6e8e0063ffb241 = function(arg0, arg1) {
8880
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7180, function: Function { arguments: [], shim_idx: 7181, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8881
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h83869f5b20c236a6, wasm_bindgen__convert__closures_____invoke__hafab8b28acda63ce);
8882
- return ret;
8883
- };
8884
8906
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
8885
8907
  // Cast intrinsic for `Ref(String) -> Externref`.
8886
8908
  const ret = getStringFromWasm0(arg0, arg1);
@@ -8898,14 +8920,14 @@ function __wbg_get_imports() {
8898
8920
  const ret = v0;
8899
8921
  return ret;
8900
8922
  };
8901
- imports.wbg.__wbindgen_cast_4df210e5afc68b63 = function(arg0, arg1) {
8902
- // Cast intrinsic for `Closure(Closure { dtor_idx: 6803, function: Function { arguments: [], shim_idx: 6804, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8903
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5e0a3136249b832f, wasm_bindgen__convert__closures_____invoke__h9011598bdd38acb2);
8923
+ imports.wbg.__wbindgen_cast_6a03ed41049387d5 = function(arg0, arg1) {
8924
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 6802, function: Function { arguments: [], shim_idx: 6803, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8925
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hf682406d9647bfe2, wasm_bindgen__convert__closures_____invoke__h922fe5fb24b1beed);
8904
8926
  return ret;
8905
8927
  };
8906
- imports.wbg.__wbindgen_cast_653b2620668ca290 = function(arg0, arg1) {
8907
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7216, function: Function { arguments: [Externref], shim_idx: 7227, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8908
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5faecc40242ea0ca, wasm_bindgen__convert__closures_____invoke__h34df32c886f66f02);
8928
+ imports.wbg.__wbindgen_cast_7bfd6afd1c25f1f9 = function(arg0, arg1) {
8929
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7214, function: Function { arguments: [Externref], shim_idx: 7215, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8930
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h4589b9dda0a82164, wasm_bindgen__convert__closures_____invoke__h03e85ac1b34d0273);
8909
8931
  return ret;
8910
8932
  };
8911
8933
  imports.wbg.__wbindgen_cast_8e37b4ad2f2ba653 = function(arg0, arg1) {
@@ -8929,7 +8951,12 @@ function __wbg_get_imports() {
8929
8951
  };
8930
8952
  imports.wbg.__wbindgen_cast_bf4309e1be8fe4e3 = function(arg0, arg1) {
8931
8953
  // Cast intrinsic for `Closure(Closure { dtor_idx: 7017, function: Function { arguments: [], shim_idx: 7018, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8932
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h8a0c80adf0f210e5, wasm_bindgen__convert__closures_____invoke__h753a3e053785270d);
8954
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h68c8e9e8c7c33e7c, wasm_bindgen__convert__closures_____invoke__h7a7839898bdc8c05);
8955
+ return ret;
8956
+ };
8957
+ imports.wbg.__wbindgen_cast_ca8eabc83e5b3279 = function(arg0, arg1) {
8958
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7181, function: Function { arguments: [], shim_idx: 7182, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8959
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h9f4e0badb87b6c7f, wasm_bindgen__convert__closures_____invoke__he553f5a75ceef16c);
8933
8960
  return ret;
8934
8961
  };
8935
8962
  imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {