@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.
Files changed (70) hide show
  1. package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +324 -75
  2. package/dist/actions/apps/check_app_is_allowed.d.ts +16 -16
  3. package/dist/actions/apps/create_app_instance.d.ts +33 -24
  4. package/dist/actions/apps/get_app_attestation.d.ts +82 -32
  5. package/dist/actions/apps/get_app_device_allowlist.d.ts +281 -11
  6. package/dist/actions/apps/get_app_filter_options.d.ts +2 -2
  7. package/dist/actions/apps/get_app_list.d.ts +2 -2
  8. package/dist/actions/cvms/check_cvm_is_allowed.d.ts +142 -74
  9. package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +12 -12
  10. package/dist/actions/cvms/commit_cvm_provision.d.ts +424 -277
  11. package/dist/actions/cvms/commit_cvm_update.d.ts +2 -2
  12. package/dist/actions/cvms/confirm_cvm_patch.d.ts +2 -2
  13. package/dist/actions/cvms/delete_cvm.d.ts +2 -2
  14. package/dist/actions/cvms/get_available_os_images.d.ts +2 -2
  15. package/dist/actions/cvms/get_cvm_attestation.d.ts +2 -2
  16. package/dist/actions/cvms/get_cvm_compose_file.d.ts +338 -10
  17. package/dist/actions/cvms/get_cvm_containers_stats.d.ts +10 -10
  18. package/dist/actions/cvms/get_cvm_docker_compose.d.ts +2 -2
  19. package/dist/actions/cvms/get_cvm_info.d.ts +2 -2
  20. package/dist/actions/cvms/get_cvm_list.d.ts +4 -4
  21. package/dist/actions/cvms/get_cvm_network.d.ts +2 -2
  22. package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +2 -2
  23. package/dist/actions/cvms/get_cvm_state.d.ts +6 -6
  24. package/dist/actions/cvms/get_cvm_stats.d.ts +2 -2
  25. package/dist/actions/cvms/get_cvm_status_batch.d.ts +6 -6
  26. package/dist/actions/cvms/get_cvm_user_config.d.ts +2 -2
  27. package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +93 -0
  28. package/dist/actions/cvms/patch_cvm.d.ts +18 -18
  29. package/dist/actions/cvms/provision_cvm.d.ts +243 -225
  30. package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +254 -38
  31. package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +130 -43
  32. package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +294 -110
  33. package/dist/actions/cvms/replicate_cvm.d.ts +7 -72
  34. package/dist/actions/cvms/restart_cvm.d.ts +7 -72
  35. package/dist/actions/cvms/shutdown_cvm.d.ts +9 -72
  36. package/dist/actions/cvms/start_cvm.d.ts +7 -72
  37. package/dist/actions/cvms/stop_cvm.d.ts +7 -72
  38. package/dist/actions/cvms/update_cvm_envs.d.ts +20 -20
  39. package/dist/actions/cvms/update_cvm_resources.d.ts +2 -2
  40. package/dist/actions/cvms/update_cvm_visibility.d.ts +26 -26
  41. package/dist/actions/cvms/update_docker_compose.d.ts +20 -20
  42. package/dist/actions/cvms/update_os_image.d.ts +2 -2
  43. package/dist/actions/cvms/update_prelaunch_script.d.ts +20 -20
  44. package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +319 -0
  45. package/dist/actions/get_cvm_create_resources.d.ts +2412 -0
  46. package/dist/actions/index.d.ts +3 -0
  47. package/dist/actions/kms/get_kms_list.d.ts +10 -10
  48. package/dist/actions/kms/next_app_ids.d.ts +6 -6
  49. package/dist/actions/list-instance-types.d.ts +12 -12
  50. package/dist/actions/ssh_keys/create_ssh_key.d.ts +2 -2
  51. package/dist/actions/ssh_keys/list_ssh_keys.d.ts +4 -4
  52. package/dist/actions/workspaces/get_workspace.d.ts +2 -0
  53. package/dist/actions/workspaces/get_workspace_nodes.d.ts +14 -14
  54. package/dist/actions/workspaces/list_workspaces.d.ts +18 -0
  55. package/dist/client.d.ts +5 -2
  56. package/dist/create-client.d.ts +48 -0
  57. package/dist/index.js +1882 -1257
  58. package/dist/index.mjs +1850 -1255
  59. package/dist/types/app_compose.d.ts +125 -0
  60. package/dist/types/app_info_v20251028.d.ts +136 -259
  61. package/dist/types/app_info_v20260121.d.ts +4677 -345
  62. package/dist/types/app_revision.d.ts +8 -8
  63. package/dist/types/client.d.ts +2 -2
  64. package/dist/types/cvm_id.d.ts +6 -6
  65. package/dist/types/cvm_info.d.ts +536 -10
  66. package/dist/types/cvm_info_v20251028.d.ts +65 -65
  67. package/dist/types/cvm_info_v20260121.d.ts +1636 -85
  68. package/dist/types/version-mappings.d.ts +45 -8
  69. package/dist/utils/errors.d.ts +8 -1
  70. package/package.json +2 -2
@@ -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,22 +10,22 @@ 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
- limit?: number | undefined;
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
- export declare const RefreshCvmInstanceIdsResponseSchema: z.ZodObject<{
28
+ export declare const RefreshCvmInstanceIdsResponseV20260121Schema: z.ZodObject<{
26
29
  total: z.ZodNumber;
27
30
  scanned: z.ZodNumber;
28
31
  updated: z.ZodNumber;
@@ -30,8 +33,8 @@ export declare const RefreshCvmInstanceIdsResponseSchema: z.ZodObject<{
30
33
  skipped: z.ZodNumber;
31
34
  conflicts: z.ZodNumber;
32
35
  errors: z.ZodNumber;
36
+ } & {
33
37
  items: z.ZodArray<z.ZodObject<{
34
- cvm_id: z.ZodNumber;
35
38
  identifier: z.ZodString;
36
39
  status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
37
40
  old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -39,20 +42,22 @@ export declare const RefreshCvmInstanceIdsResponseSchema: z.ZodObject<{
39
42
  source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
40
43
  verified_with_gateway: z.ZodBoolean;
41
44
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ } & {
46
+ cvm_id: z.ZodNullable<z.ZodNumber>;
42
47
  }, "strip", z.ZodTypeAny, {
43
48
  status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
44
- source: "gateway" | "teepod_state" | "teepod_info" | "none";
45
- cvm_id: number;
49
+ cvm_id: number | null;
46
50
  identifier: string;
51
+ source: "teepod_state" | "teepod_info" | "gateway" | "none";
47
52
  verified_with_gateway: boolean;
48
53
  old_instance_id?: string | null | undefined;
49
54
  new_instance_id?: string | null | undefined;
50
55
  reason?: string | null | undefined;
51
56
  }, {
52
57
  status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
53
- source: "gateway" | "teepod_state" | "teepod_info" | "none";
54
- cvm_id: number;
58
+ cvm_id: number | null;
55
59
  identifier: string;
60
+ source: "teepod_state" | "teepod_info" | "gateway" | "none";
56
61
  verified_with_gateway: boolean;
57
62
  old_instance_id?: string | null | undefined;
58
63
  new_instance_id?: string | null | undefined;
@@ -60,135 +65,314 @@ export declare const RefreshCvmInstanceIdsResponseSchema: z.ZodObject<{
60
65
  }>, "many">;
61
66
  }, "strip", z.ZodTypeAny, {
62
67
  errors: number;
68
+ total: number;
69
+ updated: number;
70
+ unchanged: number;
71
+ skipped: number;
72
+ scanned: number;
73
+ conflicts: number;
63
74
  items: {
64
75
  status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
65
- source: "gateway" | "teepod_state" | "teepod_info" | "none";
66
- cvm_id: number;
76
+ cvm_id: number | null;
67
77
  identifier: string;
78
+ source: "teepod_state" | "teepod_info" | "gateway" | "none";
68
79
  verified_with_gateway: boolean;
69
80
  old_instance_id?: string | null | undefined;
70
81
  new_instance_id?: string | null | undefined;
71
82
  reason?: string | null | undefined;
72
83
  }[];
84
+ }, {
85
+ errors: number;
86
+ total: number;
87
+ updated: number;
88
+ unchanged: number;
89
+ skipped: number;
90
+ scanned: number;
91
+ conflicts: number;
92
+ items: {
93
+ status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
94
+ cvm_id: number | null;
95
+ identifier: string;
96
+ source: "teepod_state" | "teepod_info" | "gateway" | "none";
97
+ verified_with_gateway: boolean;
98
+ old_instance_id?: string | null | undefined;
99
+ new_instance_id?: string | null | undefined;
100
+ reason?: string | null | undefined;
101
+ }[];
102
+ }>;
103
+ export type RefreshCvmInstanceIdsResponseV20260121 = z.infer<typeof RefreshCvmInstanceIdsResponseV20260121Schema>;
104
+ export declare const RefreshCvmInstanceIdsResponseV20260522Schema: z.ZodObject<{
105
+ total: z.ZodNumber;
106
+ scanned: z.ZodNumber;
107
+ updated: z.ZodNumber;
108
+ unchanged: z.ZodNumber;
109
+ skipped: z.ZodNumber;
110
+ conflicts: z.ZodNumber;
111
+ errors: z.ZodNumber;
112
+ } & {
113
+ items: z.ZodArray<z.ZodObject<{
114
+ identifier: z.ZodString;
115
+ status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
116
+ old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
+ new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
+ source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
119
+ verified_with_gateway: z.ZodBoolean;
120
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
+ } & {
122
+ cvm_id: z.ZodNullable<z.ZodString>;
123
+ }, "strip", z.ZodTypeAny, {
124
+ status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
125
+ cvm_id: string | null;
126
+ identifier: string;
127
+ source: "teepod_state" | "teepod_info" | "gateway" | "none";
128
+ verified_with_gateway: boolean;
129
+ old_instance_id?: string | null | undefined;
130
+ new_instance_id?: string | null | undefined;
131
+ reason?: string | null | undefined;
132
+ }, {
133
+ status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
134
+ cvm_id: string | null;
135
+ identifier: string;
136
+ source: "teepod_state" | "teepod_info" | "gateway" | "none";
137
+ verified_with_gateway: boolean;
138
+ old_instance_id?: string | null | undefined;
139
+ new_instance_id?: string | null | undefined;
140
+ reason?: string | null | undefined;
141
+ }>, "many">;
142
+ }, "strip", z.ZodTypeAny, {
143
+ errors: number;
144
+ total: number;
145
+ updated: number;
146
+ unchanged: number;
147
+ skipped: number;
148
+ scanned: number;
149
+ conflicts: number;
150
+ items: {
151
+ status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
152
+ cvm_id: string | null;
153
+ identifier: string;
154
+ source: "teepod_state" | "teepod_info" | "gateway" | "none";
155
+ verified_with_gateway: boolean;
156
+ old_instance_id?: string | null | undefined;
157
+ new_instance_id?: string | null | undefined;
158
+ reason?: string | null | undefined;
159
+ }[];
160
+ }, {
161
+ errors: number;
162
+ total: number;
163
+ updated: number;
164
+ unchanged: number;
165
+ skipped: number;
166
+ scanned: number;
167
+ conflicts: number;
168
+ items: {
169
+ status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
170
+ cvm_id: string | null;
171
+ identifier: string;
172
+ source: "teepod_state" | "teepod_info" | "gateway" | "none";
173
+ verified_with_gateway: boolean;
174
+ old_instance_id?: string | null | undefined;
175
+ new_instance_id?: string | null | undefined;
176
+ reason?: string | null | undefined;
177
+ }[];
178
+ }>;
179
+ export type RefreshCvmInstanceIdsResponseV20260522 = z.infer<typeof RefreshCvmInstanceIdsResponseV20260522Schema>;
180
+ export declare const RefreshCvmInstanceIdsResponseAnySchema: z.ZodObject<{
181
+ total: z.ZodNumber;
182
+ scanned: z.ZodNumber;
183
+ updated: z.ZodNumber;
184
+ unchanged: z.ZodNumber;
185
+ skipped: z.ZodNumber;
186
+ conflicts: z.ZodNumber;
187
+ errors: z.ZodNumber;
188
+ } & {
189
+ items: z.ZodArray<z.ZodUnion<[z.ZodObject<{
190
+ identifier: z.ZodString;
191
+ status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
192
+ old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
193
+ new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
+ source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
195
+ verified_with_gateway: z.ZodBoolean;
196
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
+ } & {
198
+ cvm_id: z.ZodNullable<z.ZodNumber>;
199
+ }, "strip", z.ZodTypeAny, {
200
+ status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
201
+ cvm_id: number | null;
202
+ identifier: string;
203
+ source: "teepod_state" | "teepod_info" | "gateway" | "none";
204
+ verified_with_gateway: boolean;
205
+ old_instance_id?: string | null | undefined;
206
+ new_instance_id?: string | null | undefined;
207
+ reason?: string | null | undefined;
208
+ }, {
209
+ status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
210
+ cvm_id: number | null;
211
+ identifier: string;
212
+ source: "teepod_state" | "teepod_info" | "gateway" | "none";
213
+ verified_with_gateway: boolean;
214
+ old_instance_id?: string | null | undefined;
215
+ new_instance_id?: string | null | undefined;
216
+ reason?: string | null | undefined;
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, {
228
+ status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
229
+ cvm_id: string | null;
230
+ identifier: string;
231
+ source: "teepod_state" | "teepod_info" | "gateway" | "none";
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";
238
+ cvm_id: string | null;
239
+ identifier: string;
240
+ source: "teepod_state" | "teepod_info" | "gateway" | "none";
241
+ verified_with_gateway: boolean;
242
+ old_instance_id?: string | null | undefined;
243
+ new_instance_id?: string | null | undefined;
244
+ reason?: string | null | undefined;
245
+ }>]>, "many">;
246
+ }, "strip", z.ZodTypeAny, {
247
+ errors: number;
73
248
  total: number;
74
249
  updated: number;
75
250
  unchanged: number;
76
251
  skipped: number;
77
252
  scanned: number;
78
253
  conflicts: number;
254
+ items: ({
255
+ status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
256
+ cvm_id: number | null;
257
+ identifier: string;
258
+ source: "teepod_state" | "teepod_info" | "gateway" | "none";
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";
265
+ cvm_id: string | null;
266
+ identifier: string;
267
+ source: "teepod_state" | "teepod_info" | "gateway" | "none";
268
+ verified_with_gateway: boolean;
269
+ old_instance_id?: string | null | undefined;
270
+ new_instance_id?: string | null | undefined;
271
+ reason?: string | null | undefined;
272
+ })[];
79
273
  }, {
80
274
  errors: number;
275
+ total: number;
276
+ updated: number;
277
+ unchanged: number;
278
+ skipped: number;
279
+ scanned: number;
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
+ })[];
300
+ }>;
301
+ export declare const RefreshCvmInstanceIdsResponseSchema: z.ZodObject<{
302
+ total: z.ZodNumber;
303
+ scanned: z.ZodNumber;
304
+ updated: z.ZodNumber;
305
+ unchanged: z.ZodNumber;
306
+ skipped: z.ZodNumber;
307
+ conflicts: z.ZodNumber;
308
+ errors: z.ZodNumber;
309
+ } & {
310
+ items: z.ZodArray<z.ZodObject<{
311
+ identifier: z.ZodString;
312
+ status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
313
+ old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
314
+ new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
315
+ source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
316
+ verified_with_gateway: z.ZodBoolean;
317
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
318
+ } & {
319
+ cvm_id: z.ZodNullable<z.ZodString>;
320
+ }, "strip", z.ZodTypeAny, {
321
+ status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
322
+ cvm_id: string | null;
323
+ identifier: string;
324
+ source: "teepod_state" | "teepod_info" | "gateway" | "none";
325
+ verified_with_gateway: boolean;
326
+ old_instance_id?: string | null | undefined;
327
+ new_instance_id?: string | null | undefined;
328
+ reason?: string | null | undefined;
329
+ }, {
330
+ status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
331
+ cvm_id: string | null;
332
+ identifier: string;
333
+ source: "teepod_state" | "teepod_info" | "gateway" | "none";
334
+ verified_with_gateway: boolean;
335
+ old_instance_id?: string | null | undefined;
336
+ new_instance_id?: string | null | undefined;
337
+ reason?: string | null | undefined;
338
+ }>, "many">;
339
+ }, "strip", z.ZodTypeAny, {
340
+ errors: number;
341
+ total: number;
342
+ updated: number;
343
+ unchanged: number;
344
+ skipped: number;
345
+ scanned: number;
346
+ conflicts: number;
81
347
  items: {
82
348
  status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
83
- source: "gateway" | "teepod_state" | "teepod_info" | "none";
84
- cvm_id: number;
349
+ cvm_id: string | null;
85
350
  identifier: string;
351
+ source: "teepod_state" | "teepod_info" | "gateway" | "none";
86
352
  verified_with_gateway: boolean;
87
353
  old_instance_id?: string | null | undefined;
88
354
  new_instance_id?: string | null | undefined;
89
355
  reason?: string | null | undefined;
90
356
  }[];
357
+ }, {
358
+ errors: number;
91
359
  total: number;
92
360
  updated: number;
93
361
  unchanged: number;
94
362
  skipped: number;
95
363
  scanned: number;
96
364
  conflicts: number;
365
+ items: {
366
+ status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
367
+ cvm_id: string | null;
368
+ identifier: string;
369
+ source: "teepod_state" | "teepod_info" | "gateway" | "none";
370
+ verified_with_gateway: boolean;
371
+ old_instance_id?: string | null | undefined;
372
+ new_instance_id?: string | null | undefined;
373
+ reason?: string | null | undefined;
374
+ }[];
97
375
  }>;
98
376
  export type RefreshCvmInstanceIdsResponse = z.infer<typeof RefreshCvmInstanceIdsResponseSchema>;
99
- declare const refreshCvmInstanceIds: {
100
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
101
- limit?: number | undefined;
102
- overwrite?: boolean | undefined;
103
- dry_run?: boolean | undefined;
104
- cvm_ids?: string[] | undefined;
105
- running_only?: boolean | undefined;
106
- missing_only?: boolean | undefined;
107
- }): Promise<{
108
- errors: number;
109
- items: {
110
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
111
- source: "gateway" | "teepod_state" | "teepod_info" | "none";
112
- cvm_id: number;
113
- identifier: string;
114
- verified_with_gateway: boolean;
115
- old_instance_id?: string | null | undefined;
116
- new_instance_id?: string | null | undefined;
117
- reason?: string | null | undefined;
118
- }[];
119
- total: number;
120
- updated: number;
121
- unchanged: number;
122
- skipped: number;
123
- scanned: number;
124
- conflicts: number;
125
- }>;
126
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
127
- limit?: number | undefined;
128
- overwrite?: boolean | undefined;
129
- dry_run?: boolean | undefined;
130
- cvm_ids?: string[] | undefined;
131
- running_only?: boolean | undefined;
132
- missing_only?: boolean | undefined;
133
- }, parameters: {
134
- schema: T;
135
- }): Promise<z.TypeOf<T>>;
136
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
137
- limit?: number | undefined;
138
- overwrite?: boolean | undefined;
139
- dry_run?: boolean | undefined;
140
- cvm_ids?: string[] | undefined;
141
- running_only?: boolean | undefined;
142
- missing_only?: boolean | undefined;
143
- }, parameters: {
144
- schema: false;
145
- }): Promise<unknown>;
146
- }, safeRefreshCvmInstanceIds: {
147
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
148
- limit?: number | undefined;
149
- overwrite?: boolean | undefined;
150
- dry_run?: boolean | undefined;
151
- cvm_ids?: string[] | undefined;
152
- running_only?: boolean | undefined;
153
- missing_only?: boolean | undefined;
154
- }): Promise<import("../..").SafeResult<{
155
- errors: number;
156
- items: {
157
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
158
- source: "gateway" | "teepod_state" | "teepod_info" | "none";
159
- cvm_id: number;
160
- identifier: string;
161
- verified_with_gateway: boolean;
162
- old_instance_id?: string | null | undefined;
163
- new_instance_id?: string | null | undefined;
164
- reason?: string | null | undefined;
165
- }[];
166
- total: number;
167
- updated: number;
168
- unchanged: number;
169
- skipped: number;
170
- scanned: number;
171
- conflicts: number;
172
- }>>;
173
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
174
- limit?: number | undefined;
175
- overwrite?: boolean | undefined;
176
- dry_run?: boolean | undefined;
177
- cvm_ids?: string[] | undefined;
178
- running_only?: boolean | undefined;
179
- missing_only?: boolean | undefined;
180
- }, parameters: {
181
- schema: T;
182
- }): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
183
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
184
- limit?: number | undefined;
185
- overwrite?: boolean | undefined;
186
- dry_run?: boolean | undefined;
187
- cvm_ids?: string[] | undefined;
188
- running_only?: boolean | undefined;
189
- missing_only?: boolean | undefined;
190
- }, parameters: {
191
- schema: false;
192
- }): Promise<import("../..").SafeResult<unknown>>;
193
- };
194
- 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 const replicateCvm: {
58
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<{
59
- status: string;
60
- name: string;
61
- id: number;
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?: number | 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: number;
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?: number | 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>>>;
@@ -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
  * Restart a CVM (Confidential Virtual Machine)
4
7
  *
@@ -41,86 +44,18 @@ export declare const RestartCvmRequestSchema: 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
  force?: boolean | 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
  force?: boolean | undefined;
55
58
  }>, any, any>;
56
59
  export type RestartCvmRequest = z.infer<typeof RestartCvmRequestSchema>;
57
- declare const restartCvm: {
58
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<{
59
- status: string;
60
- name: string;
61
- id: number;
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?: number | 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
- }, safeRestartCvm: {
92
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<import("../..").SafeResult<{
93
- status: string;
94
- name: string;
95
- id: number;
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?: number | 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 { restartCvm, safeRestartCvm };
60
+ export declare function restartCvm<V extends ApiVersion>(client: Client<V>, request: RestartCvmRequest): Promise<VMForVersion<V>>;
61
+ export declare function safeRestartCvm<V extends ApiVersion>(client: Client<V>, request: RestartCvmRequest): Promise<SafeResult<VMForVersion<V>>>;