@xmtp/wasm-bindings 1.10.0-rc2 → 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 +271 -139
- package/dist/bindings_wasm.js +514 -461
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +124 -123
- 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,117 +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 __wbg_backend_free: (a: number, b: number) => void;
|
|
1160
|
-
readonly __wbg_backendbuilder_free: (a: number, b: number) => void;
|
|
1161
|
-
readonly __wbg_get_backendbuilder_env: (a: number) => number;
|
|
1162
|
-
readonly __wbg_get_backendbuilder_readonly: (a: number) => number;
|
|
1163
|
-
readonly __wbg_set_backendbuilder_env: (a: number, b: number) => void;
|
|
1164
|
-
readonly __wbg_set_backendbuilder_readonly: (a: number, b: number) => void;
|
|
1165
|
-
readonly backend_appVersion: (a: number) => [number, number];
|
|
1166
|
-
readonly backend_env: (a: number) => number;
|
|
1167
|
-
readonly backend_gatewayHost: (a: number) => [number, number];
|
|
1168
|
-
readonly backend_v3Host: (a: number) => [number, number];
|
|
1169
|
-
readonly backendbuilder_authCallback: (a: number, b: any) => void;
|
|
1170
|
-
readonly backendbuilder_authHandle: (a: number, b: number) => void;
|
|
1171
|
-
readonly backendbuilder_build: (a: number) => [number, number, number];
|
|
1172
|
-
readonly backendbuilder_new: (a: number) => number;
|
|
1173
|
-
readonly backendbuilder_setApiUrl: (a: number, b: number, c: number) => number;
|
|
1174
|
-
readonly backendbuilder_setAppVersion: (a: number, b: number, c: number) => number;
|
|
1175
|
-
readonly backendbuilder_setGatewayHost: (a: number, b: number, c: number) => number;
|
|
1176
|
-
readonly backendbuilder_setReadonly: (a: number, b: number) => number;
|
|
1177
|
-
readonly client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
|
|
1178
|
-
readonly client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
|
|
1179
|
-
readonly client_getConsentState: (a: number, b: number, c: number, d: 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 client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
1184
|
-
readonly contentTypeLeaveRequest: () => any;
|
|
1185
|
-
readonly contentTypeMarkdown: () => any;
|
|
1186
|
-
readonly contentTypeReadReceipt: () => any;
|
|
1187
|
-
readonly contentTypeRemoteAttachment: () => any;
|
|
1188
|
-
readonly contentTypeText: () => any;
|
|
1189
|
-
readonly contentTypeTransactionReference: () => any;
|
|
1190
|
-
readonly contentTypeWalletSendCalls: () => any;
|
|
1191
|
-
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
1192
|
-
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
1193
|
-
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;
|
|
1194
|
-
readonly decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
|
|
1195
|
-
readonly encodeMarkdown: (a: number, b: number) => [number, number, number];
|
|
1196
|
-
readonly encodeReadReceipt: (a: any) => [number, number, number];
|
|
1197
|
-
readonly encodeRemoteAttachment: (a: any) => [number, number, number];
|
|
1198
|
-
readonly encodeText: (a: number, b: number) => [number, number, number];
|
|
1199
|
-
readonly encodeTransactionReference: (a: any) => [number, number, number];
|
|
1200
|
-
readonly encodeWalletSendCalls: (a: any) => [number, number, number];
|
|
1201
|
-
readonly encryptAttachment: (a: any) => [number, number, number];
|
|
1202
|
-
readonly generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
|
|
1203
|
-
readonly getInboxIdForIdentifier: (a: number, b: any) => any;
|
|
1204
|
-
readonly inboxStateFromInboxIds: (a: number, b: number, c: number) => any;
|
|
1205
|
-
readonly __wbg_authhandle_free: (a: number, b: number) => void;
|
|
1206
1290
|
readonly __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
|
|
1207
1291
|
readonly applySignatureRequest: (a: number, b: number) => any;
|
|
1208
|
-
readonly authhandle_id: (a: number) => number;
|
|
1209
|
-
readonly authhandle_new: () => number;
|
|
1210
|
-
readonly authhandle_set: (a: number, b: any) => any;
|
|
1211
1292
|
readonly client_addWalletSignatureRequest: (a: number, b: any) => any;
|
|
1212
1293
|
readonly client_applySignatureRequest: (a: number, b: number) => any;
|
|
1213
1294
|
readonly client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
|
|
1214
1295
|
readonly client_createInboxSignatureRequest: (a: number) => [number, number, number];
|
|
1215
|
-
readonly client_registerIdentity: (a: number, b: number) => any;
|
|
1296
|
+
readonly client_registerIdentity: (a: number, b: number, c: number) => any;
|
|
1216
1297
|
readonly client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
|
|
1217
1298
|
readonly client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
|
|
1218
1299
|
readonly client_revokeWalletSignatureRequest: (a: number, b: any) => any;
|
|
1219
1300
|
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
1220
1301
|
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
1221
|
-
readonly opfsClearAll: () => any;
|
|
1222
|
-
readonly opfsDeleteFile: (a: number, b: number) => any;
|
|
1223
|
-
readonly opfsExportDb: (a: number, b: number) => any;
|
|
1224
|
-
readonly opfsFileCount: () => any;
|
|
1225
|
-
readonly opfsFileExists: (a: number, b: number) => any;
|
|
1226
|
-
readonly opfsImportDb: (a: number, b: number, c: any) => any;
|
|
1227
|
-
readonly opfsInit: () => any;
|
|
1228
|
-
readonly opfsListFiles: () => any;
|
|
1229
|
-
readonly opfsPoolCapacity: () => any;
|
|
1230
1302
|
readonly revokeInstallationsSignatureRequest: (a: number, b: any, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
1231
1303
|
readonly signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
|
|
1232
1304
|
readonly signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
|
|
1233
1305
|
readonly signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
|
|
1234
1306
|
readonly signaturerequesthandle_signatureText: (a: number) => any;
|
|
1235
1307
|
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
1236
|
-
readonly
|
|
1308
|
+
readonly __wbg_authhandle_free: (a: number, b: number) => void;
|
|
1237
1309
|
readonly __wbg_conversation_free: (a: number, b: number) => void;
|
|
1238
|
-
readonly
|
|
1239
|
-
readonly
|
|
1240
|
-
readonly
|
|
1241
|
-
readonly
|
|
1242
|
-
readonly
|
|
1243
|
-
readonly
|
|
1244
|
-
readonly
|
|
1245
|
-
readonly
|
|
1246
|
-
readonly
|
|
1247
|
-
readonly client_accountIdentifier: (a: number) => any;
|
|
1248
|
-
readonly client_apiAggregateStatistics: (a: number) => [number, number];
|
|
1249
|
-
readonly client_apiIdentityStatistics: (a: number) => any;
|
|
1250
|
-
readonly client_apiStatistics: (a: number) => any;
|
|
1251
|
-
readonly client_appVersion: (a: number) => [number, number];
|
|
1252
|
-
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
1253
|
-
readonly client_clearAllStatistics: (a: number) => void;
|
|
1254
|
-
readonly client_conversations: (a: number) => number;
|
|
1255
|
-
readonly client_device_sync: (a: number) => number;
|
|
1256
|
-
readonly client_findInboxIdByIdentity: (a: number, b: any) => any;
|
|
1257
|
-
readonly client_inboxId: (a: number) => [number, number];
|
|
1258
|
-
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
1259
|
-
readonly client_installationId: (a: number) => [number, number];
|
|
1260
|
-
readonly client_installationIdBytes: (a: number) => any;
|
|
1261
|
-
readonly client_isRegistered: (a: number) => number;
|
|
1262
|
-
readonly client_libxmtpVersion: (a: number) => [number, number];
|
|
1263
|
-
readonly client_syncPreferences: (a: number) => any;
|
|
1264
|
-
readonly contentTypeActions: () => any;
|
|
1265
|
-
readonly contentTypeAttachment: () => any;
|
|
1310
|
+
readonly __wbg_devicesync_free: (a: number, b: number) => void;
|
|
1311
|
+
readonly authhandle_id: (a: number) => number;
|
|
1312
|
+
readonly authhandle_new: () => number;
|
|
1313
|
+
readonly authhandle_set: (a: number, b: any) => any;
|
|
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;
|
|
1266
1319
|
readonly contentTypeGroupUpdated: () => any;
|
|
1267
|
-
readonly contentTypeIntent: () => any;
|
|
1268
|
-
readonly contentTypeMultiRemoteAttachment: () => any;
|
|
1269
|
-
readonly contentTypeReaction: () => any;
|
|
1270
1320
|
readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
1271
1321
|
readonly conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
1272
1322
|
readonly conversation_addMembersByIdentity: (a: number, b: number, c: number) => any;
|
|
@@ -1277,6 +1327,7 @@ export interface InitOutput {
|
|
|
1277
1327
|
readonly conversation_countMessages: (a: number, b: number) => any;
|
|
1278
1328
|
readonly conversation_createdAtNs: (a: number) => bigint;
|
|
1279
1329
|
readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
1330
|
+
readonly conversation_enableProposals: (a: number, b: any) => any;
|
|
1280
1331
|
readonly conversation_findDuplicateDms: (a: number) => any;
|
|
1281
1332
|
readonly conversation_findEnrichedMessages: (a: number, b: number) => any;
|
|
1282
1333
|
readonly conversation_findMessages: (a: number, b: number) => any;
|
|
@@ -1298,8 +1349,9 @@ export interface InitOutput {
|
|
|
1298
1349
|
readonly conversation_membershipState: (a: number) => [number, number, number];
|
|
1299
1350
|
readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
1300
1351
|
readonly conversation_pausedForVersion: (a: number) => [number, number, number, number];
|
|
1301
|
-
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];
|
|
1302
1353
|
readonly conversation_processStreamedGroupMessage: (a: number, b: any) => any;
|
|
1354
|
+
readonly conversation_proposalsEnabled: (a: number) => [number, number, number];
|
|
1303
1355
|
readonly conversation_publishMessages: (a: number) => any;
|
|
1304
1356
|
readonly conversation_publishStoredMessage: (a: number, b: number, c: number) => any;
|
|
1305
1357
|
readonly conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
@@ -1329,6 +1381,70 @@ export interface InitOutput {
|
|
|
1329
1381
|
readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
1330
1382
|
readonly conversation_updateMessageDisappearingSettings: (a: number, b: any) => any;
|
|
1331
1383
|
readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
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;
|
|
1394
|
+
readonly streamcloser_end: (a: number) => void;
|
|
1395
|
+
readonly streamcloser_endAndWait: (a: number) => any;
|
|
1396
|
+
readonly streamcloser_isClosed: (a: number) => number;
|
|
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;
|
|
1405
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
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;
|
|
1430
|
+
readonly client_accountIdentifier: (a: number) => any;
|
|
1431
|
+
readonly client_apiAggregateStatistics: (a: number) => [number, number];
|
|
1432
|
+
readonly client_apiIdentityStatistics: (a: number) => any;
|
|
1433
|
+
readonly client_apiStatistics: (a: number) => any;
|
|
1434
|
+
readonly client_appVersion: (a: number) => [number, number];
|
|
1435
|
+
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
1436
|
+
readonly client_clearAllStatistics: (a: number) => void;
|
|
1437
|
+
readonly client_conversations: (a: number) => number;
|
|
1438
|
+
readonly client_device_sync: (a: number) => number;
|
|
1439
|
+
readonly client_findInboxIdByIdentity: (a: number, b: any) => any;
|
|
1440
|
+
readonly client_inboxId: (a: number) => [number, number];
|
|
1441
|
+
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
1442
|
+
readonly client_installationId: (a: number) => [number, number];
|
|
1443
|
+
readonly client_installationIdBytes: (a: number) => any;
|
|
1444
|
+
readonly client_isRegistered: (a: number) => number;
|
|
1445
|
+
readonly client_libxmtpVersion: (a: number) => [number, number];
|
|
1446
|
+
readonly client_syncPreferences: (a: number) => any;
|
|
1447
|
+
readonly client_waitForRegistrationVisible: (a: number, b: number) => any;
|
|
1332
1448
|
readonly conversationlistitem_new: (a: number, b: number, c: number) => number;
|
|
1333
1449
|
readonly conversations_createDm: (a: number, b: any, c: number) => any;
|
|
1334
1450
|
readonly conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
|
|
@@ -1350,27 +1466,45 @@ export interface InitOutput {
|
|
|
1350
1466
|
readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
1351
1467
|
readonly conversations_sync: (a: number) => any;
|
|
1352
1468
|
readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
1353
|
-
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:
|
|
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;
|
|
1471
|
+
readonly generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
|
|
1472
|
+
readonly getInboxIdForIdentifier: (a: number, b: any) => any;
|
|
1473
|
+
readonly opfsClearAll: () => any;
|
|
1474
|
+
readonly opfsDeleteFile: (a: number, b: number) => any;
|
|
1475
|
+
readonly opfsExportDb: (a: number, b: number) => any;
|
|
1476
|
+
readonly opfsFileCount: () => any;
|
|
1477
|
+
readonly opfsFileExists: (a: number, b: number) => any;
|
|
1478
|
+
readonly opfsImportDb: (a: number, b: number, c: any) => any;
|
|
1479
|
+
readonly opfsInit: () => any;
|
|
1480
|
+
readonly opfsListFiles: () => any;
|
|
1481
|
+
readonly opfsPoolCapacity: () => any;
|
|
1482
|
+
readonly contentTypeActions: () => any;
|
|
1483
|
+
readonly contentTypeAttachment: () => any;
|
|
1484
|
+
readonly contentTypeIntent: () => any;
|
|
1485
|
+
readonly contentTypeLeaveRequest: () => any;
|
|
1486
|
+
readonly contentTypeMarkdown: () => any;
|
|
1487
|
+
readonly contentTypeMultiRemoteAttachment: () => any;
|
|
1488
|
+
readonly contentTypeReaction: () => any;
|
|
1489
|
+
readonly contentTypeReadReceipt: () => any;
|
|
1490
|
+
readonly contentTypeRemoteAttachment: () => any;
|
|
1491
|
+
readonly contentTypeReply: () => any;
|
|
1492
|
+
readonly contentTypeText: () => any;
|
|
1493
|
+
readonly contentTypeTransactionReference: () => any;
|
|
1494
|
+
readonly contentTypeWalletSendCalls: () => any;
|
|
1495
|
+
readonly decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
|
|
1354
1496
|
readonly encodeActions: (a: any) => [number, number, number];
|
|
1355
1497
|
readonly encodeAttachment: (a: any) => [number, number, number];
|
|
1356
1498
|
readonly encodeIntent: (a: any) => [number, number, number];
|
|
1499
|
+
readonly encodeMarkdown: (a: number, b: number) => [number, number, number];
|
|
1357
1500
|
readonly encodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
1358
1501
|
readonly encodeReaction: (a: any) => [number, number, number];
|
|
1359
|
-
readonly
|
|
1360
|
-
readonly
|
|
1361
|
-
readonly
|
|
1362
|
-
readonly
|
|
1363
|
-
readonly
|
|
1364
|
-
readonly
|
|
1365
|
-
readonly devicesync_archiveMetadata: (a: number, b: any, c: any) => any;
|
|
1366
|
-
readonly devicesync_createArchive: (a: number, b: any, c: any) => any;
|
|
1367
|
-
readonly devicesync_importArchive: (a: number, b: any, c: any) => any;
|
|
1368
|
-
readonly devicesync_listAvailableArchives: (a: number, b: bigint) => [number, number, number, number];
|
|
1369
|
-
readonly devicesync_processSyncArchive: (a: number, b: number, c: number) => any;
|
|
1370
|
-
readonly devicesync_sendSyncArchive: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
|
|
1371
|
-
readonly devicesync_sendSyncRequest: (a: number, b: any, c: number, d: number) => any;
|
|
1372
|
-
readonly devicesync_syncAllDeviceSyncGroups: (a: number) => any;
|
|
1373
|
-
readonly contentTypeReply: () => any;
|
|
1502
|
+
readonly encodeReadReceipt: (a: any) => [number, number, number];
|
|
1503
|
+
readonly encodeRemoteAttachment: (a: any) => [number, number, number];
|
|
1504
|
+
readonly encodeText: (a: number, b: number) => [number, number, number];
|
|
1505
|
+
readonly encodeTransactionReference: (a: any) => [number, number, number];
|
|
1506
|
+
readonly encodeWalletSendCalls: (a: any) => [number, number, number];
|
|
1507
|
+
readonly encryptAttachment: (a: any) => [number, number, number];
|
|
1374
1508
|
readonly rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
|
|
1375
1509
|
readonly rust_zstd_wasm_shim_free: (a: number) => void;
|
|
1376
1510
|
readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
@@ -1395,12 +1529,12 @@ export interface InitOutput {
|
|
|
1395
1529
|
readonly intounderlyingsink_close: (a: number) => any;
|
|
1396
1530
|
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
1397
1531
|
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
1398
|
-
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
1399
1532
|
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
1400
1533
|
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
1401
1534
|
readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
1402
1535
|
readonly intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
1403
1536
|
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
1537
|
+
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
1404
1538
|
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
1405
1539
|
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
1406
1540
|
readonly __wbg_wasmbindgentestcontext_free: (a: number, b: number) => 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;
|
|
1416
|
-
readonly
|
|
1417
|
-
readonly __wbgtest_module_signature: () => [number, bigint];
|
|
1550
|
+
readonly __wbgtest_coverage_path: (a: number, b: number, c: number, d: number, e: number, f: bigint) => [number, number];
|
|
1418
1551
|
readonly __wbgbench_dump: () => [number, number];
|
|
1419
1552
|
readonly __wbgbench_import: (a: number, b: number) => void;
|
|
1420
|
-
readonly
|
|
1421
|
-
readonly
|
|
1422
|
-
readonly
|
|
1423
|
-
readonly
|
|
1424
|
-
readonly
|
|
1425
|
-
readonly
|
|
1426
|
-
readonly
|
|
1427
|
-
readonly
|
|
1428
|
-
readonly
|
|
1429
|
-
readonly wasm_bindgen__convert__closures_____invoke__h7d2ee1dee7ec118b: (a: number, b: number) => void;
|
|
1430
|
-
readonly wasm_bindgen__convert__closures_____invoke__h48de3f26adb3eb8d: (a: number, b: number) => void;
|
|
1553
|
+
readonly __wbgtest_cov_dump: () => [number, number];
|
|
1554
|
+
readonly __wbgtest_module_signature: () => [number, bigint];
|
|
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
|
}
|