@xmtp/wasm-bindings 1.2.0-rc4 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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): Promise<Client>;
4
- export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
5
3
  export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
6
4
  export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
7
5
  export function encodeReaction(reaction: Reaction): Uint8Array;
8
6
  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,6 +135,20 @@ export class ApiStats {
135
135
  export class Client {
136
136
  private constructor();
137
137
  free(): void;
138
+ setConsentStates(records: Consent[]): Promise<void>;
139
+ getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
140
+ createInboxSignatureText(): string | undefined;
141
+ addWalletSignatureText(new_identifier: Identifier): Promise<string>;
142
+ revokeWalletSignatureText(identifier: Identifier): Promise<string>;
143
+ revokeAllOtherInstallationsSignatureText(): Promise<string>;
144
+ revokeInstallationsSignatureText(installation_ids: Uint8Array[]): Promise<string>;
145
+ changeRecoveryIdentifierSignatureText(new_recovery_identifier: Identifier): Promise<string>;
146
+ addEcdsaSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
147
+ addPasskeySignature(signature_type: SignatureRequestType, signature: PasskeySignature): Promise<void>;
148
+ addScwSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint | null): Promise<void>;
149
+ applySignatureRequests(): Promise<void>;
150
+ signWithInstallationKey(signature_text: string): Uint8Array;
151
+ verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
138
152
  /**
139
153
  * Output booleans should be zipped with the index of input identifiers
140
154
  */
@@ -149,20 +163,6 @@ export class Client {
149
163
  apiIdentityStatistics(): IdentityStats;
150
164
  apiAggregateStatistics(): string;
151
165
  uploadDebugArchive(server_url: string): Promise<string>;
152
- createInboxSignatureText(): string | undefined;
153
- addWalletSignatureText(new_identifier: Identifier): Promise<string>;
154
- revokeWalletSignatureText(identifier: Identifier): Promise<string>;
155
- revokeAllOtherInstallationsSignatureText(): Promise<string>;
156
- revokeInstallationsSignatureText(installation_ids: Uint8Array[]): Promise<string>;
157
- changeRecoveryIdentifierSignatureText(new_recovery_identifier: Identifier): Promise<string>;
158
- addEcdsaSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
159
- addPasskeySignature(signature_type: SignatureRequestType, signature: PasskeySignature): Promise<void>;
160
- addScwSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint | null): Promise<void>;
161
- applySignatureRequests(): Promise<void>;
162
- signWithInstallationKey(signature_text: string): Uint8Array;
163
- verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
164
- setConsentStates(records: Consent[]): Promise<void>;
165
- getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
166
166
  /**
167
167
  *
168
168
  * * Get the client's inbox state.
@@ -603,46 +603,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
603
603
 
604
604
  export interface InitOutput {
605
605
  readonly memory: WebAssembly.Memory;
606
- readonly __wbg_client_free: (a: number, b: number) => void;
607
- readonly __wbg_logoptions_free: (a: number, b: number) => void;
608
- readonly __wbg_get_logoptions_structured: (a: number) => number;
609
- readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
610
- readonly __wbg_get_logoptions_performance: (a: number) => number;
611
- readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
612
- readonly __wbg_get_logoptions_level: (a: number) => number;
613
- readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
614
- readonly logoptions_new: (a: number, b: number, c: number) => number;
615
- 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;
616
- readonly client_accountIdentifier: (a: number) => any;
617
- readonly client_inboxId: (a: number) => [number, number];
618
- readonly client_isRegistered: (a: number) => number;
619
- readonly client_installationId: (a: number) => [number, number];
620
- readonly client_installationIdBytes: (a: number) => any;
621
- readonly client_canMessage: (a: number, b: number, c: number) => any;
622
- readonly client_registerIdentity: (a: number) => any;
623
- readonly client_sendSyncRequest: (a: number) => any;
624
- readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
625
- readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
626
- readonly client_conversations: (a: number) => number;
627
- readonly client_syncPreferences: (a: number) => any;
628
- readonly client_apiStatistics: (a: number) => number;
629
- readonly client_apiIdentityStatistics: (a: number) => number;
630
- readonly client_apiAggregateStatistics: (a: number) => [number, number];
631
- readonly client_uploadDebugArchive: (a: number, b: number, c: number) => any;
632
- readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
633
- readonly __wbg_passkeysignature_free: (a: number, b: number) => void;
634
- readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
635
- readonly client_addWalletSignatureText: (a: number, b: any) => any;
636
- readonly client_revokeWalletSignatureText: (a: number, b: any) => any;
637
- readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
638
- readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
639
- readonly client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
640
- readonly client_addEcdsaSignature: (a: number, b: number, c: any) => any;
641
- readonly client_addPasskeySignature: (a: number, b: number, c: number) => any;
642
- readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
643
- readonly client_applySignatureRequests: (a: number) => any;
644
- readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
645
- readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
646
606
  readonly __wbg_consent_free: (a: number, b: number) => void;
647
607
  readonly __wbg_get_consent_entityType: (a: number) => number;
648
608
  readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
@@ -655,130 +615,6 @@ export interface InitOutput {
655
615
  readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
656
616
  readonly conversation_consentState: (a: number) => [number, number, number];
657
617
  readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
658
- readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
659
- readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
660
- readonly groupmetadata_conversationType: (a: number) => [number, number];
661
- readonly __wbg_groupmember_free: (a: number, b: number) => void;
662
- readonly __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
663
- readonly __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
664
- readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
665
- readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
666
- readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
667
- readonly __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
668
- readonly __wbg_get_groupmember_consentState: (a: number) => number;
669
- readonly __wbg_set_groupmember_consentState: (a: number, b: number) => void;
670
- readonly groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
671
- readonly __wbg_conversation_free: (a: number, b: number) => void;
672
- readonly conversation_id: (a: number) => [number, number];
673
- readonly conversation_send: (a: number, b: number) => any;
674
- readonly conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
675
- readonly conversation_publishMessages: (a: number) => any;
676
- readonly conversation_sync: (a: number) => any;
677
- readonly conversation_findMessages: (a: number, b: number) => any;
678
- readonly conversation_findMessagesWithReactions: (a: number, b: number) => any;
679
- readonly conversation_listMembers: (a: number) => any;
680
- readonly conversation_adminList: (a: number) => [number, number, number, number];
681
- readonly conversation_superAdminList: (a: number) => [number, number, number, number];
682
- readonly conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
683
- readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
684
- readonly conversation_addMembers: (a: number, b: number, c: number) => any;
685
- readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
686
- readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
687
- readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
688
- readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
689
- readonly conversation_groupPermissions: (a: number) => [number, number, number];
690
- readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
691
- readonly conversation_removeMembers: (a: number, b: number, c: number) => any;
692
- readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
693
- readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
694
- readonly conversation_groupName: (a: number) => [number, number, number, number];
695
- readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
696
- readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
697
- readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
698
- readonly conversation_groupDescription: (a: number) => [number, number, number, number];
699
- readonly conversation_stream: (a: number, b: any) => [number, number, number];
700
- readonly conversation_createdAtNs: (a: number) => bigint;
701
- readonly conversation_isActive: (a: number) => [number, number, number];
702
- readonly conversation_pausedForVersion: (a: number) => [number, number, number, number];
703
- readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
704
- readonly conversation_groupMetadata: (a: number) => any;
705
- readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
706
- readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
707
- readonly conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
708
- readonly conversation_removeMessageDisappearingSettings: (a: number) => any;
709
- readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
710
- readonly conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
711
- readonly conversation_getHmacKeys: (a: number) => [number, number, number];
712
- readonly conversation_getDebugInfo: (a: number) => any;
713
- readonly conversation_findDuplicateDms: (a: number) => any;
714
- readonly __wbg_opfs_free: (a: number, b: number) => void;
715
- readonly opfs_init_sqlite_opfs: () => any;
716
- readonly opfs_exists: () => number;
717
- readonly opfs_error: () => [number, number];
718
- readonly opfs_wipeFiles: () => any;
719
- readonly opfs_rm: (a: number, b: number) => [number, number, number];
720
- readonly opfs_getFileNames: () => [number, number];
721
- readonly opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
722
- readonly opfs_exportFile: (a: number, b: number) => [number, number, number, number];
723
- readonly opfs_getFileCount: () => number;
724
- readonly opfs_getCapacity: () => number;
725
- readonly opfs_addCapacity: (a: number) => any;
726
- readonly opfs_reduceCapacity: (a: number) => any;
727
- readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
728
- readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
729
- readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
730
- readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
731
- readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
732
- readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
733
- readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
734
- readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
735
- readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
736
- readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
737
- readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
738
- readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
739
- readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
740
- readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
741
- readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
742
- readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
743
- readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
744
- readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
745
- readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
746
- readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
747
- readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
748
- readonly grouppermissions_policyType: (a: number) => [number, number, number];
749
- readonly grouppermissions_policySet: (a: number) => [number, number, number];
750
- readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
751
- readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
752
- readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
753
- readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
754
- readonly __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
755
- readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
756
- readonly __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
757
- readonly __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
758
- readonly __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
759
- readonly __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
760
- readonly __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
761
- readonly __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
762
- readonly __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
763
- readonly __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
764
- readonly __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
765
- readonly remoteattachmentinfo_new: (a: any, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: any, j: number, k: number, l: number) => number;
766
- readonly __wbg_multiremoteattachment_free: (a: number, b: number) => void;
767
- readonly __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
768
- readonly __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
769
- readonly multiremoteattachment_new: (a: number, b: number) => number;
770
- readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
771
- readonly decodeMultiRemoteAttachment: (a: any) => [number, number, number];
772
- readonly __wbg_reaction_free: (a: number, b: number) => void;
773
- readonly __wbg_get_reaction_action: (a: number) => number;
774
- readonly __wbg_set_reaction_action: (a: number, b: number) => void;
775
- readonly __wbg_get_reaction_content: (a: number) => [number, number];
776
- readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
777
- readonly __wbg_get_reaction_schema: (a: number) => number;
778
- readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
779
- readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
780
- readonly encodeReaction: (a: number) => [number, number, number];
781
- readonly decodeReaction: (a: any) => [number, number, number];
782
618
  readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
783
619
  readonly __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
784
620
  readonly __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
@@ -845,8 +681,6 @@ export interface InitOutput {
845
681
  readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
846
682
  readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
847
683
  readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
848
- readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
849
- readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
850
684
  readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
851
685
  readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
852
686
  readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
@@ -895,19 +729,25 @@ export interface InitOutput {
895
729
  readonly __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
896
730
  readonly __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
897
731
  readonly __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
898
- readonly __wbg_streamcloser_free: (a: number, b: number) => void;
899
- readonly streamcloser_end: (a: number) => void;
900
- readonly streamcloser_endAndWait: (a: number) => any;
901
- readonly streamcloser_waitForReady: (a: number) => any;
902
- readonly streamcloser_isClosed: (a: number) => number;
732
+ readonly __wbg_opfs_free: (a: number, b: number) => void;
733
+ readonly opfs_init_sqlite_opfs: () => any;
734
+ readonly opfs_exists: () => number;
735
+ readonly opfs_error: () => [number, number];
736
+ readonly opfs_wipeFiles: () => any;
737
+ readonly opfs_rm: (a: number, b: number) => [number, number, number];
738
+ readonly opfs_getFileNames: () => [number, number];
739
+ readonly opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
740
+ readonly opfs_exportFile: (a: number, b: number) => [number, number, number, number];
741
+ readonly opfs_getFileCount: () => number;
742
+ readonly opfs_getCapacity: () => number;
743
+ readonly opfs_addCapacity: (a: number) => any;
744
+ readonly opfs_reduceCapacity: (a: number) => any;
903
745
  readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
904
- readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
905
- readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
746
+ readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
906
747
  readonly __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
907
748
  readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
908
749
  readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
909
- readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
910
- readonly __wbg_get_reaction_reference: (a: number) => [number, number];
750
+ readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
911
751
  readonly __wbg_get_conversationdebuginfo_forkDetails: (a: number) => [number, number];
912
752
  readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
913
753
  readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
@@ -918,10 +758,13 @@ export interface InitOutput {
918
758
  readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
919
759
  readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
920
760
  readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
921
- readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
922
761
  readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
923
- readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
924
762
  readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
763
+ readonly __wbg_streamcloser_free: (a: number, b: number) => void;
764
+ readonly streamcloser_end: (a: number) => void;
765
+ readonly streamcloser_endAndWait: (a: number) => any;
766
+ readonly streamcloser_waitForReady: (a: number) => any;
767
+ readonly streamcloser_isClosed: (a: number) => number;
925
768
  readonly __wbg_apistats_free: (a: number, b: number) => void;
926
769
  readonly __wbg_get_apistats_upload_key_package: (a: number) => bigint;
927
770
  readonly __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
@@ -940,6 +783,150 @@ export interface InitOutput {
940
783
  readonly __wbg_get_apistats_subscribe_welcomes: (a: number) => bigint;
941
784
  readonly __wbg_set_apistats_subscribe_welcomes: (a: number, b: bigint) => void;
942
785
  readonly __wbg_identitystats_free: (a: number, b: number) => void;
786
+ readonly __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
787
+ readonly __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
788
+ readonly __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
789
+ readonly __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
790
+ readonly __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
791
+ readonly __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
792
+ readonly __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
793
+ readonly __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
794
+ readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
795
+ readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
796
+ readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
797
+ readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
798
+ readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
799
+ readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
800
+ readonly __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
801
+ readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
802
+ readonly __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
803
+ readonly __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
804
+ readonly __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
805
+ readonly __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
806
+ readonly __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
807
+ readonly __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
808
+ readonly __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
809
+ readonly __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
810
+ readonly __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
811
+ readonly remoteattachmentinfo_new: (a: any, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: any, j: number, k: number, l: number) => number;
812
+ readonly __wbg_multiremoteattachment_free: (a: number, b: number) => void;
813
+ readonly __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
814
+ readonly __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
815
+ readonly multiremoteattachment_new: (a: number, b: number) => number;
816
+ readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
817
+ readonly decodeMultiRemoteAttachment: (a: any) => [number, number, number];
818
+ readonly __wbg_reaction_free: (a: number, b: number) => void;
819
+ readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
820
+ readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
821
+ readonly __wbg_get_reaction_action: (a: number) => number;
822
+ readonly __wbg_set_reaction_action: (a: number, b: number) => void;
823
+ readonly __wbg_get_reaction_content: (a: number) => [number, number];
824
+ readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
825
+ readonly __wbg_get_reaction_schema: (a: number) => number;
826
+ readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
827
+ readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
828
+ readonly encodeReaction: (a: number) => [number, number, number];
829
+ readonly decodeReaction: (a: any) => [number, number, number];
830
+ readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
831
+ readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
832
+ readonly groupmetadata_conversationType: (a: number) => [number, number];
833
+ readonly __wbg_groupmember_free: (a: number, b: number) => void;
834
+ readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
835
+ readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
836
+ readonly __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
837
+ readonly __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
838
+ readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
839
+ readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
840
+ readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
841
+ readonly __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
842
+ readonly __wbg_get_groupmember_consentState: (a: number) => number;
843
+ readonly __wbg_set_groupmember_consentState: (a: number, b: number) => void;
844
+ readonly groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
845
+ readonly __wbg_conversation_free: (a: number, b: number) => void;
846
+ readonly conversation_id: (a: number) => [number, number];
847
+ readonly conversation_send: (a: number, b: number) => any;
848
+ readonly conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
849
+ readonly conversation_publishMessages: (a: number) => any;
850
+ readonly conversation_sync: (a: number) => any;
851
+ readonly conversation_findMessages: (a: number, b: number) => any;
852
+ readonly conversation_findMessagesWithReactions: (a: number, b: number) => any;
853
+ readonly conversation_listMembers: (a: number) => any;
854
+ readonly conversation_adminList: (a: number) => [number, number, number, number];
855
+ readonly conversation_superAdminList: (a: number) => [number, number, number, number];
856
+ readonly conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
857
+ readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
858
+ readonly conversation_addMembers: (a: number, b: number, c: number) => any;
859
+ readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
860
+ readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
861
+ readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
862
+ readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
863
+ readonly conversation_groupPermissions: (a: number) => [number, number, number];
864
+ readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
865
+ readonly conversation_removeMembers: (a: number, b: number, c: number) => any;
866
+ readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
867
+ readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
868
+ readonly conversation_groupName: (a: number) => [number, number, number, number];
869
+ readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
870
+ readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
871
+ readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
872
+ readonly conversation_groupDescription: (a: number) => [number, number, number, number];
873
+ readonly conversation_stream: (a: number, b: any) => [number, number, number];
874
+ readonly conversation_createdAtNs: (a: number) => bigint;
875
+ readonly conversation_isActive: (a: number) => [number, number, number];
876
+ readonly conversation_pausedForVersion: (a: number) => [number, number, number, number];
877
+ readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
878
+ readonly conversation_groupMetadata: (a: number) => any;
879
+ readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
880
+ readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
881
+ readonly conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
882
+ readonly conversation_removeMessageDisappearingSettings: (a: number) => any;
883
+ readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
884
+ readonly conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
885
+ readonly conversation_getHmacKeys: (a: number) => [number, number, number];
886
+ readonly conversation_getDebugInfo: (a: number) => any;
887
+ readonly conversation_findDuplicateDms: (a: number) => any;
888
+ readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
889
+ readonly __wbg_passkeysignature_free: (a: number, b: number) => void;
890
+ readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
891
+ readonly client_addWalletSignatureText: (a: number, b: any) => any;
892
+ readonly client_revokeWalletSignatureText: (a: number, b: any) => any;
893
+ readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
894
+ readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
895
+ readonly client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
896
+ readonly client_addEcdsaSignature: (a: number, b: number, c: any) => any;
897
+ readonly client_addPasskeySignature: (a: number, b: number, c: number) => any;
898
+ readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
899
+ readonly client_applySignatureRequests: (a: number) => any;
900
+ readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
901
+ readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
902
+ readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
903
+ readonly __wbg_get_reaction_reference: (a: number) => [number, number];
904
+ readonly __wbg_client_free: (a: number, b: number) => void;
905
+ readonly __wbg_logoptions_free: (a: number, b: number) => void;
906
+ readonly __wbg_get_logoptions_structured: (a: number) => number;
907
+ readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
908
+ readonly __wbg_get_logoptions_performance: (a: number) => number;
909
+ readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
910
+ readonly __wbg_get_logoptions_level: (a: number) => number;
911
+ readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
912
+ readonly logoptions_new: (a: number, b: number, c: number) => number;
913
+ 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;
914
+ readonly client_accountIdentifier: (a: number) => any;
915
+ readonly client_inboxId: (a: number) => [number, number];
916
+ readonly client_isRegistered: (a: number) => number;
917
+ readonly client_installationId: (a: number) => [number, number];
918
+ readonly client_installationIdBytes: (a: number) => any;
919
+ readonly client_canMessage: (a: number, b: number, c: number) => any;
920
+ readonly client_registerIdentity: (a: number) => any;
921
+ readonly client_sendSyncRequest: (a: number) => any;
922
+ readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
923
+ readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
924
+ readonly client_conversations: (a: number) => number;
925
+ readonly client_syncPreferences: (a: number) => any;
926
+ readonly client_apiStatistics: (a: number) => number;
927
+ readonly client_apiIdentityStatistics: (a: number) => number;
928
+ readonly client_apiAggregateStatistics: (a: number) => [number, number];
929
+ readonly client_uploadDebugArchive: (a: number, b: number, c: number) => any;
943
930
  readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
944
931
  readonly generateInboxId: (a: any) => [number, number, number, number];
945
932
  readonly __wbg_installation_free: (a: number, b: number) => void;
@@ -966,21 +953,34 @@ export interface InitOutput {
966
953
  readonly __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
967
954
  readonly __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
968
955
  readonly __wbg_lifetime_free: (a: number, b: number) => void;
956
+ readonly __wbg_get_lifetime_not_before: (a: number) => bigint;
957
+ readonly __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
958
+ readonly __wbg_get_lifetime_not_after: (a: number) => bigint;
959
+ readonly __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
969
960
  readonly client_inboxState: (a: number, b: number) => any;
970
961
  readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
971
962
  readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
972
- readonly __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
973
- readonly __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
974
- readonly __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
975
- readonly __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
976
- readonly __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
977
- readonly __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
978
- readonly __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
979
- readonly __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
980
- readonly __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
981
- readonly __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
982
- readonly __wbg_get_lifetime_not_before: (a: number) => bigint;
983
- readonly __wbg_get_lifetime_not_after: (a: number) => bigint;
963
+ readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
964
+ readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
965
+ readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
966
+ readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
967
+ readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
968
+ readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
969
+ readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
970
+ readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
971
+ readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
972
+ readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
973
+ readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
974
+ readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
975
+ readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
976
+ readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
977
+ readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
978
+ readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
979
+ readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
980
+ readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
981
+ readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
982
+ readonly grouppermissions_policyType: (a: number) => [number, number, number];
983
+ readonly grouppermissions_policySet: (a: number) => [number, number, number];
984
984
  readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
985
985
  readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
986
986
  readonly rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
@@ -1024,9 +1024,9 @@ export interface InitOutput {
1024
1024
  readonly __externref_table_dealloc: (a: number) => void;
1025
1025
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h575b04d35ced4eef: (a: number, b: number) => void;
1026
1026
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h796728156b0a2ca1: (a: number, b: number) => void;
1027
- readonly closure4444_externref_shim: (a: number, b: number, c: any) => void;
1027
+ readonly closure4498_externref_shim: (a: number, b: number, c: any) => void;
1028
1028
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5c244b99d95a8e7a: (a: number, b: number) => void;
1029
- readonly closure5415_externref_shim: (a: number, b: number, c: any, d: any) => void;
1029
+ readonly closure5469_externref_shim: (a: number, b: number, c: any, d: any) => void;
1030
1030
  readonly __wbindgen_start: () => void;
1031
1031
  }
1032
1032