@haex-space/vault-sdk 2.5.30 → 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/index.mjs CHANGED
@@ -515,7 +515,8 @@ var HAEXTENSION_METHODS = {
515
515
  // Conflict Resolution
516
516
  resolveConflict: "haextension:filesystem:sync:resolve-conflict",
517
517
  // UI Helpers
518
- selectFolder: "haextension:filesystem:sync:select-folder"
518
+ selectFolder: "haextension:filesystem:sync:select-folder",
519
+ scanLocal: "haextension:filesystem:sync:scan-local"
519
520
  }
520
521
  },
521
522
  storage: {
@@ -714,6 +715,16 @@ var FileSyncAPI = class {
714
715
  options
715
716
  );
716
717
  }
718
+ /**
719
+ * Scan local files in a sync rule folder
720
+ * Returns unencrypted local files for display in the UI
721
+ */
722
+ async scanLocalAsync(options) {
723
+ return this.client.request(
724
+ HAEXTENSION_METHODS.filesystem.sync.scanLocal,
725
+ options
726
+ );
727
+ }
717
728
  /**
718
729
  * Get file info by ID
719
730
  */
@@ -1383,7 +1394,8 @@ var TAURI_COMMANDS = {
1383
1394
  // Conflict Resolution
1384
1395
  resolveConflict: "filesync_resolve_conflict",
1385
1396
  // UI Helpers
1386
- selectFolder: "filesync_select_folder"
1397
+ selectFolder: "filesync_select_folder",
1398
+ scanLocal: "filesync_scan_local"
1387
1399
  }
1388
1400
  };
1389
1401
 
@@ -1604,6 +1616,10 @@ var filesyncHandlers = {
1604
1616
  [HAEXTENSION_METHODS.filesystem.sync.selectFolder]: {
1605
1617
  command: TAURI_COMMANDS.filesync.selectFolder,
1606
1618
  args: () => ({})
1619
+ },
1620
+ [HAEXTENSION_METHODS.filesystem.sync.scanLocal]: {
1621
+ command: TAURI_COMMANDS.filesync.scanLocal,
1622
+ args: (p) => ({ request: p })
1607
1623
  }
1608
1624
  };
1609
1625