@haex-space/vault-sdk 2.5.70 → 2.5.71
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-C_0ajqhQ.d.ts → client-CrTdKfuP.d.ts} +2 -2
- package/dist/{client-DTXGxFqD.d.mts → client-DvW2oZYC.d.mts} +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +17 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -13
- 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 +17 -13
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +17 -13
- 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 +17 -13
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs +17 -13
- 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 +17 -13
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +17 -13
- 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 +17 -13
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +17 -13
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -445,14 +445,14 @@ declare class BackendManagement {
|
|
|
445
445
|
* @param request - Backend configuration
|
|
446
446
|
* @returns Created backend info
|
|
447
447
|
*/
|
|
448
|
-
add(
|
|
448
|
+
add(backendRequest: 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(
|
|
455
|
+
update(updateRequest: 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(
|
|
448
|
+
add(backendRequest: 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(
|
|
455
|
+
update(updateRequest: 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-
|
|
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-
|
|
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';
|
|
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-
|
|
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-
|
|
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';
|
|
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,9 +1332,11 @@ 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
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1335
|
+
request: {
|
|
1336
|
+
backendId,
|
|
1337
|
+
key,
|
|
1338
|
+
data: base64
|
|
1339
|
+
}
|
|
1338
1340
|
});
|
|
1339
1341
|
}
|
|
1340
1342
|
/**
|
|
@@ -1346,7 +1348,7 @@ var RemoteStorageAPI = class {
|
|
|
1346
1348
|
async download(backendId, key) {
|
|
1347
1349
|
const base64 = await this.client.request(
|
|
1348
1350
|
REMOTE_STORAGE_COMMANDS.download,
|
|
1349
|
-
{ backendId, key }
|
|
1351
|
+
{ request: { backendId, key } }
|
|
1350
1352
|
);
|
|
1351
1353
|
return base64ToArrayBuffer(base64);
|
|
1352
1354
|
}
|
|
@@ -1357,8 +1359,10 @@ var RemoteStorageAPI = class {
|
|
|
1357
1359
|
*/
|
|
1358
1360
|
async delete(backendId, key) {
|
|
1359
1361
|
await this.client.request(REMOTE_STORAGE_COMMANDS.delete, {
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
+
request: {
|
|
1363
|
+
backendId,
|
|
1364
|
+
key
|
|
1365
|
+
}
|
|
1362
1366
|
});
|
|
1363
1367
|
}
|
|
1364
1368
|
/**
|
|
@@ -1370,7 +1374,7 @@ var RemoteStorageAPI = class {
|
|
|
1370
1374
|
async list(backendId, prefix) {
|
|
1371
1375
|
return this.client.request(
|
|
1372
1376
|
REMOTE_STORAGE_COMMANDS.list,
|
|
1373
|
-
{ backendId, prefix }
|
|
1377
|
+
{ request: { backendId, prefix } }
|
|
1374
1378
|
);
|
|
1375
1379
|
}
|
|
1376
1380
|
};
|
|
@@ -1391,10 +1395,10 @@ var BackendManagement = class {
|
|
|
1391
1395
|
* @param request - Backend configuration
|
|
1392
1396
|
* @returns Created backend info
|
|
1393
1397
|
*/
|
|
1394
|
-
async add(
|
|
1398
|
+
async add(backendRequest) {
|
|
1395
1399
|
return this.client.request(
|
|
1396
1400
|
REMOTE_STORAGE_COMMANDS.addBackend,
|
|
1397
|
-
request
|
|
1401
|
+
{ request: backendRequest }
|
|
1398
1402
|
);
|
|
1399
1403
|
}
|
|
1400
1404
|
/**
|
|
@@ -1403,10 +1407,10 @@ var BackendManagement = class {
|
|
|
1403
1407
|
* @param request - Update request with backendId and fields to update
|
|
1404
1408
|
* @returns Updated backend info
|
|
1405
1409
|
*/
|
|
1406
|
-
async update(
|
|
1410
|
+
async update(updateRequest) {
|
|
1407
1411
|
return this.client.request(
|
|
1408
1412
|
REMOTE_STORAGE_COMMANDS.updateBackend,
|
|
1409
|
-
request
|
|
1413
|
+
{ request: updateRequest }
|
|
1410
1414
|
);
|
|
1411
1415
|
}
|
|
1412
1416
|
/**
|
|
@@ -1415,7 +1419,7 @@ var BackendManagement = class {
|
|
|
1415
1419
|
*/
|
|
1416
1420
|
async remove(backendId) {
|
|
1417
1421
|
await this.client.request(REMOTE_STORAGE_COMMANDS.removeBackend, {
|
|
1418
|
-
backendId
|
|
1422
|
+
request: { backendId }
|
|
1419
1423
|
});
|
|
1420
1424
|
}
|
|
1421
1425
|
/**
|
|
@@ -1424,7 +1428,7 @@ var BackendManagement = class {
|
|
|
1424
1428
|
*/
|
|
1425
1429
|
async test(backendId) {
|
|
1426
1430
|
await this.client.request(REMOTE_STORAGE_COMMANDS.testBackend, {
|
|
1427
|
-
backendId
|
|
1431
|
+
request: { backendId }
|
|
1428
1432
|
});
|
|
1429
1433
|
}
|
|
1430
1434
|
};
|