Skip to main content

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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
formatqueryenum "json", "csv"noRequested output format.
sincequerystring (date-time) or nullnoQuery parameter: since.
untilquerystring (date-time) or nullnoQuery parameter: until.
componentIdquerystring or nullnoQuery parameter: component id.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for export audit.application/json AuditExportResponse; text/csv any
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
kindquerystring or nullnoQuery parameter: kind.
limitqueryintegernoPage size. At most 1000.
cursorquerystring or nullnoOpaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list components.application/json ComponentListResponse
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for create component.

Responses

StatusDescriptionBody
201Successful response for create component.application/json ComponentCreateResponse
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
component_idpathstringyesPath parameter identifying the component id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for get component.application/json ComponentDetailBody
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
component_idpathstringyesPath parameter identifying the component id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for delete component.application/json DeletedResponse
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
component_idpathstringyesPath parameter identifying the component id segment.
deprecation_idpathstringyesPath parameter identifying the deprecation id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for cancel deprecation.application/json map of boolean
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
component_idpathstringyesPath parameter identifying the component id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for create revision.

Responses

StatusDescriptionBody
201Successful response for create revision.application/json RevisionMutationResponse
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
component_idpathstringyesPath parameter identifying the component id segment.
revision_idpathstringyesRevision UUID (versions.id).
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for update revision.

Responses

StatusDescriptionBody
200Successful response for update revision.application/json RevisionMutationResponse
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
component_idpathstringyesPath parameter identifying the component id segment.
revision_idpathstringyesRevision UUID (versions.id).
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for delete revision.application/json DeletedResponse
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
component_idpathstringyesPath parameter identifying the component id segment.
revision_idpathstringyesRevision UUID (versions.id).
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for get revision approval.application/json ApprovalResponse
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
component_idpathstringyesPath parameter identifying the component id segment.
revision_idpathstringyesRevision UUID (versions.id).
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for record revision approval.

Responses

StatusDescriptionBody
200Successful response for record revision approval.application/json ApprovalResponse
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
component_idpathstringyesPath parameter identifying the component id segment.
revision_idpathstringyesRevision UUID (versions.id).
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for schedule deprecation.

Responses

StatusDescriptionBody
201Successful response for schedule deprecation.application/json DeprecationBody
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
component_idpathstringyesPath parameter identifying the component id segment.
revision_idpathstringyesRevision UUID (versions.id).
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for publish revision.application/json PublishResponse
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
component_idpathstringyesPath parameter identifying the component id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for execute upgrade.

Responses

StatusDescriptionBody
200Successful response for execute upgrade.application/json UpgradeResponse
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
component_idpathstringyesPath parameter identifying the component id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for preview upgrade.

Responses

StatusDescriptionBody
200Successful response for preview upgrade.application/json UpgradePreviewResponse
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
component_idpathstringyesPath parameter identifying the component id segment.
limitqueryintegernoPage size. At most 1000.
cursorquerystring or nullnoOpaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for component usage.application/json ComponentUsageResponse
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
componentIdquerystring or nullnoQuery parameter: component id.
limitqueryintegernoPage size. At most 200.
cursorquerystring or nullnoOpaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list deprecations.application/json DeprecationListResponse
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for get governance policy.application/json GovernancePolicyResponse
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
includeOriginquerybooleannoQuery parameter: include origin.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for materialization preview.application/json MaterializationPreviewResponse
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list pins.application/json PinListResponse
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for create pin.

Responses

StatusDescriptionBody
201Successful response for create pin.application/json PinCreateResponse
422Validation Errorapplication/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

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
pin_idpathstringyesPath parameter identifying the pin id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for delete pin.application/json DeletedResponse
422Validation Errorapplication/json HTTPValidationError

Schemas used​

ApprovalDecisionRequest​

Record a decision on the current stage.

PropertyTypeRequiredDescription
decisionenum "approve", "request_changes"yesDecision.
notestring or nullnoNote.
stageinteger or nullnoThe 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.

PropertyTypeRequiredDescription
revisionIdstringyesRevision ID.
revisionstringyesRevision.
statestringyesState.
assessmentobjectyesAssessment.
decisionsarray of ApprovalDecisionBodynoDecisions.

AuditExportResponse​

AuditExportResponse schema.

PropertyTypeRequiredDescription
rowsarray of objectnoRows.
truncatedbooleannoTruncated.

ComponentCreateRequest​

Create a component plus its initial draft revision.

PropertyTypeRequiredDescription
namestringyesStable library name (component-key safe).
kindstringyesparameter | header | requestBody | response | securityBundle | schema
descriptionstring or nullnoFree-text description.
ownerIdstring or nullnoAccountable member; defaults to the creator.
initialRevisionInitialRevisionBodynoInitial Revision.

ComponentCreateResponse​

ComponentCreateResponse schema.

PropertyTypeRequiredDescription
componentIdstringyesComponent ID.
revisionIdstringyesRevision ID.

ComponentDetailBody​

Component detail: the summary plus its revisions, highest semver first.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
namestringyesHuman-readable name.
kindstringyesKind.
descriptionstring or nullnoFree-text description.
ownerIdstring or nullnoOwner ID.
revisionCountintegernoNumber of revision.
publishedCountintegernoNumber of published.
headRevisionstring or nullnoHighest published semver, or null while draft-only.
revisionsarray of ComponentLibraryRevisionBodynoRevisions.

ComponentListResponse​

ComponentListResponse schema.

PropertyTypeRequiredDescription
componentsarray of ComponentSummaryBodynoComponents.
hasMorebooleannoWhether another page exists.
nextCursorstring or nullnoPass 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.

PropertyTypeRequiredDescription
componentIdstringyesComponent ID.
pinsarray of UsagePinBodynoPins.
dependentsarray of UsageDependentBodynoReverse index of refs: the visible types that reference this one, one entry per referencing edge.
hasMorebooleannoWhether another page of pins exists.
nextCursorstring or nullnoPass as cursor to read the next page of pins; null on the last page.

DeletedResponse​

DeletedResponse schema.

PropertyTypeRequiredDescription
deletedbooleanyesDeleted.

DeprecationBody​

One live deprecation with its consumers and guidance.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
componentIdstringyesComponent ID.
componentNamestringyesComponent Name.
kindstring or nullnoKind.
revisionIdstringyesRevision ID.
revisionstringyesRevision.
replacementRevisionIdstring or nullnoReplacement Revision ID.
replacementRevisionstring or nullnoReplacement Revision.
sunsetAtstringyesSunset At.
statusstringyesscheduled | sunset
migrationGuidestring or nullnoMigration Guide.
affectedProjectsarray of AffectedProjectBodynoAffected Projects.
guidanceobjectnoGuidance.

DeprecationListResponse​

DeprecationListResponse schema.

PropertyTypeRequiredDescription
deprecationsarray of DeprecationBodynoDeprecations.
hasMorebooleannoWhether another page exists.
nextCursorstring or nullnoPass as cursor to read the next page; null on the last page.

DeprecationRequest​

Schedule the deprecation of a published revision.

PropertyTypeRequiredDescription
sunsetAtstring (date-time)yesWhen new pins to the revision stop (ISO 8601).
replacementRevisionIdstring or nullnoA published, higher revision of the same component.
migrationGuidestring or nullnoMigration Guide.

GovernancePolicyResponse​

The resolved component policy (see ComponentGovernancePolicy.as_payload).

PropertyTypeRequiredDescription
guideIdstring or nullnoGuide ID.
guideNamestring or nullnoGuide Name.
approvalStagesarray of objectnoApproval Stages.
deprecationNoticeDaysintegernoDeprecation Notice Days.

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.

MaterializationPreviewResponse​

The deterministic preview of materializing the version's pins.

PropertyTypeRequiredDescription
includeOriginbooleanyesInclude Origin.
entriesarray of MaterializationEntryBodynoEntries.
collisionsarray of MaterializationEntryBodynoCollisions.

PinCreateRequest​

Pin one published library revision to the draft version.

PropertyTypeRequiredDescription
componentRevisionIdstringyesComponent Revision ID.
localNamestring or nullnoOptional preferred local components key; collisions still resolve deterministically and never overwrite local components.

PinCreateResponse​

PinCreateResponse schema.

PropertyTypeRequiredDescription
pinIdstringyesPin ID.

PinListResponse​

PinListResponse schema.

PropertyTypeRequiredDescription
pinsarray of PinBodynoPins.

PublishResponse​

PublishResponse schema.

PropertyTypeRequiredDescription
publishedbooleanyesPublished.
alreadyPublishedbooleanyesAlready Published.
revisionstringyesRevision.

RevisionCreateRequest​

Create a new draft revision of an existing component.

PropertyTypeRequiredDescription
revisionstringyesSemver revision string, unique per component.
payloadanynoPayload.
schemaPrimitiveIdstring or nullnoSchema Primitive ID.

RevisionMutationResponse​

RevisionMutationResponse schema.

PropertyTypeRequiredDescription
revisionIdstringyesRevision ID.

RevisionUpdateRequest​

Replace a draft revision's canonical payload.

PropertyTypeRequiredDescription
payloadanynoPayload.
schemaPrimitiveIdstring or nullnoSchema Primitive ID.

UpgradePreviewRequest​

UpgradePreviewRequest schema.

PropertyTypeRequiredDescription
targetRevisionIdstringyesTarget Revision ID.

UpgradePreviewResponse​

UpgradePreviewResponse schema.

PropertyTypeRequiredDescription
componentIdstringyesComponent ID.
targetRevisionIdstringyesTarget Revision ID.
targetRevisionstringyesTarget Revision.
entriesarray of UpgradeEntryBodynoEntries.
eligibleintegernoEligible.
skippedintegernoSkipped.
breakingintegernoEligible versions with a breaking change.
confirmationTokenstringyesConfirmation Token.
policyobjectnoPolicy.

UpgradeRequest​

Run a previewed plan.

PropertyTypeRequiredDescription
targetRevisionIdstringyesTarget Revision ID.
pinIdsarray of stringyesPin IDs.
confirmationTokenstringyesConfirmation Token.
confirmbooleannoMust be true: the caller confirms the previewed impact.

UpgradeResponse​

UpgradeResponse schema.

PropertyTypeRequiredDescription
targetRevisionstringyesTarget Revision.
upgradedarray of objectnoUpgraded.
affectedProjectsarray of AffectedProjectBodynoAffected Projects.