@xmtp/wasm-bindings 0.0.10 → 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 +184 -159
- package/dist/bindings_wasm.js +333 -197
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +153 -139
- 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,6 @@ type ReadableStreamType = "bytes";
|
|
|
84
84
|
export class Client {
|
|
85
85
|
private constructor();
|
|
86
86
|
free(): void;
|
|
87
|
-
setConsentStates(records: (Consent)[]): Promise<void>;
|
|
88
|
-
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
89
|
-
createInboxSignatureText(): Promise<string | undefined>;
|
|
90
|
-
addWalletSignatureText(new_wallet_address: string): Promise<string>;
|
|
91
|
-
revokeWalletSignatureText(wallet_address: string): Promise<string>;
|
|
92
|
-
revokeAllOtherInstallationsSignatureText(): Promise<string>;
|
|
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;
|
|
99
87
|
canMessage(account_addresses: (string)[]): Promise<any>;
|
|
100
88
|
registerIdentity(): Promise<void>;
|
|
101
89
|
sendHistorySyncRequest(): Promise<void>;
|
|
@@ -112,6 +100,18 @@ export class Client {
|
|
|
112
100
|
*/
|
|
113
101
|
inboxState(refresh_from_network: boolean): Promise<InboxState>;
|
|
114
102
|
getLatestInboxState(inbox_id: string): Promise<InboxState>;
|
|
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;
|
|
@@ -189,19 +189,22 @@ export class Conversations {
|
|
|
189
189
|
findMessageById(message_id: string): Message;
|
|
190
190
|
sync(): Promise<void>;
|
|
191
191
|
syncAllConversations(): Promise<number>;
|
|
192
|
-
list(opts?: ListConversationsOptions):
|
|
193
|
-
listGroups(opts?: ListConversationsOptions):
|
|
194
|
-
listDms(opts?: ListConversationsOptions):
|
|
192
|
+
list(opts?: ListConversationsOptions): Array<any>;
|
|
193
|
+
listGroups(opts?: ListConversationsOptions): Array<any>;
|
|
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)[]);
|
|
@@ -243,7 +252,8 @@ export class InboxState {
|
|
|
243
252
|
}
|
|
244
253
|
export class Installation {
|
|
245
254
|
free(): void;
|
|
246
|
-
constructor(id: string, client_timestamp_ns?: bigint);
|
|
255
|
+
constructor(bytes: Uint8Array, id: string, client_timestamp_ns?: bigint);
|
|
256
|
+
bytes: Uint8Array;
|
|
247
257
|
id: string;
|
|
248
258
|
clientTimestampNs?: bigint;
|
|
249
259
|
}
|
|
@@ -319,7 +329,7 @@ export class Message {
|
|
|
319
329
|
}
|
|
320
330
|
export class PermissionPolicySet {
|
|
321
331
|
free(): void;
|
|
322
|
-
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);
|
|
323
333
|
addMemberPolicy: PermissionPolicy;
|
|
324
334
|
removeMemberPolicy: PermissionPolicy;
|
|
325
335
|
addAdminPolicy: PermissionPolicy;
|
|
@@ -328,6 +338,7 @@ export class PermissionPolicySet {
|
|
|
328
338
|
updateGroupDescriptionPolicy: PermissionPolicy;
|
|
329
339
|
updateGroupImageUrlSquarePolicy: PermissionPolicy;
|
|
330
340
|
updateGroupPinnedFrameUrlPolicy: PermissionPolicy;
|
|
341
|
+
updateMessageExpirationPolicy: PermissionPolicy;
|
|
331
342
|
}
|
|
332
343
|
export class Version {
|
|
333
344
|
private constructor();
|
|
@@ -338,118 +349,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
338
349
|
|
|
339
350
|
export interface InitOutput {
|
|
340
351
|
readonly memory: WebAssembly.Memory;
|
|
341
|
-
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
342
|
-
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
343
|
-
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
344
|
-
readonly __wbg_get_consent_state: (a: number) => number;
|
|
345
|
-
readonly __wbg_set_consent_state: (a: number, b: number) => void;
|
|
346
|
-
readonly __wbg_get_consent_entity: (a: number) => [number, number];
|
|
347
|
-
readonly __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
|
|
348
|
-
readonly consent_new: (a: number, b: number, c: number, d: number) => number;
|
|
349
|
-
readonly client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
350
|
-
readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
351
|
-
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
352
|
-
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
353
|
-
readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
354
|
-
readonly __wbg_get_listconversationsoptions_allowedStates: (a: number) => [number, number];
|
|
355
|
-
readonly __wbg_set_listconversationsoptions_allowedStates: (a: number, b: number, c: number) => void;
|
|
356
|
-
readonly __wbg_get_listconversationsoptions_conversationType: (a: number) => number;
|
|
357
|
-
readonly __wbg_set_listconversationsoptions_conversationType: (a: number, b: number) => void;
|
|
358
|
-
readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
|
|
359
|
-
readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
|
|
360
|
-
readonly __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
|
|
361
|
-
readonly __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
362
|
-
readonly __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
|
|
363
|
-
readonly __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
364
|
-
readonly listconversationsoptions_new: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: bigint, h: number, i: bigint) => number;
|
|
365
|
-
readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
|
|
366
|
-
readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
|
|
367
|
-
readonly __wbg_set_creategroupoptions_permissions: (a: number, b: number) => void;
|
|
368
|
-
readonly __wbg_get_creategroupoptions_groupName: (a: number) => [number, number];
|
|
369
|
-
readonly __wbg_set_creategroupoptions_groupName: (a: number, b: number, c: number) => void;
|
|
370
|
-
readonly __wbg_get_creategroupoptions_groupImageUrlSquare: (a: number) => [number, number];
|
|
371
|
-
readonly __wbg_set_creategroupoptions_groupImageUrlSquare: (a: number, b: number, c: number) => void;
|
|
372
|
-
readonly __wbg_get_creategroupoptions_groupDescription: (a: number) => [number, number];
|
|
373
|
-
readonly __wbg_set_creategroupoptions_groupDescription: (a: number, b: number, c: number) => void;
|
|
374
|
-
readonly __wbg_get_creategroupoptions_groupPinnedFrameUrl: (a: number) => [number, number];
|
|
375
|
-
readonly __wbg_set_creategroupoptions_groupPinnedFrameUrl: (a: number, b: number, c: number) => void;
|
|
376
|
-
readonly __wbg_get_creategroupoptions_customPermissionPolicySet: (a: number) => number;
|
|
377
|
-
readonly __wbg_set_creategroupoptions_customPermissionPolicySet: (a: number, b: number) => void;
|
|
378
|
-
readonly creategroupoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
379
|
-
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
380
|
-
readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
|
|
381
|
-
readonly conversations_createDm: (a: number, b: number, c: number) => any;
|
|
382
|
-
readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
|
|
383
|
-
readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
|
|
384
|
-
readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
385
|
-
readonly conversations_sync: (a: number) => any;
|
|
386
|
-
readonly conversations_syncAllConversations: (a: number) => any;
|
|
387
|
-
readonly conversations_list: (a: number, b: number) => any;
|
|
388
|
-
readonly conversations_listGroups: (a: number, b: number) => any;
|
|
389
|
-
readonly conversations_listDms: (a: number, b: number) => any;
|
|
390
|
-
readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
391
|
-
readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
392
|
-
readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
393
|
-
readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
394
|
-
readonly __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
|
|
395
|
-
readonly __wbg_get_contenttypeid_versionMinor: (a: number) => number;
|
|
396
|
-
readonly __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
|
|
397
|
-
readonly contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
398
|
-
readonly __wbg_encodedcontent_free: (a: number, b: number) => void;
|
|
399
|
-
readonly __wbg_get_encodedcontent_type: (a: number) => number;
|
|
400
|
-
readonly __wbg_set_encodedcontent_type: (a: number, b: number) => void;
|
|
401
|
-
readonly __wbg_get_encodedcontent_parameters: (a: number) => any;
|
|
402
|
-
readonly __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
|
|
403
|
-
readonly __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
|
|
404
|
-
readonly __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
|
|
405
|
-
readonly __wbg_get_encodedcontent_compression: (a: number) => number;
|
|
406
|
-
readonly __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
|
|
407
|
-
readonly __wbg_get_encodedcontent_content: (a: number) => any;
|
|
408
|
-
readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
409
|
-
readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
410
|
-
readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => any;
|
|
411
|
-
readonly generateInboxId: (a: number, b: number) => [number, number, number, number];
|
|
412
|
-
readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
|
|
413
|
-
readonly __wbg_get_listmessagesoptions_deliveryStatus: (a: number) => number;
|
|
414
|
-
readonly __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
|
|
415
|
-
readonly __wbg_get_listmessagesoptions_direction: (a: number) => number;
|
|
416
|
-
readonly __wbg_set_listmessagesoptions_direction: (a: number, b: number) => void;
|
|
417
|
-
readonly listmessagesoptions_new: (a: number, b: bigint, c: number, d: bigint, e: number, f: bigint, g: number, h: number) => number;
|
|
418
|
-
readonly __wbg_message_free: (a: number, b: number) => void;
|
|
419
|
-
readonly __wbg_get_message_id: (a: number) => [number, number];
|
|
420
|
-
readonly __wbg_set_message_id: (a: number, b: number, c: number) => void;
|
|
421
|
-
readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
422
|
-
readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
423
|
-
readonly __wbg_get_message_convoId: (a: number) => [number, number];
|
|
424
|
-
readonly __wbg_set_message_convoId: (a: number, b: number, c: number) => void;
|
|
425
|
-
readonly __wbg_get_message_senderInboxId: (a: number) => [number, number];
|
|
426
|
-
readonly __wbg_set_message_senderInboxId: (a: number, b: number, c: number) => void;
|
|
427
|
-
readonly __wbg_get_message_content: (a: number) => number;
|
|
428
|
-
readonly __wbg_set_message_content: (a: number, b: number) => void;
|
|
429
|
-
readonly __wbg_get_message_kind: (a: number) => number;
|
|
430
|
-
readonly __wbg_set_message_kind: (a: number, b: number) => void;
|
|
431
|
-
readonly __wbg_get_message_deliveryStatus: (a: number) => number;
|
|
432
|
-
readonly __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
|
|
433
|
-
readonly message_new: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
434
|
-
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
435
|
-
readonly client_createInboxSignatureText: (a: number) => any;
|
|
436
|
-
readonly client_addWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
437
|
-
readonly client_revokeWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
438
|
-
readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
439
|
-
readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
440
|
-
readonly client_addSignature: (a: number, b: number, c: any) => any;
|
|
441
|
-
readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
442
|
-
readonly client_applySignatureRequests: (a: number) => any;
|
|
443
|
-
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
444
|
-
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
445
|
-
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
446
|
-
readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
447
|
-
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
448
|
-
readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
449
|
-
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
450
|
-
readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
451
|
-
readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
452
|
-
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
453
352
|
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
454
353
|
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
455
354
|
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
@@ -471,12 +370,55 @@ export interface InitOutput {
|
|
|
471
370
|
readonly client_sendConsentSyncRequest: (a: number) => any;
|
|
472
371
|
readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
|
|
473
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];
|
|
406
|
+
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
407
|
+
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
408
|
+
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
409
|
+
readonly __wbg_get_consent_state: (a: number) => number;
|
|
410
|
+
readonly __wbg_set_consent_state: (a: number, b: number) => void;
|
|
411
|
+
readonly __wbg_get_consent_entity: (a: number) => [number, number];
|
|
412
|
+
readonly __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
|
|
413
|
+
readonly consent_new: (a: number, b: number, c: number, d: number) => number;
|
|
414
|
+
readonly client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
415
|
+
readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
416
|
+
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
417
|
+
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
474
418
|
readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
475
419
|
readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
476
420
|
readonly groupmetadata_conversationType: (a: number) => [number, number];
|
|
477
421
|
readonly __wbg_groupmember_free: (a: number, b: number) => void;
|
|
478
|
-
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
479
|
-
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
480
422
|
readonly __wbg_get_groupmember_accountAddresses: (a: number) => [number, number];
|
|
481
423
|
readonly __wbg_set_groupmember_accountAddresses: (a: number, b: number, c: number) => void;
|
|
482
424
|
readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
@@ -521,24 +463,8 @@ export interface InitOutput {
|
|
|
521
463
|
readonly conversation_groupMetadata: (a: number) => any;
|
|
522
464
|
readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
523
465
|
readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
524
|
-
readonly
|
|
525
|
-
readonly
|
|
526
|
-
readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
527
|
-
readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
|
|
528
|
-
readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
529
|
-
readonly installation_new: (a: number, b: number, c: number, d: bigint) => number;
|
|
530
|
-
readonly __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
531
|
-
readonly __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
|
|
532
|
-
readonly __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
|
|
533
|
-
readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
534
|
-
readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
|
|
535
|
-
readonly __wbg_get_inboxstate_accountAddresses: (a: number) => [number, number];
|
|
536
|
-
readonly __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
|
|
537
|
-
readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
538
|
-
readonly client_inboxState: (a: number, b: number) => any;
|
|
539
|
-
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
540
|
-
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
541
|
-
readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
466
|
+
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
467
|
+
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
542
468
|
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
543
469
|
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
544
470
|
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
@@ -556,24 +482,123 @@ export interface InitOutput {
|
|
|
556
482
|
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
557
483
|
readonly __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number) => number;
|
|
558
484
|
readonly __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number, b: number) => void;
|
|
559
|
-
readonly
|
|
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;
|
|
560
488
|
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
561
489
|
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
562
490
|
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
491
|
+
readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
492
|
+
readonly __wbg_get_listconversationsoptions_allowedStates: (a: number) => [number, number];
|
|
493
|
+
readonly __wbg_set_listconversationsoptions_allowedStates: (a: number, b: number, c: number) => void;
|
|
494
|
+
readonly __wbg_get_listconversationsoptions_conversationType: (a: number) => number;
|
|
495
|
+
readonly __wbg_set_listconversationsoptions_conversationType: (a: number, b: number) => void;
|
|
496
|
+
readonly __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
|
|
497
|
+
readonly __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
498
|
+
readonly listconversationsoptions_new: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: bigint, h: number, i: bigint) => number;
|
|
499
|
+
readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
|
|
500
|
+
readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
|
|
501
|
+
readonly __wbg_set_creategroupoptions_permissions: (a: number, b: number) => void;
|
|
502
|
+
readonly __wbg_get_creategroupoptions_groupName: (a: number) => [number, number];
|
|
503
|
+
readonly __wbg_set_creategroupoptions_groupName: (a: number, b: number, c: number) => void;
|
|
504
|
+
readonly __wbg_get_creategroupoptions_groupImageUrlSquare: (a: number) => [number, number];
|
|
505
|
+
readonly __wbg_set_creategroupoptions_groupImageUrlSquare: (a: number, b: number, c: number) => void;
|
|
506
|
+
readonly __wbg_get_creategroupoptions_groupDescription: (a: number) => [number, number];
|
|
507
|
+
readonly __wbg_set_creategroupoptions_groupDescription: (a: number, b: number, c: number) => void;
|
|
508
|
+
readonly __wbg_get_creategroupoptions_groupPinnedFrameUrl: (a: number) => [number, number];
|
|
509
|
+
readonly __wbg_set_creategroupoptions_groupPinnedFrameUrl: (a: number, b: number, c: number) => void;
|
|
510
|
+
readonly __wbg_get_creategroupoptions_customPermissionPolicySet: (a: number) => number;
|
|
511
|
+
readonly __wbg_set_creategroupoptions_customPermissionPolicySet: (a: number, b: number) => void;
|
|
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;
|
|
522
|
+
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
523
|
+
readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
|
|
524
|
+
readonly conversations_createDm: (a: number, b: number, c: number) => any;
|
|
525
|
+
readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
|
|
526
|
+
readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
|
|
527
|
+
readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
528
|
+
readonly conversations_sync: (a: number) => any;
|
|
529
|
+
readonly conversations_syncAllConversations: (a: number) => any;
|
|
530
|
+
readonly conversations_list: (a: number, b: number) => [number, number, number];
|
|
531
|
+
readonly conversations_listGroups: (a: number, b: number) => [number, number, number];
|
|
532
|
+
readonly conversations_listDms: (a: number, b: number) => [number, number, number];
|
|
533
|
+
readonly conversations_getHmacKeys: (a: number) => [number, number, number];
|
|
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;
|
|
537
|
+
readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
538
|
+
readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
539
|
+
readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
540
|
+
readonly __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
|
|
541
|
+
readonly __wbg_get_contenttypeid_versionMinor: (a: number) => number;
|
|
542
|
+
readonly __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
|
|
543
|
+
readonly contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
544
|
+
readonly __wbg_encodedcontent_free: (a: number, b: number) => void;
|
|
545
|
+
readonly __wbg_get_encodedcontent_type: (a: number) => number;
|
|
546
|
+
readonly __wbg_set_encodedcontent_type: (a: number, b: number) => void;
|
|
547
|
+
readonly __wbg_get_encodedcontent_parameters: (a: number) => any;
|
|
548
|
+
readonly __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
|
|
549
|
+
readonly __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
|
|
550
|
+
readonly __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
|
|
551
|
+
readonly __wbg_get_encodedcontent_compression: (a: number) => number;
|
|
552
|
+
readonly __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
|
|
553
|
+
readonly __wbg_get_encodedcontent_content: (a: number) => any;
|
|
554
|
+
readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
555
|
+
readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
556
|
+
readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
|
|
557
|
+
readonly __wbg_get_listmessagesoptions_deliveryStatus: (a: number) => number;
|
|
558
|
+
readonly __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
|
|
559
|
+
readonly __wbg_get_listmessagesoptions_direction: (a: number) => number;
|
|
560
|
+
readonly __wbg_set_listmessagesoptions_direction: (a: number, b: number) => void;
|
|
561
|
+
readonly listmessagesoptions_new: (a: number, b: bigint, c: number, d: bigint, e: number, f: bigint, g: number, h: number) => number;
|
|
562
|
+
readonly __wbg_message_free: (a: number, b: number) => void;
|
|
563
|
+
readonly __wbg_get_message_id: (a: number) => [number, number];
|
|
564
|
+
readonly __wbg_set_message_id: (a: number, b: number, c: number) => void;
|
|
565
|
+
readonly __wbg_get_message_convoId: (a: number) => [number, number];
|
|
566
|
+
readonly __wbg_set_message_convoId: (a: number, b: number, c: number) => void;
|
|
567
|
+
readonly __wbg_get_message_senderInboxId: (a: number) => [number, number];
|
|
568
|
+
readonly __wbg_set_message_senderInboxId: (a: number, b: number, c: number) => void;
|
|
569
|
+
readonly __wbg_get_message_content: (a: number) => number;
|
|
570
|
+
readonly __wbg_set_message_content: (a: number, b: number) => void;
|
|
571
|
+
readonly __wbg_get_message_kind: (a: number) => number;
|
|
572
|
+
readonly __wbg_set_message_kind: (a: number, b: number) => void;
|
|
573
|
+
readonly __wbg_get_message_deliveryStatus: (a: number) => number;
|
|
574
|
+
readonly __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
|
|
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;
|
|
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;
|
|
579
|
+
readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
580
|
+
readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
581
|
+
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
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];
|
|
563
588
|
readonly __wbg_version_free: (a: number, b: number) => void;
|
|
564
589
|
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
565
590
|
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
566
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;
|
|
567
596
|
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
568
597
|
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
569
598
|
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
570
599
|
readonly intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
571
600
|
readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
572
601
|
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
573
|
-
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
574
|
-
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
575
|
-
readonly intounderlyingsink_close: (a: number) => any;
|
|
576
|
-
readonly intounderlyingsink_abort: (a: number, b: any) => any;
|
|
577
602
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
578
603
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
579
604
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
@@ -583,8 +608,8 @@ export interface InitOutput {
|
|
|
583
608
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
584
609
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
585
610
|
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
586
|
-
readonly
|
|
587
|
-
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;
|
|
588
613
|
readonly __wbindgen_start: () => void;
|
|
589
614
|
}
|
|
590
615
|
|