Build

The `Build` entity.

Definition

TypeScript
interface Build {
  id: string;
  workspaceId: string;
  entityId: string;
  sequenceNumber: number;
  status: "pending" | "failed" | "running" | "completed" | "cancelled";
  trigger: "manual" | "auto" | "redeploy";
  sourceEventId: string | null;
  error: string | null;
  metadata: Record<string, unknown> | null;
  createdBy: string | null;
  startedAt: string | null;
  completedAt: string | null;
  createdAt: string;
}

Fields

FieldTypeNotes
idstringreadonly required
workspaceIdstringrequired — Workspace that owns this build.
entityIdstringrequired — Prefixed ID of the entity being built (e.g. app, function, element version).
sequenceNumbernumberrequired — Monotonically-increasing build number for the target entity.
status"pending" | "failed" | "running" | "completed" | "cancelled"required — Build lifecycle (queued, running, succeeded, failed, cancelled).
trigger"manual" | "auto" | "redeploy"required — What initiated the build (user action, event, schedule, etc.).
sourceEventIdstring | nullrequired — ID of the event that triggered the build, when applicable.
errorstring | nullrequired — Error message when the build failed, otherwise null.
metadataRecord<string, unknown> | nullrequired — Free-form build metadata (durations, artifacts, etc.).
createdBystring | nullrequired — User who started the build; null for system-triggered builds.
startedAtstring | nullrequired — ISO-8601 timestamp when the build began executing.
completedAtstring | nullrequired — ISO-8601 timestamp when the build finished.
createdAtstringreadonly required — ISO-8601 timestamp of creation.