@phala/cloud 0.3.0 → 0.4.0
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/apps/get_app_attestation.d.ts +17 -7
- package/dist/actions/cvms/commit_cvm_provision.d.ts +6 -0
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +156 -12
- package/dist/actions/cvms/get_cvm_list.d.ts +8 -10
- package/dist/actions/cvms/get_cvm_status_batch.d.ts +247 -24
- package/dist/actions/cvms/patch_cvm.d.ts +16 -0
- package/dist/actions/cvms/provision_cvm.d.ts +900 -51
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +215 -5
- package/dist/actions/cvms/update_cvm_envs.d.ts +16 -0
- package/dist/actions/cvms/update_cvm_resources.d.ts +24 -2
- package/dist/actions/cvms/update_cvm_visibility.d.ts +2 -0
- package/dist/actions/cvms/update_docker_compose.d.ts +31 -0
- package/dist/actions/cvms/update_prelaunch_script.d.ts +31 -0
- package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +16 -0
- package/dist/actions/get_available_nodes.d.ts +259 -0
- package/dist/actions/get_cvm_create_resources.d.ts +351 -0
- package/dist/actions/index.d.ts +6 -2
- package/dist/actions/kms/get_kms_contract.d.ts +59 -0
- package/dist/actions/kms/get_kms_list.d.ts +15 -0
- package/dist/actions/kms/get_kms_onchain_detail.d.ts +54 -0
- package/dist/actions/kms/list_kms_contract_nodes.d.ts +98 -0
- package/dist/actions/kms/list_kms_contracts.d.ts +152 -0
- package/dist/actions/workspaces/get_workspace.d.ts +4 -0
- package/dist/actions/workspaces/get_workspace_nodes.d.ts +161 -0
- package/dist/actions/workspaces/list_workspaces.d.ts +126 -0
- package/dist/client.d.ts +4 -1
- package/dist/create-client.d.ts +48 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1527 -1207
- package/dist/index.mjs +1452 -1151
- package/dist/types/app_compose.d.ts +50 -5
- package/dist/types/app_info_v20251028.d.ts +44 -0
- package/dist/types/app_info_v20260121.d.ts +2324 -0
- package/dist/types/client.d.ts +2 -2
- package/dist/types/cvm_info_v20251028.d.ts +23 -0
- package/dist/types/cvm_info_v20260121.d.ts +977 -0
- package/dist/types/kms_contract.d.ts +64 -0
- package/dist/types/kms_info.d.ts +8 -0
- package/dist/types/version-mappings.d.ts +6 -6
- package/dist/utils/error_codes.d.ts +1 -0
- package/dist/utils/errors.d.ts +30 -1
- package/dist/utils/get_compose_hash.d.ts +24 -0
- package/dist/utils/get_mr_config_id.d.ts +55 -0
- package/dist/utils/index.d.ts +3 -2
- package/package.json +3 -3
package/dist/types/client.d.ts
CHANGED
|
@@ -4,11 +4,11 @@ import type { PhalaCloudError } from "../utils/errors";
|
|
|
4
4
|
/**
|
|
5
5
|
* Supported API versions
|
|
6
6
|
*/
|
|
7
|
-
export type ApiVersion = "2025-10-28" | "2026-01-21" | "2026-05-22";
|
|
7
|
+
export type ApiVersion = "2025-10-28" | "2026-01-21" | "2026-05-22" | "2026-06-23";
|
|
8
8
|
/**
|
|
9
9
|
* Default API version (latest stable)
|
|
10
10
|
*/
|
|
11
|
-
export type DefaultApiVersion = "2026-
|
|
11
|
+
export type DefaultApiVersion = "2026-06-23";
|
|
12
12
|
/**
|
|
13
13
|
* Full HTTP response including status, headers, and parsed body
|
|
14
14
|
*/
|
|
@@ -186,6 +186,7 @@ export declare const CvmInfoV20251028Schema: z.ZodObject<{
|
|
|
186
186
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
187
187
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
188
188
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
189
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
189
190
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
190
191
|
id: z.ZodString;
|
|
191
192
|
slug: z.ZodNullable<z.ZodString>;
|
|
@@ -194,6 +195,7 @@ export declare const CvmInfoV20251028Schema: z.ZodObject<{
|
|
|
194
195
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
195
196
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
196
197
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
198
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
199
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
198
200
|
id: z.ZodString;
|
|
199
201
|
slug: z.ZodNullable<z.ZodString>;
|
|
@@ -202,6 +204,7 @@ export declare const CvmInfoV20251028Schema: z.ZodObject<{
|
|
|
202
204
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
203
205
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
204
206
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
207
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
205
208
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
206
209
|
id: z.ZodString;
|
|
207
210
|
slug: z.ZodNullable<z.ZodString>;
|
|
@@ -210,6 +213,7 @@ export declare const CvmInfoV20251028Schema: z.ZodObject<{
|
|
|
210
213
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
211
214
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
212
215
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
216
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
213
217
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
214
218
|
id: z.ZodString;
|
|
215
219
|
slug: z.ZodNullable<z.ZodString>;
|
|
@@ -218,6 +222,7 @@ export declare const CvmInfoV20251028Schema: z.ZodObject<{
|
|
|
218
222
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
219
223
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
220
224
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
225
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
221
226
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
222
227
|
vcpu: z.ZodNullable<z.ZodNumber>;
|
|
223
228
|
memory: z.ZodNullable<z.ZodNumber>;
|
|
@@ -296,6 +301,7 @@ export declare const CvmInfoV20251028Schema: z.ZodObject<{
|
|
|
296
301
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
297
302
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
298
303
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
304
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
299
305
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
300
306
|
gateway_domain: string | null;
|
|
301
307
|
public_urls: {
|
|
@@ -352,6 +358,7 @@ export declare const CvmInfoV20251028Schema: z.ZodObject<{
|
|
|
352
358
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
353
359
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
354
360
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
361
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
355
362
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
356
363
|
gateway_domain: string | null;
|
|
357
364
|
public_urls: {
|
|
@@ -413,6 +420,7 @@ export declare const CvmDetailV20251028Schema: z.ZodObject<{
|
|
|
413
420
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
414
421
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
415
422
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
423
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
416
424
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
417
425
|
id: z.ZodString;
|
|
418
426
|
slug: z.ZodNullable<z.ZodString>;
|
|
@@ -421,6 +429,7 @@ export declare const CvmDetailV20251028Schema: z.ZodObject<{
|
|
|
421
429
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
422
430
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
423
431
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
432
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
424
433
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
425
434
|
id: z.ZodString;
|
|
426
435
|
slug: z.ZodNullable<z.ZodString>;
|
|
@@ -429,6 +438,7 @@ export declare const CvmDetailV20251028Schema: z.ZodObject<{
|
|
|
429
438
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
430
439
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
431
440
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
441
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
432
442
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
433
443
|
id: z.ZodString;
|
|
434
444
|
slug: z.ZodNullable<z.ZodString>;
|
|
@@ -437,6 +447,7 @@ export declare const CvmDetailV20251028Schema: z.ZodObject<{
|
|
|
437
447
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
438
448
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
439
449
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
450
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
440
451
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
441
452
|
id: z.ZodString;
|
|
442
453
|
slug: z.ZodNullable<z.ZodString>;
|
|
@@ -445,6 +456,7 @@ export declare const CvmDetailV20251028Schema: z.ZodObject<{
|
|
|
445
456
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
446
457
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
447
458
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
459
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
448
460
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
449
461
|
contract_address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
450
462
|
deployer_address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -517,6 +529,7 @@ export declare const CvmDetailV20251028Schema: z.ZodObject<{
|
|
|
517
529
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
518
530
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
519
531
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
532
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
520
533
|
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
521
534
|
gateway_domain?: string | null | undefined;
|
|
522
535
|
machine_info?: {
|
|
@@ -562,6 +575,7 @@ export declare const CvmDetailV20251028Schema: z.ZodObject<{
|
|
|
562
575
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
563
576
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
564
577
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
578
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
565
579
|
}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
566
580
|
gateway_domain?: string | null | undefined;
|
|
567
581
|
public_urls?: {
|
|
@@ -667,6 +681,7 @@ export declare const PaginatedCvmInfosV20251028Schema: z.ZodObject<{
|
|
|
667
681
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
668
682
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
669
683
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
684
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
670
685
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
671
686
|
id: z.ZodString;
|
|
672
687
|
slug: z.ZodNullable<z.ZodString>;
|
|
@@ -675,6 +690,7 @@ export declare const PaginatedCvmInfosV20251028Schema: z.ZodObject<{
|
|
|
675
690
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
676
691
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
677
692
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
693
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
678
694
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
679
695
|
id: z.ZodString;
|
|
680
696
|
slug: z.ZodNullable<z.ZodString>;
|
|
@@ -683,6 +699,7 @@ export declare const PaginatedCvmInfosV20251028Schema: z.ZodObject<{
|
|
|
683
699
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
684
700
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
685
701
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
702
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
686
703
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
687
704
|
id: z.ZodString;
|
|
688
705
|
slug: z.ZodNullable<z.ZodString>;
|
|
@@ -691,6 +708,7 @@ export declare const PaginatedCvmInfosV20251028Schema: z.ZodObject<{
|
|
|
691
708
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
692
709
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
693
710
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
711
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
694
712
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
695
713
|
id: z.ZodString;
|
|
696
714
|
slug: z.ZodNullable<z.ZodString>;
|
|
@@ -699,6 +717,7 @@ export declare const PaginatedCvmInfosV20251028Schema: z.ZodObject<{
|
|
|
699
717
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
700
718
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
701
719
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
720
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
702
721
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
703
722
|
vcpu: z.ZodNullable<z.ZodNumber>;
|
|
704
723
|
memory: z.ZodNullable<z.ZodNumber>;
|
|
@@ -777,6 +796,7 @@ export declare const PaginatedCvmInfosV20251028Schema: z.ZodObject<{
|
|
|
777
796
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
778
797
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
779
798
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
799
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
780
800
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
781
801
|
gateway_domain: string | null;
|
|
782
802
|
public_urls: {
|
|
@@ -833,6 +853,7 @@ export declare const PaginatedCvmInfosV20251028Schema: z.ZodObject<{
|
|
|
833
853
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
834
854
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
835
855
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
856
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
836
857
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
837
858
|
gateway_domain: string | null;
|
|
838
859
|
public_urls: {
|
|
@@ -902,6 +923,7 @@ export declare const PaginatedCvmInfosV20251028Schema: z.ZodObject<{
|
|
|
902
923
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
903
924
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
904
925
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
926
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
905
927
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
906
928
|
gateway_domain: string | null;
|
|
907
929
|
public_urls: {
|
|
@@ -964,6 +986,7 @@ export declare const PaginatedCvmInfosV20251028Schema: z.ZodObject<{
|
|
|
964
986
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
965
987
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
966
988
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
989
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
967
990
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
968
991
|
gateway_domain: string | null;
|
|
969
992
|
public_urls: {
|