@xmtp/wasm-bindings 1.0.0-rc4 → 1.1.0

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.
@@ -139,6 +139,7 @@ export class Client {
139
139
  sendHistorySyncRequest(): Promise<void>;
140
140
  sendConsentSyncRequest(): Promise<void>;
141
141
  findInboxIdByIdentifier(identifier: Identifier): Promise<string | undefined>;
142
+ inboxStateFromInboxIds(inbox_ids: string[], refresh_from_network: boolean): Promise<InboxState[]>;
142
143
  conversations(): Conversations;
143
144
  /**
144
145
  *
@@ -434,6 +435,48 @@ export class MultiRemoteAttachment {
434
435
  constructor(attachments: RemoteAttachmentInfo[]);
435
436
  attachments: RemoteAttachmentInfo[];
436
437
  }
438
+ export class Opfs {
439
+ private constructor();
440
+ free(): void;
441
+ /**
442
+ * Check if the global OPFS object has been initialized
443
+ */
444
+ static exists(): boolean;
445
+ /**
446
+ * gets the error from Opfs, if any.
447
+ */
448
+ static error(): string | undefined;
449
+ static wipeFiles(): Promise<void>;
450
+ /**
451
+ * If a virtual file exists with the given name, disassociates it from the pool and returns true, else returns false without side effects.
452
+ */
453
+ static rm(name: string): boolean;
454
+ /**
455
+ * list files in current pool
456
+ */
457
+ static getFileNames(): string[];
458
+ /**
459
+ * import a db file at 'path'
460
+ */
461
+ static importDb(path: string, bytes: Uint8Array): void;
462
+ /**
463
+ * export db file with 'name'
464
+ */
465
+ static exportFile(name: string): Uint8Array;
466
+ /**
467
+ * get number of files in pool
468
+ */
469
+ static getFileCount(): number;
470
+ static getCapacity(): number;
471
+ /**
472
+ * Adds n entries to the current pool.
473
+ */
474
+ static addCapacity(n: number): Promise<number>;
475
+ /**
476
+ * Removes up to n entries from the pool, with the caveat that it can only remove currently-unused entries.
477
+ */
478
+ static reduceCapacity(n: number): Promise<number>;
479
+ }
437
480
  export class PasskeySignature {
438
481
  private constructor();
439
482
  free(): void;
@@ -625,9 +668,8 @@ export interface InitOutput {
625
668
  readonly client_sendHistorySyncRequest: (a: number) => any;
626
669
  readonly client_sendConsentSyncRequest: (a: number) => any;
627
670
  readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
671
+ readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
628
672
  readonly client_conversations: (a: number) => number;
629
- readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
630
- readonly generateInboxId: (a: any) => [number, number, number, number];
631
673
  readonly __wbg_installation_free: (a: number, b: number) => void;
632
674
  readonly __wbg_get_installation_bytes: (a: number) => any;
633
675
  readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
@@ -766,6 +808,8 @@ export interface InitOutput {
766
808
  readonly __wbg_get_encodedcontent_content: (a: number) => any;
767
809
  readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
768
810
  readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
811
+ readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
812
+ readonly generateInboxId: (a: any) => [number, number, number, number];
769
813
  readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
770
814
  readonly __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
771
815
  readonly __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
@@ -793,11 +837,18 @@ export interface InitOutput {
793
837
  readonly __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
794
838
  readonly __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
795
839
  readonly __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
796
- readonly __wbg_streamcloser_free: (a: number, b: number) => void;
797
- readonly streamcloser_end: (a: number) => void;
798
- readonly streamcloser_endAndWait: (a: number) => any;
799
- readonly streamcloser_waitForReady: (a: number) => any;
800
- readonly streamcloser_isClosed: (a: number) => number;
840
+ readonly __wbg_opfs_free: (a: number, b: number) => void;
841
+ readonly opfs_exists: () => number;
842
+ readonly opfs_error: () => [number, number];
843
+ readonly opfs_wipeFiles: () => any;
844
+ readonly opfs_rm: (a: number, b: number) => [number, number, number];
845
+ readonly opfs_getFileNames: () => [number, number];
846
+ readonly opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
847
+ readonly opfs_exportFile: (a: number, b: number) => [number, number, number, number];
848
+ readonly opfs_getFileCount: () => number;
849
+ readonly opfs_getCapacity: () => number;
850
+ readonly opfs_addCapacity: (a: number) => any;
851
+ readonly opfs_reduceCapacity: (a: number) => any;
801
852
  readonly __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
802
853
  readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
803
854
  readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
@@ -810,6 +861,11 @@ export interface InitOutput {
810
861
  readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
811
862
  readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
812
863
  readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
864
+ readonly __wbg_streamcloser_free: (a: number, b: number) => void;
865
+ readonly streamcloser_end: (a: number) => void;
866
+ readonly streamcloser_endAndWait: (a: number) => any;
867
+ readonly streamcloser_waitForReady: (a: number) => any;
868
+ readonly streamcloser_isClosed: (a: number) => number;
813
869
  readonly rust_sqlite_wasm_shim_localtime_js: (a: bigint, b: number) => void;
814
870
  readonly rust_sqlite_wasm_shim_tzset_js: (a: number, b: number, c: number, d: number) => void;
815
871
  readonly rust_sqlite_wasm_shim_emscripten_get_now: () => number;
@@ -839,10 +895,10 @@ export interface InitOutput {
839
895
  readonly __externref_drop_slice: (a: number, b: number) => void;
840
896
  readonly __wbindgen_export_7: WebAssembly.Table;
841
897
  readonly __externref_table_dealloc: (a: number) => void;
842
- readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hff1927556d6713ec: (a: number, b: number) => void;
843
- readonly closure3753_externref_shim: (a: number, b: number, c: any) => void;
844
- readonly closure4762_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
845
- readonly closure4761_externref_shim: (a: number, b: number, c: any, d: any) => void;
898
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd11fcf7148e8db56: (a: number, b: number) => void;
899
+ readonly closure3825_externref_shim: (a: number, b: number, c: any) => void;
900
+ readonly closure4820_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
901
+ readonly closure4819_externref_shim: (a: number, b: number, c: any, d: any) => void;
846
902
  readonly __wbindgen_start: () => void;
847
903
  }
848
904
 
@@ -329,6 +329,12 @@ export function createClient(host, inbox_id, account_identifier, db_path, encryp
329
329
  return ret;
330
330
  }
331
331
 
332
+ function passArray8ToWasm0(arg, malloc) {
333
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
334
+ getUint8ArrayMemory0().set(arg, ptr / 1);
335
+ WASM_VECTOR_LEN = arg.length;
336
+ return ptr;
337
+ }
332
338
  /**
333
339
  * @param {string} host
334
340
  * @param {Identifier} accountIdentifier
@@ -364,27 +370,21 @@ export function generateInboxId(accountIdentifier) {
364
370
  }
365
371
  }
366
372
 
367
- function passArray8ToWasm0(arg, malloc) {
368
- const ptr = malloc(arg.length * 1, 1) >>> 0;
369
- getUint8ArrayMemory0().set(arg, ptr / 1);
370
- WASM_VECTOR_LEN = arg.length;
371
- return ptr;
372
- }
373
373
  function __wbg_adapter_48(arg0, arg1) {
374
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hff1927556d6713ec(arg0, arg1);
374
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd11fcf7148e8db56(arg0, arg1);
375
375
  }
376
376
 
377
377
  function __wbg_adapter_51(arg0, arg1, arg2) {
378
- wasm.closure3753_externref_shim(arg0, arg1, arg2);
378
+ wasm.closure3825_externref_shim(arg0, arg1, arg2);
379
379
  }
380
380
 
381
- function __wbg_adapter_585(arg0, arg1, arg2, arg3, arg4) {
382
- const ret = wasm.closure4762_externref_shim(arg0, arg1, arg2, arg3, arg4);
381
+ function __wbg_adapter_599(arg0, arg1, arg2, arg3, arg4) {
382
+ const ret = wasm.closure4820_externref_shim(arg0, arg1, arg2, arg3, arg4);
383
383
  return ret !== 0;
384
384
  }
385
385
 
386
- function __wbg_adapter_686(arg0, arg1, arg2, arg3) {
387
- wasm.closure4761_externref_shim(arg0, arg1, arg2, arg3);
386
+ function __wbg_adapter_700(arg0, arg1, arg2, arg3) {
387
+ wasm.closure4819_externref_shim(arg0, arg1, arg2, arg3);
388
388
  }
389
389
 
390
390
  /**
@@ -764,6 +764,17 @@ export class Client {
764
764
  const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
765
765
  return ret;
766
766
  }
767
+ /**
768
+ * @param {string[]} inbox_ids
769
+ * @param {boolean} refresh_from_network
770
+ * @returns {Promise<InboxState[]>}
771
+ */
772
+ inboxStateFromInboxIds(inbox_ids, refresh_from_network) {
773
+ const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
774
+ const len0 = WASM_VECTOR_LEN;
775
+ const ret = wasm.client_inboxStateFromInboxIds(this.__wbg_ptr, ptr0, len0, refresh_from_network);
776
+ return ret;
777
+ }
767
778
  /**
768
779
  * @returns {Conversations}
769
780
  */
@@ -3499,6 +3510,141 @@ export class MultiRemoteAttachment {
3499
3510
  }
3500
3511
  }
3501
3512
 
3513
+ const OpfsFinalization = (typeof FinalizationRegistry === 'undefined')
3514
+ ? { register: () => {}, unregister: () => {} }
3515
+ : new FinalizationRegistry(ptr => wasm.__wbg_opfs_free(ptr >>> 0, 1));
3516
+
3517
+ export class Opfs {
3518
+
3519
+ __destroy_into_raw() {
3520
+ const ptr = this.__wbg_ptr;
3521
+ this.__wbg_ptr = 0;
3522
+ OpfsFinalization.unregister(this);
3523
+ return ptr;
3524
+ }
3525
+
3526
+ free() {
3527
+ const ptr = this.__destroy_into_raw();
3528
+ wasm.__wbg_opfs_free(ptr, 0);
3529
+ }
3530
+ /**
3531
+ * Check if the global OPFS object has been initialized
3532
+ * @returns {boolean}
3533
+ */
3534
+ static exists() {
3535
+ const ret = wasm.opfs_exists();
3536
+ return ret !== 0;
3537
+ }
3538
+ /**
3539
+ * gets the error from Opfs, if any.
3540
+ * @returns {string | undefined}
3541
+ */
3542
+ static error() {
3543
+ const ret = wasm.opfs_error();
3544
+ let v1;
3545
+ if (ret[0] !== 0) {
3546
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
3547
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
3548
+ }
3549
+ return v1;
3550
+ }
3551
+ /**
3552
+ * @returns {Promise<void>}
3553
+ */
3554
+ static wipeFiles() {
3555
+ const ret = wasm.opfs_wipeFiles();
3556
+ return ret;
3557
+ }
3558
+ /**
3559
+ * If a virtual file exists with the given name, disassociates it from the pool and returns true, else returns false without side effects.
3560
+ * @param {string} name
3561
+ * @returns {boolean}
3562
+ */
3563
+ static rm(name) {
3564
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3565
+ const len0 = WASM_VECTOR_LEN;
3566
+ const ret = wasm.opfs_rm(ptr0, len0);
3567
+ if (ret[2]) {
3568
+ throw takeFromExternrefTable0(ret[1]);
3569
+ }
3570
+ return ret[0] !== 0;
3571
+ }
3572
+ /**
3573
+ * list files in current pool
3574
+ * @returns {string[]}
3575
+ */
3576
+ static getFileNames() {
3577
+ const ret = wasm.opfs_getFileNames();
3578
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
3579
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
3580
+ return v1;
3581
+ }
3582
+ /**
3583
+ * import a db file at 'path'
3584
+ * @param {string} path
3585
+ * @param {Uint8Array} bytes
3586
+ */
3587
+ static importDb(path, bytes) {
3588
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3589
+ const len0 = WASM_VECTOR_LEN;
3590
+ const ptr1 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
3591
+ const len1 = WASM_VECTOR_LEN;
3592
+ const ret = wasm.opfs_importDb(ptr0, len0, ptr1, len1);
3593
+ if (ret[1]) {
3594
+ throw takeFromExternrefTable0(ret[0]);
3595
+ }
3596
+ }
3597
+ /**
3598
+ * export db file with 'name'
3599
+ * @param {string} name
3600
+ * @returns {Uint8Array}
3601
+ */
3602
+ static exportFile(name) {
3603
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3604
+ const len0 = WASM_VECTOR_LEN;
3605
+ const ret = wasm.opfs_exportFile(ptr0, len0);
3606
+ if (ret[3]) {
3607
+ throw takeFromExternrefTable0(ret[2]);
3608
+ }
3609
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
3610
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
3611
+ return v2;
3612
+ }
3613
+ /**
3614
+ * get number of files in pool
3615
+ * @returns {number}
3616
+ */
3617
+ static getFileCount() {
3618
+ const ret = wasm.opfs_getFileCount();
3619
+ return ret >>> 0;
3620
+ }
3621
+ /**
3622
+ * @returns {number}
3623
+ */
3624
+ static getCapacity() {
3625
+ const ret = wasm.opfs_getCapacity();
3626
+ return ret >>> 0;
3627
+ }
3628
+ /**
3629
+ * Adds n entries to the current pool.
3630
+ * @param {number} n
3631
+ * @returns {Promise<number>}
3632
+ */
3633
+ static addCapacity(n) {
3634
+ const ret = wasm.opfs_addCapacity(n);
3635
+ return ret;
3636
+ }
3637
+ /**
3638
+ * Removes up to n entries from the pool, with the caveat that it can only remove currently-unused entries.
3639
+ * @param {number} n
3640
+ * @returns {Promise<number>}
3641
+ */
3642
+ static reduceCapacity(n) {
3643
+ const ret = wasm.opfs_reduceCapacity(n);
3644
+ return ret;
3645
+ }
3646
+ }
3647
+
3502
3648
  const PasskeySignatureFinalization = (typeof FinalizationRegistry === 'undefined')
3503
3649
  ? { register: () => {}, unregister: () => {} }
3504
3650
  : new FinalizationRegistry(ptr => wasm.__wbg_passkeysignature_free(ptr >>> 0, 1));
@@ -4263,7 +4409,7 @@ function __wbg_get_imports() {
4263
4409
  const a = state0.a;
4264
4410
  state0.a = 0;
4265
4411
  try {
4266
- return __wbg_adapter_585(a, state0.b, arg0, arg1, arg2);
4412
+ return __wbg_adapter_599(a, state0.b, arg0, arg1, arg2);
4267
4413
  } finally {
4268
4414
  state0.a = a;
4269
4415
  }
@@ -4293,7 +4439,7 @@ function __wbg_get_imports() {
4293
4439
  const a = state0.a;
4294
4440
  state0.a = 0;
4295
4441
  try {
4296
- return __wbg_adapter_585(a, state0.b, arg0, arg1, arg2);
4442
+ return __wbg_adapter_599(a, state0.b, arg0, arg1, arg2);
4297
4443
  } finally {
4298
4444
  state0.a = a;
4299
4445
  }
@@ -4581,7 +4727,7 @@ function __wbg_get_imports() {
4581
4727
  const a = state0.a;
4582
4728
  state0.a = 0;
4583
4729
  try {
4584
- return __wbg_adapter_686(a, state0.b, arg0, arg1);
4730
+ return __wbg_adapter_700(a, state0.b, arg0, arg1);
4585
4731
  } finally {
4586
4732
  state0.a = a;
4587
4733
  }
@@ -4773,6 +4919,10 @@ function __wbg_get_imports() {
4773
4919
  const ret = RemoteAttachmentInfo.__unwrap(arg0);
4774
4920
  return ret;
4775
4921
  };
4922
+ imports.wbg.__wbg_removeEntry_9f6bc325e3383e59 = function(arg0, arg1, arg2) {
4923
+ const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2));
4924
+ return ret;
4925
+ };
4776
4926
  imports.wbg.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
4777
4927
  const ret = module.require;
4778
4928
  return ret;
@@ -4980,12 +5130,12 @@ function __wbg_get_imports() {
4980
5130
  const ret = false;
4981
5131
  return ret;
4982
5132
  };
4983
- imports.wbg.__wbindgen_closure_wrapper16206 = function(arg0, arg1, arg2) {
4984
- const ret = makeMutClosure(arg0, arg1, 3682, __wbg_adapter_48);
5133
+ imports.wbg.__wbindgen_closure_wrapper16380 = function(arg0, arg1, arg2) {
5134
+ const ret = makeMutClosure(arg0, arg1, 3755, __wbg_adapter_48);
4985
5135
  return ret;
4986
5136
  };
4987
- imports.wbg.__wbindgen_closure_wrapper16502 = function(arg0, arg1, arg2) {
4988
- const ret = makeMutClosure(arg0, arg1, 3754, __wbg_adapter_51);
5137
+ imports.wbg.__wbindgen_closure_wrapper16659 = function(arg0, arg1, arg2) {
5138
+ const ret = makeMutClosure(arg0, arg1, 3826, __wbg_adapter_51);
4989
5139
  return ret;
4990
5140
  };
4991
5141
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -128,9 +128,8 @@ export const client_registerIdentity: (a: number) => any;
128
128
  export const client_sendHistorySyncRequest: (a: number) => any;
129
129
  export const client_sendConsentSyncRequest: (a: number) => any;
130
130
  export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
131
+ export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
131
132
  export const client_conversations: (a: number) => number;
132
- export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
133
- export const generateInboxId: (a: any) => [number, number, number, number];
134
133
  export const __wbg_installation_free: (a: number, b: number) => void;
135
134
  export const __wbg_get_installation_bytes: (a: number) => any;
136
135
  export const __wbg_set_installation_bytes: (a: number, b: any) => void;
@@ -269,6 +268,8 @@ export const __wbg_set_encodedcontent_compression: (a: number, b: number) => voi
269
268
  export const __wbg_get_encodedcontent_content: (a: number) => any;
270
269
  export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
271
270
  export const encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
271
+ export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
272
+ export const generateInboxId: (a: any) => [number, number, number, number];
272
273
  export const __wbg_listmessagesoptions_free: (a: number, b: number) => void;
273
274
  export const __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
274
275
  export const __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
@@ -296,11 +297,18 @@ export const __wbg_get_messagewithreactions_message: (a: number) => number;
296
297
  export const __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
297
298
  export const __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
298
299
  export const __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
299
- export const __wbg_streamcloser_free: (a: number, b: number) => void;
300
- export const streamcloser_end: (a: number) => void;
301
- export const streamcloser_endAndWait: (a: number) => any;
302
- export const streamcloser_waitForReady: (a: number) => any;
303
- export const streamcloser_isClosed: (a: number) => number;
300
+ export const __wbg_opfs_free: (a: number, b: number) => void;
301
+ export const opfs_exists: () => number;
302
+ export const opfs_error: () => [number, number];
303
+ export const opfs_wipeFiles: () => any;
304
+ export const opfs_rm: (a: number, b: number) => [number, number, number];
305
+ export const opfs_getFileNames: () => [number, number];
306
+ export const opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
307
+ export const opfs_exportFile: (a: number, b: number) => [number, number, number, number];
308
+ export const opfs_getFileCount: () => number;
309
+ export const opfs_getCapacity: () => number;
310
+ export const opfs_addCapacity: (a: number) => any;
311
+ export const opfs_reduceCapacity: (a: number) => any;
304
312
  export const __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
305
313
  export const __wbg_get_message_sentAtNs: (a: number) => bigint;
306
314
  export const __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
@@ -313,6 +321,11 @@ export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: numbe
313
321
  export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
314
322
  export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
315
323
  export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
324
+ export const __wbg_streamcloser_free: (a: number, b: number) => void;
325
+ export const streamcloser_end: (a: number) => void;
326
+ export const streamcloser_endAndWait: (a: number) => any;
327
+ export const streamcloser_waitForReady: (a: number) => any;
328
+ export const streamcloser_isClosed: (a: number) => number;
316
329
  export const rust_sqlite_wasm_shim_localtime_js: (a: bigint, b: number) => void;
317
330
  export const rust_sqlite_wasm_shim_tzset_js: (a: number, b: number, c: number, d: number) => void;
318
331
  export const rust_sqlite_wasm_shim_emscripten_get_now: () => number;
@@ -342,8 +355,8 @@ export const __wbindgen_free: (a: number, b: number, c: number) => void;
342
355
  export const __externref_drop_slice: (a: number, b: number) => void;
343
356
  export const __wbindgen_export_7: WebAssembly.Table;
344
357
  export const __externref_table_dealloc: (a: number) => void;
345
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hff1927556d6713ec: (a: number, b: number) => void;
346
- export const closure3753_externref_shim: (a: number, b: number, c: any) => void;
347
- export const closure4762_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
348
- export const closure4761_externref_shim: (a: number, b: number, c: any, d: any) => void;
358
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd11fcf7148e8db56: (a: number, b: number) => void;
359
+ export const closure3825_externref_shim: (a: number, b: number, c: any) => void;
360
+ export const closure4820_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
361
+ export const closure4819_externref_shim: (a: number, b: number, c: any, d: any) => void;
349
362
  export const __wbindgen_start: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmtp/wasm-bindings",
3
- "version": "1.0.0-rc4",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "WASM bindings for the libXMTP rust library",