@xmtp/wasm-bindings 1.0.0-rc2 → 1.0.0-rc4

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.
@@ -4,10 +4,10 @@ export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAt
4
4
  export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
5
5
  export function encodeReaction(reaction: Reaction): Uint8Array;
6
6
  export function decodeReaction(bytes: Uint8Array): Reaction;
7
+ export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
8
+ export function createClient(host: string, inbox_id: string, account_identifier: Identifier, db_path?: string | null, encryption_key?: Uint8Array | null, history_sync_url?: string | null, log_options?: LogOptions | null): Promise<Client>;
7
9
  export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
8
10
  export function generateInboxId(accountIdentifier: Identifier): string;
9
- export function createClient(host: string, inbox_id: string, account_identifier: Identifier, db_path?: string | null, encryption_key?: Uint8Array | null, history_sync_url?: string | null, log_options?: LogOptions | null): Promise<Client>;
10
- export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
11
11
  export enum ConsentEntityType {
12
12
  GroupId = 0,
13
13
  InboxId = 1,
@@ -53,10 +53,6 @@ export enum GroupPermissionsOptions {
53
53
  AdminOnly = 1,
54
54
  CustomPolicy = 2,
55
55
  }
56
- export enum IdentifierKind {
57
- Ethereum = 0,
58
- Passkey = 1,
59
- }
60
56
  export enum MetadataField {
61
57
  GroupName = 0,
62
58
  Description = 1,
@@ -112,32 +108,18 @@ type LogLevel = "off" | "error" | "warn" | "info" | "debug" | "trace";
112
108
  * *This API requires the following crate features to be activated: `ReadableStreamType`*
113
109
  */
114
110
  type ReadableStreamType = "bytes";
111
+ export interface Identifier {
112
+ identifier: string;
113
+ identifierKind: IdentifierKind;
114
+ }
115
+
116
+ export type IdentifierKind = "Ethereum" | "Passkey";
117
+
115
118
  export type UserPreference = { type: "Consent"; consent: Consent } | { type: "HmacKeyUpdate"; key: number[] };
116
119
 
117
120
  export class Client {
118
121
  private constructor();
119
122
  free(): void;
120
- setConsentStates(records: Consent[]): Promise<void>;
121
- getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
122
- /**
123
- *
124
- * * Get the client's inbox state.
125
- * *
126
- * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
127
- * * Otherwise, the state will be read from the local database.
128
- *
129
- */
130
- inboxState(refresh_from_network: boolean): Promise<InboxState>;
131
- getLatestInboxState(inbox_id: string): Promise<InboxState>;
132
- /**
133
- * Output booleans should be zipped with the index of input identifiers
134
- */
135
- canMessage(account_identifiers: Identifier[]): Promise<any>;
136
- registerIdentity(): Promise<void>;
137
- sendHistorySyncRequest(): Promise<void>;
138
- sendConsentSyncRequest(): Promise<void>;
139
- findInboxIdByIdentifier(identifier: Identifier): Promise<string | undefined>;
140
- conversations(): Conversations;
141
123
  createInboxSignatureText(): string | undefined;
142
124
  addWalletSignatureText(new_identifier: Identifier): Promise<string>;
143
125
  revokeWalletSignatureText(identifier: Identifier): Promise<string>;
@@ -149,6 +131,27 @@ export class Client {
149
131
  applySignatureRequests(): Promise<void>;
150
132
  signWithInstallationKey(signature_text: string): Uint8Array;
151
133
  verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
134
+ /**
135
+ * Output booleans should be zipped with the index of input identifiers
136
+ */
137
+ canMessage(account_identifiers: Identifier[]): Promise<any>;
138
+ registerIdentity(): Promise<void>;
139
+ sendHistorySyncRequest(): Promise<void>;
140
+ sendConsentSyncRequest(): Promise<void>;
141
+ findInboxIdByIdentifier(identifier: Identifier): Promise<string | undefined>;
142
+ conversations(): Conversations;
143
+ /**
144
+ *
145
+ * * Get the client's inbox state.
146
+ * *
147
+ * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
148
+ * * Otherwise, the state will be read from the local database.
149
+ *
150
+ */
151
+ inboxState(refresh_from_network: boolean): Promise<InboxState>;
152
+ getLatestInboxState(inbox_id: string): Promise<InboxState>;
153
+ setConsentStates(records: Consent[]): Promise<void>;
154
+ getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
152
155
  readonly accountIdentifier: Identifier;
153
156
  readonly inboxId: string;
154
157
  readonly isRegistered: boolean;
@@ -313,14 +316,6 @@ export class HmacKey {
313
316
  key: Uint8Array;
314
317
  epoch: bigint;
315
318
  }
316
- export class Identifier {
317
- free(): void;
318
- constructor(identifier: string, identifierKind: IdentifierKind, relyingParty?: string | null);
319
- identifier: string;
320
- identifierKind: IdentifierKind;
321
- get relyingParty(): string | undefined;
322
- set relyingParty(value: string | null | undefined);
323
- }
324
319
  export class InboxState {
325
320
  free(): void;
326
321
  constructor(inbox_id: string, recovery_identifier: Identifier, installations: Installation[], account_identifiers: Identifier[]);
@@ -595,15 +590,64 @@ export interface InitOutput {
595
590
  readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
596
591
  readonly conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
597
592
  readonly conversation_getHmacKeys: (a: number) => [number, number, number];
598
- readonly getInboxIdForIdentifier: (a: number, b: number, c: number) => any;
599
- readonly generateInboxId: (a: number) => [number, number, number, number];
593
+ readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
594
+ readonly __wbg_passkeysignature_free: (a: number, b: number) => void;
595
+ readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
596
+ readonly client_addWalletSignatureText: (a: number, b: any) => any;
597
+ readonly client_revokeWalletSignatureText: (a: number, b: any) => any;
598
+ readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
599
+ readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
600
+ readonly client_addEcdsaSignature: (a: number, b: number, c: any) => any;
601
+ readonly client_addPasskeySignature: (a: number, b: number, c: number) => any;
602
+ readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
603
+ readonly client_applySignatureRequests: (a: number) => any;
604
+ readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
605
+ readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
600
606
  readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
601
607
  readonly __wbg_get_reaction_reference: (a: number) => [number, number];
602
- readonly __wbg_streamcloser_free: (a: number, b: number) => void;
603
- readonly streamcloser_end: (a: number) => void;
604
- readonly streamcloser_endAndWait: (a: number) => any;
605
- readonly streamcloser_waitForReady: (a: number) => any;
606
- readonly streamcloser_isClosed: (a: number) => number;
608
+ readonly __wbg_client_free: (a: number, b: number) => void;
609
+ readonly __wbg_logoptions_free: (a: number, b: number) => void;
610
+ readonly __wbg_get_logoptions_structured: (a: number) => number;
611
+ readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
612
+ readonly __wbg_get_logoptions_performance: (a: number) => number;
613
+ readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
614
+ readonly __wbg_get_logoptions_level: (a: number) => number;
615
+ readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
616
+ readonly logoptions_new: (a: number, b: number, c: number) => number;
617
+ readonly createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number) => any;
618
+ readonly client_accountIdentifier: (a: number) => any;
619
+ readonly client_inboxId: (a: number) => [number, number];
620
+ readonly client_isRegistered: (a: number) => number;
621
+ readonly client_installationId: (a: number) => [number, number];
622
+ readonly client_installationIdBytes: (a: number) => any;
623
+ readonly client_canMessage: (a: number, b: number, c: number) => any;
624
+ readonly client_registerIdentity: (a: number) => any;
625
+ readonly client_sendHistorySyncRequest: (a: number) => any;
626
+ readonly client_sendConsentSyncRequest: (a: number) => any;
627
+ readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
628
+ readonly client_conversations: (a: number) => number;
629
+ readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
630
+ readonly generateInboxId: (a: any) => [number, number, number, number];
631
+ readonly __wbg_installation_free: (a: number, b: number) => void;
632
+ readonly __wbg_get_installation_bytes: (a: number) => any;
633
+ readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
634
+ readonly __wbg_get_installation_id: (a: number) => [number, number];
635
+ readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
636
+ readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
637
+ readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
638
+ readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
639
+ readonly __wbg_inboxstate_free: (a: number, b: number) => void;
640
+ readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
641
+ readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
642
+ readonly __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
643
+ readonly __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
644
+ readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
645
+ readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
646
+ readonly __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
647
+ readonly __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
648
+ readonly inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
649
+ readonly client_inboxState: (a: number, b: number) => any;
650
+ readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
607
651
  readonly __wbg_consent_free: (a: number, b: number) => void;
608
652
  readonly __wbg_get_consent_entityType: (a: number) => number;
609
653
  readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
@@ -616,12 +660,6 @@ export interface InitOutput {
616
660
  readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
617
661
  readonly conversation_consentState: (a: number) => [number, number, number];
618
662
  readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
619
- readonly __wbg_identifier_free: (a: number, b: number) => void;
620
- readonly __wbg_get_identifier_identifierKind: (a: number) => number;
621
- readonly __wbg_set_identifier_identifierKind: (a: number, b: number) => void;
622
- readonly __wbg_get_identifier_relyingParty: (a: number) => [number, number];
623
- readonly __wbg_set_identifier_relyingParty: (a: number, b: number, c: number) => void;
624
- readonly identifier_new: (a: number, b: number, c: number, d: number, e: number) => number;
625
663
  readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
626
664
  readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
627
665
  readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
@@ -643,11 +681,11 @@ export interface InitOutput {
643
681
  readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
644
682
  readonly grouppermissions_policyType: (a: number) => [number, number, number];
645
683
  readonly grouppermissions_policySet: (a: number) => [number, number, number];
646
- readonly __wbg_set_identifier_identifier: (a: number, b: number, c: number) => void;
647
- readonly __wbg_get_identifier_identifier: (a: number) => [number, number];
648
684
  readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
649
685
  readonly __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
650
686
  readonly __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
687
+ readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
688
+ readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
651
689
  readonly __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
652
690
  readonly __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: bigint) => void;
653
691
  readonly __wbg_get_listconversationsoptions_includeDuplicateDms: (a: number) => number;
@@ -689,7 +727,7 @@ export interface InitOutput {
689
727
  readonly __wbg_conversations_free: (a: number, b: number) => void;
690
728
  readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
691
729
  readonly conversations_createGroupByInboxIds: (a: number, b: number, c: number, d: number) => any;
692
- readonly conversations_createDm: (a: number, b: number, c: number) => any;
730
+ readonly conversations_createDm: (a: number, b: any, c: number) => any;
693
731
  readonly conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
694
732
  readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
695
733
  readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
@@ -728,24 +766,6 @@ export interface InitOutput {
728
766
  readonly __wbg_get_encodedcontent_content: (a: number) => any;
729
767
  readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
730
768
  readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
731
- readonly __wbg_installation_free: (a: number, b: number) => void;
732
- readonly __wbg_get_installation_bytes: (a: number) => any;
733
- readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
734
- readonly __wbg_get_installation_id: (a: number) => [number, number];
735
- readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
736
- readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
737
- readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
738
- readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
739
- readonly __wbg_inboxstate_free: (a: number, b: number) => void;
740
- readonly __wbg_get_inboxstate_recoveryIdentifier: (a: number) => number;
741
- readonly __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: number) => void;
742
- readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
743
- readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
744
- readonly __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
745
- readonly __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
746
- readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
747
- readonly client_inboxState: (a: number, b: number) => any;
748
- readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
749
769
  readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
750
770
  readonly __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
751
771
  readonly __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
@@ -773,9 +793,13 @@ export interface InitOutput {
773
793
  readonly __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
774
794
  readonly __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
775
795
  readonly __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
796
+ readonly __wbg_streamcloser_free: (a: number, b: number) => void;
797
+ readonly streamcloser_end: (a: number) => void;
798
+ readonly streamcloser_endAndWait: (a: number) => any;
799
+ readonly streamcloser_waitForReady: (a: number) => any;
800
+ readonly streamcloser_isClosed: (a: number) => number;
776
801
  readonly __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
777
802
  readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
778
- readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
779
803
  readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
780
804
  readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
781
805
  readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
@@ -783,46 +807,9 @@ export interface InitOutput {
783
807
  readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
784
808
  readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
785
809
  readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
786
- readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
787
810
  readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
788
811
  readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
789
812
  readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
790
- readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
791
- readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
792
- readonly __wbg_client_free: (a: number, b: number) => void;
793
- readonly __wbg_logoptions_free: (a: number, b: number) => void;
794
- readonly __wbg_get_logoptions_structured: (a: number) => number;
795
- readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
796
- readonly __wbg_get_logoptions_performance: (a: number) => number;
797
- readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
798
- readonly __wbg_get_logoptions_level: (a: number) => number;
799
- readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
800
- readonly logoptions_new: (a: number, b: number, c: number) => number;
801
- readonly createClient: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => any;
802
- readonly client_accountIdentifier: (a: number) => number;
803
- readonly client_inboxId: (a: number) => [number, number];
804
- readonly client_isRegistered: (a: number) => number;
805
- readonly client_installationId: (a: number) => [number, number];
806
- readonly client_installationIdBytes: (a: number) => any;
807
- readonly client_canMessage: (a: number, b: number, c: number) => any;
808
- readonly client_registerIdentity: (a: number) => any;
809
- readonly client_sendHistorySyncRequest: (a: number) => any;
810
- readonly client_sendConsentSyncRequest: (a: number) => any;
811
- readonly client_findInboxIdByIdentifier: (a: number, b: number) => any;
812
- readonly client_conversations: (a: number) => number;
813
- readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
814
- readonly __wbg_passkeysignature_free: (a: number, b: number) => void;
815
- readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
816
- readonly client_addWalletSignatureText: (a: number, b: number) => any;
817
- readonly client_revokeWalletSignatureText: (a: number, b: number) => any;
818
- readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
819
- readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
820
- readonly client_addEcdsaSignature: (a: number, b: number, c: any) => any;
821
- readonly client_addPasskeySignature: (a: number, b: number, c: number) => any;
822
- readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
823
- readonly client_applySignatureRequests: (a: number) => any;
824
- readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
825
- readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
826
813
  readonly rust_sqlite_wasm_shim_localtime_js: (a: bigint, b: number) => void;
827
814
  readonly rust_sqlite_wasm_shim_tzset_js: (a: number, b: number, c: number, d: number) => void;
828
815
  readonly rust_sqlite_wasm_shim_emscripten_get_now: () => number;
@@ -853,9 +840,9 @@ export interface InitOutput {
853
840
  readonly __wbindgen_export_7: WebAssembly.Table;
854
841
  readonly __externref_table_dealloc: (a: number) => void;
855
842
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hff1927556d6713ec: (a: number, b: number) => void;
856
- readonly closure3746_externref_shim: (a: number, b: number, c: any) => void;
857
- readonly closure4755_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
858
- readonly closure4754_externref_shim: (a: number, b: number, c: any, d: any) => void;
843
+ readonly closure3753_externref_shim: (a: number, b: number, c: any) => void;
844
+ readonly closure4762_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
845
+ readonly closure4761_externref_shim: (a: number, b: number, c: any, d: any) => void;
859
846
  readonly __wbindgen_start: () => void;
860
847
  }
861
848
 
@@ -288,50 +288,19 @@ export function decodeReaction(bytes) {
288
288
  }
289
289
 
290
290
  /**
291
- * @param {string} host
292
- * @param {Identifier} accountIdentifier
293
- * @returns {Promise<string | undefined>}
291
+ * @param {string} signature_text
292
+ * @param {Uint8Array} signature_bytes
293
+ * @param {Uint8Array} public_key
294
294
  */
295
- export function getInboxIdForIdentifier(host, accountIdentifier) {
296
- const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
295
+ export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
296
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
297
297
  const len0 = WASM_VECTOR_LEN;
298
- _assertClass(accountIdentifier, Identifier);
299
- var ptr1 = accountIdentifier.__destroy_into_raw();
300
- const ret = wasm.getInboxIdForIdentifier(ptr0, len0, ptr1);
301
- return ret;
302
- }
303
-
304
- /**
305
- * @param {Identifier} accountIdentifier
306
- * @returns {string}
307
- */
308
- export function generateInboxId(accountIdentifier) {
309
- let deferred3_0;
310
- let deferred3_1;
311
- try {
312
- _assertClass(accountIdentifier, Identifier);
313
- var ptr0 = accountIdentifier.__destroy_into_raw();
314
- const ret = wasm.generateInboxId(ptr0);
315
- var ptr2 = ret[0];
316
- var len2 = ret[1];
317
- if (ret[3]) {
318
- ptr2 = 0; len2 = 0;
319
- throw takeFromExternrefTable0(ret[2]);
320
- }
321
- deferred3_0 = ptr2;
322
- deferred3_1 = len2;
323
- return getStringFromWasm0(ptr2, len2);
324
- } finally {
325
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
298
+ const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
299
+ if (ret[1]) {
300
+ throw takeFromExternrefTable0(ret[0]);
326
301
  }
327
302
  }
328
303
 
329
- function passArray8ToWasm0(arg, malloc) {
330
- const ptr = malloc(arg.length * 1, 1) >>> 0;
331
- getUint8ArrayMemory0().set(arg, ptr / 1);
332
- WASM_VECTOR_LEN = arg.length;
333
- return ptr;
334
- }
335
304
  /**
336
305
  * @param {string} host
337
306
  * @param {string} inbox_id
@@ -347,50 +316,75 @@ export function createClient(host, inbox_id, account_identifier, db_path, encryp
347
316
  const len0 = WASM_VECTOR_LEN;
348
317
  const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
349
318
  const len1 = WASM_VECTOR_LEN;
350
- _assertClass(account_identifier, Identifier);
351
- var ptr2 = account_identifier.__destroy_into_raw();
352
- var ptr3 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
319
+ var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
320
+ var len2 = WASM_VECTOR_LEN;
321
+ var ptr3 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
353
322
  var len3 = WASM_VECTOR_LEN;
354
- var ptr4 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
355
- var len4 = WASM_VECTOR_LEN;
356
- let ptr5 = 0;
323
+ let ptr4 = 0;
357
324
  if (!isLikeNone(log_options)) {
358
325
  _assertClass(log_options, LogOptions);
359
- ptr5 = log_options.__destroy_into_raw();
326
+ ptr4 = log_options.__destroy_into_raw();
360
327
  }
361
- const ret = wasm.createClient(ptr0, len0, ptr1, len1, ptr2, ptr3, len3, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr4, len4, ptr5);
328
+ const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, ptr4);
362
329
  return ret;
363
330
  }
364
331
 
365
332
  /**
366
- * @param {string} signature_text
367
- * @param {Uint8Array} signature_bytes
368
- * @param {Uint8Array} public_key
333
+ * @param {string} host
334
+ * @param {Identifier} accountIdentifier
335
+ * @returns {Promise<string | undefined>}
369
336
  */
370
- export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
371
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
337
+ export function getInboxIdForIdentifier(host, accountIdentifier) {
338
+ const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
372
339
  const len0 = WASM_VECTOR_LEN;
373
- const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
374
- if (ret[1]) {
375
- throw takeFromExternrefTable0(ret[0]);
340
+ const ret = wasm.getInboxIdForIdentifier(ptr0, len0, accountIdentifier);
341
+ return ret;
342
+ }
343
+
344
+ /**
345
+ * @param {Identifier} accountIdentifier
346
+ * @returns {string}
347
+ */
348
+ export function generateInboxId(accountIdentifier) {
349
+ let deferred2_0;
350
+ let deferred2_1;
351
+ try {
352
+ const ret = wasm.generateInboxId(accountIdentifier);
353
+ var ptr1 = ret[0];
354
+ var len1 = ret[1];
355
+ if (ret[3]) {
356
+ ptr1 = 0; len1 = 0;
357
+ throw takeFromExternrefTable0(ret[2]);
358
+ }
359
+ deferred2_0 = ptr1;
360
+ deferred2_1 = len1;
361
+ return getStringFromWasm0(ptr1, len1);
362
+ } finally {
363
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
376
364
  }
377
365
  }
378
366
 
379
- function __wbg_adapter_46(arg0, arg1) {
367
+ function passArray8ToWasm0(arg, malloc) {
368
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
369
+ getUint8ArrayMemory0().set(arg, ptr / 1);
370
+ WASM_VECTOR_LEN = arg.length;
371
+ return ptr;
372
+ }
373
+ function __wbg_adapter_48(arg0, arg1) {
380
374
  wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hff1927556d6713ec(arg0, arg1);
381
375
  }
382
376
 
383
- function __wbg_adapter_49(arg0, arg1, arg2) {
384
- wasm.closure3746_externref_shim(arg0, arg1, arg2);
377
+ function __wbg_adapter_51(arg0, arg1, arg2) {
378
+ wasm.closure3753_externref_shim(arg0, arg1, arg2);
385
379
  }
386
380
 
387
- function __wbg_adapter_592(arg0, arg1, arg2, arg3, arg4) {
388
- const ret = wasm.closure4755_externref_shim(arg0, arg1, arg2, arg3, arg4);
381
+ function __wbg_adapter_585(arg0, arg1, arg2, arg3, arg4) {
382
+ const ret = wasm.closure4762_externref_shim(arg0, arg1, arg2, arg3, arg4);
389
383
  return ret !== 0;
390
384
  }
391
385
 
392
- function __wbg_adapter_693(arg0, arg1, arg2, arg3) {
393
- wasm.closure4754_externref_shim(arg0, arg1, arg2, arg3);
386
+ function __wbg_adapter_686(arg0, arg1, arg2, arg3) {
387
+ wasm.closure4761_externref_shim(arg0, arg1, arg2, arg3);
394
388
  }
395
389
 
396
390
  /**
@@ -462,13 +456,6 @@ export const GroupPermissionsOptions = Object.freeze({
462
456
  AdminOnly: 1, "1": "AdminOnly",
463
457
  CustomPolicy: 2, "2": "CustomPolicy",
464
458
  });
465
- /**
466
- * @enum {0 | 1}
467
- */
468
- export const IdentifierKind = Object.freeze({
469
- Ethereum: 0, "0": "Ethereum",
470
- Passkey: 1, "1": "Passkey",
471
- });
472
459
  /**
473
460
  * @enum {0 | 1 | 2 | 3 | 4}
474
461
  */
@@ -576,56 +563,122 @@ export class Client {
576
563
  wasm.__wbg_client_free(ptr, 0);
577
564
  }
578
565
  /**
579
- * @param {Consent[]} records
580
- * @returns {Promise<void>}
566
+ * @returns {string | undefined}
581
567
  */
582
- setConsentStates(records) {
583
- const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
584
- const len0 = WASM_VECTOR_LEN;
585
- const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
568
+ createInboxSignatureText() {
569
+ const ret = wasm.client_createInboxSignatureText(this.__wbg_ptr);
570
+ if (ret[3]) {
571
+ throw takeFromExternrefTable0(ret[2]);
572
+ }
573
+ let v1;
574
+ if (ret[0] !== 0) {
575
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
576
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
577
+ }
578
+ return v1;
579
+ }
580
+ /**
581
+ * @param {Identifier} new_identifier
582
+ * @returns {Promise<string>}
583
+ */
584
+ addWalletSignatureText(new_identifier) {
585
+ const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, new_identifier);
586
586
  return ret;
587
587
  }
588
588
  /**
589
- * @param {ConsentEntityType} entity_type
590
- * @param {string} entity
591
- * @returns {Promise<ConsentState>}
589
+ * @param {Identifier} identifier
590
+ * @returns {Promise<string>}
592
591
  */
593
- getConsentState(entity_type, entity) {
594
- const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
595
- const len0 = WASM_VECTOR_LEN;
596
- const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
592
+ revokeWalletSignatureText(identifier) {
593
+ const ret = wasm.client_revokeWalletSignatureText(this.__wbg_ptr, identifier);
597
594
  return ret;
598
595
  }
599
596
  /**
600
- *
601
- * * Get the client's inbox state.
602
- * *
603
- * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
604
- * * Otherwise, the state will be read from the local database.
605
- *
606
- * @param {boolean} refresh_from_network
607
- * @returns {Promise<InboxState>}
597
+ * @returns {Promise<string>}
608
598
  */
609
- inboxState(refresh_from_network) {
610
- const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
599
+ revokeAllOtherInstallationsSignatureText() {
600
+ const ret = wasm.client_revokeAllOtherInstallationsSignatureText(this.__wbg_ptr);
611
601
  return ret;
612
602
  }
613
603
  /**
614
- * @param {string} inbox_id
615
- * @returns {Promise<InboxState>}
604
+ * @param {Uint8Array[]} installation_ids
605
+ * @returns {Promise<string>}
616
606
  */
617
- getLatestInboxState(inbox_id) {
618
- const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
607
+ revokeInstallationsSignatureText(installation_ids) {
608
+ const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
619
609
  const len0 = WASM_VECTOR_LEN;
620
- const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
610
+ const ret = wasm.client_revokeInstallationsSignatureText(this.__wbg_ptr, ptr0, len0);
611
+ return ret;
612
+ }
613
+ /**
614
+ * @param {SignatureRequestType} signature_type
615
+ * @param {Uint8Array} signature_bytes
616
+ * @returns {Promise<void>}
617
+ */
618
+ addEcdsaSignature(signature_type, signature_bytes) {
619
+ const ret = wasm.client_addEcdsaSignature(this.__wbg_ptr, signature_type, signature_bytes);
620
+ return ret;
621
+ }
622
+ /**
623
+ * @param {SignatureRequestType} signature_type
624
+ * @param {PasskeySignature} signature
625
+ * @returns {Promise<void>}
626
+ */
627
+ addPasskeySignature(signature_type, signature) {
628
+ _assertClass(signature, PasskeySignature);
629
+ var ptr0 = signature.__destroy_into_raw();
630
+ const ret = wasm.client_addPasskeySignature(this.__wbg_ptr, signature_type, ptr0);
631
+ return ret;
632
+ }
633
+ /**
634
+ * @param {SignatureRequestType} signature_type
635
+ * @param {Uint8Array} signature_bytes
636
+ * @param {bigint} chain_id
637
+ * @param {bigint | null} [block_number]
638
+ * @returns {Promise<void>}
639
+ */
640
+ addScwSignature(signature_type, signature_bytes, chain_id, block_number) {
641
+ const ret = wasm.client_addScwSignature(this.__wbg_ptr, signature_type, signature_bytes, chain_id, !isLikeNone(block_number), isLikeNone(block_number) ? BigInt(0) : block_number);
642
+ return ret;
643
+ }
644
+ /**
645
+ * @returns {Promise<void>}
646
+ */
647
+ applySignatureRequests() {
648
+ const ret = wasm.client_applySignatureRequests(this.__wbg_ptr);
621
649
  return ret;
622
650
  }
651
+ /**
652
+ * @param {string} signature_text
653
+ * @returns {Uint8Array}
654
+ */
655
+ signWithInstallationKey(signature_text) {
656
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
657
+ const len0 = WASM_VECTOR_LEN;
658
+ const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
659
+ if (ret[2]) {
660
+ throw takeFromExternrefTable0(ret[1]);
661
+ }
662
+ return takeFromExternrefTable0(ret[0]);
663
+ }
664
+ /**
665
+ * @param {string} signature_text
666
+ * @param {Uint8Array} signature_bytes
667
+ */
668
+ verifySignedWithInstallationKey(signature_text, signature_bytes) {
669
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
670
+ const len0 = WASM_VECTOR_LEN;
671
+ const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
672
+ if (ret[1]) {
673
+ throw takeFromExternrefTable0(ret[0]);
674
+ }
675
+ }
623
676
  /**
624
677
  * @returns {Identifier}
625
678
  */
626
679
  get accountIdentifier() {
627
680
  const ret = wasm.client_accountIdentifier(this.__wbg_ptr);
628
- return Identifier.__wrap(ret);
681
+ return ret;
629
682
  }
630
683
  /**
631
684
  * @returns {string}
@@ -708,9 +761,7 @@ export class Client {
708
761
  * @returns {Promise<string | undefined>}
709
762
  */
710
763
  findInboxIdByIdentifier(identifier) {
711
- _assertClass(identifier, Identifier);
712
- var ptr0 = identifier.__destroy_into_raw();
713
- const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, ptr0);
764
+ const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
714
765
  return ret;
715
766
  }
716
767
  /**
@@ -721,119 +772,49 @@ export class Client {
721
772
  return Conversations.__wrap(ret);
722
773
  }
723
774
  /**
724
- * @returns {string | undefined}
725
- */
726
- createInboxSignatureText() {
727
- const ret = wasm.client_createInboxSignatureText(this.__wbg_ptr);
728
- if (ret[3]) {
729
- throw takeFromExternrefTable0(ret[2]);
730
- }
731
- let v1;
732
- if (ret[0] !== 0) {
733
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
734
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
735
- }
736
- return v1;
737
- }
738
- /**
739
- * @param {Identifier} new_identifier
740
- * @returns {Promise<string>}
741
- */
742
- addWalletSignatureText(new_identifier) {
743
- _assertClass(new_identifier, Identifier);
744
- var ptr0 = new_identifier.__destroy_into_raw();
745
- const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, ptr0);
746
- return ret;
747
- }
748
- /**
749
- * @param {Identifier} identifier
750
- * @returns {Promise<string>}
751
- */
752
- revokeWalletSignatureText(identifier) {
753
- _assertClass(identifier, Identifier);
754
- var ptr0 = identifier.__destroy_into_raw();
755
- const ret = wasm.client_revokeWalletSignatureText(this.__wbg_ptr, ptr0);
756
- return ret;
757
- }
758
- /**
759
- * @returns {Promise<string>}
775
+ *
776
+ * * Get the client's inbox state.
777
+ * *
778
+ * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
779
+ * * Otherwise, the state will be read from the local database.
780
+ *
781
+ * @param {boolean} refresh_from_network
782
+ * @returns {Promise<InboxState>}
760
783
  */
761
- revokeAllOtherInstallationsSignatureText() {
762
- const ret = wasm.client_revokeAllOtherInstallationsSignatureText(this.__wbg_ptr);
784
+ inboxState(refresh_from_network) {
785
+ const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
763
786
  return ret;
764
787
  }
765
788
  /**
766
- * @param {Uint8Array[]} installation_ids
767
- * @returns {Promise<string>}
789
+ * @param {string} inbox_id
790
+ * @returns {Promise<InboxState>}
768
791
  */
769
- revokeInstallationsSignatureText(installation_ids) {
770
- const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
792
+ getLatestInboxState(inbox_id) {
793
+ const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
771
794
  const len0 = WASM_VECTOR_LEN;
772
- const ret = wasm.client_revokeInstallationsSignatureText(this.__wbg_ptr, ptr0, len0);
773
- return ret;
774
- }
775
- /**
776
- * @param {SignatureRequestType} signature_type
777
- * @param {Uint8Array} signature_bytes
778
- * @returns {Promise<void>}
779
- */
780
- addEcdsaSignature(signature_type, signature_bytes) {
781
- const ret = wasm.client_addEcdsaSignature(this.__wbg_ptr, signature_type, signature_bytes);
782
- return ret;
783
- }
784
- /**
785
- * @param {SignatureRequestType} signature_type
786
- * @param {PasskeySignature} signature
787
- * @returns {Promise<void>}
788
- */
789
- addPasskeySignature(signature_type, signature) {
790
- _assertClass(signature, PasskeySignature);
791
- var ptr0 = signature.__destroy_into_raw();
792
- const ret = wasm.client_addPasskeySignature(this.__wbg_ptr, signature_type, ptr0);
793
- return ret;
794
- }
795
- /**
796
- * @param {SignatureRequestType} signature_type
797
- * @param {Uint8Array} signature_bytes
798
- * @param {bigint} chain_id
799
- * @param {bigint | null} [block_number]
800
- * @returns {Promise<void>}
801
- */
802
- addScwSignature(signature_type, signature_bytes, chain_id, block_number) {
803
- const ret = wasm.client_addScwSignature(this.__wbg_ptr, signature_type, signature_bytes, chain_id, !isLikeNone(block_number), isLikeNone(block_number) ? BigInt(0) : block_number);
795
+ const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
804
796
  return ret;
805
797
  }
806
798
  /**
799
+ * @param {Consent[]} records
807
800
  * @returns {Promise<void>}
808
801
  */
809
- applySignatureRequests() {
810
- const ret = wasm.client_applySignatureRequests(this.__wbg_ptr);
811
- return ret;
812
- }
813
- /**
814
- * @param {string} signature_text
815
- * @returns {Uint8Array}
816
- */
817
- signWithInstallationKey(signature_text) {
818
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
802
+ setConsentStates(records) {
803
+ const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
819
804
  const len0 = WASM_VECTOR_LEN;
820
- const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
821
- if (ret[2]) {
822
- throw takeFromExternrefTable0(ret[1]);
823
- }
824
- return takeFromExternrefTable0(ret[0]);
805
+ const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
806
+ return ret;
825
807
  }
826
808
  /**
827
- * @param {string} signature_text
828
- * @param {Uint8Array} signature_bytes
809
+ * @param {ConsentEntityType} entity_type
810
+ * @param {string} entity
811
+ * @returns {Promise<ConsentState>}
829
812
  */
830
- verifySignedWithInstallationKey(signature_text, signature_bytes) {
831
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
813
+ getConsentState(entity_type, entity) {
814
+ const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
832
815
  const len0 = WASM_VECTOR_LEN;
833
- const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
834
- if (ret[1]) {
835
- throw takeFromExternrefTable0(ret[0]);
836
- }
816
+ const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
817
+ return ret;
837
818
  }
838
819
  }
839
820
 
@@ -1706,14 +1687,12 @@ export class Conversations {
1706
1687
  * @returns {Promise<Conversation>}
1707
1688
  */
1708
1689
  createDm(account_identifier, options) {
1709
- _assertClass(account_identifier, Identifier);
1710
- var ptr0 = account_identifier.__destroy_into_raw();
1711
- let ptr1 = 0;
1690
+ let ptr0 = 0;
1712
1691
  if (!isLikeNone(options)) {
1713
1692
  _assertClass(options, CreateDMOptions);
1714
- ptr1 = options.__destroy_into_raw();
1693
+ ptr0 = options.__destroy_into_raw();
1715
1694
  }
1716
- const ret = wasm.conversations_createDm(this.__wbg_ptr, ptr0, ptr1);
1695
+ const ret = wasm.conversations_createDm(this.__wbg_ptr, account_identifier, ptr0);
1717
1696
  return ret;
1718
1697
  }
1719
1698
  /**
@@ -2523,111 +2502,6 @@ export class HmacKey {
2523
2502
  }
2524
2503
  }
2525
2504
 
2526
- const IdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
2527
- ? { register: () => {}, unregister: () => {} }
2528
- : new FinalizationRegistry(ptr => wasm.__wbg_identifier_free(ptr >>> 0, 1));
2529
-
2530
- export class Identifier {
2531
-
2532
- static __wrap(ptr) {
2533
- ptr = ptr >>> 0;
2534
- const obj = Object.create(Identifier.prototype);
2535
- obj.__wbg_ptr = ptr;
2536
- IdentifierFinalization.register(obj, obj.__wbg_ptr, obj);
2537
- return obj;
2538
- }
2539
-
2540
- static __unwrap(jsValue) {
2541
- if (!(jsValue instanceof Identifier)) {
2542
- return 0;
2543
- }
2544
- return jsValue.__destroy_into_raw();
2545
- }
2546
-
2547
- __destroy_into_raw() {
2548
- const ptr = this.__wbg_ptr;
2549
- this.__wbg_ptr = 0;
2550
- IdentifierFinalization.unregister(this);
2551
- return ptr;
2552
- }
2553
-
2554
- free() {
2555
- const ptr = this.__destroy_into_raw();
2556
- wasm.__wbg_identifier_free(ptr, 0);
2557
- }
2558
- /**
2559
- * @returns {string}
2560
- */
2561
- get identifier() {
2562
- let deferred1_0;
2563
- let deferred1_1;
2564
- try {
2565
- const ret = wasm.__wbg_get_identifier_identifier(this.__wbg_ptr);
2566
- deferred1_0 = ret[0];
2567
- deferred1_1 = ret[1];
2568
- return getStringFromWasm0(ret[0], ret[1]);
2569
- } finally {
2570
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2571
- }
2572
- }
2573
- /**
2574
- * @param {string} arg0
2575
- */
2576
- set identifier(arg0) {
2577
- const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2578
- const len0 = WASM_VECTOR_LEN;
2579
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
2580
- }
2581
- /**
2582
- * @returns {IdentifierKind}
2583
- */
2584
- get identifierKind() {
2585
- const ret = wasm.__wbg_get_identifier_identifierKind(this.__wbg_ptr);
2586
- return ret;
2587
- }
2588
- /**
2589
- * @param {IdentifierKind} arg0
2590
- */
2591
- set identifierKind(arg0) {
2592
- wasm.__wbg_set_identifier_identifierKind(this.__wbg_ptr, arg0);
2593
- }
2594
- /**
2595
- * @returns {string | undefined}
2596
- */
2597
- get relyingParty() {
2598
- const ret = wasm.__wbg_get_identifier_relyingParty(this.__wbg_ptr);
2599
- let v1;
2600
- if (ret[0] !== 0) {
2601
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
2602
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
2603
- }
2604
- return v1;
2605
- }
2606
- /**
2607
- * @param {string | null} [arg0]
2608
- */
2609
- set relyingParty(arg0) {
2610
- var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2611
- var len0 = WASM_VECTOR_LEN;
2612
- wasm.__wbg_set_identifier_relyingParty(this.__wbg_ptr, ptr0, len0);
2613
- }
2614
- /**
2615
- * @param {string} identifier
2616
- * @param {IdentifierKind} identifierKind
2617
- * @param {string | null} [relyingParty]
2618
- */
2619
- constructor(identifier, identifierKind, relyingParty) {
2620
- const ptr0 = passStringToWasm0(identifier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2621
- const len0 = WASM_VECTOR_LEN;
2622
- var ptr1 = isLikeNone(relyingParty) ? 0 : passStringToWasm0(relyingParty, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2623
- var len1 = WASM_VECTOR_LEN;
2624
- const ret = wasm.identifier_new(ptr0, len0, identifierKind, ptr1, len1);
2625
- this.__wbg_ptr = ret >>> 0;
2626
- IdentifierFinalization.register(this, this.__wbg_ptr, this);
2627
- return this;
2628
- }
2629
- }
2630
-
2631
2505
  const InboxStateFinalization = (typeof FinalizationRegistry === 'undefined')
2632
2506
  ? { register: () => {}, unregister: () => {} }
2633
2507
  : new FinalizationRegistry(ptr => wasm.__wbg_inboxstate_free(ptr >>> 0, 1));
@@ -2674,22 +2548,20 @@ export class InboxState {
2674
2548
  set inboxId(arg0) {
2675
2549
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2676
2550
  const len0 = WASM_VECTOR_LEN;
2677
- wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
2551
+ wasm.__wbg_set_inboxstate_inboxId(this.__wbg_ptr, ptr0, len0);
2678
2552
  }
2679
2553
  /**
2680
2554
  * @returns {Identifier}
2681
2555
  */
2682
2556
  get recoveryIdentifier() {
2683
2557
  const ret = wasm.__wbg_get_inboxstate_recoveryIdentifier(this.__wbg_ptr);
2684
- return Identifier.__wrap(ret);
2558
+ return ret;
2685
2559
  }
2686
2560
  /**
2687
2561
  * @param {Identifier} arg0
2688
2562
  */
2689
2563
  set recoveryIdentifier(arg0) {
2690
- _assertClass(arg0, Identifier);
2691
- var ptr0 = arg0.__destroy_into_raw();
2692
- wasm.__wbg_set_inboxstate_recoveryIdentifier(this.__wbg_ptr, ptr0);
2564
+ wasm.__wbg_set_inboxstate_recoveryIdentifier(this.__wbg_ptr, arg0);
2693
2565
  }
2694
2566
  /**
2695
2567
  * @returns {Installation[]}
@@ -2734,13 +2606,11 @@ export class InboxState {
2734
2606
  constructor(inbox_id, recovery_identifier, installations, account_identifiers) {
2735
2607
  const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2736
2608
  const len0 = WASM_VECTOR_LEN;
2737
- _assertClass(recovery_identifier, Identifier);
2738
- var ptr1 = recovery_identifier.__destroy_into_raw();
2739
- const ptr2 = passArrayJsValueToWasm0(installations, wasm.__wbindgen_malloc);
2609
+ const ptr1 = passArrayJsValueToWasm0(installations, wasm.__wbindgen_malloc);
2610
+ const len1 = WASM_VECTOR_LEN;
2611
+ const ptr2 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
2740
2612
  const len2 = WASM_VECTOR_LEN;
2741
- const ptr3 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
2742
- const len3 = WASM_VECTOR_LEN;
2743
- const ret = wasm.inboxstate_new(ptr0, len0, ptr1, ptr2, len2, ptr3, len3);
2613
+ const ret = wasm.inboxstate_new(ptr0, len0, recovery_identifier, ptr1, len1, ptr2, len2);
2744
2614
  this.__wbg_ptr = ret >>> 0;
2745
2615
  InboxStateFinalization.register(this, this.__wbg_ptr, this);
2746
2616
  return this;
@@ -3017,7 +2887,7 @@ export class ListConversationsOptions {
3017
2887
  * @param {bigint | null} [arg0]
3018
2888
  */
3019
2889
  set createdAfterNs(arg0) {
3020
- wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
2890
+ wasm.__wbg_set_listconversationsoptions_createdAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
3021
2891
  }
3022
2892
  /**
3023
2893
  * @returns {bigint | undefined}
@@ -3123,7 +2993,7 @@ export class ListMessagesOptions {
3123
2993
  * @param {bigint | null} [arg0]
3124
2994
  */
3125
2995
  set sentBeforeNs(arg0) {
3126
- wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
2996
+ wasm.__wbg_set_listconversationsoptions_createdAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
3127
2997
  }
3128
2998
  /**
3129
2999
  * @returns {bigint | undefined}
@@ -4393,7 +4263,7 @@ function __wbg_get_imports() {
4393
4263
  const a = state0.a;
4394
4264
  state0.a = 0;
4395
4265
  try {
4396
- return __wbg_adapter_592(a, state0.b, arg0, arg1, arg2);
4266
+ return __wbg_adapter_585(a, state0.b, arg0, arg1, arg2);
4397
4267
  } finally {
4398
4268
  state0.a = a;
4399
4269
  }
@@ -4423,7 +4293,7 @@ function __wbg_get_imports() {
4423
4293
  const a = state0.a;
4424
4294
  state0.a = 0;
4425
4295
  try {
4426
- return __wbg_adapter_592(a, state0.b, arg0, arg1, arg2);
4296
+ return __wbg_adapter_585(a, state0.b, arg0, arg1, arg2);
4427
4297
  } finally {
4428
4298
  state0.a = a;
4429
4299
  }
@@ -4532,6 +4402,10 @@ function __wbg_get_imports() {
4532
4402
  const ret = arg0.value;
4533
4403
  return ret;
4534
4404
  };
4405
+ imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
4406
+ const ret = arg0[arg1];
4407
+ return ret;
4408
+ };
4535
4409
  imports.wbg.__wbg_groupmetadata_new = function(arg0) {
4536
4410
  const ret = GroupMetadata.__wrap(arg0);
4537
4411
  return ret;
@@ -4548,14 +4422,6 @@ function __wbg_get_imports() {
4548
4422
  const ret = arg0.headers;
4549
4423
  return ret;
4550
4424
  };
4551
- imports.wbg.__wbg_identifier_new = function(arg0) {
4552
- const ret = Identifier.__wrap(arg0);
4553
- return ret;
4554
- };
4555
- imports.wbg.__wbg_identifier_unwrap = function(arg0) {
4556
- const ret = Identifier.__unwrap(arg0);
4557
- return ret;
4558
- };
4559
4425
  imports.wbg.__wbg_inboxstate_new = function(arg0) {
4560
4426
  const ret = InboxState.__wrap(arg0);
4561
4427
  return ret;
@@ -4715,7 +4581,7 @@ function __wbg_get_imports() {
4715
4581
  const a = state0.a;
4716
4582
  state0.a = 0;
4717
4583
  try {
4718
- return __wbg_adapter_693(a, state0.b, arg0, arg1);
4584
+ return __wbg_adapter_686(a, state0.b, arg0, arg1);
4719
4585
  } finally {
4720
4586
  state0.a = a;
4721
4587
  }
@@ -5114,12 +4980,12 @@ function __wbg_get_imports() {
5114
4980
  const ret = false;
5115
4981
  return ret;
5116
4982
  };
5117
- imports.wbg.__wbindgen_closure_wrapper16179 = function(arg0, arg1, arg2) {
5118
- const ret = makeMutClosure(arg0, arg1, 3674, __wbg_adapter_46);
4983
+ imports.wbg.__wbindgen_closure_wrapper16206 = function(arg0, arg1, arg2) {
4984
+ const ret = makeMutClosure(arg0, arg1, 3682, __wbg_adapter_48);
5119
4985
  return ret;
5120
4986
  };
5121
- imports.wbg.__wbindgen_closure_wrapper16475 = function(arg0, arg1, arg2) {
5122
- const ret = makeMutClosure(arg0, arg1, 3747, __wbg_adapter_49);
4987
+ imports.wbg.__wbindgen_closure_wrapper16502 = function(arg0, arg1, arg2) {
4988
+ const ret = makeMutClosure(arg0, arg1, 3754, __wbg_adapter_51);
5123
4989
  return ret;
5124
4990
  };
5125
4991
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
@@ -5133,6 +4999,10 @@ function __wbg_get_imports() {
5133
4999
  const ret = new Error(getStringFromWasm0(arg0, arg1));
5134
5000
  return ret;
5135
5001
  };
5002
+ imports.wbg.__wbindgen_in = function(arg0, arg1) {
5003
+ const ret = arg0 in arg1;
5004
+ return ret;
5005
+ };
5136
5006
  imports.wbg.__wbindgen_init_externref_table = function() {
5137
5007
  const table = wasm.__wbindgen_export_4;
5138
5008
  const offset = table.grow(4);
Binary file
@@ -93,15 +93,64 @@ export const conversation_removeMessageDisappearingSettings: (a: number) => any;
93
93
  export const conversation_messageDisappearingSettings: (a: number) => [number, number, number];
94
94
  export const conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
95
95
  export const conversation_getHmacKeys: (a: number) => [number, number, number];
96
- export const getInboxIdForIdentifier: (a: number, b: number, c: number) => any;
97
- export const generateInboxId: (a: number) => [number, number, number, number];
96
+ export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
97
+ export const __wbg_passkeysignature_free: (a: number, b: number) => void;
98
+ export const client_createInboxSignatureText: (a: number) => [number, number, number, number];
99
+ export const client_addWalletSignatureText: (a: number, b: any) => any;
100
+ export const client_revokeWalletSignatureText: (a: number, b: any) => any;
101
+ export const client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
102
+ export const client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
103
+ export const client_addEcdsaSignature: (a: number, b: number, c: any) => any;
104
+ export const client_addPasskeySignature: (a: number, b: number, c: number) => any;
105
+ export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
106
+ export const client_applySignatureRequests: (a: number) => any;
107
+ export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
108
+ export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
98
109
  export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
99
110
  export const __wbg_get_reaction_reference: (a: number) => [number, number];
100
- export const __wbg_streamcloser_free: (a: number, b: number) => void;
101
- export const streamcloser_end: (a: number) => void;
102
- export const streamcloser_endAndWait: (a: number) => any;
103
- export const streamcloser_waitForReady: (a: number) => any;
104
- export const streamcloser_isClosed: (a: number) => number;
111
+ export const __wbg_client_free: (a: number, b: number) => void;
112
+ export const __wbg_logoptions_free: (a: number, b: number) => void;
113
+ export const __wbg_get_logoptions_structured: (a: number) => number;
114
+ export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
115
+ export const __wbg_get_logoptions_performance: (a: number) => number;
116
+ export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
117
+ export const __wbg_get_logoptions_level: (a: number) => number;
118
+ export const __wbg_set_logoptions_level: (a: number, b: number) => void;
119
+ export const logoptions_new: (a: number, b: number, c: number) => number;
120
+ export const createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number) => any;
121
+ export const client_accountIdentifier: (a: number) => any;
122
+ export const client_inboxId: (a: number) => [number, number];
123
+ export const client_isRegistered: (a: number) => number;
124
+ export const client_installationId: (a: number) => [number, number];
125
+ export const client_installationIdBytes: (a: number) => any;
126
+ export const client_canMessage: (a: number, b: number, c: number) => any;
127
+ export const client_registerIdentity: (a: number) => any;
128
+ export const client_sendHistorySyncRequest: (a: number) => any;
129
+ export const client_sendConsentSyncRequest: (a: number) => any;
130
+ export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
131
+ export const client_conversations: (a: number) => number;
132
+ export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
133
+ export const generateInboxId: (a: any) => [number, number, number, number];
134
+ export const __wbg_installation_free: (a: number, b: number) => void;
135
+ export const __wbg_get_installation_bytes: (a: number) => any;
136
+ export const __wbg_set_installation_bytes: (a: number, b: any) => void;
137
+ export const __wbg_get_installation_id: (a: number) => [number, number];
138
+ export const __wbg_set_installation_id: (a: number, b: number, c: number) => void;
139
+ export const __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
140
+ export const __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
141
+ export const installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
142
+ export const __wbg_inboxstate_free: (a: number, b: number) => void;
143
+ export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
144
+ export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
145
+ export const __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
146
+ export const __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
147
+ export const __wbg_get_inboxstate_installations: (a: number) => [number, number];
148
+ export const __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
149
+ export const __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
150
+ export const __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
151
+ export const inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
152
+ export const client_inboxState: (a: number, b: number) => any;
153
+ export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
105
154
  export const __wbg_consent_free: (a: number, b: number) => void;
106
155
  export const __wbg_get_consent_entityType: (a: number) => number;
107
156
  export const __wbg_set_consent_entityType: (a: number, b: number) => void;
@@ -114,12 +163,6 @@ export const client_setConsentStates: (a: number, b: number, c: number) => any;
114
163
  export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
115
164
  export const conversation_consentState: (a: number) => [number, number, number];
116
165
  export const conversation_updateConsentState: (a: number, b: number) => [number, number];
117
- export const __wbg_identifier_free: (a: number, b: number) => void;
118
- export const __wbg_get_identifier_identifierKind: (a: number) => number;
119
- export const __wbg_set_identifier_identifierKind: (a: number, b: number) => void;
120
- export const __wbg_get_identifier_relyingParty: (a: number) => [number, number];
121
- export const __wbg_set_identifier_relyingParty: (a: number, b: number, c: number) => void;
122
- export const identifier_new: (a: number, b: number, c: number, d: number, e: number) => number;
123
166
  export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
124
167
  export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
125
168
  export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
@@ -141,11 +184,11 @@ export const permissionpolicyset_new: (a: number, b: number, c: number, d: numbe
141
184
  export const __wbg_grouppermissions_free: (a: number, b: number) => void;
142
185
  export const grouppermissions_policyType: (a: number) => [number, number, number];
143
186
  export const grouppermissions_policySet: (a: number) => [number, number, number];
144
- export const __wbg_set_identifier_identifier: (a: number, b: number, c: number) => void;
145
- export const __wbg_get_identifier_identifier: (a: number) => [number, number];
146
187
  export const __wbg_listconversationsoptions_free: (a: number, b: number) => void;
147
188
  export const __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
148
189
  export const __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
190
+ export const __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
191
+ export const __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
149
192
  export const __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
150
193
  export const __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: bigint) => void;
151
194
  export const __wbg_get_listconversationsoptions_includeDuplicateDms: (a: number) => number;
@@ -187,7 +230,7 @@ export const conversationlistitem_new: (a: number, b: number) => number;
187
230
  export const __wbg_conversations_free: (a: number, b: number) => void;
188
231
  export const conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
189
232
  export const conversations_createGroupByInboxIds: (a: number, b: number, c: number, d: number) => any;
190
- export const conversations_createDm: (a: number, b: number, c: number) => any;
233
+ export const conversations_createDm: (a: number, b: any, c: number) => any;
191
234
  export const conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
192
235
  export const conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
193
236
  export const conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
@@ -226,24 +269,6 @@ export const __wbg_set_encodedcontent_compression: (a: number, b: number) => voi
226
269
  export const __wbg_get_encodedcontent_content: (a: number) => any;
227
270
  export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
228
271
  export const encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
229
- export const __wbg_installation_free: (a: number, b: number) => void;
230
- export const __wbg_get_installation_bytes: (a: number) => any;
231
- export const __wbg_set_installation_bytes: (a: number, b: any) => void;
232
- export const __wbg_get_installation_id: (a: number) => [number, number];
233
- export const __wbg_set_installation_id: (a: number, b: number, c: number) => void;
234
- export const __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
235
- export const __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
236
- export const installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
237
- export const __wbg_inboxstate_free: (a: number, b: number) => void;
238
- export const __wbg_get_inboxstate_recoveryIdentifier: (a: number) => number;
239
- export const __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: number) => void;
240
- export const __wbg_get_inboxstate_installations: (a: number) => [number, number];
241
- export const __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
242
- export const __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
243
- export const __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
244
- export const inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
245
- export const client_inboxState: (a: number, b: number) => any;
246
- export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
247
272
  export const __wbg_listmessagesoptions_free: (a: number, b: number) => void;
248
273
  export const __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
249
274
  export const __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
@@ -271,9 +296,13 @@ export const __wbg_get_messagewithreactions_message: (a: number) => number;
271
296
  export const __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
272
297
  export const __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
273
298
  export const __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
299
+ export const __wbg_streamcloser_free: (a: number, b: number) => void;
300
+ export const streamcloser_end: (a: number) => void;
301
+ export const streamcloser_endAndWait: (a: number) => any;
302
+ export const streamcloser_waitForReady: (a: number) => any;
303
+ export const streamcloser_isClosed: (a: number) => number;
274
304
  export const __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
275
305
  export const __wbg_get_message_sentAtNs: (a: number) => bigint;
276
- export const __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
277
306
  export const __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
278
307
  export const __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
279
308
  export const __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
@@ -281,46 +310,9 @@ export const __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint
281
310
  export const __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
282
311
  export const __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
283
312
  export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
284
- export const __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
285
313
  export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
286
314
  export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
287
315
  export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
288
- export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
289
- export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
290
- export const __wbg_client_free: (a: number, b: number) => void;
291
- export const __wbg_logoptions_free: (a: number, b: number) => void;
292
- export const __wbg_get_logoptions_structured: (a: number) => number;
293
- export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
294
- export const __wbg_get_logoptions_performance: (a: number) => number;
295
- export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
296
- export const __wbg_get_logoptions_level: (a: number) => number;
297
- export const __wbg_set_logoptions_level: (a: number, b: number) => void;
298
- export const logoptions_new: (a: number, b: number, c: number) => number;
299
- export const createClient: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => any;
300
- export const client_accountIdentifier: (a: number) => number;
301
- export const client_inboxId: (a: number) => [number, number];
302
- export const client_isRegistered: (a: number) => number;
303
- export const client_installationId: (a: number) => [number, number];
304
- export const client_installationIdBytes: (a: number) => any;
305
- export const client_canMessage: (a: number, b: number, c: number) => any;
306
- export const client_registerIdentity: (a: number) => any;
307
- export const client_sendHistorySyncRequest: (a: number) => any;
308
- export const client_sendConsentSyncRequest: (a: number) => any;
309
- export const client_findInboxIdByIdentifier: (a: number, b: number) => any;
310
- export const client_conversations: (a: number) => number;
311
- export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
312
- export const __wbg_passkeysignature_free: (a: number, b: number) => void;
313
- export const client_createInboxSignatureText: (a: number) => [number, number, number, number];
314
- export const client_addWalletSignatureText: (a: number, b: number) => any;
315
- export const client_revokeWalletSignatureText: (a: number, b: number) => any;
316
- export const client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
317
- export const client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
318
- export const client_addEcdsaSignature: (a: number, b: number, c: any) => any;
319
- export const client_addPasskeySignature: (a: number, b: number, c: number) => any;
320
- export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
321
- export const client_applySignatureRequests: (a: number) => any;
322
- export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
323
- export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
324
316
  export const rust_sqlite_wasm_shim_localtime_js: (a: bigint, b: number) => void;
325
317
  export const rust_sqlite_wasm_shim_tzset_js: (a: number, b: number, c: number, d: number) => void;
326
318
  export const rust_sqlite_wasm_shim_emscripten_get_now: () => number;
@@ -351,7 +343,7 @@ export const __externref_drop_slice: (a: number, b: number) => void;
351
343
  export const __wbindgen_export_7: WebAssembly.Table;
352
344
  export const __externref_table_dealloc: (a: number) => void;
353
345
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hff1927556d6713ec: (a: number, b: number) => void;
354
- export const closure3746_externref_shim: (a: number, b: number, c: any) => void;
355
- export const closure4755_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
356
- export const closure4754_externref_shim: (a: number, b: number, c: any, d: any) => void;
346
+ export const closure3753_externref_shim: (a: number, b: number, c: any) => void;
347
+ export const closure4762_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
348
+ export const closure4761_externref_shim: (a: number, b: number, c: any, d: any) => void;
357
349
  export const __wbindgen_start: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmtp/wasm-bindings",
3
- "version": "1.0.0-rc2",
3
+ "version": "1.0.0-rc4",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "WASM bindings for the libXMTP rust library",