@xmtp/wasm-bindings 1.2.1 → 1.2.3

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,13 @@
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>;
3
4
  export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
4
5
  export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
5
6
  export function encodeReaction(reaction: Reaction): Uint8Array;
6
7
  export function decodeReaction(bytes: Uint8Array): Reaction;
7
8
  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
+ export function revokeInstallationsSignatureRequest(host: string, recovery_identifier: Identifier, inbox_id: string, installation_ids: Uint8Array[]): Promise<SignatureRequestHandle>;
10
+ export function applySignatureRequest(host: string, signature_request: SignatureRequestHandle): Promise<void>;
9
11
  export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
10
12
  export function generateInboxId(accountIdentifier: Identifier): string;
11
13
  export enum ConsentEntityType {
@@ -92,13 +94,6 @@ export enum ReactionSchema {
92
94
  Shortcode = 2,
93
95
  Custom = 3,
94
96
  }
95
- export enum SignatureRequestType {
96
- AddWallet = 0,
97
- CreateInbox = 1,
98
- RevokeWallet = 2,
99
- RevokeInstallations = 3,
100
- ChangeRecoveryIdentifier = 4,
101
- }
102
97
  export enum SortDirection {
103
98
  Ascending = 0,
104
99
  Descending = 1,
@@ -135,23 +130,10 @@ export class ApiStats {
135
130
  export class Client {
136
131
  private constructor();
137
132
  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
133
  /**
151
134
  * Output booleans should be zipped with the index of input identifiers
152
135
  */
153
136
  canMessage(account_identifiers: Identifier[]): Promise<any>;
154
- registerIdentity(): Promise<void>;
155
137
  sendSyncRequest(): Promise<void>;
156
138
  findInboxIdByIdentifier(identifier: Identifier): Promise<string | undefined>;
157
139
  inboxStateFromInboxIds(inbox_ids: string[], refresh_from_network: boolean): Promise<InboxState[]>;
@@ -160,6 +142,7 @@ export class Client {
160
142
  apiStatistics(): ApiStats;
161
143
  apiIdentityStatistics(): IdentityStats;
162
144
  apiAggregateStatistics(): string;
145
+ clearAllStatistics(): void;
163
146
  uploadDebugArchive(server_url: string): Promise<string>;
164
147
  /**
165
148
  *
@@ -179,6 +162,16 @@ export class Client {
179
162
  *
180
163
  */
181
164
  getKeyPackageStatusesForInstallationIds(installation_ids: string[]): Promise<any>;
165
+ createInboxSignatureRequest(): SignatureRequestHandle | undefined;
166
+ addWalletSignatureRequest(new_identifier: Identifier): Promise<SignatureRequestHandle>;
167
+ revokeWalletSignatureRequest(identifier: Identifier): Promise<SignatureRequestHandle>;
168
+ revokeAllOtherInstallationsSignatureRequest(): Promise<SignatureRequestHandle>;
169
+ revokeInstallationsSignatureRequest(installation_ids: Uint8Array[]): Promise<SignatureRequestHandle>;
170
+ changeRecoveryIdentifierSignatureRequest(new_recovery_identifier: Identifier): Promise<SignatureRequestHandle>;
171
+ applySignatureRequest(signature_request: SignatureRequestHandle): Promise<void>;
172
+ registerIdentity(signature_request: SignatureRequestHandle): Promise<void>;
173
+ signWithInstallationKey(signature_text: string): Uint8Array;
174
+ verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
182
175
  setConsentStates(records: Consent[]): Promise<void>;
183
176
  getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
184
177
  readonly accountIdentifier: Identifier;
@@ -582,6 +575,14 @@ export class RemoteAttachmentInfo {
582
575
  get filename(): string | undefined;
583
576
  set filename(value: string | null | undefined);
584
577
  }
578
+ export class SignatureRequestHandle {
579
+ private constructor();
580
+ free(): void;
581
+ signatureText(): Promise<string>;
582
+ addEcdsaSignature(signature_bytes: Uint8Array): Promise<void>;
583
+ addPasskeySignature(signature: PasskeySignature): Promise<void>;
584
+ addScwSignature(account_identifier: Identifier, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint | null): Promise<void>;
585
+ }
585
586
  export class StreamCloser {
586
587
  private constructor();
587
588
  free(): void;
@@ -607,12 +608,87 @@ 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_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
+ readonly __wbg_apistats_free: (a: number, b: number) => void;
660
+ readonly __wbg_get_apistats_upload_key_package: (a: number) => bigint;
661
+ readonly __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
662
+ readonly __wbg_get_apistats_fetch_key_package: (a: number) => bigint;
663
+ readonly __wbg_set_apistats_fetch_key_package: (a: number, b: bigint) => void;
664
+ readonly __wbg_get_apistats_send_group_messages: (a: number) => bigint;
665
+ readonly __wbg_set_apistats_send_group_messages: (a: number, b: bigint) => void;
666
+ readonly __wbg_get_apistats_send_welcome_messages: (a: number) => bigint;
667
+ readonly __wbg_set_apistats_send_welcome_messages: (a: number, b: bigint) => void;
668
+ readonly __wbg_get_apistats_query_group_messages: (a: number) => bigint;
669
+ readonly __wbg_set_apistats_query_group_messages: (a: number, b: bigint) => void;
670
+ readonly __wbg_get_apistats_query_welcome_messages: (a: number) => bigint;
671
+ readonly __wbg_set_apistats_query_welcome_messages: (a: number, b: bigint) => void;
672
+ readonly __wbg_get_apistats_subscribe_messages: (a: number) => bigint;
673
+ readonly __wbg_set_apistats_subscribe_messages: (a: number, b: bigint) => void;
674
+ readonly __wbg_get_apistats_subscribe_welcomes: (a: number) => bigint;
675
+ readonly __wbg_set_apistats_subscribe_welcomes: (a: number, b: bigint) => void;
676
+ readonly __wbg_identitystats_free: (a: number, b: number) => void;
677
+ readonly __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
678
+ readonly __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
679
+ readonly __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
680
+ readonly __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
681
+ readonly __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
682
+ readonly __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
683
+ readonly __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
684
+ readonly __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
610
685
  readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
686
+ readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
687
+ readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
611
688
  readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
612
689
  readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
613
690
  readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
614
691
  readonly __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
615
- readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
616
692
  readonly __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
617
693
  readonly __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
618
694
  readonly __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
@@ -630,6 +706,7 @@ export interface InitOutput {
630
706
  readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
631
707
  readonly decodeMultiRemoteAttachment: (a: any) => [number, number, number];
632
708
  readonly __wbg_reaction_free: (a: number, b: number) => void;
709
+ readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
633
710
  readonly __wbg_get_reaction_action: (a: number) => number;
634
711
  readonly __wbg_set_reaction_action: (a: number, b: number) => void;
635
712
  readonly __wbg_get_reaction_content: (a: number) => [number, number];
@@ -639,13 +716,69 @@ export interface InitOutput {
639
716
  readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
640
717
  readonly encodeReaction: (a: number) => [number, number, number];
641
718
  readonly decodeReaction: (a: any) => [number, number, number];
719
+ readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
720
+ readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
721
+ readonly groupmetadata_conversationType: (a: number) => [number, number];
722
+ 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
+ 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;
@@ -653,15 +786,13 @@ export interface InitOutput {
653
786
  readonly __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
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
- 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
789
  readonly messagedisappearingsettings_new: (a: bigint, b: bigint) => number;
660
790
  readonly __wbg_conversationdebuginfo_free: (a: number, b: number) => void;
661
791
  readonly __wbg_get_conversationdebuginfo_epoch: (a: number) => bigint;
662
792
  readonly __wbg_set_conversationdebuginfo_epoch: (a: number, b: bigint) => void;
663
793
  readonly __wbg_get_conversationdebuginfo_maybeForked: (a: number) => number;
664
794
  readonly __wbg_set_conversationdebuginfo_maybeForked: (a: number, b: number) => void;
795
+ readonly __wbg_get_conversationdebuginfo_forkDetails: (a: number) => [number, number];
665
796
  readonly __wbg_set_conversationdebuginfo_forkDetails: (a: number, b: number, c: number) => void;
666
797
  readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
667
798
  readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
@@ -704,28 +835,31 @@ export interface InitOutput {
704
835
  readonly conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
705
836
  readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
706
837
  readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
707
- 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
- readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
711
- readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
712
- readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
713
- readonly __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
714
- readonly __wbg_get_contenttypeid_versionMinor: (a: number) => number;
715
- readonly __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
716
- readonly contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
717
- readonly __wbg_encodedcontent_free: (a: number, b: number) => void;
718
- readonly __wbg_get_encodedcontent_type: (a: number) => number;
719
- readonly __wbg_set_encodedcontent_type: (a: number, b: number) => void;
720
- readonly __wbg_get_encodedcontent_parameters: (a: number) => any;
721
- readonly __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
722
- readonly __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
723
- readonly __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
724
- readonly __wbg_get_encodedcontent_compression: (a: number) => number;
725
- readonly __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
726
- readonly __wbg_get_encodedcontent_content: (a: number) => any;
727
- readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
728
- readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
838
+ readonly __wbg_installation_free: (a: number, b: number) => void;
839
+ readonly __wbg_get_installation_bytes: (a: number) => any;
840
+ readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
841
+ readonly __wbg_get_installation_id: (a: number) => [number, number];
842
+ readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
843
+ readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
844
+ readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
845
+ readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
846
+ readonly __wbg_inboxstate_free: (a: number, b: number) => void;
847
+ readonly __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
848
+ readonly __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
849
+ readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
850
+ readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
851
+ readonly __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
852
+ readonly __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
853
+ readonly inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
854
+ readonly __wbg_keypackagestatus_free: (a: number, b: number) => void;
855
+ readonly __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
856
+ readonly __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
857
+ readonly __wbg_lifetime_free: (a: number, b: number) => void;
858
+ readonly __wbg_get_lifetime_not_after: (a: number) => bigint;
859
+ readonly __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
860
+ readonly client_inboxState: (a: number, b: number) => any;
861
+ readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
862
+ readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
729
863
  readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
730
864
  readonly __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
731
865
  readonly __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
@@ -755,191 +889,61 @@ export interface InitOutput {
755
889
  readonly __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
756
890
  readonly __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
757
891
  readonly __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
892
+ readonly __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
758
893
  readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
894
+ readonly revokeInstallationsSignatureRequest: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => any;
895
+ readonly applySignatureRequest: (a: number, b: number, c: number) => any;
759
896
  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;
897
+ readonly signaturerequesthandle_signatureText: (a: number) => any;
898
+ readonly signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
899
+ readonly signaturerequesthandle_addPasskeySignature: (a: number, b: number) => any;
900
+ readonly signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
901
+ readonly client_createInboxSignatureRequest: (a: number) => [number, number, number];
902
+ readonly client_addWalletSignatureRequest: (a: number, b: any) => any;
903
+ readonly client_revokeWalletSignatureRequest: (a: number, b: any) => any;
904
+ readonly client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
905
+ readonly client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
906
+ readonly client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
907
+ readonly client_applySignatureRequest: (a: number, b: number) => any;
908
+ readonly client_registerIdentity: (a: number, b: number) => any;
770
909
  readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
771
910
  readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
911
+ readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
772
912
  readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
773
913
  readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
774
914
  readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
775
- readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
776
915
  readonly __wbg_get_reaction_reference: (a: number) => [number, number];
777
- readonly __wbg_get_conversationdebuginfo_forkDetails: (a: number) => [number, number];
778
- readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
916
+ readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
917
+ readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
918
+ readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
779
919
  readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
780
- readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
920
+ readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
921
+ readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
781
922
  readonly __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
782
923
  readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
924
+ readonly __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
925
+ readonly __wbg_set_messagedisappearingsettings_inNs: (a: number, b: bigint) => void;
783
926
  readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
784
927
  readonly __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
785
928
  readonly __wbg_get_hmackey_epoch: (a: number) => bigint;
929
+ readonly __wbg_get_lifetime_not_before: (a: number) => bigint;
930
+ readonly __wbg_get_messagedisappearingsettings_inNs: (a: number) => bigint;
786
931
  readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
787
932
  readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
788
- readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
789
- readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
933
+ readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
790
934
  readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
791
935
  readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
792
936
  readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
793
937
  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
938
  readonly __wbg_get_keypackagestatus_lifetime: (a: number) => number;
939
+ readonly __wbg_hmackey_free: (a: number, b: number) => void;
940
+ readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
917
941
  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
942
  readonly __wbg_streamcloser_free: (a: number, b: number) => void;
925
943
  readonly streamcloser_end: (a: number) => void;
926
944
  readonly streamcloser_endAndWait: (a: number) => any;
927
945
  readonly streamcloser_waitForReady: (a: number) => any;
928
946
  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
947
  readonly __wbg_consent_free: (a: number, b: number) => void;
944
948
  readonly __wbg_get_consent_entityType: (a: number) => number;
945
949
  readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
@@ -952,6 +956,8 @@ export interface InitOutput {
952
956
  readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
953
957
  readonly conversation_consentState: (a: number) => [number, number, number];
954
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];
955
961
  readonly __wbg_opfs_free: (a: number, b: number) => void;
956
962
  readonly opfs_init_sqlite_opfs: () => any;
957
963
  readonly opfs_exists: () => number;
@@ -1029,9 +1035,9 @@ export interface InitOutput {
1029
1035
  readonly __externref_table_dealloc: (a: number) => void;
1030
1036
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc094ec3bdf8c16b7: (a: number, b: number) => void;
1031
1037
  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;
1038
+ readonly closure4603_externref_shim: (a: number, b: number, c: any) => void;
1033
1039
  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;
1040
+ readonly closure5579_externref_shim: (a: number, b: number, c: any, d: any) => void;
1035
1041
  readonly __wbindgen_start: () => void;
1036
1042
  }
1037
1043