@phala/cloud 0.2.1-beta.4 → 0.2.2

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 (69) hide show
  1. package/LICENSE +201 -0
  2. package/dist/actions/apps/get_app_cvms.d.ts +30 -0
  3. package/dist/actions/apps/get_app_info.d.ts +30 -0
  4. package/dist/actions/apps/get_app_list.d.ts +74 -0
  5. package/dist/actions/apps/get_app_revision_detail.d.ts +48 -0
  6. package/dist/actions/apps/get_app_revisions.d.ts +42 -0
  7. package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +7 -7
  8. package/dist/actions/cvms/commit_cvm_provision.d.ts +31 -31
  9. package/dist/actions/cvms/delete_cvm.d.ts +10 -7
  10. package/dist/actions/cvms/get_available_os_images.d.ts +10 -7
  11. package/dist/actions/cvms/get_cvm_attestation.d.ts +10 -7
  12. package/dist/actions/cvms/get_cvm_compose_file.d.ts +18 -15
  13. package/dist/actions/cvms/get_cvm_containers_stats.d.ts +14 -11
  14. package/dist/actions/cvms/get_cvm_docker_compose.d.ts +10 -7
  15. package/dist/actions/cvms/get_cvm_info.d.ts +19 -35
  16. package/dist/actions/cvms/get_cvm_list.d.ts +11 -537
  17. package/dist/actions/cvms/get_cvm_network.d.ts +10 -7
  18. package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +42 -0
  19. package/dist/actions/cvms/get_cvm_state.d.ts +10 -7
  20. package/dist/actions/cvms/get_cvm_stats.d.ts +10 -7
  21. package/dist/actions/cvms/get_cvm_status_batch.d.ts +167 -0
  22. package/dist/actions/cvms/provision_cvm.d.ts +404 -21
  23. package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +32 -32
  24. package/dist/actions/cvms/restart_cvm.d.ts +17 -14
  25. package/dist/actions/cvms/shutdown_cvm.d.ts +18 -15
  26. package/dist/actions/cvms/start_cvm.d.ts +18 -15
  27. package/dist/actions/cvms/stop_cvm.d.ts +18 -15
  28. package/dist/actions/cvms/update_cvm_envs.d.ts +32 -118
  29. package/dist/actions/cvms/update_cvm_resources.d.ts +13 -10
  30. package/dist/actions/cvms/update_cvm_visibility.d.ts +33 -14
  31. package/dist/actions/cvms/update_docker_compose.d.ts +420 -0
  32. package/dist/actions/cvms/update_os_image.d.ts +9 -6
  33. package/dist/actions/cvms/update_prelaunch_script.d.ts +417 -0
  34. package/dist/actions/cvms/watch_cvm_state.d.ts +1 -1
  35. package/dist/actions/get_available_nodes.d.ts +6 -6
  36. package/dist/actions/get_current_user.d.ts +36 -89
  37. package/dist/actions/index.d.ts +13 -2
  38. package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +6 -6
  39. package/dist/actions/kms/get_kms_info.d.ts +6 -6
  40. package/dist/actions/kms/get_kms_list.d.ts +6 -6
  41. package/dist/actions/kms/next_app_ids.d.ts +6 -6
  42. package/dist/actions/list-instance-types.d.ts +16 -16
  43. package/dist/actions/workspaces/get_workspace.d.ts +8 -6
  44. package/dist/actions/workspaces/get_workspace_nodes.d.ts +313 -0
  45. package/dist/actions/workspaces/get_workspace_quotas.d.ts +1169 -0
  46. package/dist/actions/workspaces/list_workspaces.d.ts +24 -6
  47. package/dist/client.d.ts +49 -9
  48. package/dist/create-client.d.ts +72 -36
  49. package/dist/credentials/current_user_v20251028.d.ts +30 -0
  50. package/dist/credentials/current_user_v20260121.d.ts +276 -0
  51. package/dist/credentials/index.d.ts +4 -0
  52. package/dist/index.d.ts +1 -0
  53. package/dist/index.js +1713 -664
  54. package/dist/index.mjs +1627 -657
  55. package/dist/types/app_info_v20251028.d.ts +1266 -0
  56. package/dist/types/app_info_v20260121.d.ts +3385 -0
  57. package/dist/types/app_revision.d.ts +453 -0
  58. package/dist/types/client.d.ts +41 -3
  59. package/dist/types/cvm_id.d.ts +29 -11
  60. package/dist/types/cvm_info.d.ts +16 -502
  61. package/dist/types/cvm_info_v20251028.d.ts +988 -0
  62. package/dist/types/cvm_info_v20260121.d.ts +1333 -0
  63. package/dist/types/index.d.ts +6 -0
  64. package/dist/types/version-mappings.d.ts +38 -0
  65. package/dist/utils/define-action.d.ts +15 -14
  66. package/dist/utils/errors.d.ts +2 -2
  67. package/dist/utils/hostname.d.ts +77 -0
  68. package/dist/utils/index.d.ts +1 -0
  69. package/package.json +2 -2
@@ -0,0 +1,1333 @@
1
+ import { z } from "zod";
2
+ export declare const BillingPeriodSchema: z.ZodEnum<["skip", "hourly", "monthly"]>;
3
+ export type BillingPeriod = z.infer<typeof BillingPeriodSchema>;
4
+ export declare const KmsTypeSchema: z.ZodEnum<["phala", "ethereum", "base", "legacy"]>;
5
+ export type KmsType = z.infer<typeof KmsTypeSchema>;
6
+ export declare const UserRefSchema: z.ZodObject<{
7
+ object_type: z.ZodLiteral<"user">;
8
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ object_type: "user";
13
+ username?: string | null | undefined;
14
+ id?: string | null | undefined;
15
+ avatar_url?: string | null | undefined;
16
+ }, {
17
+ object_type: "user";
18
+ username?: string | null | undefined;
19
+ id?: string | null | undefined;
20
+ avatar_url?: string | null | undefined;
21
+ }>;
22
+ export type UserRef = z.infer<typeof UserRefSchema>;
23
+ export declare const WorkspaceRefSchema: z.ZodObject<{
24
+ object_type: z.ZodLiteral<"workspace">;
25
+ id: z.ZodString;
26
+ name: z.ZodString;
27
+ slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ name: string;
31
+ id: string;
32
+ object_type: "workspace";
33
+ slug?: string | null | undefined;
34
+ avatar_url?: string | null | undefined;
35
+ }, {
36
+ name: string;
37
+ id: string;
38
+ object_type: "workspace";
39
+ slug?: string | null | undefined;
40
+ avatar_url?: string | null | undefined;
41
+ }>;
42
+ export type WorkspaceRef = z.infer<typeof WorkspaceRefSchema>;
43
+ export declare const CvmResourceInfoV20260121Schema: z.ZodObject<{
44
+ instance_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ vcpu: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
46
+ memory_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
47
+ disk_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
48
+ gpus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
49
+ compute_billing_price: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ billing_period: z.ZodOptional<z.ZodNullable<z.ZodEnum<["skip", "hourly", "monthly"]>>>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ vcpu?: number | null | undefined;
53
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
54
+ instance_type?: string | null | undefined;
55
+ memory_in_gb?: number | null | undefined;
56
+ disk_in_gb?: number | null | undefined;
57
+ gpus?: number | null | undefined;
58
+ compute_billing_price?: string | null | undefined;
59
+ }, {
60
+ vcpu?: number | null | undefined;
61
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
62
+ instance_type?: string | null | undefined;
63
+ memory_in_gb?: number | null | undefined;
64
+ disk_in_gb?: number | null | undefined;
65
+ gpus?: number | null | undefined;
66
+ compute_billing_price?: string | null | undefined;
67
+ }>;
68
+ export type CvmResourceInfoV20260121 = z.infer<typeof CvmResourceInfoV20260121Schema>;
69
+ export declare const CvmOsInfoV20260121Schema: z.ZodObject<{
70
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ is_dev: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
73
+ os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ name?: string | null | undefined;
76
+ version?: string | null | undefined;
77
+ is_dev?: boolean | null | undefined;
78
+ os_image_hash?: string | null | undefined;
79
+ }, {
80
+ name?: string | null | undefined;
81
+ version?: string | null | undefined;
82
+ is_dev?: boolean | null | undefined;
83
+ os_image_hash?: string | null | undefined;
84
+ }>;
85
+ export type CvmOsInfoV20260121 = z.infer<typeof CvmOsInfoV20260121Schema>;
86
+ export declare const CvmKmsInfoV20260121Schema: z.ZodObject<{
87
+ chain_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
88
+ dstack_kms_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ dstack_app_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ deployer_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ rpc_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ chain_id?: number | null | undefined;
95
+ encrypted_env_pubkey?: string | null | undefined;
96
+ deployer_address?: string | null | undefined;
97
+ dstack_kms_address?: string | null | undefined;
98
+ dstack_app_address?: string | null | undefined;
99
+ rpc_endpoint?: string | null | undefined;
100
+ }, {
101
+ chain_id?: number | null | undefined;
102
+ encrypted_env_pubkey?: string | null | undefined;
103
+ deployer_address?: string | null | undefined;
104
+ dstack_kms_address?: string | null | undefined;
105
+ dstack_app_address?: string | null | undefined;
106
+ rpc_endpoint?: string | null | undefined;
107
+ }>;
108
+ export type CvmKmsInfoV20260121 = z.infer<typeof CvmKmsInfoV20260121Schema>;
109
+ export declare const CvmProgressInfoV20260121Schema: z.ZodObject<{
110
+ target: z.ZodOptional<z.ZodNullable<z.ZodString>>;
111
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
+ correlation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
+ }, "strip", z.ZodTypeAny, {
114
+ target?: string | null | undefined;
115
+ started_at?: string | null | undefined;
116
+ correlation_id?: string | null | undefined;
117
+ }, {
118
+ target?: string | null | undefined;
119
+ started_at?: string | null | undefined;
120
+ correlation_id?: string | null | undefined;
121
+ }>;
122
+ export type CvmProgressInfoV20260121 = z.infer<typeof CvmProgressInfoV20260121Schema>;
123
+ export declare const CvmGatewayInfoV20260121Schema: z.ZodObject<{
124
+ base_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
+ cname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ base_domain?: string | null | undefined;
128
+ cname?: string | null | undefined;
129
+ }, {
130
+ base_domain?: string | null | undefined;
131
+ cname?: string | null | undefined;
132
+ }>;
133
+ export type CvmGatewayInfoV20260121 = z.infer<typeof CvmGatewayInfoV20260121Schema>;
134
+ export declare const NodeRefSchema: z.ZodObject<{
135
+ object_type: z.ZodLiteral<"node">;
136
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
137
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
+ device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
140
+ ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
141
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ object_type: "node";
145
+ status?: string | null | undefined;
146
+ name?: string | null | undefined;
147
+ version?: string | null | undefined;
148
+ id?: number | null | undefined;
149
+ region?: string | null | undefined;
150
+ device_id?: string | null | undefined;
151
+ ppid?: string | null | undefined;
152
+ }, {
153
+ object_type: "node";
154
+ status?: string | null | undefined;
155
+ name?: string | null | undefined;
156
+ version?: string | null | undefined;
157
+ id?: number | null | undefined;
158
+ region?: string | null | undefined;
159
+ device_id?: string | null | undefined;
160
+ ppid?: string | null | undefined;
161
+ }>;
162
+ export type NodeRef = z.infer<typeof NodeRefSchema>;
163
+ export declare const CvmNodeInfoV20260121Schema: z.ZodObject<{
164
+ object_type: z.ZodLiteral<"node">;
165
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
166
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
167
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
168
+ device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
169
+ ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
170
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
171
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
172
+ }, "strip", z.ZodTypeAny, {
173
+ object_type: "node";
174
+ status?: string | null | undefined;
175
+ name?: string | null | undefined;
176
+ version?: string | null | undefined;
177
+ id?: number | null | undefined;
178
+ region?: string | null | undefined;
179
+ device_id?: string | null | undefined;
180
+ ppid?: string | null | undefined;
181
+ }, {
182
+ object_type: "node";
183
+ status?: string | null | undefined;
184
+ name?: string | null | undefined;
185
+ version?: string | null | undefined;
186
+ id?: number | null | undefined;
187
+ region?: string | null | undefined;
188
+ device_id?: string | null | undefined;
189
+ ppid?: string | null | undefined;
190
+ }>;
191
+ export type CvmNodeInfoV20260121 = NodeRef;
192
+ export declare const CvmInfoV20260121Schema: z.ZodObject<{
193
+ id: z.ZodString;
194
+ name: z.ZodString;
195
+ app_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
+ vm_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
+ resource: z.ZodObject<{
198
+ instance_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
+ vcpu: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
200
+ memory_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
201
+ disk_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
202
+ gpus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
203
+ compute_billing_price: z.ZodOptional<z.ZodNullable<z.ZodString>>;
204
+ billing_period: z.ZodOptional<z.ZodNullable<z.ZodEnum<["skip", "hourly", "monthly"]>>>;
205
+ }, "strip", z.ZodTypeAny, {
206
+ vcpu?: number | null | undefined;
207
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
208
+ instance_type?: string | null | undefined;
209
+ memory_in_gb?: number | null | undefined;
210
+ disk_in_gb?: number | null | undefined;
211
+ gpus?: number | null | undefined;
212
+ compute_billing_price?: string | null | undefined;
213
+ }, {
214
+ vcpu?: number | null | undefined;
215
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
216
+ instance_type?: string | null | undefined;
217
+ memory_in_gb?: number | null | undefined;
218
+ disk_in_gb?: number | null | undefined;
219
+ gpus?: number | null | undefined;
220
+ compute_billing_price?: string | null | undefined;
221
+ }>;
222
+ node_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
223
+ object_type: z.ZodLiteral<"node">;
224
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
225
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
227
+ device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
228
+ ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
229
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
230
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ object_type: "node";
233
+ status?: string | null | undefined;
234
+ name?: string | null | undefined;
235
+ version?: string | null | undefined;
236
+ id?: number | null | undefined;
237
+ region?: string | null | undefined;
238
+ device_id?: string | null | undefined;
239
+ ppid?: string | null | undefined;
240
+ }, {
241
+ object_type: "node";
242
+ status?: string | null | undefined;
243
+ name?: string | null | undefined;
244
+ version?: string | null | undefined;
245
+ id?: number | null | undefined;
246
+ region?: string | null | undefined;
247
+ device_id?: string | null | undefined;
248
+ ppid?: string | null | undefined;
249
+ }>>>;
250
+ os: z.ZodOptional<z.ZodNullable<z.ZodObject<{
251
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
252
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
253
+ is_dev: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
254
+ os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
255
+ }, "strip", z.ZodTypeAny, {
256
+ name?: string | null | undefined;
257
+ version?: string | null | undefined;
258
+ is_dev?: boolean | null | undefined;
259
+ os_image_hash?: string | null | undefined;
260
+ }, {
261
+ name?: string | null | undefined;
262
+ version?: string | null | undefined;
263
+ is_dev?: boolean | null | undefined;
264
+ os_image_hash?: string | null | undefined;
265
+ }>>>;
266
+ kms_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["phala", "ethereum", "base", "legacy"]>>>;
267
+ kms_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
268
+ chain_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
269
+ dstack_kms_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
270
+ dstack_app_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
271
+ deployer_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
272
+ rpc_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
273
+ encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
274
+ }, "strip", z.ZodTypeAny, {
275
+ chain_id?: number | null | undefined;
276
+ encrypted_env_pubkey?: string | null | undefined;
277
+ deployer_address?: string | null | undefined;
278
+ dstack_kms_address?: string | null | undefined;
279
+ dstack_app_address?: string | null | undefined;
280
+ rpc_endpoint?: string | null | undefined;
281
+ }, {
282
+ chain_id?: number | null | undefined;
283
+ encrypted_env_pubkey?: string | null | undefined;
284
+ deployer_address?: string | null | undefined;
285
+ dstack_kms_address?: string | null | undefined;
286
+ dstack_app_address?: string | null | undefined;
287
+ rpc_endpoint?: string | null | undefined;
288
+ }>>>;
289
+ status: z.ZodString;
290
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
291
+ target: z.ZodOptional<z.ZodNullable<z.ZodString>>;
292
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
293
+ correlation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
294
+ }, "strip", z.ZodTypeAny, {
295
+ target?: string | null | undefined;
296
+ started_at?: string | null | undefined;
297
+ correlation_id?: string | null | undefined;
298
+ }, {
299
+ target?: string | null | undefined;
300
+ started_at?: string | null | undefined;
301
+ correlation_id?: string | null | undefined;
302
+ }>>>;
303
+ compose_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
+ gateway: z.ZodObject<{
305
+ base_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
306
+ cname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
307
+ }, "strip", z.ZodTypeAny, {
308
+ base_domain?: string | null | undefined;
309
+ cname?: string | null | undefined;
310
+ }, {
311
+ base_domain?: string | null | undefined;
312
+ cname?: string | null | undefined;
313
+ }>;
314
+ services: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>>;
315
+ endpoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
316
+ app: z.ZodString;
317
+ instance: z.ZodString;
318
+ }, "strip", z.ZodTypeAny, {
319
+ app: string;
320
+ instance: string;
321
+ }, {
322
+ app: string;
323
+ instance: string;
324
+ }>, "many">>>;
325
+ public_logs: z.ZodOptional<z.ZodBoolean>;
326
+ public_sysinfo: z.ZodOptional<z.ZodBoolean>;
327
+ public_tcbinfo: z.ZodOptional<z.ZodBoolean>;
328
+ gateway_enabled: z.ZodOptional<z.ZodBoolean>;
329
+ secure_time: z.ZodOptional<z.ZodBoolean>;
330
+ storage_fs: z.ZodOptional<z.ZodString>;
331
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodObject<{
332
+ object_type: z.ZodLiteral<"workspace">;
333
+ id: z.ZodString;
334
+ name: z.ZodString;
335
+ slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
336
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
337
+ }, "strip", z.ZodTypeAny, {
338
+ name: string;
339
+ id: string;
340
+ object_type: "workspace";
341
+ slug?: string | null | undefined;
342
+ avatar_url?: string | null | undefined;
343
+ }, {
344
+ name: string;
345
+ id: string;
346
+ object_type: "workspace";
347
+ slug?: string | null | undefined;
348
+ avatar_url?: string | null | undefined;
349
+ }>>>;
350
+ creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
351
+ object_type: z.ZodLiteral<"user">;
352
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
353
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
354
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
355
+ }, "strip", z.ZodTypeAny, {
356
+ object_type: "user";
357
+ username?: string | null | undefined;
358
+ id?: string | null | undefined;
359
+ avatar_url?: string | null | undefined;
360
+ }, {
361
+ object_type: "user";
362
+ username?: string | null | undefined;
363
+ id?: string | null | undefined;
364
+ avatar_url?: string | null | undefined;
365
+ }>>>;
366
+ }, "strip", z.ZodTypeAny, {
367
+ status: string;
368
+ name: string;
369
+ id: string;
370
+ resource: {
371
+ vcpu?: number | null | undefined;
372
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
373
+ instance_type?: string | null | undefined;
374
+ memory_in_gb?: number | null | undefined;
375
+ disk_in_gb?: number | null | undefined;
376
+ gpus?: number | null | undefined;
377
+ compute_billing_price?: string | null | undefined;
378
+ };
379
+ gateway: {
380
+ base_domain?: string | null | undefined;
381
+ cname?: string | null | undefined;
382
+ };
383
+ services: Record<string, any>[];
384
+ workspace?: {
385
+ name: string;
386
+ id: string;
387
+ object_type: "workspace";
388
+ slug?: string | null | undefined;
389
+ avatar_url?: string | null | undefined;
390
+ } | null | undefined;
391
+ app_id?: string | null | undefined;
392
+ kms_info?: {
393
+ chain_id?: number | null | undefined;
394
+ encrypted_env_pubkey?: string | null | undefined;
395
+ deployer_address?: string | null | undefined;
396
+ dstack_kms_address?: string | null | undefined;
397
+ dstack_app_address?: string | null | undefined;
398
+ rpc_endpoint?: string | null | undefined;
399
+ } | null | undefined;
400
+ vm_uuid?: string | null | undefined;
401
+ public_sysinfo?: boolean | undefined;
402
+ public_logs?: boolean | undefined;
403
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
404
+ node_info?: {
405
+ object_type: "node";
406
+ status?: string | null | undefined;
407
+ name?: string | null | undefined;
408
+ version?: string | null | undefined;
409
+ id?: number | null | undefined;
410
+ region?: string | null | undefined;
411
+ device_id?: string | null | undefined;
412
+ ppid?: string | null | undefined;
413
+ } | null | undefined;
414
+ os?: {
415
+ name?: string | null | undefined;
416
+ version?: string | null | undefined;
417
+ is_dev?: boolean | null | undefined;
418
+ os_image_hash?: string | null | undefined;
419
+ } | null | undefined;
420
+ progress?: {
421
+ target?: string | null | undefined;
422
+ started_at?: string | null | undefined;
423
+ correlation_id?: string | null | undefined;
424
+ } | null | undefined;
425
+ compose_hash?: string | null | undefined;
426
+ endpoints?: {
427
+ app: string;
428
+ instance: string;
429
+ }[] | null | undefined;
430
+ public_tcbinfo?: boolean | undefined;
431
+ gateway_enabled?: boolean | undefined;
432
+ secure_time?: boolean | undefined;
433
+ storage_fs?: string | undefined;
434
+ creator?: {
435
+ object_type: "user";
436
+ username?: string | null | undefined;
437
+ id?: string | null | undefined;
438
+ avatar_url?: string | null | undefined;
439
+ } | null | undefined;
440
+ }, {
441
+ status: string;
442
+ name: string;
443
+ id: string;
444
+ resource: {
445
+ vcpu?: number | null | undefined;
446
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
447
+ instance_type?: string | null | undefined;
448
+ memory_in_gb?: number | null | undefined;
449
+ disk_in_gb?: number | null | undefined;
450
+ gpus?: number | null | undefined;
451
+ compute_billing_price?: string | null | undefined;
452
+ };
453
+ gateway: {
454
+ base_domain?: string | null | undefined;
455
+ cname?: string | null | undefined;
456
+ };
457
+ workspace?: {
458
+ name: string;
459
+ id: string;
460
+ object_type: "workspace";
461
+ slug?: string | null | undefined;
462
+ avatar_url?: string | null | undefined;
463
+ } | null | undefined;
464
+ app_id?: string | null | undefined;
465
+ kms_info?: {
466
+ chain_id?: number | null | undefined;
467
+ encrypted_env_pubkey?: string | null | undefined;
468
+ deployer_address?: string | null | undefined;
469
+ dstack_kms_address?: string | null | undefined;
470
+ dstack_app_address?: string | null | undefined;
471
+ rpc_endpoint?: string | null | undefined;
472
+ } | null | undefined;
473
+ vm_uuid?: string | null | undefined;
474
+ public_sysinfo?: boolean | undefined;
475
+ public_logs?: boolean | undefined;
476
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
477
+ node_info?: {
478
+ object_type: "node";
479
+ status?: string | null | undefined;
480
+ name?: string | null | undefined;
481
+ version?: string | null | undefined;
482
+ id?: number | null | undefined;
483
+ region?: string | null | undefined;
484
+ device_id?: string | null | undefined;
485
+ ppid?: string | null | undefined;
486
+ } | null | undefined;
487
+ os?: {
488
+ name?: string | null | undefined;
489
+ version?: string | null | undefined;
490
+ is_dev?: boolean | null | undefined;
491
+ os_image_hash?: string | null | undefined;
492
+ } | null | undefined;
493
+ progress?: {
494
+ target?: string | null | undefined;
495
+ started_at?: string | null | undefined;
496
+ correlation_id?: string | null | undefined;
497
+ } | null | undefined;
498
+ compose_hash?: string | null | undefined;
499
+ services?: Record<string, any>[] | undefined;
500
+ endpoints?: {
501
+ app: string;
502
+ instance: string;
503
+ }[] | null | undefined;
504
+ public_tcbinfo?: boolean | undefined;
505
+ gateway_enabled?: boolean | undefined;
506
+ secure_time?: boolean | undefined;
507
+ storage_fs?: string | undefined;
508
+ creator?: {
509
+ object_type: "user";
510
+ username?: string | null | undefined;
511
+ id?: string | null | undefined;
512
+ avatar_url?: string | null | undefined;
513
+ } | null | undefined;
514
+ }>;
515
+ export type CvmInfoV20260121 = z.infer<typeof CvmInfoV20260121Schema>;
516
+ export declare const CvmInfoDetailV20260121Schema: z.ZodObject<{
517
+ id: z.ZodString;
518
+ name: z.ZodString;
519
+ app_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
520
+ vm_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
521
+ resource: z.ZodObject<{
522
+ instance_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
523
+ vcpu: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
524
+ memory_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
525
+ disk_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
526
+ gpus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
527
+ compute_billing_price: z.ZodOptional<z.ZodNullable<z.ZodString>>;
528
+ billing_period: z.ZodOptional<z.ZodNullable<z.ZodEnum<["skip", "hourly", "monthly"]>>>;
529
+ }, "strip", z.ZodTypeAny, {
530
+ vcpu?: number | null | undefined;
531
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
532
+ instance_type?: string | null | undefined;
533
+ memory_in_gb?: number | null | undefined;
534
+ disk_in_gb?: number | null | undefined;
535
+ gpus?: number | null | undefined;
536
+ compute_billing_price?: string | null | undefined;
537
+ }, {
538
+ vcpu?: number | null | undefined;
539
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
540
+ instance_type?: string | null | undefined;
541
+ memory_in_gb?: number | null | undefined;
542
+ disk_in_gb?: number | null | undefined;
543
+ gpus?: number | null | undefined;
544
+ compute_billing_price?: string | null | undefined;
545
+ }>;
546
+ node_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
547
+ object_type: z.ZodLiteral<"node">;
548
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
549
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
550
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
551
+ device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
552
+ ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
553
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
554
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
555
+ }, "strip", z.ZodTypeAny, {
556
+ object_type: "node";
557
+ status?: string | null | undefined;
558
+ name?: string | null | undefined;
559
+ version?: string | null | undefined;
560
+ id?: number | null | undefined;
561
+ region?: string | null | undefined;
562
+ device_id?: string | null | undefined;
563
+ ppid?: string | null | undefined;
564
+ }, {
565
+ object_type: "node";
566
+ status?: string | null | undefined;
567
+ name?: string | null | undefined;
568
+ version?: string | null | undefined;
569
+ id?: number | null | undefined;
570
+ region?: string | null | undefined;
571
+ device_id?: string | null | undefined;
572
+ ppid?: string | null | undefined;
573
+ }>>>;
574
+ os: z.ZodOptional<z.ZodNullable<z.ZodObject<{
575
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
576
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
577
+ is_dev: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
578
+ os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
579
+ }, "strip", z.ZodTypeAny, {
580
+ name?: string | null | undefined;
581
+ version?: string | null | undefined;
582
+ is_dev?: boolean | null | undefined;
583
+ os_image_hash?: string | null | undefined;
584
+ }, {
585
+ name?: string | null | undefined;
586
+ version?: string | null | undefined;
587
+ is_dev?: boolean | null | undefined;
588
+ os_image_hash?: string | null | undefined;
589
+ }>>>;
590
+ kms_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["phala", "ethereum", "base", "legacy"]>>>;
591
+ kms_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
592
+ chain_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
593
+ dstack_kms_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
594
+ dstack_app_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
595
+ deployer_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
596
+ rpc_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
597
+ encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
598
+ }, "strip", z.ZodTypeAny, {
599
+ chain_id?: number | null | undefined;
600
+ encrypted_env_pubkey?: string | null | undefined;
601
+ deployer_address?: string | null | undefined;
602
+ dstack_kms_address?: string | null | undefined;
603
+ dstack_app_address?: string | null | undefined;
604
+ rpc_endpoint?: string | null | undefined;
605
+ }, {
606
+ chain_id?: number | null | undefined;
607
+ encrypted_env_pubkey?: string | null | undefined;
608
+ deployer_address?: string | null | undefined;
609
+ dstack_kms_address?: string | null | undefined;
610
+ dstack_app_address?: string | null | undefined;
611
+ rpc_endpoint?: string | null | undefined;
612
+ }>>>;
613
+ status: z.ZodString;
614
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
615
+ target: z.ZodOptional<z.ZodNullable<z.ZodString>>;
616
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
617
+ correlation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
618
+ }, "strip", z.ZodTypeAny, {
619
+ target?: string | null | undefined;
620
+ started_at?: string | null | undefined;
621
+ correlation_id?: string | null | undefined;
622
+ }, {
623
+ target?: string | null | undefined;
624
+ started_at?: string | null | undefined;
625
+ correlation_id?: string | null | undefined;
626
+ }>>>;
627
+ compose_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
628
+ gateway: z.ZodObject<{
629
+ base_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
630
+ cname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
631
+ }, "strip", z.ZodTypeAny, {
632
+ base_domain?: string | null | undefined;
633
+ cname?: string | null | undefined;
634
+ }, {
635
+ base_domain?: string | null | undefined;
636
+ cname?: string | null | undefined;
637
+ }>;
638
+ services: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>>;
639
+ endpoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
640
+ app: z.ZodString;
641
+ instance: z.ZodString;
642
+ }, "strip", z.ZodTypeAny, {
643
+ app: string;
644
+ instance: string;
645
+ }, {
646
+ app: string;
647
+ instance: string;
648
+ }>, "many">>>;
649
+ public_logs: z.ZodOptional<z.ZodBoolean>;
650
+ public_sysinfo: z.ZodOptional<z.ZodBoolean>;
651
+ public_tcbinfo: z.ZodOptional<z.ZodBoolean>;
652
+ gateway_enabled: z.ZodOptional<z.ZodBoolean>;
653
+ secure_time: z.ZodOptional<z.ZodBoolean>;
654
+ storage_fs: z.ZodOptional<z.ZodString>;
655
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodObject<{
656
+ object_type: z.ZodLiteral<"workspace">;
657
+ id: z.ZodString;
658
+ name: z.ZodString;
659
+ slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
660
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
661
+ }, "strip", z.ZodTypeAny, {
662
+ name: string;
663
+ id: string;
664
+ object_type: "workspace";
665
+ slug?: string | null | undefined;
666
+ avatar_url?: string | null | undefined;
667
+ }, {
668
+ name: string;
669
+ id: string;
670
+ object_type: "workspace";
671
+ slug?: string | null | undefined;
672
+ avatar_url?: string | null | undefined;
673
+ }>>>;
674
+ creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
675
+ object_type: z.ZodLiteral<"user">;
676
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
677
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
678
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
679
+ }, "strip", z.ZodTypeAny, {
680
+ object_type: "user";
681
+ username?: string | null | undefined;
682
+ id?: string | null | undefined;
683
+ avatar_url?: string | null | undefined;
684
+ }, {
685
+ object_type: "user";
686
+ username?: string | null | undefined;
687
+ id?: string | null | undefined;
688
+ avatar_url?: string | null | undefined;
689
+ }>>>;
690
+ } & {
691
+ compose_file: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>>>;
692
+ }, "strip", z.ZodTypeAny, {
693
+ status: string;
694
+ name: string;
695
+ id: string;
696
+ resource: {
697
+ vcpu?: number | null | undefined;
698
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
699
+ instance_type?: string | null | undefined;
700
+ memory_in_gb?: number | null | undefined;
701
+ disk_in_gb?: number | null | undefined;
702
+ gpus?: number | null | undefined;
703
+ compute_billing_price?: string | null | undefined;
704
+ };
705
+ gateway: {
706
+ base_domain?: string | null | undefined;
707
+ cname?: string | null | undefined;
708
+ };
709
+ services: Record<string, any>[];
710
+ workspace?: {
711
+ name: string;
712
+ id: string;
713
+ object_type: "workspace";
714
+ slug?: string | null | undefined;
715
+ avatar_url?: string | null | undefined;
716
+ } | null | undefined;
717
+ app_id?: string | null | undefined;
718
+ kms_info?: {
719
+ chain_id?: number | null | undefined;
720
+ encrypted_env_pubkey?: string | null | undefined;
721
+ deployer_address?: string | null | undefined;
722
+ dstack_kms_address?: string | null | undefined;
723
+ dstack_app_address?: string | null | undefined;
724
+ rpc_endpoint?: string | null | undefined;
725
+ } | null | undefined;
726
+ vm_uuid?: string | null | undefined;
727
+ public_sysinfo?: boolean | undefined;
728
+ public_logs?: boolean | undefined;
729
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
730
+ node_info?: {
731
+ object_type: "node";
732
+ status?: string | null | undefined;
733
+ name?: string | null | undefined;
734
+ version?: string | null | undefined;
735
+ id?: number | null | undefined;
736
+ region?: string | null | undefined;
737
+ device_id?: string | null | undefined;
738
+ ppid?: string | null | undefined;
739
+ } | null | undefined;
740
+ os?: {
741
+ name?: string | null | undefined;
742
+ version?: string | null | undefined;
743
+ is_dev?: boolean | null | undefined;
744
+ os_image_hash?: string | null | undefined;
745
+ } | null | undefined;
746
+ progress?: {
747
+ target?: string | null | undefined;
748
+ started_at?: string | null | undefined;
749
+ correlation_id?: string | null | undefined;
750
+ } | null | undefined;
751
+ compose_hash?: string | null | undefined;
752
+ endpoints?: {
753
+ app: string;
754
+ instance: string;
755
+ }[] | null | undefined;
756
+ public_tcbinfo?: boolean | undefined;
757
+ gateway_enabled?: boolean | undefined;
758
+ secure_time?: boolean | undefined;
759
+ storage_fs?: string | undefined;
760
+ creator?: {
761
+ object_type: "user";
762
+ username?: string | null | undefined;
763
+ id?: string | null | undefined;
764
+ avatar_url?: string | null | undefined;
765
+ } | null | undefined;
766
+ compose_file?: string | Record<string, any> | null | undefined;
767
+ }, {
768
+ status: string;
769
+ name: string;
770
+ id: string;
771
+ resource: {
772
+ vcpu?: number | null | undefined;
773
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
774
+ instance_type?: string | null | undefined;
775
+ memory_in_gb?: number | null | undefined;
776
+ disk_in_gb?: number | null | undefined;
777
+ gpus?: number | null | undefined;
778
+ compute_billing_price?: string | null | undefined;
779
+ };
780
+ gateway: {
781
+ base_domain?: string | null | undefined;
782
+ cname?: string | null | undefined;
783
+ };
784
+ workspace?: {
785
+ name: string;
786
+ id: string;
787
+ object_type: "workspace";
788
+ slug?: string | null | undefined;
789
+ avatar_url?: string | null | undefined;
790
+ } | null | undefined;
791
+ app_id?: string | null | undefined;
792
+ kms_info?: {
793
+ chain_id?: number | null | undefined;
794
+ encrypted_env_pubkey?: string | null | undefined;
795
+ deployer_address?: string | null | undefined;
796
+ dstack_kms_address?: string | null | undefined;
797
+ dstack_app_address?: string | null | undefined;
798
+ rpc_endpoint?: string | null | undefined;
799
+ } | null | undefined;
800
+ vm_uuid?: string | null | undefined;
801
+ public_sysinfo?: boolean | undefined;
802
+ public_logs?: boolean | undefined;
803
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
804
+ node_info?: {
805
+ object_type: "node";
806
+ status?: string | null | undefined;
807
+ name?: string | null | undefined;
808
+ version?: string | null | undefined;
809
+ id?: number | null | undefined;
810
+ region?: string | null | undefined;
811
+ device_id?: string | null | undefined;
812
+ ppid?: string | null | undefined;
813
+ } | null | undefined;
814
+ os?: {
815
+ name?: string | null | undefined;
816
+ version?: string | null | undefined;
817
+ is_dev?: boolean | null | undefined;
818
+ os_image_hash?: string | null | undefined;
819
+ } | null | undefined;
820
+ progress?: {
821
+ target?: string | null | undefined;
822
+ started_at?: string | null | undefined;
823
+ correlation_id?: string | null | undefined;
824
+ } | null | undefined;
825
+ compose_hash?: string | null | undefined;
826
+ services?: Record<string, any>[] | undefined;
827
+ endpoints?: {
828
+ app: string;
829
+ instance: string;
830
+ }[] | null | undefined;
831
+ public_tcbinfo?: boolean | undefined;
832
+ gateway_enabled?: boolean | undefined;
833
+ secure_time?: boolean | undefined;
834
+ storage_fs?: string | undefined;
835
+ creator?: {
836
+ object_type: "user";
837
+ username?: string | null | undefined;
838
+ id?: string | null | undefined;
839
+ avatar_url?: string | null | undefined;
840
+ } | null | undefined;
841
+ compose_file?: string | Record<string, any> | null | undefined;
842
+ }>;
843
+ export type CvmInfoDetailV20260121 = z.infer<typeof CvmInfoDetailV20260121Schema>;
844
+ export declare const PaginatedCvmInfosV20260121Schema: z.ZodObject<{
845
+ items: z.ZodArray<z.ZodObject<{
846
+ id: z.ZodString;
847
+ name: z.ZodString;
848
+ app_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
849
+ vm_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
850
+ resource: z.ZodObject<{
851
+ instance_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
852
+ vcpu: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
853
+ memory_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
854
+ disk_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
855
+ gpus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
856
+ compute_billing_price: z.ZodOptional<z.ZodNullable<z.ZodString>>;
857
+ billing_period: z.ZodOptional<z.ZodNullable<z.ZodEnum<["skip", "hourly", "monthly"]>>>;
858
+ }, "strip", z.ZodTypeAny, {
859
+ vcpu?: number | null | undefined;
860
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
861
+ instance_type?: string | null | undefined;
862
+ memory_in_gb?: number | null | undefined;
863
+ disk_in_gb?: number | null | undefined;
864
+ gpus?: number | null | undefined;
865
+ compute_billing_price?: string | null | undefined;
866
+ }, {
867
+ vcpu?: number | null | undefined;
868
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
869
+ instance_type?: string | null | undefined;
870
+ memory_in_gb?: number | null | undefined;
871
+ disk_in_gb?: number | null | undefined;
872
+ gpus?: number | null | undefined;
873
+ compute_billing_price?: string | null | undefined;
874
+ }>;
875
+ node_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
876
+ object_type: z.ZodLiteral<"node">;
877
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
878
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
879
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
880
+ device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
881
+ ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
882
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
883
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
884
+ }, "strip", z.ZodTypeAny, {
885
+ object_type: "node";
886
+ status?: string | null | undefined;
887
+ name?: string | null | undefined;
888
+ version?: string | null | undefined;
889
+ id?: number | null | undefined;
890
+ region?: string | null | undefined;
891
+ device_id?: string | null | undefined;
892
+ ppid?: string | null | undefined;
893
+ }, {
894
+ object_type: "node";
895
+ status?: string | null | undefined;
896
+ name?: string | null | undefined;
897
+ version?: string | null | undefined;
898
+ id?: number | null | undefined;
899
+ region?: string | null | undefined;
900
+ device_id?: string | null | undefined;
901
+ ppid?: string | null | undefined;
902
+ }>>>;
903
+ os: z.ZodOptional<z.ZodNullable<z.ZodObject<{
904
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
905
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
906
+ is_dev: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
907
+ os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
908
+ }, "strip", z.ZodTypeAny, {
909
+ name?: string | null | undefined;
910
+ version?: string | null | undefined;
911
+ is_dev?: boolean | null | undefined;
912
+ os_image_hash?: string | null | undefined;
913
+ }, {
914
+ name?: string | null | undefined;
915
+ version?: string | null | undefined;
916
+ is_dev?: boolean | null | undefined;
917
+ os_image_hash?: string | null | undefined;
918
+ }>>>;
919
+ kms_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["phala", "ethereum", "base", "legacy"]>>>;
920
+ kms_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
921
+ chain_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
922
+ dstack_kms_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
923
+ dstack_app_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
924
+ deployer_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
925
+ rpc_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
926
+ encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
927
+ }, "strip", z.ZodTypeAny, {
928
+ chain_id?: number | null | undefined;
929
+ encrypted_env_pubkey?: string | null | undefined;
930
+ deployer_address?: string | null | undefined;
931
+ dstack_kms_address?: string | null | undefined;
932
+ dstack_app_address?: string | null | undefined;
933
+ rpc_endpoint?: string | null | undefined;
934
+ }, {
935
+ chain_id?: number | null | undefined;
936
+ encrypted_env_pubkey?: string | null | undefined;
937
+ deployer_address?: string | null | undefined;
938
+ dstack_kms_address?: string | null | undefined;
939
+ dstack_app_address?: string | null | undefined;
940
+ rpc_endpoint?: string | null | undefined;
941
+ }>>>;
942
+ status: z.ZodString;
943
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
944
+ target: z.ZodOptional<z.ZodNullable<z.ZodString>>;
945
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
946
+ correlation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
947
+ }, "strip", z.ZodTypeAny, {
948
+ target?: string | null | undefined;
949
+ started_at?: string | null | undefined;
950
+ correlation_id?: string | null | undefined;
951
+ }, {
952
+ target?: string | null | undefined;
953
+ started_at?: string | null | undefined;
954
+ correlation_id?: string | null | undefined;
955
+ }>>>;
956
+ compose_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
957
+ gateway: z.ZodObject<{
958
+ base_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
959
+ cname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
960
+ }, "strip", z.ZodTypeAny, {
961
+ base_domain?: string | null | undefined;
962
+ cname?: string | null | undefined;
963
+ }, {
964
+ base_domain?: string | null | undefined;
965
+ cname?: string | null | undefined;
966
+ }>;
967
+ services: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>>;
968
+ endpoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
969
+ app: z.ZodString;
970
+ instance: z.ZodString;
971
+ }, "strip", z.ZodTypeAny, {
972
+ app: string;
973
+ instance: string;
974
+ }, {
975
+ app: string;
976
+ instance: string;
977
+ }>, "many">>>;
978
+ public_logs: z.ZodOptional<z.ZodBoolean>;
979
+ public_sysinfo: z.ZodOptional<z.ZodBoolean>;
980
+ public_tcbinfo: z.ZodOptional<z.ZodBoolean>;
981
+ gateway_enabled: z.ZodOptional<z.ZodBoolean>;
982
+ secure_time: z.ZodOptional<z.ZodBoolean>;
983
+ storage_fs: z.ZodOptional<z.ZodString>;
984
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodObject<{
985
+ object_type: z.ZodLiteral<"workspace">;
986
+ id: z.ZodString;
987
+ name: z.ZodString;
988
+ slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
989
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
990
+ }, "strip", z.ZodTypeAny, {
991
+ name: string;
992
+ id: string;
993
+ object_type: "workspace";
994
+ slug?: string | null | undefined;
995
+ avatar_url?: string | null | undefined;
996
+ }, {
997
+ name: string;
998
+ id: string;
999
+ object_type: "workspace";
1000
+ slug?: string | null | undefined;
1001
+ avatar_url?: string | null | undefined;
1002
+ }>>>;
1003
+ creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1004
+ object_type: z.ZodLiteral<"user">;
1005
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1006
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1007
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1008
+ }, "strip", z.ZodTypeAny, {
1009
+ object_type: "user";
1010
+ username?: string | null | undefined;
1011
+ id?: string | null | undefined;
1012
+ avatar_url?: string | null | undefined;
1013
+ }, {
1014
+ object_type: "user";
1015
+ username?: string | null | undefined;
1016
+ id?: string | null | undefined;
1017
+ avatar_url?: string | null | undefined;
1018
+ }>>>;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ status: string;
1021
+ name: string;
1022
+ id: string;
1023
+ resource: {
1024
+ vcpu?: number | null | undefined;
1025
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
1026
+ instance_type?: string | null | undefined;
1027
+ memory_in_gb?: number | null | undefined;
1028
+ disk_in_gb?: number | null | undefined;
1029
+ gpus?: number | null | undefined;
1030
+ compute_billing_price?: string | null | undefined;
1031
+ };
1032
+ gateway: {
1033
+ base_domain?: string | null | undefined;
1034
+ cname?: string | null | undefined;
1035
+ };
1036
+ services: Record<string, any>[];
1037
+ workspace?: {
1038
+ name: string;
1039
+ id: string;
1040
+ object_type: "workspace";
1041
+ slug?: string | null | undefined;
1042
+ avatar_url?: string | null | undefined;
1043
+ } | null | undefined;
1044
+ app_id?: string | null | undefined;
1045
+ kms_info?: {
1046
+ chain_id?: number | null | undefined;
1047
+ encrypted_env_pubkey?: string | null | undefined;
1048
+ deployer_address?: string | null | undefined;
1049
+ dstack_kms_address?: string | null | undefined;
1050
+ dstack_app_address?: string | null | undefined;
1051
+ rpc_endpoint?: string | null | undefined;
1052
+ } | null | undefined;
1053
+ vm_uuid?: string | null | undefined;
1054
+ public_sysinfo?: boolean | undefined;
1055
+ public_logs?: boolean | undefined;
1056
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1057
+ node_info?: {
1058
+ object_type: "node";
1059
+ status?: string | null | undefined;
1060
+ name?: string | null | undefined;
1061
+ version?: string | null | undefined;
1062
+ id?: number | null | undefined;
1063
+ region?: string | null | undefined;
1064
+ device_id?: string | null | undefined;
1065
+ ppid?: string | null | undefined;
1066
+ } | null | undefined;
1067
+ os?: {
1068
+ name?: string | null | undefined;
1069
+ version?: string | null | undefined;
1070
+ is_dev?: boolean | null | undefined;
1071
+ os_image_hash?: string | null | undefined;
1072
+ } | null | undefined;
1073
+ progress?: {
1074
+ target?: string | null | undefined;
1075
+ started_at?: string | null | undefined;
1076
+ correlation_id?: string | null | undefined;
1077
+ } | null | undefined;
1078
+ compose_hash?: string | null | undefined;
1079
+ endpoints?: {
1080
+ app: string;
1081
+ instance: string;
1082
+ }[] | null | undefined;
1083
+ public_tcbinfo?: boolean | undefined;
1084
+ gateway_enabled?: boolean | undefined;
1085
+ secure_time?: boolean | undefined;
1086
+ storage_fs?: string | undefined;
1087
+ creator?: {
1088
+ object_type: "user";
1089
+ username?: string | null | undefined;
1090
+ id?: string | null | undefined;
1091
+ avatar_url?: string | null | undefined;
1092
+ } | null | undefined;
1093
+ }, {
1094
+ status: string;
1095
+ name: string;
1096
+ id: string;
1097
+ resource: {
1098
+ vcpu?: number | null | undefined;
1099
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
1100
+ instance_type?: string | null | undefined;
1101
+ memory_in_gb?: number | null | undefined;
1102
+ disk_in_gb?: number | null | undefined;
1103
+ gpus?: number | null | undefined;
1104
+ compute_billing_price?: string | null | undefined;
1105
+ };
1106
+ gateway: {
1107
+ base_domain?: string | null | undefined;
1108
+ cname?: string | null | undefined;
1109
+ };
1110
+ workspace?: {
1111
+ name: string;
1112
+ id: string;
1113
+ object_type: "workspace";
1114
+ slug?: string | null | undefined;
1115
+ avatar_url?: string | null | undefined;
1116
+ } | null | undefined;
1117
+ app_id?: string | null | undefined;
1118
+ kms_info?: {
1119
+ chain_id?: number | null | undefined;
1120
+ encrypted_env_pubkey?: string | null | undefined;
1121
+ deployer_address?: string | null | undefined;
1122
+ dstack_kms_address?: string | null | undefined;
1123
+ dstack_app_address?: string | null | undefined;
1124
+ rpc_endpoint?: string | null | undefined;
1125
+ } | null | undefined;
1126
+ vm_uuid?: string | null | undefined;
1127
+ public_sysinfo?: boolean | undefined;
1128
+ public_logs?: boolean | undefined;
1129
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1130
+ node_info?: {
1131
+ object_type: "node";
1132
+ status?: string | null | undefined;
1133
+ name?: string | null | undefined;
1134
+ version?: string | null | undefined;
1135
+ id?: number | null | undefined;
1136
+ region?: string | null | undefined;
1137
+ device_id?: string | null | undefined;
1138
+ ppid?: string | null | undefined;
1139
+ } | null | undefined;
1140
+ os?: {
1141
+ name?: string | null | undefined;
1142
+ version?: string | null | undefined;
1143
+ is_dev?: boolean | null | undefined;
1144
+ os_image_hash?: string | null | undefined;
1145
+ } | null | undefined;
1146
+ progress?: {
1147
+ target?: string | null | undefined;
1148
+ started_at?: string | null | undefined;
1149
+ correlation_id?: string | null | undefined;
1150
+ } | null | undefined;
1151
+ compose_hash?: string | null | undefined;
1152
+ services?: Record<string, any>[] | undefined;
1153
+ endpoints?: {
1154
+ app: string;
1155
+ instance: string;
1156
+ }[] | null | undefined;
1157
+ public_tcbinfo?: boolean | undefined;
1158
+ gateway_enabled?: boolean | undefined;
1159
+ secure_time?: boolean | undefined;
1160
+ storage_fs?: string | undefined;
1161
+ creator?: {
1162
+ object_type: "user";
1163
+ username?: string | null | undefined;
1164
+ id?: string | null | undefined;
1165
+ avatar_url?: string | null | undefined;
1166
+ } | null | undefined;
1167
+ }>, "many">;
1168
+ total: z.ZodNumber;
1169
+ page: z.ZodNumber;
1170
+ page_size: z.ZodNumber;
1171
+ pages: z.ZodNumber;
1172
+ }, "strip", z.ZodTypeAny, {
1173
+ items: {
1174
+ status: string;
1175
+ name: string;
1176
+ id: string;
1177
+ resource: {
1178
+ vcpu?: number | null | undefined;
1179
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
1180
+ instance_type?: string | null | undefined;
1181
+ memory_in_gb?: number | null | undefined;
1182
+ disk_in_gb?: number | null | undefined;
1183
+ gpus?: number | null | undefined;
1184
+ compute_billing_price?: string | null | undefined;
1185
+ };
1186
+ gateway: {
1187
+ base_domain?: string | null | undefined;
1188
+ cname?: string | null | undefined;
1189
+ };
1190
+ services: Record<string, any>[];
1191
+ workspace?: {
1192
+ name: string;
1193
+ id: string;
1194
+ object_type: "workspace";
1195
+ slug?: string | null | undefined;
1196
+ avatar_url?: string | null | undefined;
1197
+ } | null | undefined;
1198
+ app_id?: string | null | undefined;
1199
+ kms_info?: {
1200
+ chain_id?: number | null | undefined;
1201
+ encrypted_env_pubkey?: string | null | undefined;
1202
+ deployer_address?: string | null | undefined;
1203
+ dstack_kms_address?: string | null | undefined;
1204
+ dstack_app_address?: string | null | undefined;
1205
+ rpc_endpoint?: string | null | undefined;
1206
+ } | null | undefined;
1207
+ vm_uuid?: string | null | undefined;
1208
+ public_sysinfo?: boolean | undefined;
1209
+ public_logs?: boolean | undefined;
1210
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1211
+ node_info?: {
1212
+ object_type: "node";
1213
+ status?: string | null | undefined;
1214
+ name?: string | null | undefined;
1215
+ version?: string | null | undefined;
1216
+ id?: number | null | undefined;
1217
+ region?: string | null | undefined;
1218
+ device_id?: string | null | undefined;
1219
+ ppid?: string | null | undefined;
1220
+ } | null | undefined;
1221
+ os?: {
1222
+ name?: string | null | undefined;
1223
+ version?: string | null | undefined;
1224
+ is_dev?: boolean | null | undefined;
1225
+ os_image_hash?: string | null | undefined;
1226
+ } | null | undefined;
1227
+ progress?: {
1228
+ target?: string | null | undefined;
1229
+ started_at?: string | null | undefined;
1230
+ correlation_id?: string | null | undefined;
1231
+ } | null | undefined;
1232
+ compose_hash?: string | null | undefined;
1233
+ endpoints?: {
1234
+ app: string;
1235
+ instance: string;
1236
+ }[] | null | undefined;
1237
+ public_tcbinfo?: boolean | undefined;
1238
+ gateway_enabled?: boolean | undefined;
1239
+ secure_time?: boolean | undefined;
1240
+ storage_fs?: string | undefined;
1241
+ creator?: {
1242
+ object_type: "user";
1243
+ username?: string | null | undefined;
1244
+ id?: string | null | undefined;
1245
+ avatar_url?: string | null | undefined;
1246
+ } | null | undefined;
1247
+ }[];
1248
+ total: number;
1249
+ page: number;
1250
+ page_size: number;
1251
+ pages: number;
1252
+ }, {
1253
+ items: {
1254
+ status: string;
1255
+ name: string;
1256
+ id: string;
1257
+ resource: {
1258
+ vcpu?: number | null | undefined;
1259
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
1260
+ instance_type?: string | null | undefined;
1261
+ memory_in_gb?: number | null | undefined;
1262
+ disk_in_gb?: number | null | undefined;
1263
+ gpus?: number | null | undefined;
1264
+ compute_billing_price?: string | null | undefined;
1265
+ };
1266
+ gateway: {
1267
+ base_domain?: string | null | undefined;
1268
+ cname?: string | null | undefined;
1269
+ };
1270
+ workspace?: {
1271
+ name: string;
1272
+ id: string;
1273
+ object_type: "workspace";
1274
+ slug?: string | null | undefined;
1275
+ avatar_url?: string | null | undefined;
1276
+ } | null | undefined;
1277
+ app_id?: string | null | undefined;
1278
+ kms_info?: {
1279
+ chain_id?: number | null | undefined;
1280
+ encrypted_env_pubkey?: string | null | undefined;
1281
+ deployer_address?: string | null | undefined;
1282
+ dstack_kms_address?: string | null | undefined;
1283
+ dstack_app_address?: string | null | undefined;
1284
+ rpc_endpoint?: string | null | undefined;
1285
+ } | null | undefined;
1286
+ vm_uuid?: string | null | undefined;
1287
+ public_sysinfo?: boolean | undefined;
1288
+ public_logs?: boolean | undefined;
1289
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1290
+ node_info?: {
1291
+ object_type: "node";
1292
+ status?: string | null | undefined;
1293
+ name?: string | null | undefined;
1294
+ version?: string | null | undefined;
1295
+ id?: number | null | undefined;
1296
+ region?: string | null | undefined;
1297
+ device_id?: string | null | undefined;
1298
+ ppid?: string | null | undefined;
1299
+ } | null | undefined;
1300
+ os?: {
1301
+ name?: string | null | undefined;
1302
+ version?: string | null | undefined;
1303
+ is_dev?: boolean | null | undefined;
1304
+ os_image_hash?: string | null | undefined;
1305
+ } | null | undefined;
1306
+ progress?: {
1307
+ target?: string | null | undefined;
1308
+ started_at?: string | null | undefined;
1309
+ correlation_id?: string | null | undefined;
1310
+ } | null | undefined;
1311
+ compose_hash?: string | null | undefined;
1312
+ services?: Record<string, any>[] | undefined;
1313
+ endpoints?: {
1314
+ app: string;
1315
+ instance: string;
1316
+ }[] | null | undefined;
1317
+ public_tcbinfo?: boolean | undefined;
1318
+ gateway_enabled?: boolean | undefined;
1319
+ secure_time?: boolean | undefined;
1320
+ storage_fs?: string | undefined;
1321
+ creator?: {
1322
+ object_type: "user";
1323
+ username?: string | null | undefined;
1324
+ id?: string | null | undefined;
1325
+ avatar_url?: string | null | undefined;
1326
+ } | null | undefined;
1327
+ }[];
1328
+ total: number;
1329
+ page: number;
1330
+ page_size: number;
1331
+ pages: number;
1332
+ }>;
1333
+ export type PaginatedCvmInfosV20260121 = z.infer<typeof PaginatedCvmInfosV20260121Schema>;