@haex-space/vault-sdk 2.5.29 → 2.5.32

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/react.mjs CHANGED
@@ -428,7 +428,8 @@ var HAEXTENSION_METHODS = {
428
428
  // Conflict Resolution
429
429
  resolveConflict: "haextension:filesystem:sync:resolve-conflict",
430
430
  // UI Helpers
431
- selectFolder: "haextension:filesystem:sync:select-folder"
431
+ selectFolder: "haextension:filesystem:sync:select-folder",
432
+ scanLocal: "haextension:filesystem:sync:scan-local"
432
433
  }
433
434
  },
434
435
  storage: {
@@ -607,6 +608,16 @@ var FileSyncAPI = class {
607
608
  options
608
609
  );
609
610
  }
611
+ /**
612
+ * Scan local files in a sync rule folder
613
+ * Returns unencrypted local files for display in the UI
614
+ */
615
+ async scanLocalAsync(options) {
616
+ return this.client.request(
617
+ HAEXTENSION_METHODS.filesystem.sync.scanLocal,
618
+ options
619
+ );
620
+ }
610
621
  /**
611
622
  * Get file info by ID
612
623
  */
@@ -1252,7 +1263,8 @@ var TAURI_COMMANDS = {
1252
1263
  // Conflict Resolution
1253
1264
  resolveConflict: "filesync_resolve_conflict",
1254
1265
  // UI Helpers
1255
- selectFolder: "filesync_select_folder"
1266
+ selectFolder: "filesync_select_folder",
1267
+ scanLocal: "filesync_scan_local"
1256
1268
  }
1257
1269
  };
1258
1270
 
@@ -1473,6 +1485,10 @@ var filesyncHandlers = {
1473
1485
  [HAEXTENSION_METHODS.filesystem.sync.selectFolder]: {
1474
1486
  command: TAURI_COMMANDS.filesync.selectFolder,
1475
1487
  args: () => ({})
1488
+ },
1489
+ [HAEXTENSION_METHODS.filesystem.sync.scanLocal]: {
1490
+ command: TAURI_COMMANDS.filesync.scanLocal,
1491
+ args: (p) => ({ request: p })
1476
1492
  }
1477
1493
  };
1478
1494