@phala/cloud 0.2.10 → 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 +100 -161
- package/dist/actions/apps/check_app_is_allowed.d.ts +14 -14
- package/dist/actions/apps/create_app_instance.d.ts +22 -22
- package/dist/actions/apps/get_app_attestation.d.ts +32 -32
- package/dist/actions/apps/get_app_device_allowlist.d.ts +51 -50
- package/dist/actions/apps/get_app_list.d.ts +2 -2
- package/dist/actions/cvms/check_cvm_is_allowed.d.ts +40 -102
- package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +12 -12
- package/dist/actions/cvms/commit_cvm_provision.d.ts +5 -135
- 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 +10 -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 +2 -2
- package/dist/actions/cvms/patch_cvm.d.ts +18 -18
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +38 -38
- package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +27 -58
- package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +120 -165
- 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 +24 -24
- 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 +20 -20
- 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_nodes.d.ts +14 -14
- package/dist/index.js +254 -45
- package/dist/index.mjs +254 -45
- package/dist/types/app_info_v20251028.d.ts +128 -128
- package/dist/types/app_info_v20260121.d.ts +490 -490
- package/dist/types/app_revision.d.ts +8 -8
- package/dist/types/cvm_id.d.ts +6 -6
- package/dist/types/cvm_info.d.ts +98 -98
- package/dist/types/cvm_info_v20251028.d.ts +47 -47
- package/dist/types/cvm_info_v20260121.d.ts +148 -148
- package/dist/types/version-mappings.d.ts +37 -0
- package/package.json +1 -1
|
@@ -7,10 +7,17 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { CurrentUserV20260121 } from "../credentials/current_user_v20260121";
|
|
9
9
|
import type { CurrentUserV20251028 } from "../credentials/current_user_v20251028";
|
|
10
|
+
import type { AppCvmsBatchIsAllowedResponseV20260121, AppCvmsBatchIsAllowedResponseV20260522 } from "../actions/apps/check_app_cvms_is_allowed";
|
|
11
|
+
import type { DeviceAllowlistResponseV20260121, DeviceAllowlistResponseV20260522 } from "../actions/apps/get_app_device_allowlist";
|
|
12
|
+
import type { IsAllowedResultV20260121, IsAllowedResultV20260522 } from "../actions/cvms/check_cvm_is_allowed";
|
|
13
|
+
import type { InstanceIdRefreshResultV20260121, InstanceIdRefreshResultV20260522 } from "../actions/cvms/refresh_cvm_instance_id";
|
|
14
|
+
import type { RefreshCvmInstanceIdsResponseV20260121, RefreshCvmInstanceIdsResponseV20260522 } from "../actions/cvms/refresh_cvm_instance_ids";
|
|
15
|
+
import type { CommitCvmProvisionV20260121, CommitCvmProvisionV20260522 } from "../actions/cvms/commit_cvm_provision";
|
|
10
16
|
import type { DstackAppListResponseV20251028, DstackAppWithCvmResponseV20251028 } from "./app_info_v20251028";
|
|
11
17
|
import type { DstackAppListResponseV20260121, DstackAppListResponseV20260522, DstackAppWithCvmResponseV20260121, DstackAppWithCvmResponseV20260522 } from "./app_info_v20260121";
|
|
12
18
|
import type { ApiVersion } from "./client";
|
|
13
19
|
import type { CvmDetailV20251028, CvmInfoV20251028, PaginatedCvmInfosV20251028 } from "./cvm_info_v20251028";
|
|
20
|
+
import type { VMForVersion } from "./cvm_info";
|
|
14
21
|
import type { CvmInfoDetailV20260121, CvmInfoDetailV20260522, CvmInfoV20260121, CvmInfoV20260522, PaginatedCvmInfosV20260121, PaginatedCvmInfosV20260522 } from "./cvm_info_v20260121";
|
|
15
22
|
/**
|
|
16
23
|
* Maps API version to the auth/me response type
|
|
@@ -36,3 +43,33 @@ export type GetAppInfoResponse<V extends ApiVersion> = V extends "2026-05-22" ?
|
|
|
36
43
|
* Maps API version to the app CVMs list response type
|
|
37
44
|
*/
|
|
38
45
|
export type GetAppCvmsResponse<V extends ApiVersion> = V extends "2026-05-22" ? CvmInfoV20260522[] : V extends "2026-01-21" ? CvmInfoV20260121[] : V extends "2025-10-28" ? CvmInfoV20251028[] : CvmInfoV20260121[];
|
|
46
|
+
/**
|
|
47
|
+
* Maps API version to the CVM lifecycle action response type (start/stop/restart/shutdown/replicate)
|
|
48
|
+
*/
|
|
49
|
+
export type CvmLifecycleResponse<V extends ApiVersion> = VMForVersion<V>;
|
|
50
|
+
/**
|
|
51
|
+
* Maps API version to the commit CVM provision response type
|
|
52
|
+
*/
|
|
53
|
+
export type CommitCvmProvisionResponse<V extends ApiVersion> = V extends "2026-01-21" ? CommitCvmProvisionV20260121 : CommitCvmProvisionV20260522;
|
|
54
|
+
/**
|
|
55
|
+
* Maps API version to the check CVM is-allowed response type
|
|
56
|
+
*/
|
|
57
|
+
export type CheckCvmIsAllowedResponse<V extends ApiVersion> = V extends "2026-01-21" ? IsAllowedResultV20260121 : IsAllowedResultV20260522;
|
|
58
|
+
/**
|
|
59
|
+
* Maps API version to the app batch is-allowed response type
|
|
60
|
+
*/
|
|
61
|
+
export type CheckAppCvmsIsAllowedResponse<V extends ApiVersion> = V extends "2026-01-21" ? AppCvmsBatchIsAllowedResponseV20260121 : AppCvmsBatchIsAllowedResponseV20260522;
|
|
62
|
+
/**
|
|
63
|
+
* Maps API version to the device allowlist response type
|
|
64
|
+
*/
|
|
65
|
+
export type GetAppDeviceAllowlistResponse<V extends ApiVersion> = V extends "2026-01-21" ? DeviceAllowlistResponseV20260121 : DeviceAllowlistResponseV20260522;
|
|
66
|
+
/**
|
|
67
|
+
* Maps API version to the refresh CVM instance ID response type
|
|
68
|
+
*/
|
|
69
|
+
export type RefreshCvmInstanceIdResponse<V extends ApiVersion> = V extends "2026-01-21" ? InstanceIdRefreshResultV20260121 : InstanceIdRefreshResultV20260522;
|
|
70
|
+
/**
|
|
71
|
+
* Maps API version to the batch refresh CVM instance IDs response type
|
|
72
|
+
* Note: defined as RefreshCvmInstanceIdsVersionedResponse to avoid conflict with the
|
|
73
|
+
* concrete exported type RefreshCvmInstanceIdsResponse from the action module.
|
|
74
|
+
*/
|
|
75
|
+
export type RefreshCvmInstanceIdsVersionedResponse<V extends ApiVersion> = V extends "2026-01-21" ? RefreshCvmInstanceIdsResponseV20260121 : RefreshCvmInstanceIdsResponseV20260522;
|