@haex-space/vault-sdk 2.5.71 → 2.5.72

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.
@@ -445,14 +445,14 @@ declare class BackendManagement {
445
445
  * @param request - Backend configuration
446
446
  * @returns Created backend info
447
447
  */
448
- add(backendRequest: AddBackendRequest): Promise<StorageBackendInfo>;
448
+ add(request: AddBackendRequest): Promise<StorageBackendInfo>;
449
449
  /**
450
450
  * Update a storage backend
451
451
  * Only provided fields are updated. Credentials are preserved if not provided.
452
452
  * @param request - Update request with backendId and fields to update
453
453
  * @returns Updated backend info
454
454
  */
455
- update(updateRequest: UpdateBackendRequest): Promise<StorageBackendInfo>;
455
+ update(request: UpdateBackendRequest): Promise<StorageBackendInfo>;
456
456
  /**
457
457
  * Remove a storage backend
458
458
  * @param backendId - Backend ID to remove
@@ -445,14 +445,14 @@ declare class BackendManagement {
445
445
  * @param request - Backend configuration
446
446
  * @returns Created backend info
447
447
  */
448
- add(backendRequest: AddBackendRequest): Promise<StorageBackendInfo>;
448
+ add(request: AddBackendRequest): Promise<StorageBackendInfo>;
449
449
  /**
450
450
  * Update a storage backend
451
451
  * Only provided fields are updated. Credentials are preserved if not provided.
452
452
  * @param request - Update request with backendId and fields to update
453
453
  * @returns Updated backend info
454
454
  */
455
- update(updateRequest: UpdateBackendRequest): Promise<StorageBackendInfo>;
455
+ update(request: UpdateBackendRequest): Promise<StorageBackendInfo>;
456
456
  /**
457
457
  * Remove a storage backend
458
458
  * @param backendId - Backend ID to remove
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as HaexVaultSdk } from './client-DvW2oZYC.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-DvW2oZYC.mjs';
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';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as HaexVaultSdk } from './client-CrTdKfuP.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-CrTdKfuP.js';
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';
package/dist/index.js CHANGED
@@ -1332,11 +1332,9 @@ var RemoteStorageAPI = class {
1332
1332
  async upload(backendId, key, data) {
1333
1333
  const base64 = arrayBufferToBase64(data);
1334
1334
  await this.client.request(REMOTE_STORAGE_COMMANDS.upload, {
1335
- request: {
1336
- backendId,
1337
- key,
1338
- data: base64
1339
- }
1335
+ backendId,
1336
+ key,
1337
+ data: base64
1340
1338
  });
1341
1339
  }
1342
1340
  /**
@@ -1348,7 +1346,7 @@ var RemoteStorageAPI = class {
1348
1346
  async download(backendId, key) {
1349
1347
  const base64 = await this.client.request(
1350
1348
  REMOTE_STORAGE_COMMANDS.download,
1351
- { request: { backendId, key } }
1349
+ { backendId, key }
1352
1350
  );
1353
1351
  return base64ToArrayBuffer(base64);
1354
1352
  }
@@ -1359,10 +1357,8 @@ var RemoteStorageAPI = class {
1359
1357
  */
1360
1358
  async delete(backendId, key) {
1361
1359
  await this.client.request(REMOTE_STORAGE_COMMANDS.delete, {
1362
- request: {
1363
- backendId,
1364
- key
1365
- }
1360
+ backendId,
1361
+ key
1366
1362
  });
1367
1363
  }
1368
1364
  /**
@@ -1374,7 +1370,7 @@ var RemoteStorageAPI = class {
1374
1370
  async list(backendId, prefix) {
1375
1371
  return this.client.request(
1376
1372
  REMOTE_STORAGE_COMMANDS.list,
1377
- { request: { backendId, prefix } }
1373
+ { backendId, prefix }
1378
1374
  );
1379
1375
  }
1380
1376
  };
@@ -1395,10 +1391,10 @@ var BackendManagement = class {
1395
1391
  * @param request - Backend configuration
1396
1392
  * @returns Created backend info
1397
1393
  */
1398
- async add(backendRequest) {
1394
+ async add(request) {
1399
1395
  return this.client.request(
1400
1396
  REMOTE_STORAGE_COMMANDS.addBackend,
1401
- { request: backendRequest }
1397
+ request
1402
1398
  );
1403
1399
  }
1404
1400
  /**
@@ -1407,10 +1403,10 @@ var BackendManagement = class {
1407
1403
  * @param request - Update request with backendId and fields to update
1408
1404
  * @returns Updated backend info
1409
1405
  */
1410
- async update(updateRequest) {
1406
+ async update(request) {
1411
1407
  return this.client.request(
1412
1408
  REMOTE_STORAGE_COMMANDS.updateBackend,
1413
- { request: updateRequest }
1409
+ request
1414
1410
  );
1415
1411
  }
1416
1412
  /**
@@ -1419,7 +1415,7 @@ var BackendManagement = class {
1419
1415
  */
1420
1416
  async remove(backendId) {
1421
1417
  await this.client.request(REMOTE_STORAGE_COMMANDS.removeBackend, {
1422
- request: { backendId }
1418
+ backendId
1423
1419
  });
1424
1420
  }
1425
1421
  /**
@@ -1428,7 +1424,7 @@ var BackendManagement = class {
1428
1424
  */
1429
1425
  async test(backendId) {
1430
1426
  await this.client.request(REMOTE_STORAGE_COMMANDS.testBackend, {
1431
- request: { backendId }
1427
+ backendId
1432
1428
  });
1433
1429
  }
1434
1430
  };