@phala/cloud 0.2.10 → 0.3.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/actions/apps/check_app_cvms_is_allowed.d.ts +100 -161
- package/dist/actions/apps/check_app_is_allowed.d.ts +14 -14
- package/dist/actions/apps/create_app_instance.d.ts +22 -22
- package/dist/actions/apps/get_app_attestation.d.ts +32 -32
- package/dist/actions/apps/get_app_device_allowlist.d.ts +51 -50
- package/dist/actions/apps/get_app_list.d.ts +2 -2
- package/dist/actions/cvms/check_cvm_is_allowed.d.ts +40 -102
- package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +12 -12
- package/dist/actions/cvms/commit_cvm_provision.d.ts +5 -135
- package/dist/actions/cvms/commit_cvm_update.d.ts +2 -2
- package/dist/actions/cvms/confirm_cvm_patch.d.ts +2 -2
- package/dist/actions/cvms/delete_cvm.d.ts +2 -2
- package/dist/actions/cvms/get_available_os_images.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_attestation.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +10 -10
- package/dist/actions/cvms/get_cvm_containers_stats.d.ts +10 -10
- package/dist/actions/cvms/get_cvm_docker_compose.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_info.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_list.d.ts +4 -4
- package/dist/actions/cvms/get_cvm_network.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_state.d.ts +6 -6
- package/dist/actions/cvms/get_cvm_stats.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_status_batch.d.ts +6 -6
- package/dist/actions/cvms/get_cvm_user_config.d.ts +2 -2
- package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +2 -2
- package/dist/actions/cvms/patch_cvm.d.ts +18 -18
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +38 -38
- package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +27 -58
- package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +120 -165
- package/dist/actions/cvms/replicate_cvm.d.ts +7 -72
- package/dist/actions/cvms/restart_cvm.d.ts +7 -72
- package/dist/actions/cvms/shutdown_cvm.d.ts +9 -72
- package/dist/actions/cvms/start_cvm.d.ts +7 -72
- package/dist/actions/cvms/stop_cvm.d.ts +7 -72
- package/dist/actions/cvms/update_cvm_envs.d.ts +20 -20
- package/dist/actions/cvms/update_cvm_resources.d.ts +2 -2
- package/dist/actions/cvms/update_cvm_visibility.d.ts +24 -24
- package/dist/actions/cvms/update_docker_compose.d.ts +20 -20
- package/dist/actions/cvms/update_os_image.d.ts +2 -2
- package/dist/actions/cvms/update_prelaunch_script.d.ts +20 -20
- package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +20 -20
- package/dist/actions/kms/get_kms_list.d.ts +10 -10
- package/dist/actions/kms/next_app_ids.d.ts +6 -6
- package/dist/actions/list-instance-types.d.ts +12 -12
- package/dist/actions/ssh_keys/create_ssh_key.d.ts +2 -2
- package/dist/actions/ssh_keys/list_ssh_keys.d.ts +4 -4
- package/dist/actions/workspaces/get_workspace_nodes.d.ts +14 -14
- package/dist/index.js +254 -45
- package/dist/index.mjs +254 -45
- package/dist/types/app_info_v20251028.d.ts +128 -128
- package/dist/types/app_info_v20260121.d.ts +490 -490
- package/dist/types/app_revision.d.ts +8 -8
- package/dist/types/cvm_id.d.ts +6 -6
- package/dist/types/cvm_info.d.ts +98 -98
- package/dist/types/cvm_info_v20251028.d.ts +47 -47
- package/dist/types/cvm_info_v20260121.d.ts +148 -148
- package/dist/types/version-mappings.d.ts +37 -0
- package/package.json +1 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { type Client, type SafeResult } from "../../client";
|
|
3
|
+
import type { ApiVersion } from "../../types/client";
|
|
4
|
+
import type { CheckCvmIsAllowedResponse } from "../../types/version-mappings";
|
|
2
5
|
export declare const IsAllowedResultV20260121Schema: z.ZodObject<{
|
|
3
6
|
app_contract_address: z.ZodString;
|
|
4
7
|
compose_hash: z.ZodString;
|
|
@@ -11,22 +14,22 @@ export declare const IsAllowedResultV20260121Schema: z.ZodObject<{
|
|
|
11
14
|
} & {
|
|
12
15
|
cvm_id: z.ZodOptional<z.ZodNumber>;
|
|
13
16
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
|
|
17
|
+
app_contract_address: string;
|
|
15
18
|
compose_hash: string;
|
|
19
|
+
device_id: string;
|
|
16
20
|
compose_hash_allowed: boolean;
|
|
17
|
-
is_allowed: boolean;
|
|
18
|
-
app_contract_address: string;
|
|
19
21
|
allow_any_device: boolean;
|
|
22
|
+
is_allowed: boolean;
|
|
20
23
|
error?: string | null | undefined;
|
|
21
24
|
device_id_allowed?: boolean | null | undefined;
|
|
22
25
|
cvm_id?: number | undefined;
|
|
23
26
|
}, {
|
|
24
|
-
|
|
27
|
+
app_contract_address: string;
|
|
25
28
|
compose_hash: string;
|
|
29
|
+
device_id: string;
|
|
26
30
|
compose_hash_allowed: boolean;
|
|
27
|
-
is_allowed: boolean;
|
|
28
|
-
app_contract_address: string;
|
|
29
31
|
allow_any_device: boolean;
|
|
32
|
+
is_allowed: boolean;
|
|
30
33
|
error?: string | null | undefined;
|
|
31
34
|
device_id_allowed?: boolean | null | undefined;
|
|
32
35
|
cvm_id?: number | undefined;
|
|
@@ -44,22 +47,22 @@ export declare const IsAllowedResultV20260522Schema: z.ZodObject<{
|
|
|
44
47
|
} & {
|
|
45
48
|
cvm_id: z.ZodOptional<z.ZodString>;
|
|
46
49
|
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
|
|
50
|
+
app_contract_address: string;
|
|
48
51
|
compose_hash: string;
|
|
52
|
+
device_id: string;
|
|
49
53
|
compose_hash_allowed: boolean;
|
|
50
|
-
is_allowed: boolean;
|
|
51
|
-
app_contract_address: string;
|
|
52
54
|
allow_any_device: boolean;
|
|
55
|
+
is_allowed: boolean;
|
|
53
56
|
error?: string | null | undefined;
|
|
54
57
|
device_id_allowed?: boolean | null | undefined;
|
|
55
58
|
cvm_id?: string | undefined;
|
|
56
59
|
}, {
|
|
57
|
-
|
|
60
|
+
app_contract_address: string;
|
|
58
61
|
compose_hash: string;
|
|
62
|
+
device_id: string;
|
|
59
63
|
compose_hash_allowed: boolean;
|
|
60
|
-
is_allowed: boolean;
|
|
61
|
-
app_contract_address: string;
|
|
62
64
|
allow_any_device: boolean;
|
|
65
|
+
is_allowed: boolean;
|
|
63
66
|
error?: string | null | undefined;
|
|
64
67
|
device_id_allowed?: boolean | null | undefined;
|
|
65
68
|
cvm_id?: string | undefined;
|
|
@@ -77,22 +80,22 @@ export declare const IsAllowedResultAnySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
77
80
|
} & {
|
|
78
81
|
cvm_id: z.ZodOptional<z.ZodNumber>;
|
|
79
82
|
}, "strip", z.ZodTypeAny, {
|
|
80
|
-
|
|
83
|
+
app_contract_address: string;
|
|
81
84
|
compose_hash: string;
|
|
85
|
+
device_id: string;
|
|
82
86
|
compose_hash_allowed: boolean;
|
|
83
|
-
is_allowed: boolean;
|
|
84
|
-
app_contract_address: string;
|
|
85
87
|
allow_any_device: boolean;
|
|
88
|
+
is_allowed: boolean;
|
|
86
89
|
error?: string | null | undefined;
|
|
87
90
|
device_id_allowed?: boolean | null | undefined;
|
|
88
91
|
cvm_id?: number | undefined;
|
|
89
92
|
}, {
|
|
90
|
-
|
|
93
|
+
app_contract_address: string;
|
|
91
94
|
compose_hash: string;
|
|
95
|
+
device_id: string;
|
|
92
96
|
compose_hash_allowed: boolean;
|
|
93
|
-
is_allowed: boolean;
|
|
94
|
-
app_contract_address: string;
|
|
95
97
|
allow_any_device: boolean;
|
|
98
|
+
is_allowed: boolean;
|
|
96
99
|
error?: string | null | undefined;
|
|
97
100
|
device_id_allowed?: boolean | null | undefined;
|
|
98
101
|
cvm_id?: number | undefined;
|
|
@@ -108,22 +111,22 @@ export declare const IsAllowedResultAnySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
108
111
|
} & {
|
|
109
112
|
cvm_id: z.ZodOptional<z.ZodString>;
|
|
110
113
|
}, "strip", z.ZodTypeAny, {
|
|
111
|
-
|
|
114
|
+
app_contract_address: string;
|
|
112
115
|
compose_hash: string;
|
|
116
|
+
device_id: string;
|
|
113
117
|
compose_hash_allowed: boolean;
|
|
114
|
-
is_allowed: boolean;
|
|
115
|
-
app_contract_address: string;
|
|
116
118
|
allow_any_device: boolean;
|
|
119
|
+
is_allowed: boolean;
|
|
117
120
|
error?: string | null | undefined;
|
|
118
121
|
device_id_allowed?: boolean | null | undefined;
|
|
119
122
|
cvm_id?: string | undefined;
|
|
120
123
|
}, {
|
|
121
|
-
|
|
124
|
+
app_contract_address: string;
|
|
122
125
|
compose_hash: string;
|
|
126
|
+
device_id: string;
|
|
123
127
|
compose_hash_allowed: boolean;
|
|
124
|
-
is_allowed: boolean;
|
|
125
|
-
app_contract_address: string;
|
|
126
128
|
allow_any_device: boolean;
|
|
129
|
+
is_allowed: boolean;
|
|
127
130
|
error?: string | null | undefined;
|
|
128
131
|
device_id_allowed?: boolean | null | undefined;
|
|
129
132
|
cvm_id?: string | undefined;
|
|
@@ -140,22 +143,22 @@ export declare const IsAllowedResultSchema: z.ZodObject<{
|
|
|
140
143
|
} & {
|
|
141
144
|
cvm_id: z.ZodOptional<z.ZodString>;
|
|
142
145
|
}, "strip", z.ZodTypeAny, {
|
|
143
|
-
|
|
146
|
+
app_contract_address: string;
|
|
144
147
|
compose_hash: string;
|
|
148
|
+
device_id: string;
|
|
145
149
|
compose_hash_allowed: boolean;
|
|
146
|
-
is_allowed: boolean;
|
|
147
|
-
app_contract_address: string;
|
|
148
150
|
allow_any_device: boolean;
|
|
151
|
+
is_allowed: boolean;
|
|
149
152
|
error?: string | null | undefined;
|
|
150
153
|
device_id_allowed?: boolean | null | undefined;
|
|
151
154
|
cvm_id?: string | undefined;
|
|
152
155
|
}, {
|
|
153
|
-
|
|
156
|
+
app_contract_address: string;
|
|
154
157
|
compose_hash: string;
|
|
158
|
+
device_id: string;
|
|
155
159
|
compose_hash_allowed: boolean;
|
|
156
|
-
is_allowed: boolean;
|
|
157
|
-
app_contract_address: string;
|
|
158
160
|
allow_any_device: boolean;
|
|
161
|
+
is_allowed: boolean;
|
|
159
162
|
error?: string | null | undefined;
|
|
160
163
|
device_id_allowed?: boolean | null | undefined;
|
|
161
164
|
cvm_id?: string | undefined;
|
|
@@ -168,13 +171,13 @@ declare const CheckCvmIsAllowedInputSchema: z.ZodObject<{
|
|
|
168
171
|
device_id: z.ZodOptional<z.ZodString>;
|
|
169
172
|
}, "strip", z.ZodTypeAny, {
|
|
170
173
|
cvmId: string;
|
|
171
|
-
device_id?: string | undefined;
|
|
172
174
|
compose_hash?: string | undefined;
|
|
175
|
+
device_id?: string | undefined;
|
|
173
176
|
node_id?: number | undefined;
|
|
174
177
|
}, {
|
|
175
178
|
cvmId: string;
|
|
176
|
-
device_id?: string | undefined;
|
|
177
179
|
compose_hash?: string | undefined;
|
|
180
|
+
device_id?: string | undefined;
|
|
178
181
|
node_id?: number | undefined;
|
|
179
182
|
}>;
|
|
180
183
|
export declare const CheckCvmIsAllowedRequestSchema: z.ZodObject<{
|
|
@@ -184,13 +187,13 @@ export declare const CheckCvmIsAllowedRequestSchema: z.ZodObject<{
|
|
|
184
187
|
device_id: z.ZodOptional<z.ZodString>;
|
|
185
188
|
}, "strip", z.ZodTypeAny, {
|
|
186
189
|
cvmId: string;
|
|
187
|
-
device_id?: string | undefined;
|
|
188
190
|
compose_hash?: string | undefined;
|
|
191
|
+
device_id?: string | undefined;
|
|
189
192
|
node_id?: number | undefined;
|
|
190
193
|
}, {
|
|
191
194
|
cvmId: string;
|
|
192
|
-
device_id?: string | undefined;
|
|
193
195
|
compose_hash?: string | undefined;
|
|
196
|
+
device_id?: string | undefined;
|
|
194
197
|
node_id?: number | undefined;
|
|
195
198
|
}>;
|
|
196
199
|
export type CheckCvmIsAllowedRequest = z.infer<typeof CheckCvmIsAllowedInputSchema>;
|
|
@@ -205,71 +208,6 @@ export type CheckCvmIsAllowedRequest = z.infer<typeof CheckCvmIsAllowedInputSche
|
|
|
205
208
|
* @param request.device_id - Optional device ID override
|
|
206
209
|
* @returns On-chain allowance check result
|
|
207
210
|
*/
|
|
208
|
-
declare
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
device_id?: string | undefined;
|
|
212
|
-
compose_hash?: string | undefined;
|
|
213
|
-
node_id?: number | undefined;
|
|
214
|
-
}): Promise<{
|
|
215
|
-
device_id: string;
|
|
216
|
-
compose_hash: string;
|
|
217
|
-
compose_hash_allowed: boolean;
|
|
218
|
-
is_allowed: boolean;
|
|
219
|
-
app_contract_address: string;
|
|
220
|
-
allow_any_device: boolean;
|
|
221
|
-
error?: string | null | undefined;
|
|
222
|
-
device_id_allowed?: boolean | null | undefined;
|
|
223
|
-
cvm_id?: string | undefined;
|
|
224
|
-
}>;
|
|
225
|
-
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
226
|
-
cvmId: string;
|
|
227
|
-
device_id?: string | undefined;
|
|
228
|
-
compose_hash?: string | undefined;
|
|
229
|
-
node_id?: number | undefined;
|
|
230
|
-
}, parameters: {
|
|
231
|
-
schema: T;
|
|
232
|
-
}): Promise<z.TypeOf<T>>;
|
|
233
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
234
|
-
cvmId: string;
|
|
235
|
-
device_id?: string | undefined;
|
|
236
|
-
compose_hash?: string | undefined;
|
|
237
|
-
node_id?: number | undefined;
|
|
238
|
-
}, parameters: {
|
|
239
|
-
schema: false;
|
|
240
|
-
}): Promise<unknown>;
|
|
241
|
-
}, safeCheckCvmIsAllowed: {
|
|
242
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
243
|
-
cvmId: string;
|
|
244
|
-
device_id?: string | undefined;
|
|
245
|
-
compose_hash?: string | undefined;
|
|
246
|
-
node_id?: number | undefined;
|
|
247
|
-
}): Promise<import("../..").SafeResult<{
|
|
248
|
-
device_id: string;
|
|
249
|
-
compose_hash: string;
|
|
250
|
-
compose_hash_allowed: boolean;
|
|
251
|
-
is_allowed: boolean;
|
|
252
|
-
app_contract_address: string;
|
|
253
|
-
allow_any_device: boolean;
|
|
254
|
-
error?: string | null | undefined;
|
|
255
|
-
device_id_allowed?: boolean | null | undefined;
|
|
256
|
-
cvm_id?: string | undefined;
|
|
257
|
-
}>>;
|
|
258
|
-
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
259
|
-
cvmId: string;
|
|
260
|
-
device_id?: string | undefined;
|
|
261
|
-
compose_hash?: string | undefined;
|
|
262
|
-
node_id?: number | undefined;
|
|
263
|
-
}, parameters: {
|
|
264
|
-
schema: T;
|
|
265
|
-
}): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
|
|
266
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
267
|
-
cvmId: string;
|
|
268
|
-
device_id?: string | undefined;
|
|
269
|
-
compose_hash?: string | undefined;
|
|
270
|
-
node_id?: number | undefined;
|
|
271
|
-
}, parameters: {
|
|
272
|
-
schema: false;
|
|
273
|
-
}): Promise<import("../..").SafeResult<unknown>>;
|
|
274
|
-
};
|
|
275
|
-
export { checkCvmIsAllowed, safeCheckCvmIsAllowed };
|
|
211
|
+
export declare function checkCvmIsAllowed<V extends ApiVersion>(client: Client<V>, request: CheckCvmIsAllowedRequest): Promise<CheckCvmIsAllowedResponse<V>>;
|
|
212
|
+
export declare function safeCheckCvmIsAllowed<V extends ApiVersion>(client: Client<V>, request: CheckCvmIsAllowedRequest): Promise<SafeResult<CheckCvmIsAllowedResponse<V>>>;
|
|
213
|
+
export {};
|
|
@@ -81,38 +81,38 @@ export declare const CommitCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.Zod
|
|
|
81
81
|
}, "strip", z.ZodTypeAny, {
|
|
82
82
|
compose_hash: string;
|
|
83
83
|
id?: string | undefined;
|
|
84
|
+
uuid?: string | undefined;
|
|
84
85
|
app_id?: string | undefined;
|
|
85
86
|
instance_id?: string | undefined;
|
|
86
|
-
uuid?: string | undefined;
|
|
87
|
-
env_keys?: string[] | undefined;
|
|
88
87
|
encrypted_env?: string | undefined;
|
|
88
|
+
env_keys?: string[] | undefined;
|
|
89
89
|
update_env_vars?: boolean | null | undefined;
|
|
90
90
|
}, {
|
|
91
91
|
compose_hash: string;
|
|
92
92
|
id?: string | undefined;
|
|
93
|
+
uuid?: string | undefined;
|
|
93
94
|
app_id?: string | undefined;
|
|
94
95
|
instance_id?: string | undefined;
|
|
95
|
-
uuid?: string | undefined;
|
|
96
|
-
env_keys?: string[] | undefined;
|
|
97
96
|
encrypted_env?: string | undefined;
|
|
97
|
+
env_keys?: string[] | undefined;
|
|
98
98
|
update_env_vars?: boolean | null | undefined;
|
|
99
99
|
}>, {
|
|
100
100
|
compose_hash: string;
|
|
101
101
|
id?: string | undefined;
|
|
102
|
+
uuid?: string | undefined;
|
|
102
103
|
app_id?: string | undefined;
|
|
103
104
|
instance_id?: string | undefined;
|
|
104
|
-
uuid?: string | undefined;
|
|
105
|
-
env_keys?: string[] | undefined;
|
|
106
105
|
encrypted_env?: string | undefined;
|
|
106
|
+
env_keys?: string[] | undefined;
|
|
107
107
|
update_env_vars?: boolean | null | undefined;
|
|
108
108
|
}, {
|
|
109
109
|
compose_hash: string;
|
|
110
110
|
id?: string | undefined;
|
|
111
|
+
uuid?: string | undefined;
|
|
111
112
|
app_id?: string | undefined;
|
|
112
113
|
instance_id?: string | undefined;
|
|
113
|
-
uuid?: string | undefined;
|
|
114
|
-
env_keys?: string[] | undefined;
|
|
115
114
|
encrypted_env?: string | undefined;
|
|
115
|
+
env_keys?: string[] | undefined;
|
|
116
116
|
update_env_vars?: boolean | null | undefined;
|
|
117
117
|
}>, {
|
|
118
118
|
cvmId: string | undefined;
|
|
@@ -123,21 +123,21 @@ export declare const CommitCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.Zod
|
|
|
123
123
|
_raw: {
|
|
124
124
|
compose_hash: string;
|
|
125
125
|
id?: string | undefined;
|
|
126
|
+
uuid?: string | undefined;
|
|
126
127
|
app_id?: string | undefined;
|
|
127
128
|
instance_id?: string | undefined;
|
|
128
|
-
uuid?: string | undefined;
|
|
129
|
-
env_keys?: string[] | undefined;
|
|
130
129
|
encrypted_env?: string | undefined;
|
|
130
|
+
env_keys?: string[] | undefined;
|
|
131
131
|
update_env_vars?: boolean | null | undefined;
|
|
132
132
|
};
|
|
133
133
|
}, {
|
|
134
134
|
compose_hash: string;
|
|
135
135
|
id?: string | undefined;
|
|
136
|
+
uuid?: string | undefined;
|
|
136
137
|
app_id?: string | undefined;
|
|
137
138
|
instance_id?: string | undefined;
|
|
138
|
-
uuid?: string | undefined;
|
|
139
|
-
env_keys?: string[] | undefined;
|
|
140
139
|
encrypted_env?: string | undefined;
|
|
140
|
+
env_keys?: string[] | undefined;
|
|
141
141
|
update_env_vars?: boolean | null | undefined;
|
|
142
142
|
}>;
|
|
143
143
|
export declare const CommitCvmComposeFileUpdateSchema: z.ZodEffects<z.ZodAny, undefined, any>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { type Client } from "../../client";
|
|
2
|
+
import { type Client, type SafeResult } from "../../client";
|
|
3
|
+
import type { ApiVersion } from "../../types/client";
|
|
4
|
+
import type { CommitCvmProvisionResponse } from "../../types/version-mappings";
|
|
3
5
|
export declare const CommitCvmProvisionV20260121Schema: z.ZodObject<{
|
|
4
6
|
name: z.ZodString;
|
|
5
7
|
status: z.ZodString;
|
|
@@ -543,137 +545,5 @@ export declare const CommitCvmProvisionRequestSchema: z.ZodObject<{
|
|
|
543
545
|
env_keys: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
544
546
|
}, z.ZodTypeAny, "passthrough">>;
|
|
545
547
|
export type CommitCvmProvisionRequest = z.infer<typeof CommitCvmProvisionRequestSchema>;
|
|
546
|
-
declare
|
|
547
|
-
|
|
548
|
-
encrypted_env: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
549
|
-
app_id: z.ZodString;
|
|
550
|
-
compose_hash: z.ZodString;
|
|
551
|
-
kms_id: z.ZodOptional<z.ZodString>;
|
|
552
|
-
contract_address: z.ZodOptional<z.ZodString>;
|
|
553
|
-
deployer_address: z.ZodOptional<z.ZodString>;
|
|
554
|
-
env_keys: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
555
|
-
}, z.ZodTypeAny, "passthrough">): Promise<z.objectOutputType<{
|
|
556
|
-
name: z.ZodString;
|
|
557
|
-
status: z.ZodString;
|
|
558
|
-
teepod_id: z.ZodNumber;
|
|
559
|
-
teepod: z.ZodNullable<z.ZodObject<{
|
|
560
|
-
id: z.ZodNumber;
|
|
561
|
-
name: z.ZodString;
|
|
562
|
-
}, "strip", z.ZodTypeAny, {
|
|
563
|
-
name: string;
|
|
564
|
-
id: number;
|
|
565
|
-
}, {
|
|
566
|
-
name: string;
|
|
567
|
-
id: number;
|
|
568
|
-
}>>;
|
|
569
|
-
app_id: z.ZodNullable<z.ZodString>;
|
|
570
|
-
vm_uuid: z.ZodNullable<z.ZodString>;
|
|
571
|
-
instance_id: z.ZodNullable<z.ZodString>;
|
|
572
|
-
app_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
573
|
-
base_image: z.ZodNullable<z.ZodString>;
|
|
574
|
-
vcpu: z.ZodNumber;
|
|
575
|
-
memory: z.ZodNumber;
|
|
576
|
-
disk_size: z.ZodNumber;
|
|
577
|
-
manifest_version: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
578
|
-
version: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
579
|
-
runner: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
580
|
-
docker_compose_file: z.ZodNullable<z.ZodString>;
|
|
581
|
-
features: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
582
|
-
created_at: z.ZodString;
|
|
583
|
-
encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
584
|
-
app_auth_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
585
|
-
deployer_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
586
|
-
} & {
|
|
587
|
-
id: z.ZodString;
|
|
588
|
-
user_id: z.ZodNullable<z.ZodString>;
|
|
589
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
590
|
-
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: z.objectOutputType<{
|
|
591
|
-
encrypted_env: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
592
|
-
app_id: z.ZodString;
|
|
593
|
-
compose_hash: z.ZodString;
|
|
594
|
-
kms_id: z.ZodOptional<z.ZodString>;
|
|
595
|
-
contract_address: z.ZodOptional<z.ZodString>;
|
|
596
|
-
deployer_address: z.ZodOptional<z.ZodString>;
|
|
597
|
-
env_keys: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
598
|
-
}, z.ZodTypeAny, "passthrough">, parameters: {
|
|
599
|
-
schema: T;
|
|
600
|
-
}): Promise<z.TypeOf<T>>;
|
|
601
|
-
(client: Client<import("../..").ApiVersion>, params: z.objectOutputType<{
|
|
602
|
-
encrypted_env: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
603
|
-
app_id: z.ZodString;
|
|
604
|
-
compose_hash: z.ZodString;
|
|
605
|
-
kms_id: z.ZodOptional<z.ZodString>;
|
|
606
|
-
contract_address: z.ZodOptional<z.ZodString>;
|
|
607
|
-
deployer_address: z.ZodOptional<z.ZodString>;
|
|
608
|
-
env_keys: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
609
|
-
}, z.ZodTypeAny, "passthrough">, parameters: {
|
|
610
|
-
schema: false;
|
|
611
|
-
}): Promise<unknown>;
|
|
612
|
-
}, safeCommitCvmProvision: {
|
|
613
|
-
(client: Client<import("../..").ApiVersion>, params: z.objectOutputType<{
|
|
614
|
-
encrypted_env: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
615
|
-
app_id: z.ZodString;
|
|
616
|
-
compose_hash: z.ZodString;
|
|
617
|
-
kms_id: z.ZodOptional<z.ZodString>;
|
|
618
|
-
contract_address: z.ZodOptional<z.ZodString>;
|
|
619
|
-
deployer_address: z.ZodOptional<z.ZodString>;
|
|
620
|
-
env_keys: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
621
|
-
}, z.ZodTypeAny, "passthrough">): Promise<import("../..").SafeResult<z.objectOutputType<{
|
|
622
|
-
name: z.ZodString;
|
|
623
|
-
status: z.ZodString;
|
|
624
|
-
teepod_id: z.ZodNumber;
|
|
625
|
-
teepod: z.ZodNullable<z.ZodObject<{
|
|
626
|
-
id: z.ZodNumber;
|
|
627
|
-
name: z.ZodString;
|
|
628
|
-
}, "strip", z.ZodTypeAny, {
|
|
629
|
-
name: string;
|
|
630
|
-
id: number;
|
|
631
|
-
}, {
|
|
632
|
-
name: string;
|
|
633
|
-
id: number;
|
|
634
|
-
}>>;
|
|
635
|
-
app_id: z.ZodNullable<z.ZodString>;
|
|
636
|
-
vm_uuid: z.ZodNullable<z.ZodString>;
|
|
637
|
-
instance_id: z.ZodNullable<z.ZodString>;
|
|
638
|
-
app_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
639
|
-
base_image: z.ZodNullable<z.ZodString>;
|
|
640
|
-
vcpu: z.ZodNumber;
|
|
641
|
-
memory: z.ZodNumber;
|
|
642
|
-
disk_size: z.ZodNumber;
|
|
643
|
-
manifest_version: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
644
|
-
version: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
645
|
-
runner: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
646
|
-
docker_compose_file: z.ZodNullable<z.ZodString>;
|
|
647
|
-
features: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
648
|
-
created_at: z.ZodString;
|
|
649
|
-
encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
650
|
-
app_auth_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
651
|
-
deployer_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
652
|
-
} & {
|
|
653
|
-
id: z.ZodString;
|
|
654
|
-
user_id: z.ZodNullable<z.ZodString>;
|
|
655
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
656
|
-
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: z.objectOutputType<{
|
|
657
|
-
encrypted_env: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
658
|
-
app_id: z.ZodString;
|
|
659
|
-
compose_hash: z.ZodString;
|
|
660
|
-
kms_id: z.ZodOptional<z.ZodString>;
|
|
661
|
-
contract_address: z.ZodOptional<z.ZodString>;
|
|
662
|
-
deployer_address: z.ZodOptional<z.ZodString>;
|
|
663
|
-
env_keys: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
664
|
-
}, z.ZodTypeAny, "passthrough">, parameters: {
|
|
665
|
-
schema: T;
|
|
666
|
-
}): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
|
|
667
|
-
(client: Client<import("../..").ApiVersion>, params: z.objectOutputType<{
|
|
668
|
-
encrypted_env: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
669
|
-
app_id: z.ZodString;
|
|
670
|
-
compose_hash: z.ZodString;
|
|
671
|
-
kms_id: z.ZodOptional<z.ZodString>;
|
|
672
|
-
contract_address: z.ZodOptional<z.ZodString>;
|
|
673
|
-
deployer_address: z.ZodOptional<z.ZodString>;
|
|
674
|
-
env_keys: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
675
|
-
}, z.ZodTypeAny, "passthrough">, parameters: {
|
|
676
|
-
schema: false;
|
|
677
|
-
}): Promise<import("../..").SafeResult<unknown>>;
|
|
678
|
-
};
|
|
679
|
-
export { commitCvmProvision, safeCommitCvmProvision };
|
|
548
|
+
export declare function commitCvmProvision<V extends ApiVersion>(client: Client<V>, payload: CommitCvmProvisionRequest): Promise<CommitCvmProvisionResponse<V>>;
|
|
549
|
+
export declare function safeCommitCvmProvision<V extends ApiVersion>(client: Client<V>, payload: CommitCvmProvisionRequest): Promise<SafeResult<CommitCvmProvisionResponse<V>>>;
|
|
@@ -49,18 +49,18 @@ export declare const CommitCvmUpdateRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
49
49
|
token: string;
|
|
50
50
|
name?: string | undefined;
|
|
51
51
|
id?: string | undefined;
|
|
52
|
+
uuid?: string | undefined;
|
|
52
53
|
app_id?: string | undefined;
|
|
53
54
|
instance_id?: string | undefined;
|
|
54
|
-
uuid?: string | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
composeHash: string;
|
|
57
57
|
transactionHash: string;
|
|
58
58
|
token: string;
|
|
59
59
|
name?: string | undefined;
|
|
60
60
|
id?: string | undefined;
|
|
61
|
+
uuid?: string | undefined;
|
|
61
62
|
app_id?: string | undefined;
|
|
62
63
|
instance_id?: string | undefined;
|
|
63
|
-
uuid?: string | undefined;
|
|
64
64
|
}>, any, any>;
|
|
65
65
|
export type CommitCvmUpdateRequest = z.input<typeof CommitCvmUpdateRequestSchema>;
|
|
66
66
|
declare const CommitCvmUpdateResultSchema: z.ZodObject<{
|
|
@@ -47,17 +47,17 @@ export declare const ConfirmCvmPatchRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
47
47
|
transactionHash: string;
|
|
48
48
|
name?: string | undefined;
|
|
49
49
|
id?: string | undefined;
|
|
50
|
+
uuid?: string | undefined;
|
|
50
51
|
app_id?: string | undefined;
|
|
51
52
|
instance_id?: string | undefined;
|
|
52
|
-
uuid?: string | undefined;
|
|
53
53
|
}, {
|
|
54
54
|
composeHash: string;
|
|
55
55
|
transactionHash: string;
|
|
56
56
|
name?: string | undefined;
|
|
57
57
|
id?: string | undefined;
|
|
58
|
+
uuid?: string | undefined;
|
|
58
59
|
app_id?: string | undefined;
|
|
59
60
|
instance_id?: string | undefined;
|
|
60
|
-
uuid?: string | undefined;
|
|
61
61
|
}>, any, any>;
|
|
62
62
|
export type ConfirmCvmPatchRequest = z.input<typeof ConfirmCvmPatchRequestSchema>;
|
|
63
63
|
declare const ConfirmCvmPatchResultSchema: z.ZodObject<{
|
|
@@ -37,15 +37,15 @@ export declare const DeleteCvmRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObje
|
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
38
|
name?: string | undefined;
|
|
39
39
|
id?: string | undefined;
|
|
40
|
+
uuid?: string | undefined;
|
|
40
41
|
app_id?: string | undefined;
|
|
41
42
|
instance_id?: string | undefined;
|
|
42
|
-
uuid?: string | undefined;
|
|
43
43
|
}, {
|
|
44
44
|
name?: string | undefined;
|
|
45
45
|
id?: string | undefined;
|
|
46
|
+
uuid?: string | undefined;
|
|
46
47
|
app_id?: string | undefined;
|
|
47
48
|
instance_id?: string | undefined;
|
|
48
|
-
uuid?: string | undefined;
|
|
49
49
|
}>, any, any>, {
|
|
50
50
|
cvmId: any;
|
|
51
51
|
}, any>;
|
|
@@ -140,15 +140,15 @@ export declare const GetAvailableOSImagesRequestSchema: z.ZodEffects<z.ZodEffect
|
|
|
140
140
|
}, "strip", z.ZodTypeAny, {
|
|
141
141
|
name?: string | undefined;
|
|
142
142
|
id?: string | undefined;
|
|
143
|
+
uuid?: string | undefined;
|
|
143
144
|
app_id?: string | undefined;
|
|
144
145
|
instance_id?: string | undefined;
|
|
145
|
-
uuid?: string | undefined;
|
|
146
146
|
}, {
|
|
147
147
|
name?: string | undefined;
|
|
148
148
|
id?: string | undefined;
|
|
149
|
+
uuid?: string | undefined;
|
|
149
150
|
app_id?: string | undefined;
|
|
150
151
|
instance_id?: string | undefined;
|
|
151
|
-
uuid?: string | undefined;
|
|
152
152
|
}>, any, any>, {
|
|
153
153
|
cvmId: any;
|
|
154
154
|
}, any>;
|
|
@@ -487,15 +487,15 @@ export declare const GetCvmAttestationRequestSchema: z.ZodEffects<z.ZodEffects<z
|
|
|
487
487
|
}, "strip", z.ZodTypeAny, {
|
|
488
488
|
name?: string | undefined;
|
|
489
489
|
id?: string | undefined;
|
|
490
|
+
uuid?: string | undefined;
|
|
490
491
|
app_id?: string | undefined;
|
|
491
492
|
instance_id?: string | undefined;
|
|
492
|
-
uuid?: string | undefined;
|
|
493
493
|
}, {
|
|
494
494
|
name?: string | undefined;
|
|
495
495
|
id?: string | undefined;
|
|
496
|
+
uuid?: string | undefined;
|
|
496
497
|
app_id?: string | undefined;
|
|
497
498
|
instance_id?: string | undefined;
|
|
498
|
-
uuid?: string | undefined;
|
|
499
499
|
}>, any, any>, {
|
|
500
500
|
cvmId: any;
|
|
501
501
|
}, any>;
|
|
@@ -266,12 +266,12 @@ export declare const GetCvmComposeFileResultSchema: z.ZodEffects<z.ZodEffects<z.
|
|
|
266
266
|
}, z.ZodTypeAny, "passthrough">>, {
|
|
267
267
|
docker_compose_file: string;
|
|
268
268
|
name?: string | undefined;
|
|
269
|
+
manifest_version?: number | undefined;
|
|
270
|
+
features?: string[] | undefined;
|
|
269
271
|
public_sysinfo?: boolean | undefined;
|
|
270
272
|
public_logs?: boolean | undefined;
|
|
271
273
|
storage_fs?: "ext4" | "zfs" | undefined;
|
|
272
274
|
allowed_envs?: string[] | undefined;
|
|
273
|
-
features?: string[] | undefined;
|
|
274
|
-
manifest_version?: number | undefined;
|
|
275
275
|
kms_enabled?: boolean | undefined;
|
|
276
276
|
tproxy_enabled?: boolean | undefined;
|
|
277
277
|
port_policy?: {
|
|
@@ -527,12 +527,12 @@ export declare const CvmComposeFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
|
|
|
527
527
|
}, z.ZodTypeAny, "passthrough">>, {
|
|
528
528
|
docker_compose_file: string;
|
|
529
529
|
name?: string | undefined;
|
|
530
|
+
manifest_version?: number | undefined;
|
|
531
|
+
features?: string[] | undefined;
|
|
530
532
|
public_sysinfo?: boolean | undefined;
|
|
531
533
|
public_logs?: boolean | undefined;
|
|
532
534
|
storage_fs?: "ext4" | "zfs" | undefined;
|
|
533
535
|
allowed_envs?: string[] | undefined;
|
|
534
|
-
features?: string[] | undefined;
|
|
535
|
-
manifest_version?: number | undefined;
|
|
536
536
|
kms_enabled?: boolean | undefined;
|
|
537
537
|
tproxy_enabled?: boolean | undefined;
|
|
538
538
|
port_policy?: {
|
|
@@ -601,15 +601,15 @@ export declare const GetCvmComposeFileRequestSchema: z.ZodEffects<z.ZodEffects<z
|
|
|
601
601
|
}, "strip", z.ZodTypeAny, {
|
|
602
602
|
name?: string | undefined;
|
|
603
603
|
id?: string | undefined;
|
|
604
|
+
uuid?: string | undefined;
|
|
604
605
|
app_id?: string | undefined;
|
|
605
606
|
instance_id?: string | undefined;
|
|
606
|
-
uuid?: string | undefined;
|
|
607
607
|
}, {
|
|
608
608
|
name?: string | undefined;
|
|
609
609
|
id?: string | undefined;
|
|
610
|
+
uuid?: string | undefined;
|
|
610
611
|
app_id?: string | undefined;
|
|
611
612
|
instance_id?: string | undefined;
|
|
612
|
-
uuid?: string | undefined;
|
|
613
613
|
}>, any, any>, {
|
|
614
614
|
cvmId: any;
|
|
615
615
|
}, any>;
|
|
@@ -618,12 +618,12 @@ declare const getCvmComposeFile: {
|
|
|
618
618
|
(client: Client<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
|
|
619
619
|
docker_compose_file: string;
|
|
620
620
|
name?: string | undefined;
|
|
621
|
+
manifest_version?: number | undefined;
|
|
622
|
+
features?: string[] | undefined;
|
|
621
623
|
public_sysinfo?: boolean | undefined;
|
|
622
624
|
public_logs?: boolean | undefined;
|
|
623
625
|
storage_fs?: "ext4" | "zfs" | undefined;
|
|
624
626
|
allowed_envs?: string[] | undefined;
|
|
625
|
-
features?: string[] | undefined;
|
|
626
|
-
manifest_version?: number | undefined;
|
|
627
627
|
kms_enabled?: boolean | undefined;
|
|
628
628
|
tproxy_enabled?: boolean | undefined;
|
|
629
629
|
port_policy?: {
|
|
@@ -652,12 +652,12 @@ declare const getCvmComposeFile: {
|
|
|
652
652
|
(client: Client<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
|
|
653
653
|
docker_compose_file: string;
|
|
654
654
|
name?: string | undefined;
|
|
655
|
+
manifest_version?: number | undefined;
|
|
656
|
+
features?: string[] | undefined;
|
|
655
657
|
public_sysinfo?: boolean | undefined;
|
|
656
658
|
public_logs?: boolean | undefined;
|
|
657
659
|
storage_fs?: "ext4" | "zfs" | undefined;
|
|
658
660
|
allowed_envs?: string[] | undefined;
|
|
659
|
-
features?: string[] | undefined;
|
|
660
|
-
manifest_version?: number | undefined;
|
|
661
661
|
kms_enabled?: boolean | undefined;
|
|
662
662
|
tproxy_enabled?: boolean | undefined;
|
|
663
663
|
port_policy?: {
|