@phala/cloud 0.2.2 → 0.2.3
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_filter_options.d.ts +42 -0
- package/dist/actions/apps/get_app_list.d.ts +4 -4
- package/dist/actions/apps/get_app_revision_detail.d.ts +6 -6
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +66 -14
- package/dist/actions/cvms/get_cvm_containers_stats.d.ts +4 -4
- package/dist/actions/cvms/provision_cvm.d.ts +110 -10
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +66 -40
- package/dist/actions/cvms/restart_cvm.d.ts +2 -2
- package/dist/actions/cvms/shutdown_cvm.d.ts +2 -2
- package/dist/actions/cvms/start_cvm.d.ts +2 -2
- package/dist/actions/cvms/stop_cvm.d.ts +2 -2
- package/dist/actions/cvms/update_cvm_visibility.d.ts +3 -0
- package/dist/actions/index.d.ts +1 -0
- package/dist/index.js +185 -97
- package/dist/index.mjs +178 -97
- package/dist/types/app_compose.d.ts +34 -1
- package/dist/types/app_info_v20251028.d.ts +113 -0
- package/dist/types/app_info_v20260121.d.ts +96 -0
- package/dist/types/app_revision.d.ts +11 -0
- package/dist/types/cvm_info.d.ts +2 -2
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -7,6 +7,22 @@ export declare const DstackAppFullResponseV20260121Schema: z.ZodObject<{
|
|
|
7
7
|
app_icon_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
8
|
created_at: z.ZodString;
|
|
9
9
|
kms_type: z.ZodString;
|
|
10
|
+
profile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11
|
+
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
custom_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
description?: string | null | undefined;
|
|
17
|
+
display_name?: string | null | undefined;
|
|
18
|
+
avatar_url?: string | null | undefined;
|
|
19
|
+
custom_domain?: string | null | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
description?: string | null | undefined;
|
|
22
|
+
display_name?: string | null | undefined;
|
|
23
|
+
avatar_url?: string | null | undefined;
|
|
24
|
+
custom_domain?: string | null | undefined;
|
|
25
|
+
}>>>;
|
|
10
26
|
current_cvm: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11
27
|
id: z.ZodString;
|
|
12
28
|
name: z.ZodString;
|
|
@@ -738,6 +754,12 @@ export declare const DstackAppFullResponseV20260121Schema: z.ZodObject<{
|
|
|
738
754
|
cvm_count: number;
|
|
739
755
|
app_provision_type?: string | null | undefined;
|
|
740
756
|
app_icon_url?: string | null | undefined;
|
|
757
|
+
profile?: {
|
|
758
|
+
description?: string | null | undefined;
|
|
759
|
+
display_name?: string | null | undefined;
|
|
760
|
+
avatar_url?: string | null | undefined;
|
|
761
|
+
custom_domain?: string | null | undefined;
|
|
762
|
+
} | null | undefined;
|
|
741
763
|
current_cvm?: {
|
|
742
764
|
status: string;
|
|
743
765
|
name: string;
|
|
@@ -821,6 +843,12 @@ export declare const DstackAppFullResponseV20260121Schema: z.ZodObject<{
|
|
|
821
843
|
created_at: string;
|
|
822
844
|
app_provision_type?: string | null | undefined;
|
|
823
845
|
app_icon_url?: string | null | undefined;
|
|
846
|
+
profile?: {
|
|
847
|
+
description?: string | null | undefined;
|
|
848
|
+
display_name?: string | null | undefined;
|
|
849
|
+
avatar_url?: string | null | undefined;
|
|
850
|
+
custom_domain?: string | null | undefined;
|
|
851
|
+
} | null | undefined;
|
|
824
852
|
current_cvm?: {
|
|
825
853
|
status: string;
|
|
826
854
|
name: string;
|
|
@@ -1017,6 +1045,22 @@ export declare const DstackAppWithCvmResponseV20260121Schema: z.ZodUnion<[z.ZodO
|
|
|
1017
1045
|
app_icon_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1018
1046
|
created_at: z.ZodString;
|
|
1019
1047
|
kms_type: z.ZodString;
|
|
1048
|
+
profile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1049
|
+
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1050
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1051
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1052
|
+
custom_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1053
|
+
}, "strip", z.ZodTypeAny, {
|
|
1054
|
+
description?: string | null | undefined;
|
|
1055
|
+
display_name?: string | null | undefined;
|
|
1056
|
+
avatar_url?: string | null | undefined;
|
|
1057
|
+
custom_domain?: string | null | undefined;
|
|
1058
|
+
}, {
|
|
1059
|
+
description?: string | null | undefined;
|
|
1060
|
+
display_name?: string | null | undefined;
|
|
1061
|
+
avatar_url?: string | null | undefined;
|
|
1062
|
+
custom_domain?: string | null | undefined;
|
|
1063
|
+
}>>>;
|
|
1020
1064
|
current_cvm: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1021
1065
|
id: z.ZodString;
|
|
1022
1066
|
name: z.ZodString;
|
|
@@ -1748,6 +1792,12 @@ export declare const DstackAppWithCvmResponseV20260121Schema: z.ZodUnion<[z.ZodO
|
|
|
1748
1792
|
cvm_count: number;
|
|
1749
1793
|
app_provision_type?: string | null | undefined;
|
|
1750
1794
|
app_icon_url?: string | null | undefined;
|
|
1795
|
+
profile?: {
|
|
1796
|
+
description?: string | null | undefined;
|
|
1797
|
+
display_name?: string | null | undefined;
|
|
1798
|
+
avatar_url?: string | null | undefined;
|
|
1799
|
+
custom_domain?: string | null | undefined;
|
|
1800
|
+
} | null | undefined;
|
|
1751
1801
|
current_cvm?: {
|
|
1752
1802
|
status: string;
|
|
1753
1803
|
name: string;
|
|
@@ -1831,6 +1881,12 @@ export declare const DstackAppWithCvmResponseV20260121Schema: z.ZodUnion<[z.ZodO
|
|
|
1831
1881
|
created_at: string;
|
|
1832
1882
|
app_provision_type?: string | null | undefined;
|
|
1833
1883
|
app_icon_url?: string | null | undefined;
|
|
1884
|
+
profile?: {
|
|
1885
|
+
description?: string | null | undefined;
|
|
1886
|
+
display_name?: string | null | undefined;
|
|
1887
|
+
avatar_url?: string | null | undefined;
|
|
1888
|
+
custom_domain?: string | null | undefined;
|
|
1889
|
+
} | null | undefined;
|
|
1834
1890
|
current_cvm?: {
|
|
1835
1891
|
status: string;
|
|
1836
1892
|
name: string;
|
|
@@ -2026,6 +2082,22 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
|
|
|
2026
2082
|
app_icon_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2027
2083
|
created_at: z.ZodString;
|
|
2028
2084
|
kms_type: z.ZodString;
|
|
2085
|
+
profile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2086
|
+
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2087
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2088
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2089
|
+
custom_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2090
|
+
}, "strip", z.ZodTypeAny, {
|
|
2091
|
+
description?: string | null | undefined;
|
|
2092
|
+
display_name?: string | null | undefined;
|
|
2093
|
+
avatar_url?: string | null | undefined;
|
|
2094
|
+
custom_domain?: string | null | undefined;
|
|
2095
|
+
}, {
|
|
2096
|
+
description?: string | null | undefined;
|
|
2097
|
+
display_name?: string | null | undefined;
|
|
2098
|
+
avatar_url?: string | null | undefined;
|
|
2099
|
+
custom_domain?: string | null | undefined;
|
|
2100
|
+
}>>>;
|
|
2029
2101
|
current_cvm: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2030
2102
|
id: z.ZodString;
|
|
2031
2103
|
name: z.ZodString;
|
|
@@ -2757,6 +2829,12 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
|
|
|
2757
2829
|
cvm_count: number;
|
|
2758
2830
|
app_provision_type?: string | null | undefined;
|
|
2759
2831
|
app_icon_url?: string | null | undefined;
|
|
2832
|
+
profile?: {
|
|
2833
|
+
description?: string | null | undefined;
|
|
2834
|
+
display_name?: string | null | undefined;
|
|
2835
|
+
avatar_url?: string | null | undefined;
|
|
2836
|
+
custom_domain?: string | null | undefined;
|
|
2837
|
+
} | null | undefined;
|
|
2760
2838
|
current_cvm?: {
|
|
2761
2839
|
status: string;
|
|
2762
2840
|
name: string;
|
|
@@ -2840,6 +2918,12 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
|
|
|
2840
2918
|
created_at: string;
|
|
2841
2919
|
app_provision_type?: string | null | undefined;
|
|
2842
2920
|
app_icon_url?: string | null | undefined;
|
|
2921
|
+
profile?: {
|
|
2922
|
+
description?: string | null | undefined;
|
|
2923
|
+
display_name?: string | null | undefined;
|
|
2924
|
+
avatar_url?: string | null | undefined;
|
|
2925
|
+
custom_domain?: string | null | undefined;
|
|
2926
|
+
} | null | undefined;
|
|
2843
2927
|
current_cvm?: {
|
|
2844
2928
|
status: string;
|
|
2845
2929
|
name: string;
|
|
@@ -3117,6 +3201,12 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
|
|
|
3117
3201
|
cvm_count: number;
|
|
3118
3202
|
app_provision_type?: string | null | undefined;
|
|
3119
3203
|
app_icon_url?: string | null | undefined;
|
|
3204
|
+
profile?: {
|
|
3205
|
+
description?: string | null | undefined;
|
|
3206
|
+
display_name?: string | null | undefined;
|
|
3207
|
+
avatar_url?: string | null | undefined;
|
|
3208
|
+
custom_domain?: string | null | undefined;
|
|
3209
|
+
} | null | undefined;
|
|
3120
3210
|
current_cvm?: {
|
|
3121
3211
|
status: string;
|
|
3122
3212
|
name: string;
|
|
@@ -3217,6 +3307,12 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
|
|
|
3217
3307
|
created_at: string;
|
|
3218
3308
|
app_provision_type?: string | null | undefined;
|
|
3219
3309
|
app_icon_url?: string | null | undefined;
|
|
3310
|
+
profile?: {
|
|
3311
|
+
description?: string | null | undefined;
|
|
3312
|
+
display_name?: string | null | undefined;
|
|
3313
|
+
avatar_url?: string | null | undefined;
|
|
3314
|
+
custom_domain?: string | null | undefined;
|
|
3315
|
+
} | null | undefined;
|
|
3220
3316
|
current_cvm?: {
|
|
3221
3317
|
status: string;
|
|
3222
3318
|
name: string;
|
|
@@ -20,6 +20,7 @@ export declare const CvmRefSchema: z.ZodObject<{
|
|
|
20
20
|
}>;
|
|
21
21
|
export type CvmRef = z.infer<typeof CvmRefSchema>;
|
|
22
22
|
export declare const AppRevisionResponseSchema: z.ZodObject<{
|
|
23
|
+
revision_id: z.ZodString;
|
|
23
24
|
app_id: z.ZodString;
|
|
24
25
|
vm_uuid: z.ZodString;
|
|
25
26
|
compose_hash: z.ZodString;
|
|
@@ -85,6 +86,7 @@ export declare const AppRevisionResponseSchema: z.ZodObject<{
|
|
|
85
86
|
vm_uuid: string;
|
|
86
87
|
created_at: string;
|
|
87
88
|
compose_hash: string;
|
|
89
|
+
revision_id: string;
|
|
88
90
|
operation_type: string;
|
|
89
91
|
workspace?: {
|
|
90
92
|
name: string;
|
|
@@ -112,6 +114,7 @@ export declare const AppRevisionResponseSchema: z.ZodObject<{
|
|
|
112
114
|
vm_uuid: string;
|
|
113
115
|
created_at: string;
|
|
114
116
|
compose_hash: string;
|
|
117
|
+
revision_id: string;
|
|
115
118
|
operation_type: string;
|
|
116
119
|
workspace?: {
|
|
117
120
|
name: string;
|
|
@@ -137,6 +140,7 @@ export declare const AppRevisionResponseSchema: z.ZodObject<{
|
|
|
137
140
|
}>;
|
|
138
141
|
export type AppRevisionResponse = z.infer<typeof AppRevisionResponseSchema>;
|
|
139
142
|
export declare const AppRevisionDetailResponseSchema: z.ZodObject<{
|
|
143
|
+
revision_id: z.ZodString;
|
|
140
144
|
app_id: z.ZodString;
|
|
141
145
|
vm_uuid: z.ZodString;
|
|
142
146
|
compose_hash: z.ZodString;
|
|
@@ -206,6 +210,7 @@ export declare const AppRevisionDetailResponseSchema: z.ZodObject<{
|
|
|
206
210
|
created_at: string;
|
|
207
211
|
compose_hash: string;
|
|
208
212
|
encrypted_env: string;
|
|
213
|
+
revision_id: string;
|
|
209
214
|
operation_type: string;
|
|
210
215
|
user_config: string;
|
|
211
216
|
workspace?: {
|
|
@@ -236,6 +241,7 @@ export declare const AppRevisionDetailResponseSchema: z.ZodObject<{
|
|
|
236
241
|
created_at: string;
|
|
237
242
|
compose_hash: string;
|
|
238
243
|
encrypted_env: string;
|
|
244
|
+
revision_id: string;
|
|
239
245
|
operation_type: string;
|
|
240
246
|
user_config: string;
|
|
241
247
|
workspace?: {
|
|
@@ -264,6 +270,7 @@ export declare const AppRevisionDetailResponseSchema: z.ZodObject<{
|
|
|
264
270
|
export type AppRevisionDetailResponse = z.infer<typeof AppRevisionDetailResponseSchema>;
|
|
265
271
|
export declare const AppRevisionsResponseSchema: z.ZodObject<{
|
|
266
272
|
revisions: z.ZodArray<z.ZodObject<{
|
|
273
|
+
revision_id: z.ZodString;
|
|
267
274
|
app_id: z.ZodString;
|
|
268
275
|
vm_uuid: z.ZodString;
|
|
269
276
|
compose_hash: z.ZodString;
|
|
@@ -329,6 +336,7 @@ export declare const AppRevisionsResponseSchema: z.ZodObject<{
|
|
|
329
336
|
vm_uuid: string;
|
|
330
337
|
created_at: string;
|
|
331
338
|
compose_hash: string;
|
|
339
|
+
revision_id: string;
|
|
332
340
|
operation_type: string;
|
|
333
341
|
workspace?: {
|
|
334
342
|
name: string;
|
|
@@ -356,6 +364,7 @@ export declare const AppRevisionsResponseSchema: z.ZodObject<{
|
|
|
356
364
|
vm_uuid: string;
|
|
357
365
|
created_at: string;
|
|
358
366
|
compose_hash: string;
|
|
367
|
+
revision_id: string;
|
|
359
368
|
operation_type: string;
|
|
360
369
|
workspace?: {
|
|
361
370
|
name: string;
|
|
@@ -393,6 +402,7 @@ export declare const AppRevisionsResponseSchema: z.ZodObject<{
|
|
|
393
402
|
vm_uuid: string;
|
|
394
403
|
created_at: string;
|
|
395
404
|
compose_hash: string;
|
|
405
|
+
revision_id: string;
|
|
396
406
|
operation_type: string;
|
|
397
407
|
workspace?: {
|
|
398
408
|
name: string;
|
|
@@ -426,6 +436,7 @@ export declare const AppRevisionsResponseSchema: z.ZodObject<{
|
|
|
426
436
|
vm_uuid: string;
|
|
427
437
|
created_at: string;
|
|
428
438
|
compose_hash: string;
|
|
439
|
+
revision_id: string;
|
|
429
440
|
operation_type: string;
|
|
430
441
|
workspace?: {
|
|
431
442
|
name: string;
|
package/dist/types/cvm_info.d.ts
CHANGED
|
@@ -64,9 +64,9 @@ export declare const VMSchema: z.ZodObject<{
|
|
|
64
64
|
} | null | undefined;
|
|
65
65
|
user_id?: number | null | undefined;
|
|
66
66
|
docker_compose_file?: string | null | undefined;
|
|
67
|
+
features?: string[] | null | undefined;
|
|
67
68
|
manifest_version?: number | null | undefined;
|
|
68
69
|
runner?: string | null | undefined;
|
|
69
|
-
features?: string[] | null | undefined;
|
|
70
70
|
}, {
|
|
71
71
|
status: string;
|
|
72
72
|
name: string;
|
|
@@ -90,8 +90,8 @@ export declare const VMSchema: z.ZodObject<{
|
|
|
90
90
|
} | null | undefined;
|
|
91
91
|
user_id?: number | null | undefined;
|
|
92
92
|
docker_compose_file?: string | null | undefined;
|
|
93
|
+
features?: string[] | null | undefined;
|
|
93
94
|
manifest_version?: number | null | undefined;
|
|
94
95
|
runner?: string | null | undefined;
|
|
95
|
-
features?: string[] | null | undefined;
|
|
96
96
|
}>;
|
|
97
97
|
export type VM = z.infer<typeof VMSchema>;
|
package/dist/types/index.d.ts
CHANGED