@haex-space/vault-sdk 2.5.52 → 2.5.55
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-Bgu2k1yJ.d.ts → client-C_0ajqhQ.d.ts} +33 -1
- package/dist/{client-BDxVgihp.d.mts → client-DTXGxFqD.d.mts} +33 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -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
|
@@ -304,6 +304,17 @@ declare class PermissionsAPI {
|
|
|
304
304
|
checkFilesystemAsync(path: string, operation: "read" | "write"): Promise<boolean>;
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
+
/**
|
|
308
|
+
* S3 config without secrets (for display purposes)
|
|
309
|
+
*/
|
|
310
|
+
interface S3PublicConfig {
|
|
311
|
+
/** Endpoint URL (optional) */
|
|
312
|
+
endpoint?: string;
|
|
313
|
+
/** Region */
|
|
314
|
+
region: string;
|
|
315
|
+
/** Bucket name */
|
|
316
|
+
bucket: string;
|
|
317
|
+
}
|
|
307
318
|
/**
|
|
308
319
|
* Storage backend info (public, without credentials)
|
|
309
320
|
*/
|
|
@@ -314,6 +325,8 @@ interface StorageBackendInfo {
|
|
|
314
325
|
name: string;
|
|
315
326
|
enabled: boolean;
|
|
316
327
|
createdAt: string;
|
|
328
|
+
/** Public config without secrets (endpoint, bucket, region) */
|
|
329
|
+
config?: S3PublicConfig;
|
|
317
330
|
}
|
|
318
331
|
/**
|
|
319
332
|
* S3-compatible backend configuration
|
|
@@ -343,6 +356,18 @@ interface AddBackendRequest {
|
|
|
343
356
|
/** Configuration (structure depends on type) */
|
|
344
357
|
config: S3Config | Record<string, unknown>;
|
|
345
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
|
+
}
|
|
346
371
|
/**
|
|
347
372
|
* Object info from list operation
|
|
348
373
|
*/
|
|
@@ -421,6 +446,13 @@ declare class BackendManagement {
|
|
|
421
446
|
* @returns Created backend info
|
|
422
447
|
*/
|
|
423
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>;
|
|
424
456
|
/**
|
|
425
457
|
* Remove a storage backend
|
|
426
458
|
* @param backendId - Backend ID to remove
|
|
@@ -507,4 +539,4 @@ declare class HaexVaultSdk {
|
|
|
507
539
|
private log;
|
|
508
540
|
}
|
|
509
541
|
|
|
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
|
|
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 };
|
|
@@ -304,6 +304,17 @@ declare class PermissionsAPI {
|
|
|
304
304
|
checkFilesystemAsync(path: string, operation: "read" | "write"): Promise<boolean>;
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
+
/**
|
|
308
|
+
* S3 config without secrets (for display purposes)
|
|
309
|
+
*/
|
|
310
|
+
interface S3PublicConfig {
|
|
311
|
+
/** Endpoint URL (optional) */
|
|
312
|
+
endpoint?: string;
|
|
313
|
+
/** Region */
|
|
314
|
+
region: string;
|
|
315
|
+
/** Bucket name */
|
|
316
|
+
bucket: string;
|
|
317
|
+
}
|
|
307
318
|
/**
|
|
308
319
|
* Storage backend info (public, without credentials)
|
|
309
320
|
*/
|
|
@@ -314,6 +325,8 @@ interface StorageBackendInfo {
|
|
|
314
325
|
name: string;
|
|
315
326
|
enabled: boolean;
|
|
316
327
|
createdAt: string;
|
|
328
|
+
/** Public config without secrets (endpoint, bucket, region) */
|
|
329
|
+
config?: S3PublicConfig;
|
|
317
330
|
}
|
|
318
331
|
/**
|
|
319
332
|
* S3-compatible backend configuration
|
|
@@ -343,6 +356,18 @@ interface AddBackendRequest {
|
|
|
343
356
|
/** Configuration (structure depends on type) */
|
|
344
357
|
config: S3Config | Record<string, unknown>;
|
|
345
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
|
+
}
|
|
346
371
|
/**
|
|
347
372
|
* Object info from list operation
|
|
348
373
|
*/
|
|
@@ -421,6 +446,13 @@ declare class BackendManagement {
|
|
|
421
446
|
* @returns Created backend info
|
|
422
447
|
*/
|
|
423
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>;
|
|
424
456
|
/**
|
|
425
457
|
* Remove a storage backend
|
|
426
458
|
* @param backendId - Backend ID to remove
|
|
@@ -507,4 +539,4 @@ declare class HaexVaultSdk {
|
|
|
507
539
|
private log;
|
|
508
540
|
}
|
|
509
541
|
|
|
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
|
|
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, R as RemoteStorageAPI, e as RemoteStorageBackendInfo,
|
|
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";
|
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, R as RemoteStorageAPI, e as RemoteStorageBackendInfo,
|
|
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";
|
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
|