@phala/cloud 0.6.5 → 0.6.6-beta.1
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 +6 -6
- package/dist/actions/api_tokens/revoke_current_api_token.d.ts +2 -2
- package/dist/actions/apps/app_launch_token.d.ts +4 -4
- package/dist/actions/apps/check_app_is_allowed.d.ts +4 -4
- package/dist/actions/apps/create_app_instance.d.ts +20 -20
- package/dist/actions/apps/get_app_attestation.d.ts +4 -4
- package/dist/actions/blockchains/abi/dstack_app.d.ts +403 -1
- package/dist/actions/blockchains/add_compose_hash.d.ts +7 -0
- package/dist/actions/blockchains/add_device.d.ts +7 -0
- package/dist/actions/blockchains/check_compose_hash_allowed.d.ts +4 -1
- package/dist/actions/blockchains/check_device_allowed.d.ts +5 -2
- package/dist/actions/blockchains/check_on_chain_prerequisites.d.ts +7 -2
- package/dist/actions/blockchains/epoch_compat.d.ts +106 -0
- package/dist/actions/blockchains/get_allowed_devices.d.ts +10 -2
- package/dist/actions/blockchains/remove_device.d.ts +7 -0
- package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +4 -4
- package/dist/actions/cvms/commit_cvm_update.d.ts +20 -20
- package/dist/actions/cvms/confirm_cvm_patch.d.ts +14 -14
- package/dist/actions/cvms/cvm_annotations.d.ts +10 -10
- 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 +4 -4
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +10 -10
- package/dist/actions/cvms/get_cvm_containers_stats.d.ts +4 -4
- package/dist/actions/cvms/get_cvm_docker_compose.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_info.d.ts +1 -1
- package/dist/actions/cvms/get_cvm_init_scripts.d.ts +2 -2
- 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 +10 -10
- package/dist/actions/cvms/get_cvm_user_config.d.ts +4 -4
- package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +2 -2
- package/dist/actions/cvms/patch_cvm.d.ts +10 -10
- package/dist/actions/cvms/provision_cvm.d.ts +23 -20
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +49 -49
- package/dist/actions/cvms/put_cvm_init_scripts.d.ts +8 -8
- package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +25 -25
- package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +25 -25
- package/dist/actions/cvms/update_cvm_envs.d.ts +10 -10
- package/dist/actions/cvms/update_cvm_resources.d.ts +2 -2
- package/dist/actions/cvms/update_cvm_visibility.d.ts +14 -14
- package/dist/actions/cvms/update_docker_compose.d.ts +10 -10
- package/dist/actions/cvms/update_os_image.d.ts +8 -8
- package/dist/actions/cvms/update_prelaunch_script.d.ts +10 -10
- package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +2 -2
- package/dist/actions/cvms/watch_cvm_state.d.ts +2 -2
- package/dist/actions/domains/create_app_domain.d.ts +139 -0
- package/dist/actions/domains/delete_app_domain.d.ts +120 -0
- package/dist/actions/domains/get_app_domain_guide.d.ts +67 -0
- package/dist/actions/domains/list_app_domains.d.ts +107 -0
- package/dist/actions/domains/list_domains.d.ts +157 -0
- package/dist/actions/domains/merge_app_domain_ingress.d.ts +120 -0
- package/dist/actions/domains/preflight_app_domain.d.ts +110 -0
- package/dist/actions/domains/schemas.d.ts +82 -0
- package/dist/actions/domains/verify_app_domain.d.ts +142 -0
- package/dist/actions/get_available_nodes.d.ts +16 -16
- package/dist/actions/index.d.ts +10 -0
- package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +2 -2
- package/dist/actions/kms/get_kms_contract.d.ts +2 -2
- package/dist/actions/kms/get_kms_info.d.ts +2 -2
- package/dist/actions/kms/get_kms_list.d.ts +2 -2
- package/dist/actions/kms/get_kms_onchain_detail.d.ts +10 -10
- package/dist/actions/kms/list_kms_contract_nodes.d.ts +2 -2
- package/dist/actions/kms/list_kms_contracts.d.ts +2 -2
- package/dist/actions/kms/next_app_ids.d.ts +2 -2
- package/dist/actions/list-instance-types.d.ts +8 -8
- package/dist/actions/os_images/get_os_images.d.ts +2 -2
- package/dist/actions/ssh_keys/create_ssh_key.d.ts +6 -6
- package/dist/actions/ssh_keys/delete_ssh_key.d.ts +2 -2
- package/dist/actions/ssh_keys/get_cvm_ssh_keys.d.ts +2 -2
- package/dist/actions/ssh_keys/import_github_profile.d.ts +2 -2
- package/dist/actions/ssh_keys/sync_github_ssh_keys.d.ts +2 -2
- package/dist/actions/ssh_keys/update_cvm_ssh_keys.d.ts +8 -8
- package/dist/actions/workspaces/get_workspace.d.ts +8 -8
- package/dist/actions/workspaces/get_workspace_nodes.d.ts +12 -12
- package/dist/actions/workspaces/get_workspace_quotas.d.ts +2 -2
- package/dist/actions/workspaces/list_workspaces.d.ts +10 -10
- package/dist/create-client.d.ts +257 -134
- package/dist/credentials/current_user_v20260121.d.ts +2 -2
- package/dist/index.js +2356 -1455
- package/dist/index.mjs +2281 -1420
- package/dist/types/app_compose.d.ts +2 -2
- package/dist/types/app_info_v20260121.d.ts +60 -48
- package/dist/types/cvm_info_v20251028.d.ts +1 -0
- package/dist/types/cvm_info_v20260121.d.ts +41 -34
- package/dist/utils/define-action.d.ts +4 -4
- package/dist/utils/errors.d.ts +4 -0
- package/dist/utils/network.d.ts +6 -6
- package/package.json +25 -12
|
@@ -52,10 +52,10 @@ export type GetCvmStateRequest = CvmIdInput;
|
|
|
52
52
|
*/
|
|
53
53
|
declare const getCvmState: {
|
|
54
54
|
(client: Client<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
|
|
55
|
-
name: string;
|
|
56
|
-
status: string;
|
|
57
55
|
id?: string | undefined;
|
|
58
56
|
instance_id?: string | undefined;
|
|
57
|
+
name: string;
|
|
58
|
+
status: string;
|
|
59
59
|
uptime?: string | undefined;
|
|
60
60
|
exited_at?: string | undefined;
|
|
61
61
|
boot_progress?: string | undefined;
|
|
@@ -64,16 +64,16 @@ declare const getCvmState: {
|
|
|
64
64
|
}>;
|
|
65
65
|
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
66
66
|
schema: T;
|
|
67
|
-
}): Promise<z.
|
|
67
|
+
}): Promise<z.infer<T>>;
|
|
68
68
|
(client: Client<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
69
69
|
schema: false;
|
|
70
70
|
}): Promise<unknown>;
|
|
71
71
|
}, safeGetCvmState: {
|
|
72
72
|
(client: Client<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
|
|
73
|
-
name: string;
|
|
74
|
-
status: string;
|
|
75
73
|
id?: string | undefined;
|
|
76
74
|
instance_id?: string | undefined;
|
|
75
|
+
name: string;
|
|
76
|
+
status: string;
|
|
77
77
|
uptime?: string | undefined;
|
|
78
78
|
exited_at?: string | undefined;
|
|
79
79
|
boot_progress?: string | undefined;
|
|
@@ -82,7 +82,7 @@ declare const getCvmState: {
|
|
|
82
82
|
}>>;
|
|
83
83
|
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
84
84
|
schema: T;
|
|
85
|
-
}): Promise<import("../..").SafeResult<z.
|
|
85
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
86
86
|
(client: Client<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
87
87
|
schema: false;
|
|
88
88
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
@@ -86,7 +86,7 @@ declare const getCvmStats: {
|
|
|
86
86
|
}>;
|
|
87
87
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
88
88
|
schema: T;
|
|
89
|
-
}): Promise<z.
|
|
89
|
+
}): Promise<z.infer<T>>;
|
|
90
90
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
91
91
|
schema: false;
|
|
92
92
|
}): Promise<unknown>;
|
|
@@ -126,7 +126,7 @@ declare const getCvmStats: {
|
|
|
126
126
|
}>>;
|
|
127
127
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
128
128
|
schema: T;
|
|
129
|
-
}): Promise<import("../..").SafeResult<z.
|
|
129
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
130
130
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
131
131
|
schema: false;
|
|
132
132
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
@@ -120,16 +120,16 @@ declare const getCvmStatusBatch: {
|
|
|
120
120
|
}): Promise<Record<string, {
|
|
121
121
|
vm_uuid: string;
|
|
122
122
|
status: string;
|
|
123
|
+
uptime?: string | null | undefined;
|
|
123
124
|
in_progress: boolean;
|
|
125
|
+
boot_progress?: string | null | undefined;
|
|
126
|
+
boot_error?: string | null | undefined;
|
|
127
|
+
shutdown_progress?: string | null | undefined;
|
|
124
128
|
events: {
|
|
125
129
|
event: string;
|
|
126
130
|
body: string;
|
|
127
131
|
timestamp: number;
|
|
128
132
|
}[];
|
|
129
|
-
uptime?: string | null | undefined;
|
|
130
|
-
boot_progress?: string | null | undefined;
|
|
131
|
-
boot_error?: string | null | undefined;
|
|
132
|
-
shutdown_progress?: string | null | undefined;
|
|
133
133
|
operation?: {
|
|
134
134
|
type?: string | null | undefined;
|
|
135
135
|
phase?: string | null | undefined;
|
|
@@ -149,7 +149,7 @@ declare const getCvmStatusBatch: {
|
|
|
149
149
|
vmUuids: string[];
|
|
150
150
|
}, parameters: {
|
|
151
151
|
schema: T;
|
|
152
|
-
}): Promise<z.
|
|
152
|
+
}): Promise<z.infer<T>>;
|
|
153
153
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
154
154
|
vmUuids: string[];
|
|
155
155
|
}, parameters: {
|
|
@@ -161,16 +161,16 @@ declare const getCvmStatusBatch: {
|
|
|
161
161
|
}): Promise<import("../..").SafeResult<Record<string, {
|
|
162
162
|
vm_uuid: string;
|
|
163
163
|
status: string;
|
|
164
|
+
uptime?: string | null | undefined;
|
|
164
165
|
in_progress: boolean;
|
|
166
|
+
boot_progress?: string | null | undefined;
|
|
167
|
+
boot_error?: string | null | undefined;
|
|
168
|
+
shutdown_progress?: string | null | undefined;
|
|
165
169
|
events: {
|
|
166
170
|
event: string;
|
|
167
171
|
body: string;
|
|
168
172
|
timestamp: number;
|
|
169
173
|
}[];
|
|
170
|
-
uptime?: string | null | undefined;
|
|
171
|
-
boot_progress?: string | null | undefined;
|
|
172
|
-
boot_error?: string | null | undefined;
|
|
173
|
-
shutdown_progress?: string | null | undefined;
|
|
174
174
|
operation?: {
|
|
175
175
|
type?: string | null | undefined;
|
|
176
176
|
phase?: string | null | undefined;
|
|
@@ -190,7 +190,7 @@ declare const getCvmStatusBatch: {
|
|
|
190
190
|
vmUuids: string[];
|
|
191
191
|
}, parameters: {
|
|
192
192
|
schema: T;
|
|
193
|
-
}): Promise<import("../..").SafeResult<z.
|
|
193
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
194
194
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
195
195
|
vmUuids: string[];
|
|
196
196
|
}, parameters: {
|
|
@@ -53,27 +53,27 @@ export type GetCvmUserConfigRequest = CvmIdInput;
|
|
|
53
53
|
*/
|
|
54
54
|
declare const getCvmUserConfig: {
|
|
55
55
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
|
|
56
|
-
ssh_authorized_keys: string[];
|
|
57
56
|
hostname?: string | null | undefined;
|
|
57
|
+
ssh_authorized_keys: string[];
|
|
58
58
|
default_gateway_domain?: string | null | undefined;
|
|
59
59
|
launch_token?: string | null | undefined;
|
|
60
60
|
}>;
|
|
61
61
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
62
62
|
schema: T;
|
|
63
|
-
}): Promise<z.
|
|
63
|
+
}): Promise<z.infer<T>>;
|
|
64
64
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
65
65
|
schema: false;
|
|
66
66
|
}): Promise<unknown>;
|
|
67
67
|
}, safeGetCvmUserConfig: {
|
|
68
68
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
|
|
69
|
-
ssh_authorized_keys: string[];
|
|
70
69
|
hostname?: string | null | undefined;
|
|
70
|
+
ssh_authorized_keys: string[];
|
|
71
71
|
default_gateway_domain?: string | null | undefined;
|
|
72
72
|
launch_token?: string | null | undefined;
|
|
73
73
|
}>>;
|
|
74
74
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
75
75
|
schema: T;
|
|
76
|
-
}): Promise<import("../..").SafeResult<z.
|
|
76
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
77
77
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
78
78
|
schema: false;
|
|
79
79
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
@@ -53,7 +53,7 @@ declare const getPreLaunchScriptUpgradeStatus: {
|
|
|
53
53
|
}>;
|
|
54
54
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
55
55
|
schema: T;
|
|
56
|
-
}): Promise<z.
|
|
56
|
+
}): Promise<z.infer<T>>;
|
|
57
57
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
58
58
|
schema: false;
|
|
59
59
|
}): Promise<unknown>;
|
|
@@ -67,7 +67,7 @@ declare const getPreLaunchScriptUpgradeStatus: {
|
|
|
67
67
|
}>>;
|
|
68
68
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
69
69
|
schema: T;
|
|
70
|
-
}): Promise<import("../..").SafeResult<z.
|
|
70
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
71
71
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
72
72
|
schema: false;
|
|
73
73
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
@@ -120,9 +120,9 @@ export declare const ComposePatchSchema: z.ZodObject<{
|
|
|
120
120
|
}, z.core.$loose>>>;
|
|
121
121
|
kms_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
122
122
|
key_provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
123
|
-
none: "none";
|
|
124
123
|
kms: "kms";
|
|
125
124
|
local: "local";
|
|
125
|
+
none: "none";
|
|
126
126
|
tpm: "tpm";
|
|
127
127
|
}>>>;
|
|
128
128
|
key_provider_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -182,9 +182,9 @@ export declare const PatchCvmRequestSchema: z.ZodObject<{
|
|
|
182
182
|
}, z.core.$loose>>>;
|
|
183
183
|
kms_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
184
184
|
key_provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
185
|
-
none: "none";
|
|
186
185
|
kms: "kms";
|
|
187
186
|
local: "local";
|
|
187
|
+
none: "none";
|
|
188
188
|
tpm: "tpm";
|
|
189
189
|
}>>>;
|
|
190
190
|
key_provider_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -365,7 +365,7 @@ declare const patchCvm: {
|
|
|
365
365
|
tdx_measure_acpi_tables?: boolean | null | undefined;
|
|
366
366
|
} | null | undefined;
|
|
367
367
|
kms_enabled?: boolean | null | undefined;
|
|
368
|
-
key_provider?: "
|
|
368
|
+
key_provider?: "kms" | "local" | "none" | "tpm" | null | undefined;
|
|
369
369
|
key_provider_id?: string | null | undefined;
|
|
370
370
|
local_key_provider_enabled?: boolean | null | undefined;
|
|
371
371
|
manifest_version?: string | number | null | undefined;
|
|
@@ -465,7 +465,7 @@ declare const patchCvm: {
|
|
|
465
465
|
tdx_measure_acpi_tables?: boolean | null | undefined;
|
|
466
466
|
} | null | undefined;
|
|
467
467
|
kms_enabled?: boolean | null | undefined;
|
|
468
|
-
key_provider?: "
|
|
468
|
+
key_provider?: "kms" | "local" | "none" | "tpm" | null | undefined;
|
|
469
469
|
key_provider_id?: string | null | undefined;
|
|
470
470
|
local_key_provider_enabled?: boolean | null | undefined;
|
|
471
471
|
manifest_version?: string | number | null | undefined;
|
|
@@ -502,7 +502,7 @@ declare const patchCvm: {
|
|
|
502
502
|
prepareOnly?: boolean | undefined;
|
|
503
503
|
}, parameters: {
|
|
504
504
|
schema: T;
|
|
505
|
-
}): Promise<z.
|
|
505
|
+
}): Promise<z.infer<T>>;
|
|
506
506
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
507
507
|
id?: string | undefined;
|
|
508
508
|
uuid?: string | undefined;
|
|
@@ -540,7 +540,7 @@ declare const patchCvm: {
|
|
|
540
540
|
tdx_measure_acpi_tables?: boolean | null | undefined;
|
|
541
541
|
} | null | undefined;
|
|
542
542
|
kms_enabled?: boolean | null | undefined;
|
|
543
|
-
key_provider?: "
|
|
543
|
+
key_provider?: "kms" | "local" | "none" | "tpm" | null | undefined;
|
|
544
544
|
key_provider_id?: string | null | undefined;
|
|
545
545
|
local_key_provider_enabled?: boolean | null | undefined;
|
|
546
546
|
manifest_version?: string | number | null | undefined;
|
|
@@ -616,7 +616,7 @@ declare const patchCvm: {
|
|
|
616
616
|
tdx_measure_acpi_tables?: boolean | null | undefined;
|
|
617
617
|
} | null | undefined;
|
|
618
618
|
kms_enabled?: boolean | null | undefined;
|
|
619
|
-
key_provider?: "
|
|
619
|
+
key_provider?: "kms" | "local" | "none" | "tpm" | null | undefined;
|
|
620
620
|
key_provider_id?: string | null | undefined;
|
|
621
621
|
local_key_provider_enabled?: boolean | null | undefined;
|
|
622
622
|
manifest_version?: string | number | null | undefined;
|
|
@@ -716,7 +716,7 @@ declare const patchCvm: {
|
|
|
716
716
|
tdx_measure_acpi_tables?: boolean | null | undefined;
|
|
717
717
|
} | null | undefined;
|
|
718
718
|
kms_enabled?: boolean | null | undefined;
|
|
719
|
-
key_provider?: "
|
|
719
|
+
key_provider?: "kms" | "local" | "none" | "tpm" | null | undefined;
|
|
720
720
|
key_provider_id?: string | null | undefined;
|
|
721
721
|
local_key_provider_enabled?: boolean | null | undefined;
|
|
722
722
|
manifest_version?: string | number | null | undefined;
|
|
@@ -753,7 +753,7 @@ declare const patchCvm: {
|
|
|
753
753
|
prepareOnly?: boolean | undefined;
|
|
754
754
|
}, parameters: {
|
|
755
755
|
schema: T;
|
|
756
|
-
}): Promise<import("../..").SafeResult<z.
|
|
756
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
757
757
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
758
758
|
id?: string | undefined;
|
|
759
759
|
uuid?: string | undefined;
|
|
@@ -791,7 +791,7 @@ declare const patchCvm: {
|
|
|
791
791
|
tdx_measure_acpi_tables?: boolean | null | undefined;
|
|
792
792
|
} | null | undefined;
|
|
793
793
|
kms_enabled?: boolean | null | undefined;
|
|
794
|
-
key_provider?: "
|
|
794
|
+
key_provider?: "kms" | "local" | "none" | "tpm" | null | undefined;
|
|
795
795
|
key_provider_id?: string | null | undefined;
|
|
796
796
|
local_key_provider_enabled?: boolean | null | undefined;
|
|
797
797
|
manifest_version?: string | number | null | undefined;
|
|
@@ -226,9 +226,9 @@ export declare const ProvisionCvmRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
226
226
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
227
227
|
local_key_provider_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
228
228
|
key_provider: z.ZodOptional<z.ZodEnum<{
|
|
229
|
-
none: "none";
|
|
230
229
|
kms: "kms";
|
|
231
230
|
local: "local";
|
|
231
|
+
none: "none";
|
|
232
232
|
tpm: "tpm";
|
|
233
233
|
}>>;
|
|
234
234
|
key_provider_id: z.ZodOptional<z.ZodString>;
|
|
@@ -250,8 +250,8 @@ export declare const ProvisionCvmRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
250
250
|
restrict_mode: z.ZodOptional<z.ZodBoolean>;
|
|
251
251
|
}, z.core.$strip>>;
|
|
252
252
|
runner: z.ZodOptional<z.ZodEnum<{
|
|
253
|
-
"docker-compose": "docker-compose";
|
|
254
253
|
bash: "bash";
|
|
254
|
+
"docker-compose": "docker-compose";
|
|
255
255
|
"nerdctl-compose": "nerdctl-compose";
|
|
256
256
|
}>>;
|
|
257
257
|
bash_script: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -294,9 +294,9 @@ export declare const ProvisionCvmRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
294
294
|
listed: z.ZodOptional<z.ZodBoolean>;
|
|
295
295
|
kms_id: z.ZodOptional<z.ZodString>;
|
|
296
296
|
kms: z.ZodOptional<z.ZodEnum<{
|
|
297
|
-
PHALA: "PHALA";
|
|
298
|
-
ETHEREUM: "ETHEREUM";
|
|
299
297
|
BASE: "BASE";
|
|
298
|
+
ETHEREUM: "ETHEREUM";
|
|
299
|
+
PHALA: "PHALA";
|
|
300
300
|
}>>;
|
|
301
301
|
kms_contract: z.ZodOptional<z.ZodString>;
|
|
302
302
|
kms_contract_id: z.ZodOptional<z.ZodString>;
|
|
@@ -306,13 +306,14 @@ export declare const ProvisionCvmRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
306
306
|
}>>;
|
|
307
307
|
skip_gateway: z.ZodOptional<z.ZodBoolean>;
|
|
308
308
|
env_keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
309
|
+
ssh_key_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
309
310
|
nonce: z.ZodOptional<z.ZodNumber>;
|
|
310
311
|
app_id: z.ZodOptional<z.ZodString>;
|
|
311
312
|
}, z.core.$loose>, z.ZodTransform<{
|
|
312
313
|
[x: string]: unknown;
|
|
313
|
-
name: string;
|
|
314
314
|
node?: string | undefined;
|
|
315
315
|
region?: string | undefined;
|
|
316
|
+
name: string;
|
|
316
317
|
instance_type?: string | undefined;
|
|
317
318
|
image?: string | undefined;
|
|
318
319
|
vcpu?: number | undefined;
|
|
@@ -320,15 +321,15 @@ export declare const ProvisionCvmRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
320
321
|
disk_size?: number | undefined;
|
|
321
322
|
compose_file?: {
|
|
322
323
|
[x: string]: unknown;
|
|
323
|
-
name: string;
|
|
324
324
|
allowed_envs?: string[] | undefined;
|
|
325
325
|
pre_launch_script?: string | undefined;
|
|
326
326
|
docker_compose_file?: string | undefined;
|
|
327
|
+
name: string;
|
|
327
328
|
kms_enabled?: boolean | undefined;
|
|
328
329
|
gateway_enabled?: boolean | undefined;
|
|
329
330
|
tproxy_enabled?: boolean | undefined;
|
|
330
331
|
local_key_provider_enabled?: boolean | undefined;
|
|
331
|
-
key_provider?: "
|
|
332
|
+
key_provider?: "kms" | "local" | "none" | "tpm" | undefined;
|
|
332
333
|
key_provider_id?: string | undefined;
|
|
333
334
|
public_logs?: boolean | undefined;
|
|
334
335
|
public_sysinfo?: boolean | undefined;
|
|
@@ -344,7 +345,7 @@ export declare const ProvisionCvmRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
344
345
|
}[] | undefined;
|
|
345
346
|
restrict_mode?: boolean | undefined;
|
|
346
347
|
} | undefined;
|
|
347
|
-
runner?: "
|
|
348
|
+
runner?: "bash" | "docker-compose" | "nerdctl-compose" | undefined;
|
|
348
349
|
bash_script?: string | null | undefined;
|
|
349
350
|
requirements?: {
|
|
350
351
|
[x: string]: unknown;
|
|
@@ -380,19 +381,20 @@ export declare const ProvisionCvmRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
380
381
|
annotations?: Record<string, string> | undefined;
|
|
381
382
|
listed?: boolean | undefined;
|
|
382
383
|
kms_id?: string | undefined;
|
|
383
|
-
kms?: "
|
|
384
|
+
kms?: "BASE" | "ETHEREUM" | "PHALA" | undefined;
|
|
384
385
|
kms_contract?: string | undefined;
|
|
385
386
|
kms_contract_id?: string | undefined;
|
|
386
387
|
key_provider_mode?: "kms" | "local" | undefined;
|
|
387
388
|
skip_gateway?: boolean | undefined;
|
|
388
389
|
env_keys?: string[] | undefined;
|
|
390
|
+
ssh_key_ids?: string[] | undefined;
|
|
389
391
|
nonce?: number | undefined;
|
|
390
392
|
app_id?: string | undefined;
|
|
391
393
|
}, {
|
|
392
394
|
[x: string]: unknown;
|
|
393
|
-
name: string;
|
|
394
395
|
node?: string | undefined;
|
|
395
396
|
region?: string | undefined;
|
|
397
|
+
name: string;
|
|
396
398
|
instance_type?: string | undefined;
|
|
397
399
|
image?: string | undefined;
|
|
398
400
|
vcpu?: number | undefined;
|
|
@@ -400,15 +402,15 @@ export declare const ProvisionCvmRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
400
402
|
disk_size?: number | undefined;
|
|
401
403
|
compose_file?: {
|
|
402
404
|
[x: string]: unknown;
|
|
403
|
-
name: string;
|
|
404
405
|
allowed_envs?: string[] | undefined;
|
|
405
406
|
pre_launch_script?: string | undefined;
|
|
406
407
|
docker_compose_file?: string | undefined;
|
|
408
|
+
name: string;
|
|
407
409
|
kms_enabled?: boolean | undefined;
|
|
408
410
|
gateway_enabled?: boolean | undefined;
|
|
409
411
|
tproxy_enabled?: boolean | undefined;
|
|
410
412
|
local_key_provider_enabled?: boolean | undefined;
|
|
411
|
-
key_provider?: "
|
|
413
|
+
key_provider?: "kms" | "local" | "none" | "tpm" | undefined;
|
|
412
414
|
key_provider_id?: string | undefined;
|
|
413
415
|
public_logs?: boolean | undefined;
|
|
414
416
|
public_sysinfo?: boolean | undefined;
|
|
@@ -424,7 +426,7 @@ export declare const ProvisionCvmRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
424
426
|
}[] | undefined;
|
|
425
427
|
restrict_mode?: boolean | undefined;
|
|
426
428
|
} | undefined;
|
|
427
|
-
runner?: "
|
|
429
|
+
runner?: "bash" | "docker-compose" | "nerdctl-compose" | undefined;
|
|
428
430
|
bash_script?: string | null | undefined;
|
|
429
431
|
requirements?: {
|
|
430
432
|
[x: string]: unknown;
|
|
@@ -460,12 +462,13 @@ export declare const ProvisionCvmRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
460
462
|
annotations?: Record<string, string> | undefined;
|
|
461
463
|
listed?: boolean | undefined;
|
|
462
464
|
kms_id?: string | undefined;
|
|
463
|
-
kms?: "
|
|
465
|
+
kms?: "BASE" | "ETHEREUM" | "PHALA" | undefined;
|
|
464
466
|
kms_contract?: string | undefined;
|
|
465
467
|
kms_contract_id?: string | undefined;
|
|
466
468
|
key_provider_mode?: "kms" | "local" | undefined;
|
|
467
469
|
skip_gateway?: boolean | undefined;
|
|
468
470
|
env_keys?: string[] | undefined;
|
|
471
|
+
ssh_key_ids?: string[] | undefined;
|
|
469
472
|
nonce?: number | undefined;
|
|
470
473
|
app_id?: string | undefined;
|
|
471
474
|
}>>;
|
|
@@ -484,10 +487,9 @@ export type ProvisionCvmRequest = z.input<typeof ProvisionCvmRequestSchema> & {
|
|
|
484
487
|
declare const provisionCvm: {
|
|
485
488
|
(client: Client<import("../..").ApiVersion>, params: ProvisionCvmRequest): Promise<{
|
|
486
489
|
[x: string]: unknown;
|
|
487
|
-
compose_hash: string;
|
|
488
|
-
token: string;
|
|
489
490
|
app_id?: string | null | undefined;
|
|
490
491
|
app_env_encrypt_pubkey?: string | null | undefined;
|
|
492
|
+
compose_hash: string;
|
|
491
493
|
kms_info?: {
|
|
492
494
|
[x: string]: unknown;
|
|
493
495
|
id: string;
|
|
@@ -503,6 +505,7 @@ declare const provisionCvm: {
|
|
|
503
505
|
device_id?: string | null | undefined;
|
|
504
506
|
os_image_hash?: string | null | undefined;
|
|
505
507
|
instance_type?: string | null | undefined;
|
|
508
|
+
token: string;
|
|
506
509
|
teepod_id?: number | null | undefined;
|
|
507
510
|
node_id?: number | null | undefined;
|
|
508
511
|
kms_id?: string | null | undefined;
|
|
@@ -510,17 +513,16 @@ declare const provisionCvm: {
|
|
|
510
513
|
}>;
|
|
511
514
|
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: ProvisionCvmRequest, parameters: {
|
|
512
515
|
schema: T;
|
|
513
|
-
}): Promise<z.
|
|
516
|
+
}): Promise<z.infer<T>>;
|
|
514
517
|
(client: Client<import("../..").ApiVersion>, params: ProvisionCvmRequest, parameters: {
|
|
515
518
|
schema: false;
|
|
516
519
|
}): Promise<unknown>;
|
|
517
520
|
}, safeProvisionCvm: {
|
|
518
521
|
(client: Client<import("../..").ApiVersion>, params: ProvisionCvmRequest): Promise<import("../..").SafeResult<{
|
|
519
522
|
[x: string]: unknown;
|
|
520
|
-
compose_hash: string;
|
|
521
|
-
token: string;
|
|
522
523
|
app_id?: string | null | undefined;
|
|
523
524
|
app_env_encrypt_pubkey?: string | null | undefined;
|
|
525
|
+
compose_hash: string;
|
|
524
526
|
kms_info?: {
|
|
525
527
|
[x: string]: unknown;
|
|
526
528
|
id: string;
|
|
@@ -536,6 +538,7 @@ declare const provisionCvm: {
|
|
|
536
538
|
device_id?: string | null | undefined;
|
|
537
539
|
os_image_hash?: string | null | undefined;
|
|
538
540
|
instance_type?: string | null | undefined;
|
|
541
|
+
token: string;
|
|
539
542
|
teepod_id?: number | null | undefined;
|
|
540
543
|
node_id?: number | null | undefined;
|
|
541
544
|
kms_id?: string | null | undefined;
|
|
@@ -543,7 +546,7 @@ declare const provisionCvm: {
|
|
|
543
546
|
}>>;
|
|
544
547
|
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: ProvisionCvmRequest, parameters: {
|
|
545
548
|
schema: T;
|
|
546
|
-
}): Promise<import("../..").SafeResult<z.
|
|
549
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
547
550
|
(client: Client<import("../..").ApiVersion>, params: ProvisionCvmRequest, parameters: {
|
|
548
551
|
schema: false;
|
|
549
552
|
}): Promise<import("../..").SafeResult<unknown>>;
|