@haex-space/vault-sdk 2.5.35 → 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.
- package/dist/{client-B5sRb-z5.d.mts → client-BEWYbywm.d.mts} +133 -1
- package/dist/{client-C1V7rmBP.d.ts → client-CYgMbZKT.d.ts} +133 -1
- package/dist/index.d.mts +47 -27
- package/dist/index.d.ts +47 -27
- package/dist/index.js +239 -80
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +238 -81
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +227 -80
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +227 -80
- package/dist/react.mjs.map +1 -1
- package/dist/runtime/nuxt.plugin.client.d.mts +1 -1
- package/dist/runtime/nuxt.plugin.client.d.ts +1 -1
- package/dist/runtime/nuxt.plugin.client.js +227 -80
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs +227 -80
- package/dist/runtime/nuxt.plugin.client.mjs.map +1 -1
- package/dist/svelte.d.mts +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/svelte.js +227 -80
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +227 -80
- package/dist/svelte.mjs.map +1 -1
- package/dist/vue.d.mts +1 -1
- package/dist/vue.d.ts +1 -1
- package/dist/vue.js +227 -80
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +227 -80
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -127,6 +127,8 @@ interface S3BackendConfig {
|
|
|
127
127
|
type BackendConfig = S3BackendConfig;
|
|
128
128
|
interface SyncRule {
|
|
129
129
|
id: string;
|
|
130
|
+
/** Device ID this sync rule belongs to (local paths are device-specific) */
|
|
131
|
+
deviceId: string;
|
|
130
132
|
spaceId: string;
|
|
131
133
|
localPath: string;
|
|
132
134
|
backendIds: string[];
|
|
@@ -212,6 +214,96 @@ interface DownloadFileOptions {
|
|
|
212
214
|
fileId: string;
|
|
213
215
|
localPath: string;
|
|
214
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
|
+
}
|
|
215
307
|
/**
|
|
216
308
|
* File Sync API for E2E encrypted file synchronization
|
|
217
309
|
*
|
|
@@ -313,6 +405,46 @@ declare class FileSyncAPI {
|
|
|
313
405
|
* Open a folder selection dialog
|
|
314
406
|
*/
|
|
315
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>;
|
|
316
448
|
}
|
|
317
449
|
|
|
318
450
|
interface SaveFileOptions {
|
|
@@ -529,4 +661,4 @@ declare class HaexVaultSdk {
|
|
|
529
661
|
private log;
|
|
530
662
|
}
|
|
531
663
|
|
|
532
|
-
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,
|
|
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 };
|
|
@@ -127,6 +127,8 @@ interface S3BackendConfig {
|
|
|
127
127
|
type BackendConfig = S3BackendConfig;
|
|
128
128
|
interface SyncRule {
|
|
129
129
|
id: string;
|
|
130
|
+
/** Device ID this sync rule belongs to (local paths are device-specific) */
|
|
131
|
+
deviceId: string;
|
|
130
132
|
spaceId: string;
|
|
131
133
|
localPath: string;
|
|
132
134
|
backendIds: string[];
|
|
@@ -212,6 +214,96 @@ interface DownloadFileOptions {
|
|
|
212
214
|
fileId: string;
|
|
213
215
|
localPath: string;
|
|
214
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
|
+
}
|
|
215
307
|
/**
|
|
216
308
|
* File Sync API for E2E encrypted file synchronization
|
|
217
309
|
*
|
|
@@ -313,6 +405,46 @@ declare class FileSyncAPI {
|
|
|
313
405
|
* Open a folder selection dialog
|
|
314
406
|
*/
|
|
315
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>;
|
|
316
448
|
}
|
|
317
449
|
|
|
318
450
|
interface SaveFileOptions {
|
|
@@ -529,4 +661,4 @@ declare class HaexVaultSdk {
|
|
|
529
661
|
private log;
|
|
530
662
|
}
|
|
531
663
|
|
|
532
|
-
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,
|
|
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-
|
|
2
|
-
export { A as AddBackendOptions, n as AddSyncRuleOptions, B as BackendConfig,
|
|
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
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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-
|
|
2
|
-
export { A as AddBackendOptions, n as AddSyncRuleOptions, B as BackendConfig,
|
|
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
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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];
|