@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
|
@@ -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 { RefreshCvmInstanceIdsVersionedResponse } from "../../types/version-mappings";
|
|
2
5
|
export declare const RefreshCvmInstanceIdsRequestSchema: z.ZodObject<{
|
|
3
6
|
cvm_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4
7
|
running_only: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -7,19 +10,19 @@ export declare const RefreshCvmInstanceIdsRequestSchema: z.ZodObject<{
|
|
|
7
10
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
8
11
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
9
12
|
}, "strict", z.ZodTypeAny, {
|
|
10
|
-
|
|
13
|
+
cvm_ids?: string[] | undefined;
|
|
11
14
|
overwrite?: boolean | undefined;
|
|
12
15
|
dry_run?: boolean | undefined;
|
|
13
|
-
cvm_ids?: string[] | undefined;
|
|
14
16
|
running_only?: boolean | undefined;
|
|
15
17
|
missing_only?: boolean | undefined;
|
|
16
|
-
}, {
|
|
17
18
|
limit?: number | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
cvm_ids?: string[] | undefined;
|
|
18
21
|
overwrite?: boolean | undefined;
|
|
19
22
|
dry_run?: boolean | undefined;
|
|
20
|
-
cvm_ids?: string[] | undefined;
|
|
21
23
|
running_only?: boolean | undefined;
|
|
22
24
|
missing_only?: boolean | undefined;
|
|
25
|
+
limit?: number | undefined;
|
|
23
26
|
}>;
|
|
24
27
|
export type RefreshCvmInstanceIdsRequest = z.infer<typeof RefreshCvmInstanceIdsRequestSchema>;
|
|
25
28
|
export declare const RefreshCvmInstanceIdsResponseV20260121Schema: z.ZodObject<{
|
|
@@ -43,59 +46,59 @@ export declare const RefreshCvmInstanceIdsResponseV20260121Schema: z.ZodObject<{
|
|
|
43
46
|
cvm_id: z.ZodNullable<z.ZodNumber>;
|
|
44
47
|
}, "strip", z.ZodTypeAny, {
|
|
45
48
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
46
|
-
|
|
49
|
+
cvm_id: number | null;
|
|
47
50
|
identifier: string;
|
|
51
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
48
52
|
verified_with_gateway: boolean;
|
|
49
|
-
cvm_id: number | null;
|
|
50
53
|
old_instance_id?: string | null | undefined;
|
|
51
54
|
new_instance_id?: string | null | undefined;
|
|
52
55
|
reason?: string | null | undefined;
|
|
53
56
|
}, {
|
|
54
57
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
55
|
-
|
|
58
|
+
cvm_id: number | null;
|
|
56
59
|
identifier: string;
|
|
60
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
57
61
|
verified_with_gateway: boolean;
|
|
58
|
-
cvm_id: number | null;
|
|
59
62
|
old_instance_id?: string | null | undefined;
|
|
60
63
|
new_instance_id?: string | null | undefined;
|
|
61
64
|
reason?: string | null | undefined;
|
|
62
65
|
}>, "many">;
|
|
63
66
|
}, "strip", z.ZodTypeAny, {
|
|
64
67
|
errors: number;
|
|
68
|
+
total: number;
|
|
69
|
+
updated: number;
|
|
70
|
+
unchanged: number;
|
|
71
|
+
skipped: number;
|
|
72
|
+
scanned: number;
|
|
73
|
+
conflicts: number;
|
|
65
74
|
items: {
|
|
66
75
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
67
|
-
|
|
76
|
+
cvm_id: number | null;
|
|
68
77
|
identifier: string;
|
|
78
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
69
79
|
verified_with_gateway: boolean;
|
|
70
|
-
cvm_id: number | null;
|
|
71
80
|
old_instance_id?: string | null | undefined;
|
|
72
81
|
new_instance_id?: string | null | undefined;
|
|
73
82
|
reason?: string | null | undefined;
|
|
74
83
|
}[];
|
|
84
|
+
}, {
|
|
85
|
+
errors: number;
|
|
75
86
|
total: number;
|
|
76
87
|
updated: number;
|
|
77
88
|
unchanged: number;
|
|
78
89
|
skipped: number;
|
|
79
90
|
scanned: number;
|
|
80
91
|
conflicts: number;
|
|
81
|
-
}, {
|
|
82
|
-
errors: number;
|
|
83
92
|
items: {
|
|
84
93
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
85
|
-
|
|
94
|
+
cvm_id: number | null;
|
|
86
95
|
identifier: string;
|
|
96
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
87
97
|
verified_with_gateway: boolean;
|
|
88
|
-
cvm_id: number | null;
|
|
89
98
|
old_instance_id?: string | null | undefined;
|
|
90
99
|
new_instance_id?: string | null | undefined;
|
|
91
100
|
reason?: string | null | undefined;
|
|
92
101
|
}[];
|
|
93
|
-
total: number;
|
|
94
|
-
updated: number;
|
|
95
|
-
unchanged: number;
|
|
96
|
-
skipped: number;
|
|
97
|
-
scanned: number;
|
|
98
|
-
conflicts: number;
|
|
99
102
|
}>;
|
|
100
103
|
export type RefreshCvmInstanceIdsResponseV20260121 = z.infer<typeof RefreshCvmInstanceIdsResponseV20260121Schema>;
|
|
101
104
|
export declare const RefreshCvmInstanceIdsResponseV20260522Schema: z.ZodObject<{
|
|
@@ -119,59 +122,59 @@ export declare const RefreshCvmInstanceIdsResponseV20260522Schema: z.ZodObject<{
|
|
|
119
122
|
cvm_id: z.ZodNullable<z.ZodString>;
|
|
120
123
|
}, "strip", z.ZodTypeAny, {
|
|
121
124
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
122
|
-
|
|
125
|
+
cvm_id: string | null;
|
|
123
126
|
identifier: string;
|
|
127
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
124
128
|
verified_with_gateway: boolean;
|
|
125
|
-
cvm_id: string | null;
|
|
126
129
|
old_instance_id?: string | null | undefined;
|
|
127
130
|
new_instance_id?: string | null | undefined;
|
|
128
131
|
reason?: string | null | undefined;
|
|
129
132
|
}, {
|
|
130
133
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
131
|
-
|
|
134
|
+
cvm_id: string | null;
|
|
132
135
|
identifier: string;
|
|
136
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
133
137
|
verified_with_gateway: boolean;
|
|
134
|
-
cvm_id: string | null;
|
|
135
138
|
old_instance_id?: string | null | undefined;
|
|
136
139
|
new_instance_id?: string | null | undefined;
|
|
137
140
|
reason?: string | null | undefined;
|
|
138
141
|
}>, "many">;
|
|
139
142
|
}, "strip", z.ZodTypeAny, {
|
|
140
143
|
errors: number;
|
|
144
|
+
total: number;
|
|
145
|
+
updated: number;
|
|
146
|
+
unchanged: number;
|
|
147
|
+
skipped: number;
|
|
148
|
+
scanned: number;
|
|
149
|
+
conflicts: number;
|
|
141
150
|
items: {
|
|
142
151
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
143
|
-
|
|
152
|
+
cvm_id: string | null;
|
|
144
153
|
identifier: string;
|
|
154
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
145
155
|
verified_with_gateway: boolean;
|
|
146
|
-
cvm_id: string | null;
|
|
147
156
|
old_instance_id?: string | null | undefined;
|
|
148
157
|
new_instance_id?: string | null | undefined;
|
|
149
158
|
reason?: string | null | undefined;
|
|
150
159
|
}[];
|
|
160
|
+
}, {
|
|
161
|
+
errors: number;
|
|
151
162
|
total: number;
|
|
152
163
|
updated: number;
|
|
153
164
|
unchanged: number;
|
|
154
165
|
skipped: number;
|
|
155
166
|
scanned: number;
|
|
156
167
|
conflicts: number;
|
|
157
|
-
}, {
|
|
158
|
-
errors: number;
|
|
159
168
|
items: {
|
|
160
169
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
161
|
-
|
|
170
|
+
cvm_id: string | null;
|
|
162
171
|
identifier: string;
|
|
172
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
163
173
|
verified_with_gateway: boolean;
|
|
164
|
-
cvm_id: string | null;
|
|
165
174
|
old_instance_id?: string | null | undefined;
|
|
166
175
|
new_instance_id?: string | null | undefined;
|
|
167
176
|
reason?: string | null | undefined;
|
|
168
177
|
}[];
|
|
169
|
-
total: number;
|
|
170
|
-
updated: number;
|
|
171
|
-
unchanged: number;
|
|
172
|
-
skipped: number;
|
|
173
|
-
scanned: number;
|
|
174
|
-
conflicts: number;
|
|
175
178
|
}>;
|
|
176
179
|
export type RefreshCvmInstanceIdsResponseV20260522 = z.infer<typeof RefreshCvmInstanceIdsResponseV20260522Schema>;
|
|
177
180
|
export declare const RefreshCvmInstanceIdsResponseAnySchema: z.ZodObject<{
|
|
@@ -183,7 +186,7 @@ export declare const RefreshCvmInstanceIdsResponseAnySchema: z.ZodObject<{
|
|
|
183
186
|
conflicts: z.ZodNumber;
|
|
184
187
|
errors: z.ZodNumber;
|
|
185
188
|
} & {
|
|
186
|
-
items: z.ZodArray<z.ZodObject<{
|
|
189
|
+
items: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
187
190
|
identifier: z.ZodString;
|
|
188
191
|
status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
|
|
189
192
|
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -192,62 +195,108 @@ export declare const RefreshCvmInstanceIdsResponseAnySchema: z.ZodObject<{
|
|
|
192
195
|
verified_with_gateway: z.ZodBoolean;
|
|
193
196
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
194
197
|
} & {
|
|
195
|
-
cvm_id: z.ZodNullable<z.
|
|
198
|
+
cvm_id: z.ZodNullable<z.ZodNumber>;
|
|
196
199
|
}, "strip", z.ZodTypeAny, {
|
|
197
200
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
198
|
-
|
|
201
|
+
cvm_id: number | null;
|
|
199
202
|
identifier: string;
|
|
203
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
200
204
|
verified_with_gateway: boolean;
|
|
201
|
-
cvm_id: string | null;
|
|
202
205
|
old_instance_id?: string | null | undefined;
|
|
203
206
|
new_instance_id?: string | null | undefined;
|
|
204
207
|
reason?: string | null | undefined;
|
|
205
208
|
}, {
|
|
206
209
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
207
|
-
|
|
210
|
+
cvm_id: number | null;
|
|
208
211
|
identifier: string;
|
|
212
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
209
213
|
verified_with_gateway: boolean;
|
|
210
|
-
cvm_id: string | null;
|
|
211
214
|
old_instance_id?: string | null | undefined;
|
|
212
215
|
new_instance_id?: string | null | undefined;
|
|
213
216
|
reason?: string | null | undefined;
|
|
214
|
-
}>,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
217
|
+
}>, z.ZodObject<{
|
|
218
|
+
identifier: z.ZodString;
|
|
219
|
+
status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
|
|
220
|
+
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
221
|
+
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
222
|
+
source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
|
|
223
|
+
verified_with_gateway: z.ZodBoolean;
|
|
224
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
225
|
+
} & {
|
|
226
|
+
cvm_id: z.ZodNullable<z.ZodString>;
|
|
227
|
+
}, "strip", z.ZodTypeAny, {
|
|
218
228
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
219
|
-
|
|
229
|
+
cvm_id: string | null;
|
|
220
230
|
identifier: string;
|
|
231
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
221
232
|
verified_with_gateway: boolean;
|
|
233
|
+
old_instance_id?: string | null | undefined;
|
|
234
|
+
new_instance_id?: string | null | undefined;
|
|
235
|
+
reason?: string | null | undefined;
|
|
236
|
+
}, {
|
|
237
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
222
238
|
cvm_id: string | null;
|
|
239
|
+
identifier: string;
|
|
240
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
241
|
+
verified_with_gateway: boolean;
|
|
223
242
|
old_instance_id?: string | null | undefined;
|
|
224
243
|
new_instance_id?: string | null | undefined;
|
|
225
244
|
reason?: string | null | undefined;
|
|
226
|
-
}
|
|
245
|
+
}>]>, "many">;
|
|
246
|
+
}, "strip", z.ZodTypeAny, {
|
|
247
|
+
errors: number;
|
|
227
248
|
total: number;
|
|
228
249
|
updated: number;
|
|
229
250
|
unchanged: number;
|
|
230
251
|
skipped: number;
|
|
231
252
|
scanned: number;
|
|
232
253
|
conflicts: number;
|
|
233
|
-
|
|
234
|
-
errors: number;
|
|
235
|
-
items: {
|
|
254
|
+
items: ({
|
|
236
255
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
237
|
-
|
|
256
|
+
cvm_id: number | null;
|
|
238
257
|
identifier: string;
|
|
258
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
239
259
|
verified_with_gateway: boolean;
|
|
260
|
+
old_instance_id?: string | null | undefined;
|
|
261
|
+
new_instance_id?: string | null | undefined;
|
|
262
|
+
reason?: string | null | undefined;
|
|
263
|
+
} | {
|
|
264
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
240
265
|
cvm_id: string | null;
|
|
266
|
+
identifier: string;
|
|
267
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
268
|
+
verified_with_gateway: boolean;
|
|
241
269
|
old_instance_id?: string | null | undefined;
|
|
242
270
|
new_instance_id?: string | null | undefined;
|
|
243
271
|
reason?: string | null | undefined;
|
|
244
|
-
}[];
|
|
272
|
+
})[];
|
|
273
|
+
}, {
|
|
274
|
+
errors: number;
|
|
245
275
|
total: number;
|
|
246
276
|
updated: number;
|
|
247
277
|
unchanged: number;
|
|
248
278
|
skipped: number;
|
|
249
279
|
scanned: number;
|
|
250
280
|
conflicts: number;
|
|
281
|
+
items: ({
|
|
282
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
283
|
+
cvm_id: number | null;
|
|
284
|
+
identifier: string;
|
|
285
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
286
|
+
verified_with_gateway: boolean;
|
|
287
|
+
old_instance_id?: string | null | undefined;
|
|
288
|
+
new_instance_id?: string | null | undefined;
|
|
289
|
+
reason?: string | null | undefined;
|
|
290
|
+
} | {
|
|
291
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
292
|
+
cvm_id: string | null;
|
|
293
|
+
identifier: string;
|
|
294
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
295
|
+
verified_with_gateway: boolean;
|
|
296
|
+
old_instance_id?: string | null | undefined;
|
|
297
|
+
new_instance_id?: string | null | undefined;
|
|
298
|
+
reason?: string | null | undefined;
|
|
299
|
+
})[];
|
|
251
300
|
}>;
|
|
252
301
|
export declare const RefreshCvmInstanceIdsResponseSchema: z.ZodObject<{
|
|
253
302
|
total: z.ZodNumber;
|
|
@@ -270,154 +319,60 @@ export declare const RefreshCvmInstanceIdsResponseSchema: z.ZodObject<{
|
|
|
270
319
|
cvm_id: z.ZodNullable<z.ZodString>;
|
|
271
320
|
}, "strip", z.ZodTypeAny, {
|
|
272
321
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
273
|
-
|
|
322
|
+
cvm_id: string | null;
|
|
274
323
|
identifier: string;
|
|
324
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
275
325
|
verified_with_gateway: boolean;
|
|
276
|
-
cvm_id: string | null;
|
|
277
326
|
old_instance_id?: string | null | undefined;
|
|
278
327
|
new_instance_id?: string | null | undefined;
|
|
279
328
|
reason?: string | null | undefined;
|
|
280
329
|
}, {
|
|
281
330
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
282
|
-
|
|
331
|
+
cvm_id: string | null;
|
|
283
332
|
identifier: string;
|
|
333
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
284
334
|
verified_with_gateway: boolean;
|
|
285
|
-
cvm_id: string | null;
|
|
286
335
|
old_instance_id?: string | null | undefined;
|
|
287
336
|
new_instance_id?: string | null | undefined;
|
|
288
337
|
reason?: string | null | undefined;
|
|
289
338
|
}>, "many">;
|
|
290
339
|
}, "strip", z.ZodTypeAny, {
|
|
291
340
|
errors: number;
|
|
341
|
+
total: number;
|
|
342
|
+
updated: number;
|
|
343
|
+
unchanged: number;
|
|
344
|
+
skipped: number;
|
|
345
|
+
scanned: number;
|
|
346
|
+
conflicts: number;
|
|
292
347
|
items: {
|
|
293
348
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
294
|
-
|
|
349
|
+
cvm_id: string | null;
|
|
295
350
|
identifier: string;
|
|
351
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
296
352
|
verified_with_gateway: boolean;
|
|
297
|
-
cvm_id: string | null;
|
|
298
353
|
old_instance_id?: string | null | undefined;
|
|
299
354
|
new_instance_id?: string | null | undefined;
|
|
300
355
|
reason?: string | null | undefined;
|
|
301
356
|
}[];
|
|
357
|
+
}, {
|
|
358
|
+
errors: number;
|
|
302
359
|
total: number;
|
|
303
360
|
updated: number;
|
|
304
361
|
unchanged: number;
|
|
305
362
|
skipped: number;
|
|
306
363
|
scanned: number;
|
|
307
364
|
conflicts: number;
|
|
308
|
-
}, {
|
|
309
|
-
errors: number;
|
|
310
365
|
items: {
|
|
311
366
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
312
|
-
|
|
367
|
+
cvm_id: string | null;
|
|
313
368
|
identifier: string;
|
|
369
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
314
370
|
verified_with_gateway: boolean;
|
|
315
|
-
cvm_id: string | null;
|
|
316
371
|
old_instance_id?: string | null | undefined;
|
|
317
372
|
new_instance_id?: string | null | undefined;
|
|
318
373
|
reason?: string | null | undefined;
|
|
319
374
|
}[];
|
|
320
|
-
total: number;
|
|
321
|
-
updated: number;
|
|
322
|
-
unchanged: number;
|
|
323
|
-
skipped: number;
|
|
324
|
-
scanned: number;
|
|
325
|
-
conflicts: number;
|
|
326
375
|
}>;
|
|
327
376
|
export type RefreshCvmInstanceIdsResponse = z.infer<typeof RefreshCvmInstanceIdsResponseSchema>;
|
|
328
|
-
declare
|
|
329
|
-
|
|
330
|
-
limit?: number | undefined;
|
|
331
|
-
overwrite?: boolean | undefined;
|
|
332
|
-
dry_run?: boolean | undefined;
|
|
333
|
-
cvm_ids?: string[] | undefined;
|
|
334
|
-
running_only?: boolean | undefined;
|
|
335
|
-
missing_only?: boolean | undefined;
|
|
336
|
-
}): Promise<{
|
|
337
|
-
errors: number;
|
|
338
|
-
items: {
|
|
339
|
-
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
340
|
-
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
341
|
-
identifier: string;
|
|
342
|
-
verified_with_gateway: boolean;
|
|
343
|
-
cvm_id: string | null;
|
|
344
|
-
old_instance_id?: string | null | undefined;
|
|
345
|
-
new_instance_id?: string | null | undefined;
|
|
346
|
-
reason?: string | null | undefined;
|
|
347
|
-
}[];
|
|
348
|
-
total: number;
|
|
349
|
-
updated: number;
|
|
350
|
-
unchanged: number;
|
|
351
|
-
skipped: number;
|
|
352
|
-
scanned: number;
|
|
353
|
-
conflicts: number;
|
|
354
|
-
}>;
|
|
355
|
-
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
356
|
-
limit?: number | undefined;
|
|
357
|
-
overwrite?: boolean | undefined;
|
|
358
|
-
dry_run?: boolean | undefined;
|
|
359
|
-
cvm_ids?: string[] | undefined;
|
|
360
|
-
running_only?: boolean | undefined;
|
|
361
|
-
missing_only?: boolean | undefined;
|
|
362
|
-
}, parameters: {
|
|
363
|
-
schema: T;
|
|
364
|
-
}): Promise<z.TypeOf<T>>;
|
|
365
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
366
|
-
limit?: number | undefined;
|
|
367
|
-
overwrite?: boolean | undefined;
|
|
368
|
-
dry_run?: boolean | undefined;
|
|
369
|
-
cvm_ids?: string[] | undefined;
|
|
370
|
-
running_only?: boolean | undefined;
|
|
371
|
-
missing_only?: boolean | undefined;
|
|
372
|
-
}, parameters: {
|
|
373
|
-
schema: false;
|
|
374
|
-
}): Promise<unknown>;
|
|
375
|
-
}, safeRefreshCvmInstanceIds: {
|
|
376
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
377
|
-
limit?: number | undefined;
|
|
378
|
-
overwrite?: boolean | undefined;
|
|
379
|
-
dry_run?: boolean | undefined;
|
|
380
|
-
cvm_ids?: string[] | undefined;
|
|
381
|
-
running_only?: boolean | undefined;
|
|
382
|
-
missing_only?: boolean | undefined;
|
|
383
|
-
}): Promise<import("../..").SafeResult<{
|
|
384
|
-
errors: number;
|
|
385
|
-
items: {
|
|
386
|
-
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
387
|
-
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
388
|
-
identifier: string;
|
|
389
|
-
verified_with_gateway: boolean;
|
|
390
|
-
cvm_id: string | null;
|
|
391
|
-
old_instance_id?: string | null | undefined;
|
|
392
|
-
new_instance_id?: string | null | undefined;
|
|
393
|
-
reason?: string | null | undefined;
|
|
394
|
-
}[];
|
|
395
|
-
total: number;
|
|
396
|
-
updated: number;
|
|
397
|
-
unchanged: number;
|
|
398
|
-
skipped: number;
|
|
399
|
-
scanned: number;
|
|
400
|
-
conflicts: number;
|
|
401
|
-
}>>;
|
|
402
|
-
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
403
|
-
limit?: number | undefined;
|
|
404
|
-
overwrite?: boolean | undefined;
|
|
405
|
-
dry_run?: boolean | undefined;
|
|
406
|
-
cvm_ids?: string[] | undefined;
|
|
407
|
-
running_only?: boolean | undefined;
|
|
408
|
-
missing_only?: boolean | undefined;
|
|
409
|
-
}, parameters: {
|
|
410
|
-
schema: T;
|
|
411
|
-
}): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
|
|
412
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
413
|
-
limit?: number | undefined;
|
|
414
|
-
overwrite?: boolean | undefined;
|
|
415
|
-
dry_run?: boolean | undefined;
|
|
416
|
-
cvm_ids?: string[] | undefined;
|
|
417
|
-
running_only?: boolean | undefined;
|
|
418
|
-
missing_only?: boolean | undefined;
|
|
419
|
-
}, parameters: {
|
|
420
|
-
schema: false;
|
|
421
|
-
}): Promise<import("../..").SafeResult<unknown>>;
|
|
422
|
-
};
|
|
423
|
-
export { refreshCvmInstanceIds, safeRefreshCvmInstanceIds };
|
|
377
|
+
export declare function refreshCvmInstanceIds<V extends ApiVersion>(client: Client<V>, request: RefreshCvmInstanceIdsRequest): Promise<RefreshCvmInstanceIdsVersionedResponse<V>>;
|
|
378
|
+
export declare function safeRefreshCvmInstanceIds<V extends ApiVersion>(client: Client<V>, request: RefreshCvmInstanceIdsRequest): Promise<SafeResult<RefreshCvmInstanceIdsVersionedResponse<V>>>;
|
|
@@ -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 VMForVersion } from "../../types/cvm_info";
|
|
2
5
|
/**
|
|
3
6
|
* Replicate (scale up) a CVM by creating a new replica
|
|
4
7
|
*
|
|
@@ -41,86 +44,18 @@ export declare const ReplicateCvmRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
41
44
|
}, "strip", z.ZodTypeAny, {
|
|
42
45
|
name?: string | undefined;
|
|
43
46
|
id?: string | undefined;
|
|
47
|
+
uuid?: string | undefined;
|
|
44
48
|
app_id?: string | undefined;
|
|
45
49
|
instance_id?: string | undefined;
|
|
46
|
-
uuid?: string | undefined;
|
|
47
50
|
node_id?: number | undefined;
|
|
48
51
|
}, {
|
|
49
52
|
name?: string | undefined;
|
|
50
53
|
id?: string | undefined;
|
|
54
|
+
uuid?: string | undefined;
|
|
51
55
|
app_id?: string | undefined;
|
|
52
56
|
instance_id?: string | undefined;
|
|
53
|
-
uuid?: string | undefined;
|
|
54
57
|
node_id?: number | undefined;
|
|
55
58
|
}>, any, any>;
|
|
56
59
|
export type ReplicateCvmRequest = z.infer<typeof ReplicateCvmRequestSchema>;
|
|
57
|
-
declare
|
|
58
|
-
|
|
59
|
-
status: string;
|
|
60
|
-
name: string;
|
|
61
|
-
id: string;
|
|
62
|
-
app_id: string;
|
|
63
|
-
instance_id: string | null;
|
|
64
|
-
vcpu: number;
|
|
65
|
-
memory: number;
|
|
66
|
-
disk_size: number;
|
|
67
|
-
teepod_id: number;
|
|
68
|
-
vm_uuid: string | null;
|
|
69
|
-
encrypted_env_pubkey: string | null;
|
|
70
|
-
created_at: string;
|
|
71
|
-
version?: string | null | undefined;
|
|
72
|
-
app_url?: string | null | undefined;
|
|
73
|
-
teepod?: {
|
|
74
|
-
name: string;
|
|
75
|
-
id: number;
|
|
76
|
-
region_identifier?: string | null | undefined;
|
|
77
|
-
} | null | undefined;
|
|
78
|
-
base_image?: string | null | undefined;
|
|
79
|
-
user_id?: string | null | undefined;
|
|
80
|
-
docker_compose_file?: string | null | undefined;
|
|
81
|
-
features?: string[] | null | undefined;
|
|
82
|
-
manifest_version?: number | null | undefined;
|
|
83
|
-
runner?: string | null | undefined;
|
|
84
|
-
}>;
|
|
85
|
-
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
|
|
86
|
-
schema: T;
|
|
87
|
-
} | undefined): Promise<z.TypeOf<T>>;
|
|
88
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
|
|
89
|
-
schema: false;
|
|
90
|
-
} | undefined): Promise<unknown>;
|
|
91
|
-
}, safeReplicateCvm: {
|
|
92
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<import("../..").SafeResult<{
|
|
93
|
-
status: string;
|
|
94
|
-
name: string;
|
|
95
|
-
id: string;
|
|
96
|
-
app_id: string;
|
|
97
|
-
instance_id: string | null;
|
|
98
|
-
vcpu: number;
|
|
99
|
-
memory: number;
|
|
100
|
-
disk_size: number;
|
|
101
|
-
teepod_id: number;
|
|
102
|
-
vm_uuid: string | null;
|
|
103
|
-
encrypted_env_pubkey: string | null;
|
|
104
|
-
created_at: string;
|
|
105
|
-
version?: string | null | undefined;
|
|
106
|
-
app_url?: string | null | undefined;
|
|
107
|
-
teepod?: {
|
|
108
|
-
name: string;
|
|
109
|
-
id: number;
|
|
110
|
-
region_identifier?: string | null | undefined;
|
|
111
|
-
} | null | undefined;
|
|
112
|
-
base_image?: string | null | undefined;
|
|
113
|
-
user_id?: string | null | undefined;
|
|
114
|
-
docker_compose_file?: string | null | undefined;
|
|
115
|
-
features?: string[] | null | undefined;
|
|
116
|
-
manifest_version?: number | null | undefined;
|
|
117
|
-
runner?: string | null | undefined;
|
|
118
|
-
}>>;
|
|
119
|
-
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
|
|
120
|
-
schema: T;
|
|
121
|
-
} | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
|
|
122
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
|
|
123
|
-
schema: false;
|
|
124
|
-
} | undefined): Promise<import("../..").SafeResult<unknown>>;
|
|
125
|
-
};
|
|
126
|
-
export { replicateCvm, safeReplicateCvm };
|
|
60
|
+
export declare function replicateCvm<V extends ApiVersion>(client: Client<V>, request: ReplicateCvmRequest): Promise<VMForVersion<V>>;
|
|
61
|
+
export declare function safeReplicateCvm<V extends ApiVersion>(client: Client<V>, request: ReplicateCvmRequest): Promise<SafeResult<VMForVersion<V>>>;
|