feat: improve API keys and build workflows

This commit is contained in:
2026-10-04 20:05:13 +00:00 Unverified
parent 62f2362a2e
commit e4623efe86
27 changed files with 2080 additions and 235 deletions
+2 -1
View File
@@ -244,7 +244,8 @@ export type ApiKey = {
username: string;
capabilities: Capability[];
workspace?: string;
expiresAt: string;
/** Absent for a key that never expires. */
expiresAt?: string;
disabled: boolean;
};
export type CreateApiKeyRequest = {
+10
View File
@@ -32,14 +32,24 @@ export type BuildRequest = {
project: string;
service: string;
spec: BuildSpec;
/** Additional service destinations for the same build artifact. */
destinations?: Array<{ service: string; image: string }>;
};
export type BuildState = "queued" | "running" | "succeeded" | "failed";
export type BuildPhase =
| "queued"
| "creating"
| "starting"
| "running"
| "done";
export type BuildStatus = {
version: typeof BUILD_PROTOCOL_VERSION;
id: string;
state: BuildState;
/** Optional lifecycle detail; absent on older persisted builds and servers. */
phase?: BuildPhase;
createdAt: string;
startedAt?: string;
finishedAt?: string;