Skip to main content
@phala/cloud v0.4.0 uses API version 2026-06-23 by default. The SDK sends the selected version in the X-Phala-Version header and returns matching TypeScript types.

Supported versions

Select a version

Omit version to use 2026-06-23:
Set version when you need an older response shape:
Use .withVersion() to create another client with the same authentication and a different API version:

Version-aware return types

The client version controls the return type for versioned actions such as getCvmList, getCvmInfo, getAppList, and lifecycle operations.
Versions 2026-05-22 and 2026-06-23 share the same CVM and app response types. Version 2026-06-23 changes the KMS resource model from individual KMS nodes to KMS contracts.

Contract-centric KMS methods

The following methods always request API version 2026-06-23, even when the client uses an older version:
  • listKmsContracts()
  • getKmsContract({ slug })
  • listKmsContractNodes({ slug })
The deprecated getKmsList() and getKmsInfo() methods remain pinned to 2026-05-22 so existing code continues to receive the legacy node-centric response shape.

Standalone actions

Version-aware typing also works with a base client and standalone actions: