@xmtp/wasm-bindings 1.8.1 → 1.9.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 +375 -359
- package/dist/bindings_wasm.js +417 -368
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +81 -76
- package/package.json +2 -2
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
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 metadataFieldName(field: MetadataField): string;
|
|
5
|
-
export function contentTypeLeaveRequest(): ContentTypeId;
|
|
6
|
-
export function generateInboxId(accountIdentifier: Identifier, nonce?: bigint | null): string;
|
|
7
|
-
export function getInboxIdForIdentifier(host: string, gatewayHost: string | null | undefined, isSecure: boolean, accountIdentifier: Identifier): Promise<string | undefined>;
|
|
8
|
-
export function verifySignedWithPublicKey(signatureText: string, signatureBytes: Uint8Array, publicKey: Uint8Array): void;
|
|
9
|
-
export function revokeInstallationsSignatureRequest(host: string, gatewayHost: string | null | undefined, recoveryIdentifier: Identifier, inboxId: string, installationIds: Uint8Array[]): SignatureRequestHandle;
|
|
10
|
-
export function applySignatureRequest(host: string, gatewayHost: string | null | undefined, signatureRequest: SignatureRequestHandle): Promise<void>;
|
|
11
3
|
export function encodeAttachment(attachment: Attachment): EncodedContent;
|
|
12
4
|
export function contentTypeAttachment(): ContentTypeId;
|
|
13
|
-
export function contentTypeReadReceipt(): ContentTypeId;
|
|
14
5
|
export function encodeReadReceipt(read_receipt: ReadReceipt): EncodedContent;
|
|
6
|
+
export function contentTypeReadReceipt(): ContentTypeId;
|
|
7
|
+
export function encodeTransactionReference(transaction_reference: TransactionReference): EncodedContent;
|
|
8
|
+
export function contentTypeTransactionReference(): ContentTypeId;
|
|
9
|
+
export function encodeMultiRemoteAttachment(multi_remote_attachment: MultiRemoteAttachment): EncodedContent;
|
|
10
|
+
export function contentTypeMultiRemoteAttachment(): ContentTypeId;
|
|
11
|
+
export function contentTypeText(): ContentTypeId;
|
|
12
|
+
export function encodeText(text: string): EncodedContent;
|
|
13
|
+
export function contentTypeReply(): ContentTypeId;
|
|
14
|
+
export function contentTypeMarkdown(): ContentTypeId;
|
|
15
|
+
export function encodeMarkdown(text: string): EncodedContent;
|
|
16
|
+
export function verifySignedWithPublicKey(signatureText: string, signatureBytes: Uint8Array, publicKey: Uint8Array): void;
|
|
17
|
+
export function revokeInstallationsSignatureRequest(host: string, gatewayHost: string | null | undefined, recoveryIdentifier: Identifier, inboxId: string, installationIds: Uint8Array[]): SignatureRequestHandle;
|
|
18
|
+
export function applySignatureRequest(host: string, gatewayHost: string | null | undefined, signatureRequest: SignatureRequestHandle): Promise<void>;
|
|
19
|
+
export function inboxStateFromInboxIds(host: string, gatewayHost: string | null | undefined, inboxIds: string[]): Promise<InboxState[]>;
|
|
15
20
|
export function contentTypeGroupUpdated(): ContentTypeId;
|
|
21
|
+
export function contentTypeLeaveRequest(): ContentTypeId;
|
|
16
22
|
/**
|
|
17
23
|
* Encrypts an attachment for storage as a remote attachment.
|
|
18
24
|
*/
|
|
@@ -23,47 +29,37 @@ export function contentTypeRemoteAttachment(): ContentTypeId;
|
|
|
23
29
|
* Decrypts an encrypted payload from a remote attachment.
|
|
24
30
|
*/
|
|
25
31
|
export function decryptAttachment(encryptedBytes: Uint8Array, remoteAttachment: RemoteAttachment): Attachment;
|
|
26
|
-
export function encodeWalletSendCalls(wallet_send_calls: WalletSendCalls): EncodedContent;
|
|
27
32
|
export function contentTypeWalletSendCalls(): ContentTypeId;
|
|
28
|
-
export function
|
|
29
|
-
export function contentTypeTransactionReference(): ContentTypeId;
|
|
30
|
-
export function contentTypeMultiRemoteAttachment(): ContentTypeId;
|
|
31
|
-
export function encodeMultiRemoteAttachment(multi_remote_attachment: MultiRemoteAttachment): EncodedContent;
|
|
32
|
-
export function contentTypeText(): ContentTypeId;
|
|
33
|
-
export function encodeText(text: string): EncodedContent;
|
|
34
|
-
export function contentTypeReply(): ContentTypeId;
|
|
33
|
+
export function encodeWalletSendCalls(wallet_send_calls: WalletSendCalls): EncodedContent;
|
|
35
34
|
export function encodeIntent(intent: Intent): EncodedContent;
|
|
36
35
|
export function contentTypeIntent(): ContentTypeId;
|
|
37
36
|
export function encodeActions(actions: Actions): EncodedContent;
|
|
38
37
|
export function contentTypeActions(): ContentTypeId;
|
|
39
|
-
export function contentTypeMarkdown(): ContentTypeId;
|
|
40
|
-
export function encodeMarkdown(text: string): EncodedContent;
|
|
41
38
|
export function encodeReaction(reaction: Reaction): EncodedContent;
|
|
42
39
|
export function contentTypeReaction(): ContentTypeId;
|
|
43
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>;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
export function opfsPoolCapacity(): Promise<number>;
|
|
48
|
-
/**
|
|
49
|
-
* Delete all database files from OPFS.
|
|
50
|
-
* Note: All databases must be closed before calling this function.
|
|
51
|
-
*/
|
|
52
|
-
export function opfsClearAll(): Promise<void>;
|
|
41
|
+
export function getInboxIdForIdentifier(host: string, gatewayHost: string | null | undefined, isSecure: boolean, accountIdentifier: Identifier): Promise<string | undefined>;
|
|
42
|
+
export function generateInboxId(accountIdentifier: Identifier, nonce?: bigint | null): string;
|
|
43
|
+
export function metadataFieldName(field: MetadataField): string;
|
|
53
44
|
/**
|
|
54
45
|
* Get the number of database files stored in OPFS.
|
|
55
46
|
*/
|
|
56
47
|
export function opfsFileCount(): Promise<number>;
|
|
57
48
|
/**
|
|
58
|
-
*
|
|
49
|
+
* List all database files stored in OPFS.
|
|
50
|
+
* Returns an array of file names.
|
|
59
51
|
*/
|
|
60
|
-
export function
|
|
52
|
+
export function opfsListFiles(): Promise<string[]>;
|
|
61
53
|
/**
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* Note: The database must be closed before calling this function.
|
|
54
|
+
* Initialize the OPFS SQLite VFS if not already initialized.
|
|
55
|
+
* This must be called before using other OPFS functions.
|
|
65
56
|
*/
|
|
66
|
-
export function
|
|
57
|
+
export function opfsInit(): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Delete all database files from OPFS.
|
|
60
|
+
* Note: All databases must be closed before calling this function.
|
|
61
|
+
*/
|
|
62
|
+
export function opfsClearAll(): Promise<void>;
|
|
67
63
|
/**
|
|
68
64
|
* Import a database from a byte array into OPFS.
|
|
69
65
|
* This will overwrite any existing database with the same name.
|
|
@@ -71,6 +67,12 @@ export function opfsDeleteFile(filename: string): Promise<boolean>;
|
|
|
71
67
|
* Note: Any existing database with the same name must be closed before importing.
|
|
72
68
|
*/
|
|
73
69
|
export function opfsImportDb(filename: string, data: Uint8Array): Promise<void>;
|
|
70
|
+
/**
|
|
71
|
+
* Delete a specific database file from OPFS.
|
|
72
|
+
* Returns true if the file was deleted, false if it didn't exist.
|
|
73
|
+
* Note: The database must be closed before calling this function.
|
|
74
|
+
*/
|
|
75
|
+
export function opfsDeleteFile(filename: string): Promise<boolean>;
|
|
74
76
|
/**
|
|
75
77
|
* Export a database file from OPFS as a byte array.
|
|
76
78
|
* This can be used to backup or transfer a database.
|
|
@@ -78,15 +80,13 @@ export function opfsImportDb(filename: string, data: Uint8Array): Promise<void>;
|
|
|
78
80
|
*/
|
|
79
81
|
export function opfsExportDb(filename: string): Promise<Uint8Array>;
|
|
80
82
|
/**
|
|
81
|
-
*
|
|
82
|
-
* This must be called before using other OPFS functions.
|
|
83
|
+
* Get the current capacity of the OPFS file pool.
|
|
83
84
|
*/
|
|
84
|
-
export function
|
|
85
|
+
export function opfsPoolCapacity(): Promise<number>;
|
|
85
86
|
/**
|
|
86
|
-
*
|
|
87
|
-
* Returns an array of file names.
|
|
87
|
+
* Check if a database file exists in OPFS.
|
|
88
88
|
*/
|
|
89
|
-
export function
|
|
89
|
+
export function opfsFileExists(filename: string): Promise<boolean>;
|
|
90
90
|
/**
|
|
91
91
|
* Entry point invoked by JavaScript in a worker.
|
|
92
92
|
*/
|
|
@@ -133,6 +133,10 @@ export enum ConversationType {
|
|
|
133
133
|
Sync = 2,
|
|
134
134
|
Oneshot = 3,
|
|
135
135
|
}
|
|
136
|
+
export enum DeletedBy {
|
|
137
|
+
Sender = 0,
|
|
138
|
+
Admin = 1,
|
|
139
|
+
}
|
|
136
140
|
export enum DeliveryStatus {
|
|
137
141
|
Unpublished = 0,
|
|
138
142
|
Published = 1,
|
|
@@ -227,190 +231,136 @@ export enum SortDirection {
|
|
|
227
231
|
* *This API requires the following crate features to be activated: `ReadableStreamType`*
|
|
228
232
|
*/
|
|
229
233
|
type ReadableStreamType = "bytes";
|
|
230
|
-
export interface
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
export interface Installation {
|
|
236
|
-
bytes: Uint8Array;
|
|
237
|
-
id: string;
|
|
238
|
-
clientTimestampNs?: bigint;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
export interface KeyPackageStatus {
|
|
242
|
-
lifetime?: Lifetime;
|
|
243
|
-
validationError?: string;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
export interface InboxState {
|
|
247
|
-
inboxId: string;
|
|
248
|
-
recoveryIdentifier: Identifier;
|
|
249
|
-
installations: Installation[];
|
|
250
|
-
accountIdentifiers: Identifier[];
|
|
234
|
+
export interface Attachment {
|
|
235
|
+
filename?: string;
|
|
236
|
+
mimeType: string;
|
|
237
|
+
content: Uint8Array;
|
|
251
238
|
}
|
|
252
239
|
|
|
253
|
-
export
|
|
254
|
-
addMemberPolicy: PermissionPolicy;
|
|
255
|
-
removeMemberPolicy: PermissionPolicy;
|
|
256
|
-
addAdminPolicy: PermissionPolicy;
|
|
257
|
-
removeAdminPolicy: PermissionPolicy;
|
|
258
|
-
updateGroupNamePolicy: PermissionPolicy;
|
|
259
|
-
updateGroupDescriptionPolicy: PermissionPolicy;
|
|
260
|
-
updateGroupImageUrlSquarePolicy: PermissionPolicy;
|
|
261
|
-
updateMessageDisappearingPolicy: PermissionPolicy;
|
|
262
|
-
updateAppDataPolicy: PermissionPolicy;
|
|
263
|
-
}
|
|
240
|
+
export type ReadReceipt = Record<string, never>;
|
|
264
241
|
|
|
265
|
-
export interface
|
|
266
|
-
|
|
267
|
-
|
|
242
|
+
export interface TransactionMetadata {
|
|
243
|
+
transactionType: string;
|
|
244
|
+
currency: string;
|
|
245
|
+
amount: number;
|
|
246
|
+
decimals: number;
|
|
247
|
+
fromAddress: string;
|
|
248
|
+
toAddress: string;
|
|
268
249
|
}
|
|
269
250
|
|
|
270
|
-
export interface
|
|
271
|
-
|
|
272
|
-
|
|
251
|
+
export interface TransactionReference {
|
|
252
|
+
namespace?: string;
|
|
253
|
+
networkId: string;
|
|
254
|
+
reference: string;
|
|
255
|
+
metadata?: TransactionMetadata;
|
|
273
256
|
}
|
|
274
257
|
|
|
275
|
-
export
|
|
276
|
-
inboxId: string;
|
|
277
|
-
accountIdentifiers: Identifier[];
|
|
278
|
-
installationIds: string[];
|
|
279
|
-
permissionLevel: PermissionLevel;
|
|
280
|
-
consentState: ConsentState;
|
|
281
|
-
}
|
|
258
|
+
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 };
|
|
282
259
|
|
|
283
|
-
export interface
|
|
284
|
-
|
|
285
|
-
|
|
260
|
+
export interface RemoteAttachmentInfo {
|
|
261
|
+
secret: Uint8Array;
|
|
262
|
+
contentDigest: string;
|
|
263
|
+
nonce: Uint8Array;
|
|
264
|
+
scheme: string;
|
|
265
|
+
url: string;
|
|
266
|
+
salt: Uint8Array;
|
|
267
|
+
contentLength?: number;
|
|
268
|
+
filename?: string;
|
|
286
269
|
}
|
|
287
270
|
|
|
288
|
-
export interface
|
|
289
|
-
|
|
290
|
-
state: ConsentState;
|
|
291
|
-
entity: string;
|
|
271
|
+
export interface MultiRemoteAttachment {
|
|
272
|
+
attachments: RemoteAttachmentInfo[];
|
|
292
273
|
}
|
|
293
274
|
|
|
294
|
-
export interface
|
|
295
|
-
|
|
275
|
+
export interface Reply {
|
|
276
|
+
content: EncodedContent;
|
|
277
|
+
reference: string;
|
|
278
|
+
referenceInboxId?: string;
|
|
296
279
|
}
|
|
297
280
|
|
|
298
|
-
export interface
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
groupDescription?: string;
|
|
303
|
-
customPermissionPolicySet?: PermissionPolicySet;
|
|
304
|
-
messageDisappearingSettings?: MessageDisappearingSettings;
|
|
305
|
-
appData?: string;
|
|
281
|
+
export interface EnrichedReply {
|
|
282
|
+
referenceId: string;
|
|
283
|
+
content: DecodedMessageContent;
|
|
284
|
+
inReplyTo?: DecodedMessage;
|
|
306
285
|
}
|
|
307
286
|
|
|
308
|
-
export interface
|
|
309
|
-
|
|
287
|
+
export interface ContentTypeId {
|
|
288
|
+
authorityId: string;
|
|
289
|
+
typeId: string;
|
|
290
|
+
versionMajor: number;
|
|
291
|
+
versionMinor: number;
|
|
310
292
|
}
|
|
311
293
|
|
|
312
|
-
export interface
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
orderBy?: ListConversationsOrderBy;
|
|
319
|
-
limit?: bigint;
|
|
294
|
+
export interface EncodedContent {
|
|
295
|
+
type?: ContentTypeId;
|
|
296
|
+
parameters: Record<string, string>;
|
|
297
|
+
fallback?: string;
|
|
298
|
+
compression?: number;
|
|
299
|
+
content: Uint8Array;
|
|
320
300
|
}
|
|
321
301
|
|
|
322
|
-
export
|
|
323
|
-
fromNs: bigint;
|
|
324
|
-
inNs: bigint;
|
|
325
|
-
}
|
|
302
|
+
export type UserPreferenceUpdate = { type: "ConsentUpdate"; consent: Consent } | { type: "HmacKeyUpdate"; key: number[] };
|
|
326
303
|
|
|
327
|
-
export interface
|
|
328
|
-
|
|
329
|
-
|
|
304
|
+
export interface PasskeySignature {
|
|
305
|
+
publicKey: Uint8Array;
|
|
306
|
+
signature: Uint8Array;
|
|
307
|
+
authenticatorData: Uint8Array;
|
|
308
|
+
clientDataJson: Uint8Array;
|
|
330
309
|
}
|
|
331
310
|
|
|
332
|
-
export interface
|
|
333
|
-
|
|
334
|
-
|
|
311
|
+
export interface Installation {
|
|
312
|
+
bytes: Uint8Array;
|
|
313
|
+
id: string;
|
|
314
|
+
clientTimestampNs?: bigint;
|
|
335
315
|
}
|
|
336
316
|
|
|
337
|
-
export interface
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
forkDetails: string;
|
|
341
|
-
isCommitLogForked?: boolean;
|
|
342
|
-
localCommitLog: string;
|
|
343
|
-
remoteCommitLog: string;
|
|
344
|
-
cursor: Cursor[];
|
|
317
|
+
export interface Lifetime {
|
|
318
|
+
notBefore: bigint;
|
|
319
|
+
notAfter: bigint;
|
|
345
320
|
}
|
|
346
321
|
|
|
347
|
-
export interface
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
senderInboxId: string;
|
|
353
|
-
contentType: ContentTypeId;
|
|
354
|
-
conversationId: string;
|
|
355
|
-
content: DecodedMessageContent;
|
|
356
|
-
fallback?: string;
|
|
357
|
-
reactions: DecodedMessage[];
|
|
358
|
-
deliveryStatus: DeliveryStatus;
|
|
359
|
-
numReplies: bigint;
|
|
360
|
-
expiresAtNs: bigint | undefined;
|
|
322
|
+
export interface InboxState {
|
|
323
|
+
inboxId: string;
|
|
324
|
+
recoveryIdentifier: Identifier;
|
|
325
|
+
installations: Installation[];
|
|
326
|
+
accountIdentifiers: Identifier[];
|
|
361
327
|
}
|
|
362
328
|
|
|
363
|
-
export interface
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
expiresAtSeconds: bigint;
|
|
329
|
+
export interface KeyPackageStatus {
|
|
330
|
+
lifetime?: Lifetime;
|
|
331
|
+
validationError?: string;
|
|
367
332
|
}
|
|
368
333
|
|
|
369
|
-
export interface
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
sentBeforeNs?: bigint;
|
|
373
|
-
sentAfterNs?: bigint;
|
|
374
|
-
limit?: bigint;
|
|
375
|
-
deliveryStatus?: DeliveryStatus;
|
|
376
|
-
direction?: SortDirection;
|
|
377
|
-
kind?: GroupMessageKind;
|
|
378
|
-
excludeSenderInboxIds?: string[];
|
|
379
|
-
sortBy?: MessageSortBy;
|
|
380
|
-
insertedAfterNs?: bigint;
|
|
381
|
-
insertedBeforeNs?: bigint;
|
|
334
|
+
export interface SendMessageOpts {
|
|
335
|
+
shouldPush: boolean;
|
|
336
|
+
optimistic?: boolean;
|
|
382
337
|
}
|
|
383
338
|
|
|
384
|
-
export interface
|
|
385
|
-
|
|
386
|
-
|
|
339
|
+
export interface GroupMetadata {
|
|
340
|
+
creatorInboxId: string;
|
|
341
|
+
conversationType: ConversationType;
|
|
387
342
|
}
|
|
388
343
|
|
|
389
|
-
export interface
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
kind: GroupMessageKind;
|
|
396
|
-
deliveryStatus: DeliveryStatus;
|
|
344
|
+
export interface GroupMember {
|
|
345
|
+
inboxId: string;
|
|
346
|
+
accountIdentifiers: Identifier[];
|
|
347
|
+
installationIds: string[];
|
|
348
|
+
permissionLevel: PermissionLevel;
|
|
349
|
+
consentState: ConsentState;
|
|
397
350
|
}
|
|
398
351
|
|
|
399
|
-
export interface
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
clientDataJson: Uint8Array;
|
|
352
|
+
export interface Consent {
|
|
353
|
+
entityType: ConsentEntityType;
|
|
354
|
+
state: ConsentState;
|
|
355
|
+
entity: string;
|
|
404
356
|
}
|
|
405
357
|
|
|
406
|
-
export interface
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
358
|
+
export interface MetadataFieldChange {
|
|
359
|
+
fieldName: string;
|
|
360
|
+
oldValue?: string;
|
|
361
|
+
newValue?: string;
|
|
410
362
|
}
|
|
411
363
|
|
|
412
|
-
export type ReadReceipt = Record<string, never>;
|
|
413
|
-
|
|
414
364
|
export interface Inbox {
|
|
415
365
|
inboxId: string;
|
|
416
366
|
}
|
|
@@ -427,10 +377,19 @@ export interface GroupUpdated {
|
|
|
427
377
|
removedSuperAdminInboxes: Inbox[];
|
|
428
378
|
}
|
|
429
379
|
|
|
430
|
-
export interface
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
380
|
+
export interface LeaveRequest {
|
|
381
|
+
authenticatedNote?: Uint8Array;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export interface RemoteAttachment {
|
|
385
|
+
url: string;
|
|
386
|
+
contentDigest: string;
|
|
387
|
+
secret: Uint8Array;
|
|
388
|
+
salt: Uint8Array;
|
|
389
|
+
nonce: Uint8Array;
|
|
390
|
+
scheme: string;
|
|
391
|
+
contentLength: number;
|
|
392
|
+
filename?: string;
|
|
434
393
|
}
|
|
435
394
|
|
|
436
395
|
/**
|
|
@@ -467,25 +426,6 @@ export interface EncryptedAttachment {
|
|
|
467
426
|
filename?: string;
|
|
468
427
|
}
|
|
469
428
|
|
|
470
|
-
export interface RemoteAttachment {
|
|
471
|
-
url: string;
|
|
472
|
-
contentDigest: string;
|
|
473
|
-
secret: Uint8Array;
|
|
474
|
-
salt: Uint8Array;
|
|
475
|
-
nonce: Uint8Array;
|
|
476
|
-
scheme: string;
|
|
477
|
-
contentLength: number;
|
|
478
|
-
filename?: string;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
export interface WalletSendCalls {
|
|
482
|
-
version: string;
|
|
483
|
-
chainId: string;
|
|
484
|
-
from: string;
|
|
485
|
-
calls: WalletCall[];
|
|
486
|
-
capabilities?: Record<string, string>;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
429
|
export interface WalletCall {
|
|
490
430
|
to?: string;
|
|
491
431
|
data?: string;
|
|
@@ -494,49 +434,12 @@ export interface WalletCall {
|
|
|
494
434
|
metadata?: Record<string, string>;
|
|
495
435
|
}
|
|
496
436
|
|
|
497
|
-
export interface
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
export interface TransactionMetadata {
|
|
505
|
-
transactionType: string;
|
|
506
|
-
currency: string;
|
|
507
|
-
amount: number;
|
|
508
|
-
decimals: number;
|
|
509
|
-
fromAddress: string;
|
|
510
|
-
toAddress: string;
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
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 };
|
|
514
|
-
|
|
515
|
-
export interface MultiRemoteAttachment {
|
|
516
|
-
attachments: RemoteAttachmentInfo[];
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
export interface RemoteAttachmentInfo {
|
|
520
|
-
secret: Uint8Array;
|
|
521
|
-
contentDigest: string;
|
|
522
|
-
nonce: Uint8Array;
|
|
523
|
-
scheme: string;
|
|
524
|
-
url: string;
|
|
525
|
-
salt: Uint8Array;
|
|
526
|
-
contentLength?: number;
|
|
527
|
-
filename?: string;
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
export interface EnrichedReply {
|
|
531
|
-
referenceId: string;
|
|
532
|
-
content: DecodedMessageContent;
|
|
533
|
-
inReplyTo?: DecodedMessage;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
export interface Reply {
|
|
537
|
-
content: EncodedContent;
|
|
538
|
-
reference: string;
|
|
539
|
-
referenceInboxId?: string;
|
|
437
|
+
export interface WalletSendCalls {
|
|
438
|
+
version: string;
|
|
439
|
+
chainId: string;
|
|
440
|
+
from: string;
|
|
441
|
+
calls: WalletCall[];
|
|
442
|
+
capabilities?: Record<string, string>;
|
|
540
443
|
}
|
|
541
444
|
|
|
542
445
|
export interface Intent {
|
|
@@ -568,22 +471,75 @@ export interface Reaction {
|
|
|
568
471
|
schema: ReactionSchema;
|
|
569
472
|
}
|
|
570
473
|
|
|
571
|
-
export interface
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
474
|
+
export interface ListConversationsOptions {
|
|
475
|
+
consentStates?: ConsentState[];
|
|
476
|
+
conversationType?: ConversationType;
|
|
477
|
+
createdAfterNs?: bigint;
|
|
478
|
+
createdBeforeNs?: bigint;
|
|
479
|
+
includeDuplicateDms?: boolean;
|
|
480
|
+
orderBy?: ListConversationsOrderBy;
|
|
481
|
+
limit?: bigint;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
export interface CreateGroupOptions {
|
|
485
|
+
permissions?: GroupPermissionsOptions;
|
|
486
|
+
groupName?: string;
|
|
487
|
+
groupImageUrlSquare?: string;
|
|
488
|
+
groupDescription?: string;
|
|
489
|
+
customPermissionPolicySet?: PermissionPolicySet;
|
|
490
|
+
messageDisappearingSettings?: MessageDisappearingSettings;
|
|
491
|
+
appData?: string;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
export interface CreateDmOptions {
|
|
495
|
+
messageDisappearingSettings?: MessageDisappearingSettings;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
export interface MessageDisappearingSettings {
|
|
499
|
+
fromNs: bigint;
|
|
500
|
+
inNs: bigint;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
export interface Cursor {
|
|
504
|
+
originatorId: number;
|
|
505
|
+
sequenceId: bigint;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export interface HmacKey {
|
|
509
|
+
key: Uint8Array;
|
|
510
|
+
epoch: bigint;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
export interface ConversationDebugInfo {
|
|
514
|
+
epoch: bigint;
|
|
515
|
+
maybeForked: boolean;
|
|
516
|
+
forkDetails: string;
|
|
517
|
+
isCommitLogForked?: boolean;
|
|
518
|
+
localCommitLog: string;
|
|
519
|
+
remoteCommitLog: string;
|
|
520
|
+
cursor: Cursor[];
|
|
577
521
|
}
|
|
578
522
|
|
|
579
|
-
export interface
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
523
|
+
export interface DecodedMessage {
|
|
524
|
+
id: string;
|
|
525
|
+
sentAtNs: bigint;
|
|
526
|
+
kind: GroupMessageKind;
|
|
527
|
+
senderInstallationId: string;
|
|
528
|
+
senderInboxId: string;
|
|
529
|
+
contentType: ContentTypeId;
|
|
530
|
+
conversationId: string;
|
|
531
|
+
content: DecodedMessageContent;
|
|
532
|
+
fallback?: string;
|
|
533
|
+
reactions: DecodedMessage[];
|
|
534
|
+
deliveryStatus: DeliveryStatus;
|
|
535
|
+
numReplies: bigint;
|
|
536
|
+
expiresAtNs: bigint | undefined;
|
|
584
537
|
}
|
|
585
538
|
|
|
586
|
-
export
|
|
539
|
+
export interface GroupSyncSummary {
|
|
540
|
+
numEligible: number;
|
|
541
|
+
numSynced: number;
|
|
542
|
+
}
|
|
587
543
|
|
|
588
544
|
/**
|
|
589
545
|
* Specify options for the logger
|
|
@@ -603,16 +559,27 @@ export interface LogOptions {
|
|
|
603
559
|
level?: LogLevel;
|
|
604
560
|
}
|
|
605
561
|
|
|
606
|
-
export interface
|
|
607
|
-
|
|
608
|
-
|
|
562
|
+
export interface GroupPermissions {
|
|
563
|
+
policyType: GroupPermissionsOptions;
|
|
564
|
+
policySet: PermissionPolicySet;
|
|
609
565
|
}
|
|
610
566
|
|
|
611
|
-
export interface
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
567
|
+
export interface PermissionPolicySet {
|
|
568
|
+
addMemberPolicy: PermissionPolicy;
|
|
569
|
+
removeMemberPolicy: PermissionPolicy;
|
|
570
|
+
addAdminPolicy: PermissionPolicy;
|
|
571
|
+
removeAdminPolicy: PermissionPolicy;
|
|
572
|
+
updateGroupNamePolicy: PermissionPolicy;
|
|
573
|
+
updateGroupDescriptionPolicy: PermissionPolicy;
|
|
574
|
+
updateGroupImageUrlSquarePolicy: PermissionPolicy;
|
|
575
|
+
updateMessageDisappearingPolicy: PermissionPolicy;
|
|
576
|
+
updateAppDataPolicy: PermissionPolicy;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
export interface Credential {
|
|
580
|
+
name?: string;
|
|
581
|
+
value: string;
|
|
582
|
+
expiresAtSeconds: bigint;
|
|
616
583
|
}
|
|
617
584
|
|
|
618
585
|
export interface Identifier {
|
|
@@ -620,6 +587,13 @@ export interface Identifier {
|
|
|
620
587
|
identifierKind: IdentifierKind;
|
|
621
588
|
}
|
|
622
589
|
|
|
590
|
+
export interface IdentityStats {
|
|
591
|
+
publishIdentityUpdate: bigint;
|
|
592
|
+
getIdentityUpdatesV2: bigint;
|
|
593
|
+
getInboxIds: bigint;
|
|
594
|
+
verifySmartContractWalletSignature: bigint;
|
|
595
|
+
}
|
|
596
|
+
|
|
623
597
|
export interface ApiStats {
|
|
624
598
|
uploadKeyPackage: bigint;
|
|
625
599
|
fetchKeyPackage: bigint;
|
|
@@ -631,6 +605,31 @@ export interface ApiStats {
|
|
|
631
605
|
subscribeWelcomes: bigint;
|
|
632
606
|
}
|
|
633
607
|
|
|
608
|
+
export interface ListMessagesOptions {
|
|
609
|
+
contentTypes?: ContentType[];
|
|
610
|
+
excludeContentTypes?: ContentType[];
|
|
611
|
+
sentBeforeNs?: bigint;
|
|
612
|
+
sentAfterNs?: bigint;
|
|
613
|
+
limit?: bigint;
|
|
614
|
+
deliveryStatus?: DeliveryStatus;
|
|
615
|
+
direction?: SortDirection;
|
|
616
|
+
kind?: GroupMessageKind;
|
|
617
|
+
excludeSenderInboxIds?: string[];
|
|
618
|
+
sortBy?: MessageSortBy;
|
|
619
|
+
insertedAfterNs?: bigint;
|
|
620
|
+
insertedBeforeNs?: bigint;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
export interface Message {
|
|
624
|
+
id: string;
|
|
625
|
+
sentAtNs: bigint;
|
|
626
|
+
convoId: string;
|
|
627
|
+
senderInboxId: string;
|
|
628
|
+
content: EncodedContent;
|
|
629
|
+
kind: GroupMessageKind;
|
|
630
|
+
deliveryStatus: DeliveryStatus;
|
|
631
|
+
}
|
|
632
|
+
|
|
634
633
|
export class AuthHandle {
|
|
635
634
|
free(): void;
|
|
636
635
|
[Symbol.dispose](): void;
|
|
@@ -642,6 +641,16 @@ export class Client {
|
|
|
642
641
|
private constructor();
|
|
643
642
|
free(): void;
|
|
644
643
|
[Symbol.dispose](): void;
|
|
644
|
+
registerIdentity(signatureRequest: SignatureRequestHandle): Promise<void>;
|
|
645
|
+
applySignatureRequest(signatureRequest: SignatureRequestHandle): Promise<void>;
|
|
646
|
+
signWithInstallationKey(signatureText: string): Uint8Array;
|
|
647
|
+
createInboxSignatureRequest(): SignatureRequestHandle | undefined;
|
|
648
|
+
addWalletSignatureRequest(newIdentifier: Identifier): Promise<SignatureRequestHandle>;
|
|
649
|
+
revokeWalletSignatureRequest(identifier: Identifier): Promise<SignatureRequestHandle>;
|
|
650
|
+
verifySignedWithInstallationKey(signatureText: string, signatureBytes: Uint8Array): void;
|
|
651
|
+
revokeInstallationsSignatureRequest(installationIds: Uint8Array[]): Promise<SignatureRequestHandle>;
|
|
652
|
+
changeRecoveryIdentifierSignatureRequest(newRecoveryIdentifier: Identifier): Promise<SignatureRequestHandle>;
|
|
653
|
+
revokeAllOtherInstallationsSignatureRequest(): Promise<SignatureRequestHandle | undefined>;
|
|
645
654
|
/**
|
|
646
655
|
*
|
|
647
656
|
* * Get the client's inbox state.
|
|
@@ -662,16 +671,6 @@ export class Client {
|
|
|
662
671
|
getKeyPackageStatusesForInstallationIds(installationIds: string[]): Promise<any>;
|
|
663
672
|
getConsentState(entityType: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
664
673
|
setConsentStates(records: Consent[]): Promise<void>;
|
|
665
|
-
registerIdentity(signatureRequest: SignatureRequestHandle): Promise<void>;
|
|
666
|
-
applySignatureRequest(signatureRequest: SignatureRequestHandle): Promise<void>;
|
|
667
|
-
signWithInstallationKey(signatureText: string): Uint8Array;
|
|
668
|
-
createInboxSignatureRequest(): SignatureRequestHandle | undefined;
|
|
669
|
-
addWalletSignatureRequest(newIdentifier: Identifier): Promise<SignatureRequestHandle>;
|
|
670
|
-
revokeWalletSignatureRequest(identifier: Identifier): Promise<SignatureRequestHandle>;
|
|
671
|
-
verifySignedWithInstallationKey(signatureText: string, signatureBytes: Uint8Array): void;
|
|
672
|
-
revokeInstallationsSignatureRequest(installationIds: Uint8Array[]): Promise<SignatureRequestHandle>;
|
|
673
|
-
changeRecoveryIdentifierSignatureRequest(newRecoveryIdentifier: Identifier): Promise<SignatureRequestHandle>;
|
|
674
|
-
revokeAllOtherInstallationsSignatureRequest(): Promise<SignatureRequestHandle | undefined>;
|
|
675
674
|
/**
|
|
676
675
|
* Output booleans should be zipped with the index of input identifiers
|
|
677
676
|
*/
|
|
@@ -717,11 +716,12 @@ export class Conversation {
|
|
|
717
716
|
isSuperAdmin(inboxId: string): boolean;
|
|
718
717
|
removeMembers(accountIdentifiers: Identifier[]): Promise<void>;
|
|
719
718
|
addSuperAdmin(inboxId: string): Promise<void>;
|
|
720
|
-
sendAttachment(attachment: Attachment, optimistic?: boolean | null): Promise<string>;
|
|
721
719
|
/**
|
|
722
|
-
*
|
|
720
|
+
* Prepare a message for later publishing.
|
|
721
|
+
* Stores the message locally without publishing. Returns the message ID.
|
|
723
722
|
*/
|
|
724
|
-
|
|
723
|
+
prepareMessage(encodedContent: EncodedContent, shouldPush: boolean): string;
|
|
724
|
+
sendAttachment(attachment: Attachment, optimistic?: boolean | null): Promise<string>;
|
|
725
725
|
updateAppData(appData: string): Promise<void>;
|
|
726
726
|
dmPeerInboxId(): string;
|
|
727
727
|
membershipState(): GroupMembershipState;
|
|
@@ -741,6 +741,10 @@ export class Conversation {
|
|
|
741
741
|
getLastReadTimes(): Promise<any>;
|
|
742
742
|
findEnrichedMessages(opts?: ListMessagesOptions | null): Promise<DecodedMessage[]>;
|
|
743
743
|
groupImageUrlSquare(): string;
|
|
744
|
+
/**
|
|
745
|
+
* Publish a previously prepared message by ID.
|
|
746
|
+
*/
|
|
747
|
+
publishStoredMessage(messageId: string): Promise<void>;
|
|
744
748
|
sendRemoteAttachment(remoteAttachment: RemoteAttachment, optimistic?: boolean | null): Promise<string>;
|
|
745
749
|
sendWalletSendCalls(walletSendCalls: WalletSendCalls, optimistic?: boolean | null): Promise<string>;
|
|
746
750
|
addMembersByInboxId(inboxIds: string[]): Promise<void>;
|
|
@@ -748,7 +752,6 @@ export class Conversation {
|
|
|
748
752
|
updatePermissionPolicy(permissionUpdateType: PermissionUpdateType, permissionPolicyOption: PermissionPolicy, metadataField?: MetadataField | null): Promise<void>;
|
|
749
753
|
removeMembersByInboxId(inboxIds: string[]): Promise<void>;
|
|
750
754
|
sendTransactionReference(transactionReference: TransactionReference, optimistic?: boolean | null): Promise<string>;
|
|
751
|
-
findMessagesWithReactions(opts?: ListMessagesOptions | null): Promise<MessageWithReactions[]>;
|
|
752
755
|
sendMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment, optimistic?: boolean | null): Promise<string>;
|
|
753
756
|
messageDisappearingSettings(): MessageDisappearingSettings | undefined;
|
|
754
757
|
updateGroupImageUrlSquare(groupImageUrlSquare: string): Promise<void>;
|
|
@@ -806,6 +809,14 @@ export class Conversations {
|
|
|
806
809
|
sync(): Promise<void>;
|
|
807
810
|
stream(callback: any, conversationType?: ConversationType | null): StreamCloser;
|
|
808
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);
|
|
819
|
+
}
|
|
809
820
|
export class IntoUnderlyingByteSource {
|
|
810
821
|
private constructor();
|
|
811
822
|
free(): void;
|
|
@@ -866,26 +877,76 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
866
877
|
|
|
867
878
|
export interface InitOutput {
|
|
868
879
|
readonly memory: WebAssembly.Memory;
|
|
869
|
-
readonly
|
|
880
|
+
readonly contentTypeAttachment: () => any;
|
|
881
|
+
readonly contentTypeMarkdown: () => any;
|
|
882
|
+
readonly contentTypeMultiRemoteAttachment: () => any;
|
|
883
|
+
readonly contentTypeReadReceipt: () => any;
|
|
884
|
+
readonly contentTypeReply: () => any;
|
|
885
|
+
readonly contentTypeText: () => any;
|
|
886
|
+
readonly contentTypeTransactionReference: () => any;
|
|
887
|
+
readonly encodeAttachment: (a: any) => [number, number, number];
|
|
888
|
+
readonly encodeMarkdown: (a: number, b: number) => [number, number, number];
|
|
889
|
+
readonly encodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
890
|
+
readonly encodeReadReceipt: (a: any) => [number, number, number];
|
|
891
|
+
readonly encodeText: (a: number, b: number) => [number, number, number];
|
|
892
|
+
readonly encodeTransactionReference: (a: any) => [number, number, number];
|
|
893
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
870
894
|
readonly __wbg_conversation_free: (a: number, b: number) => void;
|
|
871
895
|
readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
872
896
|
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
897
|
+
readonly __wbg_deletedmessage_free: (a: number, b: number) => void;
|
|
873
898
|
readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
874
899
|
readonly __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
|
|
875
900
|
readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
|
|
901
|
+
readonly __wbg_get_deletedmessage_adminInboxId: (a: number) => [number, number];
|
|
902
|
+
readonly __wbg_get_deletedmessage_deletedBy: (a: number) => number;
|
|
876
903
|
readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
877
904
|
readonly __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
|
|
878
905
|
readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
906
|
+
readonly __wbg_set_deletedmessage_adminInboxId: (a: number, b: number, c: number) => void;
|
|
907
|
+
readonly __wbg_set_deletedmessage_deletedBy: (a: number, b: number) => void;
|
|
908
|
+
readonly __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
|
|
879
909
|
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
880
|
-
readonly
|
|
881
|
-
readonly
|
|
882
|
-
readonly
|
|
910
|
+
readonly applySignatureRequest: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
911
|
+
readonly client_accountIdentifier: (a: number) => any;
|
|
912
|
+
readonly client_addWalletSignatureRequest: (a: number, b: any) => any;
|
|
913
|
+
readonly client_apiAggregateStatistics: (a: number) => [number, number];
|
|
914
|
+
readonly client_apiIdentityStatistics: (a: number) => any;
|
|
915
|
+
readonly client_apiStatistics: (a: number) => any;
|
|
916
|
+
readonly client_appVersion: (a: number) => [number, number];
|
|
917
|
+
readonly client_applySignatureRequest: (a: number, b: number) => any;
|
|
918
|
+
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
919
|
+
readonly client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
|
|
920
|
+
readonly client_clearAllStatistics: (a: number) => void;
|
|
921
|
+
readonly client_conversations: (a: number) => number;
|
|
922
|
+
readonly client_createInboxSignatureRequest: (a: number) => [number, number, number];
|
|
923
|
+
readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
883
924
|
readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
884
925
|
readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
885
926
|
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
927
|
+
readonly client_inboxId: (a: number) => [number, number];
|
|
886
928
|
readonly client_inboxState: (a: number, b: number) => any;
|
|
929
|
+
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
930
|
+
readonly client_installationId: (a: number) => [number, number];
|
|
931
|
+
readonly client_installationIdBytes: (a: number) => any;
|
|
932
|
+
readonly client_isRegistered: (a: number) => number;
|
|
933
|
+
readonly client_libxmtpVersion: (a: number) => [number, number];
|
|
934
|
+
readonly client_registerIdentity: (a: number, b: number) => any;
|
|
935
|
+
readonly client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
|
|
936
|
+
readonly client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
|
|
937
|
+
readonly client_revokeWalletSignatureRequest: (a: number, b: any) => any;
|
|
938
|
+
readonly client_sendSyncRequest: (a: number) => any;
|
|
887
939
|
readonly client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
940
|
+
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
941
|
+
readonly client_syncPreferences: (a: number) => any;
|
|
942
|
+
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
943
|
+
readonly contentTypeActions: () => any;
|
|
944
|
+
readonly contentTypeGroupUpdated: () => any;
|
|
945
|
+
readonly contentTypeIntent: () => any;
|
|
888
946
|
readonly contentTypeLeaveRequest: () => any;
|
|
947
|
+
readonly contentTypeReaction: () => any;
|
|
948
|
+
readonly contentTypeRemoteAttachment: () => any;
|
|
949
|
+
readonly contentTypeWalletSendCalls: () => any;
|
|
889
950
|
readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
890
951
|
readonly conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
891
952
|
readonly conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
@@ -900,7 +961,6 @@ export interface InitOutput {
|
|
|
900
961
|
readonly conversation_findDuplicateDms: (a: number) => any;
|
|
901
962
|
readonly conversation_findEnrichedMessages: (a: number, b: number) => any;
|
|
902
963
|
readonly conversation_findMessages: (a: number, b: number) => any;
|
|
903
|
-
readonly conversation_findMessagesWithReactions: (a: number, b: number) => any;
|
|
904
964
|
readonly conversation_getDebugInfo: (a: number) => any;
|
|
905
965
|
readonly conversation_getHmacKeys: (a: number) => [number, number, number];
|
|
906
966
|
readonly conversation_getLastReadTimes: (a: number) => any;
|
|
@@ -919,8 +979,10 @@ export interface InitOutput {
|
|
|
919
979
|
readonly conversation_membershipState: (a: number) => [number, number, number];
|
|
920
980
|
readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
921
981
|
readonly conversation_pausedForVersion: (a: number) => [number, number, number, number];
|
|
982
|
+
readonly conversation_prepareMessage: (a: number, b: any, c: number) => [number, number, number, number];
|
|
922
983
|
readonly conversation_processStreamedGroupMessage: (a: number, b: any) => any;
|
|
923
984
|
readonly conversation_publishMessages: (a: number) => any;
|
|
985
|
+
readonly conversation_publishStoredMessage: (a: number, b: number, c: number) => any;
|
|
924
986
|
readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
925
987
|
readonly conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
926
988
|
readonly conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
@@ -932,7 +994,6 @@ export interface InitOutput {
|
|
|
932
994
|
readonly conversation_sendIntent: (a: number, b: any, c: number) => any;
|
|
933
995
|
readonly conversation_sendMarkdown: (a: number, b: number, c: number, d: number) => any;
|
|
934
996
|
readonly conversation_sendMultiRemoteAttachment: (a: number, b: any, c: number) => any;
|
|
935
|
-
readonly conversation_sendOptimistic: (a: number, b: any, c: any) => [number, number, number, number];
|
|
936
997
|
readonly conversation_sendReaction: (a: number, b: any, c: number) => any;
|
|
937
998
|
readonly conversation_sendReadReceipt: (a: number, b: number) => any;
|
|
938
999
|
readonly conversation_sendRemoteAttachment: (a: number, b: any, c: number) => any;
|
|
@@ -971,77 +1032,32 @@ export interface InitOutput {
|
|
|
971
1032
|
readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
972
1033
|
readonly conversations_sync: (a: number) => any;
|
|
973
1034
|
readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
974
|
-
readonly generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
|
|
975
|
-
readonly getInboxIdForIdentifier: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
|
|
976
|
-
readonly inboxStateFromInboxIds: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
977
|
-
readonly metadataFieldName: (a: number) => [number, number];
|
|
978
|
-
readonly streamcloser_end: (a: number) => void;
|
|
979
|
-
readonly streamcloser_endAndWait: (a: number) => any;
|
|
980
|
-
readonly streamcloser_isClosed: (a: number) => number;
|
|
981
|
-
readonly streamcloser_waitForReady: (a: number) => any;
|
|
982
|
-
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
983
|
-
readonly __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
|
|
984
|
-
readonly applySignatureRequest: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
985
|
-
readonly client_accountIdentifier: (a: number) => any;
|
|
986
|
-
readonly client_addWalletSignatureRequest: (a: number, b: any) => any;
|
|
987
|
-
readonly client_apiAggregateStatistics: (a: number) => [number, number];
|
|
988
|
-
readonly client_apiIdentityStatistics: (a: number) => any;
|
|
989
|
-
readonly client_apiStatistics: (a: number) => any;
|
|
990
|
-
readonly client_appVersion: (a: number) => [number, number];
|
|
991
|
-
readonly client_applySignatureRequest: (a: number, b: number) => any;
|
|
992
|
-
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
993
|
-
readonly client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
|
|
994
|
-
readonly client_clearAllStatistics: (a: number) => void;
|
|
995
|
-
readonly client_conversations: (a: number) => number;
|
|
996
|
-
readonly client_createInboxSignatureRequest: (a: number) => [number, number, number];
|
|
997
|
-
readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
998
|
-
readonly client_inboxId: (a: number) => [number, number];
|
|
999
|
-
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
1000
|
-
readonly client_installationId: (a: number) => [number, number];
|
|
1001
|
-
readonly client_installationIdBytes: (a: number) => any;
|
|
1002
|
-
readonly client_isRegistered: (a: number) => number;
|
|
1003
|
-
readonly client_libxmtpVersion: (a: number) => [number, number];
|
|
1004
|
-
readonly client_registerIdentity: (a: number, b: number) => any;
|
|
1005
|
-
readonly client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
|
|
1006
|
-
readonly client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
|
|
1007
|
-
readonly client_revokeWalletSignatureRequest: (a: number, b: any) => any;
|
|
1008
|
-
readonly client_sendSyncRequest: (a: number) => any;
|
|
1009
|
-
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
1010
|
-
readonly client_syncPreferences: (a: number) => any;
|
|
1011
|
-
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
1012
|
-
readonly contentTypeActions: () => any;
|
|
1013
|
-
readonly contentTypeAttachment: () => any;
|
|
1014
|
-
readonly contentTypeGroupUpdated: () => any;
|
|
1015
|
-
readonly contentTypeIntent: () => any;
|
|
1016
|
-
readonly contentTypeMarkdown: () => any;
|
|
1017
|
-
readonly contentTypeMultiRemoteAttachment: () => any;
|
|
1018
|
-
readonly contentTypeReaction: () => any;
|
|
1019
|
-
readonly contentTypeReadReceipt: () => any;
|
|
1020
|
-
readonly contentTypeRemoteAttachment: () => any;
|
|
1021
|
-
readonly contentTypeReply: () => any;
|
|
1022
|
-
readonly contentTypeText: () => any;
|
|
1023
|
-
readonly contentTypeTransactionReference: () => any;
|
|
1024
|
-
readonly contentTypeWalletSendCalls: () => any;
|
|
1025
1035
|
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;
|
|
1026
1036
|
readonly decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
|
|
1027
1037
|
readonly encodeActions: (a: any) => [number, number, number];
|
|
1028
|
-
readonly encodeAttachment: (a: any) => [number, number, number];
|
|
1029
1038
|
readonly encodeIntent: (a: any) => [number, number, number];
|
|
1030
|
-
readonly encodeMarkdown: (a: number, b: number) => [number, number, number];
|
|
1031
|
-
readonly encodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
1032
1039
|
readonly encodeReaction: (a: any) => [number, number, number];
|
|
1033
|
-
readonly encodeReadReceipt: (a: any) => [number, number, number];
|
|
1034
1040
|
readonly encodeRemoteAttachment: (a: any) => [number, number, number];
|
|
1035
|
-
readonly encodeText: (a: number, b: number) => [number, number, number];
|
|
1036
|
-
readonly encodeTransactionReference: (a: any) => [number, number, number];
|
|
1037
1041
|
readonly encodeWalletSendCalls: (a: any) => [number, number, number];
|
|
1038
1042
|
readonly encryptAttachment: (a: any) => [number, number, number];
|
|
1043
|
+
readonly generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
|
|
1044
|
+
readonly getInboxIdForIdentifier: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
|
|
1045
|
+
readonly inboxStateFromInboxIds: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
1039
1046
|
readonly revokeInstallationsSignatureRequest: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
1040
1047
|
readonly signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
|
|
1041
1048
|
readonly signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
|
|
1042
1049
|
readonly signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
|
|
1043
1050
|
readonly signaturerequesthandle_signatureText: (a: number) => any;
|
|
1051
|
+
readonly streamcloser_end: (a: number) => void;
|
|
1052
|
+
readonly streamcloser_endAndWait: (a: number) => any;
|
|
1053
|
+
readonly streamcloser_isClosed: (a: number) => number;
|
|
1054
|
+
readonly streamcloser_waitForReady: (a: number) => any;
|
|
1044
1055
|
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
1056
|
+
readonly __wbg_authhandle_free: (a: number, b: number) => void;
|
|
1057
|
+
readonly authhandle_id: (a: number) => number;
|
|
1058
|
+
readonly authhandle_new: () => number;
|
|
1059
|
+
readonly authhandle_set: (a: number, b: any) => any;
|
|
1060
|
+
readonly metadataFieldName: (a: number) => [number, number];
|
|
1045
1061
|
readonly opfsClearAll: () => any;
|
|
1046
1062
|
readonly opfsDeleteFile: (a: number, b: number) => any;
|
|
1047
1063
|
readonly opfsExportDb: (a: number, b: number) => any;
|
|
@@ -1073,25 +1089,25 @@ export interface InitOutput {
|
|
|
1073
1089
|
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
1074
1090
|
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
1075
1091
|
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
1076
|
-
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
1077
|
-
readonly intounderlyingsink_abort: (a: number, b: any) => any;
|
|
1078
|
-
readonly intounderlyingsink_close: (a: number) => any;
|
|
1079
|
-
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
1080
1092
|
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
1081
1093
|
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
1082
1094
|
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
1083
1095
|
readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
1084
1096
|
readonly intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
1085
1097
|
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
1086
|
-
readonly
|
|
1087
|
-
readonly
|
|
1088
|
-
readonly
|
|
1089
|
-
readonly
|
|
1090
|
-
readonly
|
|
1091
|
-
readonly
|
|
1092
|
-
readonly
|
|
1093
|
-
readonly
|
|
1094
|
-
readonly
|
|
1098
|
+
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
1099
|
+
readonly intounderlyingsink_abort: (a: number, b: any) => any;
|
|
1100
|
+
readonly intounderlyingsink_close: (a: number) => any;
|
|
1101
|
+
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
1102
|
+
readonly wasm_bindgen__convert__closures_____invoke__ha66b59b58c7b6e14: (a: number, b: number) => void;
|
|
1103
|
+
readonly wasm_bindgen__closure__destroy__h43bd69f6f2f23fdf: (a: number, b: number) => void;
|
|
1104
|
+
readonly wasm_bindgen__convert__closures_____invoke__hb3ea4cec5b2a99b4: (a: number, b: number) => void;
|
|
1105
|
+
readonly wasm_bindgen__closure__destroy__h3dd912ac8e2d6083: (a: number, b: number) => void;
|
|
1106
|
+
readonly wasm_bindgen__convert__closures_____invoke__h989c99c207fff0d8: (a: number, b: number, c: any) => void;
|
|
1107
|
+
readonly wasm_bindgen__closure__destroy__hab695a3e04b8e88a: (a: number, b: number) => void;
|
|
1108
|
+
readonly wasm_bindgen__convert__closures_____invoke__h57fa53c0b5bdcaf1: (a: number, b: number) => void;
|
|
1109
|
+
readonly wasm_bindgen__closure__destroy__hdc965c5deda6531b: (a: number, b: number) => void;
|
|
1110
|
+
readonly wasm_bindgen__convert__closures_____invoke__h09c21df9c40da302: (a: number, b: number, c: any, d: any) => void;
|
|
1095
1111
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
1096
1112
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
1097
1113
|
readonly __wbindgen_exn_store: (a: number) => void;
|