The supplier's side of phase 4, step 4 of the plan on #1028:
- `POST /api/v1/targets/{id}/releases` releases a target over one of the
workspace's active connections (#1062), once per connection at a time
(409 `released`); an unknown or inactive connection is 422
(`unknown_connection`); `…/releases/{release}/end` ends it (idempotent);
- `POST /api/v1/targets/{id}/versions` publishes a version: the target's
components now as the stripped CycloneDX (`released_cyclonedx`, #1049),
the workspace's display name as supplier and the label as version; labels
are unique per target (409), a target without components is 422; the
document is kept in the target's upload folder with its SHA-256, so an
unchanged version is never delivered twice;
- `GET …/versions/preview?label=` builds it without storing it;
- `GET /api/v1/targets/{id}/releases` lists releases (active first) and
versions;
- releasing, ending and publishing are audited; deleting a target deletes
its releases and versions (their files with its upload folder).
Delivering versions to the customers who accept comes with the customer
side.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9