@xmtp/wasm-bindings 1.2.0-dev.5d15935 → 1.2.0-dev.75e600e

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.
@@ -3,11 +3,11 @@
3
3
  export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
4
4
  export function generateInboxId(accountIdentifier: Identifier): string;
5
5
  export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
6
- export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
7
- export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
8
6
  export function createClient(host: string, inbox_id: string, account_identifier: Identifier, db_path?: string | null, encryption_key?: Uint8Array | null, history_sync_url?: string | null, log_options?: LogOptions | null): Promise<Client>;
9
7
  export function encodeReaction(reaction: Reaction): Uint8Array;
10
8
  export function decodeReaction(bytes: Uint8Array): Reaction;
9
+ export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
10
+ export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
11
11
  export enum ConsentEntityType {
12
12
  GroupId = 0,
13
13
  InboxId = 1,
@@ -711,6 +711,73 @@ export interface InitOutput {
711
711
  readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
712
712
  readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
713
713
  readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
714
+ readonly __wbg_client_free: (a: number, b: number) => void;
715
+ readonly __wbg_logoptions_free: (a: number, b: number) => void;
716
+ readonly __wbg_get_logoptions_structured: (a: number) => number;
717
+ readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
718
+ readonly __wbg_get_logoptions_performance: (a: number) => number;
719
+ readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
720
+ readonly __wbg_get_logoptions_level: (a: number) => number;
721
+ readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
722
+ readonly logoptions_new: (a: number, b: number, c: number) => number;
723
+ readonly createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number) => any;
724
+ readonly client_accountIdentifier: (a: number) => any;
725
+ readonly client_inboxId: (a: number) => [number, number];
726
+ readonly client_isRegistered: (a: number) => number;
727
+ readonly client_installationId: (a: number) => [number, number];
728
+ readonly client_installationIdBytes: (a: number) => any;
729
+ readonly client_canMessage: (a: number, b: number, c: number) => any;
730
+ readonly client_registerIdentity: (a: number) => any;
731
+ readonly client_sendHistorySyncRequest: (a: number) => any;
732
+ readonly client_sendConsentSyncRequest: (a: number) => any;
733
+ readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
734
+ readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
735
+ readonly client_conversations: (a: number) => number;
736
+ readonly __wbg_reaction_free: (a: number, b: number) => void;
737
+ readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
738
+ readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
739
+ readonly __wbg_get_reaction_action: (a: number) => number;
740
+ readonly __wbg_set_reaction_action: (a: number, b: number) => void;
741
+ readonly __wbg_get_reaction_content: (a: number) => [number, number];
742
+ readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
743
+ readonly __wbg_get_reaction_schema: (a: number) => number;
744
+ readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
745
+ readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
746
+ readonly encodeReaction: (a: number) => [number, number, number];
747
+ readonly decodeReaction: (a: any) => [number, number, number];
748
+ readonly __wbg_installation_free: (a: number, b: number) => void;
749
+ readonly __wbg_get_installation_bytes: (a: number) => any;
750
+ readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
751
+ readonly __wbg_get_installation_id: (a: number) => [number, number];
752
+ readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
753
+ readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
754
+ readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
755
+ readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
756
+ readonly __wbg_inboxstate_free: (a: number, b: number) => void;
757
+ readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
758
+ readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
759
+ readonly __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
760
+ readonly __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
761
+ readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
762
+ readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
763
+ readonly __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
764
+ readonly __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
765
+ readonly inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
766
+ readonly __wbg_keypackagestatus_free: (a: number, b: number) => void;
767
+ readonly __wbg_get_keypackagestatus_lifetime: (a: number) => number;
768
+ readonly __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
769
+ readonly __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
770
+ readonly __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
771
+ readonly __wbg_lifetime_free: (a: number, b: number) => void;
772
+ readonly __wbg_get_lifetime_not_before: (a: number) => bigint;
773
+ readonly __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
774
+ readonly __wbg_get_lifetime_not_after: (a: number) => bigint;
775
+ readonly __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
776
+ readonly client_inboxState: (a: number, b: number) => any;
777
+ readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
778
+ readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
779
+ readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
780
+ readonly __wbg_get_reaction_reference: (a: number) => [number, number];
714
781
  readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
715
782
  readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
716
783
  readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
@@ -837,73 +904,6 @@ export interface InitOutput {
837
904
  readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
838
905
  readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
839
906
  readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
840
- readonly __wbg_client_free: (a: number, b: number) => void;
841
- readonly __wbg_logoptions_free: (a: number, b: number) => void;
842
- readonly __wbg_get_logoptions_structured: (a: number) => number;
843
- readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
844
- readonly __wbg_get_logoptions_performance: (a: number) => number;
845
- readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
846
- readonly __wbg_get_logoptions_level: (a: number) => number;
847
- readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
848
- readonly logoptions_new: (a: number, b: number, c: number) => number;
849
- readonly createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number) => any;
850
- readonly client_accountIdentifier: (a: number) => any;
851
- readonly client_inboxId: (a: number) => [number, number];
852
- readonly client_isRegistered: (a: number) => number;
853
- readonly client_installationId: (a: number) => [number, number];
854
- readonly client_installationIdBytes: (a: number) => any;
855
- readonly client_canMessage: (a: number, b: number, c: number) => any;
856
- readonly client_registerIdentity: (a: number) => any;
857
- readonly client_sendHistorySyncRequest: (a: number) => any;
858
- readonly client_sendConsentSyncRequest: (a: number) => any;
859
- readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
860
- readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
861
- readonly client_conversations: (a: number) => number;
862
- readonly __wbg_reaction_free: (a: number, b: number) => void;
863
- readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
864
- readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
865
- readonly __wbg_get_reaction_action: (a: number) => number;
866
- readonly __wbg_set_reaction_action: (a: number, b: number) => void;
867
- readonly __wbg_get_reaction_content: (a: number) => [number, number];
868
- readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
869
- readonly __wbg_get_reaction_schema: (a: number) => number;
870
- readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
871
- readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
872
- readonly encodeReaction: (a: number) => [number, number, number];
873
- readonly decodeReaction: (a: any) => [number, number, number];
874
- readonly __wbg_installation_free: (a: number, b: number) => void;
875
- readonly __wbg_get_installation_bytes: (a: number) => any;
876
- readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
877
- readonly __wbg_get_installation_id: (a: number) => [number, number];
878
- readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
879
- readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
880
- readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
881
- readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
882
- readonly __wbg_inboxstate_free: (a: number, b: number) => void;
883
- readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
884
- readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
885
- readonly __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
886
- readonly __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
887
- readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
888
- readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
889
- readonly __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
890
- readonly __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
891
- readonly inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
892
- readonly __wbg_keypackagestatus_free: (a: number, b: number) => void;
893
- readonly __wbg_get_keypackagestatus_lifetime: (a: number) => number;
894
- readonly __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
895
- readonly __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
896
- readonly __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
897
- readonly __wbg_lifetime_free: (a: number, b: number) => void;
898
- readonly __wbg_get_lifetime_not_before: (a: number) => bigint;
899
- readonly __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
900
- readonly __wbg_get_lifetime_not_after: (a: number) => bigint;
901
- readonly __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
902
- readonly client_inboxState: (a: number, b: number) => any;
903
- readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
904
- readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
905
- readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
906
- readonly __wbg_get_reaction_reference: (a: number) => [number, number];
907
907
  readonly rust_sqlite_wasm_shim_localtime_js: (a: bigint, b: number) => void;
908
908
  readonly rust_sqlite_wasm_shim_tzset_js: (a: number, b: number, c: number, d: number) => void;
909
909
  readonly rust_sqlite_wasm_shim_emscripten_get_now: () => number;
@@ -935,10 +935,10 @@ export interface InitOutput {
935
935
  readonly __externref_table_dealloc: (a: number) => void;
936
936
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6040dd5f55152215: (a: number, b: number) => void;
937
937
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9b134efb6b08a208: (a: number, b: number) => void;
938
- readonly closure3985_externref_shim: (a: number, b: number, c: any) => void;
938
+ readonly closure3990_externref_shim: (a: number, b: number, c: any) => void;
939
939
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f45197f24caef5a: (a: number, b: number) => void;
940
- readonly closure4878_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
941
- readonly closure4877_externref_shim: (a: number, b: number, c: any, d: any) => void;
940
+ readonly closure4882_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
941
+ readonly closure4881_externref_shim: (a: number, b: number, c: any, d: any) => void;
942
942
  readonly __wbindgen_start: () => void;
943
943
  }
944
944
 
@@ -290,32 +290,6 @@ export function verifySignedWithPublicKey(signature_text, signature_bytes, publi
290
290
  }
291
291
  }
292
292
 
293
- /**
294
- * @param {MultiRemoteAttachment} multiRemoteAttachment
295
- * @returns {Uint8Array}
296
- */
297
- export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
298
- _assertClass(multiRemoteAttachment, MultiRemoteAttachment);
299
- var ptr0 = multiRemoteAttachment.__destroy_into_raw();
300
- const ret = wasm.encodeMultiRemoteAttachment(ptr0);
301
- if (ret[2]) {
302
- throw takeFromExternrefTable0(ret[1]);
303
- }
304
- return takeFromExternrefTable0(ret[0]);
305
- }
306
-
307
- /**
308
- * @param {Uint8Array} bytes
309
- * @returns {MultiRemoteAttachment}
310
- */
311
- export function decodeMultiRemoteAttachment(bytes) {
312
- const ret = wasm.decodeMultiRemoteAttachment(bytes);
313
- if (ret[2]) {
314
- throw takeFromExternrefTable0(ret[1]);
315
- }
316
- return MultiRemoteAttachment.__wrap(ret[0]);
317
- }
318
-
319
293
  /**
320
294
  * @param {string} host
321
295
  * @param {string} inbox_id
@@ -370,6 +344,32 @@ export function decodeReaction(bytes) {
370
344
  return Reaction.__wrap(ret[0]);
371
345
  }
372
346
 
347
+ /**
348
+ * @param {MultiRemoteAttachment} multiRemoteAttachment
349
+ * @returns {Uint8Array}
350
+ */
351
+ export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
352
+ _assertClass(multiRemoteAttachment, MultiRemoteAttachment);
353
+ var ptr0 = multiRemoteAttachment.__destroy_into_raw();
354
+ const ret = wasm.encodeMultiRemoteAttachment(ptr0);
355
+ if (ret[2]) {
356
+ throw takeFromExternrefTable0(ret[1]);
357
+ }
358
+ return takeFromExternrefTable0(ret[0]);
359
+ }
360
+
361
+ /**
362
+ * @param {Uint8Array} bytes
363
+ * @returns {MultiRemoteAttachment}
364
+ */
365
+ export function decodeMultiRemoteAttachment(bytes) {
366
+ const ret = wasm.decodeMultiRemoteAttachment(bytes);
367
+ if (ret[2]) {
368
+ throw takeFromExternrefTable0(ret[1]);
369
+ }
370
+ return MultiRemoteAttachment.__wrap(ret[0]);
371
+ }
372
+
373
373
  function __wbg_adapter_50(arg0, arg1) {
374
374
  wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6040dd5f55152215(arg0, arg1);
375
375
  }
@@ -379,7 +379,7 @@ function __wbg_adapter_53(arg0, arg1) {
379
379
  }
380
380
 
381
381
  function __wbg_adapter_56(arg0, arg1, arg2) {
382
- wasm.closure3985_externref_shim(arg0, arg1, arg2);
382
+ wasm.closure3990_externref_shim(arg0, arg1, arg2);
383
383
  }
384
384
 
385
385
  function __wbg_adapter_59(arg0, arg1) {
@@ -387,12 +387,12 @@ function __wbg_adapter_59(arg0, arg1) {
387
387
  }
388
388
 
389
389
  function __wbg_adapter_640(arg0, arg1, arg2, arg3, arg4) {
390
- const ret = wasm.closure4878_externref_shim(arg0, arg1, arg2, arg3, arg4);
390
+ const ret = wasm.closure4882_externref_shim(arg0, arg1, arg2, arg3, arg4);
391
391
  return ret !== 0;
392
392
  }
393
393
 
394
394
  function __wbg_adapter_741(arg0, arg1, arg2, arg3) {
395
- wasm.closure4877_externref_shim(arg0, arg1, arg2, arg3);
395
+ wasm.closure4881_externref_shim(arg0, arg1, arg2, arg3);
396
396
  }
397
397
 
398
398
  /**
@@ -5343,20 +5343,20 @@ function __wbg_get_imports() {
5343
5343
  const ret = false;
5344
5344
  return ret;
5345
5345
  };
5346
- imports.wbg.__wbindgen_closure_wrapper15248 = function(arg0, arg1, arg2) {
5347
- const ret = makeMutClosure(arg0, arg1, 3651, __wbg_adapter_50);
5346
+ imports.wbg.__wbindgen_closure_wrapper15271 = function(arg0, arg1, arg2) {
5347
+ const ret = makeMutClosure(arg0, arg1, 3656, __wbg_adapter_50);
5348
5348
  return ret;
5349
5349
  };
5350
- imports.wbg.__wbindgen_closure_wrapper15390 = function(arg0, arg1, arg2) {
5351
- const ret = makeMutClosure(arg0, arg1, 3674, __wbg_adapter_53);
5350
+ imports.wbg.__wbindgen_closure_wrapper15413 = function(arg0, arg1, arg2) {
5351
+ const ret = makeMutClosure(arg0, arg1, 3679, __wbg_adapter_53);
5352
5352
  return ret;
5353
5353
  };
5354
- imports.wbg.__wbindgen_closure_wrapper18399 = function(arg0, arg1, arg2) {
5355
- const ret = makeMutClosure(arg0, arg1, 3986, __wbg_adapter_56);
5354
+ imports.wbg.__wbindgen_closure_wrapper18422 = function(arg0, arg1, arg2) {
5355
+ const ret = makeMutClosure(arg0, arg1, 3991, __wbg_adapter_56);
5356
5356
  return ret;
5357
5357
  };
5358
- imports.wbg.__wbindgen_closure_wrapper18518 = function(arg0, arg1, arg2) {
5359
- const ret = makeMutClosure(arg0, arg1, 4000, __wbg_adapter_59);
5358
+ imports.wbg.__wbindgen_closure_wrapper18541 = function(arg0, arg1, arg2) {
5359
+ const ret = makeMutClosure(arg0, arg1, 4005, __wbg_adapter_59);
5360
5360
  return ret;
5361
5361
  };
5362
5362
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -146,6 +146,73 @@ export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) =>
146
146
  export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
147
147
  export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
148
148
  export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
149
+ export const __wbg_client_free: (a: number, b: number) => void;
150
+ export const __wbg_logoptions_free: (a: number, b: number) => void;
151
+ export const __wbg_get_logoptions_structured: (a: number) => number;
152
+ export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
153
+ export const __wbg_get_logoptions_performance: (a: number) => number;
154
+ export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
155
+ export const __wbg_get_logoptions_level: (a: number) => number;
156
+ export const __wbg_set_logoptions_level: (a: number, b: number) => void;
157
+ export const logoptions_new: (a: number, b: number, c: number) => number;
158
+ export const createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number) => any;
159
+ export const client_accountIdentifier: (a: number) => any;
160
+ export const client_inboxId: (a: number) => [number, number];
161
+ export const client_isRegistered: (a: number) => number;
162
+ export const client_installationId: (a: number) => [number, number];
163
+ export const client_installationIdBytes: (a: number) => any;
164
+ export const client_canMessage: (a: number, b: number, c: number) => any;
165
+ export const client_registerIdentity: (a: number) => any;
166
+ export const client_sendHistorySyncRequest: (a: number) => any;
167
+ export const client_sendConsentSyncRequest: (a: number) => any;
168
+ export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
169
+ export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
170
+ export const client_conversations: (a: number) => number;
171
+ export const __wbg_reaction_free: (a: number, b: number) => void;
172
+ export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
173
+ export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
174
+ export const __wbg_get_reaction_action: (a: number) => number;
175
+ export const __wbg_set_reaction_action: (a: number, b: number) => void;
176
+ export const __wbg_get_reaction_content: (a: number) => [number, number];
177
+ export const __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
178
+ export const __wbg_get_reaction_schema: (a: number) => number;
179
+ export const __wbg_set_reaction_schema: (a: number, b: number) => void;
180
+ export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
181
+ export const encodeReaction: (a: number) => [number, number, number];
182
+ export const decodeReaction: (a: any) => [number, number, number];
183
+ export const __wbg_installation_free: (a: number, b: number) => void;
184
+ export const __wbg_get_installation_bytes: (a: number) => any;
185
+ export const __wbg_set_installation_bytes: (a: number, b: any) => void;
186
+ export const __wbg_get_installation_id: (a: number) => [number, number];
187
+ export const __wbg_set_installation_id: (a: number, b: number, c: number) => void;
188
+ export const __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
189
+ export const __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
190
+ export const installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
191
+ export const __wbg_inboxstate_free: (a: number, b: number) => void;
192
+ export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
193
+ export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
194
+ export const __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
195
+ export const __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
196
+ export const __wbg_get_inboxstate_installations: (a: number) => [number, number];
197
+ export const __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
198
+ export const __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
199
+ export const __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
200
+ export const inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
201
+ export const __wbg_keypackagestatus_free: (a: number, b: number) => void;
202
+ export const __wbg_get_keypackagestatus_lifetime: (a: number) => number;
203
+ export const __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
204
+ export const __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
205
+ export const __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
206
+ export const __wbg_lifetime_free: (a: number, b: number) => void;
207
+ export const __wbg_get_lifetime_not_before: (a: number) => bigint;
208
+ export const __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
209
+ export const __wbg_get_lifetime_not_after: (a: number) => bigint;
210
+ export const __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
211
+ export const client_inboxState: (a: number, b: number) => any;
212
+ export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
213
+ export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
214
+ export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
215
+ export const __wbg_get_reaction_reference: (a: number) => [number, number];
149
216
  export const __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
150
217
  export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
151
218
  export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
@@ -272,73 +339,6 @@ export const __wbg_set_creategroupoptions_messageDisappearingSettings: (a: numbe
272
339
  export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
273
340
  export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
274
341
  export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
275
- export const __wbg_client_free: (a: number, b: number) => void;
276
- export const __wbg_logoptions_free: (a: number, b: number) => void;
277
- export const __wbg_get_logoptions_structured: (a: number) => number;
278
- export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
279
- export const __wbg_get_logoptions_performance: (a: number) => number;
280
- export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
281
- export const __wbg_get_logoptions_level: (a: number) => number;
282
- export const __wbg_set_logoptions_level: (a: number, b: number) => void;
283
- export const logoptions_new: (a: number, b: number, c: number) => number;
284
- export const createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number) => any;
285
- export const client_accountIdentifier: (a: number) => any;
286
- export const client_inboxId: (a: number) => [number, number];
287
- export const client_isRegistered: (a: number) => number;
288
- export const client_installationId: (a: number) => [number, number];
289
- export const client_installationIdBytes: (a: number) => any;
290
- export const client_canMessage: (a: number, b: number, c: number) => any;
291
- export const client_registerIdentity: (a: number) => any;
292
- export const client_sendHistorySyncRequest: (a: number) => any;
293
- export const client_sendConsentSyncRequest: (a: number) => any;
294
- export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
295
- export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
296
- export const client_conversations: (a: number) => number;
297
- export const __wbg_reaction_free: (a: number, b: number) => void;
298
- export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
299
- export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
300
- export const __wbg_get_reaction_action: (a: number) => number;
301
- export const __wbg_set_reaction_action: (a: number, b: number) => void;
302
- export const __wbg_get_reaction_content: (a: number) => [number, number];
303
- export const __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
304
- export const __wbg_get_reaction_schema: (a: number) => number;
305
- export const __wbg_set_reaction_schema: (a: number, b: number) => void;
306
- export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
307
- export const encodeReaction: (a: number) => [number, number, number];
308
- export const decodeReaction: (a: any) => [number, number, number];
309
- export const __wbg_installation_free: (a: number, b: number) => void;
310
- export const __wbg_get_installation_bytes: (a: number) => any;
311
- export const __wbg_set_installation_bytes: (a: number, b: any) => void;
312
- export const __wbg_get_installation_id: (a: number) => [number, number];
313
- export const __wbg_set_installation_id: (a: number, b: number, c: number) => void;
314
- export const __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
315
- export const __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
316
- export const installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
317
- export const __wbg_inboxstate_free: (a: number, b: number) => void;
318
- export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
319
- export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
320
- export const __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
321
- export const __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
322
- export const __wbg_get_inboxstate_installations: (a: number) => [number, number];
323
- export const __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
324
- export const __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
325
- export const __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
326
- export const inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
327
- export const __wbg_keypackagestatus_free: (a: number, b: number) => void;
328
- export const __wbg_get_keypackagestatus_lifetime: (a: number) => number;
329
- export const __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
330
- export const __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
331
- export const __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
332
- export const __wbg_lifetime_free: (a: number, b: number) => void;
333
- export const __wbg_get_lifetime_not_before: (a: number) => bigint;
334
- export const __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
335
- export const __wbg_get_lifetime_not_after: (a: number) => bigint;
336
- export const __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
337
- export const client_inboxState: (a: number, b: number) => any;
338
- export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
339
- export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
340
- export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
341
- export const __wbg_get_reaction_reference: (a: number) => [number, number];
342
342
  export const rust_sqlite_wasm_shim_localtime_js: (a: bigint, b: number) => void;
343
343
  export const rust_sqlite_wasm_shim_tzset_js: (a: number, b: number, c: number, d: number) => void;
344
344
  export const rust_sqlite_wasm_shim_emscripten_get_now: () => number;
@@ -370,8 +370,8 @@ export const __wbindgen_export_7: WebAssembly.Table;
370
370
  export const __externref_table_dealloc: (a: number) => void;
371
371
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6040dd5f55152215: (a: number, b: number) => void;
372
372
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9b134efb6b08a208: (a: number, b: number) => void;
373
- export const closure3985_externref_shim: (a: number, b: number, c: any) => void;
373
+ export const closure3990_externref_shim: (a: number, b: number, c: any) => void;
374
374
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f45197f24caef5a: (a: number, b: number) => void;
375
- export const closure4878_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
376
- export const closure4877_externref_shim: (a: number, b: number, c: any, d: any) => void;
375
+ export const closure4882_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
376
+ export const closure4881_externref_shim: (a: number, b: number, c: any, d: any) => void;
377
377
  export const __wbindgen_start: () => void;
package/dist/version.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "branch": "1.2.0-dev.878fd38",
3
- "version": "5d15935",
4
- "date": "2025-04-21 19:45:41 +0000"
3
+ "version": "75e600e",
4
+ "date": "2025-04-22 23:13:14 +0000"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmtp/wasm-bindings",
3
- "version": "1.2.0-dev.5d15935",
3
+ "version": "1.2.0-dev.75e600e",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "WASM bindings for the libXMTP rust library",
@@ -27,7 +27,7 @@
27
27
  "build": "yarn clean && yarn build:web && yarn clean:release",
28
28
  "build:macos": "yarn clean && yarn build:web:macos && yarn clean:release",
29
29
  "build:web": "RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals --cfg getrandom_backend=\\\"wasm_js\\\"\" wasm-pack build --target web --out-dir ./dist --no-pack --release",
30
- "build:web:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals\" wasm-pack build --target web --out-dir ./dist --no-pack --release",
30
+ "build:web:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals --cfg getrandom_backend=\\\"wasm_js\\\"\" wasm-pack build --target web --out-dir ./dist --no-pack --release",
31
31
  "check": "cargo check --target wasm32-unknown-unknown",
32
32
  "check:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang cargo check --target wasm32-unknown-unknown",
33
33
  "clean": "rm -rf ./dist",