@xmtp/wasm-bindings 0.0.2 → 0.0.3
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/README.md +7 -18
- package/dist/bindings_wasm.d.ts +507 -589
- package/dist/bindings_wasm.js +1480 -1703
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +212 -223
- package/package.json +5 -4
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* @param {string} host
|
|
5
|
-
* @param {string} account_address
|
|
6
|
-
* @returns {Promise<string | undefined>}
|
|
7
|
-
*/
|
|
8
|
-
export function getInboxIdForAddress(host: string, account_address: string): Promise<string | undefined>;
|
|
9
|
-
/**
|
|
10
|
-
* @param {string} account_address
|
|
11
|
-
* @returns {string}
|
|
12
|
-
*/
|
|
13
|
-
export function generateInboxId(account_address: string): string;
|
|
14
3
|
/**
|
|
15
4
|
* @param {string} host
|
|
16
5
|
* @param {string} inbox_id
|
|
@@ -18,87 +7,60 @@ export function generateInboxId(account_address: string): string;
|
|
|
18
7
|
* @param {string} db_path
|
|
19
8
|
* @param {Uint8Array | undefined} [encryption_key]
|
|
20
9
|
* @param {string | undefined} [history_sync_url]
|
|
21
|
-
* @returns {Promise<
|
|
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
|
-
/**
|
|
25
|
-
* Handler for `console.log` invocations.
|
|
26
|
-
*
|
|
27
|
-
* If a test is currently running it takes the `args` array and stringifies
|
|
28
|
-
* it and appends it to the current output of the test. Otherwise it passes
|
|
29
|
-
* the arguments to the original `console.log` function, psased as
|
|
30
|
-
* `original`.
|
|
31
|
-
* @param {Array<any>} args
|
|
32
|
-
*/
|
|
33
|
-
export function __wbgtest_console_log(args: Array<any>): void;
|
|
34
|
-
/**
|
|
35
|
-
* Handler for `console.debug` invocations. See above.
|
|
36
|
-
* @param {Array<any>} args
|
|
37
|
-
*/
|
|
38
|
-
export function __wbgtest_console_debug(args: Array<any>): void;
|
|
39
|
-
/**
|
|
40
|
-
* Handler for `console.info` invocations. See above.
|
|
41
|
-
* @param {Array<any>} args
|
|
10
|
+
* @returns {Promise<Client>}
|
|
42
11
|
*/
|
|
43
|
-
export function
|
|
12
|
+
export function createClient(host: string, inbox_id: string, account_address: string, db_path: string, encryption_key?: Uint8Array, history_sync_url?: string): Promise<Client>;
|
|
44
13
|
/**
|
|
45
|
-
*
|
|
46
|
-
* @param {
|
|
47
|
-
|
|
48
|
-
export function __wbgtest_console_warn(args: Array<any>): void;
|
|
49
|
-
/**
|
|
50
|
-
* Handler for `console.error` invocations. See above.
|
|
51
|
-
* @param {Array<any>} args
|
|
14
|
+
* @param {string} host
|
|
15
|
+
* @param {string} account_address
|
|
16
|
+
* @returns {Promise<string | undefined>}
|
|
52
17
|
*/
|
|
53
|
-
export function
|
|
18
|
+
export function getInboxIdForAddress(host: string, account_address: string): Promise<string | undefined>;
|
|
54
19
|
/**
|
|
55
|
-
* @
|
|
20
|
+
* @param {string} account_address
|
|
21
|
+
* @returns {string}
|
|
56
22
|
*/
|
|
57
|
-
export function
|
|
58
|
-
export enum
|
|
23
|
+
export function generateInboxId(account_address: string): string;
|
|
24
|
+
export enum ConsentEntityType {
|
|
59
25
|
GroupId = 0,
|
|
60
26
|
InboxId = 1,
|
|
61
27
|
Address = 2,
|
|
62
28
|
}
|
|
63
|
-
export enum
|
|
29
|
+
export enum ConsentState {
|
|
64
30
|
Unknown = 0,
|
|
65
31
|
Allowed = 1,
|
|
66
32
|
Denied = 2,
|
|
67
33
|
}
|
|
68
|
-
export enum
|
|
34
|
+
export enum ConversationType {
|
|
69
35
|
Dm = 0,
|
|
70
36
|
Group = 1,
|
|
71
37
|
Sync = 2,
|
|
72
38
|
}
|
|
73
|
-
export enum
|
|
39
|
+
export enum DeliveryStatus {
|
|
74
40
|
Unpublished = 0,
|
|
75
41
|
Published = 1,
|
|
76
42
|
Failed = 2,
|
|
77
43
|
}
|
|
78
|
-
export enum
|
|
79
|
-
Ascending = 0,
|
|
80
|
-
Descending = 1,
|
|
81
|
-
}
|
|
82
|
-
export enum WasmGroupMembershipState {
|
|
44
|
+
export enum GroupMembershipState {
|
|
83
45
|
Allowed = 0,
|
|
84
46
|
Rejected = 1,
|
|
85
47
|
Pending = 2,
|
|
86
48
|
}
|
|
87
|
-
export enum
|
|
49
|
+
export enum GroupMessageKind {
|
|
88
50
|
Application = 0,
|
|
89
51
|
MembershipChange = 1,
|
|
90
52
|
}
|
|
91
|
-
export enum
|
|
53
|
+
export enum GroupPermissionsOptions {
|
|
92
54
|
AllMembers = 0,
|
|
93
55
|
AdminOnly = 1,
|
|
94
56
|
CustomPolicy = 2,
|
|
95
57
|
}
|
|
96
|
-
export enum
|
|
58
|
+
export enum PermissionLevel {
|
|
97
59
|
Member = 0,
|
|
98
60
|
Admin = 1,
|
|
99
61
|
SuperAdmin = 2,
|
|
100
62
|
}
|
|
101
|
-
export enum
|
|
63
|
+
export enum PermissionPolicy {
|
|
102
64
|
Allow = 0,
|
|
103
65
|
Deny = 1,
|
|
104
66
|
Admin = 2,
|
|
@@ -106,102 +68,51 @@ export enum WasmPermissionPolicy {
|
|
|
106
68
|
DoesNotExist = 4,
|
|
107
69
|
Other = 5,
|
|
108
70
|
}
|
|
109
|
-
export enum
|
|
71
|
+
export enum PermissionUpdateType {
|
|
110
72
|
AddMember = 0,
|
|
111
73
|
RemoveMember = 1,
|
|
112
74
|
AddAdmin = 2,
|
|
113
75
|
RemoveAdmin = 3,
|
|
114
76
|
UpdateMetadata = 4,
|
|
115
77
|
}
|
|
116
|
-
export enum
|
|
78
|
+
export enum SignatureRequestType {
|
|
117
79
|
AddWallet = 0,
|
|
118
80
|
CreateInbox = 1,
|
|
119
81
|
RevokeWallet = 2,
|
|
120
82
|
RevokeInstallations = 3,
|
|
121
83
|
}
|
|
122
|
-
export
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
* @param {ReadableByteStreamController} controller
|
|
126
|
-
*/
|
|
127
|
-
start(controller: ReadableByteStreamController): void;
|
|
128
|
-
/**
|
|
129
|
-
* @param {ReadableByteStreamController} controller
|
|
130
|
-
* @returns {Promise<any>}
|
|
131
|
-
*/
|
|
132
|
-
pull(controller: ReadableByteStreamController): Promise<any>;
|
|
133
|
-
cancel(): void;
|
|
134
|
-
readonly autoAllocateChunkSize: number;
|
|
135
|
-
readonly type: string;
|
|
84
|
+
export enum SortDirection {
|
|
85
|
+
Ascending = 0,
|
|
86
|
+
Descending = 1,
|
|
136
87
|
}
|
|
137
|
-
export class
|
|
88
|
+
export class Client {
|
|
138
89
|
free(): void;
|
|
139
90
|
/**
|
|
140
|
-
* @param {
|
|
141
|
-
* @returns {Promise<any>}
|
|
142
|
-
*/
|
|
143
|
-
write(chunk: any): Promise<any>;
|
|
144
|
-
/**
|
|
91
|
+
* @param {(string)[]} account_addresses
|
|
145
92
|
* @returns {Promise<any>}
|
|
146
93
|
*/
|
|
147
|
-
|
|
94
|
+
canMessage(account_addresses: (string)[]): Promise<any>;
|
|
148
95
|
/**
|
|
149
|
-
* @
|
|
150
|
-
* @returns {Promise<any>}
|
|
96
|
+
* @returns {Promise<void>}
|
|
151
97
|
*/
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
export class IntoUnderlyingSource {
|
|
155
|
-
free(): void;
|
|
98
|
+
registerIdentity(): Promise<void>;
|
|
156
99
|
/**
|
|
157
|
-
* @
|
|
158
|
-
* @returns {Promise<any>}
|
|
100
|
+
* @returns {Promise<void>}
|
|
159
101
|
*/
|
|
160
|
-
|
|
161
|
-
cancel(): void;
|
|
162
|
-
}
|
|
163
|
-
export class Version {
|
|
164
|
-
free(): void;
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* Runtime test harness support instantiated in JS.
|
|
168
|
-
*
|
|
169
|
-
* The node.js entry script instantiates a `Context` here which is used to
|
|
170
|
-
* drive test execution.
|
|
171
|
-
*/
|
|
172
|
-
export class WasmBindgenTestContext {
|
|
173
|
-
free(): void;
|
|
102
|
+
sendHistorySyncRequest(): Promise<void>;
|
|
174
103
|
/**
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
* A `Context` is the main structure through which test execution is
|
|
178
|
-
* coordinated, and this will collect output and results for all executed
|
|
179
|
-
* tests.
|
|
104
|
+
* @returns {Promise<void>}
|
|
180
105
|
*/
|
|
181
|
-
|
|
106
|
+
sendConsentSyncRequest(): Promise<void>;
|
|
182
107
|
/**
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
* @param {any[]} args
|
|
108
|
+
* @param {string} address
|
|
109
|
+
* @returns {Promise<string | undefined>}
|
|
186
110
|
*/
|
|
187
|
-
|
|
111
|
+
findInboxIdByAddress(address: string): Promise<string | undefined>;
|
|
188
112
|
/**
|
|
189
|
-
*
|
|
190
|
-
* eventual completion.
|
|
191
|
-
*
|
|
192
|
-
* This is the main entry point for executing tests. All the tests passed
|
|
193
|
-
* in are the JS `Function` object that was plucked off the
|
|
194
|
-
* `WebAssembly.Instance` exports list.
|
|
195
|
-
*
|
|
196
|
-
* The promise returned resolves to either `true` if all tests passed or
|
|
197
|
-
* `false` if at least one test failed.
|
|
198
|
-
* @param {any[]} tests
|
|
199
|
-
* @returns {Promise<any>}
|
|
113
|
+
* @returns {Conversations}
|
|
200
114
|
*/
|
|
201
|
-
|
|
202
|
-
}
|
|
203
|
-
export class WasmClient {
|
|
204
|
-
free(): void;
|
|
115
|
+
conversations(): Conversations;
|
|
205
116
|
/**
|
|
206
117
|
* @returns {Promise<string | undefined>}
|
|
207
118
|
*/
|
|
@@ -222,26 +133,26 @@ export class WasmClient {
|
|
|
222
133
|
*/
|
|
223
134
|
revokeInstallationsSignatureText(): Promise<string>;
|
|
224
135
|
/**
|
|
225
|
-
* @param {
|
|
136
|
+
* @param {SignatureRequestType} signature_type
|
|
226
137
|
* @param {Uint8Array} signature_bytes
|
|
227
138
|
* @returns {Promise<void>}
|
|
228
139
|
*/
|
|
229
|
-
addSignature(signature_type:
|
|
140
|
+
addSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
|
|
230
141
|
/**
|
|
231
142
|
* @returns {Promise<void>}
|
|
232
143
|
*/
|
|
233
144
|
applySignatureRequests(): Promise<void>;
|
|
234
145
|
/**
|
|
235
|
-
* @param {(
|
|
146
|
+
* @param {(Consent)[]} records
|
|
236
147
|
* @returns {Promise<void>}
|
|
237
148
|
*/
|
|
238
|
-
setConsentStates(records: (
|
|
149
|
+
setConsentStates(records: (Consent)[]): Promise<void>;
|
|
239
150
|
/**
|
|
240
|
-
* @param {
|
|
151
|
+
* @param {ConsentEntityType} entity_type
|
|
241
152
|
* @param {string} entity
|
|
242
|
-
* @returns {Promise<
|
|
153
|
+
* @returns {Promise<ConsentState>}
|
|
243
154
|
*/
|
|
244
|
-
getConsentState(entity_type:
|
|
155
|
+
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
245
156
|
/**
|
|
246
157
|
*
|
|
247
158
|
* * Get the client's inbox state.
|
|
@@ -250,58 +161,32 @@ export class WasmClient {
|
|
|
250
161
|
* * Otherwise, the state will be read from the local database.
|
|
251
162
|
*
|
|
252
163
|
* @param {boolean} refresh_from_network
|
|
253
|
-
* @returns {Promise<
|
|
164
|
+
* @returns {Promise<InboxState>}
|
|
254
165
|
*/
|
|
255
|
-
inboxState(refresh_from_network: boolean): Promise<
|
|
166
|
+
inboxState(refresh_from_network: boolean): Promise<InboxState>;
|
|
256
167
|
/**
|
|
257
168
|
* @param {string} inbox_id
|
|
258
|
-
* @returns {Promise<
|
|
259
|
-
*/
|
|
260
|
-
getLatestInboxState(inbox_id: string): Promise<WasmInboxState>;
|
|
261
|
-
/**
|
|
262
|
-
* @param {(string)[]} account_addresses
|
|
263
|
-
* @returns {Promise<any>}
|
|
264
|
-
*/
|
|
265
|
-
canMessage(account_addresses: (string)[]): Promise<any>;
|
|
266
|
-
/**
|
|
267
|
-
* @returns {Promise<void>}
|
|
268
|
-
*/
|
|
269
|
-
registerIdentity(): Promise<void>;
|
|
270
|
-
/**
|
|
271
|
-
* @returns {Promise<void>}
|
|
272
|
-
*/
|
|
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>;
|
|
283
|
-
/**
|
|
284
|
-
* @returns {WasmConversations}
|
|
169
|
+
* @returns {Promise<InboxState>}
|
|
285
170
|
*/
|
|
286
|
-
|
|
171
|
+
getLatestInboxState(inbox_id: string): Promise<InboxState>;
|
|
287
172
|
readonly accountAddress: string;
|
|
288
173
|
readonly inboxId: string;
|
|
289
174
|
readonly installationId: string;
|
|
290
175
|
readonly isRegistered: boolean;
|
|
291
176
|
}
|
|
292
|
-
export class
|
|
177
|
+
export class Consent {
|
|
293
178
|
free(): void;
|
|
294
179
|
/**
|
|
295
|
-
* @param {
|
|
296
|
-
* @param {
|
|
180
|
+
* @param {ConsentEntityType} entity_type
|
|
181
|
+
* @param {ConsentState} state
|
|
297
182
|
* @param {string} entity
|
|
298
183
|
*/
|
|
299
|
-
constructor(entity_type:
|
|
184
|
+
constructor(entity_type: ConsentEntityType, state: ConsentState, entity: string);
|
|
300
185
|
entity: string;
|
|
301
|
-
|
|
302
|
-
state:
|
|
186
|
+
entityType: ConsentEntityType;
|
|
187
|
+
state: ConsentState;
|
|
303
188
|
}
|
|
304
|
-
export class
|
|
189
|
+
export class ContentTypeId {
|
|
305
190
|
free(): void;
|
|
306
191
|
/**
|
|
307
192
|
* @param {string} authority_id
|
|
@@ -310,270 +195,270 @@ export class WasmContentTypeId {
|
|
|
310
195
|
* @param {number} version_minor
|
|
311
196
|
*/
|
|
312
197
|
constructor(authority_id: string, type_id: string, version_major: number, version_minor: number);
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
}
|
|
318
|
-
export class WasmConversations {
|
|
319
|
-
free(): void;
|
|
320
|
-
/**
|
|
321
|
-
* @param {(string)[]} account_addresses
|
|
322
|
-
* @param {WasmCreateGroupOptions | undefined} [options]
|
|
323
|
-
* @returns {Promise<WasmGroup>}
|
|
324
|
-
*/
|
|
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>;
|
|
331
|
-
/**
|
|
332
|
-
* @param {string} group_id
|
|
333
|
-
* @returns {WasmGroup}
|
|
334
|
-
*/
|
|
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;
|
|
341
|
-
/**
|
|
342
|
-
* @param {string} message_id
|
|
343
|
-
* @returns {WasmMessage}
|
|
344
|
-
*/
|
|
345
|
-
find_message_by_id(message_id: string): WasmMessage;
|
|
346
|
-
/**
|
|
347
|
-
* @returns {Promise<void>}
|
|
348
|
-
*/
|
|
349
|
-
sync(): Promise<void>;
|
|
350
|
-
/**
|
|
351
|
-
* @param {WasmListConversationsOptions | undefined} [opts]
|
|
352
|
-
* @returns {Promise<Array<any>>}
|
|
353
|
-
*/
|
|
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>>;
|
|
365
|
-
}
|
|
366
|
-
export class WasmCreateGroupOptions {
|
|
367
|
-
free(): void;
|
|
368
|
-
/**
|
|
369
|
-
* @param {WasmGroupPermissionsOptions | undefined} [permissions]
|
|
370
|
-
* @param {string | undefined} [group_name]
|
|
371
|
-
* @param {string | undefined} [group_image_url_square]
|
|
372
|
-
* @param {string | undefined} [group_description]
|
|
373
|
-
* @param {string | undefined} [group_pinned_frame_url]
|
|
374
|
-
*/
|
|
375
|
-
constructor(permissions?: WasmGroupPermissionsOptions, group_name?: string, group_image_url_square?: string, group_description?: string, group_pinned_frame_url?: string);
|
|
376
|
-
group_description?: string;
|
|
377
|
-
group_image_url_square?: string;
|
|
378
|
-
group_name?: string;
|
|
379
|
-
group_pinned_frame_url?: string;
|
|
380
|
-
permissions?: WasmGroupPermissionsOptions;
|
|
381
|
-
}
|
|
382
|
-
export class WasmEncodedContent {
|
|
383
|
-
free(): void;
|
|
384
|
-
/**
|
|
385
|
-
* @param {WasmContentTypeId | undefined} type
|
|
386
|
-
* @param {any} parameters
|
|
387
|
-
* @param {string | undefined} fallback
|
|
388
|
-
* @param {number | undefined} compression
|
|
389
|
-
* @param {Uint8Array} content
|
|
390
|
-
*/
|
|
391
|
-
constructor(type: WasmContentTypeId | undefined, parameters: any, fallback: string | undefined, compression: number | undefined, content: Uint8Array);
|
|
392
|
-
compression?: number;
|
|
393
|
-
content: Uint8Array;
|
|
394
|
-
fallback?: string;
|
|
395
|
-
parameters: any;
|
|
396
|
-
type?: WasmContentTypeId;
|
|
198
|
+
authorityId: string;
|
|
199
|
+
typeId: string;
|
|
200
|
+
versionMajor: number;
|
|
201
|
+
versionMinor: number;
|
|
397
202
|
}
|
|
398
|
-
export class
|
|
203
|
+
export class Conversation {
|
|
399
204
|
free(): void;
|
|
400
205
|
/**
|
|
401
|
-
* @returns {
|
|
206
|
+
* @returns {ConsentState}
|
|
402
207
|
*/
|
|
403
|
-
|
|
208
|
+
consentState(): ConsentState;
|
|
404
209
|
/**
|
|
405
|
-
* @param {
|
|
210
|
+
* @param {ConsentState} state
|
|
406
211
|
*/
|
|
407
|
-
|
|
212
|
+
updateConsentState(state: ConsentState): void;
|
|
408
213
|
/**
|
|
409
214
|
* @returns {string}
|
|
410
215
|
*/
|
|
411
216
|
id(): string;
|
|
412
217
|
/**
|
|
413
|
-
* @param {
|
|
218
|
+
* @param {EncodedContent} encoded_content
|
|
414
219
|
* @returns {Promise<string>}
|
|
415
220
|
*/
|
|
416
|
-
send(encoded_content:
|
|
221
|
+
send(encoded_content: EncodedContent): Promise<string>;
|
|
417
222
|
/**
|
|
418
223
|
* send a message without immediately publishing to the delivery service.
|
|
419
|
-
* @param {
|
|
224
|
+
* @param {EncodedContent} encoded_content
|
|
420
225
|
* @returns {string}
|
|
421
226
|
*/
|
|
422
|
-
|
|
227
|
+
sendOptimistic(encoded_content: EncodedContent): string;
|
|
423
228
|
/**
|
|
424
229
|
* Publish all unpublished messages
|
|
425
230
|
* @returns {Promise<void>}
|
|
426
231
|
*/
|
|
427
|
-
|
|
232
|
+
publishMessages(): Promise<void>;
|
|
428
233
|
/**
|
|
429
234
|
* @returns {Promise<void>}
|
|
430
235
|
*/
|
|
431
236
|
sync(): Promise<void>;
|
|
432
237
|
/**
|
|
433
|
-
* @param {
|
|
434
|
-
* @returns {(
|
|
238
|
+
* @param {ListMessagesOptions | undefined} [opts]
|
|
239
|
+
* @returns {(Message)[]}
|
|
435
240
|
*/
|
|
436
|
-
|
|
241
|
+
findMessages(opts?: ListMessagesOptions): (Message)[];
|
|
437
242
|
/**
|
|
438
243
|
* @returns {Promise<any>}
|
|
439
244
|
*/
|
|
440
|
-
|
|
245
|
+
listMembers(): Promise<any>;
|
|
441
246
|
/**
|
|
442
247
|
* @returns {(string)[]}
|
|
443
248
|
*/
|
|
444
|
-
|
|
249
|
+
adminList(): (string)[];
|
|
445
250
|
/**
|
|
446
251
|
* @returns {(string)[]}
|
|
447
252
|
*/
|
|
448
|
-
|
|
253
|
+
superAdminList(): (string)[];
|
|
449
254
|
/**
|
|
450
255
|
* @param {string} inbox_id
|
|
451
256
|
* @returns {boolean}
|
|
452
257
|
*/
|
|
453
|
-
|
|
258
|
+
isAdmin(inbox_id: string): boolean;
|
|
454
259
|
/**
|
|
455
260
|
* @param {string} inbox_id
|
|
456
261
|
* @returns {boolean}
|
|
457
262
|
*/
|
|
458
|
-
|
|
263
|
+
isSuperAdmin(inbox_id: string): boolean;
|
|
459
264
|
/**
|
|
460
265
|
* @param {(string)[]} account_addresses
|
|
461
266
|
* @returns {Promise<void>}
|
|
462
267
|
*/
|
|
463
|
-
|
|
268
|
+
addMembers(account_addresses: (string)[]): Promise<void>;
|
|
464
269
|
/**
|
|
465
270
|
* @param {string} inbox_id
|
|
466
271
|
* @returns {Promise<void>}
|
|
467
272
|
*/
|
|
468
|
-
|
|
273
|
+
addAdmin(inbox_id: string): Promise<void>;
|
|
469
274
|
/**
|
|
470
275
|
* @param {string} inbox_id
|
|
471
276
|
* @returns {Promise<void>}
|
|
472
277
|
*/
|
|
473
|
-
|
|
278
|
+
removeAdmin(inbox_id: string): Promise<void>;
|
|
474
279
|
/**
|
|
475
280
|
* @param {string} inbox_id
|
|
476
281
|
* @returns {Promise<void>}
|
|
477
282
|
*/
|
|
478
|
-
|
|
283
|
+
addSuperAdmin(inbox_id: string): Promise<void>;
|
|
479
284
|
/**
|
|
480
285
|
* @param {string} inbox_id
|
|
481
286
|
* @returns {Promise<void>}
|
|
482
287
|
*/
|
|
483
|
-
|
|
288
|
+
removeSuperAdmin(inbox_id: string): Promise<void>;
|
|
484
289
|
/**
|
|
485
|
-
* @returns {
|
|
290
|
+
* @returns {GroupPermissions}
|
|
486
291
|
*/
|
|
487
|
-
|
|
292
|
+
groupPermissions(): GroupPermissions;
|
|
488
293
|
/**
|
|
489
294
|
* @param {(string)[]} inbox_ids
|
|
490
295
|
* @returns {Promise<void>}
|
|
491
296
|
*/
|
|
492
|
-
|
|
297
|
+
addMembersByInboxId(inbox_ids: (string)[]): Promise<void>;
|
|
493
298
|
/**
|
|
494
299
|
* @param {(string)[]} account_addresses
|
|
495
300
|
* @returns {Promise<void>}
|
|
496
301
|
*/
|
|
497
|
-
|
|
302
|
+
removeMembers(account_addresses: (string)[]): Promise<void>;
|
|
498
303
|
/**
|
|
499
304
|
* @param {(string)[]} inbox_ids
|
|
500
305
|
* @returns {Promise<void>}
|
|
501
306
|
*/
|
|
502
|
-
|
|
307
|
+
removeMembersByInboxId(inbox_ids: (string)[]): Promise<void>;
|
|
503
308
|
/**
|
|
504
309
|
* @param {string} group_name
|
|
505
310
|
* @returns {Promise<void>}
|
|
506
311
|
*/
|
|
507
|
-
|
|
312
|
+
updateGroupName(group_name: string): Promise<void>;
|
|
508
313
|
/**
|
|
509
314
|
* @returns {string}
|
|
510
315
|
*/
|
|
511
|
-
|
|
316
|
+
groupName(): string;
|
|
512
317
|
/**
|
|
513
318
|
* @param {string} group_image_url_square
|
|
514
319
|
* @returns {Promise<void>}
|
|
515
320
|
*/
|
|
516
|
-
|
|
321
|
+
updateGroupImageUrlSquare(group_image_url_square: string): Promise<void>;
|
|
517
322
|
/**
|
|
518
323
|
* @returns {string}
|
|
519
324
|
*/
|
|
520
|
-
|
|
325
|
+
groupImageUrlSquare(): string;
|
|
521
326
|
/**
|
|
522
327
|
* @param {string} group_description
|
|
523
328
|
* @returns {Promise<void>}
|
|
524
329
|
*/
|
|
525
|
-
|
|
330
|
+
updateGroupDescription(group_description: string): Promise<void>;
|
|
526
331
|
/**
|
|
527
332
|
* @returns {string}
|
|
528
333
|
*/
|
|
529
|
-
|
|
334
|
+
groupDescription(): string;
|
|
530
335
|
/**
|
|
531
336
|
* @param {string} pinned_frame_url
|
|
532
337
|
* @returns {Promise<void>}
|
|
533
338
|
*/
|
|
534
|
-
|
|
339
|
+
updateGroupPinnedFrameUrl(pinned_frame_url: string): Promise<void>;
|
|
535
340
|
/**
|
|
536
341
|
* @returns {string}
|
|
537
342
|
*/
|
|
538
|
-
|
|
343
|
+
groupPinnedFrameUrl(): string;
|
|
539
344
|
/**
|
|
540
345
|
* @returns {bigint}
|
|
541
346
|
*/
|
|
542
|
-
|
|
347
|
+
createdAtNs(): bigint;
|
|
543
348
|
/**
|
|
544
349
|
* @returns {boolean}
|
|
545
350
|
*/
|
|
546
|
-
|
|
351
|
+
isActive(): boolean;
|
|
547
352
|
/**
|
|
548
353
|
* @returns {string}
|
|
549
354
|
*/
|
|
550
|
-
|
|
355
|
+
addedByInboxId(): string;
|
|
551
356
|
/**
|
|
552
|
-
* @returns {
|
|
357
|
+
* @returns {GroupMetadata}
|
|
553
358
|
*/
|
|
554
|
-
|
|
359
|
+
groupMetadata(): GroupMetadata;
|
|
555
360
|
/**
|
|
556
361
|
* @returns {string}
|
|
557
362
|
*/
|
|
558
|
-
|
|
363
|
+
dmPeerInboxId(): string;
|
|
559
364
|
}
|
|
560
|
-
export class
|
|
365
|
+
export class Conversations {
|
|
366
|
+
free(): void;
|
|
367
|
+
/**
|
|
368
|
+
* @param {(string)[]} account_addresses
|
|
369
|
+
* @param {CreateGroupOptions | undefined} [options]
|
|
370
|
+
* @returns {Promise<Conversation>}
|
|
371
|
+
*/
|
|
372
|
+
createGroup(account_addresses: (string)[], options?: CreateGroupOptions): Promise<Conversation>;
|
|
373
|
+
/**
|
|
374
|
+
* @param {string} account_address
|
|
375
|
+
* @returns {Promise<Conversation>}
|
|
376
|
+
*/
|
|
377
|
+
createDm(account_address: string): Promise<Conversation>;
|
|
378
|
+
/**
|
|
379
|
+
* @param {string} group_id
|
|
380
|
+
* @returns {Conversation}
|
|
381
|
+
*/
|
|
382
|
+
findGroupById(group_id: string): Conversation;
|
|
383
|
+
/**
|
|
384
|
+
* @param {string} target_inbox_id
|
|
385
|
+
* @returns {Conversation}
|
|
386
|
+
*/
|
|
387
|
+
findDmByTargetInboxId(target_inbox_id: string): Conversation;
|
|
388
|
+
/**
|
|
389
|
+
* @param {string} message_id
|
|
390
|
+
* @returns {Message}
|
|
391
|
+
*/
|
|
392
|
+
findMessageById(message_id: string): Message;
|
|
393
|
+
/**
|
|
394
|
+
* @returns {Promise<void>}
|
|
395
|
+
*/
|
|
396
|
+
sync(): Promise<void>;
|
|
397
|
+
/**
|
|
398
|
+
* @param {ListConversationsOptions | undefined} [opts]
|
|
399
|
+
* @returns {Promise<Array<any>>}
|
|
400
|
+
*/
|
|
401
|
+
list(opts?: ListConversationsOptions): Promise<Array<any>>;
|
|
402
|
+
/**
|
|
403
|
+
* @param {ListConversationsOptions | undefined} [opts]
|
|
404
|
+
* @returns {Promise<Array<any>>}
|
|
405
|
+
*/
|
|
406
|
+
listGroups(opts?: ListConversationsOptions): Promise<Array<any>>;
|
|
407
|
+
/**
|
|
408
|
+
* @param {ListConversationsOptions | undefined} [opts]
|
|
409
|
+
* @returns {Promise<Array<any>>}
|
|
410
|
+
*/
|
|
411
|
+
listDms(opts?: ListConversationsOptions): Promise<Array<any>>;
|
|
412
|
+
}
|
|
413
|
+
export class CreateGroupOptions {
|
|
414
|
+
free(): void;
|
|
415
|
+
/**
|
|
416
|
+
* @param {GroupPermissionsOptions | undefined} [permissions]
|
|
417
|
+
* @param {string | undefined} [group_name]
|
|
418
|
+
* @param {string | undefined} [group_image_url_square]
|
|
419
|
+
* @param {string | undefined} [group_description]
|
|
420
|
+
* @param {string | undefined} [group_pinned_frame_url]
|
|
421
|
+
*/
|
|
422
|
+
constructor(permissions?: GroupPermissionsOptions, group_name?: string, group_image_url_square?: string, group_description?: string, group_pinned_frame_url?: string);
|
|
423
|
+
groupDescription?: string;
|
|
424
|
+
groupImageUrlSquare?: string;
|
|
425
|
+
groupName?: string;
|
|
426
|
+
groupPinnedFrameUrl?: string;
|
|
427
|
+
permissions?: GroupPermissionsOptions;
|
|
428
|
+
}
|
|
429
|
+
export class EncodedContent {
|
|
430
|
+
free(): void;
|
|
431
|
+
/**
|
|
432
|
+
* @param {ContentTypeId | undefined} type
|
|
433
|
+
* @param {any} parameters
|
|
434
|
+
* @param {string | undefined} fallback
|
|
435
|
+
* @param {number | undefined} compression
|
|
436
|
+
* @param {Uint8Array} content
|
|
437
|
+
*/
|
|
438
|
+
constructor(type: ContentTypeId | undefined, parameters: any, fallback: string | undefined, compression: number | undefined, content: Uint8Array);
|
|
439
|
+
compression?: number;
|
|
440
|
+
content: Uint8Array;
|
|
441
|
+
fallback?: string;
|
|
442
|
+
parameters: any;
|
|
443
|
+
type?: ContentTypeId;
|
|
444
|
+
}
|
|
445
|
+
export class GroupMember {
|
|
561
446
|
free(): void;
|
|
562
447
|
/**
|
|
563
448
|
* @param {string} inbox_id
|
|
564
449
|
* @param {(string)[]} account_addresses
|
|
565
450
|
* @param {(string)[]} installation_ids
|
|
566
|
-
* @param {
|
|
567
|
-
* @param {
|
|
451
|
+
* @param {PermissionLevel} permission_level
|
|
452
|
+
* @param {ConsentState} consent_state
|
|
568
453
|
*/
|
|
569
|
-
constructor(inbox_id: string, account_addresses: (string)[], installation_ids: (string)[], permission_level:
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
454
|
+
constructor(inbox_id: string, account_addresses: (string)[], installation_ids: (string)[], permission_level: PermissionLevel, consent_state: ConsentState);
|
|
455
|
+
accountAddresses: (string)[];
|
|
456
|
+
consentState: ConsentState;
|
|
457
|
+
inboxId: string;
|
|
458
|
+
installationIds: (string)[];
|
|
459
|
+
permissionLevel: PermissionLevel;
|
|
575
460
|
}
|
|
576
|
-
export class
|
|
461
|
+
export class GroupMetadata {
|
|
577
462
|
free(): void;
|
|
578
463
|
/**
|
|
579
464
|
* @returns {string}
|
|
@@ -584,326 +469,374 @@ export class WasmGroupMetadata {
|
|
|
584
469
|
*/
|
|
585
470
|
conversation_type(): string;
|
|
586
471
|
}
|
|
587
|
-
export class
|
|
472
|
+
export class GroupPermissions {
|
|
588
473
|
free(): void;
|
|
589
474
|
/**
|
|
590
|
-
* @returns {
|
|
475
|
+
* @returns {GroupPermissionsOptions}
|
|
591
476
|
*/
|
|
592
|
-
|
|
477
|
+
policyType(): GroupPermissionsOptions;
|
|
593
478
|
/**
|
|
594
|
-
* @returns {
|
|
479
|
+
* @returns {PermissionPolicySet}
|
|
595
480
|
*/
|
|
596
|
-
|
|
481
|
+
policySet(): PermissionPolicySet;
|
|
597
482
|
}
|
|
598
|
-
export class
|
|
483
|
+
export class InboxState {
|
|
599
484
|
free(): void;
|
|
600
485
|
/**
|
|
601
486
|
* @param {string} inbox_id
|
|
602
487
|
* @param {string} recovery_address
|
|
603
|
-
* @param {(
|
|
488
|
+
* @param {(Installation)[]} installations
|
|
604
489
|
* @param {(string)[]} account_addresses
|
|
605
490
|
*/
|
|
606
|
-
constructor(inbox_id: string, recovery_address: string, installations: (
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
installations: (
|
|
610
|
-
|
|
491
|
+
constructor(inbox_id: string, recovery_address: string, installations: (Installation)[], account_addresses: (string)[]);
|
|
492
|
+
accountAddresses: (string)[];
|
|
493
|
+
inboxId: string;
|
|
494
|
+
installations: (Installation)[];
|
|
495
|
+
recoveryAddress: string;
|
|
611
496
|
}
|
|
612
|
-
export class
|
|
497
|
+
export class Installation {
|
|
613
498
|
free(): void;
|
|
614
499
|
/**
|
|
615
500
|
* @param {string} id
|
|
616
501
|
* @param {bigint | undefined} [client_timestamp_ns]
|
|
617
502
|
*/
|
|
618
503
|
constructor(id: string, client_timestamp_ns?: bigint);
|
|
619
|
-
|
|
504
|
+
clientTimestampNs?: bigint;
|
|
620
505
|
id: string;
|
|
621
506
|
}
|
|
622
|
-
export class
|
|
507
|
+
export class IntoUnderlyingByteSource {
|
|
508
|
+
free(): void;
|
|
509
|
+
/**
|
|
510
|
+
* @param {ReadableByteStreamController} controller
|
|
511
|
+
*/
|
|
512
|
+
start(controller: ReadableByteStreamController): void;
|
|
513
|
+
/**
|
|
514
|
+
* @param {ReadableByteStreamController} controller
|
|
515
|
+
* @returns {Promise<any>}
|
|
516
|
+
*/
|
|
517
|
+
pull(controller: ReadableByteStreamController): Promise<any>;
|
|
518
|
+
cancel(): void;
|
|
519
|
+
readonly autoAllocateChunkSize: number;
|
|
520
|
+
readonly type: any;
|
|
521
|
+
}
|
|
522
|
+
export class IntoUnderlyingSink {
|
|
523
|
+
free(): void;
|
|
524
|
+
/**
|
|
525
|
+
* @param {any} chunk
|
|
526
|
+
* @returns {Promise<any>}
|
|
527
|
+
*/
|
|
528
|
+
write(chunk: any): Promise<any>;
|
|
529
|
+
/**
|
|
530
|
+
* @returns {Promise<any>}
|
|
531
|
+
*/
|
|
532
|
+
close(): Promise<any>;
|
|
533
|
+
/**
|
|
534
|
+
* @param {any} reason
|
|
535
|
+
* @returns {Promise<any>}
|
|
536
|
+
*/
|
|
537
|
+
abort(reason: any): Promise<any>;
|
|
538
|
+
}
|
|
539
|
+
export class IntoUnderlyingSource {
|
|
540
|
+
free(): void;
|
|
541
|
+
/**
|
|
542
|
+
* @param {ReadableStreamDefaultController} controller
|
|
543
|
+
* @returns {Promise<any>}
|
|
544
|
+
*/
|
|
545
|
+
pull(controller: ReadableStreamDefaultController): Promise<any>;
|
|
546
|
+
cancel(): void;
|
|
547
|
+
}
|
|
548
|
+
export class ListConversationsOptions {
|
|
623
549
|
free(): void;
|
|
624
550
|
/**
|
|
625
551
|
* @param {any[] | undefined} [allowed_states]
|
|
626
|
-
* @param {
|
|
552
|
+
* @param {ConversationType | undefined} [conversation_type]
|
|
627
553
|
* @param {bigint | undefined} [created_after_ns]
|
|
628
554
|
* @param {bigint | undefined} [created_before_ns]
|
|
629
555
|
* @param {bigint | undefined} [limit]
|
|
630
556
|
*/
|
|
631
|
-
constructor(allowed_states?: any[], conversation_type?:
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
557
|
+
constructor(allowed_states?: any[], conversation_type?: ConversationType, created_after_ns?: bigint, created_before_ns?: bigint, limit?: bigint);
|
|
558
|
+
allowedStates?: any[];
|
|
559
|
+
conversationType?: ConversationType;
|
|
560
|
+
createdAfterNs?: bigint;
|
|
561
|
+
createdBeforeNs?: bigint;
|
|
636
562
|
limit?: bigint;
|
|
637
563
|
}
|
|
638
|
-
export class
|
|
564
|
+
export class ListMessagesOptions {
|
|
639
565
|
free(): void;
|
|
640
566
|
/**
|
|
641
567
|
* @param {bigint | undefined} [sent_before_ns]
|
|
642
568
|
* @param {bigint | undefined} [sent_after_ns]
|
|
643
569
|
* @param {bigint | undefined} [limit]
|
|
644
|
-
* @param {
|
|
645
|
-
* @param {
|
|
570
|
+
* @param {DeliveryStatus | undefined} [delivery_status]
|
|
571
|
+
* @param {SortDirection | undefined} [direction]
|
|
646
572
|
*/
|
|
647
|
-
constructor(sent_before_ns?: bigint, sent_after_ns?: bigint, limit?: bigint, delivery_status?:
|
|
648
|
-
|
|
649
|
-
direction?:
|
|
573
|
+
constructor(sent_before_ns?: bigint, sent_after_ns?: bigint, limit?: bigint, delivery_status?: DeliveryStatus, direction?: SortDirection);
|
|
574
|
+
deliveryStatus?: DeliveryStatus;
|
|
575
|
+
direction?: SortDirection;
|
|
650
576
|
limit?: bigint;
|
|
651
|
-
|
|
652
|
-
|
|
577
|
+
sentAfterNs?: bigint;
|
|
578
|
+
sentBeforeNs?: bigint;
|
|
653
579
|
}
|
|
654
|
-
export class
|
|
580
|
+
export class Message {
|
|
655
581
|
free(): void;
|
|
656
582
|
/**
|
|
657
583
|
* @param {string} id
|
|
658
584
|
* @param {bigint} sent_at_ns
|
|
659
585
|
* @param {string} convo_id
|
|
660
586
|
* @param {string} sender_inbox_id
|
|
661
|
-
* @param {
|
|
662
|
-
* @param {
|
|
663
|
-
* @param {
|
|
664
|
-
*/
|
|
665
|
-
constructor(id: string, sent_at_ns: bigint, convo_id: string, sender_inbox_id: string, content:
|
|
666
|
-
content:
|
|
667
|
-
|
|
668
|
-
|
|
587
|
+
* @param {EncodedContent} content
|
|
588
|
+
* @param {GroupMessageKind} kind
|
|
589
|
+
* @param {DeliveryStatus} delivery_status
|
|
590
|
+
*/
|
|
591
|
+
constructor(id: string, sent_at_ns: bigint, convo_id: string, sender_inbox_id: string, content: EncodedContent, kind: GroupMessageKind, delivery_status: DeliveryStatus);
|
|
592
|
+
content: EncodedContent;
|
|
593
|
+
convoId: string;
|
|
594
|
+
deliveryStatus: DeliveryStatus;
|
|
669
595
|
id: string;
|
|
670
|
-
kind:
|
|
671
|
-
|
|
672
|
-
|
|
596
|
+
kind: GroupMessageKind;
|
|
597
|
+
senderInboxId: string;
|
|
598
|
+
sentAtNs: bigint;
|
|
673
599
|
}
|
|
674
|
-
export class
|
|
600
|
+
export class PermissionPolicySet {
|
|
675
601
|
free(): void;
|
|
676
602
|
/**
|
|
677
|
-
* @param {
|
|
678
|
-
* @param {
|
|
679
|
-
* @param {
|
|
680
|
-
* @param {
|
|
681
|
-
* @param {
|
|
682
|
-
* @param {
|
|
683
|
-
* @param {
|
|
684
|
-
* @param {
|
|
685
|
-
*/
|
|
686
|
-
constructor(add_member_policy:
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
603
|
+
* @param {PermissionPolicy} add_member_policy
|
|
604
|
+
* @param {PermissionPolicy} remove_member_policy
|
|
605
|
+
* @param {PermissionPolicy} add_admin_policy
|
|
606
|
+
* @param {PermissionPolicy} remove_admin_policy
|
|
607
|
+
* @param {PermissionPolicy} update_group_name_policy
|
|
608
|
+
* @param {PermissionPolicy} update_group_description_policy
|
|
609
|
+
* @param {PermissionPolicy} update_group_image_url_square_policy
|
|
610
|
+
* @param {PermissionPolicy} update_group_pinned_frame_url_policy
|
|
611
|
+
*/
|
|
612
|
+
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);
|
|
613
|
+
addAdminPolicy: PermissionPolicy;
|
|
614
|
+
addMemberPolicy: PermissionPolicy;
|
|
615
|
+
removeAdminPolicy: PermissionPolicy;
|
|
616
|
+
removeMemberPolicy: PermissionPolicy;
|
|
617
|
+
updateGroupDescriptionPolicy: PermissionPolicy;
|
|
618
|
+
updateGroupImageUrlSquarePolicy: PermissionPolicy;
|
|
619
|
+
updateGroupNamePolicy: PermissionPolicy;
|
|
620
|
+
updateGroupPinnedFrameUrlPolicy: PermissionPolicy;
|
|
621
|
+
}
|
|
622
|
+
export class Version {
|
|
623
|
+
free(): void;
|
|
695
624
|
}
|
|
696
625
|
|
|
697
626
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
698
627
|
|
|
699
628
|
export interface InitOutput {
|
|
700
629
|
readonly memory: WebAssembly.Memory;
|
|
701
|
-
readonly
|
|
702
|
-
readonly
|
|
703
|
-
readonly
|
|
704
|
-
readonly
|
|
705
|
-
readonly
|
|
706
|
-
readonly
|
|
707
|
-
readonly
|
|
708
|
-
readonly
|
|
709
|
-
readonly
|
|
710
|
-
readonly
|
|
711
|
-
readonly
|
|
712
|
-
readonly
|
|
713
|
-
readonly
|
|
714
|
-
readonly
|
|
715
|
-
readonly
|
|
716
|
-
readonly
|
|
717
|
-
readonly
|
|
718
|
-
readonly
|
|
719
|
-
readonly
|
|
720
|
-
readonly
|
|
721
|
-
readonly
|
|
722
|
-
readonly
|
|
723
|
-
readonly
|
|
724
|
-
readonly
|
|
725
|
-
readonly
|
|
726
|
-
readonly
|
|
727
|
-
readonly
|
|
728
|
-
readonly
|
|
729
|
-
readonly
|
|
730
|
-
readonly
|
|
731
|
-
readonly
|
|
732
|
-
readonly
|
|
733
|
-
readonly
|
|
734
|
-
readonly
|
|
630
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
631
|
+
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;
|
|
632
|
+
readonly client_accountAddress: (a: number) => Array;
|
|
633
|
+
readonly client_inboxId: (a: number) => Array;
|
|
634
|
+
readonly client_isRegistered: (a: number) => number;
|
|
635
|
+
readonly client_installationId: (a: number) => Array;
|
|
636
|
+
readonly client_canMessage: (a: number, b: number, c: number) => number;
|
|
637
|
+
readonly client_registerIdentity: (a: number) => number;
|
|
638
|
+
readonly client_sendHistorySyncRequest: (a: number) => number;
|
|
639
|
+
readonly client_sendConsentSyncRequest: (a: number) => number;
|
|
640
|
+
readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => number;
|
|
641
|
+
readonly client_conversations: (a: number) => number;
|
|
642
|
+
readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
643
|
+
readonly __wbg_get_listconversationsoptions_allowedStates: (a: number) => Array;
|
|
644
|
+
readonly __wbg_set_listconversationsoptions_allowedStates: (a: number, b: number, c: number) => void;
|
|
645
|
+
readonly __wbg_get_listconversationsoptions_conversationType: (a: number) => number;
|
|
646
|
+
readonly __wbg_set_listconversationsoptions_conversationType: (a: number, b: number) => void;
|
|
647
|
+
readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => Array;
|
|
648
|
+
readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: number) => void;
|
|
649
|
+
readonly __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => Array;
|
|
650
|
+
readonly __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: number) => void;
|
|
651
|
+
readonly __wbg_get_listconversationsoptions_limit: (a: number) => Array;
|
|
652
|
+
readonly __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: number) => void;
|
|
653
|
+
readonly listconversationsoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
654
|
+
readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
|
|
655
|
+
readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
|
|
656
|
+
readonly __wbg_set_creategroupoptions_permissions: (a: number, b: number) => void;
|
|
657
|
+
readonly __wbg_get_creategroupoptions_groupName: (a: number) => Array;
|
|
658
|
+
readonly __wbg_set_creategroupoptions_groupName: (a: number, b: number, c: number) => void;
|
|
659
|
+
readonly __wbg_get_creategroupoptions_groupImageUrlSquare: (a: number) => Array;
|
|
660
|
+
readonly __wbg_set_creategroupoptions_groupImageUrlSquare: (a: number, b: number, c: number) => void;
|
|
661
|
+
readonly __wbg_get_creategroupoptions_groupDescription: (a: number) => Array;
|
|
662
|
+
readonly __wbg_set_creategroupoptions_groupDescription: (a: number, b: number, c: number) => void;
|
|
663
|
+
readonly __wbg_get_creategroupoptions_groupPinnedFrameUrl: (a: number) => Array;
|
|
664
|
+
readonly __wbg_set_creategroupoptions_groupPinnedFrameUrl: (a: number, b: number, c: number) => void;
|
|
665
|
+
readonly creategroupoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
666
|
+
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
667
|
+
readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => number;
|
|
668
|
+
readonly conversations_createDm: (a: number, b: number, c: number) => number;
|
|
669
|
+
readonly conversations_findGroupById: (a: number, b: number, c: number) => Array;
|
|
670
|
+
readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => Array;
|
|
671
|
+
readonly conversations_findMessageById: (a: number, b: number, c: number) => Array;
|
|
672
|
+
readonly conversations_sync: (a: number) => number;
|
|
673
|
+
readonly conversations_list: (a: number, b: number) => number;
|
|
674
|
+
readonly conversations_listGroups: (a: number, b: number) => number;
|
|
675
|
+
readonly conversations_listDms: (a: number, b: number) => number;
|
|
676
|
+
readonly client_createInboxSignatureText: (a: number) => number;
|
|
677
|
+
readonly client_addWalletSignatureText: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
678
|
+
readonly client_revokeWalletSignatureText: (a: number, b: number, c: number) => number;
|
|
679
|
+
readonly client_revokeInstallationsSignatureText: (a: number) => number;
|
|
680
|
+
readonly client_addSignature: (a: number, b: number, c: number) => number;
|
|
681
|
+
readonly client_applySignatureRequests: (a: number) => number;
|
|
682
|
+
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
683
|
+
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
684
|
+
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
685
|
+
readonly __wbg_get_consent_state: (a: number) => number;
|
|
686
|
+
readonly __wbg_set_consent_state: (a: number, b: number) => void;
|
|
687
|
+
readonly __wbg_get_consent_entity: (a: number) => Array;
|
|
688
|
+
readonly __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
|
|
689
|
+
readonly consent_new: (a: number, b: number, c: number, d: number) => number;
|
|
690
|
+
readonly client_setConsentStates: (a: number, b: number, c: number) => number;
|
|
691
|
+
readonly client_getConsentState: (a: number, b: number, c: number, d: number) => number;
|
|
692
|
+
readonly conversation_consentState: (a: number) => Array;
|
|
693
|
+
readonly conversation_updateConsentState: (a: number, b: number) => Array;
|
|
694
|
+
readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
695
|
+
readonly groupmetadata_creator_inbox_id: (a: number) => Array;
|
|
696
|
+
readonly groupmetadata_conversation_type: (a: number) => Array;
|
|
697
|
+
readonly __wbg_groupmember_free: (a: number, b: number) => void;
|
|
698
|
+
readonly __wbg_get_groupmember_accountAddresses: (a: number) => Array;
|
|
699
|
+
readonly __wbg_set_groupmember_accountAddresses: (a: number, b: number, c: number) => void;
|
|
700
|
+
readonly __wbg_get_groupmember_installationIds: (a: number) => Array;
|
|
701
|
+
readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
|
|
702
|
+
readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
|
|
703
|
+
readonly __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
|
|
704
|
+
readonly __wbg_get_groupmember_consentState: (a: number) => number;
|
|
705
|
+
readonly __wbg_set_groupmember_consentState: (a: number, b: number) => void;
|
|
706
|
+
readonly groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
707
|
+
readonly __wbg_conversation_free: (a: number, b: number) => void;
|
|
708
|
+
readonly conversation_id: (a: number) => Array;
|
|
709
|
+
readonly conversation_send: (a: number, b: number) => number;
|
|
710
|
+
readonly conversation_sendOptimistic: (a: number, b: number) => Array;
|
|
711
|
+
readonly conversation_publishMessages: (a: number) => number;
|
|
712
|
+
readonly conversation_sync: (a: number) => number;
|
|
713
|
+
readonly conversation_findMessages: (a: number, b: number) => Array;
|
|
714
|
+
readonly conversation_listMembers: (a: number) => number;
|
|
715
|
+
readonly conversation_adminList: (a: number) => Array;
|
|
716
|
+
readonly conversation_superAdminList: (a: number) => Array;
|
|
717
|
+
readonly conversation_isAdmin: (a: number, b: number, c: number) => Array;
|
|
718
|
+
readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => Array;
|
|
719
|
+
readonly conversation_addMembers: (a: number, b: number, c: number) => number;
|
|
720
|
+
readonly conversation_addAdmin: (a: number, b: number, c: number) => number;
|
|
721
|
+
readonly conversation_removeAdmin: (a: number, b: number, c: number) => number;
|
|
722
|
+
readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => number;
|
|
723
|
+
readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => number;
|
|
724
|
+
readonly conversation_groupPermissions: (a: number) => Array;
|
|
725
|
+
readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => number;
|
|
726
|
+
readonly conversation_removeMembers: (a: number, b: number, c: number) => number;
|
|
727
|
+
readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => number;
|
|
728
|
+
readonly conversation_updateGroupName: (a: number, b: number, c: number) => number;
|
|
729
|
+
readonly conversation_groupName: (a: number) => Array;
|
|
730
|
+
readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => number;
|
|
731
|
+
readonly conversation_groupImageUrlSquare: (a: number) => Array;
|
|
732
|
+
readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => number;
|
|
733
|
+
readonly conversation_groupDescription: (a: number) => Array;
|
|
734
|
+
readonly conversation_updateGroupPinnedFrameUrl: (a: number, b: number, c: number) => number;
|
|
735
|
+
readonly conversation_groupPinnedFrameUrl: (a: number) => Array;
|
|
736
|
+
readonly conversation_createdAtNs: (a: number) => number;
|
|
737
|
+
readonly conversation_isActive: (a: number) => Array;
|
|
738
|
+
readonly conversation_addedByInboxId: (a: number) => Array;
|
|
739
|
+
readonly conversation_groupMetadata: (a: number) => Array;
|
|
740
|
+
readonly conversation_dmPeerInboxId: (a: number) => Array;
|
|
741
|
+
readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
742
|
+
readonly __wbg_get_contenttypeid_typeId: (a: number) => Array;
|
|
743
|
+
readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
744
|
+
readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
745
|
+
readonly __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
|
|
746
|
+
readonly __wbg_get_contenttypeid_versionMinor: (a: number) => number;
|
|
747
|
+
readonly __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
|
|
748
|
+
readonly contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
749
|
+
readonly __wbg_encodedcontent_free: (a: number, b: number) => void;
|
|
750
|
+
readonly __wbg_get_encodedcontent_type: (a: number) => number;
|
|
751
|
+
readonly __wbg_set_encodedcontent_type: (a: number, b: number) => void;
|
|
752
|
+
readonly __wbg_get_encodedcontent_parameters: (a: number) => number;
|
|
753
|
+
readonly __wbg_set_encodedcontent_parameters: (a: number, b: number) => void;
|
|
754
|
+
readonly __wbg_get_encodedcontent_fallback: (a: number) => Array;
|
|
755
|
+
readonly __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
|
|
756
|
+
readonly __wbg_get_encodedcontent_compression: (a: number) => Array;
|
|
757
|
+
readonly __wbg_set_encodedcontent_compression: (a: number, b: number, c: number) => void;
|
|
758
|
+
readonly __wbg_get_encodedcontent_content: (a: number) => number;
|
|
759
|
+
readonly __wbg_set_encodedcontent_content: (a: number, b: number) => void;
|
|
760
|
+
readonly encodedcontent_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
761
|
+
readonly __wbg_installation_free: (a: number, b: number) => void;
|
|
762
|
+
readonly __wbg_get_installation_id: (a: number) => Array;
|
|
763
|
+
readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
764
|
+
readonly __wbg_get_installation_clientTimestampNs: (a: number) => Array;
|
|
765
|
+
readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: number) => void;
|
|
766
|
+
readonly installation_new: (a: number, b: number, c: number, d: number) => number;
|
|
767
|
+
readonly __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
768
|
+
readonly __wbg_get_inboxstate_installations: (a: number) => Array;
|
|
769
|
+
readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
|
|
770
|
+
readonly __wbg_get_inboxstate_accountAddresses: (a: number) => Array;
|
|
771
|
+
readonly __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
|
|
772
|
+
readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
773
|
+
readonly client_inboxState: (a: number, b: number) => number;
|
|
774
|
+
readonly client_getLatestInboxState: (a: number, b: number, c: number) => number;
|
|
775
|
+
readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
|
|
776
|
+
readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => Array;
|
|
777
|
+
readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: number) => void;
|
|
778
|
+
readonly __wbg_get_listmessagesoptions_limit: (a: number) => Array;
|
|
779
|
+
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: number) => void;
|
|
780
|
+
readonly __wbg_get_listmessagesoptions_deliveryStatus: (a: number) => number;
|
|
781
|
+
readonly __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
|
|
782
|
+
readonly __wbg_get_listmessagesoptions_direction: (a: number) => number;
|
|
783
|
+
readonly __wbg_set_listmessagesoptions_direction: (a: number, b: number) => void;
|
|
784
|
+
readonly listmessagesoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
785
|
+
readonly __wbg_message_free: (a: number, b: number) => void;
|
|
786
|
+
readonly __wbg_get_message_id: (a: number) => Array;
|
|
787
|
+
readonly __wbg_set_message_id: (a: number, b: number, c: number) => void;
|
|
788
|
+
readonly __wbg_get_message_sentAtNs: (a: number) => number;
|
|
789
|
+
readonly __wbg_set_message_sentAtNs: (a: number, b: number) => void;
|
|
790
|
+
readonly __wbg_get_message_convoId: (a: number) => Array;
|
|
791
|
+
readonly __wbg_set_message_convoId: (a: number, b: number, c: number) => void;
|
|
792
|
+
readonly __wbg_get_message_senderInboxId: (a: number) => Array;
|
|
793
|
+
readonly __wbg_set_message_senderInboxId: (a: number, b: number, c: number) => void;
|
|
794
|
+
readonly __wbg_get_message_content: (a: number) => number;
|
|
795
|
+
readonly __wbg_set_message_content: (a: number, b: number) => void;
|
|
796
|
+
readonly __wbg_get_message_kind: (a: number) => number;
|
|
797
|
+
readonly __wbg_set_message_kind: (a: number, b: number) => void;
|
|
798
|
+
readonly __wbg_get_message_deliveryStatus: (a: number) => number;
|
|
799
|
+
readonly __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
|
|
800
|
+
readonly message_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
801
|
+
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
802
|
+
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
803
|
+
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
804
|
+
readonly __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
|
|
805
|
+
readonly __wbg_get_groupmember_inboxId: (a: number) => Array;
|
|
806
|
+
readonly __wbg_get_contenttypeid_authorityId: (a: number) => Array;
|
|
807
|
+
readonly __wbg_get_inboxstate_inboxId: (a: number) => Array;
|
|
808
|
+
readonly __wbg_get_inboxstate_recoveryAddress: (a: number) => Array;
|
|
809
|
+
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => Array;
|
|
810
|
+
readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: number) => void;
|
|
735
811
|
readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => number;
|
|
736
812
|
readonly generateInboxId: (a: number, b: number) => Array;
|
|
737
|
-
readonly
|
|
738
|
-
readonly
|
|
739
|
-
readonly
|
|
740
|
-
readonly
|
|
741
|
-
readonly
|
|
742
|
-
readonly
|
|
743
|
-
readonly
|
|
744
|
-
readonly
|
|
745
|
-
readonly
|
|
746
|
-
readonly
|
|
747
|
-
readonly
|
|
748
|
-
readonly
|
|
749
|
-
readonly
|
|
750
|
-
readonly
|
|
751
|
-
readonly
|
|
752
|
-
readonly
|
|
753
|
-
readonly
|
|
754
|
-
readonly
|
|
755
|
-
readonly
|
|
756
|
-
readonly
|
|
757
|
-
readonly
|
|
758
|
-
readonly
|
|
759
|
-
readonly
|
|
760
|
-
readonly
|
|
761
|
-
readonly
|
|
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;
|
|
775
|
-
readonly __wbg_wasmgroupmetadata_free: (a: number, b: number) => void;
|
|
776
|
-
readonly wasmgroupmetadata_creator_inbox_id: (a: number) => Array;
|
|
777
|
-
readonly wasmgroupmetadata_conversation_type: (a: number) => Array;
|
|
778
|
-
readonly __wbg_wasmgroupmember_free: (a: number, b: number) => void;
|
|
779
|
-
readonly __wbg_get_wasmgroupmember_account_addresses: (a: number) => Array;
|
|
780
|
-
readonly __wbg_set_wasmgroupmember_account_addresses: (a: number, b: number, c: number) => void;
|
|
781
|
-
readonly __wbg_get_wasmgroupmember_installation_ids: (a: number) => Array;
|
|
782
|
-
readonly __wbg_set_wasmgroupmember_installation_ids: (a: number, b: number, c: number) => void;
|
|
783
|
-
readonly __wbg_get_wasmgroupmember_permission_level: (a: number) => number;
|
|
784
|
-
readonly __wbg_set_wasmgroupmember_permission_level: (a: number, b: number) => void;
|
|
785
|
-
readonly __wbg_get_wasmgroupmember_consent_state: (a: number) => number;
|
|
786
|
-
readonly __wbg_set_wasmgroupmember_consent_state: (a: number, b: number) => void;
|
|
787
|
-
readonly wasmgroupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
788
|
-
readonly __wbg_wasmgroup_free: (a: number, b: number) => void;
|
|
789
|
-
readonly wasmgroup_id: (a: number) => Array;
|
|
790
|
-
readonly wasmgroup_send: (a: number, b: number) => number;
|
|
791
|
-
readonly wasmgroup_send_optimistic: (a: number, b: number) => Array;
|
|
792
|
-
readonly wasmgroup_publish_messages: (a: number) => number;
|
|
793
|
-
readonly wasmgroup_sync: (a: number) => number;
|
|
794
|
-
readonly wasmgroup_find_messages: (a: number, b: number) => Array;
|
|
795
|
-
readonly wasmgroup_list_members: (a: number) => number;
|
|
796
|
-
readonly wasmgroup_admin_list: (a: number) => Array;
|
|
797
|
-
readonly wasmgroup_super_admin_list: (a: number) => Array;
|
|
798
|
-
readonly wasmgroup_is_admin: (a: number, b: number, c: number) => Array;
|
|
799
|
-
readonly wasmgroup_is_super_admin: (a: number, b: number, c: number) => Array;
|
|
800
|
-
readonly wasmgroup_add_members: (a: number, b: number, c: number) => number;
|
|
801
|
-
readonly wasmgroup_add_admin: (a: number, b: number, c: number) => number;
|
|
802
|
-
readonly wasmgroup_remove_admin: (a: number, b: number, c: number) => number;
|
|
803
|
-
readonly wasmgroup_add_super_admin: (a: number, b: number, c: number) => number;
|
|
804
|
-
readonly wasmgroup_remove_super_admin: (a: number, b: number, c: number) => number;
|
|
805
|
-
readonly wasmgroup_group_permissions: (a: number) => Array;
|
|
806
|
-
readonly wasmgroup_add_members_by_inbox_id: (a: number, b: number, c: number) => number;
|
|
807
|
-
readonly wasmgroup_remove_members: (a: number, b: number, c: number) => number;
|
|
808
|
-
readonly wasmgroup_remove_members_by_inbox_id: (a: number, b: number, c: number) => number;
|
|
809
|
-
readonly wasmgroup_update_group_name: (a: number, b: number, c: number) => number;
|
|
810
|
-
readonly wasmgroup_group_name: (a: number) => Array;
|
|
811
|
-
readonly wasmgroup_update_group_image_url_square: (a: number, b: number, c: number) => number;
|
|
812
|
-
readonly wasmgroup_group_image_url_square: (a: number) => Array;
|
|
813
|
-
readonly wasmgroup_update_group_description: (a: number, b: number, c: number) => number;
|
|
814
|
-
readonly wasmgroup_group_description: (a: number) => Array;
|
|
815
|
-
readonly wasmgroup_update_group_pinned_frame_url: (a: number, b: number, c: number) => number;
|
|
816
|
-
readonly wasmgroup_group_pinned_frame_url: (a: number) => Array;
|
|
817
|
-
readonly wasmgroup_created_at_ns: (a: number) => number;
|
|
818
|
-
readonly wasmgroup_is_active: (a: number) => Array;
|
|
819
|
-
readonly wasmgroup_added_by_inbox_id: (a: number) => Array;
|
|
820
|
-
readonly wasmgroup_group_metadata: (a: number) => Array;
|
|
821
|
-
readonly wasmgroup_dm_peer_inbox_id: (a: number) => Array;
|
|
822
|
-
readonly __wbg_wasminstallation_free: (a: number, b: number) => void;
|
|
823
|
-
readonly __wbg_get_wasminstallation_id: (a: number) => Array;
|
|
824
|
-
readonly __wbg_set_wasminstallation_id: (a: number, b: number, c: number) => void;
|
|
825
|
-
readonly __wbg_get_wasminstallation_client_timestamp_ns: (a: number) => Array;
|
|
826
|
-
readonly __wbg_set_wasminstallation_client_timestamp_ns: (a: number, b: number, c: number) => void;
|
|
827
|
-
readonly wasminstallation_new: (a: number, b: number, c: number, d: number) => number;
|
|
828
|
-
readonly __wbg_wasminboxstate_free: (a: number, b: number) => void;
|
|
829
|
-
readonly __wbg_get_wasminboxstate_installations: (a: number) => Array;
|
|
830
|
-
readonly __wbg_set_wasminboxstate_installations: (a: number, b: number, c: number) => void;
|
|
831
|
-
readonly __wbg_get_wasminboxstate_account_addresses: (a: number) => Array;
|
|
832
|
-
readonly __wbg_set_wasminboxstate_account_addresses: (a: number, b: number, c: number) => void;
|
|
833
|
-
readonly wasminboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
834
|
-
readonly wasmclient_inboxState: (a: number, b: number) => number;
|
|
835
|
-
readonly wasmclient_getLatestInboxState: (a: number, b: number, c: number) => number;
|
|
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;
|
|
841
|
-
readonly __wbg_get_wasmlistmessagesoptions_delivery_status: (a: number) => number;
|
|
842
|
-
readonly __wbg_set_wasmlistmessagesoptions_delivery_status: (a: number, b: number) => void;
|
|
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;
|
|
846
|
-
readonly __wbg_wasmmessage_free: (a: number, b: number) => void;
|
|
847
|
-
readonly __wbg_get_wasmmessage_id: (a: number) => Array;
|
|
848
|
-
readonly __wbg_set_wasmmessage_id: (a: number, b: number, c: number) => void;
|
|
849
|
-
readonly __wbg_get_wasmmessage_sent_at_ns: (a: number) => number;
|
|
850
|
-
readonly __wbg_set_wasmmessage_sent_at_ns: (a: number, b: number) => void;
|
|
851
|
-
readonly __wbg_get_wasmmessage_convo_id: (a: number) => Array;
|
|
852
|
-
readonly __wbg_set_wasmmessage_convo_id: (a: number, b: number, c: number) => void;
|
|
853
|
-
readonly __wbg_get_wasmmessage_sender_inbox_id: (a: number) => Array;
|
|
854
|
-
readonly __wbg_set_wasmmessage_sender_inbox_id: (a: number, b: number, c: number) => void;
|
|
855
|
-
readonly __wbg_get_wasmmessage_content: (a: number) => number;
|
|
856
|
-
readonly __wbg_set_wasmmessage_content: (a: number, b: number) => void;
|
|
857
|
-
readonly __wbg_get_wasmmessage_kind: (a: number) => number;
|
|
858
|
-
readonly __wbg_set_wasmmessage_kind: (a: number, b: number) => void;
|
|
859
|
-
readonly __wbg_get_wasmmessage_delivery_status: (a: number) => number;
|
|
860
|
-
readonly __wbg_set_wasmmessage_delivery_status: (a: number, b: number) => void;
|
|
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;
|
|
870
|
-
readonly __wbg_get_wasmlistmessagesoptions_sent_before_ns: (a: number) => Array;
|
|
871
|
-
readonly __wbg_set_wasmlistmessagesoptions_sent_before_ns: (a: number, b: number, c: number) => void;
|
|
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;
|
|
813
|
+
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
814
|
+
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
815
|
+
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
816
|
+
readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
817
|
+
readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
818
|
+
readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
819
|
+
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
820
|
+
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
821
|
+
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
822
|
+
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
823
|
+
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
824
|
+
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
825
|
+
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
826
|
+
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
827
|
+
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
828
|
+
readonly __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number) => number;
|
|
829
|
+
readonly __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number, b: number) => void;
|
|
830
|
+
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
831
|
+
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
832
|
+
readonly grouppermissions_policyType: (a: number) => Array;
|
|
833
|
+
readonly grouppermissions_policySet: (a: number) => Array;
|
|
834
|
+
readonly __wbg_version_free: (a: number, b: number) => void;
|
|
835
|
+
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
836
|
+
readonly intounderlyingsource_pull: (a: number, b: number) => number;
|
|
837
|
+
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
905
838
|
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
906
|
-
readonly intounderlyingbytesource_type: (a: number) =>
|
|
839
|
+
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
907
840
|
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
908
841
|
readonly intounderlyingbytesource_start: (a: number, b: number) => void;
|
|
909
842
|
readonly intounderlyingbytesource_pull: (a: number, b: number) => number;
|
|
@@ -912,33 +845,18 @@ export interface InitOutput {
|
|
|
912
845
|
readonly intounderlyingsink_write: (a: number, b: number) => number;
|
|
913
846
|
readonly intounderlyingsink_close: (a: number) => number;
|
|
914
847
|
readonly intounderlyingsink_abort: (a: number, b: number) => number;
|
|
915
|
-
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
916
|
-
readonly intounderlyingsource_pull: (a: number, b: number) => number;
|
|
917
|
-
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
918
|
-
readonly __wbg_version_free: (a: number, b: number) => void;
|
|
919
|
-
readonly __wbg_wasmbindgentestcontext_free: (a: number, b: number) => void;
|
|
920
|
-
readonly wasmbindgentestcontext_new: () => number;
|
|
921
|
-
readonly wasmbindgentestcontext_args: (a: number, b: number, c: number) => void;
|
|
922
|
-
readonly wasmbindgentestcontext_run: (a: number, b: number, c: number) => number;
|
|
923
|
-
readonly __wbgtest_console_log: (a: number) => void;
|
|
924
|
-
readonly __wbgtest_console_debug: (a: number) => void;
|
|
925
|
-
readonly __wbgtest_console_info: (a: number) => void;
|
|
926
|
-
readonly __wbgtest_console_warn: (a: number) => void;
|
|
927
|
-
readonly __wbgtest_console_error: (a: number) => void;
|
|
928
|
-
readonly __wbgtest_cov_dump: () => Array;
|
|
929
848
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
930
849
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
931
850
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
932
851
|
readonly __wbindgen_export_3: WebAssembly.Table;
|
|
933
|
-
readonly
|
|
934
|
-
readonly
|
|
935
|
-
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
936
|
-
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
852
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha602f13c6f6f57bd: (a: number, b: number) => void;
|
|
853
|
+
readonly closure2955_externref_shim: (a: number, b: number, c: number) => void;
|
|
937
854
|
readonly __externref_table_alloc: () => number;
|
|
855
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
856
|
+
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
938
857
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
939
858
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
940
|
-
readonly
|
|
941
|
-
readonly closure3227_externref_shim: (a: number, b: number, c: number, d: number) => void;
|
|
859
|
+
readonly closure3167_externref_shim: (a: number, b: number, c: number, d: number) => void;
|
|
942
860
|
readonly __wbindgen_start: () => void;
|
|
943
861
|
}
|
|
944
862
|
|