@xmtp/wasm-bindings 1.2.3 → 1.2.5

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.
@@ -1,15 +1,16 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function createClient(host: string, inbox_id: string, account_identifier: Identifier, db_path?: string | null, encryption_key?: Uint8Array | null, device_sync_server_url?: string | null, device_sync_worker_mode?: DeviceSyncWorkerMode | null, log_options?: LogOptions | null, allow_offline?: boolean | null): Promise<Client>;
4
3
  export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
5
4
  export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
6
5
  export function encodeReaction(reaction: Reaction): Uint8Array;
7
6
  export function decodeReaction(bytes: Uint8Array): Reaction;
7
+ export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
8
+ export function generateInboxId(accountIdentifier: Identifier): string;
9
+ export function inboxStateFromInboxIds(host: string, inbox_ids: string[]): Promise<InboxState[]>;
8
10
  export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
9
11
  export function revokeInstallationsSignatureRequest(host: string, recovery_identifier: Identifier, inbox_id: string, installation_ids: Uint8Array[]): Promise<SignatureRequestHandle>;
10
12
  export function applySignatureRequest(host: string, signature_request: SignatureRequestHandle): Promise<void>;
11
- export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
12
- export function generateInboxId(accountIdentifier: Identifier): string;
13
+ export function createClient(host: string, inbox_id: string, account_identifier: Identifier, db_path?: string | null, encryption_key?: Uint8Array | null, device_sync_server_url?: string | null, device_sync_worker_mode?: DeviceSyncWorkerMode | null, log_options?: LogOptions | null, allow_offline?: boolean | null): Promise<Client>;
13
14
  export enum ConsentEntityType {
14
15
  GroupId = 0,
15
16
  InboxId = 1,
@@ -130,20 +131,8 @@ export class ApiStats {
130
131
  export class Client {
131
132
  private constructor();
132
133
  free(): void;
133
- /**
134
- * Output booleans should be zipped with the index of input identifiers
135
- */
136
- canMessage(account_identifiers: Identifier[]): Promise<any>;
137
- sendSyncRequest(): Promise<void>;
138
- findInboxIdByIdentifier(identifier: Identifier): Promise<string | undefined>;
139
- inboxStateFromInboxIds(inbox_ids: string[], refresh_from_network: boolean): Promise<InboxState[]>;
140
- conversations(): Conversations;
141
- syncPreferences(): Promise<number>;
142
- apiStatistics(): ApiStats;
143
- apiIdentityStatistics(): IdentityStats;
144
- apiAggregateStatistics(): string;
145
- clearAllStatistics(): void;
146
- uploadDebugArchive(server_url: string): Promise<string>;
134
+ setConsentStates(records: Consent[]): Promise<void>;
135
+ getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
147
136
  /**
148
137
  *
149
138
  * * Get the client's inbox state.
@@ -172,8 +161,20 @@ export class Client {
172
161
  registerIdentity(signature_request: SignatureRequestHandle): Promise<void>;
173
162
  signWithInstallationKey(signature_text: string): Uint8Array;
174
163
  verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
175
- setConsentStates(records: Consent[]): Promise<void>;
176
- getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
164
+ /**
165
+ * Output booleans should be zipped with the index of input identifiers
166
+ */
167
+ canMessage(account_identifiers: Identifier[]): Promise<any>;
168
+ sendSyncRequest(): Promise<void>;
169
+ findInboxIdByIdentifier(identifier: Identifier): Promise<string | undefined>;
170
+ inboxStateFromInboxIds(inbox_ids: string[], refresh_from_network: boolean): Promise<InboxState[]>;
171
+ conversations(): Conversations;
172
+ syncPreferences(): Promise<number>;
173
+ apiStatistics(): ApiStats;
174
+ apiIdentityStatistics(): IdentityStats;
175
+ apiAggregateStatistics(): string;
176
+ clearAllStatistics(): void;
177
+ uploadDebugArchive(server_url: string): Promise<string>;
177
178
  readonly accountIdentifier: Identifier;
178
179
  readonly inboxId: string;
179
180
  readonly isRegistered: boolean;
@@ -198,6 +199,8 @@ export class ContentTypeId {
198
199
  export class Conversation {
199
200
  private constructor();
200
201
  free(): void;
202
+ consentState(): ConsentState;
203
+ updateConsentState(state: ConsentState): void;
201
204
  id(): string;
202
205
  send(encoded_content: EncodedContent): Promise<string>;
203
206
  /**
@@ -246,8 +249,6 @@ export class Conversation {
246
249
  getHmacKeys(): any;
247
250
  getDebugInfo(): Promise<any>;
248
251
  findDuplicateDms(): Promise<Conversation[]>;
249
- consentState(): ConsentState;
250
- updateConsentState(state: ConsentState): void;
251
252
  }
252
253
  export class ConversationDebugInfo {
253
254
  private constructor();
@@ -608,54 +609,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
608
609
 
609
610
  export interface InitOutput {
610
611
  readonly memory: WebAssembly.Memory;
611
- readonly __wbg_client_free: (a: number, b: number) => void;
612
- readonly __wbg_logoptions_free: (a: number, b: number) => void;
613
- readonly __wbg_get_logoptions_structured: (a: number) => number;
614
- readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
615
- readonly __wbg_get_logoptions_performance: (a: number) => number;
616
- readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
617
- readonly __wbg_get_logoptions_level: (a: number) => number;
618
- readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
619
- readonly logoptions_new: (a: number, b: number, c: number) => number;
620
- readonly createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => any;
621
- readonly client_accountIdentifier: (a: number) => any;
622
- readonly client_inboxId: (a: number) => [number, number];
623
- readonly client_isRegistered: (a: number) => number;
624
- readonly client_installationId: (a: number) => [number, number];
625
- readonly client_installationIdBytes: (a: number) => any;
626
- readonly client_canMessage: (a: number, b: number, c: number) => any;
627
- readonly client_sendSyncRequest: (a: number) => any;
628
- readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
629
- readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
630
- readonly client_conversations: (a: number) => number;
631
- readonly client_syncPreferences: (a: number) => any;
632
- readonly client_apiStatistics: (a: number) => number;
633
- readonly client_apiIdentityStatistics: (a: number) => number;
634
- readonly client_apiAggregateStatistics: (a: number) => [number, number];
635
- readonly client_clearAllStatistics: (a: number) => void;
636
- readonly client_uploadDebugArchive: (a: number, b: number, c: number) => any;
637
- readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
638
- readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
639
- readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
640
- readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
641
- readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
642
- readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
643
- readonly __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
644
- readonly __wbg_get_contenttypeid_versionMinor: (a: number) => number;
645
- readonly __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
646
- readonly contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
647
- readonly __wbg_encodedcontent_free: (a: number, b: number) => void;
648
- readonly __wbg_get_encodedcontent_type: (a: number) => number;
649
- readonly __wbg_set_encodedcontent_type: (a: number, b: number) => void;
650
- readonly __wbg_get_encodedcontent_parameters: (a: number) => any;
651
- readonly __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
652
- readonly __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
653
- readonly __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
654
- readonly __wbg_get_encodedcontent_compression: (a: number) => number;
655
- readonly __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
656
- readonly __wbg_get_encodedcontent_content: (a: number) => any;
657
- readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
658
- readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
659
612
  readonly __wbg_apistats_free: (a: number, b: number) => void;
660
613
  readonly __wbg_get_apistats_upload_key_package: (a: number) => bigint;
661
614
  readonly __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
@@ -682,6 +635,18 @@ export interface InitOutput {
682
635
  readonly __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
683
636
  readonly __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
684
637
  readonly __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
638
+ readonly __wbg_consent_free: (a: number, b: number) => void;
639
+ readonly __wbg_get_consent_entityType: (a: number) => number;
640
+ readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
641
+ readonly __wbg_get_consent_state: (a: number) => number;
642
+ readonly __wbg_set_consent_state: (a: number, b: number) => void;
643
+ readonly __wbg_get_consent_entity: (a: number) => [number, number];
644
+ readonly __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
645
+ readonly consent_new: (a: number, b: number, c: number, d: number) => number;
646
+ readonly client_setConsentStates: (a: number, b: number, c: number) => any;
647
+ readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
648
+ readonly conversation_consentState: (a: number) => [number, number, number];
649
+ readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
685
650
  readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
686
651
  readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
687
652
  readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
@@ -720,8 +685,6 @@ export interface InitOutput {
720
685
  readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
721
686
  readonly groupmetadata_conversationType: (a: number) => [number, number];
722
687
  readonly __wbg_groupmember_free: (a: number, b: number) => void;
723
- readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
724
- readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
725
688
  readonly __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
726
689
  readonly __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
727
690
  readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
@@ -835,6 +798,8 @@ export interface InitOutput {
835
798
  readonly conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
836
799
  readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
837
800
  readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
801
+ readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
802
+ readonly generateInboxId: (a: any) => [number, number, number, number];
838
803
  readonly __wbg_installation_free: (a: number, b: number) => void;
839
804
  readonly __wbg_get_installation_bytes: (a: number) => any;
840
805
  readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
@@ -857,6 +822,7 @@ export interface InitOutput {
857
822
  readonly __wbg_lifetime_free: (a: number, b: number) => void;
858
823
  readonly __wbg_get_lifetime_not_after: (a: number) => bigint;
859
824
  readonly __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
825
+ readonly inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
860
826
  readonly client_inboxState: (a: number, b: number) => any;
861
827
  readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
862
828
  readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
@@ -913,10 +879,12 @@ export interface InitOutput {
913
879
  readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
914
880
  readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
915
881
  readonly __wbg_get_reaction_reference: (a: number) => [number, number];
882
+ readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
916
883
  readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
917
884
  readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
918
885
  readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
919
886
  readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
887
+ readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
920
888
  readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
921
889
  readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
922
890
  readonly __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
@@ -937,40 +905,39 @@ export interface InitOutput {
937
905
  readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
938
906
  readonly __wbg_get_keypackagestatus_lifetime: (a: number) => number;
939
907
  readonly __wbg_hmackey_free: (a: number, b: number) => void;
940
- readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
941
908
  readonly __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
909
+ readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
942
910
  readonly __wbg_streamcloser_free: (a: number, b: number) => void;
943
911
  readonly streamcloser_end: (a: number) => void;
944
912
  readonly streamcloser_endAndWait: (a: number) => any;
945
913
  readonly streamcloser_waitForReady: (a: number) => any;
946
914
  readonly streamcloser_isClosed: (a: number) => number;
947
- readonly __wbg_consent_free: (a: number, b: number) => void;
948
- readonly __wbg_get_consent_entityType: (a: number) => number;
949
- readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
950
- readonly __wbg_get_consent_state: (a: number) => number;
951
- readonly __wbg_set_consent_state: (a: number, b: number) => void;
952
- readonly __wbg_get_consent_entity: (a: number) => [number, number];
953
- readonly __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
954
- readonly consent_new: (a: number, b: number, c: number, d: number) => number;
955
- readonly client_setConsentStates: (a: number, b: number, c: number) => any;
956
- readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
957
- readonly conversation_consentState: (a: number) => [number, number, number];
958
- readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
959
- readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
960
- readonly generateInboxId: (a: any) => [number, number, number, number];
961
- readonly __wbg_opfs_free: (a: number, b: number) => void;
962
- readonly opfs_init_sqlite_opfs: () => any;
963
- readonly opfs_exists: () => number;
964
- readonly opfs_error: () => [number, number];
965
- readonly opfs_wipeFiles: () => any;
966
- readonly opfs_rm: (a: number, b: number) => [number, number, number];
967
- readonly opfs_getFileNames: () => [number, number];
968
- readonly opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
969
- readonly opfs_exportFile: (a: number, b: number) => [number, number, number, number];
970
- readonly opfs_getFileCount: () => number;
971
- readonly opfs_getCapacity: () => number;
972
- readonly opfs_addCapacity: (a: number) => any;
973
- readonly opfs_reduceCapacity: (a: number) => any;
915
+ readonly __wbg_client_free: (a: number, b: number) => void;
916
+ readonly __wbg_logoptions_free: (a: number, b: number) => void;
917
+ readonly __wbg_get_logoptions_structured: (a: number) => number;
918
+ readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
919
+ readonly __wbg_get_logoptions_performance: (a: number) => number;
920
+ readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
921
+ readonly __wbg_get_logoptions_level: (a: number) => number;
922
+ readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
923
+ readonly logoptions_new: (a: number, b: number, c: number) => number;
924
+ readonly createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => any;
925
+ readonly client_accountIdentifier: (a: number) => any;
926
+ readonly client_inboxId: (a: number) => [number, number];
927
+ readonly client_isRegistered: (a: number) => number;
928
+ readonly client_installationId: (a: number) => [number, number];
929
+ readonly client_installationIdBytes: (a: number) => any;
930
+ readonly client_canMessage: (a: number, b: number, c: number) => any;
931
+ readonly client_sendSyncRequest: (a: number) => any;
932
+ readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
933
+ readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
934
+ readonly client_conversations: (a: number) => number;
935
+ readonly client_syncPreferences: (a: number) => any;
936
+ readonly client_apiStatistics: (a: number) => number;
937
+ readonly client_apiIdentityStatistics: (a: number) => number;
938
+ readonly client_apiAggregateStatistics: (a: number) => [number, number];
939
+ readonly client_clearAllStatistics: (a: number) => void;
940
+ readonly client_uploadDebugArchive: (a: number, b: number, c: number) => any;
974
941
  readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
975
942
  readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
976
943
  readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
@@ -992,6 +959,41 @@ export interface InitOutput {
992
959
  readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
993
960
  readonly grouppermissions_policyType: (a: number) => [number, number, number];
994
961
  readonly grouppermissions_policySet: (a: number) => [number, number, number];
962
+ readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
963
+ readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
964
+ readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
965
+ readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
966
+ readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
967
+ readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
968
+ readonly __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
969
+ readonly __wbg_get_contenttypeid_versionMinor: (a: number) => number;
970
+ readonly __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
971
+ readonly contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
972
+ readonly __wbg_encodedcontent_free: (a: number, b: number) => void;
973
+ readonly __wbg_get_encodedcontent_type: (a: number) => number;
974
+ readonly __wbg_set_encodedcontent_type: (a: number, b: number) => void;
975
+ readonly __wbg_get_encodedcontent_parameters: (a: number) => any;
976
+ readonly __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
977
+ readonly __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
978
+ readonly __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
979
+ readonly __wbg_get_encodedcontent_compression: (a: number) => number;
980
+ readonly __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
981
+ readonly __wbg_get_encodedcontent_content: (a: number) => any;
982
+ readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
983
+ readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
984
+ readonly __wbg_opfs_free: (a: number, b: number) => void;
985
+ readonly opfs_init_sqlite_opfs: () => any;
986
+ readonly opfs_exists: () => number;
987
+ readonly opfs_error: () => [number, number];
988
+ readonly opfs_wipeFiles: () => any;
989
+ readonly opfs_rm: (a: number, b: number) => [number, number, number];
990
+ readonly opfs_getFileNames: () => [number, number];
991
+ readonly opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
992
+ readonly opfs_exportFile: (a: number, b: number) => [number, number, number, number];
993
+ readonly opfs_getFileCount: () => number;
994
+ readonly opfs_getCapacity: () => number;
995
+ readonly opfs_addCapacity: (a: number) => any;
996
+ readonly opfs_reduceCapacity: (a: number) => any;
995
997
  readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
996
998
  readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
997
999
  readonly rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
@@ -1033,11 +1035,11 @@ export interface InitOutput {
1033
1035
  readonly __externref_drop_slice: (a: number, b: number) => void;
1034
1036
  readonly __wbindgen_export_7: WebAssembly.Table;
1035
1037
  readonly __externref_table_dealloc: (a: number) => void;
1036
- readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc094ec3bdf8c16b7: (a: number, b: number) => void;
1037
- readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0eb99f8c2f057fcc: (a: number, b: number) => void;
1038
- readonly closure4603_externref_shim: (a: number, b: number, c: any) => void;
1039
- readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h232599d7dcf89d52: (a: number, b: number) => void;
1040
- readonly closure5579_externref_shim: (a: number, b: number, c: any, d: any) => void;
1038
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7e9b1d0be1909a89: (a: number, b: number) => void;
1039
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd7b727abd95da937: (a: number, b: number) => void;
1040
+ readonly closure4617_externref_shim: (a: number, b: number, c: any) => void;
1041
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc6500cfda1685f15: (a: number, b: number) => void;
1042
+ readonly closure5575_externref_shim: (a: number, b: number, c: any, d: any) => void;
1041
1043
  readonly __wbindgen_start: () => void;
1042
1044
  }
1043
1045
 
@@ -216,41 +216,6 @@ function debugString(val) {
216
216
  return className;
217
217
  }
218
218
 
219
- function _assertClass(instance, klass) {
220
- if (!(instance instanceof klass)) {
221
- throw new Error(`expected instance of ${klass.name}`);
222
- }
223
- }
224
- /**
225
- * @param {string} host
226
- * @param {string} inbox_id
227
- * @param {Identifier} account_identifier
228
- * @param {string | null} [db_path]
229
- * @param {Uint8Array | null} [encryption_key]
230
- * @param {string | null} [device_sync_server_url]
231
- * @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
232
- * @param {LogOptions | null} [log_options]
233
- * @param {boolean | null} [allow_offline]
234
- * @returns {Promise<Client>}
235
- */
236
- export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline) {
237
- const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
238
- const len0 = WASM_VECTOR_LEN;
239
- const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
240
- const len1 = WASM_VECTOR_LEN;
241
- var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
242
- var len2 = WASM_VECTOR_LEN;
243
- var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
244
- var len3 = WASM_VECTOR_LEN;
245
- let ptr4 = 0;
246
- if (!isLikeNone(log_options)) {
247
- _assertClass(log_options, LogOptions);
248
- ptr4 = log_options.__destroy_into_raw();
249
- }
250
- const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, isLikeNone(device_sync_worker_mode) ? 3 : ((__wbindgen_enum_DeviceSyncWorkerMode.indexOf(device_sync_worker_mode) + 1 || 3) - 1), ptr4, isLikeNone(allow_offline) ? 0xFFFFFF : allow_offline ? 1 : 0);
251
- return ret;
252
- }
253
-
254
219
  function passArrayJsValueToWasm0(array, malloc) {
255
220
  const ptr = malloc(array.length * 4, 4) >>> 0;
256
221
  for (let i = 0; i < array.length; i++) {
@@ -266,6 +231,12 @@ function takeFromExternrefTable0(idx) {
266
231
  wasm.__externref_table_dealloc(idx);
267
232
  return value;
268
233
  }
234
+
235
+ function _assertClass(instance, klass) {
236
+ if (!(instance instanceof klass)) {
237
+ throw new Error(`expected instance of ${klass.name}`);
238
+ }
239
+ }
269
240
  /**
270
241
  * @param {MultiRemoteAttachment} multiRemoteAttachment
271
242
  * @returns {Uint8Array}
@@ -324,6 +295,55 @@ function passArray8ToWasm0(arg, malloc) {
324
295
  WASM_VECTOR_LEN = arg.length;
325
296
  return ptr;
326
297
  }
298
+ /**
299
+ * @param {string} host
300
+ * @param {Identifier} accountIdentifier
301
+ * @returns {Promise<string | undefined>}
302
+ */
303
+ export function getInboxIdForIdentifier(host, accountIdentifier) {
304
+ const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
305
+ const len0 = WASM_VECTOR_LEN;
306
+ const ret = wasm.getInboxIdForIdentifier(ptr0, len0, accountIdentifier);
307
+ return ret;
308
+ }
309
+
310
+ /**
311
+ * @param {Identifier} accountIdentifier
312
+ * @returns {string}
313
+ */
314
+ export function generateInboxId(accountIdentifier) {
315
+ let deferred2_0;
316
+ let deferred2_1;
317
+ try {
318
+ const ret = wasm.generateInboxId(accountIdentifier);
319
+ var ptr1 = ret[0];
320
+ var len1 = ret[1];
321
+ if (ret[3]) {
322
+ ptr1 = 0; len1 = 0;
323
+ throw takeFromExternrefTable0(ret[2]);
324
+ }
325
+ deferred2_0 = ptr1;
326
+ deferred2_1 = len1;
327
+ return getStringFromWasm0(ptr1, len1);
328
+ } finally {
329
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
330
+ }
331
+ }
332
+
333
+ /**
334
+ * @param {string} host
335
+ * @param {string[]} inbox_ids
336
+ * @returns {Promise<InboxState[]>}
337
+ */
338
+ export function inboxStateFromInboxIds(host, inbox_ids) {
339
+ const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
340
+ const len0 = WASM_VECTOR_LEN;
341
+ const ptr1 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
342
+ const len1 = WASM_VECTOR_LEN;
343
+ const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1);
344
+ return ret;
345
+ }
346
+
327
347
  /**
328
348
  * @param {string} signature_text
329
349
  * @param {Uint8Array} signature_bytes
@@ -371,57 +391,52 @@ export function applySignatureRequest(host, signature_request) {
371
391
 
372
392
  /**
373
393
  * @param {string} host
374
- * @param {Identifier} accountIdentifier
375
- * @returns {Promise<string | undefined>}
394
+ * @param {string} inbox_id
395
+ * @param {Identifier} account_identifier
396
+ * @param {string | null} [db_path]
397
+ * @param {Uint8Array | null} [encryption_key]
398
+ * @param {string | null} [device_sync_server_url]
399
+ * @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
400
+ * @param {LogOptions | null} [log_options]
401
+ * @param {boolean | null} [allow_offline]
402
+ * @returns {Promise<Client>}
376
403
  */
377
- export function getInboxIdForIdentifier(host, accountIdentifier) {
404
+ export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline) {
378
405
  const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
379
406
  const len0 = WASM_VECTOR_LEN;
380
- const ret = wasm.getInboxIdForIdentifier(ptr0, len0, accountIdentifier);
381
- return ret;
382
- }
383
-
384
- /**
385
- * @param {Identifier} accountIdentifier
386
- * @returns {string}
387
- */
388
- export function generateInboxId(accountIdentifier) {
389
- let deferred2_0;
390
- let deferred2_1;
391
- try {
392
- const ret = wasm.generateInboxId(accountIdentifier);
393
- var ptr1 = ret[0];
394
- var len1 = ret[1];
395
- if (ret[3]) {
396
- ptr1 = 0; len1 = 0;
397
- throw takeFromExternrefTable0(ret[2]);
398
- }
399
- deferred2_0 = ptr1;
400
- deferred2_1 = len1;
401
- return getStringFromWasm0(ptr1, len1);
402
- } finally {
403
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
407
+ const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
408
+ const len1 = WASM_VECTOR_LEN;
409
+ var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
410
+ var len2 = WASM_VECTOR_LEN;
411
+ var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
412
+ var len3 = WASM_VECTOR_LEN;
413
+ let ptr4 = 0;
414
+ if (!isLikeNone(log_options)) {
415
+ _assertClass(log_options, LogOptions);
416
+ ptr4 = log_options.__destroy_into_raw();
404
417
  }
418
+ const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, isLikeNone(device_sync_worker_mode) ? 3 : ((__wbindgen_enum_DeviceSyncWorkerMode.indexOf(device_sync_worker_mode) + 1 || 3) - 1), ptr4, isLikeNone(allow_offline) ? 0xFFFFFF : allow_offline ? 1 : 0);
419
+ return ret;
405
420
  }
406
421
 
407
422
  function __wbg_adapter_50(arg0, arg1) {
408
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc094ec3bdf8c16b7(arg0, arg1);
423
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7e9b1d0be1909a89(arg0, arg1);
409
424
  }
410
425
 
411
426
  function __wbg_adapter_53(arg0, arg1) {
412
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0eb99f8c2f057fcc(arg0, arg1);
427
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd7b727abd95da937(arg0, arg1);
413
428
  }
414
429
 
415
430
  function __wbg_adapter_56(arg0, arg1, arg2) {
416
- wasm.closure4603_externref_shim(arg0, arg1, arg2);
431
+ wasm.closure4617_externref_shim(arg0, arg1, arg2);
417
432
  }
418
433
 
419
434
  function __wbg_adapter_59(arg0, arg1) {
420
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h232599d7dcf89d52(arg0, arg1);
435
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc6500cfda1685f15(arg0, arg1);
421
436
  }
422
437
 
423
- function __wbg_adapter_780(arg0, arg1, arg2, arg3) {
424
- wasm.closure5579_externref_shim(arg0, arg1, arg2, arg3);
438
+ function __wbg_adapter_781(arg0, arg1, arg2, arg3) {
439
+ wasm.closure5575_externref_shim(arg0, arg1, arg2, arg3);
425
440
  }
426
441
 
427
442
  /**
@@ -725,147 +740,24 @@ export class Client {
725
740
  wasm.__wbg_client_free(ptr, 0);
726
741
  }
727
742
  /**
728
- * @returns {Identifier}
729
- */
730
- get accountIdentifier() {
731
- const ret = wasm.client_accountIdentifier(this.__wbg_ptr);
732
- return ret;
733
- }
734
- /**
735
- * @returns {string}
736
- */
737
- get inboxId() {
738
- let deferred1_0;
739
- let deferred1_1;
740
- try {
741
- const ret = wasm.client_inboxId(this.__wbg_ptr);
742
- deferred1_0 = ret[0];
743
- deferred1_1 = ret[1];
744
- return getStringFromWasm0(ret[0], ret[1]);
745
- } finally {
746
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
747
- }
748
- }
749
- /**
750
- * @returns {boolean}
751
- */
752
- get isRegistered() {
753
- const ret = wasm.client_isRegistered(this.__wbg_ptr);
754
- return ret !== 0;
755
- }
756
- /**
757
- * @returns {string}
758
- */
759
- get installationId() {
760
- let deferred1_0;
761
- let deferred1_1;
762
- try {
763
- const ret = wasm.client_installationId(this.__wbg_ptr);
764
- deferred1_0 = ret[0];
765
- deferred1_1 = ret[1];
766
- return getStringFromWasm0(ret[0], ret[1]);
767
- } finally {
768
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
769
- }
770
- }
771
- /**
772
- * @returns {Uint8Array}
773
- */
774
- get installationIdBytes() {
775
- const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
776
- return ret;
777
- }
778
- /**
779
- * Output booleans should be zipped with the index of input identifiers
780
- * @param {Identifier[]} account_identifiers
781
- * @returns {Promise<any>}
782
- */
783
- canMessage(account_identifiers) {
784
- const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
785
- const len0 = WASM_VECTOR_LEN;
786
- const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
787
- return ret;
788
- }
789
- /**
743
+ * @param {Consent[]} records
790
744
  * @returns {Promise<void>}
791
745
  */
792
- sendSyncRequest() {
793
- const ret = wasm.client_sendSyncRequest(this.__wbg_ptr);
794
- return ret;
795
- }
796
- /**
797
- * @param {Identifier} identifier
798
- * @returns {Promise<string | undefined>}
799
- */
800
- findInboxIdByIdentifier(identifier) {
801
- const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
802
- return ret;
803
- }
804
- /**
805
- * @param {string[]} inbox_ids
806
- * @param {boolean} refresh_from_network
807
- * @returns {Promise<InboxState[]>}
808
- */
809
- inboxStateFromInboxIds(inbox_ids, refresh_from_network) {
810
- const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
746
+ setConsentStates(records) {
747
+ const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
811
748
  const len0 = WASM_VECTOR_LEN;
812
- const ret = wasm.client_inboxStateFromInboxIds(this.__wbg_ptr, ptr0, len0, refresh_from_network);
813
- return ret;
814
- }
815
- /**
816
- * @returns {Conversations}
817
- */
818
- conversations() {
819
- const ret = wasm.client_conversations(this.__wbg_ptr);
820
- return Conversations.__wrap(ret);
821
- }
822
- /**
823
- * @returns {Promise<number>}
824
- */
825
- syncPreferences() {
826
- const ret = wasm.client_syncPreferences(this.__wbg_ptr);
749
+ const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
827
750
  return ret;
828
751
  }
829
752
  /**
830
- * @returns {ApiStats}
831
- */
832
- apiStatistics() {
833
- const ret = wasm.client_apiStatistics(this.__wbg_ptr);
834
- return ApiStats.__wrap(ret);
835
- }
836
- /**
837
- * @returns {IdentityStats}
838
- */
839
- apiIdentityStatistics() {
840
- const ret = wasm.client_apiIdentityStatistics(this.__wbg_ptr);
841
- return IdentityStats.__wrap(ret);
842
- }
843
- /**
844
- * @returns {string}
845
- */
846
- apiAggregateStatistics() {
847
- let deferred1_0;
848
- let deferred1_1;
849
- try {
850
- const ret = wasm.client_apiAggregateStatistics(this.__wbg_ptr);
851
- deferred1_0 = ret[0];
852
- deferred1_1 = ret[1];
853
- return getStringFromWasm0(ret[0], ret[1]);
854
- } finally {
855
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
856
- }
857
- }
858
- clearAllStatistics() {
859
- wasm.client_clearAllStatistics(this.__wbg_ptr);
860
- }
861
- /**
862
- * @param {string} server_url
863
- * @returns {Promise<string>}
753
+ * @param {ConsentEntityType} entity_type
754
+ * @param {string} entity
755
+ * @returns {Promise<ConsentState>}
864
756
  */
865
- uploadDebugArchive(server_url) {
866
- const ptr0 = passStringToWasm0(server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
757
+ getConsentState(entity_type, entity) {
758
+ const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
867
759
  const len0 = WASM_VECTOR_LEN;
868
- const ret = wasm.client_uploadDebugArchive(this.__wbg_ptr, ptr0, len0);
760
+ const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
869
761
  return ret;
870
762
  }
871
763
  /**
@@ -1003,24 +895,147 @@ export class Client {
1003
895
  }
1004
896
  }
1005
897
  /**
1006
- * @param {Consent[]} records
898
+ * @returns {Identifier}
899
+ */
900
+ get accountIdentifier() {
901
+ const ret = wasm.client_accountIdentifier(this.__wbg_ptr);
902
+ return ret;
903
+ }
904
+ /**
905
+ * @returns {string}
906
+ */
907
+ get inboxId() {
908
+ let deferred1_0;
909
+ let deferred1_1;
910
+ try {
911
+ const ret = wasm.client_inboxId(this.__wbg_ptr);
912
+ deferred1_0 = ret[0];
913
+ deferred1_1 = ret[1];
914
+ return getStringFromWasm0(ret[0], ret[1]);
915
+ } finally {
916
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
917
+ }
918
+ }
919
+ /**
920
+ * @returns {boolean}
921
+ */
922
+ get isRegistered() {
923
+ const ret = wasm.client_isRegistered(this.__wbg_ptr);
924
+ return ret !== 0;
925
+ }
926
+ /**
927
+ * @returns {string}
928
+ */
929
+ get installationId() {
930
+ let deferred1_0;
931
+ let deferred1_1;
932
+ try {
933
+ const ret = wasm.client_installationId(this.__wbg_ptr);
934
+ deferred1_0 = ret[0];
935
+ deferred1_1 = ret[1];
936
+ return getStringFromWasm0(ret[0], ret[1]);
937
+ } finally {
938
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
939
+ }
940
+ }
941
+ /**
942
+ * @returns {Uint8Array}
943
+ */
944
+ get installationIdBytes() {
945
+ const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
946
+ return ret;
947
+ }
948
+ /**
949
+ * Output booleans should be zipped with the index of input identifiers
950
+ * @param {Identifier[]} account_identifiers
951
+ * @returns {Promise<any>}
952
+ */
953
+ canMessage(account_identifiers) {
954
+ const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
955
+ const len0 = WASM_VECTOR_LEN;
956
+ const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
957
+ return ret;
958
+ }
959
+ /**
1007
960
  * @returns {Promise<void>}
1008
961
  */
1009
- setConsentStates(records) {
1010
- const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
962
+ sendSyncRequest() {
963
+ const ret = wasm.client_sendSyncRequest(this.__wbg_ptr);
964
+ return ret;
965
+ }
966
+ /**
967
+ * @param {Identifier} identifier
968
+ * @returns {Promise<string | undefined>}
969
+ */
970
+ findInboxIdByIdentifier(identifier) {
971
+ const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
972
+ return ret;
973
+ }
974
+ /**
975
+ * @param {string[]} inbox_ids
976
+ * @param {boolean} refresh_from_network
977
+ * @returns {Promise<InboxState[]>}
978
+ */
979
+ inboxStateFromInboxIds(inbox_ids, refresh_from_network) {
980
+ const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
1011
981
  const len0 = WASM_VECTOR_LEN;
1012
- const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
982
+ const ret = wasm.client_inboxStateFromInboxIds(this.__wbg_ptr, ptr0, len0, refresh_from_network);
1013
983
  return ret;
1014
984
  }
1015
985
  /**
1016
- * @param {ConsentEntityType} entity_type
1017
- * @param {string} entity
1018
- * @returns {Promise<ConsentState>}
986
+ * @returns {Conversations}
1019
987
  */
1020
- getConsentState(entity_type, entity) {
1021
- const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
988
+ conversations() {
989
+ const ret = wasm.client_conversations(this.__wbg_ptr);
990
+ return Conversations.__wrap(ret);
991
+ }
992
+ /**
993
+ * @returns {Promise<number>}
994
+ */
995
+ syncPreferences() {
996
+ const ret = wasm.client_syncPreferences(this.__wbg_ptr);
997
+ return ret;
998
+ }
999
+ /**
1000
+ * @returns {ApiStats}
1001
+ */
1002
+ apiStatistics() {
1003
+ const ret = wasm.client_apiStatistics(this.__wbg_ptr);
1004
+ return ApiStats.__wrap(ret);
1005
+ }
1006
+ /**
1007
+ * @returns {IdentityStats}
1008
+ */
1009
+ apiIdentityStatistics() {
1010
+ const ret = wasm.client_apiIdentityStatistics(this.__wbg_ptr);
1011
+ return IdentityStats.__wrap(ret);
1012
+ }
1013
+ /**
1014
+ * @returns {string}
1015
+ */
1016
+ apiAggregateStatistics() {
1017
+ let deferred1_0;
1018
+ let deferred1_1;
1019
+ try {
1020
+ const ret = wasm.client_apiAggregateStatistics(this.__wbg_ptr);
1021
+ deferred1_0 = ret[0];
1022
+ deferred1_1 = ret[1];
1023
+ return getStringFromWasm0(ret[0], ret[1]);
1024
+ } finally {
1025
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1026
+ }
1027
+ }
1028
+ clearAllStatistics() {
1029
+ wasm.client_clearAllStatistics(this.__wbg_ptr);
1030
+ }
1031
+ /**
1032
+ * @param {string} server_url
1033
+ * @returns {Promise<string>}
1034
+ */
1035
+ uploadDebugArchive(server_url) {
1036
+ const ptr0 = passStringToWasm0(server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1022
1037
  const len0 = WASM_VECTOR_LEN;
1023
- const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
1038
+ const ret = wasm.client_uploadDebugArchive(this.__wbg_ptr, ptr0, len0);
1024
1039
  return ret;
1025
1040
  }
1026
1041
  }
@@ -1253,6 +1268,25 @@ export class Conversation {
1253
1268
  const ptr = this.__destroy_into_raw();
1254
1269
  wasm.__wbg_conversation_free(ptr, 0);
1255
1270
  }
1271
+ /**
1272
+ * @returns {ConsentState}
1273
+ */
1274
+ consentState() {
1275
+ const ret = wasm.conversation_consentState(this.__wbg_ptr);
1276
+ if (ret[2]) {
1277
+ throw takeFromExternrefTable0(ret[1]);
1278
+ }
1279
+ return ret[0];
1280
+ }
1281
+ /**
1282
+ * @param {ConsentState} state
1283
+ */
1284
+ updateConsentState(state) {
1285
+ const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
1286
+ if (ret[1]) {
1287
+ throw takeFromExternrefTable0(ret[0]);
1288
+ }
1289
+ }
1256
1290
  /**
1257
1291
  * @returns {string}
1258
1292
  */
@@ -1747,25 +1781,6 @@ export class Conversation {
1747
1781
  const ret = wasm.conversation_findDuplicateDms(this.__wbg_ptr);
1748
1782
  return ret;
1749
1783
  }
1750
- /**
1751
- * @returns {ConsentState}
1752
- */
1753
- consentState() {
1754
- const ret = wasm.conversation_consentState(this.__wbg_ptr);
1755
- if (ret[2]) {
1756
- throw takeFromExternrefTable0(ret[1]);
1757
- }
1758
- return ret[0];
1759
- }
1760
- /**
1761
- * @param {ConsentState} state
1762
- */
1763
- updateConsentState(state) {
1764
- const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
1765
- if (ret[1]) {
1766
- throw takeFromExternrefTable0(ret[0]);
1767
- }
1768
- }
1769
1784
  }
1770
1785
 
1771
1786
  const ConversationDebugInfoFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -2529,7 +2544,7 @@ export class GroupMember {
2529
2544
  set inboxId(arg0) {
2530
2545
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2531
2546
  const len0 = WASM_VECTOR_LEN;
2532
- wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
2547
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
2533
2548
  }
2534
2549
  /**
2535
2550
  * @returns {Identifier[]}
@@ -2890,7 +2905,7 @@ export class InboxState {
2890
2905
  set inboxId(arg0) {
2891
2906
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2892
2907
  const len0 = WASM_VECTOR_LEN;
2893
- wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
2908
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
2894
2909
  }
2895
2910
  /**
2896
2911
  * @returns {Identifier}
@@ -4341,7 +4356,7 @@ export class Reaction {
4341
4356
  set reference(arg0) {
4342
4357
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4343
4358
  const len0 = WASM_VECTOR_LEN;
4344
- wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
4359
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
4345
4360
  }
4346
4361
  /**
4347
4362
  * @returns {string}
@@ -5259,7 +5274,7 @@ function __wbg_get_imports() {
5259
5274
  const a = state0.a;
5260
5275
  state0.a = 0;
5261
5276
  try {
5262
- return __wbg_adapter_780(a, state0.b, arg0, arg1);
5277
+ return __wbg_adapter_781(a, state0.b, arg0, arg1);
5263
5278
  } finally {
5264
5279
  state0.a = a;
5265
5280
  }
@@ -5371,19 +5386,19 @@ function __wbg_get_imports() {
5371
5386
  const ret = arg0.now();
5372
5387
  return ret;
5373
5388
  };
5374
- imports.wbg.__wbg_onconsentupdate_f8105588c9e804b8 = function(arg0, arg1) {
5389
+ imports.wbg.__wbg_onconsentupdate_3ee822385ce52c1b = function(arg0, arg1) {
5375
5390
  arg0.on_consent_update(arg1);
5376
5391
  };
5377
- imports.wbg.__wbg_onconversation_55400867b020173b = function(arg0, arg1) {
5392
+ imports.wbg.__wbg_onconversation_93e8c3e97ceff607 = function(arg0, arg1) {
5378
5393
  arg0.on_conversation(Conversation.__wrap(arg1));
5379
5394
  };
5380
- imports.wbg.__wbg_onerror_0c7ab85f5c732a56 = function(arg0, arg1) {
5395
+ imports.wbg.__wbg_onerror_a4d17f0e71800436 = function(arg0, arg1) {
5381
5396
  arg0.on_error(arg1);
5382
5397
  };
5383
- imports.wbg.__wbg_onmessage_62db180abce496e7 = function(arg0, arg1) {
5398
+ imports.wbg.__wbg_onmessage_c6c369e7d39d60a1 = function(arg0, arg1) {
5384
5399
  arg0.on_message(Message.__wrap(arg1));
5385
5400
  };
5386
- imports.wbg.__wbg_onuserpreferenceupdate_2c7863b671f23eed = function(arg0, arg1, arg2) {
5401
+ imports.wbg.__wbg_onuserpreferenceupdate_480a6d9d21b41238 = function(arg0, arg1, arg2) {
5387
5402
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
5388
5403
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
5389
5404
  arg0.on_user_preference_update(v0);
@@ -5674,20 +5689,20 @@ function __wbg_get_imports() {
5674
5689
  const ret = false;
5675
5690
  return ret;
5676
5691
  };
5677
- imports.wbg.__wbindgen_closure_wrapper17681 = function(arg0, arg1, arg2) {
5678
- const ret = makeMutClosure(arg0, arg1, 4239, __wbg_adapter_50);
5692
+ imports.wbg.__wbindgen_closure_wrapper17738 = function(arg0, arg1, arg2) {
5693
+ const ret = makeMutClosure(arg0, arg1, 4258, __wbg_adapter_50);
5679
5694
  return ret;
5680
5695
  };
5681
- imports.wbg.__wbindgen_closure_wrapper17841 = function(arg0, arg1, arg2) {
5682
- const ret = makeMutClosure(arg0, arg1, 4297, __wbg_adapter_53);
5696
+ imports.wbg.__wbindgen_closure_wrapper17879 = function(arg0, arg1, arg2) {
5697
+ const ret = makeMutClosure(arg0, arg1, 4314, __wbg_adapter_53);
5683
5698
  return ret;
5684
5699
  };
5685
- imports.wbg.__wbindgen_closure_wrapper20956 = function(arg0, arg1, arg2) {
5686
- const ret = makeMutClosure(arg0, arg1, 4604, __wbg_adapter_56);
5700
+ imports.wbg.__wbindgen_closure_wrapper20999 = function(arg0, arg1, arg2) {
5701
+ const ret = makeMutClosure(arg0, arg1, 4618, __wbg_adapter_56);
5687
5702
  return ret;
5688
5703
  };
5689
- imports.wbg.__wbindgen_closure_wrapper21066 = function(arg0, arg1, arg2) {
5690
- const ret = makeMutClosure(arg0, arg1, 4615, __wbg_adapter_59);
5704
+ imports.wbg.__wbindgen_closure_wrapper21100 = function(arg0, arg1, arg2) {
5705
+ const ret = makeMutClosure(arg0, arg1, 4629, __wbg_adapter_59);
5691
5706
  return ret;
5692
5707
  };
5693
5708
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -1,54 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const __wbg_client_free: (a: number, b: number) => void;
5
- export const __wbg_logoptions_free: (a: number, b: number) => void;
6
- export const __wbg_get_logoptions_structured: (a: number) => number;
7
- export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
8
- export const __wbg_get_logoptions_performance: (a: number) => number;
9
- export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
10
- export const __wbg_get_logoptions_level: (a: number) => number;
11
- export const __wbg_set_logoptions_level: (a: number, b: number) => void;
12
- export const logoptions_new: (a: number, b: number, c: number) => number;
13
- 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, l: number, m: number) => any;
14
- export const client_accountIdentifier: (a: number) => any;
15
- export const client_inboxId: (a: number) => [number, number];
16
- export const client_isRegistered: (a: number) => number;
17
- export const client_installationId: (a: number) => [number, number];
18
- export const client_installationIdBytes: (a: number) => any;
19
- export const client_canMessage: (a: number, b: number, c: number) => any;
20
- export const client_sendSyncRequest: (a: number) => any;
21
- export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
22
- export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
23
- export const client_conversations: (a: number) => number;
24
- export const client_syncPreferences: (a: number) => any;
25
- export const client_apiStatistics: (a: number) => number;
26
- export const client_apiIdentityStatistics: (a: number) => number;
27
- export const client_apiAggregateStatistics: (a: number) => [number, number];
28
- export const client_clearAllStatistics: (a: number) => void;
29
- export const client_uploadDebugArchive: (a: number, b: number, c: number) => any;
30
- export const __wbg_contenttypeid_free: (a: number, b: number) => void;
31
- export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
32
- export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
33
- export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
34
- export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
35
- export const __wbg_get_contenttypeid_versionMajor: (a: number) => number;
36
- export const __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
37
- export const __wbg_get_contenttypeid_versionMinor: (a: number) => number;
38
- export const __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
39
- export const contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
40
- export const __wbg_encodedcontent_free: (a: number, b: number) => void;
41
- export const __wbg_get_encodedcontent_type: (a: number) => number;
42
- export const __wbg_set_encodedcontent_type: (a: number, b: number) => void;
43
- export const __wbg_get_encodedcontent_parameters: (a: number) => any;
44
- export const __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
45
- export const __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
46
- export const __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
47
- export const __wbg_get_encodedcontent_compression: (a: number) => number;
48
- export const __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
49
- export const __wbg_get_encodedcontent_content: (a: number) => any;
50
- export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
51
- export const encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
52
4
  export const __wbg_apistats_free: (a: number, b: number) => void;
53
5
  export const __wbg_get_apistats_upload_key_package: (a: number) => bigint;
54
6
  export const __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
@@ -75,6 +27,18 @@ export const __wbg_get_identitystats_publish_identity_update: (a: number) => big
75
27
  export const __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
76
28
  export const __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
77
29
  export const __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
30
+ export const __wbg_consent_free: (a: number, b: number) => void;
31
+ export const __wbg_get_consent_entityType: (a: number) => number;
32
+ export const __wbg_set_consent_entityType: (a: number, b: number) => void;
33
+ export const __wbg_get_consent_state: (a: number) => number;
34
+ export const __wbg_set_consent_state: (a: number, b: number) => void;
35
+ export const __wbg_get_consent_entity: (a: number) => [number, number];
36
+ export const __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
37
+ export const consent_new: (a: number, b: number, c: number, d: number) => number;
38
+ export const client_setConsentStates: (a: number, b: number, c: number) => any;
39
+ export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
40
+ export const conversation_consentState: (a: number) => [number, number, number];
41
+ export const conversation_updateConsentState: (a: number, b: number) => [number, number];
78
42
  export const __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
79
43
  export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
80
44
  export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
@@ -113,8 +77,6 @@ export const __wbg_groupmetadata_free: (a: number, b: number) => void;
113
77
  export const groupmetadata_creatorInboxId: (a: number) => [number, number];
114
78
  export const groupmetadata_conversationType: (a: number) => [number, number];
115
79
  export const __wbg_groupmember_free: (a: number, b: number) => void;
116
- export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
117
- export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
118
80
  export const __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
119
81
  export const __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
120
82
  export const __wbg_get_groupmember_installationIds: (a: number) => [number, number];
@@ -228,6 +190,8 @@ export const conversations_stream: (a: number, b: any, c: number) => [number, nu
228
190
  export const conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
229
191
  export const conversations_streamConsent: (a: number, b: any) => [number, number, number];
230
192
  export const conversations_streamPreferences: (a: number, b: any) => [number, number, number];
193
+ export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
194
+ export const generateInboxId: (a: any) => [number, number, number, number];
231
195
  export const __wbg_installation_free: (a: number, b: number) => void;
232
196
  export const __wbg_get_installation_bytes: (a: number) => any;
233
197
  export const __wbg_set_installation_bytes: (a: number, b: any) => void;
@@ -250,6 +214,7 @@ export const __wbg_set_keypackagestatus_validationError: (a: number, b: number,
250
214
  export const __wbg_lifetime_free: (a: number, b: number) => void;
251
215
  export const __wbg_get_lifetime_not_after: (a: number) => bigint;
252
216
  export const __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
217
+ export const inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
253
218
  export const client_inboxState: (a: number, b: number) => any;
254
219
  export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
255
220
  export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
@@ -306,10 +271,12 @@ export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number,
306
271
  export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
307
272
  export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
308
273
  export const __wbg_get_reaction_reference: (a: number) => [number, number];
274
+ export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
309
275
  export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
310
276
  export const __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
311
277
  export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
312
278
  export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
279
+ export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
313
280
  export const __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
314
281
  export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
315
282
  export const __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
@@ -330,40 +297,39 @@ export const __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigi
330
297
  export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
331
298
  export const __wbg_get_keypackagestatus_lifetime: (a: number) => number;
332
299
  export const __wbg_hmackey_free: (a: number, b: number) => void;
333
- export const __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
334
300
  export const __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
301
+ export const __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
335
302
  export const __wbg_streamcloser_free: (a: number, b: number) => void;
336
303
  export const streamcloser_end: (a: number) => void;
337
304
  export const streamcloser_endAndWait: (a: number) => any;
338
305
  export const streamcloser_waitForReady: (a: number) => any;
339
306
  export const streamcloser_isClosed: (a: number) => number;
340
- export const __wbg_consent_free: (a: number, b: number) => void;
341
- export const __wbg_get_consent_entityType: (a: number) => number;
342
- export const __wbg_set_consent_entityType: (a: number, b: number) => void;
343
- export const __wbg_get_consent_state: (a: number) => number;
344
- export const __wbg_set_consent_state: (a: number, b: number) => void;
345
- export const __wbg_get_consent_entity: (a: number) => [number, number];
346
- export const __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
347
- export const consent_new: (a: number, b: number, c: number, d: number) => number;
348
- export const client_setConsentStates: (a: number, b: number, c: number) => any;
349
- export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
350
- export const conversation_consentState: (a: number) => [number, number, number];
351
- export const conversation_updateConsentState: (a: number, b: number) => [number, number];
352
- export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
353
- export const generateInboxId: (a: any) => [number, number, number, number];
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;
307
+ export const __wbg_client_free: (a: number, b: number) => void;
308
+ export const __wbg_logoptions_free: (a: number, b: number) => void;
309
+ export const __wbg_get_logoptions_structured: (a: number) => number;
310
+ export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
311
+ export const __wbg_get_logoptions_performance: (a: number) => number;
312
+ export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
313
+ export const __wbg_get_logoptions_level: (a: number) => number;
314
+ export const __wbg_set_logoptions_level: (a: number, b: number) => void;
315
+ export const logoptions_new: (a: number, b: number, c: number) => number;
316
+ 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, l: number, m: number) => any;
317
+ export const client_accountIdentifier: (a: number) => any;
318
+ export const client_inboxId: (a: number) => [number, number];
319
+ export const client_isRegistered: (a: number) => number;
320
+ export const client_installationId: (a: number) => [number, number];
321
+ export const client_installationIdBytes: (a: number) => any;
322
+ export const client_canMessage: (a: number, b: number, c: number) => any;
323
+ export const client_sendSyncRequest: (a: number) => any;
324
+ export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
325
+ export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
326
+ export const client_conversations: (a: number) => number;
327
+ export const client_syncPreferences: (a: number) => any;
328
+ export const client_apiStatistics: (a: number) => number;
329
+ export const client_apiIdentityStatistics: (a: number) => number;
330
+ export const client_apiAggregateStatistics: (a: number) => [number, number];
331
+ export const client_clearAllStatistics: (a: number) => void;
332
+ export const client_uploadDebugArchive: (a: number, b: number, c: number) => any;
367
333
  export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
368
334
  export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
369
335
  export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
@@ -385,6 +351,41 @@ export const permissionpolicyset_new: (a: number, b: number, c: number, d: numbe
385
351
  export const __wbg_grouppermissions_free: (a: number, b: number) => void;
386
352
  export const grouppermissions_policyType: (a: number) => [number, number, number];
387
353
  export const grouppermissions_policySet: (a: number) => [number, number, number];
354
+ export const __wbg_contenttypeid_free: (a: number, b: number) => void;
355
+ export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
356
+ export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
357
+ export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
358
+ export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
359
+ export const __wbg_get_contenttypeid_versionMajor: (a: number) => number;
360
+ export const __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
361
+ export const __wbg_get_contenttypeid_versionMinor: (a: number) => number;
362
+ export const __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
363
+ export const contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
364
+ export const __wbg_encodedcontent_free: (a: number, b: number) => void;
365
+ export const __wbg_get_encodedcontent_type: (a: number) => number;
366
+ export const __wbg_set_encodedcontent_type: (a: number, b: number) => void;
367
+ export const __wbg_get_encodedcontent_parameters: (a: number) => any;
368
+ export const __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
369
+ export const __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
370
+ export const __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
371
+ export const __wbg_get_encodedcontent_compression: (a: number) => number;
372
+ export const __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
373
+ export const __wbg_get_encodedcontent_content: (a: number) => any;
374
+ export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
375
+ export const encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
376
+ export const __wbg_opfs_free: (a: number, b: number) => void;
377
+ export const opfs_init_sqlite_opfs: () => any;
378
+ export const opfs_exists: () => number;
379
+ export const opfs_error: () => [number, number];
380
+ export const opfs_wipeFiles: () => any;
381
+ export const opfs_rm: (a: number, b: number) => [number, number, number];
382
+ export const opfs_getFileNames: () => [number, number];
383
+ export const opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
384
+ export const opfs_exportFile: (a: number, b: number) => [number, number, number, number];
385
+ export const opfs_getFileCount: () => number;
386
+ export const opfs_getCapacity: () => number;
387
+ export const opfs_addCapacity: (a: number) => any;
388
+ export const opfs_reduceCapacity: (a: number) => any;
388
389
  export const rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
389
390
  export const rust_zstd_wasm_shim_malloc: (a: number) => number;
390
391
  export const rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
@@ -426,9 +427,9 @@ export const __wbindgen_free: (a: number, b: number, c: number) => void;
426
427
  export const __externref_drop_slice: (a: number, b: number) => void;
427
428
  export const __wbindgen_export_7: WebAssembly.Table;
428
429
  export const __externref_table_dealloc: (a: number) => void;
429
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc094ec3bdf8c16b7: (a: number, b: number) => void;
430
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0eb99f8c2f057fcc: (a: number, b: number) => void;
431
- export const closure4603_externref_shim: (a: number, b: number, c: any) => void;
432
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h232599d7dcf89d52: (a: number, b: number) => void;
433
- export const closure5579_externref_shim: (a: number, b: number, c: any, d: any) => void;
430
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7e9b1d0be1909a89: (a: number, b: number) => void;
431
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd7b727abd95da937: (a: number, b: number) => void;
432
+ export const closure4617_externref_shim: (a: number, b: number, c: any) => void;
433
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc6500cfda1685f15: (a: number, b: number) => void;
434
+ export const closure5575_externref_shim: (a: number, b: number, c: any, d: any) => void;
434
435
  export const __wbindgen_start: () => void;
package/dist/version.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "branch": "release/v1.2",
3
- "version": "b2feaef",
4
- "date": "2025-06-23 19:06:41 +0000"
3
+ "version": "dc3e8c8",
4
+ "date": "2025-06-26 21:52:34 +0000"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmtp/wasm-bindings",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "WASM bindings for the libXMTP rust library",