@xmtp/wasm-bindings 1.9.0 → 1.10.0-dev.0b43b93
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 +1214 -956
- package/dist/bindings_wasm.js +3405 -3018
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +88 -66
- package/package.json +5 -5
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -1,257 +1,124 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function inboxStateFromInboxIds(host: string, gatewayHost: string | null | undefined, inboxIds: string[]): Promise<InboxState[]>;
|
|
4
|
-
export function contentTypeGroupUpdated(): ContentTypeId;
|
|
5
|
-
export function contentTypeLeaveRequest(): ContentTypeId;
|
|
6
|
-
export function contentTypeText(): ContentTypeId;
|
|
7
|
-
export function encodeText(text: string): EncodedContent;
|
|
8
|
-
export function contentTypeMarkdown(): ContentTypeId;
|
|
9
|
-
export function encodeMarkdown(text: string): EncodedContent;
|
|
10
|
-
export function applySignatureRequest(host: string, gatewayHost: string | null | undefined, signatureRequest: SignatureRequestHandle): Promise<void>;
|
|
11
|
-
export function revokeInstallationsSignatureRequest(host: string, gatewayHost: string | null | undefined, recoveryIdentifier: Identifier, inboxId: string, installationIds: Uint8Array[]): SignatureRequestHandle;
|
|
12
|
-
export function verifySignedWithPublicKey(signatureText: string, signatureBytes: Uint8Array, publicKey: Uint8Array): void;
|
|
13
|
-
export function createClient(host: string, inboxId: string, accountIdentifier: Identifier, dbPath?: string | null, encryptionKey?: Uint8Array | null, deviceSyncServerUrl?: string | null, deviceSyncWorkerMode?: DeviceSyncWorkerMode | null, logOptions?: LogOptions | null, allowOffline?: boolean | null, appVersion?: string | null, gatewayHost?: string | null, nonce?: bigint | null, authCallback?: any | null, authHandle?: AuthHandle | null, clientMode?: ClientMode | null): Promise<Client>;
|
|
14
|
-
export function metadataFieldName(field: MetadataField): string;
|
|
15
|
-
export function generateInboxId(accountIdentifier: Identifier, nonce?: bigint | null): string;
|
|
16
|
-
export function getInboxIdForIdentifier(host: string, gatewayHost: string | null | undefined, isSecure: boolean, accountIdentifier: Identifier): Promise<string | undefined>;
|
|
17
|
-
export function encodeAttachment(attachment: Attachment): EncodedContent;
|
|
18
|
-
export function contentTypeAttachment(): ContentTypeId;
|
|
19
|
-
export function encodeReadReceipt(read_receipt: ReadReceipt): EncodedContent;
|
|
20
|
-
export function contentTypeReadReceipt(): ContentTypeId;
|
|
21
|
-
export function encodeRemoteAttachment(remote_attachment: RemoteAttachment): EncodedContent;
|
|
22
|
-
/**
|
|
23
|
-
* Decrypts an encrypted payload from a remote attachment.
|
|
24
|
-
*/
|
|
25
|
-
export function decryptAttachment(encryptedBytes: Uint8Array, remoteAttachment: RemoteAttachment): Attachment;
|
|
26
|
-
/**
|
|
27
|
-
* Encrypts an attachment for storage as a remote attachment.
|
|
28
|
-
*/
|
|
29
|
-
export function encryptAttachment(attachment: Attachment): EncryptedAttachment;
|
|
30
|
-
export function contentTypeRemoteAttachment(): ContentTypeId;
|
|
31
|
-
export function contentTypeWalletSendCalls(): ContentTypeId;
|
|
32
|
-
export function encodeWalletSendCalls(wallet_send_calls: WalletSendCalls): EncodedContent;
|
|
33
|
-
export function encodeTransactionReference(transaction_reference: TransactionReference): EncodedContent;
|
|
34
|
-
export function contentTypeTransactionReference(): ContentTypeId;
|
|
35
|
-
export function encodeMultiRemoteAttachment(multi_remote_attachment: MultiRemoteAttachment): EncodedContent;
|
|
36
|
-
export function contentTypeMultiRemoteAttachment(): ContentTypeId;
|
|
37
|
-
export function contentTypeReply(): ContentTypeId;
|
|
38
|
-
export function encodeIntent(intent: Intent): EncodedContent;
|
|
39
|
-
export function contentTypeIntent(): ContentTypeId;
|
|
40
|
-
export function contentTypeActions(): ContentTypeId;
|
|
41
|
-
export function encodeActions(actions: Actions): EncodedContent;
|
|
42
|
-
export function encodeReaction(reaction: Reaction): EncodedContent;
|
|
43
|
-
export function contentTypeReaction(): ContentTypeId;
|
|
44
|
-
/**
|
|
45
|
-
* Delete all database files from OPFS.
|
|
46
|
-
* Note: All databases must be closed before calling this function.
|
|
47
|
-
*/
|
|
48
|
-
export function opfsClearAll(): Promise<void>;
|
|
49
|
-
/**
|
|
50
|
-
* Check if a database file exists in OPFS.
|
|
51
|
-
*/
|
|
52
|
-
export function opfsFileExists(filename: string): Promise<boolean>;
|
|
53
|
-
/**
|
|
54
|
-
* Delete a specific database file from OPFS.
|
|
55
|
-
* Returns true if the file was deleted, false if it didn't exist.
|
|
56
|
-
* Note: The database must be closed before calling this function.
|
|
57
|
-
*/
|
|
58
|
-
export function opfsDeleteFile(filename: string): Promise<boolean>;
|
|
59
|
-
/**
|
|
60
|
-
* Initialize the OPFS SQLite VFS if not already initialized.
|
|
61
|
-
* This must be called before using other OPFS functions.
|
|
62
|
-
*/
|
|
63
|
-
export function opfsInit(): Promise<void>;
|
|
64
|
-
/**
|
|
65
|
-
* List all database files stored in OPFS.
|
|
66
|
-
* Returns an array of file names.
|
|
67
|
-
*/
|
|
68
|
-
export function opfsListFiles(): Promise<string[]>;
|
|
69
3
|
/**
|
|
70
|
-
*
|
|
4
|
+
* The `ReadableStreamType` enum.
|
|
5
|
+
*
|
|
6
|
+
* *This API requires the following crate features to be activated: `ReadableStreamType`*
|
|
71
7
|
*/
|
|
72
|
-
|
|
8
|
+
|
|
9
|
+
type ReadableStreamType = "bytes";
|
|
73
10
|
/**
|
|
74
|
-
*
|
|
75
|
-
* This will overwrite any existing database with the same name.
|
|
76
|
-
* The byte array must contain a valid SQLite database.
|
|
77
|
-
* Note: Any existing database with the same name must be closed before importing.
|
|
11
|
+
* An available archive in the sync group
|
|
78
12
|
*/
|
|
79
|
-
export
|
|
13
|
+
export interface AvailableArchiveInfo {
|
|
14
|
+
pin: string;
|
|
15
|
+
metadata: ArchiveMetadata;
|
|
16
|
+
sentByInstallation: Uint8Array;
|
|
17
|
+
}
|
|
18
|
+
|
|
80
19
|
/**
|
|
81
|
-
*
|
|
20
|
+
* Metadata about a backup archive
|
|
82
21
|
*/
|
|
83
|
-
export
|
|
22
|
+
export interface ArchiveMetadata {
|
|
23
|
+
backupVersion: number;
|
|
24
|
+
elements: BackupElementSelectionOption[];
|
|
25
|
+
exportedAtNs: bigint;
|
|
26
|
+
startNs?: bigint;
|
|
27
|
+
endNs?: bigint;
|
|
28
|
+
}
|
|
29
|
+
|
|
84
30
|
/**
|
|
85
|
-
*
|
|
86
|
-
* This can be used to backup or transfer a database.
|
|
87
|
-
* Note: The database should be closed before exporting for consistency.
|
|
31
|
+
* Options for creating or sending an archive
|
|
88
32
|
*/
|
|
89
|
-
export
|
|
33
|
+
export interface ArchiveOptions {
|
|
34
|
+
startNs?: bigint;
|
|
35
|
+
endNs?: bigint;
|
|
36
|
+
elements: BackupElementSelectionOption[];
|
|
37
|
+
excludeDisappearingMessages: boolean;
|
|
38
|
+
}
|
|
39
|
+
|
|
90
40
|
/**
|
|
91
|
-
*
|
|
41
|
+
* Result of encrypting an attachment for remote storage.
|
|
92
42
|
*/
|
|
93
|
-
export
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
Reaction = 9,
|
|
123
|
-
ReadReceipt = 10,
|
|
124
|
-
RemoteAttachment = 11,
|
|
125
|
-
Reply = 12,
|
|
126
|
-
Text = 13,
|
|
127
|
-
TransactionReference = 14,
|
|
128
|
-
WalletSendCalls = 15,
|
|
129
|
-
}
|
|
130
|
-
export enum ConversationType {
|
|
131
|
-
Dm = 0,
|
|
132
|
-
Group = 1,
|
|
133
|
-
Sync = 2,
|
|
134
|
-
Oneshot = 3,
|
|
135
|
-
}
|
|
136
|
-
export enum DeletedBy {
|
|
137
|
-
Sender = 0,
|
|
138
|
-
Admin = 1,
|
|
139
|
-
}
|
|
140
|
-
export enum DeliveryStatus {
|
|
141
|
-
Unpublished = 0,
|
|
142
|
-
Published = 1,
|
|
143
|
-
Failed = 2,
|
|
144
|
-
}
|
|
145
|
-
export enum DeviceSyncWorkerMode {
|
|
146
|
-
Enabled = 0,
|
|
147
|
-
Disabled = 1,
|
|
148
|
-
}
|
|
149
|
-
export enum GroupMembershipState {
|
|
150
|
-
Allowed = 0,
|
|
151
|
-
Rejected = 1,
|
|
152
|
-
Pending = 2,
|
|
153
|
-
Restored = 3,
|
|
154
|
-
PendingRemove = 4,
|
|
155
|
-
}
|
|
156
|
-
export enum GroupMessageKind {
|
|
157
|
-
Application = 0,
|
|
158
|
-
MembershipChange = 1,
|
|
159
|
-
}
|
|
160
|
-
export enum GroupPermissionsOptions {
|
|
161
|
-
Default = 0,
|
|
162
|
-
AdminOnly = 1,
|
|
163
|
-
CustomPolicy = 2,
|
|
164
|
-
}
|
|
165
|
-
export enum IdentifierKind {
|
|
166
|
-
Ethereum = 0,
|
|
167
|
-
Passkey = 1,
|
|
168
|
-
}
|
|
169
|
-
export enum ListConversationsOrderBy {
|
|
170
|
-
CreatedAt = 0,
|
|
171
|
-
LastActivity = 1,
|
|
172
|
-
}
|
|
173
|
-
export enum LogLevel {
|
|
174
|
-
Off = 0,
|
|
175
|
-
Error = 1,
|
|
176
|
-
Warn = 2,
|
|
177
|
-
Info = 3,
|
|
178
|
-
Debug = 4,
|
|
179
|
-
Trace = 5,
|
|
180
|
-
}
|
|
181
|
-
export enum MessageSortBy {
|
|
182
|
-
SentAt = 0,
|
|
183
|
-
InsertedAt = 1,
|
|
184
|
-
}
|
|
185
|
-
export enum MetadataField {
|
|
186
|
-
AppData = 0,
|
|
187
|
-
Description = 1,
|
|
188
|
-
GroupName = 2,
|
|
189
|
-
GroupImageUrlSquare = 3,
|
|
190
|
-
MessageExpirationFromNs = 4,
|
|
191
|
-
MessageExpirationInNs = 5,
|
|
192
|
-
}
|
|
193
|
-
export enum PermissionLevel {
|
|
194
|
-
Member = 0,
|
|
195
|
-
Admin = 1,
|
|
196
|
-
SuperAdmin = 2,
|
|
197
|
-
}
|
|
198
|
-
export enum PermissionPolicy {
|
|
199
|
-
Allow = 0,
|
|
200
|
-
Deny = 1,
|
|
201
|
-
Admin = 2,
|
|
202
|
-
SuperAdmin = 3,
|
|
203
|
-
DoesNotExist = 4,
|
|
204
|
-
Other = 5,
|
|
205
|
-
}
|
|
206
|
-
export enum PermissionUpdateType {
|
|
207
|
-
AddMember = 0,
|
|
208
|
-
RemoveMember = 1,
|
|
209
|
-
AddAdmin = 2,
|
|
210
|
-
RemoveAdmin = 3,
|
|
211
|
-
UpdateMetadata = 4,
|
|
212
|
-
}
|
|
213
|
-
export enum ReactionAction {
|
|
214
|
-
Unknown = 0,
|
|
215
|
-
Added = 1,
|
|
216
|
-
Removed = 2,
|
|
217
|
-
}
|
|
218
|
-
export enum ReactionSchema {
|
|
219
|
-
Unknown = 0,
|
|
220
|
-
Unicode = 1,
|
|
221
|
-
Shortcode = 2,
|
|
222
|
-
Custom = 3,
|
|
223
|
-
}
|
|
224
|
-
export enum SortDirection {
|
|
225
|
-
Ascending = 0,
|
|
226
|
-
Descending = 1,
|
|
43
|
+
export interface EncryptedAttachment {
|
|
44
|
+
/**
|
|
45
|
+
* The encrypted bytes to upload to the remote server
|
|
46
|
+
*/
|
|
47
|
+
payload: Uint8Array;
|
|
48
|
+
/**
|
|
49
|
+
* SHA-256 digest of the encrypted bytes (hex-encoded)
|
|
50
|
+
*/
|
|
51
|
+
contentDigest: string;
|
|
52
|
+
/**
|
|
53
|
+
* The 32-byte secret key needed for decryption
|
|
54
|
+
*/
|
|
55
|
+
secret: Uint8Array;
|
|
56
|
+
/**
|
|
57
|
+
* The 32-byte salt used in key derivation
|
|
58
|
+
*/
|
|
59
|
+
salt: Uint8Array;
|
|
60
|
+
/**
|
|
61
|
+
* The 12-byte nonce used in encryption
|
|
62
|
+
*/
|
|
63
|
+
nonce: Uint8Array;
|
|
64
|
+
/**
|
|
65
|
+
* The length of the encrypted content
|
|
66
|
+
*/
|
|
67
|
+
contentLength: number;
|
|
68
|
+
/**
|
|
69
|
+
* The filename of the attachment
|
|
70
|
+
*/
|
|
71
|
+
filename?: string;
|
|
227
72
|
}
|
|
73
|
+
|
|
228
74
|
/**
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
* *This API requires the following crate features to be activated: `ReadableStreamType`*
|
|
75
|
+
* Specify options for the logger
|
|
232
76
|
*/
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
77
|
+
export interface LogOptions {
|
|
78
|
+
/**
|
|
79
|
+
* enable structured JSON logging to stdout. Useful for third-party log viewers
|
|
80
|
+
*/
|
|
81
|
+
structured?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* enable performance metrics for libxmtp in the `performance` tab
|
|
84
|
+
*/
|
|
85
|
+
performance?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* filter for logs
|
|
88
|
+
*/
|
|
89
|
+
level?: LogLevel;
|
|
237
90
|
}
|
|
238
91
|
|
|
239
|
-
export interface
|
|
240
|
-
|
|
241
|
-
|
|
92
|
+
export interface Action {
|
|
93
|
+
id: string;
|
|
94
|
+
label: string;
|
|
95
|
+
imageUrl?: string;
|
|
96
|
+
style?: ActionStyle;
|
|
97
|
+
expiresAtNs?: bigint;
|
|
242
98
|
}
|
|
243
99
|
|
|
244
|
-
export interface
|
|
245
|
-
bytes: Uint8Array;
|
|
100
|
+
export interface Actions {
|
|
246
101
|
id: string;
|
|
247
|
-
|
|
102
|
+
description: string;
|
|
103
|
+
actions: Action[];
|
|
104
|
+
expiresAtNs?: bigint;
|
|
248
105
|
}
|
|
249
106
|
|
|
250
|
-
export interface
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
107
|
+
export interface ApiStats {
|
|
108
|
+
uploadKeyPackage: bigint;
|
|
109
|
+
fetchKeyPackage: bigint;
|
|
110
|
+
sendGroupMessages: bigint;
|
|
111
|
+
sendWelcomeMessages: bigint;
|
|
112
|
+
queryGroupMessages: bigint;
|
|
113
|
+
queryWelcomeMessages: bigint;
|
|
114
|
+
subscribeMessages: bigint;
|
|
115
|
+
subscribeWelcomes: bigint;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface Attachment {
|
|
119
|
+
filename?: string;
|
|
120
|
+
mimeType: string;
|
|
121
|
+
content: Uint8Array;
|
|
255
122
|
}
|
|
256
123
|
|
|
257
124
|
export interface Consent {
|
|
@@ -260,78 +127,81 @@ export interface Consent {
|
|
|
260
127
|
entity: string;
|
|
261
128
|
}
|
|
262
129
|
|
|
263
|
-
export interface
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
metadataFieldChanges: MetadataFieldChange[];
|
|
269
|
-
addedAdminInboxes: Inbox[];
|
|
270
|
-
removedAdminInboxes: Inbox[];
|
|
271
|
-
addedSuperAdminInboxes: Inbox[];
|
|
272
|
-
removedSuperAdminInboxes: Inbox[];
|
|
130
|
+
export interface ContentTypeId {
|
|
131
|
+
authorityId: string;
|
|
132
|
+
typeId: string;
|
|
133
|
+
versionMajor: number;
|
|
134
|
+
versionMinor: number;
|
|
273
135
|
}
|
|
274
136
|
|
|
275
|
-
export interface
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
137
|
+
export interface ConversationDebugInfo {
|
|
138
|
+
epoch: bigint;
|
|
139
|
+
maybeForked: boolean;
|
|
140
|
+
forkDetails: string;
|
|
141
|
+
isCommitLogForked?: boolean;
|
|
142
|
+
localCommitLog: string;
|
|
143
|
+
remoteCommitLog: string;
|
|
144
|
+
cursor: Cursor[];
|
|
279
145
|
}
|
|
280
146
|
|
|
281
|
-
export interface
|
|
282
|
-
|
|
147
|
+
export interface CreateDmOptions {
|
|
148
|
+
messageDisappearingSettings?: MessageDisappearingSettings;
|
|
283
149
|
}
|
|
284
150
|
|
|
285
|
-
export interface
|
|
286
|
-
|
|
151
|
+
export interface CreateGroupOptions {
|
|
152
|
+
permissions?: GroupPermissionsOptions;
|
|
153
|
+
groupName?: string;
|
|
154
|
+
groupImageUrlSquare?: string;
|
|
155
|
+
groupDescription?: string;
|
|
156
|
+
customPermissionPolicySet?: PermissionPolicySet;
|
|
157
|
+
messageDisappearingSettings?: MessageDisappearingSettings;
|
|
158
|
+
appData?: string;
|
|
287
159
|
}
|
|
288
160
|
|
|
289
|
-
export type UserPreferenceUpdate = { type: "ConsentUpdate"; consent: Consent } | { type: "HmacKeyUpdate"; key: number[] };
|
|
290
|
-
|
|
291
161
|
export interface Credential {
|
|
292
162
|
name?: string;
|
|
293
163
|
value: string;
|
|
294
164
|
expiresAtSeconds: bigint;
|
|
295
165
|
}
|
|
296
166
|
|
|
297
|
-
export interface
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
sendGroupMessages: bigint;
|
|
301
|
-
sendWelcomeMessages: bigint;
|
|
302
|
-
queryGroupMessages: bigint;
|
|
303
|
-
queryWelcomeMessages: bigint;
|
|
304
|
-
subscribeMessages: bigint;
|
|
305
|
-
subscribeWelcomes: bigint;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
export interface Identifier {
|
|
309
|
-
identifier: string;
|
|
310
|
-
identifierKind: IdentifierKind;
|
|
167
|
+
export interface Cursor {
|
|
168
|
+
originatorId: number;
|
|
169
|
+
sequenceId: bigint;
|
|
311
170
|
}
|
|
312
171
|
|
|
313
|
-
export interface
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
172
|
+
export interface DecodedMessage {
|
|
173
|
+
id: string;
|
|
174
|
+
sentAtNs: bigint;
|
|
175
|
+
kind: GroupMessageKind;
|
|
176
|
+
senderInstallationId: string;
|
|
177
|
+
senderInboxId: string;
|
|
178
|
+
contentType: ContentTypeId;
|
|
179
|
+
conversationId: string;
|
|
180
|
+
content: DecodedMessageContent;
|
|
181
|
+
fallback?: string;
|
|
182
|
+
reactions: DecodedMessage[];
|
|
183
|
+
deliveryStatus: DeliveryStatus;
|
|
184
|
+
numReplies: bigint;
|
|
185
|
+
expiresAtNs: bigint | undefined;
|
|
318
186
|
}
|
|
319
187
|
|
|
320
|
-
export interface
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
authenticatorData: Uint8Array;
|
|
324
|
-
clientDataJson: Uint8Array;
|
|
188
|
+
export interface DeletedMessage {
|
|
189
|
+
deletedBy: DeletedBy;
|
|
190
|
+
adminInboxId?: string;
|
|
325
191
|
}
|
|
326
192
|
|
|
327
|
-
export interface
|
|
328
|
-
|
|
329
|
-
|
|
193
|
+
export interface EncodedContent {
|
|
194
|
+
type?: ContentTypeId;
|
|
195
|
+
parameters: Record<string, string>;
|
|
196
|
+
fallback?: string;
|
|
197
|
+
compression?: number;
|
|
198
|
+
content: Uint8Array;
|
|
330
199
|
}
|
|
331
200
|
|
|
332
|
-
export interface
|
|
333
|
-
|
|
334
|
-
|
|
201
|
+
export interface EnrichedReply {
|
|
202
|
+
referenceId: string;
|
|
203
|
+
content: DecodedMessageContent;
|
|
204
|
+
inReplyTo?: DecodedMessage;
|
|
335
205
|
}
|
|
336
206
|
|
|
337
207
|
export interface GroupMember {
|
|
@@ -342,23 +212,31 @@ export interface GroupMember {
|
|
|
342
212
|
consentState: ConsentState;
|
|
343
213
|
}
|
|
344
214
|
|
|
345
|
-
export interface
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
forkDetails: string;
|
|
349
|
-
isCommitLogForked?: boolean;
|
|
350
|
-
localCommitLog: string;
|
|
351
|
-
remoteCommitLog: string;
|
|
352
|
-
cursor: Cursor[];
|
|
215
|
+
export interface GroupMetadata {
|
|
216
|
+
creatorInboxId: string;
|
|
217
|
+
conversationType: ConversationType;
|
|
353
218
|
}
|
|
354
219
|
|
|
355
|
-
export interface
|
|
356
|
-
|
|
357
|
-
|
|
220
|
+
export interface GroupPermissions {
|
|
221
|
+
policyType: GroupPermissionsOptions;
|
|
222
|
+
policySet: PermissionPolicySet;
|
|
358
223
|
}
|
|
359
224
|
|
|
360
|
-
export interface
|
|
361
|
-
|
|
225
|
+
export interface GroupSyncSummary {
|
|
226
|
+
numEligible: number;
|
|
227
|
+
numSynced: number;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export interface GroupUpdated {
|
|
231
|
+
initiatedByInboxId: string;
|
|
232
|
+
addedInboxes: Inbox[];
|
|
233
|
+
removedInboxes: Inbox[];
|
|
234
|
+
leftInboxes: Inbox[];
|
|
235
|
+
metadataFieldChanges: MetadataFieldChange[];
|
|
236
|
+
addedAdminInboxes: Inbox[];
|
|
237
|
+
removedAdminInboxes: Inbox[];
|
|
238
|
+
addedSuperAdminInboxes: Inbox[];
|
|
239
|
+
removedSuperAdminInboxes: Inbox[];
|
|
362
240
|
}
|
|
363
241
|
|
|
364
242
|
export interface HmacKey {
|
|
@@ -366,69 +244,63 @@ export interface HmacKey {
|
|
|
366
244
|
epoch: bigint;
|
|
367
245
|
}
|
|
368
246
|
|
|
369
|
-
export interface
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
groupImageUrlSquare?: string;
|
|
373
|
-
groupDescription?: string;
|
|
374
|
-
customPermissionPolicySet?: PermissionPolicySet;
|
|
375
|
-
messageDisappearingSettings?: MessageDisappearingSettings;
|
|
376
|
-
appData?: string;
|
|
247
|
+
export interface Identifier {
|
|
248
|
+
identifier: string;
|
|
249
|
+
identifierKind: IdentifierKind;
|
|
377
250
|
}
|
|
378
251
|
|
|
379
|
-
export interface
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
includeDuplicateDms?: boolean;
|
|
385
|
-
orderBy?: ListConversationsOrderBy;
|
|
386
|
-
limit?: bigint;
|
|
252
|
+
export interface IdentityStats {
|
|
253
|
+
publishIdentityUpdate: bigint;
|
|
254
|
+
getIdentityUpdatesV2: bigint;
|
|
255
|
+
getInboxIds: bigint;
|
|
256
|
+
verifySmartContractWalletSignature: bigint;
|
|
387
257
|
}
|
|
388
258
|
|
|
389
|
-
export interface
|
|
390
|
-
|
|
391
|
-
inNs: bigint;
|
|
259
|
+
export interface Inbox {
|
|
260
|
+
inboxId: string;
|
|
392
261
|
}
|
|
393
262
|
|
|
394
|
-
export interface
|
|
395
|
-
|
|
396
|
-
|
|
263
|
+
export interface InboxState {
|
|
264
|
+
inboxId: string;
|
|
265
|
+
recoveryIdentifier: Identifier;
|
|
266
|
+
installations: Installation[];
|
|
267
|
+
accountIdentifiers: Identifier[];
|
|
397
268
|
}
|
|
398
269
|
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
/**
|
|
404
|
-
* enable structured JSON logging to stdout. Useful for third-party log viewers
|
|
405
|
-
*/
|
|
406
|
-
structured?: boolean;
|
|
407
|
-
/**
|
|
408
|
-
* enable performance metrics for libxmtp in the `performance` tab
|
|
409
|
-
*/
|
|
410
|
-
performance?: boolean;
|
|
411
|
-
/**
|
|
412
|
-
* filter for logs
|
|
413
|
-
*/
|
|
414
|
-
level?: LogLevel;
|
|
270
|
+
export interface Installation {
|
|
271
|
+
bytes: Uint8Array;
|
|
272
|
+
id: string;
|
|
273
|
+
clientTimestampNs?: bigint;
|
|
415
274
|
}
|
|
416
275
|
|
|
417
|
-
export interface
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
removeAdminPolicy: PermissionPolicy;
|
|
422
|
-
updateGroupNamePolicy: PermissionPolicy;
|
|
423
|
-
updateGroupDescriptionPolicy: PermissionPolicy;
|
|
424
|
-
updateGroupImageUrlSquarePolicy: PermissionPolicy;
|
|
425
|
-
updateMessageDisappearingPolicy: PermissionPolicy;
|
|
426
|
-
updateAppDataPolicy: PermissionPolicy;
|
|
276
|
+
export interface Intent {
|
|
277
|
+
id: string;
|
|
278
|
+
actionId: string;
|
|
279
|
+
metadata?: Record<string, string | number | boolean | null>;
|
|
427
280
|
}
|
|
428
281
|
|
|
429
|
-
export interface
|
|
430
|
-
|
|
431
|
-
|
|
282
|
+
export interface KeyPackageStatus {
|
|
283
|
+
lifetime?: Lifetime;
|
|
284
|
+
validationError?: string;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export interface LeaveRequest {
|
|
288
|
+
authenticatedNote?: Uint8Array;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export interface Lifetime {
|
|
292
|
+
notBefore: bigint;
|
|
293
|
+
notAfter: bigint;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export interface ListConversationsOptions {
|
|
297
|
+
consentStates?: ConsentState[];
|
|
298
|
+
conversationType?: ConversationType;
|
|
299
|
+
createdAfterNs?: bigint;
|
|
300
|
+
createdBeforeNs?: bigint;
|
|
301
|
+
includeDuplicateDms?: boolean;
|
|
302
|
+
orderBy?: ListConversationsOrderBy;
|
|
303
|
+
limit?: bigint;
|
|
432
304
|
}
|
|
433
305
|
|
|
434
306
|
export interface ListMessagesOptions {
|
|
@@ -456,80 +328,68 @@ export interface Message {
|
|
|
456
328
|
deliveryStatus: DeliveryStatus;
|
|
457
329
|
}
|
|
458
330
|
|
|
459
|
-
export interface
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
content: Uint8Array;
|
|
331
|
+
export interface MessageDisappearingSettings {
|
|
332
|
+
fromNs: bigint;
|
|
333
|
+
inNs: bigint;
|
|
463
334
|
}
|
|
464
335
|
|
|
465
|
-
export
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
*/
|
|
470
|
-
export interface EncryptedAttachment {
|
|
471
|
-
/**
|
|
472
|
-
* The encrypted bytes to upload to the remote server
|
|
473
|
-
*/
|
|
474
|
-
payload: Uint8Array;
|
|
475
|
-
/**
|
|
476
|
-
* SHA-256 digest of the encrypted bytes (hex-encoded)
|
|
477
|
-
*/
|
|
478
|
-
contentDigest: string;
|
|
479
|
-
/**
|
|
480
|
-
* The 32-byte secret key needed for decryption
|
|
481
|
-
*/
|
|
482
|
-
secret: Uint8Array;
|
|
483
|
-
/**
|
|
484
|
-
* The 32-byte salt used in key derivation
|
|
485
|
-
*/
|
|
486
|
-
salt: Uint8Array;
|
|
487
|
-
/**
|
|
488
|
-
* The 12-byte nonce used in encryption
|
|
489
|
-
*/
|
|
490
|
-
nonce: Uint8Array;
|
|
491
|
-
/**
|
|
492
|
-
* The length of the encrypted content
|
|
493
|
-
*/
|
|
494
|
-
contentLength: number;
|
|
495
|
-
/**
|
|
496
|
-
* The filename of the attachment
|
|
497
|
-
*/
|
|
498
|
-
filename?: string;
|
|
336
|
+
export interface MetadataFieldChange {
|
|
337
|
+
fieldName: string;
|
|
338
|
+
oldValue?: string;
|
|
339
|
+
newValue?: string;
|
|
499
340
|
}
|
|
500
341
|
|
|
501
|
-
export interface
|
|
502
|
-
|
|
503
|
-
contentDigest: string;
|
|
504
|
-
secret: Uint8Array;
|
|
505
|
-
salt: Uint8Array;
|
|
506
|
-
nonce: Uint8Array;
|
|
507
|
-
scheme: string;
|
|
508
|
-
contentLength: number;
|
|
509
|
-
filename?: string;
|
|
342
|
+
export interface MultiRemoteAttachment {
|
|
343
|
+
attachments: RemoteAttachment[];
|
|
510
344
|
}
|
|
511
345
|
|
|
512
|
-
export interface
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
capabilities?: Record<string, string>;
|
|
346
|
+
export interface PasskeySignature {
|
|
347
|
+
publicKey: Uint8Array;
|
|
348
|
+
signature: Uint8Array;
|
|
349
|
+
authenticatorData: Uint8Array;
|
|
350
|
+
clientDataJson: Uint8Array;
|
|
518
351
|
}
|
|
519
352
|
|
|
520
|
-
export interface
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
353
|
+
export interface PermissionPolicySet {
|
|
354
|
+
addMemberPolicy: PermissionPolicy;
|
|
355
|
+
removeMemberPolicy: PermissionPolicy;
|
|
356
|
+
addAdminPolicy: PermissionPolicy;
|
|
357
|
+
removeAdminPolicy: PermissionPolicy;
|
|
358
|
+
updateGroupNamePolicy: PermissionPolicy;
|
|
359
|
+
updateGroupDescriptionPolicy: PermissionPolicy;
|
|
360
|
+
updateGroupImageUrlSquarePolicy: PermissionPolicy;
|
|
361
|
+
updateMessageDisappearingPolicy: PermissionPolicy;
|
|
362
|
+
updateAppDataPolicy: PermissionPolicy;
|
|
526
363
|
}
|
|
527
364
|
|
|
528
|
-
export interface
|
|
529
|
-
namespace?: string;
|
|
530
|
-
networkId: string;
|
|
365
|
+
export interface Reaction {
|
|
531
366
|
reference: string;
|
|
532
|
-
|
|
367
|
+
referenceInboxId: string;
|
|
368
|
+
action: ReactionAction;
|
|
369
|
+
content: string;
|
|
370
|
+
schema: ReactionSchema;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export interface RemoteAttachment {
|
|
374
|
+
url: string;
|
|
375
|
+
contentDigest: string;
|
|
376
|
+
secret: Uint8Array;
|
|
377
|
+
salt: Uint8Array;
|
|
378
|
+
nonce: Uint8Array;
|
|
379
|
+
scheme: string;
|
|
380
|
+
contentLength?: number;
|
|
381
|
+
filename?: string;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export interface Reply {
|
|
385
|
+
content: EncodedContent;
|
|
386
|
+
reference: string;
|
|
387
|
+
referenceInboxId?: string;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export interface SendMessageOpts {
|
|
391
|
+
shouldPush: boolean;
|
|
392
|
+
optimistic?: boolean;
|
|
533
393
|
}
|
|
534
394
|
|
|
535
395
|
export interface TransactionMetadata {
|
|
@@ -541,601 +401,999 @@ export interface TransactionMetadata {
|
|
|
541
401
|
toAddress: string;
|
|
542
402
|
}
|
|
543
403
|
|
|
404
|
+
export interface TransactionReference {
|
|
405
|
+
namespace?: string;
|
|
406
|
+
networkId: string;
|
|
407
|
+
reference: string;
|
|
408
|
+
metadata?: TransactionMetadata;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
export interface WalletCall {
|
|
412
|
+
to?: string;
|
|
413
|
+
data?: string;
|
|
414
|
+
value?: string;
|
|
415
|
+
gas?: string;
|
|
416
|
+
metadata?: Record<string, string>;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
export interface WalletSendCalls {
|
|
420
|
+
version: string;
|
|
421
|
+
chainId: string;
|
|
422
|
+
from: string;
|
|
423
|
+
calls: WalletCall[];
|
|
424
|
+
capabilities?: Record<string, string>;
|
|
425
|
+
}
|
|
426
|
+
|
|
544
427
|
export type DecodedMessageContent = { type: "actions"; content: Actions | undefined } | { type: "attachment"; content: Attachment } | { type: "custom"; content: EncodedContent } | { type: "groupUpdated"; content: GroupUpdated } | { type: "intent"; content: Intent | undefined } | { type: "leaveRequest"; content: LeaveRequest } | { type: "markdown"; content: string } | { type: "multiRemoteAttachment"; content: MultiRemoteAttachment } | { type: "reaction"; content: Reaction } | { type: "readReceipt"; content: ReadReceipt } | { type: "remoteAttachment"; content: RemoteAttachment } | { type: "reply"; content: EnrichedReply } | { type: "text"; content: string } | { type: "transactionReference"; content: TransactionReference } | { type: "walletSendCalls"; content: WalletSendCalls } | { type: "deletedMessage"; content: DeletedMessage };
|
|
545
428
|
|
|
546
|
-
export
|
|
547
|
-
|
|
429
|
+
export type ReadReceipt = Record<string, never>;
|
|
430
|
+
|
|
431
|
+
export type UserPreferenceUpdate = { type: "ConsentUpdate"; consent: Consent } | { type: "HmacKeyUpdate"; key: number[] };
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
export enum ActionStyle {
|
|
435
|
+
Primary = 0,
|
|
436
|
+
Secondary = 1,
|
|
437
|
+
Danger = 2,
|
|
548
438
|
}
|
|
549
439
|
|
|
550
|
-
export
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
salt: Uint8Array;
|
|
557
|
-
contentLength?: number;
|
|
558
|
-
filename?: string;
|
|
440
|
+
export class AuthHandle {
|
|
441
|
+
free(): void;
|
|
442
|
+
[Symbol.dispose](): void;
|
|
443
|
+
id(): number;
|
|
444
|
+
constructor();
|
|
445
|
+
set(credential: Credential): Promise<void>;
|
|
559
446
|
}
|
|
560
447
|
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
448
|
+
/**
|
|
449
|
+
* Selection of what elements to include in a backup
|
|
450
|
+
*/
|
|
451
|
+
export enum BackupElementSelectionOption {
|
|
452
|
+
Messages = 0,
|
|
453
|
+
Consent = 1,
|
|
565
454
|
}
|
|
566
455
|
|
|
567
|
-
export
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
456
|
+
export class Client {
|
|
457
|
+
private constructor();
|
|
458
|
+
free(): void;
|
|
459
|
+
[Symbol.dispose](): void;
|
|
460
|
+
addWalletSignatureRequest(newIdentifier: Identifier): Promise<SignatureRequestHandle>;
|
|
461
|
+
apiAggregateStatistics(): string;
|
|
462
|
+
apiIdentityStatistics(): IdentityStats;
|
|
463
|
+
apiStatistics(): ApiStats;
|
|
464
|
+
applySignatureRequest(signatureRequest: SignatureRequestHandle): Promise<void>;
|
|
465
|
+
/**
|
|
466
|
+
* Output booleans should be zipped with the index of input identifiers
|
|
467
|
+
*/
|
|
468
|
+
canMessage(accountIdentifiers: Identifier[]): Promise<any>;
|
|
469
|
+
changeRecoveryIdentifierSignatureRequest(newRecoveryIdentifier: Identifier): Promise<SignatureRequestHandle>;
|
|
470
|
+
clearAllStatistics(): void;
|
|
471
|
+
conversations(): Conversations;
|
|
472
|
+
createInboxSignatureRequest(): SignatureRequestHandle | undefined;
|
|
473
|
+
device_sync(): DeviceSync;
|
|
474
|
+
fetchLatestInboxUpdatesCount(refresh_from_network: boolean, inbox_ids: string[]): Promise<any>;
|
|
475
|
+
fetchOwnInboxUpdatesCount(refresh_from_network: boolean): Promise<number>;
|
|
476
|
+
findInboxIdByIdentity(identifier: Identifier): Promise<string | undefined>;
|
|
477
|
+
getConsentState(entityType: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
478
|
+
/**
|
|
479
|
+
*
|
|
480
|
+
* * Get key package statuses for a list of installation IDs.
|
|
481
|
+
* *
|
|
482
|
+
* * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
|
|
483
|
+
*
|
|
484
|
+
*/
|
|
485
|
+
getKeyPackageStatusesForInstallationIds(installationIds: string[]): Promise<any>;
|
|
486
|
+
getLatestInboxState(inboxId: string): Promise<InboxState>;
|
|
487
|
+
/**
|
|
488
|
+
*
|
|
489
|
+
* * Get the client's inbox state.
|
|
490
|
+
* *
|
|
491
|
+
* * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
|
|
492
|
+
* * Otherwise, the state will be read from the local database.
|
|
493
|
+
*
|
|
494
|
+
*/
|
|
495
|
+
inboxState(refreshFromNetwork: boolean): Promise<InboxState>;
|
|
496
|
+
inboxStateFromInboxIds(inboxIds: string[], refreshFromNetwork: boolean): Promise<InboxState[]>;
|
|
497
|
+
registerIdentity(signatureRequest: SignatureRequestHandle): Promise<void>;
|
|
498
|
+
revokeAllOtherInstallationsSignatureRequest(): Promise<SignatureRequestHandle | undefined>;
|
|
499
|
+
revokeInstallationsSignatureRequest(installationIds: Uint8Array[]): Promise<SignatureRequestHandle>;
|
|
500
|
+
revokeWalletSignatureRequest(identifier: Identifier): Promise<SignatureRequestHandle>;
|
|
501
|
+
setConsentStates(records: Consent[]): Promise<void>;
|
|
502
|
+
signWithInstallationKey(signatureText: string): Uint8Array;
|
|
503
|
+
syncPreferences(): Promise<GroupSyncSummary>;
|
|
504
|
+
verifySignedWithInstallationKey(signatureText: string, signatureBytes: Uint8Array): void;
|
|
505
|
+
readonly accountIdentifier: Identifier;
|
|
506
|
+
readonly appVersion: string;
|
|
507
|
+
readonly inboxId: string;
|
|
508
|
+
readonly installationId: string;
|
|
509
|
+
readonly installationIdBytes: Uint8Array;
|
|
510
|
+
readonly isRegistered: boolean;
|
|
511
|
+
readonly libxmtpVersion: string;
|
|
571
512
|
}
|
|
572
513
|
|
|
573
|
-
export
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
metadata?: Record<string, string | number | boolean | null>;
|
|
514
|
+
export enum ClientMode {
|
|
515
|
+
Default = 0,
|
|
516
|
+
Notification = 1,
|
|
577
517
|
}
|
|
578
518
|
|
|
579
|
-
export
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
actions: Action[];
|
|
583
|
-
expiresAtNs?: bigint;
|
|
519
|
+
export enum ConsentEntityType {
|
|
520
|
+
GroupId = 0,
|
|
521
|
+
InboxId = 1,
|
|
584
522
|
}
|
|
585
523
|
|
|
586
|
-
export
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
style?: ActionStyle;
|
|
591
|
-
expiresAtNs?: bigint;
|
|
524
|
+
export enum ConsentState {
|
|
525
|
+
Unknown = 0,
|
|
526
|
+
Allowed = 1,
|
|
527
|
+
Denied = 2,
|
|
592
528
|
}
|
|
593
529
|
|
|
594
|
-
export
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
530
|
+
export enum ContentType {
|
|
531
|
+
Actions = 0,
|
|
532
|
+
Attachment = 1,
|
|
533
|
+
Custom = 2,
|
|
534
|
+
GroupMembershipChange = 3,
|
|
535
|
+
GroupUpdated = 4,
|
|
536
|
+
Intent = 5,
|
|
537
|
+
LeaveRequest = 6,
|
|
538
|
+
Markdown = 7,
|
|
539
|
+
MultiRemoteAttachment = 8,
|
|
540
|
+
Reaction = 9,
|
|
541
|
+
ReadReceipt = 10,
|
|
542
|
+
RemoteAttachment = 11,
|
|
543
|
+
Reply = 12,
|
|
544
|
+
Text = 13,
|
|
545
|
+
TransactionReference = 14,
|
|
546
|
+
WalletSendCalls = 15,
|
|
600
547
|
}
|
|
601
548
|
|
|
602
|
-
export
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
549
|
+
export class Conversation {
|
|
550
|
+
private constructor();
|
|
551
|
+
free(): void;
|
|
552
|
+
[Symbol.dispose](): void;
|
|
553
|
+
addAdmin(inboxId: string): Promise<void>;
|
|
554
|
+
addMembers(inboxIds: string[]): Promise<void>;
|
|
555
|
+
addMembersByIdentity(accountIdentifiers: Identifier[]): Promise<void>;
|
|
556
|
+
addSuperAdmin(inboxId: string): Promise<void>;
|
|
557
|
+
addedByInboxId(): string;
|
|
558
|
+
adminList(): string[];
|
|
559
|
+
appData(): string;
|
|
560
|
+
consentState(): ConsentState;
|
|
561
|
+
countMessages(opts?: ListMessagesOptions | null): Promise<bigint>;
|
|
562
|
+
createdAtNs(): bigint;
|
|
563
|
+
dmPeerInboxId(): string;
|
|
564
|
+
findDuplicateDms(): Promise<Conversation[]>;
|
|
565
|
+
findEnrichedMessages(opts?: ListMessagesOptions | null): Promise<DecodedMessage[]>;
|
|
566
|
+
findMessages(opts?: ListMessagesOptions | null): Promise<Message[]>;
|
|
567
|
+
getDebugInfo(): Promise<any>;
|
|
568
|
+
getHmacKeys(): any;
|
|
569
|
+
getLastReadTimes(): Promise<any>;
|
|
570
|
+
groupDescription(): string;
|
|
571
|
+
groupImageUrlSquare(): string;
|
|
572
|
+
groupMetadata(): Promise<GroupMetadata>;
|
|
573
|
+
groupName(): string;
|
|
574
|
+
groupPermissions(): GroupPermissions;
|
|
575
|
+
id(): string;
|
|
576
|
+
isActive(): boolean;
|
|
577
|
+
isAdmin(inboxId: string): boolean;
|
|
578
|
+
isMessageDisappearingEnabled(): boolean;
|
|
579
|
+
isSuperAdmin(inboxId: string): boolean;
|
|
580
|
+
leaveGroup(): Promise<void>;
|
|
581
|
+
listMembers(): Promise<any>;
|
|
582
|
+
membershipState(): GroupMembershipState;
|
|
583
|
+
messageDisappearingSettings(): MessageDisappearingSettings | undefined;
|
|
584
|
+
pausedForVersion(): string | undefined;
|
|
585
|
+
/**
|
|
586
|
+
* Prepare a message for later publishing.
|
|
587
|
+
* Stores the message locally without publishing. Returns the message ID.
|
|
588
|
+
*/
|
|
589
|
+
prepareMessage(encodedContent: EncodedContent, shouldPush: boolean): string;
|
|
590
|
+
processStreamedGroupMessage(envelopeBytes: Uint8Array): Promise<Message[]>;
|
|
591
|
+
/**
|
|
592
|
+
* Publish all unpublished messages
|
|
593
|
+
*/
|
|
594
|
+
publishMessages(): Promise<void>;
|
|
595
|
+
/**
|
|
596
|
+
* Publish a previously prepared message by ID.
|
|
597
|
+
*/
|
|
598
|
+
publishStoredMessage(messageId: string): Promise<void>;
|
|
599
|
+
removeAdmin(inboxId: string): Promise<void>;
|
|
600
|
+
removeMembers(inboxIds: string[]): Promise<void>;
|
|
601
|
+
removeMembersByIdentity(accountIdentifiers: Identifier[]): Promise<void>;
|
|
602
|
+
removeMessageDisappearingSettings(): Promise<void>;
|
|
603
|
+
removeSuperAdmin(inboxId: string): Promise<void>;
|
|
604
|
+
send(encodedContent: EncodedContent, opts: SendMessageOpts): Promise<string>;
|
|
605
|
+
sendActions(actions: Actions, optimistic?: boolean | null): Promise<string>;
|
|
606
|
+
sendAttachment(attachment: Attachment, optimistic?: boolean | null): Promise<string>;
|
|
607
|
+
sendIntent(intent: Intent, optimistic?: boolean | null): Promise<string>;
|
|
608
|
+
sendMarkdown(markdown: string, optimistic?: boolean | null): Promise<string>;
|
|
609
|
+
sendMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment, optimistic?: boolean | null): Promise<string>;
|
|
610
|
+
sendReaction(reaction: Reaction, optimistic?: boolean | null): Promise<string>;
|
|
611
|
+
sendReadReceipt(optimistic?: boolean | null): Promise<string>;
|
|
612
|
+
sendRemoteAttachment(remoteAttachment: RemoteAttachment, optimistic?: boolean | null): Promise<string>;
|
|
613
|
+
sendReply(reply: Reply, optimistic?: boolean | null): Promise<string>;
|
|
614
|
+
sendText(text: string, optimistic?: boolean | null): Promise<string>;
|
|
615
|
+
sendTransactionReference(transactionReference: TransactionReference, optimistic?: boolean | null): Promise<string>;
|
|
616
|
+
sendWalletSendCalls(walletSendCalls: WalletSendCalls, optimistic?: boolean | null): Promise<string>;
|
|
617
|
+
stream(callback: any): StreamCloser;
|
|
618
|
+
superAdminList(): string[];
|
|
619
|
+
sync(): Promise<void>;
|
|
620
|
+
updateAppData(appData: string): Promise<void>;
|
|
621
|
+
updateConsentState(state: ConsentState): void;
|
|
622
|
+
updateGroupDescription(groupDescription: string): Promise<void>;
|
|
623
|
+
updateGroupImageUrlSquare(groupImageUrlSquare: string): Promise<void>;
|
|
624
|
+
updateGroupName(groupName: string): Promise<void>;
|
|
625
|
+
updateMessageDisappearingSettings(settings: MessageDisappearingSettings): Promise<void>;
|
|
626
|
+
updatePermissionPolicy(permissionUpdateType: PermissionUpdateType, permissionPolicyOption: PermissionPolicy, metadataField?: MetadataField | null): Promise<void>;
|
|
608
627
|
}
|
|
609
628
|
|
|
610
|
-
export
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
629
|
+
export class ConversationListItem {
|
|
630
|
+
free(): void;
|
|
631
|
+
[Symbol.dispose](): void;
|
|
632
|
+
constructor(conversation: Conversation, lastMessage?: Message | null, isCommitLogForked?: boolean | null);
|
|
633
|
+
conversation: Conversation;
|
|
634
|
+
get isCommitLogForked(): boolean | undefined;
|
|
635
|
+
set isCommitLogForked(value: boolean | null | undefined);
|
|
636
|
+
get lastMessage(): Message | undefined;
|
|
637
|
+
set lastMessage(value: Message | null | undefined);
|
|
615
638
|
}
|
|
616
639
|
|
|
617
|
-
export
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
senderInboxId: string;
|
|
623
|
-
contentType: ContentTypeId;
|
|
624
|
-
conversationId: string;
|
|
625
|
-
content: DecodedMessageContent;
|
|
626
|
-
fallback?: string;
|
|
627
|
-
reactions: DecodedMessage[];
|
|
628
|
-
deliveryStatus: DeliveryStatus;
|
|
629
|
-
numReplies: bigint;
|
|
630
|
-
expiresAtNs: bigint | undefined;
|
|
640
|
+
export enum ConversationType {
|
|
641
|
+
Dm = 0,
|
|
642
|
+
Group = 1,
|
|
643
|
+
Sync = 2,
|
|
644
|
+
Oneshot = 3,
|
|
631
645
|
}
|
|
632
646
|
|
|
633
|
-
export class
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
647
|
+
export class Conversations {
|
|
648
|
+
private constructor();
|
|
649
|
+
free(): void;
|
|
650
|
+
[Symbol.dispose](): void;
|
|
651
|
+
createDm(accountIdentifier: Identifier, options?: CreateDmOptions | null): Promise<Conversation>;
|
|
652
|
+
createDmByInboxId(inboxId: string, options?: CreateDmOptions | null): Promise<Conversation>;
|
|
653
|
+
createGroup(accountIdentifiers: Identifier[], options?: CreateGroupOptions | null): Promise<Conversation>;
|
|
654
|
+
createGroupByInboxIds(inboxIds: string[], options?: CreateGroupOptions | null): Promise<Conversation>;
|
|
655
|
+
createGroupOptimistic(options?: CreateGroupOptions | null): Conversation;
|
|
656
|
+
deleteMessageById(messageId: string): number;
|
|
657
|
+
findDmByTargetInboxId(targetInboxId: string): Conversation;
|
|
658
|
+
findEnrichedMessageById(messageId: string): Promise<DecodedMessage>;
|
|
659
|
+
findGroupById(groupId: string): Conversation;
|
|
660
|
+
findMessageById(messageId: string): Message;
|
|
661
|
+
getHmacKeys(): any;
|
|
662
|
+
list(opts?: ListConversationsOptions | null): Array<any>;
|
|
663
|
+
stream(callback: any, conversationType?: ConversationType | null): StreamCloser;
|
|
664
|
+
streamAllMessages(callback: any, conversationType?: ConversationType | null, consentStates?: any[] | null): StreamCloser;
|
|
665
|
+
streamConsent(callback: any): StreamCloser;
|
|
666
|
+
/**
|
|
667
|
+
* Returns a 'ReadableStream' of Conversations
|
|
668
|
+
*/
|
|
669
|
+
streamLocal(conversationType?: ConversationType | null): Promise<ReadableStream>;
|
|
670
|
+
streamMessageDeletions(callback: any): StreamCloser;
|
|
671
|
+
streamPreferences(callback: any): StreamCloser;
|
|
672
|
+
sync(): Promise<void>;
|
|
673
|
+
syncAllConversations(consentStates?: any[] | null): Promise<GroupSyncSummary>;
|
|
639
674
|
}
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
/**
|
|
645
|
-
*
|
|
646
|
-
* * Get the client's inbox state.
|
|
647
|
-
* *
|
|
648
|
-
* * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
|
|
649
|
-
* * Otherwise, the state will be read from the local database.
|
|
650
|
-
*
|
|
651
|
-
*/
|
|
652
|
-
inboxState(refreshFromNetwork: boolean): Promise<InboxState>;
|
|
653
|
-
getLatestInboxState(inboxId: string): Promise<InboxState>;
|
|
654
|
-
/**
|
|
655
|
-
*
|
|
656
|
-
* * Get key package statuses for a list of installation IDs.
|
|
657
|
-
* *
|
|
658
|
-
* * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
|
|
659
|
-
*
|
|
660
|
-
*/
|
|
661
|
-
getKeyPackageStatusesForInstallationIds(installationIds: string[]): Promise<any>;
|
|
662
|
-
getConsentState(entityType: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
663
|
-
setConsentStates(records: Consent[]): Promise<void>;
|
|
664
|
-
registerIdentity(signatureRequest: SignatureRequestHandle): Promise<void>;
|
|
665
|
-
applySignatureRequest(signatureRequest: SignatureRequestHandle): Promise<void>;
|
|
666
|
-
signWithInstallationKey(signatureText: string): Uint8Array;
|
|
667
|
-
createInboxSignatureRequest(): SignatureRequestHandle | undefined;
|
|
668
|
-
addWalletSignatureRequest(newIdentifier: Identifier): Promise<SignatureRequestHandle>;
|
|
669
|
-
revokeWalletSignatureRequest(identifier: Identifier): Promise<SignatureRequestHandle>;
|
|
670
|
-
verifySignedWithInstallationKey(signatureText: string, signatureBytes: Uint8Array): void;
|
|
671
|
-
revokeInstallationsSignatureRequest(installationIds: Uint8Array[]): Promise<SignatureRequestHandle>;
|
|
672
|
-
changeRecoveryIdentifierSignatureRequest(newRecoveryIdentifier: Identifier): Promise<SignatureRequestHandle>;
|
|
673
|
-
revokeAllOtherInstallationsSignatureRequest(): Promise<SignatureRequestHandle | undefined>;
|
|
674
|
-
/**
|
|
675
|
-
* Output booleans should be zipped with the index of input identifiers
|
|
676
|
-
*/
|
|
677
|
-
canMessage(accountIdentifiers: Identifier[]): Promise<any>;
|
|
678
|
-
conversations(): Conversations;
|
|
679
|
-
apiStatistics(): ApiStats;
|
|
680
|
-
syncPreferences(): Promise<GroupSyncSummary>;
|
|
681
|
-
sendSyncRequest(): Promise<void>;
|
|
682
|
-
clearAllStatistics(): void;
|
|
683
|
-
apiIdentityStatistics(): IdentityStats;
|
|
684
|
-
apiAggregateStatistics(): string;
|
|
685
|
-
inboxStateFromInboxIds(inboxIds: string[], refreshFromNetwork: boolean): Promise<InboxState[]>;
|
|
686
|
-
findInboxIdByIdentifier(identifier: Identifier): Promise<string | undefined>;
|
|
687
|
-
readonly appVersion: string;
|
|
688
|
-
readonly isRegistered: boolean;
|
|
689
|
-
readonly installationId: string;
|
|
690
|
-
readonly libxmtpVersion: string;
|
|
691
|
-
readonly accountIdentifier: Identifier;
|
|
692
|
-
readonly installationIdBytes: Uint8Array;
|
|
693
|
-
readonly inboxId: string;
|
|
675
|
+
|
|
676
|
+
export enum DeletedBy {
|
|
677
|
+
Sender = 0,
|
|
678
|
+
Admin = 1,
|
|
694
679
|
}
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
updateConsentState(state: ConsentState): void;
|
|
701
|
-
adminList(): string[];
|
|
702
|
-
getDebugInfo(): Promise<any>;
|
|
703
|
-
groupName(): string;
|
|
704
|
-
sendReply(reply: Reply, optimistic?: boolean | null): Promise<string>;
|
|
705
|
-
addMembers(accountIdentifiers: Identifier[]): Promise<void>;
|
|
706
|
-
leaveGroup(): Promise<void>;
|
|
707
|
-
sendIntent(intent: Intent, optimistic?: boolean | null): Promise<string>;
|
|
708
|
-
listMembers(): Promise<any>;
|
|
709
|
-
removeAdmin(inboxId: string): Promise<void>;
|
|
710
|
-
sendActions(actions: Actions, optimistic?: boolean | null): Promise<string>;
|
|
711
|
-
createdAtNs(): bigint;
|
|
712
|
-
findMessages(opts?: ListMessagesOptions | null): Promise<Message[]>;
|
|
713
|
-
getHmacKeys(): any;
|
|
714
|
-
sendMarkdown(markdown: string, optimistic?: boolean | null): Promise<string>;
|
|
715
|
-
sendReaction(reaction: Reaction, optimistic?: boolean | null): Promise<string>;
|
|
716
|
-
countMessages(opts?: ListMessagesOptions | null): Promise<bigint>;
|
|
717
|
-
groupMetadata(): Promise<GroupMetadata>;
|
|
718
|
-
isSuperAdmin(inboxId: string): boolean;
|
|
719
|
-
removeMembers(accountIdentifiers: Identifier[]): Promise<void>;
|
|
720
|
-
addSuperAdmin(inboxId: string): Promise<void>;
|
|
721
|
-
/**
|
|
722
|
-
* Prepare a message for later publishing.
|
|
723
|
-
* Stores the message locally without publishing. Returns the message ID.
|
|
724
|
-
*/
|
|
725
|
-
prepareMessage(encodedContent: EncodedContent, shouldPush: boolean): string;
|
|
726
|
-
sendAttachment(attachment: Attachment, optimistic?: boolean | null): Promise<string>;
|
|
727
|
-
updateAppData(appData: string): Promise<void>;
|
|
728
|
-
dmPeerInboxId(): string;
|
|
729
|
-
membershipState(): GroupMembershipState;
|
|
730
|
-
/**
|
|
731
|
-
* Publish all unpublished messages
|
|
732
|
-
*/
|
|
733
|
-
publishMessages(): Promise<void>;
|
|
734
|
-
superAdminList(): string[];
|
|
735
|
-
addedByInboxId(): string;
|
|
736
|
-
groupDescription(): string;
|
|
737
|
-
groupPermissions(): GroupPermissions;
|
|
738
|
-
sendReadReceipt(optimistic?: boolean | null): Promise<string>;
|
|
739
|
-
updateGroupName(groupName: string): Promise<void>;
|
|
740
|
-
findDuplicateDms(): Promise<Conversation[]>;
|
|
741
|
-
pausedForVersion(): string | undefined;
|
|
742
|
-
removeSuperAdmin(inboxId: string): Promise<void>;
|
|
743
|
-
getLastReadTimes(): Promise<any>;
|
|
744
|
-
findEnrichedMessages(opts?: ListMessagesOptions | null): Promise<DecodedMessage[]>;
|
|
745
|
-
groupImageUrlSquare(): string;
|
|
746
|
-
/**
|
|
747
|
-
* Publish a previously prepared message by ID.
|
|
748
|
-
*/
|
|
749
|
-
publishStoredMessage(messageId: string): Promise<void>;
|
|
750
|
-
sendRemoteAttachment(remoteAttachment: RemoteAttachment, optimistic?: boolean | null): Promise<string>;
|
|
751
|
-
sendWalletSendCalls(walletSendCalls: WalletSendCalls, optimistic?: boolean | null): Promise<string>;
|
|
752
|
-
addMembersByInboxId(inboxIds: string[]): Promise<void>;
|
|
753
|
-
updateGroupDescription(groupDescription: string): Promise<void>;
|
|
754
|
-
updatePermissionPolicy(permissionUpdateType: PermissionUpdateType, permissionPolicyOption: PermissionPolicy, metadataField?: MetadataField | null): Promise<void>;
|
|
755
|
-
removeMembersByInboxId(inboxIds: string[]): Promise<void>;
|
|
756
|
-
sendTransactionReference(transactionReference: TransactionReference, optimistic?: boolean | null): Promise<string>;
|
|
757
|
-
sendMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment, optimistic?: boolean | null): Promise<string>;
|
|
758
|
-
messageDisappearingSettings(): MessageDisappearingSettings | undefined;
|
|
759
|
-
updateGroupImageUrlSquare(groupImageUrlSquare: string): Promise<void>;
|
|
760
|
-
id(): string;
|
|
761
|
-
processStreamedGroupMessage(envelopeBytes: Uint8Array): Promise<Message[]>;
|
|
762
|
-
isMessageDisappearingEnabled(): boolean;
|
|
763
|
-
removeMessageDisappearingSettings(): Promise<void>;
|
|
764
|
-
updateMessageDisappearingSettings(settings: MessageDisappearingSettings): Promise<void>;
|
|
765
|
-
send(encodedContent: EncodedContent, opts: SendMessageOpts): Promise<string>;
|
|
766
|
-
sync(): Promise<void>;
|
|
767
|
-
stream(callback: any): StreamCloser;
|
|
768
|
-
appData(): string;
|
|
769
|
-
isAdmin(inboxId: string): boolean;
|
|
770
|
-
addAdmin(inboxId: string): Promise<void>;
|
|
771
|
-
isActive(): boolean;
|
|
772
|
-
sendText(text: string, optimistic?: boolean | null): Promise<string>;
|
|
680
|
+
|
|
681
|
+
export enum DeliveryStatus {
|
|
682
|
+
Unpublished = 0,
|
|
683
|
+
Published = 1,
|
|
684
|
+
Failed = 2,
|
|
773
685
|
}
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
686
|
+
|
|
687
|
+
export class DeviceSync {
|
|
688
|
+
private constructor();
|
|
689
|
+
free(): void;
|
|
690
|
+
[Symbol.dispose](): void;
|
|
691
|
+
/**
|
|
692
|
+
* Load the metadata for an archive to see what it contains.
|
|
693
|
+
*/
|
|
694
|
+
archiveMetadata(data: Uint8Array, key: Uint8Array): Promise<ArchiveMetadata>;
|
|
695
|
+
/**
|
|
696
|
+
* Export archive data to bytes for later restoration.
|
|
697
|
+
*/
|
|
698
|
+
createArchive(opts: ArchiveOptions, key: Uint8Array): Promise<Uint8Array>;
|
|
699
|
+
/**
|
|
700
|
+
* Import an archive from bytes.
|
|
701
|
+
*/
|
|
702
|
+
importArchive(data: Uint8Array, key: Uint8Array): Promise<void>;
|
|
703
|
+
/**
|
|
704
|
+
* List the archives available for import in the sync group.
|
|
705
|
+
* You may need to manually sync the sync group before calling
|
|
706
|
+
* this function to see recently uploaded archives.
|
|
707
|
+
*/
|
|
708
|
+
listAvailableArchives(daysCutoff: bigint): AvailableArchiveInfo[];
|
|
709
|
+
/**
|
|
710
|
+
* Manually process a sync archive that matches the pin given.
|
|
711
|
+
* If no pin is given, then it will process the last archive sent.
|
|
712
|
+
*/
|
|
713
|
+
processSyncArchive(archive_pin?: string | null): Promise<void>;
|
|
714
|
+
/**
|
|
715
|
+
* Manually send a sync archive to the sync group.
|
|
716
|
+
* The pin will be later used for reference when importing.
|
|
717
|
+
*/
|
|
718
|
+
sendSyncArchive(options: ArchiveOptions, serverUrl: string, pin: string): Promise<void>;
|
|
719
|
+
/**
|
|
720
|
+
* Manually trigger a device sync request to sync records from another active device on this account.
|
|
721
|
+
*/
|
|
722
|
+
sendSyncRequest(options: ArchiveOptions, serverUrl: string): Promise<void>;
|
|
723
|
+
/**
|
|
724
|
+
* Manually sync all device sync groups.
|
|
725
|
+
*/
|
|
726
|
+
syncAllDeviceSyncGroups(): Promise<GroupSyncSummary>;
|
|
783
727
|
}
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
createGroup(accountIdentifiers: Identifier[], options?: CreateGroupOptions | null): Promise<Conversation>;
|
|
789
|
-
getHmacKeys(): any;
|
|
790
|
-
streamConsent(callback: any): StreamCloser;
|
|
791
|
-
findGroupById(groupId: string): Conversation;
|
|
792
|
-
createDm(accountIdentifier: Identifier, options?: CreateDmOptions | null): Promise<Conversation>;
|
|
793
|
-
findMessageById(messageId: string): Message;
|
|
794
|
-
streamPreferences(callback: any): StreamCloser;
|
|
795
|
-
streamAllMessages(callback: any, conversationType?: ConversationType | null, consentStates?: any[] | null): StreamCloser;
|
|
796
|
-
deleteMessageById(messageId: string): number;
|
|
797
|
-
syncAllConversations(consentStates?: any[] | null): Promise<GroupSyncSummary>;
|
|
798
|
-
createGroupOptimistic(options?: CreateGroupOptions | null): Conversation;
|
|
799
|
-
streamMessageDeletions(callback: any): StreamCloser;
|
|
800
|
-
createGroupByInboxIds(inboxIds: string[], options?: CreateGroupOptions | null): Promise<Conversation>;
|
|
801
|
-
findDmByTargetInboxId(targetInboxId: string): Conversation;
|
|
802
|
-
/**
|
|
803
|
-
* Returns a 'ReadableStream' of Conversations
|
|
804
|
-
*/
|
|
805
|
-
streamLocal(conversationType?: ConversationType | null): Promise<ReadableStream>;
|
|
806
|
-
findEnrichedMessageById(messageId: string): Promise<DecodedMessage>;
|
|
807
|
-
createDmByInboxId(inboxId: string, options?: CreateDmOptions | null): Promise<Conversation>;
|
|
808
|
-
list(opts?: ListConversationsOptions | null): Array<any>;
|
|
809
|
-
sync(): Promise<void>;
|
|
810
|
-
stream(callback: any, conversationType?: ConversationType | null): StreamCloser;
|
|
811
|
-
}
|
|
812
|
-
export class DeletedMessage {
|
|
813
|
-
private constructor();
|
|
814
|
-
free(): void;
|
|
815
|
-
[Symbol.dispose](): void;
|
|
816
|
-
deletedBy: DeletedBy;
|
|
817
|
-
get adminInboxId(): string | undefined;
|
|
818
|
-
set adminInboxId(value: string | null | undefined);
|
|
728
|
+
|
|
729
|
+
export enum DeviceSyncMode {
|
|
730
|
+
Enabled = 0,
|
|
731
|
+
Disabled = 1,
|
|
819
732
|
}
|
|
733
|
+
|
|
734
|
+
export enum GroupMembershipState {
|
|
735
|
+
Allowed = 0,
|
|
736
|
+
Rejected = 1,
|
|
737
|
+
Pending = 2,
|
|
738
|
+
Restored = 3,
|
|
739
|
+
PendingRemove = 4,
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
export enum GroupMessageKind {
|
|
743
|
+
Application = 0,
|
|
744
|
+
MembershipChange = 1,
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
export enum GroupPermissionsOptions {
|
|
748
|
+
Default = 0,
|
|
749
|
+
AdminOnly = 1,
|
|
750
|
+
CustomPolicy = 2,
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
export enum IdentifierKind {
|
|
754
|
+
Ethereum = 0,
|
|
755
|
+
Passkey = 1,
|
|
756
|
+
}
|
|
757
|
+
|
|
820
758
|
export class IntoUnderlyingByteSource {
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
759
|
+
private constructor();
|
|
760
|
+
free(): void;
|
|
761
|
+
[Symbol.dispose](): void;
|
|
762
|
+
cancel(): void;
|
|
763
|
+
pull(controller: ReadableByteStreamController): Promise<any>;
|
|
764
|
+
start(controller: ReadableByteStreamController): void;
|
|
765
|
+
readonly autoAllocateChunkSize: number;
|
|
766
|
+
readonly type: ReadableStreamType;
|
|
829
767
|
}
|
|
768
|
+
|
|
830
769
|
export class IntoUnderlyingSink {
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
770
|
+
private constructor();
|
|
771
|
+
free(): void;
|
|
772
|
+
[Symbol.dispose](): void;
|
|
773
|
+
abort(reason: any): Promise<any>;
|
|
774
|
+
close(): Promise<any>;
|
|
775
|
+
write(chunk: any): Promise<any>;
|
|
837
776
|
}
|
|
777
|
+
|
|
838
778
|
export class IntoUnderlyingSource {
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
779
|
+
private constructor();
|
|
780
|
+
free(): void;
|
|
781
|
+
[Symbol.dispose](): void;
|
|
782
|
+
cancel(): void;
|
|
783
|
+
pull(controller: ReadableStreamDefaultController): Promise<any>;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
export enum ListConversationsOrderBy {
|
|
787
|
+
CreatedAt = 0,
|
|
788
|
+
LastActivity = 1,
|
|
844
789
|
}
|
|
790
|
+
|
|
791
|
+
export enum LogLevel {
|
|
792
|
+
Off = 0,
|
|
793
|
+
Error = 1,
|
|
794
|
+
Warn = 2,
|
|
795
|
+
Info = 3,
|
|
796
|
+
Debug = 4,
|
|
797
|
+
Trace = 5,
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
export enum MessageSortBy {
|
|
801
|
+
SentAt = 0,
|
|
802
|
+
InsertedAt = 1,
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
export enum MetadataField {
|
|
806
|
+
AppData = 0,
|
|
807
|
+
Description = 1,
|
|
808
|
+
GroupName = 2,
|
|
809
|
+
GroupImageUrlSquare = 3,
|
|
810
|
+
MessageExpirationFromNs = 4,
|
|
811
|
+
MessageExpirationInNs = 5,
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
export enum PermissionLevel {
|
|
815
|
+
Member = 0,
|
|
816
|
+
Admin = 1,
|
|
817
|
+
SuperAdmin = 2,
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
export enum PermissionPolicy {
|
|
821
|
+
Allow = 0,
|
|
822
|
+
Deny = 1,
|
|
823
|
+
Admin = 2,
|
|
824
|
+
SuperAdmin = 3,
|
|
825
|
+
DoesNotExist = 4,
|
|
826
|
+
Other = 5,
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
export enum PermissionUpdateType {
|
|
830
|
+
AddMember = 0,
|
|
831
|
+
RemoveMember = 1,
|
|
832
|
+
AddAdmin = 2,
|
|
833
|
+
RemoveAdmin = 3,
|
|
834
|
+
UpdateMetadata = 4,
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
export enum ReactionAction {
|
|
838
|
+
Unknown = 0,
|
|
839
|
+
Added = 1,
|
|
840
|
+
Removed = 2,
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
export enum ReactionSchema {
|
|
844
|
+
Unknown = 0,
|
|
845
|
+
Unicode = 1,
|
|
846
|
+
Shortcode = 2,
|
|
847
|
+
Custom = 3,
|
|
848
|
+
}
|
|
849
|
+
|
|
845
850
|
export class SignatureRequestHandle {
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
851
|
+
private constructor();
|
|
852
|
+
free(): void;
|
|
853
|
+
[Symbol.dispose](): void;
|
|
854
|
+
addEcdsaSignature(signatureBytes: Uint8Array): Promise<void>;
|
|
855
|
+
addPasskeySignature(signature: PasskeySignature): Promise<void>;
|
|
856
|
+
addScwSignature(accountIdentifier: Identifier, signatureBytes: Uint8Array, chainId: bigint, blockNumber?: bigint | null): Promise<void>;
|
|
857
|
+
signatureText(): Promise<string>;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
export enum SortDirection {
|
|
861
|
+
Ascending = 0,
|
|
862
|
+
Descending = 1,
|
|
853
863
|
}
|
|
864
|
+
|
|
854
865
|
export class StreamCloser {
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
866
|
+
private constructor();
|
|
867
|
+
free(): void;
|
|
868
|
+
[Symbol.dispose](): void;
|
|
869
|
+
/**
|
|
870
|
+
* Signal the stream to end
|
|
871
|
+
* Does not wait for the stream to end.
|
|
872
|
+
*/
|
|
873
|
+
end(): void;
|
|
874
|
+
/**
|
|
875
|
+
* End the stream and `await` for it to shutdown
|
|
876
|
+
* Returns the `Result` of the task.
|
|
877
|
+
* End the stream and asynchronously wait for it to shutdown
|
|
878
|
+
*/
|
|
879
|
+
endAndWait(): Promise<void>;
|
|
880
|
+
/**
|
|
881
|
+
* Checks if this stream is closed
|
|
882
|
+
*/
|
|
883
|
+
isClosed(): boolean;
|
|
884
|
+
waitForReady(): Promise<void>;
|
|
874
885
|
}
|
|
875
886
|
|
|
887
|
+
/**
|
|
888
|
+
* Runtime test harness support instantiated in JS.
|
|
889
|
+
*
|
|
890
|
+
* The node.js entry script instantiates a `Context` here which is used to
|
|
891
|
+
* drive test execution.
|
|
892
|
+
*/
|
|
893
|
+
export class WasmBindgenTestContext {
|
|
894
|
+
free(): void;
|
|
895
|
+
[Symbol.dispose](): void;
|
|
896
|
+
/**
|
|
897
|
+
* Handle filter argument.
|
|
898
|
+
*/
|
|
899
|
+
filtered_count(filtered: number): void;
|
|
900
|
+
/**
|
|
901
|
+
* Handle `--include-ignored` flag.
|
|
902
|
+
*/
|
|
903
|
+
include_ignored(include_ignored: boolean): void;
|
|
904
|
+
/**
|
|
905
|
+
* Creates a new context ready to run tests.
|
|
906
|
+
*
|
|
907
|
+
* A `Context` is the main structure through which test execution is
|
|
908
|
+
* coordinated, and this will collect output and results for all executed
|
|
909
|
+
* tests.
|
|
910
|
+
*/
|
|
911
|
+
constructor(is_bench: boolean);
|
|
912
|
+
/**
|
|
913
|
+
* Executes a list of tests, returning a promise representing their
|
|
914
|
+
* eventual completion.
|
|
915
|
+
*
|
|
916
|
+
* This is the main entry point for executing tests. All the tests passed
|
|
917
|
+
* in are the JS `Function` object that was plucked off the
|
|
918
|
+
* `WebAssembly.Instance` exports list.
|
|
919
|
+
*
|
|
920
|
+
* The promise returned resolves to either `true` if all tests passed or
|
|
921
|
+
* `false` if at least one test failed.
|
|
922
|
+
*/
|
|
923
|
+
run(tests: any[]): Promise<any>;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* Used to read benchmark data, and then the runner stores it on the local disk.
|
|
928
|
+
*/
|
|
929
|
+
export function __wbgbench_dump(): Uint8Array | undefined;
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* Used to write previous benchmark data before the benchmark, for later comparison.
|
|
933
|
+
*/
|
|
934
|
+
export function __wbgbench_import(baseline: Uint8Array): void;
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Handler for `console.debug` invocations. See above.
|
|
938
|
+
*/
|
|
939
|
+
export function __wbgtest_console_debug(args: Array<any>): void;
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* Handler for `console.error` invocations. See above.
|
|
943
|
+
*/
|
|
944
|
+
export function __wbgtest_console_error(args: Array<any>): void;
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Handler for `console.info` invocations. See above.
|
|
948
|
+
*/
|
|
949
|
+
export function __wbgtest_console_info(args: Array<any>): void;
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* Handler for `console.log` invocations.
|
|
953
|
+
*
|
|
954
|
+
* If a test is currently running it takes the `args` array and stringifies
|
|
955
|
+
* it and appends it to the current output of the test. Otherwise it passes
|
|
956
|
+
* the arguments to the original `console.log` function, psased as
|
|
957
|
+
* `original`.
|
|
958
|
+
*/
|
|
959
|
+
export function __wbgtest_console_log(args: Array<any>): void;
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* Handler for `console.warn` invocations. See above.
|
|
963
|
+
*/
|
|
964
|
+
export function __wbgtest_console_warn(args: Array<any>): void;
|
|
965
|
+
|
|
966
|
+
export function __wbgtest_cov_dump(): Uint8Array | undefined;
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* Path to use for coverage data.
|
|
970
|
+
*/
|
|
971
|
+
export function __wbgtest_coverage_path(env: string | null | undefined, pid: number, temp_dir: string, module_signature: bigint): string;
|
|
972
|
+
|
|
973
|
+
export function __wbgtest_module_signature(): bigint | undefined;
|
|
974
|
+
|
|
975
|
+
export function applySignatureRequest(host: string, gatewayHost: string | null | undefined, signatureRequest: SignatureRequestHandle): Promise<void>;
|
|
976
|
+
|
|
977
|
+
export function contentTypeActions(): ContentTypeId;
|
|
978
|
+
|
|
979
|
+
export function contentTypeAttachment(): ContentTypeId;
|
|
980
|
+
|
|
981
|
+
export function contentTypeGroupUpdated(): ContentTypeId;
|
|
982
|
+
|
|
983
|
+
export function contentTypeIntent(): ContentTypeId;
|
|
984
|
+
|
|
985
|
+
export function contentTypeLeaveRequest(): ContentTypeId;
|
|
986
|
+
|
|
987
|
+
export function contentTypeMarkdown(): ContentTypeId;
|
|
988
|
+
|
|
989
|
+
export function contentTypeMultiRemoteAttachment(): ContentTypeId;
|
|
990
|
+
|
|
991
|
+
export function contentTypeReaction(): ContentTypeId;
|
|
992
|
+
|
|
993
|
+
export function contentTypeReadReceipt(): ContentTypeId;
|
|
994
|
+
|
|
995
|
+
export function contentTypeRemoteAttachment(): ContentTypeId;
|
|
996
|
+
|
|
997
|
+
export function contentTypeReply(): ContentTypeId;
|
|
998
|
+
|
|
999
|
+
export function contentTypeText(): ContentTypeId;
|
|
1000
|
+
|
|
1001
|
+
export function contentTypeTransactionReference(): ContentTypeId;
|
|
1002
|
+
|
|
1003
|
+
export function contentTypeWalletSendCalls(): ContentTypeId;
|
|
1004
|
+
|
|
1005
|
+
export function createClient(host: string, inboxId: string, accountIdentifier: Identifier, dbPath?: string | null, encryptionKey?: Uint8Array | null, deviceSyncMode?: DeviceSyncMode | null, logOptions?: LogOptions | null, allowOffline?: boolean | null, appVersion?: string | null, gatewayHost?: string | null, nonce?: bigint | null, authCallback?: any | null, authHandle?: AuthHandle | null, clientMode?: ClientMode | null): Promise<Client>;
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* Decrypts an encrypted payload from a remote attachment.
|
|
1009
|
+
*/
|
|
1010
|
+
export function decryptAttachment(encryptedBytes: Uint8Array, remoteAttachment: RemoteAttachment): Attachment;
|
|
1011
|
+
|
|
1012
|
+
export function encodeActions(actions: Actions): EncodedContent;
|
|
1013
|
+
|
|
1014
|
+
export function encodeAttachment(attachment: Attachment): EncodedContent;
|
|
1015
|
+
|
|
1016
|
+
export function encodeIntent(intent: Intent): EncodedContent;
|
|
1017
|
+
|
|
1018
|
+
export function encodeMarkdown(text: string): EncodedContent;
|
|
1019
|
+
|
|
1020
|
+
export function encodeMultiRemoteAttachment(multi_remote_attachment: MultiRemoteAttachment): EncodedContent;
|
|
1021
|
+
|
|
1022
|
+
export function encodeReaction(reaction: Reaction): EncodedContent;
|
|
1023
|
+
|
|
1024
|
+
export function encodeReadReceipt(read_receipt: ReadReceipt): EncodedContent;
|
|
1025
|
+
|
|
1026
|
+
export function encodeRemoteAttachment(remote_attachment: RemoteAttachment): EncodedContent;
|
|
1027
|
+
|
|
1028
|
+
export function encodeText(text: string): EncodedContent;
|
|
1029
|
+
|
|
1030
|
+
export function encodeTransactionReference(transaction_reference: TransactionReference): EncodedContent;
|
|
1031
|
+
|
|
1032
|
+
export function encodeWalletSendCalls(wallet_send_calls: WalletSendCalls): EncodedContent;
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* Encrypts an attachment for storage as a remote attachment.
|
|
1036
|
+
*/
|
|
1037
|
+
export function encryptAttachment(attachment: Attachment): EncryptedAttachment;
|
|
1038
|
+
|
|
1039
|
+
export function generateInboxId(accountIdentifier: Identifier, nonce?: bigint | null): string;
|
|
1040
|
+
|
|
1041
|
+
export function getInboxIdForIdentifier(host: string, gatewayHost: string | null | undefined, isSecure: boolean, accountIdentifier: Identifier): Promise<string | undefined>;
|
|
1042
|
+
|
|
1043
|
+
export function inboxStateFromInboxIds(host: string, gatewayHost: string | null | undefined, inboxIds: string[]): Promise<InboxState[]>;
|
|
1044
|
+
|
|
1045
|
+
export function metadataFieldName(field: MetadataField): string;
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* Delete all database files from OPFS.
|
|
1049
|
+
* Note: All databases must be closed before calling this function.
|
|
1050
|
+
*/
|
|
1051
|
+
export function opfsClearAll(): Promise<void>;
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* Delete a specific database file from OPFS.
|
|
1055
|
+
* Returns true if the file was deleted, false if it didn't exist.
|
|
1056
|
+
* Note: The database must be closed before calling this function.
|
|
1057
|
+
*/
|
|
1058
|
+
export function opfsDeleteFile(filename: string): Promise<boolean>;
|
|
1059
|
+
|
|
1060
|
+
/**
|
|
1061
|
+
* Export a database file from OPFS as a byte array.
|
|
1062
|
+
* This can be used to backup or transfer a database.
|
|
1063
|
+
* Note: The database should be closed before exporting for consistency.
|
|
1064
|
+
*/
|
|
1065
|
+
export function opfsExportDb(filename: string): Promise<Uint8Array>;
|
|
1066
|
+
|
|
1067
|
+
/**
|
|
1068
|
+
* Get the number of database files stored in OPFS.
|
|
1069
|
+
*/
|
|
1070
|
+
export function opfsFileCount(): Promise<number>;
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* Check if a database file exists in OPFS.
|
|
1074
|
+
*/
|
|
1075
|
+
export function opfsFileExists(filename: string): Promise<boolean>;
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Import a database from a byte array into OPFS.
|
|
1079
|
+
* This will overwrite any existing database with the same name.
|
|
1080
|
+
* The byte array must contain a valid SQLite database.
|
|
1081
|
+
* Note: Any existing database with the same name must be closed before importing.
|
|
1082
|
+
*/
|
|
1083
|
+
export function opfsImportDb(filename: string, data: Uint8Array): Promise<void>;
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* Initialize the OPFS SQLite VFS if not already initialized.
|
|
1087
|
+
* This must be called before using other OPFS functions.
|
|
1088
|
+
*/
|
|
1089
|
+
export function opfsInit(): Promise<void>;
|
|
1090
|
+
|
|
1091
|
+
/**
|
|
1092
|
+
* List all database files stored in OPFS.
|
|
1093
|
+
* Returns an array of file names.
|
|
1094
|
+
*/
|
|
1095
|
+
export function opfsListFiles(): Promise<string[]>;
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* Get the current capacity of the OPFS file pool.
|
|
1099
|
+
*/
|
|
1100
|
+
export function opfsPoolCapacity(): Promise<number>;
|
|
1101
|
+
|
|
1102
|
+
export function revokeInstallationsSignatureRequest(host: string, gatewayHost: string | null | undefined, recoveryIdentifier: Identifier, inboxId: string, installationIds: Uint8Array[]): SignatureRequestHandle;
|
|
1103
|
+
|
|
1104
|
+
/**
|
|
1105
|
+
* Entry point invoked by JavaScript in a worker.
|
|
1106
|
+
*/
|
|
1107
|
+
export function task_worker_entry_point(ptr: number): void;
|
|
1108
|
+
|
|
1109
|
+
export function verifySignedWithPublicKey(signatureText: string, signatureBytes: Uint8Array, publicKey: Uint8Array): void;
|
|
1110
|
+
|
|
876
1111
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
877
1112
|
|
|
878
1113
|
export interface InitOutput {
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1114
|
+
readonly memory: WebAssembly.Memory;
|
|
1115
|
+
readonly __wbg_authhandle_free: (a: number, b: number) => void;
|
|
1116
|
+
readonly authhandle_id: (a: number) => number;
|
|
1117
|
+
readonly authhandle_new: () => number;
|
|
1118
|
+
readonly authhandle_set: (a: number, b: any) => any;
|
|
1119
|
+
readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
1120
|
+
readonly client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
1121
|
+
readonly contentTypeReply: () => any;
|
|
1122
|
+
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
1123
|
+
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
1124
|
+
readonly client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
|
|
1125
|
+
readonly client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
|
|
1126
|
+
readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
1127
|
+
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
1128
|
+
readonly client_inboxState: (a: number, b: number) => any;
|
|
1129
|
+
readonly generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
|
|
1130
|
+
readonly getInboxIdForIdentifier: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
|
|
1131
|
+
readonly inboxStateFromInboxIds: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
1132
|
+
readonly metadataFieldName: (a: number) => [number, number];
|
|
1133
|
+
readonly opfsClearAll: () => any;
|
|
1134
|
+
readonly opfsDeleteFile: (a: number, b: number) => any;
|
|
1135
|
+
readonly opfsExportDb: (a: number, b: number) => any;
|
|
1136
|
+
readonly opfsFileCount: () => any;
|
|
1137
|
+
readonly opfsFileExists: (a: number, b: number) => any;
|
|
1138
|
+
readonly opfsImportDb: (a: number, b: number, c: any) => any;
|
|
1139
|
+
readonly opfsInit: () => any;
|
|
1140
|
+
readonly opfsListFiles: () => any;
|
|
1141
|
+
readonly opfsPoolCapacity: () => any;
|
|
1142
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
1143
|
+
readonly __wbg_conversation_free: (a: number, b: number) => void;
|
|
1144
|
+
readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
1145
|
+
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
1146
|
+
readonly __wbg_devicesync_free: (a: number, b: number) => void;
|
|
1147
|
+
readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
1148
|
+
readonly __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
|
|
1149
|
+
readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
|
|
1150
|
+
readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
1151
|
+
readonly __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
|
|
1152
|
+
readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
1153
|
+
readonly __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
|
|
1154
|
+
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
1155
|
+
readonly applySignatureRequest: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
1156
|
+
readonly client_accountIdentifier: (a: number) => any;
|
|
1157
|
+
readonly client_addWalletSignatureRequest: (a: number, b: any) => any;
|
|
1158
|
+
readonly client_apiAggregateStatistics: (a: number) => [number, number];
|
|
1159
|
+
readonly client_apiIdentityStatistics: (a: number) => any;
|
|
1160
|
+
readonly client_apiStatistics: (a: number) => any;
|
|
1161
|
+
readonly client_appVersion: (a: number) => [number, number];
|
|
1162
|
+
readonly client_applySignatureRequest: (a: number, b: number) => any;
|
|
1163
|
+
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
1164
|
+
readonly client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
|
|
1165
|
+
readonly client_clearAllStatistics: (a: number) => void;
|
|
1166
|
+
readonly client_conversations: (a: number) => number;
|
|
1167
|
+
readonly client_createInboxSignatureRequest: (a: number) => [number, number, number];
|
|
1168
|
+
readonly client_device_sync: (a: number) => number;
|
|
1169
|
+
readonly client_findInboxIdByIdentity: (a: number, b: any) => any;
|
|
1170
|
+
readonly client_inboxId: (a: number) => [number, number];
|
|
1171
|
+
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
1172
|
+
readonly client_installationId: (a: number) => [number, number];
|
|
1173
|
+
readonly client_installationIdBytes: (a: number) => any;
|
|
1174
|
+
readonly client_isRegistered: (a: number) => number;
|
|
1175
|
+
readonly client_libxmtpVersion: (a: number) => [number, number];
|
|
1176
|
+
readonly client_registerIdentity: (a: number, b: number) => any;
|
|
1177
|
+
readonly client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
|
|
1178
|
+
readonly client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
|
|
1179
|
+
readonly client_revokeWalletSignatureRequest: (a: number, b: any) => any;
|
|
1180
|
+
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
1181
|
+
readonly client_syncPreferences: (a: number) => any;
|
|
1182
|
+
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
1183
|
+
readonly contentTypeActions: () => any;
|
|
1184
|
+
readonly contentTypeAttachment: () => any;
|
|
1185
|
+
readonly contentTypeGroupUpdated: () => any;
|
|
1186
|
+
readonly contentTypeIntent: () => any;
|
|
1187
|
+
readonly contentTypeLeaveRequest: () => any;
|
|
1188
|
+
readonly contentTypeMarkdown: () => any;
|
|
1189
|
+
readonly contentTypeMultiRemoteAttachment: () => any;
|
|
1190
|
+
readonly contentTypeReaction: () => any;
|
|
1191
|
+
readonly contentTypeReadReceipt: () => any;
|
|
1192
|
+
readonly contentTypeRemoteAttachment: () => any;
|
|
1193
|
+
readonly contentTypeText: () => any;
|
|
1194
|
+
readonly contentTypeTransactionReference: () => any;
|
|
1195
|
+
readonly contentTypeWalletSendCalls: () => any;
|
|
1196
|
+
readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
1197
|
+
readonly conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
1198
|
+
readonly conversation_addMembersByIdentity: (a: number, b: number, c: number) => any;
|
|
1199
|
+
readonly conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
|
|
1200
|
+
readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
1201
|
+
readonly conversation_adminList: (a: number) => [number, number, number, number];
|
|
1202
|
+
readonly conversation_appData: (a: number) => [number, number, number, number];
|
|
1203
|
+
readonly conversation_countMessages: (a: number, b: number) => any;
|
|
1204
|
+
readonly conversation_createdAtNs: (a: number) => bigint;
|
|
1205
|
+
readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
1206
|
+
readonly conversation_findDuplicateDms: (a: number) => any;
|
|
1207
|
+
readonly conversation_findEnrichedMessages: (a: number, b: number) => any;
|
|
1208
|
+
readonly conversation_findMessages: (a: number, b: number) => any;
|
|
1209
|
+
readonly conversation_getDebugInfo: (a: number) => any;
|
|
1210
|
+
readonly conversation_getHmacKeys: (a: number) => [number, number, number];
|
|
1211
|
+
readonly conversation_getLastReadTimes: (a: number) => any;
|
|
1212
|
+
readonly conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
1213
|
+
readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
1214
|
+
readonly conversation_groupMetadata: (a: number) => any;
|
|
1215
|
+
readonly conversation_groupName: (a: number) => [number, number, number, number];
|
|
1216
|
+
readonly conversation_groupPermissions: (a: number) => [number, number, number];
|
|
1217
|
+
readonly conversation_id: (a: number) => [number, number];
|
|
1218
|
+
readonly conversation_isActive: (a: number) => [number, number, number];
|
|
1219
|
+
readonly conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
1220
|
+
readonly conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
|
|
1221
|
+
readonly conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
1222
|
+
readonly conversation_leaveGroup: (a: number) => any;
|
|
1223
|
+
readonly conversation_listMembers: (a: number) => any;
|
|
1224
|
+
readonly conversation_membershipState: (a: number) => [number, number, number];
|
|
1225
|
+
readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
1226
|
+
readonly conversation_pausedForVersion: (a: number) => [number, number, number, number];
|
|
1227
|
+
readonly conversation_prepareMessage: (a: number, b: any, c: number) => [number, number, number, number];
|
|
1228
|
+
readonly conversation_processStreamedGroupMessage: (a: number, b: any) => any;
|
|
1229
|
+
readonly conversation_publishMessages: (a: number) => any;
|
|
1230
|
+
readonly conversation_publishStoredMessage: (a: number, b: number, c: number) => any;
|
|
1231
|
+
readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
1232
|
+
readonly conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
1233
|
+
readonly conversation_removeMembersByIdentity: (a: number, b: number, c: number) => any;
|
|
1234
|
+
readonly conversation_removeMessageDisappearingSettings: (a: number) => any;
|
|
1235
|
+
readonly conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
|
|
1236
|
+
readonly conversation_send: (a: number, b: any, c: any) => any;
|
|
1237
|
+
readonly conversation_sendActions: (a: number, b: any, c: number) => any;
|
|
1238
|
+
readonly conversation_sendAttachment: (a: number, b: any, c: number) => any;
|
|
1239
|
+
readonly conversation_sendIntent: (a: number, b: any, c: number) => any;
|
|
1240
|
+
readonly conversation_sendMarkdown: (a: number, b: number, c: number, d: number) => any;
|
|
1241
|
+
readonly conversation_sendMultiRemoteAttachment: (a: number, b: any, c: number) => any;
|
|
1242
|
+
readonly conversation_sendReaction: (a: number, b: any, c: number) => any;
|
|
1243
|
+
readonly conversation_sendReadReceipt: (a: number, b: number) => any;
|
|
1244
|
+
readonly conversation_sendRemoteAttachment: (a: number, b: any, c: number) => any;
|
|
1245
|
+
readonly conversation_sendReply: (a: number, b: any, c: number) => any;
|
|
1246
|
+
readonly conversation_sendText: (a: number, b: number, c: number, d: number) => any;
|
|
1247
|
+
readonly conversation_sendTransactionReference: (a: number, b: any, c: number) => any;
|
|
1248
|
+
readonly conversation_sendWalletSendCalls: (a: number, b: any, c: number) => any;
|
|
1249
|
+
readonly conversation_stream: (a: number, b: any) => [number, number, number];
|
|
1250
|
+
readonly conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
1251
|
+
readonly conversation_sync: (a: number) => any;
|
|
1252
|
+
readonly conversation_updateAppData: (a: number, b: number, c: number) => any;
|
|
1253
|
+
readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
1254
|
+
readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
1255
|
+
readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
1256
|
+
readonly conversation_updateMessageDisappearingSettings: (a: number, b: any) => any;
|
|
1257
|
+
readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
1258
|
+
readonly conversationlistitem_new: (a: number, b: number, c: number) => number;
|
|
1259
|
+
readonly conversations_createDm: (a: number, b: any, c: number) => any;
|
|
1260
|
+
readonly conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
|
|
1261
|
+
readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
|
|
1262
|
+
readonly conversations_createGroupByInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
1263
|
+
readonly conversations_createGroupOptimistic: (a: number, b: number) => [number, number, number];
|
|
1264
|
+
readonly conversations_deleteMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
1265
|
+
readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
|
|
1266
|
+
readonly conversations_findEnrichedMessageById: (a: number, b: number, c: number) => any;
|
|
1267
|
+
readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
|
|
1268
|
+
readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
1269
|
+
readonly conversations_getHmacKeys: (a: number) => [number, number, number];
|
|
1270
|
+
readonly conversations_list: (a: number, b: number) => [number, number, number];
|
|
1271
|
+
readonly conversations_stream: (a: number, b: any, c: number) => [number, number, number];
|
|
1272
|
+
readonly conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
|
|
1273
|
+
readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
|
|
1274
|
+
readonly conversations_streamLocal: (a: number, b: number) => any;
|
|
1275
|
+
readonly conversations_streamMessageDeletions: (a: number, b: any) => [number, number, number];
|
|
1276
|
+
readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
1277
|
+
readonly conversations_sync: (a: number) => any;
|
|
1278
|
+
readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
1279
|
+
readonly createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: bigint, r: number, s: number, t: number) => any;
|
|
1280
|
+
readonly decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
|
|
1281
|
+
readonly devicesync_archiveMetadata: (a: number, b: any, c: any) => any;
|
|
1282
|
+
readonly devicesync_createArchive: (a: number, b: any, c: any) => any;
|
|
1283
|
+
readonly devicesync_importArchive: (a: number, b: any, c: any) => any;
|
|
1284
|
+
readonly devicesync_listAvailableArchives: (a: number, b: bigint) => [number, number, number, number];
|
|
1285
|
+
readonly devicesync_processSyncArchive: (a: number, b: number, c: number) => any;
|
|
1286
|
+
readonly devicesync_sendSyncArchive: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
|
|
1287
|
+
readonly devicesync_sendSyncRequest: (a: number, b: any, c: number, d: number) => any;
|
|
1288
|
+
readonly devicesync_syncAllDeviceSyncGroups: (a: number) => any;
|
|
1289
|
+
readonly encodeActions: (a: any) => [number, number, number];
|
|
1290
|
+
readonly encodeAttachment: (a: any) => [number, number, number];
|
|
1291
|
+
readonly encodeIntent: (a: any) => [number, number, number];
|
|
1292
|
+
readonly encodeMarkdown: (a: number, b: number) => [number, number, number];
|
|
1293
|
+
readonly encodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
1294
|
+
readonly encodeReaction: (a: any) => [number, number, number];
|
|
1295
|
+
readonly encodeReadReceipt: (a: any) => [number, number, number];
|
|
1296
|
+
readonly encodeRemoteAttachment: (a: any) => [number, number, number];
|
|
1297
|
+
readonly encodeText: (a: number, b: number) => [number, number, number];
|
|
1298
|
+
readonly encodeTransactionReference: (a: any) => [number, number, number];
|
|
1299
|
+
readonly encodeWalletSendCalls: (a: any) => [number, number, number];
|
|
1300
|
+
readonly encryptAttachment: (a: any) => [number, number, number];
|
|
1301
|
+
readonly revokeInstallationsSignatureRequest: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
1302
|
+
readonly signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
|
|
1303
|
+
readonly signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
|
|
1304
|
+
readonly signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
|
|
1305
|
+
readonly signaturerequesthandle_signatureText: (a: number) => any;
|
|
1306
|
+
readonly streamcloser_end: (a: number) => void;
|
|
1307
|
+
readonly streamcloser_endAndWait: (a: number) => any;
|
|
1308
|
+
readonly streamcloser_isClosed: (a: number) => number;
|
|
1309
|
+
readonly streamcloser_waitForReady: (a: number) => any;
|
|
1310
|
+
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
1311
|
+
readonly rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
|
|
1312
|
+
readonly rust_zstd_wasm_shim_free: (a: number) => void;
|
|
1313
|
+
readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
1314
|
+
readonly rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
|
|
1315
|
+
readonly rust_zstd_wasm_shim_memcpy: (a: number, b: number, c: number) => number;
|
|
1316
|
+
readonly rust_zstd_wasm_shim_memmove: (a: number, b: number, c: number) => number;
|
|
1317
|
+
readonly rust_zstd_wasm_shim_memset: (a: number, b: number, c: number) => number;
|
|
1318
|
+
readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
|
|
1319
|
+
readonly rust_sqlite_wasm_abort: () => void;
|
|
1320
|
+
readonly rust_sqlite_wasm_assert_fail: (a: number, b: number, c: number, d: number) => void;
|
|
1321
|
+
readonly rust_sqlite_wasm_calloc: (a: number, b: number) => number;
|
|
1322
|
+
readonly rust_sqlite_wasm_malloc: (a: number) => number;
|
|
1323
|
+
readonly rust_sqlite_wasm_free: (a: number) => void;
|
|
1324
|
+
readonly rust_sqlite_wasm_getentropy: (a: number, b: number) => number;
|
|
1325
|
+
readonly rust_sqlite_wasm_localtime: (a: number) => number;
|
|
1326
|
+
readonly rust_sqlite_wasm_realloc: (a: number, b: number) => number;
|
|
1327
|
+
readonly sqlite3_os_end: () => number;
|
|
1328
|
+
readonly sqlite3_os_init: () => number;
|
|
1329
|
+
readonly task_worker_entry_point: (a: number) => [number, number];
|
|
1330
|
+
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
1331
|
+
readonly intounderlyingsink_abort: (a: number, b: any) => any;
|
|
1332
|
+
readonly intounderlyingsink_close: (a: number) => any;
|
|
1333
|
+
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
1334
|
+
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
1335
|
+
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
1336
|
+
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
1337
|
+
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
1338
|
+
readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
1339
|
+
readonly intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
1340
|
+
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
1341
|
+
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
1342
|
+
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
1343
|
+
readonly __wbg_wasmbindgentestcontext_free: (a: number, b: number) => void;
|
|
1344
|
+
readonly __wbgtest_console_debug: (a: any) => void;
|
|
1345
|
+
readonly __wbgtest_console_error: (a: any) => void;
|
|
1346
|
+
readonly __wbgtest_console_info: (a: any) => void;
|
|
1347
|
+
readonly __wbgtest_console_log: (a: any) => void;
|
|
1348
|
+
readonly __wbgtest_console_warn: (a: any) => void;
|
|
1349
|
+
readonly wasmbindgentestcontext_filtered_count: (a: number, b: number) => void;
|
|
1350
|
+
readonly wasmbindgentestcontext_include_ignored: (a: number, b: number) => void;
|
|
1351
|
+
readonly wasmbindgentestcontext_new: (a: number) => number;
|
|
1352
|
+
readonly wasmbindgentestcontext_run: (a: number, b: number, c: number) => any;
|
|
1353
|
+
readonly __wbgtest_cov_dump: () => [number, number];
|
|
1354
|
+
readonly __wbgtest_module_signature: () => [number, bigint];
|
|
1355
|
+
readonly __wbgbench_dump: () => [number, number];
|
|
1356
|
+
readonly __wbgbench_import: (a: number, b: number) => void;
|
|
1357
|
+
readonly __wbgtest_coverage_path: (a: number, b: number, c: number, d: number, e: number, f: bigint) => [number, number];
|
|
1358
|
+
readonly wasm_bindgen__closure__destroy__he86c9d9bb368f43f: (a: number, b: number) => void;
|
|
1359
|
+
readonly wasm_bindgen__closure__destroy__h213ec6c0cfaa8daa: (a: number, b: number) => void;
|
|
1360
|
+
readonly wasm_bindgen__closure__destroy__h006fa4718e4400fc: (a: number, b: number) => void;
|
|
1361
|
+
readonly wasm_bindgen__closure__destroy__hd56fbfc240f3eed8: (a: number, b: number) => void;
|
|
1362
|
+
readonly wasm_bindgen__convert__closures_____invoke__h4761911dc2bcd4ab: (a: number, b: number, c: any, d: number, e: any) => void;
|
|
1363
|
+
readonly wasm_bindgen__convert__closures_____invoke__h93371d492ea6dccf: (a: number, b: number, c: any, d: any) => void;
|
|
1364
|
+
readonly wasm_bindgen__convert__closures_____invoke__h01ab1ec45c07a95b: (a: number, b: number, c: any) => void;
|
|
1365
|
+
readonly wasm_bindgen__convert__closures_____invoke__h7478175f8808d1fa: (a: number, b: number) => void;
|
|
1366
|
+
readonly wasm_bindgen__convert__closures_____invoke__h7d2ee1dee7ec118b: (a: number, b: number) => void;
|
|
1367
|
+
readonly wasm_bindgen__convert__closures_____invoke__h48de3f26adb3eb8d: (a: number, b: number) => void;
|
|
1368
|
+
readonly __externref_table_alloc: () => number;
|
|
1369
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
1370
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
1371
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
1372
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
1373
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
1374
|
+
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
1375
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
1376
|
+
readonly __wbindgen_start: () => void;
|
|
1120
1377
|
}
|
|
1121
1378
|
|
|
1122
1379
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
1380
|
+
|
|
1123
1381
|
/**
|
|
1124
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
1125
|
-
* a precompiled `WebAssembly.Module`.
|
|
1126
|
-
*
|
|
1127
|
-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
1128
|
-
*
|
|
1129
|
-
* @returns {InitOutput}
|
|
1130
|
-
*/
|
|
1382
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
1383
|
+
* a precompiled `WebAssembly.Module`.
|
|
1384
|
+
*
|
|
1385
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
1386
|
+
*
|
|
1387
|
+
* @returns {InitOutput}
|
|
1388
|
+
*/
|
|
1131
1389
|
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
1132
1390
|
|
|
1133
1391
|
/**
|
|
1134
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
1135
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
1136
|
-
*
|
|
1137
|
-
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
1138
|
-
*
|
|
1139
|
-
* @returns {Promise<InitOutput>}
|
|
1140
|
-
*/
|
|
1392
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
1393
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
1394
|
+
*
|
|
1395
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
1396
|
+
*
|
|
1397
|
+
* @returns {Promise<InitOutput>}
|
|
1398
|
+
*/
|
|
1141
1399
|
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|