@haex-space/vault-sdk 2.5.54 → 2.5.56
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-Dv3ysOWr.d.ts → client-C_0ajqhQ.d.ts} +20 -1
- package/dist/{client-Y3QEhTe2.d.mts → client-DTXGxFqD.d.mts} +20 -1
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -0
- 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 +13 -0
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +13 -0
- 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 +13 -0
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs +13 -0
- 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 +13 -0
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +13 -0
- 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 +13 -0
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +13 -0
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -356,6 +356,18 @@ interface AddBackendRequest {
|
|
|
356
356
|
/** Configuration (structure depends on type) */
|
|
357
357
|
config: S3Config | Record<string, unknown>;
|
|
358
358
|
}
|
|
359
|
+
/**
|
|
360
|
+
* Request to update a storage backend
|
|
361
|
+
* Only provided fields are updated. Credentials are preserved if not provided.
|
|
362
|
+
*/
|
|
363
|
+
interface UpdateBackendRequest {
|
|
364
|
+
/** Backend ID to update */
|
|
365
|
+
backendId: string;
|
|
366
|
+
/** New display name (optional) */
|
|
367
|
+
name?: string;
|
|
368
|
+
/** New configuration (optional) - only non-empty fields are updated */
|
|
369
|
+
config?: Partial<S3Config> | Record<string, unknown>;
|
|
370
|
+
}
|
|
359
371
|
/**
|
|
360
372
|
* Object info from list operation
|
|
361
373
|
*/
|
|
@@ -434,6 +446,13 @@ declare class BackendManagement {
|
|
|
434
446
|
* @returns Created backend info
|
|
435
447
|
*/
|
|
436
448
|
add(request: AddBackendRequest): Promise<StorageBackendInfo>;
|
|
449
|
+
/**
|
|
450
|
+
* Update a storage backend
|
|
451
|
+
* Only provided fields are updated. Credentials are preserved if not provided.
|
|
452
|
+
* @param request - Update request with backendId and fields to update
|
|
453
|
+
* @returns Updated backend info
|
|
454
|
+
*/
|
|
455
|
+
update(request: UpdateBackendRequest): Promise<StorageBackendInfo>;
|
|
437
456
|
/**
|
|
438
457
|
* Remove a storage backend
|
|
439
458
|
* @param backendId - Backend ID to remove
|
|
@@ -520,4 +539,4 @@ declare class HaexVaultSdk {
|
|
|
520
539
|
private log;
|
|
521
540
|
}
|
|
522
541
|
|
|
523
|
-
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 S3PublicConfig as g, type StorageObjectInfo as h };
|
|
542
|
+
export { type AddBackendRequest as A, DatabaseAPI as D, FilesystemAPI as F, HaexVaultSdk as H, PermissionsAPI as P, RemoteStorageAPI as R, StorageAPI as S, type UpdateBackendRequest as U, 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 S3PublicConfig as g, type StorageObjectInfo as h };
|
|
@@ -356,6 +356,18 @@ interface AddBackendRequest {
|
|
|
356
356
|
/** Configuration (structure depends on type) */
|
|
357
357
|
config: S3Config | Record<string, unknown>;
|
|
358
358
|
}
|
|
359
|
+
/**
|
|
360
|
+
* Request to update a storage backend
|
|
361
|
+
* Only provided fields are updated. Credentials are preserved if not provided.
|
|
362
|
+
*/
|
|
363
|
+
interface UpdateBackendRequest {
|
|
364
|
+
/** Backend ID to update */
|
|
365
|
+
backendId: string;
|
|
366
|
+
/** New display name (optional) */
|
|
367
|
+
name?: string;
|
|
368
|
+
/** New configuration (optional) - only non-empty fields are updated */
|
|
369
|
+
config?: Partial<S3Config> | Record<string, unknown>;
|
|
370
|
+
}
|
|
359
371
|
/**
|
|
360
372
|
* Object info from list operation
|
|
361
373
|
*/
|
|
@@ -434,6 +446,13 @@ declare class BackendManagement {
|
|
|
434
446
|
* @returns Created backend info
|
|
435
447
|
*/
|
|
436
448
|
add(request: AddBackendRequest): Promise<StorageBackendInfo>;
|
|
449
|
+
/**
|
|
450
|
+
* Update a storage backend
|
|
451
|
+
* Only provided fields are updated. Credentials are preserved if not provided.
|
|
452
|
+
* @param request - Update request with backendId and fields to update
|
|
453
|
+
* @returns Updated backend info
|
|
454
|
+
*/
|
|
455
|
+
update(request: UpdateBackendRequest): Promise<StorageBackendInfo>;
|
|
437
456
|
/**
|
|
438
457
|
* Remove a storage backend
|
|
439
458
|
* @param backendId - Backend ID to remove
|
|
@@ -520,4 +539,4 @@ declare class HaexVaultSdk {
|
|
|
520
539
|
private log;
|
|
521
540
|
}
|
|
522
541
|
|
|
523
|
-
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 S3PublicConfig as g, type StorageObjectInfo as h };
|
|
542
|
+
export { type AddBackendRequest as A, DatabaseAPI as D, FilesystemAPI as F, HaexVaultSdk as H, PermissionsAPI as P, RemoteStorageAPI as R, StorageAPI as S, type UpdateBackendRequest as U, 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 S3PublicConfig as g, type StorageObjectInfo as h };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HaexVaultSdk } from './client-
|
|
2
|
-
export { D as DatabaseAPI, b as DirEntry, a as FileStat, F as FilesystemAPI, P as PermissionsAPI, A as RemoteAddBackendRequest, f as RemoteS3Config, g as RemoteS3PublicConfig, R as RemoteStorageAPI, e as RemoteStorageBackendInfo, h as RemoteStorageObjectInfo, d as SelectFileOptions, c as SelectFolderOptions, W as WebAPI } from './client-
|
|
1
|
+
import { H as HaexVaultSdk } from './client-DTXGxFqD.mjs';
|
|
2
|
+
export { D as DatabaseAPI, b as DirEntry, a as FileStat, F as FilesystemAPI, P as PermissionsAPI, A as RemoteAddBackendRequest, f as RemoteS3Config, g as RemoteS3PublicConfig, R as RemoteStorageAPI, e as RemoteStorageBackendInfo, h as RemoteStorageObjectInfo, U as RemoteUpdateBackendRequest, d as SelectFileOptions, c as SelectFolderOptions, W as WebAPI } from './client-DTXGxFqD.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';
|
|
@@ -125,6 +125,7 @@ declare const HAEXTENSION_METHODS: {
|
|
|
125
125
|
readonly remoteStorage: {
|
|
126
126
|
readonly listBackends: "haextension:remote-storage:list-backends";
|
|
127
127
|
readonly addBackend: "haextension:remote-storage:add-backend";
|
|
128
|
+
readonly updateBackend: "haextension:remote-storage:update-backend";
|
|
128
129
|
readonly removeBackend: "haextension:remote-storage:remove-backend";
|
|
129
130
|
readonly testBackend: "haextension:remote-storage:test-backend";
|
|
130
131
|
readonly upload: "haextension:remote-storage:upload";
|
|
@@ -217,6 +218,7 @@ declare const TAURI_COMMANDS: {
|
|
|
217
218
|
readonly storage: {
|
|
218
219
|
readonly listBackends: "storage_list_backends";
|
|
219
220
|
readonly addBackend: "storage_add_backend";
|
|
221
|
+
readonly updateBackend: "storage_update_backend";
|
|
220
222
|
readonly removeBackend: "storage_remove_backend";
|
|
221
223
|
readonly testBackend: "storage_test_backend";
|
|
222
224
|
readonly upload: "storage_upload";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HaexVaultSdk } from './client-
|
|
2
|
-
export { D as DatabaseAPI, b as DirEntry, a as FileStat, F as FilesystemAPI, P as PermissionsAPI, A as RemoteAddBackendRequest, f as RemoteS3Config, g as RemoteS3PublicConfig, R as RemoteStorageAPI, e as RemoteStorageBackendInfo, h as RemoteStorageObjectInfo, d as SelectFileOptions, c as SelectFolderOptions, W as WebAPI } from './client-
|
|
1
|
+
import { H as HaexVaultSdk } from './client-C_0ajqhQ.js';
|
|
2
|
+
export { D as DatabaseAPI, b as DirEntry, a as FileStat, F as FilesystemAPI, P as PermissionsAPI, A as RemoteAddBackendRequest, f as RemoteS3Config, g as RemoteS3PublicConfig, R as RemoteStorageAPI, e as RemoteStorageBackendInfo, h as RemoteStorageObjectInfo, U as RemoteUpdateBackendRequest, d as SelectFileOptions, c as SelectFolderOptions, W as WebAPI } from './client-C_0ajqhQ.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';
|
|
@@ -125,6 +125,7 @@ declare const HAEXTENSION_METHODS: {
|
|
|
125
125
|
readonly remoteStorage: {
|
|
126
126
|
readonly listBackends: "haextension:remote-storage:list-backends";
|
|
127
127
|
readonly addBackend: "haextension:remote-storage:add-backend";
|
|
128
|
+
readonly updateBackend: "haextension:remote-storage:update-backend";
|
|
128
129
|
readonly removeBackend: "haextension:remote-storage:remove-backend";
|
|
129
130
|
readonly testBackend: "haextension:remote-storage:test-backend";
|
|
130
131
|
readonly upload: "haextension:remote-storage:upload";
|
|
@@ -217,6 +218,7 @@ declare const TAURI_COMMANDS: {
|
|
|
217
218
|
readonly storage: {
|
|
218
219
|
readonly listBackends: "storage_list_backends";
|
|
219
220
|
readonly addBackend: "storage_add_backend";
|
|
221
|
+
readonly updateBackend: "storage_update_backend";
|
|
220
222
|
readonly removeBackend: "storage_remove_backend";
|
|
221
223
|
readonly testBackend: "storage_test_backend";
|
|
222
224
|
readonly upload: "storage_upload";
|
package/dist/index.js
CHANGED
|
@@ -513,6 +513,7 @@ var HAEXTENSION_METHODS = {
|
|
|
513
513
|
// Backend Management
|
|
514
514
|
listBackends: "haextension:remote-storage:list-backends",
|
|
515
515
|
addBackend: "haextension:remote-storage:add-backend",
|
|
516
|
+
updateBackend: "haextension:remote-storage:update-backend",
|
|
516
517
|
removeBackend: "haextension:remote-storage:remove-backend",
|
|
517
518
|
testBackend: "haextension:remote-storage:test-backend",
|
|
518
519
|
// Storage Operations
|
|
@@ -1295,6 +1296,18 @@ var BackendManagement = class {
|
|
|
1295
1296
|
request
|
|
1296
1297
|
);
|
|
1297
1298
|
}
|
|
1299
|
+
/**
|
|
1300
|
+
* Update a storage backend
|
|
1301
|
+
* Only provided fields are updated. Credentials are preserved if not provided.
|
|
1302
|
+
* @param request - Update request with backendId and fields to update
|
|
1303
|
+
* @returns Updated backend info
|
|
1304
|
+
*/
|
|
1305
|
+
async update(request) {
|
|
1306
|
+
return this.client.request(
|
|
1307
|
+
HAEXTENSION_METHODS.remoteStorage.updateBackend,
|
|
1308
|
+
request
|
|
1309
|
+
);
|
|
1310
|
+
}
|
|
1298
1311
|
/**
|
|
1299
1312
|
* Remove a storage backend
|
|
1300
1313
|
* @param backendId - Backend ID to remove
|
|
@@ -1583,6 +1596,7 @@ var TAURI_COMMANDS = {
|
|
|
1583
1596
|
// not extension-specific. All extensions share the same storage backends.
|
|
1584
1597
|
listBackends: "storage_list_backends",
|
|
1585
1598
|
addBackend: "storage_add_backend",
|
|
1599
|
+
updateBackend: "storage_update_backend",
|
|
1586
1600
|
removeBackend: "storage_remove_backend",
|
|
1587
1601
|
testBackend: "storage_test_backend",
|
|
1588
1602
|
// Storage Operations
|