@haex-space/vault-sdk 4.1.0 → 4.2.0
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-Cx4ZyQFL.d.mts → client-7bZyiRwE.d.mts} +98 -26
- package/dist/{client-CD5QZi7F.d.ts → client-BPwsH1so.d.ts} +98 -26
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +22 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -12
- 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 +22 -12
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +22 -12
- 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 +22 -12
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs +22 -12
- 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 +22 -12
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +22 -12
- 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 +22 -12
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +22 -12
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
package/dist/svelte.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as HaexVaultSdk, S as StorageAPI } from './client-
|
|
1
|
+
import { H as HaexVaultSdk, S as StorageAPI } from './client-7bZyiRwE.mjs';
|
|
2
2
|
import * as drizzle_orm_sqlite_proxy from 'drizzle-orm/sqlite-proxy';
|
|
3
3
|
import { Readable } from 'svelte/store';
|
|
4
4
|
import { A as ApplicationContext, E as ExtensionInfo, H as HaexHubConfig } from './types-BwFKGH70.mjs';
|
package/dist/svelte.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as HaexVaultSdk, S as StorageAPI } from './client-
|
|
1
|
+
import { H as HaexVaultSdk, S as StorageAPI } from './client-BPwsH1so.js';
|
|
2
2
|
import * as drizzle_orm_sqlite_proxy from 'drizzle-orm/sqlite-proxy';
|
|
3
3
|
import { Readable } from 'svelte/store';
|
|
4
4
|
import { A as ApplicationContext, E as ExtensionInfo, H as HaexHubConfig } from './types-BwFKGH70.js';
|
package/dist/svelte.js
CHANGED
|
@@ -1373,26 +1373,32 @@ var BackendManagement = class {
|
|
|
1373
1373
|
);
|
|
1374
1374
|
}
|
|
1375
1375
|
/**
|
|
1376
|
-
*
|
|
1377
|
-
*
|
|
1376
|
+
* Propose a new storage. The host asks the user; credentials are entered
|
|
1377
|
+
* only there. Resolves with the new storage, which the extension may then
|
|
1378
|
+
* read and write.
|
|
1379
|
+
* @param request - The proposal, without credentials
|
|
1378
1380
|
* @returns Created backend info
|
|
1379
1381
|
*/
|
|
1380
1382
|
async add(request) {
|
|
1381
1383
|
return this.client.request(
|
|
1382
1384
|
REMOTE_STORAGE_COMMANDS.addBackend,
|
|
1383
|
-
{ request }
|
|
1385
|
+
{ request },
|
|
1386
|
+
// No deadline: the host waits for the user's answer in its dialog.
|
|
1387
|
+
{ timeout: null }
|
|
1384
1388
|
);
|
|
1385
1389
|
}
|
|
1386
1390
|
/**
|
|
1387
|
-
*
|
|
1388
|
-
* Only provided fields are updated
|
|
1391
|
+
* Change a storage after the user confirms it in the host.
|
|
1392
|
+
* Only provided fields are updated; new credentials are entered in the host.
|
|
1389
1393
|
* @param request - Update request with backendId and fields to update
|
|
1390
1394
|
* @returns Updated backend info
|
|
1391
1395
|
*/
|
|
1392
1396
|
async update(request) {
|
|
1393
1397
|
return this.client.request(
|
|
1394
1398
|
REMOTE_STORAGE_COMMANDS.updateBackend,
|
|
1395
|
-
{ request }
|
|
1399
|
+
{ request },
|
|
1400
|
+
// No deadline: the host waits for the user's answer in its dialog.
|
|
1401
|
+
{ timeout: null }
|
|
1396
1402
|
);
|
|
1397
1403
|
}
|
|
1398
1404
|
/**
|
|
@@ -1400,18 +1406,22 @@ var BackendManagement = class {
|
|
|
1400
1406
|
* @param backendId - Backend ID to remove
|
|
1401
1407
|
*/
|
|
1402
1408
|
async remove(backendId) {
|
|
1403
|
-
await this.client.request(
|
|
1404
|
-
|
|
1405
|
-
|
|
1409
|
+
await this.client.request(
|
|
1410
|
+
REMOTE_STORAGE_COMMANDS.removeBackend,
|
|
1411
|
+
{ backendId },
|
|
1412
|
+
{ timeout: null }
|
|
1413
|
+
);
|
|
1406
1414
|
}
|
|
1407
1415
|
/**
|
|
1408
1416
|
* Test connection to a storage backend
|
|
1409
1417
|
* @param backendId - Backend ID to test
|
|
1410
1418
|
*/
|
|
1411
1419
|
async test(backendId) {
|
|
1412
|
-
await this.client.request(
|
|
1413
|
-
|
|
1414
|
-
|
|
1420
|
+
await this.client.request(
|
|
1421
|
+
REMOTE_STORAGE_COMMANDS.testBackend,
|
|
1422
|
+
{ backendId },
|
|
1423
|
+
{ timeout: null }
|
|
1424
|
+
);
|
|
1415
1425
|
}
|
|
1416
1426
|
};
|
|
1417
1427
|
|