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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function createClient(host: string, inbox_id: string, account_identifier: Identifier, db_path?: string | null, encryption_key?: Uint8Array | null, history_sync_url?: string | null, log_options?: LogOptions | null): Promise<Client>;
4
- export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
5
3
  export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
6
4
  export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
7
5
  export function encodeReaction(reaction: Reaction): Uint8Array;
8
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
9
  export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
10
10
  export function generateInboxId(accountIdentifier: Identifier): string;
11
11
  export enum ConsentEntityType {
@@ -53,10 +53,6 @@ export enum GroupPermissionsOptions {
53
53
  AdminOnly = 1,
54
54
  CustomPolicy = 2,
55
55
  }
56
- export enum IdentifierKind {
57
- Ethereum = 0,
58
- Passkey = 1,
59
- }
60
56
  export enum MetadataField {
61
57
  GroupName = 0,
62
58
  Description = 1,
@@ -112,30 +108,18 @@ type LogLevel = "off" | "error" | "warn" | "info" | "debug" | "trace";
112
108
  * *This API requires the following crate features to be activated: `ReadableStreamType`*
113
109
  */
114
110
  type ReadableStreamType = "bytes";
111
+ export interface Identifier {
112
+ identifier: string;
113
+ identifierKind: IdentifierKind;
114
+ }
115
+
116
+ export type IdentifierKind = "Ethereum" | "Passkey";
117
+
115
118
  export type UserPreference = { type: "Consent"; consent: Consent } | { type: "HmacKeyUpdate"; key: number[] };
116
119
 
117
120
  export class Client {
118
121
  private constructor();
119
122
  free(): void;
120
- /**
121
- *
122
- * * Get the client's inbox state.
123
- * *
124
- * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
125
- * * Otherwise, the state will be read from the local database.
126
- *
127
- */
128
- inboxState(refresh_from_network: boolean): Promise<InboxState>;
129
- getLatestInboxState(inbox_id: string): Promise<InboxState>;
130
- /**
131
- * Output booleans should be zipped with the index of input identifiers
132
- */
133
- canMessage(account_identifiers: Identifier[]): Promise<any>;
134
- registerIdentity(): Promise<void>;
135
- sendHistorySyncRequest(): Promise<void>;
136
- sendConsentSyncRequest(): Promise<void>;
137
- findInboxIdByIdentifier(identifier: Identifier): Promise<string | undefined>;
138
- conversations(): Conversations;
139
123
  createInboxSignatureText(): string | undefined;
140
124
  addWalletSignatureText(new_identifier: Identifier): Promise<string>;
141
125
  revokeWalletSignatureText(identifier: Identifier): Promise<string>;
@@ -147,6 +131,25 @@ export class Client {
147
131
  applySignatureRequests(): Promise<void>;
148
132
  signWithInstallationKey(signature_text: string): Uint8Array;
149
133
  verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
134
+ /**
135
+ * Output booleans should be zipped with the index of input identifiers
136
+ */
137
+ canMessage(account_identifiers: Identifier[]): Promise<any>;
138
+ registerIdentity(): Promise<void>;
139
+ sendHistorySyncRequest(): Promise<void>;
140
+ sendConsentSyncRequest(): Promise<void>;
141
+ findInboxIdByIdentifier(identifier: Identifier): Promise<string | undefined>;
142
+ conversations(): Conversations;
143
+ /**
144
+ *
145
+ * * Get the client's inbox state.
146
+ * *
147
+ * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
148
+ * * Otherwise, the state will be read from the local database.
149
+ *
150
+ */
151
+ inboxState(refresh_from_network: boolean): Promise<InboxState>;
152
+ getLatestInboxState(inbox_id: string): Promise<InboxState>;
150
153
  setConsentStates(records: Consent[]): Promise<void>;
151
154
  getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
152
155
  readonly accountIdentifier: Identifier;
@@ -313,12 +316,6 @@ export class HmacKey {
313
316
  key: Uint8Array;
314
317
  epoch: bigint;
315
318
  }
316
- export class Identifier {
317
- free(): void;
318
- constructor(identifier: string, identifierKind: IdentifierKind);
319
- identifier: string;
320
- identifierKind: IdentifierKind;
321
- }
322
319
  export class InboxState {
323
320
  free(): void;
324
321
  constructor(inbox_id: string, recovery_identifier: Identifier, installations: Installation[], account_identifiers: Identifier[]);
@@ -501,189 +498,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
501
498
 
502
499
  export interface InitOutput {
503
500
  readonly memory: WebAssembly.Memory;
504
- readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
505
- readonly __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
506
- readonly __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
507
- readonly __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
508
- readonly __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: bigint) => void;
509
- readonly __wbg_get_listconversationsoptions_includeDuplicateDms: (a: number) => number;
510
- readonly __wbg_set_listconversationsoptions_includeDuplicateDms: (a: number, b: number) => void;
511
- readonly __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
512
- readonly __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
513
- readonly listconversationsoptions_new: (a: number, b: number, c: number, d: bigint, e: number, f: bigint, g: number, h: number, i: bigint) => number;
514
- readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
515
- readonly __wbg_get_messagedisappearingsettings_inNs: (a: number) => bigint;
516
- readonly __wbg_set_messagedisappearingsettings_inNs: (a: number, b: bigint) => void;
517
- readonly messagedisappearingsettings_new: (a: bigint, b: bigint) => number;
518
- readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
519
- readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
520
- readonly __wbg_set_creategroupoptions_permissions: (a: number, b: number) => void;
521
- readonly __wbg_get_creategroupoptions_groupName: (a: number) => [number, number];
522
- readonly __wbg_set_creategroupoptions_groupName: (a: number, b: number, c: number) => void;
523
- readonly __wbg_get_creategroupoptions_groupImageUrlSquare: (a: number) => [number, number];
524
- readonly __wbg_set_creategroupoptions_groupImageUrlSquare: (a: number, b: number, c: number) => void;
525
- readonly __wbg_get_creategroupoptions_groupDescription: (a: number) => [number, number];
526
- readonly __wbg_set_creategroupoptions_groupDescription: (a: number, b: number, c: number) => void;
527
- readonly __wbg_get_creategroupoptions_customPermissionPolicySet: (a: number) => number;
528
- readonly __wbg_set_creategroupoptions_customPermissionPolicySet: (a: number, b: number) => void;
529
- readonly creategroupoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
530
- readonly __wbg_createdmoptions_free: (a: number, b: number) => void;
531
- readonly __wbg_get_createdmoptions_messageDisappearingSettings: (a: number) => number;
532
- readonly __wbg_set_createdmoptions_messageDisappearingSettings: (a: number, b: number) => void;
533
- readonly createdmoptions_new: (a: number) => number;
534
- readonly __wbg_hmackey_free: (a: number, b: number) => void;
535
- readonly __wbg_get_hmackey_key: (a: number) => [number, number];
536
- readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
537
- readonly __wbg_get_hmackey_epoch: (a: number) => bigint;
538
- readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
539
- readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
540
- readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
541
- readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
542
- readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => number;
543
- readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
544
- readonly conversationlistitem_new: (a: number, b: number) => number;
545
- readonly __wbg_conversations_free: (a: number, b: number) => void;
546
- readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
547
- readonly conversations_createGroupByInboxIds: (a: number, b: number, c: number, d: number) => any;
548
- readonly conversations_createDm: (a: number, b: number, c: number) => any;
549
- readonly conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
550
- readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
551
- readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
552
- readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
553
- readonly conversations_sync: (a: number) => any;
554
- readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
555
- readonly conversations_list: (a: number, b: number) => [number, number, number];
556
- readonly conversations_listGroups: (a: number, b: number) => [number, number, number];
557
- readonly conversations_listDms: (a: number, b: number) => [number, number, number];
558
- readonly conversations_getHmacKeys: (a: number) => [number, number, number];
559
- readonly conversations_stream: (a: number, b: any, c: number) => [number, number, number];
560
- readonly conversations_streamGroups: (a: number, b: any) => [number, number, number];
561
- readonly conversations_streamDms: (a: number, b: any) => [number, number, number];
562
- readonly conversations_streamAllMessages: (a: number, b: any, c: number) => [number, number, number];
563
- readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
564
- readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
565
- readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
566
- readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
567
- readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
568
- readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
569
- readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
570
- readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
571
- readonly __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
572
- readonly __wbg_get_contenttypeid_versionMinor: (a: number) => number;
573
- readonly __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
574
- readonly contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
575
- readonly __wbg_encodedcontent_free: (a: number, b: number) => void;
576
- readonly __wbg_get_encodedcontent_type: (a: number) => number;
577
- readonly __wbg_set_encodedcontent_type: (a: number, b: number) => void;
578
- readonly __wbg_get_encodedcontent_parameters: (a: number) => any;
579
- readonly __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
580
- readonly __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
581
- readonly __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
582
- readonly __wbg_get_encodedcontent_compression: (a: number) => number;
583
- readonly __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
584
- readonly __wbg_get_encodedcontent_content: (a: number) => any;
585
- readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
586
- readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
587
- readonly __wbg_installation_free: (a: number, b: number) => void;
588
- readonly __wbg_get_installation_bytes: (a: number) => any;
589
- readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
590
- readonly __wbg_get_installation_id: (a: number) => [number, number];
591
- readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
592
- readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
593
- readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
594
- readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
595
- readonly __wbg_inboxstate_free: (a: number, b: number) => void;
596
- readonly __wbg_get_inboxstate_recoveryIdentifier: (a: number) => number;
597
- readonly __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: number) => void;
598
- readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
599
- readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
600
- readonly __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
601
- readonly __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
602
- readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
603
- readonly client_inboxState: (a: number, b: number) => any;
604
- readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
605
- readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
606
- readonly __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
607
- readonly __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
608
- readonly __wbg_get_listmessagesoptions_deliveryStatus: (a: number) => number;
609
- readonly __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
610
- readonly __wbg_get_listmessagesoptions_direction: (a: number) => number;
611
- readonly __wbg_set_listmessagesoptions_direction: (a: number, b: number) => void;
612
- readonly listmessagesoptions_new: (a: number, b: bigint, c: number, d: bigint, e: number, f: bigint, g: number, h: number, i: number, j: number) => number;
613
- readonly __wbg_message_free: (a: number, b: number) => void;
614
- readonly __wbg_get_message_id: (a: number) => [number, number];
615
- readonly __wbg_set_message_id: (a: number, b: number, c: number) => void;
616
- readonly __wbg_get_message_convoId: (a: number) => [number, number];
617
- readonly __wbg_set_message_convoId: (a: number, b: number, c: number) => void;
618
- readonly __wbg_get_message_senderInboxId: (a: number) => [number, number];
619
- readonly __wbg_set_message_senderInboxId: (a: number, b: number, c: number) => void;
620
- readonly __wbg_get_message_content: (a: number) => number;
621
- readonly __wbg_set_message_content: (a: number, b: number) => void;
622
- readonly __wbg_get_message_kind: (a: number) => number;
623
- readonly __wbg_set_message_kind: (a: number, b: number) => void;
624
- readonly __wbg_get_message_deliveryStatus: (a: number) => number;
625
- readonly __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
626
- readonly message_new: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
627
- readonly __wbg_messagewithreactions_free: (a: number, b: number) => void;
628
- readonly __wbg_get_messagewithreactions_message: (a: number) => number;
629
- readonly __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
630
- readonly __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
631
- readonly __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
632
- readonly __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
633
- readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
634
- readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
635
- readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
636
- readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
637
- readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
638
- readonly __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
639
- readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
640
- readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
641
- readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
642
- readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
643
- readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
644
- readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
645
- readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
646
- readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
647
- readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
648
- readonly __wbg_streamcloser_free: (a: number, b: number) => void;
649
- readonly streamcloser_end: (a: number) => void;
650
- readonly streamcloser_endAndWait: (a: number) => any;
651
- readonly streamcloser_waitForReady: (a: number) => any;
652
- readonly streamcloser_isClosed: (a: number) => number;
653
- readonly __wbg_client_free: (a: number, b: number) => void;
654
- readonly __wbg_logoptions_free: (a: number, b: number) => void;
655
- readonly __wbg_get_logoptions_structured: (a: number) => number;
656
- readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
657
- readonly __wbg_get_logoptions_performance: (a: number) => number;
658
- readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
659
- readonly __wbg_get_logoptions_level: (a: number) => number;
660
- readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
661
- readonly logoptions_new: (a: number, b: number, c: number) => number;
662
- readonly createClient: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => any;
663
- readonly client_accountIdentifier: (a: number) => number;
664
- readonly client_inboxId: (a: number) => [number, number];
665
- readonly client_isRegistered: (a: number) => number;
666
- readonly client_installationId: (a: number) => [number, number];
667
- readonly client_installationIdBytes: (a: number) => any;
668
- readonly client_canMessage: (a: number, b: number, c: number) => any;
669
- readonly client_registerIdentity: (a: number) => any;
670
- readonly client_sendHistorySyncRequest: (a: number) => any;
671
- readonly client_sendConsentSyncRequest: (a: number) => any;
672
- readonly client_findInboxIdByIdentifier: (a: number, b: number) => any;
673
- readonly client_conversations: (a: number) => number;
674
- readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
675
- readonly __wbg_passkeysignature_free: (a: number, b: number) => void;
676
- readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
677
- readonly client_addWalletSignatureText: (a: number, b: number) => any;
678
- readonly client_revokeWalletSignatureText: (a: number, b: number) => any;
679
- readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
680
- readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
681
- readonly client_addEcdsaSignature: (a: number, b: number, c: any) => any;
682
- readonly client_addPasskeySignature: (a: number, b: number, c: number) => any;
683
- readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
684
- readonly client_applySignatureRequests: (a: number) => any;
685
- readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
686
- readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
687
501
  readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
688
502
  readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
689
503
  readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
@@ -776,10 +590,64 @@ export interface InitOutput {
776
590
  readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
777
591
  readonly conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
778
592
  readonly conversation_getHmacKeys: (a: number) => [number, number, number];
779
- readonly getInboxIdForIdentifier: (a: number, b: number, c: number) => any;
780
- readonly generateInboxId: (a: number) => [number, number, number, number];
593
+ readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
594
+ readonly __wbg_passkeysignature_free: (a: number, b: number) => void;
595
+ readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
596
+ readonly client_addWalletSignatureText: (a: number, b: any) => any;
597
+ readonly client_revokeWalletSignatureText: (a: number, b: any) => any;
598
+ readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
599
+ readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
600
+ readonly client_addEcdsaSignature: (a: number, b: number, c: any) => any;
601
+ readonly client_addPasskeySignature: (a: number, b: number, c: number) => any;
602
+ readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
603
+ readonly client_applySignatureRequests: (a: number) => any;
604
+ readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
605
+ readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
781
606
  readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
782
607
  readonly __wbg_get_reaction_reference: (a: number) => [number, number];
608
+ readonly __wbg_client_free: (a: number, b: number) => void;
609
+ readonly __wbg_logoptions_free: (a: number, b: number) => void;
610
+ readonly __wbg_get_logoptions_structured: (a: number) => number;
611
+ readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
612
+ readonly __wbg_get_logoptions_performance: (a: number) => number;
613
+ readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
614
+ readonly __wbg_get_logoptions_level: (a: number) => number;
615
+ readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
616
+ readonly logoptions_new: (a: number, b: number, c: number) => number;
617
+ readonly createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number) => any;
618
+ readonly client_accountIdentifier: (a: number) => any;
619
+ readonly client_inboxId: (a: number) => [number, number];
620
+ readonly client_isRegistered: (a: number) => number;
621
+ readonly client_installationId: (a: number) => [number, number];
622
+ readonly client_installationIdBytes: (a: number) => any;
623
+ readonly client_canMessage: (a: number, b: number, c: number) => any;
624
+ readonly client_registerIdentity: (a: number) => any;
625
+ readonly client_sendHistorySyncRequest: (a: number) => any;
626
+ readonly client_sendConsentSyncRequest: (a: number) => any;
627
+ readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
628
+ readonly client_conversations: (a: number) => number;
629
+ readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
630
+ readonly generateInboxId: (a: any) => [number, number, number, number];
631
+ readonly __wbg_installation_free: (a: number, b: number) => void;
632
+ readonly __wbg_get_installation_bytes: (a: number) => any;
633
+ readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
634
+ readonly __wbg_get_installation_id: (a: number) => [number, number];
635
+ readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
636
+ readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
637
+ readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
638
+ readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
639
+ readonly __wbg_inboxstate_free: (a: number, b: number) => void;
640
+ readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
641
+ readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
642
+ readonly __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
643
+ readonly __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
644
+ readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
645
+ readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
646
+ readonly __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
647
+ readonly __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
648
+ readonly inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
649
+ readonly client_inboxState: (a: number, b: number) => any;
650
+ readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
783
651
  readonly __wbg_consent_free: (a: number, b: number) => void;
784
652
  readonly __wbg_get_consent_entityType: (a: number) => number;
785
653
  readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
@@ -792,10 +660,6 @@ export interface InitOutput {
792
660
  readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
793
661
  readonly conversation_consentState: (a: number) => [number, number, number];
794
662
  readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
795
- readonly __wbg_identifier_free: (a: number, b: number) => void;
796
- readonly __wbg_get_identifier_identifierKind: (a: number) => number;
797
- readonly __wbg_set_identifier_identifierKind: (a: number, b: number) => void;
798
- readonly identifier_new: (a: number, b: number, c: number) => number;
799
663
  readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
800
664
  readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
801
665
  readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
@@ -817,8 +681,135 @@ export interface InitOutput {
817
681
  readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
818
682
  readonly grouppermissions_policyType: (a: number) => [number, number, number];
819
683
  readonly grouppermissions_policySet: (a: number) => [number, number, number];
820
- readonly __wbg_set_identifier_identifier: (a: number, b: number, c: number) => void;
821
- readonly __wbg_get_identifier_identifier: (a: number) => [number, number];
684
+ readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
685
+ readonly __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
686
+ readonly __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
687
+ readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
688
+ readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
689
+ readonly __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
690
+ readonly __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: bigint) => void;
691
+ readonly __wbg_get_listconversationsoptions_includeDuplicateDms: (a: number) => number;
692
+ readonly __wbg_set_listconversationsoptions_includeDuplicateDms: (a: number, b: number) => void;
693
+ readonly __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
694
+ readonly __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
695
+ readonly listconversationsoptions_new: (a: number, b: number, c: number, d: bigint, e: number, f: bigint, g: number, h: number, i: bigint) => number;
696
+ readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
697
+ readonly __wbg_get_messagedisappearingsettings_inNs: (a: number) => bigint;
698
+ readonly __wbg_set_messagedisappearingsettings_inNs: (a: number, b: bigint) => void;
699
+ readonly messagedisappearingsettings_new: (a: bigint, b: bigint) => number;
700
+ readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
701
+ readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
702
+ readonly __wbg_set_creategroupoptions_permissions: (a: number, b: number) => void;
703
+ readonly __wbg_get_creategroupoptions_groupName: (a: number) => [number, number];
704
+ readonly __wbg_set_creategroupoptions_groupName: (a: number, b: number, c: number) => void;
705
+ readonly __wbg_get_creategroupoptions_groupImageUrlSquare: (a: number) => [number, number];
706
+ readonly __wbg_set_creategroupoptions_groupImageUrlSquare: (a: number, b: number, c: number) => void;
707
+ readonly __wbg_get_creategroupoptions_groupDescription: (a: number) => [number, number];
708
+ readonly __wbg_set_creategroupoptions_groupDescription: (a: number, b: number, c: number) => void;
709
+ readonly __wbg_get_creategroupoptions_customPermissionPolicySet: (a: number) => number;
710
+ readonly __wbg_set_creategroupoptions_customPermissionPolicySet: (a: number, b: number) => void;
711
+ readonly creategroupoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
712
+ readonly __wbg_createdmoptions_free: (a: number, b: number) => void;
713
+ readonly __wbg_get_createdmoptions_messageDisappearingSettings: (a: number) => number;
714
+ readonly __wbg_set_createdmoptions_messageDisappearingSettings: (a: number, b: number) => void;
715
+ readonly createdmoptions_new: (a: number) => number;
716
+ readonly __wbg_hmackey_free: (a: number, b: number) => void;
717
+ readonly __wbg_get_hmackey_key: (a: number) => [number, number];
718
+ readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
719
+ readonly __wbg_get_hmackey_epoch: (a: number) => bigint;
720
+ readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
721
+ readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
722
+ readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
723
+ readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
724
+ readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => number;
725
+ readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
726
+ readonly conversationlistitem_new: (a: number, b: number) => number;
727
+ readonly __wbg_conversations_free: (a: number, b: number) => void;
728
+ readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
729
+ readonly conversations_createGroupByInboxIds: (a: number, b: number, c: number, d: number) => any;
730
+ readonly conversations_createDm: (a: number, b: any, c: number) => any;
731
+ readonly conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
732
+ readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
733
+ readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
734
+ readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
735
+ readonly conversations_sync: (a: number) => any;
736
+ readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
737
+ readonly conversations_list: (a: number, b: number) => [number, number, number];
738
+ readonly conversations_listGroups: (a: number, b: number) => [number, number, number];
739
+ readonly conversations_listDms: (a: number, b: number) => [number, number, number];
740
+ readonly conversations_getHmacKeys: (a: number) => [number, number, number];
741
+ readonly conversations_stream: (a: number, b: any, c: number) => [number, number, number];
742
+ readonly conversations_streamGroups: (a: number, b: any) => [number, number, number];
743
+ readonly conversations_streamDms: (a: number, b: any) => [number, number, number];
744
+ readonly conversations_streamAllMessages: (a: number, b: any, c: number) => [number, number, number];
745
+ readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
746
+ readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
747
+ readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
748
+ readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
749
+ readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
750
+ readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
751
+ readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
752
+ readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
753
+ readonly __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
754
+ readonly __wbg_get_contenttypeid_versionMinor: (a: number) => number;
755
+ readonly __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
756
+ readonly contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
757
+ readonly __wbg_encodedcontent_free: (a: number, b: number) => void;
758
+ readonly __wbg_get_encodedcontent_type: (a: number) => number;
759
+ readonly __wbg_set_encodedcontent_type: (a: number, b: number) => void;
760
+ readonly __wbg_get_encodedcontent_parameters: (a: number) => any;
761
+ readonly __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
762
+ readonly __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
763
+ readonly __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
764
+ readonly __wbg_get_encodedcontent_compression: (a: number) => number;
765
+ readonly __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
766
+ readonly __wbg_get_encodedcontent_content: (a: number) => any;
767
+ readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
768
+ readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
769
+ readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
770
+ readonly __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
771
+ readonly __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
772
+ readonly __wbg_get_listmessagesoptions_deliveryStatus: (a: number) => number;
773
+ readonly __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
774
+ readonly __wbg_get_listmessagesoptions_direction: (a: number) => number;
775
+ readonly __wbg_set_listmessagesoptions_direction: (a: number, b: number) => void;
776
+ readonly listmessagesoptions_new: (a: number, b: bigint, c: number, d: bigint, e: number, f: bigint, g: number, h: number, i: number, j: number) => number;
777
+ readonly __wbg_message_free: (a: number, b: number) => void;
778
+ readonly __wbg_get_message_id: (a: number) => [number, number];
779
+ readonly __wbg_set_message_id: (a: number, b: number, c: number) => void;
780
+ readonly __wbg_get_message_convoId: (a: number) => [number, number];
781
+ readonly __wbg_set_message_convoId: (a: number, b: number, c: number) => void;
782
+ readonly __wbg_get_message_senderInboxId: (a: number) => [number, number];
783
+ readonly __wbg_set_message_senderInboxId: (a: number, b: number, c: number) => void;
784
+ readonly __wbg_get_message_content: (a: number) => number;
785
+ readonly __wbg_set_message_content: (a: number, b: number) => void;
786
+ readonly __wbg_get_message_kind: (a: number) => number;
787
+ readonly __wbg_set_message_kind: (a: number, b: number) => void;
788
+ readonly __wbg_get_message_deliveryStatus: (a: number) => number;
789
+ readonly __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
790
+ readonly message_new: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
791
+ readonly __wbg_messagewithreactions_free: (a: number, b: number) => void;
792
+ readonly __wbg_get_messagewithreactions_message: (a: number) => number;
793
+ readonly __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
794
+ readonly __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
795
+ readonly __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
796
+ readonly __wbg_streamcloser_free: (a: number, b: number) => void;
797
+ readonly streamcloser_end: (a: number) => void;
798
+ readonly streamcloser_endAndWait: (a: number) => any;
799
+ readonly streamcloser_waitForReady: (a: number) => any;
800
+ readonly streamcloser_isClosed: (a: number) => number;
801
+ readonly __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
802
+ readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
803
+ readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
804
+ readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
805
+ readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
806
+ readonly __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
807
+ readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
808
+ readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
809
+ readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
810
+ readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
811
+ readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
812
+ readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
822
813
  readonly rust_sqlite_wasm_shim_localtime_js: (a: bigint, b: number) => void;
823
814
  readonly rust_sqlite_wasm_shim_tzset_js: (a: number, b: number, c: number, d: number) => void;
824
815
  readonly rust_sqlite_wasm_shim_emscripten_get_now: () => number;
@@ -849,9 +840,9 @@ export interface InitOutput {
849
840
  readonly __wbindgen_export_7: WebAssembly.Table;
850
841
  readonly __externref_table_dealloc: (a: number) => void;
851
842
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hff1927556d6713ec: (a: number, b: number) => void;
852
- readonly closure3754_externref_shim: (a: number, b: number, c: any) => void;
853
- readonly closure4763_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
854
- readonly closure4762_externref_shim: (a: number, b: number, c: any, d: any) => void;
843
+ readonly closure3753_externref_shim: (a: number, b: number, c: any) => void;
844
+ readonly closure4762_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
845
+ readonly closure4761_externref_shim: (a: number, b: number, c: any, d: any) => void;
855
846
  readonly __wbindgen_start: () => void;
856
847
  }
857
848