@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.
@@ -1,6 +1,6 @@
1
1
  import * as nuxt_app from 'nuxt/app';
2
2
  import { ShallowRef } from 'vue';
3
- import { H as HaexVaultSdk } from '../client-1LC_-rtY.mjs';
3
+ import { H as HaexVaultSdk } from '../client-BkN93lDI.mjs';
4
4
  import { A as ApplicationContext } from '../types-DiXJ5SF6.mjs';
5
5
  import 'drizzle-orm/sqlite-proxy';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import * as nuxt_app from 'nuxt/app';
2
2
  import { ShallowRef } from 'vue';
3
- import { H as HaexVaultSdk } from '../client-LNxaanOT.js';
3
+ import { H as HaexVaultSdk } from '../client-t6HbiM76.js';
4
4
  import { A as ApplicationContext } from '../types-DiXJ5SF6.js';
5
5
  import 'drizzle-orm/sqlite-proxy';
6
6
 
@@ -104,7 +104,8 @@ var HAEXTENSION_METHODS = {
104
104
  // Conflict Resolution
105
105
  resolveConflict: "haextension:filesystem:sync:resolve-conflict",
106
106
  // UI Helpers
107
- selectFolder: "haextension:filesystem:sync:select-folder"
107
+ selectFolder: "haextension:filesystem:sync:select-folder",
108
+ scanLocal: "haextension:filesystem:sync:scan-local"
108
109
  }
109
110
  },
110
111
  storage: {
@@ -283,6 +284,16 @@ var FileSyncAPI = class {
283
284
  options
284
285
  );
285
286
  }
287
+ /**
288
+ * Scan local files in a sync rule folder
289
+ * Returns unencrypted local files for display in the UI
290
+ */
291
+ async scanLocalAsync(options) {
292
+ return this.client.request(
293
+ HAEXTENSION_METHODS.filesystem.sync.scanLocal,
294
+ options
295
+ );
296
+ }
286
297
  /**
287
298
  * Get file info by ID
288
299
  */
@@ -1002,7 +1013,8 @@ var TAURI_COMMANDS = {
1002
1013
  // Conflict Resolution
1003
1014
  resolveConflict: "filesync_resolve_conflict",
1004
1015
  // UI Helpers
1005
- selectFolder: "filesync_select_folder"
1016
+ selectFolder: "filesync_select_folder",
1017
+ scanLocal: "filesync_scan_local"
1006
1018
  }
1007
1019
  };
1008
1020
 
@@ -1223,6 +1235,10 @@ var filesyncHandlers = {
1223
1235
  [HAEXTENSION_METHODS.filesystem.sync.selectFolder]: {
1224
1236
  command: TAURI_COMMANDS.filesync.selectFolder,
1225
1237
  args: () => ({})
1238
+ },
1239
+ [HAEXTENSION_METHODS.filesystem.sync.scanLocal]: {
1240
+ command: TAURI_COMMANDS.filesync.scanLocal,
1241
+ args: (p) => ({ request: p })
1226
1242
  }
1227
1243
  };
1228
1244