@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,3385 @@
1
+ import { z } from "zod";
2
+ export declare const DstackAppFullResponseV20260121Schema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodString;
5
+ app_id: z.ZodString;
6
+ app_provision_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ app_icon_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ created_at: z.ZodString;
9
+ kms_type: z.ZodString;
10
+ current_cvm: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11
+ id: z.ZodString;
12
+ name: z.ZodString;
13
+ app_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ vm_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ resource: z.ZodObject<{
16
+ instance_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ vcpu: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ memory_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ disk_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ gpus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ compute_billing_price: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ billing_period: z.ZodOptional<z.ZodNullable<z.ZodEnum<["skip", "hourly", "monthly"]>>>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ vcpu?: number | null | undefined;
25
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
26
+ instance_type?: string | null | undefined;
27
+ memory_in_gb?: number | null | undefined;
28
+ disk_in_gb?: number | null | undefined;
29
+ gpus?: number | null | undefined;
30
+ compute_billing_price?: string | null | undefined;
31
+ }, {
32
+ vcpu?: number | null | undefined;
33
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
34
+ instance_type?: string | null | undefined;
35
+ memory_in_gb?: number | null | undefined;
36
+ disk_in_gb?: number | null | undefined;
37
+ gpus?: number | null | undefined;
38
+ compute_billing_price?: string | null | undefined;
39
+ }>;
40
+ node_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
41
+ object_type: z.ZodLiteral<"node">;
42
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
43
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ object_type: "node";
51
+ status?: string | null | undefined;
52
+ name?: string | null | undefined;
53
+ version?: string | null | undefined;
54
+ id?: number | null | undefined;
55
+ region?: string | null | undefined;
56
+ device_id?: string | null | undefined;
57
+ ppid?: string | null | undefined;
58
+ }, {
59
+ object_type: "node";
60
+ status?: string | null | undefined;
61
+ name?: string | null | undefined;
62
+ version?: string | null | undefined;
63
+ id?: number | null | undefined;
64
+ region?: string | null | undefined;
65
+ device_id?: string | null | undefined;
66
+ ppid?: string | null | undefined;
67
+ }>>>;
68
+ os: z.ZodOptional<z.ZodNullable<z.ZodObject<{
69
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ is_dev: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
72
+ os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ name?: string | null | undefined;
75
+ version?: string | null | undefined;
76
+ is_dev?: boolean | null | undefined;
77
+ os_image_hash?: string | null | undefined;
78
+ }, {
79
+ name?: string | null | undefined;
80
+ version?: string | null | undefined;
81
+ is_dev?: boolean | null | undefined;
82
+ os_image_hash?: string | null | undefined;
83
+ }>>>;
84
+ kms_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["phala", "ethereum", "base", "legacy"]>>>;
85
+ kms_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
86
+ chain_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
87
+ dstack_kms_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
+ dstack_app_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ deployer_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ rpc_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ chain_id?: number | null | undefined;
94
+ encrypted_env_pubkey?: string | null | undefined;
95
+ deployer_address?: string | null | undefined;
96
+ dstack_kms_address?: string | null | undefined;
97
+ dstack_app_address?: string | null | undefined;
98
+ rpc_endpoint?: string | null | undefined;
99
+ }, {
100
+ chain_id?: number | null | undefined;
101
+ encrypted_env_pubkey?: string | null | undefined;
102
+ deployer_address?: string | null | undefined;
103
+ dstack_kms_address?: string | null | undefined;
104
+ dstack_app_address?: string | null | undefined;
105
+ rpc_endpoint?: string | null | undefined;
106
+ }>>>;
107
+ status: z.ZodString;
108
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
109
+ target: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
111
+ correlation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ target?: string | null | undefined;
114
+ started_at?: string | null | undefined;
115
+ correlation_id?: string | null | undefined;
116
+ }, {
117
+ target?: string | null | undefined;
118
+ started_at?: string | null | undefined;
119
+ correlation_id?: string | null | undefined;
120
+ }>>>;
121
+ compose_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
+ gateway: z.ZodObject<{
123
+ base_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
124
+ cname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ base_domain?: string | null | undefined;
127
+ cname?: string | null | undefined;
128
+ }, {
129
+ base_domain?: string | null | undefined;
130
+ cname?: string | null | undefined;
131
+ }>;
132
+ services: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>>;
133
+ endpoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
134
+ app: z.ZodString;
135
+ instance: z.ZodString;
136
+ }, "strip", z.ZodTypeAny, {
137
+ app: string;
138
+ instance: string;
139
+ }, {
140
+ app: string;
141
+ instance: string;
142
+ }>, "many">>>;
143
+ public_logs: z.ZodOptional<z.ZodBoolean>;
144
+ public_sysinfo: z.ZodOptional<z.ZodBoolean>;
145
+ public_tcbinfo: z.ZodOptional<z.ZodBoolean>;
146
+ gateway_enabled: z.ZodOptional<z.ZodBoolean>;
147
+ secure_time: z.ZodOptional<z.ZodBoolean>;
148
+ storage_fs: z.ZodOptional<z.ZodString>;
149
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodObject<{
150
+ object_type: z.ZodLiteral<"workspace">;
151
+ id: z.ZodString;
152
+ name: z.ZodString;
153
+ slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
155
+ }, "strip", z.ZodTypeAny, {
156
+ name: string;
157
+ id: string;
158
+ object_type: "workspace";
159
+ slug?: string | null | undefined;
160
+ avatar_url?: string | null | undefined;
161
+ }, {
162
+ name: string;
163
+ id: string;
164
+ object_type: "workspace";
165
+ slug?: string | null | undefined;
166
+ avatar_url?: string | null | undefined;
167
+ }>>>;
168
+ creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
169
+ object_type: z.ZodLiteral<"user">;
170
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
171
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
172
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
173
+ }, "strip", z.ZodTypeAny, {
174
+ object_type: "user";
175
+ username?: string | null | undefined;
176
+ id?: string | null | undefined;
177
+ avatar_url?: string | null | undefined;
178
+ }, {
179
+ object_type: "user";
180
+ username?: string | null | undefined;
181
+ id?: string | null | undefined;
182
+ avatar_url?: string | null | undefined;
183
+ }>>>;
184
+ }, "strip", z.ZodTypeAny, {
185
+ status: string;
186
+ name: string;
187
+ id: string;
188
+ resource: {
189
+ vcpu?: number | null | undefined;
190
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
191
+ instance_type?: string | null | undefined;
192
+ memory_in_gb?: number | null | undefined;
193
+ disk_in_gb?: number | null | undefined;
194
+ gpus?: number | null | undefined;
195
+ compute_billing_price?: string | null | undefined;
196
+ };
197
+ gateway: {
198
+ base_domain?: string | null | undefined;
199
+ cname?: string | null | undefined;
200
+ };
201
+ services: Record<string, any>[];
202
+ workspace?: {
203
+ name: string;
204
+ id: string;
205
+ object_type: "workspace";
206
+ slug?: string | null | undefined;
207
+ avatar_url?: string | null | undefined;
208
+ } | null | undefined;
209
+ app_id?: string | null | undefined;
210
+ kms_info?: {
211
+ chain_id?: number | null | undefined;
212
+ encrypted_env_pubkey?: string | null | undefined;
213
+ deployer_address?: string | null | undefined;
214
+ dstack_kms_address?: string | null | undefined;
215
+ dstack_app_address?: string | null | undefined;
216
+ rpc_endpoint?: string | null | undefined;
217
+ } | null | undefined;
218
+ vm_uuid?: string | null | undefined;
219
+ public_sysinfo?: boolean | undefined;
220
+ public_logs?: boolean | undefined;
221
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
222
+ node_info?: {
223
+ object_type: "node";
224
+ status?: string | null | undefined;
225
+ name?: string | null | undefined;
226
+ version?: string | null | undefined;
227
+ id?: number | null | undefined;
228
+ region?: string | null | undefined;
229
+ device_id?: string | null | undefined;
230
+ ppid?: string | null | undefined;
231
+ } | null | undefined;
232
+ os?: {
233
+ name?: string | null | undefined;
234
+ version?: string | null | undefined;
235
+ is_dev?: boolean | null | undefined;
236
+ os_image_hash?: string | null | undefined;
237
+ } | null | undefined;
238
+ progress?: {
239
+ target?: string | null | undefined;
240
+ started_at?: string | null | undefined;
241
+ correlation_id?: string | null | undefined;
242
+ } | null | undefined;
243
+ compose_hash?: string | null | undefined;
244
+ endpoints?: {
245
+ app: string;
246
+ instance: string;
247
+ }[] | null | undefined;
248
+ public_tcbinfo?: boolean | undefined;
249
+ gateway_enabled?: boolean | undefined;
250
+ secure_time?: boolean | undefined;
251
+ storage_fs?: string | undefined;
252
+ creator?: {
253
+ object_type: "user";
254
+ username?: string | null | undefined;
255
+ id?: string | null | undefined;
256
+ avatar_url?: string | null | undefined;
257
+ } | null | undefined;
258
+ }, {
259
+ status: string;
260
+ name: string;
261
+ id: string;
262
+ resource: {
263
+ vcpu?: number | null | undefined;
264
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
265
+ instance_type?: string | null | undefined;
266
+ memory_in_gb?: number | null | undefined;
267
+ disk_in_gb?: number | null | undefined;
268
+ gpus?: number | null | undefined;
269
+ compute_billing_price?: string | null | undefined;
270
+ };
271
+ gateway: {
272
+ base_domain?: string | null | undefined;
273
+ cname?: string | null | undefined;
274
+ };
275
+ workspace?: {
276
+ name: string;
277
+ id: string;
278
+ object_type: "workspace";
279
+ slug?: string | null | undefined;
280
+ avatar_url?: string | null | undefined;
281
+ } | null | undefined;
282
+ app_id?: string | null | undefined;
283
+ kms_info?: {
284
+ chain_id?: number | null | undefined;
285
+ encrypted_env_pubkey?: string | null | undefined;
286
+ deployer_address?: string | null | undefined;
287
+ dstack_kms_address?: string | null | undefined;
288
+ dstack_app_address?: string | null | undefined;
289
+ rpc_endpoint?: string | null | undefined;
290
+ } | null | undefined;
291
+ vm_uuid?: string | null | undefined;
292
+ public_sysinfo?: boolean | undefined;
293
+ public_logs?: boolean | undefined;
294
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
295
+ node_info?: {
296
+ object_type: "node";
297
+ status?: string | null | undefined;
298
+ name?: string | null | undefined;
299
+ version?: string | null | undefined;
300
+ id?: number | null | undefined;
301
+ region?: string | null | undefined;
302
+ device_id?: string | null | undefined;
303
+ ppid?: string | null | undefined;
304
+ } | null | undefined;
305
+ os?: {
306
+ name?: string | null | undefined;
307
+ version?: string | null | undefined;
308
+ is_dev?: boolean | null | undefined;
309
+ os_image_hash?: string | null | undefined;
310
+ } | null | undefined;
311
+ progress?: {
312
+ target?: string | null | undefined;
313
+ started_at?: string | null | undefined;
314
+ correlation_id?: string | null | undefined;
315
+ } | null | undefined;
316
+ compose_hash?: string | null | undefined;
317
+ services?: Record<string, any>[] | undefined;
318
+ endpoints?: {
319
+ app: string;
320
+ instance: string;
321
+ }[] | null | undefined;
322
+ public_tcbinfo?: boolean | undefined;
323
+ gateway_enabled?: boolean | undefined;
324
+ secure_time?: boolean | undefined;
325
+ storage_fs?: string | undefined;
326
+ creator?: {
327
+ object_type: "user";
328
+ username?: string | null | undefined;
329
+ id?: string | null | undefined;
330
+ avatar_url?: string | null | undefined;
331
+ } | null | undefined;
332
+ }>>>;
333
+ cvms: z.ZodDefault<z.ZodArray<z.ZodObject<{
334
+ id: z.ZodString;
335
+ name: z.ZodString;
336
+ app_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
337
+ vm_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
338
+ resource: z.ZodObject<{
339
+ instance_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
340
+ vcpu: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
341
+ memory_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
342
+ disk_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
343
+ gpus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
344
+ compute_billing_price: z.ZodOptional<z.ZodNullable<z.ZodString>>;
345
+ billing_period: z.ZodOptional<z.ZodNullable<z.ZodEnum<["skip", "hourly", "monthly"]>>>;
346
+ }, "strip", z.ZodTypeAny, {
347
+ vcpu?: number | null | undefined;
348
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
349
+ instance_type?: string | null | undefined;
350
+ memory_in_gb?: number | null | undefined;
351
+ disk_in_gb?: number | null | undefined;
352
+ gpus?: number | null | undefined;
353
+ compute_billing_price?: string | null | undefined;
354
+ }, {
355
+ vcpu?: number | null | undefined;
356
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
357
+ instance_type?: string | null | undefined;
358
+ memory_in_gb?: number | null | undefined;
359
+ disk_in_gb?: number | null | undefined;
360
+ gpus?: number | null | undefined;
361
+ compute_billing_price?: string | null | undefined;
362
+ }>;
363
+ node_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
364
+ object_type: z.ZodLiteral<"node">;
365
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
366
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
367
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
368
+ device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
369
+ ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
370
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
371
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
372
+ }, "strip", z.ZodTypeAny, {
373
+ object_type: "node";
374
+ status?: string | null | undefined;
375
+ name?: string | null | undefined;
376
+ version?: string | null | undefined;
377
+ id?: number | null | undefined;
378
+ region?: string | null | undefined;
379
+ device_id?: string | null | undefined;
380
+ ppid?: string | null | undefined;
381
+ }, {
382
+ object_type: "node";
383
+ status?: string | null | undefined;
384
+ name?: string | null | undefined;
385
+ version?: string | null | undefined;
386
+ id?: number | null | undefined;
387
+ region?: string | null | undefined;
388
+ device_id?: string | null | undefined;
389
+ ppid?: string | null | undefined;
390
+ }>>>;
391
+ os: z.ZodOptional<z.ZodNullable<z.ZodObject<{
392
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
393
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
394
+ is_dev: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
395
+ os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
396
+ }, "strip", z.ZodTypeAny, {
397
+ name?: string | null | undefined;
398
+ version?: string | null | undefined;
399
+ is_dev?: boolean | null | undefined;
400
+ os_image_hash?: string | null | undefined;
401
+ }, {
402
+ name?: string | null | undefined;
403
+ version?: string | null | undefined;
404
+ is_dev?: boolean | null | undefined;
405
+ os_image_hash?: string | null | undefined;
406
+ }>>>;
407
+ kms_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["phala", "ethereum", "base", "legacy"]>>>;
408
+ kms_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
409
+ chain_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
410
+ dstack_kms_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
411
+ dstack_app_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
412
+ deployer_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
413
+ rpc_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
414
+ encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
415
+ }, "strip", z.ZodTypeAny, {
416
+ chain_id?: number | null | undefined;
417
+ encrypted_env_pubkey?: string | null | undefined;
418
+ deployer_address?: string | null | undefined;
419
+ dstack_kms_address?: string | null | undefined;
420
+ dstack_app_address?: string | null | undefined;
421
+ rpc_endpoint?: string | null | undefined;
422
+ }, {
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
+ }>>>;
430
+ status: z.ZodString;
431
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
432
+ target: z.ZodOptional<z.ZodNullable<z.ZodString>>;
433
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
434
+ correlation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
435
+ }, "strip", z.ZodTypeAny, {
436
+ target?: string | null | undefined;
437
+ started_at?: string | null | undefined;
438
+ correlation_id?: string | null | undefined;
439
+ }, {
440
+ target?: string | null | undefined;
441
+ started_at?: string | null | undefined;
442
+ correlation_id?: string | null | undefined;
443
+ }>>>;
444
+ compose_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
445
+ gateway: z.ZodObject<{
446
+ base_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
447
+ cname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
448
+ }, "strip", z.ZodTypeAny, {
449
+ base_domain?: string | null | undefined;
450
+ cname?: string | null | undefined;
451
+ }, {
452
+ base_domain?: string | null | undefined;
453
+ cname?: string | null | undefined;
454
+ }>;
455
+ services: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>>;
456
+ endpoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
457
+ app: z.ZodString;
458
+ instance: z.ZodString;
459
+ }, "strip", z.ZodTypeAny, {
460
+ app: string;
461
+ instance: string;
462
+ }, {
463
+ app: string;
464
+ instance: string;
465
+ }>, "many">>>;
466
+ public_logs: z.ZodOptional<z.ZodBoolean>;
467
+ public_sysinfo: z.ZodOptional<z.ZodBoolean>;
468
+ public_tcbinfo: z.ZodOptional<z.ZodBoolean>;
469
+ gateway_enabled: z.ZodOptional<z.ZodBoolean>;
470
+ secure_time: z.ZodOptional<z.ZodBoolean>;
471
+ storage_fs: z.ZodOptional<z.ZodString>;
472
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodObject<{
473
+ object_type: z.ZodLiteral<"workspace">;
474
+ id: z.ZodString;
475
+ name: z.ZodString;
476
+ slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
477
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
478
+ }, "strip", z.ZodTypeAny, {
479
+ name: string;
480
+ id: string;
481
+ object_type: "workspace";
482
+ slug?: string | null | undefined;
483
+ avatar_url?: string | null | undefined;
484
+ }, {
485
+ name: string;
486
+ id: string;
487
+ object_type: "workspace";
488
+ slug?: string | null | undefined;
489
+ avatar_url?: string | null | undefined;
490
+ }>>>;
491
+ creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
492
+ object_type: z.ZodLiteral<"user">;
493
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
494
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
495
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
496
+ }, "strip", z.ZodTypeAny, {
497
+ object_type: "user";
498
+ username?: string | null | undefined;
499
+ id?: string | null | undefined;
500
+ avatar_url?: string | null | undefined;
501
+ }, {
502
+ object_type: "user";
503
+ username?: string | null | undefined;
504
+ id?: string | null | undefined;
505
+ avatar_url?: string | null | undefined;
506
+ }>>>;
507
+ }, "strip", z.ZodTypeAny, {
508
+ status: string;
509
+ name: string;
510
+ id: string;
511
+ resource: {
512
+ vcpu?: number | null | undefined;
513
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
514
+ instance_type?: string | null | undefined;
515
+ memory_in_gb?: number | null | undefined;
516
+ disk_in_gb?: number | null | undefined;
517
+ gpus?: number | null | undefined;
518
+ compute_billing_price?: string | null | undefined;
519
+ };
520
+ gateway: {
521
+ base_domain?: string | null | undefined;
522
+ cname?: string | null | undefined;
523
+ };
524
+ services: Record<string, any>[];
525
+ workspace?: {
526
+ name: string;
527
+ id: string;
528
+ object_type: "workspace";
529
+ slug?: string | null | undefined;
530
+ avatar_url?: string | null | undefined;
531
+ } | null | undefined;
532
+ app_id?: string | null | undefined;
533
+ kms_info?: {
534
+ chain_id?: number | null | undefined;
535
+ encrypted_env_pubkey?: string | null | undefined;
536
+ deployer_address?: string | null | undefined;
537
+ dstack_kms_address?: string | null | undefined;
538
+ dstack_app_address?: string | null | undefined;
539
+ rpc_endpoint?: string | null | undefined;
540
+ } | null | undefined;
541
+ vm_uuid?: string | null | undefined;
542
+ public_sysinfo?: boolean | undefined;
543
+ public_logs?: boolean | undefined;
544
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
545
+ node_info?: {
546
+ object_type: "node";
547
+ status?: string | null | undefined;
548
+ name?: string | null | undefined;
549
+ version?: string | null | undefined;
550
+ id?: number | null | undefined;
551
+ region?: string | null | undefined;
552
+ device_id?: string | null | undefined;
553
+ ppid?: string | null | undefined;
554
+ } | null | undefined;
555
+ os?: {
556
+ name?: string | null | undefined;
557
+ version?: string | null | undefined;
558
+ is_dev?: boolean | null | undefined;
559
+ os_image_hash?: string | null | undefined;
560
+ } | null | undefined;
561
+ progress?: {
562
+ target?: string | null | undefined;
563
+ started_at?: string | null | undefined;
564
+ correlation_id?: string | null | undefined;
565
+ } | null | undefined;
566
+ compose_hash?: string | null | undefined;
567
+ endpoints?: {
568
+ app: string;
569
+ instance: string;
570
+ }[] | null | undefined;
571
+ public_tcbinfo?: boolean | undefined;
572
+ gateway_enabled?: boolean | undefined;
573
+ secure_time?: boolean | undefined;
574
+ storage_fs?: string | undefined;
575
+ creator?: {
576
+ object_type: "user";
577
+ username?: string | null | undefined;
578
+ id?: string | null | undefined;
579
+ avatar_url?: string | null | undefined;
580
+ } | null | undefined;
581
+ }, {
582
+ status: string;
583
+ name: string;
584
+ id: string;
585
+ resource: {
586
+ vcpu?: number | null | undefined;
587
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
588
+ instance_type?: string | null | undefined;
589
+ memory_in_gb?: number | null | undefined;
590
+ disk_in_gb?: number | null | undefined;
591
+ gpus?: number | null | undefined;
592
+ compute_billing_price?: string | null | undefined;
593
+ };
594
+ gateway: {
595
+ base_domain?: string | null | undefined;
596
+ cname?: string | null | undefined;
597
+ };
598
+ workspace?: {
599
+ name: string;
600
+ id: string;
601
+ object_type: "workspace";
602
+ slug?: string | null | undefined;
603
+ avatar_url?: string | null | undefined;
604
+ } | null | undefined;
605
+ app_id?: string | null | undefined;
606
+ kms_info?: {
607
+ chain_id?: number | null | undefined;
608
+ encrypted_env_pubkey?: string | null | undefined;
609
+ deployer_address?: string | null | undefined;
610
+ dstack_kms_address?: string | null | undefined;
611
+ dstack_app_address?: string | null | undefined;
612
+ rpc_endpoint?: string | null | undefined;
613
+ } | null | undefined;
614
+ vm_uuid?: string | null | undefined;
615
+ public_sysinfo?: boolean | undefined;
616
+ public_logs?: boolean | undefined;
617
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
618
+ node_info?: {
619
+ object_type: "node";
620
+ status?: string | null | undefined;
621
+ name?: string | null | undefined;
622
+ version?: string | null | undefined;
623
+ id?: number | null | undefined;
624
+ region?: string | null | undefined;
625
+ device_id?: string | null | undefined;
626
+ ppid?: string | null | undefined;
627
+ } | null | undefined;
628
+ os?: {
629
+ name?: string | null | undefined;
630
+ version?: string | null | undefined;
631
+ is_dev?: boolean | null | undefined;
632
+ os_image_hash?: string | null | undefined;
633
+ } | null | undefined;
634
+ progress?: {
635
+ target?: string | null | undefined;
636
+ started_at?: string | null | undefined;
637
+ correlation_id?: string | null | undefined;
638
+ } | null | undefined;
639
+ compose_hash?: string | null | undefined;
640
+ services?: Record<string, any>[] | undefined;
641
+ endpoints?: {
642
+ app: string;
643
+ instance: string;
644
+ }[] | null | undefined;
645
+ public_tcbinfo?: boolean | undefined;
646
+ gateway_enabled?: boolean | undefined;
647
+ secure_time?: boolean | undefined;
648
+ storage_fs?: string | undefined;
649
+ creator?: {
650
+ object_type: "user";
651
+ username?: string | null | undefined;
652
+ id?: string | null | undefined;
653
+ avatar_url?: string | null | undefined;
654
+ } | null | undefined;
655
+ }>, "many">>;
656
+ cvm_count: z.ZodDefault<z.ZodNumber>;
657
+ }, "strip", z.ZodTypeAny, {
658
+ name: string;
659
+ id: string;
660
+ app_id: string;
661
+ kms_type: string;
662
+ created_at: string;
663
+ cvms: {
664
+ status: string;
665
+ name: string;
666
+ id: string;
667
+ resource: {
668
+ vcpu?: number | null | undefined;
669
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
670
+ instance_type?: string | null | undefined;
671
+ memory_in_gb?: number | null | undefined;
672
+ disk_in_gb?: number | null | undefined;
673
+ gpus?: number | null | undefined;
674
+ compute_billing_price?: string | null | undefined;
675
+ };
676
+ gateway: {
677
+ base_domain?: string | null | undefined;
678
+ cname?: string | null | undefined;
679
+ };
680
+ services: Record<string, any>[];
681
+ workspace?: {
682
+ name: string;
683
+ id: string;
684
+ object_type: "workspace";
685
+ slug?: string | null | undefined;
686
+ avatar_url?: string | null | undefined;
687
+ } | null | undefined;
688
+ app_id?: string | null | undefined;
689
+ kms_info?: {
690
+ chain_id?: number | null | undefined;
691
+ encrypted_env_pubkey?: string | null | undefined;
692
+ deployer_address?: string | null | undefined;
693
+ dstack_kms_address?: string | null | undefined;
694
+ dstack_app_address?: string | null | undefined;
695
+ rpc_endpoint?: string | null | undefined;
696
+ } | null | undefined;
697
+ vm_uuid?: string | null | undefined;
698
+ public_sysinfo?: boolean | undefined;
699
+ public_logs?: boolean | undefined;
700
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
701
+ node_info?: {
702
+ object_type: "node";
703
+ status?: string | null | undefined;
704
+ name?: string | null | undefined;
705
+ version?: string | null | undefined;
706
+ id?: number | null | undefined;
707
+ region?: string | null | undefined;
708
+ device_id?: string | null | undefined;
709
+ ppid?: string | null | undefined;
710
+ } | null | undefined;
711
+ os?: {
712
+ name?: string | null | undefined;
713
+ version?: string | null | undefined;
714
+ is_dev?: boolean | null | undefined;
715
+ os_image_hash?: string | null | undefined;
716
+ } | null | undefined;
717
+ progress?: {
718
+ target?: string | null | undefined;
719
+ started_at?: string | null | undefined;
720
+ correlation_id?: string | null | undefined;
721
+ } | null | undefined;
722
+ compose_hash?: string | null | undefined;
723
+ endpoints?: {
724
+ app: string;
725
+ instance: string;
726
+ }[] | null | undefined;
727
+ public_tcbinfo?: boolean | undefined;
728
+ gateway_enabled?: boolean | undefined;
729
+ secure_time?: boolean | undefined;
730
+ storage_fs?: string | undefined;
731
+ creator?: {
732
+ object_type: "user";
733
+ username?: string | null | undefined;
734
+ id?: string | null | undefined;
735
+ avatar_url?: string | null | undefined;
736
+ } | null | undefined;
737
+ }[];
738
+ cvm_count: number;
739
+ app_provision_type?: string | null | undefined;
740
+ app_icon_url?: string | null | undefined;
741
+ current_cvm?: {
742
+ status: string;
743
+ name: string;
744
+ id: string;
745
+ resource: {
746
+ vcpu?: number | null | undefined;
747
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
748
+ instance_type?: string | null | undefined;
749
+ memory_in_gb?: number | null | undefined;
750
+ disk_in_gb?: number | null | undefined;
751
+ gpus?: number | null | undefined;
752
+ compute_billing_price?: string | null | undefined;
753
+ };
754
+ gateway: {
755
+ base_domain?: string | null | undefined;
756
+ cname?: string | null | undefined;
757
+ };
758
+ services: Record<string, any>[];
759
+ workspace?: {
760
+ name: string;
761
+ id: string;
762
+ object_type: "workspace";
763
+ slug?: string | null | undefined;
764
+ avatar_url?: string | null | undefined;
765
+ } | null | undefined;
766
+ app_id?: string | null | undefined;
767
+ kms_info?: {
768
+ chain_id?: number | null | undefined;
769
+ encrypted_env_pubkey?: string | null | undefined;
770
+ deployer_address?: string | null | undefined;
771
+ dstack_kms_address?: string | null | undefined;
772
+ dstack_app_address?: string | null | undefined;
773
+ rpc_endpoint?: string | null | undefined;
774
+ } | null | undefined;
775
+ vm_uuid?: string | null | undefined;
776
+ public_sysinfo?: boolean | undefined;
777
+ public_logs?: boolean | undefined;
778
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
779
+ node_info?: {
780
+ object_type: "node";
781
+ status?: string | null | undefined;
782
+ name?: string | null | undefined;
783
+ version?: string | null | undefined;
784
+ id?: number | null | undefined;
785
+ region?: string | null | undefined;
786
+ device_id?: string | null | undefined;
787
+ ppid?: string | null | undefined;
788
+ } | null | undefined;
789
+ os?: {
790
+ name?: string | null | undefined;
791
+ version?: string | null | undefined;
792
+ is_dev?: boolean | null | undefined;
793
+ os_image_hash?: string | null | undefined;
794
+ } | null | undefined;
795
+ progress?: {
796
+ target?: string | null | undefined;
797
+ started_at?: string | null | undefined;
798
+ correlation_id?: string | null | undefined;
799
+ } | null | undefined;
800
+ compose_hash?: string | null | undefined;
801
+ endpoints?: {
802
+ app: string;
803
+ instance: string;
804
+ }[] | null | undefined;
805
+ public_tcbinfo?: boolean | undefined;
806
+ gateway_enabled?: boolean | undefined;
807
+ secure_time?: boolean | undefined;
808
+ storage_fs?: string | undefined;
809
+ creator?: {
810
+ object_type: "user";
811
+ username?: string | null | undefined;
812
+ id?: string | null | undefined;
813
+ avatar_url?: string | null | undefined;
814
+ } | null | undefined;
815
+ } | null | undefined;
816
+ }, {
817
+ name: string;
818
+ id: string;
819
+ app_id: string;
820
+ kms_type: string;
821
+ created_at: string;
822
+ app_provision_type?: string | null | undefined;
823
+ app_icon_url?: string | null | undefined;
824
+ current_cvm?: {
825
+ status: string;
826
+ name: string;
827
+ id: string;
828
+ resource: {
829
+ vcpu?: number | null | undefined;
830
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
831
+ instance_type?: string | null | undefined;
832
+ memory_in_gb?: number | null | undefined;
833
+ disk_in_gb?: number | null | undefined;
834
+ gpus?: number | null | undefined;
835
+ compute_billing_price?: string | null | undefined;
836
+ };
837
+ gateway: {
838
+ base_domain?: string | null | undefined;
839
+ cname?: string | null | undefined;
840
+ };
841
+ workspace?: {
842
+ name: string;
843
+ id: string;
844
+ object_type: "workspace";
845
+ slug?: string | null | undefined;
846
+ avatar_url?: string | null | undefined;
847
+ } | null | undefined;
848
+ app_id?: string | null | undefined;
849
+ kms_info?: {
850
+ chain_id?: number | null | undefined;
851
+ encrypted_env_pubkey?: string | null | undefined;
852
+ deployer_address?: string | null | undefined;
853
+ dstack_kms_address?: string | null | undefined;
854
+ dstack_app_address?: string | null | undefined;
855
+ rpc_endpoint?: string | null | undefined;
856
+ } | null | undefined;
857
+ vm_uuid?: string | null | undefined;
858
+ public_sysinfo?: boolean | undefined;
859
+ public_logs?: boolean | undefined;
860
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
861
+ node_info?: {
862
+ object_type: "node";
863
+ status?: string | null | undefined;
864
+ name?: string | null | undefined;
865
+ version?: string | null | undefined;
866
+ id?: number | null | undefined;
867
+ region?: string | null | undefined;
868
+ device_id?: string | null | undefined;
869
+ ppid?: string | null | undefined;
870
+ } | null | undefined;
871
+ os?: {
872
+ name?: string | null | undefined;
873
+ version?: string | null | undefined;
874
+ is_dev?: boolean | null | undefined;
875
+ os_image_hash?: string | null | undefined;
876
+ } | null | undefined;
877
+ progress?: {
878
+ target?: string | null | undefined;
879
+ started_at?: string | null | undefined;
880
+ correlation_id?: string | null | undefined;
881
+ } | null | undefined;
882
+ compose_hash?: string | null | undefined;
883
+ services?: Record<string, any>[] | undefined;
884
+ endpoints?: {
885
+ app: string;
886
+ instance: string;
887
+ }[] | null | undefined;
888
+ public_tcbinfo?: boolean | undefined;
889
+ gateway_enabled?: boolean | undefined;
890
+ secure_time?: boolean | undefined;
891
+ storage_fs?: string | undefined;
892
+ creator?: {
893
+ object_type: "user";
894
+ username?: string | null | undefined;
895
+ id?: string | null | undefined;
896
+ avatar_url?: string | null | undefined;
897
+ } | null | undefined;
898
+ } | null | undefined;
899
+ cvms?: {
900
+ status: string;
901
+ name: string;
902
+ id: string;
903
+ resource: {
904
+ vcpu?: number | null | undefined;
905
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
906
+ instance_type?: string | null | undefined;
907
+ memory_in_gb?: number | null | undefined;
908
+ disk_in_gb?: number | null | undefined;
909
+ gpus?: number | null | undefined;
910
+ compute_billing_price?: string | null | undefined;
911
+ };
912
+ gateway: {
913
+ base_domain?: string | null | undefined;
914
+ cname?: string | null | undefined;
915
+ };
916
+ workspace?: {
917
+ name: string;
918
+ id: string;
919
+ object_type: "workspace";
920
+ slug?: string | null | undefined;
921
+ avatar_url?: string | null | undefined;
922
+ } | null | undefined;
923
+ app_id?: string | null | undefined;
924
+ kms_info?: {
925
+ chain_id?: number | null | undefined;
926
+ encrypted_env_pubkey?: string | null | undefined;
927
+ deployer_address?: string | null | undefined;
928
+ dstack_kms_address?: string | null | undefined;
929
+ dstack_app_address?: string | null | undefined;
930
+ rpc_endpoint?: string | null | undefined;
931
+ } | null | undefined;
932
+ vm_uuid?: string | null | undefined;
933
+ public_sysinfo?: boolean | undefined;
934
+ public_logs?: boolean | undefined;
935
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
936
+ node_info?: {
937
+ object_type: "node";
938
+ status?: string | null | undefined;
939
+ name?: string | null | undefined;
940
+ version?: string | null | undefined;
941
+ id?: number | null | undefined;
942
+ region?: string | null | undefined;
943
+ device_id?: string | null | undefined;
944
+ ppid?: string | null | undefined;
945
+ } | null | undefined;
946
+ os?: {
947
+ name?: string | null | undefined;
948
+ version?: string | null | undefined;
949
+ is_dev?: boolean | null | undefined;
950
+ os_image_hash?: string | null | undefined;
951
+ } | null | undefined;
952
+ progress?: {
953
+ target?: string | null | undefined;
954
+ started_at?: string | null | undefined;
955
+ correlation_id?: string | null | undefined;
956
+ } | null | undefined;
957
+ compose_hash?: string | null | undefined;
958
+ services?: Record<string, any>[] | undefined;
959
+ endpoints?: {
960
+ app: string;
961
+ instance: string;
962
+ }[] | null | undefined;
963
+ public_tcbinfo?: boolean | undefined;
964
+ gateway_enabled?: boolean | undefined;
965
+ secure_time?: boolean | undefined;
966
+ storage_fs?: string | undefined;
967
+ creator?: {
968
+ object_type: "user";
969
+ username?: string | null | undefined;
970
+ id?: string | null | undefined;
971
+ avatar_url?: string | null | undefined;
972
+ } | null | undefined;
973
+ }[] | undefined;
974
+ cvm_count?: number | undefined;
975
+ }>;
976
+ export type DstackAppFullResponseV20260121 = z.infer<typeof DstackAppFullResponseV20260121Schema>;
977
+ export declare const DstackAppMinimalResponseV20260121Schema: z.ZodObject<{
978
+ id: z.ZodOptional<z.ZodNull>;
979
+ app_id: z.ZodString;
980
+ name: z.ZodOptional<z.ZodNull>;
981
+ app_provision_type: z.ZodOptional<z.ZodNull>;
982
+ app_icon_url: z.ZodOptional<z.ZodNull>;
983
+ created_at: z.ZodOptional<z.ZodNull>;
984
+ kms_type: z.ZodOptional<z.ZodNull>;
985
+ current_cvm: z.ZodOptional<z.ZodNull>;
986
+ cvms: z.ZodOptional<z.ZodNull>;
987
+ cvm_count: z.ZodOptional<z.ZodNull>;
988
+ }, "strip", z.ZodTypeAny, {
989
+ app_id: string;
990
+ name?: null | undefined;
991
+ id?: null | undefined;
992
+ kms_type?: null | undefined;
993
+ app_provision_type?: null | undefined;
994
+ app_icon_url?: null | undefined;
995
+ created_at?: null | undefined;
996
+ current_cvm?: null | undefined;
997
+ cvms?: null | undefined;
998
+ cvm_count?: null | undefined;
999
+ }, {
1000
+ app_id: string;
1001
+ name?: null | undefined;
1002
+ id?: null | undefined;
1003
+ kms_type?: null | undefined;
1004
+ app_provision_type?: null | undefined;
1005
+ app_icon_url?: null | undefined;
1006
+ created_at?: null | undefined;
1007
+ current_cvm?: null | undefined;
1008
+ cvms?: null | undefined;
1009
+ cvm_count?: null | undefined;
1010
+ }>;
1011
+ export type DstackAppMinimalResponseV20260121 = z.infer<typeof DstackAppMinimalResponseV20260121Schema>;
1012
+ export declare const DstackAppWithCvmResponseV20260121Schema: z.ZodUnion<[z.ZodObject<{
1013
+ id: z.ZodString;
1014
+ name: z.ZodString;
1015
+ app_id: z.ZodString;
1016
+ app_provision_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1017
+ app_icon_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1018
+ created_at: z.ZodString;
1019
+ kms_type: z.ZodString;
1020
+ current_cvm: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1021
+ id: z.ZodString;
1022
+ name: z.ZodString;
1023
+ app_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1024
+ vm_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1025
+ resource: z.ZodObject<{
1026
+ instance_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1027
+ vcpu: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1028
+ memory_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1029
+ disk_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1030
+ gpus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1031
+ compute_billing_price: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1032
+ billing_period: z.ZodOptional<z.ZodNullable<z.ZodEnum<["skip", "hourly", "monthly"]>>>;
1033
+ }, "strip", z.ZodTypeAny, {
1034
+ vcpu?: number | null | undefined;
1035
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
1036
+ instance_type?: string | null | undefined;
1037
+ memory_in_gb?: number | null | undefined;
1038
+ disk_in_gb?: number | null | undefined;
1039
+ gpus?: number | null | undefined;
1040
+ compute_billing_price?: string | null | undefined;
1041
+ }, {
1042
+ vcpu?: number | null | undefined;
1043
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
1044
+ instance_type?: string | null | undefined;
1045
+ memory_in_gb?: number | null | undefined;
1046
+ disk_in_gb?: number | null | undefined;
1047
+ gpus?: number | null | undefined;
1048
+ compute_billing_price?: string | null | undefined;
1049
+ }>;
1050
+ node_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1051
+ object_type: z.ZodLiteral<"node">;
1052
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1053
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1054
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1055
+ device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1056
+ ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1057
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1058
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1059
+ }, "strip", z.ZodTypeAny, {
1060
+ object_type: "node";
1061
+ status?: string | null | undefined;
1062
+ name?: string | null | undefined;
1063
+ version?: string | null | undefined;
1064
+ id?: number | null | undefined;
1065
+ region?: string | null | undefined;
1066
+ device_id?: string | null | undefined;
1067
+ ppid?: string | null | undefined;
1068
+ }, {
1069
+ object_type: "node";
1070
+ status?: string | null | undefined;
1071
+ name?: string | null | undefined;
1072
+ version?: string | null | undefined;
1073
+ id?: number | null | undefined;
1074
+ region?: string | null | undefined;
1075
+ device_id?: string | null | undefined;
1076
+ ppid?: string | null | undefined;
1077
+ }>>>;
1078
+ os: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1079
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1080
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1081
+ is_dev: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1082
+ os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1083
+ }, "strip", z.ZodTypeAny, {
1084
+ name?: string | null | undefined;
1085
+ version?: string | null | undefined;
1086
+ is_dev?: boolean | null | undefined;
1087
+ os_image_hash?: string | null | undefined;
1088
+ }, {
1089
+ name?: string | null | undefined;
1090
+ version?: string | null | undefined;
1091
+ is_dev?: boolean | null | undefined;
1092
+ os_image_hash?: string | null | undefined;
1093
+ }>>>;
1094
+ kms_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["phala", "ethereum", "base", "legacy"]>>>;
1095
+ kms_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1096
+ chain_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1097
+ dstack_kms_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1098
+ dstack_app_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1099
+ deployer_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1100
+ rpc_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1101
+ encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1102
+ }, "strip", z.ZodTypeAny, {
1103
+ chain_id?: number | null | undefined;
1104
+ encrypted_env_pubkey?: string | null | undefined;
1105
+ deployer_address?: string | null | undefined;
1106
+ dstack_kms_address?: string | null | undefined;
1107
+ dstack_app_address?: string | null | undefined;
1108
+ rpc_endpoint?: string | null | undefined;
1109
+ }, {
1110
+ chain_id?: number | null | undefined;
1111
+ encrypted_env_pubkey?: string | null | undefined;
1112
+ deployer_address?: string | null | undefined;
1113
+ dstack_kms_address?: string | null | undefined;
1114
+ dstack_app_address?: string | null | undefined;
1115
+ rpc_endpoint?: string | null | undefined;
1116
+ }>>>;
1117
+ status: z.ZodString;
1118
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1119
+ target: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1120
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1121
+ correlation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1122
+ }, "strip", z.ZodTypeAny, {
1123
+ target?: string | null | undefined;
1124
+ started_at?: string | null | undefined;
1125
+ correlation_id?: string | null | undefined;
1126
+ }, {
1127
+ target?: string | null | undefined;
1128
+ started_at?: string | null | undefined;
1129
+ correlation_id?: string | null | undefined;
1130
+ }>>>;
1131
+ compose_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1132
+ gateway: z.ZodObject<{
1133
+ base_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1134
+ cname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1135
+ }, "strip", z.ZodTypeAny, {
1136
+ base_domain?: string | null | undefined;
1137
+ cname?: string | null | undefined;
1138
+ }, {
1139
+ base_domain?: string | null | undefined;
1140
+ cname?: string | null | undefined;
1141
+ }>;
1142
+ services: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>>;
1143
+ endpoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1144
+ app: z.ZodString;
1145
+ instance: z.ZodString;
1146
+ }, "strip", z.ZodTypeAny, {
1147
+ app: string;
1148
+ instance: string;
1149
+ }, {
1150
+ app: string;
1151
+ instance: string;
1152
+ }>, "many">>>;
1153
+ public_logs: z.ZodOptional<z.ZodBoolean>;
1154
+ public_sysinfo: z.ZodOptional<z.ZodBoolean>;
1155
+ public_tcbinfo: z.ZodOptional<z.ZodBoolean>;
1156
+ gateway_enabled: z.ZodOptional<z.ZodBoolean>;
1157
+ secure_time: z.ZodOptional<z.ZodBoolean>;
1158
+ storage_fs: z.ZodOptional<z.ZodString>;
1159
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1160
+ object_type: z.ZodLiteral<"workspace">;
1161
+ id: z.ZodString;
1162
+ name: z.ZodString;
1163
+ slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1164
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1165
+ }, "strip", z.ZodTypeAny, {
1166
+ name: string;
1167
+ id: string;
1168
+ object_type: "workspace";
1169
+ slug?: string | null | undefined;
1170
+ avatar_url?: string | null | undefined;
1171
+ }, {
1172
+ name: string;
1173
+ id: string;
1174
+ object_type: "workspace";
1175
+ slug?: string | null | undefined;
1176
+ avatar_url?: string | null | undefined;
1177
+ }>>>;
1178
+ creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1179
+ object_type: z.ZodLiteral<"user">;
1180
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1181
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1182
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1183
+ }, "strip", z.ZodTypeAny, {
1184
+ object_type: "user";
1185
+ username?: string | null | undefined;
1186
+ id?: string | null | undefined;
1187
+ avatar_url?: string | null | undefined;
1188
+ }, {
1189
+ object_type: "user";
1190
+ username?: string | null | undefined;
1191
+ id?: string | null | undefined;
1192
+ avatar_url?: string | null | undefined;
1193
+ }>>>;
1194
+ }, "strip", z.ZodTypeAny, {
1195
+ status: string;
1196
+ name: string;
1197
+ id: string;
1198
+ resource: {
1199
+ vcpu?: number | null | undefined;
1200
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
1201
+ instance_type?: string | null | undefined;
1202
+ memory_in_gb?: number | null | undefined;
1203
+ disk_in_gb?: number | null | undefined;
1204
+ gpus?: number | null | undefined;
1205
+ compute_billing_price?: string | null | undefined;
1206
+ };
1207
+ gateway: {
1208
+ base_domain?: string | null | undefined;
1209
+ cname?: string | null | undefined;
1210
+ };
1211
+ services: Record<string, any>[];
1212
+ workspace?: {
1213
+ name: string;
1214
+ id: string;
1215
+ object_type: "workspace";
1216
+ slug?: string | null | undefined;
1217
+ avatar_url?: string | null | undefined;
1218
+ } | null | undefined;
1219
+ app_id?: string | null | undefined;
1220
+ kms_info?: {
1221
+ chain_id?: number | null | undefined;
1222
+ encrypted_env_pubkey?: string | null | undefined;
1223
+ deployer_address?: string | null | undefined;
1224
+ dstack_kms_address?: string | null | undefined;
1225
+ dstack_app_address?: string | null | undefined;
1226
+ rpc_endpoint?: string | null | undefined;
1227
+ } | null | undefined;
1228
+ vm_uuid?: string | null | undefined;
1229
+ public_sysinfo?: boolean | undefined;
1230
+ public_logs?: boolean | undefined;
1231
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1232
+ node_info?: {
1233
+ object_type: "node";
1234
+ status?: string | null | undefined;
1235
+ name?: string | null | undefined;
1236
+ version?: string | null | undefined;
1237
+ id?: number | null | undefined;
1238
+ region?: string | null | undefined;
1239
+ device_id?: string | null | undefined;
1240
+ ppid?: string | null | undefined;
1241
+ } | null | undefined;
1242
+ os?: {
1243
+ name?: string | null | undefined;
1244
+ version?: string | null | undefined;
1245
+ is_dev?: boolean | null | undefined;
1246
+ os_image_hash?: string | null | undefined;
1247
+ } | null | undefined;
1248
+ progress?: {
1249
+ target?: string | null | undefined;
1250
+ started_at?: string | null | undefined;
1251
+ correlation_id?: string | null | undefined;
1252
+ } | null | undefined;
1253
+ compose_hash?: string | null | undefined;
1254
+ endpoints?: {
1255
+ app: string;
1256
+ instance: string;
1257
+ }[] | null | undefined;
1258
+ public_tcbinfo?: boolean | undefined;
1259
+ gateway_enabled?: boolean | undefined;
1260
+ secure_time?: boolean | undefined;
1261
+ storage_fs?: string | undefined;
1262
+ creator?: {
1263
+ object_type: "user";
1264
+ username?: string | null | undefined;
1265
+ id?: string | null | undefined;
1266
+ avatar_url?: string | null | undefined;
1267
+ } | null | undefined;
1268
+ }, {
1269
+ status: string;
1270
+ name: string;
1271
+ id: string;
1272
+ resource: {
1273
+ vcpu?: number | null | undefined;
1274
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
1275
+ instance_type?: string | null | undefined;
1276
+ memory_in_gb?: number | null | undefined;
1277
+ disk_in_gb?: number | null | undefined;
1278
+ gpus?: number | null | undefined;
1279
+ compute_billing_price?: string | null | undefined;
1280
+ };
1281
+ gateway: {
1282
+ base_domain?: string | null | undefined;
1283
+ cname?: string | null | undefined;
1284
+ };
1285
+ workspace?: {
1286
+ name: string;
1287
+ id: string;
1288
+ object_type: "workspace";
1289
+ slug?: string | null | undefined;
1290
+ avatar_url?: string | null | undefined;
1291
+ } | null | undefined;
1292
+ app_id?: string | null | undefined;
1293
+ kms_info?: {
1294
+ chain_id?: number | null | undefined;
1295
+ encrypted_env_pubkey?: string | null | undefined;
1296
+ deployer_address?: string | null | undefined;
1297
+ dstack_kms_address?: string | null | undefined;
1298
+ dstack_app_address?: string | null | undefined;
1299
+ rpc_endpoint?: string | null | undefined;
1300
+ } | null | undefined;
1301
+ vm_uuid?: string | null | undefined;
1302
+ public_sysinfo?: boolean | undefined;
1303
+ public_logs?: boolean | undefined;
1304
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1305
+ node_info?: {
1306
+ object_type: "node";
1307
+ status?: string | null | undefined;
1308
+ name?: string | null | undefined;
1309
+ version?: string | null | undefined;
1310
+ id?: number | null | undefined;
1311
+ region?: string | null | undefined;
1312
+ device_id?: string | null | undefined;
1313
+ ppid?: string | null | undefined;
1314
+ } | null | undefined;
1315
+ os?: {
1316
+ name?: string | null | undefined;
1317
+ version?: string | null | undefined;
1318
+ is_dev?: boolean | null | undefined;
1319
+ os_image_hash?: string | null | undefined;
1320
+ } | null | undefined;
1321
+ progress?: {
1322
+ target?: string | null | undefined;
1323
+ started_at?: string | null | undefined;
1324
+ correlation_id?: string | null | undefined;
1325
+ } | null | undefined;
1326
+ compose_hash?: string | null | undefined;
1327
+ services?: Record<string, any>[] | undefined;
1328
+ endpoints?: {
1329
+ app: string;
1330
+ instance: string;
1331
+ }[] | null | undefined;
1332
+ public_tcbinfo?: boolean | undefined;
1333
+ gateway_enabled?: boolean | undefined;
1334
+ secure_time?: boolean | undefined;
1335
+ storage_fs?: string | undefined;
1336
+ creator?: {
1337
+ object_type: "user";
1338
+ username?: string | null | undefined;
1339
+ id?: string | null | undefined;
1340
+ avatar_url?: string | null | undefined;
1341
+ } | null | undefined;
1342
+ }>>>;
1343
+ cvms: z.ZodDefault<z.ZodArray<z.ZodObject<{
1344
+ id: z.ZodString;
1345
+ name: z.ZodString;
1346
+ app_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1347
+ vm_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1348
+ resource: z.ZodObject<{
1349
+ instance_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1350
+ vcpu: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1351
+ memory_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1352
+ disk_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1353
+ gpus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1354
+ compute_billing_price: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1355
+ billing_period: z.ZodOptional<z.ZodNullable<z.ZodEnum<["skip", "hourly", "monthly"]>>>;
1356
+ }, "strip", z.ZodTypeAny, {
1357
+ vcpu?: number | null | undefined;
1358
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
1359
+ instance_type?: string | null | undefined;
1360
+ memory_in_gb?: number | null | undefined;
1361
+ disk_in_gb?: number | null | undefined;
1362
+ gpus?: number | null | undefined;
1363
+ compute_billing_price?: string | null | undefined;
1364
+ }, {
1365
+ vcpu?: number | null | undefined;
1366
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
1367
+ instance_type?: string | null | undefined;
1368
+ memory_in_gb?: number | null | undefined;
1369
+ disk_in_gb?: number | null | undefined;
1370
+ gpus?: number | null | undefined;
1371
+ compute_billing_price?: string | null | undefined;
1372
+ }>;
1373
+ node_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1374
+ object_type: z.ZodLiteral<"node">;
1375
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1376
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1377
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1378
+ device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1379
+ ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1380
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1381
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1382
+ }, "strip", z.ZodTypeAny, {
1383
+ object_type: "node";
1384
+ status?: string | null | undefined;
1385
+ name?: string | null | undefined;
1386
+ version?: string | null | undefined;
1387
+ id?: number | null | undefined;
1388
+ region?: string | null | undefined;
1389
+ device_id?: string | null | undefined;
1390
+ ppid?: string | null | undefined;
1391
+ }, {
1392
+ object_type: "node";
1393
+ status?: string | null | undefined;
1394
+ name?: string | null | undefined;
1395
+ version?: string | null | undefined;
1396
+ id?: number | null | undefined;
1397
+ region?: string | null | undefined;
1398
+ device_id?: string | null | undefined;
1399
+ ppid?: string | null | undefined;
1400
+ }>>>;
1401
+ os: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1402
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1403
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1404
+ is_dev: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1405
+ os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1406
+ }, "strip", z.ZodTypeAny, {
1407
+ name?: string | null | undefined;
1408
+ version?: string | null | undefined;
1409
+ is_dev?: boolean | null | undefined;
1410
+ os_image_hash?: string | null | undefined;
1411
+ }, {
1412
+ name?: string | null | undefined;
1413
+ version?: string | null | undefined;
1414
+ is_dev?: boolean | null | undefined;
1415
+ os_image_hash?: string | null | undefined;
1416
+ }>>>;
1417
+ kms_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["phala", "ethereum", "base", "legacy"]>>>;
1418
+ kms_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1419
+ chain_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1420
+ dstack_kms_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1421
+ dstack_app_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1422
+ deployer_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1423
+ rpc_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1424
+ encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1425
+ }, "strip", z.ZodTypeAny, {
1426
+ chain_id?: number | null | undefined;
1427
+ encrypted_env_pubkey?: string | null | undefined;
1428
+ deployer_address?: string | null | undefined;
1429
+ dstack_kms_address?: string | null | undefined;
1430
+ dstack_app_address?: string | null | undefined;
1431
+ rpc_endpoint?: string | null | undefined;
1432
+ }, {
1433
+ chain_id?: number | null | undefined;
1434
+ encrypted_env_pubkey?: string | null | undefined;
1435
+ deployer_address?: string | null | undefined;
1436
+ dstack_kms_address?: string | null | undefined;
1437
+ dstack_app_address?: string | null | undefined;
1438
+ rpc_endpoint?: string | null | undefined;
1439
+ }>>>;
1440
+ status: z.ZodString;
1441
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1442
+ target: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1443
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1444
+ correlation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1445
+ }, "strip", z.ZodTypeAny, {
1446
+ target?: string | null | undefined;
1447
+ started_at?: string | null | undefined;
1448
+ correlation_id?: string | null | undefined;
1449
+ }, {
1450
+ target?: string | null | undefined;
1451
+ started_at?: string | null | undefined;
1452
+ correlation_id?: string | null | undefined;
1453
+ }>>>;
1454
+ compose_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1455
+ gateway: z.ZodObject<{
1456
+ base_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1457
+ cname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1458
+ }, "strip", z.ZodTypeAny, {
1459
+ base_domain?: string | null | undefined;
1460
+ cname?: string | null | undefined;
1461
+ }, {
1462
+ base_domain?: string | null | undefined;
1463
+ cname?: string | null | undefined;
1464
+ }>;
1465
+ services: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>>;
1466
+ endpoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1467
+ app: z.ZodString;
1468
+ instance: z.ZodString;
1469
+ }, "strip", z.ZodTypeAny, {
1470
+ app: string;
1471
+ instance: string;
1472
+ }, {
1473
+ app: string;
1474
+ instance: string;
1475
+ }>, "many">>>;
1476
+ public_logs: z.ZodOptional<z.ZodBoolean>;
1477
+ public_sysinfo: z.ZodOptional<z.ZodBoolean>;
1478
+ public_tcbinfo: z.ZodOptional<z.ZodBoolean>;
1479
+ gateway_enabled: z.ZodOptional<z.ZodBoolean>;
1480
+ secure_time: z.ZodOptional<z.ZodBoolean>;
1481
+ storage_fs: z.ZodOptional<z.ZodString>;
1482
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1483
+ object_type: z.ZodLiteral<"workspace">;
1484
+ id: z.ZodString;
1485
+ name: z.ZodString;
1486
+ slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1487
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1488
+ }, "strip", z.ZodTypeAny, {
1489
+ name: string;
1490
+ id: string;
1491
+ object_type: "workspace";
1492
+ slug?: string | null | undefined;
1493
+ avatar_url?: string | null | undefined;
1494
+ }, {
1495
+ name: string;
1496
+ id: string;
1497
+ object_type: "workspace";
1498
+ slug?: string | null | undefined;
1499
+ avatar_url?: string | null | undefined;
1500
+ }>>>;
1501
+ creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1502
+ object_type: z.ZodLiteral<"user">;
1503
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1504
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1505
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1506
+ }, "strip", z.ZodTypeAny, {
1507
+ object_type: "user";
1508
+ username?: string | null | undefined;
1509
+ id?: string | null | undefined;
1510
+ avatar_url?: string | null | undefined;
1511
+ }, {
1512
+ object_type: "user";
1513
+ username?: string | null | undefined;
1514
+ id?: string | null | undefined;
1515
+ avatar_url?: string | null | undefined;
1516
+ }>>>;
1517
+ }, "strip", z.ZodTypeAny, {
1518
+ status: string;
1519
+ name: string;
1520
+ id: string;
1521
+ resource: {
1522
+ vcpu?: number | null | undefined;
1523
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
1524
+ instance_type?: string | null | undefined;
1525
+ memory_in_gb?: number | null | undefined;
1526
+ disk_in_gb?: number | null | undefined;
1527
+ gpus?: number | null | undefined;
1528
+ compute_billing_price?: string | null | undefined;
1529
+ };
1530
+ gateway: {
1531
+ base_domain?: string | null | undefined;
1532
+ cname?: string | null | undefined;
1533
+ };
1534
+ services: Record<string, any>[];
1535
+ workspace?: {
1536
+ name: string;
1537
+ id: string;
1538
+ object_type: "workspace";
1539
+ slug?: string | null | undefined;
1540
+ avatar_url?: string | null | undefined;
1541
+ } | null | undefined;
1542
+ app_id?: string | null | undefined;
1543
+ kms_info?: {
1544
+ chain_id?: number | null | undefined;
1545
+ encrypted_env_pubkey?: string | null | undefined;
1546
+ deployer_address?: string | null | undefined;
1547
+ dstack_kms_address?: string | null | undefined;
1548
+ dstack_app_address?: string | null | undefined;
1549
+ rpc_endpoint?: string | null | undefined;
1550
+ } | null | undefined;
1551
+ vm_uuid?: string | null | undefined;
1552
+ public_sysinfo?: boolean | undefined;
1553
+ public_logs?: boolean | undefined;
1554
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1555
+ node_info?: {
1556
+ object_type: "node";
1557
+ status?: string | null | undefined;
1558
+ name?: string | null | undefined;
1559
+ version?: string | null | undefined;
1560
+ id?: number | null | undefined;
1561
+ region?: string | null | undefined;
1562
+ device_id?: string | null | undefined;
1563
+ ppid?: string | null | undefined;
1564
+ } | null | undefined;
1565
+ os?: {
1566
+ name?: string | null | undefined;
1567
+ version?: string | null | undefined;
1568
+ is_dev?: boolean | null | undefined;
1569
+ os_image_hash?: string | null | undefined;
1570
+ } | null | undefined;
1571
+ progress?: {
1572
+ target?: string | null | undefined;
1573
+ started_at?: string | null | undefined;
1574
+ correlation_id?: string | null | undefined;
1575
+ } | null | undefined;
1576
+ compose_hash?: string | null | undefined;
1577
+ endpoints?: {
1578
+ app: string;
1579
+ instance: string;
1580
+ }[] | null | undefined;
1581
+ public_tcbinfo?: boolean | undefined;
1582
+ gateway_enabled?: boolean | undefined;
1583
+ secure_time?: boolean | undefined;
1584
+ storage_fs?: string | undefined;
1585
+ creator?: {
1586
+ object_type: "user";
1587
+ username?: string | null | undefined;
1588
+ id?: string | null | undefined;
1589
+ avatar_url?: string | null | undefined;
1590
+ } | null | undefined;
1591
+ }, {
1592
+ status: string;
1593
+ name: string;
1594
+ id: string;
1595
+ resource: {
1596
+ vcpu?: number | null | undefined;
1597
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
1598
+ instance_type?: string | null | undefined;
1599
+ memory_in_gb?: number | null | undefined;
1600
+ disk_in_gb?: number | null | undefined;
1601
+ gpus?: number | null | undefined;
1602
+ compute_billing_price?: string | null | undefined;
1603
+ };
1604
+ gateway: {
1605
+ base_domain?: string | null | undefined;
1606
+ cname?: string | null | undefined;
1607
+ };
1608
+ workspace?: {
1609
+ name: string;
1610
+ id: string;
1611
+ object_type: "workspace";
1612
+ slug?: string | null | undefined;
1613
+ avatar_url?: string | null | undefined;
1614
+ } | null | undefined;
1615
+ app_id?: string | null | undefined;
1616
+ kms_info?: {
1617
+ chain_id?: number | null | undefined;
1618
+ encrypted_env_pubkey?: string | null | undefined;
1619
+ deployer_address?: string | null | undefined;
1620
+ dstack_kms_address?: string | null | undefined;
1621
+ dstack_app_address?: string | null | undefined;
1622
+ rpc_endpoint?: string | null | undefined;
1623
+ } | null | undefined;
1624
+ vm_uuid?: string | null | undefined;
1625
+ public_sysinfo?: boolean | undefined;
1626
+ public_logs?: boolean | undefined;
1627
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1628
+ node_info?: {
1629
+ object_type: "node";
1630
+ status?: string | null | undefined;
1631
+ name?: string | null | undefined;
1632
+ version?: string | null | undefined;
1633
+ id?: number | null | undefined;
1634
+ region?: string | null | undefined;
1635
+ device_id?: string | null | undefined;
1636
+ ppid?: string | null | undefined;
1637
+ } | null | undefined;
1638
+ os?: {
1639
+ name?: string | null | undefined;
1640
+ version?: string | null | undefined;
1641
+ is_dev?: boolean | null | undefined;
1642
+ os_image_hash?: string | null | undefined;
1643
+ } | null | undefined;
1644
+ progress?: {
1645
+ target?: string | null | undefined;
1646
+ started_at?: string | null | undefined;
1647
+ correlation_id?: string | null | undefined;
1648
+ } | null | undefined;
1649
+ compose_hash?: string | null | undefined;
1650
+ services?: Record<string, any>[] | undefined;
1651
+ endpoints?: {
1652
+ app: string;
1653
+ instance: string;
1654
+ }[] | null | undefined;
1655
+ public_tcbinfo?: boolean | undefined;
1656
+ gateway_enabled?: boolean | undefined;
1657
+ secure_time?: boolean | undefined;
1658
+ storage_fs?: string | undefined;
1659
+ creator?: {
1660
+ object_type: "user";
1661
+ username?: string | null | undefined;
1662
+ id?: string | null | undefined;
1663
+ avatar_url?: string | null | undefined;
1664
+ } | null | undefined;
1665
+ }>, "many">>;
1666
+ cvm_count: z.ZodDefault<z.ZodNumber>;
1667
+ }, "strip", z.ZodTypeAny, {
1668
+ name: string;
1669
+ id: string;
1670
+ app_id: string;
1671
+ kms_type: string;
1672
+ created_at: string;
1673
+ cvms: {
1674
+ status: string;
1675
+ name: string;
1676
+ id: string;
1677
+ resource: {
1678
+ vcpu?: number | null | undefined;
1679
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
1680
+ instance_type?: string | null | undefined;
1681
+ memory_in_gb?: number | null | undefined;
1682
+ disk_in_gb?: number | null | undefined;
1683
+ gpus?: number | null | undefined;
1684
+ compute_billing_price?: string | null | undefined;
1685
+ };
1686
+ gateway: {
1687
+ base_domain?: string | null | undefined;
1688
+ cname?: string | null | undefined;
1689
+ };
1690
+ services: Record<string, any>[];
1691
+ workspace?: {
1692
+ name: string;
1693
+ id: string;
1694
+ object_type: "workspace";
1695
+ slug?: string | null | undefined;
1696
+ avatar_url?: string | null | undefined;
1697
+ } | null | undefined;
1698
+ app_id?: string | null | undefined;
1699
+ kms_info?: {
1700
+ chain_id?: number | null | undefined;
1701
+ encrypted_env_pubkey?: string | null | undefined;
1702
+ deployer_address?: string | null | undefined;
1703
+ dstack_kms_address?: string | null | undefined;
1704
+ dstack_app_address?: string | null | undefined;
1705
+ rpc_endpoint?: string | null | undefined;
1706
+ } | null | undefined;
1707
+ vm_uuid?: string | null | undefined;
1708
+ public_sysinfo?: boolean | undefined;
1709
+ public_logs?: boolean | undefined;
1710
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1711
+ node_info?: {
1712
+ object_type: "node";
1713
+ status?: string | null | undefined;
1714
+ name?: string | null | undefined;
1715
+ version?: string | null | undefined;
1716
+ id?: number | null | undefined;
1717
+ region?: string | null | undefined;
1718
+ device_id?: string | null | undefined;
1719
+ ppid?: string | null | undefined;
1720
+ } | null | undefined;
1721
+ os?: {
1722
+ name?: string | null | undefined;
1723
+ version?: string | null | undefined;
1724
+ is_dev?: boolean | null | undefined;
1725
+ os_image_hash?: string | null | undefined;
1726
+ } | null | undefined;
1727
+ progress?: {
1728
+ target?: string | null | undefined;
1729
+ started_at?: string | null | undefined;
1730
+ correlation_id?: string | null | undefined;
1731
+ } | null | undefined;
1732
+ compose_hash?: string | null | undefined;
1733
+ endpoints?: {
1734
+ app: string;
1735
+ instance: string;
1736
+ }[] | null | undefined;
1737
+ public_tcbinfo?: boolean | undefined;
1738
+ gateway_enabled?: boolean | undefined;
1739
+ secure_time?: boolean | undefined;
1740
+ storage_fs?: string | undefined;
1741
+ creator?: {
1742
+ object_type: "user";
1743
+ username?: string | null | undefined;
1744
+ id?: string | null | undefined;
1745
+ avatar_url?: string | null | undefined;
1746
+ } | null | undefined;
1747
+ }[];
1748
+ cvm_count: number;
1749
+ app_provision_type?: string | null | undefined;
1750
+ app_icon_url?: string | null | undefined;
1751
+ current_cvm?: {
1752
+ status: string;
1753
+ name: string;
1754
+ id: string;
1755
+ resource: {
1756
+ vcpu?: number | null | undefined;
1757
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
1758
+ instance_type?: string | null | undefined;
1759
+ memory_in_gb?: number | null | undefined;
1760
+ disk_in_gb?: number | null | undefined;
1761
+ gpus?: number | null | undefined;
1762
+ compute_billing_price?: string | null | undefined;
1763
+ };
1764
+ gateway: {
1765
+ base_domain?: string | null | undefined;
1766
+ cname?: string | null | undefined;
1767
+ };
1768
+ services: Record<string, any>[];
1769
+ workspace?: {
1770
+ name: string;
1771
+ id: string;
1772
+ object_type: "workspace";
1773
+ slug?: string | null | undefined;
1774
+ avatar_url?: string | null | undefined;
1775
+ } | null | undefined;
1776
+ app_id?: string | null | undefined;
1777
+ kms_info?: {
1778
+ chain_id?: number | null | undefined;
1779
+ encrypted_env_pubkey?: string | null | undefined;
1780
+ deployer_address?: string | null | undefined;
1781
+ dstack_kms_address?: string | null | undefined;
1782
+ dstack_app_address?: string | null | undefined;
1783
+ rpc_endpoint?: string | null | undefined;
1784
+ } | null | undefined;
1785
+ vm_uuid?: string | null | undefined;
1786
+ public_sysinfo?: boolean | undefined;
1787
+ public_logs?: boolean | undefined;
1788
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1789
+ node_info?: {
1790
+ object_type: "node";
1791
+ status?: string | null | undefined;
1792
+ name?: string | null | undefined;
1793
+ version?: string | null | undefined;
1794
+ id?: number | null | undefined;
1795
+ region?: string | null | undefined;
1796
+ device_id?: string | null | undefined;
1797
+ ppid?: string | null | undefined;
1798
+ } | null | undefined;
1799
+ os?: {
1800
+ name?: string | null | undefined;
1801
+ version?: string | null | undefined;
1802
+ is_dev?: boolean | null | undefined;
1803
+ os_image_hash?: string | null | undefined;
1804
+ } | null | undefined;
1805
+ progress?: {
1806
+ target?: string | null | undefined;
1807
+ started_at?: string | null | undefined;
1808
+ correlation_id?: string | null | undefined;
1809
+ } | null | undefined;
1810
+ compose_hash?: string | null | undefined;
1811
+ endpoints?: {
1812
+ app: string;
1813
+ instance: string;
1814
+ }[] | null | undefined;
1815
+ public_tcbinfo?: boolean | undefined;
1816
+ gateway_enabled?: boolean | undefined;
1817
+ secure_time?: boolean | undefined;
1818
+ storage_fs?: string | undefined;
1819
+ creator?: {
1820
+ object_type: "user";
1821
+ username?: string | null | undefined;
1822
+ id?: string | null | undefined;
1823
+ avatar_url?: string | null | undefined;
1824
+ } | null | undefined;
1825
+ } | null | undefined;
1826
+ }, {
1827
+ name: string;
1828
+ id: string;
1829
+ app_id: string;
1830
+ kms_type: string;
1831
+ created_at: string;
1832
+ app_provision_type?: string | null | undefined;
1833
+ app_icon_url?: string | null | undefined;
1834
+ current_cvm?: {
1835
+ status: string;
1836
+ name: string;
1837
+ id: string;
1838
+ resource: {
1839
+ vcpu?: number | null | undefined;
1840
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
1841
+ instance_type?: string | null | undefined;
1842
+ memory_in_gb?: number | null | undefined;
1843
+ disk_in_gb?: number | null | undefined;
1844
+ gpus?: number | null | undefined;
1845
+ compute_billing_price?: string | null | undefined;
1846
+ };
1847
+ gateway: {
1848
+ base_domain?: string | null | undefined;
1849
+ cname?: string | null | undefined;
1850
+ };
1851
+ workspace?: {
1852
+ name: string;
1853
+ id: string;
1854
+ object_type: "workspace";
1855
+ slug?: string | null | undefined;
1856
+ avatar_url?: string | null | undefined;
1857
+ } | null | undefined;
1858
+ app_id?: string | null | undefined;
1859
+ kms_info?: {
1860
+ chain_id?: number | null | undefined;
1861
+ encrypted_env_pubkey?: string | null | undefined;
1862
+ deployer_address?: string | null | undefined;
1863
+ dstack_kms_address?: string | null | undefined;
1864
+ dstack_app_address?: string | null | undefined;
1865
+ rpc_endpoint?: string | null | undefined;
1866
+ } | null | undefined;
1867
+ vm_uuid?: string | null | undefined;
1868
+ public_sysinfo?: boolean | undefined;
1869
+ public_logs?: boolean | undefined;
1870
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1871
+ node_info?: {
1872
+ object_type: "node";
1873
+ status?: string | null | undefined;
1874
+ name?: string | null | undefined;
1875
+ version?: string | null | undefined;
1876
+ id?: number | null | undefined;
1877
+ region?: string | null | undefined;
1878
+ device_id?: string | null | undefined;
1879
+ ppid?: string | null | undefined;
1880
+ } | null | undefined;
1881
+ os?: {
1882
+ name?: string | null | undefined;
1883
+ version?: string | null | undefined;
1884
+ is_dev?: boolean | null | undefined;
1885
+ os_image_hash?: string | null | undefined;
1886
+ } | null | undefined;
1887
+ progress?: {
1888
+ target?: string | null | undefined;
1889
+ started_at?: string | null | undefined;
1890
+ correlation_id?: string | null | undefined;
1891
+ } | null | undefined;
1892
+ compose_hash?: string | null | undefined;
1893
+ services?: Record<string, any>[] | undefined;
1894
+ endpoints?: {
1895
+ app: string;
1896
+ instance: string;
1897
+ }[] | null | undefined;
1898
+ public_tcbinfo?: boolean | undefined;
1899
+ gateway_enabled?: boolean | undefined;
1900
+ secure_time?: boolean | undefined;
1901
+ storage_fs?: string | undefined;
1902
+ creator?: {
1903
+ object_type: "user";
1904
+ username?: string | null | undefined;
1905
+ id?: string | null | undefined;
1906
+ avatar_url?: string | null | undefined;
1907
+ } | null | undefined;
1908
+ } | null | undefined;
1909
+ cvms?: {
1910
+ status: string;
1911
+ name: string;
1912
+ id: string;
1913
+ resource: {
1914
+ vcpu?: number | null | undefined;
1915
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
1916
+ instance_type?: string | null | undefined;
1917
+ memory_in_gb?: number | null | undefined;
1918
+ disk_in_gb?: number | null | undefined;
1919
+ gpus?: number | null | undefined;
1920
+ compute_billing_price?: string | null | undefined;
1921
+ };
1922
+ gateway: {
1923
+ base_domain?: string | null | undefined;
1924
+ cname?: string | null | undefined;
1925
+ };
1926
+ workspace?: {
1927
+ name: string;
1928
+ id: string;
1929
+ object_type: "workspace";
1930
+ slug?: string | null | undefined;
1931
+ avatar_url?: string | null | undefined;
1932
+ } | null | undefined;
1933
+ app_id?: string | null | undefined;
1934
+ kms_info?: {
1935
+ chain_id?: number | null | undefined;
1936
+ encrypted_env_pubkey?: string | null | undefined;
1937
+ deployer_address?: string | null | undefined;
1938
+ dstack_kms_address?: string | null | undefined;
1939
+ dstack_app_address?: string | null | undefined;
1940
+ rpc_endpoint?: string | null | undefined;
1941
+ } | null | undefined;
1942
+ vm_uuid?: string | null | undefined;
1943
+ public_sysinfo?: boolean | undefined;
1944
+ public_logs?: boolean | undefined;
1945
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1946
+ node_info?: {
1947
+ object_type: "node";
1948
+ status?: string | null | undefined;
1949
+ name?: string | null | undefined;
1950
+ version?: string | null | undefined;
1951
+ id?: number | null | undefined;
1952
+ region?: string | null | undefined;
1953
+ device_id?: string | null | undefined;
1954
+ ppid?: string | null | undefined;
1955
+ } | null | undefined;
1956
+ os?: {
1957
+ name?: string | null | undefined;
1958
+ version?: string | null | undefined;
1959
+ is_dev?: boolean | null | undefined;
1960
+ os_image_hash?: string | null | undefined;
1961
+ } | null | undefined;
1962
+ progress?: {
1963
+ target?: string | null | undefined;
1964
+ started_at?: string | null | undefined;
1965
+ correlation_id?: string | null | undefined;
1966
+ } | null | undefined;
1967
+ compose_hash?: string | null | undefined;
1968
+ services?: Record<string, any>[] | undefined;
1969
+ endpoints?: {
1970
+ app: string;
1971
+ instance: string;
1972
+ }[] | null | undefined;
1973
+ public_tcbinfo?: boolean | undefined;
1974
+ gateway_enabled?: boolean | undefined;
1975
+ secure_time?: boolean | undefined;
1976
+ storage_fs?: string | undefined;
1977
+ creator?: {
1978
+ object_type: "user";
1979
+ username?: string | null | undefined;
1980
+ id?: string | null | undefined;
1981
+ avatar_url?: string | null | undefined;
1982
+ } | null | undefined;
1983
+ }[] | undefined;
1984
+ cvm_count?: number | undefined;
1985
+ }>, z.ZodObject<{
1986
+ id: z.ZodOptional<z.ZodNull>;
1987
+ app_id: z.ZodString;
1988
+ name: z.ZodOptional<z.ZodNull>;
1989
+ app_provision_type: z.ZodOptional<z.ZodNull>;
1990
+ app_icon_url: z.ZodOptional<z.ZodNull>;
1991
+ created_at: z.ZodOptional<z.ZodNull>;
1992
+ kms_type: z.ZodOptional<z.ZodNull>;
1993
+ current_cvm: z.ZodOptional<z.ZodNull>;
1994
+ cvms: z.ZodOptional<z.ZodNull>;
1995
+ cvm_count: z.ZodOptional<z.ZodNull>;
1996
+ }, "strip", z.ZodTypeAny, {
1997
+ app_id: string;
1998
+ name?: null | undefined;
1999
+ id?: null | undefined;
2000
+ kms_type?: null | undefined;
2001
+ app_provision_type?: null | undefined;
2002
+ app_icon_url?: null | undefined;
2003
+ created_at?: null | undefined;
2004
+ current_cvm?: null | undefined;
2005
+ cvms?: null | undefined;
2006
+ cvm_count?: null | undefined;
2007
+ }, {
2008
+ app_id: string;
2009
+ name?: null | undefined;
2010
+ id?: null | undefined;
2011
+ kms_type?: null | undefined;
2012
+ app_provision_type?: null | undefined;
2013
+ app_icon_url?: null | undefined;
2014
+ created_at?: null | undefined;
2015
+ current_cvm?: null | undefined;
2016
+ cvms?: null | undefined;
2017
+ cvm_count?: null | undefined;
2018
+ }>]>;
2019
+ export type DstackAppWithCvmResponseV20260121 = z.infer<typeof DstackAppWithCvmResponseV20260121Schema>;
2020
+ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
2021
+ dstack_apps: z.ZodArray<z.ZodUnion<[z.ZodObject<{
2022
+ id: z.ZodString;
2023
+ name: z.ZodString;
2024
+ app_id: z.ZodString;
2025
+ app_provision_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2026
+ app_icon_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2027
+ created_at: z.ZodString;
2028
+ kms_type: z.ZodString;
2029
+ current_cvm: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2030
+ id: z.ZodString;
2031
+ name: z.ZodString;
2032
+ app_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2033
+ vm_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2034
+ resource: z.ZodObject<{
2035
+ instance_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2036
+ vcpu: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2037
+ memory_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2038
+ disk_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2039
+ gpus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2040
+ compute_billing_price: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2041
+ billing_period: z.ZodOptional<z.ZodNullable<z.ZodEnum<["skip", "hourly", "monthly"]>>>;
2042
+ }, "strip", z.ZodTypeAny, {
2043
+ vcpu?: number | null | undefined;
2044
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
2045
+ instance_type?: string | null | undefined;
2046
+ memory_in_gb?: number | null | undefined;
2047
+ disk_in_gb?: number | null | undefined;
2048
+ gpus?: number | null | undefined;
2049
+ compute_billing_price?: string | null | undefined;
2050
+ }, {
2051
+ vcpu?: number | null | undefined;
2052
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
2053
+ instance_type?: string | null | undefined;
2054
+ memory_in_gb?: number | null | undefined;
2055
+ disk_in_gb?: number | null | undefined;
2056
+ gpus?: number | null | undefined;
2057
+ compute_billing_price?: string | null | undefined;
2058
+ }>;
2059
+ node_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2060
+ object_type: z.ZodLiteral<"node">;
2061
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2062
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2063
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2064
+ device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2065
+ ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2066
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2067
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2068
+ }, "strip", z.ZodTypeAny, {
2069
+ object_type: "node";
2070
+ status?: string | null | undefined;
2071
+ name?: string | null | undefined;
2072
+ version?: string | null | undefined;
2073
+ id?: number | null | undefined;
2074
+ region?: string | null | undefined;
2075
+ device_id?: string | null | undefined;
2076
+ ppid?: string | null | undefined;
2077
+ }, {
2078
+ object_type: "node";
2079
+ status?: string | null | undefined;
2080
+ name?: string | null | undefined;
2081
+ version?: string | null | undefined;
2082
+ id?: number | null | undefined;
2083
+ region?: string | null | undefined;
2084
+ device_id?: string | null | undefined;
2085
+ ppid?: string | null | undefined;
2086
+ }>>>;
2087
+ os: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2088
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2089
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2090
+ is_dev: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2091
+ os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2092
+ }, "strip", z.ZodTypeAny, {
2093
+ name?: string | null | undefined;
2094
+ version?: string | null | undefined;
2095
+ is_dev?: boolean | null | undefined;
2096
+ os_image_hash?: string | null | undefined;
2097
+ }, {
2098
+ name?: string | null | undefined;
2099
+ version?: string | null | undefined;
2100
+ is_dev?: boolean | null | undefined;
2101
+ os_image_hash?: string | null | undefined;
2102
+ }>>>;
2103
+ kms_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["phala", "ethereum", "base", "legacy"]>>>;
2104
+ kms_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2105
+ chain_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2106
+ dstack_kms_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2107
+ dstack_app_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2108
+ deployer_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2109
+ rpc_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2110
+ encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2111
+ }, "strip", z.ZodTypeAny, {
2112
+ chain_id?: number | null | undefined;
2113
+ encrypted_env_pubkey?: string | null | undefined;
2114
+ deployer_address?: string | null | undefined;
2115
+ dstack_kms_address?: string | null | undefined;
2116
+ dstack_app_address?: string | null | undefined;
2117
+ rpc_endpoint?: string | null | undefined;
2118
+ }, {
2119
+ chain_id?: number | null | undefined;
2120
+ encrypted_env_pubkey?: string | null | undefined;
2121
+ deployer_address?: string | null | undefined;
2122
+ dstack_kms_address?: string | null | undefined;
2123
+ dstack_app_address?: string | null | undefined;
2124
+ rpc_endpoint?: string | null | undefined;
2125
+ }>>>;
2126
+ status: z.ZodString;
2127
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2128
+ target: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2129
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2130
+ correlation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2131
+ }, "strip", z.ZodTypeAny, {
2132
+ target?: string | null | undefined;
2133
+ started_at?: string | null | undefined;
2134
+ correlation_id?: string | null | undefined;
2135
+ }, {
2136
+ target?: string | null | undefined;
2137
+ started_at?: string | null | undefined;
2138
+ correlation_id?: string | null | undefined;
2139
+ }>>>;
2140
+ compose_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2141
+ gateway: z.ZodObject<{
2142
+ base_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2143
+ cname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2144
+ }, "strip", z.ZodTypeAny, {
2145
+ base_domain?: string | null | undefined;
2146
+ cname?: string | null | undefined;
2147
+ }, {
2148
+ base_domain?: string | null | undefined;
2149
+ cname?: string | null | undefined;
2150
+ }>;
2151
+ services: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>>;
2152
+ endpoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2153
+ app: z.ZodString;
2154
+ instance: z.ZodString;
2155
+ }, "strip", z.ZodTypeAny, {
2156
+ app: string;
2157
+ instance: string;
2158
+ }, {
2159
+ app: string;
2160
+ instance: string;
2161
+ }>, "many">>>;
2162
+ public_logs: z.ZodOptional<z.ZodBoolean>;
2163
+ public_sysinfo: z.ZodOptional<z.ZodBoolean>;
2164
+ public_tcbinfo: z.ZodOptional<z.ZodBoolean>;
2165
+ gateway_enabled: z.ZodOptional<z.ZodBoolean>;
2166
+ secure_time: z.ZodOptional<z.ZodBoolean>;
2167
+ storage_fs: z.ZodOptional<z.ZodString>;
2168
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2169
+ object_type: z.ZodLiteral<"workspace">;
2170
+ id: z.ZodString;
2171
+ name: z.ZodString;
2172
+ slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2173
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2174
+ }, "strip", z.ZodTypeAny, {
2175
+ name: string;
2176
+ id: string;
2177
+ object_type: "workspace";
2178
+ slug?: string | null | undefined;
2179
+ avatar_url?: string | null | undefined;
2180
+ }, {
2181
+ name: string;
2182
+ id: string;
2183
+ object_type: "workspace";
2184
+ slug?: string | null | undefined;
2185
+ avatar_url?: string | null | undefined;
2186
+ }>>>;
2187
+ creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2188
+ object_type: z.ZodLiteral<"user">;
2189
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2190
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2191
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2192
+ }, "strip", z.ZodTypeAny, {
2193
+ object_type: "user";
2194
+ username?: string | null | undefined;
2195
+ id?: string | null | undefined;
2196
+ avatar_url?: string | null | undefined;
2197
+ }, {
2198
+ object_type: "user";
2199
+ username?: string | null | undefined;
2200
+ id?: string | null | undefined;
2201
+ avatar_url?: string | null | undefined;
2202
+ }>>>;
2203
+ }, "strip", z.ZodTypeAny, {
2204
+ status: string;
2205
+ name: string;
2206
+ id: string;
2207
+ resource: {
2208
+ vcpu?: number | null | undefined;
2209
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
2210
+ instance_type?: string | null | undefined;
2211
+ memory_in_gb?: number | null | undefined;
2212
+ disk_in_gb?: number | null | undefined;
2213
+ gpus?: number | null | undefined;
2214
+ compute_billing_price?: string | null | undefined;
2215
+ };
2216
+ gateway: {
2217
+ base_domain?: string | null | undefined;
2218
+ cname?: string | null | undefined;
2219
+ };
2220
+ services: Record<string, any>[];
2221
+ workspace?: {
2222
+ name: string;
2223
+ id: string;
2224
+ object_type: "workspace";
2225
+ slug?: string | null | undefined;
2226
+ avatar_url?: string | null | undefined;
2227
+ } | null | undefined;
2228
+ app_id?: string | null | undefined;
2229
+ kms_info?: {
2230
+ chain_id?: number | null | undefined;
2231
+ encrypted_env_pubkey?: string | null | undefined;
2232
+ deployer_address?: string | null | undefined;
2233
+ dstack_kms_address?: string | null | undefined;
2234
+ dstack_app_address?: string | null | undefined;
2235
+ rpc_endpoint?: string | null | undefined;
2236
+ } | null | undefined;
2237
+ vm_uuid?: string | null | undefined;
2238
+ public_sysinfo?: boolean | undefined;
2239
+ public_logs?: boolean | undefined;
2240
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
2241
+ node_info?: {
2242
+ object_type: "node";
2243
+ status?: string | null | undefined;
2244
+ name?: string | null | undefined;
2245
+ version?: string | null | undefined;
2246
+ id?: number | null | undefined;
2247
+ region?: string | null | undefined;
2248
+ device_id?: string | null | undefined;
2249
+ ppid?: string | null | undefined;
2250
+ } | null | undefined;
2251
+ os?: {
2252
+ name?: string | null | undefined;
2253
+ version?: string | null | undefined;
2254
+ is_dev?: boolean | null | undefined;
2255
+ os_image_hash?: string | null | undefined;
2256
+ } | null | undefined;
2257
+ progress?: {
2258
+ target?: string | null | undefined;
2259
+ started_at?: string | null | undefined;
2260
+ correlation_id?: string | null | undefined;
2261
+ } | null | undefined;
2262
+ compose_hash?: string | null | undefined;
2263
+ endpoints?: {
2264
+ app: string;
2265
+ instance: string;
2266
+ }[] | null | undefined;
2267
+ public_tcbinfo?: boolean | undefined;
2268
+ gateway_enabled?: boolean | undefined;
2269
+ secure_time?: boolean | undefined;
2270
+ storage_fs?: string | undefined;
2271
+ creator?: {
2272
+ object_type: "user";
2273
+ username?: string | null | undefined;
2274
+ id?: string | null | undefined;
2275
+ avatar_url?: string | null | undefined;
2276
+ } | null | undefined;
2277
+ }, {
2278
+ status: string;
2279
+ name: string;
2280
+ id: string;
2281
+ resource: {
2282
+ vcpu?: number | null | undefined;
2283
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
2284
+ instance_type?: string | null | undefined;
2285
+ memory_in_gb?: number | null | undefined;
2286
+ disk_in_gb?: number | null | undefined;
2287
+ gpus?: number | null | undefined;
2288
+ compute_billing_price?: string | null | undefined;
2289
+ };
2290
+ gateway: {
2291
+ base_domain?: string | null | undefined;
2292
+ cname?: string | null | undefined;
2293
+ };
2294
+ workspace?: {
2295
+ name: string;
2296
+ id: string;
2297
+ object_type: "workspace";
2298
+ slug?: string | null | undefined;
2299
+ avatar_url?: string | null | undefined;
2300
+ } | null | undefined;
2301
+ app_id?: string | null | undefined;
2302
+ kms_info?: {
2303
+ chain_id?: number | null | undefined;
2304
+ encrypted_env_pubkey?: string | null | undefined;
2305
+ deployer_address?: string | null | undefined;
2306
+ dstack_kms_address?: string | null | undefined;
2307
+ dstack_app_address?: string | null | undefined;
2308
+ rpc_endpoint?: string | null | undefined;
2309
+ } | null | undefined;
2310
+ vm_uuid?: string | null | undefined;
2311
+ public_sysinfo?: boolean | undefined;
2312
+ public_logs?: boolean | undefined;
2313
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
2314
+ node_info?: {
2315
+ object_type: "node";
2316
+ status?: string | null | undefined;
2317
+ name?: string | null | undefined;
2318
+ version?: string | null | undefined;
2319
+ id?: number | null | undefined;
2320
+ region?: string | null | undefined;
2321
+ device_id?: string | null | undefined;
2322
+ ppid?: string | null | undefined;
2323
+ } | null | undefined;
2324
+ os?: {
2325
+ name?: string | null | undefined;
2326
+ version?: string | null | undefined;
2327
+ is_dev?: boolean | null | undefined;
2328
+ os_image_hash?: string | null | undefined;
2329
+ } | null | undefined;
2330
+ progress?: {
2331
+ target?: string | null | undefined;
2332
+ started_at?: string | null | undefined;
2333
+ correlation_id?: string | null | undefined;
2334
+ } | null | undefined;
2335
+ compose_hash?: string | null | undefined;
2336
+ services?: Record<string, any>[] | undefined;
2337
+ endpoints?: {
2338
+ app: string;
2339
+ instance: string;
2340
+ }[] | null | undefined;
2341
+ public_tcbinfo?: boolean | undefined;
2342
+ gateway_enabled?: boolean | undefined;
2343
+ secure_time?: boolean | undefined;
2344
+ storage_fs?: string | undefined;
2345
+ creator?: {
2346
+ object_type: "user";
2347
+ username?: string | null | undefined;
2348
+ id?: string | null | undefined;
2349
+ avatar_url?: string | null | undefined;
2350
+ } | null | undefined;
2351
+ }>>>;
2352
+ cvms: z.ZodDefault<z.ZodArray<z.ZodObject<{
2353
+ id: z.ZodString;
2354
+ name: z.ZodString;
2355
+ app_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2356
+ vm_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2357
+ resource: z.ZodObject<{
2358
+ instance_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2359
+ vcpu: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2360
+ memory_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2361
+ disk_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2362
+ gpus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2363
+ compute_billing_price: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2364
+ billing_period: z.ZodOptional<z.ZodNullable<z.ZodEnum<["skip", "hourly", "monthly"]>>>;
2365
+ }, "strip", z.ZodTypeAny, {
2366
+ vcpu?: number | null | undefined;
2367
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
2368
+ instance_type?: string | null | undefined;
2369
+ memory_in_gb?: number | null | undefined;
2370
+ disk_in_gb?: number | null | undefined;
2371
+ gpus?: number | null | undefined;
2372
+ compute_billing_price?: string | null | undefined;
2373
+ }, {
2374
+ vcpu?: number | null | undefined;
2375
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
2376
+ instance_type?: string | null | undefined;
2377
+ memory_in_gb?: number | null | undefined;
2378
+ disk_in_gb?: number | null | undefined;
2379
+ gpus?: number | null | undefined;
2380
+ compute_billing_price?: string | null | undefined;
2381
+ }>;
2382
+ node_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2383
+ object_type: z.ZodLiteral<"node">;
2384
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2385
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2386
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2387
+ device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2388
+ ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2389
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2390
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2391
+ }, "strip", z.ZodTypeAny, {
2392
+ object_type: "node";
2393
+ status?: string | null | undefined;
2394
+ name?: string | null | undefined;
2395
+ version?: string | null | undefined;
2396
+ id?: number | null | undefined;
2397
+ region?: string | null | undefined;
2398
+ device_id?: string | null | undefined;
2399
+ ppid?: string | null | undefined;
2400
+ }, {
2401
+ object_type: "node";
2402
+ status?: string | null | undefined;
2403
+ name?: string | null | undefined;
2404
+ version?: string | null | undefined;
2405
+ id?: number | null | undefined;
2406
+ region?: string | null | undefined;
2407
+ device_id?: string | null | undefined;
2408
+ ppid?: string | null | undefined;
2409
+ }>>>;
2410
+ os: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2411
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2412
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2413
+ is_dev: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2414
+ os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2415
+ }, "strip", z.ZodTypeAny, {
2416
+ name?: string | null | undefined;
2417
+ version?: string | null | undefined;
2418
+ is_dev?: boolean | null | undefined;
2419
+ os_image_hash?: string | null | undefined;
2420
+ }, {
2421
+ name?: string | null | undefined;
2422
+ version?: string | null | undefined;
2423
+ is_dev?: boolean | null | undefined;
2424
+ os_image_hash?: string | null | undefined;
2425
+ }>>>;
2426
+ kms_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<["phala", "ethereum", "base", "legacy"]>>>;
2427
+ kms_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2428
+ chain_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2429
+ dstack_kms_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2430
+ dstack_app_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2431
+ deployer_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2432
+ rpc_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2433
+ encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2434
+ }, "strip", z.ZodTypeAny, {
2435
+ chain_id?: number | null | undefined;
2436
+ encrypted_env_pubkey?: string | null | undefined;
2437
+ deployer_address?: string | null | undefined;
2438
+ dstack_kms_address?: string | null | undefined;
2439
+ dstack_app_address?: string | null | undefined;
2440
+ rpc_endpoint?: string | null | undefined;
2441
+ }, {
2442
+ chain_id?: number | null | undefined;
2443
+ encrypted_env_pubkey?: string | null | undefined;
2444
+ deployer_address?: string | null | undefined;
2445
+ dstack_kms_address?: string | null | undefined;
2446
+ dstack_app_address?: string | null | undefined;
2447
+ rpc_endpoint?: string | null | undefined;
2448
+ }>>>;
2449
+ status: z.ZodString;
2450
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2451
+ target: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2452
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2453
+ correlation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2454
+ }, "strip", z.ZodTypeAny, {
2455
+ target?: string | null | undefined;
2456
+ started_at?: string | null | undefined;
2457
+ correlation_id?: string | null | undefined;
2458
+ }, {
2459
+ target?: string | null | undefined;
2460
+ started_at?: string | null | undefined;
2461
+ correlation_id?: string | null | undefined;
2462
+ }>>>;
2463
+ compose_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2464
+ gateway: z.ZodObject<{
2465
+ base_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2466
+ cname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2467
+ }, "strip", z.ZodTypeAny, {
2468
+ base_domain?: string | null | undefined;
2469
+ cname?: string | null | undefined;
2470
+ }, {
2471
+ base_domain?: string | null | undefined;
2472
+ cname?: string | null | undefined;
2473
+ }>;
2474
+ services: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>>;
2475
+ endpoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2476
+ app: z.ZodString;
2477
+ instance: z.ZodString;
2478
+ }, "strip", z.ZodTypeAny, {
2479
+ app: string;
2480
+ instance: string;
2481
+ }, {
2482
+ app: string;
2483
+ instance: string;
2484
+ }>, "many">>>;
2485
+ public_logs: z.ZodOptional<z.ZodBoolean>;
2486
+ public_sysinfo: z.ZodOptional<z.ZodBoolean>;
2487
+ public_tcbinfo: z.ZodOptional<z.ZodBoolean>;
2488
+ gateway_enabled: z.ZodOptional<z.ZodBoolean>;
2489
+ secure_time: z.ZodOptional<z.ZodBoolean>;
2490
+ storage_fs: z.ZodOptional<z.ZodString>;
2491
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2492
+ object_type: z.ZodLiteral<"workspace">;
2493
+ id: z.ZodString;
2494
+ name: z.ZodString;
2495
+ slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2496
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2497
+ }, "strip", z.ZodTypeAny, {
2498
+ name: string;
2499
+ id: string;
2500
+ object_type: "workspace";
2501
+ slug?: string | null | undefined;
2502
+ avatar_url?: string | null | undefined;
2503
+ }, {
2504
+ name: string;
2505
+ id: string;
2506
+ object_type: "workspace";
2507
+ slug?: string | null | undefined;
2508
+ avatar_url?: string | null | undefined;
2509
+ }>>>;
2510
+ creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2511
+ object_type: z.ZodLiteral<"user">;
2512
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2513
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2514
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2515
+ }, "strip", z.ZodTypeAny, {
2516
+ object_type: "user";
2517
+ username?: string | null | undefined;
2518
+ id?: string | null | undefined;
2519
+ avatar_url?: string | null | undefined;
2520
+ }, {
2521
+ object_type: "user";
2522
+ username?: string | null | undefined;
2523
+ id?: string | null | undefined;
2524
+ avatar_url?: string | null | undefined;
2525
+ }>>>;
2526
+ }, "strip", z.ZodTypeAny, {
2527
+ status: string;
2528
+ name: string;
2529
+ id: string;
2530
+ resource: {
2531
+ vcpu?: number | null | undefined;
2532
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
2533
+ instance_type?: string | null | undefined;
2534
+ memory_in_gb?: number | null | undefined;
2535
+ disk_in_gb?: number | null | undefined;
2536
+ gpus?: number | null | undefined;
2537
+ compute_billing_price?: string | null | undefined;
2538
+ };
2539
+ gateway: {
2540
+ base_domain?: string | null | undefined;
2541
+ cname?: string | null | undefined;
2542
+ };
2543
+ services: Record<string, any>[];
2544
+ workspace?: {
2545
+ name: string;
2546
+ id: string;
2547
+ object_type: "workspace";
2548
+ slug?: string | null | undefined;
2549
+ avatar_url?: string | null | undefined;
2550
+ } | null | undefined;
2551
+ app_id?: string | null | undefined;
2552
+ kms_info?: {
2553
+ chain_id?: number | null | undefined;
2554
+ encrypted_env_pubkey?: string | null | undefined;
2555
+ deployer_address?: string | null | undefined;
2556
+ dstack_kms_address?: string | null | undefined;
2557
+ dstack_app_address?: string | null | undefined;
2558
+ rpc_endpoint?: string | null | undefined;
2559
+ } | null | undefined;
2560
+ vm_uuid?: string | null | undefined;
2561
+ public_sysinfo?: boolean | undefined;
2562
+ public_logs?: boolean | undefined;
2563
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
2564
+ node_info?: {
2565
+ object_type: "node";
2566
+ status?: string | null | undefined;
2567
+ name?: string | null | undefined;
2568
+ version?: string | null | undefined;
2569
+ id?: number | null | undefined;
2570
+ region?: string | null | undefined;
2571
+ device_id?: string | null | undefined;
2572
+ ppid?: string | null | undefined;
2573
+ } | null | undefined;
2574
+ os?: {
2575
+ name?: string | null | undefined;
2576
+ version?: string | null | undefined;
2577
+ is_dev?: boolean | null | undefined;
2578
+ os_image_hash?: string | null | undefined;
2579
+ } | null | undefined;
2580
+ progress?: {
2581
+ target?: string | null | undefined;
2582
+ started_at?: string | null | undefined;
2583
+ correlation_id?: string | null | undefined;
2584
+ } | null | undefined;
2585
+ compose_hash?: string | null | undefined;
2586
+ endpoints?: {
2587
+ app: string;
2588
+ instance: string;
2589
+ }[] | null | undefined;
2590
+ public_tcbinfo?: boolean | undefined;
2591
+ gateway_enabled?: boolean | undefined;
2592
+ secure_time?: boolean | undefined;
2593
+ storage_fs?: string | undefined;
2594
+ creator?: {
2595
+ object_type: "user";
2596
+ username?: string | null | undefined;
2597
+ id?: string | null | undefined;
2598
+ avatar_url?: string | null | undefined;
2599
+ } | null | undefined;
2600
+ }, {
2601
+ status: string;
2602
+ name: string;
2603
+ id: string;
2604
+ resource: {
2605
+ vcpu?: number | null | undefined;
2606
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
2607
+ instance_type?: string | null | undefined;
2608
+ memory_in_gb?: number | null | undefined;
2609
+ disk_in_gb?: number | null | undefined;
2610
+ gpus?: number | null | undefined;
2611
+ compute_billing_price?: string | null | undefined;
2612
+ };
2613
+ gateway: {
2614
+ base_domain?: string | null | undefined;
2615
+ cname?: string | null | undefined;
2616
+ };
2617
+ workspace?: {
2618
+ name: string;
2619
+ id: string;
2620
+ object_type: "workspace";
2621
+ slug?: string | null | undefined;
2622
+ avatar_url?: string | null | undefined;
2623
+ } | null | undefined;
2624
+ app_id?: string | null | undefined;
2625
+ kms_info?: {
2626
+ chain_id?: number | null | undefined;
2627
+ encrypted_env_pubkey?: string | null | undefined;
2628
+ deployer_address?: string | null | undefined;
2629
+ dstack_kms_address?: string | null | undefined;
2630
+ dstack_app_address?: string | null | undefined;
2631
+ rpc_endpoint?: string | null | undefined;
2632
+ } | null | undefined;
2633
+ vm_uuid?: string | null | undefined;
2634
+ public_sysinfo?: boolean | undefined;
2635
+ public_logs?: boolean | undefined;
2636
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
2637
+ node_info?: {
2638
+ object_type: "node";
2639
+ status?: string | null | undefined;
2640
+ name?: string | null | undefined;
2641
+ version?: string | null | undefined;
2642
+ id?: number | null | undefined;
2643
+ region?: string | null | undefined;
2644
+ device_id?: string | null | undefined;
2645
+ ppid?: string | null | undefined;
2646
+ } | null | undefined;
2647
+ os?: {
2648
+ name?: string | null | undefined;
2649
+ version?: string | null | undefined;
2650
+ is_dev?: boolean | null | undefined;
2651
+ os_image_hash?: string | null | undefined;
2652
+ } | null | undefined;
2653
+ progress?: {
2654
+ target?: string | null | undefined;
2655
+ started_at?: string | null | undefined;
2656
+ correlation_id?: string | null | undefined;
2657
+ } | null | undefined;
2658
+ compose_hash?: string | null | undefined;
2659
+ services?: Record<string, any>[] | undefined;
2660
+ endpoints?: {
2661
+ app: string;
2662
+ instance: string;
2663
+ }[] | null | undefined;
2664
+ public_tcbinfo?: boolean | undefined;
2665
+ gateway_enabled?: boolean | undefined;
2666
+ secure_time?: boolean | undefined;
2667
+ storage_fs?: string | undefined;
2668
+ creator?: {
2669
+ object_type: "user";
2670
+ username?: string | null | undefined;
2671
+ id?: string | null | undefined;
2672
+ avatar_url?: string | null | undefined;
2673
+ } | null | undefined;
2674
+ }>, "many">>;
2675
+ cvm_count: z.ZodDefault<z.ZodNumber>;
2676
+ }, "strip", z.ZodTypeAny, {
2677
+ name: string;
2678
+ id: string;
2679
+ app_id: string;
2680
+ kms_type: string;
2681
+ created_at: string;
2682
+ cvms: {
2683
+ status: string;
2684
+ name: string;
2685
+ id: string;
2686
+ resource: {
2687
+ vcpu?: number | null | undefined;
2688
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
2689
+ instance_type?: string | null | undefined;
2690
+ memory_in_gb?: number | null | undefined;
2691
+ disk_in_gb?: number | null | undefined;
2692
+ gpus?: number | null | undefined;
2693
+ compute_billing_price?: string | null | undefined;
2694
+ };
2695
+ gateway: {
2696
+ base_domain?: string | null | undefined;
2697
+ cname?: string | null | undefined;
2698
+ };
2699
+ services: Record<string, any>[];
2700
+ workspace?: {
2701
+ name: string;
2702
+ id: string;
2703
+ object_type: "workspace";
2704
+ slug?: string | null | undefined;
2705
+ avatar_url?: string | null | undefined;
2706
+ } | null | undefined;
2707
+ app_id?: string | null | undefined;
2708
+ kms_info?: {
2709
+ chain_id?: number | null | undefined;
2710
+ encrypted_env_pubkey?: string | null | undefined;
2711
+ deployer_address?: string | null | undefined;
2712
+ dstack_kms_address?: string | null | undefined;
2713
+ dstack_app_address?: string | null | undefined;
2714
+ rpc_endpoint?: string | null | undefined;
2715
+ } | null | undefined;
2716
+ vm_uuid?: string | null | undefined;
2717
+ public_sysinfo?: boolean | undefined;
2718
+ public_logs?: boolean | undefined;
2719
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
2720
+ node_info?: {
2721
+ object_type: "node";
2722
+ status?: string | null | undefined;
2723
+ name?: string | null | undefined;
2724
+ version?: string | null | undefined;
2725
+ id?: number | null | undefined;
2726
+ region?: string | null | undefined;
2727
+ device_id?: string | null | undefined;
2728
+ ppid?: string | null | undefined;
2729
+ } | null | undefined;
2730
+ os?: {
2731
+ name?: string | null | undefined;
2732
+ version?: string | null | undefined;
2733
+ is_dev?: boolean | null | undefined;
2734
+ os_image_hash?: string | null | undefined;
2735
+ } | null | undefined;
2736
+ progress?: {
2737
+ target?: string | null | undefined;
2738
+ started_at?: string | null | undefined;
2739
+ correlation_id?: string | null | undefined;
2740
+ } | null | undefined;
2741
+ compose_hash?: string | null | undefined;
2742
+ endpoints?: {
2743
+ app: string;
2744
+ instance: string;
2745
+ }[] | null | undefined;
2746
+ public_tcbinfo?: boolean | undefined;
2747
+ gateway_enabled?: boolean | undefined;
2748
+ secure_time?: boolean | undefined;
2749
+ storage_fs?: string | undefined;
2750
+ creator?: {
2751
+ object_type: "user";
2752
+ username?: string | null | undefined;
2753
+ id?: string | null | undefined;
2754
+ avatar_url?: string | null | undefined;
2755
+ } | null | undefined;
2756
+ }[];
2757
+ cvm_count: number;
2758
+ app_provision_type?: string | null | undefined;
2759
+ app_icon_url?: string | null | undefined;
2760
+ current_cvm?: {
2761
+ status: string;
2762
+ name: string;
2763
+ id: string;
2764
+ resource: {
2765
+ vcpu?: number | null | undefined;
2766
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
2767
+ instance_type?: string | null | undefined;
2768
+ memory_in_gb?: number | null | undefined;
2769
+ disk_in_gb?: number | null | undefined;
2770
+ gpus?: number | null | undefined;
2771
+ compute_billing_price?: string | null | undefined;
2772
+ };
2773
+ gateway: {
2774
+ base_domain?: string | null | undefined;
2775
+ cname?: string | null | undefined;
2776
+ };
2777
+ services: Record<string, any>[];
2778
+ workspace?: {
2779
+ name: string;
2780
+ id: string;
2781
+ object_type: "workspace";
2782
+ slug?: string | null | undefined;
2783
+ avatar_url?: string | null | undefined;
2784
+ } | null | undefined;
2785
+ app_id?: string | null | undefined;
2786
+ kms_info?: {
2787
+ chain_id?: number | null | undefined;
2788
+ encrypted_env_pubkey?: string | null | undefined;
2789
+ deployer_address?: string | null | undefined;
2790
+ dstack_kms_address?: string | null | undefined;
2791
+ dstack_app_address?: string | null | undefined;
2792
+ rpc_endpoint?: string | null | undefined;
2793
+ } | null | undefined;
2794
+ vm_uuid?: string | null | undefined;
2795
+ public_sysinfo?: boolean | undefined;
2796
+ public_logs?: boolean | undefined;
2797
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
2798
+ node_info?: {
2799
+ object_type: "node";
2800
+ status?: string | null | undefined;
2801
+ name?: string | null | undefined;
2802
+ version?: string | null | undefined;
2803
+ id?: number | null | undefined;
2804
+ region?: string | null | undefined;
2805
+ device_id?: string | null | undefined;
2806
+ ppid?: string | null | undefined;
2807
+ } | null | undefined;
2808
+ os?: {
2809
+ name?: string | null | undefined;
2810
+ version?: string | null | undefined;
2811
+ is_dev?: boolean | null | undefined;
2812
+ os_image_hash?: string | null | undefined;
2813
+ } | null | undefined;
2814
+ progress?: {
2815
+ target?: string | null | undefined;
2816
+ started_at?: string | null | undefined;
2817
+ correlation_id?: string | null | undefined;
2818
+ } | null | undefined;
2819
+ compose_hash?: string | null | undefined;
2820
+ endpoints?: {
2821
+ app: string;
2822
+ instance: string;
2823
+ }[] | null | undefined;
2824
+ public_tcbinfo?: boolean | undefined;
2825
+ gateway_enabled?: boolean | undefined;
2826
+ secure_time?: boolean | undefined;
2827
+ storage_fs?: string | undefined;
2828
+ creator?: {
2829
+ object_type: "user";
2830
+ username?: string | null | undefined;
2831
+ id?: string | null | undefined;
2832
+ avatar_url?: string | null | undefined;
2833
+ } | null | undefined;
2834
+ } | null | undefined;
2835
+ }, {
2836
+ name: string;
2837
+ id: string;
2838
+ app_id: string;
2839
+ kms_type: string;
2840
+ created_at: string;
2841
+ app_provision_type?: string | null | undefined;
2842
+ app_icon_url?: string | null | undefined;
2843
+ current_cvm?: {
2844
+ status: string;
2845
+ name: string;
2846
+ id: string;
2847
+ resource: {
2848
+ vcpu?: number | null | undefined;
2849
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
2850
+ instance_type?: string | null | undefined;
2851
+ memory_in_gb?: number | null | undefined;
2852
+ disk_in_gb?: number | null | undefined;
2853
+ gpus?: number | null | undefined;
2854
+ compute_billing_price?: string | null | undefined;
2855
+ };
2856
+ gateway: {
2857
+ base_domain?: string | null | undefined;
2858
+ cname?: string | null | undefined;
2859
+ };
2860
+ workspace?: {
2861
+ name: string;
2862
+ id: string;
2863
+ object_type: "workspace";
2864
+ slug?: string | null | undefined;
2865
+ avatar_url?: string | null | undefined;
2866
+ } | null | undefined;
2867
+ app_id?: string | null | undefined;
2868
+ kms_info?: {
2869
+ chain_id?: number | null | undefined;
2870
+ encrypted_env_pubkey?: string | null | undefined;
2871
+ deployer_address?: string | null | undefined;
2872
+ dstack_kms_address?: string | null | undefined;
2873
+ dstack_app_address?: string | null | undefined;
2874
+ rpc_endpoint?: string | null | undefined;
2875
+ } | null | undefined;
2876
+ vm_uuid?: string | null | undefined;
2877
+ public_sysinfo?: boolean | undefined;
2878
+ public_logs?: boolean | undefined;
2879
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
2880
+ node_info?: {
2881
+ object_type: "node";
2882
+ status?: string | null | undefined;
2883
+ name?: string | null | undefined;
2884
+ version?: string | null | undefined;
2885
+ id?: number | null | undefined;
2886
+ region?: string | null | undefined;
2887
+ device_id?: string | null | undefined;
2888
+ ppid?: string | null | undefined;
2889
+ } | null | undefined;
2890
+ os?: {
2891
+ name?: string | null | undefined;
2892
+ version?: string | null | undefined;
2893
+ is_dev?: boolean | null | undefined;
2894
+ os_image_hash?: string | null | undefined;
2895
+ } | null | undefined;
2896
+ progress?: {
2897
+ target?: string | null | undefined;
2898
+ started_at?: string | null | undefined;
2899
+ correlation_id?: string | null | undefined;
2900
+ } | null | undefined;
2901
+ compose_hash?: string | null | undefined;
2902
+ services?: Record<string, any>[] | undefined;
2903
+ endpoints?: {
2904
+ app: string;
2905
+ instance: string;
2906
+ }[] | null | undefined;
2907
+ public_tcbinfo?: boolean | undefined;
2908
+ gateway_enabled?: boolean | undefined;
2909
+ secure_time?: boolean | undefined;
2910
+ storage_fs?: string | undefined;
2911
+ creator?: {
2912
+ object_type: "user";
2913
+ username?: string | null | undefined;
2914
+ id?: string | null | undefined;
2915
+ avatar_url?: string | null | undefined;
2916
+ } | null | undefined;
2917
+ } | null | undefined;
2918
+ cvms?: {
2919
+ status: string;
2920
+ name: string;
2921
+ id: string;
2922
+ resource: {
2923
+ vcpu?: number | null | undefined;
2924
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
2925
+ instance_type?: string | null | undefined;
2926
+ memory_in_gb?: number | null | undefined;
2927
+ disk_in_gb?: number | null | undefined;
2928
+ gpus?: number | null | undefined;
2929
+ compute_billing_price?: string | null | undefined;
2930
+ };
2931
+ gateway: {
2932
+ base_domain?: string | null | undefined;
2933
+ cname?: string | null | undefined;
2934
+ };
2935
+ workspace?: {
2936
+ name: string;
2937
+ id: string;
2938
+ object_type: "workspace";
2939
+ slug?: string | null | undefined;
2940
+ avatar_url?: string | null | undefined;
2941
+ } | null | undefined;
2942
+ app_id?: string | null | undefined;
2943
+ kms_info?: {
2944
+ chain_id?: number | null | undefined;
2945
+ encrypted_env_pubkey?: string | null | undefined;
2946
+ deployer_address?: string | null | undefined;
2947
+ dstack_kms_address?: string | null | undefined;
2948
+ dstack_app_address?: string | null | undefined;
2949
+ rpc_endpoint?: string | null | undefined;
2950
+ } | null | undefined;
2951
+ vm_uuid?: string | null | undefined;
2952
+ public_sysinfo?: boolean | undefined;
2953
+ public_logs?: boolean | undefined;
2954
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
2955
+ node_info?: {
2956
+ object_type: "node";
2957
+ status?: string | null | undefined;
2958
+ name?: string | null | undefined;
2959
+ version?: string | null | undefined;
2960
+ id?: number | null | undefined;
2961
+ region?: string | null | undefined;
2962
+ device_id?: string | null | undefined;
2963
+ ppid?: string | null | undefined;
2964
+ } | null | undefined;
2965
+ os?: {
2966
+ name?: string | null | undefined;
2967
+ version?: string | null | undefined;
2968
+ is_dev?: boolean | null | undefined;
2969
+ os_image_hash?: string | null | undefined;
2970
+ } | null | undefined;
2971
+ progress?: {
2972
+ target?: string | null | undefined;
2973
+ started_at?: string | null | undefined;
2974
+ correlation_id?: string | null | undefined;
2975
+ } | null | undefined;
2976
+ compose_hash?: string | null | undefined;
2977
+ services?: Record<string, any>[] | undefined;
2978
+ endpoints?: {
2979
+ app: string;
2980
+ instance: string;
2981
+ }[] | null | undefined;
2982
+ public_tcbinfo?: boolean | undefined;
2983
+ gateway_enabled?: boolean | undefined;
2984
+ secure_time?: boolean | undefined;
2985
+ storage_fs?: string | undefined;
2986
+ creator?: {
2987
+ object_type: "user";
2988
+ username?: string | null | undefined;
2989
+ id?: string | null | undefined;
2990
+ avatar_url?: string | null | undefined;
2991
+ } | null | undefined;
2992
+ }[] | undefined;
2993
+ cvm_count?: number | undefined;
2994
+ }>, z.ZodObject<{
2995
+ id: z.ZodOptional<z.ZodNull>;
2996
+ app_id: z.ZodString;
2997
+ name: z.ZodOptional<z.ZodNull>;
2998
+ app_provision_type: z.ZodOptional<z.ZodNull>;
2999
+ app_icon_url: z.ZodOptional<z.ZodNull>;
3000
+ created_at: z.ZodOptional<z.ZodNull>;
3001
+ kms_type: z.ZodOptional<z.ZodNull>;
3002
+ current_cvm: z.ZodOptional<z.ZodNull>;
3003
+ cvms: z.ZodOptional<z.ZodNull>;
3004
+ cvm_count: z.ZodOptional<z.ZodNull>;
3005
+ }, "strip", z.ZodTypeAny, {
3006
+ app_id: string;
3007
+ name?: null | undefined;
3008
+ id?: null | undefined;
3009
+ kms_type?: null | undefined;
3010
+ app_provision_type?: null | undefined;
3011
+ app_icon_url?: null | undefined;
3012
+ created_at?: null | undefined;
3013
+ current_cvm?: null | undefined;
3014
+ cvms?: null | undefined;
3015
+ cvm_count?: null | undefined;
3016
+ }, {
3017
+ app_id: string;
3018
+ name?: null | undefined;
3019
+ id?: null | undefined;
3020
+ kms_type?: null | undefined;
3021
+ app_provision_type?: null | undefined;
3022
+ app_icon_url?: null | undefined;
3023
+ created_at?: null | undefined;
3024
+ current_cvm?: null | undefined;
3025
+ cvms?: null | undefined;
3026
+ cvm_count?: null | undefined;
3027
+ }>]>, "many">;
3028
+ page: z.ZodNumber;
3029
+ page_size: z.ZodNumber;
3030
+ total: z.ZodNumber;
3031
+ total_pages: z.ZodNumber;
3032
+ }, "strip", z.ZodTypeAny, {
3033
+ total: number;
3034
+ page: number;
3035
+ page_size: number;
3036
+ dstack_apps: ({
3037
+ name: string;
3038
+ id: string;
3039
+ app_id: string;
3040
+ kms_type: string;
3041
+ created_at: string;
3042
+ cvms: {
3043
+ status: string;
3044
+ name: string;
3045
+ id: string;
3046
+ resource: {
3047
+ vcpu?: number | null | undefined;
3048
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
3049
+ instance_type?: string | null | undefined;
3050
+ memory_in_gb?: number | null | undefined;
3051
+ disk_in_gb?: number | null | undefined;
3052
+ gpus?: number | null | undefined;
3053
+ compute_billing_price?: string | null | undefined;
3054
+ };
3055
+ gateway: {
3056
+ base_domain?: string | null | undefined;
3057
+ cname?: string | null | undefined;
3058
+ };
3059
+ services: Record<string, any>[];
3060
+ workspace?: {
3061
+ name: string;
3062
+ id: string;
3063
+ object_type: "workspace";
3064
+ slug?: string | null | undefined;
3065
+ avatar_url?: string | null | undefined;
3066
+ } | null | undefined;
3067
+ app_id?: string | null | undefined;
3068
+ kms_info?: {
3069
+ chain_id?: number | null | undefined;
3070
+ encrypted_env_pubkey?: string | null | undefined;
3071
+ deployer_address?: string | null | undefined;
3072
+ dstack_kms_address?: string | null | undefined;
3073
+ dstack_app_address?: string | null | undefined;
3074
+ rpc_endpoint?: string | null | undefined;
3075
+ } | null | undefined;
3076
+ vm_uuid?: string | null | undefined;
3077
+ public_sysinfo?: boolean | undefined;
3078
+ public_logs?: boolean | undefined;
3079
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
3080
+ node_info?: {
3081
+ object_type: "node";
3082
+ status?: string | null | undefined;
3083
+ name?: string | null | undefined;
3084
+ version?: string | null | undefined;
3085
+ id?: number | null | undefined;
3086
+ region?: string | null | undefined;
3087
+ device_id?: string | null | undefined;
3088
+ ppid?: string | null | undefined;
3089
+ } | null | undefined;
3090
+ os?: {
3091
+ name?: string | null | undefined;
3092
+ version?: string | null | undefined;
3093
+ is_dev?: boolean | null | undefined;
3094
+ os_image_hash?: string | null | undefined;
3095
+ } | null | undefined;
3096
+ progress?: {
3097
+ target?: string | null | undefined;
3098
+ started_at?: string | null | undefined;
3099
+ correlation_id?: string | null | undefined;
3100
+ } | null | undefined;
3101
+ compose_hash?: string | null | undefined;
3102
+ endpoints?: {
3103
+ app: string;
3104
+ instance: string;
3105
+ }[] | null | undefined;
3106
+ public_tcbinfo?: boolean | undefined;
3107
+ gateway_enabled?: boolean | undefined;
3108
+ secure_time?: boolean | undefined;
3109
+ storage_fs?: string | undefined;
3110
+ creator?: {
3111
+ object_type: "user";
3112
+ username?: string | null | undefined;
3113
+ id?: string | null | undefined;
3114
+ avatar_url?: string | null | undefined;
3115
+ } | null | undefined;
3116
+ }[];
3117
+ cvm_count: number;
3118
+ app_provision_type?: string | null | undefined;
3119
+ app_icon_url?: string | null | undefined;
3120
+ current_cvm?: {
3121
+ status: string;
3122
+ name: string;
3123
+ id: string;
3124
+ resource: {
3125
+ vcpu?: number | null | undefined;
3126
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
3127
+ instance_type?: string | null | undefined;
3128
+ memory_in_gb?: number | null | undefined;
3129
+ disk_in_gb?: number | null | undefined;
3130
+ gpus?: number | null | undefined;
3131
+ compute_billing_price?: string | null | undefined;
3132
+ };
3133
+ gateway: {
3134
+ base_domain?: string | null | undefined;
3135
+ cname?: string | null | undefined;
3136
+ };
3137
+ services: Record<string, any>[];
3138
+ workspace?: {
3139
+ name: string;
3140
+ id: string;
3141
+ object_type: "workspace";
3142
+ slug?: string | null | undefined;
3143
+ avatar_url?: string | null | undefined;
3144
+ } | null | undefined;
3145
+ app_id?: string | null | undefined;
3146
+ kms_info?: {
3147
+ chain_id?: number | null | undefined;
3148
+ encrypted_env_pubkey?: string | null | undefined;
3149
+ deployer_address?: string | null | undefined;
3150
+ dstack_kms_address?: string | null | undefined;
3151
+ dstack_app_address?: string | null | undefined;
3152
+ rpc_endpoint?: string | null | undefined;
3153
+ } | null | undefined;
3154
+ vm_uuid?: string | null | undefined;
3155
+ public_sysinfo?: boolean | undefined;
3156
+ public_logs?: boolean | undefined;
3157
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
3158
+ node_info?: {
3159
+ object_type: "node";
3160
+ status?: string | null | undefined;
3161
+ name?: string | null | undefined;
3162
+ version?: string | null | undefined;
3163
+ id?: number | null | undefined;
3164
+ region?: string | null | undefined;
3165
+ device_id?: string | null | undefined;
3166
+ ppid?: string | null | undefined;
3167
+ } | null | undefined;
3168
+ os?: {
3169
+ name?: string | null | undefined;
3170
+ version?: string | null | undefined;
3171
+ is_dev?: boolean | null | undefined;
3172
+ os_image_hash?: string | null | undefined;
3173
+ } | null | undefined;
3174
+ progress?: {
3175
+ target?: string | null | undefined;
3176
+ started_at?: string | null | undefined;
3177
+ correlation_id?: string | null | undefined;
3178
+ } | null | undefined;
3179
+ compose_hash?: string | null | undefined;
3180
+ endpoints?: {
3181
+ app: string;
3182
+ instance: string;
3183
+ }[] | null | undefined;
3184
+ public_tcbinfo?: boolean | undefined;
3185
+ gateway_enabled?: boolean | undefined;
3186
+ secure_time?: boolean | undefined;
3187
+ storage_fs?: string | undefined;
3188
+ creator?: {
3189
+ object_type: "user";
3190
+ username?: string | null | undefined;
3191
+ id?: string | null | undefined;
3192
+ avatar_url?: string | null | undefined;
3193
+ } | null | undefined;
3194
+ } | null | undefined;
3195
+ } | {
3196
+ app_id: string;
3197
+ name?: null | undefined;
3198
+ id?: null | undefined;
3199
+ kms_type?: null | undefined;
3200
+ app_provision_type?: null | undefined;
3201
+ app_icon_url?: null | undefined;
3202
+ created_at?: null | undefined;
3203
+ current_cvm?: null | undefined;
3204
+ cvms?: null | undefined;
3205
+ cvm_count?: null | undefined;
3206
+ })[];
3207
+ total_pages: number;
3208
+ }, {
3209
+ total: number;
3210
+ page: number;
3211
+ page_size: number;
3212
+ dstack_apps: ({
3213
+ name: string;
3214
+ id: string;
3215
+ app_id: string;
3216
+ kms_type: string;
3217
+ created_at: string;
3218
+ app_provision_type?: string | null | undefined;
3219
+ app_icon_url?: string | null | undefined;
3220
+ current_cvm?: {
3221
+ status: string;
3222
+ name: string;
3223
+ id: string;
3224
+ resource: {
3225
+ vcpu?: number | null | undefined;
3226
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
3227
+ instance_type?: string | null | undefined;
3228
+ memory_in_gb?: number | null | undefined;
3229
+ disk_in_gb?: number | null | undefined;
3230
+ gpus?: number | null | undefined;
3231
+ compute_billing_price?: string | null | undefined;
3232
+ };
3233
+ gateway: {
3234
+ base_domain?: string | null | undefined;
3235
+ cname?: string | null | undefined;
3236
+ };
3237
+ workspace?: {
3238
+ name: string;
3239
+ id: string;
3240
+ object_type: "workspace";
3241
+ slug?: string | null | undefined;
3242
+ avatar_url?: string | null | undefined;
3243
+ } | null | undefined;
3244
+ app_id?: string | null | undefined;
3245
+ kms_info?: {
3246
+ chain_id?: number | null | undefined;
3247
+ encrypted_env_pubkey?: string | null | undefined;
3248
+ deployer_address?: string | null | undefined;
3249
+ dstack_kms_address?: string | null | undefined;
3250
+ dstack_app_address?: string | null | undefined;
3251
+ rpc_endpoint?: string | null | undefined;
3252
+ } | null | undefined;
3253
+ vm_uuid?: string | null | undefined;
3254
+ public_sysinfo?: boolean | undefined;
3255
+ public_logs?: boolean | undefined;
3256
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
3257
+ node_info?: {
3258
+ object_type: "node";
3259
+ status?: string | null | undefined;
3260
+ name?: string | null | undefined;
3261
+ version?: string | null | undefined;
3262
+ id?: number | null | undefined;
3263
+ region?: string | null | undefined;
3264
+ device_id?: string | null | undefined;
3265
+ ppid?: string | null | undefined;
3266
+ } | null | undefined;
3267
+ os?: {
3268
+ name?: string | null | undefined;
3269
+ version?: string | null | undefined;
3270
+ is_dev?: boolean | null | undefined;
3271
+ os_image_hash?: string | null | undefined;
3272
+ } | null | undefined;
3273
+ progress?: {
3274
+ target?: string | null | undefined;
3275
+ started_at?: string | null | undefined;
3276
+ correlation_id?: string | null | undefined;
3277
+ } | null | undefined;
3278
+ compose_hash?: string | null | undefined;
3279
+ services?: Record<string, any>[] | undefined;
3280
+ endpoints?: {
3281
+ app: string;
3282
+ instance: string;
3283
+ }[] | null | undefined;
3284
+ public_tcbinfo?: boolean | undefined;
3285
+ gateway_enabled?: boolean | undefined;
3286
+ secure_time?: boolean | undefined;
3287
+ storage_fs?: string | undefined;
3288
+ creator?: {
3289
+ object_type: "user";
3290
+ username?: string | null | undefined;
3291
+ id?: string | null | undefined;
3292
+ avatar_url?: string | null | undefined;
3293
+ } | null | undefined;
3294
+ } | null | undefined;
3295
+ cvms?: {
3296
+ status: string;
3297
+ name: string;
3298
+ id: string;
3299
+ resource: {
3300
+ vcpu?: number | null | undefined;
3301
+ billing_period?: "skip" | "hourly" | "monthly" | null | undefined;
3302
+ instance_type?: string | null | undefined;
3303
+ memory_in_gb?: number | null | undefined;
3304
+ disk_in_gb?: number | null | undefined;
3305
+ gpus?: number | null | undefined;
3306
+ compute_billing_price?: string | null | undefined;
3307
+ };
3308
+ gateway: {
3309
+ base_domain?: string | null | undefined;
3310
+ cname?: string | null | undefined;
3311
+ };
3312
+ workspace?: {
3313
+ name: string;
3314
+ id: string;
3315
+ object_type: "workspace";
3316
+ slug?: string | null | undefined;
3317
+ avatar_url?: string | null | undefined;
3318
+ } | null | undefined;
3319
+ app_id?: string | null | undefined;
3320
+ kms_info?: {
3321
+ chain_id?: number | null | undefined;
3322
+ encrypted_env_pubkey?: string | null | undefined;
3323
+ deployer_address?: string | null | undefined;
3324
+ dstack_kms_address?: string | null | undefined;
3325
+ dstack_app_address?: string | null | undefined;
3326
+ rpc_endpoint?: string | null | undefined;
3327
+ } | null | undefined;
3328
+ vm_uuid?: string | null | undefined;
3329
+ public_sysinfo?: boolean | undefined;
3330
+ public_logs?: boolean | undefined;
3331
+ kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
3332
+ node_info?: {
3333
+ object_type: "node";
3334
+ status?: string | null | undefined;
3335
+ name?: string | null | undefined;
3336
+ version?: string | null | undefined;
3337
+ id?: number | null | undefined;
3338
+ region?: string | null | undefined;
3339
+ device_id?: string | null | undefined;
3340
+ ppid?: string | null | undefined;
3341
+ } | null | undefined;
3342
+ os?: {
3343
+ name?: string | null | undefined;
3344
+ version?: string | null | undefined;
3345
+ is_dev?: boolean | null | undefined;
3346
+ os_image_hash?: string | null | undefined;
3347
+ } | null | undefined;
3348
+ progress?: {
3349
+ target?: string | null | undefined;
3350
+ started_at?: string | null | undefined;
3351
+ correlation_id?: string | null | undefined;
3352
+ } | null | undefined;
3353
+ compose_hash?: string | null | undefined;
3354
+ services?: Record<string, any>[] | undefined;
3355
+ endpoints?: {
3356
+ app: string;
3357
+ instance: string;
3358
+ }[] | null | undefined;
3359
+ public_tcbinfo?: boolean | undefined;
3360
+ gateway_enabled?: boolean | undefined;
3361
+ secure_time?: boolean | undefined;
3362
+ storage_fs?: string | undefined;
3363
+ creator?: {
3364
+ object_type: "user";
3365
+ username?: string | null | undefined;
3366
+ id?: string | null | undefined;
3367
+ avatar_url?: string | null | undefined;
3368
+ } | null | undefined;
3369
+ }[] | undefined;
3370
+ cvm_count?: number | undefined;
3371
+ } | {
3372
+ app_id: string;
3373
+ name?: null | undefined;
3374
+ id?: null | undefined;
3375
+ kms_type?: null | undefined;
3376
+ app_provision_type?: null | undefined;
3377
+ app_icon_url?: null | undefined;
3378
+ created_at?: null | undefined;
3379
+ current_cvm?: null | undefined;
3380
+ cvms?: null | undefined;
3381
+ cvm_count?: null | undefined;
3382
+ })[];
3383
+ total_pages: number;
3384
+ }>;
3385
+ export type DstackAppListResponseV20260121 = z.infer<typeof DstackAppListResponseV20260121Schema>;