@haex-space/vault-sdk 2.5.43 → 2.5.45
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-9QruY0rX.d.mts → client-BDxVgihp.d.mts} +1 -408
- package/dist/{client-Bp4IqvzW.d.ts → client-Bgu2k1yJ.d.ts} +1 -408
- package/dist/index.d.mts +2 -37
- package/dist/index.d.ts +2 -37
- package/dist/index.js +0 -393
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -387
- 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 +0 -344
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +0 -344
- 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 +0 -344
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs +0 -344
- 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 +0 -344
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +0 -344
- 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 +0 -344
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +0 -344
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -41,412 +41,6 @@ declare class DatabaseAPI {
|
|
|
41
41
|
count(tableName: string, where?: string, whereParams?: unknown[]): Promise<number>;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
/** File sync state constants */
|
|
45
|
-
declare const FILE_SYNC_STATE: {
|
|
46
|
-
readonly SYNCED: "synced";
|
|
47
|
-
readonly SYNCING: "syncing";
|
|
48
|
-
readonly LOCAL_ONLY: "localOnly";
|
|
49
|
-
readonly REMOTE_ONLY: "remoteOnly";
|
|
50
|
-
readonly CONFLICT: "conflict";
|
|
51
|
-
readonly ERROR: "error";
|
|
52
|
-
};
|
|
53
|
-
/** Sync direction constants */
|
|
54
|
-
declare const SYNC_DIRECTION: {
|
|
55
|
-
readonly UP: "up";
|
|
56
|
-
readonly DOWN: "down";
|
|
57
|
-
readonly BOTH: "both";
|
|
58
|
-
};
|
|
59
|
-
/** Storage backend type constants */
|
|
60
|
-
declare const STORAGE_BACKEND_TYPE: {
|
|
61
|
-
readonly S3: "s3";
|
|
62
|
-
readonly R2: "r2";
|
|
63
|
-
readonly MINIO: "minio";
|
|
64
|
-
readonly GDRIVE: "gdrive";
|
|
65
|
-
readonly DROPBOX: "dropbox";
|
|
66
|
-
};
|
|
67
|
-
interface FileSpace {
|
|
68
|
-
id: string;
|
|
69
|
-
name: string;
|
|
70
|
-
isPersonal: boolean;
|
|
71
|
-
fileCount: number;
|
|
72
|
-
totalSize: number;
|
|
73
|
-
createdAt: string;
|
|
74
|
-
updatedAt: string;
|
|
75
|
-
}
|
|
76
|
-
interface FileInfo {
|
|
77
|
-
id: string;
|
|
78
|
-
spaceId: string;
|
|
79
|
-
name: string;
|
|
80
|
-
path: string;
|
|
81
|
-
mimeType: string | null;
|
|
82
|
-
size: number;
|
|
83
|
-
contentHash: string;
|
|
84
|
-
isDirectory: boolean;
|
|
85
|
-
syncState: FileSyncState;
|
|
86
|
-
backends: string[];
|
|
87
|
-
createdAt: string;
|
|
88
|
-
updatedAt: string;
|
|
89
|
-
}
|
|
90
|
-
/** Local file info (unencrypted, scanned from local filesystem) */
|
|
91
|
-
interface LocalFileInfo {
|
|
92
|
-
/** Unique ID (hash of rule_id + relative path) */
|
|
93
|
-
id: string;
|
|
94
|
-
/** File name */
|
|
95
|
-
name: string;
|
|
96
|
-
/** Full local path */
|
|
97
|
-
path: string;
|
|
98
|
-
/** Relative path from sync root */
|
|
99
|
-
relativePath: string;
|
|
100
|
-
/** MIME type (null for directories) */
|
|
101
|
-
mimeType: string | null;
|
|
102
|
-
/** File size in bytes */
|
|
103
|
-
size: number;
|
|
104
|
-
/** Whether this is a directory */
|
|
105
|
-
isDirectory: boolean;
|
|
106
|
-
/** Last modified timestamp (ISO 8601) */
|
|
107
|
-
modifiedAt: string | null;
|
|
108
|
-
}
|
|
109
|
-
type FileSyncState = "synced" | "syncing" | "localOnly" | "remoteOnly" | "conflict" | "error";
|
|
110
|
-
interface StorageBackendInfo$1 {
|
|
111
|
-
id: string;
|
|
112
|
-
type: StorageBackendType;
|
|
113
|
-
name: string;
|
|
114
|
-
enabled: boolean;
|
|
115
|
-
createdAt: string;
|
|
116
|
-
}
|
|
117
|
-
type StorageBackendType = "s3" | "r2" | "minio" | "gdrive" | "dropbox";
|
|
118
|
-
interface S3BackendConfig {
|
|
119
|
-
type: "s3" | "r2" | "minio";
|
|
120
|
-
endpoint?: string;
|
|
121
|
-
region: string;
|
|
122
|
-
bucket: string;
|
|
123
|
-
accessKeyId: string;
|
|
124
|
-
secretAccessKey: string;
|
|
125
|
-
}
|
|
126
|
-
/** Backend configuration for S3-compatible storage */
|
|
127
|
-
type BackendConfig = S3BackendConfig;
|
|
128
|
-
interface SyncRule {
|
|
129
|
-
id: string;
|
|
130
|
-
/** Device ID this sync rule belongs to (local paths are device-specific) */
|
|
131
|
-
deviceId: string;
|
|
132
|
-
spaceId: string;
|
|
133
|
-
localPath: string;
|
|
134
|
-
backendIds: string[];
|
|
135
|
-
direction: SyncDirection;
|
|
136
|
-
enabled: boolean;
|
|
137
|
-
/** Gitignore-like patterns for files/folders to exclude from sync */
|
|
138
|
-
ignorePatterns: string[];
|
|
139
|
-
/** Default conflict resolution strategy for this sync rule */
|
|
140
|
-
conflictStrategy: ConflictStrategy;
|
|
141
|
-
createdAt: string;
|
|
142
|
-
updatedAt: string;
|
|
143
|
-
}
|
|
144
|
-
type SyncDirection = "up" | "down" | "both";
|
|
145
|
-
/** Conflict resolution strategy for sync rules */
|
|
146
|
-
type ConflictStrategy = "local" | "remote" | "newer" | "ask" | "keepBoth";
|
|
147
|
-
/** Conflict strategy constants */
|
|
148
|
-
declare const CONFLICT_STRATEGY: Record<string, ConflictStrategy>;
|
|
149
|
-
interface SyncStatus {
|
|
150
|
-
isSyncing: boolean;
|
|
151
|
-
pendingUploads: number;
|
|
152
|
-
pendingDownloads: number;
|
|
153
|
-
lastSync: string | null;
|
|
154
|
-
errors: SyncError[];
|
|
155
|
-
}
|
|
156
|
-
interface SyncError {
|
|
157
|
-
fileId: string;
|
|
158
|
-
fileName: string;
|
|
159
|
-
error: string;
|
|
160
|
-
timestamp: string;
|
|
161
|
-
}
|
|
162
|
-
interface SyncProgress {
|
|
163
|
-
fileId: string;
|
|
164
|
-
fileName: string;
|
|
165
|
-
bytesTransferred: number;
|
|
166
|
-
totalBytes: number;
|
|
167
|
-
direction: "upload" | "download";
|
|
168
|
-
}
|
|
169
|
-
interface CreateSpaceOptions {
|
|
170
|
-
name: string;
|
|
171
|
-
}
|
|
172
|
-
interface AddBackendOptions {
|
|
173
|
-
name: string;
|
|
174
|
-
config: BackendConfig;
|
|
175
|
-
}
|
|
176
|
-
interface AddSyncRuleOptions {
|
|
177
|
-
spaceId: string;
|
|
178
|
-
localPath: string;
|
|
179
|
-
backendIds: string[];
|
|
180
|
-
direction?: SyncDirection;
|
|
181
|
-
/** Gitignore-like patterns for files/folders to exclude from sync */
|
|
182
|
-
ignorePatterns?: string[];
|
|
183
|
-
/** Default conflict resolution strategy (defaults to 'ask') */
|
|
184
|
-
conflictStrategy?: ConflictStrategy;
|
|
185
|
-
}
|
|
186
|
-
interface UpdateSyncRuleOptions {
|
|
187
|
-
ruleId: string;
|
|
188
|
-
backendIds?: string[];
|
|
189
|
-
direction?: SyncDirection;
|
|
190
|
-
enabled?: boolean;
|
|
191
|
-
/** Gitignore-like patterns for files/folders to exclude from sync */
|
|
192
|
-
ignorePatterns?: string[];
|
|
193
|
-
/** Default conflict resolution strategy */
|
|
194
|
-
conflictStrategy?: ConflictStrategy;
|
|
195
|
-
}
|
|
196
|
-
interface ListFilesOptions {
|
|
197
|
-
spaceId: string;
|
|
198
|
-
path?: string;
|
|
199
|
-
recursive?: boolean;
|
|
200
|
-
}
|
|
201
|
-
interface ScanLocalOptions {
|
|
202
|
-
/** Sync rule ID to scan */
|
|
203
|
-
ruleId: string;
|
|
204
|
-
/** Optional subpath within the sync root to scan */
|
|
205
|
-
subpath?: string;
|
|
206
|
-
}
|
|
207
|
-
interface UploadFileOptions {
|
|
208
|
-
spaceId: string;
|
|
209
|
-
localPath: string;
|
|
210
|
-
remotePath?: string;
|
|
211
|
-
backendIds?: string[];
|
|
212
|
-
}
|
|
213
|
-
interface DownloadFileOptions {
|
|
214
|
-
fileId: string;
|
|
215
|
-
localPath: string;
|
|
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
|
-
}
|
|
307
|
-
/**
|
|
308
|
-
* File Sync API for E2E encrypted file synchronization
|
|
309
|
-
*
|
|
310
|
-
* Access via: client.filesystem.sync.*
|
|
311
|
-
*/
|
|
312
|
-
declare class FileSyncAPI {
|
|
313
|
-
private client;
|
|
314
|
-
constructor(client: HaexVaultSdk);
|
|
315
|
-
/**
|
|
316
|
-
* List all file spaces
|
|
317
|
-
*/
|
|
318
|
-
listSpacesAsync(): Promise<FileSpace[]>;
|
|
319
|
-
/**
|
|
320
|
-
* Create a new file space
|
|
321
|
-
*/
|
|
322
|
-
createSpaceAsync(options: CreateSpaceOptions): Promise<FileSpace>;
|
|
323
|
-
/**
|
|
324
|
-
* Delete a file space
|
|
325
|
-
*/
|
|
326
|
-
deleteSpaceAsync(spaceId: string): Promise<void>;
|
|
327
|
-
/**
|
|
328
|
-
* List files in a space
|
|
329
|
-
*/
|
|
330
|
-
listFilesAsync(options: ListFilesOptions): Promise<FileInfo[]>;
|
|
331
|
-
/**
|
|
332
|
-
* Scan local files in a sync rule folder
|
|
333
|
-
* Returns unencrypted local files for display in the UI
|
|
334
|
-
*/
|
|
335
|
-
scanLocalAsync(options: ScanLocalOptions): Promise<LocalFileInfo[]>;
|
|
336
|
-
/**
|
|
337
|
-
* Get file info by ID
|
|
338
|
-
*/
|
|
339
|
-
getFileAsync(fileId: string): Promise<FileInfo | null>;
|
|
340
|
-
/**
|
|
341
|
-
* Upload a file to the sync system
|
|
342
|
-
*/
|
|
343
|
-
uploadFileAsync(options: UploadFileOptions): Promise<FileInfo>;
|
|
344
|
-
/**
|
|
345
|
-
* Download a file to local storage
|
|
346
|
-
*/
|
|
347
|
-
downloadFileAsync(options: DownloadFileOptions): Promise<void>;
|
|
348
|
-
/**
|
|
349
|
-
* Delete a file from the sync system
|
|
350
|
-
*/
|
|
351
|
-
deleteFileAsync(fileId: string): Promise<void>;
|
|
352
|
-
/**
|
|
353
|
-
* List configured storage backends
|
|
354
|
-
*/
|
|
355
|
-
listBackendsAsync(): Promise<StorageBackendInfo$1[]>;
|
|
356
|
-
/**
|
|
357
|
-
* Add a new storage backend
|
|
358
|
-
*/
|
|
359
|
-
addBackendAsync(options: AddBackendOptions): Promise<StorageBackendInfo$1>;
|
|
360
|
-
/**
|
|
361
|
-
* Remove a storage backend
|
|
362
|
-
*/
|
|
363
|
-
removeBackendAsync(backendId: string): Promise<void>;
|
|
364
|
-
/**
|
|
365
|
-
* Test backend connection
|
|
366
|
-
*/
|
|
367
|
-
testBackendAsync(backendId: string): Promise<boolean>;
|
|
368
|
-
/**
|
|
369
|
-
* List sync rules
|
|
370
|
-
*/
|
|
371
|
-
listSyncRulesAsync(): Promise<SyncRule[]>;
|
|
372
|
-
/**
|
|
373
|
-
* Add a sync rule
|
|
374
|
-
*/
|
|
375
|
-
addSyncRuleAsync(options: AddSyncRuleOptions): Promise<SyncRule>;
|
|
376
|
-
/**
|
|
377
|
-
* Update a sync rule
|
|
378
|
-
*/
|
|
379
|
-
updateSyncRuleAsync(options: UpdateSyncRuleOptions): Promise<SyncRule>;
|
|
380
|
-
/**
|
|
381
|
-
* Remove a sync rule
|
|
382
|
-
*/
|
|
383
|
-
removeSyncRuleAsync(ruleId: string): Promise<void>;
|
|
384
|
-
/**
|
|
385
|
-
* Get current sync status
|
|
386
|
-
*/
|
|
387
|
-
getSyncStatusAsync(): Promise<SyncStatus>;
|
|
388
|
-
/**
|
|
389
|
-
* Trigger a manual sync
|
|
390
|
-
*/
|
|
391
|
-
triggerSyncAsync(): Promise<void>;
|
|
392
|
-
/**
|
|
393
|
-
* Pause syncing
|
|
394
|
-
*/
|
|
395
|
-
pauseSyncAsync(): Promise<void>;
|
|
396
|
-
/**
|
|
397
|
-
* Resume syncing
|
|
398
|
-
*/
|
|
399
|
-
resumeSyncAsync(): Promise<void>;
|
|
400
|
-
/**
|
|
401
|
-
* Resolve a file conflict
|
|
402
|
-
*/
|
|
403
|
-
resolveConflictAsync(fileId: string, resolution: "local" | "remote" | "keepBoth"): Promise<void>;
|
|
404
|
-
/**
|
|
405
|
-
* Open a folder selection dialog
|
|
406
|
-
*/
|
|
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>;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
44
|
interface SaveFileOptions {
|
|
451
45
|
/**
|
|
452
46
|
* The default filename to suggest
|
|
@@ -562,7 +156,6 @@ interface SelectFileOptions {
|
|
|
562
156
|
}
|
|
563
157
|
declare class FilesystemAPI {
|
|
564
158
|
private client;
|
|
565
|
-
readonly sync: FileSyncAPI;
|
|
566
159
|
constructor(client: HaexVaultSdk);
|
|
567
160
|
/**
|
|
568
161
|
* Opens a save file dialog and saves the provided data to the selected location
|
|
@@ -914,4 +507,4 @@ declare class HaexVaultSdk {
|
|
|
914
507
|
private log;
|
|
915
508
|
}
|
|
916
509
|
|
|
917
|
-
export { type AddBackendRequest as A,
|
|
510
|
+
export { type AddBackendRequest as A, DatabaseAPI as D, FilesystemAPI as F, HaexVaultSdk as H, PermissionsAPI as P, RemoteStorageAPI as R, StorageAPI as S, WebAPI as W, type FileStat as a, type DirEntry as b, type SelectFolderOptions as c, type SelectFileOptions as d, type StorageBackendInfo as e, type S3Config as f, type StorageObjectInfo as g };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HaexVaultSdk } from './client-
|
|
2
|
-
export {
|
|
1
|
+
import { H as HaexVaultSdk } from './client-BDxVgihp.mjs';
|
|
2
|
+
export { D as DatabaseAPI, b as DirEntry, a as FileStat, F as FilesystemAPI, P as PermissionsAPI, A as RemoteAddBackendRequest, f as RemoteS3Config, R as RemoteStorageAPI, e as RemoteStorageBackendInfo, g as RemoteStorageObjectInfo, d as SelectFileOptions, c as SelectFolderOptions, W as WebAPI } from './client-BDxVgihp.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';
|
|
@@ -115,41 +115,6 @@ declare const HAEXTENSION_METHODS: {
|
|
|
115
115
|
readonly rename: "haextension:filesystem:rename";
|
|
116
116
|
readonly copy: "haextension:filesystem:copy";
|
|
117
117
|
};
|
|
118
|
-
readonly filesync: {
|
|
119
|
-
readonly listSpaces: "haextension:filesync:list-spaces";
|
|
120
|
-
readonly createSpace: "haextension:filesync:create-space";
|
|
121
|
-
readonly deleteSpace: "haextension:filesync:delete-space";
|
|
122
|
-
readonly listFiles: "haextension:filesync:list-files";
|
|
123
|
-
readonly getFile: "haextension:filesync:get-file";
|
|
124
|
-
readonly uploadFile: "haextension:filesync:upload-file";
|
|
125
|
-
readonly downloadFile: "haextension:filesync:download-file";
|
|
126
|
-
readonly deleteFile: "haextension:filesync:delete-file";
|
|
127
|
-
readonly listBackends: "haextension:filesync:list-backends";
|
|
128
|
-
readonly addBackend: "haextension:filesync:add-backend";
|
|
129
|
-
readonly removeBackend: "haextension:filesync:remove-backend";
|
|
130
|
-
readonly testBackend: "haextension:filesync:test-backend";
|
|
131
|
-
readonly listSyncRules: "haextension:filesync:list-sync-rules";
|
|
132
|
-
readonly addSyncRule: "haextension:filesync:add-sync-rule";
|
|
133
|
-
readonly updateSyncRule: "haextension:filesync:update-sync-rule";
|
|
134
|
-
readonly removeSyncRule: "haextension:filesync:remove-sync-rule";
|
|
135
|
-
readonly getSyncStatus: "haextension:filesync:get-sync-status";
|
|
136
|
-
readonly triggerSync: "haextension:filesync:trigger-sync";
|
|
137
|
-
readonly pauseSync: "haextension:filesync:pause-sync";
|
|
138
|
-
readonly resumeSync: "haextension:filesync:resume-sync";
|
|
139
|
-
readonly resolveConflict: "haextension:filesync:resolve-conflict";
|
|
140
|
-
readonly selectFolder: "haextension:filesync:select-folder";
|
|
141
|
-
readonly scanLocal: "haextension:filesync:scan-local";
|
|
142
|
-
readonly addToQueue: "haextension:filesync:add-to-queue";
|
|
143
|
-
readonly getQueue: "haextension:filesync:get-queue";
|
|
144
|
-
readonly getQueueSummary: "haextension:filesync:get-queue-summary";
|
|
145
|
-
readonly startQueueEntry: "haextension:filesync:start-queue-entry";
|
|
146
|
-
readonly completeQueueEntry: "haextension:filesync:complete-queue-entry";
|
|
147
|
-
readonly failQueueEntry: "haextension:filesync:fail-queue-entry";
|
|
148
|
-
readonly retryFailedQueue: "haextension:filesync:retry-failed-queue";
|
|
149
|
-
readonly removeQueueEntry: "haextension:filesync:remove-queue-entry";
|
|
150
|
-
readonly clearQueue: "haextension:filesync:clear-queue";
|
|
151
|
-
readonly recoverQueue: "haextension:filesync:recover-queue";
|
|
152
|
-
};
|
|
153
118
|
readonly storage: {
|
|
154
119
|
readonly getItem: "haextension:storage:get-item";
|
|
155
120
|
readonly setItem: "haextension:storage:set-item";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HaexVaultSdk } from './client-
|
|
2
|
-
export {
|
|
1
|
+
import { H as HaexVaultSdk } from './client-Bgu2k1yJ.js';
|
|
2
|
+
export { D as DatabaseAPI, b as DirEntry, a as FileStat, F as FilesystemAPI, P as PermissionsAPI, A as RemoteAddBackendRequest, f as RemoteS3Config, R as RemoteStorageAPI, e as RemoteStorageBackendInfo, g as RemoteStorageObjectInfo, d as SelectFileOptions, c as SelectFolderOptions, W as WebAPI } from './client-Bgu2k1yJ.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';
|
|
@@ -115,41 +115,6 @@ declare const HAEXTENSION_METHODS: {
|
|
|
115
115
|
readonly rename: "haextension:filesystem:rename";
|
|
116
116
|
readonly copy: "haextension:filesystem:copy";
|
|
117
117
|
};
|
|
118
|
-
readonly filesync: {
|
|
119
|
-
readonly listSpaces: "haextension:filesync:list-spaces";
|
|
120
|
-
readonly createSpace: "haextension:filesync:create-space";
|
|
121
|
-
readonly deleteSpace: "haextension:filesync:delete-space";
|
|
122
|
-
readonly listFiles: "haextension:filesync:list-files";
|
|
123
|
-
readonly getFile: "haextension:filesync:get-file";
|
|
124
|
-
readonly uploadFile: "haextension:filesync:upload-file";
|
|
125
|
-
readonly downloadFile: "haextension:filesync:download-file";
|
|
126
|
-
readonly deleteFile: "haextension:filesync:delete-file";
|
|
127
|
-
readonly listBackends: "haextension:filesync:list-backends";
|
|
128
|
-
readonly addBackend: "haextension:filesync:add-backend";
|
|
129
|
-
readonly removeBackend: "haextension:filesync:remove-backend";
|
|
130
|
-
readonly testBackend: "haextension:filesync:test-backend";
|
|
131
|
-
readonly listSyncRules: "haextension:filesync:list-sync-rules";
|
|
132
|
-
readonly addSyncRule: "haextension:filesync:add-sync-rule";
|
|
133
|
-
readonly updateSyncRule: "haextension:filesync:update-sync-rule";
|
|
134
|
-
readonly removeSyncRule: "haextension:filesync:remove-sync-rule";
|
|
135
|
-
readonly getSyncStatus: "haextension:filesync:get-sync-status";
|
|
136
|
-
readonly triggerSync: "haextension:filesync:trigger-sync";
|
|
137
|
-
readonly pauseSync: "haextension:filesync:pause-sync";
|
|
138
|
-
readonly resumeSync: "haextension:filesync:resume-sync";
|
|
139
|
-
readonly resolveConflict: "haextension:filesync:resolve-conflict";
|
|
140
|
-
readonly selectFolder: "haextension:filesync:select-folder";
|
|
141
|
-
readonly scanLocal: "haextension:filesync:scan-local";
|
|
142
|
-
readonly addToQueue: "haextension:filesync:add-to-queue";
|
|
143
|
-
readonly getQueue: "haextension:filesync:get-queue";
|
|
144
|
-
readonly getQueueSummary: "haextension:filesync:get-queue-summary";
|
|
145
|
-
readonly startQueueEntry: "haextension:filesync:start-queue-entry";
|
|
146
|
-
readonly completeQueueEntry: "haextension:filesync:complete-queue-entry";
|
|
147
|
-
readonly failQueueEntry: "haextension:filesync:fail-queue-entry";
|
|
148
|
-
readonly retryFailedQueue: "haextension:filesync:retry-failed-queue";
|
|
149
|
-
readonly removeQueueEntry: "haextension:filesync:remove-queue-entry";
|
|
150
|
-
readonly clearQueue: "haextension:filesync:clear-queue";
|
|
151
|
-
readonly recoverQueue: "haextension:filesync:recover-queue";
|
|
152
|
-
};
|
|
153
118
|
readonly storage: {
|
|
154
119
|
readonly getItem: "haextension:storage:get-item";
|
|
155
120
|
readonly setItem: "haextension:storage:set-item";
|