@xmtp/wasm-bindings 1.2.1 → 1.2.2

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,11 +1,11 @@
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
+ export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
3
5
  export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
4
6
  export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
5
7
  export function encodeReaction(reaction: Reaction): Uint8Array;
6
8
  export function decodeReaction(bytes: Uint8Array): Reaction;
7
- export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
8
- 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): Promise<Client>;
9
9
  export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
10
10
  export function generateInboxId(accountIdentifier: Identifier): string;
11
11
  export enum ConsentEntityType {
@@ -135,18 +135,6 @@ export class ApiStats {
135
135
  export class Client {
136
136
  private constructor();
137
137
  free(): void;
138
- createInboxSignatureText(): string | undefined;
139
- addWalletSignatureText(new_identifier: Identifier): Promise<string>;
140
- revokeWalletSignatureText(identifier: Identifier): Promise<string>;
141
- revokeAllOtherInstallationsSignatureText(): Promise<string>;
142
- revokeInstallationsSignatureText(installation_ids: Uint8Array[]): Promise<string>;
143
- changeRecoveryIdentifierSignatureText(new_recovery_identifier: Identifier): Promise<string>;
144
- addEcdsaSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
145
- addPasskeySignature(signature_type: SignatureRequestType, signature: PasskeySignature): Promise<void>;
146
- addScwSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint | null): Promise<void>;
147
- applySignatureRequests(): Promise<void>;
148
- signWithInstallationKey(signature_text: string): Uint8Array;
149
- verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
150
138
  /**
151
139
  * Output booleans should be zipped with the index of input identifiers
152
140
  */
@@ -160,7 +148,22 @@ export class Client {
160
148
  apiStatistics(): ApiStats;
161
149
  apiIdentityStatistics(): IdentityStats;
162
150
  apiAggregateStatistics(): string;
151
+ clearAllStatistics(): void;
163
152
  uploadDebugArchive(server_url: string): Promise<string>;
153
+ createInboxSignatureText(): string | undefined;
154
+ addWalletSignatureText(new_identifier: Identifier): Promise<string>;
155
+ revokeWalletSignatureText(identifier: Identifier): Promise<string>;
156
+ revokeAllOtherInstallationsSignatureText(): Promise<string>;
157
+ revokeInstallationsSignatureText(installation_ids: Uint8Array[]): Promise<string>;
158
+ changeRecoveryIdentifierSignatureText(new_recovery_identifier: Identifier): Promise<string>;
159
+ addEcdsaSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
160
+ addPasskeySignature(signature_type: SignatureRequestType, signature: PasskeySignature): Promise<void>;
161
+ addScwSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint | null): Promise<void>;
162
+ applySignatureRequests(): Promise<void>;
163
+ signWithInstallationKey(signature_text: string): Uint8Array;
164
+ verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
165
+ setConsentStates(records: Consent[]): Promise<void>;
166
+ getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
164
167
  /**
165
168
  *
166
169
  * * Get the client's inbox state.
@@ -179,8 +182,6 @@ export class Client {
179
182
  *
180
183
  */
181
184
  getKeyPackageStatusesForInstallationIds(installation_ids: string[]): Promise<any>;
182
- setConsentStates(records: Consent[]): Promise<void>;
183
- getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
184
185
  readonly accountIdentifier: Identifier;
185
186
  readonly inboxId: string;
186
187
  readonly isRegistered: boolean;
@@ -205,6 +206,8 @@ export class ContentTypeId {
205
206
  export class Conversation {
206
207
  private constructor();
207
208
  free(): void;
209
+ consentState(): ConsentState;
210
+ updateConsentState(state: ConsentState): void;
208
211
  id(): string;
209
212
  send(encoded_content: EncodedContent): Promise<string>;
210
213
  /**
@@ -253,8 +256,6 @@ export class Conversation {
253
256
  getHmacKeys(): any;
254
257
  getDebugInfo(): Promise<any>;
255
258
  findDuplicateDms(): Promise<Conversation[]>;
256
- consentState(): ConsentState;
257
- updateConsentState(state: ConsentState): void;
258
259
  }
259
260
  export class ConversationDebugInfo {
260
261
  private constructor();
@@ -607,12 +608,90 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
607
608
 
608
609
  export interface InitOutput {
609
610
  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_registerIdentity: (a: number) => any;
628
+ readonly client_sendSyncRequest: (a: number) => any;
629
+ readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
630
+ readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
631
+ readonly client_conversations: (a: number) => number;
632
+ readonly client_syncPreferences: (a: number) => any;
633
+ readonly client_apiStatistics: (a: number) => number;
634
+ readonly client_apiIdentityStatistics: (a: number) => number;
635
+ readonly client_apiAggregateStatistics: (a: number) => [number, number];
636
+ readonly client_clearAllStatistics: (a: number) => void;
637
+ readonly client_uploadDebugArchive: (a: number, b: number, c: number) => any;
638
+ readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
639
+ readonly __wbg_passkeysignature_free: (a: number, b: number) => void;
640
+ readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
641
+ readonly client_addWalletSignatureText: (a: number, b: any) => any;
642
+ readonly client_revokeWalletSignatureText: (a: number, b: any) => any;
643
+ readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
644
+ readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
645
+ readonly client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
646
+ readonly client_addEcdsaSignature: (a: number, b: number, c: any) => any;
647
+ readonly client_addPasskeySignature: (a: number, b: number, c: number) => any;
648
+ readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
649
+ readonly client_applySignatureRequests: (a: number) => any;
650
+ readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
651
+ readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
652
+ readonly __wbg_apistats_free: (a: number, b: number) => void;
653
+ readonly __wbg_get_apistats_upload_key_package: (a: number) => bigint;
654
+ readonly __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
655
+ readonly __wbg_get_apistats_fetch_key_package: (a: number) => bigint;
656
+ readonly __wbg_set_apistats_fetch_key_package: (a: number, b: bigint) => void;
657
+ readonly __wbg_get_apistats_send_group_messages: (a: number) => bigint;
658
+ readonly __wbg_set_apistats_send_group_messages: (a: number, b: bigint) => void;
659
+ readonly __wbg_get_apistats_send_welcome_messages: (a: number) => bigint;
660
+ readonly __wbg_set_apistats_send_welcome_messages: (a: number, b: bigint) => void;
661
+ readonly __wbg_get_apistats_query_group_messages: (a: number) => bigint;
662
+ readonly __wbg_set_apistats_query_group_messages: (a: number, b: bigint) => void;
663
+ readonly __wbg_get_apistats_query_welcome_messages: (a: number) => bigint;
664
+ readonly __wbg_set_apistats_query_welcome_messages: (a: number, b: bigint) => void;
665
+ readonly __wbg_get_apistats_subscribe_messages: (a: number) => bigint;
666
+ readonly __wbg_set_apistats_subscribe_messages: (a: number, b: bigint) => void;
667
+ readonly __wbg_get_apistats_subscribe_welcomes: (a: number) => bigint;
668
+ readonly __wbg_set_apistats_subscribe_welcomes: (a: number, b: bigint) => void;
669
+ readonly __wbg_identitystats_free: (a: number, b: number) => void;
670
+ readonly __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
671
+ readonly __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
672
+ readonly __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
673
+ readonly __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
674
+ readonly __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
675
+ readonly __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
676
+ readonly __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
677
+ readonly __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
678
+ readonly __wbg_consent_free: (a: number, b: number) => void;
679
+ readonly __wbg_get_consent_entityType: (a: number) => number;
680
+ readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
681
+ readonly __wbg_get_consent_state: (a: number) => number;
682
+ readonly __wbg_set_consent_state: (a: number, b: number) => void;
683
+ readonly __wbg_get_consent_entity: (a: number) => [number, number];
684
+ readonly __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
685
+ readonly consent_new: (a: number, b: number, c: number, d: number) => number;
686
+ readonly client_setConsentStates: (a: number, b: number, c: number) => any;
687
+ readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
688
+ readonly conversation_consentState: (a: number) => [number, number, number];
689
+ readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
610
690
  readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
611
691
  readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
612
692
  readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
613
693
  readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
614
694
  readonly __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
615
- readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
616
695
  readonly __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
617
696
  readonly __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
618
697
  readonly __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
@@ -639,13 +718,67 @@ export interface InitOutput {
639
718
  readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
640
719
  readonly encodeReaction: (a: number) => [number, number, number];
641
720
  readonly decodeReaction: (a: any) => [number, number, number];
721
+ readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
722
+ readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
723
+ readonly groupmetadata_conversationType: (a: number) => [number, number];
724
+ readonly __wbg_groupmember_free: (a: number, b: number) => void;
725
+ readonly __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
726
+ readonly __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
727
+ readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
728
+ readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
729
+ readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
730
+ readonly __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
731
+ readonly __wbg_get_groupmember_consentState: (a: number) => number;
732
+ readonly __wbg_set_groupmember_consentState: (a: number, b: number) => void;
733
+ readonly groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
734
+ readonly __wbg_conversation_free: (a: number, b: number) => void;
735
+ readonly conversation_id: (a: number) => [number, number];
736
+ readonly conversation_send: (a: number, b: number) => any;
737
+ readonly conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
738
+ readonly conversation_publishMessages: (a: number) => any;
739
+ readonly conversation_sync: (a: number) => any;
740
+ readonly conversation_findMessages: (a: number, b: number) => any;
741
+ readonly conversation_findMessagesWithReactions: (a: number, b: number) => any;
742
+ readonly conversation_listMembers: (a: number) => any;
743
+ readonly conversation_adminList: (a: number) => [number, number, number, number];
744
+ readonly conversation_superAdminList: (a: number) => [number, number, number, number];
745
+ readonly conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
746
+ readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
747
+ readonly conversation_addMembers: (a: number, b: number, c: number) => any;
748
+ readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
749
+ readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
750
+ readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
751
+ readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
752
+ readonly conversation_groupPermissions: (a: number) => [number, number, number];
753
+ readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
754
+ readonly conversation_removeMembers: (a: number, b: number, c: number) => any;
755
+ readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
756
+ readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
757
+ readonly conversation_groupName: (a: number) => [number, number, number, number];
758
+ readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
759
+ readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
760
+ readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
761
+ readonly conversation_groupDescription: (a: number) => [number, number, number, number];
762
+ readonly conversation_stream: (a: number, b: any) => [number, number, number];
763
+ readonly conversation_createdAtNs: (a: number) => bigint;
764
+ readonly conversation_isActive: (a: number) => [number, number, number];
765
+ readonly conversation_pausedForVersion: (a: number) => [number, number, number, number];
766
+ readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
767
+ readonly conversation_groupMetadata: (a: number) => any;
768
+ readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
769
+ readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
770
+ readonly conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
771
+ readonly conversation_removeMessageDisappearingSettings: (a: number) => any;
772
+ readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
773
+ readonly conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
774
+ readonly conversation_getHmacKeys: (a: number) => [number, number, number];
775
+ readonly conversation_getDebugInfo: (a: number) => any;
776
+ readonly conversation_findDuplicateDms: (a: number) => any;
642
777
  readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
643
778
  readonly __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
644
779
  readonly __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
645
780
  readonly __wbg_get_listconversationsoptions_conversationType: (a: number) => number;
646
781
  readonly __wbg_set_listconversationsoptions_conversationType: (a: number, b: number) => void;
647
- readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
648
- readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
649
782
  readonly __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
650
783
  readonly __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: bigint) => void;
651
784
  readonly __wbg_get_listconversationsoptions_includeDuplicateDms: (a: number) => number;
@@ -654,8 +787,6 @@ export interface InitOutput {
654
787
  readonly __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
655
788
  readonly listconversationsoptions_new: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: bigint, h: number, i: number, j: bigint) => number;
656
789
  readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
657
- readonly __wbg_get_messagedisappearingsettings_inNs: (a: number) => bigint;
658
- readonly __wbg_set_messagedisappearingsettings_inNs: (a: number, b: bigint) => void;
659
790
  readonly messagedisappearingsettings_new: (a: bigint, b: bigint) => number;
660
791
  readonly __wbg_conversationdebuginfo_free: (a: number, b: number) => void;
661
792
  readonly __wbg_get_conversationdebuginfo_epoch: (a: number) => bigint;
@@ -679,6 +810,7 @@ export interface InitOutput {
679
810
  readonly __wbg_get_createdmoptions_messageDisappearingSettings: (a: number) => number;
680
811
  readonly __wbg_set_createdmoptions_messageDisappearingSettings: (a: number, b: number) => void;
681
812
  readonly createdmoptions_new: (a: number) => number;
813
+ readonly __wbg_hmackey_free: (a: number, b: number) => void;
682
814
  readonly __wbg_get_hmackey_key: (a: number) => [number, number];
683
815
  readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
684
816
  readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
@@ -705,8 +837,6 @@ export interface InitOutput {
705
837
  readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
706
838
  readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
707
839
  readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
708
- readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
709
- readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
710
840
  readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
711
841
  readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
712
842
  readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
@@ -726,6 +856,34 @@ export interface InitOutput {
726
856
  readonly __wbg_get_encodedcontent_content: (a: number) => any;
727
857
  readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
728
858
  readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
859
+ readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
860
+ readonly generateInboxId: (a: any) => [number, number, number, number];
861
+ readonly __wbg_installation_free: (a: number, b: number) => void;
862
+ readonly __wbg_get_installation_bytes: (a: number) => any;
863
+ readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
864
+ readonly __wbg_get_installation_id: (a: number) => [number, number];
865
+ readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
866
+ readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
867
+ readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
868
+ readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
869
+ readonly __wbg_inboxstate_free: (a: number, b: number) => void;
870
+ readonly __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
871
+ readonly __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
872
+ readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
873
+ readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
874
+ readonly __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
875
+ readonly __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
876
+ readonly inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
877
+ readonly __wbg_keypackagestatus_free: (a: number, b: number) => void;
878
+ readonly __wbg_get_keypackagestatus_lifetime: (a: number) => number;
879
+ readonly __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
880
+ readonly __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
881
+ readonly __wbg_lifetime_free: (a: number, b: number) => void;
882
+ readonly __wbg_get_lifetime_not_after: (a: number) => bigint;
883
+ readonly __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
884
+ readonly client_inboxState: (a: number, b: number) => any;
885
+ readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
886
+ readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
729
887
  readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
730
888
  readonly __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
731
889
  readonly __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
@@ -755,216 +913,60 @@ export interface InitOutput {
755
913
  readonly __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
756
914
  readonly __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
757
915
  readonly __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
758
- readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
759
- readonly __wbg_passkeysignature_free: (a: number, b: number) => void;
760
- readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
761
- readonly client_addWalletSignatureText: (a: number, b: any) => any;
762
- readonly client_revokeWalletSignatureText: (a: number, b: any) => any;
763
- readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
764
- readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
765
- readonly client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
766
- readonly client_addEcdsaSignature: (a: number, b: number, c: any) => any;
767
- readonly client_addPasskeySignature: (a: number, b: number, c: number) => any;
768
- readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
769
- readonly client_applySignatureRequests: (a: number) => any;
770
- readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
771
- readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
916
+ readonly __wbg_opfs_free: (a: number, b: number) => void;
917
+ readonly opfs_init_sqlite_opfs: () => any;
918
+ readonly opfs_exists: () => number;
919
+ readonly opfs_error: () => [number, number];
920
+ readonly opfs_wipeFiles: () => any;
921
+ readonly opfs_rm: (a: number, b: number) => [number, number, number];
922
+ readonly opfs_getFileNames: () => [number, number];
923
+ readonly opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
924
+ readonly opfs_exportFile: (a: number, b: number) => [number, number, number, number];
925
+ readonly opfs_getFileCount: () => number;
926
+ readonly opfs_getCapacity: () => number;
927
+ readonly opfs_addCapacity: (a: number) => any;
928
+ readonly opfs_reduceCapacity: (a: number) => any;
929
+ readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
772
930
  readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
773
931
  readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
774
932
  readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
775
- readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
776
933
  readonly __wbg_get_reaction_reference: (a: number) => [number, number];
934
+ readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
935
+ readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
936
+ readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
777
937
  readonly __wbg_get_conversationdebuginfo_forkDetails: (a: number) => [number, number];
778
- readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
938
+ readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
939
+ readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
779
940
  readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
941
+ readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
942
+ readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
943
+ readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
780
944
  readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
945
+ readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
781
946
  readonly __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
782
947
  readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
948
+ readonly __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
949
+ readonly __wbg_set_messagedisappearingsettings_inNs: (a: number, b: bigint) => void;
783
950
  readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
784
951
  readonly __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
785
952
  readonly __wbg_get_hmackey_epoch: (a: number) => bigint;
953
+ readonly __wbg_get_lifetime_not_before: (a: number) => bigint;
954
+ readonly __wbg_get_messagedisappearingsettings_inNs: (a: number) => bigint;
786
955
  readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
787
956
  readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
788
957
  readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
789
958
  readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
959
+ readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
790
960
  readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
791
961
  readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
792
962
  readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
793
963
  readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
794
- readonly __wbg_hmackey_free: (a: number, b: number) => void;
795
- readonly __wbg_client_free: (a: number, b: number) => void;
796
- readonly __wbg_logoptions_free: (a: number, b: number) => void;
797
- readonly __wbg_get_logoptions_structured: (a: number) => number;
798
- readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
799
- readonly __wbg_get_logoptions_performance: (a: number) => number;
800
- readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
801
- readonly __wbg_get_logoptions_level: (a: number) => number;
802
- readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
803
- readonly logoptions_new: (a: number, b: number, c: number) => number;
804
- 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) => any;
805
- readonly client_accountIdentifier: (a: number) => any;
806
- readonly client_inboxId: (a: number) => [number, number];
807
- readonly client_isRegistered: (a: number) => number;
808
- readonly client_installationId: (a: number) => [number, number];
809
- readonly client_installationIdBytes: (a: number) => any;
810
- readonly client_canMessage: (a: number, b: number, c: number) => any;
811
- readonly client_registerIdentity: (a: number) => any;
812
- readonly client_sendSyncRequest: (a: number) => any;
813
- readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
814
- readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
815
- readonly client_conversations: (a: number) => number;
816
- readonly client_syncPreferences: (a: number) => any;
817
- readonly client_apiStatistics: (a: number) => number;
818
- readonly client_apiIdentityStatistics: (a: number) => number;
819
- readonly client_apiAggregateStatistics: (a: number) => [number, number];
820
- readonly client_uploadDebugArchive: (a: number, b: number, c: number) => any;
821
- readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
822
- readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
823
- readonly groupmetadata_conversationType: (a: number) => [number, number];
824
- readonly __wbg_groupmember_free: (a: number, b: number) => void;
825
- readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
826
- readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
827
- readonly __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
828
- readonly __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
829
- readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
830
- readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
831
- readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
832
- readonly __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
833
- readonly __wbg_get_groupmember_consentState: (a: number) => number;
834
- readonly __wbg_set_groupmember_consentState: (a: number, b: number) => void;
835
- readonly groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
836
- readonly __wbg_conversation_free: (a: number, b: number) => void;
837
- readonly conversation_id: (a: number) => [number, number];
838
- readonly conversation_send: (a: number, b: number) => any;
839
- readonly conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
840
- readonly conversation_publishMessages: (a: number) => any;
841
- readonly conversation_sync: (a: number) => any;
842
- readonly conversation_findMessages: (a: number, b: number) => any;
843
- readonly conversation_findMessagesWithReactions: (a: number, b: number) => any;
844
- readonly conversation_listMembers: (a: number) => any;
845
- readonly conversation_adminList: (a: number) => [number, number, number, number];
846
- readonly conversation_superAdminList: (a: number) => [number, number, number, number];
847
- readonly conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
848
- readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
849
- readonly conversation_addMembers: (a: number, b: number, c: number) => any;
850
- readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
851
- readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
852
- readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
853
- readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
854
- readonly conversation_groupPermissions: (a: number) => [number, number, number];
855
- readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
856
- readonly conversation_removeMembers: (a: number, b: number, c: number) => any;
857
- readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
858
- readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
859
- readonly conversation_groupName: (a: number) => [number, number, number, number];
860
- readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
861
- readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
862
- readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
863
- readonly conversation_groupDescription: (a: number) => [number, number, number, number];
864
- readonly conversation_stream: (a: number, b: any) => [number, number, number];
865
- readonly conversation_createdAtNs: (a: number) => bigint;
866
- readonly conversation_isActive: (a: number) => [number, number, number];
867
- readonly conversation_pausedForVersion: (a: number) => [number, number, number, number];
868
- readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
869
- readonly conversation_groupMetadata: (a: number) => any;
870
- readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
871
- readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
872
- readonly conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
873
- readonly conversation_removeMessageDisappearingSettings: (a: number) => any;
874
- readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
875
- readonly conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
876
- readonly conversation_getHmacKeys: (a: number) => [number, number, number];
877
- readonly conversation_getDebugInfo: (a: number) => any;
878
- readonly conversation_findDuplicateDms: (a: number) => any;
879
- readonly __wbg_apistats_free: (a: number, b: number) => void;
880
- readonly __wbg_get_apistats_upload_key_package: (a: number) => bigint;
881
- readonly __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
882
- readonly __wbg_get_apistats_fetch_key_package: (a: number) => bigint;
883
- readonly __wbg_set_apistats_fetch_key_package: (a: number, b: bigint) => void;
884
- readonly __wbg_get_apistats_send_group_messages: (a: number) => bigint;
885
- readonly __wbg_set_apistats_send_group_messages: (a: number, b: bigint) => void;
886
- readonly __wbg_get_apistats_send_welcome_messages: (a: number) => bigint;
887
- readonly __wbg_set_apistats_send_welcome_messages: (a: number, b: bigint) => void;
888
- readonly __wbg_get_apistats_query_group_messages: (a: number) => bigint;
889
- readonly __wbg_set_apistats_query_group_messages: (a: number, b: bigint) => void;
890
- readonly __wbg_get_apistats_query_welcome_messages: (a: number) => bigint;
891
- readonly __wbg_set_apistats_query_welcome_messages: (a: number, b: bigint) => void;
892
- readonly __wbg_get_apistats_subscribe_messages: (a: number) => bigint;
893
- readonly __wbg_set_apistats_subscribe_messages: (a: number, b: bigint) => void;
894
- readonly __wbg_get_apistats_subscribe_welcomes: (a: number) => bigint;
895
- readonly __wbg_set_apistats_subscribe_welcomes: (a: number, b: bigint) => void;
896
- readonly __wbg_identitystats_free: (a: number, b: number) => void;
897
- readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
898
- readonly generateInboxId: (a: any) => [number, number, number, number];
899
- readonly __wbg_installation_free: (a: number, b: number) => void;
900
- readonly __wbg_get_installation_bytes: (a: number) => any;
901
- readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
902
- readonly __wbg_get_installation_id: (a: number) => [number, number];
903
- readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
904
- readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
905
- readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
906
- readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
907
- readonly __wbg_inboxstate_free: (a: number, b: number) => void;
908
- readonly __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
909
- readonly __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
910
- readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
911
- readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
912
- readonly __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
913
- readonly __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
914
- readonly inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
915
- readonly __wbg_keypackagestatus_free: (a: number, b: number) => void;
916
- readonly __wbg_get_keypackagestatus_lifetime: (a: number) => number;
917
964
  readonly __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
918
- readonly __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
919
- readonly __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
920
- readonly __wbg_lifetime_free: (a: number, b: number) => void;
921
- readonly client_inboxState: (a: number, b: number) => any;
922
- readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
923
- readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
924
965
  readonly __wbg_streamcloser_free: (a: number, b: number) => void;
925
966
  readonly streamcloser_end: (a: number) => void;
926
967
  readonly streamcloser_endAndWait: (a: number) => any;
927
968
  readonly streamcloser_waitForReady: (a: number) => any;
928
969
  readonly streamcloser_isClosed: (a: number) => number;
929
- readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
930
- readonly __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
931
- readonly __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
932
- readonly __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
933
- readonly __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
934
- readonly __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
935
- readonly __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
936
- readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
937
- readonly __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
938
- readonly __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
939
- readonly __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
940
- readonly __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
941
- readonly __wbg_get_lifetime_not_before: (a: number) => bigint;
942
- readonly __wbg_get_lifetime_not_after: (a: number) => bigint;
943
- readonly __wbg_consent_free: (a: number, b: number) => void;
944
- readonly __wbg_get_consent_entityType: (a: number) => number;
945
- readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
946
- readonly __wbg_get_consent_state: (a: number) => number;
947
- readonly __wbg_set_consent_state: (a: number, b: number) => void;
948
- readonly __wbg_get_consent_entity: (a: number) => [number, number];
949
- readonly __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
950
- readonly consent_new: (a: number, b: number, c: number, d: number) => number;
951
- readonly client_setConsentStates: (a: number, b: number, c: number) => any;
952
- readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
953
- readonly conversation_consentState: (a: number) => [number, number, number];
954
- readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
955
- readonly __wbg_opfs_free: (a: number, b: number) => void;
956
- readonly opfs_init_sqlite_opfs: () => any;
957
- readonly opfs_exists: () => number;
958
- readonly opfs_error: () => [number, number];
959
- readonly opfs_wipeFiles: () => any;
960
- readonly opfs_rm: (a: number, b: number) => [number, number, number];
961
- readonly opfs_getFileNames: () => [number, number];
962
- readonly opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
963
- readonly opfs_exportFile: (a: number, b: number) => [number, number, number, number];
964
- readonly opfs_getFileCount: () => number;
965
- readonly opfs_getCapacity: () => number;
966
- readonly opfs_addCapacity: (a: number) => any;
967
- readonly opfs_reduceCapacity: (a: number) => any;
968
970
  readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
969
971
  readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
970
972
  readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
@@ -1029,9 +1031,9 @@ export interface InitOutput {
1029
1031
  readonly __externref_table_dealloc: (a: number) => void;
1030
1032
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc094ec3bdf8c16b7: (a: number, b: number) => void;
1031
1033
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0eb99f8c2f057fcc: (a: number, b: number) => void;
1032
- readonly closure4487_externref_shim: (a: number, b: number, c: any) => void;
1034
+ readonly closure4569_externref_shim: (a: number, b: number, c: any) => void;
1033
1035
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h232599d7dcf89d52: (a: number, b: number) => void;
1034
- readonly closure5463_externref_shim: (a: number, b: number, c: any, d: any) => void;
1036
+ readonly closure5545_externref_shim: (a: number, b: number, c: any, d: any) => void;
1035
1037
  readonly __wbindgen_start: () => void;
1036
1038
  }
1037
1039