@xmtp/wasm-bindings 1.1.3 → 1.2.0-dev.125e5bf

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
4
+ 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>;
3
5
  export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
4
6
  export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
5
7
  export function encodeReaction(reaction: Reaction): Uint8Array;
6
8
  export function decodeReaction(bytes: Uint8Array): Reaction;
7
- export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
8
- export function createClient(host: string, inbox_id: string, account_identifier: Identifier, db_path?: string | null, encryption_key?: Uint8Array | null, history_sync_url?: string | null, log_options?: LogOptions | null): Promise<Client>;
9
9
  export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
10
10
  export function generateInboxId(accountIdentifier: Identifier): string;
11
11
  export enum ConsentEntityType {
@@ -96,6 +96,7 @@ export enum SignatureRequestType {
96
96
  CreateInbox = 1,
97
97
  RevokeWallet = 2,
98
98
  RevokeInstallations = 3,
99
+ ChangeRecoveryIdentifier = 4,
99
100
  }
100
101
  export enum SortDirection {
101
102
  Ascending = 0,
@@ -120,11 +121,14 @@ export type UserPreference = { type: "Consent"; consent: Consent } | { type: "Hm
120
121
  export class Client {
121
122
  private constructor();
122
123
  free(): void;
124
+ setConsentStates(records: Consent[]): Promise<void>;
125
+ getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
123
126
  createInboxSignatureText(): string | undefined;
124
127
  addWalletSignatureText(new_identifier: Identifier): Promise<string>;
125
128
  revokeWalletSignatureText(identifier: Identifier): Promise<string>;
126
129
  revokeAllOtherInstallationsSignatureText(): Promise<string>;
127
130
  revokeInstallationsSignatureText(installation_ids: Uint8Array[]): Promise<string>;
131
+ changeRecoveryIdentifierSignatureText(new_recovery_identifier: Identifier): Promise<string>;
128
132
  addEcdsaSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
129
133
  addPasskeySignature(signature_type: SignatureRequestType, signature: PasskeySignature): Promise<void>;
130
134
  addScwSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint | null): Promise<void>;
@@ -151,8 +155,14 @@ export class Client {
151
155
  */
152
156
  inboxState(refresh_from_network: boolean): Promise<InboxState>;
153
157
  getLatestInboxState(inbox_id: string): Promise<InboxState>;
154
- setConsentStates(records: Consent[]): Promise<void>;
155
- getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
158
+ /**
159
+ *
160
+ * * Get key package statuses for a list of installation IDs.
161
+ * *
162
+ * * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
163
+ *
164
+ */
165
+ getKeyPackageStatusesForInstallationIds(installation_ids: string[]): Promise<any>;
156
166
  readonly accountIdentifier: Identifier;
157
167
  readonly inboxId: string;
158
168
  readonly isRegistered: boolean;
@@ -177,6 +187,8 @@ export class ContentTypeId {
177
187
  export class Conversation {
178
188
  private constructor();
179
189
  free(): void;
190
+ consentState(): ConsentState;
191
+ updateConsentState(state: ConsentState): void;
180
192
  id(): string;
181
193
  send(encoded_content: EncodedContent): Promise<string>;
182
194
  /**
@@ -223,8 +235,6 @@ export class Conversation {
223
235
  messageDisappearingSettings(): MessageDisappearingSettings | undefined;
224
236
  isMessageDisappearingEnabled(): boolean;
225
237
  getHmacKeys(): any;
226
- consentState(): ConsentState;
227
- updateConsentState(state: ConsentState): void;
228
238
  }
229
239
  export class ConversationListItem {
230
240
  free(): void;
@@ -355,6 +365,20 @@ export class IntoUnderlyingSource {
355
365
  pull(controller: ReadableStreamDefaultController): Promise<any>;
356
366
  cancel(): void;
357
367
  }
368
+ export class KeyPackageStatus {
369
+ private constructor();
370
+ free(): void;
371
+ get lifetime(): Lifetime | undefined;
372
+ set lifetime(value: Lifetime | null | undefined);
373
+ get validationError(): string | undefined;
374
+ set validationError(value: string | null | undefined);
375
+ }
376
+ export class Lifetime {
377
+ private constructor();
378
+ free(): void;
379
+ not_before: bigint;
380
+ not_after: bigint;
381
+ }
358
382
  export class ListConversationsOptions {
359
383
  free(): void;
360
384
  constructor(consent_states: any[] | null | undefined, created_after_ns: bigint | null | undefined, created_before_ns: bigint | null | undefined, include_duplicate_dms: boolean, limit?: bigint | null);
@@ -438,6 +462,7 @@ export class MultiRemoteAttachment {
438
462
  export class Opfs {
439
463
  private constructor();
440
464
  free(): void;
465
+ static init_sqlite_opfs(): Promise<void>;
441
466
  /**
442
467
  * Check if the global OPFS object has been initialized
443
468
  */
@@ -541,48 +566,22 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
541
566
 
542
567
  export interface InitOutput {
543
568
  readonly memory: WebAssembly.Memory;
544
- readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
545
- readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
546
- readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
547
- readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
548
- readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
549
- readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
550
- readonly __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
551
- readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
552
- readonly __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
553
- readonly __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
554
- readonly __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
555
- readonly __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
556
- readonly __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
557
- readonly __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
558
- readonly __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
559
- readonly __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
560
- readonly __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
561
- readonly remoteattachmentinfo_new: (a: any, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: any, j: number, k: number, l: number) => number;
562
- readonly __wbg_multiremoteattachment_free: (a: number, b: number) => void;
563
- readonly __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
564
- readonly __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
565
- readonly multiremoteattachment_new: (a: number, b: number) => number;
566
- readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
567
- readonly decodeMultiRemoteAttachment: (a: any) => [number, number, number];
568
- readonly __wbg_reaction_free: (a: number, b: number) => void;
569
- readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
570
- readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
571
- readonly __wbg_get_reaction_action: (a: number) => number;
572
- readonly __wbg_set_reaction_action: (a: number, b: number) => void;
573
- readonly __wbg_get_reaction_content: (a: number) => [number, number];
574
- readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
575
- readonly __wbg_get_reaction_schema: (a: number) => number;
576
- readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
577
- readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
578
- readonly encodeReaction: (a: number) => [number, number, number];
579
- readonly decodeReaction: (a: any) => [number, number, number];
569
+ readonly __wbg_consent_free: (a: number, b: number) => void;
570
+ readonly __wbg_get_consent_entityType: (a: number) => number;
571
+ readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
572
+ readonly __wbg_get_consent_state: (a: number) => number;
573
+ readonly __wbg_set_consent_state: (a: number, b: number) => void;
574
+ readonly __wbg_get_consent_entity: (a: number) => [number, number];
575
+ readonly __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
576
+ readonly consent_new: (a: number, b: number, c: number, d: number) => number;
577
+ readonly client_setConsentStates: (a: number, b: number, c: number) => any;
578
+ readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
579
+ readonly conversation_consentState: (a: number) => [number, number, number];
580
+ readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
580
581
  readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
581
582
  readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
582
583
  readonly groupmetadata_conversationType: (a: number) => [number, number];
583
584
  readonly __wbg_groupmember_free: (a: number, b: number) => void;
584
- readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
585
- readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
586
585
  readonly __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
587
586
  readonly __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
588
587
  readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
@@ -640,14 +639,15 @@ export interface InitOutput {
640
639
  readonly client_revokeWalletSignatureText: (a: number, b: any) => any;
641
640
  readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
642
641
  readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
642
+ readonly client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
643
643
  readonly client_addEcdsaSignature: (a: number, b: number, c: any) => any;
644
644
  readonly client_addPasskeySignature: (a: number, b: number, c: number) => any;
645
645
  readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
646
646
  readonly client_applySignatureRequests: (a: number) => any;
647
647
  readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
648
648
  readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
649
- readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
650
- readonly __wbg_get_reaction_reference: (a: number) => [number, number];
649
+ readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
650
+ readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
651
651
  readonly __wbg_streamcloser_free: (a: number, b: number) => void;
652
652
  readonly streamcloser_end: (a: number) => void;
653
653
  readonly streamcloser_endAndWait: (a: number) => any;
@@ -675,6 +675,41 @@ export interface InitOutput {
675
675
  readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
676
676
  readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
677
677
  readonly client_conversations: (a: number) => number;
678
+ readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
679
+ readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
680
+ readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
681
+ readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
682
+ readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
683
+ readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
684
+ readonly __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
685
+ readonly __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
686
+ readonly __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
687
+ readonly __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
688
+ readonly __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
689
+ readonly __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
690
+ readonly __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
691
+ readonly __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
692
+ readonly __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
693
+ readonly __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
694
+ readonly remoteattachmentinfo_new: (a: any, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: any, j: number, k: number, l: number) => number;
695
+ readonly __wbg_multiremoteattachment_free: (a: number, b: number) => void;
696
+ readonly __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
697
+ readonly __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
698
+ readonly multiremoteattachment_new: (a: number, b: number) => number;
699
+ readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
700
+ readonly decodeMultiRemoteAttachment: (a: any) => [number, number, number];
701
+ readonly __wbg_reaction_free: (a: number, b: number) => void;
702
+ readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
703
+ readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
704
+ readonly __wbg_get_reaction_action: (a: number) => number;
705
+ readonly __wbg_set_reaction_action: (a: number, b: number) => void;
706
+ readonly __wbg_get_reaction_content: (a: number) => [number, number];
707
+ readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
708
+ readonly __wbg_get_reaction_schema: (a: number) => number;
709
+ readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
710
+ readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
711
+ readonly encodeReaction: (a: number) => [number, number, number];
712
+ readonly decodeReaction: (a: any) => [number, number, number];
678
713
  readonly __wbg_installation_free: (a: number, b: number) => void;
679
714
  readonly __wbg_get_installation_bytes: (a: number) => any;
680
715
  readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
@@ -693,8 +728,22 @@ export interface InitOutput {
693
728
  readonly __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
694
729
  readonly __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
695
730
  readonly inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
731
+ readonly __wbg_keypackagestatus_free: (a: number, b: number) => void;
732
+ readonly __wbg_get_keypackagestatus_lifetime: (a: number) => number;
733
+ readonly __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
734
+ readonly __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
735
+ readonly __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
736
+ readonly __wbg_lifetime_free: (a: number, b: number) => void;
737
+ readonly __wbg_get_lifetime_not_before: (a: number) => bigint;
738
+ readonly __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
739
+ readonly __wbg_get_lifetime_not_after: (a: number) => bigint;
740
+ readonly __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
696
741
  readonly client_inboxState: (a: number, b: number) => any;
697
742
  readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
743
+ readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
744
+ readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
745
+ readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
746
+ readonly __wbg_get_reaction_reference: (a: number) => [number, number];
698
747
  readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
699
748
  readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
700
749
  readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
@@ -716,18 +765,6 @@ export interface InitOutput {
716
765
  readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
717
766
  readonly grouppermissions_policyType: (a: number) => [number, number, number];
718
767
  readonly grouppermissions_policySet: (a: number) => [number, number, number];
719
- readonly __wbg_consent_free: (a: number, b: number) => void;
720
- readonly __wbg_get_consent_entityType: (a: number) => number;
721
- readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
722
- readonly __wbg_get_consent_state: (a: number) => number;
723
- readonly __wbg_set_consent_state: (a: number, b: number) => void;
724
- readonly __wbg_get_consent_entity: (a: number) => [number, number];
725
- readonly __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
726
- readonly consent_new: (a: number, b: number, c: number, d: number) => number;
727
- readonly client_setConsentStates: (a: number, b: number, c: number) => any;
728
- readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
729
- readonly conversation_consentState: (a: number) => [number, number, number];
730
- readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
731
768
  readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
732
769
  readonly __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
733
770
  readonly __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
@@ -792,6 +829,8 @@ export interface InitOutput {
792
829
  readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
793
830
  readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
794
831
  readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
832
+ readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
833
+ readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
795
834
  readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
796
835
  readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
797
836
  readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
@@ -841,6 +880,7 @@ export interface InitOutput {
841
880
  readonly __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
842
881
  readonly __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
843
882
  readonly __wbg_opfs_free: (a: number, b: number) => void;
883
+ readonly opfs_init_sqlite_opfs: () => any;
844
884
  readonly opfs_exists: () => number;
845
885
  readonly opfs_error: () => [number, number];
846
886
  readonly opfs_wipeFiles: () => any;
@@ -864,8 +904,6 @@ export interface InitOutput {
864
904
  readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
865
905
  readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
866
906
  readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
867
- readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
868
- readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
869
907
  readonly rust_sqlite_wasm_shim_localtime_js: (a: bigint, b: number) => void;
870
908
  readonly rust_sqlite_wasm_shim_tzset_js: (a: number, b: number, c: number, d: number) => void;
871
909
  readonly rust_sqlite_wasm_shim_emscripten_get_now: () => number;
@@ -873,6 +911,12 @@ export interface InitOutput {
873
911
  readonly rust_sqlite_wasm_shim_malloc: (a: number) => number;
874
912
  readonly rust_sqlite_wasm_shim_free: (a: number) => void;
875
913
  readonly rust_sqlite_wasm_shim_realloc: (a: number, b: number) => number;
914
+ readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
915
+ readonly intounderlyingbytesource_type: (a: number) => number;
916
+ readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
917
+ readonly intounderlyingbytesource_start: (a: number, b: any) => void;
918
+ readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
919
+ readonly intounderlyingbytesource_cancel: (a: number) => void;
876
920
  readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
877
921
  readonly intounderlyingsource_pull: (a: number, b: any) => any;
878
922
  readonly intounderlyingsource_cancel: (a: number) => void;
@@ -880,12 +924,6 @@ export interface InitOutput {
880
924
  readonly intounderlyingsink_write: (a: number, b: any) => any;
881
925
  readonly intounderlyingsink_close: (a: number) => any;
882
926
  readonly intounderlyingsink_abort: (a: number, b: any) => any;
883
- readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
884
- readonly intounderlyingbytesource_type: (a: number) => number;
885
- readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
886
- readonly intounderlyingbytesource_start: (a: number, b: any) => void;
887
- readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
888
- readonly intounderlyingbytesource_cancel: (a: number) => void;
889
927
  readonly __wbindgen_malloc: (a: number, b: number) => number;
890
928
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
891
929
  readonly __wbindgen_exn_store: (a: number) => void;
@@ -895,10 +933,10 @@ export interface InitOutput {
895
933
  readonly __externref_drop_slice: (a: number, b: number) => void;
896
934
  readonly __wbindgen_export_7: WebAssembly.Table;
897
935
  readonly __externref_table_dealloc: (a: number) => void;
898
- readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd11fcf7148e8db56: (a: number, b: number) => void;
899
- readonly closure3812_externref_shim: (a: number, b: number, c: any) => void;
900
- readonly closure4807_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
901
- readonly closure4806_externref_shim: (a: number, b: number, c: any, d: any) => void;
936
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h956eec367a7720a2: (a: number, b: number) => void;
937
+ readonly closure3889_externref_shim: (a: number, b: number, c: any) => void;
938
+ readonly closure4898_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
939
+ readonly closure4892_externref_shim: (a: number, b: number, c: any, d: any) => void;
902
940
  readonly __wbindgen_start: () => void;
903
941
  }
904
942
 
@@ -224,17 +224,59 @@ function passArrayJsValueToWasm0(array, malloc) {
224
224
  return ptr;
225
225
  }
226
226
 
227
+ function takeFromExternrefTable0(idx) {
228
+ const value = wasm.__wbindgen_export_4.get(idx);
229
+ wasm.__externref_table_dealloc(idx);
230
+ return value;
231
+ }
232
+
227
233
  function _assertClass(instance, klass) {
228
234
  if (!(instance instanceof klass)) {
229
235
  throw new Error(`expected instance of ${klass.name}`);
230
236
  }
231
237
  }
238
+ /**
239
+ * @param {string} signature_text
240
+ * @param {Uint8Array} signature_bytes
241
+ * @param {Uint8Array} public_key
242
+ */
243
+ export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
244
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
245
+ const len0 = WASM_VECTOR_LEN;
246
+ const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
247
+ if (ret[1]) {
248
+ throw takeFromExternrefTable0(ret[0]);
249
+ }
250
+ }
232
251
 
233
- function takeFromExternrefTable0(idx) {
234
- const value = wasm.__wbindgen_export_4.get(idx);
235
- wasm.__externref_table_dealloc(idx);
236
- return value;
252
+ /**
253
+ * @param {string} host
254
+ * @param {string} inbox_id
255
+ * @param {Identifier} account_identifier
256
+ * @param {string | null} [db_path]
257
+ * @param {Uint8Array | null} [encryption_key]
258
+ * @param {string | null} [history_sync_url]
259
+ * @param {LogOptions | null} [log_options]
260
+ * @returns {Promise<Client>}
261
+ */
262
+ export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, history_sync_url, log_options) {
263
+ const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
264
+ const len0 = WASM_VECTOR_LEN;
265
+ const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
266
+ const len1 = WASM_VECTOR_LEN;
267
+ var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
268
+ var len2 = WASM_VECTOR_LEN;
269
+ var ptr3 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
270
+ var len3 = WASM_VECTOR_LEN;
271
+ let ptr4 = 0;
272
+ if (!isLikeNone(log_options)) {
273
+ _assertClass(log_options, LogOptions);
274
+ ptr4 = log_options.__destroy_into_raw();
275
+ }
276
+ const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, ptr4);
277
+ return ret;
237
278
  }
279
+
238
280
  /**
239
281
  * @param {MultiRemoteAttachment} multiRemoteAttachment
240
282
  * @returns {Uint8Array}
@@ -287,48 +329,6 @@ export function decodeReaction(bytes) {
287
329
  return Reaction.__wrap(ret[0]);
288
330
  }
289
331
 
290
- /**
291
- * @param {string} signature_text
292
- * @param {Uint8Array} signature_bytes
293
- * @param {Uint8Array} public_key
294
- */
295
- export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
296
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
297
- const len0 = WASM_VECTOR_LEN;
298
- const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
299
- if (ret[1]) {
300
- throw takeFromExternrefTable0(ret[0]);
301
- }
302
- }
303
-
304
- /**
305
- * @param {string} host
306
- * @param {string} inbox_id
307
- * @param {Identifier} account_identifier
308
- * @param {string | null} [db_path]
309
- * @param {Uint8Array | null} [encryption_key]
310
- * @param {string | null} [history_sync_url]
311
- * @param {LogOptions | null} [log_options]
312
- * @returns {Promise<Client>}
313
- */
314
- export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, history_sync_url, log_options) {
315
- const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
316
- const len0 = WASM_VECTOR_LEN;
317
- const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
318
- const len1 = WASM_VECTOR_LEN;
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);
322
- var len3 = WASM_VECTOR_LEN;
323
- let ptr4 = 0;
324
- if (!isLikeNone(log_options)) {
325
- _assertClass(log_options, LogOptions);
326
- ptr4 = log_options.__destroy_into_raw();
327
- }
328
- const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, ptr4);
329
- return ret;
330
- }
331
-
332
332
  function passArray8ToWasm0(arg, malloc) {
333
333
  const ptr = malloc(arg.length * 1, 1) >>> 0;
334
334
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -370,21 +370,21 @@ export function generateInboxId(accountIdentifier) {
370
370
  }
371
371
  }
372
372
 
373
- function __wbg_adapter_48(arg0, arg1) {
374
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd11fcf7148e8db56(arg0, arg1);
373
+ function __wbg_adapter_50(arg0, arg1) {
374
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h956eec367a7720a2(arg0, arg1);
375
375
  }
376
376
 
377
- function __wbg_adapter_51(arg0, arg1, arg2) {
378
- wasm.closure3812_externref_shim(arg0, arg1, arg2);
377
+ function __wbg_adapter_53(arg0, arg1, arg2) {
378
+ wasm.closure3889_externref_shim(arg0, arg1, arg2);
379
379
  }
380
380
 
381
- function __wbg_adapter_599(arg0, arg1, arg2, arg3, arg4) {
382
- const ret = wasm.closure4807_externref_shim(arg0, arg1, arg2, arg3, arg4);
381
+ function __wbg_adapter_620(arg0, arg1, arg2, arg3, arg4) {
382
+ const ret = wasm.closure4898_externref_shim(arg0, arg1, arg2, arg3, arg4);
383
383
  return ret !== 0;
384
384
  }
385
385
 
386
- function __wbg_adapter_700(arg0, arg1, arg2, arg3) {
387
- wasm.closure4806_externref_shim(arg0, arg1, arg2, arg3);
386
+ function __wbg_adapter_721(arg0, arg1, arg2, arg3) {
387
+ wasm.closure4892_externref_shim(arg0, arg1, arg2, arg3);
388
388
  }
389
389
 
390
390
  /**
@@ -513,13 +513,14 @@ export const ReactionSchema = Object.freeze({
513
513
  Custom: 3, "3": "Custom",
514
514
  });
515
515
  /**
516
- * @enum {0 | 1 | 2 | 3}
516
+ * @enum {0 | 1 | 2 | 3 | 4}
517
517
  */
518
518
  export const SignatureRequestType = Object.freeze({
519
519
  AddWallet: 0, "0": "AddWallet",
520
520
  CreateInbox: 1, "1": "CreateInbox",
521
521
  RevokeWallet: 2, "2": "RevokeWallet",
522
522
  RevokeInstallations: 3, "3": "RevokeInstallations",
523
+ ChangeRecoveryIdentifier: 4, "4": "ChangeRecoveryIdentifier",
523
524
  });
524
525
  /**
525
526
  * @enum {0 | 1}
@@ -562,6 +563,27 @@ export class Client {
562
563
  const ptr = this.__destroy_into_raw();
563
564
  wasm.__wbg_client_free(ptr, 0);
564
565
  }
566
+ /**
567
+ * @param {Consent[]} records
568
+ * @returns {Promise<void>}
569
+ */
570
+ setConsentStates(records) {
571
+ const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
572
+ const len0 = WASM_VECTOR_LEN;
573
+ const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
574
+ return ret;
575
+ }
576
+ /**
577
+ * @param {ConsentEntityType} entity_type
578
+ * @param {string} entity
579
+ * @returns {Promise<ConsentState>}
580
+ */
581
+ getConsentState(entity_type, entity) {
582
+ const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
583
+ const len0 = WASM_VECTOR_LEN;
584
+ const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
585
+ return ret;
586
+ }
565
587
  /**
566
588
  * @returns {string | undefined}
567
589
  */
@@ -610,6 +632,14 @@ export class Client {
610
632
  const ret = wasm.client_revokeInstallationsSignatureText(this.__wbg_ptr, ptr0, len0);
611
633
  return ret;
612
634
  }
635
+ /**
636
+ * @param {Identifier} new_recovery_identifier
637
+ * @returns {Promise<string>}
638
+ */
639
+ changeRecoveryIdentifierSignatureText(new_recovery_identifier) {
640
+ const ret = wasm.client_changeRecoveryIdentifierSignatureText(this.__wbg_ptr, new_recovery_identifier);
641
+ return ret;
642
+ }
613
643
  /**
614
644
  * @param {SignatureRequestType} signature_type
615
645
  * @param {Uint8Array} signature_bytes
@@ -807,24 +837,18 @@ export class Client {
807
837
  return ret;
808
838
  }
809
839
  /**
810
- * @param {Consent[]} records
811
- * @returns {Promise<void>}
812
- */
813
- setConsentStates(records) {
814
- const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
815
- const len0 = WASM_VECTOR_LEN;
816
- const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
817
- return ret;
818
- }
819
- /**
820
- * @param {ConsentEntityType} entity_type
821
- * @param {string} entity
822
- * @returns {Promise<ConsentState>}
840
+ *
841
+ * * Get key package statuses for a list of installation IDs.
842
+ * *
843
+ * * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
844
+ *
845
+ * @param {string[]} installation_ids
846
+ * @returns {Promise<any>}
823
847
  */
824
- getConsentState(entity_type, entity) {
825
- const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
848
+ getKeyPackageStatusesForInstallationIds(installation_ids) {
849
+ const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
826
850
  const len0 = WASM_VECTOR_LEN;
827
- const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
851
+ const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
828
852
  return ret;
829
853
  }
830
854
  }
@@ -963,7 +987,7 @@ export class ContentTypeId {
963
987
  set authorityId(arg0) {
964
988
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
965
989
  const len0 = WASM_VECTOR_LEN;
966
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
990
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
967
991
  }
968
992
  /**
969
993
  * @returns {string}
@@ -1057,6 +1081,25 @@ export class Conversation {
1057
1081
  const ptr = this.__destroy_into_raw();
1058
1082
  wasm.__wbg_conversation_free(ptr, 0);
1059
1083
  }
1084
+ /**
1085
+ * @returns {ConsentState}
1086
+ */
1087
+ consentState() {
1088
+ const ret = wasm.conversation_consentState(this.__wbg_ptr);
1089
+ if (ret[2]) {
1090
+ throw takeFromExternrefTable0(ret[1]);
1091
+ }
1092
+ return ret[0];
1093
+ }
1094
+ /**
1095
+ * @param {ConsentState} state
1096
+ */
1097
+ updateConsentState(state) {
1098
+ const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
1099
+ if (ret[1]) {
1100
+ throw takeFromExternrefTable0(ret[0]);
1101
+ }
1102
+ }
1060
1103
  /**
1061
1104
  * @returns {string}
1062
1105
  */
@@ -1537,25 +1580,6 @@ export class Conversation {
1537
1580
  }
1538
1581
  return takeFromExternrefTable0(ret[0]);
1539
1582
  }
1540
- /**
1541
- * @returns {ConsentState}
1542
- */
1543
- consentState() {
1544
- const ret = wasm.conversation_consentState(this.__wbg_ptr);
1545
- if (ret[2]) {
1546
- throw takeFromExternrefTable0(ret[1]);
1547
- }
1548
- return ret[0];
1549
- }
1550
- /**
1551
- * @param {ConsentState} state
1552
- */
1553
- updateConsentState(state) {
1554
- const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
1555
- if (ret[1]) {
1556
- throw takeFromExternrefTable0(ret[0]);
1557
- }
1558
- }
1559
1583
  }
1560
1584
 
1561
1585
  const ConversationListItemFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -2277,7 +2301,7 @@ export class GroupMember {
2277
2301
  set inboxId(arg0) {
2278
2302
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2279
2303
  const len0 = WASM_VECTOR_LEN;
2280
- wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
2304
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
2281
2305
  }
2282
2306
  /**
2283
2307
  * @returns {Identifier[]}
@@ -2850,6 +2874,116 @@ export class IntoUnderlyingSource {
2850
2874
  }
2851
2875
  }
2852
2876
 
2877
+ const KeyPackageStatusFinalization = (typeof FinalizationRegistry === 'undefined')
2878
+ ? { register: () => {}, unregister: () => {} }
2879
+ : new FinalizationRegistry(ptr => wasm.__wbg_keypackagestatus_free(ptr >>> 0, 1));
2880
+
2881
+ export class KeyPackageStatus {
2882
+
2883
+ __destroy_into_raw() {
2884
+ const ptr = this.__wbg_ptr;
2885
+ this.__wbg_ptr = 0;
2886
+ KeyPackageStatusFinalization.unregister(this);
2887
+ return ptr;
2888
+ }
2889
+
2890
+ free() {
2891
+ const ptr = this.__destroy_into_raw();
2892
+ wasm.__wbg_keypackagestatus_free(ptr, 0);
2893
+ }
2894
+ /**
2895
+ * @returns {Lifetime | undefined}
2896
+ */
2897
+ get lifetime() {
2898
+ const ret = wasm.__wbg_get_keypackagestatus_lifetime(this.__wbg_ptr);
2899
+ return ret === 0 ? undefined : Lifetime.__wrap(ret);
2900
+ }
2901
+ /**
2902
+ * @param {Lifetime | null} [arg0]
2903
+ */
2904
+ set lifetime(arg0) {
2905
+ let ptr0 = 0;
2906
+ if (!isLikeNone(arg0)) {
2907
+ _assertClass(arg0, Lifetime);
2908
+ ptr0 = arg0.__destroy_into_raw();
2909
+ }
2910
+ wasm.__wbg_set_keypackagestatus_lifetime(this.__wbg_ptr, ptr0);
2911
+ }
2912
+ /**
2913
+ * @returns {string | undefined}
2914
+ */
2915
+ get validationError() {
2916
+ const ret = wasm.__wbg_get_keypackagestatus_validationError(this.__wbg_ptr);
2917
+ let v1;
2918
+ if (ret[0] !== 0) {
2919
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
2920
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
2921
+ }
2922
+ return v1;
2923
+ }
2924
+ /**
2925
+ * @param {string | null} [arg0]
2926
+ */
2927
+ set validationError(arg0) {
2928
+ var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2929
+ var len0 = WASM_VECTOR_LEN;
2930
+ wasm.__wbg_set_keypackagestatus_validationError(this.__wbg_ptr, ptr0, len0);
2931
+ }
2932
+ }
2933
+
2934
+ const LifetimeFinalization = (typeof FinalizationRegistry === 'undefined')
2935
+ ? { register: () => {}, unregister: () => {} }
2936
+ : new FinalizationRegistry(ptr => wasm.__wbg_lifetime_free(ptr >>> 0, 1));
2937
+
2938
+ export class Lifetime {
2939
+
2940
+ static __wrap(ptr) {
2941
+ ptr = ptr >>> 0;
2942
+ const obj = Object.create(Lifetime.prototype);
2943
+ obj.__wbg_ptr = ptr;
2944
+ LifetimeFinalization.register(obj, obj.__wbg_ptr, obj);
2945
+ return obj;
2946
+ }
2947
+
2948
+ __destroy_into_raw() {
2949
+ const ptr = this.__wbg_ptr;
2950
+ this.__wbg_ptr = 0;
2951
+ LifetimeFinalization.unregister(this);
2952
+ return ptr;
2953
+ }
2954
+
2955
+ free() {
2956
+ const ptr = this.__destroy_into_raw();
2957
+ wasm.__wbg_lifetime_free(ptr, 0);
2958
+ }
2959
+ /**
2960
+ * @returns {bigint}
2961
+ */
2962
+ get not_before() {
2963
+ const ret = wasm.__wbg_get_lifetime_not_before(this.__wbg_ptr);
2964
+ return BigInt.asUintN(64, ret);
2965
+ }
2966
+ /**
2967
+ * @param {bigint} arg0
2968
+ */
2969
+ set not_before(arg0) {
2970
+ wasm.__wbg_set_lifetime_not_before(this.__wbg_ptr, arg0);
2971
+ }
2972
+ /**
2973
+ * @returns {bigint}
2974
+ */
2975
+ get not_after() {
2976
+ const ret = wasm.__wbg_get_lifetime_not_after(this.__wbg_ptr);
2977
+ return BigInt.asUintN(64, ret);
2978
+ }
2979
+ /**
2980
+ * @param {bigint} arg0
2981
+ */
2982
+ set not_after(arg0) {
2983
+ wasm.__wbg_set_lifetime_not_after(this.__wbg_ptr, arg0);
2984
+ }
2985
+ }
2986
+
2853
2987
  const ListConversationsOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
2854
2988
  ? { register: () => {}, unregister: () => {} }
2855
2989
  : new FinalizationRegistry(ptr => wasm.__wbg_listconversationsoptions_free(ptr >>> 0, 1));
@@ -3527,6 +3661,13 @@ export class Opfs {
3527
3661
  const ptr = this.__destroy_into_raw();
3528
3662
  wasm.__wbg_opfs_free(ptr, 0);
3529
3663
  }
3664
+ /**
3665
+ * @returns {Promise<void>}
3666
+ */
3667
+ static init_sqlite_opfs() {
3668
+ const ret = wasm.opfs_init_sqlite_opfs();
3669
+ return ret;
3670
+ }
3530
3671
  /**
3531
3672
  * Check if the global OPFS object has been initialized
3532
3673
  * @returns {boolean}
@@ -3857,7 +3998,7 @@ export class Reaction {
3857
3998
  set reference(arg0) {
3858
3999
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3859
4000
  const len0 = WASM_VECTOR_LEN;
3860
- wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
4001
+ wasm.__wbg_set_inboxstate_inboxId(this.__wbg_ptr, ptr0, len0);
3861
4002
  }
3862
4003
  /**
3863
4004
  * @returns {string}
@@ -4332,6 +4473,10 @@ function __wbg_get_imports() {
4332
4473
  imports.wbg.__wbg_close_a17af48266bd9942 = function(arg0) {
4333
4474
  arg0.close();
4334
4475
  };
4476
+ imports.wbg.__wbg_code_cfd8f6868bdaed9b = function(arg0) {
4477
+ const ret = arg0.code;
4478
+ return ret;
4479
+ };
4335
4480
  imports.wbg.__wbg_consent_unwrap = function(arg0) {
4336
4481
  const ret = Consent.__unwrap(arg0);
4337
4482
  return ret;
@@ -4409,7 +4554,7 @@ function __wbg_get_imports() {
4409
4554
  const a = state0.a;
4410
4555
  state0.a = 0;
4411
4556
  try {
4412
- return __wbg_adapter_599(a, state0.b, arg0, arg1, arg2);
4557
+ return __wbg_adapter_620(a, state0.b, arg0, arg1, arg2);
4413
4558
  } finally {
4414
4559
  state0.a = a;
4415
4560
  }
@@ -4439,7 +4584,7 @@ function __wbg_get_imports() {
4439
4584
  const a = state0.a;
4440
4585
  state0.a = 0;
4441
4586
  try {
4442
- return __wbg_adapter_599(a, state0.b, arg0, arg1, arg2);
4587
+ return __wbg_adapter_620(a, state0.b, arg0, arg1, arg2);
4443
4588
  } finally {
4444
4589
  state0.a = a;
4445
4590
  }
@@ -4596,6 +4741,16 @@ function __wbg_get_imports() {
4596
4741
  const ret = result;
4597
4742
  return ret;
4598
4743
  };
4744
+ imports.wbg.__wbg_instanceof_DomException_ed1ccb7aaf39034c = function(arg0) {
4745
+ let result;
4746
+ try {
4747
+ result = arg0 instanceof DOMException;
4748
+ } catch (_) {
4749
+ result = false;
4750
+ }
4751
+ const ret = result;
4752
+ return ret;
4753
+ };
4599
4754
  imports.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function(arg0) {
4600
4755
  let result;
4601
4756
  try {
@@ -4692,6 +4847,13 @@ function __wbg_get_imports() {
4692
4847
  imports.wbg.__wbg_measure_7728846525e2cced = function() { return handleError(function (arg0, arg1, arg2, arg3) {
4693
4848
  arg0.measure(getStringFromWasm0(arg1, arg2), arg3);
4694
4849
  }, arguments) };
4850
+ imports.wbg.__wbg_message_5c5d919204d42400 = function(arg0, arg1) {
4851
+ const ret = arg1.message;
4852
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4853
+ const len1 = WASM_VECTOR_LEN;
4854
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
4855
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
4856
+ };
4695
4857
  imports.wbg.__wbg_message_new = function(arg0) {
4696
4858
  const ret = Message.__wrap(arg0);
4697
4859
  return ret;
@@ -4708,6 +4870,13 @@ function __wbg_get_imports() {
4708
4870
  const ret = arg0.msCrypto;
4709
4871
  return ret;
4710
4872
  };
4873
+ imports.wbg.__wbg_name_f2d27098bfd843e7 = function(arg0, arg1) {
4874
+ const ret = arg1.name;
4875
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4876
+ const len1 = WASM_VECTOR_LEN;
4877
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
4878
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
4879
+ };
4711
4880
  imports.wbg.__wbg_navigator_0a9bf1120e24fec2 = function(arg0) {
4712
4881
  const ret = arg0.navigator;
4713
4882
  return ret;
@@ -4727,7 +4896,7 @@ function __wbg_get_imports() {
4727
4896
  const a = state0.a;
4728
4897
  state0.a = 0;
4729
4898
  try {
4730
- return __wbg_adapter_700(a, state0.b, arg0, arg1);
4899
+ return __wbg_adapter_721(a, state0.b, arg0, arg1);
4731
4900
  } finally {
4732
4901
  state0.a = a;
4733
4902
  }
@@ -4834,19 +5003,19 @@ function __wbg_get_imports() {
4834
5003
  const ret = arg0.now();
4835
5004
  return ret;
4836
5005
  };
4837
- imports.wbg.__wbg_onconsentupdate_d39af2c2a65f8104 = function(arg0, arg1) {
5006
+ imports.wbg.__wbg_onconsentupdate_4c6fac1d9f867a49 = function(arg0, arg1) {
4838
5007
  arg0.on_consent_update(arg1);
4839
5008
  };
4840
- imports.wbg.__wbg_onconversation_2776d8d9426c5229 = function(arg0, arg1) {
5009
+ imports.wbg.__wbg_onconversation_53ee00b78b2567f0 = function(arg0, arg1) {
4841
5010
  arg0.on_conversation(Conversation.__wrap(arg1));
4842
5011
  };
4843
- imports.wbg.__wbg_onerror_75829c7bc5432c6c = function(arg0, arg1) {
5012
+ imports.wbg.__wbg_onerror_f83f69679f719d45 = function(arg0, arg1) {
4844
5013
  arg0.on_error(arg1);
4845
5014
  };
4846
- imports.wbg.__wbg_onmessage_501b172c699f8bf5 = function(arg0, arg1) {
5015
+ imports.wbg.__wbg_onmessage_9af0c0b07630e1bb = function(arg0, arg1) {
4847
5016
  arg0.on_message(Message.__wrap(arg1));
4848
5017
  };
4849
- imports.wbg.__wbg_onuserpreferenceupdate_3113ed19eb68f530 = function(arg0, arg1, arg2) {
5018
+ imports.wbg.__wbg_onuserpreferenceupdate_0a3e44916ebf35a2 = function(arg0, arg1, arg2) {
4850
5019
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
4851
5020
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
4852
5021
  arg0.on_user_preference_update(v0);
@@ -5116,6 +5285,10 @@ function __wbg_get_imports() {
5116
5285
  const ret = arg0;
5117
5286
  return ret;
5118
5287
  };
5288
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
5289
+ const ret = BigInt.asUintN(64, arg0);
5290
+ return ret;
5291
+ };
5119
5292
  imports.wbg.__wbindgen_boolean_get = function(arg0) {
5120
5293
  const v = arg0;
5121
5294
  const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
@@ -5130,12 +5303,12 @@ function __wbg_get_imports() {
5130
5303
  const ret = false;
5131
5304
  return ret;
5132
5305
  };
5133
- imports.wbg.__wbindgen_closure_wrapper16352 = function(arg0, arg1, arg2) {
5134
- const ret = makeMutClosure(arg0, arg1, 3742, __wbg_adapter_48);
5306
+ imports.wbg.__wbindgen_closure_wrapper16552 = function(arg0, arg1, arg2) {
5307
+ const ret = makeMutClosure(arg0, arg1, 3818, __wbg_adapter_50);
5135
5308
  return ret;
5136
5309
  };
5137
- imports.wbg.__wbindgen_closure_wrapper16631 = function(arg0, arg1, arg2) {
5138
- const ret = makeMutClosure(arg0, arg1, 3813, __wbg_adapter_51);
5310
+ imports.wbg.__wbindgen_closure_wrapper16863 = function(arg0, arg1, arg2) {
5311
+ const ret = makeMutClosure(arg0, arg1, 3890, __wbg_adapter_53);
5139
5312
  return ret;
5140
5313
  };
5141
5314
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -1,48 +1,22 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
5
- export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
6
- export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
7
- export const __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
8
- export const __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
9
- export const __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
10
- export const __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
11
- export const __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
12
- export const __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
13
- export const __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
14
- export const __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
15
- export const __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
16
- export const __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
17
- export const __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
18
- export const __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
19
- export const __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
20
- export const __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
21
- export const remoteattachmentinfo_new: (a: any, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: any, j: number, k: number, l: number) => number;
22
- export const __wbg_multiremoteattachment_free: (a: number, b: number) => void;
23
- export const __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
24
- export const __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
25
- export const multiremoteattachment_new: (a: number, b: number) => number;
26
- export const encodeMultiRemoteAttachment: (a: number) => [number, number, number];
27
- export const decodeMultiRemoteAttachment: (a: any) => [number, number, number];
28
- export const __wbg_reaction_free: (a: number, b: number) => void;
29
- export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
30
- export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
31
- export const __wbg_get_reaction_action: (a: number) => number;
32
- export const __wbg_set_reaction_action: (a: number, b: number) => void;
33
- export const __wbg_get_reaction_content: (a: number) => [number, number];
34
- export const __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
35
- export const __wbg_get_reaction_schema: (a: number) => number;
36
- export const __wbg_set_reaction_schema: (a: number, b: number) => void;
37
- export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
38
- export const encodeReaction: (a: number) => [number, number, number];
39
- export const decodeReaction: (a: any) => [number, number, number];
4
+ export const __wbg_consent_free: (a: number, b: number) => void;
5
+ export const __wbg_get_consent_entityType: (a: number) => number;
6
+ export const __wbg_set_consent_entityType: (a: number, b: number) => void;
7
+ export const __wbg_get_consent_state: (a: number) => number;
8
+ export const __wbg_set_consent_state: (a: number, b: number) => void;
9
+ export const __wbg_get_consent_entity: (a: number) => [number, number];
10
+ export const __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
11
+ export const consent_new: (a: number, b: number, c: number, d: number) => number;
12
+ export const client_setConsentStates: (a: number, b: number, c: number) => any;
13
+ export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
14
+ export const conversation_consentState: (a: number) => [number, number, number];
15
+ export const conversation_updateConsentState: (a: number, b: number) => [number, number];
40
16
  export const __wbg_groupmetadata_free: (a: number, b: number) => void;
41
17
  export const groupmetadata_creatorInboxId: (a: number) => [number, number];
42
18
  export const groupmetadata_conversationType: (a: number) => [number, number];
43
19
  export const __wbg_groupmember_free: (a: number, b: number) => void;
44
- export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
45
- export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
46
20
  export const __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
47
21
  export const __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
48
22
  export const __wbg_get_groupmember_installationIds: (a: number) => [number, number];
@@ -100,14 +74,15 @@ export const client_addWalletSignatureText: (a: number, b: any) => any;
100
74
  export const client_revokeWalletSignatureText: (a: number, b: any) => any;
101
75
  export const client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
102
76
  export const client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
77
+ export const client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
103
78
  export const client_addEcdsaSignature: (a: number, b: number, c: any) => any;
104
79
  export const client_addPasskeySignature: (a: number, b: number, c: number) => any;
105
80
  export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
106
81
  export const client_applySignatureRequests: (a: number) => any;
107
82
  export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
108
83
  export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
109
- export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
110
- export const __wbg_get_reaction_reference: (a: number) => [number, number];
84
+ export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
85
+ export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
111
86
  export const __wbg_streamcloser_free: (a: number, b: number) => void;
112
87
  export const streamcloser_end: (a: number) => void;
113
88
  export const streamcloser_endAndWait: (a: number) => any;
@@ -135,6 +110,41 @@ export const client_sendConsentSyncRequest: (a: number) => any;
135
110
  export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
136
111
  export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
137
112
  export const client_conversations: (a: number) => number;
113
+ export const __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
114
+ export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
115
+ export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
116
+ export const __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
117
+ export const __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
118
+ export const __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
119
+ export const __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
120
+ export const __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
121
+ export const __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
122
+ export const __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
123
+ export const __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
124
+ export const __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
125
+ export const __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
126
+ export const __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
127
+ export const __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
128
+ export const __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
129
+ export const remoteattachmentinfo_new: (a: any, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: any, j: number, k: number, l: number) => number;
130
+ export const __wbg_multiremoteattachment_free: (a: number, b: number) => void;
131
+ export const __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
132
+ export const __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
133
+ export const multiremoteattachment_new: (a: number, b: number) => number;
134
+ export const encodeMultiRemoteAttachment: (a: number) => [number, number, number];
135
+ export const decodeMultiRemoteAttachment: (a: any) => [number, number, number];
136
+ export const __wbg_reaction_free: (a: number, b: number) => void;
137
+ export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
138
+ export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
139
+ export const __wbg_get_reaction_action: (a: number) => number;
140
+ export const __wbg_set_reaction_action: (a: number, b: number) => void;
141
+ export const __wbg_get_reaction_content: (a: number) => [number, number];
142
+ export const __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
143
+ export const __wbg_get_reaction_schema: (a: number) => number;
144
+ export const __wbg_set_reaction_schema: (a: number, b: number) => void;
145
+ export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
146
+ export const encodeReaction: (a: number) => [number, number, number];
147
+ export const decodeReaction: (a: any) => [number, number, number];
138
148
  export const __wbg_installation_free: (a: number, b: number) => void;
139
149
  export const __wbg_get_installation_bytes: (a: number) => any;
140
150
  export const __wbg_set_installation_bytes: (a: number, b: any) => void;
@@ -153,8 +163,22 @@ export const __wbg_set_inboxstate_installations: (a: number, b: number, c: numbe
153
163
  export const __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
154
164
  export const __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
155
165
  export const inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
166
+ export const __wbg_keypackagestatus_free: (a: number, b: number) => void;
167
+ export const __wbg_get_keypackagestatus_lifetime: (a: number) => number;
168
+ export const __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
169
+ export const __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
170
+ export const __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
171
+ export const __wbg_lifetime_free: (a: number, b: number) => void;
172
+ export const __wbg_get_lifetime_not_before: (a: number) => bigint;
173
+ export const __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
174
+ export const __wbg_get_lifetime_not_after: (a: number) => bigint;
175
+ export const __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
156
176
  export const client_inboxState: (a: number, b: number) => any;
157
177
  export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
178
+ export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
179
+ export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
180
+ export const __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
181
+ export const __wbg_get_reaction_reference: (a: number) => [number, number];
158
182
  export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
159
183
  export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
160
184
  export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
@@ -176,18 +200,6 @@ export const permissionpolicyset_new: (a: number, b: number, c: number, d: numbe
176
200
  export const __wbg_grouppermissions_free: (a: number, b: number) => void;
177
201
  export const grouppermissions_policyType: (a: number) => [number, number, number];
178
202
  export const grouppermissions_policySet: (a: number) => [number, number, number];
179
- export const __wbg_consent_free: (a: number, b: number) => void;
180
- export const __wbg_get_consent_entityType: (a: number) => number;
181
- export const __wbg_set_consent_entityType: (a: number, b: number) => void;
182
- export const __wbg_get_consent_state: (a: number) => number;
183
- export const __wbg_set_consent_state: (a: number, b: number) => void;
184
- export const __wbg_get_consent_entity: (a: number) => [number, number];
185
- export const __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
186
- export const consent_new: (a: number, b: number, c: number, d: number) => number;
187
- export const client_setConsentStates: (a: number, b: number, c: number) => any;
188
- export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
189
- export const conversation_consentState: (a: number) => [number, number, number];
190
- export const conversation_updateConsentState: (a: number, b: number) => [number, number];
191
203
  export const __wbg_listconversationsoptions_free: (a: number, b: number) => void;
192
204
  export const __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
193
205
  export const __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
@@ -252,6 +264,8 @@ export const conversations_streamAllMessages: (a: number, b: any, c: number) =>
252
264
  export const conversations_streamConsent: (a: number, b: any) => [number, number, number];
253
265
  export const conversations_streamPreferences: (a: number, b: any) => [number, number, number];
254
266
  export const __wbg_contenttypeid_free: (a: number, b: number) => void;
267
+ export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
268
+ export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
255
269
  export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
256
270
  export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
257
271
  export const __wbg_get_contenttypeid_versionMajor: (a: number) => number;
@@ -301,6 +315,7 @@ export const __wbg_set_messagewithreactions_message: (a: number, b: number) => v
301
315
  export const __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
302
316
  export const __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
303
317
  export const __wbg_opfs_free: (a: number, b: number) => void;
318
+ export const opfs_init_sqlite_opfs: () => any;
304
319
  export const opfs_exists: () => number;
305
320
  export const opfs_error: () => [number, number];
306
321
  export const opfs_wipeFiles: () => any;
@@ -324,8 +339,6 @@ export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: numbe
324
339
  export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
325
340
  export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
326
341
  export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
327
- export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
328
- export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
329
342
  export const rust_sqlite_wasm_shim_localtime_js: (a: bigint, b: number) => void;
330
343
  export const rust_sqlite_wasm_shim_tzset_js: (a: number, b: number, c: number, d: number) => void;
331
344
  export const rust_sqlite_wasm_shim_emscripten_get_now: () => number;
@@ -333,6 +346,12 @@ export const sqlite3_os_init: () => number;
333
346
  export const rust_sqlite_wasm_shim_malloc: (a: number) => number;
334
347
  export const rust_sqlite_wasm_shim_free: (a: number) => void;
335
348
  export const rust_sqlite_wasm_shim_realloc: (a: number, b: number) => number;
349
+ export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
350
+ export const intounderlyingbytesource_type: (a: number) => number;
351
+ export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
352
+ export const intounderlyingbytesource_start: (a: number, b: any) => void;
353
+ export const intounderlyingbytesource_pull: (a: number, b: any) => any;
354
+ export const intounderlyingbytesource_cancel: (a: number) => void;
336
355
  export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
337
356
  export const intounderlyingsource_pull: (a: number, b: any) => any;
338
357
  export const intounderlyingsource_cancel: (a: number) => void;
@@ -340,12 +359,6 @@ export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
340
359
  export const intounderlyingsink_write: (a: number, b: any) => any;
341
360
  export const intounderlyingsink_close: (a: number) => any;
342
361
  export const intounderlyingsink_abort: (a: number, b: any) => any;
343
- export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
344
- export const intounderlyingbytesource_type: (a: number) => number;
345
- export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
346
- export const intounderlyingbytesource_start: (a: number, b: any) => void;
347
- export const intounderlyingbytesource_pull: (a: number, b: any) => any;
348
- export const intounderlyingbytesource_cancel: (a: number) => void;
349
362
  export const __wbindgen_malloc: (a: number, b: number) => number;
350
363
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
351
364
  export const __wbindgen_exn_store: (a: number) => void;
@@ -355,8 +368,8 @@ export const __wbindgen_free: (a: number, b: number, c: number) => void;
355
368
  export const __externref_drop_slice: (a: number, b: number) => void;
356
369
  export const __wbindgen_export_7: WebAssembly.Table;
357
370
  export const __externref_table_dealloc: (a: number) => void;
358
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd11fcf7148e8db56: (a: number, b: number) => void;
359
- export const closure3812_externref_shim: (a: number, b: number, c: any) => void;
360
- export const closure4807_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
361
- export const closure4806_externref_shim: (a: number, b: number, c: any, d: any) => void;
371
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h956eec367a7720a2: (a: number, b: number) => void;
372
+ export const closure3889_externref_shim: (a: number, b: number, c: any) => void;
373
+ export const closure4898_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
374
+ export const closure4892_externref_shim: (a: number, b: number, c: any, d: any) => void;
362
375
  export const __wbindgen_start: () => void;
@@ -0,0 +1,5 @@
1
+ {
2
+ "branch": "main",
3
+ "version": "125e5bf",
4
+ "date": "2025-04-03 18:21:44 +0000"
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmtp/wasm-bindings",
3
- "version": "1.1.3",
3
+ "version": "1.2.0-dev.125e5bf",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "WASM bindings for the libXMTP rust library",
@@ -32,6 +32,7 @@
32
32
  "check:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang cargo check --target wasm32-unknown-unknown",
33
33
  "clean": "rm -rf ./dist",
34
34
  "clean:release": "rm ./dist/.gitignore",
35
+ "generate:version": "tsx scripts/version.ts",
35
36
  "lint": "yarn lint:clippy && yarn lint:fmt",
36
37
  "lint:macos": "yarn lint:clippy:macos && yarn lint:fmt",
37
38
  "lint:clippy": "cargo clippy --locked --all-features --target wasm32-unknown-unknown --no-deps -- -D warnings",
@@ -61,8 +62,10 @@
61
62
  },
62
63
  "devDependencies": {
63
64
  "@sqlite.org/sqlite-wasm": "^3.47.0-build1",
64
- "binaryen": "^122.0.0",
65
- "wasm-pack": "^0.13.1"
65
+ "binaryen": "^123.0.0",
66
+ "tsx": "^4.19.3",
67
+ "wasm-pack": "^0.13.1",
68
+ "zx": "^8.4.0"
66
69
  },
67
70
  "packageManager": "yarn@4.5.1"
68
71
  }