@phala/cloud 0.6.3 → 0.6.5
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.
- package/dist/actions/cvms/get_cvm_info.d.ts +24 -8
- package/dist/actions/cvms/logs.d.ts +21 -10
- package/dist/actions/index.d.ts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/create-client.d.ts +6 -0
- package/dist/credentials/current_user_v20260121.d.ts +2 -2
- package/dist/index.js +1563 -1179
- package/dist/index.mjs +1559 -1179
- package/dist/types/app_info_v20260121.d.ts +48 -12
- package/dist/types/client.d.ts +3 -3
- package/dist/types/cvm_info_v20260121.d.ts +203 -7
- package/dist/types/version-mappings.d.ts +11 -11
- package/dist/version.d.ts +1 -0
- package/package.json +1 -1
|
@@ -6,8 +6,8 @@ export declare const BillingPeriodSchema: z.ZodEnum<{
|
|
|
6
6
|
}>;
|
|
7
7
|
export type BillingPeriod = z.infer<typeof BillingPeriodSchema>;
|
|
8
8
|
export declare const KmsTypeSchema: z.ZodEnum<{
|
|
9
|
-
legacy: "legacy";
|
|
10
9
|
phala: "phala";
|
|
10
|
+
legacy: "legacy";
|
|
11
11
|
ethereum: "ethereum";
|
|
12
12
|
base: "base";
|
|
13
13
|
}>;
|
|
@@ -80,6 +80,7 @@ export declare const CvmKmsInfoV20260121Schema: z.ZodPipe<z.ZodObject<{
|
|
|
80
80
|
deployer_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
81
|
rpc_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
82
|
encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
84
|
}, z.core.$strip>, z.ZodTransform<{
|
|
84
85
|
chain_id?: number | null | undefined;
|
|
85
86
|
dstack_kms_address?: string | null | undefined;
|
|
@@ -87,6 +88,7 @@ export declare const CvmKmsInfoV20260121Schema: z.ZodPipe<z.ZodObject<{
|
|
|
87
88
|
deployer_address?: string | null | undefined;
|
|
88
89
|
rpc_endpoint?: string | null | undefined;
|
|
89
90
|
encrypted_env_pubkey?: string | null | undefined;
|
|
91
|
+
k256_pubkey?: string | null | undefined;
|
|
90
92
|
}, {
|
|
91
93
|
chain_id?: number | null | undefined;
|
|
92
94
|
dstack_kms_address?: string | null | undefined;
|
|
@@ -94,6 +96,7 @@ export declare const CvmKmsInfoV20260121Schema: z.ZodPipe<z.ZodObject<{
|
|
|
94
96
|
deployer_address?: string | null | undefined;
|
|
95
97
|
rpc_endpoint?: string | null | undefined;
|
|
96
98
|
encrypted_env_pubkey?: string | null | undefined;
|
|
99
|
+
k256_pubkey?: string | null | undefined;
|
|
97
100
|
}>>;
|
|
98
101
|
export type CvmKmsInfoV20260121 = z.infer<typeof CvmKmsInfoV20260121Schema>;
|
|
99
102
|
export declare const CvmProgressInfoV20260121Schema: z.ZodObject<{
|
|
@@ -194,8 +197,8 @@ export declare const CvmInfoV20260121Schema: z.ZodObject<{
|
|
|
194
197
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
195
198
|
}, z.core.$strip>>>;
|
|
196
199
|
kms_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
197
|
-
legacy: "legacy";
|
|
198
200
|
phala: "phala";
|
|
201
|
+
legacy: "legacy";
|
|
199
202
|
ethereum: "ethereum";
|
|
200
203
|
base: "base";
|
|
201
204
|
}>>>;
|
|
@@ -206,6 +209,7 @@ export declare const CvmInfoV20260121Schema: z.ZodObject<{
|
|
|
206
209
|
deployer_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
207
210
|
rpc_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
208
211
|
encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
212
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
209
213
|
}, z.core.$strip>, z.ZodTransform<{
|
|
210
214
|
chain_id?: number | null | undefined;
|
|
211
215
|
dstack_kms_address?: string | null | undefined;
|
|
@@ -213,6 +217,7 @@ export declare const CvmInfoV20260121Schema: z.ZodObject<{
|
|
|
213
217
|
deployer_address?: string | null | undefined;
|
|
214
218
|
rpc_endpoint?: string | null | undefined;
|
|
215
219
|
encrypted_env_pubkey?: string | null | undefined;
|
|
220
|
+
k256_pubkey?: string | null | undefined;
|
|
216
221
|
}, {
|
|
217
222
|
chain_id?: number | null | undefined;
|
|
218
223
|
dstack_kms_address?: string | null | undefined;
|
|
@@ -220,6 +225,7 @@ export declare const CvmInfoV20260121Schema: z.ZodObject<{
|
|
|
220
225
|
deployer_address?: string | null | undefined;
|
|
221
226
|
rpc_endpoint?: string | null | undefined;
|
|
222
227
|
encrypted_env_pubkey?: string | null | undefined;
|
|
228
|
+
k256_pubkey?: string | null | undefined;
|
|
223
229
|
}>>>>;
|
|
224
230
|
status: z.ZodString;
|
|
225
231
|
in_progress: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -337,8 +343,8 @@ export declare const CvmInfoV20260522Schema: z.ZodObject<{
|
|
|
337
343
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
338
344
|
}, z.core.$strip>>>;
|
|
339
345
|
kms_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
340
|
-
legacy: "legacy";
|
|
341
346
|
phala: "phala";
|
|
347
|
+
legacy: "legacy";
|
|
342
348
|
ethereum: "ethereum";
|
|
343
349
|
base: "base";
|
|
344
350
|
}>>>;
|
|
@@ -349,6 +355,7 @@ export declare const CvmInfoV20260522Schema: z.ZodObject<{
|
|
|
349
355
|
deployer_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
350
356
|
rpc_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
351
357
|
encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
358
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
352
359
|
}, z.core.$strip>, z.ZodTransform<{
|
|
353
360
|
chain_id?: number | null | undefined;
|
|
354
361
|
dstack_kms_address?: string | null | undefined;
|
|
@@ -356,6 +363,7 @@ export declare const CvmInfoV20260522Schema: z.ZodObject<{
|
|
|
356
363
|
deployer_address?: string | null | undefined;
|
|
357
364
|
rpc_endpoint?: string | null | undefined;
|
|
358
365
|
encrypted_env_pubkey?: string | null | undefined;
|
|
366
|
+
k256_pubkey?: string | null | undefined;
|
|
359
367
|
}, {
|
|
360
368
|
chain_id?: number | null | undefined;
|
|
361
369
|
dstack_kms_address?: string | null | undefined;
|
|
@@ -363,6 +371,7 @@ export declare const CvmInfoV20260522Schema: z.ZodObject<{
|
|
|
363
371
|
deployer_address?: string | null | undefined;
|
|
364
372
|
rpc_endpoint?: string | null | undefined;
|
|
365
373
|
encrypted_env_pubkey?: string | null | undefined;
|
|
374
|
+
k256_pubkey?: string | null | undefined;
|
|
366
375
|
}>>>>;
|
|
367
376
|
status: z.ZodString;
|
|
368
377
|
in_progress: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -482,8 +491,8 @@ export declare const CvmInfoDetailV20260121Schema: z.ZodObject<{
|
|
|
482
491
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
483
492
|
}, z.core.$strip>>>;
|
|
484
493
|
kms_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
485
|
-
legacy: "legacy";
|
|
486
494
|
phala: "phala";
|
|
495
|
+
legacy: "legacy";
|
|
487
496
|
ethereum: "ethereum";
|
|
488
497
|
base: "base";
|
|
489
498
|
}>>>;
|
|
@@ -494,6 +503,7 @@ export declare const CvmInfoDetailV20260121Schema: z.ZodObject<{
|
|
|
494
503
|
deployer_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
495
504
|
rpc_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
496
505
|
encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
506
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
497
507
|
}, z.core.$strip>, z.ZodTransform<{
|
|
498
508
|
chain_id?: number | null | undefined;
|
|
499
509
|
dstack_kms_address?: string | null | undefined;
|
|
@@ -501,6 +511,7 @@ export declare const CvmInfoDetailV20260121Schema: z.ZodObject<{
|
|
|
501
511
|
deployer_address?: string | null | undefined;
|
|
502
512
|
rpc_endpoint?: string | null | undefined;
|
|
503
513
|
encrypted_env_pubkey?: string | null | undefined;
|
|
514
|
+
k256_pubkey?: string | null | undefined;
|
|
504
515
|
}, {
|
|
505
516
|
chain_id?: number | null | undefined;
|
|
506
517
|
dstack_kms_address?: string | null | undefined;
|
|
@@ -508,6 +519,7 @@ export declare const CvmInfoDetailV20260121Schema: z.ZodObject<{
|
|
|
508
519
|
deployer_address?: string | null | undefined;
|
|
509
520
|
rpc_endpoint?: string | null | undefined;
|
|
510
521
|
encrypted_env_pubkey?: string | null | undefined;
|
|
522
|
+
k256_pubkey?: string | null | undefined;
|
|
511
523
|
}>>>>;
|
|
512
524
|
status: z.ZodString;
|
|
513
525
|
in_progress: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -626,8 +638,8 @@ export declare const CvmInfoDetailV20260522Schema: z.ZodObject<{
|
|
|
626
638
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
627
639
|
}, z.core.$strip>>>;
|
|
628
640
|
kms_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
629
|
-
legacy: "legacy";
|
|
630
641
|
phala: "phala";
|
|
642
|
+
legacy: "legacy";
|
|
631
643
|
ethereum: "ethereum";
|
|
632
644
|
base: "base";
|
|
633
645
|
}>>>;
|
|
@@ -638,6 +650,7 @@ export declare const CvmInfoDetailV20260522Schema: z.ZodObject<{
|
|
|
638
650
|
deployer_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
639
651
|
rpc_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
640
652
|
encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
653
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
641
654
|
}, z.core.$strip>, z.ZodTransform<{
|
|
642
655
|
chain_id?: number | null | undefined;
|
|
643
656
|
dstack_kms_address?: string | null | undefined;
|
|
@@ -645,6 +658,7 @@ export declare const CvmInfoDetailV20260522Schema: z.ZodObject<{
|
|
|
645
658
|
deployer_address?: string | null | undefined;
|
|
646
659
|
rpc_endpoint?: string | null | undefined;
|
|
647
660
|
encrypted_env_pubkey?: string | null | undefined;
|
|
661
|
+
k256_pubkey?: string | null | undefined;
|
|
648
662
|
}, {
|
|
649
663
|
chain_id?: number | null | undefined;
|
|
650
664
|
dstack_kms_address?: string | null | undefined;
|
|
@@ -652,6 +666,7 @@ export declare const CvmInfoDetailV20260522Schema: z.ZodObject<{
|
|
|
652
666
|
deployer_address?: string | null | undefined;
|
|
653
667
|
rpc_endpoint?: string | null | undefined;
|
|
654
668
|
encrypted_env_pubkey?: string | null | undefined;
|
|
669
|
+
k256_pubkey?: string | null | undefined;
|
|
655
670
|
}>>>>;
|
|
656
671
|
status: z.ZodString;
|
|
657
672
|
in_progress: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -731,6 +746,180 @@ export declare const CvmInfoDetailV20260522Schema: z.ZodObject<{
|
|
|
731
746
|
compose_file: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>>>;
|
|
732
747
|
}, z.core.$strip>;
|
|
733
748
|
export type CvmInfoDetailV20260522 = z.infer<typeof CvmInfoDetailV20260522Schema>;
|
|
749
|
+
export declare const CvmInfoDetailV20261111Schema: z.ZodObject<{
|
|
750
|
+
name: z.ZodString;
|
|
751
|
+
app_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
752
|
+
vm_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
753
|
+
instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
754
|
+
node_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
755
|
+
object_type: z.ZodLiteral<"node">;
|
|
756
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
757
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
758
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
759
|
+
device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
760
|
+
device_ids: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
761
|
+
device_id: z.ZodString;
|
|
762
|
+
algorithm_version: z.ZodString;
|
|
763
|
+
enabled: z.ZodBoolean;
|
|
764
|
+
}, z.core.$strip>>>;
|
|
765
|
+
ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
766
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
767
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
768
|
+
}, z.core.$strip>>>;
|
|
769
|
+
os: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
770
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
771
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
772
|
+
is_dev: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
773
|
+
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
774
|
+
}, z.core.$strip>>>;
|
|
775
|
+
kms_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
776
|
+
phala: "phala";
|
|
777
|
+
legacy: "legacy";
|
|
778
|
+
ethereum: "ethereum";
|
|
779
|
+
base: "base";
|
|
780
|
+
}>>>;
|
|
781
|
+
kms_info: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
782
|
+
chain_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
783
|
+
dstack_kms_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
784
|
+
dstack_app_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
785
|
+
deployer_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
786
|
+
rpc_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
787
|
+
encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
788
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
789
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
790
|
+
chain_id?: number | null | undefined;
|
|
791
|
+
dstack_kms_address?: string | null | undefined;
|
|
792
|
+
dstack_app_address?: string | null | undefined;
|
|
793
|
+
deployer_address?: string | null | undefined;
|
|
794
|
+
rpc_endpoint?: string | null | undefined;
|
|
795
|
+
encrypted_env_pubkey?: string | null | undefined;
|
|
796
|
+
k256_pubkey?: string | null | undefined;
|
|
797
|
+
}, {
|
|
798
|
+
chain_id?: number | null | undefined;
|
|
799
|
+
dstack_kms_address?: string | null | undefined;
|
|
800
|
+
dstack_app_address?: string | null | undefined;
|
|
801
|
+
deployer_address?: string | null | undefined;
|
|
802
|
+
rpc_endpoint?: string | null | undefined;
|
|
803
|
+
encrypted_env_pubkey?: string | null | undefined;
|
|
804
|
+
k256_pubkey?: string | null | undefined;
|
|
805
|
+
}>>>>;
|
|
806
|
+
status: z.ZodString;
|
|
807
|
+
in_progress: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
808
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
809
|
+
target: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
810
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
811
|
+
correlation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
812
|
+
}, z.core.$strip>>>;
|
|
813
|
+
compose_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
814
|
+
docker_compose_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
815
|
+
pre_launch_script_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
816
|
+
gateway: z.ZodObject<{
|
|
817
|
+
base_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
818
|
+
cname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
819
|
+
}, z.core.$strip>;
|
|
820
|
+
logs: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
821
|
+
serial: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
822
|
+
stdout: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
823
|
+
stderr: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
824
|
+
container_log_base: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
825
|
+
auth_query: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
826
|
+
}, z.core.$strip>>>;
|
|
827
|
+
services: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
828
|
+
endpoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
829
|
+
app: z.ZodString;
|
|
830
|
+
instance: z.ZodString;
|
|
831
|
+
}, z.core.$strip>>>>;
|
|
832
|
+
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
833
|
+
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
834
|
+
public_tcbinfo: z.ZodOptional<z.ZodBoolean>;
|
|
835
|
+
gateway_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
836
|
+
secure_time: z.ZodOptional<z.ZodBoolean>;
|
|
837
|
+
managed_env: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
838
|
+
listed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
839
|
+
storage_fs: z.ZodOptional<z.ZodString>;
|
|
840
|
+
workspace: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
841
|
+
object_type: z.ZodLiteral<"workspace">;
|
|
842
|
+
id: z.ZodString;
|
|
843
|
+
name: z.ZodString;
|
|
844
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
845
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
846
|
+
}, z.core.$strip>>>;
|
|
847
|
+
creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
848
|
+
object_type: z.ZodLiteral<"user">;
|
|
849
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
850
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
851
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
852
|
+
}, z.core.$strip>>>;
|
|
853
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
854
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
855
|
+
project_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
856
|
+
hourly_rate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
857
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
858
|
+
compute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
859
|
+
disk: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
860
|
+
}, z.core.$strip>>>;
|
|
861
|
+
billing_interval: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
862
|
+
gpu_rental_order: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
863
|
+
order_id: z.ZodString;
|
|
864
|
+
status: z.ZodString;
|
|
865
|
+
pricing_plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
866
|
+
commitment_days: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
867
|
+
auto_renew: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
868
|
+
expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
869
|
+
renewal_in_progress: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
870
|
+
renewal_next_attempt_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
871
|
+
agreed_hourly_rate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
872
|
+
hourly_billing_start_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
873
|
+
activated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
874
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
875
|
+
cancelled_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
876
|
+
decoupled_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
877
|
+
sku_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
878
|
+
sku_display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
879
|
+
}, z.core.$strip>>>;
|
|
880
|
+
id: z.ZodString;
|
|
881
|
+
compose_file: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>>>;
|
|
882
|
+
resource: z.ZodObject<{
|
|
883
|
+
instance_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
884
|
+
vcpu: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
885
|
+
memory_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
886
|
+
disk_in_gb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
887
|
+
gpus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
888
|
+
compute_billing_price: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
889
|
+
billing_period: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
890
|
+
skip: "skip";
|
|
891
|
+
hourly: "hourly";
|
|
892
|
+
monthly: "monthly";
|
|
893
|
+
}>>>;
|
|
894
|
+
memory_in_mb: z.ZodNumber;
|
|
895
|
+
}, z.core.$strip>;
|
|
896
|
+
gpu: z.ZodOptional<z.ZodObject<{
|
|
897
|
+
product_id: z.ZodNullable<z.ZodString>;
|
|
898
|
+
gpus: z.ZodNumber;
|
|
899
|
+
cc_mode: z.ZodObject<{
|
|
900
|
+
expected: z.ZodEnum<{
|
|
901
|
+
on: "on";
|
|
902
|
+
devtools: "devtools";
|
|
903
|
+
}>;
|
|
904
|
+
}, z.core.$strip>;
|
|
905
|
+
}, z.core.$strip>>;
|
|
906
|
+
dapp_dashboard_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
907
|
+
syslog_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
908
|
+
}, z.core.$strip>;
|
|
909
|
+
type CvmInfoDetailV20261111Inferred = z.infer<typeof CvmInfoDetailV20261111Schema>;
|
|
910
|
+
export type CvmInfoDetailV20261111 = Omit<CvmInfoDetailV20261111Inferred, "resource"> & {
|
|
911
|
+
resource: Omit<CvmInfoDetailV20261111Inferred["resource"], "memory_in_gb"> & {
|
|
912
|
+
/** @deprecated Use memory_in_mb instead. */
|
|
913
|
+
memory_in_gb?: number | null;
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
export declare const CvmGpuStatusSchema: z.ZodObject<{
|
|
917
|
+
observed: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
918
|
+
slot: z.ZodString;
|
|
919
|
+
cc_mode: z.ZodString;
|
|
920
|
+
}, z.core.$strip>>>;
|
|
921
|
+
}, z.core.$strip>;
|
|
922
|
+
export type CvmGpuStatus = z.infer<typeof CvmGpuStatusSchema>;
|
|
734
923
|
export declare const PaginatedCvmInfosV20260121Schema: z.ZodObject<{
|
|
735
924
|
items: z.ZodArray<z.ZodObject<{
|
|
736
925
|
id: z.ZodString;
|
|
@@ -773,8 +962,8 @@ export declare const PaginatedCvmInfosV20260121Schema: z.ZodObject<{
|
|
|
773
962
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
774
963
|
}, z.core.$strip>>>;
|
|
775
964
|
kms_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
776
|
-
legacy: "legacy";
|
|
777
965
|
phala: "phala";
|
|
966
|
+
legacy: "legacy";
|
|
778
967
|
ethereum: "ethereum";
|
|
779
968
|
base: "base";
|
|
780
969
|
}>>>;
|
|
@@ -785,6 +974,7 @@ export declare const PaginatedCvmInfosV20260121Schema: z.ZodObject<{
|
|
|
785
974
|
deployer_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
786
975
|
rpc_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
787
976
|
encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
977
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
788
978
|
}, z.core.$strip>, z.ZodTransform<{
|
|
789
979
|
chain_id?: number | null | undefined;
|
|
790
980
|
dstack_kms_address?: string | null | undefined;
|
|
@@ -792,6 +982,7 @@ export declare const PaginatedCvmInfosV20260121Schema: z.ZodObject<{
|
|
|
792
982
|
deployer_address?: string | null | undefined;
|
|
793
983
|
rpc_endpoint?: string | null | undefined;
|
|
794
984
|
encrypted_env_pubkey?: string | null | undefined;
|
|
985
|
+
k256_pubkey?: string | null | undefined;
|
|
795
986
|
}, {
|
|
796
987
|
chain_id?: number | null | undefined;
|
|
797
988
|
dstack_kms_address?: string | null | undefined;
|
|
@@ -799,6 +990,7 @@ export declare const PaginatedCvmInfosV20260121Schema: z.ZodObject<{
|
|
|
799
990
|
deployer_address?: string | null | undefined;
|
|
800
991
|
rpc_endpoint?: string | null | undefined;
|
|
801
992
|
encrypted_env_pubkey?: string | null | undefined;
|
|
993
|
+
k256_pubkey?: string | null | undefined;
|
|
802
994
|
}>>>>;
|
|
803
995
|
status: z.ZodString;
|
|
804
996
|
in_progress: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -926,8 +1118,8 @@ export declare const PaginatedCvmInfosV20260522Schema: z.ZodObject<{
|
|
|
926
1118
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
927
1119
|
}, z.core.$strip>>>;
|
|
928
1120
|
kms_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
929
|
-
legacy: "legacy";
|
|
930
1121
|
phala: "phala";
|
|
1122
|
+
legacy: "legacy";
|
|
931
1123
|
ethereum: "ethereum";
|
|
932
1124
|
base: "base";
|
|
933
1125
|
}>>>;
|
|
@@ -938,6 +1130,7 @@ export declare const PaginatedCvmInfosV20260522Schema: z.ZodObject<{
|
|
|
938
1130
|
deployer_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
939
1131
|
rpc_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
940
1132
|
encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1133
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
941
1134
|
}, z.core.$strip>, z.ZodTransform<{
|
|
942
1135
|
chain_id?: number | null | undefined;
|
|
943
1136
|
dstack_kms_address?: string | null | undefined;
|
|
@@ -945,6 +1138,7 @@ export declare const PaginatedCvmInfosV20260522Schema: z.ZodObject<{
|
|
|
945
1138
|
deployer_address?: string | null | undefined;
|
|
946
1139
|
rpc_endpoint?: string | null | undefined;
|
|
947
1140
|
encrypted_env_pubkey?: string | null | undefined;
|
|
1141
|
+
k256_pubkey?: string | null | undefined;
|
|
948
1142
|
}, {
|
|
949
1143
|
chain_id?: number | null | undefined;
|
|
950
1144
|
dstack_kms_address?: string | null | undefined;
|
|
@@ -952,6 +1146,7 @@ export declare const PaginatedCvmInfosV20260522Schema: z.ZodObject<{
|
|
|
952
1146
|
deployer_address?: string | null | undefined;
|
|
953
1147
|
rpc_endpoint?: string | null | undefined;
|
|
954
1148
|
encrypted_env_pubkey?: string | null | undefined;
|
|
1149
|
+
k256_pubkey?: string | null | undefined;
|
|
955
1150
|
}>>>>;
|
|
956
1151
|
status: z.ZodString;
|
|
957
1152
|
in_progress: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -1031,3 +1226,4 @@ export declare const PaginatedCvmInfosV20260522Schema: z.ZodObject<{
|
|
|
1031
1226
|
}, z.core.$strip>>;
|
|
1032
1227
|
}, z.core.$strip>;
|
|
1033
1228
|
export type PaginatedCvmInfosV20260522 = z.infer<typeof PaginatedCvmInfosV20260522Schema>;
|
|
1229
|
+
export {};
|
|
@@ -5,44 +5,44 @@
|
|
|
5
5
|
* corresponding response types, enabling TypeScript to infer the correct
|
|
6
6
|
* types based on the client's API version.
|
|
7
7
|
*/
|
|
8
|
-
import type { CurrentUserV20260121 } from "../credentials/current_user_v20260121";
|
|
9
|
-
import type { CurrentUserV20251028 } from "../credentials/current_user_v20251028";
|
|
10
8
|
import type { AppCvmsBatchIsAllowedResponseV20260121, AppCvmsBatchIsAllowedResponseV20260522 } from "../actions/apps/check_app_cvms_is_allowed";
|
|
11
9
|
import type { DeviceAllowlistResponseV20260121, DeviceAllowlistResponseV20260522 } from "../actions/apps/get_app_device_allowlist";
|
|
12
10
|
import type { IsAllowedResultV20260121, IsAllowedResultV20260522 } from "../actions/cvms/check_cvm_is_allowed";
|
|
11
|
+
import type { CommitCvmProvisionV20260121, CommitCvmProvisionV20260522 } from "../actions/cvms/commit_cvm_provision";
|
|
13
12
|
import type { InstanceIdRefreshResultV20260121, InstanceIdRefreshResultV20260522 } from "../actions/cvms/refresh_cvm_instance_id";
|
|
14
13
|
import type { RefreshCvmInstanceIdsResponseV20260121, RefreshCvmInstanceIdsResponseV20260522 } from "../actions/cvms/refresh_cvm_instance_ids";
|
|
15
|
-
import type {
|
|
14
|
+
import type { CurrentUserV20251028 } from "../credentials/current_user_v20251028";
|
|
15
|
+
import type { CurrentUserV20260121 } from "../credentials/current_user_v20260121";
|
|
16
16
|
import type { DstackAppListResponseV20251028, DstackAppWithCvmResponseV20251028 } from "./app_info_v20251028";
|
|
17
17
|
import type { DstackAppListResponseV20260121, DstackAppListResponseV20260522, DstackAppWithCvmResponseV20260121, DstackAppWithCvmResponseV20260522 } from "./app_info_v20260121";
|
|
18
18
|
import type { ApiVersion } from "./client";
|
|
19
|
-
import type { CvmDetailV20251028, CvmInfoV20251028, PaginatedCvmInfosV20251028 } from "./cvm_info_v20251028";
|
|
20
19
|
import type { VMForVersion } from "./cvm_info";
|
|
21
|
-
import type {
|
|
20
|
+
import type { CvmDetailV20251028, CvmInfoV20251028, PaginatedCvmInfosV20251028 } from "./cvm_info_v20251028";
|
|
21
|
+
import type { CvmInfoDetailV20260121, CvmInfoDetailV20260522, CvmInfoDetailV20261111, CvmInfoV20260121, CvmInfoV20260522, PaginatedCvmInfosV20260121, PaginatedCvmInfosV20260522 } from "./cvm_info_v20260121";
|
|
22
22
|
/**
|
|
23
23
|
* Maps API version to the auth/me response type
|
|
24
24
|
*/
|
|
25
|
-
export type GetCurrentUserResponse<V extends ApiVersion> = V extends "2026-05-22" | "2026-06-23" ? CurrentUserV20260121 : V extends "2026-01-21" ? CurrentUserV20260121 : V extends "2025-10-28" ? CurrentUserV20251028 : CurrentUserV20260121;
|
|
25
|
+
export type GetCurrentUserResponse<V extends ApiVersion> = V extends "2026-05-22" | "2026-06-23" | "2026-11-11" ? CurrentUserV20260121 : V extends "2026-01-21" ? CurrentUserV20260121 : V extends "2025-10-28" ? CurrentUserV20251028 : CurrentUserV20260121;
|
|
26
26
|
/**
|
|
27
27
|
* Maps API version to the paginated CVM list response type
|
|
28
28
|
*/
|
|
29
|
-
export type GetCvmListResponse<V extends ApiVersion> = V extends "2026-05-22" | "2026-06-23" ? PaginatedCvmInfosV20260522 : V extends "2026-01-21" ? PaginatedCvmInfosV20260121 : V extends "2025-10-28" ? PaginatedCvmInfosV20251028 : PaginatedCvmInfosV20260121;
|
|
29
|
+
export type GetCvmListResponse<V extends ApiVersion> = V extends "2026-05-22" | "2026-06-23" | "2026-11-11" ? PaginatedCvmInfosV20260522 : V extends "2026-01-21" ? PaginatedCvmInfosV20260121 : V extends "2025-10-28" ? PaginatedCvmInfosV20251028 : PaginatedCvmInfosV20260121;
|
|
30
30
|
/**
|
|
31
31
|
* Maps API version to the CVM info detail response type
|
|
32
32
|
*/
|
|
33
|
-
export type GetCvmInfoResponse<V extends ApiVersion> = V extends "2026-05-22" | "2026-06-23" ? CvmInfoDetailV20260522 : V extends "2026-01-21" ? CvmInfoDetailV20260121 : V extends "2025-10-28" ? CvmDetailV20251028 : CvmInfoDetailV20260121;
|
|
33
|
+
export type GetCvmInfoResponse<V extends ApiVersion> = V extends "2026-11-11" ? CvmInfoDetailV20261111 : V extends "2026-05-22" | "2026-06-23" ? CvmInfoDetailV20260522 : V extends "2026-01-21" ? CvmInfoDetailV20260121 : V extends "2025-10-28" ? CvmDetailV20251028 : CvmInfoDetailV20260121;
|
|
34
34
|
/**
|
|
35
35
|
* Maps API version to the app list response type
|
|
36
36
|
*/
|
|
37
|
-
export type GetAppListResponse<V extends ApiVersion> = V extends "2026-05-22" | "2026-06-23" ? DstackAppListResponseV20260522 : V extends "2026-01-21" ? DstackAppListResponseV20260121 : V extends "2025-10-28" ? DstackAppListResponseV20251028 : DstackAppListResponseV20260121;
|
|
37
|
+
export type GetAppListResponse<V extends ApiVersion> = V extends "2026-05-22" | "2026-06-23" | "2026-11-11" ? DstackAppListResponseV20260522 : V extends "2026-01-21" ? DstackAppListResponseV20260121 : V extends "2025-10-28" ? DstackAppListResponseV20251028 : DstackAppListResponseV20260121;
|
|
38
38
|
/**
|
|
39
39
|
* Maps API version to the app info response type
|
|
40
40
|
*/
|
|
41
|
-
export type GetAppInfoResponse<V extends ApiVersion> = V extends "2026-05-22" | "2026-06-23" ? DstackAppWithCvmResponseV20260522 : V extends "2026-01-21" ? DstackAppWithCvmResponseV20260121 : V extends "2025-10-28" ? DstackAppWithCvmResponseV20251028 : DstackAppWithCvmResponseV20260121;
|
|
41
|
+
export type GetAppInfoResponse<V extends ApiVersion> = V extends "2026-05-22" | "2026-06-23" | "2026-11-11" ? DstackAppWithCvmResponseV20260522 : V extends "2026-01-21" ? DstackAppWithCvmResponseV20260121 : V extends "2025-10-28" ? DstackAppWithCvmResponseV20251028 : DstackAppWithCvmResponseV20260121;
|
|
42
42
|
/**
|
|
43
43
|
* Maps API version to the app CVMs list response type
|
|
44
44
|
*/
|
|
45
|
-
export type GetAppCvmsResponse<V extends ApiVersion> = V extends "2026-05-22" | "2026-06-23" ? CvmInfoV20260522[] : V extends "2026-01-21" ? CvmInfoV20260121[] : V extends "2025-10-28" ? CvmInfoV20251028[] : CvmInfoV20260121[];
|
|
45
|
+
export type GetAppCvmsResponse<V extends ApiVersion> = V extends "2026-05-22" | "2026-06-23" | "2026-11-11" ? CvmInfoV20260522[] : V extends "2026-01-21" ? CvmInfoV20260121[] : V extends "2025-10-28" ? CvmInfoV20251028[] : CvmInfoV20260121[];
|
|
46
46
|
/**
|
|
47
47
|
* Maps API version to the CVM lifecycle action response type (start/stop/restart/shutdown/replicate)
|
|
48
48
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sdkVersion: string;
|