@xmtp/wasm-bindings 1.7.0-rc1 → 1.7.0-rc3
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 +291 -236
- package/dist/bindings_wasm.js +390 -323
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +69 -64
- package/package.json +1 -1
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -1,35 +1,45 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function verifySignedWithPublicKey(signatureText: string, signatureBytes: Uint8Array, publicKey: Uint8Array): void;
|
|
4
|
+
export function revokeInstallationsSignatureRequest(host: string, gatewayHost: string | null | undefined, recoveryIdentifier: Identifier, inboxId: string, installationIds: Uint8Array[]): SignatureRequestHandle;
|
|
5
|
+
export function applySignatureRequest(host: string, gatewayHost: string | null | undefined, signatureRequest: SignatureRequestHandle): Promise<void>;
|
|
6
|
+
export function inboxStateFromInboxIds(host: string, gatewayHost: string | null | undefined, inboxIds: string[]): Promise<InboxState[]>;
|
|
3
7
|
export function encodeAttachment(attachment: Attachment): EncodedContent;
|
|
4
8
|
export function attachmentContentType(): ContentTypeId;
|
|
5
9
|
export function encodeReadReceipt(read_receipt: ReadReceipt): EncodedContent;
|
|
6
10
|
export function readReceiptContentType(): ContentTypeId;
|
|
7
11
|
export function groupUpdatedContentType(): ContentTypeId;
|
|
8
12
|
export function leaveRequestContentType(): ContentTypeId;
|
|
9
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Decrypts an encrypted payload from a remote attachment.
|
|
15
|
+
*/
|
|
16
|
+
export function decryptAttachment(encryptedBytes: Uint8Array, remoteAttachment: RemoteAttachment): Attachment;
|
|
10
17
|
export function remoteAttachmentContentType(): ContentTypeId;
|
|
11
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Encrypts an attachment for storage as a remote attachment.
|
|
20
|
+
*/
|
|
21
|
+
export function encryptAttachment(attachment: Attachment): EncryptedAttachment;
|
|
22
|
+
export function encodeRemoteAttachment(remote_attachment: RemoteAttachment): EncodedContent;
|
|
12
23
|
export function encodeWalletSendCalls(wallet_send_calls: WalletSendCalls): EncodedContent;
|
|
24
|
+
export function walletSendCallsContentType(): ContentTypeId;
|
|
13
25
|
export function encodeTransactionReference(transaction_reference: TransactionReference): EncodedContent;
|
|
14
26
|
export function transactionReferenceContentType(): ContentTypeId;
|
|
15
|
-
export function multiRemoteAttachmentContentType(): ContentTypeId;
|
|
16
27
|
export function encodeMultiRemoteAttachment(multi_remote_attachment: MultiRemoteAttachment): EncodedContent;
|
|
28
|
+
export function multiRemoteAttachmentContentType(): ContentTypeId;
|
|
17
29
|
export function encodeText(text: string): EncodedContent;
|
|
18
30
|
export function textContentType(): ContentTypeId;
|
|
19
31
|
export function replyContentType(): ContentTypeId;
|
|
20
|
-
export function encodeIntent(intent: Intent): EncodedContent;
|
|
21
32
|
export function intentContentType(): ContentTypeId;
|
|
33
|
+
export function encodeIntent(intent: Intent): EncodedContent;
|
|
22
34
|
export function actionsContentType(): ContentTypeId;
|
|
23
35
|
export function encodeActions(actions: Actions): EncodedContent;
|
|
24
|
-
export function
|
|
36
|
+
export function encodeMarkdown(text: string): EncodedContent;
|
|
37
|
+
export function markdownContentType(): ContentTypeId;
|
|
25
38
|
export function encodeReaction(reaction: Reaction): EncodedContent;
|
|
39
|
+
export function reactionContentType(): ContentTypeId;
|
|
26
40
|
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>;
|
|
27
|
-
export function revokeInstallationsSignatureRequest(host: string, gatewayHost: string | null | undefined, recoveryIdentifier: Identifier, inboxId: string, installationIds: Uint8Array[]): SignatureRequestHandle;
|
|
28
|
-
export function verifySignedWithPublicKey(signatureText: string, signatureBytes: Uint8Array, publicKey: Uint8Array): void;
|
|
29
|
-
export function applySignatureRequest(host: string, gatewayHost: string | null | undefined, signatureRequest: SignatureRequestHandle): Promise<void>;
|
|
30
|
-
export function inboxStateFromInboxIds(host: string, gatewayHost: string | null | undefined, inboxIds: string[]): Promise<InboxState[]>;
|
|
31
|
-
export function getInboxIdForIdentifier(host: string, gatewayHost: string | null | undefined, accountIdentifier: Identifier): Promise<string | undefined>;
|
|
32
41
|
export function generateInboxId(accountIdentifier: Identifier, nonce?: bigint | null): string;
|
|
42
|
+
export function getInboxIdForIdentifier(host: string, gatewayHost: string | null | undefined, accountIdentifier: Identifier): Promise<string | undefined>;
|
|
33
43
|
/**
|
|
34
44
|
* Entry point invoked by JavaScript in a worker.
|
|
35
45
|
*/
|
|
@@ -40,35 +50,35 @@ export function task_worker_entry_point(ptr: number): void;
|
|
|
40
50
|
* *This API requires the following crate features to be activated: `ReadableStreamType`*
|
|
41
51
|
*/
|
|
42
52
|
type ReadableStreamType = "bytes";
|
|
43
|
-
export interface
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
consentState: ConsentState;
|
|
53
|
+
export interface PasskeySignature {
|
|
54
|
+
publicKey: Uint8Array;
|
|
55
|
+
signature: Uint8Array;
|
|
56
|
+
authenticatorData: Uint8Array;
|
|
57
|
+
clientDataJson: Uint8Array;
|
|
49
58
|
}
|
|
50
59
|
|
|
51
|
-
export
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
conversationType: string;
|
|
60
|
+
export interface Installation {
|
|
61
|
+
bytes: Uint8Array;
|
|
62
|
+
id: string;
|
|
63
|
+
clientTimestampNs?: bigint;
|
|
56
64
|
}
|
|
57
65
|
|
|
58
|
-
export interface
|
|
59
|
-
|
|
60
|
-
|
|
66
|
+
export interface InboxState {
|
|
67
|
+
inboxId: string;
|
|
68
|
+
recoveryIdentifier: Identifier;
|
|
69
|
+
installations: Installation[];
|
|
70
|
+
accountIdentifiers: Identifier[];
|
|
61
71
|
}
|
|
62
72
|
|
|
63
|
-
export
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
entityType: ConsentEntityType;
|
|
67
|
-
state: ConsentState;
|
|
68
|
-
entity: string;
|
|
73
|
+
export interface KeyPackageStatus {
|
|
74
|
+
lifetime?: Lifetime;
|
|
75
|
+
validationError?: string;
|
|
69
76
|
}
|
|
70
77
|
|
|
71
|
-
export
|
|
78
|
+
export interface Lifetime {
|
|
79
|
+
notBefore: bigint;
|
|
80
|
+
notAfter: bigint;
|
|
81
|
+
}
|
|
72
82
|
|
|
73
83
|
export interface Attachment {
|
|
74
84
|
filename?: string;
|
|
@@ -78,16 +88,16 @@ export interface Attachment {
|
|
|
78
88
|
|
|
79
89
|
export type ReadReceipt = Record<string, never>;
|
|
80
90
|
|
|
81
|
-
export interface Inbox {
|
|
82
|
-
inboxId: string;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
91
|
export interface MetadataFieldChange {
|
|
86
92
|
fieldName: string;
|
|
87
93
|
oldValue?: string;
|
|
88
94
|
newValue?: string;
|
|
89
95
|
}
|
|
90
96
|
|
|
97
|
+
export interface Inbox {
|
|
98
|
+
inboxId: string;
|
|
99
|
+
}
|
|
100
|
+
|
|
91
101
|
export interface GroupUpdated {
|
|
92
102
|
initiatedByInboxId: string;
|
|
93
103
|
addedInboxes: Inbox[];
|
|
@@ -115,6 +125,40 @@ export interface RemoteAttachment {
|
|
|
115
125
|
filename?: string;
|
|
116
126
|
}
|
|
117
127
|
|
|
128
|
+
/**
|
|
129
|
+
* Result of encrypting an attachment for remote storage.
|
|
130
|
+
*/
|
|
131
|
+
export interface EncryptedAttachment {
|
|
132
|
+
/**
|
|
133
|
+
* The encrypted bytes to upload to the remote server
|
|
134
|
+
*/
|
|
135
|
+
payload: Uint8Array;
|
|
136
|
+
/**
|
|
137
|
+
* SHA-256 digest of the encrypted bytes (hex-encoded)
|
|
138
|
+
*/
|
|
139
|
+
contentDigest: string;
|
|
140
|
+
/**
|
|
141
|
+
* The 32-byte secret key needed for decryption
|
|
142
|
+
*/
|
|
143
|
+
secret: Uint8Array;
|
|
144
|
+
/**
|
|
145
|
+
* The 32-byte salt used in key derivation
|
|
146
|
+
*/
|
|
147
|
+
salt: Uint8Array;
|
|
148
|
+
/**
|
|
149
|
+
* The 12-byte nonce used in encryption
|
|
150
|
+
*/
|
|
151
|
+
nonce: Uint8Array;
|
|
152
|
+
/**
|
|
153
|
+
* The length of the encrypted content
|
|
154
|
+
*/
|
|
155
|
+
contentLength: number;
|
|
156
|
+
/**
|
|
157
|
+
* The filename of the attachment
|
|
158
|
+
*/
|
|
159
|
+
filename?: string;
|
|
160
|
+
}
|
|
161
|
+
|
|
118
162
|
export interface WalletCall {
|
|
119
163
|
to?: string;
|
|
120
164
|
data?: string;
|
|
@@ -131,13 +175,6 @@ export interface WalletSendCalls {
|
|
|
131
175
|
capabilities?: Record<string, string>;
|
|
132
176
|
}
|
|
133
177
|
|
|
134
|
-
export interface TransactionReference {
|
|
135
|
-
namespace?: string;
|
|
136
|
-
networkId: string;
|
|
137
|
-
reference: string;
|
|
138
|
-
metadata?: TransactionMetadata;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
178
|
export interface TransactionMetadata {
|
|
142
179
|
transactionType: string;
|
|
143
180
|
currency: string;
|
|
@@ -147,12 +184,15 @@ export interface TransactionMetadata {
|
|
|
147
184
|
toAddress: string;
|
|
148
185
|
}
|
|
149
186
|
|
|
150
|
-
export
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
187
|
+
export interface TransactionReference {
|
|
188
|
+
namespace?: string;
|
|
189
|
+
networkId: string;
|
|
190
|
+
reference: string;
|
|
191
|
+
metadata?: TransactionMetadata;
|
|
154
192
|
}
|
|
155
193
|
|
|
194
|
+
export type DecodedMessageContent = { type: "text"; content: string } | { type: "markdown"; content: MarkdownContent } | { type: "reply"; content: EnrichedReply } | { type: "reaction"; content: Reaction } | { type: "attachment"; content: Attachment } | { type: "remoteAttachment"; content: RemoteAttachment } | { type: "multiRemoteAttachment"; content: MultiRemoteAttachment } | { type: "transactionReference"; content: TransactionReference } | { type: "groupUpdated"; content: GroupUpdated } | { type: "readReceipt"; content: ReadReceipt } | { type: "leaveRequest"; content: LeaveRequest } | { type: "walletSendCalls"; content: WalletSendCalls } | { type: "intent"; content: Intent | undefined } | { type: "actions"; content: Actions | undefined } | { type: "custom"; content: EncodedContent };
|
|
195
|
+
|
|
156
196
|
export interface RemoteAttachmentInfo {
|
|
157
197
|
secret: Uint8Array;
|
|
158
198
|
contentDigest: string;
|
|
@@ -164,14 +204,12 @@ export interface RemoteAttachmentInfo {
|
|
|
164
204
|
filename?: string;
|
|
165
205
|
}
|
|
166
206
|
|
|
167
|
-
export interface
|
|
168
|
-
|
|
207
|
+
export interface MultiRemoteAttachment {
|
|
208
|
+
attachments: RemoteAttachmentInfo[];
|
|
169
209
|
}
|
|
170
210
|
|
|
171
|
-
export interface
|
|
172
|
-
|
|
173
|
-
content: DecodedMessageContent;
|
|
174
|
-
inReplyTo?: DecodedMessage;
|
|
211
|
+
export interface TextContent {
|
|
212
|
+
content: string;
|
|
175
213
|
}
|
|
176
214
|
|
|
177
215
|
export interface Reply {
|
|
@@ -180,6 +218,12 @@ export interface Reply {
|
|
|
180
218
|
referenceInboxId?: string;
|
|
181
219
|
}
|
|
182
220
|
|
|
221
|
+
export interface EnrichedReply {
|
|
222
|
+
referenceId: string;
|
|
223
|
+
content: DecodedMessageContent;
|
|
224
|
+
inReplyTo?: DecodedMessage;
|
|
225
|
+
}
|
|
226
|
+
|
|
183
227
|
export interface Intent {
|
|
184
228
|
id: string;
|
|
185
229
|
actionId: string;
|
|
@@ -194,6 +238,8 @@ export interface Action {
|
|
|
194
238
|
expiresAtNs?: bigint;
|
|
195
239
|
}
|
|
196
240
|
|
|
241
|
+
export type ActionStyle = "primary" | "secondary" | "danger";
|
|
242
|
+
|
|
197
243
|
export interface Actions {
|
|
198
244
|
id: string;
|
|
199
245
|
description: string;
|
|
@@ -201,12 +247,14 @@ export interface Actions {
|
|
|
201
247
|
expiresAtNs?: bigint;
|
|
202
248
|
}
|
|
203
249
|
|
|
204
|
-
export
|
|
205
|
-
|
|
206
|
-
|
|
250
|
+
export interface MarkdownContent {
|
|
251
|
+
content: string;
|
|
252
|
+
}
|
|
207
253
|
|
|
208
254
|
export type ReactionAction = "unknown" | "added" | "removed";
|
|
209
255
|
|
|
256
|
+
export type ReactionSchema = "unknown" | "unicode" | "shortcode" | "custom";
|
|
257
|
+
|
|
210
258
|
export interface Reaction {
|
|
211
259
|
reference: string;
|
|
212
260
|
referenceInboxId: string;
|
|
@@ -243,13 +291,18 @@ export interface DecodedMessage {
|
|
|
243
291
|
reactions: DecodedMessage[];
|
|
244
292
|
deliveryStatus: DeliveryStatus;
|
|
245
293
|
numReplies: bigint;
|
|
294
|
+
expiresAtNs: bigint | undefined;
|
|
246
295
|
}
|
|
247
296
|
|
|
248
297
|
export type UserPreference = { type: "Consent"; consent: Consent } | { type: "HmacKeyUpdate"; key: number[] };
|
|
249
298
|
|
|
250
|
-
export
|
|
299
|
+
export interface Credential {
|
|
300
|
+
name?: string;
|
|
301
|
+
value: string;
|
|
302
|
+
expiresAtSeconds: bigint;
|
|
303
|
+
}
|
|
251
304
|
|
|
252
|
-
export type
|
|
305
|
+
export type DeviceSyncWorkerMode = "enabled" | "disabled";
|
|
253
306
|
|
|
254
307
|
/**
|
|
255
308
|
* Specify options for the logger
|
|
@@ -269,61 +322,43 @@ export interface LogOptions {
|
|
|
269
322
|
level?: LogLevel;
|
|
270
323
|
}
|
|
271
324
|
|
|
325
|
+
export type ClientMode = "default" | "notification";
|
|
326
|
+
|
|
327
|
+
export type LogLevel = "off" | "error" | "warn" | "info" | "debug" | "trace";
|
|
328
|
+
|
|
272
329
|
export interface GroupSyncSummary {
|
|
273
330
|
numEligible: number;
|
|
274
331
|
numSynced: number;
|
|
275
332
|
}
|
|
276
333
|
|
|
277
|
-
export
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
export interface Message {
|
|
282
|
-
id: string;
|
|
283
|
-
sentAtNs: bigint;
|
|
284
|
-
convoId: string;
|
|
285
|
-
senderInboxId: string;
|
|
286
|
-
content: EncodedContent;
|
|
287
|
-
kind: GroupMessageKind;
|
|
288
|
-
deliveryStatus: DeliveryStatus;
|
|
334
|
+
export interface Identifier {
|
|
335
|
+
identifier: string;
|
|
336
|
+
identifierKind: IdentifierKind;
|
|
289
337
|
}
|
|
290
338
|
|
|
291
|
-
export
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
limit?: bigint;
|
|
301
|
-
deliveryStatus?: DeliveryStatus;
|
|
302
|
-
direction?: SortDirection;
|
|
303
|
-
kind?: GroupMessageKind;
|
|
304
|
-
excludeSenderInboxIds?: string[];
|
|
305
|
-
sortBy?: MessageSortBy;
|
|
306
|
-
insertedAfterNs?: bigint;
|
|
307
|
-
insertedBeforeNs?: bigint;
|
|
339
|
+
export interface ApiStats {
|
|
340
|
+
uploadKeyPackage: bigint;
|
|
341
|
+
fetchKeyPackage: bigint;
|
|
342
|
+
sendGroupMessages: bigint;
|
|
343
|
+
sendWelcomeMessages: bigint;
|
|
344
|
+
queryGroupMessages: bigint;
|
|
345
|
+
queryWelcomeMessages: bigint;
|
|
346
|
+
subscribeMessages: bigint;
|
|
347
|
+
subscribeWelcomes: bigint;
|
|
308
348
|
}
|
|
309
349
|
|
|
310
|
-
export type
|
|
311
|
-
|
|
312
|
-
export interface MessageWithReactions {
|
|
313
|
-
message: Message;
|
|
314
|
-
reactions: Message[];
|
|
315
|
-
}
|
|
350
|
+
export type IdentifierKind = "Ethereum" | "Passkey";
|
|
316
351
|
|
|
317
|
-
export interface
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
352
|
+
export interface IdentityStats {
|
|
353
|
+
publishIdentityUpdate: bigint;
|
|
354
|
+
getIdentityUpdatesV2: bigint;
|
|
355
|
+
getInboxIds: bigint;
|
|
356
|
+
verifySmartContractWalletSignature: bigint;
|
|
322
357
|
}
|
|
323
358
|
|
|
324
359
|
export type PermissionPolicy = "allow" | "deny" | "admin" | "superAdmin" | "doesNotExist" | "other";
|
|
325
360
|
|
|
326
|
-
export type
|
|
361
|
+
export type GroupPermissionsOptions = "default" | "adminOnly" | "customPolicy";
|
|
327
362
|
|
|
328
363
|
export interface GroupPermissions {
|
|
329
364
|
policyType: GroupPermissionsOptions;
|
|
@@ -341,61 +376,41 @@ export interface PermissionPolicySet {
|
|
|
341
376
|
updateMessageDisappearingPolicy: PermissionPolicy;
|
|
342
377
|
}
|
|
343
378
|
|
|
344
|
-
export type GroupPermissionsOptions = "default" | "adminOnly" | "customPolicy";
|
|
345
|
-
|
|
346
379
|
export type MetadataField = "groupName" | "description" | "imageUrlSquare" | "messageExpirationFromMS" | "messageExpirationMS";
|
|
347
380
|
|
|
348
|
-
export type
|
|
349
|
-
|
|
350
|
-
export interface ApiStats {
|
|
351
|
-
uploadKeyPackage: bigint;
|
|
352
|
-
fetchKeyPackage: bigint;
|
|
353
|
-
sendGroupMessages: bigint;
|
|
354
|
-
sendWelcomeMessages: bigint;
|
|
355
|
-
queryGroupMessages: bigint;
|
|
356
|
-
queryWelcomeMessages: bigint;
|
|
357
|
-
subscribeMessages: bigint;
|
|
358
|
-
subscribeWelcomes: bigint;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
export interface Identifier {
|
|
362
|
-
identifier: string;
|
|
363
|
-
identifierKind: IdentifierKind;
|
|
364
|
-
}
|
|
381
|
+
export type PermissionUpdateType = "addMember" | "removeMember" | "addAdmin" | "removeAdmin" | "updateMetadata";
|
|
365
382
|
|
|
366
|
-
export
|
|
367
|
-
publishIdentityUpdate: bigint;
|
|
368
|
-
getIdentityUpdatesV2: bigint;
|
|
369
|
-
getInboxIds: bigint;
|
|
370
|
-
verifySmartContractWalletSignature: bigint;
|
|
371
|
-
}
|
|
383
|
+
export type ContentType = "unknown" | "text" | "markdown" | "leaveRequest" | "groupMembershipChange" | "groupUpdated" | "reaction" | "readReceipt" | "reply" | "attachment" | "remoteAttachment" | "transactionReference";
|
|
372
384
|
|
|
373
|
-
export interface
|
|
385
|
+
export interface GroupMember {
|
|
374
386
|
inboxId: string;
|
|
375
|
-
recoveryIdentifier: Identifier;
|
|
376
|
-
installations: Installation[];
|
|
377
387
|
accountIdentifiers: Identifier[];
|
|
388
|
+
installationIds: string[];
|
|
389
|
+
permissionLevel: PermissionLevel;
|
|
390
|
+
consentState: ConsentState;
|
|
378
391
|
}
|
|
379
392
|
|
|
380
|
-
export interface
|
|
381
|
-
|
|
382
|
-
|
|
393
|
+
export interface SendMessageOpts {
|
|
394
|
+
shouldPush: boolean;
|
|
395
|
+
optimistic?: boolean;
|
|
383
396
|
}
|
|
384
397
|
|
|
385
|
-
export
|
|
386
|
-
bytes: Uint8Array;
|
|
387
|
-
id: string;
|
|
388
|
-
clientTimestampNs?: bigint;
|
|
389
|
-
}
|
|
398
|
+
export type PermissionLevel = "member" | "admin" | "superAdmin";
|
|
390
399
|
|
|
391
|
-
export interface
|
|
392
|
-
|
|
393
|
-
|
|
400
|
+
export interface GroupMetadata {
|
|
401
|
+
creatorInboxId: string;
|
|
402
|
+
conversationType: string;
|
|
394
403
|
}
|
|
395
404
|
|
|
396
|
-
export type
|
|
405
|
+
export type ConsentEntityType = "groupId" | "inboxId";
|
|
397
406
|
|
|
398
|
-
export type
|
|
407
|
+
export type ConsentState = "unknown" | "allowed" | "denied";
|
|
408
|
+
|
|
409
|
+
export interface Consent {
|
|
410
|
+
entityType: ConsentEntityType;
|
|
411
|
+
state: ConsentState;
|
|
412
|
+
entity: string;
|
|
413
|
+
}
|
|
399
414
|
|
|
400
415
|
export interface CreateGroupOptions {
|
|
401
416
|
permissions?: GroupPermissionsOptions;
|
|
@@ -407,22 +422,19 @@ export interface CreateGroupOptions {
|
|
|
407
422
|
appData?: string;
|
|
408
423
|
}
|
|
409
424
|
|
|
425
|
+
export type ListConversationsOrderBy = "createdAt" | "lastActivity";
|
|
426
|
+
|
|
410
427
|
export interface CreateDMOptions {
|
|
411
428
|
messageDisappearingSettings?: MessageDisappearingSettings;
|
|
412
429
|
}
|
|
413
430
|
|
|
414
|
-
export
|
|
415
|
-
key: Uint8Array;
|
|
416
|
-
epoch: bigint;
|
|
417
|
-
}
|
|
431
|
+
export type GroupMembershipState = "allowed" | "rejected" | "pending" | "restored" | "pendingRemove";
|
|
418
432
|
|
|
419
|
-
export interface
|
|
420
|
-
|
|
421
|
-
|
|
433
|
+
export interface Cursor {
|
|
434
|
+
originatorId: number;
|
|
435
|
+
sequenceId: bigint;
|
|
422
436
|
}
|
|
423
437
|
|
|
424
|
-
export type GroupMembershipState = "allowed" | "rejected" | "pending" | "restored" | "pendingRemove";
|
|
425
|
-
|
|
426
438
|
export interface ListConversationsOptions {
|
|
427
439
|
consentStates?: ConsentState[];
|
|
428
440
|
conversationType?: ConversationType;
|
|
@@ -433,6 +445,13 @@ export interface ListConversationsOptions {
|
|
|
433
445
|
limit?: bigint;
|
|
434
446
|
}
|
|
435
447
|
|
|
448
|
+
export interface MessageDisappearingSettings {
|
|
449
|
+
fromNs: bigint;
|
|
450
|
+
inNs: bigint;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
export type ConversationType = "dm" | "group" | "sync" | "oneshot";
|
|
454
|
+
|
|
436
455
|
export interface ConversationDebugInfo {
|
|
437
456
|
epoch: bigint;
|
|
438
457
|
maybeForked: boolean;
|
|
@@ -443,17 +462,47 @@ export interface ConversationDebugInfo {
|
|
|
443
462
|
cursor: Cursor[];
|
|
444
463
|
}
|
|
445
464
|
|
|
446
|
-
export interface
|
|
447
|
-
|
|
448
|
-
|
|
465
|
+
export interface HmacKey {
|
|
466
|
+
key: Uint8Array;
|
|
467
|
+
epoch: bigint;
|
|
449
468
|
}
|
|
450
469
|
|
|
451
|
-
export
|
|
470
|
+
export interface MessageWithReactions {
|
|
471
|
+
message: Message;
|
|
472
|
+
reactions: Message[];
|
|
473
|
+
}
|
|
452
474
|
|
|
453
|
-
export
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
475
|
+
export type DeliveryStatus = "unpublished" | "published" | "failed";
|
|
476
|
+
|
|
477
|
+
export type SortDirection = "ascending" | "descending";
|
|
478
|
+
|
|
479
|
+
export interface ListMessagesOptions {
|
|
480
|
+
contentTypes?: ContentType[];
|
|
481
|
+
excludeContentTypes?: ContentType[];
|
|
482
|
+
sentBeforeNs?: bigint;
|
|
483
|
+
sentAfterNs?: bigint;
|
|
484
|
+
limit?: bigint;
|
|
485
|
+
deliveryStatus?: DeliveryStatus;
|
|
486
|
+
direction?: SortDirection;
|
|
487
|
+
kind?: GroupMessageKind;
|
|
488
|
+
excludeSenderInboxIds?: string[];
|
|
489
|
+
sortBy?: MessageSortBy;
|
|
490
|
+
insertedAfterNs?: bigint;
|
|
491
|
+
insertedBeforeNs?: bigint;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
export type MessageSortBy = "sentAt" | "insertedAt";
|
|
495
|
+
|
|
496
|
+
export type GroupMessageKind = "application" | "membershipchange";
|
|
497
|
+
|
|
498
|
+
export interface Message {
|
|
499
|
+
id: string;
|
|
500
|
+
sentAtNs: bigint;
|
|
501
|
+
convoId: string;
|
|
502
|
+
senderInboxId: string;
|
|
503
|
+
content: EncodedContent;
|
|
504
|
+
kind: GroupMessageKind;
|
|
505
|
+
deliveryStatus: DeliveryStatus;
|
|
457
506
|
}
|
|
458
507
|
|
|
459
508
|
export class AuthHandle {
|
|
@@ -467,21 +516,6 @@ export class Client {
|
|
|
467
516
|
private constructor();
|
|
468
517
|
free(): void;
|
|
469
518
|
[Symbol.dispose](): void;
|
|
470
|
-
getConsentState(entityType: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
471
|
-
setConsentStates(records: Consent[]): Promise<void>;
|
|
472
|
-
/**
|
|
473
|
-
* Output booleans should be zipped with the index of input identifiers
|
|
474
|
-
*/
|
|
475
|
-
canMessage(accountIdentifiers: Identifier[]): Promise<any>;
|
|
476
|
-
conversations(): Conversations;
|
|
477
|
-
apiStatistics(): ApiStats;
|
|
478
|
-
syncPreferences(): Promise<GroupSyncSummary>;
|
|
479
|
-
sendSyncRequest(): Promise<void>;
|
|
480
|
-
clearAllStatistics(): void;
|
|
481
|
-
apiIdentityStatistics(): IdentityStats;
|
|
482
|
-
apiAggregateStatistics(): string;
|
|
483
|
-
inboxStateFromInboxIds(inboxIds: string[], refreshFromNetwork: boolean): Promise<InboxState[]>;
|
|
484
|
-
findInboxIdByIdentifier(identifier: Identifier): Promise<string | undefined>;
|
|
485
519
|
registerIdentity(signatureRequest: SignatureRequestHandle): Promise<void>;
|
|
486
520
|
applySignatureRequest(signatureRequest: SignatureRequestHandle): Promise<void>;
|
|
487
521
|
signWithInstallationKey(signatureText: string): Uint8Array;
|
|
@@ -510,6 +544,21 @@ export class Client {
|
|
|
510
544
|
*
|
|
511
545
|
*/
|
|
512
546
|
getKeyPackageStatusesForInstallationIds(installationIds: string[]): Promise<any>;
|
|
547
|
+
/**
|
|
548
|
+
* Output booleans should be zipped with the index of input identifiers
|
|
549
|
+
*/
|
|
550
|
+
canMessage(accountIdentifiers: Identifier[]): Promise<any>;
|
|
551
|
+
conversations(): Conversations;
|
|
552
|
+
apiStatistics(): ApiStats;
|
|
553
|
+
syncPreferences(): Promise<GroupSyncSummary>;
|
|
554
|
+
sendSyncRequest(): Promise<void>;
|
|
555
|
+
clearAllStatistics(): void;
|
|
556
|
+
apiIdentityStatistics(): IdentityStats;
|
|
557
|
+
apiAggregateStatistics(): string;
|
|
558
|
+
inboxStateFromInboxIds(inboxIds: string[], refreshFromNetwork: boolean): Promise<InboxState[]>;
|
|
559
|
+
findInboxIdByIdentifier(identifier: Identifier): Promise<string | undefined>;
|
|
560
|
+
getConsentState(entityType: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
561
|
+
setConsentStates(records: Consent[]): Promise<void>;
|
|
513
562
|
readonly appVersion: string;
|
|
514
563
|
readonly isRegistered: boolean;
|
|
515
564
|
readonly installationId: string;
|
|
@@ -535,6 +584,7 @@ export class Conversation {
|
|
|
535
584
|
createdAtNs(): bigint;
|
|
536
585
|
findMessages(opts?: ListMessagesOptions | null): Promise<Message[]>;
|
|
537
586
|
getHmacKeys(): any;
|
|
587
|
+
sendMarkdown(markdown: string, optimistic?: boolean | null): Promise<string>;
|
|
538
588
|
sendReaction(reaction: Reaction, optimistic?: boolean | null): Promise<string>;
|
|
539
589
|
countMessages(opts?: ListMessagesOptions | null): Promise<bigint>;
|
|
540
590
|
groupMetadata(): Promise<GroupMetadata>;
|
|
@@ -577,7 +627,7 @@ export class Conversation {
|
|
|
577
627
|
messageDisappearingSettings(): MessageDisappearingSettings | undefined;
|
|
578
628
|
updateGroupImageUrlSquare(groupImageUrlSquare: string): Promise<void>;
|
|
579
629
|
id(): string;
|
|
580
|
-
processStreamedGroupMessage(envelopeBytes: Uint8Array): Promise<Message>;
|
|
630
|
+
processStreamedGroupMessage(envelopeBytes: Uint8Array): Promise<Message[]>;
|
|
581
631
|
isMessageDisappearingEnabled(): boolean;
|
|
582
632
|
removeMessageDisappearingSettings(): Promise<void>;
|
|
583
633
|
updateMessageDisappearingSettings(settings: MessageDisappearingSettings): Promise<void>;
|
|
@@ -690,29 +740,92 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
690
740
|
|
|
691
741
|
export interface InitOutput {
|
|
692
742
|
readonly memory: WebAssembly.Memory;
|
|
743
|
+
readonly __wbg_authhandle_free: (a: number, b: number) => void;
|
|
693
744
|
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
694
|
-
readonly
|
|
745
|
+
readonly __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
|
|
695
746
|
readonly actionsContentType: () => any;
|
|
747
|
+
readonly applySignatureRequest: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
696
748
|
readonly attachmentContentType: () => any;
|
|
749
|
+
readonly authhandle_id: (a: number) => number;
|
|
750
|
+
readonly authhandle_new: () => number;
|
|
751
|
+
readonly authhandle_set: (a: number, b: any) => any;
|
|
697
752
|
readonly client_accountIdentifier: (a: number) => any;
|
|
753
|
+
readonly client_addWalletSignatureRequest: (a: number, b: any) => any;
|
|
698
754
|
readonly client_apiAggregateStatistics: (a: number) => [number, number];
|
|
699
755
|
readonly client_apiIdentityStatistics: (a: number) => any;
|
|
700
756
|
readonly client_apiStatistics: (a: number) => any;
|
|
701
757
|
readonly client_appVersion: (a: number) => [number, number];
|
|
758
|
+
readonly client_applySignatureRequest: (a: number, b: number) => any;
|
|
702
759
|
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
760
|
+
readonly client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
|
|
703
761
|
readonly client_clearAllStatistics: (a: number) => void;
|
|
704
762
|
readonly client_conversations: (a: number) => number;
|
|
763
|
+
readonly client_createInboxSignatureRequest: (a: number) => [number, number, number];
|
|
705
764
|
readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
706
|
-
readonly
|
|
765
|
+
readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
766
|
+
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
707
767
|
readonly client_inboxId: (a: number) => [number, number];
|
|
768
|
+
readonly client_inboxState: (a: number, b: number) => any;
|
|
708
769
|
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
709
770
|
readonly client_installationId: (a: number) => [number, number];
|
|
710
771
|
readonly client_installationIdBytes: (a: number) => any;
|
|
711
772
|
readonly client_isRegistered: (a: number) => number;
|
|
712
773
|
readonly client_libxmtpVersion: (a: number) => [number, number];
|
|
774
|
+
readonly client_registerIdentity: (a: number, b: number) => any;
|
|
775
|
+
readonly client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
|
|
776
|
+
readonly client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
|
|
777
|
+
readonly client_revokeWalletSignatureRequest: (a: number, b: any) => any;
|
|
713
778
|
readonly client_sendSyncRequest: (a: number) => any;
|
|
714
|
-
readonly
|
|
779
|
+
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
715
780
|
readonly client_syncPreferences: (a: number) => any;
|
|
781
|
+
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
782
|
+
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: number, r: number, s: bigint, t: number, u: number, v: number) => any;
|
|
783
|
+
readonly decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
|
|
784
|
+
readonly encodeActions: (a: any) => [number, number, number];
|
|
785
|
+
readonly encodeAttachment: (a: any) => [number, number, number];
|
|
786
|
+
readonly encodeIntent: (a: any) => [number, number, number];
|
|
787
|
+
readonly encodeMarkdown: (a: number, b: number) => [number, number, number];
|
|
788
|
+
readonly encodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
789
|
+
readonly encodeReaction: (a: any) => [number, number, number];
|
|
790
|
+
readonly encodeReadReceipt: (a: any) => [number, number, number];
|
|
791
|
+
readonly encodeRemoteAttachment: (a: any) => [number, number, number];
|
|
792
|
+
readonly encodeText: (a: number, b: number) => [number, number, number];
|
|
793
|
+
readonly encodeTransactionReference: (a: any) => [number, number, number];
|
|
794
|
+
readonly encodeWalletSendCalls: (a: any) => [number, number, number];
|
|
795
|
+
readonly encryptAttachment: (a: any) => [number, number, number];
|
|
796
|
+
readonly generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
|
|
797
|
+
readonly getInboxIdForIdentifier: (a: number, b: number, c: number, d: number, e: any) => any;
|
|
798
|
+
readonly groupUpdatedContentType: () => any;
|
|
799
|
+
readonly inboxStateFromInboxIds: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
800
|
+
readonly intentContentType: () => any;
|
|
801
|
+
readonly leaveRequestContentType: () => any;
|
|
802
|
+
readonly markdownContentType: () => any;
|
|
803
|
+
readonly multiRemoteAttachmentContentType: () => any;
|
|
804
|
+
readonly reactionContentType: () => any;
|
|
805
|
+
readonly readReceiptContentType: () => any;
|
|
806
|
+
readonly remoteAttachmentContentType: () => any;
|
|
807
|
+
readonly replyContentType: () => any;
|
|
808
|
+
readonly revokeInstallationsSignatureRequest: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
809
|
+
readonly signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
|
|
810
|
+
readonly signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
|
|
811
|
+
readonly signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
|
|
812
|
+
readonly signaturerequesthandle_signatureText: (a: number) => any;
|
|
813
|
+
readonly textContentType: () => any;
|
|
814
|
+
readonly transactionReferenceContentType: () => any;
|
|
815
|
+
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
816
|
+
readonly walletSendCallsContentType: () => any;
|
|
817
|
+
readonly __wbg_conversation_free: (a: number, b: number) => void;
|
|
818
|
+
readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
819
|
+
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
820
|
+
readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
821
|
+
readonly __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
|
|
822
|
+
readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
|
|
823
|
+
readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
824
|
+
readonly __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
|
|
825
|
+
readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
826
|
+
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
827
|
+
readonly client_getConsentState: (a: number, b: any, c: number, d: number) => any;
|
|
828
|
+
readonly client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
716
829
|
readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
717
830
|
readonly conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
718
831
|
readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
@@ -757,6 +870,7 @@ export interface InitOutput {
|
|
|
757
870
|
readonly conversation_sendActions: (a: number, b: any, c: number) => any;
|
|
758
871
|
readonly conversation_sendAttachment: (a: number, b: any, c: number) => any;
|
|
759
872
|
readonly conversation_sendIntent: (a: number, b: any, c: number) => any;
|
|
873
|
+
readonly conversation_sendMarkdown: (a: number, b: number, c: number, d: number) => any;
|
|
760
874
|
readonly conversation_sendMultiRemoteAttachment: (a: number, b: any, c: number) => any;
|
|
761
875
|
readonly conversation_sendOptimistic: (a: number, b: any, c: any) => [number, number, number, number];
|
|
762
876
|
readonly conversation_sendReaction: (a: number, b: any, c: number) => any;
|
|
@@ -776,62 +890,6 @@ export interface InitOutput {
|
|
|
776
890
|
readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
777
891
|
readonly conversation_updateMessageDisappearingSettings: (a: number, b: any) => any;
|
|
778
892
|
readonly conversation_updatePermissionPolicy: (a: number, b: any, c: any, d: number) => any;
|
|
779
|
-
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: number, r: number, s: bigint, t: number, u: number, v: number) => any;
|
|
780
|
-
readonly encodeActions: (a: any) => [number, number, number];
|
|
781
|
-
readonly encodeAttachment: (a: any) => [number, number, number];
|
|
782
|
-
readonly encodeIntent: (a: any) => [number, number, number];
|
|
783
|
-
readonly encodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
784
|
-
readonly encodeReaction: (a: any) => [number, number, number];
|
|
785
|
-
readonly encodeReadReceipt: (a: any) => [number, number, number];
|
|
786
|
-
readonly encodeRemoteAttachment: (a: any) => [number, number, number];
|
|
787
|
-
readonly encodeText: (a: number, b: number) => [number, number, number];
|
|
788
|
-
readonly encodeTransactionReference: (a: any) => [number, number, number];
|
|
789
|
-
readonly encodeWalletSendCalls: (a: any) => [number, number, number];
|
|
790
|
-
readonly groupUpdatedContentType: () => any;
|
|
791
|
-
readonly intentContentType: () => any;
|
|
792
|
-
readonly leaveRequestContentType: () => any;
|
|
793
|
-
readonly multiRemoteAttachmentContentType: () => any;
|
|
794
|
-
readonly reactionContentType: () => any;
|
|
795
|
-
readonly readReceiptContentType: () => any;
|
|
796
|
-
readonly remoteAttachmentContentType: () => any;
|
|
797
|
-
readonly replyContentType: () => any;
|
|
798
|
-
readonly textContentType: () => any;
|
|
799
|
-
readonly transactionReferenceContentType: () => any;
|
|
800
|
-
readonly walletSendCallsContentType: () => any;
|
|
801
|
-
readonly __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
|
|
802
|
-
readonly applySignatureRequest: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
803
|
-
readonly client_addWalletSignatureRequest: (a: number, b: any) => any;
|
|
804
|
-
readonly client_applySignatureRequest: (a: number, b: number) => any;
|
|
805
|
-
readonly client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
|
|
806
|
-
readonly client_createInboxSignatureRequest: (a: number) => [number, number, number];
|
|
807
|
-
readonly client_registerIdentity: (a: number, b: number) => any;
|
|
808
|
-
readonly client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
|
|
809
|
-
readonly client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
|
|
810
|
-
readonly client_revokeWalletSignatureRequest: (a: number, b: any) => any;
|
|
811
|
-
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
812
|
-
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
813
|
-
readonly revokeInstallationsSignatureRequest: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
814
|
-
readonly signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
|
|
815
|
-
readonly signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
|
|
816
|
-
readonly signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
|
|
817
|
-
readonly signaturerequesthandle_signatureText: (a: number) => any;
|
|
818
|
-
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
819
|
-
readonly __wbg_authhandle_free: (a: number, b: number) => void;
|
|
820
|
-
readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
821
|
-
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
822
|
-
readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
823
|
-
readonly __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
|
|
824
|
-
readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
|
|
825
|
-
readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
826
|
-
readonly __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
|
|
827
|
-
readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
828
|
-
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
829
|
-
readonly authhandle_id: (a: number) => number;
|
|
830
|
-
readonly authhandle_new: () => number;
|
|
831
|
-
readonly authhandle_set: (a: number, b: any) => any;
|
|
832
|
-
readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
833
|
-
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
834
|
-
readonly client_inboxState: (a: number, b: number) => any;
|
|
835
893
|
readonly conversationlistitem_new: (a: number, b: number, c: number) => number;
|
|
836
894
|
readonly conversations_createDm: (a: number, b: any, c: number) => any;
|
|
837
895
|
readonly conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
|
|
@@ -853,9 +911,6 @@ export interface InitOutput {
|
|
|
853
911
|
readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
854
912
|
readonly conversations_sync: (a: number) => any;
|
|
855
913
|
readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
856
|
-
readonly generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
|
|
857
|
-
readonly getInboxIdForIdentifier: (a: number, b: number, c: number, d: number, e: any) => any;
|
|
858
|
-
readonly inboxStateFromInboxIds: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
859
914
|
readonly streamcloser_end: (a: number) => void;
|
|
860
915
|
readonly streamcloser_endAndWait: (a: number) => any;
|
|
861
916
|
readonly streamcloser_isClosed: (a: number) => number;
|
|
@@ -896,10 +951,10 @@ export interface InitOutput {
|
|
|
896
951
|
readonly wasm_bindgen__closure__destroy__hfbd660e60d498df9: (a: number, b: number) => void;
|
|
897
952
|
readonly wasm_bindgen__convert__closures_____invoke__hdff293b41f2cecc6: (a: number, b: number, c: any) => void;
|
|
898
953
|
readonly wasm_bindgen__closure__destroy__hed8af60076250245: (a: number, b: number) => void;
|
|
899
|
-
readonly wasm_bindgen__convert__closures_____invoke__h956b60152b2cf005: (a: number, b: number) => void;
|
|
900
|
-
readonly wasm_bindgen__closure__destroy__h3c5639ee43c80f22: (a: number, b: number) => void;
|
|
901
954
|
readonly wasm_bindgen__convert__closures_____invoke__h6af3cd86eb56f4b1: (a: number, b: number) => void;
|
|
902
955
|
readonly wasm_bindgen__closure__destroy__he7b712e0eb1b5ac1: (a: number, b: number) => void;
|
|
956
|
+
readonly wasm_bindgen__convert__closures_____invoke__h956b60152b2cf005: (a: number, b: number) => void;
|
|
957
|
+
readonly wasm_bindgen__closure__destroy__h3c5639ee43c80f22: (a: number, b: number) => void;
|
|
903
958
|
readonly wasm_bindgen__convert__closures_____invoke__h47a8fb56fc48c5fb: (a: number, b: number, c: any, d: any) => void;
|
|
904
959
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
905
960
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|