@phala/cloud 0.2.9 → 0.3.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/check_app_cvms_is_allowed.d.ts +324 -75
- package/dist/actions/apps/check_app_is_allowed.d.ts +16 -16
- package/dist/actions/apps/create_app_instance.d.ts +33 -24
- package/dist/actions/apps/get_app_attestation.d.ts +82 -32
- package/dist/actions/apps/get_app_device_allowlist.d.ts +281 -11
- package/dist/actions/apps/get_app_filter_options.d.ts +2 -2
- package/dist/actions/apps/get_app_list.d.ts +2 -2
- package/dist/actions/cvms/check_cvm_is_allowed.d.ts +142 -74
- package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +12 -12
- package/dist/actions/cvms/commit_cvm_provision.d.ts +424 -277
- package/dist/actions/cvms/commit_cvm_update.d.ts +2 -2
- package/dist/actions/cvms/confirm_cvm_patch.d.ts +2 -2
- package/dist/actions/cvms/delete_cvm.d.ts +2 -2
- package/dist/actions/cvms/get_available_os_images.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_attestation.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +338 -10
- package/dist/actions/cvms/get_cvm_containers_stats.d.ts +10 -10
- package/dist/actions/cvms/get_cvm_docker_compose.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_info.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_list.d.ts +4 -4
- package/dist/actions/cvms/get_cvm_network.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_state.d.ts +6 -6
- package/dist/actions/cvms/get_cvm_stats.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_status_batch.d.ts +6 -6
- package/dist/actions/cvms/get_cvm_user_config.d.ts +2 -2
- package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +93 -0
- package/dist/actions/cvms/patch_cvm.d.ts +18 -18
- package/dist/actions/cvms/provision_cvm.d.ts +243 -225
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +254 -38
- package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +130 -43
- package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +294 -110
- package/dist/actions/cvms/replicate_cvm.d.ts +7 -72
- package/dist/actions/cvms/restart_cvm.d.ts +7 -72
- package/dist/actions/cvms/shutdown_cvm.d.ts +9 -72
- package/dist/actions/cvms/start_cvm.d.ts +7 -72
- package/dist/actions/cvms/stop_cvm.d.ts +7 -72
- package/dist/actions/cvms/update_cvm_envs.d.ts +20 -20
- package/dist/actions/cvms/update_cvm_resources.d.ts +2 -2
- package/dist/actions/cvms/update_cvm_visibility.d.ts +26 -26
- package/dist/actions/cvms/update_docker_compose.d.ts +20 -20
- package/dist/actions/cvms/update_os_image.d.ts +2 -2
- package/dist/actions/cvms/update_prelaunch_script.d.ts +20 -20
- package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +319 -0
- package/dist/actions/get_cvm_create_resources.d.ts +2412 -0
- package/dist/actions/index.d.ts +3 -0
- package/dist/actions/kms/get_kms_list.d.ts +10 -10
- package/dist/actions/kms/next_app_ids.d.ts +6 -6
- package/dist/actions/list-instance-types.d.ts +12 -12
- package/dist/actions/ssh_keys/create_ssh_key.d.ts +2 -2
- package/dist/actions/ssh_keys/list_ssh_keys.d.ts +4 -4
- package/dist/actions/workspaces/get_workspace.d.ts +2 -0
- package/dist/actions/workspaces/get_workspace_nodes.d.ts +14 -14
- package/dist/actions/workspaces/list_workspaces.d.ts +18 -0
- package/dist/client.d.ts +5 -2
- package/dist/create-client.d.ts +48 -0
- package/dist/index.js +1882 -1257
- package/dist/index.mjs +1850 -1255
- package/dist/types/app_compose.d.ts +125 -0
- package/dist/types/app_info_v20251028.d.ts +136 -259
- package/dist/types/app_info_v20260121.d.ts +4677 -345
- package/dist/types/app_revision.d.ts +8 -8
- package/dist/types/client.d.ts +2 -2
- package/dist/types/cvm_id.d.ts +6 -6
- package/dist/types/cvm_info.d.ts +536 -10
- package/dist/types/cvm_info_v20251028.d.ts +65 -65
- package/dist/types/cvm_info_v20260121.d.ts +1636 -85
- package/dist/types/version-mappings.d.ts +45 -8
- package/dist/utils/errors.d.ts +8 -1
- package/package.json +2 -2
|
@@ -83,9 +83,9 @@ export declare const AppRevisionResponseSchema: z.ZodObject<{
|
|
|
83
83
|
}>>>;
|
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
|
85
85
|
app_id: string;
|
|
86
|
+
compose_hash: string;
|
|
86
87
|
vm_uuid: string;
|
|
87
88
|
created_at: string;
|
|
88
|
-
compose_hash: string;
|
|
89
89
|
revision_id: string;
|
|
90
90
|
operation_type: string;
|
|
91
91
|
workspace?: {
|
|
@@ -111,9 +111,9 @@ export declare const AppRevisionResponseSchema: z.ZodObject<{
|
|
|
111
111
|
} | null | undefined;
|
|
112
112
|
}, {
|
|
113
113
|
app_id: string;
|
|
114
|
+
compose_hash: string;
|
|
114
115
|
vm_uuid: string;
|
|
115
116
|
created_at: string;
|
|
116
|
-
compose_hash: string;
|
|
117
117
|
revision_id: string;
|
|
118
118
|
operation_type: string;
|
|
119
119
|
workspace?: {
|
|
@@ -206,9 +206,9 @@ export declare const AppRevisionDetailResponseSchema: z.ZodObject<{
|
|
|
206
206
|
}>>>;
|
|
207
207
|
}, "strip", z.ZodTypeAny, {
|
|
208
208
|
app_id: string;
|
|
209
|
+
compose_hash: string;
|
|
209
210
|
vm_uuid: string;
|
|
210
211
|
created_at: string;
|
|
211
|
-
compose_hash: string;
|
|
212
212
|
encrypted_env: string;
|
|
213
213
|
revision_id: string;
|
|
214
214
|
operation_type: string;
|
|
@@ -237,9 +237,9 @@ export declare const AppRevisionDetailResponseSchema: z.ZodObject<{
|
|
|
237
237
|
} | null | undefined;
|
|
238
238
|
}, {
|
|
239
239
|
app_id: string;
|
|
240
|
+
compose_hash: string;
|
|
240
241
|
vm_uuid: string;
|
|
241
242
|
created_at: string;
|
|
242
|
-
compose_hash: string;
|
|
243
243
|
encrypted_env: string;
|
|
244
244
|
revision_id: string;
|
|
245
245
|
operation_type: string;
|
|
@@ -333,9 +333,9 @@ export declare const AppRevisionsResponseSchema: z.ZodObject<{
|
|
|
333
333
|
}>>>;
|
|
334
334
|
}, "strip", z.ZodTypeAny, {
|
|
335
335
|
app_id: string;
|
|
336
|
+
compose_hash: string;
|
|
336
337
|
vm_uuid: string;
|
|
337
338
|
created_at: string;
|
|
338
|
-
compose_hash: string;
|
|
339
339
|
revision_id: string;
|
|
340
340
|
operation_type: string;
|
|
341
341
|
workspace?: {
|
|
@@ -361,9 +361,9 @@ export declare const AppRevisionsResponseSchema: z.ZodObject<{
|
|
|
361
361
|
} | null | undefined;
|
|
362
362
|
}, {
|
|
363
363
|
app_id: string;
|
|
364
|
+
compose_hash: string;
|
|
364
365
|
vm_uuid: string;
|
|
365
366
|
created_at: string;
|
|
366
|
-
compose_hash: string;
|
|
367
367
|
revision_id: string;
|
|
368
368
|
operation_type: string;
|
|
369
369
|
workspace?: {
|
|
@@ -399,9 +399,9 @@ export declare const AppRevisionsResponseSchema: z.ZodObject<{
|
|
|
399
399
|
total_pages: number;
|
|
400
400
|
revisions: {
|
|
401
401
|
app_id: string;
|
|
402
|
+
compose_hash: string;
|
|
402
403
|
vm_uuid: string;
|
|
403
404
|
created_at: string;
|
|
404
|
-
compose_hash: string;
|
|
405
405
|
revision_id: string;
|
|
406
406
|
operation_type: string;
|
|
407
407
|
workspace?: {
|
|
@@ -433,9 +433,9 @@ export declare const AppRevisionsResponseSchema: z.ZodObject<{
|
|
|
433
433
|
total_pages: number;
|
|
434
434
|
revisions: {
|
|
435
435
|
app_id: string;
|
|
436
|
+
compose_hash: string;
|
|
436
437
|
vm_uuid: string;
|
|
437
438
|
created_at: string;
|
|
438
|
-
compose_hash: string;
|
|
439
439
|
revision_id: string;
|
|
440
440
|
operation_type: string;
|
|
441
441
|
workspace?: {
|
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";
|
|
7
|
+
export type ApiVersion = "2025-10-28" | "2026-01-21" | "2026-05-22";
|
|
8
8
|
/**
|
|
9
9
|
* Default API version (latest stable)
|
|
10
10
|
*/
|
|
11
|
-
export type DefaultApiVersion = "2026-
|
|
11
|
+
export type DefaultApiVersion = "2026-05-22";
|
|
12
12
|
/**
|
|
13
13
|
* Full HTTP response including status, headers, and parsed body
|
|
14
14
|
*/
|
package/dist/types/cvm_id.d.ts
CHANGED
|
@@ -27,15 +27,15 @@ export declare const CvmIdObjectSchema: z.ZodObject<{
|
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
28
|
name?: string | undefined;
|
|
29
29
|
id?: string | undefined;
|
|
30
|
+
uuid?: string | undefined;
|
|
30
31
|
app_id?: string | undefined;
|
|
31
32
|
instance_id?: string | undefined;
|
|
32
|
-
uuid?: string | undefined;
|
|
33
33
|
}, {
|
|
34
34
|
name?: string | undefined;
|
|
35
35
|
id?: string | undefined;
|
|
36
|
+
uuid?: string | undefined;
|
|
36
37
|
app_id?: string | undefined;
|
|
37
38
|
instance_id?: string | undefined;
|
|
38
|
-
uuid?: string | undefined;
|
|
39
39
|
}>;
|
|
40
40
|
/**
|
|
41
41
|
* Helper function to add CVM ID validation refine to any schema
|
|
@@ -59,15 +59,15 @@ export declare const CvmIdBaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
60
|
name?: string | undefined;
|
|
61
61
|
id?: string | undefined;
|
|
62
|
+
uuid?: string | undefined;
|
|
62
63
|
app_id?: string | undefined;
|
|
63
64
|
instance_id?: string | undefined;
|
|
64
|
-
uuid?: string | undefined;
|
|
65
65
|
}, {
|
|
66
66
|
name?: string | undefined;
|
|
67
67
|
id?: string | undefined;
|
|
68
|
+
uuid?: string | undefined;
|
|
68
69
|
app_id?: string | undefined;
|
|
69
70
|
instance_id?: string | undefined;
|
|
70
|
-
uuid?: string | undefined;
|
|
71
71
|
}>, any, any>;
|
|
72
72
|
/**
|
|
73
73
|
* CVM ID Schema - supports multiple identifier formats
|
|
@@ -114,15 +114,15 @@ export declare const CvmIdSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
115
|
name?: string | undefined;
|
|
116
116
|
id?: string | undefined;
|
|
117
|
+
uuid?: string | undefined;
|
|
117
118
|
app_id?: string | undefined;
|
|
118
119
|
instance_id?: string | undefined;
|
|
119
|
-
uuid?: string | undefined;
|
|
120
120
|
}, {
|
|
121
121
|
name?: string | undefined;
|
|
122
122
|
id?: string | undefined;
|
|
123
|
+
uuid?: string | undefined;
|
|
123
124
|
app_id?: string | undefined;
|
|
124
125
|
instance_id?: string | undefined;
|
|
125
|
-
uuid?: string | undefined;
|
|
126
126
|
}>, any, any>, {
|
|
127
127
|
cvmId: any;
|
|
128
128
|
}, any>;
|