@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
|
@@ -1,6 +1,125 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { type Client, type SafeResult } from "../../client";
|
|
3
|
+
import type { ApiVersion } from "../../types/client";
|
|
4
|
+
import type { RefreshCvmInstanceIdResponse } from "../../types/version-mappings";
|
|
5
|
+
export declare const InstanceIdRefreshResultV20260121Schema: z.ZodObject<{
|
|
6
|
+
identifier: z.ZodString;
|
|
7
|
+
status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
|
|
8
|
+
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
|
|
11
|
+
verified_with_gateway: z.ZodBoolean;
|
|
12
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
} & {
|
|
14
|
+
cvm_id: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
17
|
+
cvm_id: number | null;
|
|
18
|
+
identifier: string;
|
|
19
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
20
|
+
verified_with_gateway: boolean;
|
|
21
|
+
old_instance_id?: string | null | undefined;
|
|
22
|
+
new_instance_id?: string | null | undefined;
|
|
23
|
+
reason?: string | null | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
26
|
+
cvm_id: number | null;
|
|
27
|
+
identifier: string;
|
|
28
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
29
|
+
verified_with_gateway: boolean;
|
|
30
|
+
old_instance_id?: string | null | undefined;
|
|
31
|
+
new_instance_id?: string | null | undefined;
|
|
32
|
+
reason?: string | null | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
export type InstanceIdRefreshResultV20260121 = z.infer<typeof InstanceIdRefreshResultV20260121Schema>;
|
|
35
|
+
export declare const InstanceIdRefreshResultV20260522Schema: z.ZodObject<{
|
|
36
|
+
identifier: z.ZodString;
|
|
37
|
+
status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
|
|
38
|
+
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
|
|
41
|
+
verified_with_gateway: z.ZodBoolean;
|
|
42
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
} & {
|
|
44
|
+
cvm_id: z.ZodNullable<z.ZodString>;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
47
|
+
cvm_id: string | null;
|
|
48
|
+
identifier: string;
|
|
49
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
50
|
+
verified_with_gateway: boolean;
|
|
51
|
+
old_instance_id?: string | null | undefined;
|
|
52
|
+
new_instance_id?: string | null | undefined;
|
|
53
|
+
reason?: string | null | undefined;
|
|
54
|
+
}, {
|
|
55
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
56
|
+
cvm_id: string | null;
|
|
57
|
+
identifier: string;
|
|
58
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
59
|
+
verified_with_gateway: boolean;
|
|
60
|
+
old_instance_id?: string | null | undefined;
|
|
61
|
+
new_instance_id?: string | null | undefined;
|
|
62
|
+
reason?: string | null | undefined;
|
|
63
|
+
}>;
|
|
64
|
+
export type InstanceIdRefreshResultV20260522 = z.infer<typeof InstanceIdRefreshResultV20260522Schema>;
|
|
65
|
+
export declare const InstanceIdRefreshResultAnySchema: z.ZodUnion<[z.ZodObject<{
|
|
66
|
+
identifier: z.ZodString;
|
|
67
|
+
status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
|
|
68
|
+
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
|
|
71
|
+
verified_with_gateway: z.ZodBoolean;
|
|
72
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
} & {
|
|
74
|
+
cvm_id: z.ZodNullable<z.ZodNumber>;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
77
|
+
cvm_id: number | null;
|
|
78
|
+
identifier: string;
|
|
79
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
80
|
+
verified_with_gateway: boolean;
|
|
81
|
+
old_instance_id?: string | null | undefined;
|
|
82
|
+
new_instance_id?: string | null | undefined;
|
|
83
|
+
reason?: string | null | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
86
|
+
cvm_id: number | null;
|
|
87
|
+
identifier: string;
|
|
88
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
89
|
+
verified_with_gateway: boolean;
|
|
90
|
+
old_instance_id?: string | null | undefined;
|
|
91
|
+
new_instance_id?: string | null | undefined;
|
|
92
|
+
reason?: string | null | undefined;
|
|
93
|
+
}>, z.ZodObject<{
|
|
94
|
+
identifier: z.ZodString;
|
|
95
|
+
status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
|
|
96
|
+
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
+
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
+
source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
|
|
99
|
+
verified_with_gateway: z.ZodBoolean;
|
|
100
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
|
+
} & {
|
|
102
|
+
cvm_id: z.ZodNullable<z.ZodString>;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
105
|
+
cvm_id: string | null;
|
|
106
|
+
identifier: string;
|
|
107
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
108
|
+
verified_with_gateway: boolean;
|
|
109
|
+
old_instance_id?: string | null | undefined;
|
|
110
|
+
new_instance_id?: string | null | undefined;
|
|
111
|
+
reason?: string | null | undefined;
|
|
112
|
+
}, {
|
|
113
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
114
|
+
cvm_id: string | null;
|
|
115
|
+
identifier: string;
|
|
116
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
117
|
+
verified_with_gateway: boolean;
|
|
118
|
+
old_instance_id?: string | null | undefined;
|
|
119
|
+
new_instance_id?: string | null | undefined;
|
|
120
|
+
reason?: string | null | undefined;
|
|
121
|
+
}>]>;
|
|
2
122
|
export declare const InstanceIdRefreshResultSchema: z.ZodObject<{
|
|
3
|
-
cvm_id: z.ZodNumber;
|
|
4
123
|
identifier: z.ZodString;
|
|
5
124
|
status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
|
|
6
125
|
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -8,20 +127,22 @@ export declare const InstanceIdRefreshResultSchema: z.ZodObject<{
|
|
|
8
127
|
source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
|
|
9
128
|
verified_with_gateway: z.ZodBoolean;
|
|
10
129
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
130
|
+
} & {
|
|
131
|
+
cvm_id: z.ZodNullable<z.ZodString>;
|
|
11
132
|
}, "strip", z.ZodTypeAny, {
|
|
12
133
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
13
|
-
|
|
14
|
-
cvm_id: number;
|
|
134
|
+
cvm_id: string | null;
|
|
15
135
|
identifier: string;
|
|
136
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
16
137
|
verified_with_gateway: boolean;
|
|
17
138
|
old_instance_id?: string | null | undefined;
|
|
18
139
|
new_instance_id?: string | null | undefined;
|
|
19
140
|
reason?: string | null | undefined;
|
|
20
141
|
}, {
|
|
21
142
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
22
|
-
|
|
23
|
-
cvm_id: number;
|
|
143
|
+
cvm_id: string | null;
|
|
24
144
|
identifier: string;
|
|
145
|
+
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
25
146
|
verified_with_gateway: boolean;
|
|
26
147
|
old_instance_id?: string | null | undefined;
|
|
27
148
|
new_instance_id?: string | null | undefined;
|
|
@@ -40,54 +161,20 @@ export declare const RefreshCvmInstanceIdRequestSchema: z.ZodEffects<z.ZodObject
|
|
|
40
161
|
}, "strip", z.ZodTypeAny, {
|
|
41
162
|
name?: string | undefined;
|
|
42
163
|
id?: string | undefined;
|
|
164
|
+
uuid?: string | undefined;
|
|
43
165
|
app_id?: string | undefined;
|
|
44
166
|
instance_id?: string | undefined;
|
|
45
|
-
uuid?: string | undefined;
|
|
46
167
|
overwrite?: boolean | undefined;
|
|
47
168
|
dry_run?: boolean | undefined;
|
|
48
169
|
}, {
|
|
49
170
|
name?: string | undefined;
|
|
50
171
|
id?: string | undefined;
|
|
172
|
+
uuid?: string | undefined;
|
|
51
173
|
app_id?: string | undefined;
|
|
52
174
|
instance_id?: string | undefined;
|
|
53
|
-
uuid?: string | undefined;
|
|
54
175
|
overwrite?: boolean | undefined;
|
|
55
176
|
dry_run?: boolean | undefined;
|
|
56
177
|
}>, any, any>;
|
|
57
178
|
export type RefreshCvmInstanceIdRequest = z.infer<typeof RefreshCvmInstanceIdRequestSchema>;
|
|
58
|
-
declare
|
|
59
|
-
|
|
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 };
|
|
179
|
+
export declare function refreshCvmInstanceId<V extends ApiVersion>(client: Client<V>, request: RefreshCvmInstanceIdRequest): Promise<RefreshCvmInstanceIdResponse<V>>;
|
|
180
|
+
export declare function safeRefreshCvmInstanceId<V extends ApiVersion>(client: Client<V>, request: RefreshCvmInstanceIdRequest): Promise<SafeResult<RefreshCvmInstanceIdResponse<V>>>;
|