@phala/cloud 0.2.1-beta.3 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/LICENSE +201 -0
  2. package/dist/actions/apps/get_app_cvms.d.ts +30 -0
  3. package/dist/actions/apps/get_app_info.d.ts +30 -0
  4. package/dist/actions/apps/get_app_list.d.ts +74 -0
  5. package/dist/actions/apps/get_app_revision_detail.d.ts +48 -0
  6. package/dist/actions/apps/get_app_revisions.d.ts +42 -0
  7. package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +7 -7
  8. package/dist/actions/cvms/commit_cvm_provision.d.ts +31 -31
  9. package/dist/actions/cvms/delete_cvm.d.ts +10 -7
  10. package/dist/actions/cvms/get_available_os_images.d.ts +10 -7
  11. package/dist/actions/cvms/get_cvm_attestation.d.ts +10 -7
  12. package/dist/actions/cvms/get_cvm_compose_file.d.ts +18 -15
  13. package/dist/actions/cvms/get_cvm_containers_stats.d.ts +14 -11
  14. package/dist/actions/cvms/get_cvm_docker_compose.d.ts +10 -7
  15. package/dist/actions/cvms/get_cvm_info.d.ts +19 -35
  16. package/dist/actions/cvms/get_cvm_list.d.ts +11 -537
  17. package/dist/actions/cvms/get_cvm_network.d.ts +10 -7
  18. package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +42 -0
  19. package/dist/actions/cvms/get_cvm_state.d.ts +10 -7
  20. package/dist/actions/cvms/get_cvm_stats.d.ts +10 -7
  21. package/dist/actions/cvms/get_cvm_status_batch.d.ts +167 -0
  22. package/dist/actions/cvms/provision_cvm.d.ts +404 -21
  23. package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +32 -32
  24. package/dist/actions/cvms/restart_cvm.d.ts +17 -14
  25. package/dist/actions/cvms/shutdown_cvm.d.ts +18 -15
  26. package/dist/actions/cvms/start_cvm.d.ts +18 -15
  27. package/dist/actions/cvms/stop_cvm.d.ts +18 -15
  28. package/dist/actions/cvms/update_cvm_envs.d.ts +426 -0
  29. package/dist/actions/cvms/update_cvm_resources.d.ts +13 -10
  30. package/dist/actions/cvms/update_cvm_visibility.d.ts +33 -14
  31. package/dist/actions/cvms/update_docker_compose.d.ts +420 -0
  32. package/dist/actions/cvms/update_os_image.d.ts +9 -6
  33. package/dist/actions/cvms/update_prelaunch_script.d.ts +417 -0
  34. package/dist/actions/cvms/watch_cvm_state.d.ts +1 -1
  35. package/dist/actions/get_available_nodes.d.ts +6 -6
  36. package/dist/actions/get_current_user.d.ts +36 -89
  37. package/dist/actions/index.d.ts +14 -2
  38. package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +6 -6
  39. package/dist/actions/kms/get_kms_info.d.ts +6 -6
  40. package/dist/actions/kms/get_kms_list.d.ts +6 -6
  41. package/dist/actions/kms/next_app_ids.d.ts +6 -6
  42. package/dist/actions/list-instance-types.d.ts +16 -16
  43. package/dist/actions/workspaces/get_workspace.d.ts +6 -6
  44. package/dist/actions/workspaces/get_workspace_nodes.d.ts +266 -0
  45. package/dist/actions/workspaces/get_workspace_quotas.d.ts +1169 -0
  46. package/dist/actions/workspaces/list_workspaces.d.ts +6 -6
  47. package/dist/client.d.ts +49 -9
  48. package/dist/create-client.d.ts +87 -36
  49. package/dist/credentials/current_user_v20251028.d.ts +30 -0
  50. package/dist/credentials/current_user_v20260121.d.ts +276 -0
  51. package/dist/credentials/index.d.ts +4 -0
  52. package/dist/index.d.ts +1 -0
  53. package/dist/index.js +1782 -633
  54. package/dist/index.mjs +1693 -626
  55. package/dist/types/app_info_v20251028.d.ts +1266 -0
  56. package/dist/types/app_info_v20260121.d.ts +3293 -0
  57. package/dist/types/app_revision.d.ts +453 -0
  58. package/dist/types/client.d.ts +40 -2
  59. package/dist/types/cvm_id.d.ts +45 -10
  60. package/dist/types/cvm_info.d.ts +16 -502
  61. package/dist/types/cvm_info_v20251028.d.ts +988 -0
  62. package/dist/types/cvm_info_v20260121.d.ts +1264 -0
  63. package/dist/types/index.d.ts +6 -0
  64. package/dist/types/version-mappings.d.ts +38 -0
  65. package/dist/utils/define-action.d.ts +15 -14
  66. package/dist/utils/errors.d.ts +2 -2
  67. package/dist/utils/hostname.d.ts +77 -0
  68. package/dist/utils/index.d.ts +1 -0
  69. package/package.json +2 -2
@@ -0,0 +1,988 @@
1
+ /**
2
+ * CVM Info schemas for API version 2025-10-28
3
+ *
4
+ * This is the legacy format with `node.region_identifier` structure.
5
+ */
6
+ import { z } from "zod";
7
+ export declare const VmInfoV20251028Schema: z.ZodObject<{
8
+ id: z.ZodString;
9
+ name: z.ZodString;
10
+ status: z.ZodString;
11
+ uptime: z.ZodString;
12
+ app_url: z.ZodNullable<z.ZodString>;
13
+ app_id: z.ZodString;
14
+ instance_id: z.ZodNullable<z.ZodString>;
15
+ configuration: z.ZodOptional<z.ZodAny>;
16
+ exited_at: z.ZodNullable<z.ZodString>;
17
+ boot_progress: z.ZodNullable<z.ZodString>;
18
+ boot_error: z.ZodNullable<z.ZodString>;
19
+ shutdown_progress: z.ZodNullable<z.ZodString>;
20
+ image_version: z.ZodNullable<z.ZodString>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ status: string;
23
+ name: string;
24
+ id: string;
25
+ uptime: string;
26
+ app_url: string | null;
27
+ app_id: string;
28
+ instance_id: string | null;
29
+ exited_at: string | null;
30
+ boot_progress: string | null;
31
+ boot_error: string | null;
32
+ shutdown_progress: string | null;
33
+ image_version: string | null;
34
+ configuration?: any;
35
+ }, {
36
+ status: string;
37
+ name: string;
38
+ id: string;
39
+ uptime: string;
40
+ app_url: string | null;
41
+ app_id: string;
42
+ instance_id: string | null;
43
+ exited_at: string | null;
44
+ boot_progress: string | null;
45
+ boot_error: string | null;
46
+ shutdown_progress: string | null;
47
+ image_version: string | null;
48
+ configuration?: any;
49
+ }>;
50
+ export type VmInfoV20251028 = z.infer<typeof VmInfoV20251028Schema>;
51
+ export declare const ManagedUserV20251028Schema: z.ZodObject<{
52
+ id: z.ZodNumber;
53
+ username: z.ZodString;
54
+ }, "strip", z.ZodTypeAny, {
55
+ username: string;
56
+ id: number;
57
+ }, {
58
+ username: string;
59
+ id: number;
60
+ }>;
61
+ export type ManagedUserV20251028 = z.infer<typeof ManagedUserV20251028Schema>;
62
+ export declare const CvmNodeV20251028Schema: z.ZodObject<{
63
+ id: z.ZodNumber;
64
+ name: z.ZodString;
65
+ region_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ name: string;
68
+ id: number;
69
+ region_identifier?: string | null | undefined;
70
+ }, {
71
+ name: string;
72
+ id: number;
73
+ region_identifier?: string | null | undefined;
74
+ }>;
75
+ export type CvmNodeV20251028 = z.infer<typeof CvmNodeV20251028Schema>;
76
+ export declare const MachineInfoV20251028Schema: z.ZodObject<{
77
+ vcpu: z.ZodNumber;
78
+ memory: z.ZodNumber;
79
+ disk_size: z.ZodNumber;
80
+ gpu_count: z.ZodDefault<z.ZodNumber>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ vcpu: number;
83
+ memory: number;
84
+ disk_size: number;
85
+ gpu_count: number;
86
+ }, {
87
+ vcpu: number;
88
+ memory: number;
89
+ disk_size: number;
90
+ gpu_count?: number | undefined;
91
+ }>;
92
+ export type MachineInfoV20251028 = z.infer<typeof MachineInfoV20251028Schema>;
93
+ export declare const CvmNetworkUrlsV20251028Schema: z.ZodObject<{
94
+ app: z.ZodString;
95
+ instance: z.ZodString;
96
+ }, "strip", z.ZodTypeAny, {
97
+ app: string;
98
+ instance: string;
99
+ }, {
100
+ app: string;
101
+ instance: string;
102
+ }>;
103
+ export type CvmNetworkUrlsV20251028 = z.infer<typeof CvmNetworkUrlsV20251028Schema>;
104
+ export declare const CvmInfoV20251028Schema: z.ZodObject<{
105
+ hosted: z.ZodObject<{
106
+ id: z.ZodString;
107
+ name: z.ZodString;
108
+ status: z.ZodString;
109
+ uptime: z.ZodString;
110
+ app_url: z.ZodNullable<z.ZodString>;
111
+ app_id: z.ZodString;
112
+ instance_id: z.ZodNullable<z.ZodString>;
113
+ configuration: z.ZodOptional<z.ZodAny>;
114
+ exited_at: z.ZodNullable<z.ZodString>;
115
+ boot_progress: z.ZodNullable<z.ZodString>;
116
+ boot_error: z.ZodNullable<z.ZodString>;
117
+ shutdown_progress: z.ZodNullable<z.ZodString>;
118
+ image_version: z.ZodNullable<z.ZodString>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ status: string;
121
+ name: string;
122
+ id: string;
123
+ uptime: string;
124
+ app_url: string | null;
125
+ app_id: string;
126
+ instance_id: string | null;
127
+ exited_at: string | null;
128
+ boot_progress: string | null;
129
+ boot_error: string | null;
130
+ shutdown_progress: string | null;
131
+ image_version: string | null;
132
+ configuration?: any;
133
+ }, {
134
+ status: string;
135
+ name: string;
136
+ id: string;
137
+ uptime: string;
138
+ app_url: string | null;
139
+ app_id: string;
140
+ instance_id: string | null;
141
+ exited_at: string | null;
142
+ boot_progress: string | null;
143
+ boot_error: string | null;
144
+ shutdown_progress: string | null;
145
+ image_version: string | null;
146
+ configuration?: any;
147
+ }>;
148
+ name: z.ZodString;
149
+ managed_user: z.ZodNullable<z.ZodObject<{
150
+ id: z.ZodNumber;
151
+ username: z.ZodString;
152
+ }, "strip", z.ZodTypeAny, {
153
+ username: string;
154
+ id: number;
155
+ }, {
156
+ username: string;
157
+ id: number;
158
+ }>>;
159
+ node: z.ZodNullable<z.ZodObject<{
160
+ id: z.ZodNumber;
161
+ name: z.ZodString;
162
+ region_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ name: string;
165
+ id: number;
166
+ region_identifier?: string | null | undefined;
167
+ }, {
168
+ name: string;
169
+ id: number;
170
+ region_identifier?: string | null | undefined;
171
+ }>>;
172
+ listed: z.ZodDefault<z.ZodBoolean>;
173
+ status: z.ZodString;
174
+ in_progress: z.ZodDefault<z.ZodBoolean>;
175
+ dapp_dashboard_url: z.ZodNullable<z.ZodString>;
176
+ syslog_endpoint: z.ZodNullable<z.ZodString>;
177
+ allow_upgrade: z.ZodDefault<z.ZodBoolean>;
178
+ project_id: z.ZodNullable<z.ZodString>;
179
+ project_type: z.ZodNullable<z.ZodString>;
180
+ billing_period: z.ZodNullable<z.ZodString>;
181
+ kms_info: z.ZodNullable<z.ZodEffects<z.ZodObject<{
182
+ id: z.ZodString;
183
+ slug: z.ZodNullable<z.ZodString>;
184
+ url: z.ZodString;
185
+ version: z.ZodString;
186
+ chain_id: z.ZodNullable<z.ZodNumber>;
187
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
188
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
189
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
190
+ id: z.ZodString;
191
+ slug: z.ZodNullable<z.ZodString>;
192
+ url: z.ZodString;
193
+ version: z.ZodString;
194
+ chain_id: z.ZodNullable<z.ZodNumber>;
195
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
196
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
197
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
198
+ id: z.ZodString;
199
+ slug: z.ZodNullable<z.ZodString>;
200
+ url: z.ZodString;
201
+ version: z.ZodString;
202
+ chain_id: z.ZodNullable<z.ZodNumber>;
203
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
204
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
205
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
206
+ id: z.ZodString;
207
+ slug: z.ZodNullable<z.ZodString>;
208
+ url: z.ZodString;
209
+ version: z.ZodString;
210
+ chain_id: z.ZodNullable<z.ZodNumber>;
211
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
212
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
213
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
214
+ id: z.ZodString;
215
+ slug: z.ZodNullable<z.ZodString>;
216
+ url: z.ZodString;
217
+ version: z.ZodString;
218
+ chain_id: z.ZodNullable<z.ZodNumber>;
219
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
220
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
221
+ }, z.ZodTypeAny, "passthrough">>>;
222
+ vcpu: z.ZodNullable<z.ZodNumber>;
223
+ memory: z.ZodNullable<z.ZodNumber>;
224
+ disk_size: z.ZodNullable<z.ZodNumber>;
225
+ gateway_domain: z.ZodNullable<z.ZodString>;
226
+ public_urls: z.ZodArray<z.ZodObject<{
227
+ app: z.ZodString;
228
+ instance: z.ZodString;
229
+ }, "strip", z.ZodTypeAny, {
230
+ app: string;
231
+ instance: string;
232
+ }, {
233
+ app: string;
234
+ instance: string;
235
+ }>, "many">;
236
+ machine_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
237
+ vcpu: z.ZodNumber;
238
+ memory: z.ZodNumber;
239
+ disk_size: z.ZodNumber;
240
+ gpu_count: z.ZodDefault<z.ZodNumber>;
241
+ }, "strip", z.ZodTypeAny, {
242
+ vcpu: number;
243
+ memory: number;
244
+ disk_size: number;
245
+ gpu_count: number;
246
+ }, {
247
+ vcpu: number;
248
+ memory: number;
249
+ disk_size: number;
250
+ gpu_count?: number | undefined;
251
+ }>>>;
252
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
253
+ }, "strip", z.ZodTypeAny, {
254
+ status: string;
255
+ name: string;
256
+ vcpu: number | null;
257
+ memory: number | null;
258
+ disk_size: number | null;
259
+ hosted: {
260
+ status: string;
261
+ name: string;
262
+ id: string;
263
+ uptime: string;
264
+ app_url: string | null;
265
+ app_id: string;
266
+ instance_id: string | null;
267
+ exited_at: string | null;
268
+ boot_progress: string | null;
269
+ boot_error: string | null;
270
+ shutdown_progress: string | null;
271
+ image_version: string | null;
272
+ configuration?: any;
273
+ };
274
+ managed_user: {
275
+ username: string;
276
+ id: number;
277
+ } | null;
278
+ node: {
279
+ name: string;
280
+ id: number;
281
+ region_identifier?: string | null | undefined;
282
+ } | null;
283
+ listed: boolean;
284
+ in_progress: boolean;
285
+ dapp_dashboard_url: string | null;
286
+ syslog_endpoint: string | null;
287
+ allow_upgrade: boolean;
288
+ project_id: string | null;
289
+ project_type: string | null;
290
+ billing_period: string | null;
291
+ kms_info: z.objectOutputType<{
292
+ id: z.ZodString;
293
+ slug: z.ZodNullable<z.ZodString>;
294
+ url: z.ZodString;
295
+ version: z.ZodString;
296
+ chain_id: z.ZodNullable<z.ZodNumber>;
297
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
298
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
299
+ }, z.ZodTypeAny, "passthrough"> | null;
300
+ gateway_domain: string | null;
301
+ public_urls: {
302
+ app: string;
303
+ instance: string;
304
+ }[];
305
+ machine_info?: {
306
+ vcpu: number;
307
+ memory: number;
308
+ disk_size: number;
309
+ gpu_count: number;
310
+ } | null | undefined;
311
+ updated_at?: string | null | undefined;
312
+ }, {
313
+ status: string;
314
+ name: string;
315
+ vcpu: number | null;
316
+ memory: number | null;
317
+ disk_size: number | null;
318
+ hosted: {
319
+ status: string;
320
+ name: string;
321
+ id: string;
322
+ uptime: string;
323
+ app_url: string | null;
324
+ app_id: string;
325
+ instance_id: string | null;
326
+ exited_at: string | null;
327
+ boot_progress: string | null;
328
+ boot_error: string | null;
329
+ shutdown_progress: string | null;
330
+ image_version: string | null;
331
+ configuration?: any;
332
+ };
333
+ managed_user: {
334
+ username: string;
335
+ id: number;
336
+ } | null;
337
+ node: {
338
+ name: string;
339
+ id: number;
340
+ region_identifier?: string | null | undefined;
341
+ } | null;
342
+ dapp_dashboard_url: string | null;
343
+ syslog_endpoint: string | null;
344
+ project_id: string | null;
345
+ project_type: string | null;
346
+ billing_period: string | null;
347
+ kms_info: z.objectInputType<{
348
+ id: z.ZodString;
349
+ slug: z.ZodNullable<z.ZodString>;
350
+ url: z.ZodString;
351
+ version: z.ZodString;
352
+ chain_id: z.ZodNullable<z.ZodNumber>;
353
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
354
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
355
+ }, z.ZodTypeAny, "passthrough"> | null;
356
+ gateway_domain: string | null;
357
+ public_urls: {
358
+ app: string;
359
+ instance: string;
360
+ }[];
361
+ listed?: boolean | undefined;
362
+ in_progress?: boolean | undefined;
363
+ allow_upgrade?: boolean | undefined;
364
+ machine_info?: {
365
+ vcpu: number;
366
+ memory: number;
367
+ disk_size: number;
368
+ gpu_count?: number | undefined;
369
+ } | null | undefined;
370
+ updated_at?: string | null | undefined;
371
+ }>;
372
+ export type CvmInfoV20251028 = z.infer<typeof CvmInfoV20251028Schema>;
373
+ export declare const CvmDetailV20251028Schema: z.ZodObject<{
374
+ id: z.ZodNumber;
375
+ name: z.ZodString;
376
+ status: z.ZodString;
377
+ in_progress: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
378
+ teepod_id: z.ZodNullable<z.ZodNumber>;
379
+ teepod: z.ZodNullable<z.ZodOptional<z.ZodObject<{
380
+ id: z.ZodNumber;
381
+ name: z.ZodString;
382
+ region_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
383
+ }, "strip", z.ZodTypeAny, {
384
+ name: string;
385
+ id: number;
386
+ region_identifier?: string | null | undefined;
387
+ }, {
388
+ name: string;
389
+ id: number;
390
+ region_identifier?: string | null | undefined;
391
+ }>>>;
392
+ app_id: z.ZodString;
393
+ vm_uuid: z.ZodNullable<z.ZodString>;
394
+ instance_id: z.ZodNullable<z.ZodString>;
395
+ vcpu: z.ZodNumber;
396
+ memory: z.ZodNumber;
397
+ disk_size: z.ZodNumber;
398
+ base_image: z.ZodNullable<z.ZodString>;
399
+ encrypted_env_pubkey: z.ZodNullable<z.ZodString>;
400
+ listed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
401
+ project_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
402
+ project_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
403
+ instance_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
404
+ public_sysinfo: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
405
+ public_logs: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
406
+ dapp_dashboard_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
407
+ syslog_endpoint: z.ZodNullable<z.ZodOptional<z.ZodString>>;
408
+ kms_info: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodObject<{
409
+ id: z.ZodString;
410
+ slug: z.ZodNullable<z.ZodString>;
411
+ url: z.ZodString;
412
+ version: z.ZodString;
413
+ chain_id: z.ZodNullable<z.ZodNumber>;
414
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
415
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
416
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
417
+ id: z.ZodString;
418
+ slug: z.ZodNullable<z.ZodString>;
419
+ url: z.ZodString;
420
+ version: z.ZodString;
421
+ chain_id: z.ZodNullable<z.ZodNumber>;
422
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
423
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
424
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
425
+ id: z.ZodString;
426
+ slug: z.ZodNullable<z.ZodString>;
427
+ url: z.ZodString;
428
+ version: z.ZodString;
429
+ chain_id: z.ZodNullable<z.ZodNumber>;
430
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
431
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
432
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
433
+ id: z.ZodString;
434
+ slug: z.ZodNullable<z.ZodString>;
435
+ url: z.ZodString;
436
+ version: z.ZodString;
437
+ chain_id: z.ZodNullable<z.ZodNumber>;
438
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
439
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
440
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
441
+ id: z.ZodString;
442
+ slug: z.ZodNullable<z.ZodString>;
443
+ url: z.ZodString;
444
+ version: z.ZodString;
445
+ chain_id: z.ZodNullable<z.ZodNumber>;
446
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
447
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
448
+ }, z.ZodTypeAny, "passthrough">>>>;
449
+ contract_address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
450
+ deployer_address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
451
+ scheduled_delete_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
452
+ public_urls: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
453
+ app: z.ZodString;
454
+ instance: z.ZodString;
455
+ }, "strip", z.ZodTypeAny, {
456
+ app: string;
457
+ instance: string;
458
+ }, {
459
+ app: string;
460
+ instance: string;
461
+ }>, "many">>>;
462
+ gateway_domain: z.ZodNullable<z.ZodOptional<z.ZodString>>;
463
+ machine_info: z.ZodNullable<z.ZodOptional<z.ZodObject<{
464
+ vcpu: z.ZodNumber;
465
+ memory: z.ZodNumber;
466
+ disk_size: z.ZodNumber;
467
+ gpu_count: z.ZodDefault<z.ZodNumber>;
468
+ }, "strip", z.ZodTypeAny, {
469
+ vcpu: number;
470
+ memory: number;
471
+ disk_size: number;
472
+ gpu_count: number;
473
+ }, {
474
+ vcpu: number;
475
+ memory: number;
476
+ disk_size: number;
477
+ gpu_count?: number | undefined;
478
+ }>>>;
479
+ updated_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
480
+ }, "strip", z.ZodTypeAny, {
481
+ status: string;
482
+ name: string;
483
+ id: number;
484
+ app_id: string;
485
+ instance_id: string | null;
486
+ vcpu: number;
487
+ memory: number;
488
+ disk_size: number;
489
+ listed: boolean;
490
+ in_progress: boolean;
491
+ public_urls: {
492
+ app: string;
493
+ instance: string;
494
+ }[];
495
+ teepod_id: number | null;
496
+ vm_uuid: string | null;
497
+ base_image: string | null;
498
+ encrypted_env_pubkey: string | null;
499
+ public_sysinfo: boolean;
500
+ public_logs: boolean;
501
+ dapp_dashboard_url?: string | null | undefined;
502
+ syslog_endpoint?: string | null | undefined;
503
+ project_id?: string | null | undefined;
504
+ project_type?: string | null | undefined;
505
+ kms_info?: z.objectOutputType<{
506
+ id: z.ZodString;
507
+ slug: z.ZodNullable<z.ZodString>;
508
+ url: z.ZodString;
509
+ version: z.ZodString;
510
+ chain_id: z.ZodNullable<z.ZodNumber>;
511
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
512
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
513
+ }, z.ZodTypeAny, "passthrough"> | null | undefined;
514
+ gateway_domain?: string | null | undefined;
515
+ machine_info?: {
516
+ vcpu: number;
517
+ memory: number;
518
+ disk_size: number;
519
+ gpu_count: number;
520
+ } | null | undefined;
521
+ updated_at?: string | null | undefined;
522
+ teepod?: {
523
+ name: string;
524
+ id: number;
525
+ region_identifier?: string | null | undefined;
526
+ } | null | undefined;
527
+ instance_type?: string | null | undefined;
528
+ contract_address?: string | null | undefined;
529
+ deployer_address?: string | null | undefined;
530
+ scheduled_delete_at?: string | null | undefined;
531
+ }, {
532
+ status: string;
533
+ name: string;
534
+ id: number;
535
+ app_id: string;
536
+ instance_id: string | null;
537
+ vcpu: number;
538
+ memory: number;
539
+ disk_size: number;
540
+ teepod_id: number | null;
541
+ vm_uuid: string | null;
542
+ base_image: string | null;
543
+ encrypted_env_pubkey: string | null;
544
+ listed?: boolean | undefined;
545
+ in_progress?: boolean | undefined;
546
+ dapp_dashboard_url?: string | null | undefined;
547
+ syslog_endpoint?: string | null | undefined;
548
+ project_id?: string | null | undefined;
549
+ project_type?: string | null | undefined;
550
+ kms_info?: z.objectInputType<{
551
+ id: z.ZodString;
552
+ slug: z.ZodNullable<z.ZodString>;
553
+ url: z.ZodString;
554
+ version: z.ZodString;
555
+ chain_id: z.ZodNullable<z.ZodNumber>;
556
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
557
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
558
+ }, z.ZodTypeAny, "passthrough"> | null | undefined;
559
+ gateway_domain?: string | null | undefined;
560
+ public_urls?: {
561
+ app: string;
562
+ instance: string;
563
+ }[] | undefined;
564
+ machine_info?: {
565
+ vcpu: number;
566
+ memory: number;
567
+ disk_size: number;
568
+ gpu_count?: number | undefined;
569
+ } | null | undefined;
570
+ updated_at?: string | null | undefined;
571
+ teepod?: {
572
+ name: string;
573
+ id: number;
574
+ region_identifier?: string | null | undefined;
575
+ } | null | undefined;
576
+ instance_type?: string | null | undefined;
577
+ public_sysinfo?: boolean | undefined;
578
+ public_logs?: boolean | undefined;
579
+ contract_address?: string | null | undefined;
580
+ deployer_address?: string | null | undefined;
581
+ scheduled_delete_at?: string | null | undefined;
582
+ }>;
583
+ export type CvmDetailV20251028 = z.infer<typeof CvmDetailV20251028Schema>;
584
+ export declare const PaginatedCvmInfosV20251028Schema: z.ZodObject<{
585
+ items: z.ZodArray<z.ZodObject<{
586
+ hosted: z.ZodObject<{
587
+ id: z.ZodString;
588
+ name: z.ZodString;
589
+ status: z.ZodString;
590
+ uptime: z.ZodString;
591
+ app_url: z.ZodNullable<z.ZodString>;
592
+ app_id: z.ZodString;
593
+ instance_id: z.ZodNullable<z.ZodString>;
594
+ configuration: z.ZodOptional<z.ZodAny>;
595
+ exited_at: z.ZodNullable<z.ZodString>;
596
+ boot_progress: z.ZodNullable<z.ZodString>;
597
+ boot_error: z.ZodNullable<z.ZodString>;
598
+ shutdown_progress: z.ZodNullable<z.ZodString>;
599
+ image_version: z.ZodNullable<z.ZodString>;
600
+ }, "strip", z.ZodTypeAny, {
601
+ status: string;
602
+ name: string;
603
+ id: string;
604
+ uptime: string;
605
+ app_url: string | null;
606
+ app_id: string;
607
+ instance_id: string | null;
608
+ exited_at: string | null;
609
+ boot_progress: string | null;
610
+ boot_error: string | null;
611
+ shutdown_progress: string | null;
612
+ image_version: string | null;
613
+ configuration?: any;
614
+ }, {
615
+ status: string;
616
+ name: string;
617
+ id: string;
618
+ uptime: string;
619
+ app_url: string | null;
620
+ app_id: string;
621
+ instance_id: string | null;
622
+ exited_at: string | null;
623
+ boot_progress: string | null;
624
+ boot_error: string | null;
625
+ shutdown_progress: string | null;
626
+ image_version: string | null;
627
+ configuration?: any;
628
+ }>;
629
+ name: z.ZodString;
630
+ managed_user: z.ZodNullable<z.ZodObject<{
631
+ id: z.ZodNumber;
632
+ username: z.ZodString;
633
+ }, "strip", z.ZodTypeAny, {
634
+ username: string;
635
+ id: number;
636
+ }, {
637
+ username: string;
638
+ id: number;
639
+ }>>;
640
+ node: z.ZodNullable<z.ZodObject<{
641
+ id: z.ZodNumber;
642
+ name: z.ZodString;
643
+ region_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
644
+ }, "strip", z.ZodTypeAny, {
645
+ name: string;
646
+ id: number;
647
+ region_identifier?: string | null | undefined;
648
+ }, {
649
+ name: string;
650
+ id: number;
651
+ region_identifier?: string | null | undefined;
652
+ }>>;
653
+ listed: z.ZodDefault<z.ZodBoolean>;
654
+ status: z.ZodString;
655
+ in_progress: z.ZodDefault<z.ZodBoolean>;
656
+ dapp_dashboard_url: z.ZodNullable<z.ZodString>;
657
+ syslog_endpoint: z.ZodNullable<z.ZodString>;
658
+ allow_upgrade: z.ZodDefault<z.ZodBoolean>;
659
+ project_id: z.ZodNullable<z.ZodString>;
660
+ project_type: z.ZodNullable<z.ZodString>;
661
+ billing_period: z.ZodNullable<z.ZodString>;
662
+ kms_info: z.ZodNullable<z.ZodEffects<z.ZodObject<{
663
+ id: z.ZodString;
664
+ slug: z.ZodNullable<z.ZodString>;
665
+ url: z.ZodString;
666
+ version: z.ZodString;
667
+ chain_id: z.ZodNullable<z.ZodNumber>;
668
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
669
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
670
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
671
+ id: z.ZodString;
672
+ slug: z.ZodNullable<z.ZodString>;
673
+ url: z.ZodString;
674
+ version: z.ZodString;
675
+ chain_id: z.ZodNullable<z.ZodNumber>;
676
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
677
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
678
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
679
+ id: z.ZodString;
680
+ slug: z.ZodNullable<z.ZodString>;
681
+ url: z.ZodString;
682
+ version: z.ZodString;
683
+ chain_id: z.ZodNullable<z.ZodNumber>;
684
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
685
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
686
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
687
+ id: z.ZodString;
688
+ slug: z.ZodNullable<z.ZodString>;
689
+ url: z.ZodString;
690
+ version: z.ZodString;
691
+ chain_id: z.ZodNullable<z.ZodNumber>;
692
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
693
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
694
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
695
+ id: z.ZodString;
696
+ slug: z.ZodNullable<z.ZodString>;
697
+ url: z.ZodString;
698
+ version: z.ZodString;
699
+ chain_id: z.ZodNullable<z.ZodNumber>;
700
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
701
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
702
+ }, z.ZodTypeAny, "passthrough">>>;
703
+ vcpu: z.ZodNullable<z.ZodNumber>;
704
+ memory: z.ZodNullable<z.ZodNumber>;
705
+ disk_size: z.ZodNullable<z.ZodNumber>;
706
+ gateway_domain: z.ZodNullable<z.ZodString>;
707
+ public_urls: z.ZodArray<z.ZodObject<{
708
+ app: z.ZodString;
709
+ instance: z.ZodString;
710
+ }, "strip", z.ZodTypeAny, {
711
+ app: string;
712
+ instance: string;
713
+ }, {
714
+ app: string;
715
+ instance: string;
716
+ }>, "many">;
717
+ machine_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
718
+ vcpu: z.ZodNumber;
719
+ memory: z.ZodNumber;
720
+ disk_size: z.ZodNumber;
721
+ gpu_count: z.ZodDefault<z.ZodNumber>;
722
+ }, "strip", z.ZodTypeAny, {
723
+ vcpu: number;
724
+ memory: number;
725
+ disk_size: number;
726
+ gpu_count: number;
727
+ }, {
728
+ vcpu: number;
729
+ memory: number;
730
+ disk_size: number;
731
+ gpu_count?: number | undefined;
732
+ }>>>;
733
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
734
+ }, "strip", z.ZodTypeAny, {
735
+ status: string;
736
+ name: string;
737
+ vcpu: number | null;
738
+ memory: number | null;
739
+ disk_size: number | null;
740
+ hosted: {
741
+ status: string;
742
+ name: string;
743
+ id: string;
744
+ uptime: string;
745
+ app_url: string | null;
746
+ app_id: string;
747
+ instance_id: string | null;
748
+ exited_at: string | null;
749
+ boot_progress: string | null;
750
+ boot_error: string | null;
751
+ shutdown_progress: string | null;
752
+ image_version: string | null;
753
+ configuration?: any;
754
+ };
755
+ managed_user: {
756
+ username: string;
757
+ id: number;
758
+ } | null;
759
+ node: {
760
+ name: string;
761
+ id: number;
762
+ region_identifier?: string | null | undefined;
763
+ } | null;
764
+ listed: boolean;
765
+ in_progress: boolean;
766
+ dapp_dashboard_url: string | null;
767
+ syslog_endpoint: string | null;
768
+ allow_upgrade: boolean;
769
+ project_id: string | null;
770
+ project_type: string | null;
771
+ billing_period: string | null;
772
+ kms_info: z.objectOutputType<{
773
+ id: z.ZodString;
774
+ slug: z.ZodNullable<z.ZodString>;
775
+ url: z.ZodString;
776
+ version: z.ZodString;
777
+ chain_id: z.ZodNullable<z.ZodNumber>;
778
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
779
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
780
+ }, z.ZodTypeAny, "passthrough"> | null;
781
+ gateway_domain: string | null;
782
+ public_urls: {
783
+ app: string;
784
+ instance: string;
785
+ }[];
786
+ machine_info?: {
787
+ vcpu: number;
788
+ memory: number;
789
+ disk_size: number;
790
+ gpu_count: number;
791
+ } | null | undefined;
792
+ updated_at?: string | null | undefined;
793
+ }, {
794
+ status: string;
795
+ name: string;
796
+ vcpu: number | null;
797
+ memory: number | null;
798
+ disk_size: number | null;
799
+ hosted: {
800
+ status: string;
801
+ name: string;
802
+ id: string;
803
+ uptime: string;
804
+ app_url: string | null;
805
+ app_id: string;
806
+ instance_id: string | null;
807
+ exited_at: string | null;
808
+ boot_progress: string | null;
809
+ boot_error: string | null;
810
+ shutdown_progress: string | null;
811
+ image_version: string | null;
812
+ configuration?: any;
813
+ };
814
+ managed_user: {
815
+ username: string;
816
+ id: number;
817
+ } | null;
818
+ node: {
819
+ name: string;
820
+ id: number;
821
+ region_identifier?: string | null | undefined;
822
+ } | null;
823
+ dapp_dashboard_url: string | null;
824
+ syslog_endpoint: string | null;
825
+ project_id: string | null;
826
+ project_type: string | null;
827
+ billing_period: string | null;
828
+ kms_info: z.objectInputType<{
829
+ id: z.ZodString;
830
+ slug: z.ZodNullable<z.ZodString>;
831
+ url: z.ZodString;
832
+ version: z.ZodString;
833
+ chain_id: z.ZodNullable<z.ZodNumber>;
834
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
835
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
836
+ }, z.ZodTypeAny, "passthrough"> | null;
837
+ gateway_domain: string | null;
838
+ public_urls: {
839
+ app: string;
840
+ instance: string;
841
+ }[];
842
+ listed?: boolean | undefined;
843
+ in_progress?: boolean | undefined;
844
+ allow_upgrade?: boolean | undefined;
845
+ machine_info?: {
846
+ vcpu: number;
847
+ memory: number;
848
+ disk_size: number;
849
+ gpu_count?: number | undefined;
850
+ } | null | undefined;
851
+ updated_at?: string | null | undefined;
852
+ }>, "many">;
853
+ total: z.ZodNumber;
854
+ page: z.ZodNumber;
855
+ page_size: z.ZodNumber;
856
+ pages: z.ZodNumber;
857
+ }, "strip", z.ZodTypeAny, {
858
+ items: {
859
+ status: string;
860
+ name: string;
861
+ vcpu: number | null;
862
+ memory: number | null;
863
+ disk_size: number | null;
864
+ hosted: {
865
+ status: string;
866
+ name: string;
867
+ id: string;
868
+ uptime: string;
869
+ app_url: string | null;
870
+ app_id: string;
871
+ instance_id: string | null;
872
+ exited_at: string | null;
873
+ boot_progress: string | null;
874
+ boot_error: string | null;
875
+ shutdown_progress: string | null;
876
+ image_version: string | null;
877
+ configuration?: any;
878
+ };
879
+ managed_user: {
880
+ username: string;
881
+ id: number;
882
+ } | null;
883
+ node: {
884
+ name: string;
885
+ id: number;
886
+ region_identifier?: string | null | undefined;
887
+ } | null;
888
+ listed: boolean;
889
+ in_progress: boolean;
890
+ dapp_dashboard_url: string | null;
891
+ syslog_endpoint: string | null;
892
+ allow_upgrade: boolean;
893
+ project_id: string | null;
894
+ project_type: string | null;
895
+ billing_period: string | null;
896
+ kms_info: z.objectOutputType<{
897
+ id: z.ZodString;
898
+ slug: z.ZodNullable<z.ZodString>;
899
+ url: z.ZodString;
900
+ version: z.ZodString;
901
+ chain_id: z.ZodNullable<z.ZodNumber>;
902
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
903
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
904
+ }, z.ZodTypeAny, "passthrough"> | null;
905
+ gateway_domain: string | null;
906
+ public_urls: {
907
+ app: string;
908
+ instance: string;
909
+ }[];
910
+ machine_info?: {
911
+ vcpu: number;
912
+ memory: number;
913
+ disk_size: number;
914
+ gpu_count: number;
915
+ } | null | undefined;
916
+ updated_at?: string | null | undefined;
917
+ }[];
918
+ total: number;
919
+ page: number;
920
+ page_size: number;
921
+ pages: number;
922
+ }, {
923
+ items: {
924
+ status: string;
925
+ name: string;
926
+ vcpu: number | null;
927
+ memory: number | null;
928
+ disk_size: number | null;
929
+ hosted: {
930
+ status: string;
931
+ name: string;
932
+ id: string;
933
+ uptime: string;
934
+ app_url: string | null;
935
+ app_id: string;
936
+ instance_id: string | null;
937
+ exited_at: string | null;
938
+ boot_progress: string | null;
939
+ boot_error: string | null;
940
+ shutdown_progress: string | null;
941
+ image_version: string | null;
942
+ configuration?: any;
943
+ };
944
+ managed_user: {
945
+ username: string;
946
+ id: number;
947
+ } | null;
948
+ node: {
949
+ name: string;
950
+ id: number;
951
+ region_identifier?: string | null | undefined;
952
+ } | null;
953
+ dapp_dashboard_url: string | null;
954
+ syslog_endpoint: string | null;
955
+ project_id: string | null;
956
+ project_type: string | null;
957
+ billing_period: string | null;
958
+ kms_info: z.objectInputType<{
959
+ id: z.ZodString;
960
+ slug: z.ZodNullable<z.ZodString>;
961
+ url: z.ZodString;
962
+ version: z.ZodString;
963
+ chain_id: z.ZodNullable<z.ZodNumber>;
964
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
965
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
966
+ }, z.ZodTypeAny, "passthrough"> | null;
967
+ gateway_domain: string | null;
968
+ public_urls: {
969
+ app: string;
970
+ instance: string;
971
+ }[];
972
+ listed?: boolean | undefined;
973
+ in_progress?: boolean | undefined;
974
+ allow_upgrade?: boolean | undefined;
975
+ machine_info?: {
976
+ vcpu: number;
977
+ memory: number;
978
+ disk_size: number;
979
+ gpu_count?: number | undefined;
980
+ } | null | undefined;
981
+ updated_at?: string | null | undefined;
982
+ }[];
983
+ total: number;
984
+ page: number;
985
+ page_size: number;
986
+ pages: number;
987
+ }>;
988
+ export type PaginatedCvmInfosV20251028 = z.infer<typeof PaginatedCvmInfosV20251028Schema>;