Component library
Generated from apiome-rest/openapi.yaml (API version 1.719.0) — do not edit by hand. How to authenticate is on the REST API reference.
Tag: component-library · 22 operations
GET /v1/component-library/{tenant_slug}/audit/export
Export Audit
Export the component-library ledger (tenant administrators).
Each row carries the actor, the policy in force, the old and new revision, the affected
projects, the decision, and the timestamp. format=csv returns text/csv with
policy and affectedProjects as compact JSON cells.
Operation id: export_audit_v1_component_library__tenant_slug__audit_export_get
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
format | query | enum "json", "csv" | no | Requested output format. |
since | query | string (date-time) or null | no | Query parameter: since. |
until | query | string (date-time) or null | no | Query parameter: until. |
componentId | query | string or null | no | Query parameter: component id. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for export audit. | application/json AuditExportResponse; text/csv any |
| 422 | Validation Error | application/json HTTPValidationError |
GET /v1/component-library/{tenant_slug}/components
List Components
List the tenant's live library components with publication summary.
By kind, then name; one page of at most limit components (1,000 at most). Pass the
page's nextCursor as cursor while hasMore is true (#7196).
Args:
tenant_slug: The tenant in the URL.
kind: Narrow to one component kind.
limit: Page size.
cursor: Where the page starts (nextCursor of the previous page).
auth_data: The authenticated principal.
Returns: The page of components and whether another follows.
Raises: HTTPException: 400 for a malformed cursor; 422 for an unknown kind.
Operation id: list_components_v1_component_library__tenant_slug__components_get
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
kind | query | string or null | no | Query parameter: kind. |
limit | query | integer | no | Page size. At most 1000. |
cursor | query | string or null | no | Opaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list components. | application/json ComponentListResponse |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/component-library/{tenant_slug}/components
Create Component
Create a component and its initial draft revision (TYPES/CREATE).
Operation id: create_component_v1_component_library__tenant_slug__components_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for create component.
application/json—ComponentCreateRequest
Responses
| Status | Description | Body |
|---|---|---|
| 201 | Successful response for create component. | application/json ComponentCreateResponse |
| 422 | Validation Error | application/json HTTPValidationError |
GET /v1/component-library/{tenant_slug}/components/{component_id}
Get Component
One component with its revisions, highest semver first.
Operation id: get_component_v1_component_library__tenant_slug__components__component_id__get
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
component_id | path | string | yes | Path parameter identifying the component id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for get component. | application/json ComponentDetailBody |
| 422 | Validation Error | application/json HTTPValidationError |
DELETE /v1/component-library/{tenant_slug}/components/{component_id}
Delete Component
Soft-delete a component (TYPES/DELETE); blocked while pinned (409).
Operation id: delete_component_v1_component_library__tenant_slug__components__component_id__delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
component_id | path | string | yes | Path parameter identifying the component id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for delete component. | application/json DeletedResponse |
| 422 | Validation Error | application/json HTTPValidationError |
DELETE /v1/component-library/{tenant_slug}/components/{component_id}/deprecations/{deprecation_id}
Cancel Deprecation
Withdraw a live deprecation (TYPES/PUBLISH).
Operation id: cancel_deprecation_v1_component_library__tenant_slug__components__component_id__deprecations__deprecation_id__delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
component_id | path | string | yes | Path parameter identifying the component id segment. |
deprecation_id | path | string | yes | Path parameter identifying the deprecation id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for cancel deprecation. | application/json map of boolean |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/component-library/{tenant_slug}/components/{component_id}/revisions
Create Revision
Add a draft revision to a component (TYPES/EDIT).
Operation id: create_revision_v1_component_library__tenant_slug__components__component_id__revisions_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
component_id | path | string | yes | Path parameter identifying the component id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for create revision.
application/json—RevisionCreateRequest
Responses
| Status | Description | Body |
|---|---|---|
| 201 | Successful response for create revision. | application/json RevisionMutationResponse |
| 422 | Validation Error | application/json HTTPValidationError |
PUT /v1/component-library/{tenant_slug}/components/{component_id}/revisions/{revision_id}
Update Revision
Replace a draft revision's payload (TYPES/EDIT); published answers 409.
Operation id: update_revision_v1_component_library__tenant_slug__components__component_id__revisions__revision_id__put
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
component_id | path | string | yes | Path parameter identifying the component id segment. |
revision_id | path | string | yes | Revision UUID (versions.id). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for update revision.
application/json—RevisionUpdateRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for update revision. | application/json RevisionMutationResponse |
| 422 | Validation Error | application/json HTTPValidationError |
DELETE /v1/component-library/{tenant_slug}/components/{component_id}/revisions/{revision_id}
Delete Revision
Delete a draft revision (TYPES/DELETE); published or pinned answers 409.
Operation id: delete_revision_v1_component_library__tenant_slug__components__component_id__revisions__revision_id__delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
component_id | path | string | yes | Path parameter identifying the component id segment. |
revision_id | path | string | yes | Revision UUID (versions.id). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for delete revision. | application/json DeletedResponse |
| 422 | Validation Error | application/json HTTPValidationError |
GET /v1/component-library/{tenant_slug}/components/{component_id}/revisions/{revision_id}/approval
Get Revision Approval
A revision's multi-stage approval assessment and decision history.
Operation id: get_revision_approval_v1_component_library__tenant_slug__components__component_id__revisions__revision_id__approval_get
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
component_id | path | string | yes | Path parameter identifying the component id segment. |
revision_id | path | string | yes | Revision UUID (versions.id). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for get revision approval. | application/json ApprovalResponse |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/component-library/{tenant_slug}/components/{component_id}/revisions/{revision_id}/approval
Record Revision Approval
Record a decision on the draft's current approval stage (TYPES/EDIT).
Decisions are immutable and bound to the payload digest they judged. Only the current stage takes decisions: later stages wait until every earlier one is satisfied.
Operation id: record_revision_approval_v1_component_library__tenant_slug__components__component_id__revisions__revision_id__approval_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
component_id | path | string | yes | Path parameter identifying the component id segment. |
revision_id | path | string | yes | Revision UUID (versions.id). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for record revision approval.
application/json—ApprovalDecisionRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for record revision approval. | application/json ApprovalResponse |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/component-library/{tenant_slug}/components/{component_id}/revisions/{revision_id}/deprecation
Schedule Deprecation
Schedule the deprecation of a published revision (TYPES/PUBLISH).
The sunset must honour the policy's notice window. The revision itself is never modified;
after the sunset new pins to it are refused (409 REVISION_SUNSET) and existing pins keep
working.
Operation id: schedule_deprecation_v1_component_library__tenant_slug__components__component_id__revisions__revision_id__deprecation_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
component_id | path | string | yes | Path parameter identifying the component id segment. |
revision_id | path | string | yes | Revision UUID (versions.id). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for schedule deprecation.
application/json—DeprecationRequest
Responses
| Status | Description | Body |
|---|---|---|
| 201 | Successful response for schedule deprecation. | application/json DeprecationBody |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/component-library/{tenant_slug}/components/{component_id}/revisions/{revision_id}/publish
Publish Revision
Publish a draft revision (TYPES/PUBLISH) — immutable from then on.
Enforces the no-unsafe-downgrade rule inside the transaction: the revision must be strictly greater than the highest already-published revision. Republishing a published revision is an idempotent no-op.
DCW-3.4: when the governing style guide defines component approval stages,
a draft whose stages are not all satisfied answers 409 APPROVAL_REQUIRED
with the assessment, and the publish transaction rechecks that the payload
is still the one the approvers judged (409 APPROVAL_STALE otherwise).
Operation id: publish_revision_v1_component_library__tenant_slug__components__component_id__revisions__revision_id__publish_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
component_id | path | string | yes | Path parameter identifying the component id segment. |
revision_id | path | string | yes | Revision UUID (versions.id). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for publish revision. | application/json PublishResponse |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/component-library/{tenant_slug}/components/{component_id}/upgrades
Execute Upgrade
Run a previewed bulk upgrade (VERSIONS/EDIT).
Refused with 422 CONFIRMATION_REQUIRED unless confirm is true, and with 409
UPGRADE_PLAN_STALE when the plan changed since the preview that issued the token.
Operation id: execute_upgrade_v1_component_library__tenant_slug__components__component_id__upgrades_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
component_id | path | string | yes | Path parameter identifying the component id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for execute upgrade.
application/json—UpgradeRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for execute upgrade. | application/json UpgradeResponse |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/component-library/{tenant_slug}/components/{component_id}/upgrades/preview
Preview Upgrade
Preview moving every consumer of the component to a published target revision.
Lists every live pin with its status and, for eligible pins, the compatibility impact on the version's document. Nothing is written; the returned token is what the upgrade call must send back.
Operation id: preview_upgrade_v1_component_library__tenant_slug__components__component_id__upgrades_preview_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
component_id | path | string | yes | Path parameter identifying the component id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for preview upgrade.
application/json—UpgradePreviewRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for preview upgrade. | application/json UpgradePreviewResponse |
| 422 | Validation Error | application/json HTTPValidationError |
GET /v1/component-library/{tenant_slug}/components/{component_id}/usage
Component Usage
Who uses a component: dependents and its live pins (DCW-3.3, private-suite#2361).
Dependents are the library components whose published head references this one, directly
or transitively (:mod:app.component_usage); pins are the live pins of the component and
of those dependents, across all of the tenant's projects. Computed server-side in one pass
over the tenant's library so latency stays flat for a tenant-scale graph.
dependents is always whole. pins is one page of at most limit pins (1,000 at
most); pass the page's nextCursor as cursor while hasMore is true (#7196).
Args:
tenant_slug: The tenant in the URL.
component_id: The component whose usage is read.
limit: Page size of pins.
cursor: Where the page of pins starts (nextCursor of the previous page).
auth_data: The authenticated principal.
Returns: The dependents, one page of pins, and whether another page follows.
Raises: HTTPException: 400 for a malformed cursor; 404 when the component is unknown.
Operation id: component_usage_v1_component_library__tenant_slug__components__component_id__usage_get
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
component_id | path | string | yes | Path parameter identifying the component id segment. |
limit | query | integer | no | Page size. At most 1000. |
cursor | query | string or null | no | Opaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for component usage. | application/json ComponentUsageResponse |
| 422 | Validation Error | application/json HTTPValidationError |
GET /v1/component-library/{tenant_slug}/deprecations
List Deprecations
Live deprecations with their affected pinned projects and migration guidance.
Soonest sunset first; one page of at most limit deprecations (200 at most). Pass the
page's nextCursor as cursor while hasMore is true (#7196).
Args:
tenant_slug: The tenant in the URL.
component_id: Narrow to one component.
limit: Page size.
cursor: Where the page starts (nextCursor of the previous page).
auth_data: The authenticated principal.
Returns: The page of deprecations and whether another follows.
Raises: HTTPException: 400 for a malformed cursor.
Operation id: list_deprecations_v1_component_library__tenant_slug__deprecations_get
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
componentId | query | string or null | no | Query parameter: component id. |
limit | query | integer | no | Page size. At most 200. |
cursor | query | string or null | no | Opaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list deprecations. | application/json DeprecationListResponse |
| 422 | Validation Error | application/json HTTPValidationError |
GET /v1/component-library/{tenant_slug}/governance/policy
Get Governance Policy
The component policy of the tenant's governing style guide (any tenant member).
Operation id: get_governance_policy_v1_component_library__tenant_slug__governance_policy_get
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for get governance policy. | application/json GovernancePolicyResponse |
| 422 | Validation Error | application/json HTTPValidationError |
GET /v1/component-library/{tenant_slug}/projects/{project_id}/versions/{version_record_id}/materialization
Materialization Preview
Deterministic preview of materializing the version's pins.
Runs the same materializer export uses against the version's generated document (with pins excluded from generation so nothing double-counts), reporting the final local component names and every collision-safe rename. Never mutates anything; local components are never overwritten.
Operation id: materialization_preview_v1_component_library__tenant_slug__projects__project_id__versions__version_record_id__materialization_get
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
project_id | path | string | yes | Project identifier that scopes the request. |
version_record_id | path | string | yes | Version row identifier (versions.id UUID). |
includeOrigin | query | boolean | no | Query parameter: include origin. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for materialization preview. | application/json MaterializationPreviewResponse |
| 422 | Validation Error | application/json HTTPValidationError |
GET /v1/component-library/{tenant_slug}/projects/{project_id}/versions/{version_record_id}/pins
List Pins
The version's live pins with component/revision identity.
Operation id: list_pins_v1_component_library__tenant_slug__projects__project_id__versions__version_record_id__pins_get
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
project_id | path | string | yes | Project identifier that scopes the request. |
version_record_id | path | string | yes | Version row identifier (versions.id UUID). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list pins. | application/json PinListResponse |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/component-library/{tenant_slug}/projects/{project_id}/versions/{version_record_id}/pins
Create Pin
Pin a published library revision to the draft version (VERSIONS/EDIT).
Operation id: create_pin_v1_component_library__tenant_slug__projects__project_id__versions__version_record_id__pins_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
project_id | path | string | yes | Project identifier that scopes the request. |
version_record_id | path | string | yes | Version row identifier (versions.id UUID). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for create pin.
application/json—PinCreateRequest
Responses
| Status | Description | Body |
|---|---|---|
| 201 | Successful response for create pin. | application/json PinCreateResponse |
| 422 | Validation Error | application/json HTTPValidationError |
DELETE /v1/component-library/{tenant_slug}/projects/{project_id}/versions/{version_record_id}/pins/{pin_id}
Delete Pin
Unpin one live pin from the draft version (VERSIONS/EDIT).
Operation id: delete_pin_v1_component_library__tenant_slug__projects__project_id__versions__version_record_id__pins__pin_id__delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
project_id | path | string | yes | Project identifier that scopes the request. |
version_record_id | path | string | yes | Version row identifier (versions.id UUID). |
pin_id | path | string | yes | Path parameter identifying the pin id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for delete pin. | application/json DeletedResponse |
| 422 | Validation Error | application/json HTTPValidationError |
Schemas used
ApprovalDecisionRequest
Record a decision on the current stage.
| Property | Type | Required | Description |
|---|---|---|---|
decision | enum "approve", "request_changes" | yes | Decision. |
note | string or null | no | Note. |
stage | integer or null | no | The stage the reviewer was shown; refused with 409 STAGE_NOT_CURRENT when another stage is current. |
ApprovalResponse
A revision's assessment plus its decision history.
| Property | Type | Required | Description |
|---|---|---|---|
revisionId | string | yes | Revision ID. |
revision | string | yes | Revision. |
state | string | yes | State. |
assessment | object | yes | Assessment. |
decisions | array of ApprovalDecisionBody | no | Decisions. |
AuditExportResponse
AuditExportResponse schema.
| Property | Type | Required | Description |
|---|---|---|---|
rows | array of object | no | Rows. |
truncated | boolean | no | Truncated. |
ComponentCreateRequest
Create a component plus its initial draft revision.
| Property | Type | Required | Description |
|---|---|---|---|
name | string | yes | Stable library name (component-key safe). |
kind | string | yes | parameter | header | requestBody | response | securityBundle | schema |
description | string or null | no | Free-text description. |
ownerId | string or null | no | Accountable member; defaults to the creator. |
initialRevision | InitialRevisionBody | no | Initial Revision. |
ComponentCreateResponse
ComponentCreateResponse schema.
| Property | Type | Required | Description |
|---|---|---|---|
componentId | string | yes | Component ID. |
revisionId | string | yes | Revision ID. |
ComponentDetailBody
Component detail: the summary plus its revisions, highest semver first.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | Stable resource identifier. |
name | string | yes | Human-readable name. |
kind | string | yes | Kind. |
description | string or null | no | Free-text description. |
ownerId | string or null | no | Owner ID. |
revisionCount | integer | no | Number of revision. |
publishedCount | integer | no | Number of published. |
headRevision | string or null | no | Highest published semver, or null while draft-only. |
revisions | array of ComponentLibraryRevisionBody | no | Revisions. |
ComponentListResponse
ComponentListResponse schema.
| Property | Type | Required | Description |
|---|---|---|---|
components | array of ComponentSummaryBody | no | Components. |
hasMore | boolean | no | Whether another page exists. |
nextCursor | string or null | no | Pass as cursor to read the next page; null on the last page. |
ComponentUsageResponse
DCW-3.3 usage report: tenant-wide pins and direct/transitive dependents.
| Property | Type | Required | Description |
|---|---|---|---|
componentId | string | yes | Component ID. |
pins | array of UsagePinBody | no | Pins. |
dependents | array of UsageDependentBody | no | Reverse index of refs: the visible types that reference this one, one entry per referencing edge. |
hasMore | boolean | no | Whether another page of pins exists. |
nextCursor | string or null | no | Pass as cursor to read the next page of pins; null on the last page. |
DeletedResponse
DeletedResponse schema.
| Property | Type | Required | Description |
|---|---|---|---|
deleted | boolean | yes | Deleted. |
DeprecationBody
One live deprecation with its consumers and guidance.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | Stable resource identifier. |
componentId | string | yes | Component ID. |
componentName | string | yes | Component Name. |
kind | string or null | no | Kind. |
revisionId | string | yes | Revision ID. |
revision | string | yes | Revision. |
replacementRevisionId | string or null | no | Replacement Revision ID. |
replacementRevision | string or null | no | Replacement Revision. |
sunsetAt | string | yes | Sunset At. |
status | string | yes | scheduled | sunset |
migrationGuide | string or null | no | Migration Guide. |
affectedProjects | array of AffectedProjectBody | no | Affected Projects. |
guidance | object | no | Guidance. |
DeprecationListResponse
DeprecationListResponse schema.
| Property | Type | Required | Description |
|---|---|---|---|
deprecations | array of DeprecationBody | no | Deprecations. |
hasMore | boolean | no | Whether another page exists. |
nextCursor | string or null | no | Pass as cursor to read the next page; null on the last page. |
DeprecationRequest
Schedule the deprecation of a published revision.
| Property | Type | Required | Description |
|---|---|---|---|
sunsetAt | string (date-time) | yes | When new pins to the revision stop (ISO 8601). |
replacementRevisionId | string or null | no | A published, higher revision of the same component. |
migrationGuide | string or null | no | Migration Guide. |
GovernancePolicyResponse
The resolved component policy (see ComponentGovernancePolicy.as_payload).
| Property | Type | Required | Description |
|---|---|---|---|
guideId | string or null | no | Guide ID. |
guideName | string or null | no | Guide Name. |
approvalStages | array of object | no | Approval Stages. |
deprecationNoticeDays | integer | no | Deprecation Notice Days. |
HTTPValidationError
Validation error response emitted when request data fails schema checks.
| Property | Type | Required | Description |
|---|---|---|---|
detail | array of ValidationError | no | Detail. |
MaterializationPreviewResponse
The deterministic preview of materializing the version's pins.
| Property | Type | Required | Description |
|---|---|---|---|
includeOrigin | boolean | yes | Include Origin. |
entries | array of MaterializationEntryBody | no | Entries. |
collisions | array of MaterializationEntryBody | no | Collisions. |
PinCreateRequest
Pin one published library revision to the draft version.
| Property | Type | Required | Description |
|---|---|---|---|
componentRevisionId | string | yes | Component Revision ID. |
localName | string or null | no | Optional preferred local components key; collisions still resolve deterministically and never overwrite local components. |
PinCreateResponse
PinCreateResponse schema.
| Property | Type | Required | Description |
|---|---|---|---|
pinId | string | yes | Pin ID. |
PinListResponse
PinListResponse schema.
| Property | Type | Required | Description |
|---|---|---|---|
pins | array of PinBody | no | Pins. |
PublishResponse
PublishResponse schema.
| Property | Type | Required | Description |
|---|---|---|---|
published | boolean | yes | Published. |
alreadyPublished | boolean | yes | Already Published. |
revision | string | yes | Revision. |
RevisionCreateRequest
Create a new draft revision of an existing component.
| Property | Type | Required | Description |
|---|---|---|---|
revision | string | yes | Semver revision string, unique per component. |
payload | any | no | Payload. |
schemaPrimitiveId | string or null | no | Schema Primitive ID. |
RevisionMutationResponse
RevisionMutationResponse schema.
| Property | Type | Required | Description |
|---|---|---|---|
revisionId | string | yes | Revision ID. |
RevisionUpdateRequest
Replace a draft revision's canonical payload.
| Property | Type | Required | Description |
|---|---|---|---|
payload | any | no | Payload. |
schemaPrimitiveId | string or null | no | Schema Primitive ID. |
UpgradePreviewRequest
UpgradePreviewRequest schema.
| Property | Type | Required | Description |
|---|---|---|---|
targetRevisionId | string | yes | Target Revision ID. |
UpgradePreviewResponse
UpgradePreviewResponse schema.
| Property | Type | Required | Description |
|---|---|---|---|
componentId | string | yes | Component ID. |
targetRevisionId | string | yes | Target Revision ID. |
targetRevision | string | yes | Target Revision. |
entries | array of UpgradeEntryBody | no | Entries. |
eligible | integer | no | Eligible. |
skipped | integer | no | Skipped. |
breaking | integer | no | Eligible versions with a breaking change. |
confirmationToken | string | yes | Confirmation Token. |
policy | object | no | Policy. |
UpgradeRequest
Run a previewed plan.
| Property | Type | Required | Description |
|---|---|---|---|
targetRevisionId | string | yes | Target Revision ID. |
pinIds | array of string | yes | Pin IDs. |
confirmationToken | string | yes | Confirmation Token. |
confirm | boolean | no | Must be true: the caller confirms the previewed impact. |
UpgradeResponse
UpgradeResponse schema.
| Property | Type | Required | Description |
|---|---|---|---|
targetRevision | string | yes | Target Revision. |
upgraded | array of object | no | Upgraded. |
affectedProjects | array of AffectedProjectBody | no | Affected Projects. |