@haex-space/vault-sdk 2.5.37 → 2.5.40

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.
@@ -214,6 +214,96 @@ interface DownloadFileOptions {
214
214
  fileId: string;
215
215
  localPath: string;
216
216
  }
217
+ /** Queue operation type */
218
+ type QueueOperation = 'upload' | 'download';
219
+ /** Queue entry status */
220
+ type QueueStatus = 'pending' | 'inProgress' | 'completed' | 'failed';
221
+ /** Queue operation constants */
222
+ declare const QUEUE_OPERATION: {
223
+ UPLOAD: "upload";
224
+ DOWNLOAD: "download";
225
+ };
226
+ /** Queue status constants */
227
+ declare const QUEUE_STATUS: {
228
+ PENDING: "pending";
229
+ IN_PROGRESS: "inProgress";
230
+ COMPLETED: "completed";
231
+ FAILED: "failed";
232
+ };
233
+ /** A sync queue entry representing a pending or in-progress file operation */
234
+ interface SyncQueueEntry {
235
+ id: string;
236
+ /** Device ID this entry belongs to */
237
+ deviceId: string;
238
+ /** Sync rule ID */
239
+ ruleId: string;
240
+ /** Full local path */
241
+ localPath: string;
242
+ /** Relative path from sync root (used as remote path) */
243
+ relativePath: string;
244
+ /** Operation type (upload/download) */
245
+ operation: QueueOperation;
246
+ /** Current status */
247
+ status: QueueStatus;
248
+ /** Priority (lower = higher priority) */
249
+ priority: number;
250
+ /** File size in bytes */
251
+ fileSize: number;
252
+ /** Error message if failed */
253
+ errorMessage: string | null;
254
+ /** Number of retry attempts */
255
+ retryCount: number;
256
+ /** When the entry was created */
257
+ createdAt: string;
258
+ /** When processing started */
259
+ startedAt: string | null;
260
+ /** When processing completed */
261
+ completedAt: string | null;
262
+ }
263
+ /** Request to add files to the sync queue */
264
+ interface AddToQueueOptions {
265
+ /** Sync rule ID */
266
+ ruleId: string;
267
+ /** Files to add */
268
+ files: QueueFileEntry[];
269
+ /** Operation type */
270
+ operation: QueueOperation;
271
+ /** Priority (optional, default 100) */
272
+ priority?: number;
273
+ }
274
+ /** A file entry for adding to the queue */
275
+ interface QueueFileEntry {
276
+ /** Full local path */
277
+ localPath: string;
278
+ /** Relative path from sync root */
279
+ relativePath: string;
280
+ /** File size in bytes */
281
+ fileSize: number;
282
+ }
283
+ /** Request to get queue entries */
284
+ interface GetQueueOptions {
285
+ /** Filter by rule ID (optional) */
286
+ ruleId?: string;
287
+ /** Filter by status (optional) */
288
+ status?: QueueStatus;
289
+ /** Include completed entries (default: false) */
290
+ includeCompleted?: boolean;
291
+ }
292
+ /** Aggregated queue status */
293
+ interface QueueSummary {
294
+ /** Number of pending items */
295
+ pendingCount: number;
296
+ /** Number of in-progress items */
297
+ inProgressCount: number;
298
+ /** Number of completed items */
299
+ completedCount: number;
300
+ /** Number of failed items */
301
+ failedCount: number;
302
+ /** Total bytes pending (sum of file_size for pending items) */
303
+ pendingBytes: number;
304
+ /** Currently processing entry (if any) */
305
+ currentEntry: SyncQueueEntry | null;
306
+ }
217
307
  /**
218
308
  * File Sync API for E2E encrypted file synchronization
219
309
  *
@@ -315,6 +405,46 @@ declare class FileSyncAPI {
315
405
  * Open a folder selection dialog
316
406
  */
317
407
  selectFolderAsync(): Promise<string | null>;
408
+ /**
409
+ * Add files to the sync queue
410
+ */
411
+ addToQueueAsync(options: AddToQueueOptions): Promise<SyncQueueEntry[]>;
412
+ /**
413
+ * Get queue entries for the current device
414
+ */
415
+ getQueueAsync(options?: GetQueueOptions): Promise<SyncQueueEntry[]>;
416
+ /**
417
+ * Get aggregated queue summary for the current device
418
+ */
419
+ getQueueSummaryAsync(): Promise<QueueSummary>;
420
+ /**
421
+ * Mark a queue entry as started (in_progress)
422
+ */
423
+ startQueueEntryAsync(entryId: string): Promise<void>;
424
+ /**
425
+ * Mark a queue entry as completed
426
+ */
427
+ completeQueueEntryAsync(entryId: string): Promise<void>;
428
+ /**
429
+ * Mark a queue entry as failed
430
+ */
431
+ failQueueEntryAsync(entryId: string, errorMessage: string): Promise<void>;
432
+ /**
433
+ * Retry all failed queue entries (reset to pending)
434
+ */
435
+ retryFailedQueueAsync(): Promise<void>;
436
+ /**
437
+ * Remove a queue entry
438
+ */
439
+ removeQueueEntryAsync(entryId: string): Promise<void>;
440
+ /**
441
+ * Clear all queue entries for a sync rule
442
+ */
443
+ clearQueueAsync(ruleId: string): Promise<void>;
444
+ /**
445
+ * Reset in_progress entries to pending (for recovery after crash)
446
+ */
447
+ recoverQueueAsync(): Promise<void>;
318
448
  }
319
449
 
320
450
  interface SaveFileOptions {
@@ -531,4 +661,4 @@ declare class HaexVaultSdk {
531
661
  private log;
532
662
  }
533
663
 
534
- export { type AddBackendOptions as A, type BackendConfig as B, type ConflictStrategy as C, DatabaseAPI as D, FilesystemAPI as F, HaexVaultSdk as H, type ListFilesOptions as L, PermissionsAPI as P, StorageAPI as S, type UpdateSyncRuleOptions as U, WebAPI as W, FileSyncAPI as a, type FileSpace as b, type FileInfo as c, type FileSyncState as d, type StorageBackendInfo as e, type StorageBackendType as f, type S3BackendConfig as g, type SyncRule as h, type SyncDirection as i, type SyncStatus as j, type SyncError as k, type SyncProgress as l, type CreateSpaceOptions as m, type AddSyncRuleOptions as n, type ScanLocalOptions as o, type UploadFileOptions as p, type DownloadFileOptions as q, type LocalFileInfo as r, FILE_SYNC_STATE as s, SYNC_DIRECTION as t, STORAGE_BACKEND_TYPE as u, CONFLICT_STRATEGY as v };
664
+ export { type AddBackendOptions as A, type BackendConfig as B, type ConflictStrategy as C, DatabaseAPI as D, CONFLICT_STRATEGY as E, FilesystemAPI as F, type GetQueueOptions as G, HaexVaultSdk as H, QUEUE_OPERATION as I, QUEUE_STATUS as J, type ListFilesOptions as L, PermissionsAPI as P, type QueueOperation as Q, StorageAPI as S, type UpdateSyncRuleOptions as U, WebAPI as W, FileSyncAPI as a, type FileSpace as b, type FileInfo as c, type FileSyncState as d, type StorageBackendInfo as e, type StorageBackendType as f, type S3BackendConfig as g, type SyncRule as h, type SyncDirection as i, type SyncStatus as j, type SyncError as k, type SyncProgress as l, type CreateSpaceOptions as m, type AddSyncRuleOptions as n, type ScanLocalOptions as o, type UploadFileOptions as p, type DownloadFileOptions as q, type LocalFileInfo as r, type QueueStatus as s, type SyncQueueEntry as t, type AddToQueueOptions as u, type QueueFileEntry as v, type QueueSummary as w, FILE_SYNC_STATE as x, SYNC_DIRECTION as y, STORAGE_BACKEND_TYPE as z };
@@ -214,6 +214,96 @@ interface DownloadFileOptions {
214
214
  fileId: string;
215
215
  localPath: string;
216
216
  }
217
+ /** Queue operation type */
218
+ type QueueOperation = 'upload' | 'download';
219
+ /** Queue entry status */
220
+ type QueueStatus = 'pending' | 'inProgress' | 'completed' | 'failed';
221
+ /** Queue operation constants */
222
+ declare const QUEUE_OPERATION: {
223
+ UPLOAD: "upload";
224
+ DOWNLOAD: "download";
225
+ };
226
+ /** Queue status constants */
227
+ declare const QUEUE_STATUS: {
228
+ PENDING: "pending";
229
+ IN_PROGRESS: "inProgress";
230
+ COMPLETED: "completed";
231
+ FAILED: "failed";
232
+ };
233
+ /** A sync queue entry representing a pending or in-progress file operation */
234
+ interface SyncQueueEntry {
235
+ id: string;
236
+ /** Device ID this entry belongs to */
237
+ deviceId: string;
238
+ /** Sync rule ID */
239
+ ruleId: string;
240
+ /** Full local path */
241
+ localPath: string;
242
+ /** Relative path from sync root (used as remote path) */
243
+ relativePath: string;
244
+ /** Operation type (upload/download) */
245
+ operation: QueueOperation;
246
+ /** Current status */
247
+ status: QueueStatus;
248
+ /** Priority (lower = higher priority) */
249
+ priority: number;
250
+ /** File size in bytes */
251
+ fileSize: number;
252
+ /** Error message if failed */
253
+ errorMessage: string | null;
254
+ /** Number of retry attempts */
255
+ retryCount: number;
256
+ /** When the entry was created */
257
+ createdAt: string;
258
+ /** When processing started */
259
+ startedAt: string | null;
260
+ /** When processing completed */
261
+ completedAt: string | null;
262
+ }
263
+ /** Request to add files to the sync queue */
264
+ interface AddToQueueOptions {
265
+ /** Sync rule ID */
266
+ ruleId: string;
267
+ /** Files to add */
268
+ files: QueueFileEntry[];
269
+ /** Operation type */
270
+ operation: QueueOperation;
271
+ /** Priority (optional, default 100) */
272
+ priority?: number;
273
+ }
274
+ /** A file entry for adding to the queue */
275
+ interface QueueFileEntry {
276
+ /** Full local path */
277
+ localPath: string;
278
+ /** Relative path from sync root */
279
+ relativePath: string;
280
+ /** File size in bytes */
281
+ fileSize: number;
282
+ }
283
+ /** Request to get queue entries */
284
+ interface GetQueueOptions {
285
+ /** Filter by rule ID (optional) */
286
+ ruleId?: string;
287
+ /** Filter by status (optional) */
288
+ status?: QueueStatus;
289
+ /** Include completed entries (default: false) */
290
+ includeCompleted?: boolean;
291
+ }
292
+ /** Aggregated queue status */
293
+ interface QueueSummary {
294
+ /** Number of pending items */
295
+ pendingCount: number;
296
+ /** Number of in-progress items */
297
+ inProgressCount: number;
298
+ /** Number of completed items */
299
+ completedCount: number;
300
+ /** Number of failed items */
301
+ failedCount: number;
302
+ /** Total bytes pending (sum of file_size for pending items) */
303
+ pendingBytes: number;
304
+ /** Currently processing entry (if any) */
305
+ currentEntry: SyncQueueEntry | null;
306
+ }
217
307
  /**
218
308
  * File Sync API for E2E encrypted file synchronization
219
309
  *
@@ -315,6 +405,46 @@ declare class FileSyncAPI {
315
405
  * Open a folder selection dialog
316
406
  */
317
407
  selectFolderAsync(): Promise<string | null>;
408
+ /**
409
+ * Add files to the sync queue
410
+ */
411
+ addToQueueAsync(options: AddToQueueOptions): Promise<SyncQueueEntry[]>;
412
+ /**
413
+ * Get queue entries for the current device
414
+ */
415
+ getQueueAsync(options?: GetQueueOptions): Promise<SyncQueueEntry[]>;
416
+ /**
417
+ * Get aggregated queue summary for the current device
418
+ */
419
+ getQueueSummaryAsync(): Promise<QueueSummary>;
420
+ /**
421
+ * Mark a queue entry as started (in_progress)
422
+ */
423
+ startQueueEntryAsync(entryId: string): Promise<void>;
424
+ /**
425
+ * Mark a queue entry as completed
426
+ */
427
+ completeQueueEntryAsync(entryId: string): Promise<void>;
428
+ /**
429
+ * Mark a queue entry as failed
430
+ */
431
+ failQueueEntryAsync(entryId: string, errorMessage: string): Promise<void>;
432
+ /**
433
+ * Retry all failed queue entries (reset to pending)
434
+ */
435
+ retryFailedQueueAsync(): Promise<void>;
436
+ /**
437
+ * Remove a queue entry
438
+ */
439
+ removeQueueEntryAsync(entryId: string): Promise<void>;
440
+ /**
441
+ * Clear all queue entries for a sync rule
442
+ */
443
+ clearQueueAsync(ruleId: string): Promise<void>;
444
+ /**
445
+ * Reset in_progress entries to pending (for recovery after crash)
446
+ */
447
+ recoverQueueAsync(): Promise<void>;
318
448
  }
319
449
 
320
450
  interface SaveFileOptions {
@@ -531,4 +661,4 @@ declare class HaexVaultSdk {
531
661
  private log;
532
662
  }
533
663
 
534
- export { type AddBackendOptions as A, type BackendConfig as B, type ConflictStrategy as C, DatabaseAPI as D, FilesystemAPI as F, HaexVaultSdk as H, type ListFilesOptions as L, PermissionsAPI as P, StorageAPI as S, type UpdateSyncRuleOptions as U, WebAPI as W, FileSyncAPI as a, type FileSpace as b, type FileInfo as c, type FileSyncState as d, type StorageBackendInfo as e, type StorageBackendType as f, type S3BackendConfig as g, type SyncRule as h, type SyncDirection as i, type SyncStatus as j, type SyncError as k, type SyncProgress as l, type CreateSpaceOptions as m, type AddSyncRuleOptions as n, type ScanLocalOptions as o, type UploadFileOptions as p, type DownloadFileOptions as q, type LocalFileInfo as r, FILE_SYNC_STATE as s, SYNC_DIRECTION as t, STORAGE_BACKEND_TYPE as u, CONFLICT_STRATEGY as v };
664
+ export { type AddBackendOptions as A, type BackendConfig as B, type ConflictStrategy as C, DatabaseAPI as D, CONFLICT_STRATEGY as E, FilesystemAPI as F, type GetQueueOptions as G, HaexVaultSdk as H, QUEUE_OPERATION as I, QUEUE_STATUS as J, type ListFilesOptions as L, PermissionsAPI as P, type QueueOperation as Q, StorageAPI as S, type UpdateSyncRuleOptions as U, WebAPI as W, FileSyncAPI as a, type FileSpace as b, type FileInfo as c, type FileSyncState as d, type StorageBackendInfo as e, type StorageBackendType as f, type S3BackendConfig as g, type SyncRule as h, type SyncDirection as i, type SyncStatus as j, type SyncError as k, type SyncProgress as l, type CreateSpaceOptions as m, type AddSyncRuleOptions as n, type ScanLocalOptions as o, type UploadFileOptions as p, type DownloadFileOptions as q, type LocalFileInfo as r, type QueueStatus as s, type SyncQueueEntry as t, type AddToQueueOptions as u, type QueueFileEntry as v, type QueueSummary as w, FILE_SYNC_STATE as x, SYNC_DIRECTION as y, STORAGE_BACKEND_TYPE as z };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as HaexVaultSdk } from './client-BF1XJY-3.mjs';
2
- export { A as AddBackendOptions, n as AddSyncRuleOptions, B as BackendConfig, v as CONFLICT_STRATEGY, C as ConflictStrategy, m as CreateSpaceOptions, D as DatabaseAPI, q as DownloadFileOptions, s as FILE_SYNC_STATE, c as FileInfo, b as FileSpace, a as FileSyncAPI, d as FileSyncState, F as FilesystemAPI, L as ListFilesOptions, r as LocalFileInfo, P as PermissionsAPI, g as S3BackendConfig, u as STORAGE_BACKEND_TYPE, t as SYNC_DIRECTION, o as ScanLocalOptions, e as StorageBackendInfo, f as StorageBackendType, i as SyncDirection, k as SyncError, l as SyncProgress, h as SyncRule, j as SyncStatus, U as UpdateSyncRuleOptions, p as UploadFileOptions, W as WebAPI } from './client-BF1XJY-3.mjs';
1
+ import { H as HaexVaultSdk } from './client-BEWYbywm.mjs';
2
+ export { A as AddBackendOptions, n as AddSyncRuleOptions, u as AddToQueueOptions, B as BackendConfig, E as CONFLICT_STRATEGY, C as ConflictStrategy, m as CreateSpaceOptions, D as DatabaseAPI, q as DownloadFileOptions, x as FILE_SYNC_STATE, c as FileInfo, b as FileSpace, a as FileSyncAPI, d as FileSyncState, F as FilesystemAPI, G as GetQueueOptions, L as ListFilesOptions, r as LocalFileInfo, P as PermissionsAPI, I as QUEUE_OPERATION, J as QUEUE_STATUS, v as QueueFileEntry, Q as QueueOperation, s as QueueStatus, w as QueueSummary, g as S3BackendConfig, z as STORAGE_BACKEND_TYPE, y as SYNC_DIRECTION, o as ScanLocalOptions, e as StorageBackendInfo, f as StorageBackendType, i as SyncDirection, k as SyncError, l as SyncProgress, t as SyncQueueEntry, h as SyncRule, j as SyncStatus, U as UpdateSyncRuleOptions, p as UploadFileOptions, W as WebAPI } from './client-BEWYbywm.mjs';
3
3
  import { E as ExtensionManifest, H as HaexHubConfig } from './types-DiXJ5SF6.mjs';
4
4
  export { A as ApplicationContext, t as AuthorizedClient, B as BlockedClient, C as ContextChangedEvent, F as DEFAULT_TIMEOUT, o as DatabaseColumnInfo, m as DatabaseExecuteParams, k as DatabasePermission, d as DatabasePermissionRequest, l as DatabaseQueryParams, D as DatabaseQueryResult, n as DatabaseTableInfo, U as EXTERNAL_EVENTS, z as ErrorCode, g as EventCallback, a as ExtensionInfo, v as ExternalAuthDecision, x as ExternalConnection, J as ExternalConnectionErrorCode, I as ExternalConnectionState, V as ExternalEvent, s as ExternalRequest, r as ExternalRequestEvent, e as ExternalRequestHandler, f as ExternalResponse, O as HAEXTENSION_EVENTS, j as HaexHubEvent, h as HaexHubRequest, i as HaexHubResponse, N as HaexVaultSdkError, Q as HaextensionEvent, u as PendingAuthorization, P as PermissionResponse, y as PermissionStatus, R as RequestedExtension, p as SearchQuery, q as SearchRequestEvent, S as SearchResult, w as SessionAuthorization, T as TABLE_SEPARATOR, W as WebRequestOptions, c as WebResponse, L as canExternalClientSendRequests, G as getTableName, K as isExternalClientConnected } from './types-DiXJ5SF6.mjs';
5
5
  export { H as HaextensionConfig } from './config-D_HXjsEV.mjs';
@@ -103,31 +103,41 @@ declare const HAEXTENSION_METHODS: {
103
103
  readonly saveFile: "haextension:filesystem:save-file";
104
104
  readonly openFile: "haextension:filesystem:open-file";
105
105
  readonly showImage: "haextension:filesystem:show-image";
106
- readonly sync: {
107
- readonly listSpaces: "haextension:filesystem:sync:list-spaces";
108
- readonly createSpace: "haextension:filesystem:sync:create-space";
109
- readonly deleteSpace: "haextension:filesystem:sync:delete-space";
110
- readonly listFiles: "haextension:filesystem:sync:list-files";
111
- readonly getFile: "haextension:filesystem:sync:get-file";
112
- readonly uploadFile: "haextension:filesystem:sync:upload-file";
113
- readonly downloadFile: "haextension:filesystem:sync:download-file";
114
- readonly deleteFile: "haextension:filesystem:sync:delete-file";
115
- readonly listBackends: "haextension:filesystem:sync:list-backends";
116
- readonly addBackend: "haextension:filesystem:sync:add-backend";
117
- readonly removeBackend: "haextension:filesystem:sync:remove-backend";
118
- readonly testBackend: "haextension:filesystem:sync:test-backend";
119
- readonly listSyncRules: "haextension:filesystem:sync:list-sync-rules";
120
- readonly addSyncRule: "haextension:filesystem:sync:add-sync-rule";
121
- readonly updateSyncRule: "haextension:filesystem:sync:update-sync-rule";
122
- readonly removeSyncRule: "haextension:filesystem:sync:remove-sync-rule";
123
- readonly getSyncStatus: "haextension:filesystem:sync:get-sync-status";
124
- readonly triggerSync: "haextension:filesystem:sync:trigger-sync";
125
- readonly pauseSync: "haextension:filesystem:sync:pause-sync";
126
- readonly resumeSync: "haextension:filesystem:sync:resume-sync";
127
- readonly resolveConflict: "haextension:filesystem:sync:resolve-conflict";
128
- readonly selectFolder: "haextension:filesystem:sync:select-folder";
129
- readonly scanLocal: "haextension:filesystem:sync:scan-local";
130
- };
106
+ };
107
+ readonly filesync: {
108
+ readonly listSpaces: "haextension:filesync:list-spaces";
109
+ readonly createSpace: "haextension:filesync:create-space";
110
+ readonly deleteSpace: "haextension:filesync:delete-space";
111
+ readonly listFiles: "haextension:filesync:list-files";
112
+ readonly getFile: "haextension:filesync:get-file";
113
+ readonly uploadFile: "haextension:filesync:upload-file";
114
+ readonly downloadFile: "haextension:filesync:download-file";
115
+ readonly deleteFile: "haextension:filesync:delete-file";
116
+ readonly listBackends: "haextension:filesync:list-backends";
117
+ readonly addBackend: "haextension:filesync:add-backend";
118
+ readonly removeBackend: "haextension:filesync:remove-backend";
119
+ readonly testBackend: "haextension:filesync:test-backend";
120
+ readonly listSyncRules: "haextension:filesync:list-sync-rules";
121
+ readonly addSyncRule: "haextension:filesync:add-sync-rule";
122
+ readonly updateSyncRule: "haextension:filesync:update-sync-rule";
123
+ readonly removeSyncRule: "haextension:filesync:remove-sync-rule";
124
+ readonly getSyncStatus: "haextension:filesync:get-sync-status";
125
+ readonly triggerSync: "haextension:filesync:trigger-sync";
126
+ readonly pauseSync: "haextension:filesync:pause-sync";
127
+ readonly resumeSync: "haextension:filesync:resume-sync";
128
+ readonly resolveConflict: "haextension:filesync:resolve-conflict";
129
+ readonly selectFolder: "haextension:filesync:select-folder";
130
+ readonly scanLocal: "haextension:filesync:scan-local";
131
+ readonly addToQueue: "haextension:filesync:add-to-queue";
132
+ readonly getQueue: "haextension:filesync:get-queue";
133
+ readonly getQueueSummary: "haextension:filesync:get-queue-summary";
134
+ readonly startQueueEntry: "haextension:filesync:start-queue-entry";
135
+ readonly completeQueueEntry: "haextension:filesync:complete-queue-entry";
136
+ readonly failQueueEntry: "haextension:filesync:fail-queue-entry";
137
+ readonly retryFailedQueue: "haextension:filesync:retry-failed-queue";
138
+ readonly removeQueueEntry: "haextension:filesync:remove-queue-entry";
139
+ readonly clearQueue: "haextension:filesync:clear-queue";
140
+ readonly recoverQueue: "haextension:filesync:recover-queue";
131
141
  };
132
142
  readonly storage: {
133
143
  readonly getItem: "haextension:storage:get-item";
@@ -231,6 +241,16 @@ declare const TAURI_COMMANDS: {
231
241
  readonly resolveConflict: "webview_filesync_resolve_conflict";
232
242
  readonly selectFolder: "filesync_select_folder";
233
243
  readonly scanLocal: "webview_filesync_scan_local";
244
+ readonly addToQueue: "webview_filesync_add_to_queue";
245
+ readonly getQueue: "webview_filesync_get_queue";
246
+ readonly getQueueSummary: "webview_filesync_get_queue_summary";
247
+ readonly startQueueEntry: "webview_filesync_start_queue_entry";
248
+ readonly completeQueueEntry: "webview_filesync_complete_queue_entry";
249
+ readonly failQueueEntry: "webview_filesync_fail_queue_entry";
250
+ readonly retryFailedQueue: "webview_filesync_retry_failed_queue";
251
+ readonly removeQueueEntry: "webview_filesync_remove_queue_entry";
252
+ readonly clearQueue: "webview_filesync_clear_queue";
253
+ readonly recoverQueue: "webview_filesync_recover_queue";
234
254
  };
235
255
  };
236
256
  type TauriCommand = (typeof TAURI_COMMANDS.database)[keyof typeof TAURI_COMMANDS.database] | (typeof TAURI_COMMANDS.permissions)[keyof typeof TAURI_COMMANDS.permissions] | (typeof TAURI_COMMANDS.web)[keyof typeof TAURI_COMMANDS.web] | (typeof TAURI_COMMANDS.filesystem)[keyof typeof TAURI_COMMANDS.filesystem] | (typeof TAURI_COMMANDS.external)[keyof typeof TAURI_COMMANDS.external] | (typeof TAURI_COMMANDS.extension)[keyof typeof TAURI_COMMANDS.extension] | (typeof TAURI_COMMANDS.filesync)[keyof typeof TAURI_COMMANDS.filesync];
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as HaexVaultSdk } from './client-D1sxoc42.js';
2
- export { A as AddBackendOptions, n as AddSyncRuleOptions, B as BackendConfig, v as CONFLICT_STRATEGY, C as ConflictStrategy, m as CreateSpaceOptions, D as DatabaseAPI, q as DownloadFileOptions, s as FILE_SYNC_STATE, c as FileInfo, b as FileSpace, a as FileSyncAPI, d as FileSyncState, F as FilesystemAPI, L as ListFilesOptions, r as LocalFileInfo, P as PermissionsAPI, g as S3BackendConfig, u as STORAGE_BACKEND_TYPE, t as SYNC_DIRECTION, o as ScanLocalOptions, e as StorageBackendInfo, f as StorageBackendType, i as SyncDirection, k as SyncError, l as SyncProgress, h as SyncRule, j as SyncStatus, U as UpdateSyncRuleOptions, p as UploadFileOptions, W as WebAPI } from './client-D1sxoc42.js';
1
+ import { H as HaexVaultSdk } from './client-CYgMbZKT.js';
2
+ export { A as AddBackendOptions, n as AddSyncRuleOptions, u as AddToQueueOptions, B as BackendConfig, E as CONFLICT_STRATEGY, C as ConflictStrategy, m as CreateSpaceOptions, D as DatabaseAPI, q as DownloadFileOptions, x as FILE_SYNC_STATE, c as FileInfo, b as FileSpace, a as FileSyncAPI, d as FileSyncState, F as FilesystemAPI, G as GetQueueOptions, L as ListFilesOptions, r as LocalFileInfo, P as PermissionsAPI, I as QUEUE_OPERATION, J as QUEUE_STATUS, v as QueueFileEntry, Q as QueueOperation, s as QueueStatus, w as QueueSummary, g as S3BackendConfig, z as STORAGE_BACKEND_TYPE, y as SYNC_DIRECTION, o as ScanLocalOptions, e as StorageBackendInfo, f as StorageBackendType, i as SyncDirection, k as SyncError, l as SyncProgress, t as SyncQueueEntry, h as SyncRule, j as SyncStatus, U as UpdateSyncRuleOptions, p as UploadFileOptions, W as WebAPI } from './client-CYgMbZKT.js';
3
3
  import { E as ExtensionManifest, H as HaexHubConfig } from './types-DiXJ5SF6.js';
4
4
  export { A as ApplicationContext, t as AuthorizedClient, B as BlockedClient, C as ContextChangedEvent, F as DEFAULT_TIMEOUT, o as DatabaseColumnInfo, m as DatabaseExecuteParams, k as DatabasePermission, d as DatabasePermissionRequest, l as DatabaseQueryParams, D as DatabaseQueryResult, n as DatabaseTableInfo, U as EXTERNAL_EVENTS, z as ErrorCode, g as EventCallback, a as ExtensionInfo, v as ExternalAuthDecision, x as ExternalConnection, J as ExternalConnectionErrorCode, I as ExternalConnectionState, V as ExternalEvent, s as ExternalRequest, r as ExternalRequestEvent, e as ExternalRequestHandler, f as ExternalResponse, O as HAEXTENSION_EVENTS, j as HaexHubEvent, h as HaexHubRequest, i as HaexHubResponse, N as HaexVaultSdkError, Q as HaextensionEvent, u as PendingAuthorization, P as PermissionResponse, y as PermissionStatus, R as RequestedExtension, p as SearchQuery, q as SearchRequestEvent, S as SearchResult, w as SessionAuthorization, T as TABLE_SEPARATOR, W as WebRequestOptions, c as WebResponse, L as canExternalClientSendRequests, G as getTableName, K as isExternalClientConnected } from './types-DiXJ5SF6.js';
5
5
  export { H as HaextensionConfig } from './config-D_HXjsEV.js';
@@ -103,31 +103,41 @@ declare const HAEXTENSION_METHODS: {
103
103
  readonly saveFile: "haextension:filesystem:save-file";
104
104
  readonly openFile: "haextension:filesystem:open-file";
105
105
  readonly showImage: "haextension:filesystem:show-image";
106
- readonly sync: {
107
- readonly listSpaces: "haextension:filesystem:sync:list-spaces";
108
- readonly createSpace: "haextension:filesystem:sync:create-space";
109
- readonly deleteSpace: "haextension:filesystem:sync:delete-space";
110
- readonly listFiles: "haextension:filesystem:sync:list-files";
111
- readonly getFile: "haextension:filesystem:sync:get-file";
112
- readonly uploadFile: "haextension:filesystem:sync:upload-file";
113
- readonly downloadFile: "haextension:filesystem:sync:download-file";
114
- readonly deleteFile: "haextension:filesystem:sync:delete-file";
115
- readonly listBackends: "haextension:filesystem:sync:list-backends";
116
- readonly addBackend: "haextension:filesystem:sync:add-backend";
117
- readonly removeBackend: "haextension:filesystem:sync:remove-backend";
118
- readonly testBackend: "haextension:filesystem:sync:test-backend";
119
- readonly listSyncRules: "haextension:filesystem:sync:list-sync-rules";
120
- readonly addSyncRule: "haextension:filesystem:sync:add-sync-rule";
121
- readonly updateSyncRule: "haextension:filesystem:sync:update-sync-rule";
122
- readonly removeSyncRule: "haextension:filesystem:sync:remove-sync-rule";
123
- readonly getSyncStatus: "haextension:filesystem:sync:get-sync-status";
124
- readonly triggerSync: "haextension:filesystem:sync:trigger-sync";
125
- readonly pauseSync: "haextension:filesystem:sync:pause-sync";
126
- readonly resumeSync: "haextension:filesystem:sync:resume-sync";
127
- readonly resolveConflict: "haextension:filesystem:sync:resolve-conflict";
128
- readonly selectFolder: "haextension:filesystem:sync:select-folder";
129
- readonly scanLocal: "haextension:filesystem:sync:scan-local";
130
- };
106
+ };
107
+ readonly filesync: {
108
+ readonly listSpaces: "haextension:filesync:list-spaces";
109
+ readonly createSpace: "haextension:filesync:create-space";
110
+ readonly deleteSpace: "haextension:filesync:delete-space";
111
+ readonly listFiles: "haextension:filesync:list-files";
112
+ readonly getFile: "haextension:filesync:get-file";
113
+ readonly uploadFile: "haextension:filesync:upload-file";
114
+ readonly downloadFile: "haextension:filesync:download-file";
115
+ readonly deleteFile: "haextension:filesync:delete-file";
116
+ readonly listBackends: "haextension:filesync:list-backends";
117
+ readonly addBackend: "haextension:filesync:add-backend";
118
+ readonly removeBackend: "haextension:filesync:remove-backend";
119
+ readonly testBackend: "haextension:filesync:test-backend";
120
+ readonly listSyncRules: "haextension:filesync:list-sync-rules";
121
+ readonly addSyncRule: "haextension:filesync:add-sync-rule";
122
+ readonly updateSyncRule: "haextension:filesync:update-sync-rule";
123
+ readonly removeSyncRule: "haextension:filesync:remove-sync-rule";
124
+ readonly getSyncStatus: "haextension:filesync:get-sync-status";
125
+ readonly triggerSync: "haextension:filesync:trigger-sync";
126
+ readonly pauseSync: "haextension:filesync:pause-sync";
127
+ readonly resumeSync: "haextension:filesync:resume-sync";
128
+ readonly resolveConflict: "haextension:filesync:resolve-conflict";
129
+ readonly selectFolder: "haextension:filesync:select-folder";
130
+ readonly scanLocal: "haextension:filesync:scan-local";
131
+ readonly addToQueue: "haextension:filesync:add-to-queue";
132
+ readonly getQueue: "haextension:filesync:get-queue";
133
+ readonly getQueueSummary: "haextension:filesync:get-queue-summary";
134
+ readonly startQueueEntry: "haextension:filesync:start-queue-entry";
135
+ readonly completeQueueEntry: "haextension:filesync:complete-queue-entry";
136
+ readonly failQueueEntry: "haextension:filesync:fail-queue-entry";
137
+ readonly retryFailedQueue: "haextension:filesync:retry-failed-queue";
138
+ readonly removeQueueEntry: "haextension:filesync:remove-queue-entry";
139
+ readonly clearQueue: "haextension:filesync:clear-queue";
140
+ readonly recoverQueue: "haextension:filesync:recover-queue";
131
141
  };
132
142
  readonly storage: {
133
143
  readonly getItem: "haextension:storage:get-item";
@@ -231,6 +241,16 @@ declare const TAURI_COMMANDS: {
231
241
  readonly resolveConflict: "webview_filesync_resolve_conflict";
232
242
  readonly selectFolder: "filesync_select_folder";
233
243
  readonly scanLocal: "webview_filesync_scan_local";
244
+ readonly addToQueue: "webview_filesync_add_to_queue";
245
+ readonly getQueue: "webview_filesync_get_queue";
246
+ readonly getQueueSummary: "webview_filesync_get_queue_summary";
247
+ readonly startQueueEntry: "webview_filesync_start_queue_entry";
248
+ readonly completeQueueEntry: "webview_filesync_complete_queue_entry";
249
+ readonly failQueueEntry: "webview_filesync_fail_queue_entry";
250
+ readonly retryFailedQueue: "webview_filesync_retry_failed_queue";
251
+ readonly removeQueueEntry: "webview_filesync_remove_queue_entry";
252
+ readonly clearQueue: "webview_filesync_clear_queue";
253
+ readonly recoverQueue: "webview_filesync_recover_queue";
234
254
  };
235
255
  };
236
256
  type TauriCommand = (typeof TAURI_COMMANDS.database)[keyof typeof TAURI_COMMANDS.database] | (typeof TAURI_COMMANDS.permissions)[keyof typeof TAURI_COMMANDS.permissions] | (typeof TAURI_COMMANDS.web)[keyof typeof TAURI_COMMANDS.web] | (typeof TAURI_COMMANDS.filesystem)[keyof typeof TAURI_COMMANDS.filesystem] | (typeof TAURI_COMMANDS.external)[keyof typeof TAURI_COMMANDS.external] | (typeof TAURI_COMMANDS.extension)[keyof typeof TAURI_COMMANDS.extension] | (typeof TAURI_COMMANDS.filesync)[keyof typeof TAURI_COMMANDS.filesync];