@phala/cloud 0.2.10 → 0.4.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 +43 -33
- 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 +11 -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 +166 -22
- 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 +8 -10
- 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 +253 -30
- 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 +34 -18
- package/dist/actions/cvms/provision_cvm.d.ts +900 -51
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +253 -43
- 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 +36 -20
- package/dist/actions/cvms/update_cvm_resources.d.ts +26 -4
- package/dist/actions/cvms/update_cvm_visibility.d.ts +26 -24
- package/dist/actions/cvms/update_docker_compose.d.ts +51 -20
- package/dist/actions/cvms/update_os_image.d.ts +2 -2
- package/dist/actions/cvms/update_prelaunch_script.d.ts +51 -20
- package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +36 -20
- package/dist/actions/get_available_nodes.d.ts +259 -0
- package/dist/actions/get_cvm_create_resources.d.ts +351 -0
- package/dist/actions/index.d.ts +6 -2
- package/dist/actions/kms/get_kms_contract.d.ts +59 -0
- package/dist/actions/kms/get_kms_list.d.ts +25 -10
- package/dist/actions/kms/get_kms_onchain_detail.d.ts +54 -0
- package/dist/actions/kms/list_kms_contract_nodes.d.ts +98 -0
- package/dist/actions/kms/list_kms_contracts.d.ts +152 -0
- 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 +4 -0
- package/dist/actions/workspaces/get_workspace_nodes.d.ts +175 -14
- package/dist/actions/workspaces/list_workspaces.d.ts +126 -0
- package/dist/client.d.ts +4 -1
- package/dist/create-client.d.ts +48 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1779 -1250
- package/dist/index.mjs +1704 -1194
- package/dist/types/app_compose.d.ts +50 -5
- package/dist/types/app_info_v20251028.d.ts +172 -128
- package/dist/types/app_info_v20260121.d.ts +2814 -490
- 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 +98 -98
- package/dist/types/cvm_info_v20251028.d.ts +70 -47
- package/dist/types/cvm_info_v20260121.d.ts +1125 -148
- package/dist/types/kms_contract.d.ts +64 -0
- package/dist/types/kms_info.d.ts +8 -0
- package/dist/types/version-mappings.d.ts +43 -6
- package/dist/utils/error_codes.d.ts +1 -0
- package/dist/utils/errors.d.ts +30 -1
- package/dist/utils/get_compose_hash.d.ts +24 -0
- package/dist/utils/get_mr_config_id.d.ts +55 -0
- package/dist/utils/index.d.ts +3 -2
- package/package.json +3 -3
|
@@ -18,8 +18,8 @@ export declare const CvmStateSchema: z.ZodObject<{
|
|
|
18
18
|
status: string;
|
|
19
19
|
name: string;
|
|
20
20
|
id?: string | undefined;
|
|
21
|
-
uptime?: string | undefined;
|
|
22
21
|
instance_id?: string | undefined;
|
|
22
|
+
uptime?: string | undefined;
|
|
23
23
|
exited_at?: string | undefined;
|
|
24
24
|
boot_progress?: string | undefined;
|
|
25
25
|
boot_error?: string | undefined;
|
|
@@ -28,8 +28,8 @@ export declare const CvmStateSchema: z.ZodObject<{
|
|
|
28
28
|
status: string;
|
|
29
29
|
name: string;
|
|
30
30
|
id?: string | undefined;
|
|
31
|
-
uptime?: string | undefined;
|
|
32
31
|
instance_id?: string | undefined;
|
|
32
|
+
uptime?: string | undefined;
|
|
33
33
|
exited_at?: string | undefined;
|
|
34
34
|
boot_progress?: string | undefined;
|
|
35
35
|
boot_error?: string | undefined;
|
|
@@ -45,15 +45,15 @@ export declare const GetCvmStateRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodOb
|
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
46
|
name?: string | undefined;
|
|
47
47
|
id?: string | undefined;
|
|
48
|
+
uuid?: string | undefined;
|
|
48
49
|
app_id?: string | undefined;
|
|
49
50
|
instance_id?: string | undefined;
|
|
50
|
-
uuid?: string | undefined;
|
|
51
51
|
}, {
|
|
52
52
|
name?: string | undefined;
|
|
53
53
|
id?: string | undefined;
|
|
54
|
+
uuid?: string | undefined;
|
|
54
55
|
app_id?: string | undefined;
|
|
55
56
|
instance_id?: string | undefined;
|
|
56
|
-
uuid?: string | undefined;
|
|
57
57
|
}>, any, any>, {
|
|
58
58
|
cvmId: any;
|
|
59
59
|
}, any>;
|
|
@@ -81,8 +81,8 @@ declare const getCvmState: {
|
|
|
81
81
|
status: string;
|
|
82
82
|
name: string;
|
|
83
83
|
id?: string | undefined;
|
|
84
|
-
uptime?: string | undefined;
|
|
85
84
|
instance_id?: string | undefined;
|
|
85
|
+
uptime?: string | undefined;
|
|
86
86
|
exited_at?: string | undefined;
|
|
87
87
|
boot_progress?: string | undefined;
|
|
88
88
|
boot_error?: string | undefined;
|
|
@@ -99,8 +99,8 @@ declare const getCvmState: {
|
|
|
99
99
|
status: string;
|
|
100
100
|
name: string;
|
|
101
101
|
id?: string | undefined;
|
|
102
|
-
uptime?: string | undefined;
|
|
103
102
|
instance_id?: string | undefined;
|
|
103
|
+
uptime?: string | undefined;
|
|
104
104
|
exited_at?: string | undefined;
|
|
105
105
|
boot_progress?: string | undefined;
|
|
106
106
|
boot_error?: string | undefined;
|
|
@@ -163,15 +163,15 @@ export declare const GetCvmStatsRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodOb
|
|
|
163
163
|
}, "strip", z.ZodTypeAny, {
|
|
164
164
|
name?: string | undefined;
|
|
165
165
|
id?: string | undefined;
|
|
166
|
+
uuid?: string | undefined;
|
|
166
167
|
app_id?: string | undefined;
|
|
167
168
|
instance_id?: string | undefined;
|
|
168
|
-
uuid?: string | undefined;
|
|
169
169
|
}, {
|
|
170
170
|
name?: string | undefined;
|
|
171
171
|
id?: string | undefined;
|
|
172
|
+
uuid?: string | undefined;
|
|
172
173
|
app_id?: string | undefined;
|
|
173
174
|
instance_id?: string | undefined;
|
|
174
|
-
uuid?: string | undefined;
|
|
175
175
|
}>, any, any>, {
|
|
176
176
|
cvmId: any;
|
|
177
177
|
}, any>;
|
|
@@ -6,6 +6,29 @@ import { z } from "zod";
|
|
|
6
6
|
* CvmStatusSchema is used for /status/batch endpoint which returns status
|
|
7
7
|
* information optimized for polling.
|
|
8
8
|
*/
|
|
9
|
+
export declare const CvmResourceUsageSchema: z.ZodObject<{
|
|
10
|
+
cpu_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
+
memory_used_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
memory_total_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
+
disk_used_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
disk_total_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
egress_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
cpu_percent?: number | null | undefined;
|
|
18
|
+
memory_used_bytes?: number | null | undefined;
|
|
19
|
+
memory_total_bytes?: number | null | undefined;
|
|
20
|
+
disk_used_bytes?: number | null | undefined;
|
|
21
|
+
disk_total_bytes?: number | null | undefined;
|
|
22
|
+
egress_bytes?: number | null | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
cpu_percent?: number | null | undefined;
|
|
25
|
+
memory_used_bytes?: number | null | undefined;
|
|
26
|
+
memory_total_bytes?: number | null | undefined;
|
|
27
|
+
disk_used_bytes?: number | null | undefined;
|
|
28
|
+
disk_total_bytes?: number | null | undefined;
|
|
29
|
+
egress_bytes?: number | null | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
export type CvmResourceUsage = z.infer<typeof CvmResourceUsageSchema>;
|
|
9
32
|
export declare const CvmStatusSchema: z.ZodObject<{
|
|
10
33
|
vm_uuid: z.ZodString;
|
|
11
34
|
status: z.ZodString;
|
|
@@ -13,29 +36,112 @@ export declare const CvmStatusSchema: z.ZodObject<{
|
|
|
13
36
|
in_progress: z.ZodBoolean;
|
|
14
37
|
boot_progress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
38
|
boot_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
39
|
+
shutdown_progress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
events: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
41
|
+
event: z.ZodString;
|
|
42
|
+
body: z.ZodString;
|
|
43
|
+
timestamp: z.ZodNumber;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
body: string;
|
|
46
|
+
timestamp: number;
|
|
47
|
+
event: string;
|
|
48
|
+
}, {
|
|
49
|
+
body: string;
|
|
50
|
+
timestamp: number;
|
|
51
|
+
event: string;
|
|
52
|
+
}>, "many">>;
|
|
53
|
+
operation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
54
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
phase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
correlation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
type?: string | null | undefined;
|
|
60
|
+
started_at?: string | null | undefined;
|
|
61
|
+
correlation_id?: string | null | undefined;
|
|
62
|
+
phase?: string | null | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
type?: string | null | undefined;
|
|
65
|
+
started_at?: string | null | undefined;
|
|
66
|
+
correlation_id?: string | null | undefined;
|
|
67
|
+
phase?: string | null | undefined;
|
|
68
|
+
}>>>;
|
|
69
|
+
resource_usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
70
|
+
cpu_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
71
|
+
memory_used_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
72
|
+
memory_total_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
73
|
+
disk_used_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
74
|
+
disk_total_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
75
|
+
egress_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
cpu_percent?: number | null | undefined;
|
|
78
|
+
memory_used_bytes?: number | null | undefined;
|
|
79
|
+
memory_total_bytes?: number | null | undefined;
|
|
80
|
+
disk_used_bytes?: number | null | undefined;
|
|
81
|
+
disk_total_bytes?: number | null | undefined;
|
|
82
|
+
egress_bytes?: number | null | undefined;
|
|
83
|
+
}, {
|
|
84
|
+
cpu_percent?: number | null | undefined;
|
|
85
|
+
memory_used_bytes?: number | null | undefined;
|
|
86
|
+
memory_total_bytes?: number | null | undefined;
|
|
87
|
+
disk_used_bytes?: number | null | undefined;
|
|
88
|
+
disk_total_bytes?: number | null | undefined;
|
|
89
|
+
egress_bytes?: number | null | undefined;
|
|
90
|
+
}>>>;
|
|
19
91
|
}, "strip", z.ZodTypeAny, {
|
|
20
92
|
status: string;
|
|
21
|
-
in_progress: boolean;
|
|
22
93
|
vm_uuid: string;
|
|
94
|
+
in_progress: boolean;
|
|
95
|
+
events: {
|
|
96
|
+
body: string;
|
|
97
|
+
timestamp: number;
|
|
98
|
+
event: string;
|
|
99
|
+
}[];
|
|
23
100
|
uptime?: string | null | undefined;
|
|
24
101
|
boot_progress?: string | null | undefined;
|
|
25
102
|
boot_error?: string | null | undefined;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
103
|
+
shutdown_progress?: string | null | undefined;
|
|
104
|
+
operation?: {
|
|
105
|
+
type?: string | null | undefined;
|
|
106
|
+
started_at?: string | null | undefined;
|
|
107
|
+
correlation_id?: string | null | undefined;
|
|
108
|
+
phase?: string | null | undefined;
|
|
109
|
+
} | null | undefined;
|
|
110
|
+
resource_usage?: {
|
|
111
|
+
cpu_percent?: number | null | undefined;
|
|
112
|
+
memory_used_bytes?: number | null | undefined;
|
|
113
|
+
memory_total_bytes?: number | null | undefined;
|
|
114
|
+
disk_used_bytes?: number | null | undefined;
|
|
115
|
+
disk_total_bytes?: number | null | undefined;
|
|
116
|
+
egress_bytes?: number | null | undefined;
|
|
117
|
+
} | null | undefined;
|
|
29
118
|
}, {
|
|
30
119
|
status: string;
|
|
31
|
-
in_progress: boolean;
|
|
32
120
|
vm_uuid: string;
|
|
121
|
+
in_progress: boolean;
|
|
33
122
|
uptime?: string | null | undefined;
|
|
34
123
|
boot_progress?: string | null | undefined;
|
|
35
124
|
boot_error?: string | null | undefined;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
125
|
+
shutdown_progress?: string | null | undefined;
|
|
126
|
+
operation?: {
|
|
127
|
+
type?: string | null | undefined;
|
|
128
|
+
started_at?: string | null | undefined;
|
|
129
|
+
correlation_id?: string | null | undefined;
|
|
130
|
+
phase?: string | null | undefined;
|
|
131
|
+
} | null | undefined;
|
|
132
|
+
events?: {
|
|
133
|
+
body: string;
|
|
134
|
+
timestamp: number;
|
|
135
|
+
event: string;
|
|
136
|
+
}[] | undefined;
|
|
137
|
+
resource_usage?: {
|
|
138
|
+
cpu_percent?: number | null | undefined;
|
|
139
|
+
memory_used_bytes?: number | null | undefined;
|
|
140
|
+
memory_total_bytes?: number | null | undefined;
|
|
141
|
+
disk_used_bytes?: number | null | undefined;
|
|
142
|
+
disk_total_bytes?: number | null | undefined;
|
|
143
|
+
egress_bytes?: number | null | undefined;
|
|
144
|
+
} | null | undefined;
|
|
39
145
|
}>;
|
|
40
146
|
export type CvmStatus = z.infer<typeof CvmStatusSchema>;
|
|
41
147
|
/**
|
|
@@ -48,29 +154,112 @@ export declare const GetCvmStatusBatchResponseSchema: z.ZodRecord<z.ZodString, z
|
|
|
48
154
|
in_progress: z.ZodBoolean;
|
|
49
155
|
boot_progress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
156
|
boot_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
157
|
+
shutdown_progress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
158
|
+
events: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
159
|
+
event: z.ZodString;
|
|
160
|
+
body: z.ZodString;
|
|
161
|
+
timestamp: z.ZodNumber;
|
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
|
163
|
+
body: string;
|
|
164
|
+
timestamp: number;
|
|
165
|
+
event: string;
|
|
166
|
+
}, {
|
|
167
|
+
body: string;
|
|
168
|
+
timestamp: number;
|
|
169
|
+
event: string;
|
|
170
|
+
}>, "many">>;
|
|
171
|
+
operation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
172
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
173
|
+
phase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
174
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
175
|
+
correlation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
176
|
+
}, "strip", z.ZodTypeAny, {
|
|
177
|
+
type?: string | null | undefined;
|
|
178
|
+
started_at?: string | null | undefined;
|
|
179
|
+
correlation_id?: string | null | undefined;
|
|
180
|
+
phase?: string | null | undefined;
|
|
181
|
+
}, {
|
|
182
|
+
type?: string | null | undefined;
|
|
183
|
+
started_at?: string | null | undefined;
|
|
184
|
+
correlation_id?: string | null | undefined;
|
|
185
|
+
phase?: string | null | undefined;
|
|
186
|
+
}>>>;
|
|
187
|
+
resource_usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
188
|
+
cpu_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
189
|
+
memory_used_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
190
|
+
memory_total_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
191
|
+
disk_used_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
192
|
+
disk_total_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
193
|
+
egress_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
194
|
+
}, "strip", z.ZodTypeAny, {
|
|
195
|
+
cpu_percent?: number | null | undefined;
|
|
196
|
+
memory_used_bytes?: number | null | undefined;
|
|
197
|
+
memory_total_bytes?: number | null | undefined;
|
|
198
|
+
disk_used_bytes?: number | null | undefined;
|
|
199
|
+
disk_total_bytes?: number | null | undefined;
|
|
200
|
+
egress_bytes?: number | null | undefined;
|
|
201
|
+
}, {
|
|
202
|
+
cpu_percent?: number | null | undefined;
|
|
203
|
+
memory_used_bytes?: number | null | undefined;
|
|
204
|
+
memory_total_bytes?: number | null | undefined;
|
|
205
|
+
disk_used_bytes?: number | null | undefined;
|
|
206
|
+
disk_total_bytes?: number | null | undefined;
|
|
207
|
+
egress_bytes?: number | null | undefined;
|
|
208
|
+
}>>>;
|
|
54
209
|
}, "strip", z.ZodTypeAny, {
|
|
55
210
|
status: string;
|
|
56
|
-
in_progress: boolean;
|
|
57
211
|
vm_uuid: string;
|
|
212
|
+
in_progress: boolean;
|
|
213
|
+
events: {
|
|
214
|
+
body: string;
|
|
215
|
+
timestamp: number;
|
|
216
|
+
event: string;
|
|
217
|
+
}[];
|
|
58
218
|
uptime?: string | null | undefined;
|
|
59
219
|
boot_progress?: string | null | undefined;
|
|
60
220
|
boot_error?: string | null | undefined;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
221
|
+
shutdown_progress?: string | null | undefined;
|
|
222
|
+
operation?: {
|
|
223
|
+
type?: string | null | undefined;
|
|
224
|
+
started_at?: string | null | undefined;
|
|
225
|
+
correlation_id?: string | null | undefined;
|
|
226
|
+
phase?: string | null | undefined;
|
|
227
|
+
} | null | undefined;
|
|
228
|
+
resource_usage?: {
|
|
229
|
+
cpu_percent?: number | null | undefined;
|
|
230
|
+
memory_used_bytes?: number | null | undefined;
|
|
231
|
+
memory_total_bytes?: number | null | undefined;
|
|
232
|
+
disk_used_bytes?: number | null | undefined;
|
|
233
|
+
disk_total_bytes?: number | null | undefined;
|
|
234
|
+
egress_bytes?: number | null | undefined;
|
|
235
|
+
} | null | undefined;
|
|
64
236
|
}, {
|
|
65
237
|
status: string;
|
|
66
|
-
in_progress: boolean;
|
|
67
238
|
vm_uuid: string;
|
|
239
|
+
in_progress: boolean;
|
|
68
240
|
uptime?: string | null | undefined;
|
|
69
241
|
boot_progress?: string | null | undefined;
|
|
70
242
|
boot_error?: string | null | undefined;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
243
|
+
shutdown_progress?: string | null | undefined;
|
|
244
|
+
operation?: {
|
|
245
|
+
type?: string | null | undefined;
|
|
246
|
+
started_at?: string | null | undefined;
|
|
247
|
+
correlation_id?: string | null | undefined;
|
|
248
|
+
phase?: string | null | undefined;
|
|
249
|
+
} | null | undefined;
|
|
250
|
+
events?: {
|
|
251
|
+
body: string;
|
|
252
|
+
timestamp: number;
|
|
253
|
+
event: string;
|
|
254
|
+
}[] | undefined;
|
|
255
|
+
resource_usage?: {
|
|
256
|
+
cpu_percent?: number | null | undefined;
|
|
257
|
+
memory_used_bytes?: number | null | undefined;
|
|
258
|
+
memory_total_bytes?: number | null | undefined;
|
|
259
|
+
disk_used_bytes?: number | null | undefined;
|
|
260
|
+
disk_total_bytes?: number | null | undefined;
|
|
261
|
+
egress_bytes?: number | null | undefined;
|
|
262
|
+
} | null | undefined;
|
|
74
263
|
}>>;
|
|
75
264
|
export type GetCvmStatusBatchResponse = z.infer<typeof GetCvmStatusBatchResponseSchema>;
|
|
76
265
|
export declare const GetCvmStatusBatchRequestSchema: z.ZodObject<{
|
|
@@ -120,14 +309,31 @@ declare const getCvmStatusBatch: {
|
|
|
120
309
|
vmUuids: string[];
|
|
121
310
|
}): Promise<Record<string, {
|
|
122
311
|
status: string;
|
|
123
|
-
in_progress: boolean;
|
|
124
312
|
vm_uuid: string;
|
|
313
|
+
in_progress: boolean;
|
|
314
|
+
events: {
|
|
315
|
+
body: string;
|
|
316
|
+
timestamp: number;
|
|
317
|
+
event: string;
|
|
318
|
+
}[];
|
|
125
319
|
uptime?: string | null | undefined;
|
|
126
320
|
boot_progress?: string | null | undefined;
|
|
127
321
|
boot_error?: string | null | undefined;
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
322
|
+
shutdown_progress?: string | null | undefined;
|
|
323
|
+
operation?: {
|
|
324
|
+
type?: string | null | undefined;
|
|
325
|
+
started_at?: string | null | undefined;
|
|
326
|
+
correlation_id?: string | null | undefined;
|
|
327
|
+
phase?: string | null | undefined;
|
|
328
|
+
} | null | undefined;
|
|
329
|
+
resource_usage?: {
|
|
330
|
+
cpu_percent?: number | null | undefined;
|
|
331
|
+
memory_used_bytes?: number | null | undefined;
|
|
332
|
+
memory_total_bytes?: number | null | undefined;
|
|
333
|
+
disk_used_bytes?: number | null | undefined;
|
|
334
|
+
disk_total_bytes?: number | null | undefined;
|
|
335
|
+
egress_bytes?: number | null | undefined;
|
|
336
|
+
} | null | undefined;
|
|
131
337
|
}>>;
|
|
132
338
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
133
339
|
vmUuids: string[];
|
|
@@ -144,14 +350,31 @@ declare const getCvmStatusBatch: {
|
|
|
144
350
|
vmUuids: string[];
|
|
145
351
|
}): Promise<import("../..").SafeResult<Record<string, {
|
|
146
352
|
status: string;
|
|
147
|
-
in_progress: boolean;
|
|
148
353
|
vm_uuid: string;
|
|
354
|
+
in_progress: boolean;
|
|
355
|
+
events: {
|
|
356
|
+
body: string;
|
|
357
|
+
timestamp: number;
|
|
358
|
+
event: string;
|
|
359
|
+
}[];
|
|
149
360
|
uptime?: string | null | undefined;
|
|
150
361
|
boot_progress?: string | null | undefined;
|
|
151
362
|
boot_error?: string | null | undefined;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
363
|
+
shutdown_progress?: string | null | undefined;
|
|
364
|
+
operation?: {
|
|
365
|
+
type?: string | null | undefined;
|
|
366
|
+
started_at?: string | null | undefined;
|
|
367
|
+
correlation_id?: string | null | undefined;
|
|
368
|
+
phase?: string | null | undefined;
|
|
369
|
+
} | null | undefined;
|
|
370
|
+
resource_usage?: {
|
|
371
|
+
cpu_percent?: number | null | undefined;
|
|
372
|
+
memory_used_bytes?: number | null | undefined;
|
|
373
|
+
memory_total_bytes?: number | null | undefined;
|
|
374
|
+
disk_used_bytes?: number | null | undefined;
|
|
375
|
+
disk_total_bytes?: number | null | undefined;
|
|
376
|
+
egress_bytes?: number | null | undefined;
|
|
377
|
+
} | null | undefined;
|
|
155
378
|
}>>>;
|
|
156
379
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
157
380
|
vmUuids: string[];
|
|
@@ -23,15 +23,15 @@ export declare const GetCvmUserConfigRequestSchema: z.ZodEffects<z.ZodEffects<z.
|
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
24
|
name?: string | undefined;
|
|
25
25
|
id?: string | undefined;
|
|
26
|
+
uuid?: string | undefined;
|
|
26
27
|
app_id?: string | undefined;
|
|
27
28
|
instance_id?: string | undefined;
|
|
28
|
-
uuid?: string | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
name?: string | undefined;
|
|
31
31
|
id?: string | undefined;
|
|
32
|
+
uuid?: string | undefined;
|
|
32
33
|
app_id?: string | undefined;
|
|
33
34
|
instance_id?: string | undefined;
|
|
34
|
-
uuid?: string | undefined;
|
|
35
35
|
}>, any, any>, {
|
|
36
36
|
cvmId: any;
|
|
37
37
|
}, any>;
|
|
@@ -28,15 +28,15 @@ export declare const GetPreLaunchScriptUpgradeStatusRequestSchema: z.ZodEffects<
|
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
29
|
name?: string | undefined;
|
|
30
30
|
id?: string | undefined;
|
|
31
|
+
uuid?: string | undefined;
|
|
31
32
|
app_id?: string | undefined;
|
|
32
33
|
instance_id?: string | undefined;
|
|
33
|
-
uuid?: string | undefined;
|
|
34
34
|
}, {
|
|
35
35
|
name?: string | undefined;
|
|
36
36
|
id?: string | undefined;
|
|
37
|
+
uuid?: string | undefined;
|
|
37
38
|
app_id?: string | undefined;
|
|
38
39
|
instance_id?: string | undefined;
|
|
39
|
-
uuid?: string | undefined;
|
|
40
40
|
}>, any, any>, {
|
|
41
41
|
cvmId: any;
|
|
42
42
|
}, any>;
|