@phala/cloud 0.2.4 → 0.2.8

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 (49) hide show
  1. package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +164 -0
  2. package/dist/actions/apps/check_app_is_allowed.d.ts +109 -0
  3. package/dist/actions/apps/get_app_attestation.d.ts +963 -0
  4. package/dist/actions/apps/get_app_device_allowlist.d.ts +108 -0
  5. package/dist/actions/blockchains/abi/dstack_app.d.ts +131 -0
  6. package/dist/actions/blockchains/add_device.d.ts +62 -0
  7. package/dist/actions/blockchains/check_compose_hash_allowed.d.ts +43 -0
  8. package/dist/actions/blockchains/check_device_allowed.d.ts +44 -0
  9. package/dist/actions/blockchains/check_on_chain_prerequisites.d.ts +59 -0
  10. package/dist/actions/blockchains/get_allowed_devices.d.ts +65 -0
  11. package/dist/actions/blockchains/remove_device.d.ts +62 -0
  12. package/dist/actions/blockchains/set_allow_any_device.d.ts +62 -0
  13. package/dist/actions/cvms/check_cvm_is_allowed.d.ts +145 -0
  14. package/dist/actions/cvms/commit_cvm_provision.d.ts +19 -0
  15. package/dist/actions/cvms/commit_cvm_update.d.ts +100 -0
  16. package/dist/actions/cvms/confirm_cvm_patch.d.ts +92 -0
  17. package/dist/actions/cvms/get_cvm_attestation.d.ts +220 -0
  18. package/dist/actions/cvms/get_cvm_compose_file.d.ts +16 -0
  19. package/dist/actions/cvms/patch_cvm.d.ts +447 -0
  20. package/dist/actions/cvms/provision_cvm.d.ts +26 -1
  21. package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +26 -0
  22. package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +93 -0
  23. package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +194 -0
  24. package/dist/actions/cvms/replicate_cvm.d.ts +126 -0
  25. package/dist/actions/cvms/restart_cvm.d.ts +2 -2
  26. package/dist/actions/cvms/shutdown_cvm.d.ts +2 -2
  27. package/dist/actions/cvms/start_cvm.d.ts +2 -2
  28. package/dist/actions/cvms/stop_cvm.d.ts +2 -2
  29. package/dist/actions/index.d.ts +22 -1
  30. package/dist/actions/kms/get_kms_onchain_detail.d.ts +688 -0
  31. package/dist/actions/os_images/get_os_images.d.ts +217 -0
  32. package/dist/actions/workspaces/get_workspace.d.ts +2 -0
  33. package/dist/actions/workspaces/list_workspaces.d.ts +18 -0
  34. package/dist/client.d.ts +5 -0
  35. package/dist/create-client.d.ts +30 -0
  36. package/dist/index.js +1909 -365
  37. package/dist/index.mjs +1843 -363
  38. package/dist/types/app_compose.d.ts +5 -0
  39. package/dist/types/app_info_v20260121.d.ts +158 -6
  40. package/dist/types/cvm_info.d.ts +3 -3
  41. package/dist/types/cvm_info_v20260121.d.ts +82 -4
  42. package/dist/utils/error_codes.d.ts +48 -0
  43. package/dist/utils/errors.d.ts +9 -0
  44. package/dist/utils/index.d.ts +2 -1
  45. package/dist/utils/verify-webhook.d.ts +35 -0
  46. package/dist/webhook.d.ts +11 -0
  47. package/dist/webhook.js +68 -0
  48. package/dist/webhook.mjs +40 -0
  49. package/package.json +7 -2
@@ -50,7 +50,7 @@ import { type Client } from "../../client";
50
50
  * const provision = await provisionCvm(client, {
51
51
  * name: 'my-app',
52
52
  * node_id: 123, // Specific node
53
- * kms: 'PHALA', // KMS type (PHALA, BASE, ETHERUEM)
53
+ * kms: 'PHALA', // KMS type (PHALA, BASE, ETHEREUM)
54
54
  * disk_size: 40,
55
55
  * image: 'dstack-0.5.5',
56
56
  * compose_file: { /* ... *\/ },
@@ -435,11 +435,13 @@ export declare const ProvisionCvmRequestSchema: z.ZodEffects<z.ZodObject<{
435
435
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
436
436
  gateway_enabled: z.ZodOptional<z.ZodBoolean>;
437
437
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
438
+ storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
438
439
  }, "strip", z.ZodTypeAny, {
439
440
  name: string;
440
441
  public_sysinfo?: boolean | undefined;
441
442
  public_logs?: boolean | undefined;
442
443
  gateway_enabled?: boolean | undefined;
444
+ storage_fs?: "ext4" | "zfs" | undefined;
443
445
  allowed_envs?: string[] | undefined;
444
446
  docker_compose_file?: string | undefined;
445
447
  kms_enabled?: boolean | undefined;
@@ -450,6 +452,7 @@ export declare const ProvisionCvmRequestSchema: z.ZodEffects<z.ZodObject<{
450
452
  public_sysinfo?: boolean | undefined;
451
453
  public_logs?: boolean | undefined;
452
454
  gateway_enabled?: boolean | undefined;
455
+ storage_fs?: "ext4" | "zfs" | undefined;
453
456
  allowed_envs?: string[] | undefined;
454
457
  docker_compose_file?: string | undefined;
455
458
  kms_enabled?: boolean | undefined;
@@ -460,6 +463,7 @@ export declare const ProvisionCvmRequestSchema: z.ZodEffects<z.ZodObject<{
460
463
  public_sysinfo?: boolean | undefined;
461
464
  public_logs?: boolean | undefined;
462
465
  gateway_enabled?: boolean | undefined;
466
+ storage_fs?: "ext4" | "zfs" | undefined;
463
467
  allowed_envs?: string[] | undefined;
464
468
  docker_compose_file?: string | undefined;
465
469
  kms_enabled?: boolean | undefined;
@@ -470,6 +474,7 @@ export declare const ProvisionCvmRequestSchema: z.ZodEffects<z.ZodObject<{
470
474
  public_sysinfo?: boolean | undefined;
471
475
  public_logs?: boolean | undefined;
472
476
  gateway_enabled?: boolean | undefined;
477
+ storage_fs?: "ext4" | "zfs" | undefined;
473
478
  allowed_envs?: string[] | undefined;
474
479
  docker_compose_file?: string | undefined;
475
480
  kms_enabled?: boolean | undefined;
@@ -503,11 +508,13 @@ export declare const ProvisionCvmRequestSchema: z.ZodEffects<z.ZodObject<{
503
508
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
504
509
  gateway_enabled: z.ZodOptional<z.ZodBoolean>;
505
510
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
511
+ storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
506
512
  }, "strip", z.ZodTypeAny, {
507
513
  name: string;
508
514
  public_sysinfo?: boolean | undefined;
509
515
  public_logs?: boolean | undefined;
510
516
  gateway_enabled?: boolean | undefined;
517
+ storage_fs?: "ext4" | "zfs" | undefined;
511
518
  allowed_envs?: string[] | undefined;
512
519
  docker_compose_file?: string | undefined;
513
520
  kms_enabled?: boolean | undefined;
@@ -518,6 +525,7 @@ export declare const ProvisionCvmRequestSchema: z.ZodEffects<z.ZodObject<{
518
525
  public_sysinfo?: boolean | undefined;
519
526
  public_logs?: boolean | undefined;
520
527
  gateway_enabled?: boolean | undefined;
528
+ storage_fs?: "ext4" | "zfs" | undefined;
521
529
  allowed_envs?: string[] | undefined;
522
530
  docker_compose_file?: string | undefined;
523
531
  kms_enabled?: boolean | undefined;
@@ -528,6 +536,7 @@ export declare const ProvisionCvmRequestSchema: z.ZodEffects<z.ZodObject<{
528
536
  public_sysinfo?: boolean | undefined;
529
537
  public_logs?: boolean | undefined;
530
538
  gateway_enabled?: boolean | undefined;
539
+ storage_fs?: "ext4" | "zfs" | undefined;
531
540
  allowed_envs?: string[] | undefined;
532
541
  docker_compose_file?: string | undefined;
533
542
  kms_enabled?: boolean | undefined;
@@ -538,6 +547,7 @@ export declare const ProvisionCvmRequestSchema: z.ZodEffects<z.ZodObject<{
538
547
  public_sysinfo?: boolean | undefined;
539
548
  public_logs?: boolean | undefined;
540
549
  gateway_enabled?: boolean | undefined;
550
+ storage_fs?: "ext4" | "zfs" | undefined;
541
551
  allowed_envs?: string[] | undefined;
542
552
  docker_compose_file?: string | undefined;
543
553
  kms_enabled?: boolean | undefined;
@@ -571,11 +581,13 @@ export declare const ProvisionCvmRequestSchema: z.ZodEffects<z.ZodObject<{
571
581
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
572
582
  gateway_enabled: z.ZodOptional<z.ZodBoolean>;
573
583
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
584
+ storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
574
585
  }, "strip", z.ZodTypeAny, {
575
586
  name: string;
576
587
  public_sysinfo?: boolean | undefined;
577
588
  public_logs?: boolean | undefined;
578
589
  gateway_enabled?: boolean | undefined;
590
+ storage_fs?: "ext4" | "zfs" | undefined;
579
591
  allowed_envs?: string[] | undefined;
580
592
  docker_compose_file?: string | undefined;
581
593
  kms_enabled?: boolean | undefined;
@@ -586,6 +598,7 @@ export declare const ProvisionCvmRequestSchema: z.ZodEffects<z.ZodObject<{
586
598
  public_sysinfo?: boolean | undefined;
587
599
  public_logs?: boolean | undefined;
588
600
  gateway_enabled?: boolean | undefined;
601
+ storage_fs?: "ext4" | "zfs" | undefined;
589
602
  allowed_envs?: string[] | undefined;
590
603
  docker_compose_file?: string | undefined;
591
604
  kms_enabled?: boolean | undefined;
@@ -596,6 +609,7 @@ export declare const ProvisionCvmRequestSchema: z.ZodEffects<z.ZodObject<{
596
609
  public_sysinfo?: boolean | undefined;
597
610
  public_logs?: boolean | undefined;
598
611
  gateway_enabled?: boolean | undefined;
612
+ storage_fs?: "ext4" | "zfs" | undefined;
599
613
  allowed_envs?: string[] | undefined;
600
614
  docker_compose_file?: string | undefined;
601
615
  kms_enabled?: boolean | undefined;
@@ -606,6 +620,7 @@ export declare const ProvisionCvmRequestSchema: z.ZodEffects<z.ZodObject<{
606
620
  public_sysinfo?: boolean | undefined;
607
621
  public_logs?: boolean | undefined;
608
622
  gateway_enabled?: boolean | undefined;
623
+ storage_fs?: "ext4" | "zfs" | undefined;
609
624
  allowed_envs?: string[] | undefined;
610
625
  docker_compose_file?: string | undefined;
611
626
  kms_enabled?: boolean | undefined;
@@ -639,11 +654,13 @@ export declare const ProvisionCvmRequestSchema: z.ZodEffects<z.ZodObject<{
639
654
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
640
655
  gateway_enabled: z.ZodOptional<z.ZodBoolean>;
641
656
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
657
+ storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
642
658
  }, "strip", z.ZodTypeAny, {
643
659
  name: string;
644
660
  public_sysinfo?: boolean | undefined;
645
661
  public_logs?: boolean | undefined;
646
662
  gateway_enabled?: boolean | undefined;
663
+ storage_fs?: "ext4" | "zfs" | undefined;
647
664
  allowed_envs?: string[] | undefined;
648
665
  docker_compose_file?: string | undefined;
649
666
  kms_enabled?: boolean | undefined;
@@ -654,6 +671,7 @@ export declare const ProvisionCvmRequestSchema: z.ZodEffects<z.ZodObject<{
654
671
  public_sysinfo?: boolean | undefined;
655
672
  public_logs?: boolean | undefined;
656
673
  gateway_enabled?: boolean | undefined;
674
+ storage_fs?: "ext4" | "zfs" | undefined;
657
675
  allowed_envs?: string[] | undefined;
658
676
  docker_compose_file?: string | undefined;
659
677
  kms_enabled?: boolean | undefined;
@@ -664,6 +682,7 @@ export declare const ProvisionCvmRequestSchema: z.ZodEffects<z.ZodObject<{
664
682
  public_sysinfo?: boolean | undefined;
665
683
  public_logs?: boolean | undefined;
666
684
  gateway_enabled?: boolean | undefined;
685
+ storage_fs?: "ext4" | "zfs" | undefined;
667
686
  allowed_envs?: string[] | undefined;
668
687
  docker_compose_file?: string | undefined;
669
688
  kms_enabled?: boolean | undefined;
@@ -674,6 +693,7 @@ export declare const ProvisionCvmRequestSchema: z.ZodEffects<z.ZodObject<{
674
693
  public_sysinfo?: boolean | undefined;
675
694
  public_logs?: boolean | undefined;
676
695
  gateway_enabled?: boolean | undefined;
696
+ storage_fs?: "ext4" | "zfs" | undefined;
677
697
  allowed_envs?: string[] | undefined;
678
698
  docker_compose_file?: string | undefined;
679
699
  kms_enabled?: boolean | undefined;
@@ -707,11 +727,13 @@ export declare const ProvisionCvmRequestSchema: z.ZodEffects<z.ZodObject<{
707
727
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
708
728
  gateway_enabled: z.ZodOptional<z.ZodBoolean>;
709
729
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
730
+ storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
710
731
  }, "strip", z.ZodTypeAny, {
711
732
  name: string;
712
733
  public_sysinfo?: boolean | undefined;
713
734
  public_logs?: boolean | undefined;
714
735
  gateway_enabled?: boolean | undefined;
736
+ storage_fs?: "ext4" | "zfs" | undefined;
715
737
  allowed_envs?: string[] | undefined;
716
738
  docker_compose_file?: string | undefined;
717
739
  kms_enabled?: boolean | undefined;
@@ -722,6 +744,7 @@ export declare const ProvisionCvmRequestSchema: z.ZodEffects<z.ZodObject<{
722
744
  public_sysinfo?: boolean | undefined;
723
745
  public_logs?: boolean | undefined;
724
746
  gateway_enabled?: boolean | undefined;
747
+ storage_fs?: "ext4" | "zfs" | undefined;
725
748
  allowed_envs?: string[] | undefined;
726
749
  docker_compose_file?: string | undefined;
727
750
  kms_enabled?: boolean | undefined;
@@ -732,6 +755,7 @@ export declare const ProvisionCvmRequestSchema: z.ZodEffects<z.ZodObject<{
732
755
  public_sysinfo?: boolean | undefined;
733
756
  public_logs?: boolean | undefined;
734
757
  gateway_enabled?: boolean | undefined;
758
+ storage_fs?: "ext4" | "zfs" | undefined;
735
759
  allowed_envs?: string[] | undefined;
736
760
  docker_compose_file?: string | undefined;
737
761
  kms_enabled?: boolean | undefined;
@@ -742,6 +766,7 @@ export declare const ProvisionCvmRequestSchema: z.ZodEffects<z.ZodObject<{
742
766
  public_sysinfo?: boolean | undefined;
743
767
  public_logs?: boolean | undefined;
744
768
  gateway_enabled?: boolean | undefined;
769
+ storage_fs?: "ext4" | "zfs" | undefined;
745
770
  allowed_envs?: string[] | undefined;
746
771
  docker_compose_file?: string | undefined;
747
772
  kms_enabled?: boolean | undefined;
@@ -92,6 +92,7 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
92
92
  public_logs: z.ZodOptional<z.ZodBoolean>;
93
93
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
94
94
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
95
+ storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
95
96
  pre_launch_script: z.ZodOptional<z.ZodString>;
96
97
  env_pubkey: z.ZodOptional<z.ZodString>;
97
98
  salt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -105,6 +106,7 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
105
106
  public_logs: z.ZodOptional<z.ZodBoolean>;
106
107
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
107
108
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
109
+ storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
108
110
  pre_launch_script: z.ZodOptional<z.ZodString>;
109
111
  env_pubkey: z.ZodOptional<z.ZodString>;
110
112
  salt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -118,6 +120,7 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
118
120
  public_logs: z.ZodOptional<z.ZodBoolean>;
119
121
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
120
122
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
123
+ storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
121
124
  pre_launch_script: z.ZodOptional<z.ZodString>;
122
125
  env_pubkey: z.ZodOptional<z.ZodString>;
123
126
  salt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -131,6 +134,7 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
131
134
  public_logs: z.ZodOptional<z.ZodBoolean>;
132
135
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
133
136
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
137
+ storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
134
138
  pre_launch_script: z.ZodOptional<z.ZodString>;
135
139
  env_pubkey: z.ZodOptional<z.ZodString>;
136
140
  salt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -144,6 +148,7 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
144
148
  public_logs: z.ZodOptional<z.ZodBoolean>;
145
149
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
146
150
  tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
151
+ storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
147
152
  pre_launch_script: z.ZodOptional<z.ZodString>;
148
153
  env_pubkey: z.ZodOptional<z.ZodString>;
149
154
  salt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -155,6 +160,7 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
155
160
  name?: string | undefined;
156
161
  public_sysinfo?: boolean | undefined;
157
162
  public_logs?: boolean | undefined;
163
+ storage_fs?: "ext4" | "zfs" | undefined;
158
164
  allowed_envs?: string[] | undefined;
159
165
  features?: string[] | undefined;
160
166
  manifest_version?: number | undefined;
@@ -177,6 +183,7 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
177
183
  name?: string | undefined;
178
184
  public_sysinfo?: boolean | undefined;
179
185
  public_logs?: boolean | undefined;
186
+ storage_fs?: "ext4" | "zfs" | undefined;
180
187
  allowed_envs?: string[] | undefined;
181
188
  features?: string[] | undefined;
182
189
  manifest_version?: number | undefined;
@@ -199,6 +206,7 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
199
206
  name?: string | undefined;
200
207
  public_sysinfo?: boolean | undefined;
201
208
  public_logs?: boolean | undefined;
209
+ storage_fs?: "ext4" | "zfs" | undefined;
202
210
  allowed_envs?: string[] | undefined;
203
211
  features?: string[] | undefined;
204
212
  manifest_version?: number | undefined;
@@ -221,6 +229,7 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
221
229
  name?: string | undefined;
222
230
  public_sysinfo?: boolean | undefined;
223
231
  public_logs?: boolean | undefined;
232
+ storage_fs?: "ext4" | "zfs" | undefined;
224
233
  allowed_envs?: string[] | undefined;
225
234
  features?: string[] | undefined;
226
235
  manifest_version?: number | undefined;
@@ -245,6 +254,7 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
245
254
  name?: string | undefined;
246
255
  public_sysinfo?: boolean | undefined;
247
256
  public_logs?: boolean | undefined;
257
+ storage_fs?: "ext4" | "zfs" | undefined;
248
258
  allowed_envs?: string[] | undefined;
249
259
  features?: string[] | undefined;
250
260
  manifest_version?: number | undefined;
@@ -260,6 +270,7 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
260
270
  name?: string | undefined;
261
271
  public_sysinfo?: boolean | undefined;
262
272
  public_logs?: boolean | undefined;
273
+ storage_fs?: "ext4" | "zfs" | undefined;
263
274
  allowed_envs?: string[] | undefined;
264
275
  features?: string[] | undefined;
265
276
  manifest_version?: number | undefined;
@@ -283,6 +294,7 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
283
294
  name?: string | undefined;
284
295
  public_sysinfo?: boolean | undefined;
285
296
  public_logs?: boolean | undefined;
297
+ storage_fs?: "ext4" | "zfs" | undefined;
286
298
  allowed_envs?: string[] | undefined;
287
299
  features?: string[] | undefined;
288
300
  manifest_version?: number | undefined;
@@ -345,6 +357,7 @@ export declare const ProvisionCvmComposeFileUpdateResultSchema: z.ZodObject<{
345
357
  kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
346
358
  gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
347
359
  }, z.ZodTypeAny, "passthrough">>>>;
360
+ compose_hash_registered: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
348
361
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
349
362
  app_id: z.ZodNullable<z.ZodString>;
350
363
  device_id: z.ZodNullable<z.ZodString>;
@@ -390,6 +403,7 @@ export declare const ProvisionCvmComposeFileUpdateResultSchema: z.ZodObject<{
390
403
  kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
391
404
  gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
392
405
  }, z.ZodTypeAny, "passthrough">>>>;
406
+ compose_hash_registered: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
393
407
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
394
408
  app_id: z.ZodNullable<z.ZodString>;
395
409
  device_id: z.ZodNullable<z.ZodString>;
@@ -435,6 +449,7 @@ export declare const ProvisionCvmComposeFileUpdateResultSchema: z.ZodObject<{
435
449
  kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
436
450
  gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
437
451
  }, z.ZodTypeAny, "passthrough">>>>;
452
+ compose_hash_registered: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
438
453
  }, z.ZodTypeAny, "passthrough">>;
439
454
  export declare const ProvisionCvmComposeFileUpdateSchema: z.ZodObject<{
440
455
  app_id: z.ZodNullable<z.ZodString>;
@@ -481,6 +496,7 @@ export declare const ProvisionCvmComposeFileUpdateSchema: z.ZodObject<{
481
496
  kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
482
497
  gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
483
498
  }, z.ZodTypeAny, "passthrough">>>>;
499
+ compose_hash_registered: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
484
500
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
485
501
  app_id: z.ZodNullable<z.ZodString>;
486
502
  device_id: z.ZodNullable<z.ZodString>;
@@ -526,6 +542,7 @@ export declare const ProvisionCvmComposeFileUpdateSchema: z.ZodObject<{
526
542
  kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
527
543
  gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
528
544
  }, z.ZodTypeAny, "passthrough">>>>;
545
+ compose_hash_registered: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
529
546
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
530
547
  app_id: z.ZodNullable<z.ZodString>;
531
548
  device_id: z.ZodNullable<z.ZodString>;
@@ -571,6 +588,7 @@ export declare const ProvisionCvmComposeFileUpdateSchema: z.ZodObject<{
571
588
  kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
572
589
  gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
573
590
  }, z.ZodTypeAny, "passthrough">>>>;
591
+ compose_hash_registered: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
574
592
  }, z.ZodTypeAny, "passthrough">>;
575
593
  export type ProvisionCvmComposeFileUpdateRequest = z.input<typeof ProvisionCvmComposeFileUpdateRequestSchema>;
576
594
  export type ProvisionCvmComposeFileUpdateResult = z.infer<typeof ProvisionCvmComposeFileUpdateResultSchema>;
@@ -589,6 +607,7 @@ declare const provisionCvmComposeFileUpdate: {
589
607
  name?: string | undefined;
590
608
  public_sysinfo?: boolean | undefined;
591
609
  public_logs?: boolean | undefined;
610
+ storage_fs?: "ext4" | "zfs" | undefined;
592
611
  allowed_envs?: string[] | undefined;
593
612
  features?: string[] | undefined;
594
613
  manifest_version?: number | undefined;
@@ -650,6 +669,7 @@ declare const provisionCvmComposeFileUpdate: {
650
669
  kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
651
670
  gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
652
671
  }, z.ZodTypeAny, "passthrough">>>>;
672
+ compose_hash_registered: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
653
673
  }, z.ZodTypeAny, "passthrough">>;
654
674
  <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: {
655
675
  app_compose: {
@@ -657,6 +677,7 @@ declare const provisionCvmComposeFileUpdate: {
657
677
  name?: string | undefined;
658
678
  public_sysinfo?: boolean | undefined;
659
679
  public_logs?: boolean | undefined;
680
+ storage_fs?: "ext4" | "zfs" | undefined;
660
681
  allowed_envs?: string[] | undefined;
661
682
  features?: string[] | undefined;
662
683
  manifest_version?: number | undefined;
@@ -682,6 +703,7 @@ declare const provisionCvmComposeFileUpdate: {
682
703
  name?: string | undefined;
683
704
  public_sysinfo?: boolean | undefined;
684
705
  public_logs?: boolean | undefined;
706
+ storage_fs?: "ext4" | "zfs" | undefined;
685
707
  allowed_envs?: string[] | undefined;
686
708
  features?: string[] | undefined;
687
709
  manifest_version?: number | undefined;
@@ -708,6 +730,7 @@ declare const provisionCvmComposeFileUpdate: {
708
730
  name?: string | undefined;
709
731
  public_sysinfo?: boolean | undefined;
710
732
  public_logs?: boolean | undefined;
733
+ storage_fs?: "ext4" | "zfs" | undefined;
711
734
  allowed_envs?: string[] | undefined;
712
735
  features?: string[] | undefined;
713
736
  manifest_version?: number | undefined;
@@ -769,6 +792,7 @@ declare const provisionCvmComposeFileUpdate: {
769
792
  kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
770
793
  gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
771
794
  }, z.ZodTypeAny, "passthrough">>>>;
795
+ compose_hash_registered: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
772
796
  }, z.ZodTypeAny, "passthrough">>>;
773
797
  <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: {
774
798
  app_compose: {
@@ -776,6 +800,7 @@ declare const provisionCvmComposeFileUpdate: {
776
800
  name?: string | undefined;
777
801
  public_sysinfo?: boolean | undefined;
778
802
  public_logs?: boolean | undefined;
803
+ storage_fs?: "ext4" | "zfs" | undefined;
779
804
  allowed_envs?: string[] | undefined;
780
805
  features?: string[] | undefined;
781
806
  manifest_version?: number | undefined;
@@ -801,6 +826,7 @@ declare const provisionCvmComposeFileUpdate: {
801
826
  name?: string | undefined;
802
827
  public_sysinfo?: boolean | undefined;
803
828
  public_logs?: boolean | undefined;
829
+ storage_fs?: "ext4" | "zfs" | undefined;
804
830
  allowed_envs?: string[] | undefined;
805
831
  features?: string[] | undefined;
806
832
  manifest_version?: number | undefined;
@@ -0,0 +1,93 @@
1
+ import { z } from "zod";
2
+ export declare const InstanceIdRefreshResultSchema: z.ZodObject<{
3
+ cvm_id: z.ZodNumber;
4
+ identifier: z.ZodString;
5
+ status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
6
+ old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
9
+ verified_with_gateway: z.ZodBoolean;
10
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
13
+ source: "gateway" | "teepod_state" | "teepod_info" | "none";
14
+ cvm_id: number;
15
+ identifier: string;
16
+ verified_with_gateway: boolean;
17
+ old_instance_id?: string | null | undefined;
18
+ new_instance_id?: string | null | undefined;
19
+ reason?: string | null | undefined;
20
+ }, {
21
+ status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
22
+ source: "gateway" | "teepod_state" | "teepod_info" | "none";
23
+ cvm_id: number;
24
+ identifier: string;
25
+ verified_with_gateway: boolean;
26
+ old_instance_id?: string | null | undefined;
27
+ new_instance_id?: string | null | undefined;
28
+ reason?: string | null | undefined;
29
+ }>;
30
+ export type InstanceIdRefreshResult = z.infer<typeof InstanceIdRefreshResultSchema>;
31
+ export declare const RefreshCvmInstanceIdRequestSchema: z.ZodEffects<z.ZodObject<{
32
+ id: z.ZodOptional<z.ZodString>;
33
+ uuid: z.ZodOptional<z.ZodString>;
34
+ app_id: z.ZodOptional<z.ZodString>;
35
+ instance_id: z.ZodOptional<z.ZodString>;
36
+ name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
37
+ } & {
38
+ overwrite: z.ZodOptional<z.ZodBoolean>;
39
+ dry_run: z.ZodOptional<z.ZodBoolean>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ name?: string | undefined;
42
+ id?: string | undefined;
43
+ app_id?: string | undefined;
44
+ instance_id?: string | undefined;
45
+ uuid?: string | undefined;
46
+ overwrite?: boolean | undefined;
47
+ dry_run?: boolean | undefined;
48
+ }, {
49
+ name?: string | undefined;
50
+ id?: string | undefined;
51
+ app_id?: string | undefined;
52
+ instance_id?: string | undefined;
53
+ uuid?: string | undefined;
54
+ overwrite?: boolean | undefined;
55
+ dry_run?: boolean | undefined;
56
+ }>, any, any>;
57
+ export type RefreshCvmInstanceIdRequest = z.infer<typeof RefreshCvmInstanceIdRequestSchema>;
58
+ declare const refreshCvmInstanceId: {
59
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<{
60
+ status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
61
+ source: "gateway" | "teepod_state" | "teepod_info" | "none";
62
+ cvm_id: number;
63
+ identifier: string;
64
+ verified_with_gateway: boolean;
65
+ old_instance_id?: string | null | undefined;
66
+ new_instance_id?: string | null | undefined;
67
+ reason?: string | null | undefined;
68
+ }>;
69
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
70
+ schema: T;
71
+ } | undefined): Promise<z.TypeOf<T>>;
72
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
73
+ schema: false;
74
+ } | undefined): Promise<unknown>;
75
+ }, safeRefreshCvmInstanceId: {
76
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<import("../..").SafeResult<{
77
+ status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
78
+ source: "gateway" | "teepod_state" | "teepod_info" | "none";
79
+ cvm_id: number;
80
+ identifier: string;
81
+ verified_with_gateway: boolean;
82
+ old_instance_id?: string | null | undefined;
83
+ new_instance_id?: string | null | undefined;
84
+ reason?: string | null | undefined;
85
+ }>>;
86
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
87
+ schema: T;
88
+ } | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
89
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
90
+ schema: false;
91
+ } | undefined): Promise<import("../..").SafeResult<unknown>>;
92
+ };
93
+ export { refreshCvmInstanceId, safeRefreshCvmInstanceId };