@xmtp/wasm-bindings 1.10.0 → 1.11.0-dev.57a7203
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 +256 -124
- package/dist/bindings_wasm.js +514 -461
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +109 -108
- package/package.json +3 -4
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -7,6 +7,22 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
type ReadableStreamType = "bytes";
|
|
10
|
+
/**
|
|
11
|
+
* A single per-worker interval override (nanoseconds).
|
|
12
|
+
*/
|
|
13
|
+
export interface WorkerIntervalOverride {
|
|
14
|
+
kind: WorkerKind;
|
|
15
|
+
intervalNs: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* A single per-worker jitter override (nanoseconds).
|
|
20
|
+
*/
|
|
21
|
+
export interface WorkerJitterOverride {
|
|
22
|
+
kind: WorkerKind;
|
|
23
|
+
jitterNs: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
10
26
|
/**
|
|
11
27
|
* An available archive in the sync group
|
|
12
28
|
*/
|
|
@@ -27,6 +43,46 @@ export interface ArchiveMetadata {
|
|
|
27
43
|
endNs?: bigint;
|
|
28
44
|
}
|
|
29
45
|
|
|
46
|
+
/**
|
|
47
|
+
* Options for [`Conversation::enableProposals`]. Mirrors
|
|
48
|
+
* [`xmtp_mls::groups::EnableProposalsOptions`].
|
|
49
|
+
*/
|
|
50
|
+
export interface EnableProposalsOptions {
|
|
51
|
+
/**
|
|
52
|
+
* Skip the pre-flight key-package capability check. Post-d14n
|
|
53
|
+
* every client supports proposals by version floor alone; set
|
|
54
|
+
* `true` to bypass the per-member scan in that environment.
|
|
55
|
+
*/
|
|
56
|
+
force?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Override the `MIN_SUPPORTED_PROTOCOL_VERSION` floor. `None`
|
|
59
|
+
* defaults to `xmtp_configuration::PROPOSALS_MIN_PROTOCOL_VERSION`.
|
|
60
|
+
*/
|
|
61
|
+
minVersion?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Options for `waitForRegistrationVisible`.
|
|
66
|
+
*
|
|
67
|
+
* Both `quorumPercentage` and `quorumAbsolute` are optional; if neither is
|
|
68
|
+
* provided, the default of 50 % is used. When both are provided,
|
|
69
|
+
* `quorumAbsolute` takes precedence.
|
|
70
|
+
*/
|
|
71
|
+
export interface WasmVisibilityConfirmationOptions {
|
|
72
|
+
/**
|
|
73
|
+
* Fraction of nodes that must confirm (e.g. 0.5 for 50 %).
|
|
74
|
+
*/
|
|
75
|
+
quorumPercentage?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Exact number of nodes that must confirm.
|
|
78
|
+
*/
|
|
79
|
+
quorumAbsolute?: number;
|
|
80
|
+
/**
|
|
81
|
+
* Maximum wait time in milliseconds (default: 30 000).
|
|
82
|
+
*/
|
|
83
|
+
timeoutMs?: number;
|
|
84
|
+
}
|
|
85
|
+
|
|
30
86
|
/**
|
|
31
87
|
* Options for creating or sending an archive
|
|
32
88
|
*/
|
|
@@ -37,6 +93,20 @@ export interface ArchiveOptions {
|
|
|
37
93
|
excludeDisappearingMessages: boolean;
|
|
38
94
|
}
|
|
39
95
|
|
|
96
|
+
/**
|
|
97
|
+
* Options for the top-level `send*` convenience helpers. `shouldPush` is
|
|
98
|
+
* derived from the content type\'s codec, so callers only control optimistic
|
|
99
|
+
* delivery and the idempotency key.
|
|
100
|
+
*/
|
|
101
|
+
export interface SendOpts {
|
|
102
|
+
optimistic?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Optional idempotency key. Re-sending identical content with the same key
|
|
105
|
+
* produces the same message id and is deduplicated. Defaults to a timestamp.
|
|
106
|
+
*/
|
|
107
|
+
idempotencyKey?: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
40
110
|
/**
|
|
41
111
|
* Result of encrypting an attachment for remote storage.
|
|
42
112
|
*/
|
|
@@ -89,6 +159,28 @@ export interface LogOptions {
|
|
|
89
159
|
level?: LogLevel;
|
|
90
160
|
}
|
|
91
161
|
|
|
162
|
+
/**
|
|
163
|
+
* Tuning for the background worker scheduler. All fields optional.
|
|
164
|
+
*/
|
|
165
|
+
export interface WorkerConfigOptions {
|
|
166
|
+
/**
|
|
167
|
+
* Global default interval for all workers, in nanoseconds.
|
|
168
|
+
*/
|
|
169
|
+
defaultIntervalNs?: number;
|
|
170
|
+
/**
|
|
171
|
+
* Per-worker interval overrides (nanoseconds).
|
|
172
|
+
*/
|
|
173
|
+
workerIntervalsNs?: WorkerIntervalOverride[];
|
|
174
|
+
/**
|
|
175
|
+
* Per-worker jitter overrides (nanoseconds).
|
|
176
|
+
*/
|
|
177
|
+
workerJittersNs?: WorkerJitterOverride[];
|
|
178
|
+
/**
|
|
179
|
+
* Workers to disable.
|
|
180
|
+
*/
|
|
181
|
+
disabledWorkers?: WorkerKind[];
|
|
182
|
+
}
|
|
183
|
+
|
|
92
184
|
export interface Action {
|
|
93
185
|
id: string;
|
|
94
186
|
label: string;
|
|
@@ -390,6 +482,11 @@ export interface Reply {
|
|
|
390
482
|
export interface SendMessageOpts {
|
|
391
483
|
shouldPush: boolean;
|
|
392
484
|
optimistic?: boolean;
|
|
485
|
+
/**
|
|
486
|
+
* Optional idempotency key. Re-sending identical content with the same key
|
|
487
|
+
* produces the same message id and is deduplicated. Defaults to a timestamp.
|
|
488
|
+
*/
|
|
489
|
+
idempotencyKey?: string;
|
|
393
490
|
}
|
|
394
491
|
|
|
395
492
|
export interface TransactionMetadata {
|
|
@@ -520,7 +617,7 @@ export class Client {
|
|
|
520
617
|
*/
|
|
521
618
|
inboxState(refreshFromNetwork: boolean): Promise<InboxState>;
|
|
522
619
|
inboxStateFromInboxIds(inboxIds: string[], refreshFromNetwork: boolean): Promise<InboxState[]>;
|
|
523
|
-
registerIdentity(signatureRequest: SignatureRequestHandle): Promise<void>;
|
|
620
|
+
registerIdentity(signatureRequest: SignatureRequestHandle, visibilityConfirmationOptions?: WasmVisibilityConfirmationOptions | null): Promise<void>;
|
|
524
621
|
revokeAllOtherInstallationsSignatureRequest(): Promise<SignatureRequestHandle | undefined>;
|
|
525
622
|
revokeInstallationsSignatureRequest(installationIds: Uint8Array[]): Promise<SignatureRequestHandle>;
|
|
526
623
|
revokeWalletSignatureRequest(identifier: Identifier): Promise<SignatureRequestHandle>;
|
|
@@ -528,6 +625,15 @@ export class Client {
|
|
|
528
625
|
signWithInstallationKey(signatureText: string): Uint8Array;
|
|
529
626
|
syncPreferences(): Promise<GroupSyncSummary>;
|
|
530
627
|
verifySignedWithInstallationKey(signatureText: string, signatureBytes: Uint8Array): void;
|
|
628
|
+
/**
|
|
629
|
+
* Wait until this client's registration is visible on the network.
|
|
630
|
+
*
|
|
631
|
+
* For V3 clients (no cursor stored) this falls back to checking
|
|
632
|
+
* `isRegistered`. For D14n clients it polls each node directly and
|
|
633
|
+
* returns once a quorum confirms both the identity-update and
|
|
634
|
+
* key-package envelopes are visible.
|
|
635
|
+
*/
|
|
636
|
+
waitForRegistrationVisible(options?: WasmVisibilityConfirmationOptions | null): Promise<void>;
|
|
531
637
|
readonly accountIdentifier: Identifier;
|
|
532
638
|
readonly appVersion: string;
|
|
533
639
|
readonly inboxId: string;
|
|
@@ -587,6 +693,16 @@ export class Conversation {
|
|
|
587
693
|
countMessages(opts?: ListMessagesOptions | null): Promise<bigint>;
|
|
588
694
|
createdAtNs(): bigint;
|
|
589
695
|
dmPeerInboxId(): string;
|
|
696
|
+
/**
|
|
697
|
+
* Enable AppData-proposal-based metadata updates on this group.
|
|
698
|
+
*
|
|
699
|
+
* Stages the bootstrap commit that migrates the group's metadata
|
|
700
|
+
* from the legacy GroupContextExtensions shape into the OpenMLS
|
|
701
|
+
* AppData dictionary. Hard-fails if any member's latest key
|
|
702
|
+
* package doesn't advertise `ProposalType::AppDataUpdate`. One-
|
|
703
|
+
* way: migrated groups cannot return to the legacy path.
|
|
704
|
+
*/
|
|
705
|
+
enableProposals(options: EnableProposalsOptions): Promise<void>;
|
|
590
706
|
findDuplicateDms(): Promise<Conversation[]>;
|
|
591
707
|
findEnrichedMessages(opts?: ListMessagesOptions | null): Promise<DecodedMessage[]>;
|
|
592
708
|
findMessages(opts?: ListMessagesOptions | null): Promise<Message[]>;
|
|
@@ -612,8 +728,15 @@ export class Conversation {
|
|
|
612
728
|
* Prepare a message for later publishing.
|
|
613
729
|
* Stores the message locally without publishing. Returns the message ID.
|
|
614
730
|
*/
|
|
615
|
-
prepareMessage(encodedContent: EncodedContent, shouldPush: boolean): string;
|
|
731
|
+
prepareMessage(encodedContent: EncodedContent, shouldPush: boolean, idempotencyKey?: string | null): string;
|
|
616
732
|
processStreamedGroupMessage(envelopeBytes: Uint8Array): Promise<Message[]>;
|
|
733
|
+
/**
|
|
734
|
+
* Whether this group has migrated to AppData-proposal-based
|
|
735
|
+
* metadata updates (the `AppDataDictionary` group-context
|
|
736
|
+
* extension is present). `false` means the group is still on
|
|
737
|
+
* the legacy GroupContextExtensions path.
|
|
738
|
+
*/
|
|
739
|
+
proposalsEnabled(): boolean;
|
|
617
740
|
/**
|
|
618
741
|
* Publish all unpublished messages
|
|
619
742
|
*/
|
|
@@ -628,18 +751,18 @@ export class Conversation {
|
|
|
628
751
|
removeMessageDisappearingSettings(): Promise<void>;
|
|
629
752
|
removeSuperAdmin(inboxId: string): Promise<void>;
|
|
630
753
|
send(encodedContent: EncodedContent, opts: SendMessageOpts): Promise<string>;
|
|
631
|
-
sendActions(actions: Actions,
|
|
632
|
-
sendAttachment(attachment: Attachment,
|
|
633
|
-
sendIntent(intent: Intent,
|
|
634
|
-
sendMarkdown(markdown: string,
|
|
635
|
-
sendMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment,
|
|
636
|
-
sendReaction(reaction: Reaction,
|
|
637
|
-
sendReadReceipt(
|
|
638
|
-
sendRemoteAttachment(remoteAttachment: RemoteAttachment,
|
|
639
|
-
sendReply(reply: Reply,
|
|
640
|
-
sendText(text: string,
|
|
641
|
-
sendTransactionReference(transactionReference: TransactionReference,
|
|
642
|
-
sendWalletSendCalls(walletSendCalls: WalletSendCalls,
|
|
754
|
+
sendActions(actions: Actions, opts?: SendOpts | null): Promise<string>;
|
|
755
|
+
sendAttachment(attachment: Attachment, opts?: SendOpts | null): Promise<string>;
|
|
756
|
+
sendIntent(intent: Intent, opts?: SendOpts | null): Promise<string>;
|
|
757
|
+
sendMarkdown(markdown: string, opts?: SendOpts | null): Promise<string>;
|
|
758
|
+
sendMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment, opts?: SendOpts | null): Promise<string>;
|
|
759
|
+
sendReaction(reaction: Reaction, opts?: SendOpts | null): Promise<string>;
|
|
760
|
+
sendReadReceipt(opts?: SendOpts | null): Promise<string>;
|
|
761
|
+
sendRemoteAttachment(remoteAttachment: RemoteAttachment, opts?: SendOpts | null): Promise<string>;
|
|
762
|
+
sendReply(reply: Reply, opts?: SendOpts | null): Promise<string>;
|
|
763
|
+
sendText(text: string, opts?: SendOpts | null): Promise<string>;
|
|
764
|
+
sendTransactionReference(transactionReference: TransactionReference, opts?: SendOpts | null): Promise<string>;
|
|
765
|
+
sendWalletSendCalls(walletSendCalls: WalletSendCalls, opts?: SendOpts | null): Promise<string>;
|
|
643
766
|
stream(callback: any): StreamCloser;
|
|
644
767
|
superAdminList(): string[];
|
|
645
768
|
sync(): Promise<void>;
|
|
@@ -949,6 +1072,14 @@ export class WasmBindgenTestContext {
|
|
|
949
1072
|
run(tests: any[]): Promise<any>;
|
|
950
1073
|
}
|
|
951
1074
|
|
|
1075
|
+
export enum WorkerKind {
|
|
1076
|
+
DeviceSync = 0,
|
|
1077
|
+
DisappearingMessages = 1,
|
|
1078
|
+
KeyPackageCleaner = 2,
|
|
1079
|
+
CommitLog = 3,
|
|
1080
|
+
TaskRunner = 4,
|
|
1081
|
+
}
|
|
1082
|
+
|
|
952
1083
|
export enum XmtpEnv {
|
|
953
1084
|
Local = 0,
|
|
954
1085
|
Dev = 1,
|
|
@@ -1038,7 +1169,7 @@ export function contentTypeTransactionReference(): ContentTypeId;
|
|
|
1038
1169
|
|
|
1039
1170
|
export function contentTypeWalletSendCalls(): ContentTypeId;
|
|
1040
1171
|
|
|
1041
|
-
export function createClient(host: string, inboxId: string, accountIdentifier: Identifier, dbPath?: string | null, encryptionKey?: Uint8Array | null, deviceSyncMode?: DeviceSyncMode | null, logOptions?: LogOptions | null, allowOffline?: boolean | null, appVersion?: string | null, gatewayHost?: string | null, nonce?: bigint | null, authCallback?: any | null, authHandle?: AuthHandle | null, clientMode?: ClientMode | null): Promise<Client>;
|
|
1172
|
+
export function createClient(host: string, inboxId: string, accountIdentifier: Identifier, dbPath?: string | null, encryptionKey?: Uint8Array | null, deviceSyncMode?: DeviceSyncMode | null, workerConfig?: WorkerConfigOptions | 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>;
|
|
1042
1173
|
|
|
1043
1174
|
/**
|
|
1044
1175
|
* Create a client from a pre-built Backend.
|
|
@@ -1046,7 +1177,7 @@ export function createClient(host: string, inboxId: string, accountIdentifier: I
|
|
|
1046
1177
|
* The Backend encapsulates all API configuration (env, hosts, auth, TLS).
|
|
1047
1178
|
* This function only needs identity and database configuration.
|
|
1048
1179
|
*/
|
|
1049
|
-
export function createClientWithBackend(backend: Backend, inboxId: string, accountIdentifier: Identifier, dbPath?: string | null, encryptionKey?: Uint8Array | null, deviceSyncMode?: DeviceSyncMode | null, logOptions?: LogOptions | null, allowOffline?: boolean | null, nonce?: bigint | null): Promise<Client>;
|
|
1180
|
+
export function createClientWithBackend(backend: Backend, inboxId: string, accountIdentifier: Identifier, dbPath?: string | null, encryptionKey?: Uint8Array | null, deviceSyncMode?: DeviceSyncMode | null, workerConfig?: WorkerConfigOptions | null, logOptions?: LogOptions | null, allowOffline?: boolean | null, nonce?: bigint | null): Promise<Client>;
|
|
1050
1181
|
|
|
1051
1182
|
/**
|
|
1052
1183
|
* Decrypts an encrypted payload from a remote attachment.
|
|
@@ -1156,52 +1287,36 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
1156
1287
|
|
|
1157
1288
|
export interface InitOutput {
|
|
1158
1289
|
readonly memory: WebAssembly.Memory;
|
|
1159
|
-
readonly
|
|
1160
|
-
readonly
|
|
1161
|
-
readonly
|
|
1162
|
-
readonly
|
|
1163
|
-
readonly
|
|
1164
|
-
readonly
|
|
1165
|
-
readonly
|
|
1166
|
-
readonly
|
|
1167
|
-
readonly
|
|
1168
|
-
readonly
|
|
1169
|
-
readonly
|
|
1170
|
-
readonly
|
|
1171
|
-
readonly
|
|
1172
|
-
readonly
|
|
1173
|
-
readonly
|
|
1174
|
-
readonly
|
|
1175
|
-
readonly
|
|
1176
|
-
readonly
|
|
1177
|
-
readonly createClientWithBackend: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: bigint) => any;
|
|
1178
|
-
readonly client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
|
|
1179
|
-
readonly client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
|
|
1180
|
-
readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
1181
|
-
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
1182
|
-
readonly client_inboxState: (a: number, b: number) => any;
|
|
1183
|
-
readonly inboxStateFromInboxIds: (a: number, b: number, c: number) => any;
|
|
1184
|
-
readonly metadataFieldName: (a: number) => [number, number];
|
|
1290
|
+
readonly __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
|
|
1291
|
+
readonly applySignatureRequest: (a: number, b: number) => any;
|
|
1292
|
+
readonly client_addWalletSignatureRequest: (a: number, b: any) => any;
|
|
1293
|
+
readonly client_applySignatureRequest: (a: number, b: number) => any;
|
|
1294
|
+
readonly client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
|
|
1295
|
+
readonly client_createInboxSignatureRequest: (a: number) => [number, number, number];
|
|
1296
|
+
readonly client_registerIdentity: (a: number, b: number, c: number) => any;
|
|
1297
|
+
readonly client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
|
|
1298
|
+
readonly client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
|
|
1299
|
+
readonly client_revokeWalletSignatureRequest: (a: number, b: any) => any;
|
|
1300
|
+
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
1301
|
+
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
1302
|
+
readonly revokeInstallationsSignatureRequest: (a: number, b: any, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
1303
|
+
readonly signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
|
|
1304
|
+
readonly signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
|
|
1305
|
+
readonly signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
|
|
1306
|
+
readonly signaturerequesthandle_signatureText: (a: number) => any;
|
|
1307
|
+
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
1185
1308
|
readonly __wbg_authhandle_free: (a: number, b: number) => void;
|
|
1186
1309
|
readonly __wbg_conversation_free: (a: number, b: number) => void;
|
|
1187
|
-
readonly
|
|
1188
|
-
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
1189
|
-
readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
1190
|
-
readonly __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
|
|
1191
|
-
readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
|
|
1192
|
-
readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
1193
|
-
readonly __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
|
|
1194
|
-
readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
1195
|
-
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
1310
|
+
readonly __wbg_devicesync_free: (a: number, b: number) => void;
|
|
1196
1311
|
readonly authhandle_id: (a: number) => number;
|
|
1197
1312
|
readonly authhandle_new: () => number;
|
|
1198
1313
|
readonly authhandle_set: (a: number, b: any) => any;
|
|
1199
|
-
readonly
|
|
1200
|
-
readonly
|
|
1314
|
+
readonly client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
|
|
1315
|
+
readonly client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
|
|
1316
|
+
readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
1317
|
+
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
1318
|
+
readonly client_inboxState: (a: number, b: number) => any;
|
|
1201
1319
|
readonly contentTypeGroupUpdated: () => any;
|
|
1202
|
-
readonly contentTypeIntent: () => any;
|
|
1203
|
-
readonly contentTypeLeaveRequest: () => any;
|
|
1204
|
-
readonly contentTypeReadReceipt: () => any;
|
|
1205
1320
|
readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
1206
1321
|
readonly conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
1207
1322
|
readonly conversation_addMembersByIdentity: (a: number, b: number, c: number) => any;
|
|
@@ -1209,10 +1324,10 @@ export interface InitOutput {
|
|
|
1209
1324
|
readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
1210
1325
|
readonly conversation_adminList: (a: number) => [number, number, number, number];
|
|
1211
1326
|
readonly conversation_appData: (a: number) => [number, number, number, number];
|
|
1212
|
-
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
1213
1327
|
readonly conversation_countMessages: (a: number, b: number) => any;
|
|
1214
1328
|
readonly conversation_createdAtNs: (a: number) => bigint;
|
|
1215
1329
|
readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
1330
|
+
readonly conversation_enableProposals: (a: number, b: any) => any;
|
|
1216
1331
|
readonly conversation_findDuplicateDms: (a: number) => any;
|
|
1217
1332
|
readonly conversation_findEnrichedMessages: (a: number, b: number) => any;
|
|
1218
1333
|
readonly conversation_findMessages: (a: number, b: number) => any;
|
|
@@ -1234,8 +1349,9 @@ export interface InitOutput {
|
|
|
1234
1349
|
readonly conversation_membershipState: (a: number) => [number, number, number];
|
|
1235
1350
|
readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
1236
1351
|
readonly conversation_pausedForVersion: (a: number) => [number, number, number, number];
|
|
1237
|
-
readonly conversation_prepareMessage: (a: number, b: any, c: number) => [number, number, number, number];
|
|
1352
|
+
readonly conversation_prepareMessage: (a: number, b: any, c: number, d: number, e: number) => [number, number, number, number];
|
|
1238
1353
|
readonly conversation_processStreamedGroupMessage: (a: number, b: any) => any;
|
|
1354
|
+
readonly conversation_proposalsEnabled: (a: number) => [number, number, number];
|
|
1239
1355
|
readonly conversation_publishMessages: (a: number) => any;
|
|
1240
1356
|
readonly conversation_publishStoredMessage: (a: number, b: number, c: number) => any;
|
|
1241
1357
|
readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
@@ -1260,55 +1376,65 @@ export interface InitOutput {
|
|
|
1260
1376
|
readonly conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
1261
1377
|
readonly conversation_sync: (a: number) => any;
|
|
1262
1378
|
readonly conversation_updateAppData: (a: number, b: number, c: number) => any;
|
|
1263
|
-
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
1264
1379
|
readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
1265
1380
|
readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
1266
1381
|
readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
1267
1382
|
readonly conversation_updateMessageDisappearingSettings: (a: number, b: any) => any;
|
|
1268
1383
|
readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
1269
|
-
readonly
|
|
1270
|
-
readonly
|
|
1271
|
-
readonly
|
|
1272
|
-
readonly
|
|
1273
|
-
readonly
|
|
1274
|
-
readonly
|
|
1275
|
-
readonly
|
|
1276
|
-
readonly
|
|
1277
|
-
readonly
|
|
1278
|
-
readonly
|
|
1279
|
-
readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
1280
|
-
readonly conversations_getHmacKeys: (a: number) => [number, number, number];
|
|
1281
|
-
readonly conversations_list: (a: number, b: number) => [number, number, number];
|
|
1282
|
-
readonly conversations_stream: (a: number, b: any, c: number) => [number, number, number];
|
|
1283
|
-
readonly conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
|
|
1284
|
-
readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
|
|
1285
|
-
readonly conversations_streamLocal: (a: number, b: number) => any;
|
|
1286
|
-
readonly conversations_streamMessageDeletions: (a: number, b: any) => [number, number, number];
|
|
1287
|
-
readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
1288
|
-
readonly conversations_sync: (a: number) => any;
|
|
1289
|
-
readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
1290
|
-
readonly encodeIntent: (a: any) => [number, number, number];
|
|
1291
|
-
readonly encodeReadReceipt: (a: any) => [number, number, number];
|
|
1384
|
+
readonly devicesync_archiveMetadata: (a: number, b: any, c: any) => any;
|
|
1385
|
+
readonly devicesync_createArchive: (a: number, b: any, c: any) => any;
|
|
1386
|
+
readonly devicesync_importArchive: (a: number, b: any, c: any) => any;
|
|
1387
|
+
readonly devicesync_listAvailableArchives: (a: number, b: bigint) => [number, number, number, number];
|
|
1388
|
+
readonly devicesync_processSyncArchive: (a: number, b: number, c: number) => any;
|
|
1389
|
+
readonly devicesync_sendSyncArchive: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
|
|
1390
|
+
readonly devicesync_sendSyncRequest: (a: number, b: any, c: number, d: number) => any;
|
|
1391
|
+
readonly devicesync_syncAllDeviceSyncGroups: (a: number) => any;
|
|
1392
|
+
readonly inboxStateFromInboxIds: (a: number, b: number, c: number) => any;
|
|
1393
|
+
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
1292
1394
|
readonly streamcloser_end: (a: number) => void;
|
|
1293
1395
|
readonly streamcloser_endAndWait: (a: number) => any;
|
|
1294
1396
|
readonly streamcloser_isClosed: (a: number) => number;
|
|
1295
1397
|
readonly streamcloser_waitForReady: (a: number) => any;
|
|
1398
|
+
readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
1399
|
+
readonly client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
1400
|
+
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
1401
|
+
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
1402
|
+
readonly metadataFieldName: (a: number) => [number, number];
|
|
1403
|
+
readonly __wbg_backend_free: (a: number, b: number) => void;
|
|
1404
|
+
readonly __wbg_backendbuilder_free: (a: number, b: number) => void;
|
|
1296
1405
|
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
1297
|
-
readonly
|
|
1298
|
-
readonly
|
|
1299
|
-
readonly
|
|
1406
|
+
readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
1407
|
+
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
1408
|
+
readonly __wbg_get_backendbuilder_env: (a: number) => number;
|
|
1409
|
+
readonly __wbg_get_backendbuilder_readonly: (a: number) => number;
|
|
1410
|
+
readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
1411
|
+
readonly __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
|
|
1412
|
+
readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
|
|
1413
|
+
readonly __wbg_set_backendbuilder_env: (a: number, b: number) => void;
|
|
1414
|
+
readonly __wbg_set_backendbuilder_readonly: (a: number, b: number) => void;
|
|
1415
|
+
readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
1416
|
+
readonly __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
|
|
1417
|
+
readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
1418
|
+
readonly backend_appVersion: (a: number) => [number, number];
|
|
1419
|
+
readonly backend_env: (a: number) => number;
|
|
1420
|
+
readonly backend_gatewayHost: (a: number) => [number, number];
|
|
1421
|
+
readonly backend_v3Host: (a: number) => [number, number];
|
|
1422
|
+
readonly backendbuilder_authCallback: (a: number, b: any) => void;
|
|
1423
|
+
readonly backendbuilder_authHandle: (a: number, b: number) => void;
|
|
1424
|
+
readonly backendbuilder_build: (a: number) => [number, number, number];
|
|
1425
|
+
readonly backendbuilder_new: (a: number) => number;
|
|
1426
|
+
readonly backendbuilder_setApiUrl: (a: number, b: number, c: number) => number;
|
|
1427
|
+
readonly backendbuilder_setAppVersion: (a: number, b: number, c: number) => number;
|
|
1428
|
+
readonly backendbuilder_setGatewayHost: (a: number, b: number, c: number) => number;
|
|
1429
|
+
readonly backendbuilder_setReadonly: (a: number, b: number) => number;
|
|
1300
1430
|
readonly client_accountIdentifier: (a: number) => any;
|
|
1301
|
-
readonly client_addWalletSignatureRequest: (a: number, b: any) => any;
|
|
1302
1431
|
readonly client_apiAggregateStatistics: (a: number) => [number, number];
|
|
1303
1432
|
readonly client_apiIdentityStatistics: (a: number) => any;
|
|
1304
1433
|
readonly client_apiStatistics: (a: number) => any;
|
|
1305
1434
|
readonly client_appVersion: (a: number) => [number, number];
|
|
1306
|
-
readonly client_applySignatureRequest: (a: number, b: number) => any;
|
|
1307
1435
|
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
1308
|
-
readonly client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
|
|
1309
1436
|
readonly client_clearAllStatistics: (a: number) => void;
|
|
1310
1437
|
readonly client_conversations: (a: number) => number;
|
|
1311
|
-
readonly client_createInboxSignatureRequest: (a: number) => [number, number, number];
|
|
1312
1438
|
readonly client_device_sync: (a: number) => number;
|
|
1313
1439
|
readonly client_findInboxIdByIdentity: (a: number, b: any) => any;
|
|
1314
1440
|
readonly client_inboxId: (a: number) => [number, number];
|
|
@@ -1317,22 +1443,31 @@ export interface InitOutput {
|
|
|
1317
1443
|
readonly client_installationIdBytes: (a: number) => any;
|
|
1318
1444
|
readonly client_isRegistered: (a: number) => number;
|
|
1319
1445
|
readonly client_libxmtpVersion: (a: number) => [number, number];
|
|
1320
|
-
readonly client_registerIdentity: (a: number, b: number) => any;
|
|
1321
|
-
readonly client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
|
|
1322
|
-
readonly client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
|
|
1323
|
-
readonly client_revokeWalletSignatureRequest: (a: number, b: any) => any;
|
|
1324
|
-
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
1325
1446
|
readonly client_syncPreferences: (a: number) => any;
|
|
1326
|
-
readonly
|
|
1327
|
-
readonly
|
|
1328
|
-
readonly
|
|
1329
|
-
readonly
|
|
1330
|
-
readonly
|
|
1331
|
-
readonly
|
|
1332
|
-
readonly
|
|
1333
|
-
readonly
|
|
1334
|
-
readonly
|
|
1335
|
-
readonly
|
|
1447
|
+
readonly client_waitForRegistrationVisible: (a: number, b: number) => any;
|
|
1448
|
+
readonly conversationlistitem_new: (a: number, b: number, c: number) => number;
|
|
1449
|
+
readonly conversations_createDm: (a: number, b: any, c: number) => any;
|
|
1450
|
+
readonly conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
|
|
1451
|
+
readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
|
|
1452
|
+
readonly conversations_createGroupByInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
1453
|
+
readonly conversations_createGroupOptimistic: (a: number, b: number) => [number, number, number];
|
|
1454
|
+
readonly conversations_deleteMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
1455
|
+
readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
|
|
1456
|
+
readonly conversations_findEnrichedMessageById: (a: number, b: number, c: number) => any;
|
|
1457
|
+
readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
|
|
1458
|
+
readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
1459
|
+
readonly conversations_getHmacKeys: (a: number) => [number, number, number];
|
|
1460
|
+
readonly conversations_list: (a: number, b: number) => [number, number, number];
|
|
1461
|
+
readonly conversations_stream: (a: number, b: any, c: number) => [number, number, number];
|
|
1462
|
+
readonly conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
|
|
1463
|
+
readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
|
|
1464
|
+
readonly conversations_streamLocal: (a: number, b: number) => any;
|
|
1465
|
+
readonly conversations_streamMessageDeletions: (a: number, b: any) => [number, number, number];
|
|
1466
|
+
readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
1467
|
+
readonly conversations_sync: (a: number) => any;
|
|
1468
|
+
readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
1469
|
+
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: bigint, s: number, t: number, u: number) => any;
|
|
1470
|
+
readonly createClientWithBackend: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: bigint) => any;
|
|
1336
1471
|
readonly generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
|
|
1337
1472
|
readonly getInboxIdForIdentifier: (a: number, b: any) => any;
|
|
1338
1473
|
readonly opfsClearAll: () => any;
|
|
@@ -1344,17 +1479,14 @@ export interface InitOutput {
|
|
|
1344
1479
|
readonly opfsInit: () => any;
|
|
1345
1480
|
readonly opfsListFiles: () => any;
|
|
1346
1481
|
readonly opfsPoolCapacity: () => any;
|
|
1347
|
-
readonly revokeInstallationsSignatureRequest: (a: number, b: any, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
1348
|
-
readonly signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
|
|
1349
|
-
readonly signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
|
|
1350
|
-
readonly signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
|
|
1351
|
-
readonly signaturerequesthandle_signatureText: (a: number) => any;
|
|
1352
|
-
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
1353
1482
|
readonly contentTypeActions: () => any;
|
|
1354
1483
|
readonly contentTypeAttachment: () => any;
|
|
1484
|
+
readonly contentTypeIntent: () => any;
|
|
1485
|
+
readonly contentTypeLeaveRequest: () => any;
|
|
1355
1486
|
readonly contentTypeMarkdown: () => any;
|
|
1356
1487
|
readonly contentTypeMultiRemoteAttachment: () => any;
|
|
1357
1488
|
readonly contentTypeReaction: () => any;
|
|
1489
|
+
readonly contentTypeReadReceipt: () => any;
|
|
1358
1490
|
readonly contentTypeRemoteAttachment: () => any;
|
|
1359
1491
|
readonly contentTypeReply: () => any;
|
|
1360
1492
|
readonly contentTypeText: () => any;
|
|
@@ -1363,9 +1495,11 @@ export interface InitOutput {
|
|
|
1363
1495
|
readonly decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
|
|
1364
1496
|
readonly encodeActions: (a: any) => [number, number, number];
|
|
1365
1497
|
readonly encodeAttachment: (a: any) => [number, number, number];
|
|
1498
|
+
readonly encodeIntent: (a: any) => [number, number, number];
|
|
1366
1499
|
readonly encodeMarkdown: (a: number, b: number) => [number, number, number];
|
|
1367
1500
|
readonly encodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
1368
1501
|
readonly encodeReaction: (a: any) => [number, number, number];
|
|
1502
|
+
readonly encodeReadReceipt: (a: any) => [number, number, number];
|
|
1369
1503
|
readonly encodeRemoteAttachment: (a: any) => [number, number, number];
|
|
1370
1504
|
readonly encodeText: (a: number, b: number) => [number, number, number];
|
|
1371
1505
|
readonly encodeTransactionReference: (a: any) => [number, number, number];
|
|
@@ -1394,15 +1528,15 @@ export interface InitOutput {
|
|
|
1394
1528
|
readonly intounderlyingsink_abort: (a: number, b: any) => any;
|
|
1395
1529
|
readonly intounderlyingsink_close: (a: number) => any;
|
|
1396
1530
|
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
1397
|
-
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
1398
|
-
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
1399
|
-
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
1400
1531
|
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
1401
1532
|
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
1402
1533
|
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
1403
1534
|
readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
1404
1535
|
readonly intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
1405
1536
|
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
1537
|
+
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
1538
|
+
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
1539
|
+
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
1406
1540
|
readonly __wbg_wasmbindgentestcontext_free: (a: number, b: number) => void;
|
|
1407
1541
|
readonly __wbgtest_console_debug: (a: any) => void;
|
|
1408
1542
|
readonly __wbgtest_console_error: (a: any) => void;
|
|
@@ -1413,21 +1547,18 @@ export interface InitOutput {
|
|
|
1413
1547
|
readonly wasmbindgentestcontext_include_ignored: (a: number, b: number) => void;
|
|
1414
1548
|
readonly wasmbindgentestcontext_new: (a: number) => number;
|
|
1415
1549
|
readonly wasmbindgentestcontext_run: (a: number, b: number, c: number) => any;
|
|
1550
|
+
readonly __wbgtest_coverage_path: (a: number, b: number, c: number, d: number, e: number, f: bigint) => [number, number];
|
|
1416
1551
|
readonly __wbgbench_dump: () => [number, number];
|
|
1417
1552
|
readonly __wbgbench_import: (a: number, b: number) => void;
|
|
1418
1553
|
readonly __wbgtest_cov_dump: () => [number, number];
|
|
1419
|
-
readonly __wbgtest_coverage_path: (a: number, b: number, c: number, d: number, e: number, f: bigint) => [number, number];
|
|
1420
1554
|
readonly __wbgtest_module_signature: () => [number, bigint];
|
|
1421
|
-
readonly
|
|
1422
|
-
readonly
|
|
1423
|
-
readonly
|
|
1424
|
-
readonly
|
|
1425
|
-
readonly
|
|
1426
|
-
readonly
|
|
1427
|
-
readonly
|
|
1428
|
-
readonly wasm_bindgen__convert__closures_____invoke__h3140913cf557f226: (a: number, b: number) => void;
|
|
1429
|
-
readonly wasm_bindgen__convert__closures_____invoke__hef7996840be5a37a: (a: number, b: number) => void;
|
|
1430
|
-
readonly wasm_bindgen__convert__closures_____invoke__h20bdc0c4874a4cbd: (a: number, b: number) => void;
|
|
1555
|
+
readonly wasm_bindgen__convert__closures_____invoke__h2ff28222ff39c1b8: (a: number, b: number, c: any, d: number, e: any) => void;
|
|
1556
|
+
readonly wasm_bindgen__convert__closures_____invoke__hf22466092682e799: (a: number, b: number, c: any) => [number, number];
|
|
1557
|
+
readonly wasm_bindgen__convert__closures_____invoke__h01e5fc085c9abeb2: (a: number, b: number, c: any, d: any) => void;
|
|
1558
|
+
readonly wasm_bindgen__convert__closures_____invoke__h65fd5050fd174a78: (a: number, b: number, c: any) => void;
|
|
1559
|
+
readonly wasm_bindgen__convert__closures_____invoke__h99173b1edd0ed916: (a: number, b: number) => void;
|
|
1560
|
+
readonly wasm_bindgen__convert__closures_____invoke__h28c39d65825f8105: (a: number, b: number) => void;
|
|
1561
|
+
readonly wasm_bindgen__convert__closures_____invoke__hf04b250c3b9c17a3: (a: number, b: number) => void;
|
|
1431
1562
|
readonly __externref_table_alloc: () => number;
|
|
1432
1563
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
1433
1564
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
@@ -1435,6 +1566,7 @@ export interface InitOutput {
|
|
|
1435
1566
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
1436
1567
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
1437
1568
|
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
1569
|
+
readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
1438
1570
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
1439
1571
|
readonly __wbindgen_start: () => void;
|
|
1440
1572
|
}
|