feat: improve API keys and build workflows
This commit is contained in:
+2
-1
@@ -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 = {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user