@xmtp/wasm-bindings 1.6.0-dev.e545a64 → 1.6.1-rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -229,11 +229,81 @@ function makeMutClosure(arg0, arg1, dtor, f) {
229
229
  return real;
230
230
  }
231
231
 
232
+ function _assertClass(instance, klass) {
233
+ if (!(instance instanceof klass)) {
234
+ throw new Error(`expected instance of ${klass.name}`);
235
+ }
236
+ }
237
+
232
238
  function takeFromExternrefTable0(idx) {
233
239
  const value = wasm.__wbindgen_export_4.get(idx);
234
240
  wasm.__externref_table_dealloc(idx);
235
241
  return value;
236
242
  }
243
+ /**
244
+ * @param {Reaction} reaction
245
+ * @returns {Uint8Array}
246
+ */
247
+ export function encodeReaction(reaction) {
248
+ _assertClass(reaction, Reaction);
249
+ var ptr0 = reaction.__destroy_into_raw();
250
+ const ret = wasm.encodeReaction(ptr0);
251
+ if (ret[2]) {
252
+ throw takeFromExternrefTable0(ret[1]);
253
+ }
254
+ return takeFromExternrefTable0(ret[0]);
255
+ }
256
+
257
+ /**
258
+ * @param {Uint8Array} bytes
259
+ * @returns {Reaction}
260
+ */
261
+ export function decodeReaction(bytes) {
262
+ const ret = wasm.decodeReaction(bytes);
263
+ if (ret[2]) {
264
+ throw takeFromExternrefTable0(ret[1]);
265
+ }
266
+ return Reaction.__wrap(ret[0]);
267
+ }
268
+
269
+ /**
270
+ * @param {string} v3_host
271
+ * @param {string | null | undefined} gateway_host
272
+ * @param {Identifier} accountIdentifier
273
+ * @returns {Promise<string | undefined>}
274
+ */
275
+ export function getInboxIdForIdentifier(v3_host, gateway_host, accountIdentifier) {
276
+ const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
277
+ const len0 = WASM_VECTOR_LEN;
278
+ var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
279
+ var len1 = WASM_VECTOR_LEN;
280
+ const ret = wasm.getInboxIdForIdentifier(ptr0, len0, ptr1, len1, accountIdentifier);
281
+ return ret;
282
+ }
283
+
284
+ /**
285
+ * @param {Identifier} accountIdentifier
286
+ * @returns {string}
287
+ */
288
+ export function generateInboxId(accountIdentifier) {
289
+ let deferred2_0;
290
+ let deferred2_1;
291
+ try {
292
+ const ret = wasm.generateInboxId(accountIdentifier);
293
+ var ptr1 = ret[0];
294
+ var len1 = ret[1];
295
+ if (ret[3]) {
296
+ ptr1 = 0; len1 = 0;
297
+ throw takeFromExternrefTable0(ret[2]);
298
+ }
299
+ deferred2_0 = ptr1;
300
+ deferred2_1 = len1;
301
+ return getStringFromWasm0(ptr1, len1);
302
+ } finally {
303
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
304
+ }
305
+ }
306
+
237
307
  /**
238
308
  * @param {string} signature_text
239
309
  * @param {Uint8Array} signature_bytes
@@ -281,11 +351,6 @@ export function revokeInstallationsSignatureRequest(v3_host, gateway_host, recov
281
351
  return SignatureRequestHandle.__wrap(ret[0]);
282
352
  }
283
353
 
284
- function _assertClass(instance, klass) {
285
- if (!(instance instanceof klass)) {
286
- throw new Error(`expected instance of ${klass.name}`);
287
- }
288
- }
289
354
  /**
290
355
  * @param {string} v3_host
291
356
  * @param {string | null | undefined} gateway_host
@@ -308,87 +373,6 @@ function passArray8ToWasm0(arg, malloc) {
308
373
  WASM_VECTOR_LEN = arg.length;
309
374
  return ptr;
310
375
  }
311
- /**
312
- * @param {string} v3_host
313
- * @param {string | null | undefined} gateway_host
314
- * @param {string[]} inbox_ids
315
- * @returns {Promise<InboxState[]>}
316
- */
317
- export function inboxStateFromInboxIds(v3_host, gateway_host, inbox_ids) {
318
- const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
319
- const len0 = WASM_VECTOR_LEN;
320
- var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
321
- var len1 = WASM_VECTOR_LEN;
322
- const ptr2 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
323
- const len2 = WASM_VECTOR_LEN;
324
- const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
325
- return ret;
326
- }
327
-
328
- /**
329
- * @param {string} v3_host
330
- * @param {string | null | undefined} gateway_host
331
- * @param {Identifier} accountIdentifier
332
- * @returns {Promise<string | undefined>}
333
- */
334
- export function getInboxIdForIdentifier(v3_host, gateway_host, accountIdentifier) {
335
- const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
336
- const len0 = WASM_VECTOR_LEN;
337
- var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
338
- var len1 = WASM_VECTOR_LEN;
339
- const ret = wasm.getInboxIdForIdentifier(ptr0, len0, ptr1, len1, accountIdentifier);
340
- return ret;
341
- }
342
-
343
- /**
344
- * @param {Identifier} accountIdentifier
345
- * @returns {string}
346
- */
347
- export function generateInboxId(accountIdentifier) {
348
- let deferred2_0;
349
- let deferred2_1;
350
- try {
351
- const ret = wasm.generateInboxId(accountIdentifier);
352
- var ptr1 = ret[0];
353
- var len1 = ret[1];
354
- if (ret[3]) {
355
- ptr1 = 0; len1 = 0;
356
- throw takeFromExternrefTable0(ret[2]);
357
- }
358
- deferred2_0 = ptr1;
359
- deferred2_1 = len1;
360
- return getStringFromWasm0(ptr1, len1);
361
- } finally {
362
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
363
- }
364
- }
365
-
366
- /**
367
- * @param {Reaction} reaction
368
- * @returns {Uint8Array}
369
- */
370
- export function encodeReaction(reaction) {
371
- _assertClass(reaction, Reaction);
372
- var ptr0 = reaction.__destroy_into_raw();
373
- const ret = wasm.encodeReaction(ptr0);
374
- if (ret[2]) {
375
- throw takeFromExternrefTable0(ret[1]);
376
- }
377
- return takeFromExternrefTable0(ret[0]);
378
- }
379
-
380
- /**
381
- * @param {Uint8Array} bytes
382
- * @returns {Reaction}
383
- */
384
- export function decodeReaction(bytes) {
385
- const ret = wasm.decodeReaction(bytes);
386
- if (ret[2]) {
387
- throw takeFromExternrefTable0(ret[1]);
388
- }
389
- return Reaction.__wrap(ret[0]);
390
- }
391
-
392
376
  /**
393
377
  * @param {string} host
394
378
  * @param {string} inbox_id
@@ -452,6 +436,23 @@ export function decodeMultiRemoteAttachment(bytes) {
452
436
  return MultiRemoteAttachment.__wrap(ret[0]);
453
437
  }
454
438
 
439
+ /**
440
+ * @param {string} v3_host
441
+ * @param {string | null | undefined} gateway_host
442
+ * @param {string[]} inbox_ids
443
+ * @returns {Promise<InboxState[]>}
444
+ */
445
+ export function inboxStateFromInboxIds(v3_host, gateway_host, inbox_ids) {
446
+ const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
447
+ const len0 = WASM_VECTOR_LEN;
448
+ var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
449
+ var len1 = WASM_VECTOR_LEN;
450
+ const ptr2 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
451
+ const len2 = WASM_VECTOR_LEN;
452
+ const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
453
+ return ret;
454
+ }
455
+
455
456
  /**
456
457
  * Entry point invoked by JavaScript in a worker.
457
458
  * @param {number} ptr
@@ -463,24 +464,24 @@ export function task_worker_entry_point(ptr) {
463
464
  }
464
465
  }
465
466
 
466
- function __wbg_adapter_20(arg0, arg1) {
467
+ function __wbg_adapter_14(arg0, arg1) {
467
468
  wasm.wasm_bindgen__convert__closures_____invoke__h8d2688e22b07e25f(arg0, arg1);
468
469
  }
469
470
 
470
- function __wbg_adapter_23(arg0, arg1, arg2) {
471
- wasm.closure6985_externref_shim(arg0, arg1, arg2);
471
+ function __wbg_adapter_21(arg0, arg1) {
472
+ wasm.wasm_bindgen__convert__closures_____invoke__h040a93cf6078a98e(arg0, arg1);
472
473
  }
473
474
 
474
- function __wbg_adapter_28(arg0, arg1) {
475
+ function __wbg_adapter_24(arg0, arg1) {
475
476
  wasm.wasm_bindgen__convert__closures_____invoke__h6553f0a100c562a9(arg0, arg1);
476
477
  }
477
478
 
478
- function __wbg_adapter_31(arg0, arg1) {
479
- wasm.wasm_bindgen__convert__closures_____invoke__h040a93cf6078a98e(arg0, arg1);
479
+ function __wbg_adapter_27(arg0, arg1, arg2) {
480
+ wasm.closure7152_externref_shim(arg0, arg1, arg2);
480
481
  }
481
482
 
482
483
  function __wbg_adapter_937(arg0, arg1, arg2, arg3) {
483
- wasm.closure7952_externref_shim(arg0, arg1, arg2, arg3);
484
+ wasm.closure8118_externref_shim(arg0, arg1, arg2, arg3);
484
485
  }
485
486
 
486
487
  /**
@@ -531,13 +532,14 @@ export const DeliveryStatus = Object.freeze({
531
532
  Failed: 2, "2": "Failed",
532
533
  });
533
534
  /**
534
- * @enum {0 | 1 | 2 | 3}
535
+ * @enum {0 | 1 | 2 | 3 | 4}
535
536
  */
536
537
  export const GroupMembershipState = Object.freeze({
537
538
  Allowed: 0, "0": "Allowed",
538
539
  Rejected: 1, "1": "Rejected",
539
540
  Pending: 2, "2": "Pending",
540
541
  Restored: 3, "3": "Restored",
542
+ PendingRemove: 4, "4": "PendingRemove",
541
543
  });
542
544
  /**
543
545
  * @enum {0 | 1}
@@ -1007,45 +1009,6 @@ export class Client {
1007
1009
  throw takeFromExternrefTable0(ret[0]);
1008
1010
  }
1009
1011
  }
1010
- /**
1011
- *
1012
- * * Get the client's inbox state.
1013
- * *
1014
- * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
1015
- * * Otherwise, the state will be read from the local database.
1016
- *
1017
- * @param {boolean} refresh_from_network
1018
- * @returns {Promise<InboxState>}
1019
- */
1020
- inboxState(refresh_from_network) {
1021
- const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
1022
- return ret;
1023
- }
1024
- /**
1025
- * @param {string} inbox_id
1026
- * @returns {Promise<InboxState>}
1027
- */
1028
- getLatestInboxState(inbox_id) {
1029
- const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1030
- const len0 = WASM_VECTOR_LEN;
1031
- const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
1032
- return ret;
1033
- }
1034
- /**
1035
- *
1036
- * * Get key package statuses for a list of installation IDs.
1037
- * *
1038
- * * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
1039
- *
1040
- * @param {string[]} installation_ids
1041
- * @returns {Promise<any>}
1042
- */
1043
- getKeyPackageStatusesForInstallationIds(installation_ids) {
1044
- const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
1045
- const len0 = WASM_VECTOR_LEN;
1046
- const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
1047
- return ret;
1048
- }
1049
1012
  /**
1050
1013
  * @param {Consent[]} records
1051
1014
  * @returns {Promise<void>}
@@ -1264,6 +1227,45 @@ export class Client {
1264
1227
  const ret = wasm.client_messageV2(this.__wbg_ptr, ptr0, len0);
1265
1228
  return ret;
1266
1229
  }
1230
+ /**
1231
+ *
1232
+ * * Get the client's inbox state.
1233
+ * *
1234
+ * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
1235
+ * * Otherwise, the state will be read from the local database.
1236
+ *
1237
+ * @param {boolean} refresh_from_network
1238
+ * @returns {Promise<InboxState>}
1239
+ */
1240
+ inboxState(refresh_from_network) {
1241
+ const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
1242
+ return ret;
1243
+ }
1244
+ /**
1245
+ * @param {string} inbox_id
1246
+ * @returns {Promise<InboxState>}
1247
+ */
1248
+ getLatestInboxState(inbox_id) {
1249
+ const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1250
+ const len0 = WASM_VECTOR_LEN;
1251
+ const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
1252
+ return ret;
1253
+ }
1254
+ /**
1255
+ *
1256
+ * * Get key package statuses for a list of installation IDs.
1257
+ * *
1258
+ * * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
1259
+ *
1260
+ * @param {string[]} installation_ids
1261
+ * @returns {Promise<any>}
1262
+ */
1263
+ getKeyPackageStatusesForInstallationIds(installation_ids) {
1264
+ const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
1265
+ const len0 = WASM_VECTOR_LEN;
1266
+ const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
1267
+ return ret;
1268
+ }
1267
1269
  }
1268
1270
  if (Symbol.dispose) Client.prototype[Symbol.dispose] = Client.prototype.free;
1269
1271
 
@@ -1402,7 +1404,7 @@ export class ContentTypeId {
1402
1404
  set authorityId(arg0) {
1403
1405
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1404
1406
  const len0 = WASM_VECTOR_LEN;
1405
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
1407
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
1406
1408
  }
1407
1409
  /**
1408
1410
  * @returns {string}
@@ -3609,7 +3611,7 @@ export class GroupUpdated {
3609
3611
  set initiatedByInboxId(arg0) {
3610
3612
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3611
3613
  const len0 = WASM_VECTOR_LEN;
3612
- wasm.__wbg_set_groupupdated_initiatedByInboxId(this.__wbg_ptr, ptr0, len0);
3614
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
3613
3615
  }
3614
3616
  /**
3615
3617
  * @returns {Inbox[]}
@@ -3848,7 +3850,7 @@ export class Inbox {
3848
3850
  set inboxId(arg0) {
3849
3851
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3850
3852
  const len0 = WASM_VECTOR_LEN;
3851
- wasm.__wbg_set_groupupdated_initiatedByInboxId(this.__wbg_ptr, ptr0, len0);
3853
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
3852
3854
  }
3853
3855
  }
3854
3856
  if (Symbol.dispose) Inbox.prototype[Symbol.dispose] = Inbox.prototype.free;
@@ -3899,7 +3901,7 @@ export class InboxState {
3899
3901
  set inboxId(arg0) {
3900
3902
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3901
3903
  const len0 = WASM_VECTOR_LEN;
3902
- wasm.__wbg_set_inboxstate_inboxId(this.__wbg_ptr, ptr0, len0);
3904
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
3903
3905
  }
3904
3906
  /**
3905
3907
  * @returns {Identifier}
@@ -5053,7 +5055,7 @@ export class MetadataFieldChange {
5053
5055
  set fieldName(arg0) {
5054
5056
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5055
5057
  const len0 = WASM_VECTOR_LEN;
5056
- wasm.__wbg_set_groupupdated_initiatedByInboxId(this.__wbg_ptr, ptr0, len0);
5058
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
5057
5059
  }
5058
5060
  /**
5059
5061
  * @returns {string | undefined}
@@ -5511,7 +5513,7 @@ export class Reaction {
5511
5513
  set reference(arg0) {
5512
5514
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5513
5515
  const len0 = WASM_VECTOR_LEN;
5514
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
5516
+ wasm.__wbg_set_reaction_reference(this.__wbg_ptr, ptr0, len0);
5515
5517
  }
5516
5518
  /**
5517
5519
  * @returns {string}
@@ -5534,7 +5536,7 @@ export class Reaction {
5534
5536
  set referenceInboxId(arg0) {
5535
5537
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5536
5538
  const len0 = WASM_VECTOR_LEN;
5537
- wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
5539
+ wasm.__wbg_set_reaction_referenceInboxId(this.__wbg_ptr, ptr0, len0);
5538
5540
  }
5539
5541
  /**
5540
5542
  * @returns {ReactionAction}
@@ -5653,7 +5655,7 @@ export class ReactionPayload {
5653
5655
  set reference(arg0) {
5654
5656
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5655
5657
  const len0 = WASM_VECTOR_LEN;
5656
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
5658
+ wasm.__wbg_set_reaction_reference(this.__wbg_ptr, ptr0, len0);
5657
5659
  }
5658
5660
  /**
5659
5661
  * @returns {string}
@@ -5676,7 +5678,7 @@ export class ReactionPayload {
5676
5678
  set referenceInboxId(arg0) {
5677
5679
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5678
5680
  const len0 = WASM_VECTOR_LEN;
5679
- wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
5681
+ wasm.__wbg_set_reaction_referenceInboxId(this.__wbg_ptr, ptr0, len0);
5680
5682
  }
5681
5683
  /**
5682
5684
  * @returns {ReactionActionPayload}
@@ -5804,7 +5806,7 @@ export class RemoteAttachment {
5804
5806
  set url(arg0) {
5805
5807
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5806
5808
  const len0 = WASM_VECTOR_LEN;
5807
- wasm.__wbg_set_remoteattachment_url(this.__wbg_ptr, ptr0, len0);
5809
+ wasm.__wbg_set_conversationdebuginfo_forkDetails(this.__wbg_ptr, ptr0, len0);
5808
5810
  }
5809
5811
  /**
5810
5812
  * @returns {string}
@@ -5827,7 +5829,7 @@ export class RemoteAttachment {
5827
5829
  set contentDigest(arg0) {
5828
5830
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5829
5831
  const len0 = WASM_VECTOR_LEN;
5830
- wasm.__wbg_set_reaction_content(this.__wbg_ptr, ptr0, len0);
5832
+ wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
5831
5833
  }
5832
5834
  /**
5833
5835
  * @returns {Uint8Array}
@@ -5844,7 +5846,7 @@ export class RemoteAttachment {
5844
5846
  set secret(arg0) {
5845
5847
  const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
5846
5848
  const len0 = WASM_VECTOR_LEN;
5847
- wasm.__wbg_set_remoteattachment_secret(this.__wbg_ptr, ptr0, len0);
5849
+ wasm.__wbg_set_conversationdebuginfo_remoteCommitLog(this.__wbg_ptr, ptr0, len0);
5848
5850
  }
5849
5851
  /**
5850
5852
  * @returns {Uint8Array}
@@ -5907,14 +5909,14 @@ export class RemoteAttachment {
5907
5909
  * @returns {bigint}
5908
5910
  */
5909
5911
  get contentLength() {
5910
- const ret = wasm.__wbg_get_remoteattachment_contentLength(this.__wbg_ptr);
5912
+ const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
5911
5913
  return ret;
5912
5914
  }
5913
5915
  /**
5914
5916
  * @param {bigint} arg0
5915
5917
  */
5916
5918
  set contentLength(arg0) {
5917
- wasm.__wbg_set_remoteattachment_contentLength(this.__wbg_ptr, arg0);
5919
+ wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
5918
5920
  }
5919
5921
  /**
5920
5922
  * @returns {string | undefined}
@@ -6342,7 +6344,7 @@ export class TextContent {
6342
6344
  set content(arg0) {
6343
6345
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6344
6346
  const len0 = WASM_VECTOR_LEN;
6345
- wasm.__wbg_set_textcontent_content(this.__wbg_ptr, ptr0, len0);
6347
+ wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
6346
6348
  }
6347
6349
  }
6348
6350
  if (Symbol.dispose) TextContent.prototype[Symbol.dispose] = TextContent.prototype.free;
@@ -6393,7 +6395,7 @@ export class TransactionMetadata {
6393
6395
  set transactionType(arg0) {
6394
6396
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6395
6397
  const len0 = WASM_VECTOR_LEN;
6396
- wasm.__wbg_set_remoteattachment_url(this.__wbg_ptr, ptr0, len0);
6398
+ wasm.__wbg_set_conversationdebuginfo_forkDetails(this.__wbg_ptr, ptr0, len0);
6397
6399
  }
6398
6400
  /**
6399
6401
  * @returns {string}
@@ -6416,7 +6418,7 @@ export class TransactionMetadata {
6416
6418
  set currency(arg0) {
6417
6419
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6418
6420
  const len0 = WASM_VECTOR_LEN;
6419
- wasm.__wbg_set_reaction_content(this.__wbg_ptr, ptr0, len0);
6421
+ wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
6420
6422
  }
6421
6423
  /**
6422
6424
  * @returns {number}
@@ -6465,7 +6467,7 @@ export class TransactionMetadata {
6465
6467
  set fromAddress(arg0) {
6466
6468
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6467
6469
  const len0 = WASM_VECTOR_LEN;
6468
- wasm.__wbg_set_remoteattachment_secret(this.__wbg_ptr, ptr0, len0);
6470
+ wasm.__wbg_set_conversationdebuginfo_remoteCommitLog(this.__wbg_ptr, ptr0, len0);
6469
6471
  }
6470
6472
  /**
6471
6473
  * @returns {string}
@@ -7309,22 +7311,22 @@ function __wbg_get_imports() {
7309
7311
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
7310
7312
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
7311
7313
  };
7312
- imports.wbg.__wbg_onclose_7422fac0d15ba816 = function(arg0) {
7314
+ imports.wbg.__wbg_onclose_9d277338583535d0 = function(arg0) {
7313
7315
  arg0.on_close();
7314
7316
  };
7315
- imports.wbg.__wbg_onconsentupdate_1fde16f03b7fe79d = function(arg0, arg1) {
7317
+ imports.wbg.__wbg_onconsentupdate_29d0d04cc3ab6fb0 = function(arg0, arg1) {
7316
7318
  arg0.on_consent_update(arg1);
7317
7319
  };
7318
- imports.wbg.__wbg_onconversation_f27f15a5e1859b5c = function(arg0, arg1) {
7320
+ imports.wbg.__wbg_onconversation_5f6305fbafbfa5b3 = function(arg0, arg1) {
7319
7321
  arg0.on_conversation(Conversation.__wrap(arg1));
7320
7322
  };
7321
- imports.wbg.__wbg_onerror_58c8e2443560095b = function(arg0, arg1) {
7323
+ imports.wbg.__wbg_onerror_01f39d8e3616e274 = function(arg0, arg1) {
7322
7324
  arg0.on_error(arg1);
7323
7325
  };
7324
- imports.wbg.__wbg_onmessage_1fceb6d75cf0a1eb = function(arg0, arg1) {
7326
+ imports.wbg.__wbg_onmessage_b7e6250ad579b2f2 = function(arg0, arg1) {
7325
7327
  arg0.on_message(Message.__wrap(arg1));
7326
7328
  };
7327
- imports.wbg.__wbg_onuserpreferenceupdate_5b4ff69de2024e73 = function(arg0, arg1, arg2) {
7329
+ imports.wbg.__wbg_onuserpreferenceupdate_153f7585ec05ec1d = function(arg0, arg1, arg2) {
7328
7330
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
7329
7331
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
7330
7332
  arg0.on_user_preference_update(v0);
@@ -7691,26 +7693,6 @@ function __wbg_get_imports() {
7691
7693
  const ret = XmtpCursor.__unwrap(arg0);
7692
7694
  return ret;
7693
7695
  };
7694
- imports.wbg.__wbindgen_cast_06f4b0bccb3e1aea = function(arg0, arg1) {
7695
- // Cast intrinsic for `Closure(Closure { dtor_idx: 6961, function: Function { arguments: [], shim_idx: 6962, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7696
- const ret = makeMutClosure(arg0, arg1, 6961, __wbg_adapter_28);
7697
- return ret;
7698
- };
7699
- imports.wbg.__wbindgen_cast_153161d960afd87d = function(arg0, arg1) {
7700
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4721, function: Function { arguments: [], shim_idx: 4722, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7701
- const ret = makeMutClosure(arg0, arg1, 4721, __wbg_adapter_20);
7702
- return ret;
7703
- };
7704
- imports.wbg.__wbindgen_cast_16b7e2dfc06164c9 = function(arg0, arg1) {
7705
- // Cast intrinsic for `Closure(Closure { dtor_idx: 6974, function: Function { arguments: [Externref], shim_idx: 6985, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7706
- const ret = makeMutClosure(arg0, arg1, 6974, __wbg_adapter_23);
7707
- return ret;
7708
- };
7709
- imports.wbg.__wbindgen_cast_17774b9c59ee1366 = function(arg0, arg1) {
7710
- // Cast intrinsic for `Closure(Closure { dtor_idx: 6564, function: Function { arguments: [], shim_idx: 6565, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7711
- const ret = makeMutClosure(arg0, arg1, 6564, __wbg_adapter_31);
7712
- return ret;
7713
- };
7714
7696
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
7715
7697
  // Cast intrinsic for `Ref(String) -> Externref`.
7716
7698
  const ret = getStringFromWasm0(arg0, arg1);
@@ -7728,6 +7710,21 @@ function __wbg_get_imports() {
7728
7710
  const ret = v0;
7729
7711
  return ret;
7730
7712
  };
7713
+ imports.wbg.__wbindgen_cast_53c92800d0d29e36 = function(arg0, arg1) {
7714
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4890, function: Function { arguments: [], shim_idx: 4891, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7715
+ const ret = makeMutClosure(arg0, arg1, 4890, __wbg_adapter_14);
7716
+ return ret;
7717
+ };
7718
+ imports.wbg.__wbindgen_cast_6798c2a5eadbaf4c = function(arg0, arg1) {
7719
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 6731, function: Function { arguments: [], shim_idx: 6732, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7720
+ const ret = makeMutClosure(arg0, arg1, 6731, __wbg_adapter_21);
7721
+ return ret;
7722
+ };
7723
+ imports.wbg.__wbindgen_cast_8a5711609b1ed734 = function(arg0, arg1) {
7724
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7141, function: Function { arguments: [Externref], shim_idx: 7152, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7725
+ const ret = makeMutClosure(arg0, arg1, 7141, __wbg_adapter_27);
7726
+ return ret;
7727
+ };
7731
7728
  imports.wbg.__wbindgen_cast_8e37b4ad2f2ba653 = function(arg0, arg1) {
7732
7729
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
7733
7730
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -7757,6 +7754,11 @@ function __wbg_get_imports() {
7757
7754
  const ret = arg0;
7758
7755
  return ret;
7759
7756
  };
7757
+ imports.wbg.__wbindgen_cast_dd692d1ee4d0d90d = function(arg0, arg1) {
7758
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7128, function: Function { arguments: [], shim_idx: 7129, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7759
+ const ret = makeMutClosure(arg0, arg1, 7128, __wbg_adapter_24);
7760
+ return ret;
7761
+ };
7760
7762
  imports.wbg.__wbindgen_cast_e081be35fe620ec4 = function(arg0, arg1) {
7761
7763
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
7762
7764
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
Binary file