@haex-space/vault-sdk 2.5.45 → 2.5.48
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/index.d.mts +1 -36
- package/dist/index.d.ts +1 -36
- package/dist/index.js +50 -194
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +50 -194
- package/dist/index.mjs.map +1 -1
- package/dist/react.js +63 -193
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +63 -193
- package/dist/react.mjs.map +1 -1
- package/dist/runtime/nuxt.plugin.client.js +63 -193
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs +63 -193
- package/dist/runtime/nuxt.plugin.client.mjs.map +1 -1
- package/dist/svelte.js +63 -193
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +63 -193
- package/dist/svelte.mjs.map +1 -1
- package/dist/vue.js +63 -193
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +63 -193
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -224,43 +224,8 @@ declare const TAURI_COMMANDS: {
|
|
|
224
224
|
readonly delete: "storage_delete";
|
|
225
225
|
readonly list: "storage_list";
|
|
226
226
|
};
|
|
227
|
-
readonly filesync: {
|
|
228
|
-
readonly listSpaces: "webview_filesync_list_spaces";
|
|
229
|
-
readonly createSpace: "webview_filesync_create_space";
|
|
230
|
-
readonly deleteSpace: "webview_filesync_delete_space";
|
|
231
|
-
readonly listFiles: "webview_filesync_list_files";
|
|
232
|
-
readonly getFile: "webview_filesync_get_file";
|
|
233
|
-
readonly uploadFile: "webview_filesync_upload_file";
|
|
234
|
-
readonly downloadFile: "webview_filesync_download_file";
|
|
235
|
-
readonly deleteFile: "webview_filesync_delete_file";
|
|
236
|
-
readonly listBackends: "webview_filesync_list_backends";
|
|
237
|
-
readonly addBackend: "webview_filesync_add_backend";
|
|
238
|
-
readonly removeBackend: "webview_filesync_remove_backend";
|
|
239
|
-
readonly testBackend: "webview_filesync_test_backend";
|
|
240
|
-
readonly listSyncRules: "webview_filesync_list_sync_rules";
|
|
241
|
-
readonly addSyncRule: "webview_filesync_add_sync_rule";
|
|
242
|
-
readonly updateSyncRule: "webview_filesync_update_sync_rule";
|
|
243
|
-
readonly removeSyncRule: "webview_filesync_remove_sync_rule";
|
|
244
|
-
readonly getSyncStatus: "webview_filesync_get_sync_status";
|
|
245
|
-
readonly triggerSync: "webview_filesync_trigger_sync";
|
|
246
|
-
readonly pauseSync: "webview_filesync_pause_sync";
|
|
247
|
-
readonly resumeSync: "webview_filesync_resume_sync";
|
|
248
|
-
readonly resolveConflict: "webview_filesync_resolve_conflict";
|
|
249
|
-
readonly selectFolder: "filesync_select_folder";
|
|
250
|
-
readonly scanLocal: "webview_filesync_scan_local";
|
|
251
|
-
readonly addToQueue: "webview_filesync_add_to_queue";
|
|
252
|
-
readonly getQueue: "webview_filesync_get_queue";
|
|
253
|
-
readonly getQueueSummary: "webview_filesync_get_queue_summary";
|
|
254
|
-
readonly startQueueEntry: "webview_filesync_start_queue_entry";
|
|
255
|
-
readonly completeQueueEntry: "webview_filesync_complete_queue_entry";
|
|
256
|
-
readonly failQueueEntry: "webview_filesync_fail_queue_entry";
|
|
257
|
-
readonly retryFailedQueue: "webview_filesync_retry_failed_queue";
|
|
258
|
-
readonly removeQueueEntry: "webview_filesync_remove_queue_entry";
|
|
259
|
-
readonly clearQueue: "webview_filesync_clear_queue";
|
|
260
|
-
readonly recoverQueue: "webview_filesync_recover_queue";
|
|
261
|
-
};
|
|
262
227
|
};
|
|
263
|
-
type TauriCommand = (typeof TAURI_COMMANDS.database)[keyof typeof TAURI_COMMANDS.database] | (typeof TAURI_COMMANDS.permissions)[keyof typeof TAURI_COMMANDS.permissions] | (typeof TAURI_COMMANDS.web)[keyof typeof TAURI_COMMANDS.web] | (typeof TAURI_COMMANDS.filesystem)[keyof typeof TAURI_COMMANDS.filesystem] | (typeof TAURI_COMMANDS.external)[keyof typeof TAURI_COMMANDS.external] | (typeof TAURI_COMMANDS.extension)[keyof typeof TAURI_COMMANDS.extension] | (typeof TAURI_COMMANDS.storage)[keyof typeof TAURI_COMMANDS.storage]
|
|
228
|
+
type TauriCommand = (typeof TAURI_COMMANDS.database)[keyof typeof TAURI_COMMANDS.database] | (typeof TAURI_COMMANDS.permissions)[keyof typeof TAURI_COMMANDS.permissions] | (typeof TAURI_COMMANDS.web)[keyof typeof TAURI_COMMANDS.web] | (typeof TAURI_COMMANDS.filesystem)[keyof typeof TAURI_COMMANDS.filesystem] | (typeof TAURI_COMMANDS.external)[keyof typeof TAURI_COMMANDS.external] | (typeof TAURI_COMMANDS.extension)[keyof typeof TAURI_COMMANDS.extension] | (typeof TAURI_COMMANDS.storage)[keyof typeof TAURI_COMMANDS.storage];
|
|
264
229
|
|
|
265
230
|
interface VerifyResult {
|
|
266
231
|
valid: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -224,43 +224,8 @@ declare const TAURI_COMMANDS: {
|
|
|
224
224
|
readonly delete: "storage_delete";
|
|
225
225
|
readonly list: "storage_list";
|
|
226
226
|
};
|
|
227
|
-
readonly filesync: {
|
|
228
|
-
readonly listSpaces: "webview_filesync_list_spaces";
|
|
229
|
-
readonly createSpace: "webview_filesync_create_space";
|
|
230
|
-
readonly deleteSpace: "webview_filesync_delete_space";
|
|
231
|
-
readonly listFiles: "webview_filesync_list_files";
|
|
232
|
-
readonly getFile: "webview_filesync_get_file";
|
|
233
|
-
readonly uploadFile: "webview_filesync_upload_file";
|
|
234
|
-
readonly downloadFile: "webview_filesync_download_file";
|
|
235
|
-
readonly deleteFile: "webview_filesync_delete_file";
|
|
236
|
-
readonly listBackends: "webview_filesync_list_backends";
|
|
237
|
-
readonly addBackend: "webview_filesync_add_backend";
|
|
238
|
-
readonly removeBackend: "webview_filesync_remove_backend";
|
|
239
|
-
readonly testBackend: "webview_filesync_test_backend";
|
|
240
|
-
readonly listSyncRules: "webview_filesync_list_sync_rules";
|
|
241
|
-
readonly addSyncRule: "webview_filesync_add_sync_rule";
|
|
242
|
-
readonly updateSyncRule: "webview_filesync_update_sync_rule";
|
|
243
|
-
readonly removeSyncRule: "webview_filesync_remove_sync_rule";
|
|
244
|
-
readonly getSyncStatus: "webview_filesync_get_sync_status";
|
|
245
|
-
readonly triggerSync: "webview_filesync_trigger_sync";
|
|
246
|
-
readonly pauseSync: "webview_filesync_pause_sync";
|
|
247
|
-
readonly resumeSync: "webview_filesync_resume_sync";
|
|
248
|
-
readonly resolveConflict: "webview_filesync_resolve_conflict";
|
|
249
|
-
readonly selectFolder: "filesync_select_folder";
|
|
250
|
-
readonly scanLocal: "webview_filesync_scan_local";
|
|
251
|
-
readonly addToQueue: "webview_filesync_add_to_queue";
|
|
252
|
-
readonly getQueue: "webview_filesync_get_queue";
|
|
253
|
-
readonly getQueueSummary: "webview_filesync_get_queue_summary";
|
|
254
|
-
readonly startQueueEntry: "webview_filesync_start_queue_entry";
|
|
255
|
-
readonly completeQueueEntry: "webview_filesync_complete_queue_entry";
|
|
256
|
-
readonly failQueueEntry: "webview_filesync_fail_queue_entry";
|
|
257
|
-
readonly retryFailedQueue: "webview_filesync_retry_failed_queue";
|
|
258
|
-
readonly removeQueueEntry: "webview_filesync_remove_queue_entry";
|
|
259
|
-
readonly clearQueue: "webview_filesync_clear_queue";
|
|
260
|
-
readonly recoverQueue: "webview_filesync_recover_queue";
|
|
261
|
-
};
|
|
262
227
|
};
|
|
263
|
-
type TauriCommand = (typeof TAURI_COMMANDS.database)[keyof typeof TAURI_COMMANDS.database] | (typeof TAURI_COMMANDS.permissions)[keyof typeof TAURI_COMMANDS.permissions] | (typeof TAURI_COMMANDS.web)[keyof typeof TAURI_COMMANDS.web] | (typeof TAURI_COMMANDS.filesystem)[keyof typeof TAURI_COMMANDS.filesystem] | (typeof TAURI_COMMANDS.external)[keyof typeof TAURI_COMMANDS.external] | (typeof TAURI_COMMANDS.extension)[keyof typeof TAURI_COMMANDS.extension] | (typeof TAURI_COMMANDS.storage)[keyof typeof TAURI_COMMANDS.storage]
|
|
228
|
+
type TauriCommand = (typeof TAURI_COMMANDS.database)[keyof typeof TAURI_COMMANDS.database] | (typeof TAURI_COMMANDS.permissions)[keyof typeof TAURI_COMMANDS.permissions] | (typeof TAURI_COMMANDS.web)[keyof typeof TAURI_COMMANDS.web] | (typeof TAURI_COMMANDS.filesystem)[keyof typeof TAURI_COMMANDS.filesystem] | (typeof TAURI_COMMANDS.external)[keyof typeof TAURI_COMMANDS.external] | (typeof TAURI_COMMANDS.extension)[keyof typeof TAURI_COMMANDS.extension] | (typeof TAURI_COMMANDS.storage)[keyof typeof TAURI_COMMANDS.storage];
|
|
264
229
|
|
|
265
230
|
interface VerifyResult {
|
|
266
231
|
valid: boolean;
|
package/dist/index.js
CHANGED
|
@@ -1382,49 +1382,6 @@ var TAURI_COMMANDS = {
|
|
|
1382
1382
|
download: "storage_download",
|
|
1383
1383
|
delete: "storage_delete",
|
|
1384
1384
|
list: "storage_list"
|
|
1385
|
-
},
|
|
1386
|
-
filesync: {
|
|
1387
|
-
// Spaces (webview_* commands extract extension info from WebviewWindow)
|
|
1388
|
-
listSpaces: "webview_filesync_list_spaces",
|
|
1389
|
-
createSpace: "webview_filesync_create_space",
|
|
1390
|
-
deleteSpace: "webview_filesync_delete_space",
|
|
1391
|
-
// Files
|
|
1392
|
-
listFiles: "webview_filesync_list_files",
|
|
1393
|
-
getFile: "webview_filesync_get_file",
|
|
1394
|
-
uploadFile: "webview_filesync_upload_file",
|
|
1395
|
-
downloadFile: "webview_filesync_download_file",
|
|
1396
|
-
deleteFile: "webview_filesync_delete_file",
|
|
1397
|
-
// Backends
|
|
1398
|
-
listBackends: "webview_filesync_list_backends",
|
|
1399
|
-
addBackend: "webview_filesync_add_backend",
|
|
1400
|
-
removeBackend: "webview_filesync_remove_backend",
|
|
1401
|
-
testBackend: "webview_filesync_test_backend",
|
|
1402
|
-
// Sync Rules
|
|
1403
|
-
listSyncRules: "webview_filesync_list_sync_rules",
|
|
1404
|
-
addSyncRule: "webview_filesync_add_sync_rule",
|
|
1405
|
-
updateSyncRule: "webview_filesync_update_sync_rule",
|
|
1406
|
-
removeSyncRule: "webview_filesync_remove_sync_rule",
|
|
1407
|
-
// Sync Operations
|
|
1408
|
-
getSyncStatus: "webview_filesync_get_sync_status",
|
|
1409
|
-
triggerSync: "webview_filesync_trigger_sync",
|
|
1410
|
-
pauseSync: "webview_filesync_pause_sync",
|
|
1411
|
-
resumeSync: "webview_filesync_resume_sync",
|
|
1412
|
-
// Conflict Resolution
|
|
1413
|
-
resolveConflict: "webview_filesync_resolve_conflict",
|
|
1414
|
-
// UI Helpers (selectFolder doesn't need extension info)
|
|
1415
|
-
selectFolder: "filesync_select_folder",
|
|
1416
|
-
scanLocal: "webview_filesync_scan_local",
|
|
1417
|
-
// Sync Queue
|
|
1418
|
-
addToQueue: "webview_filesync_add_to_queue",
|
|
1419
|
-
getQueue: "webview_filesync_get_queue",
|
|
1420
|
-
getQueueSummary: "webview_filesync_get_queue_summary",
|
|
1421
|
-
startQueueEntry: "webview_filesync_start_queue_entry",
|
|
1422
|
-
completeQueueEntry: "webview_filesync_complete_queue_entry",
|
|
1423
|
-
failQueueEntry: "webview_filesync_fail_queue_entry",
|
|
1424
|
-
retryFailedQueue: "webview_filesync_retry_failed_queue",
|
|
1425
|
-
removeQueueEntry: "webview_filesync_remove_queue_entry",
|
|
1426
|
-
clearQueue: "webview_filesync_clear_queue",
|
|
1427
|
-
recoverQueue: "webview_filesync_recover_queue"
|
|
1428
1385
|
}
|
|
1429
1386
|
};
|
|
1430
1387
|
|
|
@@ -1535,163 +1492,62 @@ var externalHandlers = {
|
|
|
1535
1492
|
}
|
|
1536
1493
|
};
|
|
1537
1494
|
|
|
1538
|
-
// src/transport/handlers/
|
|
1539
|
-
var
|
|
1540
|
-
//
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
command: TAURI_COMMANDS.filesync.listSpaces,
|
|
1545
|
-
args: () => ({})
|
|
1546
|
-
},
|
|
1547
|
-
[HAEXTENSION_METHODS.filesync.createSpace]: {
|
|
1548
|
-
command: TAURI_COMMANDS.filesync.createSpace,
|
|
1549
|
-
args: (p) => ({ request: p })
|
|
1550
|
-
},
|
|
1551
|
-
[HAEXTENSION_METHODS.filesync.deleteSpace]: {
|
|
1552
|
-
command: TAURI_COMMANDS.filesync.deleteSpace,
|
|
1553
|
-
args: (p) => ({ spaceId: p.spaceId })
|
|
1554
|
-
},
|
|
1555
|
-
// ==========================================================================
|
|
1556
|
-
// Files
|
|
1557
|
-
// ==========================================================================
|
|
1558
|
-
[HAEXTENSION_METHODS.filesync.listFiles]: {
|
|
1559
|
-
command: TAURI_COMMANDS.filesync.listFiles,
|
|
1560
|
-
args: (p) => ({ request: p })
|
|
1561
|
-
},
|
|
1562
|
-
[HAEXTENSION_METHODS.filesync.getFile]: {
|
|
1563
|
-
command: TAURI_COMMANDS.filesync.getFile,
|
|
1564
|
-
args: (p) => ({ fileId: p.fileId })
|
|
1565
|
-
},
|
|
1566
|
-
[HAEXTENSION_METHODS.filesync.uploadFile]: {
|
|
1567
|
-
command: TAURI_COMMANDS.filesync.uploadFile,
|
|
1568
|
-
args: (p) => ({ request: p })
|
|
1569
|
-
},
|
|
1570
|
-
[HAEXTENSION_METHODS.filesync.downloadFile]: {
|
|
1571
|
-
command: TAURI_COMMANDS.filesync.downloadFile,
|
|
1572
|
-
args: (p) => ({ request: p })
|
|
1573
|
-
},
|
|
1574
|
-
[HAEXTENSION_METHODS.filesync.deleteFile]: {
|
|
1575
|
-
command: TAURI_COMMANDS.filesync.deleteFile,
|
|
1576
|
-
args: (p) => ({ fileId: p.fileId })
|
|
1577
|
-
},
|
|
1578
|
-
// ==========================================================================
|
|
1579
|
-
// Backends
|
|
1580
|
-
// ==========================================================================
|
|
1581
|
-
[HAEXTENSION_METHODS.filesync.listBackends]: {
|
|
1582
|
-
command: TAURI_COMMANDS.filesync.listBackends,
|
|
1583
|
-
args: () => ({})
|
|
1584
|
-
},
|
|
1585
|
-
[HAEXTENSION_METHODS.filesync.addBackend]: {
|
|
1586
|
-
command: TAURI_COMMANDS.filesync.addBackend,
|
|
1587
|
-
args: (p) => ({ request: p })
|
|
1588
|
-
},
|
|
1589
|
-
[HAEXTENSION_METHODS.filesync.removeBackend]: {
|
|
1590
|
-
command: TAURI_COMMANDS.filesync.removeBackend,
|
|
1591
|
-
args: (p) => ({ backendId: p.backendId })
|
|
1592
|
-
},
|
|
1593
|
-
[HAEXTENSION_METHODS.filesync.testBackend]: {
|
|
1594
|
-
command: TAURI_COMMANDS.filesync.testBackend,
|
|
1595
|
-
args: (p) => ({ backendId: p.backendId })
|
|
1596
|
-
},
|
|
1597
|
-
// ==========================================================================
|
|
1598
|
-
// Sync Rules
|
|
1599
|
-
// ==========================================================================
|
|
1600
|
-
[HAEXTENSION_METHODS.filesync.listSyncRules]: {
|
|
1601
|
-
command: TAURI_COMMANDS.filesync.listSyncRules,
|
|
1602
|
-
args: () => ({})
|
|
1603
|
-
},
|
|
1604
|
-
[HAEXTENSION_METHODS.filesync.addSyncRule]: {
|
|
1605
|
-
command: TAURI_COMMANDS.filesync.addSyncRule,
|
|
1606
|
-
args: (p) => ({ request: p })
|
|
1607
|
-
},
|
|
1608
|
-
[HAEXTENSION_METHODS.filesync.updateSyncRule]: {
|
|
1609
|
-
command: TAURI_COMMANDS.filesync.updateSyncRule,
|
|
1610
|
-
args: (p) => ({ request: p })
|
|
1611
|
-
},
|
|
1612
|
-
[HAEXTENSION_METHODS.filesync.removeSyncRule]: {
|
|
1613
|
-
command: TAURI_COMMANDS.filesync.removeSyncRule,
|
|
1614
|
-
args: (p) => ({ ruleId: p.ruleId })
|
|
1615
|
-
},
|
|
1616
|
-
// ==========================================================================
|
|
1617
|
-
// Sync Operations
|
|
1618
|
-
// ==========================================================================
|
|
1619
|
-
[HAEXTENSION_METHODS.filesync.getSyncStatus]: {
|
|
1620
|
-
command: TAURI_COMMANDS.filesync.getSyncStatus,
|
|
1621
|
-
args: () => ({})
|
|
1622
|
-
},
|
|
1623
|
-
[HAEXTENSION_METHODS.filesync.triggerSync]: {
|
|
1624
|
-
command: TAURI_COMMANDS.filesync.triggerSync,
|
|
1625
|
-
args: () => ({})
|
|
1495
|
+
// src/transport/handlers/remoteStorage.ts
|
|
1496
|
+
var remoteStorageHandlers = {
|
|
1497
|
+
// Backend Management
|
|
1498
|
+
[HAEXTENSION_METHODS.remoteStorage.listBackends]: {
|
|
1499
|
+
command: TAURI_COMMANDS.storage.listBackends,
|
|
1500
|
+
args: (_p) => ({})
|
|
1626
1501
|
},
|
|
1627
|
-
[HAEXTENSION_METHODS.
|
|
1628
|
-
command: TAURI_COMMANDS.
|
|
1629
|
-
args: () => ({
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
},
|
|
1635
|
-
// ==========================================================================
|
|
1636
|
-
// Conflict Resolution
|
|
1637
|
-
// ==========================================================================
|
|
1638
|
-
[HAEXTENSION_METHODS.filesync.resolveConflict]: {
|
|
1639
|
-
command: TAURI_COMMANDS.filesync.resolveConflict,
|
|
1640
|
-
args: (p) => ({ request: p })
|
|
1641
|
-
},
|
|
1642
|
-
// ==========================================================================
|
|
1643
|
-
// UI Helpers
|
|
1644
|
-
// ==========================================================================
|
|
1645
|
-
[HAEXTENSION_METHODS.filesync.selectFolder]: {
|
|
1646
|
-
command: TAURI_COMMANDS.filesync.selectFolder,
|
|
1647
|
-
args: () => ({})
|
|
1648
|
-
},
|
|
1649
|
-
[HAEXTENSION_METHODS.filesync.scanLocal]: {
|
|
1650
|
-
command: TAURI_COMMANDS.filesync.scanLocal,
|
|
1651
|
-
args: (p) => ({ request: p })
|
|
1652
|
-
},
|
|
1653
|
-
// ==========================================================================
|
|
1654
|
-
// Sync Queue
|
|
1655
|
-
// ==========================================================================
|
|
1656
|
-
[HAEXTENSION_METHODS.filesync.addToQueue]: {
|
|
1657
|
-
command: TAURI_COMMANDS.filesync.addToQueue,
|
|
1658
|
-
args: (p) => ({ request: p })
|
|
1659
|
-
},
|
|
1660
|
-
[HAEXTENSION_METHODS.filesync.getQueue]: {
|
|
1661
|
-
command: TAURI_COMMANDS.filesync.getQueue,
|
|
1662
|
-
args: (p) => ({ request: p ?? {} })
|
|
1663
|
-
},
|
|
1664
|
-
[HAEXTENSION_METHODS.filesync.getQueueSummary]: {
|
|
1665
|
-
command: TAURI_COMMANDS.filesync.getQueueSummary,
|
|
1666
|
-
args: () => ({})
|
|
1667
|
-
},
|
|
1668
|
-
[HAEXTENSION_METHODS.filesync.startQueueEntry]: {
|
|
1669
|
-
command: TAURI_COMMANDS.filesync.startQueueEntry,
|
|
1670
|
-
args: (p) => ({ entryId: p.entryId })
|
|
1502
|
+
[HAEXTENSION_METHODS.remoteStorage.addBackend]: {
|
|
1503
|
+
command: TAURI_COMMANDS.storage.addBackend,
|
|
1504
|
+
args: (p) => ({
|
|
1505
|
+
name: p.name,
|
|
1506
|
+
backendType: p.type,
|
|
1507
|
+
config: p.config
|
|
1508
|
+
})
|
|
1671
1509
|
},
|
|
1672
|
-
[HAEXTENSION_METHODS.
|
|
1673
|
-
command: TAURI_COMMANDS.
|
|
1674
|
-
args: (p) => ({
|
|
1510
|
+
[HAEXTENSION_METHODS.remoteStorage.removeBackend]: {
|
|
1511
|
+
command: TAURI_COMMANDS.storage.removeBackend,
|
|
1512
|
+
args: (p) => ({
|
|
1513
|
+
backendId: p.backendId
|
|
1514
|
+
})
|
|
1675
1515
|
},
|
|
1676
|
-
[HAEXTENSION_METHODS.
|
|
1677
|
-
command: TAURI_COMMANDS.
|
|
1678
|
-
args: (p) => ({
|
|
1516
|
+
[HAEXTENSION_METHODS.remoteStorage.testBackend]: {
|
|
1517
|
+
command: TAURI_COMMANDS.storage.testBackend,
|
|
1518
|
+
args: (p) => ({
|
|
1519
|
+
backendId: p.backendId
|
|
1520
|
+
})
|
|
1679
1521
|
},
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1522
|
+
// Storage Operations
|
|
1523
|
+
[HAEXTENSION_METHODS.remoteStorage.upload]: {
|
|
1524
|
+
command: TAURI_COMMANDS.storage.upload,
|
|
1525
|
+
args: (p) => ({
|
|
1526
|
+
backendId: p.backendId,
|
|
1527
|
+
key: p.key,
|
|
1528
|
+
data: p.data
|
|
1529
|
+
})
|
|
1683
1530
|
},
|
|
1684
|
-
[HAEXTENSION_METHODS.
|
|
1685
|
-
command: TAURI_COMMANDS.
|
|
1686
|
-
args: (p) => ({
|
|
1531
|
+
[HAEXTENSION_METHODS.remoteStorage.download]: {
|
|
1532
|
+
command: TAURI_COMMANDS.storage.download,
|
|
1533
|
+
args: (p) => ({
|
|
1534
|
+
backendId: p.backendId,
|
|
1535
|
+
key: p.key
|
|
1536
|
+
})
|
|
1687
1537
|
},
|
|
1688
|
-
[HAEXTENSION_METHODS.
|
|
1689
|
-
command: TAURI_COMMANDS.
|
|
1690
|
-
args: (p) => ({
|
|
1538
|
+
[HAEXTENSION_METHODS.remoteStorage.delete]: {
|
|
1539
|
+
command: TAURI_COMMANDS.storage.delete,
|
|
1540
|
+
args: (p) => ({
|
|
1541
|
+
backendId: p.backendId,
|
|
1542
|
+
key: p.key
|
|
1543
|
+
})
|
|
1691
1544
|
},
|
|
1692
|
-
[HAEXTENSION_METHODS.
|
|
1693
|
-
command: TAURI_COMMANDS.
|
|
1694
|
-
args: () => ({
|
|
1545
|
+
[HAEXTENSION_METHODS.remoteStorage.list]: {
|
|
1546
|
+
command: TAURI_COMMANDS.storage.list,
|
|
1547
|
+
args: (p) => ({
|
|
1548
|
+
backendId: p.backendId,
|
|
1549
|
+
prefix: p.prefix
|
|
1550
|
+
})
|
|
1695
1551
|
}
|
|
1696
1552
|
};
|
|
1697
1553
|
|
|
@@ -1702,7 +1558,7 @@ var allHandlers = {
|
|
|
1702
1558
|
...webHandlers,
|
|
1703
1559
|
...filesystemHandlers,
|
|
1704
1560
|
...externalHandlers,
|
|
1705
|
-
...
|
|
1561
|
+
...remoteStorageHandlers
|
|
1706
1562
|
};
|
|
1707
1563
|
|
|
1708
1564
|
// src/client/transport.ts
|