@xmtp/wasm-bindings 0.0.1 → 0.0.2
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 +206 -146
- package/dist/bindings_wasm.js +1279 -1139
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +121 -109
- package/package.json +5 -2
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* @param {string} host
|
|
5
|
-
* @param {string} inbox_id
|
|
6
|
-
* @param {string} account_address
|
|
7
|
-
* @param {string} db_path
|
|
8
|
-
* @param {Uint8Array | undefined} [encryption_key]
|
|
9
|
-
* @param {string | undefined} [history_sync_url]
|
|
10
|
-
* @returns {Promise<WasmClient>}
|
|
11
|
-
*/
|
|
12
|
-
export function createClient(host: string, inbox_id: string, account_address: string, db_path: string, encryption_key?: Uint8Array, history_sync_url?: string): Promise<WasmClient>;
|
|
13
3
|
/**
|
|
14
4
|
* @param {string} host
|
|
15
5
|
* @param {string} account_address
|
|
@@ -21,6 +11,16 @@ export function getInboxIdForAddress(host: string, account_address: string): Pro
|
|
|
21
11
|
* @returns {string}
|
|
22
12
|
*/
|
|
23
13
|
export function generateInboxId(account_address: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* @param {string} host
|
|
16
|
+
* @param {string} inbox_id
|
|
17
|
+
* @param {string} account_address
|
|
18
|
+
* @param {string} db_path
|
|
19
|
+
* @param {Uint8Array | undefined} [encryption_key]
|
|
20
|
+
* @param {string | undefined} [history_sync_url]
|
|
21
|
+
* @returns {Promise<WasmClient>}
|
|
22
|
+
*/
|
|
23
|
+
export function createClient(host: string, inbox_id: string, account_address: string, db_path: string, encryption_key?: Uint8Array, history_sync_url?: string): Promise<WasmClient>;
|
|
24
24
|
/**
|
|
25
25
|
* Handler for `console.log` invocations.
|
|
26
26
|
*
|
|
@@ -65,11 +65,25 @@ export enum WasmConsentState {
|
|
|
65
65
|
Allowed = 1,
|
|
66
66
|
Denied = 2,
|
|
67
67
|
}
|
|
68
|
+
export enum WasmConversationType {
|
|
69
|
+
Dm = 0,
|
|
70
|
+
Group = 1,
|
|
71
|
+
Sync = 2,
|
|
72
|
+
}
|
|
68
73
|
export enum WasmDeliveryStatus {
|
|
69
74
|
Unpublished = 0,
|
|
70
75
|
Published = 1,
|
|
71
76
|
Failed = 2,
|
|
72
77
|
}
|
|
78
|
+
export enum WasmDirection {
|
|
79
|
+
Ascending = 0,
|
|
80
|
+
Descending = 1,
|
|
81
|
+
}
|
|
82
|
+
export enum WasmGroupMembershipState {
|
|
83
|
+
Allowed = 0,
|
|
84
|
+
Rejected = 1,
|
|
85
|
+
Pending = 2,
|
|
86
|
+
}
|
|
73
87
|
export enum WasmGroupMessageKind {
|
|
74
88
|
Application = 0,
|
|
75
89
|
MembershipChange = 1,
|
|
@@ -188,15 +202,6 @@ export class WasmBindgenTestContext {
|
|
|
188
202
|
}
|
|
189
203
|
export class WasmClient {
|
|
190
204
|
free(): void;
|
|
191
|
-
/**
|
|
192
|
-
* @param {(string)[]} account_addresses
|
|
193
|
-
* @returns {Promise<any>}
|
|
194
|
-
*/
|
|
195
|
-
canMessage(account_addresses: (string)[]): Promise<any>;
|
|
196
|
-
/**
|
|
197
|
-
* @returns {Promise<void>}
|
|
198
|
-
*/
|
|
199
|
-
registerIdentity(): Promise<void>;
|
|
200
205
|
/**
|
|
201
206
|
* @returns {Promise<string | undefined>}
|
|
202
207
|
*/
|
|
@@ -227,14 +232,16 @@ export class WasmClient {
|
|
|
227
232
|
*/
|
|
228
233
|
applySignatureRequests(): Promise<void>;
|
|
229
234
|
/**
|
|
235
|
+
* @param {(WasmConsent)[]} records
|
|
230
236
|
* @returns {Promise<void>}
|
|
231
237
|
*/
|
|
232
|
-
|
|
238
|
+
setConsentStates(records: (WasmConsent)[]): Promise<void>;
|
|
233
239
|
/**
|
|
234
|
-
* @param {
|
|
235
|
-
* @
|
|
240
|
+
* @param {WasmConsentEntityType} entity_type
|
|
241
|
+
* @param {string} entity
|
|
242
|
+
* @returns {Promise<WasmConsentState>}
|
|
236
243
|
*/
|
|
237
|
-
|
|
244
|
+
getConsentState(entity_type: WasmConsentEntityType, entity: string): Promise<WasmConsentState>;
|
|
238
245
|
/**
|
|
239
246
|
*
|
|
240
247
|
* * Get the client's inbox state.
|
|
@@ -252,16 +259,27 @@ export class WasmClient {
|
|
|
252
259
|
*/
|
|
253
260
|
getLatestInboxState(inbox_id: string): Promise<WasmInboxState>;
|
|
254
261
|
/**
|
|
255
|
-
* @param {(
|
|
262
|
+
* @param {(string)[]} account_addresses
|
|
263
|
+
* @returns {Promise<any>}
|
|
264
|
+
*/
|
|
265
|
+
canMessage(account_addresses: (string)[]): Promise<any>;
|
|
266
|
+
/**
|
|
256
267
|
* @returns {Promise<void>}
|
|
257
268
|
*/
|
|
258
|
-
|
|
269
|
+
registerIdentity(): Promise<void>;
|
|
259
270
|
/**
|
|
260
|
-
* @
|
|
261
|
-
* @param {string} entity
|
|
262
|
-
* @returns {Promise<WasmConsentState>}
|
|
271
|
+
* @returns {Promise<void>}
|
|
263
272
|
*/
|
|
264
|
-
|
|
273
|
+
sendHistorySyncRequest(): Promise<void>;
|
|
274
|
+
/**
|
|
275
|
+
* @returns {Promise<void>}
|
|
276
|
+
*/
|
|
277
|
+
sendConsentSyncRequest(): Promise<void>;
|
|
278
|
+
/**
|
|
279
|
+
* @param {string} address
|
|
280
|
+
* @returns {Promise<string | undefined>}
|
|
281
|
+
*/
|
|
282
|
+
findInboxIdByAddress(address: string): Promise<string | undefined>;
|
|
265
283
|
/**
|
|
266
284
|
* @returns {WasmConversations}
|
|
267
285
|
*/
|
|
@@ -305,11 +323,21 @@ export class WasmConversations {
|
|
|
305
323
|
* @returns {Promise<WasmGroup>}
|
|
306
324
|
*/
|
|
307
325
|
create_group(account_addresses: (string)[], options?: WasmCreateGroupOptions): Promise<WasmGroup>;
|
|
326
|
+
/**
|
|
327
|
+
* @param {string} account_address
|
|
328
|
+
* @returns {Promise<WasmGroup>}
|
|
329
|
+
*/
|
|
330
|
+
create_dm(account_address: string): Promise<WasmGroup>;
|
|
308
331
|
/**
|
|
309
332
|
* @param {string} group_id
|
|
310
333
|
* @returns {WasmGroup}
|
|
311
334
|
*/
|
|
312
335
|
find_group_by_id(group_id: string): WasmGroup;
|
|
336
|
+
/**
|
|
337
|
+
* @param {string} target_inbox_id
|
|
338
|
+
* @returns {WasmGroup}
|
|
339
|
+
*/
|
|
340
|
+
find_dm_by_target_inbox_id(target_inbox_id: string): WasmGroup;
|
|
313
341
|
/**
|
|
314
342
|
* @param {string} message_id
|
|
315
343
|
* @returns {WasmMessage}
|
|
@@ -324,6 +352,16 @@ export class WasmConversations {
|
|
|
324
352
|
* @returns {Promise<Array<any>>}
|
|
325
353
|
*/
|
|
326
354
|
list(opts?: WasmListConversationsOptions): Promise<Array<any>>;
|
|
355
|
+
/**
|
|
356
|
+
* @param {WasmListConversationsOptions | undefined} [opts]
|
|
357
|
+
* @returns {Promise<Array<any>>}
|
|
358
|
+
*/
|
|
359
|
+
list_groups(opts?: WasmListConversationsOptions): Promise<Array<any>>;
|
|
360
|
+
/**
|
|
361
|
+
* @param {WasmListConversationsOptions | undefined} [opts]
|
|
362
|
+
* @returns {Promise<Array<any>>}
|
|
363
|
+
*/
|
|
364
|
+
list_dms(opts?: WasmListConversationsOptions): Promise<Array<any>>;
|
|
327
365
|
}
|
|
328
366
|
export class WasmCreateGroupOptions {
|
|
329
367
|
free(): void;
|
|
@@ -359,6 +397,14 @@ export class WasmEncodedContent {
|
|
|
359
397
|
}
|
|
360
398
|
export class WasmGroup {
|
|
361
399
|
free(): void;
|
|
400
|
+
/**
|
|
401
|
+
* @returns {WasmConsentState}
|
|
402
|
+
*/
|
|
403
|
+
consent_state(): WasmConsentState;
|
|
404
|
+
/**
|
|
405
|
+
* @param {WasmConsentState} state
|
|
406
|
+
*/
|
|
407
|
+
update_consent_state(state: WasmConsentState): void;
|
|
362
408
|
/**
|
|
363
409
|
* @returns {string}
|
|
364
410
|
*/
|
|
@@ -507,13 +553,9 @@ export class WasmGroup {
|
|
|
507
553
|
*/
|
|
508
554
|
group_metadata(): WasmGroupMetadata;
|
|
509
555
|
/**
|
|
510
|
-
* @returns {
|
|
511
|
-
*/
|
|
512
|
-
consent_state(): WasmConsentState;
|
|
513
|
-
/**
|
|
514
|
-
* @param {WasmConsentState} state
|
|
556
|
+
* @returns {string}
|
|
515
557
|
*/
|
|
516
|
-
|
|
558
|
+
dm_peer_inbox_id(): string;
|
|
517
559
|
}
|
|
518
560
|
export class WasmGroupMember {
|
|
519
561
|
free(): void;
|
|
@@ -580,11 +622,15 @@ export class WasmInstallation {
|
|
|
580
622
|
export class WasmListConversationsOptions {
|
|
581
623
|
free(): void;
|
|
582
624
|
/**
|
|
625
|
+
* @param {any[] | undefined} [allowed_states]
|
|
626
|
+
* @param {WasmConversationType | undefined} [conversation_type]
|
|
583
627
|
* @param {bigint | undefined} [created_after_ns]
|
|
584
628
|
* @param {bigint | undefined} [created_before_ns]
|
|
585
629
|
* @param {bigint | undefined} [limit]
|
|
586
630
|
*/
|
|
587
|
-
constructor(created_after_ns?: bigint, created_before_ns?: bigint, limit?: bigint);
|
|
631
|
+
constructor(allowed_states?: any[], conversation_type?: WasmConversationType, created_after_ns?: bigint, created_before_ns?: bigint, limit?: bigint);
|
|
632
|
+
allowed_states?: any[];
|
|
633
|
+
conversation_type?: WasmConversationType;
|
|
588
634
|
created_after_ns?: bigint;
|
|
589
635
|
created_before_ns?: bigint;
|
|
590
636
|
limit?: bigint;
|
|
@@ -596,9 +642,11 @@ export class WasmListMessagesOptions {
|
|
|
596
642
|
* @param {bigint | undefined} [sent_after_ns]
|
|
597
643
|
* @param {bigint | undefined} [limit]
|
|
598
644
|
* @param {WasmDeliveryStatus | undefined} [delivery_status]
|
|
645
|
+
* @param {WasmDirection | undefined} [direction]
|
|
599
646
|
*/
|
|
600
|
-
constructor(sent_before_ns?: bigint, sent_after_ns?: bigint, limit?: bigint, delivery_status?: WasmDeliveryStatus);
|
|
647
|
+
constructor(sent_before_ns?: bigint, sent_after_ns?: bigint, limit?: bigint, delivery_status?: WasmDeliveryStatus, direction?: WasmDirection);
|
|
601
648
|
delivery_status?: WasmDeliveryStatus;
|
|
649
|
+
direction?: WasmDirection;
|
|
602
650
|
limit?: bigint;
|
|
603
651
|
sent_after_ns?: bigint;
|
|
604
652
|
sent_before_ns?: bigint;
|
|
@@ -650,27 +698,48 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
650
698
|
|
|
651
699
|
export interface InitOutput {
|
|
652
700
|
readonly memory: WebAssembly.Memory;
|
|
653
|
-
readonly
|
|
654
|
-
readonly
|
|
655
|
-
readonly
|
|
656
|
-
readonly
|
|
657
|
-
readonly
|
|
658
|
-
readonly
|
|
659
|
-
readonly
|
|
660
|
-
readonly
|
|
661
|
-
readonly
|
|
662
|
-
readonly
|
|
663
|
-
readonly
|
|
664
|
-
readonly
|
|
665
|
-
readonly
|
|
666
|
-
readonly
|
|
667
|
-
readonly
|
|
668
|
-
readonly
|
|
669
|
-
readonly
|
|
670
|
-
readonly
|
|
671
|
-
readonly
|
|
672
|
-
readonly
|
|
673
|
-
readonly
|
|
701
|
+
readonly __wbg_wasmlistconversationsoptions_free: (a: number, b: number) => void;
|
|
702
|
+
readonly __wbg_get_wasmlistconversationsoptions_allowed_states: (a: number) => Array;
|
|
703
|
+
readonly __wbg_set_wasmlistconversationsoptions_allowed_states: (a: number, b: number, c: number) => void;
|
|
704
|
+
readonly __wbg_get_wasmlistconversationsoptions_conversation_type: (a: number) => number;
|
|
705
|
+
readonly __wbg_set_wasmlistconversationsoptions_conversation_type: (a: number, b: number) => void;
|
|
706
|
+
readonly __wbg_get_wasmlistconversationsoptions_created_after_ns: (a: number) => Array;
|
|
707
|
+
readonly __wbg_set_wasmlistconversationsoptions_created_after_ns: (a: number, b: number, c: number) => void;
|
|
708
|
+
readonly __wbg_get_wasmlistconversationsoptions_created_before_ns: (a: number) => Array;
|
|
709
|
+
readonly __wbg_set_wasmlistconversationsoptions_created_before_ns: (a: number, b: number, c: number) => void;
|
|
710
|
+
readonly __wbg_get_wasmlistconversationsoptions_limit: (a: number) => Array;
|
|
711
|
+
readonly __wbg_set_wasmlistconversationsoptions_limit: (a: number, b: number, c: number) => void;
|
|
712
|
+
readonly wasmlistconversationsoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
713
|
+
readonly __wbg_wasmcreategroupoptions_free: (a: number, b: number) => void;
|
|
714
|
+
readonly __wbg_get_wasmcreategroupoptions_permissions: (a: number) => number;
|
|
715
|
+
readonly __wbg_set_wasmcreategroupoptions_permissions: (a: number, b: number) => void;
|
|
716
|
+
readonly __wbg_get_wasmcreategroupoptions_group_name: (a: number) => Array;
|
|
717
|
+
readonly __wbg_set_wasmcreategroupoptions_group_name: (a: number, b: number, c: number) => void;
|
|
718
|
+
readonly __wbg_get_wasmcreategroupoptions_group_image_url_square: (a: number) => Array;
|
|
719
|
+
readonly __wbg_set_wasmcreategroupoptions_group_image_url_square: (a: number, b: number, c: number) => void;
|
|
720
|
+
readonly __wbg_get_wasmcreategroupoptions_group_description: (a: number) => Array;
|
|
721
|
+
readonly __wbg_set_wasmcreategroupoptions_group_description: (a: number, b: number, c: number) => void;
|
|
722
|
+
readonly __wbg_get_wasmcreategroupoptions_group_pinned_frame_url: (a: number) => Array;
|
|
723
|
+
readonly __wbg_set_wasmcreategroupoptions_group_pinned_frame_url: (a: number, b: number, c: number) => void;
|
|
724
|
+
readonly wasmcreategroupoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
725
|
+
readonly __wbg_wasmconversations_free: (a: number, b: number) => void;
|
|
726
|
+
readonly wasmconversations_create_group: (a: number, b: number, c: number, d: number) => number;
|
|
727
|
+
readonly wasmconversations_create_dm: (a: number, b: number, c: number) => number;
|
|
728
|
+
readonly wasmconversations_find_group_by_id: (a: number, b: number, c: number) => Array;
|
|
729
|
+
readonly wasmconversations_find_dm_by_target_inbox_id: (a: number, b: number, c: number) => Array;
|
|
730
|
+
readonly wasmconversations_find_message_by_id: (a: number, b: number, c: number) => Array;
|
|
731
|
+
readonly wasmconversations_sync: (a: number) => number;
|
|
732
|
+
readonly wasmconversations_list: (a: number, b: number) => number;
|
|
733
|
+
readonly wasmconversations_list_groups: (a: number, b: number) => number;
|
|
734
|
+
readonly wasmconversations_list_dms: (a: number, b: number) => number;
|
|
735
|
+
readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => number;
|
|
736
|
+
readonly generateInboxId: (a: number, b: number) => Array;
|
|
737
|
+
readonly wasmclient_createInboxSignatureText: (a: number) => number;
|
|
738
|
+
readonly wasmclient_addWalletSignatureText: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
739
|
+
readonly wasmclient_revokeWalletSignatureText: (a: number, b: number, c: number) => number;
|
|
740
|
+
readonly wasmclient_revokeInstallationsSignatureText: (a: number) => number;
|
|
741
|
+
readonly wasmclient_addSignature: (a: number, b: number, c: number) => number;
|
|
742
|
+
readonly wasmclient_applySignatureRequests: (a: number) => number;
|
|
674
743
|
readonly __wbg_wasmconsent_free: (a: number, b: number) => void;
|
|
675
744
|
readonly __wbg_get_wasmconsent_entity_type: (a: number) => number;
|
|
676
745
|
readonly __wbg_set_wasmconsent_entity_type: (a: number, b: number) => void;
|
|
@@ -679,6 +748,30 @@ export interface InitOutput {
|
|
|
679
748
|
readonly __wbg_get_wasmconsent_entity: (a: number) => Array;
|
|
680
749
|
readonly __wbg_set_wasmconsent_entity: (a: number, b: number, c: number) => void;
|
|
681
750
|
readonly wasmconsent_new: (a: number, b: number, c: number, d: number) => number;
|
|
751
|
+
readonly wasmclient_setConsentStates: (a: number, b: number, c: number) => number;
|
|
752
|
+
readonly wasmclient_getConsentState: (a: number, b: number, c: number, d: number) => number;
|
|
753
|
+
readonly wasmgroup_consent_state: (a: number) => Array;
|
|
754
|
+
readonly wasmgroup_update_consent_state: (a: number, b: number) => Array;
|
|
755
|
+
readonly __wbg_wasmcontenttypeid_free: (a: number, b: number) => void;
|
|
756
|
+
readonly __wbg_get_wasmcontenttypeid_type_id: (a: number) => Array;
|
|
757
|
+
readonly __wbg_set_wasmcontenttypeid_type_id: (a: number, b: number, c: number) => void;
|
|
758
|
+
readonly __wbg_get_wasmcontenttypeid_version_major: (a: number) => number;
|
|
759
|
+
readonly __wbg_set_wasmcontenttypeid_version_major: (a: number, b: number) => void;
|
|
760
|
+
readonly __wbg_get_wasmcontenttypeid_version_minor: (a: number) => number;
|
|
761
|
+
readonly __wbg_set_wasmcontenttypeid_version_minor: (a: number, b: number) => void;
|
|
762
|
+
readonly wasmcontenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
763
|
+
readonly __wbg_wasmencodedcontent_free: (a: number, b: number) => void;
|
|
764
|
+
readonly __wbg_get_wasmencodedcontent_type: (a: number) => number;
|
|
765
|
+
readonly __wbg_set_wasmencodedcontent_type: (a: number, b: number) => void;
|
|
766
|
+
readonly __wbg_get_wasmencodedcontent_parameters: (a: number) => number;
|
|
767
|
+
readonly __wbg_set_wasmencodedcontent_parameters: (a: number, b: number) => void;
|
|
768
|
+
readonly __wbg_get_wasmencodedcontent_fallback: (a: number) => Array;
|
|
769
|
+
readonly __wbg_set_wasmencodedcontent_fallback: (a: number, b: number, c: number) => void;
|
|
770
|
+
readonly __wbg_get_wasmencodedcontent_compression: (a: number) => Array;
|
|
771
|
+
readonly __wbg_set_wasmencodedcontent_compression: (a: number, b: number, c: number) => void;
|
|
772
|
+
readonly __wbg_get_wasmencodedcontent_content: (a: number) => number;
|
|
773
|
+
readonly __wbg_set_wasmencodedcontent_content: (a: number, b: number) => void;
|
|
774
|
+
readonly wasmencodedcontent_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
682
775
|
readonly __wbg_wasmgroupmetadata_free: (a: number, b: number) => void;
|
|
683
776
|
readonly wasmgroupmetadata_creator_inbox_id: (a: number) => Array;
|
|
684
777
|
readonly wasmgroupmetadata_conversation_type: (a: number) => Array;
|
|
@@ -725,8 +818,7 @@ export interface InitOutput {
|
|
|
725
818
|
readonly wasmgroup_is_active: (a: number) => Array;
|
|
726
819
|
readonly wasmgroup_added_by_inbox_id: (a: number) => Array;
|
|
727
820
|
readonly wasmgroup_group_metadata: (a: number) => Array;
|
|
728
|
-
readonly
|
|
729
|
-
readonly wasmgroup_update_consent_state: (a: number, b: number) => Array;
|
|
821
|
+
readonly wasmgroup_dm_peer_inbox_id: (a: number) => Array;
|
|
730
822
|
readonly __wbg_wasminstallation_free: (a: number, b: number) => void;
|
|
731
823
|
readonly __wbg_get_wasminstallation_id: (a: number) => Array;
|
|
732
824
|
readonly __wbg_set_wasminstallation_id: (a: number, b: number, c: number) => void;
|
|
@@ -734,92 +826,23 @@ export interface InitOutput {
|
|
|
734
826
|
readonly __wbg_set_wasminstallation_client_timestamp_ns: (a: number, b: number, c: number) => void;
|
|
735
827
|
readonly wasminstallation_new: (a: number, b: number, c: number, d: number) => number;
|
|
736
828
|
readonly __wbg_wasminboxstate_free: (a: number, b: number) => void;
|
|
737
|
-
readonly __wbg_get_wasminboxstate_recovery_address: (a: number) => Array;
|
|
738
|
-
readonly __wbg_set_wasminboxstate_recovery_address: (a: number, b: number, c: number) => void;
|
|
739
829
|
readonly __wbg_get_wasminboxstate_installations: (a: number) => Array;
|
|
740
830
|
readonly __wbg_set_wasminboxstate_installations: (a: number, b: number, c: number) => void;
|
|
741
831
|
readonly __wbg_get_wasminboxstate_account_addresses: (a: number) => Array;
|
|
742
832
|
readonly __wbg_set_wasminboxstate_account_addresses: (a: number, b: number, c: number) => void;
|
|
743
833
|
readonly wasminboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
744
|
-
readonly __wbg_wasmclient_free: (a: number, b: number) => void;
|
|
745
|
-
readonly createClient: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
746
|
-
readonly wasmclient_accountAddress: (a: number) => Array;
|
|
747
|
-
readonly wasmclient_inboxId: (a: number) => Array;
|
|
748
|
-
readonly wasmclient_isRegistered: (a: number) => number;
|
|
749
|
-
readonly wasmclient_installationId: (a: number) => Array;
|
|
750
|
-
readonly wasmclient_canMessage: (a: number, b: number, c: number) => number;
|
|
751
|
-
readonly wasmclient_registerIdentity: (a: number) => number;
|
|
752
|
-
readonly wasmclient_createInboxSignatureText: (a: number) => number;
|
|
753
|
-
readonly wasmclient_addWalletSignatureText: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
754
|
-
readonly wasmclient_revokeWalletSignatureText: (a: number, b: number, c: number) => number;
|
|
755
|
-
readonly wasmclient_revokeInstallationsSignatureText: (a: number) => number;
|
|
756
|
-
readonly wasmclient_addSignature: (a: number, b: number, c: number) => number;
|
|
757
|
-
readonly wasmclient_applySignatureRequests: (a: number) => number;
|
|
758
|
-
readonly wasmclient_requestHistorySync: (a: number) => number;
|
|
759
|
-
readonly wasmclient_findInboxIdByAddress: (a: number, b: number, c: number) => number;
|
|
760
834
|
readonly wasmclient_inboxState: (a: number, b: number) => number;
|
|
761
835
|
readonly wasmclient_getLatestInboxState: (a: number, b: number, c: number) => number;
|
|
762
|
-
readonly wasmclient_setConsentStates: (a: number, b: number, c: number) => number;
|
|
763
|
-
readonly wasmclient_getConsentState: (a: number, b: number, c: number, d: number) => number;
|
|
764
|
-
readonly wasmclient_conversations: (a: number) => number;
|
|
765
|
-
readonly __wbg_set_wasmgroupmember_inbox_id: (a: number, b: number, c: number) => void;
|
|
766
|
-
readonly __wbg_set_wasminboxstate_inbox_id: (a: number, b: number, c: number) => void;
|
|
767
|
-
readonly __wbg_get_wasmgroupmember_inbox_id: (a: number) => Array;
|
|
768
|
-
readonly __wbg_get_wasminboxstate_inbox_id: (a: number) => Array;
|
|
769
|
-
readonly __wbg_wasmlistconversationsoptions_free: (a: number, b: number) => void;
|
|
770
|
-
readonly __wbg_get_wasmlistconversationsoptions_created_after_ns: (a: number) => Array;
|
|
771
|
-
readonly __wbg_set_wasmlistconversationsoptions_created_after_ns: (a: number, b: number, c: number) => void;
|
|
772
|
-
readonly __wbg_get_wasmlistconversationsoptions_created_before_ns: (a: number) => Array;
|
|
773
|
-
readonly __wbg_set_wasmlistconversationsoptions_created_before_ns: (a: number, b: number, c: number) => void;
|
|
774
|
-
readonly __wbg_get_wasmlistconversationsoptions_limit: (a: number) => Array;
|
|
775
|
-
readonly __wbg_set_wasmlistconversationsoptions_limit: (a: number, b: number, c: number) => void;
|
|
776
|
-
readonly wasmlistconversationsoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
777
|
-
readonly __wbg_wasmcreategroupoptions_free: (a: number, b: number) => void;
|
|
778
|
-
readonly __wbg_get_wasmcreategroupoptions_permissions: (a: number) => number;
|
|
779
|
-
readonly __wbg_set_wasmcreategroupoptions_permissions: (a: number, b: number) => void;
|
|
780
|
-
readonly __wbg_get_wasmcreategroupoptions_group_name: (a: number) => Array;
|
|
781
|
-
readonly __wbg_set_wasmcreategroupoptions_group_name: (a: number, b: number, c: number) => void;
|
|
782
|
-
readonly __wbg_get_wasmcreategroupoptions_group_image_url_square: (a: number) => Array;
|
|
783
|
-
readonly __wbg_set_wasmcreategroupoptions_group_image_url_square: (a: number, b: number, c: number) => void;
|
|
784
|
-
readonly __wbg_get_wasmcreategroupoptions_group_description: (a: number) => Array;
|
|
785
|
-
readonly __wbg_set_wasmcreategroupoptions_group_description: (a: number, b: number, c: number) => void;
|
|
786
|
-
readonly __wbg_get_wasmcreategroupoptions_group_pinned_frame_url: (a: number) => Array;
|
|
787
|
-
readonly __wbg_set_wasmcreategroupoptions_group_pinned_frame_url: (a: number, b: number, c: number) => void;
|
|
788
|
-
readonly wasmcreategroupoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
789
|
-
readonly __wbg_wasmconversations_free: (a: number, b: number) => void;
|
|
790
|
-
readonly wasmconversations_create_group: (a: number, b: number, c: number, d: number) => number;
|
|
791
|
-
readonly wasmconversations_find_group_by_id: (a: number, b: number, c: number) => Array;
|
|
792
|
-
readonly wasmconversations_find_message_by_id: (a: number, b: number, c: number) => Array;
|
|
793
|
-
readonly wasmconversations_sync: (a: number) => number;
|
|
794
|
-
readonly wasmconversations_list: (a: number, b: number) => number;
|
|
795
|
-
readonly __wbg_wasmcontenttypeid_free: (a: number, b: number) => void;
|
|
796
|
-
readonly __wbg_get_wasmcontenttypeid_authority_id: (a: number) => Array;
|
|
797
|
-
readonly __wbg_set_wasmcontenttypeid_authority_id: (a: number, b: number, c: number) => void;
|
|
798
|
-
readonly __wbg_get_wasmcontenttypeid_type_id: (a: number) => Array;
|
|
799
|
-
readonly __wbg_set_wasmcontenttypeid_type_id: (a: number, b: number, c: number) => void;
|
|
800
|
-
readonly __wbg_get_wasmcontenttypeid_version_major: (a: number) => number;
|
|
801
|
-
readonly __wbg_set_wasmcontenttypeid_version_major: (a: number, b: number) => void;
|
|
802
|
-
readonly __wbg_get_wasmcontenttypeid_version_minor: (a: number) => number;
|
|
803
|
-
readonly __wbg_set_wasmcontenttypeid_version_minor: (a: number, b: number) => void;
|
|
804
|
-
readonly wasmcontenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
805
|
-
readonly __wbg_wasmencodedcontent_free: (a: number, b: number) => void;
|
|
806
|
-
readonly __wbg_get_wasmencodedcontent_type: (a: number) => number;
|
|
807
|
-
readonly __wbg_set_wasmencodedcontent_type: (a: number, b: number) => void;
|
|
808
|
-
readonly __wbg_get_wasmencodedcontent_parameters: (a: number) => number;
|
|
809
|
-
readonly __wbg_set_wasmencodedcontent_parameters: (a: number, b: number) => void;
|
|
810
|
-
readonly __wbg_get_wasmencodedcontent_fallback: (a: number) => Array;
|
|
811
|
-
readonly __wbg_set_wasmencodedcontent_fallback: (a: number, b: number, c: number) => void;
|
|
812
|
-
readonly __wbg_get_wasmencodedcontent_compression: (a: number) => Array;
|
|
813
|
-
readonly __wbg_set_wasmencodedcontent_compression: (a: number, b: number, c: number) => void;
|
|
814
|
-
readonly __wbg_get_wasmencodedcontent_content: (a: number) => number;
|
|
815
|
-
readonly __wbg_set_wasmencodedcontent_content: (a: number, b: number) => void;
|
|
816
|
-
readonly wasmencodedcontent_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
817
|
-
readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => number;
|
|
818
|
-
readonly generateInboxId: (a: number, b: number) => Array;
|
|
819
836
|
readonly __wbg_wasmlistmessagesoptions_free: (a: number, b: number) => void;
|
|
837
|
+
readonly __wbg_get_wasmlistmessagesoptions_sent_after_ns: (a: number) => Array;
|
|
838
|
+
readonly __wbg_set_wasmlistmessagesoptions_sent_after_ns: (a: number, b: number, c: number) => void;
|
|
839
|
+
readonly __wbg_get_wasmlistmessagesoptions_limit: (a: number) => Array;
|
|
840
|
+
readonly __wbg_set_wasmlistmessagesoptions_limit: (a: number, b: number, c: number) => void;
|
|
820
841
|
readonly __wbg_get_wasmlistmessagesoptions_delivery_status: (a: number) => number;
|
|
821
842
|
readonly __wbg_set_wasmlistmessagesoptions_delivery_status: (a: number, b: number) => void;
|
|
822
|
-
readonly
|
|
843
|
+
readonly __wbg_get_wasmlistmessagesoptions_direction: (a: number) => number;
|
|
844
|
+
readonly __wbg_set_wasmlistmessagesoptions_direction: (a: number, b: number) => void;
|
|
845
|
+
readonly wasmlistmessagesoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
823
846
|
readonly __wbg_wasmmessage_free: (a: number, b: number) => void;
|
|
824
847
|
readonly __wbg_get_wasmmessage_id: (a: number) => Array;
|
|
825
848
|
readonly __wbg_set_wasmmessage_id: (a: number, b: number, c: number) => void;
|
|
@@ -836,12 +859,49 @@ export interface InitOutput {
|
|
|
836
859
|
readonly __wbg_get_wasmmessage_delivery_status: (a: number) => number;
|
|
837
860
|
readonly __wbg_set_wasmmessage_delivery_status: (a: number, b: number) => void;
|
|
838
861
|
readonly wasmmessage_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
862
|
+
readonly __wbg_set_wasmcontenttypeid_authority_id: (a: number, b: number, c: number) => void;
|
|
863
|
+
readonly __wbg_set_wasmgroupmember_inbox_id: (a: number, b: number, c: number) => void;
|
|
864
|
+
readonly __wbg_set_wasminboxstate_inbox_id: (a: number, b: number, c: number) => void;
|
|
865
|
+
readonly __wbg_set_wasminboxstate_recovery_address: (a: number, b: number, c: number) => void;
|
|
866
|
+
readonly __wbg_get_wasmcontenttypeid_authority_id: (a: number) => Array;
|
|
867
|
+
readonly __wbg_get_wasmgroupmember_inbox_id: (a: number) => Array;
|
|
868
|
+
readonly __wbg_get_wasminboxstate_inbox_id: (a: number) => Array;
|
|
869
|
+
readonly __wbg_get_wasminboxstate_recovery_address: (a: number) => Array;
|
|
839
870
|
readonly __wbg_get_wasmlistmessagesoptions_sent_before_ns: (a: number) => Array;
|
|
840
|
-
readonly __wbg_get_wasmlistmessagesoptions_sent_after_ns: (a: number) => Array;
|
|
841
|
-
readonly __wbg_get_wasmlistmessagesoptions_limit: (a: number) => Array;
|
|
842
871
|
readonly __wbg_set_wasmlistmessagesoptions_sent_before_ns: (a: number, b: number, c: number) => void;
|
|
843
|
-
readonly
|
|
844
|
-
readonly
|
|
872
|
+
readonly __wbg_wasmclient_free: (a: number, b: number) => void;
|
|
873
|
+
readonly createClient: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
874
|
+
readonly wasmclient_accountAddress: (a: number) => Array;
|
|
875
|
+
readonly wasmclient_inboxId: (a: number) => Array;
|
|
876
|
+
readonly wasmclient_isRegistered: (a: number) => number;
|
|
877
|
+
readonly wasmclient_installationId: (a: number) => Array;
|
|
878
|
+
readonly wasmclient_canMessage: (a: number, b: number, c: number) => number;
|
|
879
|
+
readonly wasmclient_registerIdentity: (a: number) => number;
|
|
880
|
+
readonly wasmclient_sendHistorySyncRequest: (a: number) => number;
|
|
881
|
+
readonly wasmclient_sendConsentSyncRequest: (a: number) => number;
|
|
882
|
+
readonly wasmclient_findInboxIdByAddress: (a: number, b: number, c: number) => number;
|
|
883
|
+
readonly wasmclient_conversations: (a: number) => number;
|
|
884
|
+
readonly __wbg_wasmpermissionpolicyset_free: (a: number, b: number) => void;
|
|
885
|
+
readonly __wbg_get_wasmpermissionpolicyset_add_member_policy: (a: number) => number;
|
|
886
|
+
readonly __wbg_set_wasmpermissionpolicyset_add_member_policy: (a: number, b: number) => void;
|
|
887
|
+
readonly __wbg_get_wasmpermissionpolicyset_remove_member_policy: (a: number) => number;
|
|
888
|
+
readonly __wbg_set_wasmpermissionpolicyset_remove_member_policy: (a: number, b: number) => void;
|
|
889
|
+
readonly __wbg_get_wasmpermissionpolicyset_add_admin_policy: (a: number) => number;
|
|
890
|
+
readonly __wbg_set_wasmpermissionpolicyset_add_admin_policy: (a: number, b: number) => void;
|
|
891
|
+
readonly __wbg_get_wasmpermissionpolicyset_remove_admin_policy: (a: number) => number;
|
|
892
|
+
readonly __wbg_set_wasmpermissionpolicyset_remove_admin_policy: (a: number, b: number) => void;
|
|
893
|
+
readonly __wbg_get_wasmpermissionpolicyset_update_group_name_policy: (a: number) => number;
|
|
894
|
+
readonly __wbg_set_wasmpermissionpolicyset_update_group_name_policy: (a: number, b: number) => void;
|
|
895
|
+
readonly __wbg_get_wasmpermissionpolicyset_update_group_description_policy: (a: number) => number;
|
|
896
|
+
readonly __wbg_set_wasmpermissionpolicyset_update_group_description_policy: (a: number, b: number) => void;
|
|
897
|
+
readonly __wbg_get_wasmpermissionpolicyset_update_group_image_url_square_policy: (a: number) => number;
|
|
898
|
+
readonly __wbg_set_wasmpermissionpolicyset_update_group_image_url_square_policy: (a: number, b: number) => void;
|
|
899
|
+
readonly __wbg_get_wasmpermissionpolicyset_update_group_pinned_frame_url_policy: (a: number) => number;
|
|
900
|
+
readonly __wbg_set_wasmpermissionpolicyset_update_group_pinned_frame_url_policy: (a: number, b: number) => void;
|
|
901
|
+
readonly wasmpermissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
902
|
+
readonly __wbg_wasmgrouppermissions_free: (a: number, b: number) => void;
|
|
903
|
+
readonly wasmgrouppermissions_policy_type: (a: number) => Array;
|
|
904
|
+
readonly wasmgrouppermissions_policy_set: (a: number) => Array;
|
|
845
905
|
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
846
906
|
readonly intounderlyingbytesource_type: (a: number) => Array;
|
|
847
907
|
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
@@ -870,15 +930,15 @@ export interface InitOutput {
|
|
|
870
930
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
871
931
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
872
932
|
readonly __wbindgen_export_3: WebAssembly.Table;
|
|
873
|
-
readonly
|
|
874
|
-
readonly
|
|
875
|
-
readonly __externref_table_dealloc: (a: number) => void;
|
|
876
|
-
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
933
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0991cb2389da8d1c: (a: number, b: number) => void;
|
|
934
|
+
readonly closure2398_externref_shim: (a: number, b: number, c: number) => void;
|
|
877
935
|
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
936
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
878
937
|
readonly __externref_table_alloc: () => number;
|
|
938
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
879
939
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
880
|
-
readonly
|
|
881
|
-
readonly
|
|
940
|
+
readonly closure3231_externref_shim: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
941
|
+
readonly closure3227_externref_shim: (a: number, b: number, c: number, d: number) => void;
|
|
882
942
|
readonly __wbindgen_start: () => void;
|
|
883
943
|
}
|
|
884
944
|
|