@xmtp/wasm-bindings 0.0.16 → 0.0.17
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 +12 -4
- package/package.json +3 -5
- package/dist/bindings_wasm.d.ts +0 -740
- package/dist/bindings_wasm.js +0 -4561
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +0 -296
- package/dist/snippets/sqlite-web-90f8afa7b0cd2303/src/js/sqlite3-diesel.js +0 -1
- package/dist/snippets/sqlite-web-90f8afa7b0cd2303/src/js/sqlite3-opfs-async-proxy.js +0 -1
- package/dist/snippets/sqlite-web-90f8afa7b0cd2303/src/js/sqlite3.wasm +0 -0
package/dist/bindings_wasm.d.ts
DELETED
|
@@ -1,740 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
export function createClient(host: string, inbox_id: string, account_address: string, db_path?: string | null, encryption_key?: Uint8Array | null, history_sync_url?: string | null, log_options?: LogOptions | null): Promise<Client>;
|
|
4
|
-
export function getInboxIdForAddress(host: string, account_address: string): Promise<string | undefined>;
|
|
5
|
-
export function generateInboxId(account_address: string): string;
|
|
6
|
-
export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
|
|
7
|
-
export enum ConsentEntityType {
|
|
8
|
-
GroupId = 0,
|
|
9
|
-
InboxId = 1,
|
|
10
|
-
Address = 2,
|
|
11
|
-
}
|
|
12
|
-
export enum ConsentState {
|
|
13
|
-
Unknown = 0,
|
|
14
|
-
Allowed = 1,
|
|
15
|
-
Denied = 2,
|
|
16
|
-
}
|
|
17
|
-
export enum ConversationType {
|
|
18
|
-
Dm = 0,
|
|
19
|
-
Group = 1,
|
|
20
|
-
Sync = 2,
|
|
21
|
-
}
|
|
22
|
-
export enum DeliveryStatus {
|
|
23
|
-
Unpublished = 0,
|
|
24
|
-
Published = 1,
|
|
25
|
-
Failed = 2,
|
|
26
|
-
}
|
|
27
|
-
export enum GroupMembershipState {
|
|
28
|
-
Allowed = 0,
|
|
29
|
-
Rejected = 1,
|
|
30
|
-
Pending = 2,
|
|
31
|
-
}
|
|
32
|
-
export enum GroupMessageKind {
|
|
33
|
-
Application = 0,
|
|
34
|
-
MembershipChange = 1,
|
|
35
|
-
}
|
|
36
|
-
export enum GroupPermissionsOptions {
|
|
37
|
-
Default = 0,
|
|
38
|
-
AdminOnly = 1,
|
|
39
|
-
CustomPolicy = 2,
|
|
40
|
-
}
|
|
41
|
-
export enum MetadataField {
|
|
42
|
-
GroupName = 0,
|
|
43
|
-
Description = 1,
|
|
44
|
-
ImageUrlSquare = 2,
|
|
45
|
-
MessageExpirationFromMS = 3,
|
|
46
|
-
MessageExpirationMS = 4,
|
|
47
|
-
}
|
|
48
|
-
export enum PermissionLevel {
|
|
49
|
-
Member = 0,
|
|
50
|
-
Admin = 1,
|
|
51
|
-
SuperAdmin = 2,
|
|
52
|
-
}
|
|
53
|
-
export enum PermissionPolicy {
|
|
54
|
-
Allow = 0,
|
|
55
|
-
Deny = 1,
|
|
56
|
-
Admin = 2,
|
|
57
|
-
SuperAdmin = 3,
|
|
58
|
-
DoesNotExist = 4,
|
|
59
|
-
Other = 5,
|
|
60
|
-
}
|
|
61
|
-
export enum PermissionUpdateType {
|
|
62
|
-
AddMember = 0,
|
|
63
|
-
RemoveMember = 1,
|
|
64
|
-
AddAdmin = 2,
|
|
65
|
-
RemoveAdmin = 3,
|
|
66
|
-
UpdateMetadata = 4,
|
|
67
|
-
}
|
|
68
|
-
export enum SignatureRequestType {
|
|
69
|
-
AddWallet = 0,
|
|
70
|
-
CreateInbox = 1,
|
|
71
|
-
RevokeWallet = 2,
|
|
72
|
-
RevokeInstallations = 3,
|
|
73
|
-
}
|
|
74
|
-
export enum SortDirection {
|
|
75
|
-
Ascending = 0,
|
|
76
|
-
Descending = 1,
|
|
77
|
-
}
|
|
78
|
-
type LogLevel = "off" | "error" | "warn" | "info" | "debug" | "trace";
|
|
79
|
-
/**
|
|
80
|
-
* The `ReadableStreamType` enum.
|
|
81
|
-
*
|
|
82
|
-
* *This API requires the following crate features to be activated: `ReadableStreamType`*
|
|
83
|
-
*/
|
|
84
|
-
type ReadableStreamType = "bytes";
|
|
85
|
-
export class Client {
|
|
86
|
-
private constructor();
|
|
87
|
-
free(): void;
|
|
88
|
-
setConsentStates(records: Consent[]): Promise<void>;
|
|
89
|
-
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* * Get the client's inbox state.
|
|
93
|
-
* *
|
|
94
|
-
* * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
|
|
95
|
-
* * Otherwise, the state will be read from the local database.
|
|
96
|
-
*
|
|
97
|
-
*/
|
|
98
|
-
inboxState(refresh_from_network: boolean): Promise<InboxState>;
|
|
99
|
-
getLatestInboxState(inbox_id: string): Promise<InboxState>;
|
|
100
|
-
canMessage(account_addresses: string[]): Promise<any>;
|
|
101
|
-
registerIdentity(): Promise<void>;
|
|
102
|
-
sendHistorySyncRequest(): Promise<void>;
|
|
103
|
-
sendConsentSyncRequest(): Promise<void>;
|
|
104
|
-
findInboxIdByAddress(address: string): Promise<string | undefined>;
|
|
105
|
-
conversations(): Conversations;
|
|
106
|
-
createInboxSignatureText(): string | undefined;
|
|
107
|
-
addWalletSignatureText(new_wallet_address: string): Promise<string>;
|
|
108
|
-
revokeWalletSignatureText(wallet_address: string): Promise<string>;
|
|
109
|
-
revokeAllOtherInstallationsSignatureText(): Promise<string>;
|
|
110
|
-
revokeInstallationsSignatureText(installation_ids: Uint8Array[]): Promise<string>;
|
|
111
|
-
addSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
|
|
112
|
-
addScwSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint | null): Promise<void>;
|
|
113
|
-
applySignatureRequests(): Promise<void>;
|
|
114
|
-
signWithInstallationKey(signature_text: string): Uint8Array;
|
|
115
|
-
verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
|
|
116
|
-
readonly accountAddress: string;
|
|
117
|
-
readonly inboxId: string;
|
|
118
|
-
readonly isRegistered: boolean;
|
|
119
|
-
readonly installationId: string;
|
|
120
|
-
readonly installationIdBytes: Uint8Array;
|
|
121
|
-
}
|
|
122
|
-
export class Consent {
|
|
123
|
-
free(): void;
|
|
124
|
-
constructor(entity_type: ConsentEntityType, state: ConsentState, entity: string);
|
|
125
|
-
entityType: ConsentEntityType;
|
|
126
|
-
state: ConsentState;
|
|
127
|
-
entity: string;
|
|
128
|
-
}
|
|
129
|
-
export class ContentTypeId {
|
|
130
|
-
free(): void;
|
|
131
|
-
constructor(authority_id: string, type_id: string, version_major: number, version_minor: number);
|
|
132
|
-
authorityId: string;
|
|
133
|
-
typeId: string;
|
|
134
|
-
versionMajor: number;
|
|
135
|
-
versionMinor: number;
|
|
136
|
-
}
|
|
137
|
-
export class Conversation {
|
|
138
|
-
private constructor();
|
|
139
|
-
free(): void;
|
|
140
|
-
consentState(): ConsentState;
|
|
141
|
-
updateConsentState(state: ConsentState): void;
|
|
142
|
-
id(): string;
|
|
143
|
-
send(encoded_content: EncodedContent): Promise<string>;
|
|
144
|
-
/**
|
|
145
|
-
* send a message without immediately publishing to the delivery service.
|
|
146
|
-
*/
|
|
147
|
-
sendOptimistic(encoded_content: EncodedContent): string;
|
|
148
|
-
/**
|
|
149
|
-
* Publish all unpublished messages
|
|
150
|
-
*/
|
|
151
|
-
publishMessages(): Promise<void>;
|
|
152
|
-
sync(): Promise<void>;
|
|
153
|
-
findMessages(opts?: ListMessagesOptions | null): Promise<Message[]>;
|
|
154
|
-
listMembers(): Promise<any>;
|
|
155
|
-
adminList(): string[];
|
|
156
|
-
superAdminList(): string[];
|
|
157
|
-
isAdmin(inbox_id: string): boolean;
|
|
158
|
-
isSuperAdmin(inbox_id: string): boolean;
|
|
159
|
-
addMembers(account_addresses: string[]): Promise<void>;
|
|
160
|
-
addAdmin(inbox_id: string): Promise<void>;
|
|
161
|
-
removeAdmin(inbox_id: string): Promise<void>;
|
|
162
|
-
addSuperAdmin(inbox_id: string): Promise<void>;
|
|
163
|
-
removeSuperAdmin(inbox_id: string): Promise<void>;
|
|
164
|
-
groupPermissions(): GroupPermissions;
|
|
165
|
-
addMembersByInboxId(inbox_ids: string[]): Promise<void>;
|
|
166
|
-
removeMembers(account_addresses: string[]): Promise<void>;
|
|
167
|
-
removeMembersByInboxId(inbox_ids: string[]): Promise<void>;
|
|
168
|
-
updateGroupName(group_name: string): Promise<void>;
|
|
169
|
-
groupName(): string;
|
|
170
|
-
updateGroupImageUrlSquare(group_image_url_square: string): Promise<void>;
|
|
171
|
-
groupImageUrlSquare(): string;
|
|
172
|
-
updateGroupDescription(group_description: string): Promise<void>;
|
|
173
|
-
groupDescription(): string;
|
|
174
|
-
stream(callback: any): StreamCloser;
|
|
175
|
-
createdAtNs(): bigint;
|
|
176
|
-
isActive(): boolean;
|
|
177
|
-
addedByInboxId(): string;
|
|
178
|
-
groupMetadata(): Promise<GroupMetadata>;
|
|
179
|
-
dmPeerInboxId(): string;
|
|
180
|
-
updatePermissionPolicy(permission_update_type: PermissionUpdateType, permission_policy_option: PermissionPolicy, metadata_field?: MetadataField | null): Promise<void>;
|
|
181
|
-
updateMessageDisappearingSettings(settings: MessageDisappearingSettings): Promise<void>;
|
|
182
|
-
removeMessageDisappearingSettings(): Promise<void>;
|
|
183
|
-
messageDisappearingSettings(): MessageDisappearingSettings | undefined;
|
|
184
|
-
isMessageDisappearingEnabled(): boolean;
|
|
185
|
-
}
|
|
186
|
-
export class ConversationListItem {
|
|
187
|
-
free(): void;
|
|
188
|
-
constructor(conversation: Conversation, last_message?: Message | null);
|
|
189
|
-
conversation: Conversation;
|
|
190
|
-
get lastMessage(): Message | undefined;
|
|
191
|
-
set lastMessage(value: Message | null | undefined);
|
|
192
|
-
}
|
|
193
|
-
export class Conversations {
|
|
194
|
-
private constructor();
|
|
195
|
-
free(): void;
|
|
196
|
-
createGroup(account_addresses: string[], options?: CreateGroupOptions | null): Promise<Conversation>;
|
|
197
|
-
createGroupByInboxIds(inbox_ids: string[], options?: CreateGroupOptions | null): Promise<Conversation>;
|
|
198
|
-
createDm(account_address: string, options?: CreateDMOptions | null): Promise<Conversation>;
|
|
199
|
-
createDmByInboxId(inbox_id: string, options?: CreateDMOptions | null): Promise<Conversation>;
|
|
200
|
-
findGroupById(group_id: string): Conversation;
|
|
201
|
-
findDmByTargetInboxId(target_inbox_id: string): Conversation;
|
|
202
|
-
findMessageById(message_id: string): Message;
|
|
203
|
-
sync(): Promise<void>;
|
|
204
|
-
syncAllConversations(consent_states?: any[] | null): Promise<number>;
|
|
205
|
-
list(opts?: ListConversationsOptions | null): Array<any>;
|
|
206
|
-
listGroups(opts?: ListConversationsOptions | null): Array<any>;
|
|
207
|
-
listDms(opts?: ListConversationsOptions | null): Array<any>;
|
|
208
|
-
getHmacKeys(): any;
|
|
209
|
-
stream(callback: any, conversation_type?: ConversationType | null): StreamCloser;
|
|
210
|
-
streamGroups(callback: any): StreamCloser;
|
|
211
|
-
streamDms(callback: any): StreamCloser;
|
|
212
|
-
streamAllMessages(callback: any, conversation_type?: ConversationType | null): StreamCloser;
|
|
213
|
-
}
|
|
214
|
-
export class CreateDMOptions {
|
|
215
|
-
free(): void;
|
|
216
|
-
constructor(message_disappearing_settings?: MessageDisappearingSettings | null);
|
|
217
|
-
get messageDisappearingSettings(): MessageDisappearingSettings | undefined;
|
|
218
|
-
set messageDisappearingSettings(value: MessageDisappearingSettings | null | undefined);
|
|
219
|
-
}
|
|
220
|
-
export class CreateGroupOptions {
|
|
221
|
-
free(): void;
|
|
222
|
-
constructor(permissions?: GroupPermissionsOptions | null, group_name?: string | null, group_image_url_square?: string | null, group_description?: string | null, custom_permission_policy_set?: PermissionPolicySet | null, message_disappearing_settings?: MessageDisappearingSettings | null);
|
|
223
|
-
get permissions(): GroupPermissionsOptions | undefined;
|
|
224
|
-
set permissions(value: GroupPermissionsOptions | null | undefined);
|
|
225
|
-
get groupName(): string | undefined;
|
|
226
|
-
set groupName(value: string | null | undefined);
|
|
227
|
-
get groupImageUrlSquare(): string | undefined;
|
|
228
|
-
set groupImageUrlSquare(value: string | null | undefined);
|
|
229
|
-
get groupDescription(): string | undefined;
|
|
230
|
-
set groupDescription(value: string | null | undefined);
|
|
231
|
-
get customPermissionPolicySet(): PermissionPolicySet | undefined;
|
|
232
|
-
set customPermissionPolicySet(value: PermissionPolicySet | null | undefined);
|
|
233
|
-
get messageDisappearingSettings(): MessageDisappearingSettings | undefined;
|
|
234
|
-
set messageDisappearingSettings(value: MessageDisappearingSettings | null | undefined);
|
|
235
|
-
}
|
|
236
|
-
export class EncodedContent {
|
|
237
|
-
free(): void;
|
|
238
|
-
constructor(type: ContentTypeId | null | undefined, parameters: any, fallback: string | null | undefined, compression: number | null | undefined, content: Uint8Array);
|
|
239
|
-
get type(): ContentTypeId | undefined;
|
|
240
|
-
set type(value: ContentTypeId | null | undefined);
|
|
241
|
-
parameters: any;
|
|
242
|
-
get fallback(): string | undefined;
|
|
243
|
-
set fallback(value: string | null | undefined);
|
|
244
|
-
get compression(): number | undefined;
|
|
245
|
-
set compression(value: number | null | undefined);
|
|
246
|
-
content: Uint8Array;
|
|
247
|
-
}
|
|
248
|
-
export class GroupMember {
|
|
249
|
-
free(): void;
|
|
250
|
-
constructor(inbox_id: string, account_addresses: string[], installation_ids: string[], permission_level: PermissionLevel, consent_state: ConsentState);
|
|
251
|
-
inboxId: string;
|
|
252
|
-
accountAddresses: string[];
|
|
253
|
-
installationIds: string[];
|
|
254
|
-
permissionLevel: PermissionLevel;
|
|
255
|
-
consentState: ConsentState;
|
|
256
|
-
}
|
|
257
|
-
export class GroupMetadata {
|
|
258
|
-
private constructor();
|
|
259
|
-
free(): void;
|
|
260
|
-
creatorInboxId(): string;
|
|
261
|
-
conversationType(): string;
|
|
262
|
-
}
|
|
263
|
-
export class GroupPermissions {
|
|
264
|
-
private constructor();
|
|
265
|
-
free(): void;
|
|
266
|
-
policyType(): GroupPermissionsOptions;
|
|
267
|
-
policySet(): PermissionPolicySet;
|
|
268
|
-
}
|
|
269
|
-
export class HmacKey {
|
|
270
|
-
private constructor();
|
|
271
|
-
free(): void;
|
|
272
|
-
key: Uint8Array;
|
|
273
|
-
epoch: bigint;
|
|
274
|
-
}
|
|
275
|
-
export class InboxState {
|
|
276
|
-
free(): void;
|
|
277
|
-
constructor(inbox_id: string, recovery_address: string, installations: Installation[], account_addresses: string[]);
|
|
278
|
-
inboxId: string;
|
|
279
|
-
recoveryAddress: string;
|
|
280
|
-
installations: Installation[];
|
|
281
|
-
accountAddresses: string[];
|
|
282
|
-
}
|
|
283
|
-
export class Installation {
|
|
284
|
-
free(): void;
|
|
285
|
-
constructor(bytes: Uint8Array, id: string, client_timestamp_ns?: bigint | null);
|
|
286
|
-
bytes: Uint8Array;
|
|
287
|
-
id: string;
|
|
288
|
-
get clientTimestampNs(): bigint | undefined;
|
|
289
|
-
set clientTimestampNs(value: bigint | null | undefined);
|
|
290
|
-
}
|
|
291
|
-
export class IntoUnderlyingByteSource {
|
|
292
|
-
private constructor();
|
|
293
|
-
free(): void;
|
|
294
|
-
start(controller: ReadableByteStreamController): void;
|
|
295
|
-
pull(controller: ReadableByteStreamController): Promise<any>;
|
|
296
|
-
cancel(): void;
|
|
297
|
-
readonly type: ReadableStreamType;
|
|
298
|
-
readonly autoAllocateChunkSize: number;
|
|
299
|
-
}
|
|
300
|
-
export class IntoUnderlyingSink {
|
|
301
|
-
private constructor();
|
|
302
|
-
free(): void;
|
|
303
|
-
write(chunk: any): Promise<any>;
|
|
304
|
-
close(): Promise<any>;
|
|
305
|
-
abort(reason: any): Promise<any>;
|
|
306
|
-
}
|
|
307
|
-
export class IntoUnderlyingSource {
|
|
308
|
-
private constructor();
|
|
309
|
-
free(): void;
|
|
310
|
-
pull(controller: ReadableStreamDefaultController): Promise<any>;
|
|
311
|
-
cancel(): void;
|
|
312
|
-
}
|
|
313
|
-
export class ListConversationsOptions {
|
|
314
|
-
free(): void;
|
|
315
|
-
constructor(allowed_states: any[] | null | undefined, consent_states: any[] | null | undefined, conversation_type: ConversationType | null | undefined, created_after_ns: bigint | null | undefined, created_before_ns: bigint | null | undefined, include_duplicate_dms: boolean, include_sync_groups: boolean, limit?: bigint | null);
|
|
316
|
-
get allowedStates(): any[] | undefined;
|
|
317
|
-
set allowedStates(value: any[] | null | undefined);
|
|
318
|
-
get consentStates(): any[] | undefined;
|
|
319
|
-
set consentStates(value: any[] | null | undefined);
|
|
320
|
-
get conversationType(): ConversationType | undefined;
|
|
321
|
-
set conversationType(value: ConversationType | null | undefined);
|
|
322
|
-
get createdAfterNs(): bigint | undefined;
|
|
323
|
-
set createdAfterNs(value: bigint | null | undefined);
|
|
324
|
-
get createdBeforeNs(): bigint | undefined;
|
|
325
|
-
set createdBeforeNs(value: bigint | null | undefined);
|
|
326
|
-
includeDuplicateDms: boolean;
|
|
327
|
-
includeSyncGroups: boolean;
|
|
328
|
-
get limit(): bigint | undefined;
|
|
329
|
-
set limit(value: bigint | null | undefined);
|
|
330
|
-
}
|
|
331
|
-
export class ListMessagesOptions {
|
|
332
|
-
free(): void;
|
|
333
|
-
constructor(sent_before_ns?: bigint | null, sent_after_ns?: bigint | null, limit?: bigint | null, delivery_status?: DeliveryStatus | null, direction?: SortDirection | null);
|
|
334
|
-
get sentBeforeNs(): bigint | undefined;
|
|
335
|
-
set sentBeforeNs(value: bigint | null | undefined);
|
|
336
|
-
get sentAfterNs(): bigint | undefined;
|
|
337
|
-
set sentAfterNs(value: bigint | null | undefined);
|
|
338
|
-
get limit(): bigint | undefined;
|
|
339
|
-
set limit(value: bigint | null | undefined);
|
|
340
|
-
get deliveryStatus(): DeliveryStatus | undefined;
|
|
341
|
-
set deliveryStatus(value: DeliveryStatus | null | undefined);
|
|
342
|
-
get direction(): SortDirection | undefined;
|
|
343
|
-
set direction(value: SortDirection | null | undefined);
|
|
344
|
-
}
|
|
345
|
-
/**
|
|
346
|
-
* Specify options for the logger
|
|
347
|
-
*/
|
|
348
|
-
export class LogOptions {
|
|
349
|
-
free(): void;
|
|
350
|
-
constructor(structured: boolean, performance: boolean, level?: LogLevel | null);
|
|
351
|
-
/**
|
|
352
|
-
* enable structured JSON logging to stdout.Useful for third-party log viewers
|
|
353
|
-
*/
|
|
354
|
-
structured: boolean;
|
|
355
|
-
/**
|
|
356
|
-
* enable performance metrics for libxmtp in the `performance` tab
|
|
357
|
-
*/
|
|
358
|
-
performance: boolean;
|
|
359
|
-
/**
|
|
360
|
-
* filter for logs
|
|
361
|
-
*/
|
|
362
|
-
get level(): LogLevel | undefined;
|
|
363
|
-
/**
|
|
364
|
-
* filter for logs
|
|
365
|
-
*/
|
|
366
|
-
set level(value: LogLevel | null | undefined);
|
|
367
|
-
}
|
|
368
|
-
export class Message {
|
|
369
|
-
free(): void;
|
|
370
|
-
constructor(id: string, sent_at_ns: bigint, convo_id: string, sender_inbox_id: string, content: EncodedContent, kind: GroupMessageKind, delivery_status: DeliveryStatus);
|
|
371
|
-
id: string;
|
|
372
|
-
sentAtNs: bigint;
|
|
373
|
-
convoId: string;
|
|
374
|
-
senderInboxId: string;
|
|
375
|
-
content: EncodedContent;
|
|
376
|
-
kind: GroupMessageKind;
|
|
377
|
-
deliveryStatus: DeliveryStatus;
|
|
378
|
-
}
|
|
379
|
-
export class MessageDisappearingSettings {
|
|
380
|
-
free(): void;
|
|
381
|
-
constructor(from_ns: bigint, in_ns: bigint);
|
|
382
|
-
fromNs: bigint;
|
|
383
|
-
inNs: bigint;
|
|
384
|
-
}
|
|
385
|
-
export class PermissionPolicySet {
|
|
386
|
-
free(): void;
|
|
387
|
-
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_message_disappearing_policy: PermissionPolicy);
|
|
388
|
-
addMemberPolicy: PermissionPolicy;
|
|
389
|
-
removeMemberPolicy: PermissionPolicy;
|
|
390
|
-
addAdminPolicy: PermissionPolicy;
|
|
391
|
-
removeAdminPolicy: PermissionPolicy;
|
|
392
|
-
updateGroupNamePolicy: PermissionPolicy;
|
|
393
|
-
updateGroupDescriptionPolicy: PermissionPolicy;
|
|
394
|
-
updateGroupImageUrlSquarePolicy: PermissionPolicy;
|
|
395
|
-
updateMessageDisappearingPolicy: PermissionPolicy;
|
|
396
|
-
}
|
|
397
|
-
export class StreamCloser {
|
|
398
|
-
private constructor();
|
|
399
|
-
free(): void;
|
|
400
|
-
/**
|
|
401
|
-
* Signal the stream to end
|
|
402
|
-
* Does not wait for the stream to end.
|
|
403
|
-
*/
|
|
404
|
-
end(): void;
|
|
405
|
-
/**
|
|
406
|
-
* End the stream and `await` for it to shutdown
|
|
407
|
-
* Returns the `Result` of the task.
|
|
408
|
-
* End the stream and asynchronously wait for it to shutdown
|
|
409
|
-
*/
|
|
410
|
-
endAndWait(): Promise<void>;
|
|
411
|
-
waitForReady(): Promise<void>;
|
|
412
|
-
/**
|
|
413
|
-
* Checks if this stream is closed
|
|
414
|
-
*/
|
|
415
|
-
isClosed(): boolean;
|
|
416
|
-
}
|
|
417
|
-
export class Version {
|
|
418
|
-
private constructor();
|
|
419
|
-
free(): void;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
423
|
-
|
|
424
|
-
export interface InitOutput {
|
|
425
|
-
readonly memory: WebAssembly.Memory;
|
|
426
|
-
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
427
|
-
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
428
|
-
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
429
|
-
readonly __wbg_get_consent_state: (a: number) => number;
|
|
430
|
-
readonly __wbg_set_consent_state: (a: number, b: number) => void;
|
|
431
|
-
readonly __wbg_get_consent_entity: (a: number) => [number, number];
|
|
432
|
-
readonly __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
|
|
433
|
-
readonly consent_new: (a: number, b: number, c: number, d: number) => number;
|
|
434
|
-
readonly client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
435
|
-
readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
436
|
-
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
437
|
-
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
438
|
-
readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
439
|
-
readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
440
|
-
readonly groupmetadata_conversationType: (a: number) => [number, number];
|
|
441
|
-
readonly __wbg_groupmember_free: (a: number, b: number) => void;
|
|
442
|
-
readonly __wbg_get_groupmember_accountAddresses: (a: number) => [number, number];
|
|
443
|
-
readonly __wbg_set_groupmember_accountAddresses: (a: number, b: number, c: number) => void;
|
|
444
|
-
readonly __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
445
|
-
readonly __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
|
|
446
|
-
readonly __wbg_get_groupmember_permissionLevel: (a: number) => number;
|
|
447
|
-
readonly __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
|
|
448
|
-
readonly __wbg_get_groupmember_consentState: (a: number) => number;
|
|
449
|
-
readonly __wbg_set_groupmember_consentState: (a: number, b: number) => void;
|
|
450
|
-
readonly groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
451
|
-
readonly __wbg_conversation_free: (a: number, b: number) => void;
|
|
452
|
-
readonly conversation_id: (a: number) => [number, number];
|
|
453
|
-
readonly conversation_send: (a: number, b: number) => any;
|
|
454
|
-
readonly conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
|
|
455
|
-
readonly conversation_publishMessages: (a: number) => any;
|
|
456
|
-
readonly conversation_sync: (a: number) => any;
|
|
457
|
-
readonly conversation_findMessages: (a: number, b: number) => any;
|
|
458
|
-
readonly conversation_listMembers: (a: number) => any;
|
|
459
|
-
readonly conversation_adminList: (a: number) => [number, number, number, number];
|
|
460
|
-
readonly conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
461
|
-
readonly conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
462
|
-
readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
463
|
-
readonly conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
464
|
-
readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
465
|
-
readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
466
|
-
readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
|
|
467
|
-
readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
|
|
468
|
-
readonly conversation_groupPermissions: (a: number) => [number, number, number];
|
|
469
|
-
readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
470
|
-
readonly conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
471
|
-
readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
472
|
-
readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
473
|
-
readonly conversation_groupName: (a: number) => [number, number, number, number];
|
|
474
|
-
readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
475
|
-
readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
476
|
-
readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
477
|
-
readonly conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
478
|
-
readonly conversation_stream: (a: number, b: any) => [number, number, number];
|
|
479
|
-
readonly conversation_createdAtNs: (a: number) => bigint;
|
|
480
|
-
readonly conversation_isActive: (a: number) => [number, number, number];
|
|
481
|
-
readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
482
|
-
readonly conversation_groupMetadata: (a: number) => any;
|
|
483
|
-
readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
484
|
-
readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
485
|
-
readonly conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
|
|
486
|
-
readonly conversation_removeMessageDisappearingSettings: (a: number) => any;
|
|
487
|
-
readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
488
|
-
readonly conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
|
|
489
|
-
readonly __wbg_installation_free: (a: number, b: number) => void;
|
|
490
|
-
readonly __wbg_get_installation_bytes: (a: number) => any;
|
|
491
|
-
readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
|
|
492
|
-
readonly __wbg_get_installation_id: (a: number) => [number, number];
|
|
493
|
-
readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
494
|
-
readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
|
|
495
|
-
readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
496
|
-
readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
|
|
497
|
-
readonly __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
498
|
-
readonly __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
|
|
499
|
-
readonly __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
|
|
500
|
-
readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
501
|
-
readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
|
|
502
|
-
readonly __wbg_get_inboxstate_accountAddresses: (a: number) => [number, number];
|
|
503
|
-
readonly __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
|
|
504
|
-
readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
505
|
-
readonly client_inboxState: (a: number, b: number) => any;
|
|
506
|
-
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
507
|
-
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
508
|
-
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
509
|
-
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
510
|
-
readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
511
|
-
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
512
|
-
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
513
|
-
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
514
|
-
readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
515
|
-
readonly __wbg_get_logoptions_performance: (a: number) => number;
|
|
516
|
-
readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
517
|
-
readonly __wbg_get_logoptions_level: (a: number) => number;
|
|
518
|
-
readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
519
|
-
readonly logoptions_new: (a: number, b: number, c: number) => number;
|
|
520
|
-
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) => any;
|
|
521
|
-
readonly client_accountAddress: (a: number) => [number, number];
|
|
522
|
-
readonly client_inboxId: (a: number) => [number, number];
|
|
523
|
-
readonly client_isRegistered: (a: number) => number;
|
|
524
|
-
readonly client_installationId: (a: number) => [number, number];
|
|
525
|
-
readonly client_installationIdBytes: (a: number) => any;
|
|
526
|
-
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
527
|
-
readonly client_registerIdentity: (a: number) => any;
|
|
528
|
-
readonly client_sendHistorySyncRequest: (a: number) => any;
|
|
529
|
-
readonly client_sendConsentSyncRequest: (a: number) => any;
|
|
530
|
-
readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
|
|
531
|
-
readonly client_conversations: (a: number) => number;
|
|
532
|
-
readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => any;
|
|
533
|
-
readonly generateInboxId: (a: number, b: number) => [number, number, number, number];
|
|
534
|
-
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
535
|
-
readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
536
|
-
readonly client_addWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
537
|
-
readonly client_revokeWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
538
|
-
readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
539
|
-
readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
540
|
-
readonly client_addSignature: (a: number, b: number, c: any) => any;
|
|
541
|
-
readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
542
|
-
readonly client_applySignatureRequests: (a: number) => any;
|
|
543
|
-
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
544
|
-
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
545
|
-
readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
546
|
-
readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
547
|
-
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
548
|
-
readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
549
|
-
readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
550
|
-
readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
551
|
-
readonly __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
|
|
552
|
-
readonly __wbg_get_contenttypeid_versionMinor: (a: number) => number;
|
|
553
|
-
readonly __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
|
|
554
|
-
readonly contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
555
|
-
readonly __wbg_encodedcontent_free: (a: number, b: number) => void;
|
|
556
|
-
readonly __wbg_get_encodedcontent_type: (a: number) => number;
|
|
557
|
-
readonly __wbg_set_encodedcontent_type: (a: number, b: number) => void;
|
|
558
|
-
readonly __wbg_get_encodedcontent_parameters: (a: number) => any;
|
|
559
|
-
readonly __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
|
|
560
|
-
readonly __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
|
|
561
|
-
readonly __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
|
|
562
|
-
readonly __wbg_get_encodedcontent_compression: (a: number) => number;
|
|
563
|
-
readonly __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
|
|
564
|
-
readonly __wbg_get_encodedcontent_content: (a: number) => any;
|
|
565
|
-
readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
566
|
-
readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
567
|
-
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
568
|
-
readonly streamcloser_end: (a: number) => void;
|
|
569
|
-
readonly streamcloser_endAndWait: (a: number) => any;
|
|
570
|
-
readonly streamcloser_waitForReady: (a: number) => any;
|
|
571
|
-
readonly streamcloser_isClosed: (a: number) => number;
|
|
572
|
-
readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
573
|
-
readonly __wbg_get_listconversationsoptions_allowedStates: (a: number) => [number, number];
|
|
574
|
-
readonly __wbg_set_listconversationsoptions_allowedStates: (a: number, b: number, c: number) => void;
|
|
575
|
-
readonly __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
|
|
576
|
-
readonly __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
|
|
577
|
-
readonly __wbg_get_listconversationsoptions_conversationType: (a: number) => number;
|
|
578
|
-
readonly __wbg_set_listconversationsoptions_conversationType: (a: number, b: number) => void;
|
|
579
|
-
readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
|
|
580
|
-
readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
|
|
581
|
-
readonly __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
|
|
582
|
-
readonly __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
583
|
-
readonly __wbg_get_listconversationsoptions_includeDuplicateDms: (a: number) => number;
|
|
584
|
-
readonly __wbg_set_listconversationsoptions_includeDuplicateDms: (a: number, b: number) => void;
|
|
585
|
-
readonly __wbg_get_listconversationsoptions_includeSyncGroups: (a: number) => number;
|
|
586
|
-
readonly __wbg_set_listconversationsoptions_includeSyncGroups: (a: number, b: number) => void;
|
|
587
|
-
readonly __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
|
|
588
|
-
readonly __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
589
|
-
readonly listconversationsoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: bigint, j: number, k: number, l: number, m: bigint) => number;
|
|
590
|
-
readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
|
|
591
|
-
readonly __wbg_get_messagedisappearingsettings_inNs: (a: number) => bigint;
|
|
592
|
-
readonly __wbg_set_messagedisappearingsettings_inNs: (a: number, b: bigint) => void;
|
|
593
|
-
readonly messagedisappearingsettings_new: (a: bigint, b: bigint) => number;
|
|
594
|
-
readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
|
|
595
|
-
readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
|
|
596
|
-
readonly __wbg_set_creategroupoptions_permissions: (a: number, b: number) => void;
|
|
597
|
-
readonly __wbg_get_creategroupoptions_groupName: (a: number) => [number, number];
|
|
598
|
-
readonly __wbg_set_creategroupoptions_groupName: (a: number, b: number, c: number) => void;
|
|
599
|
-
readonly __wbg_get_creategroupoptions_groupImageUrlSquare: (a: number) => [number, number];
|
|
600
|
-
readonly __wbg_set_creategroupoptions_groupImageUrlSquare: (a: number, b: number, c: number) => void;
|
|
601
|
-
readonly __wbg_get_creategroupoptions_groupDescription: (a: number) => [number, number];
|
|
602
|
-
readonly __wbg_set_creategroupoptions_groupDescription: (a: number, b: number, c: number) => void;
|
|
603
|
-
readonly __wbg_get_creategroupoptions_customPermissionPolicySet: (a: number) => number;
|
|
604
|
-
readonly __wbg_set_creategroupoptions_customPermissionPolicySet: (a: number, b: number) => void;
|
|
605
|
-
readonly creategroupoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
606
|
-
readonly __wbg_createdmoptions_free: (a: number, b: number) => void;
|
|
607
|
-
readonly __wbg_get_createdmoptions_messageDisappearingSettings: (a: number) => number;
|
|
608
|
-
readonly __wbg_set_createdmoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
609
|
-
readonly createdmoptions_new: (a: number) => number;
|
|
610
|
-
readonly __wbg_hmackey_free: (a: number, b: number) => void;
|
|
611
|
-
readonly __wbg_get_hmackey_key: (a: number) => [number, number];
|
|
612
|
-
readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
|
|
613
|
-
readonly __wbg_get_hmackey_epoch: (a: number) => bigint;
|
|
614
|
-
readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
|
|
615
|
-
readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
616
|
-
readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
617
|
-
readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
618
|
-
readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => number;
|
|
619
|
-
readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
620
|
-
readonly conversationlistitem_new: (a: number, b: number) => number;
|
|
621
|
-
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
622
|
-
readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
|
|
623
|
-
readonly conversations_createGroupByInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
624
|
-
readonly conversations_createDm: (a: number, b: number, c: number, d: number) => any;
|
|
625
|
-
readonly conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
|
|
626
|
-
readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
|
|
627
|
-
readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
|
|
628
|
-
readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
629
|
-
readonly conversations_sync: (a: number) => any;
|
|
630
|
-
readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
631
|
-
readonly conversations_list: (a: number, b: number) => [number, number, number];
|
|
632
|
-
readonly conversations_listGroups: (a: number, b: number) => [number, number, number];
|
|
633
|
-
readonly conversations_listDms: (a: number, b: number) => [number, number, number];
|
|
634
|
-
readonly conversations_getHmacKeys: (a: number) => [number, number, number];
|
|
635
|
-
readonly conversations_stream: (a: number, b: any, c: number) => [number, number, number];
|
|
636
|
-
readonly conversations_streamGroups: (a: number, b: any) => [number, number, number];
|
|
637
|
-
readonly conversations_streamDms: (a: number, b: any) => [number, number, number];
|
|
638
|
-
readonly conversations_streamAllMessages: (a: number, b: any, c: number) => [number, number, number];
|
|
639
|
-
readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
|
|
640
|
-
readonly __wbg_get_listmessagesoptions_deliveryStatus: (a: number) => number;
|
|
641
|
-
readonly __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
|
|
642
|
-
readonly __wbg_get_listmessagesoptions_direction: (a: number) => number;
|
|
643
|
-
readonly __wbg_set_listmessagesoptions_direction: (a: number, b: number) => void;
|
|
644
|
-
readonly listmessagesoptions_new: (a: number, b: bigint, c: number, d: bigint, e: number, f: bigint, g: number, h: number) => number;
|
|
645
|
-
readonly __wbg_message_free: (a: number, b: number) => void;
|
|
646
|
-
readonly __wbg_get_message_id: (a: number) => [number, number];
|
|
647
|
-
readonly __wbg_set_message_id: (a: number, b: number, c: number) => void;
|
|
648
|
-
readonly __wbg_get_message_convoId: (a: number) => [number, number];
|
|
649
|
-
readonly __wbg_set_message_convoId: (a: number, b: number, c: number) => void;
|
|
650
|
-
readonly __wbg_get_message_senderInboxId: (a: number) => [number, number];
|
|
651
|
-
readonly __wbg_set_message_senderInboxId: (a: number, b: number, c: number) => void;
|
|
652
|
-
readonly __wbg_get_message_content: (a: number) => number;
|
|
653
|
-
readonly __wbg_set_message_content: (a: number, b: number) => void;
|
|
654
|
-
readonly __wbg_get_message_kind: (a: number) => number;
|
|
655
|
-
readonly __wbg_set_message_kind: (a: number, b: number) => void;
|
|
656
|
-
readonly __wbg_get_message_deliveryStatus: (a: number) => number;
|
|
657
|
-
readonly __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
|
|
658
|
-
readonly message_new: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
659
|
-
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
660
|
-
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
661
|
-
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
662
|
-
readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
663
|
-
readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
664
|
-
readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
665
|
-
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
666
|
-
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
667
|
-
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
668
|
-
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
669
|
-
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
670
|
-
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
671
|
-
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
672
|
-
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
673
|
-
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
674
|
-
readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
675
|
-
readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
676
|
-
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
677
|
-
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
678
|
-
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
679
|
-
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
680
|
-
readonly __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
|
|
681
|
-
readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
682
|
-
readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
683
|
-
readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
684
|
-
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
685
|
-
readonly __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
|
|
686
|
-
readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
687
|
-
readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
688
|
-
readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
|
|
689
|
-
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
690
|
-
readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
691
|
-
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
692
|
-
readonly __wbg_version_free: (a: number, b: number) => void;
|
|
693
|
-
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
694
|
-
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
695
|
-
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
696
|
-
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
697
|
-
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
698
|
-
readonly intounderlyingsink_close: (a: number) => any;
|
|
699
|
-
readonly intounderlyingsink_abort: (a: number, b: any) => any;
|
|
700
|
-
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
701
|
-
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
702
|
-
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
703
|
-
readonly intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
704
|
-
readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
705
|
-
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
706
|
-
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
707
|
-
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
708
|
-
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
709
|
-
readonly __wbindgen_exn_store: (a: number) => void;
|
|
710
|
-
readonly __externref_table_alloc: () => number;
|
|
711
|
-
readonly __wbindgen_export_5: WebAssembly.Table;
|
|
712
|
-
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
713
|
-
readonly __externref_table_dealloc: (a: number) => void;
|
|
714
|
-
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
715
|
-
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb21f8cddfb9e179d: (a: number, b: number) => void;
|
|
716
|
-
readonly closure2991_externref_shim: (a: number, b: number, c: any) => void;
|
|
717
|
-
readonly closure4013_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
718
|
-
readonly __wbindgen_start: () => void;
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
722
|
-
/**
|
|
723
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
724
|
-
* a precompiled `WebAssembly.Module`.
|
|
725
|
-
*
|
|
726
|
-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
727
|
-
*
|
|
728
|
-
* @returns {InitOutput}
|
|
729
|
-
*/
|
|
730
|
-
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
731
|
-
|
|
732
|
-
/**
|
|
733
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
734
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
735
|
-
*
|
|
736
|
-
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
737
|
-
*
|
|
738
|
-
* @returns {Promise<InitOutput>}
|
|
739
|
-
*/
|
|
740
|
-
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|