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