@phala/cloud 0.2.8 → 0.2.10
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 +315 -5
- package/dist/actions/apps/check_app_is_allowed.d.ts +2 -2
- package/dist/actions/apps/create_app_instance.d.ts +205 -0
- package/dist/actions/apps/get_app_attestation.d.ts +50 -0
- package/dist/actions/apps/get_app_device_allowlist.d.ts +274 -5
- package/dist/actions/apps/get_app_filter_options.d.ts +2 -2
- package/dist/actions/cvms/check_cvm_is_allowed.d.ts +133 -3
- package/dist/actions/cvms/commit_cvm_provision.d.ts +425 -148
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +328 -0
- package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +93 -0
- package/dist/actions/cvms/provision_cvm.d.ts +243 -225
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +216 -0
- package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +123 -5
- package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +236 -7
- package/dist/actions/cvms/replicate_cvm.d.ts +4 -4
- package/dist/actions/cvms/restart_cvm.d.ts +4 -4
- package/dist/actions/cvms/shutdown_cvm.d.ts +4 -4
- package/dist/actions/cvms/start_cvm.d.ts +4 -4
- package/dist/actions/cvms/stop_cvm.d.ts +4 -4
- package/dist/actions/cvms/update_cvm_visibility.d.ts +2 -2
- 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 +4 -0
- package/dist/actions/workspaces/get_workspace.d.ts +2 -0
- 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 +1648 -1208
- package/dist/index.mjs +1613 -1206
- package/dist/types/app_compose.d.ts +125 -0
- package/dist/types/app_info_v20251028.d.ts +8 -131
- package/dist/types/app_info_v20260121.d.ts +4500 -168
- package/dist/types/client.d.ts +2 -2
- package/dist/types/cvm_info.d.ts +533 -7
- package/dist/types/cvm_info_v20251028.d.ts +18 -18
- package/dist/types/cvm_info_v20260121.d.ts +1640 -89
- package/dist/types/version-mappings.d.ts +8 -8
- package/dist/utils/errors.d.ts +8 -1
- package/package.json +2 -2
package/dist/actions/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { getCurrentUser, safeGetCurrentUser, CurrentUserSchema, type CurrentUser, } from "./get_current_user";
|
|
2
2
|
export { getAvailableNodes, safeGetAvailableNodes, AvailableNodesSchema, type AvailableNodes, type AvailableOSImage, type TeepodCapacity, type ResourceThreshold, } from "./get_available_nodes";
|
|
3
|
+
export { getCvmCreateResources, safeGetCvmCreateResources, CvmCreateResourceGraphSchema, CvmCreateResourceGraphV20260121Schema, CvmCreateResourceGraphV20260522Schema, CvmCreateKmsResourceSchema, CvmCreateKmsResourceV20260121Schema, CvmCreateNodeKmsRelationSchema, CvmCreateNodeKmsRelationV20260121Schema, CvmCreateGatewayResourceSchema, CvmCreateGatewayResourceV20260121Schema, CvmCreateInstanceTypeResourceSchema, GpuAvailabilitySchema, type CvmCreateResourceGraph, type CvmCreateResourceGraphV20260121, type CvmCreateResourceGraphV20260522, type CvmCreateKmsResource, type CvmCreateKmsResourceV20260121, type CvmCreateNodeKmsRelation, type CvmCreateNodeKmsRelationV20260121, type CvmCreateGatewayResource, type CvmCreateGatewayResourceV20260121, type CvmCreateInstanceTypeResource, type GpuAvailability, } from "./get_cvm_create_resources";
|
|
3
4
|
export { provisionCvm, safeProvisionCvm, ProvisionCvmSchema, type ProvisionCvm, ProvisionCvmRequestSchema, type ProvisionCvmRequest, } from "./cvms/provision_cvm";
|
|
4
5
|
export { commitCvmProvision, safeCommitCvmProvision, CommitCvmProvisionSchema, type CommitCvmProvision, CommitCvmProvisionRequestSchema, type CommitCvmProvisionRequest, } from "./cvms/commit_cvm_provision";
|
|
5
6
|
export { deployAppAuth, safeDeployAppAuth, type DeployAppAuthParameters, type DeployAppAuthReturnType, DeployAppAuthSchema, type DeployAppAuth, DeployAppAuthRequestSchema, type DeployAppAuthRequest, type SafeDeployAppAuthResult, } from "./blockchains/deploy_app_auth";
|
|
@@ -53,6 +54,8 @@ export { updateOsImage, safeUpdateOsImage, UpdateOsImageRequestSchema, type Upda
|
|
|
53
54
|
export { updateDockerCompose, safeUpdateDockerCompose, UpdateDockerComposeRequestSchema, type UpdateDockerComposeRequest, UpdateDockerComposeResultSchema, type UpdateDockerComposeResult, type UpdateDockerComposeInProgress, type UpdateDockerComposePreconditionRequired, } from "./cvms/update_docker_compose";
|
|
54
55
|
export { updatePreLaunchScript, safeUpdatePreLaunchScript, UpdatePreLaunchScriptRequestSchema, type UpdatePreLaunchScriptRequest, UpdatePreLaunchScriptResultSchema, type UpdatePreLaunchScriptResult, type UpdatePreLaunchScriptInProgress, type UpdatePreLaunchScriptPreconditionRequired, } from "./cvms/update_prelaunch_script";
|
|
55
56
|
export { getCvmPreLaunchScript, safeGetCvmPreLaunchScript, GetCvmPreLaunchScriptRequestSchema, type GetCvmPreLaunchScriptRequest, } from "./cvms/get_cvm_prelaunch_script";
|
|
57
|
+
export { getPreLaunchScriptUpgradeStatus, safeGetPreLaunchScriptUpgradeStatus, GetPreLaunchScriptUpgradeStatusRequestSchema, type GetPreLaunchScriptUpgradeStatusRequest, PreLaunchScriptUpgradeStatusSchema, type PreLaunchScriptUpgradeStatus, } from "./cvms/get_prelaunch_script_upgrade_status";
|
|
58
|
+
export { upgradePreLaunchScript, safeUpgradePreLaunchScript, UpgradePreLaunchScriptRequestSchema, type UpgradePreLaunchScriptRequest, UpgradePreLaunchScriptResultSchema, type UpgradePreLaunchScriptResult, type UpgradePreLaunchScriptInProgress, type UpgradePreLaunchScriptPreconditionRequired, } from "./cvms/upgrade_prelaunch_script";
|
|
56
59
|
export { getCvmStatusBatch, safeGetCvmStatusBatch, CvmStatusSchema, GetCvmStatusBatchResponseSchema, GetCvmStatusBatchRequestSchema, type CvmStatus, type GetCvmStatusBatchResponse, type GetCvmStatusBatchRequest, } from "./cvms/get_cvm_status_batch";
|
|
57
60
|
export { getCvmUserConfig, safeGetCvmUserConfig, CvmUserConfigSchema, GetCvmUserConfigRequestSchema, type CvmUserConfig, type GetCvmUserConfigRequest, } from "./cvms/get_cvm_user_config";
|
|
58
61
|
export { listSshKeys, safeListSshKeys, SshKeySchema, ListSshKeysResponseSchema, type SshKey, type ListSshKeysResponse, } from "./ssh_keys/list_ssh_keys";
|
|
@@ -66,6 +69,7 @@ export { checkAppCvmsIsAllowed, safeCheckAppCvmsIsAllowed, AppCvmsBatchIsAllowed
|
|
|
66
69
|
export { getAppList, safeGetAppList, GetAppListRequestSchema, type GetAppListRequest, } from "./apps/get_app_list";
|
|
67
70
|
export { getAppInfo, safeGetAppInfo, GetAppInfoRequestSchema, type GetAppInfoRequest, } from "./apps/get_app_info";
|
|
68
71
|
export { getAppCvms, safeGetAppCvms, GetAppCvmsRequestSchema, type GetAppCvmsRequest, } from "./apps/get_app_cvms";
|
|
72
|
+
export { createAppInstance, safeCreateAppInstance, CreateAppInstanceRequestSchema, type CreateAppInstanceRequest, } from "./apps/create_app_instance";
|
|
69
73
|
export { getAppDeviceAllowlist, safeGetAppDeviceAllowlist, GetAppDeviceAllowlistRequestSchema, type GetAppDeviceAllowlistRequest, type DeviceAllowlistResponse, type DeviceAllowlistItem, } from "./apps/get_app_device_allowlist";
|
|
70
74
|
export { getAppRevisions, safeGetAppRevisions, GetAppRevisionsRequestSchema, type GetAppRevisionsRequest, } from "./apps/get_app_revisions";
|
|
71
75
|
export { getAppRevisionDetail, safeGetAppRevisionDetail, GetAppRevisionDetailRequestSchema, type GetAppRevisionDetailRequest, } from "./apps/get_app_revision_detail";
|
|
@@ -68,6 +68,7 @@ declare const getWorkspace: {
|
|
|
68
68
|
id: z.ZodString;
|
|
69
69
|
name: z.ZodString;
|
|
70
70
|
slug: z.ZodNullable<z.ZodString>;
|
|
71
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
72
|
tier: z.ZodString;
|
|
72
73
|
role: z.ZodString;
|
|
73
74
|
is_default: z.ZodBoolean;
|
|
@@ -85,6 +86,7 @@ declare const getWorkspace: {
|
|
|
85
86
|
id: z.ZodString;
|
|
86
87
|
name: z.ZodString;
|
|
87
88
|
slug: z.ZodNullable<z.ZodString>;
|
|
89
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
90
|
tier: z.ZodString;
|
|
89
91
|
role: z.ZodString;
|
|
90
92
|
is_default: z.ZodBoolean;
|
|
@@ -65,6 +65,7 @@ export declare const WorkspaceResponseSchema: z.ZodObject<{
|
|
|
65
65
|
id: z.ZodString;
|
|
66
66
|
name: z.ZodString;
|
|
67
67
|
slug: z.ZodNullable<z.ZodString>;
|
|
68
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
69
|
tier: z.ZodString;
|
|
69
70
|
role: z.ZodString;
|
|
70
71
|
is_default: z.ZodBoolean;
|
|
@@ -74,6 +75,7 @@ export declare const WorkspaceResponseSchema: z.ZodObject<{
|
|
|
74
75
|
id: z.ZodString;
|
|
75
76
|
name: z.ZodString;
|
|
76
77
|
slug: z.ZodNullable<z.ZodString>;
|
|
78
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
79
|
tier: z.ZodString;
|
|
78
80
|
role: z.ZodString;
|
|
79
81
|
is_default: z.ZodBoolean;
|
|
@@ -83,6 +85,7 @@ export declare const WorkspaceResponseSchema: z.ZodObject<{
|
|
|
83
85
|
id: z.ZodString;
|
|
84
86
|
name: z.ZodString;
|
|
85
87
|
slug: z.ZodNullable<z.ZodString>;
|
|
88
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
89
|
tier: z.ZodString;
|
|
87
90
|
role: z.ZodString;
|
|
88
91
|
is_default: z.ZodBoolean;
|
|
@@ -107,6 +110,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
|
|
|
107
110
|
id: z.ZodString;
|
|
108
111
|
name: z.ZodString;
|
|
109
112
|
slug: z.ZodNullable<z.ZodString>;
|
|
113
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
114
|
tier: z.ZodString;
|
|
111
115
|
role: z.ZodString;
|
|
112
116
|
is_default: z.ZodBoolean;
|
|
@@ -116,6 +120,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
|
|
|
116
120
|
id: z.ZodString;
|
|
117
121
|
name: z.ZodString;
|
|
118
122
|
slug: z.ZodNullable<z.ZodString>;
|
|
123
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
124
|
tier: z.ZodString;
|
|
120
125
|
role: z.ZodString;
|
|
121
126
|
is_default: z.ZodBoolean;
|
|
@@ -125,6 +130,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
|
|
|
125
130
|
id: z.ZodString;
|
|
126
131
|
name: z.ZodString;
|
|
127
132
|
slug: z.ZodNullable<z.ZodString>;
|
|
133
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
134
|
tier: z.ZodString;
|
|
129
135
|
role: z.ZodString;
|
|
130
136
|
is_default: z.ZodBoolean;
|
|
@@ -149,6 +155,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
|
|
|
149
155
|
id: z.ZodString;
|
|
150
156
|
name: z.ZodString;
|
|
151
157
|
slug: z.ZodNullable<z.ZodString>;
|
|
158
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
152
159
|
tier: z.ZodString;
|
|
153
160
|
role: z.ZodString;
|
|
154
161
|
is_default: z.ZodBoolean;
|
|
@@ -158,6 +165,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
|
|
|
158
165
|
id: z.ZodString;
|
|
159
166
|
name: z.ZodString;
|
|
160
167
|
slug: z.ZodNullable<z.ZodString>;
|
|
168
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
169
|
tier: z.ZodString;
|
|
162
170
|
role: z.ZodString;
|
|
163
171
|
is_default: z.ZodBoolean;
|
|
@@ -167,6 +175,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
|
|
|
167
175
|
id: z.ZodString;
|
|
168
176
|
name: z.ZodString;
|
|
169
177
|
slug: z.ZodNullable<z.ZodString>;
|
|
178
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
170
179
|
tier: z.ZodString;
|
|
171
180
|
role: z.ZodString;
|
|
172
181
|
is_default: z.ZodBoolean;
|
|
@@ -191,6 +200,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
|
|
|
191
200
|
id: z.ZodString;
|
|
192
201
|
name: z.ZodString;
|
|
193
202
|
slug: z.ZodNullable<z.ZodString>;
|
|
203
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
194
204
|
tier: z.ZodString;
|
|
195
205
|
role: z.ZodString;
|
|
196
206
|
is_default: z.ZodBoolean;
|
|
@@ -200,6 +210,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
|
|
|
200
210
|
id: z.ZodString;
|
|
201
211
|
name: z.ZodString;
|
|
202
212
|
slug: z.ZodNullable<z.ZodString>;
|
|
213
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
203
214
|
tier: z.ZodString;
|
|
204
215
|
role: z.ZodString;
|
|
205
216
|
is_default: z.ZodBoolean;
|
|
@@ -209,6 +220,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
|
|
|
209
220
|
id: z.ZodString;
|
|
210
221
|
name: z.ZodString;
|
|
211
222
|
slug: z.ZodNullable<z.ZodString>;
|
|
223
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
212
224
|
tier: z.ZodString;
|
|
213
225
|
role: z.ZodString;
|
|
214
226
|
is_default: z.ZodBoolean;
|
|
@@ -242,6 +254,7 @@ declare const listWorkspaces: {
|
|
|
242
254
|
id: z.ZodString;
|
|
243
255
|
name: z.ZodString;
|
|
244
256
|
slug: z.ZodNullable<z.ZodString>;
|
|
257
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
245
258
|
tier: z.ZodString;
|
|
246
259
|
role: z.ZodString;
|
|
247
260
|
is_default: z.ZodBoolean;
|
|
@@ -251,6 +264,7 @@ declare const listWorkspaces: {
|
|
|
251
264
|
id: z.ZodString;
|
|
252
265
|
name: z.ZodString;
|
|
253
266
|
slug: z.ZodNullable<z.ZodString>;
|
|
267
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
254
268
|
tier: z.ZodString;
|
|
255
269
|
role: z.ZodString;
|
|
256
270
|
is_default: z.ZodBoolean;
|
|
@@ -260,6 +274,7 @@ declare const listWorkspaces: {
|
|
|
260
274
|
id: z.ZodString;
|
|
261
275
|
name: z.ZodString;
|
|
262
276
|
slug: z.ZodNullable<z.ZodString>;
|
|
277
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
263
278
|
tier: z.ZodString;
|
|
264
279
|
role: z.ZodString;
|
|
265
280
|
is_default: z.ZodBoolean;
|
|
@@ -292,6 +307,7 @@ declare const listWorkspaces: {
|
|
|
292
307
|
id: z.ZodString;
|
|
293
308
|
name: z.ZodString;
|
|
294
309
|
slug: z.ZodNullable<z.ZodString>;
|
|
310
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
295
311
|
tier: z.ZodString;
|
|
296
312
|
role: z.ZodString;
|
|
297
313
|
is_default: z.ZodBoolean;
|
|
@@ -301,6 +317,7 @@ declare const listWorkspaces: {
|
|
|
301
317
|
id: z.ZodString;
|
|
302
318
|
name: z.ZodString;
|
|
303
319
|
slug: z.ZodNullable<z.ZodString>;
|
|
320
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
304
321
|
tier: z.ZodString;
|
|
305
322
|
role: z.ZodString;
|
|
306
323
|
is_default: z.ZodBoolean;
|
|
@@ -310,6 +327,7 @@ declare const listWorkspaces: {
|
|
|
310
327
|
id: z.ZodString;
|
|
311
328
|
name: z.ZodString;
|
|
312
329
|
slug: z.ZodNullable<z.ZodString>;
|
|
330
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
313
331
|
tier: z.ZodString;
|
|
314
332
|
role: z.ZodString;
|
|
315
333
|
is_default: z.ZodBoolean;
|
package/dist/client.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { type SafeResult, type ClientConfig, type ResolvedClientConfig, type Ful
|
|
|
4
4
|
import type { Prettify } from "./types/common";
|
|
5
5
|
import { PhalaCloudError } from "./utils/errors";
|
|
6
6
|
export type { SafeResult, FullResponse, RequestOptions, ApiVersion, DefaultApiVersion, } from "./types/client";
|
|
7
|
-
export declare const SUPPORTED_API_VERSIONS: readonly ["2025-10-28", "2026-01-21"];
|
|
7
|
+
export declare const SUPPORTED_API_VERSIONS: readonly ["2025-10-28", "2026-01-21", "2026-05-22"];
|
|
8
8
|
export declare const DEFAULT_API_VERSION: DefaultApiVersion;
|
|
9
9
|
/**
|
|
10
10
|
* Client event types
|
|
@@ -156,7 +156,7 @@ export declare class Client<V extends ApiVersion = DefaultApiVersion> {
|
|
|
156
156
|
*
|
|
157
157
|
* @example
|
|
158
158
|
* ```typescript
|
|
159
|
-
* const client = createClient(); // defaults to 2026-
|
|
159
|
+
* const client = createClient(); // defaults to 2026-05-22
|
|
160
160
|
* const legacyClient = client.withVersion("2025-10-28");
|
|
161
161
|
* const data = await getCvmInfo(legacyClient, { id: "xxx" });
|
|
162
162
|
* ```
|
|
@@ -207,6 +207,9 @@ export declare class Client<V extends ApiVersion = DefaultApiVersion> {
|
|
|
207
207
|
* // DEBUG=phala::api-client node your-script.js
|
|
208
208
|
* ```
|
|
209
209
|
*/
|
|
210
|
+
export declare function createClient(config: ClientConfig<"2026-05-22"> & {
|
|
211
|
+
version: "2026-05-22";
|
|
212
|
+
}): Client<"2026-05-22">;
|
|
210
213
|
export declare function createClient(config: ClientConfig<"2026-01-21"> & {
|
|
211
214
|
version: "2026-01-21";
|
|
212
215
|
}): Client<"2026-01-21">;
|
package/dist/create-client.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { ClientConfig, ApiVersion, DefaultApiVersion } from "./types/client
|
|
|
3
3
|
import type { z } from "zod";
|
|
4
4
|
import type { GetCurrentUserResponse, GetCvmListResponse, GetCvmInfoResponse } from "./types/version-mappings";
|
|
5
5
|
import { type AvailableNodes } from "./actions/get_available_nodes";
|
|
6
|
+
import { type GetCvmCreateResourcesResponse } from "./actions/get_cvm_create_resources";
|
|
6
7
|
import { type AllFamiliesResponse, type FamilyInstanceTypesResponse, type ListFamilyInstanceTypesRequest } from "./actions/list-instance-types";
|
|
7
8
|
import { type ListWorkspacesRequest, type ListWorkspaces, type WorkspaceResponse } from "./actions/workspaces/list_workspaces";
|
|
8
9
|
import { type GetCvmInfoRequest } from "./actions/cvms/get_cvm_info";
|
|
@@ -16,6 +17,8 @@ import { type UpdateCvmEnvsRequest, type UpdateCvmEnvsResult } from "./actions/c
|
|
|
16
17
|
import { type UpdateDockerComposeRequest, type UpdateDockerComposeResult } from "./actions/cvms/update_docker_compose";
|
|
17
18
|
import { type UpdatePreLaunchScriptRequest, type UpdatePreLaunchScriptResult } from "./actions/cvms/update_prelaunch_script";
|
|
18
19
|
import { type GetCvmPreLaunchScriptRequest } from "./actions/cvms/get_cvm_prelaunch_script";
|
|
20
|
+
import { type GetPreLaunchScriptUpgradeStatusRequest, type PreLaunchScriptUpgradeStatus } from "./actions/cvms/get_prelaunch_script_upgrade_status";
|
|
21
|
+
import { type UpgradePreLaunchScriptRequest, type UpgradePreLaunchScriptResult } from "./actions/cvms/upgrade_prelaunch_script";
|
|
19
22
|
import { type GetKmsInfoRequest } from "./actions/kms/get_kms_info";
|
|
20
23
|
import { type GetKmsListRequest, type GetKmsListResponse } from "./actions/kms/get_kms_list";
|
|
21
24
|
import { type GetAppEnvEncryptPubKeyRequest, type GetAppEnvEncryptPubKey as GetAppEnvEncryptPubKeyResult } from "./actions/kms/get_app_env_encrypt_pubkey";
|
|
@@ -79,6 +82,9 @@ import type { SafeResult } from "./types/client";
|
|
|
79
82
|
* @param config - Client configuration
|
|
80
83
|
* @returns Client extended with all available actions
|
|
81
84
|
*/
|
|
85
|
+
export declare function createClient(config: ClientConfig<"2026-05-22"> & {
|
|
86
|
+
version: "2026-05-22";
|
|
87
|
+
}): Client<"2026-05-22">;
|
|
82
88
|
export declare function createClient(config: ClientConfig<"2026-01-21"> & {
|
|
83
89
|
version: "2026-01-21";
|
|
84
90
|
}): Client<"2026-01-21">;
|
|
@@ -126,6 +132,20 @@ export interface Client<V extends ApiVersion = DefaultApiVersion> extends BaseCl
|
|
|
126
132
|
safeGetAvailableNodes(parameters: {
|
|
127
133
|
schema: false;
|
|
128
134
|
}): Promise<SafeResult<unknown>>;
|
|
135
|
+
getCvmCreateResources(): Promise<GetCvmCreateResourcesResponse<V>>;
|
|
136
|
+
getCvmCreateResources<T extends z.ZodTypeAny>(parameters: {
|
|
137
|
+
schema: T;
|
|
138
|
+
}): Promise<z.infer<T>>;
|
|
139
|
+
getCvmCreateResources(parameters: {
|
|
140
|
+
schema: false;
|
|
141
|
+
}): Promise<unknown>;
|
|
142
|
+
safeGetCvmCreateResources(): Promise<SafeResult<GetCvmCreateResourcesResponse<V>>>;
|
|
143
|
+
safeGetCvmCreateResources<T extends z.ZodTypeAny>(parameters: {
|
|
144
|
+
schema: T;
|
|
145
|
+
}): Promise<SafeResult<z.infer<T>>>;
|
|
146
|
+
safeGetCvmCreateResources(parameters: {
|
|
147
|
+
schema: false;
|
|
148
|
+
}): Promise<SafeResult<unknown>>;
|
|
129
149
|
listAllInstanceTypeFamilies(): Promise<AllFamiliesResponse>;
|
|
130
150
|
listAllInstanceTypeFamilies<T extends z.ZodTypeAny>(parameters: {
|
|
131
151
|
schema: T;
|
|
@@ -326,6 +346,34 @@ export interface Client<V extends ApiVersion = DefaultApiVersion> extends BaseCl
|
|
|
326
346
|
safeGetCvmPreLaunchScript(request: GetCvmPreLaunchScriptRequest, parameters: {
|
|
327
347
|
schema: false;
|
|
328
348
|
}): Promise<SafeResult<unknown>>;
|
|
349
|
+
getPreLaunchScriptUpgradeStatus(request: GetPreLaunchScriptUpgradeStatusRequest): Promise<PreLaunchScriptUpgradeStatus>;
|
|
350
|
+
getPreLaunchScriptUpgradeStatus<T extends z.ZodTypeAny>(request: GetPreLaunchScriptUpgradeStatusRequest, parameters: {
|
|
351
|
+
schema: T;
|
|
352
|
+
}): Promise<z.infer<T>>;
|
|
353
|
+
getPreLaunchScriptUpgradeStatus(request: GetPreLaunchScriptUpgradeStatusRequest, parameters: {
|
|
354
|
+
schema: false;
|
|
355
|
+
}): Promise<unknown>;
|
|
356
|
+
safeGetPreLaunchScriptUpgradeStatus(request: GetPreLaunchScriptUpgradeStatusRequest): Promise<SafeResult<PreLaunchScriptUpgradeStatus>>;
|
|
357
|
+
safeGetPreLaunchScriptUpgradeStatus<T extends z.ZodTypeAny>(request: GetPreLaunchScriptUpgradeStatusRequest, parameters: {
|
|
358
|
+
schema: T;
|
|
359
|
+
}): Promise<SafeResult<z.infer<T>>>;
|
|
360
|
+
safeGetPreLaunchScriptUpgradeStatus(request: GetPreLaunchScriptUpgradeStatusRequest, parameters: {
|
|
361
|
+
schema: false;
|
|
362
|
+
}): Promise<SafeResult<unknown>>;
|
|
363
|
+
upgradePreLaunchScript(request: UpgradePreLaunchScriptRequest): Promise<UpgradePreLaunchScriptResult>;
|
|
364
|
+
upgradePreLaunchScript<T extends z.ZodTypeAny>(request: UpgradePreLaunchScriptRequest, parameters: {
|
|
365
|
+
schema: T;
|
|
366
|
+
}): Promise<z.infer<T>>;
|
|
367
|
+
upgradePreLaunchScript(request: UpgradePreLaunchScriptRequest, parameters: {
|
|
368
|
+
schema: false;
|
|
369
|
+
}): Promise<unknown>;
|
|
370
|
+
safeUpgradePreLaunchScript(request: UpgradePreLaunchScriptRequest): Promise<SafeResult<UpgradePreLaunchScriptResult>>;
|
|
371
|
+
safeUpgradePreLaunchScript<T extends z.ZodTypeAny>(request: UpgradePreLaunchScriptRequest, parameters: {
|
|
372
|
+
schema: T;
|
|
373
|
+
}): Promise<SafeResult<z.infer<T>>>;
|
|
374
|
+
safeUpgradePreLaunchScript(request: UpgradePreLaunchScriptRequest, parameters: {
|
|
375
|
+
schema: false;
|
|
376
|
+
}): Promise<SafeResult<unknown>>;
|
|
329
377
|
getKmsInfo(request: GetKmsInfoRequest): Promise<KmsInfo>;
|
|
330
378
|
getKmsInfo<T extends z.ZodTypeAny>(request: GetKmsInfoRequest, parameters: {
|
|
331
379
|
schema: T;
|