@xmtp/wasm-bindings 1.10.0-dev.f44d5e5 → 1.10.0-dev.f517e98

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
  }
@@ -923,6 +949,16 @@ export class WasmBindgenTestContext {
923
949
  run(tests: any[]): Promise<any>;
924
950
  }
925
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
+
926
962
  /**
927
963
  * Used to read benchmark data, and then the runner stores it on the local disk.
928
964
  */
@@ -972,7 +1008,7 @@ export function __wbgtest_coverage_path(env: string | null | undefined, pid: num
972
1008
 
973
1009
  export function __wbgtest_module_signature(): bigint | undefined;
974
1010
 
975
- export function applySignatureRequest(host: string, gatewayHost: string | null | undefined, signatureRequest: SignatureRequestHandle): Promise<void>;
1011
+ export function applySignatureRequest(backend: Backend, signatureRequest: SignatureRequestHandle): Promise<void>;
976
1012
 
977
1013
  export function contentTypeActions(): ContentTypeId;
978
1014
 
@@ -1002,7 +1038,15 @@ export function contentTypeTransactionReference(): ContentTypeId;
1002
1038
 
1003
1039
  export function contentTypeWalletSendCalls(): ContentTypeId;
1004
1040
 
1005
- 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>;
1006
1050
 
1007
1051
  /**
1008
1052
  * Decrypts an encrypted payload from a remote attachment.
@@ -1038,9 +1082,9 @@ export function encryptAttachment(attachment: Attachment): EncryptedAttachment;
1038
1082
 
1039
1083
  export function generateInboxId(accountIdentifier: Identifier, nonce?: bigint | null): string;
1040
1084
 
1041
- 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>;
1042
1086
 
1043
- export function inboxStateFromInboxIds(host: string, gatewayHost: string | null | undefined, inboxIds: string[]): Promise<InboxState[]>;
1087
+ export function inboxStateFromInboxIds(backend: Backend, inboxIds: string[]): Promise<InboxState[]>;
1044
1088
 
1045
1089
  export function metadataFieldName(field: MetadataField): string;
1046
1090
 
@@ -1099,7 +1143,7 @@ export function opfsListFiles(): Promise<string[]>;
1099
1143
  */
1100
1144
  export function opfsPoolCapacity(): Promise<number>;
1101
1145
 
1102
- 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;
1103
1147
 
1104
1148
  /**
1105
1149
  * Entry point invoked by JavaScript in a worker.
@@ -1112,18 +1156,7 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
1112
1156
 
1113
1157
  export interface InitOutput {
1114
1158
  readonly memory: WebAssembly.Memory;
1115
- readonly __wbg_authhandle_free: (a: number, b: number) => void;
1116
- readonly authhandle_id: (a: number) => number;
1117
- readonly authhandle_new: () => number;
1118
- readonly authhandle_set: (a: number, b: any) => any;
1119
- readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
1120
- readonly client_setConsentStates: (a: number, b: number, c: number) => any;
1121
- readonly contentTypeGroupUpdated: () => any;
1122
- readonly contentTypeTransactionReference: () => any;
1123
- readonly conversation_consentState: (a: number) => [number, number, number];
1124
- readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
1125
- readonly encodeTransactionReference: (a: any) => [number, number, number];
1126
- readonly contentTypeReply: () => any;
1159
+ readonly __wbg_streamcloser_free: (a: number, b: number) => void;
1127
1160
  readonly opfsClearAll: () => any;
1128
1161
  readonly opfsDeleteFile: (a: number, b: number) => any;
1129
1162
  readonly opfsExportDb: (a: number, b: number) => any;
@@ -1133,20 +1166,55 @@ export interface InitOutput {
1133
1166
  readonly opfsInit: () => any;
1134
1167
  readonly opfsListFiles: () => any;
1135
1168
  readonly opfsPoolCapacity: () => any;
1169
+ readonly streamcloser_end: (a: number) => void;
1170
+ readonly streamcloser_endAndWait: (a: number) => any;
1171
+ readonly streamcloser_isClosed: (a: number) => number;
1172
+ readonly streamcloser_waitForReady: (a: number) => any;
1173
+ readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
1174
+ readonly client_setConsentStates: (a: number, b: number, c: number) => any;
1175
+ readonly contentTypeActions: () => any;
1176
+ readonly contentTypeGroupUpdated: () => any;
1177
+ readonly contentTypeMarkdown: () => any;
1178
+ readonly contentTypeMultiRemoteAttachment: () => any;
1179
+ readonly contentTypeText: () => any;
1180
+ readonly conversation_consentState: (a: number) => [number, number, number];
1181
+ readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
1182
+ readonly encodeActions: (a: any) => [number, number, number];
1183
+ readonly encodeMarkdown: (a: number, b: number) => [number, number, number];
1184
+ readonly encodeMultiRemoteAttachment: (a: any) => [number, number, number];
1185
+ readonly encodeText: (a: number, b: number) => [number, number, number];
1186
+ readonly generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
1187
+ readonly getInboxIdForIdentifier: (a: number, b: any) => any;
1188
+ readonly metadataFieldName: (a: number) => [number, number];
1189
+ readonly __wbg_backend_free: (a: number, b: number) => void;
1190
+ readonly __wbg_backendbuilder_free: (a: number, b: number) => void;
1136
1191
  readonly __wbg_client_free: (a: number, b: number) => void;
1137
- readonly __wbg_conversation_free: (a: number, b: number) => void;
1138
1192
  readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
1139
1193
  readonly __wbg_conversations_free: (a: number, b: number) => void;
1140
- readonly __wbg_devicesync_free: (a: number, b: number) => void;
1194
+ readonly __wbg_get_backendbuilder_env: (a: number) => number;
1195
+ readonly __wbg_get_backendbuilder_readonly: (a: number) => number;
1141
1196
  readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
1142
1197
  readonly __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
1143
1198
  readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
1199
+ readonly __wbg_set_backendbuilder_env: (a: number, b: number) => void;
1200
+ readonly __wbg_set_backendbuilder_readonly: (a: number, b: number) => void;
1144
1201
  readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
1145
1202
  readonly __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
1146
1203
  readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
1147
1204
  readonly __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
1148
- readonly __wbg_streamcloser_free: (a: number, b: number) => void;
1149
- readonly applySignatureRequest: (a: number, b: number, c: number, d: number, e: number) => any;
1205
+ readonly applySignatureRequest: (a: number, b: number) => any;
1206
+ readonly backend_appVersion: (a: number) => [number, number];
1207
+ readonly backend_env: (a: number) => number;
1208
+ readonly backend_gatewayHost: (a: number) => [number, number];
1209
+ readonly backend_v3Host: (a: number) => [number, number];
1210
+ readonly backendbuilder_authCallback: (a: number, b: any) => void;
1211
+ readonly backendbuilder_authHandle: (a: number, b: number) => void;
1212
+ readonly backendbuilder_build: (a: number) => [number, number, number];
1213
+ readonly backendbuilder_new: (a: number) => number;
1214
+ readonly backendbuilder_setApiUrl: (a: number, b: number, c: number) => number;
1215
+ readonly backendbuilder_setAppVersion: (a: number, b: number, c: number) => number;
1216
+ readonly backendbuilder_setGatewayHost: (a: number, b: number, c: number) => number;
1217
+ readonly backendbuilder_setReadonly: (a: number, b: number) => number;
1150
1218
  readonly client_accountIdentifier: (a: number) => any;
1151
1219
  readonly client_addWalletSignatureRequest: (a: number, b: any) => any;
1152
1220
  readonly client_apiAggregateStatistics: (a: number) => [number, number];
@@ -1159,7 +1227,6 @@ export interface InitOutput {
1159
1227
  readonly client_clearAllStatistics: (a: number) => void;
1160
1228
  readonly client_conversations: (a: number) => number;
1161
1229
  readonly client_createInboxSignatureRequest: (a: number) => [number, number, number];
1162
- readonly client_device_sync: (a: number) => number;
1163
1230
  readonly client_findInboxIdByIdentity: (a: number, b: any) => any;
1164
1231
  readonly client_inboxId: (a: number) => [number, number];
1165
1232
  readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
@@ -1174,13 +1241,66 @@ export interface InitOutput {
1174
1241
  readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
1175
1242
  readonly client_syncPreferences: (a: number) => any;
1176
1243
  readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
1177
- readonly contentTypeActions: () => any;
1178
1244
  readonly contentTypeAttachment: () => any;
1179
1245
  readonly contentTypeIntent: () => any;
1246
+ readonly contentTypeLeaveRequest: () => any;
1180
1247
  readonly contentTypeReaction: () => any;
1181
1248
  readonly contentTypeReadReceipt: () => any;
1182
- readonly contentTypeRemoteAttachment: () => any;
1183
1249
  readonly contentTypeWalletSendCalls: () => any;
1250
+ readonly conversationlistitem_new: (a: number, b: number, c: number) => number;
1251
+ readonly conversations_createDm: (a: number, b: any, c: number) => any;
1252
+ readonly conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
1253
+ readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
1254
+ readonly conversations_createGroupByInboxIds: (a: number, b: number, c: number, d: number) => any;
1255
+ readonly conversations_createGroupOptimistic: (a: number, b: number) => [number, number, number];
1256
+ readonly conversations_deleteMessageById: (a: number, b: number, c: number) => [number, number, number];
1257
+ readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
1258
+ readonly conversations_findEnrichedMessageById: (a: number, b: number, c: number) => any;
1259
+ readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
1260
+ readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
1261
+ readonly conversations_getHmacKeys: (a: number) => [number, number, number];
1262
+ readonly conversations_list: (a: number, b: number) => [number, number, number];
1263
+ readonly conversations_stream: (a: number, b: any, c: number) => [number, number, number];
1264
+ readonly conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
1265
+ readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
1266
+ readonly conversations_streamLocal: (a: number, b: number) => any;
1267
+ readonly conversations_streamMessageDeletions: (a: number, b: any) => [number, number, number];
1268
+ readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
1269
+ readonly conversations_sync: (a: number) => any;
1270
+ readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
1271
+ 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;
1272
+ 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;
1273
+ readonly encodeAttachment: (a: any) => [number, number, number];
1274
+ readonly encodeIntent: (a: any) => [number, number, number];
1275
+ readonly encodeReaction: (a: any) => [number, number, number];
1276
+ readonly encodeReadReceipt: (a: any) => [number, number, number];
1277
+ readonly encodeWalletSendCalls: (a: any) => [number, number, number];
1278
+ readonly revokeInstallationsSignatureRequest: (a: number, b: any, c: number, d: number, e: number, f: number) => [number, number, number];
1279
+ readonly signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
1280
+ readonly signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
1281
+ readonly signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
1282
+ readonly signaturerequesthandle_signatureText: (a: number) => any;
1283
+ readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
1284
+ readonly client_device_sync: (a: number) => number;
1285
+ readonly contentTypeRemoteAttachment: () => any;
1286
+ readonly contentTypeReply: () => any;
1287
+ readonly contentTypeTransactionReference: () => any;
1288
+ readonly decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
1289
+ readonly encodeRemoteAttachment: (a: any) => [number, number, number];
1290
+ readonly encodeTransactionReference: (a: any) => [number, number, number];
1291
+ readonly encryptAttachment: (a: any) => [number, number, number];
1292
+ readonly __wbg_authhandle_free: (a: number, b: number) => void;
1293
+ readonly authhandle_id: (a: number) => number;
1294
+ readonly authhandle_new: () => number;
1295
+ readonly authhandle_set: (a: number, b: any) => any;
1296
+ readonly client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
1297
+ readonly client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
1298
+ readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
1299
+ readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
1300
+ readonly client_inboxState: (a: number, b: number) => any;
1301
+ readonly inboxStateFromInboxIds: (a: number, b: number, c: number) => any;
1302
+ readonly __wbg_conversation_free: (a: number, b: number) => void;
1303
+ readonly __wbg_devicesync_free: (a: number, b: number) => void;
1184
1304
  readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
1185
1305
  readonly conversation_addMembers: (a: number, b: number, c: number) => any;
1186
1306
  readonly conversation_addMembersByIdentity: (a: number, b: number, c: number) => any;
@@ -1243,71 +1363,14 @@ export interface InitOutput {
1243
1363
  readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
1244
1364
  readonly conversation_updateMessageDisappearingSettings: (a: number, b: any) => any;
1245
1365
  readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
1246
- readonly conversationlistitem_new: (a: number, b: number, c: number) => number;
1247
- readonly conversations_createDm: (a: number, b: any, c: number) => any;
1248
- readonly conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
1249
- readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
1250
- readonly conversations_createGroupByInboxIds: (a: number, b: number, c: number, d: number) => any;
1251
- readonly conversations_createGroupOptimistic: (a: number, b: number) => [number, number, number];
1252
- readonly conversations_deleteMessageById: (a: number, b: number, c: number) => [number, number, number];
1253
- readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
1254
- readonly conversations_findEnrichedMessageById: (a: number, b: number, c: number) => any;
1255
- readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
1256
- readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
1257
- readonly conversations_getHmacKeys: (a: number) => [number, number, number];
1258
- readonly conversations_list: (a: number, b: number) => [number, number, number];
1259
- readonly conversations_stream: (a: number, b: any, c: number) => [number, number, number];
1260
- readonly conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
1261
- readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
1262
- readonly conversations_streamLocal: (a: number, b: number) => any;
1263
- readonly conversations_streamMessageDeletions: (a: number, b: any) => [number, number, number];
1264
- readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
1265
- readonly conversations_sync: (a: number) => any;
1266
- readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
1267
- 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;
1268
- readonly decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
1269
1366
  readonly devicesync_archiveMetadata: (a: number, b: any, c: any) => any;
1270
1367
  readonly devicesync_createArchive: (a: number, b: any, c: any) => any;
1271
1368
  readonly devicesync_importArchive: (a: number, b: any, c: any) => any;
1272
1369
  readonly devicesync_listAvailableArchives: (a: number, b: bigint) => [number, number, number, number];
1273
1370
  readonly devicesync_processSyncArchive: (a: number, b: number, c: number) => any;
1274
1371
  readonly devicesync_sendSyncArchive: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
1275
- readonly devicesync_sendSyncRequest: (a: number) => any;
1372
+ readonly devicesync_sendSyncRequest: (a: number, b: any, c: number, d: number) => any;
1276
1373
  readonly devicesync_syncAllDeviceSyncGroups: (a: number) => any;
1277
- readonly encodeActions: (a: any) => [number, number, number];
1278
- readonly encodeAttachment: (a: any) => [number, number, number];
1279
- readonly encodeIntent: (a: any) => [number, number, number];
1280
- readonly encodeReaction: (a: any) => [number, number, number];
1281
- readonly encodeReadReceipt: (a: any) => [number, number, number];
1282
- readonly encodeRemoteAttachment: (a: any) => [number, number, number];
1283
- readonly encodeWalletSendCalls: (a: any) => [number, number, number];
1284
- readonly encryptAttachment: (a: any) => [number, number, number];
1285
- readonly revokeInstallationsSignatureRequest: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number) => [number, number, number];
1286
- readonly signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
1287
- readonly signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
1288
- readonly signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
1289
- readonly signaturerequesthandle_signatureText: (a: number) => any;
1290
- readonly streamcloser_end: (a: number) => void;
1291
- readonly streamcloser_endAndWait: (a: number) => any;
1292
- readonly streamcloser_isClosed: (a: number) => number;
1293
- readonly streamcloser_waitForReady: (a: number) => any;
1294
- readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
1295
- readonly client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
1296
- readonly client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
1297
- readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
1298
- readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
1299
- readonly client_inboxState: (a: number, b: number) => any;
1300
- readonly contentTypeLeaveRequest: () => any;
1301
- readonly contentTypeMarkdown: () => any;
1302
- readonly contentTypeMultiRemoteAttachment: () => any;
1303
- readonly contentTypeText: () => any;
1304
- readonly encodeMarkdown: (a: number, b: number) => [number, number, number];
1305
- readonly encodeMultiRemoteAttachment: (a: any) => [number, number, number];
1306
- readonly encodeText: (a: number, b: number) => [number, number, number];
1307
- readonly generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
1308
- readonly getInboxIdForIdentifier: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
1309
- readonly inboxStateFromInboxIds: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
1310
- readonly metadataFieldName: (a: number) => [number, number];
1311
1374
  readonly rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
1312
1375
  readonly rust_zstd_wasm_shim_free: (a: number) => void;
1313
1376
  readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
@@ -1326,20 +1389,20 @@ export interface InitOutput {
1326
1389
  readonly rust_sqlite_wasm_realloc: (a: number, b: number) => number;
1327
1390
  readonly sqlite3_os_end: () => number;
1328
1391
  readonly sqlite3_os_init: () => number;
1329
- readonly task_worker_entry_point: (a: number) => [number, number];
1330
- readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
1331
- readonly intounderlyingsink_abort: (a: number, b: any) => any;
1332
- readonly intounderlyingsink_close: (a: number) => any;
1333
- readonly intounderlyingsink_write: (a: number, b: any) => any;
1334
1392
  readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
1335
- readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
1336
1393
  readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
1337
1394
  readonly intounderlyingbytesource_cancel: (a: number) => void;
1338
1395
  readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
1339
1396
  readonly intounderlyingbytesource_start: (a: number, b: any) => void;
1340
1397
  readonly intounderlyingbytesource_type: (a: number) => number;
1398
+ readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
1399
+ readonly intounderlyingsink_abort: (a: number, b: any) => any;
1400
+ readonly intounderlyingsink_close: (a: number) => any;
1401
+ readonly intounderlyingsink_write: (a: number, b: any) => any;
1402
+ readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
1341
1403
  readonly intounderlyingsource_cancel: (a: number) => void;
1342
1404
  readonly intounderlyingsource_pull: (a: number, b: any) => any;
1405
+ readonly task_worker_entry_point: (a: number) => [number, number];
1343
1406
  readonly __wbg_wasmbindgentestcontext_free: (a: number, b: number) => void;
1344
1407
  readonly __wbgtest_console_debug: (a: any) => void;
1345
1408
  readonly __wbgtest_console_error: (a: any) => void;
@@ -1350,21 +1413,25 @@ export interface InitOutput {
1350
1413
  readonly wasmbindgentestcontext_include_ignored: (a: number, b: number) => void;
1351
1414
  readonly wasmbindgentestcontext_new: (a: number) => number;
1352
1415
  readonly wasmbindgentestcontext_run: (a: number, b: number, c: number) => any;
1353
- readonly __wbgtest_cov_dump: () => [number, number];
1354
- readonly __wbgtest_module_signature: () => [number, bigint];
1355
1416
  readonly __wbgbench_dump: () => [number, number];
1356
1417
  readonly __wbgbench_import: (a: number, b: number) => void;
1418
+ readonly __wbgtest_cov_dump: () => [number, number];
1419
+ readonly __wbgtest_module_signature: () => [number, bigint];
1357
1420
  readonly __wbgtest_coverage_path: (a: number, b: number, c: number, d: number, e: number, f: bigint) => [number, number];
1358
- readonly wasm_bindgen__closure__destroy__h3ec8903c455e551f: (a: number, b: number) => void;
1359
- readonly wasm_bindgen__closure__destroy__h213ec6c0cfaa8daa: (a: number, b: number) => void;
1360
- readonly wasm_bindgen__closure__destroy__hcd0ff49535f2a590: (a: number, b: number) => void;
1361
- readonly wasm_bindgen__closure__destroy__hd56fbfc240f3eed8: (a: number, b: number) => void;
1362
- readonly wasm_bindgen__convert__closures_____invoke__h4761911dc2bcd4ab: (a: number, b: number, c: any, d: number, e: any) => void;
1363
- readonly wasm_bindgen__convert__closures_____invoke__h93371d492ea6dccf: (a: number, b: number, c: any, d: any) => void;
1364
- readonly wasm_bindgen__convert__closures_____invoke__h01ab1ec45c07a95b: (a: number, b: number, c: any) => void;
1365
- readonly wasm_bindgen__convert__closures_____invoke__h1f53cb1d4e32acc1: (a: number, b: number) => void;
1366
- readonly wasm_bindgen__convert__closures_____invoke__h7d2ee1dee7ec118b: (a: number, b: number) => void;
1367
- readonly wasm_bindgen__convert__closures_____invoke__hacdd4f3cd0d8d764: (a: number, b: number) => void;
1421
+ readonly wasm_bindgen__closure__destroy__h2572d1915c02ebda: (a: number, b: number) => void;
1422
+ readonly wasm_bindgen__closure__destroy__h65ad701a51a4cb0e: (a: number, b: number) => void;
1423
+ readonly wasm_bindgen__closure__destroy__h0f6bb5b15548da31: (a: number, b: number) => void;
1424
+ readonly wasm_bindgen__closure__destroy__h685af52e22c48f54: (a: number, b: number) => void;
1425
+ readonly wasm_bindgen__closure__destroy__h9412b4a3d8a3ae79: (a: number, b: number) => void;
1426
+ readonly wasm_bindgen__closure__destroy__hd80654d4256db967: (a: number, b: number) => void;
1427
+ readonly wasm_bindgen__convert__closures_____invoke__h98ec4c0d8d9f9b8b: (a: number, b: number, c: any, d: number, e: any) => void;
1428
+ readonly wasm_bindgen__convert__closures_____invoke__hb388d479ca324a3d: (a: number, b: number, c: any) => [number, number];
1429
+ readonly wasm_bindgen__convert__closures_____invoke__h6898dd0329223652: (a: number, b: number, c: any, d: any) => void;
1430
+ readonly wasm_bindgen__convert__closures_____invoke__h9b65ba4ad3a0663e: (a: number, b: number, c: any) => void;
1431
+ readonly wasm_bindgen__convert__closures_____invoke__he37692f23f23ebf0: (a: number, b: number) => void;
1432
+ readonly wasm_bindgen__convert__closures_____invoke__h574131c4ac26b836: (a: number, b: number) => void;
1433
+ readonly wasm_bindgen__convert__closures_____invoke__hc6597e564dab4197: (a: number, b: number) => void;
1434
+ readonly wasm_bindgen__convert__closures_____invoke__h4353aac1105f9ba4: (a: number, b: number) => void;
1368
1435
  readonly __externref_table_alloc: () => number;
1369
1436
  readonly __wbindgen_externrefs: WebAssembly.Table;
1370
1437
  readonly __wbindgen_malloc: (a: number, b: number) => number;