@phala/cloud 0.1.0 → 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} +1 -2
- package/dist/actions/{deploy_app_auth.d.ts → blockchains/deploy_app_auth.d.ts} +1 -2
- package/dist/actions/{commit_cvm_compose_file_update.d.ts → cvms/commit_cvm_compose_file_update.d.ts} +10 -11
- package/dist/actions/{commit_cvm_provision.d.ts → cvms/commit_cvm_provision.d.ts} +14 -15
- package/dist/actions/{get_cvm_compose_file.d.ts → cvms/get_cvm_compose_file.d.ts} +74 -6
- package/dist/actions/cvms/get_cvm_info.d.ts +85 -0
- package/dist/actions/{get_cvm_list.d.ts → cvms/get_cvm_list.d.ts} +48 -49
- package/dist/actions/{provision_cvm.d.ts → cvms/provision_cvm.d.ts} +16 -17
- package/dist/actions/{provision_cvm_compose_file_update.d.ts → cvms/provision_cvm_compose_file_update.d.ts} +153 -18
- package/dist/actions/get_available_nodes.d.ts +0 -1
- package/dist/actions/get_current_user.d.ts +35 -16
- package/dist/actions/index.d.ts +13 -14
- package/dist/actions/{get_app_env_encrypt_pubkey.d.ts → kms/get_app_env_encrypt_pubkey.d.ts} +8 -9
- package/dist/actions/{get_kms_info.d.ts → kms/get_kms_info.d.ts} +6 -22
- package/dist/actions/{get_kms_list.d.ts → kms/get_kms_list.d.ts} +6 -35
- package/dist/actions/list-instance-types.d.ts +0 -1
- package/dist/actions/workspaces/get_workspace.d.ts +0 -1
- package/dist/actions/workspaces/list_workspaces.d.ts +0 -1
- package/dist/chunk-O5QBIXBA.mjs +1128 -0
- package/dist/client.d.ts +0 -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 +0 -1
- package/dist/index.js +870 -888
- package/dist/index.mjs +126 -1133
- 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 +0 -1
- 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 +7 -8
- 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 +0 -1
- 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.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.map +0 -1
- package/dist/actions/get_cvm_info.d.ts +0 -172
- 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.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.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/define-action.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
package/dist/client.d.ts
CHANGED
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { type Client } from "./client";
|
|
2
|
+
import type { ClientConfig } from "./types/client";
|
|
3
|
+
/**
|
|
4
|
+
* Create a full-featured Phala Cloud client with all actions
|
|
5
|
+
*
|
|
6
|
+
* This is the default client creation function with all methods built-in.
|
|
7
|
+
* All actions are available as methods on the client instance.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import { createClient } from '@phala/cloud'
|
|
12
|
+
*
|
|
13
|
+
* const client = createClient({ apiKey: 'your-api-key' })
|
|
14
|
+
*
|
|
15
|
+
* // All actions available as methods
|
|
16
|
+
* const user = await client.getCurrentUser()
|
|
17
|
+
* const cvms = await client.getCvmList()
|
|
18
|
+
* const result = await client.provisionCvm({...})
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* For tree-shaking optimization, use `createBaseClient` with individual action imports:
|
|
22
|
+
* ```typescript
|
|
23
|
+
* import { createBaseClient, getCurrentUser } from '@phala/cloud'
|
|
24
|
+
*
|
|
25
|
+
* const client = createBaseClient({ apiKey: 'your-api-key' })
|
|
26
|
+
* const user = await getCurrentUser(client)
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @param config - Client configuration
|
|
30
|
+
* @returns Client extended with all available actions
|
|
31
|
+
*/
|
|
32
|
+
export declare function createClient(config?: ClientConfig): {
|
|
33
|
+
readonly config: ClientConfig;
|
|
34
|
+
readonly raw: import("ofetch").$Fetch;
|
|
35
|
+
get: <T = unknown>(request: import("ofetch").FetchRequest, options?: Omit<import("ofetch").FetchOptions, "method">) => Promise<T>;
|
|
36
|
+
post: <T = unknown>(request: import("ofetch").FetchRequest, body?: RequestInit["body"] | Record<string, unknown>, options?: Omit<import("ofetch").FetchOptions, "method" | "body">) => Promise<T>;
|
|
37
|
+
put: <T = unknown>(request: import("ofetch").FetchRequest, body?: RequestInit["body"] | Record<string, unknown>, options?: Omit<import("ofetch").FetchOptions, "method" | "body">) => Promise<T>;
|
|
38
|
+
patch: <T = unknown>(request: import("ofetch").FetchRequest, body?: RequestInit["body"] | Record<string, unknown>, options?: Omit<import("ofetch").FetchOptions, "method" | "body">) => Promise<T>;
|
|
39
|
+
delete: <T = unknown>(request: import("ofetch").FetchRequest, options?: Omit<import("ofetch").FetchOptions, "method">) => Promise<T>;
|
|
40
|
+
safeGet: <T = unknown>(request: import("ofetch").FetchRequest, options?: Omit<import("ofetch").FetchOptions, "method">) => Promise<import("./client").SafeResult<T, import("./types").RequestError>>;
|
|
41
|
+
safePost: <T = unknown>(request: import("ofetch").FetchRequest, body?: RequestInit["body"] | Record<string, unknown>, options?: Omit<import("ofetch").FetchOptions, "method" | "body">) => Promise<import("./client").SafeResult<T, import("./types").RequestError>>;
|
|
42
|
+
safePut: <T = unknown>(request: import("ofetch").FetchRequest, body?: RequestInit["body"] | Record<string, unknown>, options?: Omit<import("ofetch").FetchOptions, "method" | "body">) => Promise<import("./client").SafeResult<T, import("./types").RequestError>>;
|
|
43
|
+
safePatch: <T = unknown>(request: import("ofetch").FetchRequest, body?: RequestInit["body"] | Record<string, unknown>, options?: Omit<import("ofetch").FetchOptions, "method" | "body">) => Promise<import("./client").SafeResult<T, import("./types").RequestError>>;
|
|
44
|
+
safeDelete: <T = unknown>(request: import("ofetch").FetchRequest, options?: Omit<import("ofetch").FetchOptions, "method">) => Promise<import("./client").SafeResult<T, import("./types").RequestError>>;
|
|
45
|
+
extend: <TActions extends Record<string, unknown>>(actions: TActions | ((client: Client) => TActions)) => Client & {
|
|
46
|
+
readonly getCurrentUser: () => Promise<unknown>;
|
|
47
|
+
readonly safeGetCurrentUser: () => Promise<import("./client").SafeResult<unknown>>;
|
|
48
|
+
readonly getAvailableNodes: () => Promise<unknown>;
|
|
49
|
+
readonly safeGetAvailableNodes: () => Promise<import("./client").SafeResult<unknown>>;
|
|
50
|
+
readonly listInstanceTypes: () => Promise<unknown>;
|
|
51
|
+
readonly safeListInstanceTypes: () => Promise<import("./client").SafeResult<unknown>>;
|
|
52
|
+
readonly listWorkspaces: () => Promise<unknown>;
|
|
53
|
+
readonly safeListWorkspaces: () => Promise<import("./client").SafeResult<unknown>>;
|
|
54
|
+
readonly getWorkspace: (params: string, parameters: {
|
|
55
|
+
schema: false;
|
|
56
|
+
}) => Promise<unknown>;
|
|
57
|
+
readonly safeGetWorkspace: (params: string, parameters: {
|
|
58
|
+
schema: false;
|
|
59
|
+
}) => Promise<import("./client").SafeResult<unknown>>;
|
|
60
|
+
readonly getCvmInfo: (params: import("./actions").GetCvmInfoRequest, parameters: {
|
|
61
|
+
schema: false;
|
|
62
|
+
}) => Promise<unknown>;
|
|
63
|
+
readonly safeGetCvmInfo: (params: import("./actions").GetCvmInfoRequest, parameters: {
|
|
64
|
+
schema: false;
|
|
65
|
+
}) => Promise<import("./client").SafeResult<unknown>>;
|
|
66
|
+
readonly getCvmList: () => Promise<unknown>;
|
|
67
|
+
readonly safeGetCvmList: () => Promise<import("./client").SafeResult<unknown>>;
|
|
68
|
+
readonly provisionCvm: (params: import("./actions").ProvisionCvmRequest, parameters: {
|
|
69
|
+
schema: false;
|
|
70
|
+
}) => Promise<unknown>;
|
|
71
|
+
readonly safeProvisionCvm: (params: import("./actions").ProvisionCvmRequest, parameters: {
|
|
72
|
+
schema: false;
|
|
73
|
+
}) => Promise<import("./client").SafeResult<unknown>>;
|
|
74
|
+
readonly commitCvmProvision: (params: import("zod").objectOutputType<{
|
|
75
|
+
encrypted_env: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
76
|
+
app_id: import("zod").ZodString;
|
|
77
|
+
compose_hash: import("zod").ZodOptional<import("zod").ZodString>;
|
|
78
|
+
kms_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
79
|
+
contract_address: import("zod").ZodOptional<import("zod").ZodString>;
|
|
80
|
+
deployer_address: import("zod").ZodOptional<import("zod").ZodString>;
|
|
81
|
+
env_keys: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>>;
|
|
82
|
+
}, import("zod").ZodTypeAny, "passthrough">, parameters: {
|
|
83
|
+
schema: false;
|
|
84
|
+
}) => Promise<unknown>;
|
|
85
|
+
readonly safeCommitCvmProvision: (params: import("zod").objectOutputType<{
|
|
86
|
+
encrypted_env: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
87
|
+
app_id: import("zod").ZodString;
|
|
88
|
+
compose_hash: import("zod").ZodOptional<import("zod").ZodString>;
|
|
89
|
+
kms_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
90
|
+
contract_address: import("zod").ZodOptional<import("zod").ZodString>;
|
|
91
|
+
deployer_address: import("zod").ZodOptional<import("zod").ZodString>;
|
|
92
|
+
env_keys: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>>;
|
|
93
|
+
}, import("zod").ZodTypeAny, "passthrough">, parameters: {
|
|
94
|
+
schema: false;
|
|
95
|
+
}) => Promise<import("./client").SafeResult<unknown>>;
|
|
96
|
+
readonly getCvmComposeFile: (params: import("./actions").GetCvmComposeFileRequest, parameters: {
|
|
97
|
+
schema: false;
|
|
98
|
+
}) => Promise<unknown>;
|
|
99
|
+
readonly safeGetCvmComposeFile: (params: import("./actions").GetCvmComposeFileRequest, parameters: {
|
|
100
|
+
schema: false;
|
|
101
|
+
}) => Promise<import("./client").SafeResult<unknown>>;
|
|
102
|
+
readonly provisionCvmComposeFileUpdate: (params: {
|
|
103
|
+
app_compose: {
|
|
104
|
+
docker_compose_file: string;
|
|
105
|
+
name?: string | undefined;
|
|
106
|
+
public_sysinfo?: boolean | undefined;
|
|
107
|
+
public_logs?: boolean | undefined;
|
|
108
|
+
allowed_envs?: string[] | undefined;
|
|
109
|
+
pre_launch_script?: string | undefined;
|
|
110
|
+
kms_enabled?: boolean | undefined;
|
|
111
|
+
tproxy_enabled?: boolean | undefined;
|
|
112
|
+
manifest_version?: number | undefined;
|
|
113
|
+
features?: string[] | undefined;
|
|
114
|
+
} & {
|
|
115
|
+
[k: string]: unknown;
|
|
116
|
+
};
|
|
117
|
+
id?: string | undefined;
|
|
118
|
+
app_id?: string | undefined;
|
|
119
|
+
instance_id?: string | undefined;
|
|
120
|
+
uuid?: string | undefined;
|
|
121
|
+
update_env_vars?: boolean | null | undefined;
|
|
122
|
+
}, parameters: {
|
|
123
|
+
schema: false;
|
|
124
|
+
}) => Promise<unknown>;
|
|
125
|
+
readonly safeProvisionCvmComposeFileUpdate: (params: {
|
|
126
|
+
app_compose: {
|
|
127
|
+
docker_compose_file: string;
|
|
128
|
+
name?: string | undefined;
|
|
129
|
+
public_sysinfo?: boolean | undefined;
|
|
130
|
+
public_logs?: boolean | undefined;
|
|
131
|
+
allowed_envs?: string[] | undefined;
|
|
132
|
+
pre_launch_script?: string | undefined;
|
|
133
|
+
kms_enabled?: boolean | undefined;
|
|
134
|
+
tproxy_enabled?: boolean | undefined;
|
|
135
|
+
manifest_version?: number | undefined;
|
|
136
|
+
features?: string[] | undefined;
|
|
137
|
+
} & {
|
|
138
|
+
[k: string]: unknown;
|
|
139
|
+
};
|
|
140
|
+
id?: string | undefined;
|
|
141
|
+
app_id?: string | undefined;
|
|
142
|
+
instance_id?: string | undefined;
|
|
143
|
+
uuid?: string | undefined;
|
|
144
|
+
update_env_vars?: boolean | null | undefined;
|
|
145
|
+
}, parameters: {
|
|
146
|
+
schema: false;
|
|
147
|
+
}) => Promise<import("./client").SafeResult<unknown>>;
|
|
148
|
+
readonly commitCvmComposeFileUpdate: (params: import("./actions").CommitCvmComposeFileUpdateRequest, parameters: {
|
|
149
|
+
schema: false;
|
|
150
|
+
}) => Promise<unknown>;
|
|
151
|
+
readonly safeCommitCvmComposeFileUpdate: (params: import("./actions").CommitCvmComposeFileUpdateRequest, parameters: {
|
|
152
|
+
schema: false;
|
|
153
|
+
}) => Promise<import("./client").SafeResult<unknown>>;
|
|
154
|
+
readonly getKmsInfo: (params: {
|
|
155
|
+
kms_id: string;
|
|
156
|
+
}, parameters: {
|
|
157
|
+
schema: false;
|
|
158
|
+
}) => Promise<unknown>;
|
|
159
|
+
readonly safeGetKmsInfo: (params: {
|
|
160
|
+
kms_id: string;
|
|
161
|
+
}, parameters: {
|
|
162
|
+
schema: false;
|
|
163
|
+
}) => Promise<import("./client").SafeResult<unknown>>;
|
|
164
|
+
readonly getKmsList: () => Promise<unknown>;
|
|
165
|
+
readonly safeGetKmsList: () => Promise<import("./client").SafeResult<unknown>>;
|
|
166
|
+
readonly getAppEnvEncryptPubKey: (params: {
|
|
167
|
+
app_id: string;
|
|
168
|
+
kms: string;
|
|
169
|
+
}, parameters: {
|
|
170
|
+
schema: false;
|
|
171
|
+
}) => Promise<unknown>;
|
|
172
|
+
readonly safeGetAppEnvEncryptPubKey: (params: {
|
|
173
|
+
app_id: string;
|
|
174
|
+
kms: string;
|
|
175
|
+
}, parameters: {
|
|
176
|
+
schema: false;
|
|
177
|
+
}) => Promise<import("./client").SafeResult<unknown>>;
|
|
178
|
+
} & { [K_1 in keyof TActions]: TActions[K_1] extends (client: Client) => infer R ? () => R : TActions[K_1] extends (client: Client, ...args: infer P) => infer R ? (...args: P) => R : never; } extends infer T ? { [K in keyof T]: T[K]; } : never;
|
|
179
|
+
readonly getCurrentUser: () => Promise<unknown>;
|
|
180
|
+
readonly safeGetCurrentUser: () => Promise<import("./client").SafeResult<unknown>>;
|
|
181
|
+
readonly getAvailableNodes: () => Promise<unknown>;
|
|
182
|
+
readonly safeGetAvailableNodes: () => Promise<import("./client").SafeResult<unknown>>;
|
|
183
|
+
readonly listInstanceTypes: () => Promise<unknown>;
|
|
184
|
+
readonly safeListInstanceTypes: () => Promise<import("./client").SafeResult<unknown>>;
|
|
185
|
+
readonly listWorkspaces: () => Promise<unknown>;
|
|
186
|
+
readonly safeListWorkspaces: () => Promise<import("./client").SafeResult<unknown>>;
|
|
187
|
+
readonly getWorkspace: (params: string, parameters: {
|
|
188
|
+
schema: false;
|
|
189
|
+
}) => Promise<unknown>;
|
|
190
|
+
readonly safeGetWorkspace: (params: string, parameters: {
|
|
191
|
+
schema: false;
|
|
192
|
+
}) => Promise<import("./client").SafeResult<unknown>>;
|
|
193
|
+
readonly getCvmInfo: (params: import("./actions").GetCvmInfoRequest, parameters: {
|
|
194
|
+
schema: false;
|
|
195
|
+
}) => Promise<unknown>;
|
|
196
|
+
readonly safeGetCvmInfo: (params: import("./actions").GetCvmInfoRequest, parameters: {
|
|
197
|
+
schema: false;
|
|
198
|
+
}) => Promise<import("./client").SafeResult<unknown>>;
|
|
199
|
+
readonly getCvmList: () => Promise<unknown>;
|
|
200
|
+
readonly safeGetCvmList: () => Promise<import("./client").SafeResult<unknown>>;
|
|
201
|
+
readonly provisionCvm: (params: import("./actions").ProvisionCvmRequest, parameters: {
|
|
202
|
+
schema: false;
|
|
203
|
+
}) => Promise<unknown>;
|
|
204
|
+
readonly safeProvisionCvm: (params: import("./actions").ProvisionCvmRequest, parameters: {
|
|
205
|
+
schema: false;
|
|
206
|
+
}) => Promise<import("./client").SafeResult<unknown>>;
|
|
207
|
+
readonly commitCvmProvision: (params: import("zod").objectOutputType<{
|
|
208
|
+
encrypted_env: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
209
|
+
app_id: import("zod").ZodString;
|
|
210
|
+
compose_hash: import("zod").ZodOptional<import("zod").ZodString>;
|
|
211
|
+
kms_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
212
|
+
contract_address: import("zod").ZodOptional<import("zod").ZodString>;
|
|
213
|
+
deployer_address: import("zod").ZodOptional<import("zod").ZodString>;
|
|
214
|
+
env_keys: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>>;
|
|
215
|
+
}, import("zod").ZodTypeAny, "passthrough">, parameters: {
|
|
216
|
+
schema: false;
|
|
217
|
+
}) => Promise<unknown>;
|
|
218
|
+
readonly safeCommitCvmProvision: (params: import("zod").objectOutputType<{
|
|
219
|
+
encrypted_env: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
220
|
+
app_id: import("zod").ZodString;
|
|
221
|
+
compose_hash: import("zod").ZodOptional<import("zod").ZodString>;
|
|
222
|
+
kms_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
223
|
+
contract_address: import("zod").ZodOptional<import("zod").ZodString>;
|
|
224
|
+
deployer_address: import("zod").ZodOptional<import("zod").ZodString>;
|
|
225
|
+
env_keys: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>>;
|
|
226
|
+
}, import("zod").ZodTypeAny, "passthrough">, parameters: {
|
|
227
|
+
schema: false;
|
|
228
|
+
}) => Promise<import("./client").SafeResult<unknown>>;
|
|
229
|
+
readonly getCvmComposeFile: (params: import("./actions").GetCvmComposeFileRequest, parameters: {
|
|
230
|
+
schema: false;
|
|
231
|
+
}) => Promise<unknown>;
|
|
232
|
+
readonly safeGetCvmComposeFile: (params: import("./actions").GetCvmComposeFileRequest, parameters: {
|
|
233
|
+
schema: false;
|
|
234
|
+
}) => Promise<import("./client").SafeResult<unknown>>;
|
|
235
|
+
readonly provisionCvmComposeFileUpdate: (params: {
|
|
236
|
+
app_compose: {
|
|
237
|
+
docker_compose_file: string;
|
|
238
|
+
name?: string | undefined;
|
|
239
|
+
public_sysinfo?: boolean | undefined;
|
|
240
|
+
public_logs?: boolean | undefined;
|
|
241
|
+
allowed_envs?: string[] | undefined;
|
|
242
|
+
pre_launch_script?: string | undefined;
|
|
243
|
+
kms_enabled?: boolean | undefined;
|
|
244
|
+
tproxy_enabled?: boolean | undefined;
|
|
245
|
+
manifest_version?: number | undefined;
|
|
246
|
+
features?: string[] | undefined;
|
|
247
|
+
} & {
|
|
248
|
+
[k: string]: unknown;
|
|
249
|
+
};
|
|
250
|
+
id?: string | undefined;
|
|
251
|
+
app_id?: string | undefined;
|
|
252
|
+
instance_id?: string | undefined;
|
|
253
|
+
uuid?: string | undefined;
|
|
254
|
+
update_env_vars?: boolean | null | undefined;
|
|
255
|
+
}, parameters: {
|
|
256
|
+
schema: false;
|
|
257
|
+
}) => Promise<unknown>;
|
|
258
|
+
readonly safeProvisionCvmComposeFileUpdate: (params: {
|
|
259
|
+
app_compose: {
|
|
260
|
+
docker_compose_file: string;
|
|
261
|
+
name?: string | undefined;
|
|
262
|
+
public_sysinfo?: boolean | undefined;
|
|
263
|
+
public_logs?: boolean | undefined;
|
|
264
|
+
allowed_envs?: string[] | undefined;
|
|
265
|
+
pre_launch_script?: string | undefined;
|
|
266
|
+
kms_enabled?: boolean | undefined;
|
|
267
|
+
tproxy_enabled?: boolean | undefined;
|
|
268
|
+
manifest_version?: number | undefined;
|
|
269
|
+
features?: string[] | undefined;
|
|
270
|
+
} & {
|
|
271
|
+
[k: string]: unknown;
|
|
272
|
+
};
|
|
273
|
+
id?: string | undefined;
|
|
274
|
+
app_id?: string | undefined;
|
|
275
|
+
instance_id?: string | undefined;
|
|
276
|
+
uuid?: string | undefined;
|
|
277
|
+
update_env_vars?: boolean | null | undefined;
|
|
278
|
+
}, parameters: {
|
|
279
|
+
schema: false;
|
|
280
|
+
}) => Promise<import("./client").SafeResult<unknown>>;
|
|
281
|
+
readonly commitCvmComposeFileUpdate: (params: import("./actions").CommitCvmComposeFileUpdateRequest, parameters: {
|
|
282
|
+
schema: false;
|
|
283
|
+
}) => Promise<unknown>;
|
|
284
|
+
readonly safeCommitCvmComposeFileUpdate: (params: import("./actions").CommitCvmComposeFileUpdateRequest, parameters: {
|
|
285
|
+
schema: false;
|
|
286
|
+
}) => Promise<import("./client").SafeResult<unknown>>;
|
|
287
|
+
readonly getKmsInfo: (params: {
|
|
288
|
+
kms_id: string;
|
|
289
|
+
}, parameters: {
|
|
290
|
+
schema: false;
|
|
291
|
+
}) => Promise<unknown>;
|
|
292
|
+
readonly safeGetKmsInfo: (params: {
|
|
293
|
+
kms_id: string;
|
|
294
|
+
}, parameters: {
|
|
295
|
+
schema: false;
|
|
296
|
+
}) => Promise<import("./client").SafeResult<unknown>>;
|
|
297
|
+
readonly getKmsList: () => Promise<unknown>;
|
|
298
|
+
readonly safeGetKmsList: () => Promise<import("./client").SafeResult<unknown>>;
|
|
299
|
+
readonly getAppEnvEncryptPubKey: (params: {
|
|
300
|
+
app_id: string;
|
|
301
|
+
kms: string;
|
|
302
|
+
}, parameters: {
|
|
303
|
+
schema: false;
|
|
304
|
+
}) => Promise<unknown>;
|
|
305
|
+
readonly safeGetAppEnvEncryptPubKey: (params: {
|
|
306
|
+
app_id: string;
|
|
307
|
+
kms: string;
|
|
308
|
+
}, parameters: {
|
|
309
|
+
schema: false;
|
|
310
|
+
}) => Promise<import("./client").SafeResult<unknown>>;
|
|
311
|
+
};
|