@phala/cloud 0.2.1-beta.3 → 0.2.1

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