@phala/cloud 0.3.0 → 0.5.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/README.md +20 -0
- package/dist/actions/api_tokens/revoke_current_api_token.d.ts +47 -0
- package/dist/actions/apps/app_launch_token.d.ts +121 -0
- package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +17 -311
- package/dist/actions/apps/check_app_is_allowed.d.ts +20 -32
- package/dist/actions/apps/create_app_instance.d.ts +43 -63
- package/dist/actions/apps/get_app_attestation.d.ts +116 -772
- package/dist/actions/apps/get_app_cvms.d.ts +1 -5
- package/dist/actions/apps/get_app_device_allowlist.d.ts +26 -272
- package/dist/actions/apps/get_app_filter_options.d.ts +8 -24
- package/dist/actions/apps/get_app_info.d.ts +1 -5
- package/dist/actions/apps/get_app_list.d.ts +2 -26
- package/dist/actions/apps/get_app_revision_detail.d.ts +1 -9
- package/dist/actions/apps/get_app_revisions.d.ts +1 -9
- package/dist/actions/blockchains/add_compose_hash.d.ts +1 -13
- package/dist/actions/blockchains/add_device.d.ts +1 -13
- package/dist/actions/blockchains/deploy_app_auth.d.ts +3 -95
- package/dist/actions/blockchains/get_allowed_devices.d.ts +2 -12
- package/dist/actions/blockchains/remove_device.d.ts +1 -13
- package/dist/actions/blockchains/set_allow_any_device.d.ts +1 -13
- package/dist/actions/cvms/check_cvm_is_allowed.d.ts +13 -138
- package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +9 -45
- package/dist/actions/cvms/commit_cvm_provision.d.ts +32 -416
- package/dist/actions/cvms/commit_cvm_update.d.ts +70 -41
- package/dist/actions/cvms/confirm_cvm_patch.d.ts +62 -35
- package/dist/actions/cvms/cvm_annotations.d.ts +152 -0
- package/dist/actions/cvms/delete_cvm.d.ts +8 -14
- package/dist/actions/cvms/get_available_os_images.d.ts +70 -111
- package/dist/actions/cvms/get_cvm_attestation.d.ts +34 -392
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +426 -512
- package/dist/actions/cvms/get_cvm_containers_stats.d.ts +25 -91
- package/dist/actions/cvms/get_cvm_docker_compose.d.ts +8 -14
- package/dist/actions/cvms/get_cvm_info.d.ts +6 -12
- package/dist/actions/cvms/get_cvm_init_scripts.d.ts +87 -0
- package/dist/actions/cvms/get_cvm_list.d.ts +9 -17
- package/dist/actions/cvms/get_cvm_network.d.ts +18 -50
- package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +8 -14
- package/dist/actions/cvms/get_cvm_state.d.ts +11 -37
- package/dist/actions/cvms/get_cvm_stats.d.ts +23 -149
- package/dist/actions/cvms/get_cvm_status_batch.d.ts +97 -64
- package/dist/actions/cvms/get_cvm_user_config.d.ts +13 -24
- package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +9 -27
- package/dist/actions/cvms/patch_cvm.d.ts +666 -287
- package/dist/actions/cvms/provision_cvm.d.ts +339 -725
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +584 -777
- package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +74 -131
- package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +77 -297
- package/dist/actions/cvms/replicate_cvm.d.ts +7 -21
- package/dist/actions/cvms/restart_cvm.d.ts +3 -18
- package/dist/actions/cvms/shutdown_cvm.d.ts +6 -12
- package/dist/actions/cvms/start_cvm.d.ts +6 -12
- package/dist/actions/cvms/stop_cvm.d.ts +6 -12
- package/dist/actions/cvms/update_cvm_envs.d.ts +144 -195
- package/dist/actions/cvms/update_cvm_resources.d.ts +93 -37
- package/dist/actions/cvms/update_cvm_visibility.d.ts +90 -130
- package/dist/actions/cvms/update_docker_compose.d.ts +143 -187
- package/dist/actions/cvms/update_os_image.d.ts +55 -28
- package/dist/actions/cvms/update_prelaunch_script.d.ts +143 -187
- package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +126 -185
- package/dist/actions/cvms/watch_cvm_state.d.ts +5 -15
- package/dist/actions/get_available_nodes.d.ts +201 -823
- package/dist/actions/get_cvm_create_resources.d.ts +150 -2150
- package/dist/actions/index.d.ts +14 -4
- package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +11 -23
- package/dist/actions/kms/get_kms_contract.d.ts +57 -0
- package/dist/actions/kms/get_kms_info.d.ts +3 -7
- package/dist/actions/kms/get_kms_list.d.ts +43 -82
- package/dist/actions/kms/get_kms_onchain_detail.d.ts +72 -616
- package/dist/actions/kms/list_kms_contract_nodes.d.ts +66 -0
- package/dist/actions/kms/list_kms_contracts.d.ts +98 -0
- package/dist/actions/kms/next_app_ids.d.ts +5 -25
- package/dist/actions/list-instance-types.d.ts +77 -257
- package/dist/actions/os_images/get_os_images.d.ts +38 -152
- package/dist/actions/ssh_keys/create_ssh_key.d.ts +11 -17
- package/dist/actions/ssh_keys/delete_ssh_key.d.ts +3 -7
- package/dist/actions/ssh_keys/get_cvm_ssh_keys.d.ts +113 -0
- package/dist/actions/ssh_keys/import_github_profile.d.ts +7 -21
- package/dist/actions/ssh_keys/list_ssh_keys.d.ts +2 -50
- package/dist/actions/ssh_keys/sync_github_ssh_keys.d.ts +8 -20
- package/dist/actions/ssh_keys/update_cvm_ssh_keys.d.ts +140 -0
- package/dist/actions/workspaces/get_workspace.d.ts +32 -24
- package/dist/actions/workspaces/get_workspace_nodes.d.ts +56 -182
- package/dist/actions/workspaces/get_workspace_quotas.d.ts +107 -1021
- package/dist/actions/workspaces/list_workspaces.d.ts +69 -245
- package/dist/client.d.ts +27 -5
- package/dist/create-client.d.ts +1820 -1
- package/dist/credentials/current_user_v20251028.d.ts +1 -17
- package/dist/credentials/current_user_v20260121.d.ts +22 -227
- package/dist/index.d.ts +1 -2
- package/dist/index.js +5454 -4389
- package/dist/index.mjs +5396 -4395
- package/dist/types/app_compose.d.ts +116 -184
- package/dist/types/app_info_v20251028.d.ts +29 -1030
- package/dist/types/app_info_v20260121.d.ts +686 -6832
- package/dist/types/app_revision.d.ts +15 -371
- package/dist/types/client.d.ts +18 -2
- package/dist/types/common.d.ts +6 -0
- package/dist/types/cvm_id.d.ts +12 -57
- package/dist/types/cvm_info.d.ts +33 -460
- package/dist/types/cvm_info_v20251028.d.ts +102 -800
- package/dist/types/cvm_info_v20260121.d.ts +411 -2347
- package/dist/types/kms_contract.d.ts +34 -0
- package/dist/types/kms_info.d.ts +34 -60
- package/dist/types/version-mappings.d.ts +6 -6
- package/dist/utils/define-action.d.ts +4 -4
- package/dist/utils/error_codes.d.ts +1 -0
- package/dist/utils/errors.d.ts +34 -37
- package/dist/utils/get_compose_hash.d.ts +59 -4
- package/dist/utils/get_mr_config_id.d.ts +146 -0
- package/dist/utils/index.d.ts +3 -2
- package/dist/utils/placement-request.d.ts +3 -0
- package/package.json +4 -4
|
@@ -4,177 +4,120 @@ import type { ApiVersion } from "../../types/client";
|
|
|
4
4
|
import type { RefreshCvmInstanceIdResponse } from "../../types/version-mappings";
|
|
5
5
|
export declare const InstanceIdRefreshResultV20260121Schema: z.ZodObject<{
|
|
6
6
|
identifier: z.ZodString;
|
|
7
|
-
status: z.ZodEnum<
|
|
7
|
+
status: z.ZodEnum<{
|
|
8
|
+
error: "error";
|
|
9
|
+
updated: "updated";
|
|
10
|
+
unchanged: "unchanged";
|
|
11
|
+
skipped: "skipped";
|
|
12
|
+
conflict: "conflict";
|
|
13
|
+
}>;
|
|
8
14
|
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
15
|
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
-
source: z.ZodEnum<
|
|
16
|
+
source: z.ZodEnum<{
|
|
17
|
+
none: "none";
|
|
18
|
+
teepod_state: "teepod_state";
|
|
19
|
+
teepod_info: "teepod_info";
|
|
20
|
+
gateway: "gateway";
|
|
21
|
+
}>;
|
|
11
22
|
verified_with_gateway: z.ZodBoolean;
|
|
12
23
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
} & {
|
|
14
24
|
cvm_id: z.ZodNullable<z.ZodNumber>;
|
|
15
|
-
},
|
|
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
|
-
}>;
|
|
25
|
+
}, z.core.$strip>;
|
|
34
26
|
export type InstanceIdRefreshResultV20260121 = z.infer<typeof InstanceIdRefreshResultV20260121Schema>;
|
|
35
27
|
export declare const InstanceIdRefreshResultV20260522Schema: z.ZodObject<{
|
|
36
28
|
identifier: z.ZodString;
|
|
37
|
-
status: z.ZodEnum<
|
|
29
|
+
status: z.ZodEnum<{
|
|
30
|
+
error: "error";
|
|
31
|
+
updated: "updated";
|
|
32
|
+
unchanged: "unchanged";
|
|
33
|
+
skipped: "skipped";
|
|
34
|
+
conflict: "conflict";
|
|
35
|
+
}>;
|
|
38
36
|
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
37
|
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
-
source: z.ZodEnum<
|
|
38
|
+
source: z.ZodEnum<{
|
|
39
|
+
none: "none";
|
|
40
|
+
teepod_state: "teepod_state";
|
|
41
|
+
teepod_info: "teepod_info";
|
|
42
|
+
gateway: "gateway";
|
|
43
|
+
}>;
|
|
41
44
|
verified_with_gateway: z.ZodBoolean;
|
|
42
45
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
-
} & {
|
|
44
46
|
cvm_id: z.ZodNullable<z.ZodString>;
|
|
45
|
-
},
|
|
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
|
-
}>;
|
|
47
|
+
}, z.core.$strip>;
|
|
64
48
|
export type InstanceIdRefreshResultV20260522 = z.infer<typeof InstanceIdRefreshResultV20260522Schema>;
|
|
65
|
-
export declare const InstanceIdRefreshResultAnySchema: z.ZodUnion<[z.ZodObject<{
|
|
49
|
+
export declare const InstanceIdRefreshResultAnySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
66
50
|
identifier: z.ZodString;
|
|
67
|
-
status: z.ZodEnum<
|
|
51
|
+
status: z.ZodEnum<{
|
|
52
|
+
error: "error";
|
|
53
|
+
updated: "updated";
|
|
54
|
+
unchanged: "unchanged";
|
|
55
|
+
skipped: "skipped";
|
|
56
|
+
conflict: "conflict";
|
|
57
|
+
}>;
|
|
68
58
|
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
59
|
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
-
source: z.ZodEnum<
|
|
60
|
+
source: z.ZodEnum<{
|
|
61
|
+
none: "none";
|
|
62
|
+
teepod_state: "teepod_state";
|
|
63
|
+
teepod_info: "teepod_info";
|
|
64
|
+
gateway: "gateway";
|
|
65
|
+
}>;
|
|
71
66
|
verified_with_gateway: z.ZodBoolean;
|
|
72
67
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
-
} & {
|
|
74
68
|
cvm_id: z.ZodNullable<z.ZodNumber>;
|
|
75
|
-
},
|
|
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<{
|
|
69
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
94
70
|
identifier: z.ZodString;
|
|
95
|
-
status: z.ZodEnum<
|
|
71
|
+
status: z.ZodEnum<{
|
|
72
|
+
error: "error";
|
|
73
|
+
updated: "updated";
|
|
74
|
+
unchanged: "unchanged";
|
|
75
|
+
skipped: "skipped";
|
|
76
|
+
conflict: "conflict";
|
|
77
|
+
}>;
|
|
96
78
|
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
79
|
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
-
source: z.ZodEnum<
|
|
80
|
+
source: z.ZodEnum<{
|
|
81
|
+
none: "none";
|
|
82
|
+
teepod_state: "teepod_state";
|
|
83
|
+
teepod_info: "teepod_info";
|
|
84
|
+
gateway: "gateway";
|
|
85
|
+
}>;
|
|
99
86
|
verified_with_gateway: z.ZodBoolean;
|
|
100
87
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
|
-
} & {
|
|
102
88
|
cvm_id: z.ZodNullable<z.ZodString>;
|
|
103
|
-
},
|
|
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
|
-
}>]>;
|
|
89
|
+
}, z.core.$strip>]>;
|
|
122
90
|
export declare const InstanceIdRefreshResultSchema: z.ZodObject<{
|
|
123
91
|
identifier: z.ZodString;
|
|
124
|
-
status: z.ZodEnum<
|
|
92
|
+
status: z.ZodEnum<{
|
|
93
|
+
error: "error";
|
|
94
|
+
updated: "updated";
|
|
95
|
+
unchanged: "unchanged";
|
|
96
|
+
skipped: "skipped";
|
|
97
|
+
conflict: "conflict";
|
|
98
|
+
}>;
|
|
125
99
|
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
100
|
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
127
|
-
source: z.ZodEnum<
|
|
101
|
+
source: z.ZodEnum<{
|
|
102
|
+
none: "none";
|
|
103
|
+
teepod_state: "teepod_state";
|
|
104
|
+
teepod_info: "teepod_info";
|
|
105
|
+
gateway: "gateway";
|
|
106
|
+
}>;
|
|
128
107
|
verified_with_gateway: z.ZodBoolean;
|
|
129
108
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
130
|
-
} & {
|
|
131
109
|
cvm_id: z.ZodNullable<z.ZodString>;
|
|
132
|
-
},
|
|
133
|
-
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
134
|
-
cvm_id: string | null;
|
|
135
|
-
identifier: string;
|
|
136
|
-
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
137
|
-
verified_with_gateway: boolean;
|
|
138
|
-
old_instance_id?: string | null | undefined;
|
|
139
|
-
new_instance_id?: string | null | undefined;
|
|
140
|
-
reason?: string | null | undefined;
|
|
141
|
-
}, {
|
|
142
|
-
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
143
|
-
cvm_id: string | null;
|
|
144
|
-
identifier: string;
|
|
145
|
-
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
146
|
-
verified_with_gateway: boolean;
|
|
147
|
-
old_instance_id?: string | null | undefined;
|
|
148
|
-
new_instance_id?: string | null | undefined;
|
|
149
|
-
reason?: string | null | undefined;
|
|
150
|
-
}>;
|
|
110
|
+
}, z.core.$strip>;
|
|
151
111
|
export type InstanceIdRefreshResult = z.infer<typeof InstanceIdRefreshResultSchema>;
|
|
152
|
-
export declare const RefreshCvmInstanceIdRequestSchema: z.
|
|
112
|
+
export declare const RefreshCvmInstanceIdRequestSchema: z.ZodObject<{
|
|
153
113
|
id: z.ZodOptional<z.ZodString>;
|
|
154
114
|
uuid: z.ZodOptional<z.ZodString>;
|
|
155
115
|
app_id: z.ZodOptional<z.ZodString>;
|
|
156
116
|
instance_id: z.ZodOptional<z.ZodString>;
|
|
157
|
-
name: z.ZodOptional<z.
|
|
158
|
-
} & {
|
|
117
|
+
name: z.ZodOptional<z.ZodString>;
|
|
159
118
|
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
160
119
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
161
|
-
},
|
|
162
|
-
name?: string | undefined;
|
|
163
|
-
id?: string | undefined;
|
|
164
|
-
uuid?: string | undefined;
|
|
165
|
-
app_id?: string | undefined;
|
|
166
|
-
instance_id?: string | undefined;
|
|
167
|
-
overwrite?: boolean | undefined;
|
|
168
|
-
dry_run?: boolean | undefined;
|
|
169
|
-
}, {
|
|
170
|
-
name?: string | undefined;
|
|
171
|
-
id?: string | undefined;
|
|
172
|
-
uuid?: string | undefined;
|
|
173
|
-
app_id?: string | undefined;
|
|
174
|
-
instance_id?: string | undefined;
|
|
175
|
-
overwrite?: boolean | undefined;
|
|
176
|
-
dry_run?: boolean | undefined;
|
|
177
|
-
}>, any, any>;
|
|
120
|
+
}, z.core.$strip>;
|
|
178
121
|
export type RefreshCvmInstanceIdRequest = z.infer<typeof RefreshCvmInstanceIdRequestSchema>;
|
|
179
122
|
export declare function refreshCvmInstanceId<V extends ApiVersion>(client: Client<V>, request: RefreshCvmInstanceIdRequest): Promise<RefreshCvmInstanceIdResponse<V>>;
|
|
180
123
|
export declare function safeRefreshCvmInstanceId<V extends ApiVersion>(client: Client<V>, request: RefreshCvmInstanceIdRequest): Promise<SafeResult<RefreshCvmInstanceIdResponse<V>>>;
|