@xmtp/wasm-bindings 1.10.0-dev.f44d5e5 → 1.10.0-rc1
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 +78 -78
- package/dist/bindings_wasm.js +35 -34
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +75 -75
- package/package.json +2 -2
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -719,14 +719,14 @@ export class DeviceSync {
|
|
|
719
719
|
/**
|
|
720
720
|
* Manually trigger a device sync request to sync records from another active device on this account.
|
|
721
721
|
*/
|
|
722
|
-
sendSyncRequest(): Promise<void>;
|
|
722
|
+
sendSyncRequest(options: ArchiveOptions, serverUrl: string): Promise<void>;
|
|
723
723
|
/**
|
|
724
724
|
* Manually sync all device sync groups.
|
|
725
725
|
*/
|
|
726
726
|
syncAllDeviceSyncGroups(): Promise<GroupSyncSummary>;
|
|
727
727
|
}
|
|
728
728
|
|
|
729
|
-
export enum
|
|
729
|
+
export enum DeviceSyncMode {
|
|
730
730
|
Enabled = 0,
|
|
731
731
|
Disabled = 1,
|
|
732
732
|
}
|
|
@@ -1002,7 +1002,7 @@ export function contentTypeTransactionReference(): ContentTypeId;
|
|
|
1002
1002
|
|
|
1003
1003
|
export function contentTypeWalletSendCalls(): ContentTypeId;
|
|
1004
1004
|
|
|
1005
|
-
export function createClient(host: string, inboxId: string, accountIdentifier: Identifier, dbPath?: string | null, encryptionKey?: Uint8Array | null,
|
|
1005
|
+
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
1006
|
|
|
1007
1007
|
/**
|
|
1008
1008
|
* Decrypts an encrypted payload from a remote attachment.
|
|
@@ -1112,53 +1112,16 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
1112
1112
|
|
|
1113
1113
|
export interface InitOutput {
|
|
1114
1114
|
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;
|
|
1127
|
-
readonly opfsClearAll: () => any;
|
|
1128
|
-
readonly opfsDeleteFile: (a: number, b: number) => any;
|
|
1129
|
-
readonly opfsExportDb: (a: number, b: number) => any;
|
|
1130
|
-
readonly opfsFileCount: () => any;
|
|
1131
|
-
readonly opfsFileExists: (a: number, b: number) => any;
|
|
1132
|
-
readonly opfsImportDb: (a: number, b: number, c: any) => any;
|
|
1133
|
-
readonly opfsInit: () => any;
|
|
1134
|
-
readonly opfsListFiles: () => any;
|
|
1135
|
-
readonly opfsPoolCapacity: () => any;
|
|
1136
1115
|
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
1137
1116
|
readonly __wbg_conversation_free: (a: number, b: number) => void;
|
|
1138
|
-
readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
1139
|
-
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
1140
|
-
readonly __wbg_devicesync_free: (a: number, b: number) => void;
|
|
1141
|
-
readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
1142
|
-
readonly __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
|
|
1143
|
-
readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
|
|
1144
|
-
readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
1145
|
-
readonly __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
|
|
1146
|
-
readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
1147
|
-
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;
|
|
1150
1117
|
readonly client_accountIdentifier: (a: number) => any;
|
|
1151
|
-
readonly client_addWalletSignatureRequest: (a: number, b: any) => any;
|
|
1152
1118
|
readonly client_apiAggregateStatistics: (a: number) => [number, number];
|
|
1153
1119
|
readonly client_apiIdentityStatistics: (a: number) => any;
|
|
1154
1120
|
readonly client_apiStatistics: (a: number) => any;
|
|
1155
1121
|
readonly client_appVersion: (a: number) => [number, number];
|
|
1156
|
-
readonly client_applySignatureRequest: (a: number, b: number) => any;
|
|
1157
1122
|
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
1158
|
-
readonly client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
|
|
1159
1123
|
readonly client_clearAllStatistics: (a: number) => void;
|
|
1160
1124
|
readonly client_conversations: (a: number) => number;
|
|
1161
|
-
readonly client_createInboxSignatureRequest: (a: number) => [number, number, number];
|
|
1162
1125
|
readonly client_device_sync: (a: number) => number;
|
|
1163
1126
|
readonly client_findInboxIdByIdentity: (a: number, b: any) => any;
|
|
1164
1127
|
readonly client_inboxId: (a: number) => [number, number];
|
|
@@ -1167,19 +1130,14 @@ export interface InitOutput {
|
|
|
1167
1130
|
readonly client_installationIdBytes: (a: number) => any;
|
|
1168
1131
|
readonly client_isRegistered: (a: number) => number;
|
|
1169
1132
|
readonly client_libxmtpVersion: (a: number) => [number, number];
|
|
1170
|
-
readonly client_registerIdentity: (a: number, b: number) => any;
|
|
1171
|
-
readonly client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
|
|
1172
|
-
readonly client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
|
|
1173
|
-
readonly client_revokeWalletSignatureRequest: (a: number, b: any) => any;
|
|
1174
|
-
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
1175
1133
|
readonly client_syncPreferences: (a: number) => any;
|
|
1176
|
-
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
1177
1134
|
readonly contentTypeActions: () => any;
|
|
1178
1135
|
readonly contentTypeAttachment: () => any;
|
|
1179
|
-
readonly
|
|
1180
|
-
readonly
|
|
1181
|
-
readonly
|
|
1136
|
+
readonly contentTypeLeaveRequest: () => any;
|
|
1137
|
+
readonly contentTypeMarkdown: () => any;
|
|
1138
|
+
readonly contentTypeMultiRemoteAttachment: () => any;
|
|
1182
1139
|
readonly contentTypeRemoteAttachment: () => any;
|
|
1140
|
+
readonly contentTypeText: () => any;
|
|
1183
1141
|
readonly contentTypeWalletSendCalls: () => any;
|
|
1184
1142
|
readonly conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
1185
1143
|
readonly conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
@@ -1243,6 +1201,39 @@ export interface InitOutput {
|
|
|
1243
1201
|
readonly conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
1244
1202
|
readonly conversation_updateMessageDisappearingSettings: (a: number, b: any) => any;
|
|
1245
1203
|
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];
|
|
1246
1237
|
readonly conversationlistitem_new: (a: number, b: number, c: number) => number;
|
|
1247
1238
|
readonly conversations_createDm: (a: number, b: any, c: number) => any;
|
|
1248
1239
|
readonly conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
|
|
@@ -1264,50 +1255,59 @@ export interface InitOutput {
|
|
|
1264
1255
|
readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
1265
1256
|
readonly conversations_sync: (a: number) => any;
|
|
1266
1257
|
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
1258
|
readonly devicesync_archiveMetadata: (a: number, b: any, c: any) => any;
|
|
1270
1259
|
readonly devicesync_createArchive: (a: number, b: any, c: any) => any;
|
|
1271
1260
|
readonly devicesync_importArchive: (a: number, b: any, c: any) => any;
|
|
1272
1261
|
readonly devicesync_listAvailableArchives: (a: number, b: bigint) => [number, number, number, number];
|
|
1273
1262
|
readonly devicesync_processSyncArchive: (a: number, b: number, c: number) => any;
|
|
1274
1263
|
readonly devicesync_sendSyncArchive: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
|
|
1275
|
-
readonly devicesync_sendSyncRequest: (a: number) => any;
|
|
1264
|
+
readonly devicesync_sendSyncRequest: (a: number, b: any, c: number, d: number) => any;
|
|
1276
1265
|
readonly devicesync_syncAllDeviceSyncGroups: (a: number) => any;
|
|
1277
|
-
readonly
|
|
1278
|
-
readonly
|
|
1279
|
-
readonly
|
|
1280
|
-
readonly
|
|
1281
|
-
readonly
|
|
1282
|
-
readonly
|
|
1283
|
-
readonly
|
|
1284
|
-
readonly
|
|
1285
|
-
readonly
|
|
1286
|
-
readonly
|
|
1287
|
-
readonly
|
|
1288
|
-
readonly signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
|
|
1289
|
-
readonly signaturerequesthandle_signatureText: (a: number) => any;
|
|
1266
|
+
readonly contentTypeReply: () => any;
|
|
1267
|
+
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
1268
|
+
readonly opfsClearAll: () => any;
|
|
1269
|
+
readonly opfsDeleteFile: (a: number, b: number) => any;
|
|
1270
|
+
readonly opfsExportDb: (a: number, b: number) => any;
|
|
1271
|
+
readonly opfsFileCount: () => any;
|
|
1272
|
+
readonly opfsFileExists: (a: number, b: number) => any;
|
|
1273
|
+
readonly opfsImportDb: (a: number, b: number, c: any) => any;
|
|
1274
|
+
readonly opfsInit: () => any;
|
|
1275
|
+
readonly opfsListFiles: () => any;
|
|
1276
|
+
readonly opfsPoolCapacity: () => any;
|
|
1290
1277
|
readonly streamcloser_end: (a: number) => void;
|
|
1291
1278
|
readonly streamcloser_endAndWait: (a: number) => any;
|
|
1292
1279
|
readonly streamcloser_isClosed: (a: number) => number;
|
|
1293
1280
|
readonly streamcloser_waitForReady: (a: number) => any;
|
|
1294
|
-
readonly
|
|
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];
|
|
1295
1291
|
readonly client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
|
|
1296
1292
|
readonly client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
|
|
1297
1293
|
readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
1298
1294
|
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
1299
1295
|
readonly client_inboxState: (a: number, b: number) => any;
|
|
1300
|
-
readonly
|
|
1301
|
-
readonly
|
|
1302
|
-
readonly
|
|
1303
|
-
readonly
|
|
1304
|
-
readonly
|
|
1305
|
-
readonly
|
|
1306
|
-
readonly encodeText: (a: number, b: number) => [number, number, number];
|
|
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];
|
|
1307
1302
|
readonly generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
|
|
1308
1303
|
readonly getInboxIdForIdentifier: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
|
|
1309
1304
|
readonly inboxStateFromInboxIds: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
1310
|
-
readonly
|
|
1305
|
+
readonly revokeInstallationsSignatureRequest: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
1306
|
+
readonly signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
|
|
1307
|
+
readonly signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
|
|
1308
|
+
readonly signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
|
|
1309
|
+
readonly signaturerequesthandle_signatureText: (a: number) => any;
|
|
1310
|
+
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
1311
1311
|
readonly rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
|
|
1312
1312
|
readonly rust_zstd_wasm_shim_free: (a: number) => void;
|
|
1313
1313
|
readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
@@ -1355,16 +1355,16 @@ export interface InitOutput {
|
|
|
1355
1355
|
readonly __wbgbench_dump: () => [number, number];
|
|
1356
1356
|
readonly __wbgbench_import: (a: number, b: number) => void;
|
|
1357
1357
|
readonly __wbgtest_coverage_path: (a: number, b: number, c: number, d: number, e: number, f: bigint) => [number, number];
|
|
1358
|
-
readonly
|
|
1358
|
+
readonly wasm_bindgen__closure__destroy__he86c9d9bb368f43f: (a: number, b: number) => void;
|
|
1359
1359
|
readonly wasm_bindgen__closure__destroy__h213ec6c0cfaa8daa: (a: number, b: number) => void;
|
|
1360
|
-
readonly
|
|
1360
|
+
readonly wasm_bindgen__closure__destroy__h006fa4718e4400fc: (a: number, b: number) => void;
|
|
1361
1361
|
readonly wasm_bindgen__closure__destroy__hd56fbfc240f3eed8: (a: number, b: number) => void;
|
|
1362
1362
|
readonly wasm_bindgen__convert__closures_____invoke__h4761911dc2bcd4ab: (a: number, b: number, c: any, d: number, e: any) => void;
|
|
1363
1363
|
readonly wasm_bindgen__convert__closures_____invoke__h93371d492ea6dccf: (a: number, b: number, c: any, d: any) => void;
|
|
1364
1364
|
readonly wasm_bindgen__convert__closures_____invoke__h01ab1ec45c07a95b: (a: number, b: number, c: any) => void;
|
|
1365
|
-
readonly
|
|
1365
|
+
readonly wasm_bindgen__convert__closures_____invoke__h7478175f8808d1fa: (a: number, b: number) => void;
|
|
1366
1366
|
readonly wasm_bindgen__convert__closures_____invoke__h7d2ee1dee7ec118b: (a: number, b: number) => void;
|
|
1367
|
-
readonly
|
|
1367
|
+
readonly wasm_bindgen__convert__closures_____invoke__h48de3f26adb3eb8d: (a: number, b: number) => void;
|
|
1368
1368
|
readonly __externref_table_alloc: () => number;
|
|
1369
1369
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
1370
1370
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
package/dist/bindings_wasm.js
CHANGED
|
@@ -1612,10 +1612,14 @@ export class DeviceSync {
|
|
|
1612
1612
|
}
|
|
1613
1613
|
/**
|
|
1614
1614
|
* Manually trigger a device sync request to sync records from another active device on this account.
|
|
1615
|
+
* @param {ArchiveOptions} options
|
|
1616
|
+
* @param {string} serverUrl
|
|
1615
1617
|
* @returns {Promise<void>}
|
|
1616
1618
|
*/
|
|
1617
|
-
sendSyncRequest() {
|
|
1618
|
-
const
|
|
1619
|
+
sendSyncRequest(options, serverUrl) {
|
|
1620
|
+
const ptr0 = passStringToWasm0(serverUrl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1621
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1622
|
+
const ret = wasm.devicesync_sendSyncRequest(this.__wbg_ptr, options, ptr0, len0);
|
|
1619
1623
|
return ret;
|
|
1620
1624
|
}
|
|
1621
1625
|
/**
|
|
@@ -1632,7 +1636,7 @@ if (Symbol.dispose) DeviceSync.prototype[Symbol.dispose] = DeviceSync.prototype.
|
|
|
1632
1636
|
/**
|
|
1633
1637
|
* @enum {0 | 1}
|
|
1634
1638
|
*/
|
|
1635
|
-
export const
|
|
1639
|
+
export const DeviceSyncMode = Object.freeze({
|
|
1636
1640
|
Enabled: 0, "0": "Enabled",
|
|
1637
1641
|
Disabled: 1, "1": "Disabled",
|
|
1638
1642
|
});
|
|
@@ -2314,8 +2318,7 @@ export function contentTypeWalletSendCalls() {
|
|
|
2314
2318
|
* @param {Identifier} accountIdentifier
|
|
2315
2319
|
* @param {string | null} [dbPath]
|
|
2316
2320
|
* @param {Uint8Array | null} [encryptionKey]
|
|
2317
|
-
* @param {
|
|
2318
|
-
* @param {DeviceSyncWorkerMode | null} [deviceSyncWorkerMode]
|
|
2321
|
+
* @param {DeviceSyncMode | null} [deviceSyncMode]
|
|
2319
2322
|
* @param {LogOptions | null} [logOptions]
|
|
2320
2323
|
* @param {boolean | null} [allowOffline]
|
|
2321
2324
|
* @param {string | null} [appVersion]
|
|
@@ -2326,25 +2329,23 @@ export function contentTypeWalletSendCalls() {
|
|
|
2326
2329
|
* @param {ClientMode | null} [clientMode]
|
|
2327
2330
|
* @returns {Promise<Client>}
|
|
2328
2331
|
*/
|
|
2329
|
-
export function createClient(host, inboxId, accountIdentifier, dbPath, encryptionKey,
|
|
2332
|
+
export function createClient(host, inboxId, accountIdentifier, dbPath, encryptionKey, deviceSyncMode, logOptions, allowOffline, appVersion, gatewayHost, nonce, authCallback, authHandle, clientMode) {
|
|
2330
2333
|
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2331
2334
|
const len0 = WASM_VECTOR_LEN;
|
|
2332
2335
|
const ptr1 = passStringToWasm0(inboxId, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2333
2336
|
const len1 = WASM_VECTOR_LEN;
|
|
2334
2337
|
var ptr2 = isLikeNone(dbPath) ? 0 : passStringToWasm0(dbPath, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2335
2338
|
var len2 = WASM_VECTOR_LEN;
|
|
2336
|
-
var ptr3 = isLikeNone(
|
|
2339
|
+
var ptr3 = isLikeNone(appVersion) ? 0 : passStringToWasm0(appVersion, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2337
2340
|
var len3 = WASM_VECTOR_LEN;
|
|
2338
|
-
var ptr4 = isLikeNone(
|
|
2341
|
+
var ptr4 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2339
2342
|
var len4 = WASM_VECTOR_LEN;
|
|
2340
|
-
|
|
2341
|
-
var len5 = WASM_VECTOR_LEN;
|
|
2342
|
-
let ptr6 = 0;
|
|
2343
|
+
let ptr5 = 0;
|
|
2343
2344
|
if (!isLikeNone(authHandle)) {
|
|
2344
2345
|
_assertClass(authHandle, AuthHandle);
|
|
2345
|
-
|
|
2346
|
+
ptr5 = authHandle.__destroy_into_raw();
|
|
2346
2347
|
}
|
|
2347
|
-
const ret = wasm.createClient(ptr0, len0, ptr1, len1, accountIdentifier, ptr2, len2, isLikeNone(encryptionKey) ? 0 : addToExternrefTable0(encryptionKey),
|
|
2348
|
+
const ret = wasm.createClient(ptr0, len0, ptr1, len1, accountIdentifier, ptr2, len2, isLikeNone(encryptionKey) ? 0 : addToExternrefTable0(encryptionKey), isLikeNone(deviceSyncMode) ? 2 : deviceSyncMode, isLikeNone(logOptions) ? 0 : addToExternrefTable0(logOptions), isLikeNone(allowOffline) ? 0xFFFFFF : allowOffline ? 1 : 0, ptr3, len3, ptr4, len4, !isLikeNone(nonce), isLikeNone(nonce) ? BigInt(0) : nonce, isLikeNone(authCallback) ? 0 : addToExternrefTable0(authCallback), ptr5, isLikeNone(clientMode) ? 2 : clientMode);
|
|
2348
2349
|
return ret;
|
|
2349
2350
|
}
|
|
2350
2351
|
|
|
@@ -3089,6 +3090,9 @@ function __wbg_get_imports() {
|
|
|
3089
3090
|
__wbg_getRandomValues_1c61fac11405ffdc: function() { return handleError(function (arg0, arg1) {
|
|
3090
3091
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
3091
3092
|
}, arguments); },
|
|
3093
|
+
__wbg_getRandomValues_2a91986308c74a93: function() { return handleError(function (arg0, arg1) {
|
|
3094
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
3095
|
+
}, arguments); },
|
|
3092
3096
|
__wbg_getRandomValues_b8f5dbd5f3995a9e: function() { return handleError(function (arg0, arg1) {
|
|
3093
3097
|
arg0.getRandomValues(arg1);
|
|
3094
3098
|
}, arguments); },
|
|
@@ -3415,29 +3419,29 @@ function __wbg_get_imports() {
|
|
|
3415
3419
|
const ret = Date.now();
|
|
3416
3420
|
return ret;
|
|
3417
3421
|
},
|
|
3418
|
-
|
|
3422
|
+
__wbg_on_auth_required_fc75d08253b62d4b: function() { return handleError(function (arg0) {
|
|
3419
3423
|
const ret = arg0.on_auth_required();
|
|
3420
3424
|
return ret;
|
|
3421
3425
|
}, arguments); },
|
|
3422
|
-
|
|
3426
|
+
__wbg_on_close_30514750202134b1: function(arg0) {
|
|
3423
3427
|
arg0.on_close();
|
|
3424
3428
|
},
|
|
3425
|
-
|
|
3429
|
+
__wbg_on_consent_update_09d2aa0e2d42e878: function(arg0, arg1) {
|
|
3426
3430
|
arg0.on_consent_update(arg1);
|
|
3427
3431
|
},
|
|
3428
|
-
|
|
3432
|
+
__wbg_on_conversation_97984aa92b959c68: function(arg0, arg1) {
|
|
3429
3433
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
3430
3434
|
},
|
|
3431
|
-
|
|
3435
|
+
__wbg_on_error_68117e74077266d1: function(arg0, arg1) {
|
|
3432
3436
|
arg0.on_error(arg1);
|
|
3433
3437
|
},
|
|
3434
|
-
|
|
3438
|
+
__wbg_on_message_08efea1e40786b02: function(arg0, arg1) {
|
|
3435
3439
|
arg0.on_message(arg1);
|
|
3436
3440
|
},
|
|
3437
|
-
|
|
3441
|
+
__wbg_on_message_deleted_041b585ca4b08b2d: function(arg0, arg1) {
|
|
3438
3442
|
arg0.on_message_deleted(arg1);
|
|
3439
3443
|
},
|
|
3440
|
-
|
|
3444
|
+
__wbg_on_user_preference_update_c207078728cd9290: function(arg0, arg1, arg2) {
|
|
3441
3445
|
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
3442
3446
|
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
3443
3447
|
arg0.on_user_preference_update(v0);
|
|
@@ -3520,9 +3524,6 @@ function __wbg_get_imports() {
|
|
|
3520
3524
|
const ret = setTimeout(arg0, arg1);
|
|
3521
3525
|
return ret;
|
|
3522
3526
|
},
|
|
3523
|
-
__wbg_setTimeout_8f06012fba12034e: function(arg0, arg1) {
|
|
3524
|
-
globalThis.setTimeout(arg0, arg1);
|
|
3525
|
-
},
|
|
3526
3527
|
__wbg_setTimeout_929c97a7c0f23d36: function(arg0, arg1) {
|
|
3527
3528
|
const ret = setTimeout(arg0, arg1);
|
|
3528
3529
|
return ret;
|
|
@@ -3753,22 +3754,22 @@ function __wbg_get_imports() {
|
|
|
3753
3754
|
return ret;
|
|
3754
3755
|
}, arguments); },
|
|
3755
3756
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
3756
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3757
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3757
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7094, function: Function { arguments: [], shim_idx: 7095, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3758
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__he86c9d9bb368f43f, wasm_bindgen__convert__closures_____invoke__h7478175f8808d1fa);
|
|
3758
3759
|
return ret;
|
|
3759
3760
|
},
|
|
3760
3761
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
3761
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3762
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7296, function: Function { arguments: [], shim_idx: 7297, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3762
3763
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h213ec6c0cfaa8daa, wasm_bindgen__convert__closures_____invoke__h7d2ee1dee7ec118b);
|
|
3763
3764
|
return ret;
|
|
3764
3765
|
},
|
|
3765
3766
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
3766
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3767
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3767
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 8319, function: Function { arguments: [], shim_idx: 8320, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3768
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h006fa4718e4400fc, wasm_bindgen__convert__closures_____invoke__h48de3f26adb3eb8d);
|
|
3768
3769
|
return ret;
|
|
3769
3770
|
},
|
|
3770
3771
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
3771
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3772
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 8804, function: Function { arguments: [Externref], shim_idx: 8805, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3772
3773
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd56fbfc240f3eed8, wasm_bindgen__convert__closures_____invoke__h01ab1ec45c07a95b);
|
|
3773
3774
|
return ret;
|
|
3774
3775
|
},
|
|
@@ -3848,16 +3849,16 @@ function __wbg_get_imports() {
|
|
|
3848
3849
|
};
|
|
3849
3850
|
}
|
|
3850
3851
|
|
|
3851
|
-
function
|
|
3852
|
-
wasm.
|
|
3852
|
+
function wasm_bindgen__convert__closures_____invoke__h7478175f8808d1fa(arg0, arg1) {
|
|
3853
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7478175f8808d1fa(arg0, arg1);
|
|
3853
3854
|
}
|
|
3854
3855
|
|
|
3855
3856
|
function wasm_bindgen__convert__closures_____invoke__h7d2ee1dee7ec118b(arg0, arg1) {
|
|
3856
3857
|
wasm.wasm_bindgen__convert__closures_____invoke__h7d2ee1dee7ec118b(arg0, arg1);
|
|
3857
3858
|
}
|
|
3858
3859
|
|
|
3859
|
-
function
|
|
3860
|
-
wasm.
|
|
3860
|
+
function wasm_bindgen__convert__closures_____invoke__h48de3f26adb3eb8d(arg0, arg1) {
|
|
3861
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h48de3f26adb3eb8d(arg0, arg1);
|
|
3861
3862
|
}
|
|
3862
3863
|
|
|
3863
3864
|
function wasm_bindgen__convert__closures_____invoke__h01ab1ec45c07a95b(arg0, arg1, arg2) {
|
|
Binary file
|
|
@@ -1,53 +1,16 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const __wbg_authhandle_free: (a: number, b: number) => void;
|
|
5
|
-
export const authhandle_id: (a: number) => number;
|
|
6
|
-
export const authhandle_new: () => number;
|
|
7
|
-
export const authhandle_set: (a: number, b: any) => any;
|
|
8
|
-
export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
9
|
-
export const client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
10
|
-
export const contentTypeGroupUpdated: () => any;
|
|
11
|
-
export const contentTypeTransactionReference: () => any;
|
|
12
|
-
export const conversation_consentState: (a: number) => [number, number, number];
|
|
13
|
-
export const conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
14
|
-
export const encodeTransactionReference: (a: any) => [number, number, number];
|
|
15
|
-
export const contentTypeReply: () => any;
|
|
16
|
-
export const opfsClearAll: () => any;
|
|
17
|
-
export const opfsDeleteFile: (a: number, b: number) => any;
|
|
18
|
-
export const opfsExportDb: (a: number, b: number) => any;
|
|
19
|
-
export const opfsFileCount: () => any;
|
|
20
|
-
export const opfsFileExists: (a: number, b: number) => any;
|
|
21
|
-
export const opfsImportDb: (a: number, b: number, c: any) => any;
|
|
22
|
-
export const opfsInit: () => any;
|
|
23
|
-
export const opfsListFiles: () => any;
|
|
24
|
-
export const opfsPoolCapacity: () => any;
|
|
25
4
|
export const __wbg_client_free: (a: number, b: number) => void;
|
|
26
5
|
export const __wbg_conversation_free: (a: number, b: number) => void;
|
|
27
|
-
export const __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
28
|
-
export const __wbg_conversations_free: (a: number, b: number) => void;
|
|
29
|
-
export const __wbg_devicesync_free: (a: number, b: number) => void;
|
|
30
|
-
export const __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
31
|
-
export const __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
|
|
32
|
-
export const __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
|
|
33
|
-
export const __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
34
|
-
export const __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
|
|
35
|
-
export const __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
36
|
-
export const __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
|
|
37
|
-
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
38
|
-
export const applySignatureRequest: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
39
6
|
export const client_accountIdentifier: (a: number) => any;
|
|
40
|
-
export const client_addWalletSignatureRequest: (a: number, b: any) => any;
|
|
41
7
|
export const client_apiAggregateStatistics: (a: number) => [number, number];
|
|
42
8
|
export const client_apiIdentityStatistics: (a: number) => any;
|
|
43
9
|
export const client_apiStatistics: (a: number) => any;
|
|
44
10
|
export const client_appVersion: (a: number) => [number, number];
|
|
45
|
-
export const client_applySignatureRequest: (a: number, b: number) => any;
|
|
46
11
|
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
47
|
-
export const client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
|
|
48
12
|
export const client_clearAllStatistics: (a: number) => void;
|
|
49
13
|
export const client_conversations: (a: number) => number;
|
|
50
|
-
export const client_createInboxSignatureRequest: (a: number) => [number, number, number];
|
|
51
14
|
export const client_device_sync: (a: number) => number;
|
|
52
15
|
export const client_findInboxIdByIdentity: (a: number, b: any) => any;
|
|
53
16
|
export const client_inboxId: (a: number) => [number, number];
|
|
@@ -56,19 +19,14 @@ export const client_installationId: (a: number) => [number, number];
|
|
|
56
19
|
export const client_installationIdBytes: (a: number) => any;
|
|
57
20
|
export const client_isRegistered: (a: number) => number;
|
|
58
21
|
export const client_libxmtpVersion: (a: number) => [number, number];
|
|
59
|
-
export const client_registerIdentity: (a: number, b: number) => any;
|
|
60
|
-
export const client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
|
|
61
|
-
export const client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
|
|
62
|
-
export const client_revokeWalletSignatureRequest: (a: number, b: any) => any;
|
|
63
|
-
export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
64
22
|
export const client_syncPreferences: (a: number) => any;
|
|
65
|
-
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
66
23
|
export const contentTypeActions: () => any;
|
|
67
24
|
export const contentTypeAttachment: () => any;
|
|
68
|
-
export const
|
|
69
|
-
export const
|
|
70
|
-
export const
|
|
25
|
+
export const contentTypeLeaveRequest: () => any;
|
|
26
|
+
export const contentTypeMarkdown: () => any;
|
|
27
|
+
export const contentTypeMultiRemoteAttachment: () => any;
|
|
71
28
|
export const contentTypeRemoteAttachment: () => any;
|
|
29
|
+
export const contentTypeText: () => any;
|
|
72
30
|
export const contentTypeWalletSendCalls: () => any;
|
|
73
31
|
export const conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
74
32
|
export const conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
@@ -132,6 +90,39 @@ export const conversation_updateGroupImageUrlSquare: (a: number, b: number, c: n
|
|
|
132
90
|
export const conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
133
91
|
export const conversation_updateMessageDisappearingSettings: (a: number, b: any) => any;
|
|
134
92
|
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];
|
|
135
126
|
export const conversationlistitem_new: (a: number, b: number, c: number) => number;
|
|
136
127
|
export const conversations_createDm: (a: number, b: any, c: number) => any;
|
|
137
128
|
export const conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
|
|
@@ -153,50 +144,59 @@ export const conversations_streamMessageDeletions: (a: number, b: any) => [numbe
|
|
|
153
144
|
export const conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
154
145
|
export const conversations_sync: (a: number) => any;
|
|
155
146
|
export const conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
156
|
-
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: number, r: number, s: bigint, t: number, u: number, v: number) => any;
|
|
157
|
-
export const decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
|
|
158
147
|
export const devicesync_archiveMetadata: (a: number, b: any, c: any) => any;
|
|
159
148
|
export const devicesync_createArchive: (a: number, b: any, c: any) => any;
|
|
160
149
|
export const devicesync_importArchive: (a: number, b: any, c: any) => any;
|
|
161
150
|
export const devicesync_listAvailableArchives: (a: number, b: bigint) => [number, number, number, number];
|
|
162
151
|
export const devicesync_processSyncArchive: (a: number, b: number, c: number) => any;
|
|
163
152
|
export const devicesync_sendSyncArchive: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
|
|
164
|
-
export const devicesync_sendSyncRequest: (a: number) => any;
|
|
153
|
+
export const devicesync_sendSyncRequest: (a: number, b: any, c: number, d: number) => any;
|
|
165
154
|
export const devicesync_syncAllDeviceSyncGroups: (a: number) => any;
|
|
166
|
-
export const
|
|
167
|
-
export const
|
|
168
|
-
export const
|
|
169
|
-
export const
|
|
170
|
-
export const
|
|
171
|
-
export const
|
|
172
|
-
export const
|
|
173
|
-
export const
|
|
174
|
-
export const
|
|
175
|
-
export const
|
|
176
|
-
export const
|
|
177
|
-
export const signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
|
|
178
|
-
export const signaturerequesthandle_signatureText: (a: number) => any;
|
|
155
|
+
export const contentTypeReply: () => any;
|
|
156
|
+
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
157
|
+
export const opfsClearAll: () => any;
|
|
158
|
+
export const opfsDeleteFile: (a: number, b: number) => any;
|
|
159
|
+
export const opfsExportDb: (a: number, b: number) => any;
|
|
160
|
+
export const opfsFileCount: () => any;
|
|
161
|
+
export const opfsFileExists: (a: number, b: number) => any;
|
|
162
|
+
export const opfsImportDb: (a: number, b: number, c: any) => any;
|
|
163
|
+
export const opfsInit: () => any;
|
|
164
|
+
export const opfsListFiles: () => any;
|
|
165
|
+
export const opfsPoolCapacity: () => any;
|
|
179
166
|
export const streamcloser_end: (a: number) => void;
|
|
180
167
|
export const streamcloser_endAndWait: (a: number) => any;
|
|
181
168
|
export const streamcloser_isClosed: (a: number) => number;
|
|
182
169
|
export const streamcloser_waitForReady: (a: number) => any;
|
|
183
|
-
export const
|
|
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];
|
|
184
180
|
export const client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
|
|
185
181
|
export const client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
|
|
186
182
|
export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
187
183
|
export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
188
184
|
export const client_inboxState: (a: number, b: number) => any;
|
|
189
|
-
export const
|
|
190
|
-
export const
|
|
191
|
-
export const
|
|
192
|
-
export const
|
|
193
|
-
export const
|
|
194
|
-
export const
|
|
195
|
-
export const encodeText: (a: number, b: number) => [number, number, number];
|
|
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];
|
|
196
191
|
export const generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
|
|
197
192
|
export const getInboxIdForIdentifier: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
|
|
198
193
|
export const inboxStateFromInboxIds: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
199
|
-
export const
|
|
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];
|
|
195
|
+
export const signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
|
|
196
|
+
export const signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
|
|
197
|
+
export const signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
|
|
198
|
+
export const signaturerequesthandle_signatureText: (a: number) => any;
|
|
199
|
+
export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
200
200
|
export const rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
|
|
201
201
|
export const rust_zstd_wasm_shim_free: (a: number) => void;
|
|
202
202
|
export const rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
@@ -244,16 +244,16 @@ export const __wbgtest_module_signature: () => [number, bigint];
|
|
|
244
244
|
export const __wbgbench_dump: () => [number, number];
|
|
245
245
|
export const __wbgbench_import: (a: number, b: number) => void;
|
|
246
246
|
export const __wbgtest_coverage_path: (a: number, b: number, c: number, d: number, e: number, f: bigint) => [number, number];
|
|
247
|
-
export const
|
|
247
|
+
export const wasm_bindgen__closure__destroy__he86c9d9bb368f43f: (a: number, b: number) => void;
|
|
248
248
|
export const wasm_bindgen__closure__destroy__h213ec6c0cfaa8daa: (a: number, b: number) => void;
|
|
249
|
-
export const
|
|
249
|
+
export const wasm_bindgen__closure__destroy__h006fa4718e4400fc: (a: number, b: number) => void;
|
|
250
250
|
export const wasm_bindgen__closure__destroy__hd56fbfc240f3eed8: (a: number, b: number) => void;
|
|
251
251
|
export const wasm_bindgen__convert__closures_____invoke__h4761911dc2bcd4ab: (a: number, b: number, c: any, d: number, e: any) => void;
|
|
252
252
|
export const wasm_bindgen__convert__closures_____invoke__h93371d492ea6dccf: (a: number, b: number, c: any, d: any) => void;
|
|
253
253
|
export const wasm_bindgen__convert__closures_____invoke__h01ab1ec45c07a95b: (a: number, b: number, c: any) => void;
|
|
254
|
-
export const
|
|
254
|
+
export const wasm_bindgen__convert__closures_____invoke__h7478175f8808d1fa: (a: number, b: number) => void;
|
|
255
255
|
export const wasm_bindgen__convert__closures_____invoke__h7d2ee1dee7ec118b: (a: number, b: number) => void;
|
|
256
|
-
export const
|
|
256
|
+
export const wasm_bindgen__convert__closures_____invoke__h48de3f26adb3eb8d: (a: number, b: number) => void;
|
|
257
257
|
export const __externref_table_alloc: () => number;
|
|
258
258
|
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
259
259
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmtp/wasm-bindings",
|
|
3
|
-
"version": "1.10.0-
|
|
3
|
+
"version": "1.10.0-rc1",
|
|
4
4
|
"description": "WASM bindings for the libXMTP rust library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xmtp",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@vitest/browser-playwright": "^4.0.8",
|
|
67
67
|
"@xmtp/content-type-remote-attachment": "^2.0.3",
|
|
68
68
|
"binaryen": "^125.0.0",
|
|
69
|
-
"playwright": "
|
|
69
|
+
"playwright": "=1.57",
|
|
70
70
|
"prettier": "^3.7.4",
|
|
71
71
|
"prettier-plugin-packagejson": "^3.0.0",
|
|
72
72
|
"tsx": "^4.20.6",
|