@xmtp/wasm-bindings 0.0.20 → 1.0.0-rc1

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.
package/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # WASM bindings for the libXMTP rust library
2
2
 
3
- > [!CAUTION]
4
- > These bindings are currently in alpha and under heavy development. The API is
5
- > subject to change and it is not yet recommended for production use.
3
+ > [!INFO]
4
+ > These bindings are not intended to be used directly, use the associated SDK instead.
6
5
 
7
6
  ## Useful commands
8
7
 
@@ -1,17 +1,16 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function createClient(host: string, inbox_id: string, account_address: string, db_path?: string | null, encryption_key?: Uint8Array | null, history_sync_url?: string | null, log_options?: LogOptions | null): Promise<Client>;
4
- export function getInboxIdForAddress(host: string, account_address: string): Promise<string | undefined>;
5
- export function generateInboxId(account_address: string): string;
6
- export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
7
3
  export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
8
4
  export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
9
5
  export function encodeReaction(reaction: Reaction): Uint8Array;
10
6
  export function decodeReaction(bytes: Uint8Array): Reaction;
7
+ export function getInboxIdForAddress(host: string, account_identifier: Identifier): Promise<string | undefined>;
8
+ export function generateInboxId(account_identifier: Identifier): string;
9
+ export function createClient(host: string, inbox_id: string, account_identifier: Identifier, db_path?: string | null, encryption_key?: Uint8Array | null, history_sync_url?: string | null, log_options?: LogOptions | null): Promise<Client>;
10
+ export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
11
11
  export enum ConsentEntityType {
12
12
  GroupId = 0,
13
13
  InboxId = 1,
14
- Address = 2,
15
14
  }
16
15
  export enum ConsentState {
17
16
  Unknown = 0,
@@ -54,6 +53,10 @@ export enum GroupPermissionsOptions {
54
53
  AdminOnly = 1,
55
54
  CustomPolicy = 2,
56
55
  }
56
+ export enum IdentifierKind {
57
+ Ethereum = 0,
58
+ Passkey = 1,
59
+ }
57
60
  export enum MetadataField {
58
61
  GroupName = 0,
59
62
  Description = 1,
@@ -114,6 +117,8 @@ export type UserPreference = { type: "Consent"; consent: Consent } | { type: "Hm
114
117
  export class Client {
115
118
  private constructor();
116
119
  free(): void;
120
+ setConsentStates(records: Consent[]): Promise<void>;
121
+ getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
117
122
  /**
118
123
  *
119
124
  * * Get the client's inbox state.
@@ -124,25 +129,27 @@ export class Client {
124
129
  */
125
130
  inboxState(refresh_from_network: boolean): Promise<InboxState>;
126
131
  getLatestInboxState(inbox_id: string): Promise<InboxState>;
127
- canMessage(account_addresses: string[]): Promise<any>;
132
+ /**
133
+ * Output booleans should be zipped with the index of input identifiers
134
+ */
135
+ canMessage(account_identifiers: Identifier[]): Promise<any>;
128
136
  registerIdentity(): Promise<void>;
129
137
  sendHistorySyncRequest(): Promise<void>;
130
138
  sendConsentSyncRequest(): Promise<void>;
131
- findInboxIdByAddress(address: string): Promise<string | undefined>;
139
+ findInboxIdByAddress(identifier: Identifier): Promise<string | undefined>;
132
140
  conversations(): Conversations;
133
- setConsentStates(records: Consent[]): Promise<void>;
134
- getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
135
141
  createInboxSignatureText(): string | undefined;
136
- addWalletSignatureText(new_wallet_address: string): Promise<string>;
137
- revokeWalletSignatureText(wallet_address: string): Promise<string>;
142
+ addWalletSignatureText(new_identifier: Identifier): Promise<string>;
143
+ revokeWalletSignatureText(identifier: Identifier): Promise<string>;
138
144
  revokeAllOtherInstallationsSignatureText(): Promise<string>;
139
145
  revokeInstallationsSignatureText(installation_ids: Uint8Array[]): Promise<string>;
140
- addSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
146
+ addEcdsaSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
147
+ addPasskeySignature(signature_type: SignatureRequestType, signature: PasskeySignature): Promise<void>;
141
148
  addScwSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint | null): Promise<void>;
142
149
  applySignatureRequests(): Promise<void>;
143
150
  signWithInstallationKey(signature_text: string): Uint8Array;
144
151
  verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
145
- readonly accountAddress: string;
152
+ readonly accountAddress: Identifier;
146
153
  readonly inboxId: string;
147
154
  readonly isRegistered: boolean;
148
155
  readonly installationId: string;
@@ -166,8 +173,6 @@ export class ContentTypeId {
166
173
  export class Conversation {
167
174
  private constructor();
168
175
  free(): void;
169
- consentState(): ConsentState;
170
- updateConsentState(state: ConsentState): void;
171
176
  id(): string;
172
177
  send(encoded_content: EncodedContent): Promise<string>;
173
178
  /**
@@ -186,14 +191,14 @@ export class Conversation {
186
191
  superAdminList(): string[];
187
192
  isAdmin(inbox_id: string): boolean;
188
193
  isSuperAdmin(inbox_id: string): boolean;
189
- addMembers(account_addresses: string[]): Promise<void>;
194
+ addMembers(account_identifiers: Identifier[]): Promise<void>;
190
195
  addAdmin(inbox_id: string): Promise<void>;
191
196
  removeAdmin(inbox_id: string): Promise<void>;
192
197
  addSuperAdmin(inbox_id: string): Promise<void>;
193
198
  removeSuperAdmin(inbox_id: string): Promise<void>;
194
199
  groupPermissions(): GroupPermissions;
195
200
  addMembersByInboxId(inbox_ids: string[]): Promise<void>;
196
- removeMembers(account_addresses: string[]): Promise<void>;
201
+ removeMembers(account_identifiers: Identifier[]): Promise<void>;
197
202
  removeMembersByInboxId(inbox_ids: string[]): Promise<void>;
198
203
  updateGroupName(group_name: string): Promise<void>;
199
204
  groupName(): string;
@@ -204,6 +209,7 @@ export class Conversation {
204
209
  stream(callback: any): StreamCloser;
205
210
  createdAtNs(): bigint;
206
211
  isActive(): boolean;
212
+ pausedForVersion(): string | undefined;
207
213
  addedByInboxId(): string;
208
214
  groupMetadata(): Promise<GroupMetadata>;
209
215
  dmPeerInboxId(): string;
@@ -213,6 +219,8 @@ export class Conversation {
213
219
  messageDisappearingSettings(): MessageDisappearingSettings | undefined;
214
220
  isMessageDisappearingEnabled(): boolean;
215
221
  getHmacKeys(): any;
222
+ consentState(): ConsentState;
223
+ updateConsentState(state: ConsentState): void;
216
224
  }
217
225
  export class ConversationListItem {
218
226
  free(): void;
@@ -224,9 +232,9 @@ export class ConversationListItem {
224
232
  export class Conversations {
225
233
  private constructor();
226
234
  free(): void;
227
- createGroup(account_addresses: string[], options?: CreateGroupOptions | null): Promise<Conversation>;
235
+ createGroup(account_identifiers: Identifier[], options?: CreateGroupOptions | null): Promise<Conversation>;
228
236
  createGroupByInboxIds(inbox_ids: string[], options?: CreateGroupOptions | null): Promise<Conversation>;
229
- createDm(account_address: string, options?: CreateDMOptions | null): Promise<Conversation>;
237
+ createDm(account_identifier: Identifier, options?: CreateDMOptions | null): Promise<Conversation>;
230
238
  createDmByInboxId(inbox_id: string, options?: CreateDMOptions | null): Promise<Conversation>;
231
239
  findGroupById(group_id: string): Conversation;
232
240
  findDmByTargetInboxId(target_inbox_id: string): Conversation;
@@ -280,9 +288,9 @@ export class EncodedContent {
280
288
  }
281
289
  export class GroupMember {
282
290
  free(): void;
283
- constructor(inbox_id: string, account_addresses: string[], installation_ids: string[], permission_level: PermissionLevel, consent_state: ConsentState);
291
+ constructor(inbox_id: string, account_identifiers: Identifier[], installation_ids: string[], permission_level: PermissionLevel, consent_state: ConsentState);
284
292
  inboxId: string;
285
- accountAddresses: string[];
293
+ accountAddresses: Identifier[];
286
294
  installationIds: string[];
287
295
  permissionLevel: PermissionLevel;
288
296
  consentState: ConsentState;
@@ -305,13 +313,21 @@ export class HmacKey {
305
313
  key: Uint8Array;
306
314
  epoch: bigint;
307
315
  }
316
+ export class Identifier {
317
+ private constructor();
318
+ free(): void;
319
+ identifier: string;
320
+ identifier_kind: IdentifierKind;
321
+ get relying_party(): string | undefined;
322
+ set relying_party(value: string | null | undefined);
323
+ }
308
324
  export class InboxState {
309
325
  free(): void;
310
- constructor(inbox_id: string, recovery_address: string, installations: Installation[], account_addresses: string[]);
326
+ constructor(inbox_id: string, recovery_identifier: Identifier, installations: Installation[], account_identifiers: Identifier[]);
311
327
  inboxId: string;
312
- recoveryAddress: string;
328
+ recoveryIdentifier: Identifier;
313
329
  installations: Installation[];
314
- accountAddresses: string[];
330
+ accountAddresses: Identifier[];
315
331
  }
316
332
  export class Installation {
317
333
  free(): void;
@@ -423,6 +439,10 @@ export class MultiRemoteAttachment {
423
439
  constructor(attachments: RemoteAttachmentInfo[]);
424
440
  attachments: RemoteAttachmentInfo[];
425
441
  }
442
+ export class PasskeySignature {
443
+ private constructor();
444
+ free(): void;
445
+ }
426
446
  export class PermissionPolicySet {
427
447
  free(): void;
428
448
  constructor(add_member_policy: PermissionPolicy, remove_member_policy: PermissionPolicy, add_admin_policy: PermissionPolicy, remove_admin_policy: PermissionPolicy, update_group_name_policy: PermissionPolicy, update_group_description_policy: PermissionPolicy, update_group_image_url_square_policy: PermissionPolicy, update_message_disappearing_policy: PermissionPolicy);
@@ -483,6 +503,147 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
483
503
 
484
504
  export interface InitOutput {
485
505
  readonly memory: WebAssembly.Memory;
506
+ readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
507
+ readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
508
+ readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
509
+ readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
510
+ readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
511
+ readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
512
+ readonly __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
513
+ readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
514
+ readonly __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
515
+ readonly __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
516
+ readonly __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
517
+ readonly __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
518
+ readonly __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
519
+ readonly __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
520
+ readonly __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
521
+ readonly __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
522
+ readonly __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
523
+ 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;
524
+ readonly __wbg_multiremoteattachment_free: (a: number, b: number) => void;
525
+ readonly __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
526
+ readonly __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
527
+ readonly multiremoteattachment_new: (a: number, b: number) => number;
528
+ readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
529
+ readonly decodeMultiRemoteAttachment: (a: any) => [number, number, number];
530
+ readonly __wbg_reaction_free: (a: number, b: number) => void;
531
+ readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
532
+ readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
533
+ readonly __wbg_get_reaction_action: (a: number) => number;
534
+ readonly __wbg_set_reaction_action: (a: number, b: number) => void;
535
+ readonly __wbg_get_reaction_content: (a: number) => [number, number];
536
+ readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
537
+ readonly __wbg_get_reaction_schema: (a: number) => number;
538
+ readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
539
+ readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
540
+ readonly encodeReaction: (a: number) => [number, number, number];
541
+ readonly decodeReaction: (a: any) => [number, number, number];
542
+ readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
543
+ readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
544
+ readonly groupmetadata_conversationType: (a: number) => [number, number];
545
+ readonly __wbg_groupmember_free: (a: number, b: number) => void;
546
+ readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
547
+ readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
548
+ readonly __wbg_get_groupmember_accountAddresses: (a: number) => [number, number];
549
+ readonly __wbg_set_groupmember_accountAddresses: (a: number, b: number, c: number) => void;
550
+ readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
551
+ readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
552
+ readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
553
+ readonly __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
554
+ readonly __wbg_get_groupmember_consentState: (a: number) => number;
555
+ readonly __wbg_set_groupmember_consentState: (a: number, b: number) => void;
556
+ readonly groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
557
+ readonly __wbg_conversation_free: (a: number, b: number) => void;
558
+ readonly conversation_id: (a: number) => [number, number];
559
+ readonly conversation_send: (a: number, b: number) => any;
560
+ readonly conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
561
+ readonly conversation_publishMessages: (a: number) => any;
562
+ readonly conversation_sync: (a: number) => any;
563
+ readonly conversation_findMessages: (a: number, b: number) => any;
564
+ readonly conversation_findMessagesWithReactions: (a: number, b: number) => any;
565
+ readonly conversation_listMembers: (a: number) => any;
566
+ readonly conversation_adminList: (a: number) => [number, number, number, number];
567
+ readonly conversation_superAdminList: (a: number) => [number, number, number, number];
568
+ readonly conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
569
+ readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
570
+ readonly conversation_addMembers: (a: number, b: number, c: number) => any;
571
+ readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
572
+ readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
573
+ readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
574
+ readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
575
+ readonly conversation_groupPermissions: (a: number) => [number, number, number];
576
+ readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
577
+ readonly conversation_removeMembers: (a: number, b: number, c: number) => any;
578
+ readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
579
+ readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
580
+ readonly conversation_groupName: (a: number) => [number, number, number, number];
581
+ readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
582
+ readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
583
+ readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
584
+ readonly conversation_groupDescription: (a: number) => [number, number, number, number];
585
+ readonly conversation_stream: (a: number, b: any) => [number, number, number];
586
+ readonly conversation_createdAtNs: (a: number) => bigint;
587
+ readonly conversation_isActive: (a: number) => [number, number, number];
588
+ readonly conversation_pausedForVersion: (a: number) => [number, number, number, number];
589
+ readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
590
+ readonly conversation_groupMetadata: (a: number) => any;
591
+ readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
592
+ readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
593
+ readonly conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
594
+ readonly conversation_removeMessageDisappearingSettings: (a: number) => any;
595
+ readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
596
+ readonly conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
597
+ readonly conversation_getHmacKeys: (a: number) => [number, number, number];
598
+ readonly getInboxIdForAddress: (a: number, b: number, c: number) => any;
599
+ readonly generateInboxId: (a: number) => [number, number, number, number];
600
+ readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
601
+ readonly __wbg_get_reaction_reference: (a: number) => [number, number];
602
+ readonly __wbg_streamcloser_free: (a: number, b: number) => void;
603
+ readonly streamcloser_end: (a: number) => void;
604
+ readonly streamcloser_endAndWait: (a: number) => any;
605
+ readonly streamcloser_waitForReady: (a: number) => any;
606
+ readonly streamcloser_isClosed: (a: number) => number;
607
+ readonly __wbg_consent_free: (a: number, b: number) => void;
608
+ readonly __wbg_get_consent_entityType: (a: number) => number;
609
+ readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
610
+ readonly __wbg_get_consent_state: (a: number) => number;
611
+ readonly __wbg_set_consent_state: (a: number, b: number) => void;
612
+ readonly __wbg_get_consent_entity: (a: number) => [number, number];
613
+ readonly __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
614
+ readonly consent_new: (a: number, b: number, c: number, d: number) => number;
615
+ readonly client_setConsentStates: (a: number, b: number, c: number) => any;
616
+ readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
617
+ readonly conversation_consentState: (a: number) => [number, number, number];
618
+ readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
619
+ readonly __wbg_identifier_free: (a: number, b: number) => void;
620
+ readonly __wbg_get_identifier_identifier_kind: (a: number) => number;
621
+ readonly __wbg_set_identifier_identifier_kind: (a: number, b: number) => void;
622
+ readonly __wbg_get_identifier_relying_party: (a: number) => [number, number];
623
+ readonly __wbg_set_identifier_relying_party: (a: number, b: number, c: number) => void;
624
+ readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
625
+ readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
626
+ readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
627
+ readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
628
+ readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
629
+ readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
630
+ readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
631
+ readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
632
+ readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
633
+ readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
634
+ readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
635
+ readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
636
+ readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
637
+ readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
638
+ readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
639
+ readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
640
+ readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
641
+ readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
642
+ readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
643
+ readonly grouppermissions_policyType: (a: number) => [number, number, number];
644
+ readonly grouppermissions_policySet: (a: number) => [number, number, number];
645
+ readonly __wbg_set_identifier_identifier: (a: number, b: number, c: number) => void;
646
+ readonly __wbg_get_identifier_identifier: (a: number) => [number, number];
486
647
  readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
487
648
  readonly __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
488
649
  readonly __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
@@ -527,7 +688,7 @@ export interface InitOutput {
527
688
  readonly __wbg_conversations_free: (a: number, b: number) => void;
528
689
  readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
529
690
  readonly conversations_createGroupByInboxIds: (a: number, b: number, c: number, d: number) => any;
530
- readonly conversations_createDm: (a: number, b: number, c: number, d: number) => any;
691
+ readonly conversations_createDm: (a: number, b: number, c: number) => any;
531
692
  readonly conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
532
693
  readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
533
694
  readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
@@ -575,11 +736,13 @@ export interface InitOutput {
575
736
  readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
576
737
  readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
577
738
  readonly __wbg_inboxstate_free: (a: number, b: number) => void;
739
+ readonly __wbg_get_inboxstate_recoveryIdentifier: (a: number) => number;
740
+ readonly __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: number) => void;
578
741
  readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
579
742
  readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
580
743
  readonly __wbg_get_inboxstate_accountAddresses: (a: number) => [number, number];
581
744
  readonly __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
582
- readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
745
+ readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
583
746
  readonly client_inboxState: (a: number, b: number) => any;
584
747
  readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
585
748
  readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
@@ -624,9 +787,7 @@ export interface InitOutput {
624
787
  readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
625
788
  readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
626
789
  readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
627
- readonly __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
628
790
  readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
629
- readonly __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
630
791
  readonly __wbg_client_free: (a: number, b: number) => void;
631
792
  readonly __wbg_logoptions_free: (a: number, b: number) => void;
632
793
  readonly __wbg_get_logoptions_structured: (a: number) => number;
@@ -636,8 +797,8 @@ export interface InitOutput {
636
797
  readonly __wbg_get_logoptions_level: (a: number) => number;
637
798
  readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
638
799
  readonly logoptions_new: (a: number, b: number, c: number) => number;
639
- readonly createClient: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => any;
640
- readonly client_accountAddress: (a: number) => [number, number];
800
+ 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;
801
+ readonly client_accountAddress: (a: number) => number;
641
802
  readonly client_inboxId: (a: number) => [number, number];
642
803
  readonly client_isRegistered: (a: number) => number;
643
804
  readonly client_installationId: (a: number) => [number, number];
@@ -646,152 +807,21 @@ export interface InitOutput {
646
807
  readonly client_registerIdentity: (a: number) => any;
647
808
  readonly client_sendHistorySyncRequest: (a: number) => any;
648
809
  readonly client_sendConsentSyncRequest: (a: number) => any;
649
- readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
810
+ readonly client_findInboxIdByAddress: (a: number, b: number) => any;
650
811
  readonly client_conversations: (a: number) => number;
651
- readonly __wbg_consent_free: (a: number, b: number) => void;
652
- readonly __wbg_get_consent_entityType: (a: number) => number;
653
- readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
654
- readonly __wbg_get_consent_state: (a: number) => number;
655
- readonly __wbg_set_consent_state: (a: number, b: number) => void;
656
- readonly __wbg_get_consent_entity: (a: number) => [number, number];
657
- readonly __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
658
- readonly consent_new: (a: number, b: number, c: number, d: number) => number;
659
- readonly client_setConsentStates: (a: number, b: number, c: number) => any;
660
- readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
661
- readonly conversation_consentState: (a: number) => [number, number, number];
662
- readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
663
- readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => any;
664
- readonly generateInboxId: (a: number, b: number) => [number, number, number, number];
665
- readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
666
- readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
667
- readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
668
- readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
669
- readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
670
- readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
671
- readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
672
- readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
673
- readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
674
- readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
675
- readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
676
- readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
677
- readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
678
- readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
679
- readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
680
- readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
681
- readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
682
- readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
683
- readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
684
- readonly grouppermissions_policyType: (a: number) => [number, number, number];
685
- readonly grouppermissions_policySet: (a: number) => [number, number, number];
686
812
  readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
813
+ readonly __wbg_passkeysignature_free: (a: number, b: number) => void;
687
814
  readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
688
- readonly client_addWalletSignatureText: (a: number, b: number, c: number) => any;
689
- readonly client_revokeWalletSignatureText: (a: number, b: number, c: number) => any;
815
+ readonly client_addWalletSignatureText: (a: number, b: number) => any;
816
+ readonly client_revokeWalletSignatureText: (a: number, b: number) => any;
690
817
  readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
691
818
  readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
692
- readonly client_addSignature: (a: number, b: number, c: any) => any;
819
+ readonly client_addEcdsaSignature: (a: number, b: number, c: any) => any;
820
+ readonly client_addPasskeySignature: (a: number, b: number, c: number) => any;
693
821
  readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
694
822
  readonly client_applySignatureRequests: (a: number) => any;
695
823
  readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
696
824
  readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
697
- readonly __wbg_streamcloser_free: (a: number, b: number) => void;
698
- readonly streamcloser_end: (a: number) => void;
699
- readonly streamcloser_endAndWait: (a: number) => any;
700
- readonly streamcloser_waitForReady: (a: number) => any;
701
- readonly streamcloser_isClosed: (a: number) => number;
702
- readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
703
- readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
704
- readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
705
- readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
706
- readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
707
- readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
708
- readonly __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
709
- readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
710
- readonly __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
711
- readonly __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
712
- readonly __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
713
- readonly __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
714
- readonly __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
715
- readonly __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
716
- readonly __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
717
- readonly __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
718
- readonly __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
719
- 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;
720
- readonly __wbg_multiremoteattachment_free: (a: number, b: number) => void;
721
- readonly __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
722
- readonly __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
723
- readonly multiremoteattachment_new: (a: number, b: number) => number;
724
- readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
725
- readonly decodeMultiRemoteAttachment: (a: any) => [number, number, number];
726
- readonly __wbg_reaction_free: (a: number, b: number) => void;
727
- readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
728
- readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
729
- readonly __wbg_get_reaction_action: (a: number) => number;
730
- readonly __wbg_set_reaction_action: (a: number, b: number) => void;
731
- readonly __wbg_get_reaction_content: (a: number) => [number, number];
732
- readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
733
- readonly __wbg_get_reaction_schema: (a: number) => number;
734
- readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
735
- readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
736
- readonly encodeReaction: (a: number) => [number, number, number];
737
- readonly decodeReaction: (a: any) => [number, number, number];
738
- readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
739
- readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
740
- readonly groupmetadata_conversationType: (a: number) => [number, number];
741
- readonly __wbg_groupmember_free: (a: number, b: number) => void;
742
- readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
743
- readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
744
- readonly __wbg_get_groupmember_accountAddresses: (a: number) => [number, number];
745
- readonly __wbg_set_groupmember_accountAddresses: (a: number, b: number, c: number) => void;
746
- readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
747
- readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
748
- readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
749
- readonly __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
750
- readonly __wbg_get_groupmember_consentState: (a: number) => number;
751
- readonly __wbg_set_groupmember_consentState: (a: number, b: number) => void;
752
- readonly groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
753
- readonly __wbg_conversation_free: (a: number, b: number) => void;
754
- readonly conversation_id: (a: number) => [number, number];
755
- readonly conversation_send: (a: number, b: number) => any;
756
- readonly conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
757
- readonly conversation_publishMessages: (a: number) => any;
758
- readonly conversation_sync: (a: number) => any;
759
- readonly conversation_findMessages: (a: number, b: number) => any;
760
- readonly conversation_findMessagesWithReactions: (a: number, b: number) => any;
761
- readonly conversation_listMembers: (a: number) => any;
762
- readonly conversation_adminList: (a: number) => [number, number, number, number];
763
- readonly conversation_superAdminList: (a: number) => [number, number, number, number];
764
- readonly conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
765
- readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
766
- readonly conversation_addMembers: (a: number, b: number, c: number) => any;
767
- readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
768
- readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
769
- readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
770
- readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
771
- readonly conversation_groupPermissions: (a: number) => [number, number, number];
772
- readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
773
- readonly conversation_removeMembers: (a: number, b: number, c: number) => any;
774
- readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
775
- readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
776
- readonly conversation_groupName: (a: number) => [number, number, number, number];
777
- readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
778
- readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
779
- readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
780
- readonly conversation_groupDescription: (a: number) => [number, number, number, number];
781
- readonly conversation_stream: (a: number, b: any) => [number, number, number];
782
- readonly conversation_createdAtNs: (a: number) => bigint;
783
- readonly conversation_isActive: (a: number) => [number, number, number];
784
- readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
785
- readonly conversation_groupMetadata: (a: number) => any;
786
- readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
787
- readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
788
- readonly conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
789
- readonly conversation_removeMessageDisappearingSettings: (a: number) => any;
790
- readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
791
- readonly conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
792
- readonly conversation_getHmacKeys: (a: number) => [number, number, number];
793
- readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
794
- readonly __wbg_get_reaction_reference: (a: number) => [number, number];
795
825
  readonly rust_sqlite_wasm_shim_localtime_js: (a: bigint, b: number) => void;
796
826
  readonly rust_sqlite_wasm_shim_tzset_js: (a: number, b: number, c: number, d: number) => void;
797
827
  readonly rust_sqlite_wasm_shim_emscripten_get_now: () => number;
@@ -822,9 +852,9 @@ export interface InitOutput {
822
852
  readonly __wbindgen_export_7: WebAssembly.Table;
823
853
  readonly __externref_table_dealloc: (a: number) => void;
824
854
  readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hff1927556d6713ec: (a: number, b: number) => void;
825
- readonly closure3662_externref_shim: (a: number, b: number, c: any) => void;
826
- readonly closure4669_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
827
- readonly closure4668_externref_shim: (a: number, b: number, c: any, d: any) => void;
855
+ readonly closure3746_externref_shim: (a: number, b: number, c: any) => void;
856
+ readonly closure4755_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
857
+ readonly closure4754_externref_shim: (a: number, b: number, c: any, d: any) => void;
828
858
  readonly __wbindgen_start: () => void;
829
859
  }
830
860