Design System Builder API: schemas

The request and response bodies of the operations in this API.

CreateDesignSystemBuilderDto

PropertyTypeRequiredDescription
descriptionstringno
sessionLaunchobjectyes
tagsarray of stringnoInitial tags for list-page filtering.
titlestringyes

DesignSystemBuildStatus

Type: one of "creating", "active", "archived"

DesignSystemBuilderKBPushDto

PropertyTypeRequiredDescription
createSpacebooleannoCreate the space if it does not exist.
entriesarray of KBPushEntryDtoyesFiles and directories from the design system build session workspace to push.
spaceSlugstringyesTarget space slug. The space must exist or createSpace must be true.
spaceTitlestringnoHuman-readable title to use when creating the space. Required when createSpace=true and the space does not yet exist.
targetParentSlugstringnoSlug of an existing KB page to use as the parent for pushed pages. When omitted, pages are created at the root of the space.

DesignSystemBuilderKBPushResponseDto

PropertyTypeRequiredDescription
pageIdsarray of stringyesIDs of the created KB pages.
pagesCreatednumberyesTotal number of KB pages created.
spaceSlugstringyesSpace slug where pages were created.

DesignSystemBuilderKBPushResponseDtoDataEnvelope

PropertyTypeRequiredDescription
dataDesignSystemBuilderKBPushResponseDtoyes

DesignSystemBuilderResponseDto

PropertyTypeRequiredDescription
createdAtstring (date-time)yes
createdBystringyes
descriptionobject or nullno
failureReasonobject or nullnoHuman-readable error when create or archive failed. Null on healthy rows.
idstringyes
latestBootstrapJobIdobject or nullnoMost recent bootstrap job id launched from this design system build. The frontend uses this to navigate into the clarification chat; the pipeline run itself is created later, after the clarification contract is approved.
orgIdstringyes
previousSessionIdsarray of stringyesAudit of sessions superseded by /restart.
projectIdstringyes
sessionIdobject or nullnoActive agent-session id. Null during CREATING, or after a restart while the fresh session is provisioning.
sessionStatusobject or nullnoCached live lifecycle status of the underlying agent-session (e.g. active, paused, recovering). Distinct from status (the project-lifecycle); reflects worker-liveness so the list stays honest while a session is paused. Null until the first session lifecycle event is observed.
statusDesignSystemBuildStatusyes
tagsarray of stringyes
titlestringyes
updatedAtstring (date-time)yes

DesignSystemBuilderResponseDtoDataEnvelope

PropertyTypeRequiredDescription
dataDesignSystemBuilderResponseDtoyes

DesignSystemBuilderResponseDtoPaginatedEnvelope

PropertyTypeRequiredDescription
dataarray of DesignSystemBuilderResponseDtoyes
paginationPaginationMetayes

KBPushEntryDto

PropertyTypeRequiredDescription
pathstringyesWorkspace-relative file or directory path.
typeone of "file", "directory"yesWhether the path is a file or a directory.

LaunchPipelineDto

PropertyTypeRequiredDescription
intentMarkdownstringyesFinal pipeline brief — the user-edited contents of deliverables/PIPELINE_INTENT.md at launch time. Frozen server-side; later session edits do not retroactively modify this handoff.
outputPathsarray of stringyesUser-selected deliverable paths (scoped to deliverables/** in the session workspace). At least one path is required — the launch modal should disable the submit button otherwise.

LaunchPipelineResponseDto

PropertyTypeRequiredDescription
jobIdstringyesWorkflow-engine run ID created by the launch. The frontend uses this to navigate directly to the pipeline run detail page.
threadIdstringyesWorkflow-engine run ID echoed as threadId for reconciliation. Clients should key off jobId.
workflowSlugstringyesWorkflow slug used for this run. The frontend uses this to build the pipeline run URL without hardcoding the slug.

LaunchPipelineResponseDtoDataEnvelope

PropertyTypeRequiredDescription
dataLaunchPipelineResponseDtoyes

PaginationMeta

PropertyTypeRequiredDescription
hasMorebooleanno
limitnumberno
nextCursorstring or nullno
pagenumberno
previousCursorstring or nullno
totalnumberno
totalPagesnumberno

PublishDesignSystemDto

PropertyTypeRequiredDescription
designSystemKindstringyes<namespace>/<kind>[.<segment>]@<major> — one the org has installed.
releaseChannelstringnoDefaults to stable, which is what the org-brand selector binds. Optional rather than fixed because the channel is an open vocabulary in the kernel; stated here so a caller CAN publish elsewhere without this surface pretending the choice does not exist.

PublishDesignSystemResponseDto

PropertyTypeRequiredDescription
intentIdstringyes
resourceIdstringyes
revisionIdstringyes
statusstringyespending | dispatching | pending-decision | promoted | denied | failed. Anything other than denied/failed means the publication is in flight.

PublishDesignSystemResponseDtoDataEnvelope

PropertyTypeRequiredDescription
dataPublishDesignSystemResponseDtoyes

UpdateDesignSystemBuilderDto

PropertyTypeRequiredDescription
descriptionobject or nullnoUpdated description for the design system build session
titlestringnoNew title for the design system build session