@xmtp/wasm-bindings 1.2.2 → 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
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;
5
4
  export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
6
5
  export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
7
6
  export function encodeReaction(reaction: Reaction): Uint8Array;
8
7
  export function decodeReaction(bytes: Uint8Array): Reaction;
8
+ export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
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,
@@ -139,7 +134,6 @@ export class Client {
139
134
  * Output booleans should be zipped with the index of input identifiers
140
135
  */
141
136
  canMessage(account_identifiers: Identifier[]): Promise<any>;
142
- registerIdentity(): Promise<void>;
143
137
  sendSyncRequest(): Promise<void>;
144
138
  findInboxIdByIdentifier(identifier: Identifier): Promise<string | undefined>;
145
139
  inboxStateFromInboxIds(inbox_ids: string[], refresh_from_network: boolean): Promise<InboxState[]>;
@@ -150,20 +144,6 @@ export class Client {
150
144
  apiAggregateStatistics(): string;
151
145
  clearAllStatistics(): void;
152
146
  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>;
167
147
  /**
168
148
  *
169
149
  * * Get the client's inbox state.
@@ -182,6 +162,18 @@ export class Client {
182
162
  *
183
163
  */
184
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;
175
+ setConsentStates(records: Consent[]): Promise<void>;
176
+ getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
185
177
  readonly accountIdentifier: Identifier;
186
178
  readonly inboxId: string;
187
179
  readonly isRegistered: boolean;
@@ -206,8 +198,6 @@ export class ContentTypeId {
206
198
  export class Conversation {
207
199
  private constructor();
208
200
  free(): void;
209
- consentState(): ConsentState;
210
- updateConsentState(state: ConsentState): void;
211
201
  id(): string;
212
202
  send(encoded_content: EncodedContent): Promise<string>;
213
203
  /**
@@ -256,6 +246,8 @@ export class Conversation {
256
246
  getHmacKeys(): any;
257
247
  getDebugInfo(): Promise<any>;
258
248
  findDuplicateDms(): Promise<Conversation[]>;
249
+ consentState(): ConsentState;
250
+ updateConsentState(state: ConsentState): void;
259
251
  }
260
252
  export class ConversationDebugInfo {
261
253
  private constructor();
@@ -583,6 +575,14 @@ export class RemoteAttachmentInfo {
583
575
  get filename(): string | undefined;
584
576
  set filename(value: string | null | undefined);
585
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
+ }
586
586
  export class StreamCloser {
587
587
  private constructor();
588
588
  free(): void;
@@ -624,7 +624,6 @@ export interface InitOutput {
624
624
  readonly client_installationId: (a: number) => [number, number];
625
625
  readonly client_installationIdBytes: (a: number) => any;
626
626
  readonly client_canMessage: (a: number, b: number, c: number) => any;
627
- readonly client_registerIdentity: (a: number) => any;
628
627
  readonly client_sendSyncRequest: (a: number) => any;
629
628
  readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
630
629
  readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
@@ -635,20 +634,28 @@ export interface InitOutput {
635
634
  readonly client_apiAggregateStatistics: (a: number) => [number, number];
636
635
  readonly client_clearAllStatistics: (a: number) => void;
637
636
  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];
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;
652
659
  readonly __wbg_apistats_free: (a: number, b: number) => void;
653
660
  readonly __wbg_get_apistats_upload_key_package: (a: number) => bigint;
654
661
  readonly __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
@@ -675,19 +682,9 @@ export interface InitOutput {
675
682
  readonly __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
676
683
  readonly __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
677
684
  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];
690
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;
691
688
  readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
692
689
  readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
693
690
  readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
@@ -709,6 +706,7 @@ export interface InitOutput {
709
706
  readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
710
707
  readonly decodeMultiRemoteAttachment: (a: any) => [number, number, number];
711
708
  readonly __wbg_reaction_free: (a: number, b: number) => void;
709
+ readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
712
710
  readonly __wbg_get_reaction_action: (a: number) => number;
713
711
  readonly __wbg_set_reaction_action: (a: number, b: number) => void;
714
712
  readonly __wbg_get_reaction_content: (a: number) => [number, number];
@@ -722,6 +720,8 @@ export interface InitOutput {
722
720
  readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
723
721
  readonly groupmetadata_conversationType: (a: number) => [number, number];
724
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
725
  readonly __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
726
726
  readonly __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
727
727
  readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
@@ -786,13 +786,13 @@ export interface InitOutput {
786
786
  readonly __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
787
787
  readonly __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
788
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;
789
- readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
790
789
  readonly messagedisappearingsettings_new: (a: bigint, b: bigint) => number;
791
790
  readonly __wbg_conversationdebuginfo_free: (a: number, b: number) => void;
792
791
  readonly __wbg_get_conversationdebuginfo_epoch: (a: number) => bigint;
793
792
  readonly __wbg_set_conversationdebuginfo_epoch: (a: number, b: bigint) => void;
794
793
  readonly __wbg_get_conversationdebuginfo_maybeForked: (a: number) => number;
795
794
  readonly __wbg_set_conversationdebuginfo_maybeForked: (a: number, b: number) => void;
795
+ readonly __wbg_get_conversationdebuginfo_forkDetails: (a: number) => [number, number];
796
796
  readonly __wbg_set_conversationdebuginfo_forkDetails: (a: number, b: number, c: number) => void;
797
797
  readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
798
798
  readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
@@ -810,7 +810,6 @@ export interface InitOutput {
810
810
  readonly __wbg_get_createdmoptions_messageDisappearingSettings: (a: number) => number;
811
811
  readonly __wbg_set_createdmoptions_messageDisappearingSettings: (a: number, b: number) => void;
812
812
  readonly createdmoptions_new: (a: number) => number;
813
- readonly __wbg_hmackey_free: (a: number, b: number) => void;
814
813
  readonly __wbg_get_hmackey_key: (a: number) => [number, number];
815
814
  readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
816
815
  readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
@@ -836,28 +835,6 @@ export interface InitOutput {
836
835
  readonly conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
837
836
  readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
838
837
  readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
839
- readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
840
- readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
841
- readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
842
- readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
843
- readonly __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
844
- readonly __wbg_get_contenttypeid_versionMinor: (a: number) => number;
845
- readonly __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
846
- readonly contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
847
- readonly __wbg_encodedcontent_free: (a: number, b: number) => void;
848
- readonly __wbg_get_encodedcontent_type: (a: number) => number;
849
- readonly __wbg_set_encodedcontent_type: (a: number, b: number) => void;
850
- readonly __wbg_get_encodedcontent_parameters: (a: number) => any;
851
- readonly __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
852
- readonly __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
853
- readonly __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
854
- readonly __wbg_get_encodedcontent_compression: (a: number) => number;
855
- readonly __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
856
- readonly __wbg_get_encodedcontent_content: (a: number) => any;
857
- readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
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
838
  readonly __wbg_installation_free: (a: number, b: number) => void;
862
839
  readonly __wbg_get_installation_bytes: (a: number) => any;
863
840
  readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
@@ -875,7 +852,6 @@ export interface InitOutput {
875
852
  readonly __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
876
853
  readonly inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
877
854
  readonly __wbg_keypackagestatus_free: (a: number, b: number) => void;
878
- readonly __wbg_get_keypackagestatus_lifetime: (a: number) => number;
879
855
  readonly __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
880
856
  readonly __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
881
857
  readonly __wbg_lifetime_free: (a: number, b: number) => void;
@@ -913,35 +889,35 @@ export interface InitOutput {
913
889
  readonly __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
914
890
  readonly __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
915
891
  readonly __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
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;
892
+ readonly __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
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;
896
+ readonly __wbg_passkeysignature_free: (a: number, b: number) => void;
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;
909
+ readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
910
+ readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
929
911
  readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
930
912
  readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
931
913
  readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
932
914
  readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
933
915
  readonly __wbg_get_reaction_reference: (a: number) => [number, number];
934
- readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
935
916
  readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
936
- readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
937
- readonly __wbg_get_conversationdebuginfo_forkDetails: (a: number) => [number, number];
938
917
  readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
939
918
  readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
940
919
  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
920
  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;
944
- readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
945
921
  readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
946
922
  readonly __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
947
923
  readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
@@ -954,19 +930,47 @@ export interface InitOutput {
954
930
  readonly __wbg_get_messagedisappearingsettings_inNs: (a: number) => bigint;
955
931
  readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
956
932
  readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
957
- readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
958
- readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
959
933
  readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
960
934
  readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
961
935
  readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
962
936
  readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
963
937
  readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
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;
964
941
  readonly __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
965
942
  readonly __wbg_streamcloser_free: (a: number, b: number) => void;
966
943
  readonly streamcloser_end: (a: number) => void;
967
944
  readonly streamcloser_endAndWait: (a: number) => any;
968
945
  readonly streamcloser_waitForReady: (a: number) => any;
969
946
  readonly streamcloser_isClosed: (a: number) => number;
947
+ readonly __wbg_consent_free: (a: number, b: number) => void;
948
+ readonly __wbg_get_consent_entityType: (a: number) => number;
949
+ readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
950
+ readonly __wbg_get_consent_state: (a: number) => number;
951
+ readonly __wbg_set_consent_state: (a: number, b: number) => void;
952
+ readonly __wbg_get_consent_entity: (a: number) => [number, number];
953
+ readonly __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
954
+ readonly consent_new: (a: number, b: number, c: number, d: number) => number;
955
+ readonly client_setConsentStates: (a: number, b: number, c: number) => any;
956
+ readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
957
+ readonly conversation_consentState: (a: number) => [number, number, number];
958
+ readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
959
+ readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
960
+ readonly generateInboxId: (a: any) => [number, number, number, number];
961
+ readonly __wbg_opfs_free: (a: number, b: number) => void;
962
+ readonly opfs_init_sqlite_opfs: () => any;
963
+ readonly opfs_exists: () => number;
964
+ readonly opfs_error: () => [number, number];
965
+ readonly opfs_wipeFiles: () => any;
966
+ readonly opfs_rm: (a: number, b: number) => [number, number, number];
967
+ readonly opfs_getFileNames: () => [number, number];
968
+ readonly opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
969
+ readonly opfs_exportFile: (a: number, b: number) => [number, number, number, number];
970
+ readonly opfs_getFileCount: () => number;
971
+ readonly opfs_getCapacity: () => number;
972
+ readonly opfs_addCapacity: (a: number) => any;
973
+ readonly opfs_reduceCapacity: (a: number) => any;
970
974
  readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
971
975
  readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
972
976
  readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
@@ -1031,9 +1035,9 @@ export interface InitOutput {
1031
1035
  readonly __externref_table_dealloc: (a: number) => void;
1032
1036
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc094ec3bdf8c16b7: (a: number, b: number) => void;
1033
1037
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0eb99f8c2f057fcc: (a: number, b: number) => void;
1034
- readonly closure4569_externref_shim: (a: number, b: number, c: any) => void;
1038
+ readonly closure4603_externref_shim: (a: number, b: number, c: any) => void;
1035
1039
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h232599d7dcf89d52: (a: number, b: number) => void;
1036
- readonly closure5545_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;
1037
1041
  readonly __wbindgen_start: () => void;
1038
1042
  }
1039
1043
 
@@ -266,20 +266,6 @@ function takeFromExternrefTable0(idx) {
266
266
  wasm.__externref_table_dealloc(idx);
267
267
  return value;
268
268
  }
269
- /**
270
- * @param {string} signature_text
271
- * @param {Uint8Array} signature_bytes
272
- * @param {Uint8Array} public_key
273
- */
274
- export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
275
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
276
- const len0 = WASM_VECTOR_LEN;
277
- const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
278
- if (ret[1]) {
279
- throw takeFromExternrefTable0(ret[0]);
280
- }
281
- }
282
-
283
269
  /**
284
270
  * @param {MultiRemoteAttachment} multiRemoteAttachment
285
271
  * @returns {Uint8Array}
@@ -338,6 +324,51 @@ function passArray8ToWasm0(arg, malloc) {
338
324
  WASM_VECTOR_LEN = arg.length;
339
325
  return ptr;
340
326
  }
327
+ /**
328
+ * @param {string} signature_text
329
+ * @param {Uint8Array} signature_bytes
330
+ * @param {Uint8Array} public_key
331
+ */
332
+ export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
333
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
334
+ const len0 = WASM_VECTOR_LEN;
335
+ const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
336
+ if (ret[1]) {
337
+ throw takeFromExternrefTable0(ret[0]);
338
+ }
339
+ }
340
+
341
+ /**
342
+ * @param {string} host
343
+ * @param {Identifier} recovery_identifier
344
+ * @param {string} inbox_id
345
+ * @param {Uint8Array[]} installation_ids
346
+ * @returns {Promise<SignatureRequestHandle>}
347
+ */
348
+ export function revokeInstallationsSignatureRequest(host, recovery_identifier, inbox_id, installation_ids) {
349
+ const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
350
+ const len0 = WASM_VECTOR_LEN;
351
+ const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
352
+ const len1 = WASM_VECTOR_LEN;
353
+ const ptr2 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
354
+ const len2 = WASM_VECTOR_LEN;
355
+ const ret = wasm.revokeInstallationsSignatureRequest(ptr0, len0, recovery_identifier, ptr1, len1, ptr2, len2);
356
+ return ret;
357
+ }
358
+
359
+ /**
360
+ * @param {string} host
361
+ * @param {SignatureRequestHandle} signature_request
362
+ * @returns {Promise<void>}
363
+ */
364
+ export function applySignatureRequest(host, signature_request) {
365
+ const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
366
+ const len0 = WASM_VECTOR_LEN;
367
+ _assertClass(signature_request, SignatureRequestHandle);
368
+ const ret = wasm.applySignatureRequest(ptr0, len0, signature_request.__wbg_ptr);
369
+ return ret;
370
+ }
371
+
341
372
  /**
342
373
  * @param {string} host
343
374
  * @param {Identifier} accountIdentifier
@@ -382,15 +413,15 @@ function __wbg_adapter_53(arg0, arg1) {
382
413
  }
383
414
 
384
415
  function __wbg_adapter_56(arg0, arg1, arg2) {
385
- wasm.closure4569_externref_shim(arg0, arg1, arg2);
416
+ wasm.closure4603_externref_shim(arg0, arg1, arg2);
386
417
  }
387
418
 
388
419
  function __wbg_adapter_59(arg0, arg1) {
389
420
  wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h232599d7dcf89d52(arg0, arg1);
390
421
  }
391
422
 
392
- function __wbg_adapter_775(arg0, arg1, arg2, arg3) {
393
- wasm.closure5545_externref_shim(arg0, arg1, arg2, arg3);
423
+ function __wbg_adapter_780(arg0, arg1, arg2, arg3) {
424
+ wasm.closure5579_externref_shim(arg0, arg1, arg2, arg3);
394
425
  }
395
426
 
396
427
  /**
@@ -519,16 +550,6 @@ export const ReactionSchema = Object.freeze({
519
550
  Shortcode: 2, "2": "Shortcode",
520
551
  Custom: 3, "3": "Custom",
521
552
  });
522
- /**
523
- * @enum {0 | 1 | 2 | 3 | 4}
524
- */
525
- export const SignatureRequestType = Object.freeze({
526
- AddWallet: 0, "0": "AddWallet",
527
- CreateInbox: 1, "1": "CreateInbox",
528
- RevokeWallet: 2, "2": "RevokeWallet",
529
- RevokeInstallations: 3, "3": "RevokeInstallations",
530
- ChangeRecoveryIdentifier: 4, "4": "ChangeRecoveryIdentifier",
531
- });
532
553
  /**
533
554
  * @enum {0 | 1}
534
555
  */
@@ -765,13 +786,6 @@ export class Client {
765
786
  const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
766
787
  return ret;
767
788
  }
768
- /**
769
- * @returns {Promise<void>}
770
- */
771
- registerIdentity() {
772
- const ret = wasm.client_registerIdentity(this.__wbg_ptr);
773
- return ret;
774
- }
775
789
  /**
776
790
  * @returns {Promise<void>}
777
791
  */
@@ -855,97 +869,112 @@ export class Client {
855
869
  return ret;
856
870
  }
857
871
  /**
858
- * @returns {string | undefined}
872
+ *
873
+ * * Get the client's inbox state.
874
+ * *
875
+ * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
876
+ * * Otherwise, the state will be read from the local database.
877
+ *
878
+ * @param {boolean} refresh_from_network
879
+ * @returns {Promise<InboxState>}
859
880
  */
860
- createInboxSignatureText() {
861
- const ret = wasm.client_createInboxSignatureText(this.__wbg_ptr);
862
- if (ret[3]) {
863
- throw takeFromExternrefTable0(ret[2]);
864
- }
865
- let v1;
866
- if (ret[0] !== 0) {
867
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
868
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
869
- }
870
- return v1;
881
+ inboxState(refresh_from_network) {
882
+ const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
883
+ return ret;
871
884
  }
872
885
  /**
873
- * @param {Identifier} new_identifier
874
- * @returns {Promise<string>}
886
+ * @param {string} inbox_id
887
+ * @returns {Promise<InboxState>}
875
888
  */
876
- addWalletSignatureText(new_identifier) {
877
- const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, new_identifier);
889
+ getLatestInboxState(inbox_id) {
890
+ const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
891
+ const len0 = WASM_VECTOR_LEN;
892
+ const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
878
893
  return ret;
879
894
  }
880
895
  /**
881
- * @param {Identifier} identifier
882
- * @returns {Promise<string>}
896
+ *
897
+ * * Get key package statuses for a list of installation IDs.
898
+ * *
899
+ * * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
900
+ *
901
+ * @param {string[]} installation_ids
902
+ * @returns {Promise<any>}
883
903
  */
884
- revokeWalletSignatureText(identifier) {
885
- const ret = wasm.client_revokeWalletSignatureText(this.__wbg_ptr, identifier);
904
+ getKeyPackageStatusesForInstallationIds(installation_ids) {
905
+ const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
906
+ const len0 = WASM_VECTOR_LEN;
907
+ const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
886
908
  return ret;
887
909
  }
888
910
  /**
889
- * @returns {Promise<string>}
911
+ * @returns {SignatureRequestHandle | undefined}
912
+ */
913
+ createInboxSignatureRequest() {
914
+ const ret = wasm.client_createInboxSignatureRequest(this.__wbg_ptr);
915
+ if (ret[2]) {
916
+ throw takeFromExternrefTable0(ret[1]);
917
+ }
918
+ return ret[0] === 0 ? undefined : SignatureRequestHandle.__wrap(ret[0]);
919
+ }
920
+ /**
921
+ * @param {Identifier} new_identifier
922
+ * @returns {Promise<SignatureRequestHandle>}
890
923
  */
891
- revokeAllOtherInstallationsSignatureText() {
892
- const ret = wasm.client_revokeAllOtherInstallationsSignatureText(this.__wbg_ptr);
924
+ addWalletSignatureRequest(new_identifier) {
925
+ const ret = wasm.client_addWalletSignatureRequest(this.__wbg_ptr, new_identifier);
893
926
  return ret;
894
927
  }
895
928
  /**
896
- * @param {Uint8Array[]} installation_ids
897
- * @returns {Promise<string>}
929
+ * @param {Identifier} identifier
930
+ * @returns {Promise<SignatureRequestHandle>}
898
931
  */
899
- revokeInstallationsSignatureText(installation_ids) {
900
- const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
901
- const len0 = WASM_VECTOR_LEN;
902
- const ret = wasm.client_revokeInstallationsSignatureText(this.__wbg_ptr, ptr0, len0);
932
+ revokeWalletSignatureRequest(identifier) {
933
+ const ret = wasm.client_revokeWalletSignatureRequest(this.__wbg_ptr, identifier);
903
934
  return ret;
904
935
  }
905
936
  /**
906
- * @param {Identifier} new_recovery_identifier
907
- * @returns {Promise<string>}
937
+ * @returns {Promise<SignatureRequestHandle>}
908
938
  */
909
- changeRecoveryIdentifierSignatureText(new_recovery_identifier) {
910
- const ret = wasm.client_changeRecoveryIdentifierSignatureText(this.__wbg_ptr, new_recovery_identifier);
939
+ revokeAllOtherInstallationsSignatureRequest() {
940
+ const ret = wasm.client_revokeAllOtherInstallationsSignatureRequest(this.__wbg_ptr);
911
941
  return ret;
912
942
  }
913
943
  /**
914
- * @param {SignatureRequestType} signature_type
915
- * @param {Uint8Array} signature_bytes
916
- * @returns {Promise<void>}
944
+ * @param {Uint8Array[]} installation_ids
945
+ * @returns {Promise<SignatureRequestHandle>}
917
946
  */
918
- addEcdsaSignature(signature_type, signature_bytes) {
919
- const ret = wasm.client_addEcdsaSignature(this.__wbg_ptr, signature_type, signature_bytes);
947
+ revokeInstallationsSignatureRequest(installation_ids) {
948
+ const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
949
+ const len0 = WASM_VECTOR_LEN;
950
+ const ret = wasm.client_revokeInstallationsSignatureRequest(this.__wbg_ptr, ptr0, len0);
920
951
  return ret;
921
952
  }
922
953
  /**
923
- * @param {SignatureRequestType} signature_type
924
- * @param {PasskeySignature} signature
925
- * @returns {Promise<void>}
954
+ * @param {Identifier} new_recovery_identifier
955
+ * @returns {Promise<SignatureRequestHandle>}
926
956
  */
927
- addPasskeySignature(signature_type, signature) {
928
- _assertClass(signature, PasskeySignature);
929
- var ptr0 = signature.__destroy_into_raw();
930
- const ret = wasm.client_addPasskeySignature(this.__wbg_ptr, signature_type, ptr0);
957
+ changeRecoveryIdentifierSignatureRequest(new_recovery_identifier) {
958
+ const ret = wasm.client_changeRecoveryIdentifierSignatureRequest(this.__wbg_ptr, new_recovery_identifier);
931
959
  return ret;
932
960
  }
933
961
  /**
934
- * @param {SignatureRequestType} signature_type
935
- * @param {Uint8Array} signature_bytes
936
- * @param {bigint} chain_id
937
- * @param {bigint | null} [block_number]
962
+ * @param {SignatureRequestHandle} signature_request
938
963
  * @returns {Promise<void>}
939
964
  */
940
- addScwSignature(signature_type, signature_bytes, chain_id, block_number) {
941
- const ret = wasm.client_addScwSignature(this.__wbg_ptr, signature_type, signature_bytes, chain_id, !isLikeNone(block_number), isLikeNone(block_number) ? BigInt(0) : block_number);
965
+ applySignatureRequest(signature_request) {
966
+ _assertClass(signature_request, SignatureRequestHandle);
967
+ const ret = wasm.client_applySignatureRequest(this.__wbg_ptr, signature_request.__wbg_ptr);
942
968
  return ret;
943
969
  }
944
970
  /**
971
+ * @param {SignatureRequestHandle} signature_request
945
972
  * @returns {Promise<void>}
946
973
  */
947
- applySignatureRequests() {
948
- const ret = wasm.client_applySignatureRequests(this.__wbg_ptr);
974
+ registerIdentity(signature_request) {
975
+ _assertClass(signature_request, SignatureRequestHandle);
976
+ var ptr0 = signature_request.__destroy_into_raw();
977
+ const ret = wasm.client_registerIdentity(this.__wbg_ptr, ptr0);
949
978
  return ret;
950
979
  }
951
980
  /**
@@ -994,45 +1023,6 @@ export class Client {
994
1023
  const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
995
1024
  return ret;
996
1025
  }
997
- /**
998
- *
999
- * * Get the client's inbox state.
1000
- * *
1001
- * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
1002
- * * Otherwise, the state will be read from the local database.
1003
- *
1004
- * @param {boolean} refresh_from_network
1005
- * @returns {Promise<InboxState>}
1006
- */
1007
- inboxState(refresh_from_network) {
1008
- const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
1009
- return ret;
1010
- }
1011
- /**
1012
- * @param {string} inbox_id
1013
- * @returns {Promise<InboxState>}
1014
- */
1015
- getLatestInboxState(inbox_id) {
1016
- const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1017
- const len0 = WASM_VECTOR_LEN;
1018
- const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
1019
- return ret;
1020
- }
1021
- /**
1022
- *
1023
- * * Get key package statuses for a list of installation IDs.
1024
- * *
1025
- * * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
1026
- *
1027
- * @param {string[]} installation_ids
1028
- * @returns {Promise<any>}
1029
- */
1030
- getKeyPackageStatusesForInstallationIds(installation_ids) {
1031
- const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
1032
- const len0 = WASM_VECTOR_LEN;
1033
- const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
1034
- return ret;
1035
- }
1036
1026
  }
1037
1027
 
1038
1028
  const ConsentFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1169,7 +1159,7 @@ export class ContentTypeId {
1169
1159
  set authorityId(arg0) {
1170
1160
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1171
1161
  const len0 = WASM_VECTOR_LEN;
1172
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
1162
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
1173
1163
  }
1174
1164
  /**
1175
1165
  * @returns {string}
@@ -1263,25 +1253,6 @@ export class Conversation {
1263
1253
  const ptr = this.__destroy_into_raw();
1264
1254
  wasm.__wbg_conversation_free(ptr, 0);
1265
1255
  }
1266
- /**
1267
- * @returns {ConsentState}
1268
- */
1269
- consentState() {
1270
- const ret = wasm.conversation_consentState(this.__wbg_ptr);
1271
- if (ret[2]) {
1272
- throw takeFromExternrefTable0(ret[1]);
1273
- }
1274
- return ret[0];
1275
- }
1276
- /**
1277
- * @param {ConsentState} state
1278
- */
1279
- updateConsentState(state) {
1280
- const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
1281
- if (ret[1]) {
1282
- throw takeFromExternrefTable0(ret[0]);
1283
- }
1284
- }
1285
1256
  /**
1286
1257
  * @returns {string}
1287
1258
  */
@@ -1776,6 +1747,25 @@ export class Conversation {
1776
1747
  const ret = wasm.conversation_findDuplicateDms(this.__wbg_ptr);
1777
1748
  return ret;
1778
1749
  }
1750
+ /**
1751
+ * @returns {ConsentState}
1752
+ */
1753
+ consentState() {
1754
+ const ret = wasm.conversation_consentState(this.__wbg_ptr);
1755
+ if (ret[2]) {
1756
+ throw takeFromExternrefTable0(ret[1]);
1757
+ }
1758
+ return ret[0];
1759
+ }
1760
+ /**
1761
+ * @param {ConsentState} state
1762
+ */
1763
+ updateConsentState(state) {
1764
+ const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
1765
+ if (ret[1]) {
1766
+ throw takeFromExternrefTable0(ret[0]);
1767
+ }
1768
+ }
1779
1769
  }
1780
1770
 
1781
1771
  const ConversationDebugInfoFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -2539,7 +2529,7 @@ export class GroupMember {
2539
2529
  set inboxId(arg0) {
2540
2530
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2541
2531
  const len0 = WASM_VECTOR_LEN;
2542
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
2532
+ wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
2543
2533
  }
2544
2534
  /**
2545
2535
  * @returns {Identifier[]}
@@ -2900,7 +2890,7 @@ export class InboxState {
2900
2890
  set inboxId(arg0) {
2901
2891
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2902
2892
  const len0 = WASM_VECTOR_LEN;
2903
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
2893
+ wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
2904
2894
  }
2905
2895
  /**
2906
2896
  * @returns {Identifier}
@@ -3220,7 +3210,7 @@ export class KeyPackageStatus {
3220
3210
  * @returns {Lifetime | undefined}
3221
3211
  */
3222
3212
  get lifetime() {
3223
- const ret = wasm.__wbg_get_keypackagestatus_lifetime(this.__wbg_ptr);
3213
+ const ret = wasm.__wbg_get_createdmoptions_messageDisappearingSettings(this.__wbg_ptr);
3224
3214
  return ret === 0 ? undefined : Lifetime.__wrap(ret);
3225
3215
  }
3226
3216
  /**
@@ -4351,7 +4341,7 @@ export class Reaction {
4351
4341
  set reference(arg0) {
4352
4342
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4353
4343
  const len0 = WASM_VECTOR_LEN;
4354
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
4344
+ wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
4355
4345
  }
4356
4346
  /**
4357
4347
  * @returns {string}
@@ -4374,7 +4364,7 @@ export class Reaction {
4374
4364
  set referenceInboxId(arg0) {
4375
4365
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4376
4366
  const len0 = WASM_VECTOR_LEN;
4377
- wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
4367
+ wasm.__wbg_set_reaction_referenceInboxId(this.__wbg_ptr, ptr0, len0);
4378
4368
  }
4379
4369
  /**
4380
4370
  * @returns {ReactionAction}
@@ -4645,6 +4635,69 @@ export class RemoteAttachmentInfo {
4645
4635
  }
4646
4636
  }
4647
4637
 
4638
+ const SignatureRequestHandleFinalization = (typeof FinalizationRegistry === 'undefined')
4639
+ ? { register: () => {}, unregister: () => {} }
4640
+ : new FinalizationRegistry(ptr => wasm.__wbg_signaturerequesthandle_free(ptr >>> 0, 1));
4641
+
4642
+ export class SignatureRequestHandle {
4643
+
4644
+ static __wrap(ptr) {
4645
+ ptr = ptr >>> 0;
4646
+ const obj = Object.create(SignatureRequestHandle.prototype);
4647
+ obj.__wbg_ptr = ptr;
4648
+ SignatureRequestHandleFinalization.register(obj, obj.__wbg_ptr, obj);
4649
+ return obj;
4650
+ }
4651
+
4652
+ __destroy_into_raw() {
4653
+ const ptr = this.__wbg_ptr;
4654
+ this.__wbg_ptr = 0;
4655
+ SignatureRequestHandleFinalization.unregister(this);
4656
+ return ptr;
4657
+ }
4658
+
4659
+ free() {
4660
+ const ptr = this.__destroy_into_raw();
4661
+ wasm.__wbg_signaturerequesthandle_free(ptr, 0);
4662
+ }
4663
+ /**
4664
+ * @returns {Promise<string>}
4665
+ */
4666
+ signatureText() {
4667
+ const ret = wasm.signaturerequesthandle_signatureText(this.__wbg_ptr);
4668
+ return ret;
4669
+ }
4670
+ /**
4671
+ * @param {Uint8Array} signature_bytes
4672
+ * @returns {Promise<void>}
4673
+ */
4674
+ addEcdsaSignature(signature_bytes) {
4675
+ const ret = wasm.signaturerequesthandle_addEcdsaSignature(this.__wbg_ptr, signature_bytes);
4676
+ return ret;
4677
+ }
4678
+ /**
4679
+ * @param {PasskeySignature} signature
4680
+ * @returns {Promise<void>}
4681
+ */
4682
+ addPasskeySignature(signature) {
4683
+ _assertClass(signature, PasskeySignature);
4684
+ var ptr0 = signature.__destroy_into_raw();
4685
+ const ret = wasm.signaturerequesthandle_addPasskeySignature(this.__wbg_ptr, ptr0);
4686
+ return ret;
4687
+ }
4688
+ /**
4689
+ * @param {Identifier} account_identifier
4690
+ * @param {Uint8Array} signature_bytes
4691
+ * @param {bigint} chain_id
4692
+ * @param {bigint | null} [block_number]
4693
+ * @returns {Promise<void>}
4694
+ */
4695
+ addScwSignature(account_identifier, signature_bytes, chain_id, block_number) {
4696
+ const ret = wasm.signaturerequesthandle_addScwSignature(this.__wbg_ptr, account_identifier, signature_bytes, chain_id, !isLikeNone(block_number), isLikeNone(block_number) ? BigInt(0) : block_number);
4697
+ return ret;
4698
+ }
4699
+ }
4700
+
4648
4701
  const StreamCloserFinalization = (typeof FinalizationRegistry === 'undefined')
4649
4702
  ? { register: () => {}, unregister: () => {} }
4650
4703
  : new FinalizationRegistry(ptr => wasm.__wbg_streamcloser_free(ptr >>> 0, 1));
@@ -5206,7 +5259,7 @@ function __wbg_get_imports() {
5206
5259
  const a = state0.a;
5207
5260
  state0.a = 0;
5208
5261
  try {
5209
- return __wbg_adapter_775(a, state0.b, arg0, arg1);
5262
+ return __wbg_adapter_780(a, state0.b, arg0, arg1);
5210
5263
  } finally {
5211
5264
  state0.a = a;
5212
5265
  }
@@ -5318,19 +5371,19 @@ function __wbg_get_imports() {
5318
5371
  const ret = arg0.now();
5319
5372
  return ret;
5320
5373
  };
5321
- imports.wbg.__wbg_onconsentupdate_41b7339687cc011c = function(arg0, arg1) {
5374
+ imports.wbg.__wbg_onconsentupdate_f8105588c9e804b8 = function(arg0, arg1) {
5322
5375
  arg0.on_consent_update(arg1);
5323
5376
  };
5324
- imports.wbg.__wbg_onconversation_7404b2379eb67834 = function(arg0, arg1) {
5377
+ imports.wbg.__wbg_onconversation_55400867b020173b = function(arg0, arg1) {
5325
5378
  arg0.on_conversation(Conversation.__wrap(arg1));
5326
5379
  };
5327
- imports.wbg.__wbg_onerror_eb2eb9eb1d76fa24 = function(arg0, arg1) {
5380
+ imports.wbg.__wbg_onerror_0c7ab85f5c732a56 = function(arg0, arg1) {
5328
5381
  arg0.on_error(arg1);
5329
5382
  };
5330
- imports.wbg.__wbg_onmessage_1ad7dbda90e7e92d = function(arg0, arg1) {
5383
+ imports.wbg.__wbg_onmessage_62db180abce496e7 = function(arg0, arg1) {
5331
5384
  arg0.on_message(Message.__wrap(arg1));
5332
5385
  };
5333
- imports.wbg.__wbg_onuserpreferenceupdate_71b80aff3461dfa2 = function(arg0, arg1, arg2) {
5386
+ imports.wbg.__wbg_onuserpreferenceupdate_2c7863b671f23eed = function(arg0, arg1, arg2) {
5334
5387
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
5335
5388
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
5336
5389
  arg0.on_user_preference_update(v0);
@@ -5480,6 +5533,10 @@ function __wbg_get_imports() {
5480
5533
  const ret = arg0.signal;
5481
5534
  return ret;
5482
5535
  };
5536
+ imports.wbg.__wbg_signaturerequesthandle_new = function(arg0) {
5537
+ const ret = SignatureRequestHandle.__wrap(arg0);
5538
+ return ret;
5539
+ };
5483
5540
  imports.wbg.__wbg_size_f9d54556ad844dc3 = function(arg0) {
5484
5541
  const ret = arg0.size;
5485
5542
  return ret;
@@ -5617,20 +5674,20 @@ function __wbg_get_imports() {
5617
5674
  const ret = false;
5618
5675
  return ret;
5619
5676
  };
5620
- imports.wbg.__wbindgen_closure_wrapper17557 = function(arg0, arg1, arg2) {
5621
- const ret = makeMutClosure(arg0, arg1, 4207, __wbg_adapter_50);
5677
+ imports.wbg.__wbindgen_closure_wrapper17681 = function(arg0, arg1, arg2) {
5678
+ const ret = makeMutClosure(arg0, arg1, 4239, __wbg_adapter_50);
5622
5679
  return ret;
5623
5680
  };
5624
- imports.wbg.__wbindgen_closure_wrapper17717 = function(arg0, arg1, arg2) {
5625
- const ret = makeMutClosure(arg0, arg1, 4265, __wbg_adapter_53);
5681
+ imports.wbg.__wbindgen_closure_wrapper17841 = function(arg0, arg1, arg2) {
5682
+ const ret = makeMutClosure(arg0, arg1, 4297, __wbg_adapter_53);
5626
5683
  return ret;
5627
5684
  };
5628
- imports.wbg.__wbindgen_closure_wrapper20829 = function(arg0, arg1, arg2) {
5629
- const ret = makeMutClosure(arg0, arg1, 4570, __wbg_adapter_56);
5685
+ imports.wbg.__wbindgen_closure_wrapper20956 = function(arg0, arg1, arg2) {
5686
+ const ret = makeMutClosure(arg0, arg1, 4604, __wbg_adapter_56);
5630
5687
  return ret;
5631
5688
  };
5632
- imports.wbg.__wbindgen_closure_wrapper20939 = function(arg0, arg1, arg2) {
5633
- const ret = makeMutClosure(arg0, arg1, 4581, __wbg_adapter_59);
5689
+ imports.wbg.__wbindgen_closure_wrapper21066 = function(arg0, arg1, arg2) {
5690
+ const ret = makeMutClosure(arg0, arg1, 4615, __wbg_adapter_59);
5634
5691
  return ret;
5635
5692
  };
5636
5693
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -17,7 +17,6 @@ export const client_isRegistered: (a: number) => number;
17
17
  export const client_installationId: (a: number) => [number, number];
18
18
  export const client_installationIdBytes: (a: number) => any;
19
19
  export const client_canMessage: (a: number, b: number, c: number) => any;
20
- export const client_registerIdentity: (a: number) => any;
21
20
  export const client_sendSyncRequest: (a: number) => any;
22
21
  export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
23
22
  export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
@@ -28,20 +27,28 @@ export const client_apiIdentityStatistics: (a: number) => number;
28
27
  export const client_apiAggregateStatistics: (a: number) => [number, number];
29
28
  export const client_clearAllStatistics: (a: number) => void;
30
29
  export const client_uploadDebugArchive: (a: number, b: number, c: number) => any;
31
- export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
32
- export const __wbg_passkeysignature_free: (a: number, b: number) => void;
33
- export const client_createInboxSignatureText: (a: number) => [number, number, number, number];
34
- export const client_addWalletSignatureText: (a: number, b: any) => any;
35
- export const client_revokeWalletSignatureText: (a: number, b: any) => any;
36
- export const client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
37
- export const client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
38
- export const client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
39
- export const client_addEcdsaSignature: (a: number, b: number, c: any) => any;
40
- export const client_addPasskeySignature: (a: number, b: number, c: number) => any;
41
- export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
42
- export const client_applySignatureRequests: (a: number) => any;
43
- export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
44
- export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
30
+ export const __wbg_contenttypeid_free: (a: number, b: number) => void;
31
+ export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
32
+ export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
33
+ export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
34
+ export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
35
+ export const __wbg_get_contenttypeid_versionMajor: (a: number) => number;
36
+ export const __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
37
+ export const __wbg_get_contenttypeid_versionMinor: (a: number) => number;
38
+ export const __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
39
+ export const contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
40
+ export const __wbg_encodedcontent_free: (a: number, b: number) => void;
41
+ export const __wbg_get_encodedcontent_type: (a: number) => number;
42
+ export const __wbg_set_encodedcontent_type: (a: number, b: number) => void;
43
+ export const __wbg_get_encodedcontent_parameters: (a: number) => any;
44
+ export const __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
45
+ export const __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
46
+ export const __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
47
+ export const __wbg_get_encodedcontent_compression: (a: number) => number;
48
+ export const __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
49
+ export const __wbg_get_encodedcontent_content: (a: number) => any;
50
+ export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
51
+ export const encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
45
52
  export const __wbg_apistats_free: (a: number, b: number) => void;
46
53
  export const __wbg_get_apistats_upload_key_package: (a: number) => bigint;
47
54
  export const __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
@@ -68,19 +75,9 @@ export const __wbg_get_identitystats_publish_identity_update: (a: number) => big
68
75
  export const __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
69
76
  export const __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
70
77
  export const __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
71
- export const __wbg_consent_free: (a: number, b: number) => void;
72
- export const __wbg_get_consent_entityType: (a: number) => number;
73
- export const __wbg_set_consent_entityType: (a: number, b: number) => void;
74
- export const __wbg_get_consent_state: (a: number) => number;
75
- export const __wbg_set_consent_state: (a: number, b: number) => void;
76
- export const __wbg_get_consent_entity: (a: number) => [number, number];
77
- export const __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
78
- export const consent_new: (a: number, b: number, c: number, d: number) => number;
79
- export const client_setConsentStates: (a: number, b: number, c: number) => any;
80
- export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
81
- export const conversation_consentState: (a: number) => [number, number, number];
82
- export const conversation_updateConsentState: (a: number, b: number) => [number, number];
83
78
  export const __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
79
+ export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
80
+ export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
84
81
  export const __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
85
82
  export const __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
86
83
  export const __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
@@ -102,6 +99,7 @@ export const multiremoteattachment_new: (a: number, b: number) => number;
102
99
  export const encodeMultiRemoteAttachment: (a: number) => [number, number, number];
103
100
  export const decodeMultiRemoteAttachment: (a: any) => [number, number, number];
104
101
  export const __wbg_reaction_free: (a: number, b: number) => void;
102
+ export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
105
103
  export const __wbg_get_reaction_action: (a: number) => number;
106
104
  export const __wbg_set_reaction_action: (a: number, b: number) => void;
107
105
  export const __wbg_get_reaction_content: (a: number) => [number, number];
@@ -115,6 +113,8 @@ export const __wbg_groupmetadata_free: (a: number, b: number) => void;
115
113
  export const groupmetadata_creatorInboxId: (a: number) => [number, number];
116
114
  export const groupmetadata_conversationType: (a: number) => [number, number];
117
115
  export const __wbg_groupmember_free: (a: number, b: number) => void;
116
+ export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
117
+ export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
118
118
  export const __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
119
119
  export const __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
120
120
  export const __wbg_get_groupmember_installationIds: (a: number) => [number, number];
@@ -179,13 +179,13 @@ export const __wbg_set_listconversationsoptions_includeDuplicateDms: (a: number,
179
179
  export const __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
180
180
  export const __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
181
181
  export const listconversationsoptions_new: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: bigint, h: number, i: number, j: bigint) => number;
182
- export const __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
183
182
  export const messagedisappearingsettings_new: (a: bigint, b: bigint) => number;
184
183
  export const __wbg_conversationdebuginfo_free: (a: number, b: number) => void;
185
184
  export const __wbg_get_conversationdebuginfo_epoch: (a: number) => bigint;
186
185
  export const __wbg_set_conversationdebuginfo_epoch: (a: number, b: bigint) => void;
187
186
  export const __wbg_get_conversationdebuginfo_maybeForked: (a: number) => number;
188
187
  export const __wbg_set_conversationdebuginfo_maybeForked: (a: number, b: number) => void;
188
+ export const __wbg_get_conversationdebuginfo_forkDetails: (a: number) => [number, number];
189
189
  export const __wbg_set_conversationdebuginfo_forkDetails: (a: number, b: number, c: number) => void;
190
190
  export const __wbg_creategroupoptions_free: (a: number, b: number) => void;
191
191
  export const __wbg_get_creategroupoptions_permissions: (a: number) => number;
@@ -203,7 +203,6 @@ export const __wbg_createdmoptions_free: (a: number, b: number) => void;
203
203
  export const __wbg_get_createdmoptions_messageDisappearingSettings: (a: number) => number;
204
204
  export const __wbg_set_createdmoptions_messageDisappearingSettings: (a: number, b: number) => void;
205
205
  export const createdmoptions_new: (a: number) => number;
206
- export const __wbg_hmackey_free: (a: number, b: number) => void;
207
206
  export const __wbg_get_hmackey_key: (a: number) => [number, number];
208
207
  export const __wbg_conversationlistitem_free: (a: number, b: number) => void;
209
208
  export const __wbg_get_conversationlistitem_conversation: (a: number) => number;
@@ -229,28 +228,6 @@ export const conversations_stream: (a: number, b: any, c: number) => [number, nu
229
228
  export const conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
230
229
  export const conversations_streamConsent: (a: number, b: any) => [number, number, number];
231
230
  export const conversations_streamPreferences: (a: number, b: any) => [number, number, number];
232
- export const __wbg_contenttypeid_free: (a: number, b: number) => void;
233
- export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
234
- export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
235
- export const __wbg_get_contenttypeid_versionMajor: (a: number) => number;
236
- export const __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
237
- export const __wbg_get_contenttypeid_versionMinor: (a: number) => number;
238
- export const __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
239
- export const contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
240
- export const __wbg_encodedcontent_free: (a: number, b: number) => void;
241
- export const __wbg_get_encodedcontent_type: (a: number) => number;
242
- export const __wbg_set_encodedcontent_type: (a: number, b: number) => void;
243
- export const __wbg_get_encodedcontent_parameters: (a: number) => any;
244
- export const __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
245
- export const __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
246
- export const __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
247
- export const __wbg_get_encodedcontent_compression: (a: number) => number;
248
- export const __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
249
- export const __wbg_get_encodedcontent_content: (a: number) => any;
250
- export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
251
- export const encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
252
- export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
253
- export const generateInboxId: (a: any) => [number, number, number, number];
254
231
  export const __wbg_installation_free: (a: number, b: number) => void;
255
232
  export const __wbg_get_installation_bytes: (a: number) => any;
256
233
  export const __wbg_set_installation_bytes: (a: number, b: any) => void;
@@ -268,7 +245,6 @@ export const __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, nu
268
245
  export const __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
269
246
  export const inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
270
247
  export const __wbg_keypackagestatus_free: (a: number, b: number) => void;
271
- export const __wbg_get_keypackagestatus_lifetime: (a: number) => number;
272
248
  export const __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
273
249
  export const __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
274
250
  export const __wbg_lifetime_free: (a: number, b: number) => void;
@@ -306,35 +282,35 @@ export const __wbg_get_messagewithreactions_message: (a: number) => number;
306
282
  export const __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
307
283
  export const __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
308
284
  export const __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
309
- export const __wbg_opfs_free: (a: number, b: number) => void;
310
- export const opfs_init_sqlite_opfs: () => any;
311
- export const opfs_exists: () => number;
312
- export const opfs_error: () => [number, number];
313
- export const opfs_wipeFiles: () => any;
314
- export const opfs_rm: (a: number, b: number) => [number, number, number];
315
- export const opfs_getFileNames: () => [number, number];
316
- export const opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
317
- export const opfs_exportFile: (a: number, b: number) => [number, number, number, number];
318
- export const opfs_getFileCount: () => number;
319
- export const opfs_getCapacity: () => number;
320
- export const opfs_addCapacity: (a: number) => any;
321
- export const opfs_reduceCapacity: (a: number) => any;
285
+ export const __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
286
+ export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
287
+ export const revokeInstallationsSignatureRequest: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => any;
288
+ export const applySignatureRequest: (a: number, b: number, c: number) => any;
289
+ export const __wbg_passkeysignature_free: (a: number, b: number) => void;
290
+ export const signaturerequesthandle_signatureText: (a: number) => any;
291
+ export const signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
292
+ export const signaturerequesthandle_addPasskeySignature: (a: number, b: number) => any;
293
+ export const signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
294
+ export const client_createInboxSignatureRequest: (a: number) => [number, number, number];
295
+ export const client_addWalletSignatureRequest: (a: number, b: any) => any;
296
+ export const client_revokeWalletSignatureRequest: (a: number, b: any) => any;
297
+ export const client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
298
+ export const client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
299
+ export const client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
300
+ export const client_applySignatureRequest: (a: number, b: number) => any;
301
+ export const client_registerIdentity: (a: number, b: number) => any;
302
+ export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
303
+ export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
322
304
  export const __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
323
305
  export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
324
306
  export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
325
307
  export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
326
308
  export const __wbg_get_reaction_reference: (a: number) => [number, number];
327
- export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
328
309
  export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
329
- export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
330
- export const __wbg_get_conversationdebuginfo_forkDetails: (a: number) => [number, number];
331
310
  export const __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
332
311
  export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
333
312
  export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
334
- export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
335
313
  export const __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
336
- export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
337
- export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
338
314
  export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
339
315
  export const __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
340
316
  export const __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
@@ -347,19 +323,47 @@ export const __wbg_get_lifetime_not_before: (a: number) => bigint;
347
323
  export const __wbg_get_messagedisappearingsettings_inNs: (a: number) => bigint;
348
324
  export const __wbg_get_message_sentAtNs: (a: number) => bigint;
349
325
  export const __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
350
- export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
351
- export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
352
326
  export const __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
353
327
  export const __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
354
328
  export const __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
355
329
  export const __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
356
330
  export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
331
+ export const __wbg_get_keypackagestatus_lifetime: (a: number) => number;
332
+ export const __wbg_hmackey_free: (a: number, b: number) => void;
333
+ export const __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
357
334
  export const __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
358
335
  export const __wbg_streamcloser_free: (a: number, b: number) => void;
359
336
  export const streamcloser_end: (a: number) => void;
360
337
  export const streamcloser_endAndWait: (a: number) => any;
361
338
  export const streamcloser_waitForReady: (a: number) => any;
362
339
  export const streamcloser_isClosed: (a: number) => number;
340
+ export const __wbg_consent_free: (a: number, b: number) => void;
341
+ export const __wbg_get_consent_entityType: (a: number) => number;
342
+ export const __wbg_set_consent_entityType: (a: number, b: number) => void;
343
+ export const __wbg_get_consent_state: (a: number) => number;
344
+ export const __wbg_set_consent_state: (a: number, b: number) => void;
345
+ export const __wbg_get_consent_entity: (a: number) => [number, number];
346
+ export const __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
347
+ export const consent_new: (a: number, b: number, c: number, d: number) => number;
348
+ export const client_setConsentStates: (a: number, b: number, c: number) => any;
349
+ export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
350
+ export const conversation_consentState: (a: number) => [number, number, number];
351
+ export const conversation_updateConsentState: (a: number, b: number) => [number, number];
352
+ export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
353
+ export const generateInboxId: (a: any) => [number, number, number, number];
354
+ export const __wbg_opfs_free: (a: number, b: number) => void;
355
+ export const opfs_init_sqlite_opfs: () => any;
356
+ export const opfs_exists: () => number;
357
+ export const opfs_error: () => [number, number];
358
+ export const opfs_wipeFiles: () => any;
359
+ export const opfs_rm: (a: number, b: number) => [number, number, number];
360
+ export const opfs_getFileNames: () => [number, number];
361
+ export const opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
362
+ export const opfs_exportFile: (a: number, b: number) => [number, number, number, number];
363
+ export const opfs_getFileCount: () => number;
364
+ export const opfs_getCapacity: () => number;
365
+ export const opfs_addCapacity: (a: number) => any;
366
+ export const opfs_reduceCapacity: (a: number) => any;
363
367
  export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
364
368
  export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
365
369
  export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
@@ -424,7 +428,7 @@ export const __wbindgen_export_7: WebAssembly.Table;
424
428
  export const __externref_table_dealloc: (a: number) => void;
425
429
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc094ec3bdf8c16b7: (a: number, b: number) => void;
426
430
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0eb99f8c2f057fcc: (a: number, b: number) => void;
427
- export const closure4569_externref_shim: (a: number, b: number, c: any) => void;
431
+ export const closure4603_externref_shim: (a: number, b: number, c: any) => void;
428
432
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h232599d7dcf89d52: (a: number, b: number) => void;
429
- export const closure5545_externref_shim: (a: number, b: number, c: any, d: any) => void;
433
+ export const closure5579_externref_shim: (a: number, b: number, c: any, d: any) => void;
430
434
  export const __wbindgen_start: () => void;
package/dist/version.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "branch": "release/v1.2",
3
- "version": "d0f0b67",
4
- "date": "2025-06-18 21:31:37 +0000"
3
+ "version": "b2feaef",
4
+ "date": "2025-06-23 19:06:41 +0000"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmtp/wasm-bindings",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "WASM bindings for the libXMTP rust library",