@xmtp/wasm-bindings 0.0.11 → 0.0.12
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/dist/bindings_wasm.d.ts +187 -165
- package/dist/bindings_wasm.js +316 -203
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +155 -143
- package/package.json +1 -1
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -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, encryption_key?: Uint8Array, history_sync_url?: string, log_options?: LogOptions): Promise<Client>;
|
|
3
4
|
export function getInboxIdForAddress(host: string, account_address: string): Promise<string | undefined>;
|
|
4
5
|
export function generateInboxId(account_address: string): string;
|
|
5
6
|
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, encryption_key?: Uint8Array, history_sync_url?: string, log_options?: LogOptions): Promise<Client>;
|
|
7
7
|
export enum ConsentEntityType {
|
|
8
8
|
GroupId = 0,
|
|
9
9
|
InboxId = 1,
|
|
@@ -34,7 +34,7 @@ export enum GroupMessageKind {
|
|
|
34
34
|
MembershipChange = 1,
|
|
35
35
|
}
|
|
36
36
|
export enum GroupPermissionsOptions {
|
|
37
|
-
|
|
37
|
+
Default = 0,
|
|
38
38
|
AdminOnly = 1,
|
|
39
39
|
CustomPolicy = 2,
|
|
40
40
|
}
|
|
@@ -84,18 +84,12 @@ type ReadableStreamType = "bytes";
|
|
|
84
84
|
export class Client {
|
|
85
85
|
private constructor();
|
|
86
86
|
free(): void;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
revokeInstallationsSignatureText(installation_ids: (Uint8Array)[]): Promise<string>;
|
|
94
|
-
addSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
|
|
95
|
-
addScwSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint): Promise<void>;
|
|
96
|
-
applySignatureRequests(): Promise<void>;
|
|
97
|
-
signWithInstallationKey(signature_text: string): Uint8Array;
|
|
98
|
-
verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
|
|
87
|
+
canMessage(account_addresses: (string)[]): Promise<any>;
|
|
88
|
+
registerIdentity(): Promise<void>;
|
|
89
|
+
sendHistorySyncRequest(): Promise<void>;
|
|
90
|
+
sendConsentSyncRequest(): Promise<void>;
|
|
91
|
+
findInboxIdByAddress(address: string): Promise<string | undefined>;
|
|
92
|
+
conversations(): Conversations;
|
|
99
93
|
/**
|
|
100
94
|
*
|
|
101
95
|
* * Get the client's inbox state.
|
|
@@ -106,12 +100,18 @@ export class Client {
|
|
|
106
100
|
*/
|
|
107
101
|
inboxState(refresh_from_network: boolean): Promise<InboxState>;
|
|
108
102
|
getLatestInboxState(inbox_id: string): Promise<InboxState>;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
103
|
+
createInboxSignatureText(): Promise<string | undefined>;
|
|
104
|
+
addWalletSignatureText(new_wallet_address: string): Promise<string>;
|
|
105
|
+
revokeWalletSignatureText(wallet_address: string): Promise<string>;
|
|
106
|
+
revokeAllOtherInstallationsSignatureText(): Promise<string>;
|
|
107
|
+
revokeInstallationsSignatureText(installation_ids: (Uint8Array)[]): Promise<string>;
|
|
108
|
+
addSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
|
|
109
|
+
addScwSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint): Promise<void>;
|
|
110
|
+
applySignatureRequests(): Promise<void>;
|
|
111
|
+
signWithInstallationKey(signature_text: string): Uint8Array;
|
|
112
|
+
verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
|
|
113
|
+
setConsentStates(records: (Consent)[]): Promise<void>;
|
|
114
|
+
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
115
115
|
readonly accountAddress: string;
|
|
116
116
|
readonly inboxId: string;
|
|
117
117
|
readonly isRegistered: boolean;
|
|
@@ -192,16 +192,19 @@ export class Conversations {
|
|
|
192
192
|
list(opts?: ListConversationsOptions): Array<any>;
|
|
193
193
|
listGroups(opts?: ListConversationsOptions): Array<any>;
|
|
194
194
|
listDms(opts?: ListConversationsOptions): Array<any>;
|
|
195
|
+
getHmacKeys(): any;
|
|
195
196
|
}
|
|
196
197
|
export class CreateGroupOptions {
|
|
197
198
|
free(): void;
|
|
198
|
-
constructor(permissions?: GroupPermissionsOptions, group_name?: string, group_image_url_square?: string, group_description?: string, group_pinned_frame_url?: string, custom_permission_policy_set?: PermissionPolicySet);
|
|
199
|
+
constructor(permissions?: GroupPermissionsOptions, group_name?: string, group_image_url_square?: string, group_description?: string, group_pinned_frame_url?: string, custom_permission_policy_set?: PermissionPolicySet, message_expiration_from_ms?: bigint, message_expiration_ms?: bigint);
|
|
199
200
|
permissions?: GroupPermissionsOptions;
|
|
200
201
|
groupName?: string;
|
|
201
202
|
groupImageUrlSquare?: string;
|
|
202
203
|
groupDescription?: string;
|
|
203
204
|
groupPinnedFrameUrl?: string;
|
|
204
205
|
customPermissionPolicySet?: PermissionPolicySet;
|
|
206
|
+
messageExpirationFromMillis?: bigint;
|
|
207
|
+
messageExpirationMillis?: bigint;
|
|
205
208
|
}
|
|
206
209
|
export class EncodedContent {
|
|
207
210
|
free(): void;
|
|
@@ -233,6 +236,12 @@ export class GroupPermissions {
|
|
|
233
236
|
policyType(): GroupPermissionsOptions;
|
|
234
237
|
policySet(): PermissionPolicySet;
|
|
235
238
|
}
|
|
239
|
+
export class HmacKey {
|
|
240
|
+
private constructor();
|
|
241
|
+
free(): void;
|
|
242
|
+
key: Uint8Array;
|
|
243
|
+
epoch: bigint;
|
|
244
|
+
}
|
|
236
245
|
export class InboxState {
|
|
237
246
|
free(): void;
|
|
238
247
|
constructor(inbox_id: string, recovery_address: string, installations: (Installation)[], account_addresses: (string)[]);
|
|
@@ -320,7 +329,7 @@ export class Message {
|
|
|
320
329
|
}
|
|
321
330
|
export class PermissionPolicySet {
|
|
322
331
|
free(): void;
|
|
323
|
-
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);
|
|
332
|
+
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);
|
|
324
333
|
addMemberPolicy: PermissionPolicy;
|
|
325
334
|
removeMemberPolicy: PermissionPolicy;
|
|
326
335
|
addAdminPolicy: PermissionPolicy;
|
|
@@ -329,6 +338,7 @@ export class PermissionPolicySet {
|
|
|
329
338
|
updateGroupDescriptionPolicy: PermissionPolicy;
|
|
330
339
|
updateGroupImageUrlSquarePolicy: PermissionPolicy;
|
|
331
340
|
updateGroupPinnedFrameUrlPolicy: PermissionPolicy;
|
|
341
|
+
updateMessageExpirationPolicy: PermissionPolicy;
|
|
332
342
|
}
|
|
333
343
|
export class Version {
|
|
334
344
|
private constructor();
|
|
@@ -339,6 +349,60 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
339
349
|
|
|
340
350
|
export interface InitOutput {
|
|
341
351
|
readonly memory: WebAssembly.Memory;
|
|
352
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
353
|
+
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
354
|
+
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
355
|
+
readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
356
|
+
readonly __wbg_get_logoptions_performance: (a: number) => number;
|
|
357
|
+
readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
358
|
+
readonly __wbg_get_logoptions_level: (a: number) => number;
|
|
359
|
+
readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
360
|
+
readonly logoptions_new: (a: number, b: number, c: number) => number;
|
|
361
|
+
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;
|
|
362
|
+
readonly client_accountAddress: (a: number) => [number, number];
|
|
363
|
+
readonly client_inboxId: (a: number) => [number, number];
|
|
364
|
+
readonly client_isRegistered: (a: number) => number;
|
|
365
|
+
readonly client_installationId: (a: number) => [number, number];
|
|
366
|
+
readonly client_installationIdBytes: (a: number) => any;
|
|
367
|
+
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
368
|
+
readonly client_registerIdentity: (a: number) => any;
|
|
369
|
+
readonly client_sendHistorySyncRequest: (a: number) => any;
|
|
370
|
+
readonly client_sendConsentSyncRequest: (a: number) => any;
|
|
371
|
+
readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
|
|
372
|
+
readonly client_conversations: (a: number) => number;
|
|
373
|
+
readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => any;
|
|
374
|
+
readonly generateInboxId: (a: number, b: number) => [number, number, number, number];
|
|
375
|
+
readonly __wbg_installation_free: (a: number, b: number) => void;
|
|
376
|
+
readonly __wbg_get_installation_bytes: (a: number) => any;
|
|
377
|
+
readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
|
|
378
|
+
readonly __wbg_get_installation_id: (a: number) => [number, number];
|
|
379
|
+
readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
380
|
+
readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
|
|
381
|
+
readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
382
|
+
readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
|
|
383
|
+
readonly __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
384
|
+
readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
385
|
+
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
386
|
+
readonly __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
|
|
387
|
+
readonly __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
|
|
388
|
+
readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
389
|
+
readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
|
|
390
|
+
readonly __wbg_get_inboxstate_accountAddresses: (a: number) => [number, number];
|
|
391
|
+
readonly __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
|
|
392
|
+
readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
393
|
+
readonly client_inboxState: (a: number, b: number) => any;
|
|
394
|
+
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
395
|
+
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
396
|
+
readonly client_createInboxSignatureText: (a: number) => any;
|
|
397
|
+
readonly client_addWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
398
|
+
readonly client_revokeWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
399
|
+
readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
400
|
+
readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
401
|
+
readonly client_addSignature: (a: number, b: number, c: any) => any;
|
|
402
|
+
readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
403
|
+
readonly client_applySignatureRequests: (a: number) => any;
|
|
404
|
+
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
405
|
+
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
342
406
|
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
343
407
|
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
344
408
|
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
@@ -351,15 +415,84 @@ export interface InitOutput {
|
|
|
351
415
|
readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
352
416
|
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
353
417
|
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
418
|
+
readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
419
|
+
readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
420
|
+
readonly groupmetadata_conversationType: (a: number) => [number, number];
|
|
421
|
+
readonly __wbg_groupmember_free: (a: number, b: number) => void;
|
|
422
|
+
readonly __wbg_get_groupmember_accountAddresses: (a: number) => [number, number];
|
|
423
|
+
readonly __wbg_set_groupmember_accountAddresses: (a: number, b: number, c: number) => void;
|
|
424
|
+
readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
425
|
+
readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
|
|
426
|
+
readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
|
|
427
|
+
readonly __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
|
|
428
|
+
readonly __wbg_get_groupmember_consentState: (a: number) => number;
|
|
429
|
+
readonly __wbg_set_groupmember_consentState: (a: number, b: number) => void;
|
|
430
|
+
readonly groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
431
|
+
readonly __wbg_conversation_free: (a: number, b: number) => void;
|
|
432
|
+
readonly conversation_id: (a: number) => [number, number];
|
|
433
|
+
readonly conversation_send: (a: number, b: number) => any;
|
|
434
|
+
readonly conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
|
|
435
|
+
readonly conversation_publishMessages: (a: number) => any;
|
|
436
|
+
readonly conversation_sync: (a: number) => any;
|
|
437
|
+
readonly conversation_findMessages: (a: number, b: number) => any;
|
|
438
|
+
readonly conversation_listMembers: (a: number) => any;
|
|
439
|
+
readonly conversation_adminList: (a: number) => [number, number, number, number];
|
|
440
|
+
readonly conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
441
|
+
readonly conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
442
|
+
readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
443
|
+
readonly conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
444
|
+
readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
445
|
+
readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
446
|
+
readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
|
|
447
|
+
readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
|
|
448
|
+
readonly conversation_groupPermissions: (a: number) => [number, number, number];
|
|
449
|
+
readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
450
|
+
readonly conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
451
|
+
readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
452
|
+
readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
453
|
+
readonly conversation_groupName: (a: number) => [number, number, number, number];
|
|
454
|
+
readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
455
|
+
readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
456
|
+
readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
457
|
+
readonly conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
458
|
+
readonly conversation_updateGroupPinnedFrameUrl: (a: number, b: number, c: number) => any;
|
|
459
|
+
readonly conversation_groupPinnedFrameUrl: (a: number) => [number, number, number, number];
|
|
460
|
+
readonly conversation_createdAtNs: (a: number) => bigint;
|
|
461
|
+
readonly conversation_isActive: (a: number) => [number, number, number];
|
|
462
|
+
readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
463
|
+
readonly conversation_groupMetadata: (a: number) => any;
|
|
464
|
+
readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
465
|
+
readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
466
|
+
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
467
|
+
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
468
|
+
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
469
|
+
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
470
|
+
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
471
|
+
readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
472
|
+
readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
473
|
+
readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
474
|
+
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
475
|
+
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
476
|
+
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
477
|
+
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
478
|
+
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
479
|
+
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
480
|
+
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
481
|
+
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
482
|
+
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
483
|
+
readonly __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number) => number;
|
|
484
|
+
readonly __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number, b: number) => void;
|
|
485
|
+
readonly __wbg_get_permissionpolicyset_updateMessageExpirationPolicy: (a: number) => number;
|
|
486
|
+
readonly __wbg_set_permissionpolicyset_updateMessageExpirationPolicy: (a: number, b: number) => void;
|
|
487
|
+
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
488
|
+
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
489
|
+
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
490
|
+
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
354
491
|
readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
355
492
|
readonly __wbg_get_listconversationsoptions_allowedStates: (a: number) => [number, number];
|
|
356
493
|
readonly __wbg_set_listconversationsoptions_allowedStates: (a: number, b: number, c: number) => void;
|
|
357
494
|
readonly __wbg_get_listconversationsoptions_conversationType: (a: number) => number;
|
|
358
495
|
readonly __wbg_set_listconversationsoptions_conversationType: (a: number, b: number) => void;
|
|
359
|
-
readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
|
|
360
|
-
readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
|
|
361
|
-
readonly __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
|
|
362
|
-
readonly __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
363
496
|
readonly __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
|
|
364
497
|
readonly __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
365
498
|
readonly listconversationsoptions_new: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: bigint, h: number, i: bigint) => number;
|
|
@@ -376,7 +509,16 @@ export interface InitOutput {
|
|
|
376
509
|
readonly __wbg_set_creategroupoptions_groupPinnedFrameUrl: (a: number, b: number, c: number) => void;
|
|
377
510
|
readonly __wbg_get_creategroupoptions_customPermissionPolicySet: (a: number) => number;
|
|
378
511
|
readonly __wbg_set_creategroupoptions_customPermissionPolicySet: (a: number, b: number) => void;
|
|
379
|
-
readonly
|
|
512
|
+
readonly __wbg_get_creategroupoptions_messageExpirationFromMillis: (a: number) => [number, bigint];
|
|
513
|
+
readonly __wbg_set_creategroupoptions_messageExpirationFromMillis: (a: number, b: number, c: bigint) => void;
|
|
514
|
+
readonly __wbg_get_creategroupoptions_messageExpirationMillis: (a: number) => [number, bigint];
|
|
515
|
+
readonly __wbg_set_creategroupoptions_messageExpirationMillis: (a: number, b: number, c: bigint) => void;
|
|
516
|
+
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;
|
|
517
|
+
readonly __wbg_hmackey_free: (a: number, b: number) => void;
|
|
518
|
+
readonly __wbg_get_hmackey_key: (a: number) => [number, number];
|
|
519
|
+
readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
|
|
520
|
+
readonly __wbg_get_hmackey_epoch: (a: number) => bigint;
|
|
521
|
+
readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
|
|
380
522
|
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
381
523
|
readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
|
|
382
524
|
readonly conversations_createDm: (a: number, b: number, c: number) => any;
|
|
@@ -388,7 +530,10 @@ export interface InitOutput {
|
|
|
388
530
|
readonly conversations_list: (a: number, b: number) => [number, number, number];
|
|
389
531
|
readonly conversations_listGroups: (a: number, b: number) => [number, number, number];
|
|
390
532
|
readonly conversations_listDms: (a: number, b: number) => [number, number, number];
|
|
533
|
+
readonly conversations_getHmacKeys: (a: number) => [number, number, number];
|
|
391
534
|
readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
535
|
+
readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
536
|
+
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
392
537
|
readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
393
538
|
readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
394
539
|
readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
@@ -408,8 +553,6 @@ export interface InitOutput {
|
|
|
408
553
|
readonly __wbg_get_encodedcontent_content: (a: number) => any;
|
|
409
554
|
readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
410
555
|
readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
411
|
-
readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => any;
|
|
412
|
-
readonly generateInboxId: (a: number, b: number) => [number, number, number, number];
|
|
413
556
|
readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
|
|
414
557
|
readonly __wbg_get_listmessagesoptions_deliveryStatus: (a: number) => number;
|
|
415
558
|
readonly __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
|
|
@@ -419,8 +562,6 @@ export interface InitOutput {
|
|
|
419
562
|
readonly __wbg_message_free: (a: number, b: number) => void;
|
|
420
563
|
readonly __wbg_get_message_id: (a: number) => [number, number];
|
|
421
564
|
readonly __wbg_set_message_id: (a: number, b: number, c: number) => void;
|
|
422
|
-
readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
423
|
-
readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
424
565
|
readonly __wbg_get_message_convoId: (a: number) => [number, number];
|
|
425
566
|
readonly __wbg_set_message_convoId: (a: number, b: number, c: number) => void;
|
|
426
567
|
readonly __wbg_get_message_senderInboxId: (a: number) => [number, number];
|
|
@@ -432,151 +573,32 @@ export interface InitOutput {
|
|
|
432
573
|
readonly __wbg_get_message_deliveryStatus: (a: number) => number;
|
|
433
574
|
readonly __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
|
|
434
575
|
readonly message_new: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
435
|
-
readonly
|
|
436
|
-
readonly
|
|
437
|
-
readonly
|
|
438
|
-
readonly client_revokeWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
439
|
-
readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
440
|
-
readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
441
|
-
readonly client_addSignature: (a: number, b: number, c: any) => any;
|
|
442
|
-
readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
443
|
-
readonly client_applySignatureRequests: (a: number) => any;
|
|
444
|
-
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
445
|
-
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
446
|
-
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
447
|
-
readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
448
|
-
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
449
|
-
readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
450
|
-
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
576
|
+
readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
577
|
+
readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
|
|
578
|
+
readonly __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
451
579
|
readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
452
580
|
readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
453
581
|
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
454
|
-
readonly
|
|
455
|
-
readonly
|
|
456
|
-
readonly
|
|
457
|
-
readonly
|
|
458
|
-
readonly
|
|
459
|
-
readonly
|
|
460
|
-
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
461
|
-
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
462
|
-
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
463
|
-
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
464
|
-
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
465
|
-
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
466
|
-
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
467
|
-
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
468
|
-
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
469
|
-
readonly __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number) => number;
|
|
470
|
-
readonly __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number, b: number) => void;
|
|
471
|
-
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
472
|
-
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
473
|
-
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
474
|
-
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
475
|
-
readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
476
|
-
readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
477
|
-
readonly groupmetadata_conversationType: (a: number) => [number, number];
|
|
478
|
-
readonly __wbg_groupmember_free: (a: number, b: number) => void;
|
|
479
|
-
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
480
|
-
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
481
|
-
readonly __wbg_get_groupmember_accountAddresses: (a: number) => [number, number];
|
|
482
|
-
readonly __wbg_set_groupmember_accountAddresses: (a: number, b: number, c: number) => void;
|
|
483
|
-
readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
484
|
-
readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
|
|
485
|
-
readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
|
|
486
|
-
readonly __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
|
|
487
|
-
readonly __wbg_get_groupmember_consentState: (a: number) => number;
|
|
488
|
-
readonly __wbg_set_groupmember_consentState: (a: number, b: number) => void;
|
|
489
|
-
readonly groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
490
|
-
readonly __wbg_conversation_free: (a: number, b: number) => void;
|
|
491
|
-
readonly conversation_id: (a: number) => [number, number];
|
|
492
|
-
readonly conversation_send: (a: number, b: number) => any;
|
|
493
|
-
readonly conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
|
|
494
|
-
readonly conversation_publishMessages: (a: number) => any;
|
|
495
|
-
readonly conversation_sync: (a: number) => any;
|
|
496
|
-
readonly conversation_findMessages: (a: number, b: number) => any;
|
|
497
|
-
readonly conversation_listMembers: (a: number) => any;
|
|
498
|
-
readonly conversation_adminList: (a: number) => [number, number, number, number];
|
|
499
|
-
readonly conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
500
|
-
readonly conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
501
|
-
readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
502
|
-
readonly conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
503
|
-
readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
504
|
-
readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
505
|
-
readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
|
|
506
|
-
readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
|
|
507
|
-
readonly conversation_groupPermissions: (a: number) => [number, number, number];
|
|
508
|
-
readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
509
|
-
readonly conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
510
|
-
readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
511
|
-
readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
512
|
-
readonly conversation_groupName: (a: number) => [number, number, number, number];
|
|
513
|
-
readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
514
|
-
readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
515
|
-
readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
516
|
-
readonly conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
517
|
-
readonly conversation_updateGroupPinnedFrameUrl: (a: number, b: number, c: number) => any;
|
|
518
|
-
readonly conversation_groupPinnedFrameUrl: (a: number) => [number, number, number, number];
|
|
519
|
-
readonly conversation_createdAtNs: (a: number) => bigint;
|
|
520
|
-
readonly conversation_isActive: (a: number) => [number, number, number];
|
|
521
|
-
readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
522
|
-
readonly conversation_groupMetadata: (a: number) => any;
|
|
523
|
-
readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
524
|
-
readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
525
|
-
readonly __wbg_installation_free: (a: number, b: number) => void;
|
|
526
|
-
readonly __wbg_get_installation_bytes: (a: number) => any;
|
|
527
|
-
readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
|
|
528
|
-
readonly __wbg_get_installation_id: (a: number) => [number, number];
|
|
529
|
-
readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
530
|
-
readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
|
|
531
|
-
readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
532
|
-
readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
|
|
533
|
-
readonly __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
534
|
-
readonly __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
|
|
535
|
-
readonly __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
|
|
536
|
-
readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
537
|
-
readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
|
|
538
|
-
readonly __wbg_get_inboxstate_accountAddresses: (a: number) => [number, number];
|
|
539
|
-
readonly __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
|
|
540
|
-
readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
541
|
-
readonly client_inboxState: (a: number, b: number) => any;
|
|
542
|
-
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
543
|
-
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
544
|
-
readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
545
|
-
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
546
|
-
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
547
|
-
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
548
|
-
readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
549
|
-
readonly __wbg_get_logoptions_performance: (a: number) => number;
|
|
550
|
-
readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
551
|
-
readonly __wbg_get_logoptions_level: (a: number) => number;
|
|
552
|
-
readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
553
|
-
readonly logoptions_new: (a: number, b: number, c: number) => number;
|
|
554
|
-
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;
|
|
555
|
-
readonly client_accountAddress: (a: number) => [number, number];
|
|
556
|
-
readonly client_inboxId: (a: number) => [number, number];
|
|
557
|
-
readonly client_isRegistered: (a: number) => number;
|
|
558
|
-
readonly client_installationId: (a: number) => [number, number];
|
|
559
|
-
readonly client_installationIdBytes: (a: number) => any;
|
|
560
|
-
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
561
|
-
readonly client_registerIdentity: (a: number) => any;
|
|
562
|
-
readonly client_sendHistorySyncRequest: (a: number) => any;
|
|
563
|
-
readonly client_sendConsentSyncRequest: (a: number) => any;
|
|
564
|
-
readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
|
|
565
|
-
readonly client_conversations: (a: number) => number;
|
|
582
|
+
readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
583
|
+
readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
|
|
584
|
+
readonly __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
|
|
585
|
+
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
586
|
+
readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
587
|
+
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
566
588
|
readonly __wbg_version_free: (a: number, b: number) => void;
|
|
567
589
|
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
568
590
|
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
569
591
|
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
592
|
+
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
593
|
+
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
594
|
+
readonly intounderlyingsink_close: (a: number) => any;
|
|
595
|
+
readonly intounderlyingsink_abort: (a: number, b: any) => any;
|
|
570
596
|
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
571
597
|
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
572
598
|
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
573
599
|
readonly intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
574
600
|
readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
575
601
|
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
576
|
-
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
577
|
-
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
578
|
-
readonly intounderlyingsink_close: (a: number) => any;
|
|
579
|
-
readonly intounderlyingsink_abort: (a: number, b: any) => any;
|
|
580
602
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
581
603
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
582
604
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
@@ -586,8 +608,8 @@ export interface InitOutput {
|
|
|
586
608
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
587
609
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
588
610
|
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
589
|
-
readonly
|
|
590
|
-
readonly
|
|
611
|
+
readonly closure2568_externref_shim: (a: number, b: number, c: any) => void;
|
|
612
|
+
readonly closure3670_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
591
613
|
readonly __wbindgen_start: () => void;
|
|
592
614
|
}
|
|
593
615
|
|