@phala/cloud 0.0.12 → 0.1.1-beta.1
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/actions/{add_compose_hash.d.ts → blockchains/add_compose_hash.d.ts} +6 -7
- package/dist/actions/{deploy_app_auth.d.ts → blockchains/deploy_app_auth.d.ts} +6 -7
- package/dist/actions/{commit_cvm_compose_file_update.d.ts → cvms/commit_cvm_compose_file_update.d.ts} +25 -13
- package/dist/actions/{commit_cvm_provision.d.ts → cvms/commit_cvm_provision.d.ts} +139 -13
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +225 -0
- package/dist/actions/{get_cvm_info.d.ts → cvms/get_cvm_info.d.ts} +21 -12
- package/dist/actions/{get_cvm_list.d.ts → cvms/get_cvm_list.d.ts} +187 -39
- package/dist/actions/{provision_cvm.d.ts → cvms/provision_cvm.d.ts} +75 -20
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +768 -0
- package/dist/actions/get_available_nodes.d.ts +319 -7
- package/dist/actions/get_current_user.d.ts +35 -7
- package/dist/actions/index.d.ts +17 -18
- package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +66 -0
- package/dist/actions/kms/get_kms_info.d.ts +55 -0
- package/dist/actions/{get_kms_list.d.ts → kms/get_kms_list.d.ts} +44 -8
- package/dist/actions/list-instance-types.d.ts +69 -10
- package/dist/actions/workspaces/get_workspace.d.ts +33 -8
- package/dist/actions/workspaces/list_workspaces.d.ts +92 -7
- package/dist/chunk-O5QBIXBA.mjs +1128 -0
- package/dist/client.d.ts +16 -1
- package/dist/create-client.d.ts +311 -0
- package/dist/create-client.js +1143 -0
- package/dist/create-client.mjs +74 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +504 -722
- package/dist/index.mjs +135 -1351
- package/dist/parse_dotenv.d.ts +0 -1
- package/dist/types/app_compose.d.ts +0 -1
- package/dist/types/client.d.ts +0 -1
- package/dist/types/common.d.ts +17 -4
- package/dist/types/cvm_info.d.ts +34 -35
- package/dist/types/index.d.ts +0 -1
- package/dist/types/kms_info.d.ts +0 -1
- package/dist/types/supported_chains.d.ts +0 -1
- package/dist/utils/as-hex.d.ts +0 -1
- package/dist/utils/client-factories.d.ts +0 -1
- package/dist/utils/define-action.d.ts +61 -0
- package/dist/utils/get_compose_hash.d.ts +0 -1
- package/dist/utils/get_error_message.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/network.d.ts +0 -1
- package/dist/utils/transaction.d.ts +0 -1
- package/dist/utils/validate-parameters.d.ts +5 -5
- package/package.json +70 -66
- package/dist/actions/add_compose_hash.d.ts.map +0 -1
- package/dist/actions/commit_cvm_compose_file_update.d.ts.map +0 -1
- package/dist/actions/commit_cvm_provision.d.ts.map +0 -1
- package/dist/actions/deploy_app_auth.d.ts.map +0 -1
- package/dist/actions/get_app_env_encrypt_pubkey.d.ts +0 -30
- package/dist/actions/get_app_env_encrypt_pubkey.d.ts.map +0 -1
- package/dist/actions/get_available_nodes.d.ts.map +0 -1
- package/dist/actions/get_current_user.d.ts.map +0 -1
- package/dist/actions/get_cvm_compose_file.d.ts +0 -122
- package/dist/actions/get_cvm_compose_file.d.ts.map +0 -1
- package/dist/actions/get_cvm_info.d.ts.map +0 -1
- package/dist/actions/get_cvm_list.d.ts.map +0 -1
- package/dist/actions/get_kms_info.d.ts +0 -34
- package/dist/actions/get_kms_info.d.ts.map +0 -1
- package/dist/actions/get_kms_list.d.ts.map +0 -1
- package/dist/actions/index.d.ts.map +0 -1
- package/dist/actions/list-instance-types.d.ts.map +0 -1
- package/dist/actions/provision_cvm.d.ts.map +0 -1
- package/dist/actions/provision_cvm_compose_file_update.d.ts +0 -413
- package/dist/actions/provision_cvm_compose_file_update.d.ts.map +0 -1
- package/dist/actions/workspaces/get_workspace.d.ts.map +0 -1
- package/dist/actions/workspaces/list_workspaces.d.ts.map +0 -1
- package/dist/client.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/parse_dotenv.d.ts.map +0 -1
- package/dist/types/app_compose.d.ts.map +0 -1
- package/dist/types/client.d.ts.map +0 -1
- package/dist/types/common.d.ts.map +0 -1
- package/dist/types/cvm_info.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/kms_info.d.ts.map +0 -1
- package/dist/types/supported_chains.d.ts.map +0 -1
- package/dist/utils/as-hex.d.ts.map +0 -1
- package/dist/utils/client-factories.d.ts.map +0 -1
- package/dist/utils/get_compose_hash.d.ts.map +0 -1
- package/dist/utils/get_error_message.d.ts.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/network.d.ts.map +0 -1
- package/dist/utils/transaction.d.ts.map +0 -1
- package/dist/utils/validate-parameters.d.ts.map +0 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import {
|
|
2
|
+
commitCvmComposeFileUpdate,
|
|
3
|
+
commitCvmProvision,
|
|
4
|
+
createClient,
|
|
5
|
+
getAppEnvEncryptPubKey,
|
|
6
|
+
getAvailableNodes,
|
|
7
|
+
getCurrentUser,
|
|
8
|
+
getCvmComposeFile,
|
|
9
|
+
getCvmInfo,
|
|
10
|
+
getCvmList,
|
|
11
|
+
getKmsInfo,
|
|
12
|
+
getKmsList,
|
|
13
|
+
getWorkspace,
|
|
14
|
+
listInstanceTypes,
|
|
15
|
+
listWorkspaces,
|
|
16
|
+
provisionCvm,
|
|
17
|
+
provisionCvmComposeFileUpdate,
|
|
18
|
+
safeCommitCvmComposeFileUpdate,
|
|
19
|
+
safeCommitCvmProvision,
|
|
20
|
+
safeGetAppEnvEncryptPubKey,
|
|
21
|
+
safeGetAvailableNodes,
|
|
22
|
+
safeGetCurrentUser,
|
|
23
|
+
safeGetCvmComposeFile,
|
|
24
|
+
safeGetCvmInfo,
|
|
25
|
+
safeGetCvmList,
|
|
26
|
+
safeGetKmsInfo,
|
|
27
|
+
safeGetKmsList,
|
|
28
|
+
safeGetWorkspace,
|
|
29
|
+
safeListInstanceTypes,
|
|
30
|
+
safeListWorkspaces,
|
|
31
|
+
safeProvisionCvm,
|
|
32
|
+
safeProvisionCvmComposeFileUpdate
|
|
33
|
+
} from "./chunk-O5QBIXBA.mjs";
|
|
34
|
+
|
|
35
|
+
// src/create-client.ts
|
|
36
|
+
function createClient2(config = {}) {
|
|
37
|
+
const client = createClient(config);
|
|
38
|
+
const allActions = {
|
|
39
|
+
getCurrentUser,
|
|
40
|
+
safeGetCurrentUser,
|
|
41
|
+
getAvailableNodes,
|
|
42
|
+
safeGetAvailableNodes,
|
|
43
|
+
listInstanceTypes,
|
|
44
|
+
safeListInstanceTypes,
|
|
45
|
+
listWorkspaces,
|
|
46
|
+
safeListWorkspaces,
|
|
47
|
+
getWorkspace,
|
|
48
|
+
safeGetWorkspace,
|
|
49
|
+
getCvmInfo,
|
|
50
|
+
safeGetCvmInfo,
|
|
51
|
+
getCvmList,
|
|
52
|
+
safeGetCvmList,
|
|
53
|
+
provisionCvm,
|
|
54
|
+
safeProvisionCvm,
|
|
55
|
+
commitCvmProvision,
|
|
56
|
+
safeCommitCvmProvision,
|
|
57
|
+
getCvmComposeFile,
|
|
58
|
+
safeGetCvmComposeFile,
|
|
59
|
+
provisionCvmComposeFileUpdate,
|
|
60
|
+
safeProvisionCvmComposeFileUpdate,
|
|
61
|
+
commitCvmComposeFileUpdate,
|
|
62
|
+
safeCommitCvmComposeFileUpdate,
|
|
63
|
+
getKmsInfo,
|
|
64
|
+
safeGetKmsInfo,
|
|
65
|
+
getKmsList,
|
|
66
|
+
safeGetKmsList,
|
|
67
|
+
getAppEnvEncryptPubKey,
|
|
68
|
+
safeGetAppEnvEncryptPubKey
|
|
69
|
+
};
|
|
70
|
+
return client.extend(allActions);
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
createClient2 as createClient
|
|
74
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ export { createClient, type Client } from "./client";
|
|
|
2
2
|
export * from "./types";
|
|
3
3
|
export * from "./actions";
|
|
4
4
|
export * from "./utils";
|
|
5
|
+
export { defineAction, defineSimpleAction } from "./utils/define-action";
|
|
5
6
|
export { parseEnv, parseEnvVars } from "./parse_dotenv";
|
|
6
7
|
export { encryptEnvVars, type EnvVar, } from "@phala/dstack-sdk/encrypt-env-vars";
|
|
7
8
|
export { getComposeHash } from "@phala/dstack-sdk/get-compose-hash";
|
|
8
9
|
export { verifyEnvEncryptPublicKey } from "@phala/dstack-sdk/verify-env-encrypt-public-key";
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|