@haex-space/vault-sdk 2.7.0 → 2.7.1

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.
@@ -335,6 +335,23 @@ interface SelectFileOptions {
335
335
  /** Allow multiple file selection */
336
336
  multiple?: boolean;
337
337
  }
338
+ /**
339
+ * Well-known system directory identifiers.
340
+ * Resolved to platform-specific paths by haex-vault via Tauri's PathResolver.
341
+ */
342
+ declare enum KnownPath {
343
+ Home = "home",
344
+ Pictures = "pictures",
345
+ Downloads = "downloads",
346
+ Documents = "documents",
347
+ Desktop = "desktop",
348
+ Videos = "videos"
349
+ }
350
+ /**
351
+ * Map of known path names to their resolved absolute paths.
352
+ * Not all paths may be available on every platform.
353
+ */
354
+ type KnownPaths = Partial<Record<KnownPath, string>>;
338
355
  declare class FilesystemAPI {
339
356
  private client;
340
357
  constructor(client: HaexVaultSdk);
@@ -425,6 +442,12 @@ declare class FilesystemAPI {
425
442
  * @param to Destination path
426
443
  */
427
444
  copy(from: string, to: string): Promise<void>;
445
+ /**
446
+ * Get well-known system directory paths (home, pictures, downloads, etc.)
447
+ * These paths are resolved via Tauri's PathResolver and are platform-aware.
448
+ * @returns Map of known path names to their absolute paths
449
+ */
450
+ knownPaths(): Promise<KnownPaths>;
428
451
  /**
429
452
  * Start watching a directory for file changes
430
453
  * When files change, the "filesync:file-changed" event is emitted
@@ -1259,4 +1282,4 @@ declare class HaexVaultSdk {
1259
1282
  private log;
1260
1283
  }
1261
1284
 
1262
- export { type SpaceMemberInfo as $, type AuthorizedClient as A, type BlockedClient as B, type RequestedExtension as C, DatabaseAPI as D, type ExternalAuthDecision as E, type FileStat as F, type SelectFileOptions as G, HaexVaultSdk as H, type SelectFolderOptions as I, type ServerInfo as J, type ServerStatus as K, LOCALSEND_EVENTS as L, type SessionAuthorization as M, type SharedSpace as N, ShellAPI as O, type PendingAuthorization as P, type ShellCreateOptions as Q, RemoteStorageAPI as R, StorageAPI as S, type ShellCreateResponse as T, type UpdateBackendRequest as U, type ShellExitEvent as V, type ShellOutputEvent as W, type SpaceAccessTokenInfo as X, type SpaceAssignment as Y, type SpaceInvite as Z, type SpaceKeyGrantInfo as _, type SpaceRole as a, SpaceRoles as a0, SpacesAPI as a1, type SyncBackendInfo as a2, type TransferDirection as a3, type TransferProgress as a4, type TransferState as a5, WebAPI as a6, canExternalClientSendRequests as a7, isExternalClientConnected as a8, type DecryptedSpace as b, type Device as c, type DeviceInfo as d, type DeviceType as e, type DirEntry as f, type ExternalConnection as g, ExternalConnectionErrorCode as h, ExternalConnectionState as i, type ExternalRequest as j, type ExternalRequestEvent as k, type ExternalRequestHandler as l, type ExternalRequestPayload as m, type ExternalResponse as n, FilesystemAPI as o, LocalSendAPI as p, type LocalSendEvent as q, type FileInfo as r, type LocalSendSettings as s, type PendingTransfer as t, PermissionsAPI as u, type AddBackendRequest as v, type S3Config as w, type S3PublicConfig as x, type StorageBackendInfo as y, type StorageObjectInfo as z };
1285
+ export { type SpaceInvite as $, type AuthorizedClient as A, type BlockedClient as B, type StorageObjectInfo as C, DatabaseAPI as D, type ExternalAuthDecision as E, type FileStat as F, type RequestedExtension as G, HaexVaultSdk as H, type SelectFileOptions as I, type SelectFolderOptions as J, KnownPath as K, LOCALSEND_EVENTS as L, type ServerInfo as M, type ServerStatus as N, type SessionAuthorization as O, type PendingAuthorization as P, type SharedSpace as Q, RemoteStorageAPI as R, StorageAPI as S, ShellAPI as T, type UpdateBackendRequest as U, type ShellCreateOptions as V, type ShellCreateResponse as W, type ShellExitEvent as X, type ShellOutputEvent as Y, type SpaceAccessTokenInfo as Z, type SpaceAssignment as _, type SpaceRole as a, type SpaceKeyGrantInfo as a0, type SpaceMemberInfo as a1, SpaceRoles as a2, SpacesAPI as a3, type SyncBackendInfo as a4, type TransferDirection as a5, type TransferProgress as a6, type TransferState as a7, WebAPI as a8, canExternalClientSendRequests as a9, isExternalClientConnected as aa, type DecryptedSpace as b, type Device as c, type DeviceInfo as d, type DeviceType as e, type DirEntry as f, type ExternalConnection as g, ExternalConnectionErrorCode as h, ExternalConnectionState as i, type ExternalRequest as j, type ExternalRequestEvent as k, type ExternalRequestHandler as l, type ExternalRequestPayload as m, type ExternalResponse as n, FilesystemAPI as o, type KnownPaths as p, LocalSendAPI as q, type LocalSendEvent as r, type FileInfo as s, type LocalSendSettings as t, type PendingTransfer as u, PermissionsAPI as v, type AddBackendRequest as w, type S3Config as x, type S3PublicConfig as y, type StorageBackendInfo as z };
@@ -335,6 +335,23 @@ interface SelectFileOptions {
335
335
  /** Allow multiple file selection */
336
336
  multiple?: boolean;
337
337
  }
338
+ /**
339
+ * Well-known system directory identifiers.
340
+ * Resolved to platform-specific paths by haex-vault via Tauri's PathResolver.
341
+ */
342
+ declare enum KnownPath {
343
+ Home = "home",
344
+ Pictures = "pictures",
345
+ Downloads = "downloads",
346
+ Documents = "documents",
347
+ Desktop = "desktop",
348
+ Videos = "videos"
349
+ }
350
+ /**
351
+ * Map of known path names to their resolved absolute paths.
352
+ * Not all paths may be available on every platform.
353
+ */
354
+ type KnownPaths = Partial<Record<KnownPath, string>>;
338
355
  declare class FilesystemAPI {
339
356
  private client;
340
357
  constructor(client: HaexVaultSdk);
@@ -425,6 +442,12 @@ declare class FilesystemAPI {
425
442
  * @param to Destination path
426
443
  */
427
444
  copy(from: string, to: string): Promise<void>;
445
+ /**
446
+ * Get well-known system directory paths (home, pictures, downloads, etc.)
447
+ * These paths are resolved via Tauri's PathResolver and are platform-aware.
448
+ * @returns Map of known path names to their absolute paths
449
+ */
450
+ knownPaths(): Promise<KnownPaths>;
428
451
  /**
429
452
  * Start watching a directory for file changes
430
453
  * When files change, the "filesync:file-changed" event is emitted
@@ -1259,4 +1282,4 @@ declare class HaexVaultSdk {
1259
1282
  private log;
1260
1283
  }
1261
1284
 
1262
- export { type SpaceMemberInfo as $, type AuthorizedClient as A, type BlockedClient as B, type RequestedExtension as C, DatabaseAPI as D, type ExternalAuthDecision as E, type FileStat as F, type SelectFileOptions as G, HaexVaultSdk as H, type SelectFolderOptions as I, type ServerInfo as J, type ServerStatus as K, LOCALSEND_EVENTS as L, type SessionAuthorization as M, type SharedSpace as N, ShellAPI as O, type PendingAuthorization as P, type ShellCreateOptions as Q, RemoteStorageAPI as R, StorageAPI as S, type ShellCreateResponse as T, type UpdateBackendRequest as U, type ShellExitEvent as V, type ShellOutputEvent as W, type SpaceAccessTokenInfo as X, type SpaceAssignment as Y, type SpaceInvite as Z, type SpaceKeyGrantInfo as _, type SpaceRole as a, SpaceRoles as a0, SpacesAPI as a1, type SyncBackendInfo as a2, type TransferDirection as a3, type TransferProgress as a4, type TransferState as a5, WebAPI as a6, canExternalClientSendRequests as a7, isExternalClientConnected as a8, type DecryptedSpace as b, type Device as c, type DeviceInfo as d, type DeviceType as e, type DirEntry as f, type ExternalConnection as g, ExternalConnectionErrorCode as h, ExternalConnectionState as i, type ExternalRequest as j, type ExternalRequestEvent as k, type ExternalRequestHandler as l, type ExternalRequestPayload as m, type ExternalResponse as n, FilesystemAPI as o, LocalSendAPI as p, type LocalSendEvent as q, type FileInfo as r, type LocalSendSettings as s, type PendingTransfer as t, PermissionsAPI as u, type AddBackendRequest as v, type S3Config as w, type S3PublicConfig as x, type StorageBackendInfo as y, type StorageObjectInfo as z };
1285
+ export { type SpaceInvite as $, type AuthorizedClient as A, type BlockedClient as B, type StorageObjectInfo as C, DatabaseAPI as D, type ExternalAuthDecision as E, type FileStat as F, type RequestedExtension as G, HaexVaultSdk as H, type SelectFileOptions as I, type SelectFolderOptions as J, KnownPath as K, LOCALSEND_EVENTS as L, type ServerInfo as M, type ServerStatus as N, type SessionAuthorization as O, type PendingAuthorization as P, type SharedSpace as Q, RemoteStorageAPI as R, StorageAPI as S, ShellAPI as T, type UpdateBackendRequest as U, type ShellCreateOptions as V, type ShellCreateResponse as W, type ShellExitEvent as X, type ShellOutputEvent as Y, type SpaceAccessTokenInfo as Z, type SpaceAssignment as _, type SpaceRole as a, type SpaceKeyGrantInfo as a0, type SpaceMemberInfo as a1, SpaceRoles as a2, SpacesAPI as a3, type SyncBackendInfo as a4, type TransferDirection as a5, type TransferProgress as a6, type TransferState as a7, WebAPI as a8, canExternalClientSendRequests as a9, isExternalClientConnected as aa, type DecryptedSpace as b, type Device as c, type DeviceInfo as d, type DeviceType as e, type DirEntry as f, type ExternalConnection as g, ExternalConnectionErrorCode as h, ExternalConnectionState as i, type ExternalRequest as j, type ExternalRequestEvent as k, type ExternalRequestHandler as l, type ExternalRequestPayload as m, type ExternalResponse as n, FilesystemAPI as o, type KnownPaths as p, LocalSendAPI as q, type LocalSendEvent as r, type FileInfo as s, type LocalSendSettings as t, type PendingTransfer as u, PermissionsAPI as v, type AddBackendRequest as w, type S3Config as x, type S3PublicConfig as y, type StorageBackendInfo as z };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as SpaceRole, H as HaexVaultSdk } from './client-COvneDz1.mjs';
2
- export { A as AuthorizedClient, B as BlockedClient, D as DatabaseAPI, b as DecryptedSpace, c as Device, d as DeviceInfo, e as DeviceType, f as DirEntry, E as ExternalAuthDecision, g as ExternalConnection, h as ExternalConnectionErrorCode, i as ExternalConnectionState, j as ExternalRequest, k as ExternalRequestEvent, l as ExternalRequestHandler, m as ExternalRequestPayload, n as ExternalResponse, F as FileStat, o as FilesystemAPI, L as LOCALSEND_EVENTS, p as LocalSendAPI, q as LocalSendEvent, r as LocalSendFileInfo, s as LocalSendSettings, P as PendingAuthorization, t as PendingTransfer, u as PermissionsAPI, v as RemoteAddBackendRequest, w as RemoteS3Config, x as RemoteS3PublicConfig, R as RemoteStorageAPI, y as RemoteStorageBackendInfo, z as RemoteStorageObjectInfo, U as RemoteUpdateBackendRequest, C as RequestedExtension, G as SelectFileOptions, I as SelectFolderOptions, J as ServerInfo, K as ServerStatus, M as SessionAuthorization, N as SharedSpace, O as ShellAPI, Q as ShellCreateOptions, T as ShellCreateResponse, V as ShellExitEvent, W as ShellOutputEvent, X as SpaceAccessTokenInfo, Y as SpaceAssignment, Z as SpaceInvite, _ as SpaceKeyGrantInfo, $ as SpaceMemberInfo, a0 as SpaceRoles, a1 as SpacesAPI, a2 as SyncBackendInfo, a3 as TransferDirection, a4 as TransferProgress, a5 as TransferState, a6 as WebAPI, a7 as canExternalClientSendRequests, a8 as isExternalClientConnected } from './client-COvneDz1.mjs';
1
+ import { a as SpaceRole, H as HaexVaultSdk } from './client-BUsw25aA.mjs';
2
+ export { A as AuthorizedClient, B as BlockedClient, D as DatabaseAPI, b as DecryptedSpace, c as Device, d as DeviceInfo, e as DeviceType, f as DirEntry, E as ExternalAuthDecision, g as ExternalConnection, h as ExternalConnectionErrorCode, i as ExternalConnectionState, j as ExternalRequest, k as ExternalRequestEvent, l as ExternalRequestHandler, m as ExternalRequestPayload, n as ExternalResponse, F as FileStat, o as FilesystemAPI, K as KnownPath, p as KnownPaths, L as LOCALSEND_EVENTS, q as LocalSendAPI, r as LocalSendEvent, s as LocalSendFileInfo, t as LocalSendSettings, P as PendingAuthorization, u as PendingTransfer, v as PermissionsAPI, w as RemoteAddBackendRequest, x as RemoteS3Config, y as RemoteS3PublicConfig, R as RemoteStorageAPI, z as RemoteStorageBackendInfo, C as RemoteStorageObjectInfo, U as RemoteUpdateBackendRequest, G as RequestedExtension, I as SelectFileOptions, J as SelectFolderOptions, M as ServerInfo, N as ServerStatus, O as SessionAuthorization, Q as SharedSpace, T as ShellAPI, V as ShellCreateOptions, W as ShellCreateResponse, X as ShellExitEvent, Y as ShellOutputEvent, Z as SpaceAccessTokenInfo, _ as SpaceAssignment, $ as SpaceInvite, a0 as SpaceKeyGrantInfo, a1 as SpaceMemberInfo, a2 as SpaceRoles, a3 as SpacesAPI, a4 as SyncBackendInfo, a5 as TransferDirection, a6 as TransferProgress, a7 as TransferState, a8 as WebAPI, a9 as canExternalClientSendRequests, aa as isExternalClientConnected } from './client-BUsw25aA.mjs';
3
3
  import { E as ExtensionManifest, h as SignedClaimPresentation, H as HaexHubConfig } from './types-DmCSegdY.mjs';
4
4
  export { A as ApplicationContext, C as ClaimRequirement, i as ContextChangedEvent, j as DEFAULT_TIMEOUT, k as DatabaseColumnInfo, l as DatabaseExecuteParams, m as DatabasePermission, g as DatabasePermissionRequest, n as DatabaseQueryParams, D as DatabaseQueryResult, o as DatabaseTableInfo, c as EXTERNAL_EVENTS, p as ErrorCode, f as EventCallback, a as ExtensionInfo, q as ExtensionRuntimeMode, r as ExternalEvent, F as FileChangeEvent, s as FileChangePayload, t as FileChangeType, u as FilteredSyncTablesResult, v as HAEXTENSION_EVENTS, b as HaexHubEvent, w as HaexHubRequest, x as HaexHubResponse, y as HaexVaultSdkError, z as HaextensionEvent, I as IdentityClaim, B as ManifestI18nEntry, G as PermissionDeniedError, J as PermissionErrorBase, K as PermissionErrorCode, L as PermissionPromptError, P as PermissionResponse, N as PermissionStatus, O as SHELL_EVENTS, Q as SearchQuery, R as SearchRequestEvent, S as SearchResult, T as ShellEvent, U as SyncTablesUpdatedEvent, V as TABLE_SEPARATOR, W as WebRequestOptions, e as WebResponse, X as getTableName, Y as isPermissionDeniedError, Z as isPermissionError, _ as isPermissionPromptError } from './types-DmCSegdY.mjs';
5
5
  export { H as HaextensionConfig } from './config-D_HXjsEV.mjs';
@@ -351,6 +351,8 @@ declare const FILESYSTEM_COMMANDS: {
351
351
  readonly rename: "extension_filesystem_rename";
352
352
  /** Copy file or directory */
353
353
  readonly copy: "extension_filesystem_copy";
354
+ /** Get well-known system directory paths */
355
+ readonly knownPaths: "extension_filesystem_known_paths";
354
356
  /** Start watching a directory for changes */
355
357
  readonly watch: "extension_filesystem_watch";
356
358
  /** Stop watching a directory */
@@ -607,6 +609,7 @@ declare const TAURI_COMMANDS: {
607
609
  readonly selectFile: "extension_filesystem_select_file";
608
610
  readonly rename: "extension_filesystem_rename";
609
611
  readonly copy: "extension_filesystem_copy";
612
+ readonly knownPaths: "extension_filesystem_known_paths";
610
613
  readonly watch: "extension_filesystem_watch";
611
614
  readonly unwatch: "extension_filesystem_unwatch";
612
615
  readonly isWatching: "extension_filesystem_is_watching";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as SpaceRole, H as HaexVaultSdk } from './client-DQbCPz57.js';
2
- export { A as AuthorizedClient, B as BlockedClient, D as DatabaseAPI, b as DecryptedSpace, c as Device, d as DeviceInfo, e as DeviceType, f as DirEntry, E as ExternalAuthDecision, g as ExternalConnection, h as ExternalConnectionErrorCode, i as ExternalConnectionState, j as ExternalRequest, k as ExternalRequestEvent, l as ExternalRequestHandler, m as ExternalRequestPayload, n as ExternalResponse, F as FileStat, o as FilesystemAPI, L as LOCALSEND_EVENTS, p as LocalSendAPI, q as LocalSendEvent, r as LocalSendFileInfo, s as LocalSendSettings, P as PendingAuthorization, t as PendingTransfer, u as PermissionsAPI, v as RemoteAddBackendRequest, w as RemoteS3Config, x as RemoteS3PublicConfig, R as RemoteStorageAPI, y as RemoteStorageBackendInfo, z as RemoteStorageObjectInfo, U as RemoteUpdateBackendRequest, C as RequestedExtension, G as SelectFileOptions, I as SelectFolderOptions, J as ServerInfo, K as ServerStatus, M as SessionAuthorization, N as SharedSpace, O as ShellAPI, Q as ShellCreateOptions, T as ShellCreateResponse, V as ShellExitEvent, W as ShellOutputEvent, X as SpaceAccessTokenInfo, Y as SpaceAssignment, Z as SpaceInvite, _ as SpaceKeyGrantInfo, $ as SpaceMemberInfo, a0 as SpaceRoles, a1 as SpacesAPI, a2 as SyncBackendInfo, a3 as TransferDirection, a4 as TransferProgress, a5 as TransferState, a6 as WebAPI, a7 as canExternalClientSendRequests, a8 as isExternalClientConnected } from './client-DQbCPz57.js';
1
+ import { a as SpaceRole, H as HaexVaultSdk } from './client-3B1iWut9.js';
2
+ export { A as AuthorizedClient, B as BlockedClient, D as DatabaseAPI, b as DecryptedSpace, c as Device, d as DeviceInfo, e as DeviceType, f as DirEntry, E as ExternalAuthDecision, g as ExternalConnection, h as ExternalConnectionErrorCode, i as ExternalConnectionState, j as ExternalRequest, k as ExternalRequestEvent, l as ExternalRequestHandler, m as ExternalRequestPayload, n as ExternalResponse, F as FileStat, o as FilesystemAPI, K as KnownPath, p as KnownPaths, L as LOCALSEND_EVENTS, q as LocalSendAPI, r as LocalSendEvent, s as LocalSendFileInfo, t as LocalSendSettings, P as PendingAuthorization, u as PendingTransfer, v as PermissionsAPI, w as RemoteAddBackendRequest, x as RemoteS3Config, y as RemoteS3PublicConfig, R as RemoteStorageAPI, z as RemoteStorageBackendInfo, C as RemoteStorageObjectInfo, U as RemoteUpdateBackendRequest, G as RequestedExtension, I as SelectFileOptions, J as SelectFolderOptions, M as ServerInfo, N as ServerStatus, O as SessionAuthorization, Q as SharedSpace, T as ShellAPI, V as ShellCreateOptions, W as ShellCreateResponse, X as ShellExitEvent, Y as ShellOutputEvent, Z as SpaceAccessTokenInfo, _ as SpaceAssignment, $ as SpaceInvite, a0 as SpaceKeyGrantInfo, a1 as SpaceMemberInfo, a2 as SpaceRoles, a3 as SpacesAPI, a4 as SyncBackendInfo, a5 as TransferDirection, a6 as TransferProgress, a7 as TransferState, a8 as WebAPI, a9 as canExternalClientSendRequests, aa as isExternalClientConnected } from './client-3B1iWut9.js';
3
3
  import { E as ExtensionManifest, h as SignedClaimPresentation, H as HaexHubConfig } from './types-DmCSegdY.js';
4
4
  export { A as ApplicationContext, C as ClaimRequirement, i as ContextChangedEvent, j as DEFAULT_TIMEOUT, k as DatabaseColumnInfo, l as DatabaseExecuteParams, m as DatabasePermission, g as DatabasePermissionRequest, n as DatabaseQueryParams, D as DatabaseQueryResult, o as DatabaseTableInfo, c as EXTERNAL_EVENTS, p as ErrorCode, f as EventCallback, a as ExtensionInfo, q as ExtensionRuntimeMode, r as ExternalEvent, F as FileChangeEvent, s as FileChangePayload, t as FileChangeType, u as FilteredSyncTablesResult, v as HAEXTENSION_EVENTS, b as HaexHubEvent, w as HaexHubRequest, x as HaexHubResponse, y as HaexVaultSdkError, z as HaextensionEvent, I as IdentityClaim, B as ManifestI18nEntry, G as PermissionDeniedError, J as PermissionErrorBase, K as PermissionErrorCode, L as PermissionPromptError, P as PermissionResponse, N as PermissionStatus, O as SHELL_EVENTS, Q as SearchQuery, R as SearchRequestEvent, S as SearchResult, T as ShellEvent, U as SyncTablesUpdatedEvent, V as TABLE_SEPARATOR, W as WebRequestOptions, e as WebResponse, X as getTableName, Y as isPermissionDeniedError, Z as isPermissionError, _ as isPermissionPromptError } from './types-DmCSegdY.js';
5
5
  export { H as HaextensionConfig } from './config-D_HXjsEV.js';
@@ -351,6 +351,8 @@ declare const FILESYSTEM_COMMANDS: {
351
351
  readonly rename: "extension_filesystem_rename";
352
352
  /** Copy file or directory */
353
353
  readonly copy: "extension_filesystem_copy";
354
+ /** Get well-known system directory paths */
355
+ readonly knownPaths: "extension_filesystem_known_paths";
354
356
  /** Start watching a directory for changes */
355
357
  readonly watch: "extension_filesystem_watch";
356
358
  /** Stop watching a directory */
@@ -607,6 +609,7 @@ declare const TAURI_COMMANDS: {
607
609
  readonly selectFile: "extension_filesystem_select_file";
608
610
  readonly rename: "extension_filesystem_rename";
609
611
  readonly copy: "extension_filesystem_copy";
612
+ readonly knownPaths: "extension_filesystem_known_paths";
610
613
  readonly watch: "extension_filesystem_watch";
611
614
  readonly unwatch: "extension_filesystem_unwatch";
612
615
  readonly isWatching: "extension_filesystem_is_watching";
package/dist/index.js CHANGED
@@ -849,6 +849,8 @@ var FILESYSTEM_COMMANDS = {
849
849
  rename: "extension_filesystem_rename",
850
850
  /** Copy file or directory */
851
851
  copy: "extension_filesystem_copy",
852
+ /** Get well-known system directory paths */
853
+ knownPaths: "extension_filesystem_known_paths",
852
854
  // File watcher operations
853
855
  /** Start watching a directory for changes */
854
856
  watch: "extension_filesystem_watch",
@@ -1148,6 +1150,15 @@ var DatabaseAPI = class {
1148
1150
 
1149
1151
  // src/api/filesystem.ts
1150
1152
  init_vaultKey();
1153
+ var KnownPath = /* @__PURE__ */ ((KnownPath2) => {
1154
+ KnownPath2["Home"] = "home";
1155
+ KnownPath2["Pictures"] = "pictures";
1156
+ KnownPath2["Downloads"] = "downloads";
1157
+ KnownPath2["Documents"] = "documents";
1158
+ KnownPath2["Desktop"] = "desktop";
1159
+ KnownPath2["Videos"] = "videos";
1160
+ return KnownPath2;
1161
+ })(KnownPath || {});
1151
1162
  var FilesystemAPI = class {
1152
1163
  constructor(client) {
1153
1164
  this.client = client;
@@ -1331,6 +1342,19 @@ var FilesystemAPI = class {
1331
1342
  );
1332
1343
  }
1333
1344
  // ==========================================================================
1345
+ // Known Paths (System Directories)
1346
+ // ==========================================================================
1347
+ /**
1348
+ * Get well-known system directory paths (home, pictures, downloads, etc.)
1349
+ * These paths are resolved via Tauri's PathResolver and are platform-aware.
1350
+ * @returns Map of known path names to their absolute paths
1351
+ */
1352
+ async knownPaths() {
1353
+ return this.client.request(
1354
+ FILESYSTEM_COMMANDS.knownPaths
1355
+ );
1356
+ }
1357
+ // ==========================================================================
1334
1358
  // File Watcher Operations
1335
1359
  // ==========================================================================
1336
1360
  /**
@@ -3646,6 +3670,7 @@ exports.HAEXSPACE_MESSAGE_TYPES = HAEXSPACE_MESSAGE_TYPES;
3646
3670
  exports.HAEXTENSION_EVENTS = HAEXTENSION_EVENTS;
3647
3671
  exports.HaexVaultSdk = HaexVaultSdk;
3648
3672
  exports.HaexVaultSdkError = HaexVaultSdkError;
3673
+ exports.KnownPath = KnownPath;
3649
3674
  exports.LOCALSEND_EVENTS = LOCALSEND_EVENTS;
3650
3675
  exports.LocalSendAPI = LocalSendAPI;
3651
3676
  exports.PermissionErrorCode = PermissionErrorCode;