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