@xmtp/wasm-bindings 0.0.1
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/LICENSE +21 -0
- package/README.md +21 -0
- package/dist/bindings_wasm.d.ts +904 -0
- package/dist/bindings_wasm.js +3779 -0
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +233 -0
- package/dist/snippets/diesel-wasm-sqlite-36e85657e47f3be3/src/js/sqlite3-opfs-async-proxy.js +692 -0
- package/dist/snippets/diesel-wasm-sqlite-36e85657e47f3be3/src/js/wa-sqlite-diesel-bundle.js +14738 -0
- package/package.json +56 -0
|
@@ -0,0 +1,904 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
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
|
+
/**
|
|
14
|
+
* @param {string} host
|
|
15
|
+
* @param {string} account_address
|
|
16
|
+
* @returns {Promise<string | undefined>}
|
|
17
|
+
*/
|
|
18
|
+
export function getInboxIdForAddress(host: string, account_address: string): Promise<string | undefined>;
|
|
19
|
+
/**
|
|
20
|
+
* @param {string} account_address
|
|
21
|
+
* @returns {string}
|
|
22
|
+
*/
|
|
23
|
+
export function generateInboxId(account_address: string): string;
|
|
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
|
|
42
|
+
*/
|
|
43
|
+
export function __wbgtest_console_info(args: Array<any>): void;
|
|
44
|
+
/**
|
|
45
|
+
* Handler for `console.warn` invocations. See above.
|
|
46
|
+
* @param {Array<any>} args
|
|
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
|
|
52
|
+
*/
|
|
53
|
+
export function __wbgtest_console_error(args: Array<any>): void;
|
|
54
|
+
/**
|
|
55
|
+
* @returns {Uint8Array | undefined}
|
|
56
|
+
*/
|
|
57
|
+
export function __wbgtest_cov_dump(): Uint8Array | undefined;
|
|
58
|
+
export enum WasmConsentEntityType {
|
|
59
|
+
GroupId = 0,
|
|
60
|
+
InboxId = 1,
|
|
61
|
+
Address = 2,
|
|
62
|
+
}
|
|
63
|
+
export enum WasmConsentState {
|
|
64
|
+
Unknown = 0,
|
|
65
|
+
Allowed = 1,
|
|
66
|
+
Denied = 2,
|
|
67
|
+
}
|
|
68
|
+
export enum WasmDeliveryStatus {
|
|
69
|
+
Unpublished = 0,
|
|
70
|
+
Published = 1,
|
|
71
|
+
Failed = 2,
|
|
72
|
+
}
|
|
73
|
+
export enum WasmGroupMessageKind {
|
|
74
|
+
Application = 0,
|
|
75
|
+
MembershipChange = 1,
|
|
76
|
+
}
|
|
77
|
+
export enum WasmGroupPermissionsOptions {
|
|
78
|
+
AllMembers = 0,
|
|
79
|
+
AdminOnly = 1,
|
|
80
|
+
CustomPolicy = 2,
|
|
81
|
+
}
|
|
82
|
+
export enum WasmPermissionLevel {
|
|
83
|
+
Member = 0,
|
|
84
|
+
Admin = 1,
|
|
85
|
+
SuperAdmin = 2,
|
|
86
|
+
}
|
|
87
|
+
export enum WasmPermissionPolicy {
|
|
88
|
+
Allow = 0,
|
|
89
|
+
Deny = 1,
|
|
90
|
+
Admin = 2,
|
|
91
|
+
SuperAdmin = 3,
|
|
92
|
+
DoesNotExist = 4,
|
|
93
|
+
Other = 5,
|
|
94
|
+
}
|
|
95
|
+
export enum WasmPermissionUpdateType {
|
|
96
|
+
AddMember = 0,
|
|
97
|
+
RemoveMember = 1,
|
|
98
|
+
AddAdmin = 2,
|
|
99
|
+
RemoveAdmin = 3,
|
|
100
|
+
UpdateMetadata = 4,
|
|
101
|
+
}
|
|
102
|
+
export enum WasmSignatureRequestType {
|
|
103
|
+
AddWallet = 0,
|
|
104
|
+
CreateInbox = 1,
|
|
105
|
+
RevokeWallet = 2,
|
|
106
|
+
RevokeInstallations = 3,
|
|
107
|
+
}
|
|
108
|
+
export class IntoUnderlyingByteSource {
|
|
109
|
+
free(): void;
|
|
110
|
+
/**
|
|
111
|
+
* @param {ReadableByteStreamController} controller
|
|
112
|
+
*/
|
|
113
|
+
start(controller: ReadableByteStreamController): void;
|
|
114
|
+
/**
|
|
115
|
+
* @param {ReadableByteStreamController} controller
|
|
116
|
+
* @returns {Promise<any>}
|
|
117
|
+
*/
|
|
118
|
+
pull(controller: ReadableByteStreamController): Promise<any>;
|
|
119
|
+
cancel(): void;
|
|
120
|
+
readonly autoAllocateChunkSize: number;
|
|
121
|
+
readonly type: string;
|
|
122
|
+
}
|
|
123
|
+
export class IntoUnderlyingSink {
|
|
124
|
+
free(): void;
|
|
125
|
+
/**
|
|
126
|
+
* @param {any} chunk
|
|
127
|
+
* @returns {Promise<any>}
|
|
128
|
+
*/
|
|
129
|
+
write(chunk: any): Promise<any>;
|
|
130
|
+
/**
|
|
131
|
+
* @returns {Promise<any>}
|
|
132
|
+
*/
|
|
133
|
+
close(): Promise<any>;
|
|
134
|
+
/**
|
|
135
|
+
* @param {any} reason
|
|
136
|
+
* @returns {Promise<any>}
|
|
137
|
+
*/
|
|
138
|
+
abort(reason: any): Promise<any>;
|
|
139
|
+
}
|
|
140
|
+
export class IntoUnderlyingSource {
|
|
141
|
+
free(): void;
|
|
142
|
+
/**
|
|
143
|
+
* @param {ReadableStreamDefaultController} controller
|
|
144
|
+
* @returns {Promise<any>}
|
|
145
|
+
*/
|
|
146
|
+
pull(controller: ReadableStreamDefaultController): Promise<any>;
|
|
147
|
+
cancel(): void;
|
|
148
|
+
}
|
|
149
|
+
export class Version {
|
|
150
|
+
free(): void;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Runtime test harness support instantiated in JS.
|
|
154
|
+
*
|
|
155
|
+
* The node.js entry script instantiates a `Context` here which is used to
|
|
156
|
+
* drive test execution.
|
|
157
|
+
*/
|
|
158
|
+
export class WasmBindgenTestContext {
|
|
159
|
+
free(): void;
|
|
160
|
+
/**
|
|
161
|
+
* Creates a new context ready to run tests.
|
|
162
|
+
*
|
|
163
|
+
* A `Context` is the main structure through which test execution is
|
|
164
|
+
* coordinated, and this will collect output and results for all executed
|
|
165
|
+
* tests.
|
|
166
|
+
*/
|
|
167
|
+
constructor();
|
|
168
|
+
/**
|
|
169
|
+
* Inform this context about runtime arguments passed to the test
|
|
170
|
+
* harness.
|
|
171
|
+
* @param {any[]} args
|
|
172
|
+
*/
|
|
173
|
+
args(args: any[]): void;
|
|
174
|
+
/**
|
|
175
|
+
* Executes a list of tests, returning a promise representing their
|
|
176
|
+
* eventual completion.
|
|
177
|
+
*
|
|
178
|
+
* This is the main entry point for executing tests. All the tests passed
|
|
179
|
+
* in are the JS `Function` object that was plucked off the
|
|
180
|
+
* `WebAssembly.Instance` exports list.
|
|
181
|
+
*
|
|
182
|
+
* The promise returned resolves to either `true` if all tests passed or
|
|
183
|
+
* `false` if at least one test failed.
|
|
184
|
+
* @param {any[]} tests
|
|
185
|
+
* @returns {Promise<any>}
|
|
186
|
+
*/
|
|
187
|
+
run(tests: any[]): Promise<any>;
|
|
188
|
+
}
|
|
189
|
+
export class WasmClient {
|
|
190
|
+
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
|
+
/**
|
|
201
|
+
* @returns {Promise<string | undefined>}
|
|
202
|
+
*/
|
|
203
|
+
createInboxSignatureText(): Promise<string | undefined>;
|
|
204
|
+
/**
|
|
205
|
+
* @param {string} existing_wallet_address
|
|
206
|
+
* @param {string} new_wallet_address
|
|
207
|
+
* @returns {Promise<string>}
|
|
208
|
+
*/
|
|
209
|
+
addWalletSignatureText(existing_wallet_address: string, new_wallet_address: string): Promise<string>;
|
|
210
|
+
/**
|
|
211
|
+
* @param {string} wallet_address
|
|
212
|
+
* @returns {Promise<string>}
|
|
213
|
+
*/
|
|
214
|
+
revokeWalletSignatureText(wallet_address: string): Promise<string>;
|
|
215
|
+
/**
|
|
216
|
+
* @returns {Promise<string>}
|
|
217
|
+
*/
|
|
218
|
+
revokeInstallationsSignatureText(): Promise<string>;
|
|
219
|
+
/**
|
|
220
|
+
* @param {WasmSignatureRequestType} signature_type
|
|
221
|
+
* @param {Uint8Array} signature_bytes
|
|
222
|
+
* @returns {Promise<void>}
|
|
223
|
+
*/
|
|
224
|
+
addSignature(signature_type: WasmSignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
|
|
225
|
+
/**
|
|
226
|
+
* @returns {Promise<void>}
|
|
227
|
+
*/
|
|
228
|
+
applySignatureRequests(): Promise<void>;
|
|
229
|
+
/**
|
|
230
|
+
* @returns {Promise<void>}
|
|
231
|
+
*/
|
|
232
|
+
requestHistorySync(): Promise<void>;
|
|
233
|
+
/**
|
|
234
|
+
* @param {string} address
|
|
235
|
+
* @returns {Promise<string | undefined>}
|
|
236
|
+
*/
|
|
237
|
+
findInboxIdByAddress(address: string): Promise<string | undefined>;
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* * Get the client's inbox state.
|
|
241
|
+
* *
|
|
242
|
+
* * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
|
|
243
|
+
* * Otherwise, the state will be read from the local database.
|
|
244
|
+
*
|
|
245
|
+
* @param {boolean} refresh_from_network
|
|
246
|
+
* @returns {Promise<WasmInboxState>}
|
|
247
|
+
*/
|
|
248
|
+
inboxState(refresh_from_network: boolean): Promise<WasmInboxState>;
|
|
249
|
+
/**
|
|
250
|
+
* @param {string} inbox_id
|
|
251
|
+
* @returns {Promise<WasmInboxState>}
|
|
252
|
+
*/
|
|
253
|
+
getLatestInboxState(inbox_id: string): Promise<WasmInboxState>;
|
|
254
|
+
/**
|
|
255
|
+
* @param {(WasmConsent)[]} records
|
|
256
|
+
* @returns {Promise<void>}
|
|
257
|
+
*/
|
|
258
|
+
setConsentStates(records: (WasmConsent)[]): Promise<void>;
|
|
259
|
+
/**
|
|
260
|
+
* @param {WasmConsentEntityType} entity_type
|
|
261
|
+
* @param {string} entity
|
|
262
|
+
* @returns {Promise<WasmConsentState>}
|
|
263
|
+
*/
|
|
264
|
+
getConsentState(entity_type: WasmConsentEntityType, entity: string): Promise<WasmConsentState>;
|
|
265
|
+
/**
|
|
266
|
+
* @returns {WasmConversations}
|
|
267
|
+
*/
|
|
268
|
+
conversations(): WasmConversations;
|
|
269
|
+
readonly accountAddress: string;
|
|
270
|
+
readonly inboxId: string;
|
|
271
|
+
readonly installationId: string;
|
|
272
|
+
readonly isRegistered: boolean;
|
|
273
|
+
}
|
|
274
|
+
export class WasmConsent {
|
|
275
|
+
free(): void;
|
|
276
|
+
/**
|
|
277
|
+
* @param {WasmConsentEntityType} entity_type
|
|
278
|
+
* @param {WasmConsentState} state
|
|
279
|
+
* @param {string} entity
|
|
280
|
+
*/
|
|
281
|
+
constructor(entity_type: WasmConsentEntityType, state: WasmConsentState, entity: string);
|
|
282
|
+
entity: string;
|
|
283
|
+
entity_type: WasmConsentEntityType;
|
|
284
|
+
state: WasmConsentState;
|
|
285
|
+
}
|
|
286
|
+
export class WasmContentTypeId {
|
|
287
|
+
free(): void;
|
|
288
|
+
/**
|
|
289
|
+
* @param {string} authority_id
|
|
290
|
+
* @param {string} type_id
|
|
291
|
+
* @param {number} version_major
|
|
292
|
+
* @param {number} version_minor
|
|
293
|
+
*/
|
|
294
|
+
constructor(authority_id: string, type_id: string, version_major: number, version_minor: number);
|
|
295
|
+
authority_id: string;
|
|
296
|
+
type_id: string;
|
|
297
|
+
version_major: number;
|
|
298
|
+
version_minor: number;
|
|
299
|
+
}
|
|
300
|
+
export class WasmConversations {
|
|
301
|
+
free(): void;
|
|
302
|
+
/**
|
|
303
|
+
* @param {(string)[]} account_addresses
|
|
304
|
+
* @param {WasmCreateGroupOptions | undefined} [options]
|
|
305
|
+
* @returns {Promise<WasmGroup>}
|
|
306
|
+
*/
|
|
307
|
+
create_group(account_addresses: (string)[], options?: WasmCreateGroupOptions): Promise<WasmGroup>;
|
|
308
|
+
/**
|
|
309
|
+
* @param {string} group_id
|
|
310
|
+
* @returns {WasmGroup}
|
|
311
|
+
*/
|
|
312
|
+
find_group_by_id(group_id: string): WasmGroup;
|
|
313
|
+
/**
|
|
314
|
+
* @param {string} message_id
|
|
315
|
+
* @returns {WasmMessage}
|
|
316
|
+
*/
|
|
317
|
+
find_message_by_id(message_id: string): WasmMessage;
|
|
318
|
+
/**
|
|
319
|
+
* @returns {Promise<void>}
|
|
320
|
+
*/
|
|
321
|
+
sync(): Promise<void>;
|
|
322
|
+
/**
|
|
323
|
+
* @param {WasmListConversationsOptions | undefined} [opts]
|
|
324
|
+
* @returns {Promise<Array<any>>}
|
|
325
|
+
*/
|
|
326
|
+
list(opts?: WasmListConversationsOptions): Promise<Array<any>>;
|
|
327
|
+
}
|
|
328
|
+
export class WasmCreateGroupOptions {
|
|
329
|
+
free(): void;
|
|
330
|
+
/**
|
|
331
|
+
* @param {WasmGroupPermissionsOptions | undefined} [permissions]
|
|
332
|
+
* @param {string | undefined} [group_name]
|
|
333
|
+
* @param {string | undefined} [group_image_url_square]
|
|
334
|
+
* @param {string | undefined} [group_description]
|
|
335
|
+
* @param {string | undefined} [group_pinned_frame_url]
|
|
336
|
+
*/
|
|
337
|
+
constructor(permissions?: WasmGroupPermissionsOptions, group_name?: string, group_image_url_square?: string, group_description?: string, group_pinned_frame_url?: string);
|
|
338
|
+
group_description?: string;
|
|
339
|
+
group_image_url_square?: string;
|
|
340
|
+
group_name?: string;
|
|
341
|
+
group_pinned_frame_url?: string;
|
|
342
|
+
permissions?: WasmGroupPermissionsOptions;
|
|
343
|
+
}
|
|
344
|
+
export class WasmEncodedContent {
|
|
345
|
+
free(): void;
|
|
346
|
+
/**
|
|
347
|
+
* @param {WasmContentTypeId | undefined} type
|
|
348
|
+
* @param {any} parameters
|
|
349
|
+
* @param {string | undefined} fallback
|
|
350
|
+
* @param {number | undefined} compression
|
|
351
|
+
* @param {Uint8Array} content
|
|
352
|
+
*/
|
|
353
|
+
constructor(type: WasmContentTypeId | undefined, parameters: any, fallback: string | undefined, compression: number | undefined, content: Uint8Array);
|
|
354
|
+
compression?: number;
|
|
355
|
+
content: Uint8Array;
|
|
356
|
+
fallback?: string;
|
|
357
|
+
parameters: any;
|
|
358
|
+
type?: WasmContentTypeId;
|
|
359
|
+
}
|
|
360
|
+
export class WasmGroup {
|
|
361
|
+
free(): void;
|
|
362
|
+
/**
|
|
363
|
+
* @returns {string}
|
|
364
|
+
*/
|
|
365
|
+
id(): string;
|
|
366
|
+
/**
|
|
367
|
+
* @param {WasmEncodedContent} encoded_content
|
|
368
|
+
* @returns {Promise<string>}
|
|
369
|
+
*/
|
|
370
|
+
send(encoded_content: WasmEncodedContent): Promise<string>;
|
|
371
|
+
/**
|
|
372
|
+
* send a message without immediately publishing to the delivery service.
|
|
373
|
+
* @param {WasmEncodedContent} encoded_content
|
|
374
|
+
* @returns {string}
|
|
375
|
+
*/
|
|
376
|
+
send_optimistic(encoded_content: WasmEncodedContent): string;
|
|
377
|
+
/**
|
|
378
|
+
* Publish all unpublished messages
|
|
379
|
+
* @returns {Promise<void>}
|
|
380
|
+
*/
|
|
381
|
+
publish_messages(): Promise<void>;
|
|
382
|
+
/**
|
|
383
|
+
* @returns {Promise<void>}
|
|
384
|
+
*/
|
|
385
|
+
sync(): Promise<void>;
|
|
386
|
+
/**
|
|
387
|
+
* @param {WasmListMessagesOptions | undefined} [opts]
|
|
388
|
+
* @returns {(WasmMessage)[]}
|
|
389
|
+
*/
|
|
390
|
+
find_messages(opts?: WasmListMessagesOptions): (WasmMessage)[];
|
|
391
|
+
/**
|
|
392
|
+
* @returns {Promise<any>}
|
|
393
|
+
*/
|
|
394
|
+
list_members(): Promise<any>;
|
|
395
|
+
/**
|
|
396
|
+
* @returns {(string)[]}
|
|
397
|
+
*/
|
|
398
|
+
admin_list(): (string)[];
|
|
399
|
+
/**
|
|
400
|
+
* @returns {(string)[]}
|
|
401
|
+
*/
|
|
402
|
+
super_admin_list(): (string)[];
|
|
403
|
+
/**
|
|
404
|
+
* @param {string} inbox_id
|
|
405
|
+
* @returns {boolean}
|
|
406
|
+
*/
|
|
407
|
+
is_admin(inbox_id: string): boolean;
|
|
408
|
+
/**
|
|
409
|
+
* @param {string} inbox_id
|
|
410
|
+
* @returns {boolean}
|
|
411
|
+
*/
|
|
412
|
+
is_super_admin(inbox_id: string): boolean;
|
|
413
|
+
/**
|
|
414
|
+
* @param {(string)[]} account_addresses
|
|
415
|
+
* @returns {Promise<void>}
|
|
416
|
+
*/
|
|
417
|
+
add_members(account_addresses: (string)[]): Promise<void>;
|
|
418
|
+
/**
|
|
419
|
+
* @param {string} inbox_id
|
|
420
|
+
* @returns {Promise<void>}
|
|
421
|
+
*/
|
|
422
|
+
add_admin(inbox_id: string): Promise<void>;
|
|
423
|
+
/**
|
|
424
|
+
* @param {string} inbox_id
|
|
425
|
+
* @returns {Promise<void>}
|
|
426
|
+
*/
|
|
427
|
+
remove_admin(inbox_id: string): Promise<void>;
|
|
428
|
+
/**
|
|
429
|
+
* @param {string} inbox_id
|
|
430
|
+
* @returns {Promise<void>}
|
|
431
|
+
*/
|
|
432
|
+
add_super_admin(inbox_id: string): Promise<void>;
|
|
433
|
+
/**
|
|
434
|
+
* @param {string} inbox_id
|
|
435
|
+
* @returns {Promise<void>}
|
|
436
|
+
*/
|
|
437
|
+
remove_super_admin(inbox_id: string): Promise<void>;
|
|
438
|
+
/**
|
|
439
|
+
* @returns {WasmGroupPermissions}
|
|
440
|
+
*/
|
|
441
|
+
group_permissions(): WasmGroupPermissions;
|
|
442
|
+
/**
|
|
443
|
+
* @param {(string)[]} inbox_ids
|
|
444
|
+
* @returns {Promise<void>}
|
|
445
|
+
*/
|
|
446
|
+
add_members_by_inbox_id(inbox_ids: (string)[]): Promise<void>;
|
|
447
|
+
/**
|
|
448
|
+
* @param {(string)[]} account_addresses
|
|
449
|
+
* @returns {Promise<void>}
|
|
450
|
+
*/
|
|
451
|
+
remove_members(account_addresses: (string)[]): Promise<void>;
|
|
452
|
+
/**
|
|
453
|
+
* @param {(string)[]} inbox_ids
|
|
454
|
+
* @returns {Promise<void>}
|
|
455
|
+
*/
|
|
456
|
+
remove_members_by_inbox_id(inbox_ids: (string)[]): Promise<void>;
|
|
457
|
+
/**
|
|
458
|
+
* @param {string} group_name
|
|
459
|
+
* @returns {Promise<void>}
|
|
460
|
+
*/
|
|
461
|
+
update_group_name(group_name: string): Promise<void>;
|
|
462
|
+
/**
|
|
463
|
+
* @returns {string}
|
|
464
|
+
*/
|
|
465
|
+
group_name(): string;
|
|
466
|
+
/**
|
|
467
|
+
* @param {string} group_image_url_square
|
|
468
|
+
* @returns {Promise<void>}
|
|
469
|
+
*/
|
|
470
|
+
update_group_image_url_square(group_image_url_square: string): Promise<void>;
|
|
471
|
+
/**
|
|
472
|
+
* @returns {string}
|
|
473
|
+
*/
|
|
474
|
+
group_image_url_square(): string;
|
|
475
|
+
/**
|
|
476
|
+
* @param {string} group_description
|
|
477
|
+
* @returns {Promise<void>}
|
|
478
|
+
*/
|
|
479
|
+
update_group_description(group_description: string): Promise<void>;
|
|
480
|
+
/**
|
|
481
|
+
* @returns {string}
|
|
482
|
+
*/
|
|
483
|
+
group_description(): string;
|
|
484
|
+
/**
|
|
485
|
+
* @param {string} pinned_frame_url
|
|
486
|
+
* @returns {Promise<void>}
|
|
487
|
+
*/
|
|
488
|
+
update_group_pinned_frame_url(pinned_frame_url: string): Promise<void>;
|
|
489
|
+
/**
|
|
490
|
+
* @returns {string}
|
|
491
|
+
*/
|
|
492
|
+
group_pinned_frame_url(): string;
|
|
493
|
+
/**
|
|
494
|
+
* @returns {bigint}
|
|
495
|
+
*/
|
|
496
|
+
created_at_ns(): bigint;
|
|
497
|
+
/**
|
|
498
|
+
* @returns {boolean}
|
|
499
|
+
*/
|
|
500
|
+
is_active(): boolean;
|
|
501
|
+
/**
|
|
502
|
+
* @returns {string}
|
|
503
|
+
*/
|
|
504
|
+
added_by_inbox_id(): string;
|
|
505
|
+
/**
|
|
506
|
+
* @returns {WasmGroupMetadata}
|
|
507
|
+
*/
|
|
508
|
+
group_metadata(): WasmGroupMetadata;
|
|
509
|
+
/**
|
|
510
|
+
* @returns {WasmConsentState}
|
|
511
|
+
*/
|
|
512
|
+
consent_state(): WasmConsentState;
|
|
513
|
+
/**
|
|
514
|
+
* @param {WasmConsentState} state
|
|
515
|
+
*/
|
|
516
|
+
update_consent_state(state: WasmConsentState): void;
|
|
517
|
+
}
|
|
518
|
+
export class WasmGroupMember {
|
|
519
|
+
free(): void;
|
|
520
|
+
/**
|
|
521
|
+
* @param {string} inbox_id
|
|
522
|
+
* @param {(string)[]} account_addresses
|
|
523
|
+
* @param {(string)[]} installation_ids
|
|
524
|
+
* @param {WasmPermissionLevel} permission_level
|
|
525
|
+
* @param {WasmConsentState} consent_state
|
|
526
|
+
*/
|
|
527
|
+
constructor(inbox_id: string, account_addresses: (string)[], installation_ids: (string)[], permission_level: WasmPermissionLevel, consent_state: WasmConsentState);
|
|
528
|
+
account_addresses: (string)[];
|
|
529
|
+
consent_state: WasmConsentState;
|
|
530
|
+
inbox_id: string;
|
|
531
|
+
installation_ids: (string)[];
|
|
532
|
+
permission_level: WasmPermissionLevel;
|
|
533
|
+
}
|
|
534
|
+
export class WasmGroupMetadata {
|
|
535
|
+
free(): void;
|
|
536
|
+
/**
|
|
537
|
+
* @returns {string}
|
|
538
|
+
*/
|
|
539
|
+
creator_inbox_id(): string;
|
|
540
|
+
/**
|
|
541
|
+
* @returns {string}
|
|
542
|
+
*/
|
|
543
|
+
conversation_type(): string;
|
|
544
|
+
}
|
|
545
|
+
export class WasmGroupPermissions {
|
|
546
|
+
free(): void;
|
|
547
|
+
/**
|
|
548
|
+
* @returns {WasmGroupPermissionsOptions}
|
|
549
|
+
*/
|
|
550
|
+
policy_type(): WasmGroupPermissionsOptions;
|
|
551
|
+
/**
|
|
552
|
+
* @returns {WasmPermissionPolicySet}
|
|
553
|
+
*/
|
|
554
|
+
policy_set(): WasmPermissionPolicySet;
|
|
555
|
+
}
|
|
556
|
+
export class WasmInboxState {
|
|
557
|
+
free(): void;
|
|
558
|
+
/**
|
|
559
|
+
* @param {string} inbox_id
|
|
560
|
+
* @param {string} recovery_address
|
|
561
|
+
* @param {(WasmInstallation)[]} installations
|
|
562
|
+
* @param {(string)[]} account_addresses
|
|
563
|
+
*/
|
|
564
|
+
constructor(inbox_id: string, recovery_address: string, installations: (WasmInstallation)[], account_addresses: (string)[]);
|
|
565
|
+
account_addresses: (string)[];
|
|
566
|
+
inbox_id: string;
|
|
567
|
+
installations: (WasmInstallation)[];
|
|
568
|
+
recovery_address: string;
|
|
569
|
+
}
|
|
570
|
+
export class WasmInstallation {
|
|
571
|
+
free(): void;
|
|
572
|
+
/**
|
|
573
|
+
* @param {string} id
|
|
574
|
+
* @param {bigint | undefined} [client_timestamp_ns]
|
|
575
|
+
*/
|
|
576
|
+
constructor(id: string, client_timestamp_ns?: bigint);
|
|
577
|
+
client_timestamp_ns?: bigint;
|
|
578
|
+
id: string;
|
|
579
|
+
}
|
|
580
|
+
export class WasmListConversationsOptions {
|
|
581
|
+
free(): void;
|
|
582
|
+
/**
|
|
583
|
+
* @param {bigint | undefined} [created_after_ns]
|
|
584
|
+
* @param {bigint | undefined} [created_before_ns]
|
|
585
|
+
* @param {bigint | undefined} [limit]
|
|
586
|
+
*/
|
|
587
|
+
constructor(created_after_ns?: bigint, created_before_ns?: bigint, limit?: bigint);
|
|
588
|
+
created_after_ns?: bigint;
|
|
589
|
+
created_before_ns?: bigint;
|
|
590
|
+
limit?: bigint;
|
|
591
|
+
}
|
|
592
|
+
export class WasmListMessagesOptions {
|
|
593
|
+
free(): void;
|
|
594
|
+
/**
|
|
595
|
+
* @param {bigint | undefined} [sent_before_ns]
|
|
596
|
+
* @param {bigint | undefined} [sent_after_ns]
|
|
597
|
+
* @param {bigint | undefined} [limit]
|
|
598
|
+
* @param {WasmDeliveryStatus | undefined} [delivery_status]
|
|
599
|
+
*/
|
|
600
|
+
constructor(sent_before_ns?: bigint, sent_after_ns?: bigint, limit?: bigint, delivery_status?: WasmDeliveryStatus);
|
|
601
|
+
delivery_status?: WasmDeliveryStatus;
|
|
602
|
+
limit?: bigint;
|
|
603
|
+
sent_after_ns?: bigint;
|
|
604
|
+
sent_before_ns?: bigint;
|
|
605
|
+
}
|
|
606
|
+
export class WasmMessage {
|
|
607
|
+
free(): void;
|
|
608
|
+
/**
|
|
609
|
+
* @param {string} id
|
|
610
|
+
* @param {bigint} sent_at_ns
|
|
611
|
+
* @param {string} convo_id
|
|
612
|
+
* @param {string} sender_inbox_id
|
|
613
|
+
* @param {WasmEncodedContent} content
|
|
614
|
+
* @param {WasmGroupMessageKind} kind
|
|
615
|
+
* @param {WasmDeliveryStatus} delivery_status
|
|
616
|
+
*/
|
|
617
|
+
constructor(id: string, sent_at_ns: bigint, convo_id: string, sender_inbox_id: string, content: WasmEncodedContent, kind: WasmGroupMessageKind, delivery_status: WasmDeliveryStatus);
|
|
618
|
+
content: WasmEncodedContent;
|
|
619
|
+
convo_id: string;
|
|
620
|
+
delivery_status: WasmDeliveryStatus;
|
|
621
|
+
id: string;
|
|
622
|
+
kind: WasmGroupMessageKind;
|
|
623
|
+
sender_inbox_id: string;
|
|
624
|
+
sent_at_ns: bigint;
|
|
625
|
+
}
|
|
626
|
+
export class WasmPermissionPolicySet {
|
|
627
|
+
free(): void;
|
|
628
|
+
/**
|
|
629
|
+
* @param {WasmPermissionPolicy} add_member_policy
|
|
630
|
+
* @param {WasmPermissionPolicy} remove_member_policy
|
|
631
|
+
* @param {WasmPermissionPolicy} add_admin_policy
|
|
632
|
+
* @param {WasmPermissionPolicy} remove_admin_policy
|
|
633
|
+
* @param {WasmPermissionPolicy} update_group_name_policy
|
|
634
|
+
* @param {WasmPermissionPolicy} update_group_description_policy
|
|
635
|
+
* @param {WasmPermissionPolicy} update_group_image_url_square_policy
|
|
636
|
+
* @param {WasmPermissionPolicy} update_group_pinned_frame_url_policy
|
|
637
|
+
*/
|
|
638
|
+
constructor(add_member_policy: WasmPermissionPolicy, remove_member_policy: WasmPermissionPolicy, add_admin_policy: WasmPermissionPolicy, remove_admin_policy: WasmPermissionPolicy, update_group_name_policy: WasmPermissionPolicy, update_group_description_policy: WasmPermissionPolicy, update_group_image_url_square_policy: WasmPermissionPolicy, update_group_pinned_frame_url_policy: WasmPermissionPolicy);
|
|
639
|
+
add_admin_policy: WasmPermissionPolicy;
|
|
640
|
+
add_member_policy: WasmPermissionPolicy;
|
|
641
|
+
remove_admin_policy: WasmPermissionPolicy;
|
|
642
|
+
remove_member_policy: WasmPermissionPolicy;
|
|
643
|
+
update_group_description_policy: WasmPermissionPolicy;
|
|
644
|
+
update_group_image_url_square_policy: WasmPermissionPolicy;
|
|
645
|
+
update_group_name_policy: WasmPermissionPolicy;
|
|
646
|
+
update_group_pinned_frame_url_policy: WasmPermissionPolicy;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
650
|
+
|
|
651
|
+
export interface InitOutput {
|
|
652
|
+
readonly memory: WebAssembly.Memory;
|
|
653
|
+
readonly __wbg_wasmpermissionpolicyset_free: (a: number, b: number) => void;
|
|
654
|
+
readonly __wbg_get_wasmpermissionpolicyset_add_member_policy: (a: number) => number;
|
|
655
|
+
readonly __wbg_set_wasmpermissionpolicyset_add_member_policy: (a: number, b: number) => void;
|
|
656
|
+
readonly __wbg_get_wasmpermissionpolicyset_remove_member_policy: (a: number) => number;
|
|
657
|
+
readonly __wbg_set_wasmpermissionpolicyset_remove_member_policy: (a: number, b: number) => void;
|
|
658
|
+
readonly __wbg_get_wasmpermissionpolicyset_add_admin_policy: (a: number) => number;
|
|
659
|
+
readonly __wbg_set_wasmpermissionpolicyset_add_admin_policy: (a: number, b: number) => void;
|
|
660
|
+
readonly __wbg_get_wasmpermissionpolicyset_remove_admin_policy: (a: number) => number;
|
|
661
|
+
readonly __wbg_set_wasmpermissionpolicyset_remove_admin_policy: (a: number, b: number) => void;
|
|
662
|
+
readonly __wbg_get_wasmpermissionpolicyset_update_group_name_policy: (a: number) => number;
|
|
663
|
+
readonly __wbg_set_wasmpermissionpolicyset_update_group_name_policy: (a: number, b: number) => void;
|
|
664
|
+
readonly __wbg_get_wasmpermissionpolicyset_update_group_description_policy: (a: number) => number;
|
|
665
|
+
readonly __wbg_set_wasmpermissionpolicyset_update_group_description_policy: (a: number, b: number) => void;
|
|
666
|
+
readonly __wbg_get_wasmpermissionpolicyset_update_group_image_url_square_policy: (a: number) => number;
|
|
667
|
+
readonly __wbg_set_wasmpermissionpolicyset_update_group_image_url_square_policy: (a: number, b: number) => void;
|
|
668
|
+
readonly __wbg_get_wasmpermissionpolicyset_update_group_pinned_frame_url_policy: (a: number) => number;
|
|
669
|
+
readonly __wbg_set_wasmpermissionpolicyset_update_group_pinned_frame_url_policy: (a: number, b: number) => void;
|
|
670
|
+
readonly wasmpermissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
671
|
+
readonly __wbg_wasmgrouppermissions_free: (a: number, b: number) => void;
|
|
672
|
+
readonly wasmgrouppermissions_policy_type: (a: number) => Array;
|
|
673
|
+
readonly wasmgrouppermissions_policy_set: (a: number) => Array;
|
|
674
|
+
readonly __wbg_wasmconsent_free: (a: number, b: number) => void;
|
|
675
|
+
readonly __wbg_get_wasmconsent_entity_type: (a: number) => number;
|
|
676
|
+
readonly __wbg_set_wasmconsent_entity_type: (a: number, b: number) => void;
|
|
677
|
+
readonly __wbg_get_wasmconsent_state: (a: number) => number;
|
|
678
|
+
readonly __wbg_set_wasmconsent_state: (a: number, b: number) => void;
|
|
679
|
+
readonly __wbg_get_wasmconsent_entity: (a: number) => Array;
|
|
680
|
+
readonly __wbg_set_wasmconsent_entity: (a: number, b: number, c: number) => void;
|
|
681
|
+
readonly wasmconsent_new: (a: number, b: number, c: number, d: number) => number;
|
|
682
|
+
readonly __wbg_wasmgroupmetadata_free: (a: number, b: number) => void;
|
|
683
|
+
readonly wasmgroupmetadata_creator_inbox_id: (a: number) => Array;
|
|
684
|
+
readonly wasmgroupmetadata_conversation_type: (a: number) => Array;
|
|
685
|
+
readonly __wbg_wasmgroupmember_free: (a: number, b: number) => void;
|
|
686
|
+
readonly __wbg_get_wasmgroupmember_account_addresses: (a: number) => Array;
|
|
687
|
+
readonly __wbg_set_wasmgroupmember_account_addresses: (a: number, b: number, c: number) => void;
|
|
688
|
+
readonly __wbg_get_wasmgroupmember_installation_ids: (a: number) => Array;
|
|
689
|
+
readonly __wbg_set_wasmgroupmember_installation_ids: (a: number, b: number, c: number) => void;
|
|
690
|
+
readonly __wbg_get_wasmgroupmember_permission_level: (a: number) => number;
|
|
691
|
+
readonly __wbg_set_wasmgroupmember_permission_level: (a: number, b: number) => void;
|
|
692
|
+
readonly __wbg_get_wasmgroupmember_consent_state: (a: number) => number;
|
|
693
|
+
readonly __wbg_set_wasmgroupmember_consent_state: (a: number, b: number) => void;
|
|
694
|
+
readonly wasmgroupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
695
|
+
readonly __wbg_wasmgroup_free: (a: number, b: number) => void;
|
|
696
|
+
readonly wasmgroup_id: (a: number) => Array;
|
|
697
|
+
readonly wasmgroup_send: (a: number, b: number) => number;
|
|
698
|
+
readonly wasmgroup_send_optimistic: (a: number, b: number) => Array;
|
|
699
|
+
readonly wasmgroup_publish_messages: (a: number) => number;
|
|
700
|
+
readonly wasmgroup_sync: (a: number) => number;
|
|
701
|
+
readonly wasmgroup_find_messages: (a: number, b: number) => Array;
|
|
702
|
+
readonly wasmgroup_list_members: (a: number) => number;
|
|
703
|
+
readonly wasmgroup_admin_list: (a: number) => Array;
|
|
704
|
+
readonly wasmgroup_super_admin_list: (a: number) => Array;
|
|
705
|
+
readonly wasmgroup_is_admin: (a: number, b: number, c: number) => Array;
|
|
706
|
+
readonly wasmgroup_is_super_admin: (a: number, b: number, c: number) => Array;
|
|
707
|
+
readonly wasmgroup_add_members: (a: number, b: number, c: number) => number;
|
|
708
|
+
readonly wasmgroup_add_admin: (a: number, b: number, c: number) => number;
|
|
709
|
+
readonly wasmgroup_remove_admin: (a: number, b: number, c: number) => number;
|
|
710
|
+
readonly wasmgroup_add_super_admin: (a: number, b: number, c: number) => number;
|
|
711
|
+
readonly wasmgroup_remove_super_admin: (a: number, b: number, c: number) => number;
|
|
712
|
+
readonly wasmgroup_group_permissions: (a: number) => Array;
|
|
713
|
+
readonly wasmgroup_add_members_by_inbox_id: (a: number, b: number, c: number) => number;
|
|
714
|
+
readonly wasmgroup_remove_members: (a: number, b: number, c: number) => number;
|
|
715
|
+
readonly wasmgroup_remove_members_by_inbox_id: (a: number, b: number, c: number) => number;
|
|
716
|
+
readonly wasmgroup_update_group_name: (a: number, b: number, c: number) => number;
|
|
717
|
+
readonly wasmgroup_group_name: (a: number) => Array;
|
|
718
|
+
readonly wasmgroup_update_group_image_url_square: (a: number, b: number, c: number) => number;
|
|
719
|
+
readonly wasmgroup_group_image_url_square: (a: number) => Array;
|
|
720
|
+
readonly wasmgroup_update_group_description: (a: number, b: number, c: number) => number;
|
|
721
|
+
readonly wasmgroup_group_description: (a: number) => Array;
|
|
722
|
+
readonly wasmgroup_update_group_pinned_frame_url: (a: number, b: number, c: number) => number;
|
|
723
|
+
readonly wasmgroup_group_pinned_frame_url: (a: number) => Array;
|
|
724
|
+
readonly wasmgroup_created_at_ns: (a: number) => number;
|
|
725
|
+
readonly wasmgroup_is_active: (a: number) => Array;
|
|
726
|
+
readonly wasmgroup_added_by_inbox_id: (a: number) => Array;
|
|
727
|
+
readonly wasmgroup_group_metadata: (a: number) => Array;
|
|
728
|
+
readonly wasmgroup_consent_state: (a: number) => Array;
|
|
729
|
+
readonly wasmgroup_update_consent_state: (a: number, b: number) => Array;
|
|
730
|
+
readonly __wbg_wasminstallation_free: (a: number, b: number) => void;
|
|
731
|
+
readonly __wbg_get_wasminstallation_id: (a: number) => Array;
|
|
732
|
+
readonly __wbg_set_wasminstallation_id: (a: number, b: number, c: number) => void;
|
|
733
|
+
readonly __wbg_get_wasminstallation_client_timestamp_ns: (a: number) => Array;
|
|
734
|
+
readonly __wbg_set_wasminstallation_client_timestamp_ns: (a: number, b: number, c: number) => void;
|
|
735
|
+
readonly wasminstallation_new: (a: number, b: number, c: number, d: number) => number;
|
|
736
|
+
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
|
+
readonly __wbg_get_wasminboxstate_installations: (a: number) => Array;
|
|
740
|
+
readonly __wbg_set_wasminboxstate_installations: (a: number, b: number, c: number) => void;
|
|
741
|
+
readonly __wbg_get_wasminboxstate_account_addresses: (a: number) => Array;
|
|
742
|
+
readonly __wbg_set_wasminboxstate_account_addresses: (a: number, b: number, c: number) => void;
|
|
743
|
+
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
|
+
readonly wasmclient_inboxState: (a: number, b: number) => number;
|
|
761
|
+
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
|
+
readonly __wbg_wasmlistmessagesoptions_free: (a: number, b: number) => void;
|
|
820
|
+
readonly __wbg_get_wasmlistmessagesoptions_delivery_status: (a: number) => number;
|
|
821
|
+
readonly __wbg_set_wasmlistmessagesoptions_delivery_status: (a: number, b: number) => void;
|
|
822
|
+
readonly wasmlistmessagesoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
823
|
+
readonly __wbg_wasmmessage_free: (a: number, b: number) => void;
|
|
824
|
+
readonly __wbg_get_wasmmessage_id: (a: number) => Array;
|
|
825
|
+
readonly __wbg_set_wasmmessage_id: (a: number, b: number, c: number) => void;
|
|
826
|
+
readonly __wbg_get_wasmmessage_sent_at_ns: (a: number) => number;
|
|
827
|
+
readonly __wbg_set_wasmmessage_sent_at_ns: (a: number, b: number) => void;
|
|
828
|
+
readonly __wbg_get_wasmmessage_convo_id: (a: number) => Array;
|
|
829
|
+
readonly __wbg_set_wasmmessage_convo_id: (a: number, b: number, c: number) => void;
|
|
830
|
+
readonly __wbg_get_wasmmessage_sender_inbox_id: (a: number) => Array;
|
|
831
|
+
readonly __wbg_set_wasmmessage_sender_inbox_id: (a: number, b: number, c: number) => void;
|
|
832
|
+
readonly __wbg_get_wasmmessage_content: (a: number) => number;
|
|
833
|
+
readonly __wbg_set_wasmmessage_content: (a: number, b: number) => void;
|
|
834
|
+
readonly __wbg_get_wasmmessage_kind: (a: number) => number;
|
|
835
|
+
readonly __wbg_set_wasmmessage_kind: (a: number, b: number) => void;
|
|
836
|
+
readonly __wbg_get_wasmmessage_delivery_status: (a: number) => number;
|
|
837
|
+
readonly __wbg_set_wasmmessage_delivery_status: (a: number, b: number) => void;
|
|
838
|
+
readonly wasmmessage_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
839
|
+
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
|
+
readonly __wbg_set_wasmlistmessagesoptions_sent_before_ns: (a: number, b: number, c: number) => void;
|
|
843
|
+
readonly __wbg_set_wasmlistmessagesoptions_sent_after_ns: (a: number, b: number, c: number) => void;
|
|
844
|
+
readonly __wbg_set_wasmlistmessagesoptions_limit: (a: number, b: number, c: number) => void;
|
|
845
|
+
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
846
|
+
readonly intounderlyingbytesource_type: (a: number) => Array;
|
|
847
|
+
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
848
|
+
readonly intounderlyingbytesource_start: (a: number, b: number) => void;
|
|
849
|
+
readonly intounderlyingbytesource_pull: (a: number, b: number) => number;
|
|
850
|
+
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
851
|
+
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
852
|
+
readonly intounderlyingsink_write: (a: number, b: number) => number;
|
|
853
|
+
readonly intounderlyingsink_close: (a: number) => number;
|
|
854
|
+
readonly intounderlyingsink_abort: (a: number, b: number) => number;
|
|
855
|
+
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
856
|
+
readonly intounderlyingsource_pull: (a: number, b: number) => number;
|
|
857
|
+
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
858
|
+
readonly __wbg_version_free: (a: number, b: number) => void;
|
|
859
|
+
readonly __wbg_wasmbindgentestcontext_free: (a: number, b: number) => void;
|
|
860
|
+
readonly wasmbindgentestcontext_new: () => number;
|
|
861
|
+
readonly wasmbindgentestcontext_args: (a: number, b: number, c: number) => void;
|
|
862
|
+
readonly wasmbindgentestcontext_run: (a: number, b: number, c: number) => number;
|
|
863
|
+
readonly __wbgtest_console_log: (a: number) => void;
|
|
864
|
+
readonly __wbgtest_console_debug: (a: number) => void;
|
|
865
|
+
readonly __wbgtest_console_info: (a: number) => void;
|
|
866
|
+
readonly __wbgtest_console_warn: (a: number) => void;
|
|
867
|
+
readonly __wbgtest_console_error: (a: number) => void;
|
|
868
|
+
readonly __wbgtest_cov_dump: () => Array;
|
|
869
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
870
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
871
|
+
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
872
|
+
readonly __wbindgen_export_3: WebAssembly.Table;
|
|
873
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hccdc993aebae1d0b: (a: number, b: number) => void;
|
|
874
|
+
readonly closure2262_externref_shim: (a: number, b: number, c: number) => void;
|
|
875
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
876
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
877
|
+
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
878
|
+
readonly __externref_table_alloc: () => number;
|
|
879
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
880
|
+
readonly closure3105_externref_shim: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
881
|
+
readonly closure3103_externref_shim: (a: number, b: number, c: number, d: number) => void;
|
|
882
|
+
readonly __wbindgen_start: () => void;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
886
|
+
/**
|
|
887
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
888
|
+
* a precompiled `WebAssembly.Module`.
|
|
889
|
+
*
|
|
890
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
891
|
+
*
|
|
892
|
+
* @returns {InitOutput}
|
|
893
|
+
*/
|
|
894
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
898
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
899
|
+
*
|
|
900
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
901
|
+
*
|
|
902
|
+
* @returns {Promise<InitOutput>}
|
|
903
|
+
*/
|
|
904
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|