@xmtp/wasm-bindings 1.10.0-dev.7ce88dd → 1.10.0-dev.a2bdd0a

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.
@@ -445,6 +445,32 @@ export class AuthHandle {
445
445
  set(credential: Credential): Promise<void>;
446
446
  }
447
447
 
448
+ export class Backend {
449
+ private constructor();
450
+ free(): void;
451
+ [Symbol.dispose](): void;
452
+ readonly appVersion: string;
453
+ readonly env: XmtpEnv;
454
+ readonly gatewayHost: string | undefined;
455
+ readonly v3Host: string | undefined;
456
+ }
457
+
458
+ export class BackendBuilder {
459
+ free(): void;
460
+ [Symbol.dispose](): void;
461
+ authCallback(callback: any): void;
462
+ authHandle(handle: AuthHandle): void;
463
+ build(): Backend;
464
+ constructor(env: XmtpEnv);
465
+ setApiUrl(api_url: string): BackendBuilder;
466
+ setAppVersion(app_version: string): BackendBuilder;
467
+ setGatewayHost(gateway_host: string): BackendBuilder;
468
+ setReadonly(readonly: boolean): BackendBuilder;
469
+ env: XmtpEnv;
470
+ get readonly(): boolean | undefined;
471
+ set readonly(value: boolean | null | undefined);
472
+ }
473
+
448
474
  /**
449
475
  * Selection of what elements to include in a backup
450
476
  */
@@ -719,14 +745,14 @@ export class DeviceSync {
719
745
  /**
720
746
  * Manually trigger a device sync request to sync records from another active device on this account.
721
747
  */
722
- sendSyncRequest(): Promise<void>;
748
+ sendSyncRequest(options: ArchiveOptions, serverUrl: string): Promise<void>;
723
749
  /**
724
750
  * Manually sync all device sync groups.
725
751
  */
726
752
  syncAllDeviceSyncGroups(): Promise<GroupSyncSummary>;
727
753
  }
728
754
 
729
- export enum DeviceSyncWorkerMode {
755
+ export enum DeviceSyncMode {
730
756
  Enabled = 0,
731
757
  Disabled = 1,
732
758
  }
@@ -884,7 +910,105 @@ export class StreamCloser {
884
910
  waitForReady(): Promise<void>;
885
911
  }
886
912
 
887
- export function applySignatureRequest(host: string, gatewayHost: string | null | undefined, signatureRequest: SignatureRequestHandle): Promise<void>;
913
+ /**
914
+ * Runtime test harness support instantiated in JS.
915
+ *
916
+ * The node.js entry script instantiates a `Context` here which is used to
917
+ * drive test execution.
918
+ */
919
+ export class WasmBindgenTestContext {
920
+ free(): void;
921
+ [Symbol.dispose](): void;
922
+ /**
923
+ * Handle filter argument.
924
+ */
925
+ filtered_count(filtered: number): void;
926
+ /**
927
+ * Handle `--include-ignored` flag.
928
+ */
929
+ include_ignored(include_ignored: boolean): void;
930
+ /**
931
+ * Creates a new context ready to run tests.
932
+ *
933
+ * A `Context` is the main structure through which test execution is
934
+ * coordinated, and this will collect output and results for all executed
935
+ * tests.
936
+ */
937
+ constructor(is_bench: boolean);
938
+ /**
939
+ * Executes a list of tests, returning a promise representing their
940
+ * eventual completion.
941
+ *
942
+ * This is the main entry point for executing tests. All the tests passed
943
+ * in are the JS `Function` object that was plucked off the
944
+ * `WebAssembly.Instance` exports list.
945
+ *
946
+ * The promise returned resolves to either `true` if all tests passed or
947
+ * `false` if at least one test failed.
948
+ */
949
+ run(tests: any[]): Promise<any>;
950
+ }
951
+
952
+ export enum XmtpEnv {
953
+ Local = 0,
954
+ Dev = 1,
955
+ Production = 2,
956
+ TestnetStaging = 3,
957
+ TestnetDev = 4,
958
+ Testnet = 5,
959
+ Mainnet = 6,
960
+ }
961
+
962
+ /**
963
+ * Used to read benchmark data, and then the runner stores it on the local disk.
964
+ */
965
+ export function __wbgbench_dump(): Uint8Array | undefined;
966
+
967
+ /**
968
+ * Used to write previous benchmark data before the benchmark, for later comparison.
969
+ */
970
+ export function __wbgbench_import(baseline: Uint8Array): void;
971
+
972
+ /**
973
+ * Handler for `console.debug` invocations. See above.
974
+ */
975
+ export function __wbgtest_console_debug(args: Array<any>): void;
976
+
977
+ /**
978
+ * Handler for `console.error` invocations. See above.
979
+ */
980
+ export function __wbgtest_console_error(args: Array<any>): void;
981
+
982
+ /**
983
+ * Handler for `console.info` invocations. See above.
984
+ */
985
+ export function __wbgtest_console_info(args: Array<any>): void;
986
+
987
+ /**
988
+ * Handler for `console.log` invocations.
989
+ *
990
+ * If a test is currently running it takes the `args` array and stringifies
991
+ * it and appends it to the current output of the test. Otherwise it passes
992
+ * the arguments to the original `console.log` function, psased as
993
+ * `original`.
994
+ */
995
+ export function __wbgtest_console_log(args: Array<any>): void;
996
+
997
+ /**
998
+ * Handler for `console.warn` invocations. See above.
999
+ */
1000
+ export function __wbgtest_console_warn(args: Array<any>): void;
1001
+
1002
+ export function __wbgtest_cov_dump(): Uint8Array | undefined;
1003
+
1004
+ /**
1005
+ * Path to use for coverage data.
1006
+ */
1007
+ export function __wbgtest_coverage_path(env: string | null | undefined, pid: number, temp_dir: string, module_signature: bigint): string;
1008
+
1009
+ export function __wbgtest_module_signature(): bigint | undefined;
1010
+
1011
+ export function applySignatureRequest(backend: Backend, signatureRequest: SignatureRequestHandle): Promise<void>;
888
1012
 
889
1013
  export function contentTypeActions(): ContentTypeId;
890
1014
 
@@ -914,7 +1038,15 @@ export function contentTypeTransactionReference(): ContentTypeId;
914
1038
 
915
1039
  export function contentTypeWalletSendCalls(): ContentTypeId;
916
1040
 
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>;
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>;
1042
+
1043
+ /**
1044
+ * Create a client from a pre-built Backend.
1045
+ *
1046
+ * The Backend encapsulates all API configuration (env, hosts, auth, TLS).
1047
+ * This function only needs identity and database configuration.
1048
+ */
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>;
918
1050
 
919
1051
  /**
920
1052
  * Decrypts an encrypted payload from a remote attachment.
@@ -950,9 +1082,9 @@ export function encryptAttachment(attachment: Attachment): EncryptedAttachment;
950
1082
 
951
1083
  export function generateInboxId(accountIdentifier: Identifier, nonce?: bigint | null): string;
952
1084
 
953
- export function getInboxIdForIdentifier(host: string, gatewayHost: string | null | undefined, isSecure: boolean, accountIdentifier: Identifier): Promise<string | undefined>;
1085
+ export function getInboxIdForIdentifier(backend: Backend, accountIdentifier: Identifier): Promise<string | undefined>;
954
1086
 
955
- export function inboxStateFromInboxIds(host: string, gatewayHost: string | null | undefined, inboxIds: string[]): Promise<InboxState[]>;
1087
+ export function inboxStateFromInboxIds(backend: Backend, inboxIds: string[]): Promise<InboxState[]>;
956
1088
 
957
1089
  export function metadataFieldName(field: MetadataField): string;
958
1090
 
@@ -1011,7 +1143,7 @@ export function opfsListFiles(): Promise<string[]>;
1011
1143
  */
1012
1144
  export function opfsPoolCapacity(): Promise<number>;
1013
1145
 
1014
- export function revokeInstallationsSignatureRequest(host: string, gatewayHost: string | null | undefined, recoveryIdentifier: Identifier, inboxId: string, installationIds: Uint8Array[]): SignatureRequestHandle;
1146
+ export function revokeInstallationsSignatureRequest(backend: Backend, recoveryIdentifier: Identifier, inboxId: string, installationIds: Uint8Array[]): SignatureRequestHandle;
1015
1147
 
1016
1148
  /**
1017
1149
  * Entry point invoked by JavaScript in a worker.
@@ -1024,62 +1156,64 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
1024
1156
 
1025
1157
  export interface InitOutput {
1026
1158
  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
1159
  readonly __wbg_authhandle_free: (a: number, b: number) => void;
1033
1160
  readonly authhandle_id: (a: number) => number;
1034
1161
  readonly authhandle_new: () => number;
1035
1162
  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
1163
  readonly client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
1047
1164
  readonly client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
1048
1165
  readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
1049
1166
  readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
1050
1167
  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];
1168
+ readonly inboxStateFromInboxIds: (a: number, b: number, c: number) => any;
1169
+ readonly __wbg_backend_free: (a: number, b: number) => void;
1170
+ readonly __wbg_backendbuilder_free: (a: number, b: number) => void;
1171
+ readonly __wbg_get_backendbuilder_env: (a: number) => number;
1172
+ readonly __wbg_get_backendbuilder_readonly: (a: number) => number;
1173
+ readonly __wbg_set_backendbuilder_env: (a: number, b: number) => void;
1174
+ readonly __wbg_set_backendbuilder_readonly: (a: number, b: number) => void;
1175
+ readonly __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
1176
+ readonly applySignatureRequest: (a: number, b: number) => any;
1177
+ readonly backend_appVersion: (a: number) => [number, number];
1178
+ readonly backend_env: (a: number) => number;
1179
+ readonly backend_gatewayHost: (a: number) => [number, number];
1180
+ readonly backend_v3Host: (a: number) => [number, number];
1181
+ readonly backendbuilder_authCallback: (a: number, b: any) => void;
1182
+ readonly backendbuilder_authHandle: (a: number, b: number) => void;
1183
+ readonly backendbuilder_build: (a: number) => [number, number, number];
1184
+ readonly backendbuilder_new: (a: number) => number;
1185
+ readonly backendbuilder_setApiUrl: (a: number, b: number, c: number) => number;
1186
+ readonly backendbuilder_setAppVersion: (a: number, b: number, c: number) => number;
1187
+ readonly backendbuilder_setGatewayHost: (a: number, b: number, c: number) => number;
1188
+ readonly backendbuilder_setReadonly: (a: number, b: number) => number;
1189
+ readonly client_addWalletSignatureRequest: (a: number, b: any) => any;
1190
+ readonly client_applySignatureRequest: (a: number, b: number) => any;
1191
+ readonly client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
1192
+ readonly client_createInboxSignatureRequest: (a: number) => [number, number, number];
1193
+ readonly client_registerIdentity: (a: number, b: number) => any;
1194
+ readonly client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
1195
+ readonly client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
1196
+ readonly client_revokeWalletSignatureRequest: (a: number, b: any) => any;
1197
+ readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
1198
+ readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
1199
+ 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;
1200
+ readonly revokeInstallationsSignatureRequest: (a: number, b: any, c: number, d: number, e: number, f: number) => [number, number, number];
1201
+ readonly signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
1202
+ readonly signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
1203
+ readonly signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
1204
+ readonly signaturerequesthandle_signatureText: (a: number) => any;
1205
+ readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
1056
1206
  readonly contentTypeReply: () => any;
1057
1207
  readonly __wbg_client_free: (a: number, b: number) => void;
1058
- 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
1208
  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;
1068
- 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
1209
  readonly client_accountIdentifier: (a: number) => any;
1072
- readonly client_addWalletSignatureRequest: (a: number, b: any) => any;
1073
1210
  readonly client_apiAggregateStatistics: (a: number) => [number, number];
1074
1211
  readonly client_apiIdentityStatistics: (a: number) => any;
1075
1212
  readonly client_apiStatistics: (a: number) => any;
1076
1213
  readonly client_appVersion: (a: number) => [number, number];
1077
- readonly client_applySignatureRequest: (a: number, b: number) => any;
1078
1214
  readonly client_canMessage: (a: number, b: number, c: number) => any;
1079
- readonly client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
1080
1215
  readonly client_clearAllStatistics: (a: number) => void;
1081
1216
  readonly client_conversations: (a: number) => number;
1082
- readonly client_createInboxSignatureRequest: (a: number) => [number, number, number];
1083
1217
  readonly client_device_sync: (a: number) => number;
1084
1218
  readonly client_findInboxIdByIdentity: (a: number, b: any) => any;
1085
1219
  readonly client_inboxId: (a: number) => [number, number];
@@ -1088,19 +1222,57 @@ export interface InitOutput {
1088
1222
  readonly client_installationIdBytes: (a: number) => any;
1089
1223
  readonly client_isRegistered: (a: number) => number;
1090
1224
  readonly client_libxmtpVersion: (a: number) => [number, number];
1091
- readonly client_registerIdentity: (a: number, b: number) => any;
1092
- readonly client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
1093
- readonly client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
1094
- readonly client_revokeWalletSignatureRequest: (a: number, b: any) => any;
1095
- readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
1096
1225
  readonly client_syncPreferences: (a: number) => any;
1097
- readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
1098
- readonly contentTypeActions: () => any;
1226
+ readonly contentTypeAttachment: () => any;
1099
1227
  readonly contentTypeIntent: () => any;
1100
- readonly contentTypeReaction: () => any;
1228
+ readonly contentTypeLeaveRequest: () => any;
1229
+ readonly contentTypeMarkdown: () => any;
1101
1230
  readonly contentTypeReadReceipt: () => any;
1102
- readonly contentTypeRemoteAttachment: () => any;
1231
+ readonly contentTypeText: () => any;
1232
+ 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;
1233
+ readonly devicesync_archiveMetadata: (a: number, b: any, c: any) => any;
1234
+ readonly devicesync_createArchive: (a: number, b: any, c: any) => any;
1235
+ readonly devicesync_importArchive: (a: number, b: any, c: any) => any;
1236
+ readonly devicesync_listAvailableArchives: (a: number, b: bigint) => [number, number, number, number];
1237
+ readonly devicesync_processSyncArchive: (a: number, b: number, c: number) => any;
1238
+ readonly devicesync_sendSyncArchive: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
1239
+ readonly devicesync_sendSyncRequest: (a: number, b: any, c: number, d: number) => any;
1240
+ readonly devicesync_syncAllDeviceSyncGroups: (a: number) => any;
1241
+ readonly encodeAttachment: (a: any) => [number, number, number];
1242
+ readonly encodeIntent: (a: any) => [number, number, number];
1243
+ readonly encodeMarkdown: (a: number, b: number) => [number, number, number];
1244
+ readonly encodeReadReceipt: (a: any) => [number, number, number];
1245
+ readonly encodeText: (a: number, b: number) => [number, number, number];
1246
+ readonly generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
1247
+ readonly getInboxIdForIdentifier: (a: number, b: any) => any;
1248
+ readonly __wbg_streamcloser_free: (a: number, b: number) => void;
1249
+ readonly contentTypeActions: () => any;
1250
+ readonly contentTypeGroupUpdated: () => any;
1251
+ readonly contentTypeMultiRemoteAttachment: () => any;
1252
+ readonly contentTypeReaction: () => any;
1253
+ readonly contentTypeTransactionReference: () => any;
1103
1254
  readonly contentTypeWalletSendCalls: () => any;
1255
+ readonly encodeActions: (a: any) => [number, number, number];
1256
+ readonly encodeMultiRemoteAttachment: (a: any) => [number, number, number];
1257
+ readonly encodeReaction: (a: any) => [number, number, number];
1258
+ readonly encodeTransactionReference: (a: any) => [number, number, number];
1259
+ readonly encodeWalletSendCalls: (a: any) => [number, number, number];
1260
+ readonly streamcloser_end: (a: number) => void;
1261
+ readonly streamcloser_endAndWait: (a: number) => any;
1262
+ readonly streamcloser_isClosed: (a: number) => number;
1263
+ readonly streamcloser_waitForReady: (a: number) => any;
1264
+ readonly __wbg_conversation_free: (a: number, b: number) => void;
1265
+ readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
1266
+ readonly __wbg_conversations_free: (a: number, b: number) => void;
1267
+ readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
1268
+ readonly __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
1269
+ readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
1270
+ readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
1271
+ readonly __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
1272
+ readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
1273
+ readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
1274
+ readonly client_setConsentStates: (a: number, b: number, c: number) => any;
1275
+ readonly contentTypeRemoteAttachment: () => any;
1104
1276
  readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
1105
1277
  readonly conversation_addMembers: (a: number, b: number, c: number) => any;
1106
1278
  readonly conversation_addMembersByIdentity: (a: number, b: number, c: number) => any;
@@ -1108,6 +1280,7 @@ export interface InitOutput {
1108
1280
  readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
1109
1281
  readonly conversation_adminList: (a: number) => [number, number, number, number];
1110
1282
  readonly conversation_appData: (a: number) => [number, number, number, number];
1283
+ readonly conversation_consentState: (a: number) => [number, number, number];
1111
1284
  readonly conversation_countMessages: (a: number, b: number) => any;
1112
1285
  readonly conversation_createdAtNs: (a: number) => bigint;
1113
1286
  readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
@@ -1158,6 +1331,7 @@ export interface InitOutput {
1158
1331
  readonly conversation_superAdminList: (a: number) => [number, number, number, number];
1159
1332
  readonly conversation_sync: (a: number) => any;
1160
1333
  readonly conversation_updateAppData: (a: number, b: number, c: number) => any;
1334
+ readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
1161
1335
  readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
1162
1336
  readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
1163
1337
  readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
@@ -1184,33 +1358,10 @@ export interface InitOutput {
1184
1358
  readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
1185
1359
  readonly conversations_sync: (a: number) => any;
1186
1360
  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
1361
  readonly decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
1189
- readonly devicesync_archiveMetadata: (a: number, b: any, c: any) => any;
1190
- readonly devicesync_createArchive: (a: number, b: any, c: any) => any;
1191
- readonly devicesync_importArchive: (a: number, b: any, c: any) => any;
1192
- readonly devicesync_listAvailableArchives: (a: number, b: bigint) => [number, number, number, number];
1193
- readonly devicesync_processSyncArchive: (a: number, b: number, c: number) => any;
1194
- readonly devicesync_sendSyncArchive: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
1195
- readonly devicesync_sendSyncRequest: (a: number) => any;
1196
- 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
1362
  readonly encodeRemoteAttachment: (a: any) => [number, number, number];
1202
- readonly encodeWalletSendCalls: (a: any) => [number, number, number];
1203
1363
  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];
1364
+ readonly metadataFieldName: (a: number) => [number, number];
1214
1365
  readonly opfsClearAll: () => any;
1215
1366
  readonly opfsDeleteFile: (a: number, b: number) => any;
1216
1367
  readonly opfsExportDb: (a: number, b: number) => any;
@@ -1252,20 +1403,36 @@ export interface InitOutput {
1252
1403
  readonly intounderlyingbytesource_type: (a: number) => number;
1253
1404
  readonly intounderlyingsource_cancel: (a: number) => void;
1254
1405
  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;
1406
+ readonly __wbg_wasmbindgentestcontext_free: (a: number, b: number) => void;
1407
+ readonly __wbgtest_console_debug: (a: any) => void;
1408
+ readonly __wbgtest_console_error: (a: any) => void;
1409
+ readonly __wbgtest_console_info: (a: any) => void;
1410
+ readonly __wbgtest_console_log: (a: any) => void;
1411
+ readonly __wbgtest_console_warn: (a: any) => void;
1412
+ readonly wasmbindgentestcontext_filtered_count: (a: number, b: number) => void;
1413
+ readonly wasmbindgentestcontext_include_ignored: (a: number, b: number) => void;
1414
+ readonly wasmbindgentestcontext_new: (a: number) => number;
1415
+ readonly wasmbindgentestcontext_run: (a: number, b: number, c: number) => any;
1416
+ readonly __wbgtest_cov_dump: () => [number, number];
1417
+ readonly __wbgtest_module_signature: () => [number, bigint];
1418
+ readonly __wbgbench_dump: () => [number, number];
1419
+ readonly __wbgbench_import: (a: number, b: number) => void;
1420
+ readonly __wbgtest_coverage_path: (a: number, b: number, c: number, d: number, e: number, f: bigint) => [number, number];
1421
+ readonly wasm_bindgen__closure__destroy__he86c9d9bb368f43f: (a: number, b: number) => void;
1422
+ readonly wasm_bindgen__closure__destroy__h213ec6c0cfaa8daa: (a: number, b: number) => void;
1423
+ readonly wasm_bindgen__closure__destroy__h006fa4718e4400fc: (a: number, b: number) => void;
1424
+ readonly wasm_bindgen__closure__destroy__hd56fbfc240f3eed8: (a: number, b: number) => void;
1425
+ readonly wasm_bindgen__convert__closures_____invoke__h4761911dc2bcd4ab: (a: number, b: number, c: any, d: number, e: any) => void;
1426
+ readonly wasm_bindgen__convert__closures_____invoke__h93371d492ea6dccf: (a: number, b: number, c: any, d: any) => void;
1427
+ readonly wasm_bindgen__convert__closures_____invoke__h01ab1ec45c07a95b: (a: number, b: number, c: any) => void;
1428
+ readonly wasm_bindgen__convert__closures_____invoke__h7478175f8808d1fa: (a: number, b: number) => void;
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;
1431
+ readonly __externref_table_alloc: () => number;
1432
+ readonly __wbindgen_externrefs: WebAssembly.Table;
1264
1433
  readonly __wbindgen_malloc: (a: number, b: number) => number;
1265
1434
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
1266
1435
  readonly __wbindgen_exn_store: (a: number) => void;
1267
- readonly __externref_table_alloc: () => number;
1268
- readonly __wbindgen_externrefs: WebAssembly.Table;
1269
1436
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
1270
1437
  readonly __externref_drop_slice: (a: number, b: number) => void;
1271
1438
  readonly __externref_table_dealloc: (a: number) => void;