@xmtp/wasm-bindings 0.0.8 → 0.0.9
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 +156 -156
- package/dist/bindings_wasm.js +201 -198
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +135 -135
- 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>;
|
|
4
3
|
export function getInboxIdForAddress(host: string, account_address: string): Promise<string | undefined>;
|
|
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, 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,
|
|
@@ -84,22 +84,6 @@ type ReadableStreamType = "bytes";
|
|
|
84
84
|
export class Client {
|
|
85
85
|
private constructor();
|
|
86
86
|
free(): void;
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
* * Get the client's inbox state.
|
|
90
|
-
* *
|
|
91
|
-
* * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
|
|
92
|
-
* * Otherwise, the state will be read from the local database.
|
|
93
|
-
*
|
|
94
|
-
*/
|
|
95
|
-
inboxState(refresh_from_network: boolean): Promise<InboxState>;
|
|
96
|
-
getLatestInboxState(inbox_id: string): Promise<InboxState>;
|
|
97
|
-
canMessage(account_addresses: (string)[]): Promise<any>;
|
|
98
|
-
registerIdentity(): Promise<void>;
|
|
99
|
-
sendHistorySyncRequest(): Promise<void>;
|
|
100
|
-
sendConsentSyncRequest(): Promise<void>;
|
|
101
|
-
findInboxIdByAddress(address: string): Promise<string | undefined>;
|
|
102
|
-
conversations(): Conversations;
|
|
103
87
|
setConsentStates(records: (Consent)[]): Promise<void>;
|
|
104
88
|
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
105
89
|
createInboxSignatureText(): Promise<string | undefined>;
|
|
@@ -111,6 +95,22 @@ export class Client {
|
|
|
111
95
|
applySignatureRequests(): Promise<void>;
|
|
112
96
|
signWithInstallationKey(signature_text: string): Uint8Array;
|
|
113
97
|
verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
|
|
98
|
+
canMessage(account_addresses: (string)[]): Promise<any>;
|
|
99
|
+
registerIdentity(): Promise<void>;
|
|
100
|
+
sendHistorySyncRequest(): Promise<void>;
|
|
101
|
+
sendConsentSyncRequest(): Promise<void>;
|
|
102
|
+
findInboxIdByAddress(address: string): Promise<string | undefined>;
|
|
103
|
+
conversations(): Conversations;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* * Get the client's inbox state.
|
|
107
|
+
* *
|
|
108
|
+
* * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
|
|
109
|
+
* * Otherwise, the state will be read from the local database.
|
|
110
|
+
*
|
|
111
|
+
*/
|
|
112
|
+
inboxState(refresh_from_network: boolean): Promise<InboxState>;
|
|
113
|
+
getLatestInboxState(inbox_id: string): Promise<InboxState>;
|
|
114
114
|
readonly accountAddress: string;
|
|
115
115
|
readonly inboxId: string;
|
|
116
116
|
readonly isRegistered: boolean;
|
|
@@ -135,6 +135,8 @@ export class ContentTypeId {
|
|
|
135
135
|
export class Conversation {
|
|
136
136
|
private constructor();
|
|
137
137
|
free(): void;
|
|
138
|
+
consentState(): ConsentState;
|
|
139
|
+
updateConsentState(state: ConsentState): void;
|
|
138
140
|
id(): string;
|
|
139
141
|
send(encoded_content: EncodedContent): Promise<string>;
|
|
140
142
|
/**
|
|
@@ -146,7 +148,7 @@ export class Conversation {
|
|
|
146
148
|
*/
|
|
147
149
|
publishMessages(): Promise<void>;
|
|
148
150
|
sync(): Promise<void>;
|
|
149
|
-
findMessages(opts?: ListMessagesOptions): (Message)[]
|
|
151
|
+
findMessages(opts?: ListMessagesOptions): Promise<(Message)[]>;
|
|
150
152
|
listMembers(): Promise<any>;
|
|
151
153
|
adminList(): (string)[];
|
|
152
154
|
superAdminList(): (string)[];
|
|
@@ -172,11 +174,9 @@ export class Conversation {
|
|
|
172
174
|
createdAtNs(): bigint;
|
|
173
175
|
isActive(): boolean;
|
|
174
176
|
addedByInboxId(): string;
|
|
175
|
-
groupMetadata(): GroupMetadata
|
|
177
|
+
groupMetadata(): Promise<GroupMetadata>;
|
|
176
178
|
dmPeerInboxId(): string;
|
|
177
179
|
updatePermissionPolicy(permission_update_type: PermissionUpdateType, permission_policy_option: PermissionPolicy, metadata_field?: MetadataField): Promise<void>;
|
|
178
|
-
consentState(): ConsentState;
|
|
179
|
-
updateConsentState(state: ConsentState): void;
|
|
180
180
|
}
|
|
181
181
|
export class Conversations {
|
|
182
182
|
private constructor();
|
|
@@ -337,95 +337,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
337
337
|
|
|
338
338
|
export interface InitOutput {
|
|
339
339
|
readonly memory: WebAssembly.Memory;
|
|
340
|
-
readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
341
|
-
readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
342
|
-
readonly groupmetadata_conversationType: (a: number) => [number, number];
|
|
343
|
-
readonly __wbg_groupmember_free: (a: number, b: number) => void;
|
|
344
|
-
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
345
|
-
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
346
|
-
readonly __wbg_get_groupmember_accountAddresses: (a: number) => [number, number];
|
|
347
|
-
readonly __wbg_set_groupmember_accountAddresses: (a: number, b: number, c: number) => void;
|
|
348
|
-
readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
349
|
-
readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
|
|
350
|
-
readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
|
|
351
|
-
readonly __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
|
|
352
|
-
readonly __wbg_get_groupmember_consentState: (a: number) => number;
|
|
353
|
-
readonly __wbg_set_groupmember_consentState: (a: number, b: number) => void;
|
|
354
|
-
readonly groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
355
|
-
readonly __wbg_conversation_free: (a: number, b: number) => void;
|
|
356
|
-
readonly conversation_id: (a: number) => [number, number];
|
|
357
|
-
readonly conversation_send: (a: number, b: number) => any;
|
|
358
|
-
readonly conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
|
|
359
|
-
readonly conversation_publishMessages: (a: number) => any;
|
|
360
|
-
readonly conversation_sync: (a: number) => any;
|
|
361
|
-
readonly conversation_findMessages: (a: number, b: number) => [number, number, number, number];
|
|
362
|
-
readonly conversation_listMembers: (a: number) => any;
|
|
363
|
-
readonly conversation_adminList: (a: number) => [number, number, number, number];
|
|
364
|
-
readonly conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
365
|
-
readonly conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
366
|
-
readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
367
|
-
readonly conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
368
|
-
readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
369
|
-
readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
370
|
-
readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
|
|
371
|
-
readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
|
|
372
|
-
readonly conversation_groupPermissions: (a: number) => [number, number, number];
|
|
373
|
-
readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
374
|
-
readonly conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
375
|
-
readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
376
|
-
readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
377
|
-
readonly conversation_groupName: (a: number) => [number, number, number, number];
|
|
378
|
-
readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
379
|
-
readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
380
|
-
readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
381
|
-
readonly conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
382
|
-
readonly conversation_updateGroupPinnedFrameUrl: (a: number, b: number, c: number) => any;
|
|
383
|
-
readonly conversation_groupPinnedFrameUrl: (a: number) => [number, number, number, number];
|
|
384
|
-
readonly conversation_createdAtNs: (a: number) => bigint;
|
|
385
|
-
readonly conversation_isActive: (a: number) => [number, number, number];
|
|
386
|
-
readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
387
|
-
readonly conversation_groupMetadata: (a: number) => [number, number, number];
|
|
388
|
-
readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
389
|
-
readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
390
|
-
readonly __wbg_installation_free: (a: number, b: number) => void;
|
|
391
|
-
readonly __wbg_get_installation_id: (a: number) => [number, number];
|
|
392
|
-
readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
393
|
-
readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
|
|
394
|
-
readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
395
|
-
readonly installation_new: (a: number, b: number, c: number, d: bigint) => number;
|
|
396
|
-
readonly __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
397
|
-
readonly __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
|
|
398
|
-
readonly __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
|
|
399
|
-
readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
400
|
-
readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
|
|
401
|
-
readonly __wbg_get_inboxstate_accountAddresses: (a: number) => [number, number];
|
|
402
|
-
readonly __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
|
|
403
|
-
readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
404
|
-
readonly client_inboxState: (a: number, b: number) => any;
|
|
405
|
-
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
406
|
-
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
407
|
-
readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
408
|
-
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
409
|
-
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
410
|
-
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
411
|
-
readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
412
|
-
readonly __wbg_get_logoptions_performance: (a: number) => number;
|
|
413
|
-
readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
414
|
-
readonly __wbg_get_logoptions_level: (a: number) => number;
|
|
415
|
-
readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
416
|
-
readonly logoptions_new: (a: number, b: number, c: number) => number;
|
|
417
|
-
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;
|
|
418
|
-
readonly client_accountAddress: (a: number) => [number, number];
|
|
419
|
-
readonly client_inboxId: (a: number) => [number, number];
|
|
420
|
-
readonly client_isRegistered: (a: number) => number;
|
|
421
|
-
readonly client_installationId: (a: number) => [number, number];
|
|
422
|
-
readonly client_installationIdBytes: (a: number) => any;
|
|
423
|
-
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
424
|
-
readonly client_registerIdentity: (a: number) => any;
|
|
425
|
-
readonly client_sendHistorySyncRequest: (a: number) => any;
|
|
426
|
-
readonly client_sendConsentSyncRequest: (a: number) => any;
|
|
427
|
-
readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
|
|
428
|
-
readonly client_conversations: (a: number) => number;
|
|
429
340
|
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
430
341
|
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
431
342
|
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
@@ -438,6 +349,43 @@ export interface InitOutput {
|
|
|
438
349
|
readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
439
350
|
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
440
351
|
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
352
|
+
readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
353
|
+
readonly __wbg_get_listconversationsoptions_allowedStates: (a: number) => [number, number];
|
|
354
|
+
readonly __wbg_set_listconversationsoptions_allowedStates: (a: number, b: number, c: number) => void;
|
|
355
|
+
readonly __wbg_get_listconversationsoptions_conversationType: (a: number) => number;
|
|
356
|
+
readonly __wbg_set_listconversationsoptions_conversationType: (a: number, b: number) => void;
|
|
357
|
+
readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
|
|
358
|
+
readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
|
|
359
|
+
readonly __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
|
|
360
|
+
readonly __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
361
|
+
readonly __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
|
|
362
|
+
readonly __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
363
|
+
readonly listconversationsoptions_new: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: bigint, h: number, i: bigint) => number;
|
|
364
|
+
readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
|
|
365
|
+
readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
|
|
366
|
+
readonly __wbg_set_creategroupoptions_permissions: (a: number, b: number) => void;
|
|
367
|
+
readonly __wbg_get_creategroupoptions_groupName: (a: number) => [number, number];
|
|
368
|
+
readonly __wbg_set_creategroupoptions_groupName: (a: number, b: number, c: number) => void;
|
|
369
|
+
readonly __wbg_get_creategroupoptions_groupImageUrlSquare: (a: number) => [number, number];
|
|
370
|
+
readonly __wbg_set_creategroupoptions_groupImageUrlSquare: (a: number, b: number, c: number) => void;
|
|
371
|
+
readonly __wbg_get_creategroupoptions_groupDescription: (a: number) => [number, number];
|
|
372
|
+
readonly __wbg_set_creategroupoptions_groupDescription: (a: number, b: number, c: number) => void;
|
|
373
|
+
readonly __wbg_get_creategroupoptions_groupPinnedFrameUrl: (a: number) => [number, number];
|
|
374
|
+
readonly __wbg_set_creategroupoptions_groupPinnedFrameUrl: (a: number, b: number, c: number) => void;
|
|
375
|
+
readonly __wbg_get_creategroupoptions_customPermissionPolicySet: (a: number) => number;
|
|
376
|
+
readonly __wbg_set_creategroupoptions_customPermissionPolicySet: (a: number, b: number) => void;
|
|
377
|
+
readonly creategroupoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
378
|
+
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
379
|
+
readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
|
|
380
|
+
readonly conversations_createDm: (a: number, b: number, c: number) => any;
|
|
381
|
+
readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
|
|
382
|
+
readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
|
|
383
|
+
readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
384
|
+
readonly conversations_sync: (a: number) => any;
|
|
385
|
+
readonly conversations_syncAllConversations: (a: number) => any;
|
|
386
|
+
readonly conversations_list: (a: number, b: number) => any;
|
|
387
|
+
readonly conversations_listGroups: (a: number, b: number) => any;
|
|
388
|
+
readonly conversations_listDms: (a: number, b: number) => any;
|
|
441
389
|
readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
442
390
|
readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
443
391
|
readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
@@ -461,12 +409,6 @@ export interface InitOutput {
|
|
|
461
409
|
readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => any;
|
|
462
410
|
readonly generateInboxId: (a: number, b: number) => [number, number, number, number];
|
|
463
411
|
readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
|
|
464
|
-
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
465
|
-
readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
466
|
-
readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
467
|
-
readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
468
|
-
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
469
|
-
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
470
412
|
readonly __wbg_get_listmessagesoptions_deliveryStatus: (a: number) => number;
|
|
471
413
|
readonly __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
|
|
472
414
|
readonly __wbg_get_listmessagesoptions_direction: (a: number) => number;
|
|
@@ -498,45 +440,103 @@ export interface InitOutput {
|
|
|
498
440
|
readonly client_applySignatureRequests: (a: number) => any;
|
|
499
441
|
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
500
442
|
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
443
|
+
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
444
|
+
readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
445
|
+
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
446
|
+
readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
447
|
+
readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
448
|
+
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
501
449
|
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
502
450
|
readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
503
|
-
readonly
|
|
504
|
-
readonly
|
|
505
|
-
readonly
|
|
506
|
-
readonly
|
|
507
|
-
readonly
|
|
508
|
-
readonly
|
|
509
|
-
readonly
|
|
510
|
-
readonly
|
|
511
|
-
readonly
|
|
512
|
-
readonly
|
|
513
|
-
readonly
|
|
514
|
-
readonly
|
|
515
|
-
readonly
|
|
516
|
-
readonly
|
|
517
|
-
readonly
|
|
518
|
-
readonly
|
|
519
|
-
readonly
|
|
520
|
-
readonly
|
|
521
|
-
readonly
|
|
522
|
-
readonly
|
|
523
|
-
readonly
|
|
524
|
-
readonly
|
|
525
|
-
readonly
|
|
526
|
-
readonly
|
|
527
|
-
readonly
|
|
528
|
-
readonly
|
|
529
|
-
readonly
|
|
530
|
-
readonly
|
|
531
|
-
readonly
|
|
532
|
-
readonly
|
|
533
|
-
readonly
|
|
534
|
-
readonly
|
|
535
|
-
readonly
|
|
536
|
-
readonly
|
|
537
|
-
readonly
|
|
538
|
-
readonly
|
|
539
|
-
readonly
|
|
451
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
452
|
+
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
453
|
+
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
454
|
+
readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
455
|
+
readonly __wbg_get_logoptions_performance: (a: number) => number;
|
|
456
|
+
readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
457
|
+
readonly __wbg_get_logoptions_level: (a: number) => number;
|
|
458
|
+
readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
459
|
+
readonly logoptions_new: (a: number, b: number, c: number) => number;
|
|
460
|
+
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;
|
|
461
|
+
readonly client_accountAddress: (a: number) => [number, number];
|
|
462
|
+
readonly client_inboxId: (a: number) => [number, number];
|
|
463
|
+
readonly client_isRegistered: (a: number) => number;
|
|
464
|
+
readonly client_installationId: (a: number) => [number, number];
|
|
465
|
+
readonly client_installationIdBytes: (a: number) => any;
|
|
466
|
+
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
467
|
+
readonly client_registerIdentity: (a: number) => any;
|
|
468
|
+
readonly client_sendHistorySyncRequest: (a: number) => any;
|
|
469
|
+
readonly client_sendConsentSyncRequest: (a: number) => any;
|
|
470
|
+
readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
|
|
471
|
+
readonly client_conversations: (a: number) => number;
|
|
472
|
+
readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
473
|
+
readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
474
|
+
readonly groupmetadata_conversationType: (a: number) => [number, number];
|
|
475
|
+
readonly __wbg_groupmember_free: (a: number, b: number) => void;
|
|
476
|
+
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
477
|
+
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
478
|
+
readonly __wbg_get_groupmember_accountAddresses: (a: number) => [number, number];
|
|
479
|
+
readonly __wbg_set_groupmember_accountAddresses: (a: number, b: number, c: number) => void;
|
|
480
|
+
readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
481
|
+
readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
|
|
482
|
+
readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
|
|
483
|
+
readonly __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
|
|
484
|
+
readonly __wbg_get_groupmember_consentState: (a: number) => number;
|
|
485
|
+
readonly __wbg_set_groupmember_consentState: (a: number, b: number) => void;
|
|
486
|
+
readonly groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
487
|
+
readonly __wbg_conversation_free: (a: number, b: number) => void;
|
|
488
|
+
readonly conversation_id: (a: number) => [number, number];
|
|
489
|
+
readonly conversation_send: (a: number, b: number) => any;
|
|
490
|
+
readonly conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
|
|
491
|
+
readonly conversation_publishMessages: (a: number) => any;
|
|
492
|
+
readonly conversation_sync: (a: number) => any;
|
|
493
|
+
readonly conversation_findMessages: (a: number, b: number) => any;
|
|
494
|
+
readonly conversation_listMembers: (a: number) => any;
|
|
495
|
+
readonly conversation_adminList: (a: number) => [number, number, number, number];
|
|
496
|
+
readonly conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
497
|
+
readonly conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
498
|
+
readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
499
|
+
readonly conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
500
|
+
readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
501
|
+
readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
502
|
+
readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
|
|
503
|
+
readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
|
|
504
|
+
readonly conversation_groupPermissions: (a: number) => [number, number, number];
|
|
505
|
+
readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
506
|
+
readonly conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
507
|
+
readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
508
|
+
readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
509
|
+
readonly conversation_groupName: (a: number) => [number, number, number, number];
|
|
510
|
+
readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
511
|
+
readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
512
|
+
readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
513
|
+
readonly conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
514
|
+
readonly conversation_updateGroupPinnedFrameUrl: (a: number, b: number, c: number) => any;
|
|
515
|
+
readonly conversation_groupPinnedFrameUrl: (a: number) => [number, number, number, number];
|
|
516
|
+
readonly conversation_createdAtNs: (a: number) => bigint;
|
|
517
|
+
readonly conversation_isActive: (a: number) => [number, number, number];
|
|
518
|
+
readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
519
|
+
readonly conversation_groupMetadata: (a: number) => any;
|
|
520
|
+
readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
521
|
+
readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
522
|
+
readonly __wbg_installation_free: (a: number, b: number) => void;
|
|
523
|
+
readonly __wbg_get_installation_id: (a: number) => [number, number];
|
|
524
|
+
readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
525
|
+
readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
|
|
526
|
+
readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
527
|
+
readonly installation_new: (a: number, b: number, c: number, d: bigint) => number;
|
|
528
|
+
readonly __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
529
|
+
readonly __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
|
|
530
|
+
readonly __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
|
|
531
|
+
readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
532
|
+
readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
|
|
533
|
+
readonly __wbg_get_inboxstate_accountAddresses: (a: number) => [number, number];
|
|
534
|
+
readonly __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
|
|
535
|
+
readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
536
|
+
readonly client_inboxState: (a: number, b: number) => any;
|
|
537
|
+
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
538
|
+
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
539
|
+
readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
540
540
|
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
541
541
|
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
542
542
|
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
@@ -579,10 +579,10 @@ export interface InitOutput {
|
|
|
579
579
|
readonly __externref_table_alloc: () => number;
|
|
580
580
|
readonly __wbindgen_export_5: WebAssembly.Table;
|
|
581
581
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
582
|
-
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
583
582
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
584
|
-
readonly
|
|
585
|
-
readonly
|
|
583
|
+
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
584
|
+
readonly closure2519_externref_shim: (a: number, b: number, c: any) => void;
|
|
585
|
+
readonly closure3613_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
586
586
|
readonly __wbindgen_start: () => void;
|
|
587
587
|
}
|
|
588
588
|
|
package/dist/bindings_wasm.js
CHANGED
|
@@ -200,17 +200,6 @@ function debugString(val) {
|
|
|
200
200
|
return className;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
function getArrayJsValueFromWasm0(ptr, len) {
|
|
204
|
-
ptr = ptr >>> 0;
|
|
205
|
-
const mem = getDataViewMemory0();
|
|
206
|
-
const result = [];
|
|
207
|
-
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
208
|
-
result.push(wasm.__wbindgen_export_5.get(mem.getUint32(i, true)));
|
|
209
|
-
}
|
|
210
|
-
wasm.__externref_drop_slice(ptr, len);
|
|
211
|
-
return result;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
203
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
215
204
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
216
205
|
const mem = getDataViewMemory0();
|
|
@@ -221,47 +210,28 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
221
210
|
return ptr;
|
|
222
211
|
}
|
|
223
212
|
|
|
224
|
-
function _assertClass(instance, klass) {
|
|
225
|
-
if (!(instance instanceof klass)) {
|
|
226
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
213
|
function takeFromExternrefTable0(idx) {
|
|
231
214
|
const value = wasm.__wbindgen_export_5.get(idx);
|
|
232
215
|
wasm.__externref_table_dealloc(idx);
|
|
233
216
|
return value;
|
|
234
217
|
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
*
|
|
241
|
-
|
|
242
|
-
* @param {LogOptions | undefined} [log_options]
|
|
243
|
-
* @returns {Promise<Client>}
|
|
244
|
-
*/
|
|
245
|
-
export function createClient(host, inbox_id, account_address, db_path, encryption_key, history_sync_url, log_options) {
|
|
246
|
-
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
247
|
-
const len0 = WASM_VECTOR_LEN;
|
|
248
|
-
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
249
|
-
const len1 = WASM_VECTOR_LEN;
|
|
250
|
-
const ptr2 = passStringToWasm0(account_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
251
|
-
const len2 = WASM_VECTOR_LEN;
|
|
252
|
-
var ptr3 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
253
|
-
var len3 = WASM_VECTOR_LEN;
|
|
254
|
-
var ptr4 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
255
|
-
var len4 = WASM_VECTOR_LEN;
|
|
256
|
-
let ptr5 = 0;
|
|
257
|
-
if (!isLikeNone(log_options)) {
|
|
258
|
-
_assertClass(log_options, LogOptions);
|
|
259
|
-
ptr5 = log_options.__destroy_into_raw();
|
|
218
|
+
|
|
219
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
220
|
+
ptr = ptr >>> 0;
|
|
221
|
+
const mem = getDataViewMemory0();
|
|
222
|
+
const result = [];
|
|
223
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
224
|
+
result.push(wasm.__wbindgen_export_5.get(mem.getUint32(i, true)));
|
|
260
225
|
}
|
|
261
|
-
|
|
262
|
-
return
|
|
226
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
227
|
+
return result;
|
|
263
228
|
}
|
|
264
229
|
|
|
230
|
+
function _assertClass(instance, klass) {
|
|
231
|
+
if (!(instance instanceof klass)) {
|
|
232
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
265
235
|
/**
|
|
266
236
|
* @param {string} host
|
|
267
237
|
* @param {string} account_address
|
|
@@ -315,12 +285,42 @@ export function verifySignedWithPublicKey(signature_text, signature_bytes, publi
|
|
|
315
285
|
}
|
|
316
286
|
}
|
|
317
287
|
|
|
318
|
-
|
|
319
|
-
|
|
288
|
+
/**
|
|
289
|
+
* @param {string} host
|
|
290
|
+
* @param {string} inbox_id
|
|
291
|
+
* @param {string} account_address
|
|
292
|
+
* @param {string | undefined} [db_path]
|
|
293
|
+
* @param {Uint8Array | undefined} [encryption_key]
|
|
294
|
+
* @param {string | undefined} [history_sync_url]
|
|
295
|
+
* @param {LogOptions | undefined} [log_options]
|
|
296
|
+
* @returns {Promise<Client>}
|
|
297
|
+
*/
|
|
298
|
+
export function createClient(host, inbox_id, account_address, db_path, encryption_key, history_sync_url, log_options) {
|
|
299
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
300
|
+
const len0 = WASM_VECTOR_LEN;
|
|
301
|
+
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
302
|
+
const len1 = WASM_VECTOR_LEN;
|
|
303
|
+
const ptr2 = passStringToWasm0(account_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
304
|
+
const len2 = WASM_VECTOR_LEN;
|
|
305
|
+
var ptr3 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
306
|
+
var len3 = WASM_VECTOR_LEN;
|
|
307
|
+
var ptr4 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
308
|
+
var len4 = WASM_VECTOR_LEN;
|
|
309
|
+
let ptr5 = 0;
|
|
310
|
+
if (!isLikeNone(log_options)) {
|
|
311
|
+
_assertClass(log_options, LogOptions);
|
|
312
|
+
ptr5 = log_options.__destroy_into_raw();
|
|
313
|
+
}
|
|
314
|
+
const ret = wasm.createClient(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr4, len4, ptr5);
|
|
315
|
+
return ret;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
319
|
+
wasm.closure2519_externref_shim(arg0, arg1, arg2);
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
function
|
|
323
|
-
wasm.
|
|
322
|
+
function __wbg_adapter_575(arg0, arg1, arg2, arg3) {
|
|
323
|
+
wasm.closure3613_externref_shim(arg0, arg1, arg2, arg3);
|
|
324
324
|
}
|
|
325
325
|
|
|
326
326
|
/**
|
|
@@ -467,29 +467,112 @@ export class Client {
|
|
|
467
467
|
wasm.__wbg_client_free(ptr, 0);
|
|
468
468
|
}
|
|
469
469
|
/**
|
|
470
|
-
*
|
|
471
|
-
*
|
|
472
|
-
* *
|
|
473
|
-
* * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
|
|
474
|
-
* * Otherwise, the state will be read from the local database.
|
|
475
|
-
*
|
|
476
|
-
* @param {boolean} refresh_from_network
|
|
477
|
-
* @returns {Promise<InboxState>}
|
|
470
|
+
* @param {(Consent)[]} records
|
|
471
|
+
* @returns {Promise<void>}
|
|
478
472
|
*/
|
|
479
|
-
|
|
480
|
-
const
|
|
473
|
+
setConsentStates(records) {
|
|
474
|
+
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
475
|
+
const len0 = WASM_VECTOR_LEN;
|
|
476
|
+
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
481
477
|
return ret;
|
|
482
478
|
}
|
|
483
479
|
/**
|
|
484
|
-
* @param {
|
|
485
|
-
* @
|
|
480
|
+
* @param {ConsentEntityType} entity_type
|
|
481
|
+
* @param {string} entity
|
|
482
|
+
* @returns {Promise<ConsentState>}
|
|
486
483
|
*/
|
|
487
|
-
|
|
488
|
-
const ptr0 = passStringToWasm0(
|
|
484
|
+
getConsentState(entity_type, entity) {
|
|
485
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
489
486
|
const len0 = WASM_VECTOR_LEN;
|
|
490
|
-
const ret = wasm.
|
|
487
|
+
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
488
|
+
return ret;
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* @returns {Promise<string | undefined>}
|
|
492
|
+
*/
|
|
493
|
+
createInboxSignatureText() {
|
|
494
|
+
const ret = wasm.client_createInboxSignatureText(this.__wbg_ptr);
|
|
495
|
+
return ret;
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* @param {string} new_wallet_address
|
|
499
|
+
* @returns {Promise<string>}
|
|
500
|
+
*/
|
|
501
|
+
addWalletSignatureText(new_wallet_address) {
|
|
502
|
+
const ptr0 = passStringToWasm0(new_wallet_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
503
|
+
const len0 = WASM_VECTOR_LEN;
|
|
504
|
+
const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, ptr0, len0);
|
|
505
|
+
return ret;
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* @param {string} wallet_address
|
|
509
|
+
* @returns {Promise<string>}
|
|
510
|
+
*/
|
|
511
|
+
revokeWalletSignatureText(wallet_address) {
|
|
512
|
+
const ptr0 = passStringToWasm0(wallet_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
513
|
+
const len0 = WASM_VECTOR_LEN;
|
|
514
|
+
const ret = wasm.client_revokeWalletSignatureText(this.__wbg_ptr, ptr0, len0);
|
|
515
|
+
return ret;
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* @returns {Promise<string>}
|
|
519
|
+
*/
|
|
520
|
+
revokeInstallationsSignatureText() {
|
|
521
|
+
const ret = wasm.client_revokeInstallationsSignatureText(this.__wbg_ptr);
|
|
522
|
+
return ret;
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* @param {SignatureRequestType} signature_type
|
|
526
|
+
* @param {Uint8Array} signature_bytes
|
|
527
|
+
* @returns {Promise<void>}
|
|
528
|
+
*/
|
|
529
|
+
addSignature(signature_type, signature_bytes) {
|
|
530
|
+
const ret = wasm.client_addSignature(this.__wbg_ptr, signature_type, signature_bytes);
|
|
531
|
+
return ret;
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* @param {SignatureRequestType} signature_type
|
|
535
|
+
* @param {Uint8Array} signature_bytes
|
|
536
|
+
* @param {bigint} chain_id
|
|
537
|
+
* @param {bigint | undefined} [block_number]
|
|
538
|
+
* @returns {Promise<void>}
|
|
539
|
+
*/
|
|
540
|
+
addScwSignature(signature_type, signature_bytes, chain_id, block_number) {
|
|
541
|
+
const ret = wasm.client_addScwSignature(this.__wbg_ptr, signature_type, signature_bytes, chain_id, !isLikeNone(block_number), isLikeNone(block_number) ? BigInt(0) : block_number);
|
|
491
542
|
return ret;
|
|
492
543
|
}
|
|
544
|
+
/**
|
|
545
|
+
* @returns {Promise<void>}
|
|
546
|
+
*/
|
|
547
|
+
applySignatureRequests() {
|
|
548
|
+
const ret = wasm.client_applySignatureRequests(this.__wbg_ptr);
|
|
549
|
+
return ret;
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* @param {string} signature_text
|
|
553
|
+
* @returns {Uint8Array}
|
|
554
|
+
*/
|
|
555
|
+
signWithInstallationKey(signature_text) {
|
|
556
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
557
|
+
const len0 = WASM_VECTOR_LEN;
|
|
558
|
+
const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
|
|
559
|
+
if (ret[2]) {
|
|
560
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
561
|
+
}
|
|
562
|
+
return takeFromExternrefTable0(ret[0]);
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* @param {string} signature_text
|
|
566
|
+
* @param {Uint8Array} signature_bytes
|
|
567
|
+
*/
|
|
568
|
+
verifySignedWithInstallationKey(signature_text, signature_bytes) {
|
|
569
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
570
|
+
const len0 = WASM_VECTOR_LEN;
|
|
571
|
+
const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
|
|
572
|
+
if (ret[1]) {
|
|
573
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
574
|
+
}
|
|
575
|
+
}
|
|
493
576
|
/**
|
|
494
577
|
* @returns {string}
|
|
495
578
|
*/
|
|
@@ -598,112 +681,29 @@ export class Client {
|
|
|
598
681
|
return Conversations.__wrap(ret);
|
|
599
682
|
}
|
|
600
683
|
/**
|
|
601
|
-
*
|
|
602
|
-
*
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
}
|
|
610
|
-
/**
|
|
611
|
-
* @param {ConsentEntityType} entity_type
|
|
612
|
-
* @param {string} entity
|
|
613
|
-
* @returns {Promise<ConsentState>}
|
|
614
|
-
*/
|
|
615
|
-
getConsentState(entity_type, entity) {
|
|
616
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
617
|
-
const len0 = WASM_VECTOR_LEN;
|
|
618
|
-
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
619
|
-
return ret;
|
|
620
|
-
}
|
|
621
|
-
/**
|
|
622
|
-
* @returns {Promise<string | undefined>}
|
|
623
|
-
*/
|
|
624
|
-
createInboxSignatureText() {
|
|
625
|
-
const ret = wasm.client_createInboxSignatureText(this.__wbg_ptr);
|
|
626
|
-
return ret;
|
|
627
|
-
}
|
|
628
|
-
/**
|
|
629
|
-
* @param {string} new_wallet_address
|
|
630
|
-
* @returns {Promise<string>}
|
|
684
|
+
*
|
|
685
|
+
* * Get the client's inbox state.
|
|
686
|
+
* *
|
|
687
|
+
* * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
|
|
688
|
+
* * Otherwise, the state will be read from the local database.
|
|
689
|
+
*
|
|
690
|
+
* @param {boolean} refresh_from_network
|
|
691
|
+
* @returns {Promise<InboxState>}
|
|
631
692
|
*/
|
|
632
|
-
|
|
633
|
-
const
|
|
634
|
-
const len0 = WASM_VECTOR_LEN;
|
|
635
|
-
const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, ptr0, len0);
|
|
693
|
+
inboxState(refresh_from_network) {
|
|
694
|
+
const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
|
|
636
695
|
return ret;
|
|
637
696
|
}
|
|
638
697
|
/**
|
|
639
|
-
* @param {string}
|
|
640
|
-
* @returns {Promise<
|
|
698
|
+
* @param {string} inbox_id
|
|
699
|
+
* @returns {Promise<InboxState>}
|
|
641
700
|
*/
|
|
642
|
-
|
|
643
|
-
const ptr0 = passStringToWasm0(
|
|
701
|
+
getLatestInboxState(inbox_id) {
|
|
702
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
644
703
|
const len0 = WASM_VECTOR_LEN;
|
|
645
|
-
const ret = wasm.
|
|
646
|
-
return ret;
|
|
647
|
-
}
|
|
648
|
-
/**
|
|
649
|
-
* @returns {Promise<string>}
|
|
650
|
-
*/
|
|
651
|
-
revokeInstallationsSignatureText() {
|
|
652
|
-
const ret = wasm.client_revokeInstallationsSignatureText(this.__wbg_ptr);
|
|
653
|
-
return ret;
|
|
654
|
-
}
|
|
655
|
-
/**
|
|
656
|
-
* @param {SignatureRequestType} signature_type
|
|
657
|
-
* @param {Uint8Array} signature_bytes
|
|
658
|
-
* @returns {Promise<void>}
|
|
659
|
-
*/
|
|
660
|
-
addSignature(signature_type, signature_bytes) {
|
|
661
|
-
const ret = wasm.client_addSignature(this.__wbg_ptr, signature_type, signature_bytes);
|
|
662
|
-
return ret;
|
|
663
|
-
}
|
|
664
|
-
/**
|
|
665
|
-
* @param {SignatureRequestType} signature_type
|
|
666
|
-
* @param {Uint8Array} signature_bytes
|
|
667
|
-
* @param {bigint} chain_id
|
|
668
|
-
* @param {bigint | undefined} [block_number]
|
|
669
|
-
* @returns {Promise<void>}
|
|
670
|
-
*/
|
|
671
|
-
addScwSignature(signature_type, signature_bytes, chain_id, block_number) {
|
|
672
|
-
const ret = wasm.client_addScwSignature(this.__wbg_ptr, signature_type, signature_bytes, chain_id, !isLikeNone(block_number), isLikeNone(block_number) ? BigInt(0) : block_number);
|
|
673
|
-
return ret;
|
|
674
|
-
}
|
|
675
|
-
/**
|
|
676
|
-
* @returns {Promise<void>}
|
|
677
|
-
*/
|
|
678
|
-
applySignatureRequests() {
|
|
679
|
-
const ret = wasm.client_applySignatureRequests(this.__wbg_ptr);
|
|
704
|
+
const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
|
|
680
705
|
return ret;
|
|
681
706
|
}
|
|
682
|
-
/**
|
|
683
|
-
* @param {string} signature_text
|
|
684
|
-
* @returns {Uint8Array}
|
|
685
|
-
*/
|
|
686
|
-
signWithInstallationKey(signature_text) {
|
|
687
|
-
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
688
|
-
const len0 = WASM_VECTOR_LEN;
|
|
689
|
-
const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
|
|
690
|
-
if (ret[2]) {
|
|
691
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
692
|
-
}
|
|
693
|
-
return takeFromExternrefTable0(ret[0]);
|
|
694
|
-
}
|
|
695
|
-
/**
|
|
696
|
-
* @param {string} signature_text
|
|
697
|
-
* @param {Uint8Array} signature_bytes
|
|
698
|
-
*/
|
|
699
|
-
verifySignedWithInstallationKey(signature_text, signature_bytes) {
|
|
700
|
-
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
701
|
-
const len0 = WASM_VECTOR_LEN;
|
|
702
|
-
const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
|
|
703
|
-
if (ret[1]) {
|
|
704
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
707
|
}
|
|
708
708
|
|
|
709
709
|
const ConsentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -934,6 +934,25 @@ export class Conversation {
|
|
|
934
934
|
const ptr = this.__destroy_into_raw();
|
|
935
935
|
wasm.__wbg_conversation_free(ptr, 0);
|
|
936
936
|
}
|
|
937
|
+
/**
|
|
938
|
+
* @returns {ConsentState}
|
|
939
|
+
*/
|
|
940
|
+
consentState() {
|
|
941
|
+
const ret = wasm.conversation_consentState(this.__wbg_ptr);
|
|
942
|
+
if (ret[2]) {
|
|
943
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
944
|
+
}
|
|
945
|
+
return ret[0];
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* @param {ConsentState} state
|
|
949
|
+
*/
|
|
950
|
+
updateConsentState(state) {
|
|
951
|
+
const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
|
|
952
|
+
if (ret[1]) {
|
|
953
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
954
|
+
}
|
|
955
|
+
}
|
|
937
956
|
/**
|
|
938
957
|
* @returns {string}
|
|
939
958
|
*/
|
|
@@ -1001,7 +1020,7 @@ export class Conversation {
|
|
|
1001
1020
|
}
|
|
1002
1021
|
/**
|
|
1003
1022
|
* @param {ListMessagesOptions | undefined} [opts]
|
|
1004
|
-
* @returns {(Message)[]}
|
|
1023
|
+
* @returns {Promise<(Message)[]>}
|
|
1005
1024
|
*/
|
|
1006
1025
|
findMessages(opts) {
|
|
1007
1026
|
let ptr0 = 0;
|
|
@@ -1010,12 +1029,7 @@ export class Conversation {
|
|
|
1010
1029
|
ptr0 = opts.__destroy_into_raw();
|
|
1011
1030
|
}
|
|
1012
1031
|
const ret = wasm.conversation_findMessages(this.__wbg_ptr, ptr0);
|
|
1013
|
-
|
|
1014
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
1015
|
-
}
|
|
1016
|
-
var v2 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1017
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1018
|
-
return v2;
|
|
1032
|
+
return ret;
|
|
1019
1033
|
}
|
|
1020
1034
|
/**
|
|
1021
1035
|
* @returns {Promise<any>}
|
|
@@ -1327,14 +1341,11 @@ export class Conversation {
|
|
|
1327
1341
|
}
|
|
1328
1342
|
}
|
|
1329
1343
|
/**
|
|
1330
|
-
* @returns {GroupMetadata}
|
|
1344
|
+
* @returns {Promise<GroupMetadata>}
|
|
1331
1345
|
*/
|
|
1332
1346
|
groupMetadata() {
|
|
1333
1347
|
const ret = wasm.conversation_groupMetadata(this.__wbg_ptr);
|
|
1334
|
-
|
|
1335
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1336
|
-
}
|
|
1337
|
-
return GroupMetadata.__wrap(ret[0]);
|
|
1348
|
+
return ret;
|
|
1338
1349
|
}
|
|
1339
1350
|
/**
|
|
1340
1351
|
* @returns {string}
|
|
@@ -1367,25 +1378,6 @@ export class Conversation {
|
|
|
1367
1378
|
const ret = wasm.conversation_updatePermissionPolicy(this.__wbg_ptr, permission_update_type, permission_policy_option, isLikeNone(metadata_field) ? 4 : metadata_field);
|
|
1368
1379
|
return ret;
|
|
1369
1380
|
}
|
|
1370
|
-
/**
|
|
1371
|
-
* @returns {ConsentState}
|
|
1372
|
-
*/
|
|
1373
|
-
consentState() {
|
|
1374
|
-
const ret = wasm.conversation_consentState(this.__wbg_ptr);
|
|
1375
|
-
if (ret[2]) {
|
|
1376
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1377
|
-
}
|
|
1378
|
-
return ret[0];
|
|
1379
|
-
}
|
|
1380
|
-
/**
|
|
1381
|
-
* @param {ConsentState} state
|
|
1382
|
-
*/
|
|
1383
|
-
updateConsentState(state) {
|
|
1384
|
-
const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
|
|
1385
|
-
if (ret[1]) {
|
|
1386
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
1387
|
-
}
|
|
1388
|
-
}
|
|
1389
1381
|
}
|
|
1390
1382
|
|
|
1391
1383
|
const ConversationsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -2508,7 +2500,7 @@ export class ListMessagesOptions {
|
|
|
2508
2500
|
* @param {bigint | undefined} [arg0]
|
|
2509
2501
|
*/
|
|
2510
2502
|
set sentBeforeNs(arg0) {
|
|
2511
|
-
wasm.
|
|
2503
|
+
wasm.__wbg_set_listconversationsoptions_createdAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2512
2504
|
}
|
|
2513
2505
|
/**
|
|
2514
2506
|
* @returns {bigint | undefined}
|
|
@@ -2521,7 +2513,7 @@ export class ListMessagesOptions {
|
|
|
2521
2513
|
* @param {bigint | undefined} [arg0]
|
|
2522
2514
|
*/
|
|
2523
2515
|
set sentAfterNs(arg0) {
|
|
2524
|
-
wasm.
|
|
2516
|
+
wasm.__wbg_set_listconversationsoptions_createdBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2525
2517
|
}
|
|
2526
2518
|
/**
|
|
2527
2519
|
* @returns {bigint | undefined}
|
|
@@ -2534,7 +2526,7 @@ export class ListMessagesOptions {
|
|
|
2534
2526
|
* @param {bigint | undefined} [arg0]
|
|
2535
2527
|
*/
|
|
2536
2528
|
set limit(arg0) {
|
|
2537
|
-
wasm.
|
|
2529
|
+
wasm.__wbg_set_listconversationsoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2538
2530
|
}
|
|
2539
2531
|
/**
|
|
2540
2532
|
* @returns {DeliveryStatus | undefined}
|
|
@@ -3352,6 +3344,10 @@ function __wbg_get_imports() {
|
|
|
3352
3344
|
const ret = arg0[arg1];
|
|
3353
3345
|
return ret;
|
|
3354
3346
|
};
|
|
3347
|
+
imports.wbg.__wbg_groupmetadata_new = function(arg0) {
|
|
3348
|
+
const ret = GroupMetadata.__wrap(arg0);
|
|
3349
|
+
return ret;
|
|
3350
|
+
};
|
|
3355
3351
|
imports.wbg.__wbg_has_94c2fc1d261bbfe9 = function() { return handleError(function (arg0, arg1) {
|
|
3356
3352
|
const ret = Reflect.has(arg0, arg1);
|
|
3357
3353
|
return ret;
|
|
@@ -3485,7 +3481,7 @@ function __wbg_get_imports() {
|
|
|
3485
3481
|
const a = state0.a;
|
|
3486
3482
|
state0.a = 0;
|
|
3487
3483
|
try {
|
|
3488
|
-
return
|
|
3484
|
+
return __wbg_adapter_575(a, state0.b, arg0, arg1);
|
|
3489
3485
|
} finally {
|
|
3490
3486
|
state0.a = a;
|
|
3491
3487
|
}
|
|
@@ -3784,6 +3780,13 @@ function __wbg_get_imports() {
|
|
|
3784
3780
|
const ret = arg0.wasm;
|
|
3785
3781
|
return ret;
|
|
3786
3782
|
};
|
|
3783
|
+
imports.wbg.__wbindgen_array_new = function() {
|
|
3784
|
+
const ret = [];
|
|
3785
|
+
return ret;
|
|
3786
|
+
};
|
|
3787
|
+
imports.wbg.__wbindgen_array_push = function(arg0, arg1) {
|
|
3788
|
+
arg0.push(arg1);
|
|
3789
|
+
};
|
|
3787
3790
|
imports.wbg.__wbindgen_as_number = function(arg0) {
|
|
3788
3791
|
const ret = +arg0;
|
|
3789
3792
|
return ret;
|
|
@@ -3802,8 +3805,8 @@ function __wbg_get_imports() {
|
|
|
3802
3805
|
const ret = false;
|
|
3803
3806
|
return ret;
|
|
3804
3807
|
};
|
|
3805
|
-
imports.wbg.
|
|
3806
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3808
|
+
imports.wbg.__wbindgen_closure_wrapper11020 = function(arg0, arg1, arg2) {
|
|
3809
|
+
const ret = makeMutClosure(arg0, arg1, 2520, __wbg_adapter_50);
|
|
3807
3810
|
return ret;
|
|
3808
3811
|
};
|
|
3809
3812
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -1,95 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
5
|
-
export const groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
6
|
-
export const groupmetadata_conversationType: (a: number) => [number, number];
|
|
7
|
-
export const __wbg_groupmember_free: (a: number, b: number) => void;
|
|
8
|
-
export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
9
|
-
export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
10
|
-
export const __wbg_get_groupmember_accountAddresses: (a: number) => [number, number];
|
|
11
|
-
export const __wbg_set_groupmember_accountAddresses: (a: number, b: number, c: number) => void;
|
|
12
|
-
export const __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
13
|
-
export const __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
|
|
14
|
-
export const __wbg_get_groupmember_permissionLevel: (a: number) => number;
|
|
15
|
-
export const __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
|
|
16
|
-
export const __wbg_get_groupmember_consentState: (a: number) => number;
|
|
17
|
-
export const __wbg_set_groupmember_consentState: (a: number, b: number) => void;
|
|
18
|
-
export const groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
19
|
-
export const __wbg_conversation_free: (a: number, b: number) => void;
|
|
20
|
-
export const conversation_id: (a: number) => [number, number];
|
|
21
|
-
export const conversation_send: (a: number, b: number) => any;
|
|
22
|
-
export const conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
|
|
23
|
-
export const conversation_publishMessages: (a: number) => any;
|
|
24
|
-
export const conversation_sync: (a: number) => any;
|
|
25
|
-
export const conversation_findMessages: (a: number, b: number) => [number, number, number, number];
|
|
26
|
-
export const conversation_listMembers: (a: number) => any;
|
|
27
|
-
export const conversation_adminList: (a: number) => [number, number, number, number];
|
|
28
|
-
export const conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
29
|
-
export const conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
30
|
-
export const conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
31
|
-
export const conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
32
|
-
export const conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
33
|
-
export const conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
34
|
-
export const conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
|
|
35
|
-
export const conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
|
|
36
|
-
export const conversation_groupPermissions: (a: number) => [number, number, number];
|
|
37
|
-
export const conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
38
|
-
export const conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
39
|
-
export const conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
40
|
-
export const conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
41
|
-
export const conversation_groupName: (a: number) => [number, number, number, number];
|
|
42
|
-
export const conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
43
|
-
export const conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
44
|
-
export const conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
45
|
-
export const conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
46
|
-
export const conversation_updateGroupPinnedFrameUrl: (a: number, b: number, c: number) => any;
|
|
47
|
-
export const conversation_groupPinnedFrameUrl: (a: number) => [number, number, number, number];
|
|
48
|
-
export const conversation_createdAtNs: (a: number) => bigint;
|
|
49
|
-
export const conversation_isActive: (a: number) => [number, number, number];
|
|
50
|
-
export const conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
51
|
-
export const conversation_groupMetadata: (a: number) => [number, number, number];
|
|
52
|
-
export const conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
53
|
-
export const conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
54
|
-
export const __wbg_installation_free: (a: number, b: number) => void;
|
|
55
|
-
export const __wbg_get_installation_id: (a: number) => [number, number];
|
|
56
|
-
export const __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
57
|
-
export const __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
|
|
58
|
-
export const __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
59
|
-
export const installation_new: (a: number, b: number, c: number, d: bigint) => number;
|
|
60
|
-
export const __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
61
|
-
export const __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
|
|
62
|
-
export const __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
|
|
63
|
-
export const __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
64
|
-
export const __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
|
|
65
|
-
export const __wbg_get_inboxstate_accountAddresses: (a: number) => [number, number];
|
|
66
|
-
export const __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
|
|
67
|
-
export const inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
68
|
-
export const client_inboxState: (a: number, b: number) => any;
|
|
69
|
-
export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
70
|
-
export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
71
|
-
export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
72
|
-
export const __wbg_client_free: (a: number, b: number) => void;
|
|
73
|
-
export const __wbg_logoptions_free: (a: number, b: number) => void;
|
|
74
|
-
export const __wbg_get_logoptions_structured: (a: number) => number;
|
|
75
|
-
export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
76
|
-
export const __wbg_get_logoptions_performance: (a: number) => number;
|
|
77
|
-
export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
78
|
-
export const __wbg_get_logoptions_level: (a: number) => number;
|
|
79
|
-
export const __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
80
|
-
export const logoptions_new: (a: number, b: number, c: number) => number;
|
|
81
|
-
export const 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;
|
|
82
|
-
export const client_accountAddress: (a: number) => [number, number];
|
|
83
|
-
export const client_inboxId: (a: number) => [number, number];
|
|
84
|
-
export const client_isRegistered: (a: number) => number;
|
|
85
|
-
export const client_installationId: (a: number) => [number, number];
|
|
86
|
-
export const client_installationIdBytes: (a: number) => any;
|
|
87
|
-
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
88
|
-
export const client_registerIdentity: (a: number) => any;
|
|
89
|
-
export const client_sendHistorySyncRequest: (a: number) => any;
|
|
90
|
-
export const client_sendConsentSyncRequest: (a: number) => any;
|
|
91
|
-
export const client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
|
|
92
|
-
export const client_conversations: (a: number) => number;
|
|
93
4
|
export const __wbg_consent_free: (a: number, b: number) => void;
|
|
94
5
|
export const __wbg_get_consent_entityType: (a: number) => number;
|
|
95
6
|
export const __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
@@ -102,6 +13,43 @@ export const client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
|
102
13
|
export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
103
14
|
export const conversation_consentState: (a: number) => [number, number, number];
|
|
104
15
|
export const conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
16
|
+
export const __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
17
|
+
export const __wbg_get_listconversationsoptions_allowedStates: (a: number) => [number, number];
|
|
18
|
+
export const __wbg_set_listconversationsoptions_allowedStates: (a: number, b: number, c: number) => void;
|
|
19
|
+
export const __wbg_get_listconversationsoptions_conversationType: (a: number) => number;
|
|
20
|
+
export const __wbg_set_listconversationsoptions_conversationType: (a: number, b: number) => void;
|
|
21
|
+
export const __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
|
|
22
|
+
export const __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
|
|
23
|
+
export const __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
|
|
24
|
+
export const __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
25
|
+
export const __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
|
|
26
|
+
export const __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
27
|
+
export const listconversationsoptions_new: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: bigint, h: number, i: bigint) => number;
|
|
28
|
+
export const __wbg_creategroupoptions_free: (a: number, b: number) => void;
|
|
29
|
+
export const __wbg_get_creategroupoptions_permissions: (a: number) => number;
|
|
30
|
+
export const __wbg_set_creategroupoptions_permissions: (a: number, b: number) => void;
|
|
31
|
+
export const __wbg_get_creategroupoptions_groupName: (a: number) => [number, number];
|
|
32
|
+
export const __wbg_set_creategroupoptions_groupName: (a: number, b: number, c: number) => void;
|
|
33
|
+
export const __wbg_get_creategroupoptions_groupImageUrlSquare: (a: number) => [number, number];
|
|
34
|
+
export const __wbg_set_creategroupoptions_groupImageUrlSquare: (a: number, b: number, c: number) => void;
|
|
35
|
+
export const __wbg_get_creategroupoptions_groupDescription: (a: number) => [number, number];
|
|
36
|
+
export const __wbg_set_creategroupoptions_groupDescription: (a: number, b: number, c: number) => void;
|
|
37
|
+
export const __wbg_get_creategroupoptions_groupPinnedFrameUrl: (a: number) => [number, number];
|
|
38
|
+
export const __wbg_set_creategroupoptions_groupPinnedFrameUrl: (a: number, b: number, c: number) => void;
|
|
39
|
+
export const __wbg_get_creategroupoptions_customPermissionPolicySet: (a: number) => number;
|
|
40
|
+
export const __wbg_set_creategroupoptions_customPermissionPolicySet: (a: number, b: number) => void;
|
|
41
|
+
export const creategroupoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
42
|
+
export const __wbg_conversations_free: (a: number, b: number) => void;
|
|
43
|
+
export const conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
|
|
44
|
+
export const conversations_createDm: (a: number, b: number, c: number) => any;
|
|
45
|
+
export const conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
|
|
46
|
+
export const conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
|
|
47
|
+
export const conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
48
|
+
export const conversations_sync: (a: number) => any;
|
|
49
|
+
export const conversations_syncAllConversations: (a: number) => any;
|
|
50
|
+
export const conversations_list: (a: number, b: number) => any;
|
|
51
|
+
export const conversations_listGroups: (a: number, b: number) => any;
|
|
52
|
+
export const conversations_listDms: (a: number, b: number) => any;
|
|
105
53
|
export const __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
106
54
|
export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
107
55
|
export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
@@ -125,12 +73,6 @@ export const encodedcontent_new: (a: number, b: any, c: number, d: number, e: nu
|
|
|
125
73
|
export const getInboxIdForAddress: (a: number, b: number, c: number, d: number) => any;
|
|
126
74
|
export const generateInboxId: (a: number, b: number) => [number, number, number, number];
|
|
127
75
|
export const __wbg_listmessagesoptions_free: (a: number, b: number) => void;
|
|
128
|
-
export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
129
|
-
export const __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
130
|
-
export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
131
|
-
export const __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
132
|
-
export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
133
|
-
export const __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
134
76
|
export const __wbg_get_listmessagesoptions_deliveryStatus: (a: number) => number;
|
|
135
77
|
export const __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
|
|
136
78
|
export const __wbg_get_listmessagesoptions_direction: (a: number) => number;
|
|
@@ -162,45 +104,103 @@ export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e
|
|
|
162
104
|
export const client_applySignatureRequests: (a: number) => any;
|
|
163
105
|
export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
164
106
|
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
107
|
+
export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
108
|
+
export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
109
|
+
export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
110
|
+
export const __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
111
|
+
export const __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
112
|
+
export const __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
165
113
|
export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
166
114
|
export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
167
|
-
export const
|
|
168
|
-
export const
|
|
169
|
-
export const
|
|
170
|
-
export const
|
|
171
|
-
export const
|
|
172
|
-
export const
|
|
173
|
-
export const
|
|
174
|
-
export const
|
|
175
|
-
export const
|
|
176
|
-
export const
|
|
177
|
-
export const
|
|
178
|
-
export const
|
|
179
|
-
export const
|
|
180
|
-
export const
|
|
181
|
-
export const
|
|
182
|
-
export const
|
|
183
|
-
export const
|
|
184
|
-
export const
|
|
185
|
-
export const
|
|
186
|
-
export const
|
|
187
|
-
export const
|
|
188
|
-
export const
|
|
189
|
-
export const
|
|
190
|
-
export const
|
|
191
|
-
export const
|
|
192
|
-
export const
|
|
193
|
-
export const
|
|
194
|
-
export const
|
|
195
|
-
export const
|
|
196
|
-
export const
|
|
197
|
-
export const
|
|
198
|
-
export const
|
|
199
|
-
export const
|
|
200
|
-
export const
|
|
201
|
-
export const
|
|
202
|
-
export const
|
|
203
|
-
export const
|
|
115
|
+
export const __wbg_client_free: (a: number, b: number) => void;
|
|
116
|
+
export const __wbg_logoptions_free: (a: number, b: number) => void;
|
|
117
|
+
export const __wbg_get_logoptions_structured: (a: number) => number;
|
|
118
|
+
export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
119
|
+
export const __wbg_get_logoptions_performance: (a: number) => number;
|
|
120
|
+
export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
121
|
+
export const __wbg_get_logoptions_level: (a: number) => number;
|
|
122
|
+
export const __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
123
|
+
export const logoptions_new: (a: number, b: number, c: number) => number;
|
|
124
|
+
export const 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;
|
|
125
|
+
export const client_accountAddress: (a: number) => [number, number];
|
|
126
|
+
export const client_inboxId: (a: number) => [number, number];
|
|
127
|
+
export const client_isRegistered: (a: number) => number;
|
|
128
|
+
export const client_installationId: (a: number) => [number, number];
|
|
129
|
+
export const client_installationIdBytes: (a: number) => any;
|
|
130
|
+
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
131
|
+
export const client_registerIdentity: (a: number) => any;
|
|
132
|
+
export const client_sendHistorySyncRequest: (a: number) => any;
|
|
133
|
+
export const client_sendConsentSyncRequest: (a: number) => any;
|
|
134
|
+
export const client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
|
|
135
|
+
export const client_conversations: (a: number) => number;
|
|
136
|
+
export const __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
137
|
+
export const groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
138
|
+
export const groupmetadata_conversationType: (a: number) => [number, number];
|
|
139
|
+
export const __wbg_groupmember_free: (a: number, b: number) => void;
|
|
140
|
+
export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
141
|
+
export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
142
|
+
export const __wbg_get_groupmember_accountAddresses: (a: number) => [number, number];
|
|
143
|
+
export const __wbg_set_groupmember_accountAddresses: (a: number, b: number, c: number) => void;
|
|
144
|
+
export const __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
145
|
+
export const __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
|
|
146
|
+
export const __wbg_get_groupmember_permissionLevel: (a: number) => number;
|
|
147
|
+
export const __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
|
|
148
|
+
export const __wbg_get_groupmember_consentState: (a: number) => number;
|
|
149
|
+
export const __wbg_set_groupmember_consentState: (a: number, b: number) => void;
|
|
150
|
+
export const groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
151
|
+
export const __wbg_conversation_free: (a: number, b: number) => void;
|
|
152
|
+
export const conversation_id: (a: number) => [number, number];
|
|
153
|
+
export const conversation_send: (a: number, b: number) => any;
|
|
154
|
+
export const conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
|
|
155
|
+
export const conversation_publishMessages: (a: number) => any;
|
|
156
|
+
export const conversation_sync: (a: number) => any;
|
|
157
|
+
export const conversation_findMessages: (a: number, b: number) => any;
|
|
158
|
+
export const conversation_listMembers: (a: number) => any;
|
|
159
|
+
export const conversation_adminList: (a: number) => [number, number, number, number];
|
|
160
|
+
export const conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
161
|
+
export const conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
162
|
+
export const conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
163
|
+
export const conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
164
|
+
export const conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
165
|
+
export const conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
166
|
+
export const conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
|
|
167
|
+
export const conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
|
|
168
|
+
export const conversation_groupPermissions: (a: number) => [number, number, number];
|
|
169
|
+
export const conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
170
|
+
export const conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
171
|
+
export const conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
172
|
+
export const conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
173
|
+
export const conversation_groupName: (a: number) => [number, number, number, number];
|
|
174
|
+
export const conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
175
|
+
export const conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
176
|
+
export const conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
177
|
+
export const conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
178
|
+
export const conversation_updateGroupPinnedFrameUrl: (a: number, b: number, c: number) => any;
|
|
179
|
+
export const conversation_groupPinnedFrameUrl: (a: number) => [number, number, number, number];
|
|
180
|
+
export const conversation_createdAtNs: (a: number) => bigint;
|
|
181
|
+
export const conversation_isActive: (a: number) => [number, number, number];
|
|
182
|
+
export const conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
183
|
+
export const conversation_groupMetadata: (a: number) => any;
|
|
184
|
+
export const conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
185
|
+
export const conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
186
|
+
export const __wbg_installation_free: (a: number, b: number) => void;
|
|
187
|
+
export const __wbg_get_installation_id: (a: number) => [number, number];
|
|
188
|
+
export const __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
189
|
+
export const __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
|
|
190
|
+
export const __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
191
|
+
export const installation_new: (a: number, b: number, c: number, d: bigint) => number;
|
|
192
|
+
export const __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
193
|
+
export const __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
|
|
194
|
+
export const __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
|
|
195
|
+
export const __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
196
|
+
export const __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
|
|
197
|
+
export const __wbg_get_inboxstate_accountAddresses: (a: number) => [number, number];
|
|
198
|
+
export const __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
|
|
199
|
+
export const inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
200
|
+
export const client_inboxState: (a: number, b: number) => any;
|
|
201
|
+
export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
202
|
+
export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
203
|
+
export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
204
204
|
export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
205
205
|
export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
206
206
|
export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
@@ -243,8 +243,8 @@ export const __wbindgen_exn_store: (a: number) => void;
|
|
|
243
243
|
export const __externref_table_alloc: () => number;
|
|
244
244
|
export const __wbindgen_export_5: WebAssembly.Table;
|
|
245
245
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
246
|
-
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
247
246
|
export const __externref_table_dealloc: (a: number) => void;
|
|
248
|
-
export const
|
|
249
|
-
export const
|
|
247
|
+
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
248
|
+
export const closure2519_externref_shim: (a: number, b: number, c: any) => void;
|
|
249
|
+
export const closure3613_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
250
250
|
export const __wbindgen_start: () => void;
|