@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
|
@@ -950,26 +950,32 @@ var BackendManagement = class {
|
|
|
950
950
|
);
|
|
951
951
|
}
|
|
952
952
|
/**
|
|
953
|
-
*
|
|
954
|
-
*
|
|
953
|
+
* Propose a new storage. The host asks the user; credentials are entered
|
|
954
|
+
* only there. Resolves with the new storage, which the extension may then
|
|
955
|
+
* read and write.
|
|
956
|
+
* @param request - The proposal, without credentials
|
|
955
957
|
* @returns Created backend info
|
|
956
958
|
*/
|
|
957
959
|
async add(request) {
|
|
958
960
|
return this.client.request(
|
|
959
961
|
REMOTE_STORAGE_COMMANDS.addBackend,
|
|
960
|
-
{ request }
|
|
962
|
+
{ request },
|
|
963
|
+
// No deadline: the host waits for the user's answer in its dialog.
|
|
964
|
+
{ timeout: null }
|
|
961
965
|
);
|
|
962
966
|
}
|
|
963
967
|
/**
|
|
964
|
-
*
|
|
965
|
-
* Only provided fields are updated
|
|
968
|
+
* Change a storage after the user confirms it in the host.
|
|
969
|
+
* Only provided fields are updated; new credentials are entered in the host.
|
|
966
970
|
* @param request - Update request with backendId and fields to update
|
|
967
971
|
* @returns Updated backend info
|
|
968
972
|
*/
|
|
969
973
|
async update(request) {
|
|
970
974
|
return this.client.request(
|
|
971
975
|
REMOTE_STORAGE_COMMANDS.updateBackend,
|
|
972
|
-
{ request }
|
|
976
|
+
{ request },
|
|
977
|
+
// No deadline: the host waits for the user's answer in its dialog.
|
|
978
|
+
{ timeout: null }
|
|
973
979
|
);
|
|
974
980
|
}
|
|
975
981
|
/**
|
|
@@ -977,18 +983,22 @@ var BackendManagement = class {
|
|
|
977
983
|
* @param backendId - Backend ID to remove
|
|
978
984
|
*/
|
|
979
985
|
async remove(backendId) {
|
|
980
|
-
await this.client.request(
|
|
981
|
-
|
|
982
|
-
|
|
986
|
+
await this.client.request(
|
|
987
|
+
REMOTE_STORAGE_COMMANDS.removeBackend,
|
|
988
|
+
{ backendId },
|
|
989
|
+
{ timeout: null }
|
|
990
|
+
);
|
|
983
991
|
}
|
|
984
992
|
/**
|
|
985
993
|
* Test connection to a storage backend
|
|
986
994
|
* @param backendId - Backend ID to test
|
|
987
995
|
*/
|
|
988
996
|
async test(backendId) {
|
|
989
|
-
await this.client.request(
|
|
990
|
-
|
|
991
|
-
|
|
997
|
+
await this.client.request(
|
|
998
|
+
REMOTE_STORAGE_COMMANDS.testBackend,
|
|
999
|
+
{ backendId },
|
|
1000
|
+
{ timeout: null }
|
|
1001
|
+
);
|
|
992
1002
|
}
|
|
993
1003
|
};
|
|
994
1004
|
|