@xmtp/wasm-bindings 1.10.0-rc1 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bindings_wasm.d.ts +171 -108
- package/dist/bindings_wasm.js +277 -59
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +123 -104
- package/package.json +1 -1
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -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
|
*/
|
|
@@ -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(
|
|
1011
|
+
export function applySignatureRequest(backend: Backend, signatureRequest: SignatureRequestHandle): Promise<void>;
|
|
976
1012
|
|
|
977
1013
|
export function contentTypeActions(): ContentTypeId;
|
|
978
1014
|
|
|
@@ -1004,6 +1040,14 @@ export function contentTypeWalletSendCalls(): ContentTypeId;
|
|
|
1004
1040
|
|
|
1005
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>;
|
|
1006
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>;
|
|
1050
|
+
|
|
1007
1051
|
/**
|
|
1008
1052
|
* Decrypts an encrypted payload from a remote attachment.
|
|
1009
1053
|
*/
|
|
@@ -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(
|
|
1085
|
+
export function getInboxIdForIdentifier(backend: Backend, accountIdentifier: Identifier): Promise<string | undefined>;
|
|
1042
1086
|
|
|
1043
|
-
export function inboxStateFromInboxIds(
|
|
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(
|
|
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,33 +1156,52 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
1112
1156
|
|
|
1113
1157
|
export interface InitOutput {
|
|
1114
1158
|
readonly memory: WebAssembly.Memory;
|
|
1115
|
-
readonly
|
|
1159
|
+
readonly __wbg_backend_free: (a: number, b: number) => void;
|
|
1160
|
+
readonly __wbg_backendbuilder_free: (a: number, b: number) => void;
|
|
1161
|
+
readonly __wbg_get_backendbuilder_env: (a: number) => number;
|
|
1162
|
+
readonly __wbg_get_backendbuilder_readonly: (a: number) => number;
|
|
1163
|
+
readonly __wbg_set_backendbuilder_env: (a: number, b: number) => void;
|
|
1164
|
+
readonly __wbg_set_backendbuilder_readonly: (a: number, b: number) => void;
|
|
1165
|
+
readonly backend_appVersion: (a: number) => [number, number];
|
|
1166
|
+
readonly backend_env: (a: number) => number;
|
|
1167
|
+
readonly backend_gatewayHost: (a: number) => [number, number];
|
|
1168
|
+
readonly backend_v3Host: (a: number) => [number, number];
|
|
1169
|
+
readonly backendbuilder_authCallback: (a: number, b: any) => void;
|
|
1170
|
+
readonly backendbuilder_authHandle: (a: number, b: number) => void;
|
|
1171
|
+
readonly backendbuilder_build: (a: number) => [number, number, number];
|
|
1172
|
+
readonly backendbuilder_new: (a: number) => number;
|
|
1173
|
+
readonly backendbuilder_setApiUrl: (a: number, b: number, c: number) => number;
|
|
1174
|
+
readonly backendbuilder_setAppVersion: (a: number, b: number, c: number) => number;
|
|
1175
|
+
readonly backendbuilder_setGatewayHost: (a: number, b: number, c: number) => number;
|
|
1176
|
+
readonly backendbuilder_setReadonly: (a: number, b: number) => number;
|
|
1177
|
+
readonly createClientWithBackend: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: bigint) => any;
|
|
1178
|
+
readonly client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
|
|
1179
|
+
readonly client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
|
|
1180
|
+
readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
1181
|
+
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
1182
|
+
readonly client_inboxState: (a: number, b: number) => any;
|
|
1183
|
+
readonly inboxStateFromInboxIds: (a: number, b: number, c: number) => any;
|
|
1184
|
+
readonly metadataFieldName: (a: number) => [number, number];
|
|
1185
|
+
readonly __wbg_authhandle_free: (a: number, b: number) => void;
|
|
1116
1186
|
readonly __wbg_conversation_free: (a: number, b: number) => void;
|
|
1117
|
-
readonly
|
|
1118
|
-
readonly
|
|
1119
|
-
readonly
|
|
1120
|
-
readonly
|
|
1121
|
-
readonly
|
|
1122
|
-
readonly
|
|
1123
|
-
readonly
|
|
1124
|
-
readonly
|
|
1125
|
-
readonly
|
|
1126
|
-
readonly
|
|
1127
|
-
readonly
|
|
1128
|
-
readonly
|
|
1129
|
-
readonly
|
|
1130
|
-
readonly
|
|
1131
|
-
readonly
|
|
1132
|
-
readonly
|
|
1133
|
-
readonly client_syncPreferences: (a: number) => any;
|
|
1134
|
-
readonly contentTypeActions: () => any;
|
|
1135
|
-
readonly contentTypeAttachment: () => any;
|
|
1187
|
+
readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
1188
|
+
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
1189
|
+
readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
1190
|
+
readonly __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
|
|
1191
|
+
readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
|
|
1192
|
+
readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
1193
|
+
readonly __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
|
|
1194
|
+
readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
1195
|
+
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
1196
|
+
readonly authhandle_id: (a: number) => number;
|
|
1197
|
+
readonly authhandle_new: () => number;
|
|
1198
|
+
readonly authhandle_set: (a: number, b: any) => any;
|
|
1199
|
+
readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
1200
|
+
readonly client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
1201
|
+
readonly contentTypeGroupUpdated: () => any;
|
|
1202
|
+
readonly contentTypeIntent: () => any;
|
|
1136
1203
|
readonly contentTypeLeaveRequest: () => any;
|
|
1137
|
-
readonly
|
|
1138
|
-
readonly contentTypeMultiRemoteAttachment: () => any;
|
|
1139
|
-
readonly contentTypeRemoteAttachment: () => any;
|
|
1140
|
-
readonly contentTypeText: () => any;
|
|
1141
|
-
readonly contentTypeWalletSendCalls: () => any;
|
|
1204
|
+
readonly contentTypeReadReceipt: () => any;
|
|
1142
1205
|
readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
1143
1206
|
readonly conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
1144
1207
|
readonly conversation_addMembersByIdentity: (a: number, b: number, c: number) => any;
|
|
@@ -1146,6 +1209,7 @@ export interface InitOutput {
|
|
|
1146
1209
|
readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
1147
1210
|
readonly conversation_adminList: (a: number) => [number, number, number, number];
|
|
1148
1211
|
readonly conversation_appData: (a: number) => [number, number, number, number];
|
|
1212
|
+
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
1149
1213
|
readonly conversation_countMessages: (a: number, b: number) => any;
|
|
1150
1214
|
readonly conversation_createdAtNs: (a: number) => bigint;
|
|
1151
1215
|
readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
@@ -1196,44 +1260,12 @@ export interface InitOutput {
|
|
|
1196
1260
|
readonly conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
1197
1261
|
readonly conversation_sync: (a: number) => any;
|
|
1198
1262
|
readonly conversation_updateAppData: (a: number, b: number, c: number) => any;
|
|
1263
|
+
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
1199
1264
|
readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
1200
1265
|
readonly conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
1201
1266
|
readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
1202
1267
|
readonly conversation_updateMessageDisappearingSettings: (a: number, b: any) => any;
|
|
1203
1268
|
readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
1204
|
-
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;
|
|
1205
|
-
readonly decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
|
|
1206
|
-
readonly encodeActions: (a: any) => [number, number, number];
|
|
1207
|
-
readonly encodeAttachment: (a: any) => [number, number, number];
|
|
1208
|
-
readonly encodeMarkdown: (a: number, b: number) => [number, number, number];
|
|
1209
|
-
readonly encodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
1210
|
-
readonly encodeRemoteAttachment: (a: any) => [number, number, number];
|
|
1211
|
-
readonly encodeText: (a: number, b: number) => [number, number, number];
|
|
1212
|
-
readonly encodeWalletSendCalls: (a: any) => [number, number, number];
|
|
1213
|
-
readonly encryptAttachment: (a: any) => [number, number, number];
|
|
1214
|
-
readonly contentTypeGroupUpdated: () => any;
|
|
1215
|
-
readonly contentTypeIntent: () => any;
|
|
1216
|
-
readonly contentTypeReaction: () => any;
|
|
1217
|
-
readonly contentTypeReadReceipt: () => any;
|
|
1218
|
-
readonly contentTypeTransactionReference: () => any;
|
|
1219
|
-
readonly encodeIntent: (a: any) => [number, number, number];
|
|
1220
|
-
readonly encodeReaction: (a: any) => [number, number, number];
|
|
1221
|
-
readonly encodeReadReceipt: (a: any) => [number, number, number];
|
|
1222
|
-
readonly encodeTransactionReference: (a: any) => [number, number, number];
|
|
1223
|
-
readonly metadataFieldName: (a: number) => [number, number];
|
|
1224
|
-
readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
1225
|
-
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
1226
|
-
readonly __wbg_devicesync_free: (a: number, b: number) => void;
|
|
1227
|
-
readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
1228
|
-
readonly __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
|
|
1229
|
-
readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
|
|
1230
|
-
readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
1231
|
-
readonly __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
|
|
1232
|
-
readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
1233
|
-
readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
1234
|
-
readonly client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
1235
|
-
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
1236
|
-
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
1237
1269
|
readonly conversationlistitem_new: (a: number, b: number, c: number) => number;
|
|
1238
1270
|
readonly conversations_createDm: (a: number, b: any, c: number) => any;
|
|
1239
1271
|
readonly conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
|
|
@@ -1255,6 +1287,44 @@ export interface InitOutput {
|
|
|
1255
1287
|
readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
1256
1288
|
readonly conversations_sync: (a: number) => any;
|
|
1257
1289
|
readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
1290
|
+
readonly encodeIntent: (a: any) => [number, number, number];
|
|
1291
|
+
readonly encodeReadReceipt: (a: any) => [number, number, number];
|
|
1292
|
+
readonly streamcloser_end: (a: number) => void;
|
|
1293
|
+
readonly streamcloser_endAndWait: (a: number) => any;
|
|
1294
|
+
readonly streamcloser_isClosed: (a: number) => number;
|
|
1295
|
+
readonly streamcloser_waitForReady: (a: number) => any;
|
|
1296
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
1297
|
+
readonly __wbg_devicesync_free: (a: number, b: number) => void;
|
|
1298
|
+
readonly __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
|
|
1299
|
+
readonly applySignatureRequest: (a: number, b: number) => any;
|
|
1300
|
+
readonly client_accountIdentifier: (a: number) => any;
|
|
1301
|
+
readonly client_addWalletSignatureRequest: (a: number, b: any) => any;
|
|
1302
|
+
readonly client_apiAggregateStatistics: (a: number) => [number, number];
|
|
1303
|
+
readonly client_apiIdentityStatistics: (a: number) => any;
|
|
1304
|
+
readonly client_apiStatistics: (a: number) => any;
|
|
1305
|
+
readonly client_appVersion: (a: number) => [number, number];
|
|
1306
|
+
readonly client_applySignatureRequest: (a: number, b: number) => any;
|
|
1307
|
+
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
1308
|
+
readonly client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
|
|
1309
|
+
readonly client_clearAllStatistics: (a: number) => void;
|
|
1310
|
+
readonly client_conversations: (a: number) => number;
|
|
1311
|
+
readonly client_createInboxSignatureRequest: (a: number) => [number, number, number];
|
|
1312
|
+
readonly client_device_sync: (a: number) => number;
|
|
1313
|
+
readonly client_findInboxIdByIdentity: (a: number, b: any) => any;
|
|
1314
|
+
readonly client_inboxId: (a: number) => [number, number];
|
|
1315
|
+
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
1316
|
+
readonly client_installationId: (a: number) => [number, number];
|
|
1317
|
+
readonly client_installationIdBytes: (a: number) => any;
|
|
1318
|
+
readonly client_isRegistered: (a: number) => number;
|
|
1319
|
+
readonly client_libxmtpVersion: (a: number) => [number, number];
|
|
1320
|
+
readonly client_registerIdentity: (a: number, b: number) => any;
|
|
1321
|
+
readonly client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
|
|
1322
|
+
readonly client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
|
|
1323
|
+
readonly client_revokeWalletSignatureRequest: (a: number, b: any) => any;
|
|
1324
|
+
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
1325
|
+
readonly client_syncPreferences: (a: number) => any;
|
|
1326
|
+
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
1327
|
+
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;
|
|
1258
1328
|
readonly devicesync_archiveMetadata: (a: number, b: any, c: any) => any;
|
|
1259
1329
|
readonly devicesync_createArchive: (a: number, b: any, c: any) => any;
|
|
1260
1330
|
readonly devicesync_importArchive: (a: number, b: any, c: any) => any;
|
|
@@ -1263,8 +1333,8 @@ export interface InitOutput {
|
|
|
1263
1333
|
readonly devicesync_sendSyncArchive: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
|
|
1264
1334
|
readonly devicesync_sendSyncRequest: (a: number, b: any, c: number, d: number) => any;
|
|
1265
1335
|
readonly devicesync_syncAllDeviceSyncGroups: (a: number) => any;
|
|
1266
|
-
readonly
|
|
1267
|
-
readonly
|
|
1336
|
+
readonly generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
|
|
1337
|
+
readonly getInboxIdForIdentifier: (a: number, b: any) => any;
|
|
1268
1338
|
readonly opfsClearAll: () => any;
|
|
1269
1339
|
readonly opfsDeleteFile: (a: number, b: number) => any;
|
|
1270
1340
|
readonly opfsExportDb: (a: number, b: number) => any;
|
|
@@ -1274,40 +1344,33 @@ export interface InitOutput {
|
|
|
1274
1344
|
readonly opfsInit: () => any;
|
|
1275
1345
|
readonly opfsListFiles: () => any;
|
|
1276
1346
|
readonly opfsPoolCapacity: () => any;
|
|
1277
|
-
readonly
|
|
1278
|
-
readonly streamcloser_endAndWait: (a: number) => any;
|
|
1279
|
-
readonly streamcloser_isClosed: (a: number) => number;
|
|
1280
|
-
readonly streamcloser_waitForReady: (a: number) => any;
|
|
1281
|
-
readonly __wbg_authhandle_free: (a: number, b: number) => void;
|
|
1282
|
-
readonly __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
|
|
1283
|
-
readonly applySignatureRequest: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
1284
|
-
readonly authhandle_id: (a: number) => number;
|
|
1285
|
-
readonly authhandle_new: () => number;
|
|
1286
|
-
readonly authhandle_set: (a: number, b: any) => any;
|
|
1287
|
-
readonly client_addWalletSignatureRequest: (a: number, b: any) => any;
|
|
1288
|
-
readonly client_applySignatureRequest: (a: number, b: number) => any;
|
|
1289
|
-
readonly client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
|
|
1290
|
-
readonly client_createInboxSignatureRequest: (a: number) => [number, number, number];
|
|
1291
|
-
readonly client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
|
|
1292
|
-
readonly client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
|
|
1293
|
-
readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
1294
|
-
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
1295
|
-
readonly client_inboxState: (a: number, b: number) => any;
|
|
1296
|
-
readonly client_registerIdentity: (a: number, b: number) => any;
|
|
1297
|
-
readonly client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
|
|
1298
|
-
readonly client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
|
|
1299
|
-
readonly client_revokeWalletSignatureRequest: (a: number, b: any) => any;
|
|
1300
|
-
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
1301
|
-
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
1302
|
-
readonly generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
|
|
1303
|
-
readonly getInboxIdForIdentifier: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
|
|
1304
|
-
readonly inboxStateFromInboxIds: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
1305
|
-
readonly revokeInstallationsSignatureRequest: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
1347
|
+
readonly revokeInstallationsSignatureRequest: (a: number, b: any, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
1306
1348
|
readonly signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
|
|
1307
1349
|
readonly signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
|
|
1308
1350
|
readonly signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
|
|
1309
1351
|
readonly signaturerequesthandle_signatureText: (a: number) => any;
|
|
1310
1352
|
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
1353
|
+
readonly contentTypeActions: () => any;
|
|
1354
|
+
readonly contentTypeAttachment: () => any;
|
|
1355
|
+
readonly contentTypeMarkdown: () => any;
|
|
1356
|
+
readonly contentTypeMultiRemoteAttachment: () => any;
|
|
1357
|
+
readonly contentTypeReaction: () => any;
|
|
1358
|
+
readonly contentTypeRemoteAttachment: () => any;
|
|
1359
|
+
readonly contentTypeReply: () => any;
|
|
1360
|
+
readonly contentTypeText: () => any;
|
|
1361
|
+
readonly contentTypeTransactionReference: () => any;
|
|
1362
|
+
readonly contentTypeWalletSendCalls: () => any;
|
|
1363
|
+
readonly decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
|
|
1364
|
+
readonly encodeActions: (a: any) => [number, number, number];
|
|
1365
|
+
readonly encodeAttachment: (a: any) => [number, number, number];
|
|
1366
|
+
readonly encodeMarkdown: (a: number, b: number) => [number, number, number];
|
|
1367
|
+
readonly encodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
1368
|
+
readonly encodeReaction: (a: any) => [number, number, number];
|
|
1369
|
+
readonly encodeRemoteAttachment: (a: any) => [number, number, number];
|
|
1370
|
+
readonly encodeText: (a: number, b: number) => [number, number, number];
|
|
1371
|
+
readonly encodeTransactionReference: (a: any) => [number, number, number];
|
|
1372
|
+
readonly encodeWalletSendCalls: (a: any) => [number, number, number];
|
|
1373
|
+
readonly encryptAttachment: (a: any) => [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;
|
|
@@ -1331,15 +1394,15 @@ export interface InitOutput {
|
|
|
1331
1394
|
readonly intounderlyingsink_abort: (a: number, b: any) => any;
|
|
1332
1395
|
readonly intounderlyingsink_close: (a: number) => any;
|
|
1333
1396
|
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
1334
|
-
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
1335
1397
|
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
1398
|
+
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
1399
|
+
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
1400
|
+
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
1336
1401
|
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
1337
1402
|
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
1338
1403
|
readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
1339
1404
|
readonly intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
1340
1405
|
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
1341
|
-
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
1342
|
-
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
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,21 @@ 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];
|
|
1357
1419
|
readonly __wbgtest_coverage_path: (a: number, b: number, c: number, d: number, e: number, f: bigint) => [number, number];
|
|
1358
|
-
readonly
|
|
1359
|
-
readonly
|
|
1360
|
-
readonly
|
|
1361
|
-
readonly
|
|
1362
|
-
readonly
|
|
1363
|
-
readonly
|
|
1364
|
-
readonly
|
|
1365
|
-
readonly
|
|
1366
|
-
readonly
|
|
1367
|
-
readonly
|
|
1420
|
+
readonly __wbgtest_module_signature: () => [number, bigint];
|
|
1421
|
+
readonly wasm_bindgen__closure__destroy__hd62e9797c0b3168f: (a: number, b: number) => void;
|
|
1422
|
+
readonly wasm_bindgen__closure__destroy__h96c761a656ba0a31: (a: number, b: number) => void;
|
|
1423
|
+
readonly wasm_bindgen__closure__destroy__hd0b23f3e2de3e524: (a: number, b: number) => void;
|
|
1424
|
+
readonly wasm_bindgen__closure__destroy__h852a2fa70246a7e9: (a: number, b: number) => void;
|
|
1425
|
+
readonly wasm_bindgen__convert__closures_____invoke__h3fbce54f69633488: (a: number, b: number, c: any, d: number, e: any) => void;
|
|
1426
|
+
readonly wasm_bindgen__convert__closures_____invoke__h1ed783e0801cc87c: (a: number, b: number, c: any, d: any) => void;
|
|
1427
|
+
readonly wasm_bindgen__convert__closures_____invoke__h9739bad550b151a0: (a: number, b: number, c: any) => void;
|
|
1428
|
+
readonly wasm_bindgen__convert__closures_____invoke__h3140913cf557f226: (a: number, b: number) => void;
|
|
1429
|
+
readonly wasm_bindgen__convert__closures_____invoke__hef7996840be5a37a: (a: number, b: number) => void;
|
|
1430
|
+
readonly wasm_bindgen__convert__closures_____invoke__h20bdc0c4874a4cbd: (a: number, b: number) => void;
|
|
1368
1431
|
readonly __externref_table_alloc: () => number;
|
|
1369
1432
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
1370
1433
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
package/dist/bindings_wasm.js
CHANGED
|
@@ -44,6 +44,196 @@ export class AuthHandle {
|
|
|
44
44
|
}
|
|
45
45
|
if (Symbol.dispose) AuthHandle.prototype[Symbol.dispose] = AuthHandle.prototype.free;
|
|
46
46
|
|
|
47
|
+
export class Backend {
|
|
48
|
+
static __wrap(ptr) {
|
|
49
|
+
ptr = ptr >>> 0;
|
|
50
|
+
const obj = Object.create(Backend.prototype);
|
|
51
|
+
obj.__wbg_ptr = ptr;
|
|
52
|
+
BackendFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
53
|
+
return obj;
|
|
54
|
+
}
|
|
55
|
+
__destroy_into_raw() {
|
|
56
|
+
const ptr = this.__wbg_ptr;
|
|
57
|
+
this.__wbg_ptr = 0;
|
|
58
|
+
BackendFinalization.unregister(this);
|
|
59
|
+
return ptr;
|
|
60
|
+
}
|
|
61
|
+
free() {
|
|
62
|
+
const ptr = this.__destroy_into_raw();
|
|
63
|
+
wasm.__wbg_backend_free(ptr, 0);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @returns {string}
|
|
67
|
+
*/
|
|
68
|
+
get appVersion() {
|
|
69
|
+
let deferred1_0;
|
|
70
|
+
let deferred1_1;
|
|
71
|
+
try {
|
|
72
|
+
const ret = wasm.backend_appVersion(this.__wbg_ptr);
|
|
73
|
+
deferred1_0 = ret[0];
|
|
74
|
+
deferred1_1 = ret[1];
|
|
75
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
76
|
+
} finally {
|
|
77
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @returns {XmtpEnv}
|
|
82
|
+
*/
|
|
83
|
+
get env() {
|
|
84
|
+
const ret = wasm.backend_env(this.__wbg_ptr);
|
|
85
|
+
return ret;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @returns {string | undefined}
|
|
89
|
+
*/
|
|
90
|
+
get gatewayHost() {
|
|
91
|
+
const ret = wasm.backend_gatewayHost(this.__wbg_ptr);
|
|
92
|
+
let v1;
|
|
93
|
+
if (ret[0] !== 0) {
|
|
94
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
95
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
96
|
+
}
|
|
97
|
+
return v1;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* @returns {string | undefined}
|
|
101
|
+
*/
|
|
102
|
+
get v3Host() {
|
|
103
|
+
const ret = wasm.backend_v3Host(this.__wbg_ptr);
|
|
104
|
+
let v1;
|
|
105
|
+
if (ret[0] !== 0) {
|
|
106
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
107
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
108
|
+
}
|
|
109
|
+
return v1;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
if (Symbol.dispose) Backend.prototype[Symbol.dispose] = Backend.prototype.free;
|
|
113
|
+
|
|
114
|
+
export class BackendBuilder {
|
|
115
|
+
static __wrap(ptr) {
|
|
116
|
+
ptr = ptr >>> 0;
|
|
117
|
+
const obj = Object.create(BackendBuilder.prototype);
|
|
118
|
+
obj.__wbg_ptr = ptr;
|
|
119
|
+
BackendBuilderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
120
|
+
return obj;
|
|
121
|
+
}
|
|
122
|
+
__destroy_into_raw() {
|
|
123
|
+
const ptr = this.__wbg_ptr;
|
|
124
|
+
this.__wbg_ptr = 0;
|
|
125
|
+
BackendBuilderFinalization.unregister(this);
|
|
126
|
+
return ptr;
|
|
127
|
+
}
|
|
128
|
+
free() {
|
|
129
|
+
const ptr = this.__destroy_into_raw();
|
|
130
|
+
wasm.__wbg_backendbuilder_free(ptr, 0);
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* @param {any} callback
|
|
134
|
+
*/
|
|
135
|
+
authCallback(callback) {
|
|
136
|
+
wasm.backendbuilder_authCallback(this.__wbg_ptr, callback);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* @param {AuthHandle} handle
|
|
140
|
+
*/
|
|
141
|
+
authHandle(handle) {
|
|
142
|
+
_assertClass(handle, AuthHandle);
|
|
143
|
+
var ptr0 = handle.__destroy_into_raw();
|
|
144
|
+
wasm.backendbuilder_authHandle(this.__wbg_ptr, ptr0);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* @returns {Backend}
|
|
148
|
+
*/
|
|
149
|
+
build() {
|
|
150
|
+
const ptr = this.__destroy_into_raw();
|
|
151
|
+
const ret = wasm.backendbuilder_build(ptr);
|
|
152
|
+
if (ret[2]) {
|
|
153
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
154
|
+
}
|
|
155
|
+
return Backend.__wrap(ret[0]);
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* @param {XmtpEnv} env
|
|
159
|
+
*/
|
|
160
|
+
constructor(env) {
|
|
161
|
+
const ret = wasm.backendbuilder_new(env);
|
|
162
|
+
this.__wbg_ptr = ret >>> 0;
|
|
163
|
+
BackendBuilderFinalization.register(this, this.__wbg_ptr, this);
|
|
164
|
+
return this;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* @param {string} api_url
|
|
168
|
+
* @returns {BackendBuilder}
|
|
169
|
+
*/
|
|
170
|
+
setApiUrl(api_url) {
|
|
171
|
+
const ptr = this.__destroy_into_raw();
|
|
172
|
+
const ptr0 = passStringToWasm0(api_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
173
|
+
const len0 = WASM_VECTOR_LEN;
|
|
174
|
+
const ret = wasm.backendbuilder_setApiUrl(ptr, ptr0, len0);
|
|
175
|
+
return BackendBuilder.__wrap(ret);
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* @param {string} app_version
|
|
179
|
+
* @returns {BackendBuilder}
|
|
180
|
+
*/
|
|
181
|
+
setAppVersion(app_version) {
|
|
182
|
+
const ptr = this.__destroy_into_raw();
|
|
183
|
+
const ptr0 = passStringToWasm0(app_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
184
|
+
const len0 = WASM_VECTOR_LEN;
|
|
185
|
+
const ret = wasm.backendbuilder_setAppVersion(ptr, ptr0, len0);
|
|
186
|
+
return BackendBuilder.__wrap(ret);
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* @param {string} gateway_host
|
|
190
|
+
* @returns {BackendBuilder}
|
|
191
|
+
*/
|
|
192
|
+
setGatewayHost(gateway_host) {
|
|
193
|
+
const ptr = this.__destroy_into_raw();
|
|
194
|
+
const ptr0 = passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
195
|
+
const len0 = WASM_VECTOR_LEN;
|
|
196
|
+
const ret = wasm.backendbuilder_setGatewayHost(ptr, ptr0, len0);
|
|
197
|
+
return BackendBuilder.__wrap(ret);
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* @param {boolean} readonly
|
|
201
|
+
* @returns {BackendBuilder}
|
|
202
|
+
*/
|
|
203
|
+
setReadonly(readonly) {
|
|
204
|
+
const ptr = this.__destroy_into_raw();
|
|
205
|
+
const ret = wasm.backendbuilder_setReadonly(ptr, readonly);
|
|
206
|
+
return BackendBuilder.__wrap(ret);
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* @returns {XmtpEnv}
|
|
210
|
+
*/
|
|
211
|
+
get env() {
|
|
212
|
+
const ret = wasm.__wbg_get_backendbuilder_env(this.__wbg_ptr);
|
|
213
|
+
return ret;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* @returns {boolean | undefined}
|
|
217
|
+
*/
|
|
218
|
+
get readonly() {
|
|
219
|
+
const ret = wasm.__wbg_get_backendbuilder_readonly(this.__wbg_ptr);
|
|
220
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* @param {XmtpEnv} arg0
|
|
224
|
+
*/
|
|
225
|
+
set env(arg0) {
|
|
226
|
+
wasm.__wbg_set_backendbuilder_env(this.__wbg_ptr, arg0);
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* @param {boolean | null} [arg0]
|
|
230
|
+
*/
|
|
231
|
+
set readonly(arg0) {
|
|
232
|
+
wasm.__wbg_set_backendbuilder_readonly(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
if (Symbol.dispose) BackendBuilder.prototype[Symbol.dispose] = BackendBuilder.prototype.free;
|
|
236
|
+
|
|
47
237
|
/**
|
|
48
238
|
* Selection of what elements to include in a backup
|
|
49
239
|
* @enum {0 | 1}
|
|
@@ -2069,6 +2259,19 @@ export class WasmBindgenTestContext {
|
|
|
2069
2259
|
}
|
|
2070
2260
|
if (Symbol.dispose) WasmBindgenTestContext.prototype[Symbol.dispose] = WasmBindgenTestContext.prototype.free;
|
|
2071
2261
|
|
|
2262
|
+
/**
|
|
2263
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6}
|
|
2264
|
+
*/
|
|
2265
|
+
export const XmtpEnv = Object.freeze({
|
|
2266
|
+
Local: 0, "0": "Local",
|
|
2267
|
+
Dev: 1, "1": "Dev",
|
|
2268
|
+
Production: 2, "2": "Production",
|
|
2269
|
+
TestnetStaging: 3, "3": "TestnetStaging",
|
|
2270
|
+
TestnetDev: 4, "4": "TestnetDev",
|
|
2271
|
+
Testnet: 5, "5": "Testnet",
|
|
2272
|
+
Mainnet: 6, "6": "Mainnet",
|
|
2273
|
+
});
|
|
2274
|
+
|
|
2072
2275
|
/**
|
|
2073
2276
|
* Used to read benchmark data, and then the runner stores it on the local disk.
|
|
2074
2277
|
* @returns {Uint8Array | undefined}
|
|
@@ -2185,18 +2388,14 @@ export function __wbgtest_module_signature() {
|
|
|
2185
2388
|
}
|
|
2186
2389
|
|
|
2187
2390
|
/**
|
|
2188
|
-
* @param {
|
|
2189
|
-
* @param {string | null | undefined} gatewayHost
|
|
2391
|
+
* @param {Backend} backend
|
|
2190
2392
|
* @param {SignatureRequestHandle} signatureRequest
|
|
2191
2393
|
* @returns {Promise<void>}
|
|
2192
2394
|
*/
|
|
2193
|
-
export function applySignatureRequest(
|
|
2194
|
-
|
|
2195
|
-
const len0 = WASM_VECTOR_LEN;
|
|
2196
|
-
var ptr1 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2197
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2395
|
+
export function applySignatureRequest(backend, signatureRequest) {
|
|
2396
|
+
_assertClass(backend, Backend);
|
|
2198
2397
|
_assertClass(signatureRequest, SignatureRequestHandle);
|
|
2199
|
-
const ret = wasm.applySignatureRequest(
|
|
2398
|
+
const ret = wasm.applySignatureRequest(backend.__wbg_ptr, signatureRequest.__wbg_ptr);
|
|
2200
2399
|
return ret;
|
|
2201
2400
|
}
|
|
2202
2401
|
|
|
@@ -2349,6 +2548,32 @@ export function createClient(host, inboxId, accountIdentifier, dbPath, encryptio
|
|
|
2349
2548
|
return ret;
|
|
2350
2549
|
}
|
|
2351
2550
|
|
|
2551
|
+
/**
|
|
2552
|
+
* Create a client from a pre-built Backend.
|
|
2553
|
+
*
|
|
2554
|
+
* The Backend encapsulates all API configuration (env, hosts, auth, TLS).
|
|
2555
|
+
* This function only needs identity and database configuration.
|
|
2556
|
+
* @param {Backend} backend
|
|
2557
|
+
* @param {string} inboxId
|
|
2558
|
+
* @param {Identifier} accountIdentifier
|
|
2559
|
+
* @param {string | null} [dbPath]
|
|
2560
|
+
* @param {Uint8Array | null} [encryptionKey]
|
|
2561
|
+
* @param {DeviceSyncMode | null} [deviceSyncMode]
|
|
2562
|
+
* @param {LogOptions | null} [logOptions]
|
|
2563
|
+
* @param {boolean | null} [allowOffline]
|
|
2564
|
+
* @param {bigint | null} [nonce]
|
|
2565
|
+
* @returns {Promise<Client>}
|
|
2566
|
+
*/
|
|
2567
|
+
export function createClientWithBackend(backend, inboxId, accountIdentifier, dbPath, encryptionKey, deviceSyncMode, logOptions, allowOffline, nonce) {
|
|
2568
|
+
_assertClass(backend, Backend);
|
|
2569
|
+
const ptr0 = passStringToWasm0(inboxId, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2570
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2571
|
+
var ptr1 = isLikeNone(dbPath) ? 0 : passStringToWasm0(dbPath, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2572
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2573
|
+
const ret = wasm.createClientWithBackend(backend.__wbg_ptr, ptr0, len0, accountIdentifier, ptr1, len1, isLikeNone(encryptionKey) ? 0 : addToExternrefTable0(encryptionKey), isLikeNone(deviceSyncMode) ? 2 : deviceSyncMode, isLikeNone(logOptions) ? 0 : addToExternrefTable0(logOptions), isLikeNone(allowOffline) ? 0xFFFFFF : allowOffline ? 1 : 0, !isLikeNone(nonce), isLikeNone(nonce) ? BigInt(0) : nonce);
|
|
2574
|
+
return ret;
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2352
2577
|
/**
|
|
2353
2578
|
* Decrypts an encrypted payload from a remote attachment.
|
|
2354
2579
|
* @param {Uint8Array} encryptedBytes
|
|
@@ -2539,35 +2764,26 @@ export function generateInboxId(accountIdentifier, nonce) {
|
|
|
2539
2764
|
}
|
|
2540
2765
|
|
|
2541
2766
|
/**
|
|
2542
|
-
* @param {
|
|
2543
|
-
* @param {string | null | undefined} gatewayHost
|
|
2544
|
-
* @param {boolean} isSecure
|
|
2767
|
+
* @param {Backend} backend
|
|
2545
2768
|
* @param {Identifier} accountIdentifier
|
|
2546
2769
|
* @returns {Promise<string | undefined>}
|
|
2547
2770
|
*/
|
|
2548
|
-
export function getInboxIdForIdentifier(
|
|
2549
|
-
|
|
2550
|
-
const
|
|
2551
|
-
var ptr1 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2552
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2553
|
-
const ret = wasm.getInboxIdForIdentifier(ptr0, len0, ptr1, len1, isSecure, accountIdentifier);
|
|
2771
|
+
export function getInboxIdForIdentifier(backend, accountIdentifier) {
|
|
2772
|
+
_assertClass(backend, Backend);
|
|
2773
|
+
const ret = wasm.getInboxIdForIdentifier(backend.__wbg_ptr, accountIdentifier);
|
|
2554
2774
|
return ret;
|
|
2555
2775
|
}
|
|
2556
2776
|
|
|
2557
2777
|
/**
|
|
2558
|
-
* @param {
|
|
2559
|
-
* @param {string | null | undefined} gatewayHost
|
|
2778
|
+
* @param {Backend} backend
|
|
2560
2779
|
* @param {string[]} inboxIds
|
|
2561
2780
|
* @returns {Promise<InboxState[]>}
|
|
2562
2781
|
*/
|
|
2563
|
-
export function inboxStateFromInboxIds(
|
|
2564
|
-
|
|
2782
|
+
export function inboxStateFromInboxIds(backend, inboxIds) {
|
|
2783
|
+
_assertClass(backend, Backend);
|
|
2784
|
+
const ptr0 = passArrayJsValueToWasm0(inboxIds, wasm.__wbindgen_malloc);
|
|
2565
2785
|
const len0 = WASM_VECTOR_LEN;
|
|
2566
|
-
|
|
2567
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2568
|
-
const ptr2 = passArrayJsValueToWasm0(inboxIds, wasm.__wbindgen_malloc);
|
|
2569
|
-
const len2 = WASM_VECTOR_LEN;
|
|
2570
|
-
const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
2786
|
+
const ret = wasm.inboxStateFromInboxIds(backend.__wbg_ptr, ptr0, len0);
|
|
2571
2787
|
return ret;
|
|
2572
2788
|
}
|
|
2573
2789
|
|
|
@@ -2693,23 +2909,19 @@ export function opfsPoolCapacity() {
|
|
|
2693
2909
|
}
|
|
2694
2910
|
|
|
2695
2911
|
/**
|
|
2696
|
-
* @param {
|
|
2697
|
-
* @param {string | null | undefined} gatewayHost
|
|
2912
|
+
* @param {Backend} backend
|
|
2698
2913
|
* @param {Identifier} recoveryIdentifier
|
|
2699
2914
|
* @param {string} inboxId
|
|
2700
2915
|
* @param {Uint8Array[]} installationIds
|
|
2701
2916
|
* @returns {SignatureRequestHandle}
|
|
2702
2917
|
*/
|
|
2703
|
-
export function revokeInstallationsSignatureRequest(
|
|
2704
|
-
|
|
2918
|
+
export function revokeInstallationsSignatureRequest(backend, recoveryIdentifier, inboxId, installationIds) {
|
|
2919
|
+
_assertClass(backend, Backend);
|
|
2920
|
+
const ptr0 = passStringToWasm0(inboxId, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2705
2921
|
const len0 = WASM_VECTOR_LEN;
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
const
|
|
2709
|
-
const len2 = WASM_VECTOR_LEN;
|
|
2710
|
-
const ptr3 = passArrayJsValueToWasm0(installationIds, wasm.__wbindgen_malloc);
|
|
2711
|
-
const len3 = WASM_VECTOR_LEN;
|
|
2712
|
-
const ret = wasm.revokeInstallationsSignatureRequest(ptr0, len0, ptr1, len1, recoveryIdentifier, ptr2, len2, ptr3, len3);
|
|
2922
|
+
const ptr1 = passArrayJsValueToWasm0(installationIds, wasm.__wbindgen_malloc);
|
|
2923
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2924
|
+
const ret = wasm.revokeInstallationsSignatureRequest(backend.__wbg_ptr, recoveryIdentifier, ptr0, len0, ptr1, len1);
|
|
2713
2925
|
if (ret[2]) {
|
|
2714
2926
|
throw takeFromExternrefTable0(ret[1]);
|
|
2715
2927
|
}
|
|
@@ -3033,7 +3245,7 @@ function __wbg_get_imports() {
|
|
|
3033
3245
|
const a = state0.a;
|
|
3034
3246
|
state0.a = 0;
|
|
3035
3247
|
try {
|
|
3036
|
-
return
|
|
3248
|
+
return wasm_bindgen__convert__closures_____invoke__h3fbce54f69633488(a, state0.b, arg0, arg1, arg2);
|
|
3037
3249
|
} finally {
|
|
3038
3250
|
state0.a = a;
|
|
3039
3251
|
}
|
|
@@ -3336,7 +3548,7 @@ function __wbg_get_imports() {
|
|
|
3336
3548
|
const a = state0.a;
|
|
3337
3549
|
state0.a = 0;
|
|
3338
3550
|
try {
|
|
3339
|
-
return
|
|
3551
|
+
return wasm_bindgen__convert__closures_____invoke__h1ed783e0801cc87c(a, state0.b, arg0, arg1);
|
|
3340
3552
|
} finally {
|
|
3341
3553
|
state0.a = a;
|
|
3342
3554
|
}
|
|
@@ -3754,23 +3966,23 @@ function __wbg_get_imports() {
|
|
|
3754
3966
|
return ret;
|
|
3755
3967
|
}, arguments); },
|
|
3756
3968
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
3757
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3758
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3969
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7141, function: Function { arguments: [], shim_idx: 7142, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3970
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd62e9797c0b3168f, wasm_bindgen__convert__closures_____invoke__h3140913cf557f226);
|
|
3759
3971
|
return ret;
|
|
3760
3972
|
},
|
|
3761
3973
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
3762
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3763
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3974
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7336, function: Function { arguments: [], shim_idx: 7337, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3975
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h96c761a656ba0a31, wasm_bindgen__convert__closures_____invoke__hef7996840be5a37a);
|
|
3764
3976
|
return ret;
|
|
3765
3977
|
},
|
|
3766
3978
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
3767
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3768
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3979
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 8342, function: Function { arguments: [], shim_idx: 8343, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3980
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd0b23f3e2de3e524, wasm_bindgen__convert__closures_____invoke__h20bdc0c4874a4cbd);
|
|
3769
3981
|
return ret;
|
|
3770
3982
|
},
|
|
3771
3983
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
3772
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3773
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3984
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 8834, function: Function { arguments: [Externref], shim_idx: 8835, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3985
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h852a2fa70246a7e9, wasm_bindgen__convert__closures_____invoke__h9739bad550b151a0);
|
|
3774
3986
|
return ret;
|
|
3775
3987
|
},
|
|
3776
3988
|
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
@@ -3849,28 +4061,28 @@ function __wbg_get_imports() {
|
|
|
3849
4061
|
};
|
|
3850
4062
|
}
|
|
3851
4063
|
|
|
3852
|
-
function
|
|
3853
|
-
wasm.
|
|
4064
|
+
function wasm_bindgen__convert__closures_____invoke__h3140913cf557f226(arg0, arg1) {
|
|
4065
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3140913cf557f226(arg0, arg1);
|
|
3854
4066
|
}
|
|
3855
4067
|
|
|
3856
|
-
function
|
|
3857
|
-
wasm.
|
|
4068
|
+
function wasm_bindgen__convert__closures_____invoke__hef7996840be5a37a(arg0, arg1) {
|
|
4069
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hef7996840be5a37a(arg0, arg1);
|
|
3858
4070
|
}
|
|
3859
4071
|
|
|
3860
|
-
function
|
|
3861
|
-
wasm.
|
|
4072
|
+
function wasm_bindgen__convert__closures_____invoke__h20bdc0c4874a4cbd(arg0, arg1) {
|
|
4073
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h20bdc0c4874a4cbd(arg0, arg1);
|
|
3862
4074
|
}
|
|
3863
4075
|
|
|
3864
|
-
function
|
|
3865
|
-
wasm.
|
|
4076
|
+
function wasm_bindgen__convert__closures_____invoke__h9739bad550b151a0(arg0, arg1, arg2) {
|
|
4077
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h9739bad550b151a0(arg0, arg1, arg2);
|
|
3866
4078
|
}
|
|
3867
4079
|
|
|
3868
|
-
function
|
|
3869
|
-
wasm.
|
|
4080
|
+
function wasm_bindgen__convert__closures_____invoke__h1ed783e0801cc87c(arg0, arg1, arg2, arg3) {
|
|
4081
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1ed783e0801cc87c(arg0, arg1, arg2, arg3);
|
|
3870
4082
|
}
|
|
3871
4083
|
|
|
3872
|
-
function
|
|
3873
|
-
wasm.
|
|
4084
|
+
function wasm_bindgen__convert__closures_____invoke__h3fbce54f69633488(arg0, arg1, arg2, arg3, arg4) {
|
|
4085
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3fbce54f69633488(arg0, arg1, arg2, arg3, arg4);
|
|
3874
4086
|
}
|
|
3875
4087
|
|
|
3876
4088
|
|
|
@@ -3893,6 +4105,12 @@ const __wbindgen_enum_RequestRedirect = ["follow", "error", "manual"];
|
|
|
3893
4105
|
const AuthHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3894
4106
|
? { register: () => {}, unregister: () => {} }
|
|
3895
4107
|
: new FinalizationRegistry(ptr => wasm.__wbg_authhandle_free(ptr >>> 0, 1));
|
|
4108
|
+
const BackendFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4109
|
+
? { register: () => {}, unregister: () => {} }
|
|
4110
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_backend_free(ptr >>> 0, 1));
|
|
4111
|
+
const BackendBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4112
|
+
? { register: () => {}, unregister: () => {} }
|
|
4113
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_backendbuilder_free(ptr >>> 0, 1));
|
|
3896
4114
|
const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3897
4115
|
? { register: () => {}, unregister: () => {} }
|
|
3898
4116
|
: new FinalizationRegistry(ptr => wasm.__wbg_client_free(ptr >>> 0, 1));
|
|
Binary file
|
|
@@ -1,33 +1,52 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const
|
|
4
|
+
export const __wbg_backend_free: (a: number, b: number) => void;
|
|
5
|
+
export const __wbg_backendbuilder_free: (a: number, b: number) => void;
|
|
6
|
+
export const __wbg_get_backendbuilder_env: (a: number) => number;
|
|
7
|
+
export const __wbg_get_backendbuilder_readonly: (a: number) => number;
|
|
8
|
+
export const __wbg_set_backendbuilder_env: (a: number, b: number) => void;
|
|
9
|
+
export const __wbg_set_backendbuilder_readonly: (a: number, b: number) => void;
|
|
10
|
+
export const backend_appVersion: (a: number) => [number, number];
|
|
11
|
+
export const backend_env: (a: number) => number;
|
|
12
|
+
export const backend_gatewayHost: (a: number) => [number, number];
|
|
13
|
+
export const backend_v3Host: (a: number) => [number, number];
|
|
14
|
+
export const backendbuilder_authCallback: (a: number, b: any) => void;
|
|
15
|
+
export const backendbuilder_authHandle: (a: number, b: number) => void;
|
|
16
|
+
export const backendbuilder_build: (a: number) => [number, number, number];
|
|
17
|
+
export const backendbuilder_new: (a: number) => number;
|
|
18
|
+
export const backendbuilder_setApiUrl: (a: number, b: number, c: number) => number;
|
|
19
|
+
export const backendbuilder_setAppVersion: (a: number, b: number, c: number) => number;
|
|
20
|
+
export const backendbuilder_setGatewayHost: (a: number, b: number, c: number) => number;
|
|
21
|
+
export const backendbuilder_setReadonly: (a: number, b: number) => number;
|
|
22
|
+
export const 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;
|
|
23
|
+
export const client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
|
|
24
|
+
export const client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
|
|
25
|
+
export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
26
|
+
export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
27
|
+
export const client_inboxState: (a: number, b: number) => any;
|
|
28
|
+
export const inboxStateFromInboxIds: (a: number, b: number, c: number) => any;
|
|
29
|
+
export const metadataFieldName: (a: number) => [number, number];
|
|
30
|
+
export const __wbg_authhandle_free: (a: number, b: number) => void;
|
|
5
31
|
export const __wbg_conversation_free: (a: number, b: number) => void;
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
8
|
-
export const
|
|
9
|
-
export const
|
|
10
|
-
export const
|
|
11
|
-
export const
|
|
12
|
-
export const
|
|
13
|
-
export const
|
|
14
|
-
export const
|
|
15
|
-
export const
|
|
16
|
-
export const
|
|
17
|
-
export const
|
|
18
|
-
export const
|
|
19
|
-
export const
|
|
20
|
-
export const
|
|
21
|
-
export const
|
|
22
|
-
export const client_syncPreferences: (a: number) => any;
|
|
23
|
-
export const contentTypeActions: () => any;
|
|
24
|
-
export const contentTypeAttachment: () => any;
|
|
32
|
+
export const __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
33
|
+
export const __wbg_conversations_free: (a: number, b: number) => void;
|
|
34
|
+
export const __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
35
|
+
export const __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
|
|
36
|
+
export const __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
|
|
37
|
+
export const __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
38
|
+
export const __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
|
|
39
|
+
export const __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
40
|
+
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
41
|
+
export const authhandle_id: (a: number) => number;
|
|
42
|
+
export const authhandle_new: () => number;
|
|
43
|
+
export const authhandle_set: (a: number, b: any) => any;
|
|
44
|
+
export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
45
|
+
export const client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
46
|
+
export const contentTypeGroupUpdated: () => any;
|
|
47
|
+
export const contentTypeIntent: () => any;
|
|
25
48
|
export const contentTypeLeaveRequest: () => any;
|
|
26
|
-
export const
|
|
27
|
-
export const contentTypeMultiRemoteAttachment: () => any;
|
|
28
|
-
export const contentTypeRemoteAttachment: () => any;
|
|
29
|
-
export const contentTypeText: () => any;
|
|
30
|
-
export const contentTypeWalletSendCalls: () => any;
|
|
49
|
+
export const contentTypeReadReceipt: () => any;
|
|
31
50
|
export const conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
32
51
|
export const conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
33
52
|
export const conversation_addMembersByIdentity: (a: number, b: number, c: number) => any;
|
|
@@ -35,6 +54,7 @@ export const conversation_addSuperAdmin: (a: number, b: number, c: number) => an
|
|
|
35
54
|
export const conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
36
55
|
export const conversation_adminList: (a: number) => [number, number, number, number];
|
|
37
56
|
export const conversation_appData: (a: number) => [number, number, number, number];
|
|
57
|
+
export const conversation_consentState: (a: number) => [number, number, number];
|
|
38
58
|
export const conversation_countMessages: (a: number, b: number) => any;
|
|
39
59
|
export const conversation_createdAtNs: (a: number) => bigint;
|
|
40
60
|
export const conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
@@ -85,44 +105,12 @@ export const conversation_stream: (a: number, b: any) => [number, number, number
|
|
|
85
105
|
export const conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
86
106
|
export const conversation_sync: (a: number) => any;
|
|
87
107
|
export const conversation_updateAppData: (a: number, b: number, c: number) => any;
|
|
108
|
+
export const conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
88
109
|
export const conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
89
110
|
export const conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
90
111
|
export const conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
91
112
|
export const conversation_updateMessageDisappearingSettings: (a: number, b: any) => any;
|
|
92
113
|
export const conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
93
|
-
export const 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;
|
|
94
|
-
export const decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
|
|
95
|
-
export const encodeActions: (a: any) => [number, number, number];
|
|
96
|
-
export const encodeAttachment: (a: any) => [number, number, number];
|
|
97
|
-
export const encodeMarkdown: (a: number, b: number) => [number, number, number];
|
|
98
|
-
export const encodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
99
|
-
export const encodeRemoteAttachment: (a: any) => [number, number, number];
|
|
100
|
-
export const encodeText: (a: number, b: number) => [number, number, number];
|
|
101
|
-
export const encodeWalletSendCalls: (a: any) => [number, number, number];
|
|
102
|
-
export const encryptAttachment: (a: any) => [number, number, number];
|
|
103
|
-
export const contentTypeGroupUpdated: () => any;
|
|
104
|
-
export const contentTypeIntent: () => any;
|
|
105
|
-
export const contentTypeReaction: () => any;
|
|
106
|
-
export const contentTypeReadReceipt: () => any;
|
|
107
|
-
export const contentTypeTransactionReference: () => any;
|
|
108
|
-
export const encodeIntent: (a: any) => [number, number, number];
|
|
109
|
-
export const encodeReaction: (a: any) => [number, number, number];
|
|
110
|
-
export const encodeReadReceipt: (a: any) => [number, number, number];
|
|
111
|
-
export const encodeTransactionReference: (a: any) => [number, number, number];
|
|
112
|
-
export const metadataFieldName: (a: number) => [number, number];
|
|
113
|
-
export const __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
114
|
-
export const __wbg_conversations_free: (a: number, b: number) => void;
|
|
115
|
-
export const __wbg_devicesync_free: (a: number, b: number) => void;
|
|
116
|
-
export const __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
117
|
-
export const __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
|
|
118
|
-
export const __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
|
|
119
|
-
export const __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
120
|
-
export const __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
|
|
121
|
-
export const __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
122
|
-
export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
123
|
-
export const client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
124
|
-
export const conversation_consentState: (a: number) => [number, number, number];
|
|
125
|
-
export const conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
126
114
|
export const conversationlistitem_new: (a: number, b: number, c: number) => number;
|
|
127
115
|
export const conversations_createDm: (a: number, b: any, c: number) => any;
|
|
128
116
|
export const conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
|
|
@@ -144,6 +132,44 @@ export const conversations_streamMessageDeletions: (a: number, b: any) => [numbe
|
|
|
144
132
|
export const conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
145
133
|
export const conversations_sync: (a: number) => any;
|
|
146
134
|
export const conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
135
|
+
export const encodeIntent: (a: any) => [number, number, number];
|
|
136
|
+
export const encodeReadReceipt: (a: any) => [number, number, number];
|
|
137
|
+
export const streamcloser_end: (a: number) => void;
|
|
138
|
+
export const streamcloser_endAndWait: (a: number) => any;
|
|
139
|
+
export const streamcloser_isClosed: (a: number) => number;
|
|
140
|
+
export const streamcloser_waitForReady: (a: number) => any;
|
|
141
|
+
export const __wbg_client_free: (a: number, b: number) => void;
|
|
142
|
+
export const __wbg_devicesync_free: (a: number, b: number) => void;
|
|
143
|
+
export const __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
|
|
144
|
+
export const applySignatureRequest: (a: number, b: number) => any;
|
|
145
|
+
export const client_accountIdentifier: (a: number) => any;
|
|
146
|
+
export const client_addWalletSignatureRequest: (a: number, b: any) => any;
|
|
147
|
+
export const client_apiAggregateStatistics: (a: number) => [number, number];
|
|
148
|
+
export const client_apiIdentityStatistics: (a: number) => any;
|
|
149
|
+
export const client_apiStatistics: (a: number) => any;
|
|
150
|
+
export const client_appVersion: (a: number) => [number, number];
|
|
151
|
+
export const client_applySignatureRequest: (a: number, b: number) => any;
|
|
152
|
+
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
153
|
+
export const client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
|
|
154
|
+
export const client_clearAllStatistics: (a: number) => void;
|
|
155
|
+
export const client_conversations: (a: number) => number;
|
|
156
|
+
export const client_createInboxSignatureRequest: (a: number) => [number, number, number];
|
|
157
|
+
export const client_device_sync: (a: number) => number;
|
|
158
|
+
export const client_findInboxIdByIdentity: (a: number, b: any) => any;
|
|
159
|
+
export const client_inboxId: (a: number) => [number, number];
|
|
160
|
+
export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
161
|
+
export const client_installationId: (a: number) => [number, number];
|
|
162
|
+
export const client_installationIdBytes: (a: number) => any;
|
|
163
|
+
export const client_isRegistered: (a: number) => number;
|
|
164
|
+
export const client_libxmtpVersion: (a: number) => [number, number];
|
|
165
|
+
export const client_registerIdentity: (a: number, b: number) => any;
|
|
166
|
+
export const client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
|
|
167
|
+
export const client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
|
|
168
|
+
export const client_revokeWalletSignatureRequest: (a: number, b: any) => any;
|
|
169
|
+
export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
170
|
+
export const client_syncPreferences: (a: number) => any;
|
|
171
|
+
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
172
|
+
export const 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;
|
|
147
173
|
export const devicesync_archiveMetadata: (a: number, b: any, c: any) => any;
|
|
148
174
|
export const devicesync_createArchive: (a: number, b: any, c: any) => any;
|
|
149
175
|
export const devicesync_importArchive: (a: number, b: any, c: any) => any;
|
|
@@ -152,8 +178,8 @@ export const devicesync_processSyncArchive: (a: number, b: number, c: number) =>
|
|
|
152
178
|
export const devicesync_sendSyncArchive: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
|
|
153
179
|
export const devicesync_sendSyncRequest: (a: number, b: any, c: number, d: number) => any;
|
|
154
180
|
export const devicesync_syncAllDeviceSyncGroups: (a: number) => any;
|
|
155
|
-
export const
|
|
156
|
-
export const
|
|
181
|
+
export const generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
|
|
182
|
+
export const getInboxIdForIdentifier: (a: number, b: any) => any;
|
|
157
183
|
export const opfsClearAll: () => any;
|
|
158
184
|
export const opfsDeleteFile: (a: number, b: number) => any;
|
|
159
185
|
export const opfsExportDb: (a: number, b: number) => any;
|
|
@@ -163,40 +189,33 @@ export const opfsImportDb: (a: number, b: number, c: any) => any;
|
|
|
163
189
|
export const opfsInit: () => any;
|
|
164
190
|
export const opfsListFiles: () => any;
|
|
165
191
|
export const opfsPoolCapacity: () => any;
|
|
166
|
-
export const
|
|
167
|
-
export const streamcloser_endAndWait: (a: number) => any;
|
|
168
|
-
export const streamcloser_isClosed: (a: number) => number;
|
|
169
|
-
export const streamcloser_waitForReady: (a: number) => any;
|
|
170
|
-
export const __wbg_authhandle_free: (a: number, b: number) => void;
|
|
171
|
-
export const __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
|
|
172
|
-
export const applySignatureRequest: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
173
|
-
export const authhandle_id: (a: number) => number;
|
|
174
|
-
export const authhandle_new: () => number;
|
|
175
|
-
export const authhandle_set: (a: number, b: any) => any;
|
|
176
|
-
export const client_addWalletSignatureRequest: (a: number, b: any) => any;
|
|
177
|
-
export const client_applySignatureRequest: (a: number, b: number) => any;
|
|
178
|
-
export const client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
|
|
179
|
-
export const client_createInboxSignatureRequest: (a: number) => [number, number, number];
|
|
180
|
-
export const client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
|
|
181
|
-
export const client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
|
|
182
|
-
export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
183
|
-
export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
184
|
-
export const client_inboxState: (a: number, b: number) => any;
|
|
185
|
-
export const client_registerIdentity: (a: number, b: number) => any;
|
|
186
|
-
export const client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
|
|
187
|
-
export const client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
|
|
188
|
-
export const client_revokeWalletSignatureRequest: (a: number, b: any) => any;
|
|
189
|
-
export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
190
|
-
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
191
|
-
export const generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
|
|
192
|
-
export const getInboxIdForIdentifier: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
|
|
193
|
-
export const inboxStateFromInboxIds: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
194
|
-
export const revokeInstallationsSignatureRequest: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
192
|
+
export const revokeInstallationsSignatureRequest: (a: number, b: any, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
195
193
|
export const signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
|
|
196
194
|
export const signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
|
|
197
195
|
export const signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
|
|
198
196
|
export const signaturerequesthandle_signatureText: (a: number) => any;
|
|
199
197
|
export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
198
|
+
export const contentTypeActions: () => any;
|
|
199
|
+
export const contentTypeAttachment: () => any;
|
|
200
|
+
export const contentTypeMarkdown: () => any;
|
|
201
|
+
export const contentTypeMultiRemoteAttachment: () => any;
|
|
202
|
+
export const contentTypeReaction: () => any;
|
|
203
|
+
export const contentTypeRemoteAttachment: () => any;
|
|
204
|
+
export const contentTypeReply: () => any;
|
|
205
|
+
export const contentTypeText: () => any;
|
|
206
|
+
export const contentTypeTransactionReference: () => any;
|
|
207
|
+
export const contentTypeWalletSendCalls: () => any;
|
|
208
|
+
export const decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
|
|
209
|
+
export const encodeActions: (a: any) => [number, number, number];
|
|
210
|
+
export const encodeAttachment: (a: any) => [number, number, number];
|
|
211
|
+
export const encodeMarkdown: (a: number, b: number) => [number, number, number];
|
|
212
|
+
export const encodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
213
|
+
export const encodeReaction: (a: any) => [number, number, number];
|
|
214
|
+
export const encodeRemoteAttachment: (a: any) => [number, number, number];
|
|
215
|
+
export const encodeText: (a: number, b: number) => [number, number, number];
|
|
216
|
+
export const encodeTransactionReference: (a: any) => [number, number, number];
|
|
217
|
+
export const encodeWalletSendCalls: (a: any) => [number, number, number];
|
|
218
|
+
export const encryptAttachment: (a: any) => [number, number, number];
|
|
200
219
|
export const rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
|
|
201
220
|
export const rust_zstd_wasm_shim_free: (a: number) => void;
|
|
202
221
|
export const rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
@@ -220,15 +239,15 @@ export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
|
220
239
|
export const intounderlyingsink_abort: (a: number, b: any) => any;
|
|
221
240
|
export const intounderlyingsink_close: (a: number) => any;
|
|
222
241
|
export const intounderlyingsink_write: (a: number, b: any) => any;
|
|
223
|
-
export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
224
242
|
export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
243
|
+
export const intounderlyingsource_cancel: (a: number) => void;
|
|
244
|
+
export const intounderlyingsource_pull: (a: number, b: any) => any;
|
|
245
|
+
export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
225
246
|
export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
226
247
|
export const intounderlyingbytesource_cancel: (a: number) => void;
|
|
227
248
|
export const intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
228
249
|
export const intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
229
250
|
export const intounderlyingbytesource_type: (a: number) => number;
|
|
230
|
-
export const intounderlyingsource_cancel: (a: number) => void;
|
|
231
|
-
export const intounderlyingsource_pull: (a: number, b: any) => any;
|
|
232
251
|
export const __wbg_wasmbindgentestcontext_free: (a: number, b: number) => void;
|
|
233
252
|
export const __wbgtest_console_debug: (a: any) => void;
|
|
234
253
|
export const __wbgtest_console_error: (a: any) => void;
|
|
@@ -239,21 +258,21 @@ export const wasmbindgentestcontext_filtered_count: (a: number, b: number) => vo
|
|
|
239
258
|
export const wasmbindgentestcontext_include_ignored: (a: number, b: number) => void;
|
|
240
259
|
export const wasmbindgentestcontext_new: (a: number) => number;
|
|
241
260
|
export const wasmbindgentestcontext_run: (a: number, b: number, c: number) => any;
|
|
242
|
-
export const __wbgtest_cov_dump: () => [number, number];
|
|
243
|
-
export const __wbgtest_module_signature: () => [number, bigint];
|
|
244
261
|
export const __wbgbench_dump: () => [number, number];
|
|
245
262
|
export const __wbgbench_import: (a: number, b: number) => void;
|
|
263
|
+
export const __wbgtest_cov_dump: () => [number, number];
|
|
246
264
|
export const __wbgtest_coverage_path: (a: number, b: number, c: number, d: number, e: number, f: bigint) => [number, number];
|
|
247
|
-
export const
|
|
248
|
-
export const
|
|
249
|
-
export const
|
|
250
|
-
export const
|
|
251
|
-
export const
|
|
252
|
-
export const
|
|
253
|
-
export const
|
|
254
|
-
export const
|
|
255
|
-
export const
|
|
256
|
-
export const
|
|
265
|
+
export const __wbgtest_module_signature: () => [number, bigint];
|
|
266
|
+
export const wasm_bindgen__closure__destroy__hd62e9797c0b3168f: (a: number, b: number) => void;
|
|
267
|
+
export const wasm_bindgen__closure__destroy__h96c761a656ba0a31: (a: number, b: number) => void;
|
|
268
|
+
export const wasm_bindgen__closure__destroy__hd0b23f3e2de3e524: (a: number, b: number) => void;
|
|
269
|
+
export const wasm_bindgen__closure__destroy__h852a2fa70246a7e9: (a: number, b: number) => void;
|
|
270
|
+
export const wasm_bindgen__convert__closures_____invoke__h3fbce54f69633488: (a: number, b: number, c: any, d: number, e: any) => void;
|
|
271
|
+
export const wasm_bindgen__convert__closures_____invoke__h1ed783e0801cc87c: (a: number, b: number, c: any, d: any) => void;
|
|
272
|
+
export const wasm_bindgen__convert__closures_____invoke__h9739bad550b151a0: (a: number, b: number, c: any) => void;
|
|
273
|
+
export const wasm_bindgen__convert__closures_____invoke__h3140913cf557f226: (a: number, b: number) => void;
|
|
274
|
+
export const wasm_bindgen__convert__closures_____invoke__hef7996840be5a37a: (a: number, b: number) => void;
|
|
275
|
+
export const wasm_bindgen__convert__closures_____invoke__h20bdc0c4874a4cbd: (a: number, b: number) => void;
|
|
257
276
|
export const __externref_table_alloc: () => number;
|
|
258
277
|
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
259
278
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|