@xmtp/wasm-bindings 1.1.3 → 1.2.0-dev.878fd38

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.
@@ -2,12 +2,12 @@
2
2
  /* eslint-disable */
3
3
  export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
4
4
  export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
5
- export function encodeReaction(reaction: Reaction): Uint8Array;
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>;
9
5
  export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
10
6
  export function generateInboxId(accountIdentifier: Identifier): string;
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
+ export function encodeReaction(reaction: Reaction): Uint8Array;
10
+ export function decodeReaction(bytes: Uint8Array): Reaction;
11
11
  export enum ConsentEntityType {
12
12
  GroupId = 0,
13
13
  InboxId = 1,
@@ -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
  */
@@ -542,8 +567,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
542
567
  export interface InitOutput {
543
568
  readonly memory: WebAssembly.Memory;
544
569
  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
570
  readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
548
571
  readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
549
572
  readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
@@ -565,169 +588,6 @@ export interface InitOutput {
565
588
  readonly multiremoteattachment_new: (a: number, b: number) => number;
566
589
  readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
567
590
  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];
580
- readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
581
- readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
582
- readonly groupmetadata_conversationType: (a: number) => [number, number];
583
- 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
- readonly __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
587
- readonly __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
588
- readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
589
- readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
590
- readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
591
- readonly __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
592
- readonly __wbg_get_groupmember_consentState: (a: number) => number;
593
- readonly __wbg_set_groupmember_consentState: (a: number, b: number) => void;
594
- readonly groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
595
- readonly __wbg_conversation_free: (a: number, b: number) => void;
596
- readonly conversation_id: (a: number) => [number, number];
597
- readonly conversation_send: (a: number, b: number) => any;
598
- readonly conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
599
- readonly conversation_publishMessages: (a: number) => any;
600
- readonly conversation_sync: (a: number) => any;
601
- readonly conversation_findMessages: (a: number, b: number) => any;
602
- readonly conversation_findMessagesWithReactions: (a: number, b: number) => any;
603
- readonly conversation_listMembers: (a: number) => any;
604
- readonly conversation_adminList: (a: number) => [number, number, number, number];
605
- readonly conversation_superAdminList: (a: number) => [number, number, number, number];
606
- readonly conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
607
- readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
608
- readonly conversation_addMembers: (a: number, b: number, c: number) => any;
609
- readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
610
- readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
611
- readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
612
- readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
613
- readonly conversation_groupPermissions: (a: number) => [number, number, number];
614
- readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
615
- readonly conversation_removeMembers: (a: number, b: number, c: number) => any;
616
- readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
617
- readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
618
- readonly conversation_groupName: (a: number) => [number, number, number, number];
619
- readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
620
- readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
621
- readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
622
- readonly conversation_groupDescription: (a: number) => [number, number, number, number];
623
- readonly conversation_stream: (a: number, b: any) => [number, number, number];
624
- readonly conversation_createdAtNs: (a: number) => bigint;
625
- readonly conversation_isActive: (a: number) => [number, number, number];
626
- readonly conversation_pausedForVersion: (a: number) => [number, number, number, number];
627
- readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
628
- readonly conversation_groupMetadata: (a: number) => any;
629
- readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
630
- readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
631
- readonly conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
632
- readonly conversation_removeMessageDisappearingSettings: (a: number) => any;
633
- readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
634
- readonly conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
635
- readonly conversation_getHmacKeys: (a: number) => [number, number, number];
636
- readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
637
- readonly __wbg_passkeysignature_free: (a: number, b: number) => void;
638
- readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
639
- readonly client_addWalletSignatureText: (a: number, b: any) => any;
640
- readonly client_revokeWalletSignatureText: (a: number, b: any) => any;
641
- readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
642
- readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
643
- readonly client_addEcdsaSignature: (a: number, b: number, c: any) => any;
644
- readonly client_addPasskeySignature: (a: number, b: number, c: number) => any;
645
- readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
646
- readonly client_applySignatureRequests: (a: number) => any;
647
- readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
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];
651
- readonly __wbg_streamcloser_free: (a: number, b: number) => void;
652
- readonly streamcloser_end: (a: number) => void;
653
- readonly streamcloser_endAndWait: (a: number) => any;
654
- readonly streamcloser_waitForReady: (a: number) => any;
655
- readonly streamcloser_isClosed: (a: number) => number;
656
- readonly __wbg_client_free: (a: number, b: number) => void;
657
- readonly __wbg_logoptions_free: (a: number, b: number) => void;
658
- readonly __wbg_get_logoptions_structured: (a: number) => number;
659
- readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
660
- readonly __wbg_get_logoptions_performance: (a: number) => number;
661
- readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
662
- readonly __wbg_get_logoptions_level: (a: number) => number;
663
- readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
664
- readonly logoptions_new: (a: number, b: number, c: number) => number;
665
- 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;
666
- readonly client_accountIdentifier: (a: number) => any;
667
- readonly client_inboxId: (a: number) => [number, number];
668
- readonly client_isRegistered: (a: number) => number;
669
- readonly client_installationId: (a: number) => [number, number];
670
- readonly client_installationIdBytes: (a: number) => any;
671
- readonly client_canMessage: (a: number, b: number, c: number) => any;
672
- readonly client_registerIdentity: (a: number) => any;
673
- readonly client_sendHistorySyncRequest: (a: number) => any;
674
- readonly client_sendConsentSyncRequest: (a: number) => any;
675
- readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
676
- readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
677
- readonly client_conversations: (a: number) => number;
678
- readonly __wbg_installation_free: (a: number, b: number) => void;
679
- readonly __wbg_get_installation_bytes: (a: number) => any;
680
- readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
681
- readonly __wbg_get_installation_id: (a: number) => [number, number];
682
- readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
683
- readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
684
- readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
685
- readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
686
- readonly __wbg_inboxstate_free: (a: number, b: number) => void;
687
- readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
688
- readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
689
- readonly __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
690
- readonly __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
691
- readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
692
- readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
693
- readonly __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
694
- readonly __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
695
- readonly inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
696
- readonly client_inboxState: (a: number, b: number) => any;
697
- readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
698
- readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
699
- readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
700
- readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
701
- readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
702
- readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
703
- readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
704
- readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
705
- readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
706
- readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
707
- readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
708
- readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
709
- readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
710
- readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
711
- readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
712
- readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
713
- readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
714
- readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
715
- readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
716
- readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
717
- readonly grouppermissions_policyType: (a: number) => [number, number, number];
718
- 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
591
  readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
732
592
  readonly __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
733
593
  readonly __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
@@ -792,6 +652,8 @@ export interface InitOutput {
792
652
  readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
793
653
  readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
794
654
  readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
655
+ readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
656
+ readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
795
657
  readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
796
658
  readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
797
659
  readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
@@ -811,8 +673,6 @@ export interface InitOutput {
811
673
  readonly __wbg_get_encodedcontent_content: (a: number) => any;
812
674
  readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
813
675
  readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
814
- readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
815
- readonly generateInboxId: (a: any) => [number, number, number, number];
816
676
  readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
817
677
  readonly __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
818
678
  readonly __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
@@ -841,6 +701,7 @@ export interface InitOutput {
841
701
  readonly __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
842
702
  readonly __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
843
703
  readonly __wbg_opfs_free: (a: number, b: number) => void;
704
+ readonly opfs_init_sqlite_opfs: () => any;
844
705
  readonly opfs_exists: () => number;
845
706
  readonly opfs_error: () => [number, number];
846
707
  readonly opfs_wipeFiles: () => any;
@@ -852,11 +713,17 @@ export interface InitOutput {
852
713
  readonly opfs_getCapacity: () => number;
853
714
  readonly opfs_addCapacity: (a: number) => any;
854
715
  readonly opfs_reduceCapacity: (a: number) => any;
716
+ readonly __wbg_streamcloser_free: (a: number, b: number) => void;
717
+ readonly streamcloser_end: (a: number) => void;
718
+ readonly streamcloser_endAndWait: (a: number) => any;
719
+ readonly streamcloser_waitForReady: (a: number) => any;
720
+ readonly streamcloser_isClosed: (a: number) => number;
855
721
  readonly __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
856
722
  readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
857
723
  readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
858
724
  readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
859
725
  readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
726
+ readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
860
727
  readonly __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
861
728
  readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
862
729
  readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
@@ -864,15 +731,192 @@ export interface InitOutput {
864
731
  readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
865
732
  readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
866
733
  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];
734
+ readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
735
+ readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
736
+ readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
737
+ readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
738
+ readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
739
+ readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
740
+ readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
741
+ readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
742
+ readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
743
+ readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
744
+ readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
745
+ readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
746
+ readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
747
+ readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
748
+ readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
749
+ readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
750
+ readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
751
+ readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
752
+ readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
753
+ readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
754
+ readonly grouppermissions_policyType: (a: number) => [number, number, number];
755
+ readonly grouppermissions_policySet: (a: number) => [number, number, number];
756
+ readonly __wbg_consent_free: (a: number, b: number) => void;
757
+ readonly __wbg_get_consent_entityType: (a: number) => number;
758
+ readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
759
+ readonly __wbg_get_consent_state: (a: number) => number;
760
+ readonly __wbg_set_consent_state: (a: number, b: number) => void;
761
+ readonly __wbg_get_consent_entity: (a: number) => [number, number];
762
+ readonly __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
763
+ readonly consent_new: (a: number, b: number, c: number, d: number) => number;
764
+ readonly client_setConsentStates: (a: number, b: number, c: number) => any;
765
+ readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
766
+ readonly conversation_consentState: (a: number) => [number, number, number];
767
+ readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
768
+ readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
769
+ readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
770
+ readonly groupmetadata_conversationType: (a: number) => [number, number];
771
+ readonly __wbg_groupmember_free: (a: number, b: number) => void;
772
+ readonly __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
773
+ readonly __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
774
+ readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
775
+ readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
776
+ readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
777
+ readonly __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
778
+ readonly __wbg_get_groupmember_consentState: (a: number) => number;
779
+ readonly __wbg_set_groupmember_consentState: (a: number, b: number) => void;
780
+ readonly groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
781
+ readonly __wbg_conversation_free: (a: number, b: number) => void;
782
+ readonly conversation_id: (a: number) => [number, number];
783
+ readonly conversation_send: (a: number, b: number) => any;
784
+ readonly conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
785
+ readonly conversation_publishMessages: (a: number) => any;
786
+ readonly conversation_sync: (a: number) => any;
787
+ readonly conversation_findMessages: (a: number, b: number) => any;
788
+ readonly conversation_findMessagesWithReactions: (a: number, b: number) => any;
789
+ readonly conversation_listMembers: (a: number) => any;
790
+ readonly conversation_adminList: (a: number) => [number, number, number, number];
791
+ readonly conversation_superAdminList: (a: number) => [number, number, number, number];
792
+ readonly conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
793
+ readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
794
+ readonly conversation_addMembers: (a: number, b: number, c: number) => any;
795
+ readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
796
+ readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
797
+ readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
798
+ readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
799
+ readonly conversation_groupPermissions: (a: number) => [number, number, number];
800
+ readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
801
+ readonly conversation_removeMembers: (a: number, b: number, c: number) => any;
802
+ readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
803
+ readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
804
+ readonly conversation_groupName: (a: number) => [number, number, number, number];
805
+ readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
806
+ readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
807
+ readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
808
+ readonly conversation_groupDescription: (a: number) => [number, number, number, number];
809
+ readonly conversation_stream: (a: number, b: any) => [number, number, number];
810
+ readonly conversation_createdAtNs: (a: number) => bigint;
811
+ readonly conversation_isActive: (a: number) => [number, number, number];
812
+ readonly conversation_pausedForVersion: (a: number) => [number, number, number, number];
813
+ readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
814
+ readonly conversation_groupMetadata: (a: number) => any;
815
+ readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
816
+ readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
817
+ readonly conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
818
+ readonly conversation_removeMessageDisappearingSettings: (a: number) => any;
819
+ readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
820
+ readonly conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
821
+ readonly conversation_getHmacKeys: (a: number) => [number, number, number];
822
+ readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
823
+ readonly generateInboxId: (a: any) => [number, number, number, number];
824
+ readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
825
+ readonly __wbg_passkeysignature_free: (a: number, b: number) => void;
826
+ readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
827
+ readonly client_addWalletSignatureText: (a: number, b: any) => any;
828
+ readonly client_revokeWalletSignatureText: (a: number, b: any) => any;
829
+ readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
830
+ readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
831
+ readonly client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
832
+ readonly client_addEcdsaSignature: (a: number, b: number, c: any) => any;
833
+ readonly client_addPasskeySignature: (a: number, b: number, c: number) => any;
834
+ readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
835
+ readonly client_applySignatureRequests: (a: number) => any;
836
+ readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
837
+ readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
838
+ readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
839
+ readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
840
+ readonly __wbg_client_free: (a: number, b: number) => void;
841
+ readonly __wbg_logoptions_free: (a: number, b: number) => void;
842
+ readonly __wbg_get_logoptions_structured: (a: number) => number;
843
+ readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
844
+ readonly __wbg_get_logoptions_performance: (a: number) => number;
845
+ readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
846
+ readonly __wbg_get_logoptions_level: (a: number) => number;
847
+ readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
848
+ readonly logoptions_new: (a: number, b: number, c: number) => number;
849
+ 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;
850
+ readonly client_accountIdentifier: (a: number) => any;
851
+ readonly client_inboxId: (a: number) => [number, number];
852
+ readonly client_isRegistered: (a: number) => number;
853
+ readonly client_installationId: (a: number) => [number, number];
854
+ readonly client_installationIdBytes: (a: number) => any;
855
+ readonly client_canMessage: (a: number, b: number, c: number) => any;
856
+ readonly client_registerIdentity: (a: number) => any;
857
+ readonly client_sendHistorySyncRequest: (a: number) => any;
858
+ readonly client_sendConsentSyncRequest: (a: number) => any;
859
+ readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
860
+ readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
861
+ readonly client_conversations: (a: number) => number;
862
+ readonly __wbg_reaction_free: (a: number, b: number) => void;
863
+ readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
864
+ readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
865
+ readonly __wbg_get_reaction_action: (a: number) => number;
866
+ readonly __wbg_set_reaction_action: (a: number, b: number) => void;
867
+ readonly __wbg_get_reaction_content: (a: number) => [number, number];
868
+ readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
869
+ readonly __wbg_get_reaction_schema: (a: number) => number;
870
+ readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
871
+ readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
872
+ readonly encodeReaction: (a: number) => [number, number, number];
873
+ readonly decodeReaction: (a: any) => [number, number, number];
874
+ readonly __wbg_installation_free: (a: number, b: number) => void;
875
+ readonly __wbg_get_installation_bytes: (a: number) => any;
876
+ readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
877
+ readonly __wbg_get_installation_id: (a: number) => [number, number];
878
+ readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
879
+ readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
880
+ readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
881
+ readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
882
+ readonly __wbg_inboxstate_free: (a: number, b: number) => void;
883
+ readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
884
+ readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
885
+ readonly __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
886
+ readonly __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
887
+ readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
888
+ readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
889
+ readonly __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
890
+ readonly __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
891
+ readonly inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
892
+ readonly __wbg_keypackagestatus_free: (a: number, b: number) => void;
893
+ readonly __wbg_get_keypackagestatus_lifetime: (a: number) => number;
894
+ readonly __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
895
+ readonly __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
896
+ readonly __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
897
+ readonly __wbg_lifetime_free: (a: number, b: number) => void;
898
+ readonly __wbg_get_lifetime_not_before: (a: number) => bigint;
899
+ readonly __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
900
+ readonly __wbg_get_lifetime_not_after: (a: number) => bigint;
901
+ readonly __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
902
+ readonly client_inboxState: (a: number, b: number) => any;
903
+ readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
904
+ readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
905
+ readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
906
+ readonly __wbg_get_reaction_reference: (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;
872
- readonly sqlite3_os_init: () => number;
873
910
  readonly rust_sqlite_wasm_shim_malloc: (a: number) => number;
874
911
  readonly rust_sqlite_wasm_shim_free: (a: number) => void;
875
912
  readonly rust_sqlite_wasm_shim_realloc: (a: number, b: number) => number;
913
+ readonly sqlite3_os_init: () => 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,12 @@ 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__h6040dd5f55152215: (a: number, b: number) => void;
937
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9b134efb6b08a208: (a: number, b: number) => void;
938
+ readonly closure3995_externref_shim: (a: number, b: number, c: any) => void;
939
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f45197f24caef5a: (a: number, b: number) => void;
940
+ readonly closure4888_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
941
+ readonly closure4887_externref_shim: (a: number, b: number, c: any, d: any) => void;
902
942
  readonly __wbindgen_start: () => void;
903
943
  }
904
944