@xmtp/wasm-bindings 1.4.0-rc2 → 1.5.0-dev.c78b650

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.
@@ -111,6 +111,8 @@ type LogLevel = "off" | "error" | "warn" | "info" | "debug" | "trace";
111
111
  * *This API requires the following crate features to be activated: `ReadableStreamType`*
112
112
  */
113
113
  type ReadableStreamType = "bytes";
114
+ export type UserPreference = { type: "Consent"; consent: Consent } | { type: "HmacKeyUpdate"; key: number[] };
115
+
114
116
  export interface Identifier {
115
117
  identifier: string;
116
118
  identifierKind: IdentifierKind;
@@ -118,8 +120,6 @@ export interface Identifier {
118
120
 
119
121
  export type IdentifierKind = "Ethereum" | "Passkey";
120
122
 
121
- export type UserPreference = { type: "Consent"; consent: Consent } | { type: "HmacKeyUpdate"; key: number[] };
122
-
123
123
  export class ApiStats {
124
124
  private constructor();
125
125
  free(): void;
@@ -265,6 +265,7 @@ export class ConversationDebugInfo {
265
265
  get isCommitLogForked(): boolean | undefined;
266
266
  set isCommitLogForked(value: boolean | null | undefined);
267
267
  localCommitLog: string;
268
+ remoteCommitLog: string;
268
269
  cursor: bigint;
269
270
  }
270
271
  export class ConversationListItem {
@@ -621,6 +622,13 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
621
622
 
622
623
  export interface InitOutput {
623
624
  readonly memory: WebAssembly.Memory;
625
+ readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
626
+ readonly generateInboxId: (a: any) => [number, number, number, number];
627
+ readonly __wbg_streamcloser_free: (a: number, b: number) => void;
628
+ readonly streamcloser_end: (a: number) => void;
629
+ readonly streamcloser_endAndWait: (a: number) => any;
630
+ readonly streamcloser_waitForReady: (a: number) => any;
631
+ readonly streamcloser_isClosed: (a: number) => number;
624
632
  readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
625
633
  readonly __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
626
634
  readonly __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
@@ -648,6 +656,8 @@ export interface InitOutput {
648
656
  readonly __wbg_set_conversationdebuginfo_isCommitLogForked: (a: number, b: number) => void;
649
657
  readonly __wbg_get_conversationdebuginfo_localCommitLog: (a: number) => [number, number];
650
658
  readonly __wbg_set_conversationdebuginfo_localCommitLog: (a: number, b: number, c: number) => void;
659
+ readonly __wbg_get_conversationdebuginfo_remoteCommitLog: (a: number) => [number, number];
660
+ readonly __wbg_set_conversationdebuginfo_remoteCommitLog: (a: number, b: number, c: number) => void;
651
661
  readonly __wbg_get_conversationdebuginfo_cursor: (a: number) => bigint;
652
662
  readonly __wbg_set_conversationdebuginfo_cursor: (a: number, b: bigint) => void;
653
663
  readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
@@ -695,6 +705,28 @@ export interface InitOutput {
695
705
  readonly conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
696
706
  readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
697
707
  readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
708
+ readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
709
+ readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
710
+ readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
711
+ readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
712
+ readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
713
+ readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
714
+ readonly __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
715
+ readonly __wbg_get_contenttypeid_versionMinor: (a: number) => number;
716
+ readonly __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
717
+ readonly contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
718
+ readonly __wbg_encodedcontent_free: (a: number, b: number) => void;
719
+ readonly __wbg_get_encodedcontent_type: (a: number) => number;
720
+ readonly __wbg_set_encodedcontent_type: (a: number, b: number) => void;
721
+ readonly __wbg_get_encodedcontent_parameters: (a: number) => any;
722
+ readonly __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
723
+ readonly __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
724
+ readonly __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
725
+ readonly __wbg_get_encodedcontent_compression: (a: number) => number;
726
+ readonly __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
727
+ readonly __wbg_get_encodedcontent_content: (a: number) => any;
728
+ readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
729
+ readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
698
730
  readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
699
731
  readonly __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
700
732
  readonly __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
@@ -740,52 +772,6 @@ export interface InitOutput {
740
772
  readonly __wbg_get_hmackey_epoch: (a: number) => bigint;
741
773
  readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
742
774
  readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
743
- readonly __wbg_apistats_free: (a: number, b: number) => void;
744
- readonly __wbg_get_apistats_upload_key_package: (a: number) => bigint;
745
- readonly __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
746
- readonly __wbg_get_apistats_fetch_key_package: (a: number) => bigint;
747
- readonly __wbg_set_apistats_fetch_key_package: (a: number, b: bigint) => void;
748
- readonly __wbg_get_apistats_send_group_messages: (a: number) => bigint;
749
- readonly __wbg_set_apistats_send_group_messages: (a: number, b: bigint) => void;
750
- readonly __wbg_get_apistats_send_welcome_messages: (a: number) => bigint;
751
- readonly __wbg_set_apistats_send_welcome_messages: (a: number, b: bigint) => void;
752
- readonly __wbg_get_apistats_query_group_messages: (a: number) => bigint;
753
- readonly __wbg_set_apistats_query_group_messages: (a: number, b: bigint) => void;
754
- readonly __wbg_get_apistats_query_welcome_messages: (a: number) => bigint;
755
- readonly __wbg_set_apistats_query_welcome_messages: (a: number, b: bigint) => void;
756
- readonly __wbg_get_apistats_subscribe_messages: (a: number) => bigint;
757
- readonly __wbg_set_apistats_subscribe_messages: (a: number, b: bigint) => void;
758
- readonly __wbg_get_apistats_subscribe_welcomes: (a: number) => bigint;
759
- readonly __wbg_set_apistats_subscribe_welcomes: (a: number, b: bigint) => void;
760
- readonly __wbg_identitystats_free: (a: number, b: number) => void;
761
- readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
762
- readonly generateInboxId: (a: any) => [number, number, number, number];
763
- readonly __wbg_opfs_free: (a: number, b: number) => void;
764
- readonly opfs_init_sqlite_opfs: () => any;
765
- readonly opfs_exists: () => number;
766
- readonly opfs_error: () => [number, number];
767
- readonly opfs_wipeFiles: () => any;
768
- readonly opfs_rm: (a: number, b: number) => [number, number, number];
769
- readonly opfs_getFileNames: () => [number, number];
770
- readonly opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
771
- readonly opfs_exportFile: (a: number, b: number) => [number, number, number, number];
772
- readonly opfs_getFileCount: () => number;
773
- readonly opfs_getCapacity: () => number;
774
- readonly opfs_addCapacity: (a: number) => any;
775
- readonly opfs_reduceCapacity: (a: number) => any;
776
- readonly __wbg_streamcloser_free: (a: number, b: number) => void;
777
- readonly streamcloser_end: (a: number) => void;
778
- readonly streamcloser_endAndWait: (a: number) => any;
779
- readonly streamcloser_waitForReady: (a: number) => any;
780
- readonly streamcloser_isClosed: (a: number) => number;
781
- readonly __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
782
- readonly __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
783
- readonly __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
784
- readonly __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
785
- readonly __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
786
- readonly __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
787
- readonly __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
788
- readonly __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
789
775
  readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
790
776
  readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
791
777
  readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
@@ -848,6 +834,8 @@ export interface InitOutput {
848
834
  readonly conversation_consentState: (a: number) => [number, number, number];
849
835
  readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
850
836
  readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
837
+ readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
838
+ readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
851
839
  readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
852
840
  readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
853
841
  readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
@@ -872,6 +860,7 @@ export interface InitOutput {
872
860
  readonly __wbg_reaction_free: (a: number, b: number) => void;
873
861
  readonly __wbg_get_reaction_reference: (a: number) => [number, number];
874
862
  readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
863
+ readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
875
864
  readonly __wbg_get_reaction_action: (a: number) => number;
876
865
  readonly __wbg_set_reaction_action: (a: number, b: number) => void;
877
866
  readonly __wbg_get_reaction_content: (a: number) => [number, number];
@@ -938,27 +927,24 @@ export interface InitOutput {
938
927
  readonly conversation_getHmacKeys: (a: number) => [number, number, number];
939
928
  readonly conversation_getDebugInfo: (a: number) => any;
940
929
  readonly conversation_findDuplicateDms: (a: number) => any;
941
- readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
942
- readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
943
- readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
944
- readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
945
- readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
946
- readonly __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
947
- readonly __wbg_get_contenttypeid_versionMinor: (a: number) => number;
948
- readonly __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
949
- readonly contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
950
- readonly __wbg_encodedcontent_free: (a: number, b: number) => void;
951
- readonly __wbg_get_encodedcontent_type: (a: number) => number;
952
- readonly __wbg_set_encodedcontent_type: (a: number, b: number) => void;
953
- readonly __wbg_get_encodedcontent_parameters: (a: number) => any;
954
- readonly __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
955
- readonly __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
956
- readonly __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
957
- readonly __wbg_get_encodedcontent_compression: (a: number) => number;
958
- readonly __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
959
- readonly __wbg_get_encodedcontent_content: (a: number) => any;
960
- readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
961
- readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
930
+ readonly __wbg_apistats_free: (a: number, b: number) => void;
931
+ readonly __wbg_get_apistats_upload_key_package: (a: number) => bigint;
932
+ readonly __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
933
+ readonly __wbg_get_apistats_fetch_key_package: (a: number) => bigint;
934
+ readonly __wbg_set_apistats_fetch_key_package: (a: number, b: bigint) => void;
935
+ readonly __wbg_get_apistats_send_group_messages: (a: number) => bigint;
936
+ readonly __wbg_set_apistats_send_group_messages: (a: number, b: bigint) => void;
937
+ readonly __wbg_get_apistats_send_welcome_messages: (a: number) => bigint;
938
+ readonly __wbg_set_apistats_send_welcome_messages: (a: number, b: bigint) => void;
939
+ readonly __wbg_get_apistats_query_group_messages: (a: number) => bigint;
940
+ readonly __wbg_set_apistats_query_group_messages: (a: number, b: bigint) => void;
941
+ readonly __wbg_get_apistats_query_welcome_messages: (a: number) => bigint;
942
+ readonly __wbg_set_apistats_query_welcome_messages: (a: number, b: bigint) => void;
943
+ readonly __wbg_get_apistats_subscribe_messages: (a: number) => bigint;
944
+ readonly __wbg_set_apistats_subscribe_messages: (a: number, b: bigint) => void;
945
+ readonly __wbg_get_apistats_subscribe_welcomes: (a: number) => bigint;
946
+ readonly __wbg_set_apistats_subscribe_welcomes: (a: number, b: bigint) => void;
947
+ readonly __wbg_identitystats_free: (a: number, b: number) => void;
962
948
  readonly __wbg_installation_free: (a: number, b: number) => void;
963
949
  readonly __wbg_get_installation_bytes: (a: number) => any;
964
950
  readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
@@ -982,14 +968,23 @@ export interface InitOutput {
982
968
  readonly __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
983
969
  readonly __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
984
970
  readonly __wbg_lifetime_free: (a: number, b: number) => void;
985
- readonly __wbg_get_lifetime_not_before: (a: number) => bigint;
986
- readonly __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
987
- readonly __wbg_get_lifetime_not_after: (a: number) => bigint;
988
- readonly __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
989
971
  readonly inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
990
972
  readonly client_inboxState: (a: number, b: number) => any;
991
973
  readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
992
974
  readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
975
+ readonly __wbg_opfs_free: (a: number, b: number) => void;
976
+ readonly opfs_init_sqlite_opfs: () => any;
977
+ readonly opfs_exists: () => number;
978
+ readonly opfs_error: () => [number, number];
979
+ readonly opfs_wipeFiles: () => any;
980
+ readonly opfs_rm: (a: number, b: number) => [number, number, number];
981
+ readonly opfs_getFileNames: () => [number, number];
982
+ readonly opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
983
+ readonly opfs_exportFile: (a: number, b: number) => [number, number, number, number];
984
+ readonly opfs_getFileCount: () => number;
985
+ readonly opfs_getCapacity: () => number;
986
+ readonly opfs_addCapacity: (a: number) => any;
987
+ readonly opfs_reduceCapacity: (a: number) => any;
993
988
  readonly __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
994
989
  readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
995
990
  readonly revokeInstallationsSignatureRequest: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => any;
@@ -1011,11 +1006,19 @@ export interface InitOutput {
1011
1006
  readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
1012
1007
  readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
1013
1008
  readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
1014
- readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
1015
- readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
1016
1009
  readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
1017
- readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
1018
- readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
1010
+ readonly __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
1011
+ readonly __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
1012
+ readonly __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
1013
+ readonly __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
1014
+ readonly __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
1015
+ readonly __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
1016
+ readonly __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
1017
+ readonly __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
1018
+ readonly __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
1019
+ readonly __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
1020
+ readonly __wbg_get_lifetime_not_before: (a: number) => bigint;
1021
+ readonly __wbg_get_lifetime_not_after: (a: number) => bigint;
1019
1022
  readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
1020
1023
  readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
1021
1024
  readonly rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
@@ -1058,10 +1061,10 @@ export interface InitOutput {
1058
1061
  readonly __externref_drop_slice: (a: number, b: number) => void;
1059
1062
  readonly __wbindgen_export_7: WebAssembly.Table;
1060
1063
  readonly __externref_table_dealloc: (a: number) => void;
1061
- readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc6b9ddcbfcc08eea: (a: number, b: number) => void;
1062
- readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd0e40dce3ea5bca1: (a: number, b: number) => void;
1063
- readonly closure5188_externref_shim: (a: number, b: number, c: any) => void;
1064
- readonly closure6115_externref_shim: (a: number, b: number, c: any, d: any) => void;
1064
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1abf41465a2d63c6: (a: number, b: number) => void;
1065
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8ef89b805ac22e85: (a: number, b: number) => void;
1066
+ readonly closure5253_externref_shim: (a: number, b: number, c: any) => void;
1067
+ readonly closure6187_externref_shim: (a: number, b: number, c: any, d: any) => void;
1065
1068
  readonly __wbindgen_start: () => void;
1066
1069
  }
1067
1070
 
@@ -215,35 +215,6 @@ function debugString(val) {
215
215
  // TODO we could test for more things here, like `Set`s and `Map`s.
216
216
  return className;
217
217
  }
218
-
219
- function passArrayJsValueToWasm0(array, malloc) {
220
- const ptr = malloc(array.length * 4, 4) >>> 0;
221
- for (let i = 0; i < array.length; i++) {
222
- const add = addToExternrefTable0(array[i]);
223
- getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
224
- }
225
- WASM_VECTOR_LEN = array.length;
226
- return ptr;
227
- }
228
-
229
- function _assertClass(instance, klass) {
230
- if (!(instance instanceof klass)) {
231
- throw new Error(`expected instance of ${klass.name}`);
232
- }
233
- }
234
-
235
- function passArray8ToWasm0(arg, malloc) {
236
- const ptr = malloc(arg.length * 1, 1) >>> 0;
237
- getUint8ArrayMemory0().set(arg, ptr / 1);
238
- WASM_VECTOR_LEN = arg.length;
239
- return ptr;
240
- }
241
-
242
- function takeFromExternrefTable0(idx) {
243
- const value = wasm.__wbindgen_export_4.get(idx);
244
- wasm.__externref_table_dealloc(idx);
245
- return value;
246
- }
247
218
  /**
248
219
  * @param {string} host
249
220
  * @param {Identifier} accountIdentifier
@@ -256,6 +227,11 @@ export function getInboxIdForIdentifier(host, accountIdentifier) {
256
227
  return ret;
257
228
  }
258
229
 
230
+ function takeFromExternrefTable0(idx) {
231
+ const value = wasm.__wbindgen_export_4.get(idx);
232
+ wasm.__externref_table_dealloc(idx);
233
+ return value;
234
+ }
259
235
  /**
260
236
  * @param {Identifier} accountIdentifier
261
237
  * @returns {string}
@@ -279,6 +255,28 @@ export function generateInboxId(accountIdentifier) {
279
255
  }
280
256
  }
281
257
 
258
+ function passArrayJsValueToWasm0(array, malloc) {
259
+ const ptr = malloc(array.length * 4, 4) >>> 0;
260
+ for (let i = 0; i < array.length; i++) {
261
+ const add = addToExternrefTable0(array[i]);
262
+ getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
263
+ }
264
+ WASM_VECTOR_LEN = array.length;
265
+ return ptr;
266
+ }
267
+
268
+ function _assertClass(instance, klass) {
269
+ if (!(instance instanceof klass)) {
270
+ throw new Error(`expected instance of ${klass.name}`);
271
+ }
272
+ }
273
+
274
+ function passArray8ToWasm0(arg, malloc) {
275
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
276
+ getUint8ArrayMemory0().set(arg, ptr / 1);
277
+ WASM_VECTOR_LEN = arg.length;
278
+ return ptr;
279
+ }
282
280
  /**
283
281
  * @param {string} host
284
282
  * @param {string} inbox_id
@@ -436,19 +434,19 @@ export function task_worker_entry_point(ptr) {
436
434
  }
437
435
 
438
436
  function __wbg_adapter_50(arg0, arg1) {
439
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc6b9ddcbfcc08eea(arg0, arg1);
437
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1abf41465a2d63c6(arg0, arg1);
440
438
  }
441
439
 
442
440
  function __wbg_adapter_53(arg0, arg1) {
443
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd0e40dce3ea5bca1(arg0, arg1);
441
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8ef89b805ac22e85(arg0, arg1);
444
442
  }
445
443
 
446
444
  function __wbg_adapter_56(arg0, arg1, arg2) {
447
- wasm.closure5188_externref_shim(arg0, arg1, arg2);
445
+ wasm.closure5253_externref_shim(arg0, arg1, arg2);
448
446
  }
449
447
 
450
- function __wbg_adapter_791(arg0, arg1, arg2, arg3) {
451
- wasm.closure6115_externref_shim(arg0, arg1, arg2, arg3);
448
+ function __wbg_adapter_793(arg0, arg1, arg2, arg3) {
449
+ wasm.closure6187_externref_shim(arg0, arg1, arg2, arg3);
452
450
  }
453
451
 
454
452
  /**
@@ -1218,7 +1216,7 @@ export class ContentTypeId {
1218
1216
  set authorityId(arg0) {
1219
1217
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1220
1218
  const len0 = WASM_VECTOR_LEN;
1221
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
1219
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
1222
1220
  }
1223
1221
  /**
1224
1222
  * @returns {string}
@@ -1929,6 +1927,29 @@ export class ConversationDebugInfo {
1929
1927
  const len0 = WASM_VECTOR_LEN;
1930
1928
  wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
1931
1929
  }
1930
+ /**
1931
+ * @returns {string}
1932
+ */
1933
+ get remoteCommitLog() {
1934
+ let deferred1_0;
1935
+ let deferred1_1;
1936
+ try {
1937
+ const ret = wasm.__wbg_get_conversationdebuginfo_remoteCommitLog(this.__wbg_ptr);
1938
+ deferred1_0 = ret[0];
1939
+ deferred1_1 = ret[1];
1940
+ return getStringFromWasm0(ret[0], ret[1]);
1941
+ } finally {
1942
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1943
+ }
1944
+ }
1945
+ /**
1946
+ * @param {string} arg0
1947
+ */
1948
+ set remoteCommitLog(arg0) {
1949
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1950
+ const len0 = WASM_VECTOR_LEN;
1951
+ wasm.__wbg_set_conversationdebuginfo_remoteCommitLog(this.__wbg_ptr, ptr0, len0);
1952
+ }
1932
1953
  /**
1933
1954
  * @returns {bigint}
1934
1955
  */
@@ -3397,27 +3418,27 @@ export class Lifetime {
3397
3418
  * @returns {bigint}
3398
3419
  */
3399
3420
  get not_before() {
3400
- const ret = wasm.__wbg_get_lifetime_not_before(this.__wbg_ptr);
3421
+ const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
3401
3422
  return BigInt.asUintN(64, ret);
3402
3423
  }
3403
3424
  /**
3404
3425
  * @param {bigint} arg0
3405
3426
  */
3406
3427
  set not_before(arg0) {
3407
- wasm.__wbg_set_lifetime_not_before(this.__wbg_ptr, arg0);
3428
+ wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
3408
3429
  }
3409
3430
  /**
3410
3431
  * @returns {bigint}
3411
3432
  */
3412
3433
  get not_after() {
3413
- const ret = wasm.__wbg_get_lifetime_not_after(this.__wbg_ptr);
3434
+ const ret = wasm.__wbg_get_apistats_fetch_key_package(this.__wbg_ptr);
3414
3435
  return BigInt.asUintN(64, ret);
3415
3436
  }
3416
3437
  /**
3417
3438
  * @param {bigint} arg0
3418
3439
  */
3419
3440
  set not_after(arg0) {
3420
- wasm.__wbg_set_lifetime_not_after(this.__wbg_ptr, arg0);
3441
+ wasm.__wbg_set_apistats_fetch_key_package(this.__wbg_ptr, arg0);
3421
3442
  }
3422
3443
  }
3423
3444
 
@@ -4486,7 +4507,7 @@ export class Reaction {
4486
4507
  set referenceInboxId(arg0) {
4487
4508
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4488
4509
  const len0 = WASM_VECTOR_LEN;
4489
- wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
4510
+ wasm.__wbg_set_reaction_referenceInboxId(this.__wbg_ptr, ptr0, len0);
4490
4511
  }
4491
4512
  /**
4492
4513
  * @returns {ReactionAction}
@@ -5380,7 +5401,7 @@ function __wbg_get_imports() {
5380
5401
  const a = state0.a;
5381
5402
  state0.a = 0;
5382
5403
  try {
5383
- return __wbg_adapter_791(a, state0.b, arg0, arg1);
5404
+ return __wbg_adapter_793(a, state0.b, arg0, arg1);
5384
5405
  } finally {
5385
5406
  state0.a = a;
5386
5407
  }
@@ -5488,22 +5509,22 @@ function __wbg_get_imports() {
5488
5509
  const ret = arg0.now();
5489
5510
  return ret;
5490
5511
  };
5491
- imports.wbg.__wbg_onclose_7d18d767375a80e8 = function(arg0) {
5512
+ imports.wbg.__wbg_onclose_76766e780ea96fba = function(arg0) {
5492
5513
  arg0.on_close();
5493
5514
  };
5494
- imports.wbg.__wbg_onconsentupdate_f0714066eb67dbfc = function(arg0, arg1) {
5515
+ imports.wbg.__wbg_onconsentupdate_416e66cf95f2e49b = function(arg0, arg1) {
5495
5516
  arg0.on_consent_update(arg1);
5496
5517
  };
5497
- imports.wbg.__wbg_onconversation_8944d536d3d6df1a = function(arg0, arg1) {
5518
+ imports.wbg.__wbg_onconversation_8324b5fb5282c6d8 = function(arg0, arg1) {
5498
5519
  arg0.on_conversation(Conversation.__wrap(arg1));
5499
5520
  };
5500
- imports.wbg.__wbg_onerror_375f7d83c5a2f377 = function(arg0, arg1) {
5521
+ imports.wbg.__wbg_onerror_be5b67d0e20e80a1 = function(arg0, arg1) {
5501
5522
  arg0.on_error(arg1);
5502
5523
  };
5503
- imports.wbg.__wbg_onmessage_1827d39fdf94fe31 = function(arg0, arg1) {
5524
+ imports.wbg.__wbg_onmessage_3d645440ed8fe9d3 = function(arg0, arg1) {
5504
5525
  arg0.on_message(Message.__wrap(arg1));
5505
5526
  };
5506
- imports.wbg.__wbg_onuserpreferenceupdate_7ecb525805cd1aac = function(arg0, arg1, arg2) {
5527
+ imports.wbg.__wbg_onuserpreferenceupdate_a76ead094c66aefe = function(arg0, arg1, arg2) {
5507
5528
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
5508
5529
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
5509
5530
  arg0.on_user_preference_update(v0);
@@ -5792,16 +5813,16 @@ function __wbg_get_imports() {
5792
5813
  const ret = false;
5793
5814
  return ret;
5794
5815
  };
5795
- imports.wbg.__wbindgen_closure_wrapper20235 = function(arg0, arg1, arg2) {
5796
- const ret = makeMutClosure(arg0, arg1, 4891, __wbg_adapter_50);
5816
+ imports.wbg.__wbindgen_closure_wrapper20652 = function(arg0, arg1, arg2) {
5817
+ const ret = makeMutClosure(arg0, arg1, 4952, __wbg_adapter_50);
5797
5818
  return ret;
5798
5819
  };
5799
- imports.wbg.__wbindgen_closure_wrapper22355 = function(arg0, arg1, arg2) {
5800
- const ret = makeMutClosure(arg0, arg1, 5165, __wbg_adapter_53);
5820
+ imports.wbg.__wbindgen_closure_wrapper22799 = function(arg0, arg1, arg2) {
5821
+ const ret = makeMutClosure(arg0, arg1, 5230, __wbg_adapter_53);
5801
5822
  return ret;
5802
5823
  };
5803
- imports.wbg.__wbindgen_closure_wrapper23010 = function(arg0, arg1, arg2) {
5804
- const ret = makeMutClosure(arg0, arg1, 5189, __wbg_adapter_56);
5824
+ imports.wbg.__wbindgen_closure_wrapper23454 = function(arg0, arg1, arg2) {
5825
+ const ret = makeMutClosure(arg0, arg1, 5254, __wbg_adapter_56);
5805
5826
  return ret;
5806
5827
  };
5807
5828
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -1,6 +1,13 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
5
+ export const generateInboxId: (a: any) => [number, number, number, number];
6
+ export const __wbg_streamcloser_free: (a: number, b: number) => void;
7
+ export const streamcloser_end: (a: number) => void;
8
+ export const streamcloser_endAndWait: (a: number) => any;
9
+ export const streamcloser_waitForReady: (a: number) => any;
10
+ export const streamcloser_isClosed: (a: number) => number;
4
11
  export const __wbg_listconversationsoptions_free: (a: number, b: number) => void;
5
12
  export const __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
6
13
  export const __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
@@ -28,6 +35,8 @@ export const __wbg_get_conversationdebuginfo_isCommitLogForked: (a: number) => n
28
35
  export const __wbg_set_conversationdebuginfo_isCommitLogForked: (a: number, b: number) => void;
29
36
  export const __wbg_get_conversationdebuginfo_localCommitLog: (a: number) => [number, number];
30
37
  export const __wbg_set_conversationdebuginfo_localCommitLog: (a: number, b: number, c: number) => void;
38
+ export const __wbg_get_conversationdebuginfo_remoteCommitLog: (a: number) => [number, number];
39
+ export const __wbg_set_conversationdebuginfo_remoteCommitLog: (a: number, b: number, c: number) => void;
31
40
  export const __wbg_get_conversationdebuginfo_cursor: (a: number) => bigint;
32
41
  export const __wbg_set_conversationdebuginfo_cursor: (a: number, b: bigint) => void;
33
42
  export const __wbg_creategroupoptions_free: (a: number, b: number) => void;
@@ -75,6 +84,28 @@ export const conversations_stream: (a: number, b: any, c: number) => [number, nu
75
84
  export const conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
76
85
  export const conversations_streamConsent: (a: number, b: any) => [number, number, number];
77
86
  export const conversations_streamPreferences: (a: number, b: any) => [number, number, number];
87
+ export const __wbg_contenttypeid_free: (a: number, b: number) => void;
88
+ export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
89
+ export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
90
+ export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
91
+ export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
92
+ export const __wbg_get_contenttypeid_versionMajor: (a: number) => number;
93
+ export const __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
94
+ export const __wbg_get_contenttypeid_versionMinor: (a: number) => number;
95
+ export const __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
96
+ export const contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
97
+ export const __wbg_encodedcontent_free: (a: number, b: number) => void;
98
+ export const __wbg_get_encodedcontent_type: (a: number) => number;
99
+ export const __wbg_set_encodedcontent_type: (a: number, b: number) => void;
100
+ export const __wbg_get_encodedcontent_parameters: (a: number) => any;
101
+ export const __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
102
+ export const __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
103
+ export const __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
104
+ export const __wbg_get_encodedcontent_compression: (a: number) => number;
105
+ export const __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
106
+ export const __wbg_get_encodedcontent_content: (a: number) => any;
107
+ export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
108
+ export const encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
78
109
  export const __wbg_listmessagesoptions_free: (a: number, b: number) => void;
79
110
  export const __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
80
111
  export const __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
@@ -120,52 +151,6 @@ export const __wbg_get_messagedisappearingsettings_inNs: (a: number) => bigint;
120
151
  export const __wbg_get_hmackey_epoch: (a: number) => bigint;
121
152
  export const __wbg_get_message_sentAtNs: (a: number) => bigint;
122
153
  export const __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
123
- export const __wbg_apistats_free: (a: number, b: number) => void;
124
- export const __wbg_get_apistats_upload_key_package: (a: number) => bigint;
125
- export const __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
126
- export const __wbg_get_apistats_fetch_key_package: (a: number) => bigint;
127
- export const __wbg_set_apistats_fetch_key_package: (a: number, b: bigint) => void;
128
- export const __wbg_get_apistats_send_group_messages: (a: number) => bigint;
129
- export const __wbg_set_apistats_send_group_messages: (a: number, b: bigint) => void;
130
- export const __wbg_get_apistats_send_welcome_messages: (a: number) => bigint;
131
- export const __wbg_set_apistats_send_welcome_messages: (a: number, b: bigint) => void;
132
- export const __wbg_get_apistats_query_group_messages: (a: number) => bigint;
133
- export const __wbg_set_apistats_query_group_messages: (a: number, b: bigint) => void;
134
- export const __wbg_get_apistats_query_welcome_messages: (a: number) => bigint;
135
- export const __wbg_set_apistats_query_welcome_messages: (a: number, b: bigint) => void;
136
- export const __wbg_get_apistats_subscribe_messages: (a: number) => bigint;
137
- export const __wbg_set_apistats_subscribe_messages: (a: number, b: bigint) => void;
138
- export const __wbg_get_apistats_subscribe_welcomes: (a: number) => bigint;
139
- export const __wbg_set_apistats_subscribe_welcomes: (a: number, b: bigint) => void;
140
- export const __wbg_identitystats_free: (a: number, b: number) => void;
141
- export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
142
- export const generateInboxId: (a: any) => [number, number, number, number];
143
- export const __wbg_opfs_free: (a: number, b: number) => void;
144
- export const opfs_init_sqlite_opfs: () => any;
145
- export const opfs_exists: () => number;
146
- export const opfs_error: () => [number, number];
147
- export const opfs_wipeFiles: () => any;
148
- export const opfs_rm: (a: number, b: number) => [number, number, number];
149
- export const opfs_getFileNames: () => [number, number];
150
- export const opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
151
- export const opfs_exportFile: (a: number, b: number) => [number, number, number, number];
152
- export const opfs_getFileCount: () => number;
153
- export const opfs_getCapacity: () => number;
154
- export const opfs_addCapacity: (a: number) => any;
155
- export const opfs_reduceCapacity: (a: number) => any;
156
- export const __wbg_streamcloser_free: (a: number, b: number) => void;
157
- export const streamcloser_end: (a: number) => void;
158
- export const streamcloser_endAndWait: (a: number) => any;
159
- export const streamcloser_waitForReady: (a: number) => any;
160
- export const streamcloser_isClosed: (a: number) => number;
161
- export const __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
162
- export const __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
163
- export const __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
164
- export const __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
165
- export const __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
166
- export const __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
167
- export const __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
168
- export const __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
169
154
  export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
170
155
  export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
171
156
  export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
@@ -228,6 +213,8 @@ export const client_getConsentState: (a: number, b: number, c: number, d: number
228
213
  export const conversation_consentState: (a: number) => [number, number, number];
229
214
  export const conversation_updateConsentState: (a: number, b: number) => [number, number];
230
215
  export const __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
216
+ export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
217
+ export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
231
218
  export const __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
232
219
  export const __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
233
220
  export const __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
@@ -252,6 +239,7 @@ export const decodeMultiRemoteAttachment: (a: any) => [number, number, number];
252
239
  export const __wbg_reaction_free: (a: number, b: number) => void;
253
240
  export const __wbg_get_reaction_reference: (a: number) => [number, number];
254
241
  export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
242
+ export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
255
243
  export const __wbg_get_reaction_action: (a: number) => number;
256
244
  export const __wbg_set_reaction_action: (a: number, b: number) => void;
257
245
  export const __wbg_get_reaction_content: (a: number) => [number, number];
@@ -318,27 +306,24 @@ export const conversation_isMessageDisappearingEnabled: (a: number) => [number,
318
306
  export const conversation_getHmacKeys: (a: number) => [number, number, number];
319
307
  export const conversation_getDebugInfo: (a: number) => any;
320
308
  export const conversation_findDuplicateDms: (a: number) => any;
321
- export const __wbg_contenttypeid_free: (a: number, b: number) => void;
322
- export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
323
- export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
324
- export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
325
- export const __wbg_get_contenttypeid_versionMajor: (a: number) => number;
326
- export const __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
327
- export const __wbg_get_contenttypeid_versionMinor: (a: number) => number;
328
- export const __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
329
- export const contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
330
- export const __wbg_encodedcontent_free: (a: number, b: number) => void;
331
- export const __wbg_get_encodedcontent_type: (a: number) => number;
332
- export const __wbg_set_encodedcontent_type: (a: number, b: number) => void;
333
- export const __wbg_get_encodedcontent_parameters: (a: number) => any;
334
- export const __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
335
- export const __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
336
- export const __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
337
- export const __wbg_get_encodedcontent_compression: (a: number) => number;
338
- export const __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
339
- export const __wbg_get_encodedcontent_content: (a: number) => any;
340
- export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
341
- export const encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
309
+ export const __wbg_apistats_free: (a: number, b: number) => void;
310
+ export const __wbg_get_apistats_upload_key_package: (a: number) => bigint;
311
+ export const __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
312
+ export const __wbg_get_apistats_fetch_key_package: (a: number) => bigint;
313
+ export const __wbg_set_apistats_fetch_key_package: (a: number, b: bigint) => void;
314
+ export const __wbg_get_apistats_send_group_messages: (a: number) => bigint;
315
+ export const __wbg_set_apistats_send_group_messages: (a: number, b: bigint) => void;
316
+ export const __wbg_get_apistats_send_welcome_messages: (a: number) => bigint;
317
+ export const __wbg_set_apistats_send_welcome_messages: (a: number, b: bigint) => void;
318
+ export const __wbg_get_apistats_query_group_messages: (a: number) => bigint;
319
+ export const __wbg_set_apistats_query_group_messages: (a: number, b: bigint) => void;
320
+ export const __wbg_get_apistats_query_welcome_messages: (a: number) => bigint;
321
+ export const __wbg_set_apistats_query_welcome_messages: (a: number, b: bigint) => void;
322
+ export const __wbg_get_apistats_subscribe_messages: (a: number) => bigint;
323
+ export const __wbg_set_apistats_subscribe_messages: (a: number, b: bigint) => void;
324
+ export const __wbg_get_apistats_subscribe_welcomes: (a: number) => bigint;
325
+ export const __wbg_set_apistats_subscribe_welcomes: (a: number, b: bigint) => void;
326
+ export const __wbg_identitystats_free: (a: number, b: number) => void;
342
327
  export const __wbg_installation_free: (a: number, b: number) => void;
343
328
  export const __wbg_get_installation_bytes: (a: number) => any;
344
329
  export const __wbg_set_installation_bytes: (a: number, b: any) => void;
@@ -362,14 +347,23 @@ export const __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void
362
347
  export const __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
363
348
  export const __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
364
349
  export const __wbg_lifetime_free: (a: number, b: number) => void;
365
- export const __wbg_get_lifetime_not_before: (a: number) => bigint;
366
- export const __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
367
- export const __wbg_get_lifetime_not_after: (a: number) => bigint;
368
- export const __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
369
350
  export const inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
370
351
  export const client_inboxState: (a: number, b: number) => any;
371
352
  export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
372
353
  export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
354
+ export const __wbg_opfs_free: (a: number, b: number) => void;
355
+ export const opfs_init_sqlite_opfs: () => any;
356
+ export const opfs_exists: () => number;
357
+ export const opfs_error: () => [number, number];
358
+ export const opfs_wipeFiles: () => any;
359
+ export const opfs_rm: (a: number, b: number) => [number, number, number];
360
+ export const opfs_getFileNames: () => [number, number];
361
+ export const opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
362
+ export const opfs_exportFile: (a: number, b: number) => [number, number, number, number];
363
+ export const opfs_getFileCount: () => number;
364
+ export const opfs_getCapacity: () => number;
365
+ export const opfs_addCapacity: (a: number) => any;
366
+ export const opfs_reduceCapacity: (a: number) => any;
373
367
  export const __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
374
368
  export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
375
369
  export const revokeInstallationsSignatureRequest: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => any;
@@ -391,11 +385,19 @@ export const client_signWithInstallationKey: (a: number, b: number, c: number) =
391
385
  export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
392
386
  export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
393
387
  export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
394
- export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
395
- export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
396
388
  export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
397
- export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
398
- export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
389
+ export const __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
390
+ export const __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
391
+ export const __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
392
+ export const __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
393
+ export const __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
394
+ export const __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
395
+ export const __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
396
+ export const __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
397
+ export const __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
398
+ export const __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
399
+ export const __wbg_get_lifetime_not_before: (a: number) => bigint;
400
+ export const __wbg_get_lifetime_not_after: (a: number) => bigint;
399
401
  export const rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
400
402
  export const rust_zstd_wasm_shim_malloc: (a: number) => number;
401
403
  export const rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
@@ -438,8 +440,8 @@ export const __wbindgen_free: (a: number, b: number, c: number) => void;
438
440
  export const __externref_drop_slice: (a: number, b: number) => void;
439
441
  export const __wbindgen_export_7: WebAssembly.Table;
440
442
  export const __externref_table_dealloc: (a: number) => void;
441
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc6b9ddcbfcc08eea: (a: number, b: number) => void;
442
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd0e40dce3ea5bca1: (a: number, b: number) => void;
443
- export const closure5188_externref_shim: (a: number, b: number, c: any) => void;
444
- export const closure6115_externref_shim: (a: number, b: number, c: any, d: any) => void;
443
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1abf41465a2d63c6: (a: number, b: number) => void;
444
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8ef89b805ac22e85: (a: number, b: number) => void;
445
+ export const closure5253_externref_shim: (a: number, b: number, c: any) => void;
446
+ export const closure6187_externref_shim: (a: number, b: number, c: any, d: any) => void;
445
447
  export const __wbindgen_start: () => void;
package/dist/version.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "branch": "cv/v1.4-rc2",
3
- "version": "a47100a",
4
- "date": "2025-08-17 23:07:54 +0000"
2
+ "branch": "cv/test-1.4.1-release",
3
+ "version": "c78b650",
4
+ "date": "2025-09-05 07:46:41 +0000"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmtp/wasm-bindings",
3
- "version": "1.4.0-rc2",
3
+ "version": "1.5.0-dev.c78b650",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "WASM bindings for the libXMTP rust library",