@haex-space/vault-sdk 2.5.33 → 2.5.35
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/{client-BkN93lDI.d.mts → client-B5sRb-z5.d.mts} +17 -1
- package/dist/{client-t6HbiM76.d.ts → client-C1V7rmBP.d.ts} +17 -1
- package/dist/index.d.mts +24 -24
- package/dist/index.d.ts +24 -24
- package/dist/index.js +37 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +37 -25
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +24 -24
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +24 -24
- package/dist/react.mjs.map +1 -1
- package/dist/runtime/nuxt.plugin.client.d.mts +1 -1
- package/dist/runtime/nuxt.plugin.client.d.ts +1 -1
- package/dist/runtime/nuxt.plugin.client.js +24 -24
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs +24 -24
- package/dist/runtime/nuxt.plugin.client.mjs.map +1 -1
- package/dist/svelte.d.mts +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/svelte.js +24 -24
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +24 -24
- package/dist/svelte.mjs.map +1 -1
- package/dist/vue.d.mts +1 -1
- package/dist/vue.d.ts +1 -1
- package/dist/vue.js +24 -24
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +24 -24
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -671,6 +671,18 @@ var STORAGE_BACKEND_TYPE = {
|
|
|
671
671
|
GDRIVE: "gdrive",
|
|
672
672
|
DROPBOX: "dropbox"
|
|
673
673
|
};
|
|
674
|
+
var CONFLICT_STRATEGY = {
|
|
675
|
+
/** Always prefer local version */
|
|
676
|
+
LOCAL: "local",
|
|
677
|
+
/** Always prefer remote version */
|
|
678
|
+
REMOTE: "remote",
|
|
679
|
+
/** Prefer newer version (Last-Writer-Wins) */
|
|
680
|
+
NEWER: "newer",
|
|
681
|
+
/** Ask user to resolve each conflict manually */
|
|
682
|
+
ASK: "ask",
|
|
683
|
+
/** Keep both versions (create conflict copy) */
|
|
684
|
+
KEEP_BOTH: "keepBoth"
|
|
685
|
+
};
|
|
674
686
|
var FileSyncAPI = class {
|
|
675
687
|
constructor(client) {
|
|
676
688
|
this.client = client;
|
|
@@ -1366,36 +1378,36 @@ var TAURI_COMMANDS = {
|
|
|
1366
1378
|
getContext: "webview_extension_context_get"
|
|
1367
1379
|
},
|
|
1368
1380
|
filesync: {
|
|
1369
|
-
// Spaces
|
|
1370
|
-
listSpaces: "
|
|
1371
|
-
createSpace: "
|
|
1372
|
-
deleteSpace: "
|
|
1381
|
+
// Spaces (webview_* commands extract extension info from WebviewWindow)
|
|
1382
|
+
listSpaces: "webview_filesync_list_spaces",
|
|
1383
|
+
createSpace: "webview_filesync_create_space",
|
|
1384
|
+
deleteSpace: "webview_filesync_delete_space",
|
|
1373
1385
|
// Files
|
|
1374
|
-
listFiles: "
|
|
1375
|
-
getFile: "
|
|
1376
|
-
uploadFile: "
|
|
1377
|
-
downloadFile: "
|
|
1378
|
-
deleteFile: "
|
|
1386
|
+
listFiles: "webview_filesync_list_files",
|
|
1387
|
+
getFile: "webview_filesync_get_file",
|
|
1388
|
+
uploadFile: "webview_filesync_upload_file",
|
|
1389
|
+
downloadFile: "webview_filesync_download_file",
|
|
1390
|
+
deleteFile: "webview_filesync_delete_file",
|
|
1379
1391
|
// Backends
|
|
1380
|
-
listBackends: "
|
|
1381
|
-
addBackend: "
|
|
1382
|
-
removeBackend: "
|
|
1383
|
-
testBackend: "
|
|
1392
|
+
listBackends: "webview_filesync_list_backends",
|
|
1393
|
+
addBackend: "webview_filesync_add_backend",
|
|
1394
|
+
removeBackend: "webview_filesync_remove_backend",
|
|
1395
|
+
testBackend: "webview_filesync_test_backend",
|
|
1384
1396
|
// Sync Rules
|
|
1385
|
-
listSyncRules: "
|
|
1386
|
-
addSyncRule: "
|
|
1387
|
-
updateSyncRule: "
|
|
1388
|
-
removeSyncRule: "
|
|
1397
|
+
listSyncRules: "webview_filesync_list_sync_rules",
|
|
1398
|
+
addSyncRule: "webview_filesync_add_sync_rule",
|
|
1399
|
+
updateSyncRule: "webview_filesync_update_sync_rule",
|
|
1400
|
+
removeSyncRule: "webview_filesync_remove_sync_rule",
|
|
1389
1401
|
// Sync Operations
|
|
1390
|
-
getSyncStatus: "
|
|
1391
|
-
triggerSync: "
|
|
1392
|
-
pauseSync: "
|
|
1393
|
-
resumeSync: "
|
|
1402
|
+
getSyncStatus: "webview_filesync_get_sync_status",
|
|
1403
|
+
triggerSync: "webview_filesync_trigger_sync",
|
|
1404
|
+
pauseSync: "webview_filesync_pause_sync",
|
|
1405
|
+
resumeSync: "webview_filesync_resume_sync",
|
|
1394
1406
|
// Conflict Resolution
|
|
1395
|
-
resolveConflict: "
|
|
1396
|
-
// UI Helpers
|
|
1407
|
+
resolveConflict: "webview_filesync_resolve_conflict",
|
|
1408
|
+
// UI Helpers (selectFolder doesn't need extension info)
|
|
1397
1409
|
selectFolder: "filesync_select_folder",
|
|
1398
|
-
scanLocal: "
|
|
1410
|
+
scanLocal: "webview_filesync_scan_local"
|
|
1399
1411
|
}
|
|
1400
1412
|
};
|
|
1401
1413
|
|
|
@@ -2555,6 +2567,6 @@ function createHaexVaultSdk(config = {}) {
|
|
|
2555
2567
|
return new HaexVaultSdk(config);
|
|
2556
2568
|
}
|
|
2557
2569
|
|
|
2558
|
-
export { DEFAULT_TIMEOUT, DatabaseAPI, EXTERNAL_EVENTS, ErrorCode, ExternalConnectionErrorCode, ExternalConnectionState, FILE_SYNC_STATE, FileSyncAPI, FilesystemAPI, HAEXSPACE_MESSAGE_TYPES, HAEXTENSION_EVENTS, HAEXTENSION_METHODS, HaexVaultSdk, HaexVaultSdkError, PermissionStatus, PermissionsAPI, STORAGE_BACKEND_TYPE, SYNC_DIRECTION, TABLE_SEPARATOR, TAURI_COMMANDS, WebAPI, arrayBufferToBase64, base64ToArrayBuffer, canExternalClientSendRequests, createHaexVaultSdk, decryptCrdtData, decryptString, decryptVaultKey, decryptVaultName, deriveKeyFromPassword, encryptCrdtData, encryptString, encryptVaultKey, generateVaultKey, getTableName, hexToBytes, installBaseTag, installCookiePolyfill, installHistoryPolyfill, installLocalStoragePolyfill, installPolyfills, installSessionStoragePolyfill, isExternalClientConnected, sortObjectKeysRecursively, unwrapKey, verifyExtensionSignature, wrapKey };
|
|
2570
|
+
export { CONFLICT_STRATEGY, DEFAULT_TIMEOUT, DatabaseAPI, EXTERNAL_EVENTS, ErrorCode, ExternalConnectionErrorCode, ExternalConnectionState, FILE_SYNC_STATE, FileSyncAPI, FilesystemAPI, HAEXSPACE_MESSAGE_TYPES, HAEXTENSION_EVENTS, HAEXTENSION_METHODS, HaexVaultSdk, HaexVaultSdkError, PermissionStatus, PermissionsAPI, STORAGE_BACKEND_TYPE, SYNC_DIRECTION, TABLE_SEPARATOR, TAURI_COMMANDS, WebAPI, arrayBufferToBase64, base64ToArrayBuffer, canExternalClientSendRequests, createHaexVaultSdk, decryptCrdtData, decryptString, decryptVaultKey, decryptVaultName, deriveKeyFromPassword, encryptCrdtData, encryptString, encryptVaultKey, generateVaultKey, getTableName, hexToBytes, installBaseTag, installCookiePolyfill, installHistoryPolyfill, installLocalStoragePolyfill, installPolyfills, installSessionStoragePolyfill, isExternalClientConnected, sortObjectKeysRecursively, unwrapKey, verifyExtensionSignature, wrapKey };
|
|
2559
2571
|
//# sourceMappingURL=index.mjs.map
|
|
2560
2572
|
//# sourceMappingURL=index.mjs.map
|