Simpler Platform API SDK
@alienplatform/platform-api now takes request bodies directly. Methods
with one ID take (id, body):
// before
await alien.deploymentGroups.createDeploymentGroupToken({
id, createDeploymentGroupTokenRequest: body,
})
// after
await alien.deploymentGroups.createToken(id, body)This is a new major version. The HTTP API and the model types didn't change, so only call sites move. Larger requests and query-only calls keep their named request objects.
Setup links got simpler too. The workspace comes from the API key, and creating a link again with the same external ID returns the same deployment group with a new link, so a second click in your product is safe.
- Project admin keys:
alien api-keys create --for project-admincreates a key that manages one project, including its webhooks and deletion - Deployment group moves: the SDK and
alien deployments movemove a deployment to another group