@phala/cloud 0.2.9 → 0.2.10

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 (39) hide show
  1. package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +315 -5
  2. package/dist/actions/apps/check_app_is_allowed.d.ts +2 -2
  3. package/dist/actions/apps/create_app_instance.d.ts +13 -4
  4. package/dist/actions/apps/get_app_attestation.d.ts +50 -0
  5. package/dist/actions/apps/get_app_device_allowlist.d.ts +274 -5
  6. package/dist/actions/apps/get_app_filter_options.d.ts +2 -2
  7. package/dist/actions/cvms/check_cvm_is_allowed.d.ts +133 -3
  8. package/dist/actions/cvms/commit_cvm_provision.d.ts +425 -148
  9. package/dist/actions/cvms/get_cvm_compose_file.d.ts +328 -0
  10. package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +93 -0
  11. package/dist/actions/cvms/provision_cvm.d.ts +243 -225
  12. package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +216 -0
  13. package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +123 -5
  14. package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +236 -7
  15. package/dist/actions/cvms/replicate_cvm.d.ts +4 -4
  16. package/dist/actions/cvms/restart_cvm.d.ts +4 -4
  17. package/dist/actions/cvms/shutdown_cvm.d.ts +4 -4
  18. package/dist/actions/cvms/start_cvm.d.ts +4 -4
  19. package/dist/actions/cvms/stop_cvm.d.ts +4 -4
  20. package/dist/actions/cvms/update_cvm_visibility.d.ts +2 -2
  21. package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +319 -0
  22. package/dist/actions/get_cvm_create_resources.d.ts +2412 -0
  23. package/dist/actions/index.d.ts +3 -0
  24. package/dist/actions/workspaces/get_workspace.d.ts +2 -0
  25. package/dist/actions/workspaces/list_workspaces.d.ts +18 -0
  26. package/dist/client.d.ts +5 -2
  27. package/dist/create-client.d.ts +48 -0
  28. package/dist/index.js +1634 -1218
  29. package/dist/index.mjs +1602 -1216
  30. package/dist/types/app_compose.d.ts +125 -0
  31. package/dist/types/app_info_v20251028.d.ts +8 -131
  32. package/dist/types/app_info_v20260121.d.ts +4500 -168
  33. package/dist/types/client.d.ts +2 -2
  34. package/dist/types/cvm_info.d.ts +533 -7
  35. package/dist/types/cvm_info_v20251028.d.ts +18 -18
  36. package/dist/types/cvm_info_v20260121.d.ts +1640 -89
  37. package/dist/types/version-mappings.d.ts +8 -8
  38. package/dist/utils/errors.d.ts +8 -1
  39. package/package.json +2 -2
@@ -78,6 +78,31 @@ export declare const GetCvmComposeFileResultSchema: z.ZodEffects<z.ZodEffects<z.
78
78
  public_logs: z.ZodOptional<z.ZodBoolean>;
79
79
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
80
80
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
81
+ port_policy: z.ZodOptional<z.ZodObject<{
82
+ ports: z.ZodArray<z.ZodObject<{
83
+ port: z.ZodNumber;
84
+ pp: z.ZodBoolean;
85
+ }, "strip", z.ZodTypeAny, {
86
+ port: number;
87
+ pp: boolean;
88
+ }, {
89
+ port: number;
90
+ pp: boolean;
91
+ }>, "many">;
92
+ restrict_mode: z.ZodBoolean;
93
+ }, "strip", z.ZodTypeAny, {
94
+ ports: {
95
+ port: number;
96
+ pp: boolean;
97
+ }[];
98
+ restrict_mode: boolean;
99
+ }, {
100
+ ports: {
101
+ port: number;
102
+ pp: boolean;
103
+ }[];
104
+ restrict_mode: boolean;
105
+ }>>;
81
106
  storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
82
107
  pre_launch_script: z.ZodOptional<z.ZodString>;
83
108
  env_pubkey: z.ZodOptional<z.ZodString>;
@@ -92,6 +117,31 @@ export declare const GetCvmComposeFileResultSchema: z.ZodEffects<z.ZodEffects<z.
92
117
  public_logs: z.ZodOptional<z.ZodBoolean>;
93
118
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
94
119
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
120
+ port_policy: z.ZodOptional<z.ZodObject<{
121
+ ports: z.ZodArray<z.ZodObject<{
122
+ port: z.ZodNumber;
123
+ pp: z.ZodBoolean;
124
+ }, "strip", z.ZodTypeAny, {
125
+ port: number;
126
+ pp: boolean;
127
+ }, {
128
+ port: number;
129
+ pp: boolean;
130
+ }>, "many">;
131
+ restrict_mode: z.ZodBoolean;
132
+ }, "strip", z.ZodTypeAny, {
133
+ ports: {
134
+ port: number;
135
+ pp: boolean;
136
+ }[];
137
+ restrict_mode: boolean;
138
+ }, {
139
+ ports: {
140
+ port: number;
141
+ pp: boolean;
142
+ }[];
143
+ restrict_mode: boolean;
144
+ }>>;
95
145
  storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
96
146
  pre_launch_script: z.ZodOptional<z.ZodString>;
97
147
  env_pubkey: z.ZodOptional<z.ZodString>;
@@ -106,6 +156,31 @@ export declare const GetCvmComposeFileResultSchema: z.ZodEffects<z.ZodEffects<z.
106
156
  public_logs: z.ZodOptional<z.ZodBoolean>;
107
157
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
108
158
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
159
+ port_policy: z.ZodOptional<z.ZodObject<{
160
+ ports: z.ZodArray<z.ZodObject<{
161
+ port: z.ZodNumber;
162
+ pp: z.ZodBoolean;
163
+ }, "strip", z.ZodTypeAny, {
164
+ port: number;
165
+ pp: boolean;
166
+ }, {
167
+ port: number;
168
+ pp: boolean;
169
+ }>, "many">;
170
+ restrict_mode: z.ZodBoolean;
171
+ }, "strip", z.ZodTypeAny, {
172
+ ports: {
173
+ port: number;
174
+ pp: boolean;
175
+ }[];
176
+ restrict_mode: boolean;
177
+ }, {
178
+ ports: {
179
+ port: number;
180
+ pp: boolean;
181
+ }[];
182
+ restrict_mode: boolean;
183
+ }>>;
109
184
  storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
110
185
  pre_launch_script: z.ZodOptional<z.ZodString>;
111
186
  env_pubkey: z.ZodOptional<z.ZodString>;
@@ -120,6 +195,31 @@ export declare const GetCvmComposeFileResultSchema: z.ZodEffects<z.ZodEffects<z.
120
195
  public_logs: z.ZodOptional<z.ZodBoolean>;
121
196
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
122
197
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
198
+ port_policy: z.ZodOptional<z.ZodObject<{
199
+ ports: z.ZodArray<z.ZodObject<{
200
+ port: z.ZodNumber;
201
+ pp: z.ZodBoolean;
202
+ }, "strip", z.ZodTypeAny, {
203
+ port: number;
204
+ pp: boolean;
205
+ }, {
206
+ port: number;
207
+ pp: boolean;
208
+ }>, "many">;
209
+ restrict_mode: z.ZodBoolean;
210
+ }, "strip", z.ZodTypeAny, {
211
+ ports: {
212
+ port: number;
213
+ pp: boolean;
214
+ }[];
215
+ restrict_mode: boolean;
216
+ }, {
217
+ ports: {
218
+ port: number;
219
+ pp: boolean;
220
+ }[];
221
+ restrict_mode: boolean;
222
+ }>>;
123
223
  storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
124
224
  pre_launch_script: z.ZodOptional<z.ZodString>;
125
225
  env_pubkey: z.ZodOptional<z.ZodString>;
@@ -134,6 +234,31 @@ export declare const GetCvmComposeFileResultSchema: z.ZodEffects<z.ZodEffects<z.
134
234
  public_logs: z.ZodOptional<z.ZodBoolean>;
135
235
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
136
236
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
237
+ port_policy: z.ZodOptional<z.ZodObject<{
238
+ ports: z.ZodArray<z.ZodObject<{
239
+ port: z.ZodNumber;
240
+ pp: z.ZodBoolean;
241
+ }, "strip", z.ZodTypeAny, {
242
+ port: number;
243
+ pp: boolean;
244
+ }, {
245
+ port: number;
246
+ pp: boolean;
247
+ }>, "many">;
248
+ restrict_mode: z.ZodBoolean;
249
+ }, "strip", z.ZodTypeAny, {
250
+ ports: {
251
+ port: number;
252
+ pp: boolean;
253
+ }[];
254
+ restrict_mode: boolean;
255
+ }, {
256
+ ports: {
257
+ port: number;
258
+ pp: boolean;
259
+ }[];
260
+ restrict_mode: boolean;
261
+ }>>;
137
262
  storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
138
263
  pre_launch_script: z.ZodOptional<z.ZodString>;
139
264
  env_pubkey: z.ZodOptional<z.ZodString>;
@@ -149,6 +274,13 @@ export declare const GetCvmComposeFileResultSchema: z.ZodEffects<z.ZodEffects<z.
149
274
  manifest_version?: number | undefined;
150
275
  kms_enabled?: boolean | undefined;
151
276
  tproxy_enabled?: boolean | undefined;
277
+ port_policy?: {
278
+ ports: {
279
+ port: number;
280
+ pp: boolean;
281
+ }[];
282
+ restrict_mode: boolean;
283
+ } | undefined;
152
284
  pre_launch_script?: string | undefined;
153
285
  env_pubkey?: string | undefined;
154
286
  salt?: string | null | undefined;
@@ -167,6 +299,31 @@ export declare const GetCvmComposeFileResultSchema: z.ZodEffects<z.ZodEffects<z.
167
299
  public_logs: z.ZodOptional<z.ZodBoolean>;
168
300
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
169
301
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
302
+ port_policy: z.ZodOptional<z.ZodObject<{
303
+ ports: z.ZodArray<z.ZodObject<{
304
+ port: z.ZodNumber;
305
+ pp: z.ZodBoolean;
306
+ }, "strip", z.ZodTypeAny, {
307
+ port: number;
308
+ pp: boolean;
309
+ }, {
310
+ port: number;
311
+ pp: boolean;
312
+ }>, "many">;
313
+ restrict_mode: z.ZodBoolean;
314
+ }, "strip", z.ZodTypeAny, {
315
+ ports: {
316
+ port: number;
317
+ pp: boolean;
318
+ }[];
319
+ restrict_mode: boolean;
320
+ }, {
321
+ ports: {
322
+ port: number;
323
+ pp: boolean;
324
+ }[];
325
+ restrict_mode: boolean;
326
+ }>>;
170
327
  storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
171
328
  pre_launch_script: z.ZodOptional<z.ZodString>;
172
329
  env_pubkey: z.ZodOptional<z.ZodString>;
@@ -182,6 +339,31 @@ export declare const CvmComposeFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
182
339
  public_logs: z.ZodOptional<z.ZodBoolean>;
183
340
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
184
341
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
342
+ port_policy: z.ZodOptional<z.ZodObject<{
343
+ ports: z.ZodArray<z.ZodObject<{
344
+ port: z.ZodNumber;
345
+ pp: z.ZodBoolean;
346
+ }, "strip", z.ZodTypeAny, {
347
+ port: number;
348
+ pp: boolean;
349
+ }, {
350
+ port: number;
351
+ pp: boolean;
352
+ }>, "many">;
353
+ restrict_mode: z.ZodBoolean;
354
+ }, "strip", z.ZodTypeAny, {
355
+ ports: {
356
+ port: number;
357
+ pp: boolean;
358
+ }[];
359
+ restrict_mode: boolean;
360
+ }, {
361
+ ports: {
362
+ port: number;
363
+ pp: boolean;
364
+ }[];
365
+ restrict_mode: boolean;
366
+ }>>;
185
367
  storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
186
368
  pre_launch_script: z.ZodOptional<z.ZodString>;
187
369
  env_pubkey: z.ZodOptional<z.ZodString>;
@@ -196,6 +378,31 @@ export declare const CvmComposeFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
196
378
  public_logs: z.ZodOptional<z.ZodBoolean>;
197
379
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
198
380
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
381
+ port_policy: z.ZodOptional<z.ZodObject<{
382
+ ports: z.ZodArray<z.ZodObject<{
383
+ port: z.ZodNumber;
384
+ pp: z.ZodBoolean;
385
+ }, "strip", z.ZodTypeAny, {
386
+ port: number;
387
+ pp: boolean;
388
+ }, {
389
+ port: number;
390
+ pp: boolean;
391
+ }>, "many">;
392
+ restrict_mode: z.ZodBoolean;
393
+ }, "strip", z.ZodTypeAny, {
394
+ ports: {
395
+ port: number;
396
+ pp: boolean;
397
+ }[];
398
+ restrict_mode: boolean;
399
+ }, {
400
+ ports: {
401
+ port: number;
402
+ pp: boolean;
403
+ }[];
404
+ restrict_mode: boolean;
405
+ }>>;
199
406
  storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
200
407
  pre_launch_script: z.ZodOptional<z.ZodString>;
201
408
  env_pubkey: z.ZodOptional<z.ZodString>;
@@ -210,6 +417,31 @@ export declare const CvmComposeFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
210
417
  public_logs: z.ZodOptional<z.ZodBoolean>;
211
418
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
212
419
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
420
+ port_policy: z.ZodOptional<z.ZodObject<{
421
+ ports: z.ZodArray<z.ZodObject<{
422
+ port: z.ZodNumber;
423
+ pp: z.ZodBoolean;
424
+ }, "strip", z.ZodTypeAny, {
425
+ port: number;
426
+ pp: boolean;
427
+ }, {
428
+ port: number;
429
+ pp: boolean;
430
+ }>, "many">;
431
+ restrict_mode: z.ZodBoolean;
432
+ }, "strip", z.ZodTypeAny, {
433
+ ports: {
434
+ port: number;
435
+ pp: boolean;
436
+ }[];
437
+ restrict_mode: boolean;
438
+ }, {
439
+ ports: {
440
+ port: number;
441
+ pp: boolean;
442
+ }[];
443
+ restrict_mode: boolean;
444
+ }>>;
213
445
  storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
214
446
  pre_launch_script: z.ZodOptional<z.ZodString>;
215
447
  env_pubkey: z.ZodOptional<z.ZodString>;
@@ -224,6 +456,31 @@ export declare const CvmComposeFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
224
456
  public_logs: z.ZodOptional<z.ZodBoolean>;
225
457
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
226
458
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
459
+ port_policy: z.ZodOptional<z.ZodObject<{
460
+ ports: z.ZodArray<z.ZodObject<{
461
+ port: z.ZodNumber;
462
+ pp: z.ZodBoolean;
463
+ }, "strip", z.ZodTypeAny, {
464
+ port: number;
465
+ pp: boolean;
466
+ }, {
467
+ port: number;
468
+ pp: boolean;
469
+ }>, "many">;
470
+ restrict_mode: z.ZodBoolean;
471
+ }, "strip", z.ZodTypeAny, {
472
+ ports: {
473
+ port: number;
474
+ pp: boolean;
475
+ }[];
476
+ restrict_mode: boolean;
477
+ }, {
478
+ ports: {
479
+ port: number;
480
+ pp: boolean;
481
+ }[];
482
+ restrict_mode: boolean;
483
+ }>>;
227
484
  storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
228
485
  pre_launch_script: z.ZodOptional<z.ZodString>;
229
486
  env_pubkey: z.ZodOptional<z.ZodString>;
@@ -238,6 +495,31 @@ export declare const CvmComposeFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
238
495
  public_logs: z.ZodOptional<z.ZodBoolean>;
239
496
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
240
497
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
498
+ port_policy: z.ZodOptional<z.ZodObject<{
499
+ ports: z.ZodArray<z.ZodObject<{
500
+ port: z.ZodNumber;
501
+ pp: z.ZodBoolean;
502
+ }, "strip", z.ZodTypeAny, {
503
+ port: number;
504
+ pp: boolean;
505
+ }, {
506
+ port: number;
507
+ pp: boolean;
508
+ }>, "many">;
509
+ restrict_mode: z.ZodBoolean;
510
+ }, "strip", z.ZodTypeAny, {
511
+ ports: {
512
+ port: number;
513
+ pp: boolean;
514
+ }[];
515
+ restrict_mode: boolean;
516
+ }, {
517
+ ports: {
518
+ port: number;
519
+ pp: boolean;
520
+ }[];
521
+ restrict_mode: boolean;
522
+ }>>;
241
523
  storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
242
524
  pre_launch_script: z.ZodOptional<z.ZodString>;
243
525
  env_pubkey: z.ZodOptional<z.ZodString>;
@@ -253,6 +535,13 @@ export declare const CvmComposeFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
253
535
  manifest_version?: number | undefined;
254
536
  kms_enabled?: boolean | undefined;
255
537
  tproxy_enabled?: boolean | undefined;
538
+ port_policy?: {
539
+ ports: {
540
+ port: number;
541
+ pp: boolean;
542
+ }[];
543
+ restrict_mode: boolean;
544
+ } | undefined;
256
545
  pre_launch_script?: string | undefined;
257
546
  env_pubkey?: string | undefined;
258
547
  salt?: string | null | undefined;
@@ -271,6 +560,31 @@ export declare const CvmComposeFileSchema: z.ZodEffects<z.ZodEffects<z.ZodObject
271
560
  public_logs: z.ZodOptional<z.ZodBoolean>;
272
561
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
273
562
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
563
+ port_policy: z.ZodOptional<z.ZodObject<{
564
+ ports: z.ZodArray<z.ZodObject<{
565
+ port: z.ZodNumber;
566
+ pp: z.ZodBoolean;
567
+ }, "strip", z.ZodTypeAny, {
568
+ port: number;
569
+ pp: boolean;
570
+ }, {
571
+ port: number;
572
+ pp: boolean;
573
+ }>, "many">;
574
+ restrict_mode: z.ZodBoolean;
575
+ }, "strip", z.ZodTypeAny, {
576
+ ports: {
577
+ port: number;
578
+ pp: boolean;
579
+ }[];
580
+ restrict_mode: boolean;
581
+ }, {
582
+ ports: {
583
+ port: number;
584
+ pp: boolean;
585
+ }[];
586
+ restrict_mode: boolean;
587
+ }>>;
274
588
  storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
275
589
  pre_launch_script: z.ZodOptional<z.ZodString>;
276
590
  env_pubkey: z.ZodOptional<z.ZodString>;
@@ -312,6 +626,13 @@ declare const getCvmComposeFile: {
312
626
  manifest_version?: number | undefined;
313
627
  kms_enabled?: boolean | undefined;
314
628
  tproxy_enabled?: boolean | undefined;
629
+ port_policy?: {
630
+ ports: {
631
+ port: number;
632
+ pp: boolean;
633
+ }[];
634
+ restrict_mode: boolean;
635
+ } | undefined;
315
636
  pre_launch_script?: string | undefined;
316
637
  env_pubkey?: string | undefined;
317
638
  salt?: string | null | undefined;
@@ -339,6 +660,13 @@ declare const getCvmComposeFile: {
339
660
  manifest_version?: number | undefined;
340
661
  kms_enabled?: boolean | undefined;
341
662
  tproxy_enabled?: boolean | undefined;
663
+ port_policy?: {
664
+ ports: {
665
+ port: number;
666
+ pp: boolean;
667
+ }[];
668
+ restrict_mode: boolean;
669
+ } | undefined;
342
670
  pre_launch_script?: string | undefined;
343
671
  env_pubkey?: string | undefined;
344
672
  salt?: string | null | undefined;
@@ -0,0 +1,93 @@
1
+ import { z } from "zod";
2
+ import { type CvmIdInput } from "../../types/cvm_id";
3
+ /**
4
+ * Get pre-launch script upgrade status
5
+ *
6
+ * Reports whether a CVM is running an unmodified official pre-launch script
7
+ * and whether a newer official version is available. The frontend uses
8
+ * `can_upgrade` to decide whether to surface the one-click upgrade banner.
9
+ *
10
+ * @example
11
+ * ```typescript
12
+ * import { createClient, getPreLaunchScriptUpgradeStatus } from '@phala/cloud'
13
+ *
14
+ * const client = createClient({ apiKey: 'your-api-key' })
15
+ * const status = await getPreLaunchScriptUpgradeStatus(client, { id: 'cvm-123' })
16
+ *
17
+ * if (status.can_upgrade) {
18
+ * // CVM is on an older official script; offer the upgrade
19
+ * }
20
+ * ```
21
+ */
22
+ export declare const GetPreLaunchScriptUpgradeStatusRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
23
+ id: z.ZodOptional<z.ZodString>;
24
+ uuid: z.ZodOptional<z.ZodString>;
25
+ app_id: z.ZodOptional<z.ZodString>;
26
+ instance_id: z.ZodOptional<z.ZodString>;
27
+ name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ name?: string | undefined;
30
+ id?: string | undefined;
31
+ app_id?: string | undefined;
32
+ instance_id?: string | undefined;
33
+ uuid?: string | undefined;
34
+ }, {
35
+ name?: string | undefined;
36
+ id?: string | undefined;
37
+ app_id?: string | undefined;
38
+ instance_id?: string | undefined;
39
+ uuid?: string | undefined;
40
+ }>, any, any>, {
41
+ cvmId: any;
42
+ }, any>;
43
+ export type GetPreLaunchScriptUpgradeStatusRequest = CvmIdInput;
44
+ export declare const PreLaunchScriptUpgradeStatusSchema: z.ZodObject<{
45
+ current_hash: z.ZodNullable<z.ZodString>;
46
+ latest_official_hash: z.ZodString;
47
+ is_official: z.ZodBoolean;
48
+ is_latest: z.ZodBoolean;
49
+ can_upgrade: z.ZodBoolean;
50
+ }, "strip", z.ZodTypeAny, {
51
+ current_hash: string | null;
52
+ latest_official_hash: string;
53
+ is_official: boolean;
54
+ is_latest: boolean;
55
+ can_upgrade: boolean;
56
+ }, {
57
+ current_hash: string | null;
58
+ latest_official_hash: string;
59
+ is_official: boolean;
60
+ is_latest: boolean;
61
+ can_upgrade: boolean;
62
+ }>;
63
+ export type PreLaunchScriptUpgradeStatus = z.infer<typeof PreLaunchScriptUpgradeStatusSchema>;
64
+ declare const getPreLaunchScriptUpgradeStatus: {
65
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
66
+ current_hash: string | null;
67
+ latest_official_hash: string;
68
+ is_official: boolean;
69
+ is_latest: boolean;
70
+ can_upgrade: boolean;
71
+ }>;
72
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
73
+ schema: T;
74
+ }): Promise<z.TypeOf<T>>;
75
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
76
+ schema: false;
77
+ }): Promise<unknown>;
78
+ }, safeGetPreLaunchScriptUpgradeStatus: {
79
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
80
+ current_hash: string | null;
81
+ latest_official_hash: string;
82
+ is_official: boolean;
83
+ is_latest: boolean;
84
+ can_upgrade: boolean;
85
+ }>>;
86
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
87
+ schema: T;
88
+ }): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
89
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
90
+ schema: false;
91
+ }): Promise<import("../..").SafeResult<unknown>>;
92
+ };
93
+ export { getPreLaunchScriptUpgradeStatus, safeGetPreLaunchScriptUpgradeStatus };