@haex-space/vault-sdk 2.5.30 → 2.5.33

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.
@@ -102,7 +102,8 @@ var HAEXTENSION_METHODS = {
102
102
  // Conflict Resolution
103
103
  resolveConflict: "haextension:filesystem:sync:resolve-conflict",
104
104
  // UI Helpers
105
- selectFolder: "haextension:filesystem:sync:select-folder"
105
+ selectFolder: "haextension:filesystem:sync:select-folder",
106
+ scanLocal: "haextension:filesystem:sync:scan-local"
106
107
  }
107
108
  },
108
109
  storage: {
@@ -281,6 +282,16 @@ var FileSyncAPI = class {
281
282
  options
282
283
  );
283
284
  }
285
+ /**
286
+ * Scan local files in a sync rule folder
287
+ * Returns unencrypted local files for display in the UI
288
+ */
289
+ async scanLocalAsync(options) {
290
+ return this.client.request(
291
+ HAEXTENSION_METHODS.filesystem.sync.scanLocal,
292
+ options
293
+ );
294
+ }
284
295
  /**
285
296
  * Get file info by ID
286
297
  */
@@ -1000,7 +1011,8 @@ var TAURI_COMMANDS = {
1000
1011
  // Conflict Resolution
1001
1012
  resolveConflict: "filesync_resolve_conflict",
1002
1013
  // UI Helpers
1003
- selectFolder: "filesync_select_folder"
1014
+ selectFolder: "filesync_select_folder",
1015
+ scanLocal: "filesync_scan_local"
1004
1016
  }
1005
1017
  };
1006
1018
 
@@ -1221,6 +1233,10 @@ var filesyncHandlers = {
1221
1233
  [HAEXTENSION_METHODS.filesystem.sync.selectFolder]: {
1222
1234
  command: TAURI_COMMANDS.filesync.selectFolder,
1223
1235
  args: () => ({})
1236
+ },
1237
+ [HAEXTENSION_METHODS.filesystem.sync.scanLocal]: {
1238
+ command: TAURI_COMMANDS.filesync.scanLocal,
1239
+ args: (p) => ({ request: p })
1224
1240
  }
1225
1241
  };
1226
1242