@phala/cloud 0.2.9 → 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 +324 -75
- package/dist/actions/apps/check_app_is_allowed.d.ts +16 -16
- package/dist/actions/apps/create_app_instance.d.ts +33 -24
- package/dist/actions/apps/get_app_attestation.d.ts +82 -32
- package/dist/actions/apps/get_app_device_allowlist.d.ts +281 -11
- package/dist/actions/apps/get_app_filter_options.d.ts +2 -2
- package/dist/actions/apps/get_app_list.d.ts +2 -2
- package/dist/actions/cvms/check_cvm_is_allowed.d.ts +142 -74
- package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +12 -12
- package/dist/actions/cvms/commit_cvm_provision.d.ts +424 -277
- 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 +338 -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 +93 -0
- package/dist/actions/cvms/patch_cvm.d.ts +18 -18
- package/dist/actions/cvms/provision_cvm.d.ts +243 -225
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +254 -38
- package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +130 -43
- package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +294 -110
- 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 +26 -26
- 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 +319 -0
- package/dist/actions/get_cvm_create_resources.d.ts +2412 -0
- package/dist/actions/index.d.ts +3 -0
- 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.d.ts +2 -0
- package/dist/actions/workspaces/get_workspace_nodes.d.ts +14 -14
- package/dist/actions/workspaces/list_workspaces.d.ts +18 -0
- package/dist/client.d.ts +5 -2
- package/dist/create-client.d.ts +48 -0
- package/dist/index.js +1882 -1257
- package/dist/index.mjs +1850 -1255
- package/dist/types/app_compose.d.ts +125 -0
- package/dist/types/app_info_v20251028.d.ts +136 -259
- package/dist/types/app_info_v20260121.d.ts +4677 -345
- package/dist/types/app_revision.d.ts +8 -8
- package/dist/types/client.d.ts +2 -2
- package/dist/types/cvm_id.d.ts +6 -6
- package/dist/types/cvm_info.d.ts +536 -10
- package/dist/types/cvm_info_v20251028.d.ts +65 -65
- package/dist/types/cvm_info_v20260121.d.ts +1636 -85
- package/dist/types/version-mappings.d.ts +45 -8
- package/dist/utils/errors.d.ts +8 -1
- package/package.json +2 -2
|
@@ -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>;
|
|
@@ -78,6 +78,31 @@ export declare const GetCvmComposeFileResultSchema: z.ZodEffects<z.ZodEffects<z.
|
|
|
78
78
|
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
79
79
|
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
80
80
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
+
port_policy: z.ZodOptional<z.ZodObject<{
|
|
82
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
83
|
+
port: z.ZodNumber;
|
|
84
|
+
pp: z.ZodBoolean;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
port: number;
|
|
87
|
+
pp: boolean;
|
|
88
|
+
}, {
|
|
89
|
+
port: number;
|
|
90
|
+
pp: boolean;
|
|
91
|
+
}>, "many">;
|
|
92
|
+
restrict_mode: z.ZodBoolean;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
ports: {
|
|
95
|
+
port: number;
|
|
96
|
+
pp: boolean;
|
|
97
|
+
}[];
|
|
98
|
+
restrict_mode: boolean;
|
|
99
|
+
}, {
|
|
100
|
+
ports: {
|
|
101
|
+
port: number;
|
|
102
|
+
pp: boolean;
|
|
103
|
+
}[];
|
|
104
|
+
restrict_mode: boolean;
|
|
105
|
+
}>>;
|
|
81
106
|
storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
|
|
82
107
|
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
83
108
|
env_pubkey: z.ZodOptional<z.ZodString>;
|
|
@@ -92,6 +117,31 @@ export declare const GetCvmComposeFileResultSchema: z.ZodEffects<z.ZodEffects<z.
|
|
|
92
117
|
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
93
118
|
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
94
119
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
+
port_policy: z.ZodOptional<z.ZodObject<{
|
|
121
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
122
|
+
port: z.ZodNumber;
|
|
123
|
+
pp: z.ZodBoolean;
|
|
124
|
+
}, "strip", z.ZodTypeAny, {
|
|
125
|
+
port: number;
|
|
126
|
+
pp: boolean;
|
|
127
|
+
}, {
|
|
128
|
+
port: number;
|
|
129
|
+
pp: boolean;
|
|
130
|
+
}>, "many">;
|
|
131
|
+
restrict_mode: z.ZodBoolean;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
ports: {
|
|
134
|
+
port: number;
|
|
135
|
+
pp: boolean;
|
|
136
|
+
}[];
|
|
137
|
+
restrict_mode: boolean;
|
|
138
|
+
}, {
|
|
139
|
+
ports: {
|
|
140
|
+
port: number;
|
|
141
|
+
pp: boolean;
|
|
142
|
+
}[];
|
|
143
|
+
restrict_mode: boolean;
|
|
144
|
+
}>>;
|
|
95
145
|
storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
|
|
96
146
|
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
97
147
|
env_pubkey: z.ZodOptional<z.ZodString>;
|
|
@@ -106,6 +156,31 @@ export declare const GetCvmComposeFileResultSchema: z.ZodEffects<z.ZodEffects<z.
|
|
|
106
156
|
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
107
157
|
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
108
158
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
159
|
+
port_policy: z.ZodOptional<z.ZodObject<{
|
|
160
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
161
|
+
port: z.ZodNumber;
|
|
162
|
+
pp: z.ZodBoolean;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
port: number;
|
|
165
|
+
pp: boolean;
|
|
166
|
+
}, {
|
|
167
|
+
port: number;
|
|
168
|
+
pp: boolean;
|
|
169
|
+
}>, "many">;
|
|
170
|
+
restrict_mode: z.ZodBoolean;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
ports: {
|
|
173
|
+
port: number;
|
|
174
|
+
pp: boolean;
|
|
175
|
+
}[];
|
|
176
|
+
restrict_mode: boolean;
|
|
177
|
+
}, {
|
|
178
|
+
ports: {
|
|
179
|
+
port: number;
|
|
180
|
+
pp: boolean;
|
|
181
|
+
}[];
|
|
182
|
+
restrict_mode: boolean;
|
|
183
|
+
}>>;
|
|
109
184
|
storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
|
|
110
185
|
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
111
186
|
env_pubkey: z.ZodOptional<z.ZodString>;
|
|
@@ -120,6 +195,31 @@ export declare const GetCvmComposeFileResultSchema: z.ZodEffects<z.ZodEffects<z.
|
|
|
120
195
|
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
121
196
|
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
122
197
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
198
|
+
port_policy: z.ZodOptional<z.ZodObject<{
|
|
199
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
200
|
+
port: z.ZodNumber;
|
|
201
|
+
pp: z.ZodBoolean;
|
|
202
|
+
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
port: number;
|
|
204
|
+
pp: boolean;
|
|
205
|
+
}, {
|
|
206
|
+
port: number;
|
|
207
|
+
pp: boolean;
|
|
208
|
+
}>, "many">;
|
|
209
|
+
restrict_mode: z.ZodBoolean;
|
|
210
|
+
}, "strip", z.ZodTypeAny, {
|
|
211
|
+
ports: {
|
|
212
|
+
port: number;
|
|
213
|
+
pp: boolean;
|
|
214
|
+
}[];
|
|
215
|
+
restrict_mode: boolean;
|
|
216
|
+
}, {
|
|
217
|
+
ports: {
|
|
218
|
+
port: number;
|
|
219
|
+
pp: boolean;
|
|
220
|
+
}[];
|
|
221
|
+
restrict_mode: boolean;
|
|
222
|
+
}>>;
|
|
123
223
|
storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
|
|
124
224
|
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
125
225
|
env_pubkey: z.ZodOptional<z.ZodString>;
|
|
@@ -134,6 +234,31 @@ export declare const GetCvmComposeFileResultSchema: z.ZodEffects<z.ZodEffects<z.
|
|
|
134
234
|
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
135
235
|
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
136
236
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
237
|
+
port_policy: z.ZodOptional<z.ZodObject<{
|
|
238
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
239
|
+
port: z.ZodNumber;
|
|
240
|
+
pp: z.ZodBoolean;
|
|
241
|
+
}, "strip", z.ZodTypeAny, {
|
|
242
|
+
port: number;
|
|
243
|
+
pp: boolean;
|
|
244
|
+
}, {
|
|
245
|
+
port: number;
|
|
246
|
+
pp: boolean;
|
|
247
|
+
}>, "many">;
|
|
248
|
+
restrict_mode: z.ZodBoolean;
|
|
249
|
+
}, "strip", z.ZodTypeAny, {
|
|
250
|
+
ports: {
|
|
251
|
+
port: number;
|
|
252
|
+
pp: boolean;
|
|
253
|
+
}[];
|
|
254
|
+
restrict_mode: boolean;
|
|
255
|
+
}, {
|
|
256
|
+
ports: {
|
|
257
|
+
port: number;
|
|
258
|
+
pp: boolean;
|
|
259
|
+
}[];
|
|
260
|
+
restrict_mode: boolean;
|
|
261
|
+
}>>;
|
|
137
262
|
storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
|
|
138
263
|
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
139
264
|
env_pubkey: z.ZodOptional<z.ZodString>;
|
|
@@ -141,14 +266,21 @@ export declare const GetCvmComposeFileResultSchema: z.ZodEffects<z.ZodEffects<z.
|
|
|
141
266
|
}, z.ZodTypeAny, "passthrough">>, {
|
|
142
267
|
docker_compose_file: string;
|
|
143
268
|
name?: string | undefined;
|
|
269
|
+
manifest_version?: number | undefined;
|
|
270
|
+
features?: string[] | undefined;
|
|
144
271
|
public_sysinfo?: boolean | undefined;
|
|
145
272
|
public_logs?: boolean | undefined;
|
|
146
273
|
storage_fs?: "ext4" | "zfs" | undefined;
|
|
147
274
|
allowed_envs?: string[] | undefined;
|
|
148
|
-
features?: string[] | undefined;
|
|
149
|
-
manifest_version?: number | undefined;
|
|
150
275
|
kms_enabled?: boolean | undefined;
|
|
151
276
|
tproxy_enabled?: boolean | undefined;
|
|
277
|
+
port_policy?: {
|
|
278
|
+
ports: {
|
|
279
|
+
port: number;
|
|
280
|
+
pp: boolean;
|
|
281
|
+
}[];
|
|
282
|
+
restrict_mode: boolean;
|
|
283
|
+
} | undefined;
|
|
152
284
|
pre_launch_script?: string | undefined;
|
|
153
285
|
env_pubkey?: string | undefined;
|
|
154
286
|
salt?: string | null | undefined;
|
|
@@ -167,6 +299,31 @@ export declare const GetCvmComposeFileResultSchema: z.ZodEffects<z.ZodEffects<z.
|
|
|
167
299
|
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
168
300
|
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
169
301
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
302
|
+
port_policy: z.ZodOptional<z.ZodObject<{
|
|
303
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
304
|
+
port: z.ZodNumber;
|
|
305
|
+
pp: z.ZodBoolean;
|
|
306
|
+
}, "strip", z.ZodTypeAny, {
|
|
307
|
+
port: number;
|
|
308
|
+
pp: boolean;
|
|
309
|
+
}, {
|
|
310
|
+
port: number;
|
|
311
|
+
pp: boolean;
|
|
312
|
+
}>, "many">;
|
|
313
|
+
restrict_mode: z.ZodBoolean;
|
|
314
|
+
}, "strip", z.ZodTypeAny, {
|
|
315
|
+
ports: {
|
|
316
|
+
port: number;
|
|
317
|
+
pp: boolean;
|
|
318
|
+
}[];
|
|
319
|
+
restrict_mode: boolean;
|
|
320
|
+
}, {
|
|
321
|
+
ports: {
|
|
322
|
+
port: number;
|
|
323
|
+
pp: boolean;
|
|
324
|
+
}[];
|
|
325
|
+
restrict_mode: boolean;
|
|
326
|
+
}>>;
|
|
170
327
|
storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
|
|
171
328
|
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
172
329
|
env_pubkey: z.ZodOptional<z.ZodString>;
|
|
@@ -182,6 +339,31 @@ export declare const CvmComposeFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
|
|
|
182
339
|
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
183
340
|
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
184
341
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
342
|
+
port_policy: z.ZodOptional<z.ZodObject<{
|
|
343
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
344
|
+
port: z.ZodNumber;
|
|
345
|
+
pp: z.ZodBoolean;
|
|
346
|
+
}, "strip", z.ZodTypeAny, {
|
|
347
|
+
port: number;
|
|
348
|
+
pp: boolean;
|
|
349
|
+
}, {
|
|
350
|
+
port: number;
|
|
351
|
+
pp: boolean;
|
|
352
|
+
}>, "many">;
|
|
353
|
+
restrict_mode: z.ZodBoolean;
|
|
354
|
+
}, "strip", z.ZodTypeAny, {
|
|
355
|
+
ports: {
|
|
356
|
+
port: number;
|
|
357
|
+
pp: boolean;
|
|
358
|
+
}[];
|
|
359
|
+
restrict_mode: boolean;
|
|
360
|
+
}, {
|
|
361
|
+
ports: {
|
|
362
|
+
port: number;
|
|
363
|
+
pp: boolean;
|
|
364
|
+
}[];
|
|
365
|
+
restrict_mode: boolean;
|
|
366
|
+
}>>;
|
|
185
367
|
storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
|
|
186
368
|
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
187
369
|
env_pubkey: z.ZodOptional<z.ZodString>;
|
|
@@ -196,6 +378,31 @@ export declare const CvmComposeFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
|
|
|
196
378
|
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
197
379
|
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
198
380
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
381
|
+
port_policy: z.ZodOptional<z.ZodObject<{
|
|
382
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
383
|
+
port: z.ZodNumber;
|
|
384
|
+
pp: z.ZodBoolean;
|
|
385
|
+
}, "strip", z.ZodTypeAny, {
|
|
386
|
+
port: number;
|
|
387
|
+
pp: boolean;
|
|
388
|
+
}, {
|
|
389
|
+
port: number;
|
|
390
|
+
pp: boolean;
|
|
391
|
+
}>, "many">;
|
|
392
|
+
restrict_mode: z.ZodBoolean;
|
|
393
|
+
}, "strip", z.ZodTypeAny, {
|
|
394
|
+
ports: {
|
|
395
|
+
port: number;
|
|
396
|
+
pp: boolean;
|
|
397
|
+
}[];
|
|
398
|
+
restrict_mode: boolean;
|
|
399
|
+
}, {
|
|
400
|
+
ports: {
|
|
401
|
+
port: number;
|
|
402
|
+
pp: boolean;
|
|
403
|
+
}[];
|
|
404
|
+
restrict_mode: boolean;
|
|
405
|
+
}>>;
|
|
199
406
|
storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
|
|
200
407
|
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
201
408
|
env_pubkey: z.ZodOptional<z.ZodString>;
|
|
@@ -210,6 +417,31 @@ export declare const CvmComposeFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
|
|
|
210
417
|
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
211
418
|
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
212
419
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
420
|
+
port_policy: z.ZodOptional<z.ZodObject<{
|
|
421
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
422
|
+
port: z.ZodNumber;
|
|
423
|
+
pp: z.ZodBoolean;
|
|
424
|
+
}, "strip", z.ZodTypeAny, {
|
|
425
|
+
port: number;
|
|
426
|
+
pp: boolean;
|
|
427
|
+
}, {
|
|
428
|
+
port: number;
|
|
429
|
+
pp: boolean;
|
|
430
|
+
}>, "many">;
|
|
431
|
+
restrict_mode: z.ZodBoolean;
|
|
432
|
+
}, "strip", z.ZodTypeAny, {
|
|
433
|
+
ports: {
|
|
434
|
+
port: number;
|
|
435
|
+
pp: boolean;
|
|
436
|
+
}[];
|
|
437
|
+
restrict_mode: boolean;
|
|
438
|
+
}, {
|
|
439
|
+
ports: {
|
|
440
|
+
port: number;
|
|
441
|
+
pp: boolean;
|
|
442
|
+
}[];
|
|
443
|
+
restrict_mode: boolean;
|
|
444
|
+
}>>;
|
|
213
445
|
storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
|
|
214
446
|
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
215
447
|
env_pubkey: z.ZodOptional<z.ZodString>;
|
|
@@ -224,6 +456,31 @@ export declare const CvmComposeFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
|
|
|
224
456
|
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
225
457
|
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
226
458
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
459
|
+
port_policy: z.ZodOptional<z.ZodObject<{
|
|
460
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
461
|
+
port: z.ZodNumber;
|
|
462
|
+
pp: z.ZodBoolean;
|
|
463
|
+
}, "strip", z.ZodTypeAny, {
|
|
464
|
+
port: number;
|
|
465
|
+
pp: boolean;
|
|
466
|
+
}, {
|
|
467
|
+
port: number;
|
|
468
|
+
pp: boolean;
|
|
469
|
+
}>, "many">;
|
|
470
|
+
restrict_mode: z.ZodBoolean;
|
|
471
|
+
}, "strip", z.ZodTypeAny, {
|
|
472
|
+
ports: {
|
|
473
|
+
port: number;
|
|
474
|
+
pp: boolean;
|
|
475
|
+
}[];
|
|
476
|
+
restrict_mode: boolean;
|
|
477
|
+
}, {
|
|
478
|
+
ports: {
|
|
479
|
+
port: number;
|
|
480
|
+
pp: boolean;
|
|
481
|
+
}[];
|
|
482
|
+
restrict_mode: boolean;
|
|
483
|
+
}>>;
|
|
227
484
|
storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
|
|
228
485
|
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
229
486
|
env_pubkey: z.ZodOptional<z.ZodString>;
|
|
@@ -238,6 +495,31 @@ export declare const CvmComposeFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
|
|
|
238
495
|
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
239
496
|
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
240
497
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
498
|
+
port_policy: z.ZodOptional<z.ZodObject<{
|
|
499
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
500
|
+
port: z.ZodNumber;
|
|
501
|
+
pp: z.ZodBoolean;
|
|
502
|
+
}, "strip", z.ZodTypeAny, {
|
|
503
|
+
port: number;
|
|
504
|
+
pp: boolean;
|
|
505
|
+
}, {
|
|
506
|
+
port: number;
|
|
507
|
+
pp: boolean;
|
|
508
|
+
}>, "many">;
|
|
509
|
+
restrict_mode: z.ZodBoolean;
|
|
510
|
+
}, "strip", z.ZodTypeAny, {
|
|
511
|
+
ports: {
|
|
512
|
+
port: number;
|
|
513
|
+
pp: boolean;
|
|
514
|
+
}[];
|
|
515
|
+
restrict_mode: boolean;
|
|
516
|
+
}, {
|
|
517
|
+
ports: {
|
|
518
|
+
port: number;
|
|
519
|
+
pp: boolean;
|
|
520
|
+
}[];
|
|
521
|
+
restrict_mode: boolean;
|
|
522
|
+
}>>;
|
|
241
523
|
storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
|
|
242
524
|
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
243
525
|
env_pubkey: z.ZodOptional<z.ZodString>;
|
|
@@ -245,14 +527,21 @@ export declare const CvmComposeFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
|
|
|
245
527
|
}, z.ZodTypeAny, "passthrough">>, {
|
|
246
528
|
docker_compose_file: string;
|
|
247
529
|
name?: string | undefined;
|
|
530
|
+
manifest_version?: number | undefined;
|
|
531
|
+
features?: string[] | undefined;
|
|
248
532
|
public_sysinfo?: boolean | undefined;
|
|
249
533
|
public_logs?: boolean | undefined;
|
|
250
534
|
storage_fs?: "ext4" | "zfs" | undefined;
|
|
251
535
|
allowed_envs?: string[] | undefined;
|
|
252
|
-
features?: string[] | undefined;
|
|
253
|
-
manifest_version?: number | undefined;
|
|
254
536
|
kms_enabled?: boolean | undefined;
|
|
255
537
|
tproxy_enabled?: boolean | undefined;
|
|
538
|
+
port_policy?: {
|
|
539
|
+
ports: {
|
|
540
|
+
port: number;
|
|
541
|
+
pp: boolean;
|
|
542
|
+
}[];
|
|
543
|
+
restrict_mode: boolean;
|
|
544
|
+
} | undefined;
|
|
256
545
|
pre_launch_script?: string | undefined;
|
|
257
546
|
env_pubkey?: string | undefined;
|
|
258
547
|
salt?: string | null | undefined;
|
|
@@ -271,6 +560,31 @@ export declare const CvmComposeFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
|
|
|
271
560
|
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
272
561
|
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
273
562
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
563
|
+
port_policy: z.ZodOptional<z.ZodObject<{
|
|
564
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
565
|
+
port: z.ZodNumber;
|
|
566
|
+
pp: z.ZodBoolean;
|
|
567
|
+
}, "strip", z.ZodTypeAny, {
|
|
568
|
+
port: number;
|
|
569
|
+
pp: boolean;
|
|
570
|
+
}, {
|
|
571
|
+
port: number;
|
|
572
|
+
pp: boolean;
|
|
573
|
+
}>, "many">;
|
|
574
|
+
restrict_mode: z.ZodBoolean;
|
|
575
|
+
}, "strip", z.ZodTypeAny, {
|
|
576
|
+
ports: {
|
|
577
|
+
port: number;
|
|
578
|
+
pp: boolean;
|
|
579
|
+
}[];
|
|
580
|
+
restrict_mode: boolean;
|
|
581
|
+
}, {
|
|
582
|
+
ports: {
|
|
583
|
+
port: number;
|
|
584
|
+
pp: boolean;
|
|
585
|
+
}[];
|
|
586
|
+
restrict_mode: boolean;
|
|
587
|
+
}>>;
|
|
274
588
|
storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
|
|
275
589
|
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
276
590
|
env_pubkey: z.ZodOptional<z.ZodString>;
|
|
@@ -287,15 +601,15 @@ export declare const GetCvmComposeFileRequestSchema: z.ZodEffects<z.ZodEffects<z
|
|
|
287
601
|
}, "strip", z.ZodTypeAny, {
|
|
288
602
|
name?: string | undefined;
|
|
289
603
|
id?: string | undefined;
|
|
604
|
+
uuid?: string | undefined;
|
|
290
605
|
app_id?: string | undefined;
|
|
291
606
|
instance_id?: string | undefined;
|
|
292
|
-
uuid?: string | undefined;
|
|
293
607
|
}, {
|
|
294
608
|
name?: string | undefined;
|
|
295
609
|
id?: string | undefined;
|
|
610
|
+
uuid?: string | undefined;
|
|
296
611
|
app_id?: string | undefined;
|
|
297
612
|
instance_id?: string | undefined;
|
|
298
|
-
uuid?: string | undefined;
|
|
299
613
|
}>, any, any>, {
|
|
300
614
|
cvmId: any;
|
|
301
615
|
}, any>;
|
|
@@ -304,14 +618,21 @@ declare const getCvmComposeFile: {
|
|
|
304
618
|
(client: Client<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
|
|
305
619
|
docker_compose_file: string;
|
|
306
620
|
name?: string | undefined;
|
|
621
|
+
manifest_version?: number | undefined;
|
|
622
|
+
features?: string[] | undefined;
|
|
307
623
|
public_sysinfo?: boolean | undefined;
|
|
308
624
|
public_logs?: boolean | undefined;
|
|
309
625
|
storage_fs?: "ext4" | "zfs" | undefined;
|
|
310
626
|
allowed_envs?: string[] | undefined;
|
|
311
|
-
features?: string[] | undefined;
|
|
312
|
-
manifest_version?: number | undefined;
|
|
313
627
|
kms_enabled?: boolean | undefined;
|
|
314
628
|
tproxy_enabled?: boolean | undefined;
|
|
629
|
+
port_policy?: {
|
|
630
|
+
ports: {
|
|
631
|
+
port: number;
|
|
632
|
+
pp: boolean;
|
|
633
|
+
}[];
|
|
634
|
+
restrict_mode: boolean;
|
|
635
|
+
} | undefined;
|
|
315
636
|
pre_launch_script?: string | undefined;
|
|
316
637
|
env_pubkey?: string | undefined;
|
|
317
638
|
salt?: string | null | undefined;
|
|
@@ -331,14 +652,21 @@ declare const getCvmComposeFile: {
|
|
|
331
652
|
(client: Client<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
|
|
332
653
|
docker_compose_file: string;
|
|
333
654
|
name?: string | undefined;
|
|
655
|
+
manifest_version?: number | undefined;
|
|
656
|
+
features?: string[] | undefined;
|
|
334
657
|
public_sysinfo?: boolean | undefined;
|
|
335
658
|
public_logs?: boolean | undefined;
|
|
336
659
|
storage_fs?: "ext4" | "zfs" | undefined;
|
|
337
660
|
allowed_envs?: string[] | undefined;
|
|
338
|
-
features?: string[] | undefined;
|
|
339
|
-
manifest_version?: number | undefined;
|
|
340
661
|
kms_enabled?: boolean | undefined;
|
|
341
662
|
tproxy_enabled?: boolean | undefined;
|
|
663
|
+
port_policy?: {
|
|
664
|
+
ports: {
|
|
665
|
+
port: number;
|
|
666
|
+
pp: boolean;
|
|
667
|
+
}[];
|
|
668
|
+
restrict_mode: boolean;
|
|
669
|
+
} | undefined;
|
|
342
670
|
pre_launch_script?: string | undefined;
|
|
343
671
|
env_pubkey?: string | undefined;
|
|
344
672
|
salt?: string | null | undefined;
|
|
@@ -43,10 +43,10 @@ export declare const CvmContainersStatsSchema: z.ZodObject<{
|
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
44
|
error: string | null;
|
|
45
45
|
version: string | null;
|
|
46
|
-
docker_compose_file: string | null;
|
|
47
|
-
features: string[] | null;
|
|
48
46
|
manifest_version: number | null;
|
|
49
47
|
runner: string | null;
|
|
48
|
+
docker_compose_file: string | null;
|
|
49
|
+
features: string[] | null;
|
|
50
50
|
is_online: boolean;
|
|
51
51
|
is_public: boolean;
|
|
52
52
|
containers: {
|
|
@@ -63,10 +63,10 @@ export declare const CvmContainersStatsSchema: z.ZodObject<{
|
|
|
63
63
|
}, {
|
|
64
64
|
error: string | null;
|
|
65
65
|
version: string | null;
|
|
66
|
-
docker_compose_file: string | null;
|
|
67
|
-
features: string[] | null;
|
|
68
66
|
manifest_version: number | null;
|
|
69
67
|
runner: string | null;
|
|
68
|
+
docker_compose_file: string | null;
|
|
69
|
+
features: string[] | null;
|
|
70
70
|
is_online: boolean;
|
|
71
71
|
containers: {
|
|
72
72
|
status: string;
|
|
@@ -91,15 +91,15 @@ export declare const GetCvmContainersStatsRequestSchema: z.ZodEffects<z.ZodEffec
|
|
|
91
91
|
}, "strip", z.ZodTypeAny, {
|
|
92
92
|
name?: string | undefined;
|
|
93
93
|
id?: string | undefined;
|
|
94
|
+
uuid?: string | undefined;
|
|
94
95
|
app_id?: string | undefined;
|
|
95
96
|
instance_id?: string | undefined;
|
|
96
|
-
uuid?: string | undefined;
|
|
97
97
|
}, {
|
|
98
98
|
name?: string | undefined;
|
|
99
99
|
id?: string | undefined;
|
|
100
|
+
uuid?: string | undefined;
|
|
100
101
|
app_id?: string | undefined;
|
|
101
102
|
instance_id?: string | undefined;
|
|
102
|
-
uuid?: string | undefined;
|
|
103
103
|
}>, any, any>, {
|
|
104
104
|
cvmId: any;
|
|
105
105
|
}, any>;
|
|
@@ -108,10 +108,10 @@ declare const getCvmContainersStats: {
|
|
|
108
108
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
|
|
109
109
|
error: string | null;
|
|
110
110
|
version: string | null;
|
|
111
|
-
docker_compose_file: string | null;
|
|
112
|
-
features: string[] | null;
|
|
113
111
|
manifest_version: number | null;
|
|
114
112
|
runner: string | null;
|
|
113
|
+
docker_compose_file: string | null;
|
|
114
|
+
features: string[] | null;
|
|
115
115
|
is_online: boolean;
|
|
116
116
|
is_public: boolean;
|
|
117
117
|
containers: {
|
|
@@ -136,10 +136,10 @@ declare const getCvmContainersStats: {
|
|
|
136
136
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
|
|
137
137
|
error: string | null;
|
|
138
138
|
version: string | null;
|
|
139
|
-
docker_compose_file: string | null;
|
|
140
|
-
features: string[] | null;
|
|
141
139
|
manifest_version: number | null;
|
|
142
140
|
runner: string | null;
|
|
141
|
+
docker_compose_file: string | null;
|
|
142
|
+
features: string[] | null;
|
|
143
143
|
is_online: boolean;
|
|
144
144
|
is_public: boolean;
|
|
145
145
|
containers: {
|
|
@@ -9,15 +9,15 @@ export declare const GetCvmDockerComposeRequestSchema: z.ZodEffects<z.ZodEffects
|
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
name?: string | undefined;
|
|
11
11
|
id?: string | undefined;
|
|
12
|
+
uuid?: string | undefined;
|
|
12
13
|
app_id?: string | undefined;
|
|
13
14
|
instance_id?: string | undefined;
|
|
14
|
-
uuid?: string | undefined;
|
|
15
15
|
}, {
|
|
16
16
|
name?: string | undefined;
|
|
17
17
|
id?: string | undefined;
|
|
18
|
+
uuid?: string | undefined;
|
|
18
19
|
app_id?: string | undefined;
|
|
19
20
|
instance_id?: string | undefined;
|
|
20
|
-
uuid?: string | undefined;
|
|
21
21
|
}>, any, any>, {
|
|
22
22
|
cvmId: any;
|
|
23
23
|
}, any>;
|
|
@@ -11,15 +11,15 @@ export declare const GetCvmInfoRequestSchema: import("zod").ZodEffects<import("z
|
|
|
11
11
|
}, "strip", import("zod").ZodTypeAny, {
|
|
12
12
|
name?: string | undefined;
|
|
13
13
|
id?: string | undefined;
|
|
14
|
+
uuid?: string | undefined;
|
|
14
15
|
app_id?: string | undefined;
|
|
15
16
|
instance_id?: string | undefined;
|
|
16
|
-
uuid?: string | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
name?: string | undefined;
|
|
19
19
|
id?: string | undefined;
|
|
20
|
+
uuid?: string | undefined;
|
|
20
21
|
app_id?: string | undefined;
|
|
21
22
|
instance_id?: string | undefined;
|
|
22
|
-
uuid?: string | undefined;
|
|
23
23
|
}>, any, any>, {
|
|
24
24
|
cvmId: any;
|
|
25
25
|
}, any>;
|