@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
@@ -1,498 +1,12 @@
1
+ /**
2
+ * CVM internal models (not versioned API responses)
3
+ */
1
4
  import { z } from "zod";
2
- import { type KmsInfo } from "./kms_info";
3
- export declare const VmInfoSchema: z.ZodObject<{
4
- id: z.ZodString;
5
- name: z.ZodString;
6
- status: z.ZodString;
7
- uptime: z.ZodString;
8
- app_url: z.ZodNullable<z.ZodString>;
9
- app_id: z.ZodString;
10
- instance_id: z.ZodNullable<z.ZodString>;
11
- configuration: z.ZodOptional<z.ZodAny>;
12
- exited_at: z.ZodNullable<z.ZodString>;
13
- boot_progress: z.ZodNullable<z.ZodString>;
14
- boot_error: z.ZodNullable<z.ZodString>;
15
- shutdown_progress: z.ZodNullable<z.ZodString>;
16
- image_version: z.ZodNullable<z.ZodString>;
17
- }, "strip", z.ZodTypeAny, {
18
- status: string;
19
- name: string;
20
- id: string;
21
- uptime: string;
22
- app_url: string | null;
23
- app_id: string;
24
- instance_id: string | null;
25
- exited_at: string | null;
26
- boot_progress: string | null;
27
- boot_error: string | null;
28
- shutdown_progress: string | null;
29
- image_version: string | null;
30
- configuration?: any;
31
- }, {
32
- status: string;
33
- name: string;
34
- id: string;
35
- uptime: string;
36
- app_url: string | null;
37
- app_id: string;
38
- instance_id: string | null;
39
- exited_at: string | null;
40
- boot_progress: string | null;
41
- boot_error: string | null;
42
- shutdown_progress: string | null;
43
- image_version: string | null;
44
- configuration?: any;
45
- }>;
46
- export declare const ManagedUserSchema: z.ZodObject<{
47
- id: z.ZodNumber;
48
- username: z.ZodString;
49
- }, "strip", z.ZodTypeAny, {
50
- username: string;
51
- id: number;
52
- }, {
53
- username: string;
54
- id: number;
55
- }>;
56
- export declare const CvmNodeSchema: z.ZodObject<{
57
- id: z.ZodNumber;
58
- name: z.ZodString;
59
- region_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
- }, "strip", z.ZodTypeAny, {
61
- name: string;
62
- id: number;
63
- region_identifier?: string | null | undefined;
64
- }, {
65
- name: string;
66
- id: number;
67
- region_identifier?: string | null | undefined;
68
- }>;
69
- export declare const CvmNetworkUrlsSchema: z.ZodObject<{
70
- app: z.ZodString;
71
- instance: z.ZodString;
72
- }, "strip", z.ZodTypeAny, {
73
- app: string;
74
- instance: string;
75
- }, {
76
- app: string;
77
- instance: string;
78
- }>;
79
- export declare const CvmInfoSchema: z.ZodObject<{
80
- hosted: z.ZodObject<{
81
- id: z.ZodString;
82
- name: z.ZodString;
83
- status: z.ZodString;
84
- uptime: z.ZodString;
85
- app_url: z.ZodNullable<z.ZodString>;
86
- app_id: z.ZodString;
87
- instance_id: z.ZodNullable<z.ZodString>;
88
- configuration: z.ZodOptional<z.ZodAny>;
89
- exited_at: z.ZodNullable<z.ZodString>;
90
- boot_progress: z.ZodNullable<z.ZodString>;
91
- boot_error: z.ZodNullable<z.ZodString>;
92
- shutdown_progress: z.ZodNullable<z.ZodString>;
93
- image_version: z.ZodNullable<z.ZodString>;
94
- }, "strip", z.ZodTypeAny, {
95
- status: string;
96
- name: string;
97
- id: string;
98
- uptime: string;
99
- app_url: string | null;
100
- app_id: string;
101
- instance_id: string | null;
102
- exited_at: string | null;
103
- boot_progress: string | null;
104
- boot_error: string | null;
105
- shutdown_progress: string | null;
106
- image_version: string | null;
107
- configuration?: any;
108
- }, {
109
- status: string;
110
- name: string;
111
- id: string;
112
- uptime: string;
113
- app_url: string | null;
114
- app_id: string;
115
- instance_id: string | null;
116
- exited_at: string | null;
117
- boot_progress: string | null;
118
- boot_error: string | null;
119
- shutdown_progress: string | null;
120
- image_version: string | null;
121
- configuration?: any;
122
- }>;
123
- name: z.ZodString;
124
- managed_user: z.ZodNullable<z.ZodObject<{
125
- id: z.ZodNumber;
126
- username: z.ZodString;
127
- }, "strip", z.ZodTypeAny, {
128
- username: string;
129
- id: number;
130
- }, {
131
- username: string;
132
- id: number;
133
- }>>;
134
- node: z.ZodNullable<z.ZodObject<{
135
- id: z.ZodNumber;
136
- name: z.ZodString;
137
- region_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
- }, "strip", z.ZodTypeAny, {
139
- name: string;
140
- id: number;
141
- region_identifier?: string | null | undefined;
142
- }, {
143
- name: string;
144
- id: number;
145
- region_identifier?: string | null | undefined;
146
- }>>;
147
- listed: z.ZodDefault<z.ZodBoolean>;
148
- status: z.ZodString;
149
- in_progress: z.ZodDefault<z.ZodBoolean>;
150
- dapp_dashboard_url: z.ZodNullable<z.ZodString>;
151
- syslog_endpoint: z.ZodNullable<z.ZodString>;
152
- allow_upgrade: z.ZodDefault<z.ZodBoolean>;
153
- project_id: z.ZodNullable<z.ZodString>;
154
- project_type: z.ZodNullable<z.ZodString>;
155
- billing_period: z.ZodNullable<z.ZodString>;
156
- kms_info: z.ZodNullable<z.ZodEffects<z.ZodObject<{
157
- id: z.ZodString;
158
- slug: z.ZodNullable<z.ZodString>;
159
- url: z.ZodString;
160
- version: z.ZodString;
161
- chain_id: z.ZodNullable<z.ZodNumber>;
162
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
163
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
164
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
165
- id: z.ZodString;
166
- slug: z.ZodNullable<z.ZodString>;
167
- url: z.ZodString;
168
- version: z.ZodString;
169
- chain_id: z.ZodNullable<z.ZodNumber>;
170
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
171
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
172
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
173
- id: z.ZodString;
174
- slug: z.ZodNullable<z.ZodString>;
175
- url: z.ZodString;
176
- version: z.ZodString;
177
- chain_id: z.ZodNullable<z.ZodNumber>;
178
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
179
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
180
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
181
- id: z.ZodString;
182
- slug: z.ZodNullable<z.ZodString>;
183
- url: z.ZodString;
184
- version: z.ZodString;
185
- chain_id: z.ZodNullable<z.ZodNumber>;
186
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
187
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
188
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
189
- id: z.ZodString;
190
- slug: z.ZodNullable<z.ZodString>;
191
- url: z.ZodString;
192
- version: z.ZodString;
193
- chain_id: z.ZodNullable<z.ZodNumber>;
194
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
195
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
196
- }, z.ZodTypeAny, "passthrough">>>;
197
- vcpu: z.ZodNullable<z.ZodNumber>;
198
- memory: z.ZodNullable<z.ZodNumber>;
199
- disk_size: z.ZodNullable<z.ZodNumber>;
200
- gateway_domain: z.ZodNullable<z.ZodString>;
201
- public_urls: z.ZodArray<z.ZodObject<{
202
- app: z.ZodString;
203
- instance: z.ZodString;
204
- }, "strip", z.ZodTypeAny, {
205
- app: string;
206
- instance: string;
207
- }, {
208
- app: string;
209
- instance: string;
210
- }>, "many">;
211
- }, "strip", z.ZodTypeAny, {
212
- status: string;
213
- name: string;
214
- listed: boolean;
215
- vcpu: number | null;
216
- hosted: {
217
- status: string;
218
- name: string;
219
- id: string;
220
- uptime: string;
221
- app_url: string | null;
222
- app_id: string;
223
- instance_id: string | null;
224
- exited_at: string | null;
225
- boot_progress: string | null;
226
- boot_error: string | null;
227
- shutdown_progress: string | null;
228
- image_version: string | null;
229
- configuration?: any;
230
- };
231
- managed_user: {
232
- username: string;
233
- id: number;
234
- } | null;
235
- node: {
236
- name: string;
237
- id: number;
238
- region_identifier?: string | null | undefined;
239
- } | null;
240
- in_progress: boolean;
241
- dapp_dashboard_url: string | null;
242
- syslog_endpoint: string | null;
243
- allow_upgrade: boolean;
244
- project_id: string | null;
245
- project_type: string | null;
246
- billing_period: string | null;
247
- kms_info: z.objectOutputType<{
248
- id: z.ZodString;
249
- slug: z.ZodNullable<z.ZodString>;
250
- url: z.ZodString;
251
- version: z.ZodString;
252
- chain_id: z.ZodNullable<z.ZodNumber>;
253
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
254
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
255
- }, z.ZodTypeAny, "passthrough"> | null;
256
- memory: number | null;
257
- disk_size: number | null;
258
- gateway_domain: string | null;
259
- public_urls: {
260
- app: string;
261
- instance: string;
262
- }[];
263
- }, {
264
- status: string;
265
- name: string;
266
- vcpu: number | null;
267
- hosted: {
268
- status: string;
269
- name: string;
270
- id: string;
271
- uptime: string;
272
- app_url: string | null;
273
- app_id: string;
274
- instance_id: string | null;
275
- exited_at: string | null;
276
- boot_progress: string | null;
277
- boot_error: string | null;
278
- shutdown_progress: string | null;
279
- image_version: string | null;
280
- configuration?: any;
281
- };
282
- managed_user: {
283
- username: string;
284
- id: number;
285
- } | null;
286
- node: {
287
- name: string;
288
- id: number;
289
- region_identifier?: string | null | undefined;
290
- } | null;
291
- dapp_dashboard_url: string | null;
292
- syslog_endpoint: string | null;
293
- project_id: string | null;
294
- project_type: string | null;
295
- billing_period: string | null;
296
- kms_info: z.objectInputType<{
297
- id: z.ZodString;
298
- slug: z.ZodNullable<z.ZodString>;
299
- url: z.ZodString;
300
- version: z.ZodString;
301
- chain_id: z.ZodNullable<z.ZodNumber>;
302
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
303
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
304
- }, z.ZodTypeAny, "passthrough"> | null;
305
- memory: number | null;
306
- disk_size: number | null;
307
- gateway_domain: string | null;
308
- public_urls: {
309
- app: string;
310
- instance: string;
311
- }[];
312
- listed?: boolean | undefined;
313
- in_progress?: boolean | undefined;
314
- allow_upgrade?: boolean | undefined;
315
- }>;
316
- export type CvmInfo = z.infer<typeof CvmInfoSchema>;
317
- export declare const CvmLegacyDetailSchema: z.ZodObject<{
318
- id: z.ZodNumber;
319
- name: z.ZodString;
320
- status: z.ZodString;
321
- in_progress: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
322
- teepod_id: z.ZodNullable<z.ZodNumber>;
323
- teepod: z.ZodNullable<z.ZodOptional<z.ZodObject<{
324
- id: z.ZodNumber;
325
- name: z.ZodString;
326
- region_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
327
- }, "strip", z.ZodTypeAny, {
328
- name: string;
329
- id: number;
330
- region_identifier?: string | null | undefined;
331
- }, {
332
- name: string;
333
- id: number;
334
- region_identifier?: string | null | undefined;
335
- }>>>;
336
- app_id: z.ZodString;
337
- vm_uuid: z.ZodNullable<z.ZodString>;
338
- instance_id: z.ZodNullable<z.ZodString>;
339
- vcpu: z.ZodNumber;
340
- memory: z.ZodNumber;
341
- disk_size: z.ZodNumber;
342
- base_image: z.ZodNullable<z.ZodString>;
343
- encrypted_env_pubkey: z.ZodNullable<z.ZodString>;
344
- listed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
345
- project_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
346
- project_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
347
- public_sysinfo: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
348
- public_logs: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
349
- dapp_dashboard_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
350
- syslog_endpoint: z.ZodNullable<z.ZodOptional<z.ZodString>>;
351
- kms_info: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodObject<{
352
- id: z.ZodString;
353
- slug: z.ZodNullable<z.ZodString>;
354
- url: z.ZodString;
355
- version: z.ZodString;
356
- chain_id: z.ZodNullable<z.ZodNumber>;
357
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
358
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
359
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
360
- id: z.ZodString;
361
- slug: z.ZodNullable<z.ZodString>;
362
- url: z.ZodString;
363
- version: z.ZodString;
364
- chain_id: z.ZodNullable<z.ZodNumber>;
365
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
366
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
367
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
368
- id: z.ZodString;
369
- slug: z.ZodNullable<z.ZodString>;
370
- url: z.ZodString;
371
- version: z.ZodString;
372
- chain_id: z.ZodNullable<z.ZodNumber>;
373
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
374
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
375
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
376
- id: z.ZodString;
377
- slug: z.ZodNullable<z.ZodString>;
378
- url: z.ZodString;
379
- version: z.ZodString;
380
- chain_id: z.ZodNullable<z.ZodNumber>;
381
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
382
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
383
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
384
- id: z.ZodString;
385
- slug: z.ZodNullable<z.ZodString>;
386
- url: z.ZodString;
387
- version: z.ZodString;
388
- chain_id: z.ZodNullable<z.ZodNumber>;
389
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
390
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
391
- }, z.ZodTypeAny, "passthrough">>>>;
392
- contract_address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
393
- deployer_address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
394
- scheduled_delete_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
395
- public_urls: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
396
- app: z.ZodString;
397
- instance: z.ZodString;
398
- }, "strip", z.ZodTypeAny, {
399
- app: string;
400
- instance: string;
401
- }, {
402
- app: string;
403
- instance: string;
404
- }>, "many">>>;
405
- gateway_domain: z.ZodNullable<z.ZodOptional<z.ZodString>>;
406
- }, "strip", z.ZodTypeAny, {
407
- status: string;
408
- name: string;
409
- id: number;
410
- teepod_id: number | null;
411
- listed: boolean;
412
- vcpu: number;
413
- app_id: string;
414
- instance_id: string | null;
415
- in_progress: boolean;
416
- memory: number;
417
- disk_size: number;
418
- public_urls: {
419
- app: string;
420
- instance: string;
421
- }[];
422
- vm_uuid: string | null;
423
- base_image: string | null;
424
- encrypted_env_pubkey: string | null;
425
- public_sysinfo: boolean;
426
- public_logs: boolean;
427
- dapp_dashboard_url?: string | null | undefined;
428
- syslog_endpoint?: string | null | undefined;
429
- project_id?: string | null | undefined;
430
- project_type?: string | null | undefined;
431
- kms_info?: z.objectOutputType<{
432
- id: z.ZodString;
433
- slug: z.ZodNullable<z.ZodString>;
434
- url: z.ZodString;
435
- version: z.ZodString;
436
- chain_id: z.ZodNullable<z.ZodNumber>;
437
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
438
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
439
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
440
- gateway_domain?: string | null | undefined;
441
- teepod?: {
442
- name: string;
443
- id: number;
444
- region_identifier?: string | null | undefined;
445
- } | null | undefined;
446
- contract_address?: string | null | undefined;
447
- deployer_address?: string | null | undefined;
448
- scheduled_delete_at?: string | null | undefined;
449
- }, {
450
- status: string;
451
- name: string;
452
- id: number;
453
- teepod_id: number | null;
454
- vcpu: number;
455
- app_id: string;
456
- instance_id: string | null;
457
- memory: number;
458
- disk_size: number;
459
- vm_uuid: string | null;
460
- base_image: string | null;
461
- encrypted_env_pubkey: string | null;
462
- listed?: boolean | undefined;
463
- in_progress?: boolean | undefined;
464
- dapp_dashboard_url?: string | null | undefined;
465
- syslog_endpoint?: string | null | undefined;
466
- project_id?: string | null | undefined;
467
- project_type?: string | null | undefined;
468
- kms_info?: z.objectInputType<{
469
- id: z.ZodString;
470
- slug: z.ZodNullable<z.ZodString>;
471
- url: z.ZodString;
472
- version: z.ZodString;
473
- chain_id: z.ZodNullable<z.ZodNumber>;
474
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
475
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
476
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
477
- gateway_domain?: string | null | undefined;
478
- public_urls?: {
479
- app: string;
480
- instance: string;
481
- }[] | undefined;
482
- teepod?: {
483
- name: string;
484
- id: number;
485
- region_identifier?: string | null | undefined;
486
- } | null | undefined;
487
- public_sysinfo?: boolean | undefined;
488
- public_logs?: boolean | undefined;
489
- contract_address?: string | null | undefined;
490
- deployer_address?: string | null | undefined;
491
- scheduled_delete_at?: string | null | undefined;
492
- }>;
493
- export type CvmLegacyDetail = z.infer<typeof CvmLegacyDetailSchema> & {
494
- kms_info: KmsInfo;
495
- };
5
+ /**
6
+ * VM schema - matches backend's VM model
7
+ * Used by start/stop/shutdown/restart operations
8
+ * This is an internal model, not a versioned API response
9
+ */
496
10
  export declare const VMSchema: z.ZodObject<{
497
11
  id: z.ZodNumber;
498
12
  name: z.ZodString;
@@ -531,16 +45,16 @@ export declare const VMSchema: z.ZodObject<{
531
45
  status: string;
532
46
  name: string;
533
47
  id: number;
534
- teepod_id: number;
535
- vcpu: number;
536
- created_at: string;
537
48
  app_id: string;
538
49
  instance_id: string | null;
50
+ vcpu: number;
539
51
  memory: number;
540
52
  disk_size: number;
53
+ teepod_id: number;
541
54
  vm_uuid: string | null;
542
55
  base_image: string | null;
543
56
  encrypted_env_pubkey: string | null;
57
+ created_at: string;
544
58
  version?: string | null | undefined;
545
59
  app_url?: string | null | undefined;
546
60
  teepod?: {
@@ -549,24 +63,24 @@ export declare const VMSchema: z.ZodObject<{
549
63
  region_identifier?: string | null | undefined;
550
64
  } | null | undefined;
551
65
  user_id?: number | null | undefined;
66
+ docker_compose_file?: string | null | undefined;
552
67
  manifest_version?: number | null | undefined;
553
68
  runner?: string | null | undefined;
554
- docker_compose_file?: string | null | undefined;
555
69
  features?: string[] | null | undefined;
556
70
  }, {
557
71
  status: string;
558
72
  name: string;
559
73
  id: number;
560
- teepod_id: number;
561
- vcpu: number;
562
- created_at: string;
563
74
  app_id: string;
564
75
  instance_id: string | null;
76
+ vcpu: number;
565
77
  memory: number;
566
78
  disk_size: number;
79
+ teepod_id: number;
567
80
  vm_uuid: string | null;
568
81
  base_image: string | null;
569
82
  encrypted_env_pubkey: string | null;
83
+ created_at: string;
570
84
  version?: string | null | undefined;
571
85
  app_url?: string | null | undefined;
572
86
  teepod?: {
@@ -575,9 +89,9 @@ export declare const VMSchema: z.ZodObject<{
575
89
  region_identifier?: string | null | undefined;
576
90
  } | null | undefined;
577
91
  user_id?: number | null | undefined;
92
+ docker_compose_file?: string | null | undefined;
578
93
  manifest_version?: number | null | undefined;
579
94
  runner?: string | null | undefined;
580
- docker_compose_file?: string | null | undefined;
581
95
  features?: string[] | null | undefined;
582
96
  }>;
583
97
  export type VM = z.infer<typeof VMSchema>;