@xmtp/wasm-bindings 1.10.0-dev.8b07a37 → 1.10.0-dev.ae5ffba

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.
@@ -27,6 +27,28 @@ export interface ArchiveMetadata {
27
27
  endNs?: bigint;
28
28
  }
29
29
 
30
+ /**
31
+ * Options for `waitForRegistrationVisible`.
32
+ *
33
+ * Both `quorumPercentage` and `quorumAbsolute` are optional; if neither is
34
+ * provided, the default of 50 % is used. When both are provided,
35
+ * `quorumAbsolute` takes precedence.
36
+ */
37
+ export interface WasmVisibilityConfirmationOptions {
38
+ /**
39
+ * Fraction of nodes that must confirm (e.g. 0.5 for 50 %).
40
+ */
41
+ quorumPercentage?: number;
42
+ /**
43
+ * Exact number of nodes that must confirm.
44
+ */
45
+ quorumAbsolute?: number;
46
+ /**
47
+ * Maximum wait time in milliseconds (default: 30 000).
48
+ */
49
+ timeoutMs?: number;
50
+ }
51
+
30
52
  /**
31
53
  * Options for creating or sending an archive
32
54
  */
@@ -445,6 +467,32 @@ export class AuthHandle {
445
467
  set(credential: Credential): Promise<void>;
446
468
  }
447
469
 
470
+ export class Backend {
471
+ private constructor();
472
+ free(): void;
473
+ [Symbol.dispose](): void;
474
+ readonly appVersion: string;
475
+ readonly env: XmtpEnv;
476
+ readonly gatewayHost: string | undefined;
477
+ readonly v3Host: string | undefined;
478
+ }
479
+
480
+ export class BackendBuilder {
481
+ free(): void;
482
+ [Symbol.dispose](): void;
483
+ authCallback(callback: any): void;
484
+ authHandle(handle: AuthHandle): void;
485
+ build(): Backend;
486
+ constructor(env: XmtpEnv);
487
+ setApiUrl(api_url: string): BackendBuilder;
488
+ setAppVersion(app_version: string): BackendBuilder;
489
+ setGatewayHost(gateway_host: string): BackendBuilder;
490
+ setReadonly(readonly: boolean): BackendBuilder;
491
+ env: XmtpEnv;
492
+ get readonly(): boolean | undefined;
493
+ set readonly(value: boolean | null | undefined);
494
+ }
495
+
448
496
  /**
449
497
  * Selection of what elements to include in a backup
450
498
  */
@@ -494,7 +542,7 @@ export class Client {
494
542
  */
495
543
  inboxState(refreshFromNetwork: boolean): Promise<InboxState>;
496
544
  inboxStateFromInboxIds(inboxIds: string[], refreshFromNetwork: boolean): Promise<InboxState[]>;
497
- registerIdentity(signatureRequest: SignatureRequestHandle): Promise<void>;
545
+ registerIdentity(signatureRequest: SignatureRequestHandle, visibilityConfirmationOptions?: WasmVisibilityConfirmationOptions | null): Promise<void>;
498
546
  revokeAllOtherInstallationsSignatureRequest(): Promise<SignatureRequestHandle | undefined>;
499
547
  revokeInstallationsSignatureRequest(installationIds: Uint8Array[]): Promise<SignatureRequestHandle>;
500
548
  revokeWalletSignatureRequest(identifier: Identifier): Promise<SignatureRequestHandle>;
@@ -502,6 +550,15 @@ export class Client {
502
550
  signWithInstallationKey(signatureText: string): Uint8Array;
503
551
  syncPreferences(): Promise<GroupSyncSummary>;
504
552
  verifySignedWithInstallationKey(signatureText: string, signatureBytes: Uint8Array): void;
553
+ /**
554
+ * Wait until this client's registration is visible on the network.
555
+ *
556
+ * For V3 clients (no cursor stored) this falls back to checking
557
+ * `isRegistered`. For D14n clients it polls each node directly and
558
+ * returns once a quorum confirms both the identity-update and
559
+ * key-package envelopes are visible.
560
+ */
561
+ waitForRegistrationVisible(options?: WasmVisibilityConfirmationOptions | null): Promise<void>;
505
562
  readonly accountIdentifier: Identifier;
506
563
  readonly appVersion: string;
507
564
  readonly inboxId: string;
@@ -719,14 +776,14 @@ export class DeviceSync {
719
776
  /**
720
777
  * Manually trigger a device sync request to sync records from another active device on this account.
721
778
  */
722
- sendSyncRequest(): Promise<void>;
779
+ sendSyncRequest(options: ArchiveOptions, serverUrl: string): Promise<void>;
723
780
  /**
724
781
  * Manually sync all device sync groups.
725
782
  */
726
783
  syncAllDeviceSyncGroups(): Promise<GroupSyncSummary>;
727
784
  }
728
785
 
729
- export enum DeviceSyncWorkerMode {
786
+ export enum DeviceSyncMode {
730
787
  Enabled = 0,
731
788
  Disabled = 1,
732
789
  }
@@ -884,7 +941,105 @@ export class StreamCloser {
884
941
  waitForReady(): Promise<void>;
885
942
  }
886
943
 
887
- export function applySignatureRequest(host: string, gatewayHost: string | null | undefined, signatureRequest: SignatureRequestHandle): Promise<void>;
944
+ /**
945
+ * Runtime test harness support instantiated in JS.
946
+ *
947
+ * The node.js entry script instantiates a `Context` here which is used to
948
+ * drive test execution.
949
+ */
950
+ export class WasmBindgenTestContext {
951
+ free(): void;
952
+ [Symbol.dispose](): void;
953
+ /**
954
+ * Handle filter argument.
955
+ */
956
+ filtered_count(filtered: number): void;
957
+ /**
958
+ * Handle `--include-ignored` flag.
959
+ */
960
+ include_ignored(include_ignored: boolean): void;
961
+ /**
962
+ * Creates a new context ready to run tests.
963
+ *
964
+ * A `Context` is the main structure through which test execution is
965
+ * coordinated, and this will collect output and results for all executed
966
+ * tests.
967
+ */
968
+ constructor(is_bench: boolean);
969
+ /**
970
+ * Executes a list of tests, returning a promise representing their
971
+ * eventual completion.
972
+ *
973
+ * This is the main entry point for executing tests. All the tests passed
974
+ * in are the JS `Function` object that was plucked off the
975
+ * `WebAssembly.Instance` exports list.
976
+ *
977
+ * The promise returned resolves to either `true` if all tests passed or
978
+ * `false` if at least one test failed.
979
+ */
980
+ run(tests: any[]): Promise<any>;
981
+ }
982
+
983
+ export enum XmtpEnv {
984
+ Local = 0,
985
+ Dev = 1,
986
+ Production = 2,
987
+ TestnetStaging = 3,
988
+ TestnetDev = 4,
989
+ Testnet = 5,
990
+ Mainnet = 6,
991
+ }
992
+
993
+ /**
994
+ * Used to read benchmark data, and then the runner stores it on the local disk.
995
+ */
996
+ export function __wbgbench_dump(): Uint8Array | undefined;
997
+
998
+ /**
999
+ * Used to write previous benchmark data before the benchmark, for later comparison.
1000
+ */
1001
+ export function __wbgbench_import(baseline: Uint8Array): void;
1002
+
1003
+ /**
1004
+ * Handler for `console.debug` invocations. See above.
1005
+ */
1006
+ export function __wbgtest_console_debug(args: Array<any>): void;
1007
+
1008
+ /**
1009
+ * Handler for `console.error` invocations. See above.
1010
+ */
1011
+ export function __wbgtest_console_error(args: Array<any>): void;
1012
+
1013
+ /**
1014
+ * Handler for `console.info` invocations. See above.
1015
+ */
1016
+ export function __wbgtest_console_info(args: Array<any>): void;
1017
+
1018
+ /**
1019
+ * Handler for `console.log` invocations.
1020
+ *
1021
+ * If a test is currently running it takes the `args` array and stringifies
1022
+ * it and appends it to the current output of the test. Otherwise it passes
1023
+ * the arguments to the original `console.log` function, psased as
1024
+ * `original`.
1025
+ */
1026
+ export function __wbgtest_console_log(args: Array<any>): void;
1027
+
1028
+ /**
1029
+ * Handler for `console.warn` invocations. See above.
1030
+ */
1031
+ export function __wbgtest_console_warn(args: Array<any>): void;
1032
+
1033
+ export function __wbgtest_cov_dump(): Uint8Array | undefined;
1034
+
1035
+ /**
1036
+ * Path to use for coverage data.
1037
+ */
1038
+ export function __wbgtest_coverage_path(env: string | null | undefined, pid: number, temp_dir: string, module_signature: bigint): string;
1039
+
1040
+ export function __wbgtest_module_signature(): bigint | undefined;
1041
+
1042
+ export function applySignatureRequest(backend: Backend, signatureRequest: SignatureRequestHandle): Promise<void>;
888
1043
 
889
1044
  export function contentTypeActions(): ContentTypeId;
890
1045
 
@@ -914,7 +1069,15 @@ export function contentTypeTransactionReference(): ContentTypeId;
914
1069
 
915
1070
  export function contentTypeWalletSendCalls(): ContentTypeId;
916
1071
 
917
- 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>;
1072
+ 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>;
1073
+
1074
+ /**
1075
+ * Create a client from a pre-built Backend.
1076
+ *
1077
+ * The Backend encapsulates all API configuration (env, hosts, auth, TLS).
1078
+ * This function only needs identity and database configuration.
1079
+ */
1080
+ 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>;
918
1081
 
919
1082
  /**
920
1083
  * Decrypts an encrypted payload from a remote attachment.
@@ -950,9 +1113,9 @@ export function encryptAttachment(attachment: Attachment): EncryptedAttachment;
950
1113
 
951
1114
  export function generateInboxId(accountIdentifier: Identifier, nonce?: bigint | null): string;
952
1115
 
953
- export function getInboxIdForIdentifier(host: string, gatewayHost: string | null | undefined, isSecure: boolean, accountIdentifier: Identifier): Promise<string | undefined>;
1116
+ export function getInboxIdForIdentifier(backend: Backend, accountIdentifier: Identifier): Promise<string | undefined>;
954
1117
 
955
- export function inboxStateFromInboxIds(host: string, gatewayHost: string | null | undefined, inboxIds: string[]): Promise<InboxState[]>;
1118
+ export function inboxStateFromInboxIds(backend: Backend, inboxIds: string[]): Promise<InboxState[]>;
956
1119
 
957
1120
  export function metadataFieldName(field: MetadataField): string;
958
1121
 
@@ -1011,7 +1174,7 @@ export function opfsListFiles(): Promise<string[]>;
1011
1174
  */
1012
1175
  export function opfsPoolCapacity(): Promise<number>;
1013
1176
 
1014
- export function revokeInstallationsSignatureRequest(host: string, gatewayHost: string | null | undefined, recoveryIdentifier: Identifier, inboxId: string, installationIds: Uint8Array[]): SignatureRequestHandle;
1177
+ export function revokeInstallationsSignatureRequest(backend: Backend, recoveryIdentifier: Identifier, inboxId: string, installationIds: Uint8Array[]): SignatureRequestHandle;
1015
1178
 
1016
1179
  /**
1017
1180
  * Entry point invoked by JavaScript in a worker.
@@ -1024,83 +1187,45 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
1024
1187
 
1025
1188
  export interface InitOutput {
1026
1189
  readonly memory: WebAssembly.Memory;
1027
- readonly contentTypeLeaveRequest: () => any;
1028
- readonly contentTypeMultiRemoteAttachment: () => any;
1029
- readonly contentTypeTransactionReference: () => any;
1030
- readonly encodeMultiRemoteAttachment: (a: any) => [number, number, number];
1031
- readonly encodeTransactionReference: (a: any) => [number, number, number];
1032
- readonly __wbg_authhandle_free: (a: number, b: number) => void;
1033
- readonly authhandle_id: (a: number) => number;
1034
- readonly authhandle_new: () => number;
1035
- readonly authhandle_set: (a: number, b: any) => any;
1036
- readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
1037
- readonly client_setConsentStates: (a: number, b: number, c: number) => any;
1038
- readonly contentTypeAttachment: () => any;
1039
- readonly contentTypeMarkdown: () => any;
1040
- readonly contentTypeText: () => any;
1041
- readonly conversation_consentState: (a: number) => [number, number, number];
1042
- readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
1043
- readonly encodeAttachment: (a: any) => [number, number, number];
1044
- readonly encodeMarkdown: (a: number, b: number) => [number, number, number];
1045
- readonly encodeText: (a: number, b: number) => [number, number, number];
1046
- readonly client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
1047
- readonly client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
1048
- readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
1049
- readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
1050
- readonly client_inboxState: (a: number, b: number) => any;
1051
- readonly contentTypeGroupUpdated: () => any;
1052
- readonly generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
1053
- readonly getInboxIdForIdentifier: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
1054
- readonly inboxStateFromInboxIds: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
1055
- readonly metadataFieldName: (a: number) => [number, number];
1056
- readonly contentTypeReply: () => any;
1057
- readonly __wbg_client_free: (a: number, b: number) => void;
1190
+ readonly __wbg_backend_free: (a: number, b: number) => void;
1191
+ readonly __wbg_backendbuilder_free: (a: number, b: number) => void;
1058
1192
  readonly __wbg_conversation_free: (a: number, b: number) => void;
1059
- readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
1060
- readonly __wbg_conversations_free: (a: number, b: number) => void;
1061
- readonly __wbg_devicesync_free: (a: number, b: number) => void;
1062
- readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
1063
- readonly __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
1064
- readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
1065
- readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
1066
- readonly __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
1067
- readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
1193
+ readonly __wbg_get_backendbuilder_env: (a: number) => number;
1194
+ readonly __wbg_get_backendbuilder_readonly: (a: number) => number;
1195
+ readonly __wbg_set_backendbuilder_env: (a: number, b: number) => void;
1196
+ readonly __wbg_set_backendbuilder_readonly: (a: number, b: number) => void;
1068
1197
  readonly __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
1069
- readonly __wbg_streamcloser_free: (a: number, b: number) => void;
1070
- readonly applySignatureRequest: (a: number, b: number, c: number, d: number, e: number) => any;
1071
- readonly client_accountIdentifier: (a: number) => any;
1198
+ readonly applySignatureRequest: (a: number, b: number) => any;
1199
+ readonly backend_appVersion: (a: number) => [number, number];
1200
+ readonly backend_env: (a: number) => number;
1201
+ readonly backend_gatewayHost: (a: number) => [number, number];
1202
+ readonly backend_v3Host: (a: number) => [number, number];
1203
+ readonly backendbuilder_authCallback: (a: number, b: any) => void;
1204
+ readonly backendbuilder_authHandle: (a: number, b: number) => void;
1205
+ readonly backendbuilder_build: (a: number) => [number, number, number];
1206
+ readonly backendbuilder_new: (a: number) => number;
1207
+ readonly backendbuilder_setApiUrl: (a: number, b: number, c: number) => number;
1208
+ readonly backendbuilder_setAppVersion: (a: number, b: number, c: number) => number;
1209
+ readonly backendbuilder_setGatewayHost: (a: number, b: number, c: number) => number;
1210
+ readonly backendbuilder_setReadonly: (a: number, b: number) => number;
1072
1211
  readonly client_addWalletSignatureRequest: (a: number, b: any) => any;
1073
- readonly client_apiAggregateStatistics: (a: number) => [number, number];
1074
- readonly client_apiIdentityStatistics: (a: number) => any;
1075
- readonly client_apiStatistics: (a: number) => any;
1076
- readonly client_appVersion: (a: number) => [number, number];
1077
1212
  readonly client_applySignatureRequest: (a: number, b: number) => any;
1078
- readonly client_canMessage: (a: number, b: number, c: number) => any;
1079
1213
  readonly client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
1080
- readonly client_clearAllStatistics: (a: number) => void;
1081
- readonly client_conversations: (a: number) => number;
1082
1214
  readonly client_createInboxSignatureRequest: (a: number) => [number, number, number];
1083
- readonly client_device_sync: (a: number) => number;
1084
- readonly client_findInboxIdByIdentity: (a: number, b: any) => any;
1085
- readonly client_inboxId: (a: number) => [number, number];
1086
- readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
1087
- readonly client_installationId: (a: number) => [number, number];
1088
- readonly client_installationIdBytes: (a: number) => any;
1089
- readonly client_isRegistered: (a: number) => number;
1090
- readonly client_libxmtpVersion: (a: number) => [number, number];
1091
- readonly client_registerIdentity: (a: number, b: number) => any;
1215
+ readonly client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
1216
+ readonly client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
1217
+ readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
1218
+ readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
1219
+ readonly client_inboxState: (a: number, b: number) => any;
1220
+ readonly client_registerIdentity: (a: number, b: number, c: number) => any;
1092
1221
  readonly client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
1093
1222
  readonly client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
1094
1223
  readonly client_revokeWalletSignatureRequest: (a: number, b: any) => any;
1095
1224
  readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
1096
- readonly client_syncPreferences: (a: number) => any;
1097
1225
  readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
1098
- readonly contentTypeActions: () => any;
1099
- readonly contentTypeIntent: () => any;
1226
+ readonly contentTypeLeaveRequest: () => any;
1100
1227
  readonly contentTypeReaction: () => any;
1101
- readonly contentTypeReadReceipt: () => any;
1102
1228
  readonly contentTypeRemoteAttachment: () => any;
1103
- readonly contentTypeWalletSendCalls: () => any;
1104
1229
  readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
1105
1230
  readonly conversation_addMembers: (a: number, b: number, c: number) => any;
1106
1231
  readonly conversation_addMembersByIdentity: (a: number, b: number, c: number) => any;
@@ -1163,6 +1288,61 @@ export interface InitOutput {
1163
1288
  readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
1164
1289
  readonly conversation_updateMessageDisappearingSettings: (a: number, b: any) => any;
1165
1290
  readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
1291
+ 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;
1292
+ readonly decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
1293
+ readonly encodeReaction: (a: any) => [number, number, number];
1294
+ readonly encodeRemoteAttachment: (a: any) => [number, number, number];
1295
+ readonly encryptAttachment: (a: any) => [number, number, number];
1296
+ readonly generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
1297
+ readonly getInboxIdForIdentifier: (a: number, b: any) => any;
1298
+ readonly inboxStateFromInboxIds: (a: number, b: number, c: number) => any;
1299
+ readonly revokeInstallationsSignatureRequest: (a: number, b: any, c: number, d: number, e: number, f: number) => [number, number, number];
1300
+ readonly signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
1301
+ readonly signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
1302
+ readonly signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
1303
+ readonly signaturerequesthandle_signatureText: (a: number) => any;
1304
+ readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
1305
+ readonly contentTypeMarkdown: () => any;
1306
+ readonly contentTypeReply: () => any;
1307
+ readonly contentTypeText: () => any;
1308
+ readonly contentTypeTransactionReference: () => any;
1309
+ readonly encodeMarkdown: (a: number, b: number) => [number, number, number];
1310
+ readonly encodeText: (a: number, b: number) => [number, number, number];
1311
+ readonly encodeTransactionReference: (a: any) => [number, number, number];
1312
+ readonly __wbg_client_free: (a: number, b: number) => void;
1313
+ readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
1314
+ readonly __wbg_conversations_free: (a: number, b: number) => void;
1315
+ readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
1316
+ readonly __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
1317
+ readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
1318
+ readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
1319
+ readonly __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
1320
+ readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
1321
+ readonly client_accountIdentifier: (a: number) => any;
1322
+ readonly client_apiAggregateStatistics: (a: number) => [number, number];
1323
+ readonly client_apiIdentityStatistics: (a: number) => any;
1324
+ readonly client_apiStatistics: (a: number) => any;
1325
+ readonly client_appVersion: (a: number) => [number, number];
1326
+ readonly client_canMessage: (a: number, b: number, c: number) => any;
1327
+ readonly client_clearAllStatistics: (a: number) => void;
1328
+ readonly client_conversations: (a: number) => number;
1329
+ readonly client_device_sync: (a: number) => number;
1330
+ readonly client_findInboxIdByIdentity: (a: number, b: any) => any;
1331
+ readonly client_inboxId: (a: number) => [number, number];
1332
+ readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
1333
+ readonly client_installationId: (a: number) => [number, number];
1334
+ readonly client_installationIdBytes: (a: number) => any;
1335
+ readonly client_isRegistered: (a: number) => number;
1336
+ readonly client_libxmtpVersion: (a: number) => [number, number];
1337
+ readonly client_syncPreferences: (a: number) => any;
1338
+ readonly client_waitForRegistrationVisible: (a: number, b: number) => any;
1339
+ readonly contentTypeActions: () => any;
1340
+ readonly contentTypeAttachment: () => any;
1341
+ readonly contentTypeGroupUpdated: () => any;
1342
+ readonly contentTypeIntent: () => any;
1343
+ readonly contentTypeMultiRemoteAttachment: () => any;
1344
+ readonly contentTypeReadReceipt: () => any;
1345
+ readonly contentTypeWalletSendCalls: () => any;
1166
1346
  readonly conversationlistitem_new: (a: number, b: number, c: number) => number;
1167
1347
  readonly conversations_createDm: (a: number, b: any, c: number) => any;
1168
1348
  readonly conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
@@ -1184,33 +1364,32 @@ export interface InitOutput {
1184
1364
  readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
1185
1365
  readonly conversations_sync: (a: number) => any;
1186
1366
  readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
1187
- 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;
1188
- readonly decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
1367
+ readonly createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: bigint, r: number, s: number, t: number) => any;
1368
+ readonly encodeActions: (a: any) => [number, number, number];
1369
+ readonly encodeAttachment: (a: any) => [number, number, number];
1370
+ readonly encodeIntent: (a: any) => [number, number, number];
1371
+ readonly encodeMultiRemoteAttachment: (a: any) => [number, number, number];
1372
+ readonly encodeReadReceipt: (a: any) => [number, number, number];
1373
+ readonly encodeWalletSendCalls: (a: any) => [number, number, number];
1374
+ readonly metadataFieldName: (a: number) => [number, number];
1375
+ readonly __wbg_authhandle_free: (a: number, b: number) => void;
1376
+ readonly __wbg_devicesync_free: (a: number, b: number) => void;
1377
+ readonly authhandle_id: (a: number) => number;
1378
+ readonly authhandle_new: () => number;
1379
+ readonly authhandle_set: (a: number, b: any) => any;
1380
+ readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
1381
+ readonly client_setConsentStates: (a: number, b: number, c: number) => any;
1382
+ readonly conversation_consentState: (a: number) => [number, number, number];
1383
+ readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
1189
1384
  readonly devicesync_archiveMetadata: (a: number, b: any, c: any) => any;
1190
1385
  readonly devicesync_createArchive: (a: number, b: any, c: any) => any;
1191
1386
  readonly devicesync_importArchive: (a: number, b: any, c: any) => any;
1192
1387
  readonly devicesync_listAvailableArchives: (a: number, b: bigint) => [number, number, number, number];
1193
1388
  readonly devicesync_processSyncArchive: (a: number, b: number, c: number) => any;
1194
1389
  readonly devicesync_sendSyncArchive: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
1195
- readonly devicesync_sendSyncRequest: (a: number) => any;
1390
+ readonly devicesync_sendSyncRequest: (a: number, b: any, c: number, d: number) => any;
1196
1391
  readonly devicesync_syncAllDeviceSyncGroups: (a: number) => any;
1197
- readonly encodeActions: (a: any) => [number, number, number];
1198
- readonly encodeIntent: (a: any) => [number, number, number];
1199
- readonly encodeReaction: (a: any) => [number, number, number];
1200
- readonly encodeReadReceipt: (a: any) => [number, number, number];
1201
- readonly encodeRemoteAttachment: (a: any) => [number, number, number];
1202
- readonly encodeWalletSendCalls: (a: any) => [number, number, number];
1203
- readonly encryptAttachment: (a: any) => [number, number, number];
1204
- readonly revokeInstallationsSignatureRequest: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number) => [number, number, number];
1205
- readonly signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
1206
- readonly signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
1207
- readonly signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
1208
- readonly signaturerequesthandle_signatureText: (a: number) => any;
1209
- readonly streamcloser_end: (a: number) => void;
1210
- readonly streamcloser_endAndWait: (a: number) => any;
1211
- readonly streamcloser_isClosed: (a: number) => number;
1212
- readonly streamcloser_waitForReady: (a: number) => any;
1213
- readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
1392
+ readonly __wbg_streamcloser_free: (a: number, b: number) => void;
1214
1393
  readonly opfsClearAll: () => any;
1215
1394
  readonly opfsDeleteFile: (a: number, b: number) => any;
1216
1395
  readonly opfsExportDb: (a: number, b: number) => any;
@@ -1220,6 +1399,10 @@ export interface InitOutput {
1220
1399
  readonly opfsInit: () => any;
1221
1400
  readonly opfsListFiles: () => any;
1222
1401
  readonly opfsPoolCapacity: () => any;
1402
+ readonly streamcloser_end: (a: number) => void;
1403
+ readonly streamcloser_endAndWait: (a: number) => any;
1404
+ readonly streamcloser_isClosed: (a: number) => number;
1405
+ readonly streamcloser_waitForReady: (a: number) => any;
1223
1406
  readonly rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
1224
1407
  readonly rust_zstd_wasm_shim_free: (a: number) => void;
1225
1408
  readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
@@ -1238,34 +1421,54 @@ export interface InitOutput {
1238
1421
  readonly rust_sqlite_wasm_realloc: (a: number, b: number) => number;
1239
1422
  readonly sqlite3_os_end: () => number;
1240
1423
  readonly sqlite3_os_init: () => number;
1241
- readonly task_worker_entry_point: (a: number) => [number, number];
1242
- readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
1243
- readonly intounderlyingsink_abort: (a: number, b: any) => any;
1244
- readonly intounderlyingsink_close: (a: number) => any;
1245
- readonly intounderlyingsink_write: (a: number, b: any) => any;
1246
1424
  readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
1247
- readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
1248
1425
  readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
1249
1426
  readonly intounderlyingbytesource_cancel: (a: number) => void;
1250
1427
  readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
1251
1428
  readonly intounderlyingbytesource_start: (a: number, b: any) => void;
1252
1429
  readonly intounderlyingbytesource_type: (a: number) => number;
1430
+ readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
1431
+ readonly intounderlyingsink_abort: (a: number, b: any) => any;
1432
+ readonly intounderlyingsink_close: (a: number) => any;
1433
+ readonly intounderlyingsink_write: (a: number, b: any) => any;
1434
+ readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
1253
1435
  readonly intounderlyingsource_cancel: (a: number) => void;
1254
1436
  readonly intounderlyingsource_pull: (a: number, b: any) => any;
1255
- readonly wasm_bindgen__closure__destroy__h3780b9cea27d1b0e: (a: number, b: number) => void;
1256
- readonly wasm_bindgen__closure__destroy__ha0e8fabffbde5a75: (a: number, b: number) => void;
1257
- readonly wasm_bindgen__closure__destroy__h580b2c22888073c1: (a: number, b: number) => void;
1258
- readonly wasm_bindgen__closure__destroy__h8818735ce6b8834b: (a: number, b: number) => void;
1259
- readonly wasm_bindgen__convert__closures_____invoke__h9946670875dab85b: (a: number, b: number, c: any, d: any) => void;
1260
- readonly wasm_bindgen__convert__closures_____invoke__hcc62c9bf57b4ac74: (a: number, b: number, c: any) => void;
1261
- readonly wasm_bindgen__convert__closures_____invoke__h2c56f933a1e2701a: (a: number, b: number) => void;
1262
- readonly wasm_bindgen__convert__closures_____invoke__hc7cbde6e4b659782: (a: number, b: number) => void;
1263
- readonly wasm_bindgen__convert__closures_____invoke__hb319faf0153cb912: (a: number, b: number) => void;
1437
+ readonly task_worker_entry_point: (a: number) => [number, number];
1438
+ readonly __wbg_wasmbindgentestcontext_free: (a: number, b: number) => void;
1439
+ readonly __wbgtest_console_debug: (a: any) => void;
1440
+ readonly __wbgtest_console_error: (a: any) => void;
1441
+ readonly __wbgtest_console_info: (a: any) => void;
1442
+ readonly __wbgtest_console_log: (a: any) => void;
1443
+ readonly __wbgtest_console_warn: (a: any) => void;
1444
+ readonly wasmbindgentestcontext_filtered_count: (a: number, b: number) => void;
1445
+ readonly wasmbindgentestcontext_include_ignored: (a: number, b: number) => void;
1446
+ readonly wasmbindgentestcontext_new: (a: number) => number;
1447
+ readonly wasmbindgentestcontext_run: (a: number, b: number, c: number) => any;
1448
+ readonly __wbgbench_dump: () => [number, number];
1449
+ readonly __wbgbench_import: (a: number, b: number) => void;
1450
+ readonly __wbgtest_cov_dump: () => [number, number];
1451
+ readonly __wbgtest_module_signature: () => [number, bigint];
1452
+ readonly __wbgtest_coverage_path: (a: number, b: number, c: number, d: number, e: number, f: bigint) => [number, number];
1453
+ readonly wasm_bindgen__closure__destroy__h0d08380207e9a9d9: (a: number, b: number) => void;
1454
+ readonly wasm_bindgen__closure__destroy__ha966834d05fa118a: (a: number, b: number) => void;
1455
+ readonly wasm_bindgen__closure__destroy__hfb5fb7686997db4b: (a: number, b: number) => void;
1456
+ readonly wasm_bindgen__closure__destroy__h7209b1fb7810f3a7: (a: number, b: number) => void;
1457
+ readonly wasm_bindgen__closure__destroy__h032c7eb75ae4b8e8: (a: number, b: number) => void;
1458
+ readonly wasm_bindgen__closure__destroy__hf7fa66330d0f3282: (a: number, b: number) => void;
1459
+ readonly wasm_bindgen__convert__closures_____invoke__h463fcf847e24a8b9: (a: number, b: number, c: any, d: number, e: any) => void;
1460
+ readonly wasm_bindgen__convert__closures_____invoke__h8bed00622ec861bf: (a: number, b: number, c: any) => [number, number];
1461
+ readonly wasm_bindgen__convert__closures_____invoke__h4387b2ade76fdfcf: (a: number, b: number, c: any, d: any) => void;
1462
+ readonly wasm_bindgen__convert__closures_____invoke__h140f53b38323e9be: (a: number, b: number, c: any) => void;
1463
+ readonly wasm_bindgen__convert__closures_____invoke__hd0dc2e5511ed29f1: (a: number, b: number) => void;
1464
+ readonly wasm_bindgen__convert__closures_____invoke__h51cd27c89e2d87ba: (a: number, b: number) => void;
1465
+ readonly wasm_bindgen__convert__closures_____invoke__hbb4e335ca4c3b929: (a: number, b: number) => void;
1466
+ readonly wasm_bindgen__convert__closures_____invoke__ha56bcea43cbb87ac: (a: number, b: number) => void;
1467
+ readonly __externref_table_alloc: () => number;
1468
+ readonly __wbindgen_externrefs: WebAssembly.Table;
1264
1469
  readonly __wbindgen_malloc: (a: number, b: number) => number;
1265
1470
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
1266
1471
  readonly __wbindgen_exn_store: (a: number) => void;
1267
- readonly __externref_table_alloc: () => number;
1268
- readonly __wbindgen_externrefs: WebAssembly.Table;
1269
1472
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
1270
1473
  readonly __externref_drop_slice: (a: number, b: number) => void;
1271
1474
  readonly __externref_table_dealloc: (a: number) => void;