@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/svelte.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { H as HaexVaultSdk, S as StorageAPI } from './client-Bva_JMEm.mjs';
1
+ import { H as HaexVaultSdk, S as StorageAPI } from './client-jH1y-T2e.mjs';
2
2
  import * as drizzle_orm_sqlite_proxy from 'drizzle-orm/sqlite-proxy';
3
3
  import { Readable } from 'svelte/store';
4
- import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from './types-C4BTOGe5.mjs';
4
+ import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from './types-DiXJ5SF6.mjs';
5
5
 
6
6
  /**
7
7
  * Initialize the HaexVault SDK for Svelte
package/dist/svelte.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { H as HaexVaultSdk, S as StorageAPI } from './client-BUp2_Bf1.js';
1
+ import { H as HaexVaultSdk, S as StorageAPI } from './client-Crs2CqUM.js';
2
2
  import * as drizzle_orm_sqlite_proxy from 'drizzle-orm/sqlite-proxy';
3
3
  import { Readable } from 'svelte/store';
4
- import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from './types-C4BTOGe5.js';
4
+ import { H as HaexHubConfig, a as ExtensionInfo, A as ApplicationContext } from './types-DiXJ5SF6.js';
5
5
 
6
6
  /**
7
7
  * Initialize the HaexVault SDK for Svelte
package/dist/svelte.js CHANGED
@@ -430,7 +430,8 @@ var HAEXTENSION_METHODS = {
430
430
  // Conflict Resolution
431
431
  resolveConflict: "haextension:filesystem:sync:resolve-conflict",
432
432
  // UI Helpers
433
- selectFolder: "haextension:filesystem:sync:select-folder"
433
+ selectFolder: "haextension:filesystem:sync:select-folder",
434
+ scanLocal: "haextension:filesystem:sync:scan-local"
434
435
  }
435
436
  },
436
437
  storage: {
@@ -609,6 +610,16 @@ var FileSyncAPI = class {
609
610
  options
610
611
  );
611
612
  }
613
+ /**
614
+ * Scan local files in a sync rule folder
615
+ * Returns unencrypted local files for display in the UI
616
+ */
617
+ async scanLocalAsync(options) {
618
+ return this.client.request(
619
+ HAEXTENSION_METHODS.filesystem.sync.scanLocal,
620
+ options
621
+ );
622
+ }
612
623
  /**
613
624
  * Get file info by ID
614
625
  */
@@ -1254,7 +1265,8 @@ var TAURI_COMMANDS = {
1254
1265
  // Conflict Resolution
1255
1266
  resolveConflict: "filesync_resolve_conflict",
1256
1267
  // UI Helpers
1257
- selectFolder: "filesync_select_folder"
1268
+ selectFolder: "filesync_select_folder",
1269
+ scanLocal: "filesync_scan_local"
1258
1270
  }
1259
1271
  };
1260
1272
 
@@ -1475,6 +1487,10 @@ var filesyncHandlers = {
1475
1487
  [HAEXTENSION_METHODS.filesystem.sync.selectFolder]: {
1476
1488
  command: TAURI_COMMANDS.filesync.selectFolder,
1477
1489
  args: () => ({})
1490
+ },
1491
+ [HAEXTENSION_METHODS.filesystem.sync.scanLocal]: {
1492
+ command: TAURI_COMMANDS.filesync.scanLocal,
1493
+ args: (p) => ({ request: p })
1478
1494
  }
1479
1495
  };
1480
1496