@xmtp/wasm-bindings 0.0.13 → 0.0.14

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,9 +1,9 @@
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>;
3
+ export function getInboxIdForAddress(host: string, account_address: string): Promise<string>;
5
4
  export function generateInboxId(account_address: string): string;
6
5
  export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
6
+ 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>;
7
7
  export enum ConsentEntityType {
8
8
  GroupId = 0,
9
9
  InboxId = 1,
@@ -42,7 +42,8 @@ export enum MetadataField {
42
42
  GroupName = 0,
43
43
  Description = 1,
44
44
  ImageUrlSquare = 2,
45
- PinnedFrameUrl = 3,
45
+ MessageExpirationFromMS = 3,
46
+ MessageExpirationMS = 4,
46
47
  }
47
48
  export enum PermissionLevel {
48
49
  Member = 0,
@@ -84,14 +85,24 @@ type ReadableStreamType = "bytes";
84
85
  export class Client {
85
86
  private constructor();
86
87
  free(): void;
88
+ setConsentStates(records: Consent[]): Promise<void>;
89
+ getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
90
+ createInboxSignatureText(): string;
91
+ addWalletSignatureText(new_wallet_address: string): Promise<string>;
92
+ revokeWalletSignatureText(wallet_address: string): Promise<string>;
93
+ revokeAllOtherInstallationsSignatureText(): Promise<string>;
94
+ revokeInstallationsSignatureText(installation_ids: Uint8Array[]): Promise<string>;
95
+ addSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
96
+ addScwSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint | null): Promise<void>;
97
+ applySignatureRequests(): Promise<void>;
98
+ signWithInstallationKey(signature_text: string): Uint8Array;
99
+ verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
87
100
  canMessage(account_addresses: string[]): Promise<any>;
88
101
  registerIdentity(): Promise<void>;
89
102
  sendHistorySyncRequest(): Promise<void>;
90
103
  sendConsentSyncRequest(): Promise<void>;
91
- findInboxIdByAddress(address: string): Promise<string | undefined>;
104
+ findInboxIdByAddress(address: string): Promise<string>;
92
105
  conversations(): Conversations;
93
- setConsentStates(records: Consent[]): Promise<void>;
94
- getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
95
106
  /**
96
107
  *
97
108
  * * Get the client's inbox state.
@@ -102,16 +113,6 @@ export class Client {
102
113
  */
103
114
  inboxState(refresh_from_network: boolean): Promise<InboxState>;
104
115
  getLatestInboxState(inbox_id: string): Promise<InboxState>;
105
- createInboxSignatureText(): Promise<string | undefined>;
106
- addWalletSignatureText(new_wallet_address: string): Promise<string>;
107
- revokeWalletSignatureText(wallet_address: string): Promise<string>;
108
- revokeAllOtherInstallationsSignatureText(): Promise<string>;
109
- revokeInstallationsSignatureText(installation_ids: Uint8Array[]): Promise<string>;
110
- addSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
111
- addScwSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint | null): Promise<void>;
112
- applySignatureRequests(): Promise<void>;
113
- signWithInstallationKey(signature_text: string): Uint8Array;
114
- verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
115
116
  readonly accountAddress: string;
116
117
  readonly inboxId: string;
117
118
  readonly isRegistered: boolean;
@@ -170,8 +171,7 @@ export class Conversation {
170
171
  groupImageUrlSquare(): string;
171
172
  updateGroupDescription(group_description: string): Promise<void>;
172
173
  groupDescription(): string;
173
- updateGroupPinnedFrameUrl(pinned_frame_url: string): Promise<void>;
174
- groupPinnedFrameUrl(): string;
174
+ stream(callback: any): StreamCloser;
175
175
  createdAtNs(): bigint;
176
176
  isActive(): boolean;
177
177
  addedByInboxId(): string;
@@ -193,26 +193,26 @@ export class Conversations {
193
193
  listGroups(opts?: ListConversationsOptions | null): Array<any>;
194
194
  listDms(opts?: ListConversationsOptions | null): Array<any>;
195
195
  getHmacKeys(): any;
196
+ stream(callback: any, conversation_type?: ConversationType | null): StreamCloser;
197
+ streamGroups(callback: any): StreamCloser;
198
+ streamDms(callback: any): StreamCloser;
199
+ streamAllMessages(callback: any, conversation_type?: ConversationType | null): StreamCloser;
196
200
  }
197
201
  export class CreateGroupOptions {
198
202
  free(): void;
199
- constructor(permissions?: GroupPermissionsOptions | null, group_name?: string | null, group_image_url_square?: string | null, group_description?: string | null, group_pinned_frame_url?: string | null, custom_permission_policy_set?: PermissionPolicySet | null, message_expiration_from_ms?: bigint | null, message_expiration_ms?: bigint | null);
203
+ constructor(permissions?: GroupPermissionsOptions | null, group_name?: string | null, group_image_url_square?: string | null, group_description?: string | null, custom_permission_policy_set?: PermissionPolicySet | null, message_disappearing_settings?: MessageDisappearingSettings | null);
200
204
  get permissions(): GroupPermissionsOptions | undefined;
201
205
  set permissions(value: GroupPermissionsOptions | null | undefined);
202
- get groupName(): string | undefined;
206
+ get groupName(): string;
203
207
  set groupName(value: string | null | undefined);
204
- get groupImageUrlSquare(): string | undefined;
208
+ get groupImageUrlSquare(): string;
205
209
  set groupImageUrlSquare(value: string | null | undefined);
206
- get groupDescription(): string | undefined;
210
+ get groupDescription(): string;
207
211
  set groupDescription(value: string | null | undefined);
208
- get groupPinnedFrameUrl(): string | undefined;
209
- set groupPinnedFrameUrl(value: string | null | undefined);
210
212
  get customPermissionPolicySet(): PermissionPolicySet | undefined;
211
213
  set customPermissionPolicySet(value: PermissionPolicySet | null | undefined);
212
- get messageExpirationFromMillis(): bigint | undefined;
213
- set messageExpirationFromMillis(value: bigint | null | undefined);
214
- get messageExpirationMillis(): bigint | undefined;
215
- set messageExpirationMillis(value: bigint | null | undefined);
214
+ get messageDisappearingSettings(): MessageDisappearingSettings | undefined;
215
+ set messageDisappearingSettings(value: MessageDisappearingSettings | null | undefined);
216
216
  }
217
217
  export class EncodedContent {
218
218
  free(): void;
@@ -220,7 +220,7 @@ export class EncodedContent {
220
220
  get type(): ContentTypeId | undefined;
221
221
  set type(value: ContentTypeId | null | undefined);
222
222
  parameters: any;
223
- get fallback(): string | undefined;
223
+ get fallback(): string;
224
224
  set fallback(value: string | null | undefined);
225
225
  get compression(): number | undefined;
226
226
  set compression(value: number | null | undefined);
@@ -353,9 +353,13 @@ export class Message {
353
353
  kind: GroupMessageKind;
354
354
  deliveryStatus: DeliveryStatus;
355
355
  }
356
+ export class MessageDisappearingSettings {
357
+ private constructor();
358
+ free(): void;
359
+ }
356
360
  export class PermissionPolicySet {
357
361
  free(): void;
358
- 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_group_pinned_frame_url_policy: PermissionPolicy, update_message_expiration_ms_policy: PermissionPolicy);
362
+ 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);
359
363
  addMemberPolicy: PermissionPolicy;
360
364
  removeMemberPolicy: PermissionPolicy;
361
365
  addAdminPolicy: PermissionPolicy;
@@ -363,8 +367,27 @@ export class PermissionPolicySet {
363
367
  updateGroupNamePolicy: PermissionPolicy;
364
368
  updateGroupDescriptionPolicy: PermissionPolicy;
365
369
  updateGroupImageUrlSquarePolicy: PermissionPolicy;
366
- updateGroupPinnedFrameUrlPolicy: PermissionPolicy;
367
- updateMessageExpirationPolicy: PermissionPolicy;
370
+ updateMessageDisappearingPolicy: PermissionPolicy;
371
+ }
372
+ export class StreamCloser {
373
+ private constructor();
374
+ free(): void;
375
+ /**
376
+ * Signal the stream to end
377
+ * Does not wait for the stream to end.
378
+ */
379
+ end(): void;
380
+ /**
381
+ * End the stream and `await` for it to shutdown
382
+ * Returns the `Result` of the task.
383
+ * End the stream and asynchronously wait for it to shutdown
384
+ */
385
+ endAndWait(): Promise<void>;
386
+ waitForReady(): Promise<void>;
387
+ /**
388
+ * Checks if this stream is closed
389
+ */
390
+ isClosed(): boolean;
368
391
  }
369
392
  export class Version {
370
393
  private constructor();
@@ -375,50 +398,55 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
375
398
 
376
399
  export interface InitOutput {
377
400
  readonly memory: WebAssembly.Memory;
378
- readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
379
- readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
380
- readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
381
- readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
382
- readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
383
- readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
384
- readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
385
- readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
386
- readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
387
- readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
388
- readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
389
- readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
390
- readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
391
- readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
392
- readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
393
- readonly __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number) => number;
394
- readonly __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number, b: number) => void;
395
- readonly __wbg_get_permissionpolicyset_updateMessageExpirationPolicy: (a: number) => number;
396
- readonly __wbg_set_permissionpolicyset_updateMessageExpirationPolicy: (a: number, b: number) => void;
397
- readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
398
- readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
399
- readonly grouppermissions_policyType: (a: number) => [number, number, number];
400
- readonly grouppermissions_policySet: (a: number) => [number, number, number];
401
- readonly __wbg_client_free: (a: number, b: number) => void;
402
- readonly __wbg_logoptions_free: (a: number, b: number) => void;
403
- readonly __wbg_get_logoptions_structured: (a: number) => number;
404
- readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
405
- readonly __wbg_get_logoptions_performance: (a: number) => number;
406
- readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
407
- readonly __wbg_get_logoptions_level: (a: number) => number;
408
- readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
409
- readonly logoptions_new: (a: number, b: number, c: number) => number;
410
- 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;
411
- readonly client_accountAddress: (a: number) => [number, number];
412
- readonly client_inboxId: (a: number) => [number, number];
413
- readonly client_isRegistered: (a: number) => number;
414
- readonly client_installationId: (a: number) => [number, number];
415
- readonly client_installationIdBytes: (a: number) => any;
416
- readonly client_canMessage: (a: number, b: number, c: number) => any;
417
- readonly client_registerIdentity: (a: number) => any;
418
- readonly client_sendHistorySyncRequest: (a: number) => any;
419
- readonly client_sendConsentSyncRequest: (a: number) => any;
420
- readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
421
- readonly client_conversations: (a: number) => number;
401
+ readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
402
+ readonly __wbg_get_listconversationsoptions_allowedStates: (a: number) => [number, number];
403
+ readonly __wbg_set_listconversationsoptions_allowedStates: (a: number, b: number, c: number) => void;
404
+ readonly __wbg_get_listconversationsoptions_conversationType: (a: number) => number;
405
+ readonly __wbg_set_listconversationsoptions_conversationType: (a: number, b: number) => void;
406
+ readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
407
+ readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
408
+ readonly __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
409
+ readonly __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: bigint) => void;
410
+ readonly __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
411
+ readonly __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
412
+ readonly listconversationsoptions_new: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: bigint, h: number, i: bigint) => number;
413
+ readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
414
+ readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
415
+ readonly __wbg_set_creategroupoptions_permissions: (a: number, b: number) => void;
416
+ readonly __wbg_get_creategroupoptions_groupName: (a: number) => [number, number];
417
+ readonly __wbg_set_creategroupoptions_groupName: (a: number, b: number, c: number) => void;
418
+ readonly __wbg_get_creategroupoptions_groupImageUrlSquare: (a: number) => [number, number];
419
+ readonly __wbg_set_creategroupoptions_groupImageUrlSquare: (a: number, b: number, c: number) => void;
420
+ readonly __wbg_get_creategroupoptions_groupDescription: (a: number) => [number, number];
421
+ readonly __wbg_set_creategroupoptions_groupDescription: (a: number, b: number, c: number) => void;
422
+ readonly __wbg_get_creategroupoptions_customPermissionPolicySet: (a: number) => number;
423
+ readonly __wbg_set_creategroupoptions_customPermissionPolicySet: (a: number, b: number) => void;
424
+ readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
425
+ readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
426
+ readonly creategroupoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
427
+ readonly __wbg_hmackey_free: (a: number, b: number) => void;
428
+ readonly __wbg_get_hmackey_key: (a: number) => [number, number];
429
+ readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
430
+ readonly __wbg_get_hmackey_epoch: (a: number) => bigint;
431
+ readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
432
+ readonly __wbg_conversations_free: (a: number, b: number) => void;
433
+ readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
434
+ readonly conversations_createDm: (a: number, b: number, c: number) => any;
435
+ readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
436
+ readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
437
+ readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
438
+ readonly conversations_sync: (a: number) => any;
439
+ readonly conversations_syncAllConversations: (a: number) => any;
440
+ readonly conversations_list: (a: number, b: number) => [number, number, number];
441
+ readonly conversations_listGroups: (a: number, b: number) => [number, number, number];
442
+ readonly conversations_listDms: (a: number, b: number) => [number, number, number];
443
+ readonly conversations_getHmacKeys: (a: number) => [number, number, number];
444
+ readonly conversations_stream: (a: number, b: any, c: number) => [number, number, number];
445
+ readonly conversations_streamGroups: (a: number, b: any) => [number, number, number];
446
+ readonly conversations_streamDms: (a: number, b: any) => [number, number, number];
447
+ readonly conversations_streamAllMessages: (a: number, b: any, c: number) => [number, number, number];
448
+ readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => any;
449
+ readonly generateInboxId: (a: number, b: number) => [number, number, number, number];
422
450
  readonly __wbg_consent_free: (a: number, b: number) => void;
423
451
  readonly __wbg_get_consent_entityType: (a: number) => number;
424
452
  readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
@@ -432,6 +460,7 @@ export interface InitOutput {
432
460
  readonly conversation_consentState: (a: number) => [number, number, number];
433
461
  readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
434
462
  readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
463
+ readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
435
464
  readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
436
465
  readonly groupmetadata_conversationType: (a: number) => [number, number];
437
466
  readonly __wbg_groupmember_free: (a: number, b: number) => void;
@@ -471,40 +500,15 @@ export interface InitOutput {
471
500
  readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
472
501
  readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
473
502
  readonly conversation_groupDescription: (a: number) => [number, number, number, number];
474
- readonly conversation_updateGroupPinnedFrameUrl: (a: number, b: number, c: number) => any;
475
- readonly conversation_groupPinnedFrameUrl: (a: number) => [number, number, number, number];
503
+ readonly conversation_stream: (a: number, b: any) => [number, number, number];
476
504
  readonly conversation_createdAtNs: (a: number) => bigint;
477
505
  readonly conversation_isActive: (a: number) => [number, number, number];
478
506
  readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
479
507
  readonly conversation_groupMetadata: (a: number) => any;
480
508
  readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
481
509
  readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
482
- readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => any;
483
- readonly generateInboxId: (a: number, b: number) => [number, number, number, number];
484
- readonly __wbg_installation_free: (a: number, b: number) => void;
485
- readonly __wbg_get_installation_bytes: (a: number) => any;
486
- readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
487
- readonly __wbg_get_installation_id: (a: number) => [number, number];
488
- readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
489
- readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
490
- readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
491
- readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
492
- readonly __wbg_inboxstate_free: (a: number, b: number) => void;
493
- readonly __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
494
- readonly __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
495
- readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
496
- readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
497
- readonly __wbg_get_inboxstate_accountAddresses: (a: number) => [number, number];
498
- readonly __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
499
- readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
500
- readonly client_inboxState: (a: number, b: number) => any;
501
- readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
502
- readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
503
- readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
504
- readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
505
- readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
506
510
  readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
507
- readonly client_createInboxSignatureText: (a: number) => any;
511
+ readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
508
512
  readonly client_addWalletSignatureText: (a: number, b: number, c: number) => any;
509
513
  readonly client_revokeWalletSignatureText: (a: number, b: number, c: number) => any;
510
514
  readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
@@ -514,49 +518,55 @@ export interface InitOutput {
514
518
  readonly client_applySignatureRequests: (a: number) => any;
515
519
  readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
516
520
  readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
517
- readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
518
- readonly __wbg_get_listconversationsoptions_allowedStates: (a: number) => [number, number];
519
- readonly __wbg_set_listconversationsoptions_allowedStates: (a: number, b: number, c: number) => void;
520
- readonly __wbg_get_listconversationsoptions_conversationType: (a: number) => number;
521
- readonly __wbg_set_listconversationsoptions_conversationType: (a: number, b: number) => void;
522
- readonly __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
523
- readonly __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
524
- readonly listconversationsoptions_new: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: bigint, h: number, i: bigint) => number;
525
- readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
526
- readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
527
- readonly __wbg_set_creategroupoptions_permissions: (a: number, b: number) => void;
528
- readonly __wbg_get_creategroupoptions_groupName: (a: number) => [number, number];
529
- readonly __wbg_set_creategroupoptions_groupName: (a: number, b: number, c: number) => void;
530
- readonly __wbg_get_creategroupoptions_groupImageUrlSquare: (a: number) => [number, number];
531
- readonly __wbg_set_creategroupoptions_groupImageUrlSquare: (a: number, b: number, c: number) => void;
532
- readonly __wbg_get_creategroupoptions_groupDescription: (a: number) => [number, number];
533
- readonly __wbg_set_creategroupoptions_groupDescription: (a: number, b: number, c: number) => void;
534
- readonly __wbg_get_creategroupoptions_groupPinnedFrameUrl: (a: number) => [number, number];
535
- readonly __wbg_set_creategroupoptions_groupPinnedFrameUrl: (a: number, b: number, c: number) => void;
536
- readonly __wbg_get_creategroupoptions_customPermissionPolicySet: (a: number) => number;
537
- readonly __wbg_set_creategroupoptions_customPermissionPolicySet: (a: number, b: number) => void;
538
- readonly __wbg_get_creategroupoptions_messageExpirationFromMillis: (a: number) => [number, bigint];
539
- readonly __wbg_set_creategroupoptions_messageExpirationFromMillis: (a: number, b: number, c: bigint) => void;
540
- readonly __wbg_get_creategroupoptions_messageExpirationMillis: (a: number) => [number, bigint];
541
- readonly __wbg_set_creategroupoptions_messageExpirationMillis: (a: number, b: number, c: bigint) => void;
542
- readonly creategroupoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: bigint, m: number, n: bigint) => number;
543
- readonly __wbg_hmackey_free: (a: number, b: number) => void;
544
- readonly __wbg_get_hmackey_key: (a: number) => [number, number];
545
- readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
546
- readonly __wbg_get_hmackey_epoch: (a: number) => bigint;
547
- readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
548
- readonly __wbg_conversations_free: (a: number, b: number) => void;
549
- readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
550
- readonly conversations_createDm: (a: number, b: number, c: number) => any;
551
- readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
552
- readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
553
- readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
554
- readonly conversations_sync: (a: number) => any;
555
- readonly conversations_syncAllConversations: (a: number) => any;
556
- readonly conversations_list: (a: number, b: number) => [number, number, number];
557
- readonly conversations_listGroups: (a: number, b: number) => [number, number, number];
558
- readonly conversations_listDms: (a: number, b: number) => [number, number, number];
559
- readonly conversations_getHmacKeys: (a: number) => [number, number, number];
521
+ readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
522
+ readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
523
+ readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
524
+ readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
525
+ readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
526
+ readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
527
+ readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
528
+ readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
529
+ readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
530
+ readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
531
+ readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
532
+ readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
533
+ readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
534
+ readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
535
+ readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
536
+ readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
537
+ readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
538
+ readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
539
+ readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
540
+ readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
541
+ readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
542
+ readonly grouppermissions_policyType: (a: number) => [number, number, number];
543
+ readonly grouppermissions_policySet: (a: number) => [number, number, number];
544
+ readonly __wbg_streamcloser_free: (a: number, b: number) => void;
545
+ readonly streamcloser_end: (a: number) => void;
546
+ readonly streamcloser_endAndWait: (a: number) => any;
547
+ readonly streamcloser_waitForReady: (a: number) => any;
548
+ readonly streamcloser_isClosed: (a: number) => number;
549
+ readonly __wbg_client_free: (a: number, b: number) => void;
550
+ readonly __wbg_logoptions_free: (a: number, b: number) => void;
551
+ readonly __wbg_get_logoptions_structured: (a: number) => number;
552
+ readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
553
+ readonly __wbg_get_logoptions_performance: (a: number) => number;
554
+ readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
555
+ readonly __wbg_get_logoptions_level: (a: number) => number;
556
+ readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
557
+ readonly logoptions_new: (a: number, b: number, c: number) => number;
558
+ 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;
559
+ readonly client_accountAddress: (a: number) => [number, number];
560
+ readonly client_inboxId: (a: number) => [number, number];
561
+ readonly client_isRegistered: (a: number) => number;
562
+ readonly client_installationId: (a: number) => [number, number];
563
+ readonly client_installationIdBytes: (a: number) => any;
564
+ readonly client_canMessage: (a: number, b: number, c: number) => any;
565
+ readonly client_registerIdentity: (a: number) => any;
566
+ readonly client_sendHistorySyncRequest: (a: number) => any;
567
+ readonly client_sendConsentSyncRequest: (a: number) => any;
568
+ readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
569
+ readonly client_conversations: (a: number) => number;
560
570
  readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
561
571
  readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
562
572
  readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
@@ -579,7 +589,27 @@ export interface InitOutput {
579
589
  readonly __wbg_get_encodedcontent_content: (a: number) => any;
580
590
  readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
581
591
  readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
592
+ readonly __wbg_installation_free: (a: number, b: number) => void;
593
+ readonly __wbg_get_installation_bytes: (a: number) => any;
594
+ readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
595
+ readonly __wbg_get_installation_id: (a: number) => [number, number];
596
+ readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
597
+ readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
598
+ readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
599
+ readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
600
+ readonly __wbg_inboxstate_free: (a: number, b: number) => void;
601
+ readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
602
+ readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
603
+ readonly __wbg_get_inboxstate_accountAddresses: (a: number) => [number, number];
604
+ readonly __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
605
+ readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
606
+ readonly client_inboxState: (a: number, b: number) => any;
607
+ readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
582
608
  readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
609
+ readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
610
+ readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
611
+ readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
612
+ readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
583
613
  readonly __wbg_get_listmessagesoptions_deliveryStatus: (a: number) => number;
584
614
  readonly __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
585
615
  readonly __wbg_get_listmessagesoptions_direction: (a: number) => number;
@@ -588,6 +618,8 @@ export interface InitOutput {
588
618
  readonly __wbg_message_free: (a: number, b: number) => void;
589
619
  readonly __wbg_get_message_id: (a: number) => [number, number];
590
620
  readonly __wbg_set_message_id: (a: number, b: number, c: number) => void;
621
+ readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
622
+ readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
591
623
  readonly __wbg_get_message_convoId: (a: number) => [number, number];
592
624
  readonly __wbg_set_message_convoId: (a: number, b: number, c: number) => void;
593
625
  readonly __wbg_get_message_senderInboxId: (a: number) => [number, number];
@@ -599,18 +631,12 @@ export interface InitOutput {
599
631
  readonly __wbg_get_message_deliveryStatus: (a: number) => number;
600
632
  readonly __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
601
633
  readonly message_new: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
602
- readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
603
- readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
604
- readonly __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: bigint) => void;
605
634
  readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
606
- readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
607
- readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
608
- readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
609
- readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
610
- readonly __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
635
+ readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
636
+ readonly __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
611
637
  readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
612
- readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
613
- readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
638
+ readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
639
+ readonly __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
614
640
  readonly __wbg_version_free: (a: number, b: number) => void;
615
641
  readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
616
642
  readonly intounderlyingsource_pull: (a: number, b: any) => any;
@@ -627,15 +653,15 @@ export interface InitOutput {
627
653
  readonly intounderlyingbytesource_cancel: (a: number) => void;
628
654
  readonly __wbindgen_malloc: (a: number, b: number) => number;
629
655
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
656
+ readonly __wbindgen_export_2: WebAssembly.Table;
630
657
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
631
658
  readonly __wbindgen_exn_store: (a: number) => void;
632
659
  readonly __externref_table_alloc: () => number;
633
- readonly __wbindgen_export_5: WebAssembly.Table;
634
660
  readonly __wbindgen_export_6: WebAssembly.Table;
635
- readonly __externref_table_dealloc: (a: number) => void;
636
661
  readonly __externref_drop_slice: (a: number, b: number) => void;
637
- readonly closure2596_externref_shim: (a: number, b: number, c: any) => void;
638
- readonly closure3688_externref_shim: (a: number, b: number, c: any, d: any) => void;
662
+ readonly __externref_table_dealloc: (a: number) => void;
663
+ readonly closure2900_externref_shim: (a: number, b: number, c: any) => void;
664
+ readonly closure3826_externref_shim: (a: number, b: number, c: any, d: any) => void;
639
665
  readonly __wbindgen_start: () => void;
640
666
  }
641
667