openapi: 3.1.0 info: # Do not change the title, if the title changes, the import paths will be broken title: Api version: 0.1.0 description: API specification servers: - url: /api description: Base API path tags: - name: health description: Health operations - name: site description: Public site content - name: pages description: Public page content - name: admin description: Admin authentication - name: chat description: Visitor AI assistant chat and lead capture - name: leads description: Admin lead management and content indexing - name: storage description: Object storage upload and serving - name: cms description: Admin page CMS with draft/publish, versioning, and navigation - name: media description: Admin media library and homepage carousel - name: settings description: Admin LLM/model configuration - name: wizard description: Admin landing-page wizard, templates, and translation - name: growth description: Affiliate links, SEO metadata, visitor analytics, and AI recommendations - name: newsletter description: Newsletter subscription (GDPR double opt-in), campaigns, and sending - name: conformity description: Multi-regulation conformity knowledge & mapping engine (CRA, AI Act, Machinery, IEC 62443) paths: /healthz: get: operationId: healthCheck tags: [health] summary: Health check description: Returns server health status responses: "200": description: Healthy content: application/json: schema: $ref: "#/components/schemas/HealthStatus" /site/{locale}/settings: get: operationId: getSiteSettings tags: [site] summary: Get site settings description: Returns branding, contact, and social settings for the requested locale. parameters: - $ref: "#/components/parameters/LocalePath" responses: "200": description: Site settings content: application/json: schema: $ref: "#/components/schemas/SiteSettings" "400": $ref: "#/components/responses/BadRequest" "404": $ref: "#/components/responses/NotFound" /site/{locale}/navigation: get: operationId: getNavigation tags: [site] summary: Get navigation menu description: Returns ordered navigation items for the requested locale. Filter by placement on the client. parameters: - $ref: "#/components/parameters/LocalePath" responses: "200": description: Navigation items content: application/json: schema: type: array items: $ref: "#/components/schemas/NavItem" "400": $ref: "#/components/responses/BadRequest" /site/{locale}/pages: get: operationId: listPages tags: [pages] summary: List published pages description: Returns published page summaries for the requested locale. parameters: - $ref: "#/components/parameters/LocalePath" responses: "200": description: Page summaries content: application/json: schema: type: array items: $ref: "#/components/schemas/PageSummary" "400": $ref: "#/components/responses/BadRequest" /site/{locale}/pages/{slug}: get: operationId: getPage tags: [pages] summary: Get a page by slug description: Returns a published page with its ordered sections for the requested locale. parameters: - $ref: "#/components/parameters/LocalePath" - name: slug in: path required: true schema: type: string responses: "200": description: Page content content: application/json: schema: $ref: "#/components/schemas/Page" "400": $ref: "#/components/responses/BadRequest" "404": $ref: "#/components/responses/NotFound" /admin/login: post: operationId: adminLogin tags: [admin] summary: Admin login description: Authenticates with the single admin credential and sets a session cookie. requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/AdminCredentials" responses: "200": description: Authenticated content: application/json: schema: $ref: "#/components/schemas/AdminSession" "400": $ref: "#/components/responses/BadRequest" "401": description: Invalid credentials content: application/json: schema: $ref: "#/components/schemas/Error" /admin/logout: post: operationId: adminLogout tags: [admin] summary: Admin logout description: Clears the admin session cookie. responses: "200": description: Logged out content: application/json: schema: $ref: "#/components/schemas/OkResponse" /admin/session: get: operationId: getAdminSession tags: [admin] summary: Get current admin session description: Returns whether the current request is authenticated as admin. responses: "200": description: Session status content: application/json: schema: $ref: "#/components/schemas/AdminSession" /admin/team: get: operationId: listTeamMembers tags: [admin] summary: List named team members description: Returns every named assessor account, active and deactivated. Requires an admin session. responses: "200": description: Team members content: application/json: schema: type: array items: $ref: "#/components/schemas/TeamMember" "401": $ref: "#/components/responses/Unauthorized" post: operationId: createTeamMember tags: [admin] summary: Create a named team member description: >- Creates a named assessor (display name + username/password) who signs in individually and works the conformity workbench under their own identity. Requires an admin session. requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateTeamMemberInput" responses: "200": description: Created team member content: application/json: schema: $ref: "#/components/schemas/TeamMember" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/team/{id}: patch: operationId: updateTeamMember tags: [admin] summary: Update a team member (rename, activate/deactivate, reset password) description: >- Deactivating a member (active=false) blocks sign-in AND invalidates their existing sessions immediately. Accounts are never deleted so the activity ledger's actor history stays resolvable. Requires an admin session. parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateTeamMemberInput" responses: "200": description: Updated team member content: application/json: schema: $ref: "#/components/schemas/TeamMember" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/me: get: operationId: getMyProfile tags: [conformity] summary: Get the signed-in account's profile description: >- Profile of whoever is signed in. Member sessions include first-login onboarding state and their member-since date; admin/demo sessions are env-configured accounts and always read as onboarded. responses: "200": description: Profile content: application/json: schema: $ref: "#/components/schemas/MyProfile" "401": $ref: "#/components/responses/Unauthorized" patch: operationId: updateMyProfile tags: [conformity] summary: Update the signed-in member's own profile description: >- Named assessors may change how their name reads in the audit trail and assignments. Admin and demo accounts are env-configured and cannot be edited here; the demo workspace is read-only. requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateMyProfileInput" responses: "200": description: Updated profile content: application/json: schema: $ref: "#/components/schemas/MyProfile" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "403": description: Not a named member account (admin/demo) content: application/json: schema: $ref: "#/components/schemas/Error" /conformity/me/password: post: operationId: changeMyPassword tags: [conformity] summary: Change the signed-in member's own password description: >- Self-service password change for named assessors. Verifies the current password before storing a new scrypt hash. Admin and demo credentials are env-configured and cannot be changed here. requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ChangeMyPasswordInput" responses: "200": description: Password changed content: application/json: schema: $ref: "#/components/schemas/OkResponse" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "403": description: Not a named member account (admin/demo) content: application/json: schema: $ref: "#/components/schemas/Error" /conformity/me/onboarding: post: operationId: completeMyOnboarding tags: [conformity] summary: Mark first-login onboarding as completed description: >- Stamps the signed-in member's onboarding timestamp. Idempotent — completing an already-onboarded account is a no-op that returns the current profile. responses: "200": description: Profile after completion content: application/json: schema: $ref: "#/components/schemas/MyProfile" "401": $ref: "#/components/responses/Unauthorized" "403": description: Not a named member account (admin/demo) content: application/json: schema: $ref: "#/components/schemas/Error" /conformity/me/tours: post: operationId: markMyTourSeen tags: [conformity] summary: Mark a guided tour as seen for the signed-in member description: >- Records that the signed-in member has seen a guided tour so it never auto-starts again on any device. Idempotent — marking an already-seen tour is a no-op that returns the current profile. Admin and demo sessions have no account row; they persist tour state per browser. requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/MarkMyTourSeenInput" responses: "200": description: Profile after the tour is recorded content: application/json: schema: $ref: "#/components/schemas/MyProfile" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "403": description: Not a named member account (admin/demo) content: application/json: schema: $ref: "#/components/schemas/Error" /chat/{locale}/conversations: post: operationId: createChatConversation tags: [chat] summary: Start a chat conversation description: Creates a new visitor conversation for the requested locale. parameters: - $ref: "#/components/parameters/LocalePath" requestBody: required: false content: application/json: schema: $ref: "#/components/schemas/CreateConversationInput" responses: "200": description: Created conversation content: application/json: schema: $ref: "#/components/schemas/ChatConversation" "400": $ref: "#/components/responses/BadRequest" /chat/conversations/{id}: get: operationId: getChatConversation tags: [chat] summary: Get a conversation with its messages description: Returns a conversation and its ordered messages for session restore. parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Conversation with messages content: application/json: schema: $ref: "#/components/schemas/ChatConversationDetail" "404": $ref: "#/components/responses/NotFound" /chat/conversations/{id}/messages: post: operationId: sendChatMessage tags: [chat] summary: Send a message and stream the grounded reply description: >- Streams the assistant reply as Server-Sent Events. Each event is a JSON object with either a `content` delta or `done: true`. Consumed on the client with fetch + ReadableStream, not a generated hook. parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/SendMessageInput" responses: "200": description: SSE stream of reply deltas content: text/event-stream: schema: type: string "400": $ref: "#/components/responses/BadRequest" "404": $ref: "#/components/responses/NotFound" /chat/conversations/{id}/lead: post: operationId: captureLead tags: [chat] summary: Capture a contact lead within a conversation description: Stores a contact captured inline during a conversation. parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CaptureLeadInput" responses: "200": description: Created lead content: application/json: schema: $ref: "#/components/schemas/Lead" "400": $ref: "#/components/responses/BadRequest" "404": $ref: "#/components/responses/NotFound" /admin/leads: get: operationId: listLeads tags: [leads] summary: List captured leads description: Returns captured leads, newest first. Requires an admin session. parameters: - name: q in: query required: false schema: type: string - name: status in: query required: false schema: type: string responses: "200": description: Leads content: application/json: schema: type: array items: $ref: "#/components/schemas/Lead" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/Error" /admin/leads/{id}: get: operationId: getLead tags: [leads] summary: Get a lead with its full transcript description: Returns a lead and the full conversation transcript. Requires an admin session. parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Lead detail content: application/json: schema: $ref: "#/components/schemas/LeadDetail" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/Error" "404": $ref: "#/components/responses/NotFound" patch: operationId: updateLeadStatus tags: [leads] summary: Update a lead's status description: Updates the status of a captured lead. Requires an admin session. parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateLeadStatusInput" responses: "200": description: Updated lead content: application/json: schema: $ref: "#/components/schemas/Lead" "400": description: Invalid status content: application/json: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/Error" "404": $ref: "#/components/responses/NotFound" /admin/content/index-status: get: operationId: getContentIndexStatus tags: [content] summary: Get the assistant content index status description: Returns chunk count, last refresh time, and whether a rebuild is running. Requires an admin session. responses: "200": description: Index status content: application/json: schema: $ref: "#/components/schemas/IndexStatus" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/Error" /admin/content/reindex: post: operationId: reindexContent tags: [content] summary: Rebuild the assistant content index description: >- Triggers a full rebuild of the assistant's knowledge index from published content. The rebuild runs in the background; the returned status reflects that a run is in progress. Requires an admin session. responses: "200": description: Index status after scheduling the rebuild content: application/json: schema: $ref: "#/components/schemas/IndexStatus" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/Error" /newsletter/subscribe: post: operationId: subscribeNewsletter tags: [newsletter] summary: Subscribe to the newsletter (starts double opt-in) description: >- Records a pending subscription and sends a confirmation email. Always returns a generic success to avoid disclosing whether an address is already subscribed. requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/SubscribeInput" responses: "200": description: Subscription accepted content: application/json: schema: $ref: "#/components/schemas/NewsletterActionResult" "400": $ref: "#/components/responses/BadRequest" /newsletter/confirm: post: operationId: confirmNewsletter tags: [newsletter] summary: Confirm a newsletter subscription (double opt-in) requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ConfirmSubscriptionInput" responses: "200": description: Confirmation result content: application/json: schema: $ref: "#/components/schemas/NewsletterActionResult" "400": $ref: "#/components/responses/BadRequest" /newsletter/unsubscribe: post: operationId: unsubscribeNewsletter tags: [newsletter] summary: Unsubscribe / opt out of the newsletter (one click) requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UnsubscribeInput" responses: "200": description: Unsubscribe result content: application/json: schema: $ref: "#/components/schemas/NewsletterActionResult" "400": $ref: "#/components/responses/BadRequest" /newsletter/track/open/{sendId}: get: operationId: trackNewsletterOpen tags: [newsletter] summary: Newsletter open-tracking pixel description: Returns a 1x1 GIF and records the open. Loaded via an tag in the email. parameters: - name: sendId in: path required: true schema: type: integer responses: "200": description: Tracking pixel content: image/gif: schema: type: string format: binary /admin/newsletter/subscribers: get: operationId: listNewsletterSubscribers tags: [newsletter] summary: List newsletter subscribers description: Returns subscribers, newest first. Requires an admin session. parameters: - name: status in: query required: false schema: type: string - name: q in: query required: false schema: type: string responses: "200": description: Subscribers content: application/json: schema: type: array items: $ref: "#/components/schemas/NewsletterSubscriber" "401": $ref: "#/components/responses/Unauthorized" /admin/newsletter/subscribers/{id}: delete: operationId: deleteNewsletterSubscriber tags: [newsletter] summary: Delete a subscriber (GDPR erasure) parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/DeleteResult" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /admin/newsletter/mail-status: get: operationId: getNewsletterMailStatus tags: [newsletter] summary: Whether an email provider is connected for sending responses: "200": description: Mail status content: application/json: schema: $ref: "#/components/schemas/MailStatus" "401": $ref: "#/components/responses/Unauthorized" /admin/newsletters: get: operationId: listNewsletters tags: [newsletter] summary: List newsletter campaigns responses: "200": description: Newsletters content: application/json: schema: type: array items: $ref: "#/components/schemas/Newsletter" "401": $ref: "#/components/responses/Unauthorized" post: operationId: createNewsletter tags: [newsletter] summary: Create a newsletter draft requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/NewsletterInput" responses: "200": description: Created newsletter content: application/json: schema: $ref: "#/components/schemas/Newsletter" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/newsletters/generate: post: operationId: generateNewsletter tags: [newsletter] summary: Generate a newsletter draft with AI description: Drafts a newsletter about a topic, grounded in OXOT's brand and recent published content. Returns content for review; does not persist. requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/GenerateNewsletterInput" responses: "200": description: Generated draft content: application/json: schema: $ref: "#/components/schemas/GeneratedNewsletter" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/newsletters/{id}: get: operationId: getNewsletter tags: [newsletter] summary: Get a newsletter campaign parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Newsletter content: application/json: schema: $ref: "#/components/schemas/Newsletter" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" put: operationId: updateNewsletter tags: [newsletter] summary: Update a newsletter draft parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/NewsletterInput" responses: "200": description: Updated newsletter content: application/json: schema: $ref: "#/components/schemas/Newsletter" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" delete: operationId: deleteNewsletter tags: [newsletter] summary: Delete a newsletter campaign parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/DeleteResult" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /admin/newsletters/{id}/schedule: post: operationId: scheduleNewsletter tags: [newsletter] summary: Schedule a newsletter to send at a future time parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ScheduleNewsletterInput" responses: "200": description: Scheduled newsletter content: application/json: schema: $ref: "#/components/schemas/Newsletter" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /admin/newsletters/{id}/unschedule: post: operationId: unscheduleNewsletter tags: [newsletter] summary: Cancel a scheduled send (back to draft) parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Newsletter returned to draft content: application/json: schema: $ref: "#/components/schemas/Newsletter" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /admin/newsletters/{id}/send: post: operationId: sendNewsletter tags: [newsletter] summary: Send a newsletter now to all confirmed subscribers parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Sending started content: application/json: schema: $ref: "#/components/schemas/Newsletter" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /storage/uploads/request-url: post: operationId: requestUploadUrl tags: [storage] summary: Request a presigned URL for file upload description: Returns a presigned GCS URL for direct upload. Requires an admin session. requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UploadUrlRequest" responses: "200": description: Presigned upload URL generated content: application/json: schema: $ref: "#/components/schemas/UploadUrlResponse" "400": $ref: "#/components/responses/BadRequest" "401": description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/Error" /storage/public-objects/{filePath}: get: operationId: getPublicObject tags: [storage] summary: Serve a public asset parameters: - name: filePath in: path required: true schema: type: string responses: "200": description: Object content content: "*/*": schema: type: string format: binary "404": $ref: "#/components/responses/NotFound" /storage/objects/{objectPath}: get: operationId: getStorageObject tags: [storage] summary: Serve an uploaded object parameters: - name: objectPath in: path required: true schema: type: string responses: "200": description: Object content content: "*/*": schema: type: string format: binary "404": $ref: "#/components/responses/NotFound" /admin/{locale}/pages: get: operationId: listAdminPages tags: [cms] summary: List all pages for a locale (any status) description: Returns page summaries including drafts. Requires an admin session. parameters: - $ref: "#/components/parameters/LocalePath" responses: "200": description: Page summaries content: application/json: schema: type: array items: $ref: "#/components/schemas/AdminPageSummary" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/pages: post: operationId: createAdminPage tags: [cms] summary: Create a new page (as a draft) requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreatePageInput" responses: "200": description: Created page content: application/json: schema: $ref: "#/components/schemas/AdminPage" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/pages/{id}: get: operationId: getAdminPage tags: [cms] summary: Get a page for editing (current draft content) parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Page for editing content: application/json: schema: $ref: "#/components/schemas/AdminPage" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" delete: operationId: deleteAdminPage tags: [cms] summary: Delete a page and all its versions parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/OkResponse" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /admin/pages/{id}/draft: put: operationId: saveAdminPageDraft tags: [cms] summary: Save the working draft for a page parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/SavePageDraftInput" responses: "200": description: Updated page content: application/json: schema: $ref: "#/components/schemas/AdminPage" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /admin/pages/{id}/publish: post: operationId: publishAdminPage tags: [cms] summary: Publish the current draft parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: false content: application/json: schema: $ref: "#/components/schemas/PublishAdminPageInput" responses: "200": description: Published page content: application/json: schema: $ref: "#/components/schemas/AdminPage" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /admin/pages/{id}/versions: get: operationId: listAdminPageVersions tags: [cms] summary: List saved versions for a page parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Versions, newest first content: application/json: schema: type: array items: $ref: "#/components/schemas/PageVersion" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /admin/pages/{id}/versions/{versionId}/restore: post: operationId: restoreAdminPageVersion tags: [cms] summary: Restore a version into the working draft parameters: - $ref: "#/components/parameters/IdPath" - name: versionId in: path required: true schema: type: integer responses: "200": description: Updated page content: application/json: schema: $ref: "#/components/schemas/AdminPage" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /admin/pages/{id}/translate: post: operationId: translateAdminPage tags: [wizard] summary: Auto-translate a page draft into the other locale description: Translates the current draft to the counterpart locale, creating or updating that page's draft. parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: The counterpart page draft content: application/json: schema: $ref: "#/components/schemas/AdminPage" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /admin/nav/{locale}: get: operationId: listAdminNav tags: [cms] summary: List navigation items for a locale parameters: - $ref: "#/components/parameters/LocalePath" responses: "200": description: Navigation items content: application/json: schema: type: array items: $ref: "#/components/schemas/NavItem" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" put: operationId: saveAdminNav tags: [cms] summary: Replace navigation items for a locale parameters: - $ref: "#/components/parameters/LocalePath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/SaveNavInput" responses: "200": description: Saved navigation items content: application/json: schema: type: array items: $ref: "#/components/schemas/NavItem" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/media: get: operationId: listMedia tags: [media] summary: List media assets responses: "200": description: Media assets content: application/json: schema: type: array items: $ref: "#/components/schemas/MediaAsset" "401": $ref: "#/components/responses/Unauthorized" post: operationId: registerMedia tags: [media] summary: Register an uploaded image in the media library requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/RegisterMediaInput" responses: "200": description: Created media asset content: application/json: schema: $ref: "#/components/schemas/MediaAsset" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/media/{id}: delete: operationId: deleteMedia tags: [media] summary: Delete a media asset parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/OkResponse" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /site/carousel: get: operationId: getPublicCarousel tags: [site] summary: Get active homepage carousel slides responses: "200": description: Carousel slides content: application/json: schema: type: array items: $ref: "#/components/schemas/CarouselSlide" /admin/carousel: get: operationId: listCarousel tags: [media] summary: List all carousel slides responses: "200": description: Carousel slides content: application/json: schema: type: array items: $ref: "#/components/schemas/CarouselSlide" "401": $ref: "#/components/responses/Unauthorized" /admin/carousel/image: post: operationId: addCarouselImage tags: [media] summary: Add an image slide from an uploaded object requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/AddCarouselImageInput" responses: "200": description: Created slide content: application/json: schema: $ref: "#/components/schemas/CarouselSlide" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/carousel/pdf: post: operationId: addCarouselPdf tags: [media] summary: Add slides by rendering an uploaded PDF into per-page images requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/AddCarouselPdfInput" responses: "200": description: Created slides (one per PDF page) content: application/json: schema: type: array items: $ref: "#/components/schemas/CarouselSlide" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/carousel/reorder: put: operationId: reorderCarousel tags: [media] summary: Reorder carousel slides requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CarouselReorderInput" responses: "200": description: Reordered slides content: application/json: schema: type: array items: $ref: "#/components/schemas/CarouselSlide" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/carousel/{id}: put: operationId: updateCarouselSlide tags: [media] summary: Update a carousel slide parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateCarouselSlideInput" responses: "200": description: Updated slide content: application/json: schema: $ref: "#/components/schemas/CarouselSlide" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" delete: operationId: deleteCarouselSlide tags: [media] summary: Delete a carousel slide parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/OkResponse" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /admin/settings/llm: get: operationId: getLlmSettings tags: [settings] summary: Get LLM model configuration, provider status, and model catalog responses: "200": description: LLM settings content: application/json: schema: $ref: "#/components/schemas/LlmSettings" "401": $ref: "#/components/responses/Unauthorized" put: operationId: saveLlmSettings tags: [settings] summary: Save LLM model selection requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/LlmConfigInput" responses: "200": description: Saved LLM settings content: application/json: schema: $ref: "#/components/schemas/LlmSettings" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/integration-settings: get: operationId: getIntegrationSettings tags: [settings] summary: Get email/LinkedIn/X integration settings (secrets masked) responses: "200": description: Integration settings content: application/json: schema: $ref: "#/components/schemas/IntegrationSettings" "401": $ref: "#/components/responses/Unauthorized" /admin/settings/email: put: operationId: saveEmailSettings tags: [settings] summary: Save email (SMTP) settings requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/EmailSettingsInput" responses: "200": description: Saved integration settings content: application/json: schema: $ref: "#/components/schemas/IntegrationSettings" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/settings/email/test: post: operationId: sendTestEmail tags: [settings] summary: Send a test email using the saved SMTP settings requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/EmailTestInput" responses: "200": description: Test send result content: application/json: schema: $ref: "#/components/schemas/MailTestResult" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/settings/linkedin: put: operationId: saveLinkedinSettings tags: [settings] summary: Save LinkedIn settings requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/LinkedinSettingsInput" responses: "200": description: Saved integration settings content: application/json: schema: $ref: "#/components/schemas/IntegrationSettings" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/settings/linkedin/test: post: operationId: testLinkedinConnection tags: [settings] summary: Non-destructive LinkedIn connection test (GET /v2/userinfo) responses: "200": description: Connection test result content: application/json: schema: $ref: "#/components/schemas/ConnectionTestResult" "401": $ref: "#/components/responses/Unauthorized" /admin/settings/x: put: operationId: saveXSettings tags: [settings] summary: Save X (Twitter) settings requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/XSettingsInput" responses: "200": description: Saved integration settings content: application/json: schema: $ref: "#/components/schemas/IntegrationSettings" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/settings/x/test: post: operationId: testXConnection tags: [settings] summary: Non-destructive X connection test (signed GET /2/users/me) responses: "200": description: Connection test result content: application/json: schema: $ref: "#/components/schemas/ConnectionTestResult" "401": $ref: "#/components/responses/Unauthorized" /admin/settings/slack: put: operationId: saveSlackSettings tags: [settings] summary: Save Slack webhook settings requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/SlackSettingsInput" responses: "200": description: Saved integration settings content: application/json: schema: $ref: "#/components/schemas/IntegrationSettings" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/settings/slack/test: post: operationId: testSlackConnection tags: [settings] summary: Send a test message to the configured Slack webhook responses: "200": description: Send result content: application/json: schema: $ref: "#/components/schemas/SlackTestResult" "401": $ref: "#/components/responses/Unauthorized" /admin/settings/conformity-alerts: put: operationId: saveConformityAlertsSettings tags: [settings] summary: Save CRA deadline alert settings requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ConformityAlertsSettingsInput" responses: "200": description: Saved integration settings content: application/json: schema: $ref: "#/components/schemas/IntegrationSettings" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/settings/conformity-alerts/run: post: operationId: runConformityAlertsCheck tags: [settings] summary: Run the CRA deadline alert scan now (manual trigger) responses: "200": description: Scan summary content: application/json: schema: $ref: "#/components/schemas/ConformityAlertsRunResult" "401": $ref: "#/components/responses/Unauthorized" /admin/integrations/health: get: operationId: getIntegrationsHealth tags: [social] summary: Per-integration health summary (email/linkedin/x) responses: "200": description: Integrations health content: application/json: schema: $ref: "#/components/schemas/IntegrationsHealth" "401": $ref: "#/components/responses/Unauthorized" /admin/integrations/activity: get: operationId: getIntegrationActivity tags: [social] summary: Unified integration activity feed (social posts + events) parameters: - name: limit in: query required: false schema: type: integer minimum: 1 maximum: 200 - name: integration in: query required: false schema: type: string enum: [email, linkedin, x, slack] responses: "200": description: Reverse-chronological activity items content: application/json: schema: type: array items: $ref: "#/components/schemas/IntegrationActivityItem" "401": $ref: "#/components/responses/Unauthorized" /admin/wizard/generate: post: operationId: generatePageDraft tags: [wizard] summary: Generate landing-page copy from a brief requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/WizardGenerateInput" responses: "200": description: Generated page draft content: application/json: schema: $ref: "#/components/schemas/WizardResult" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/templates: get: operationId: listTemplates tags: [wizard] summary: List saved landing-page templates responses: "200": description: Templates content: application/json: schema: type: array items: $ref: "#/components/schemas/PageTemplate" "401": $ref: "#/components/responses/Unauthorized" post: operationId: createTemplate tags: [wizard] summary: Save a reusable landing-page template requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateTemplateInput" responses: "200": description: Created template content: application/json: schema: $ref: "#/components/schemas/PageTemplate" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/templates/{id}: delete: operationId: deleteTemplate tags: [wizard] summary: Delete a template parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/OkResponse" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /analytics/collect: post: operationId: collectAnalytics tags: [growth] summary: Record a visitor page-view event description: Public beacon fired once per public route view. No auth required. requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CollectAnalyticsInput" responses: "200": description: Recorded content: application/json: schema: $ref: "#/components/schemas/OkResponse" "400": $ref: "#/components/responses/BadRequest" /admin/affiliate/links: get: operationId: listAffiliateLinks tags: [growth] summary: List affiliate/partner links with click counts responses: "200": description: Affiliate links content: application/json: schema: type: array items: $ref: "#/components/schemas/AffiliateLink" "401": $ref: "#/components/responses/Unauthorized" post: operationId: createAffiliateLink tags: [growth] summary: Create an affiliate/partner link requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/AffiliateLinkInput" responses: "200": description: Created link content: application/json: schema: $ref: "#/components/schemas/AffiliateLink" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/affiliate/links/{id}: put: operationId: updateAffiliateLink tags: [growth] summary: Update an affiliate/partner link and its keywords parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/AffiliateLinkInput" responses: "200": description: Updated link content: application/json: schema: $ref: "#/components/schemas/AffiliateLink" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" delete: operationId: deleteAffiliateLink tags: [growth] summary: Delete an affiliate/partner link parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/OkResponse" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /admin/affiliate/suggest: post: operationId: suggestAffiliateLinks tags: [growth] summary: AI-suggest partner-link placements in a page's draft copy requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/SuggestLinksInput" responses: "200": description: Suggested placements content: application/json: schema: $ref: "#/components/schemas/LinkSuggestionsResult" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /admin/affiliate/apply: post: operationId: applyAffiliateLinks tags: [growth] summary: Insert selected partner links into a page's draft copy requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ApplyLinksInput" responses: "200": description: Updated page draft content: application/json: schema: $ref: "#/components/schemas/AdminPage" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /admin/seo/pages: get: operationId: listSeoPages tags: [growth] summary: List all pages with their SEO/social metadata responses: "200": description: SEO page records content: application/json: schema: type: array items: $ref: "#/components/schemas/SeoPage" "401": $ref: "#/components/responses/Unauthorized" /admin/seo/pages/{id}: put: operationId: updateSeoPage tags: [growth] summary: Update SEO/social metadata for a page parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/SeoPageInput" responses: "200": description: Updated SEO record content: application/json: schema: $ref: "#/components/schemas/SeoPage" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /admin/analytics/overview: get: operationId: getAnalyticsOverview tags: [growth] summary: Visitor and link-performance analytics summary parameters: - name: days in: query required: false schema: type: integer responses: "200": description: Analytics overview content: application/json: schema: $ref: "#/components/schemas/AnalyticsOverview" "401": $ref: "#/components/responses/Unauthorized" /admin/analytics/recommendations: get: operationId: getAnalyticsRecommendations tags: [growth] summary: AI content and partner-link placement recommendations responses: "200": description: Recommendations content: application/json: schema: $ref: "#/components/schemas/AnalyticsRecommendations" "401": $ref: "#/components/responses/Unauthorized" /admin/social/status: get: operationId: getSocialStatus tags: [social] summary: Check which social platforms have credentials configured parameters: - name: validate in: query required: false schema: type: boolean description: >- When true, make live API calls to verify each platform's token is accepted and report days until expiry where the provider exposes it. responses: "200": description: Social credential status content: application/json: schema: $ref: "#/components/schemas/SocialStatus" "401": $ref: "#/components/responses/Unauthorized" /admin/social/posts: get: operationId: listSocialPosts tags: [social] summary: Recent social post outcomes (success/failure per platform) responses: "200": description: Recent social post log entries, newest first content: application/json: schema: type: array items: $ref: "#/components/schemas/SocialPostLogEntry" "401": $ref: "#/components/responses/Unauthorized" /admin/social/post: post: operationId: socialPost tags: [social] summary: Compose and send a post to one or more social platforms requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/SocialPostInput" responses: "200": description: Post results per platform content: application/json: schema: $ref: "#/components/schemas/SocialPostResult" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /admin/social/posts/{id}/retry: post: operationId: retrySocialPost tags: [social] summary: Re-attempt a previously failed social post parameters: - name: id in: path required: true schema: type: integer responses: "200": description: The new outcome record for the retried post content: application/json: schema: $ref: "#/components/schemas/SocialPostLogEntry" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/summary: get: operationId: getConformitySummary tags: [conformity] summary: Portfolio-level counts and key regulatory dates description: Aggregate counts across all mapped regulations plus upcoming key dates. Public reference content. responses: "200": description: Conformity summary content: application/json: schema: $ref: "#/components/schemas/ConformitySummary" /conformity/portfolio: get: operationId: getConformityPortfolio tags: [conformity] summary: Operational portfolio command-centre rollup description: >- Cross-product operational status for signed-in assessors: readiness distribution, urgency (overdue and upcoming statutory deadlines, blockers, open incidents), evidence coverage, grade distribution, a statutory deadline horizon and a per-assessment triage list ordered by urgency. Admin only — never legal certification. responses: "200": description: Portfolio rollup content: application/json: schema: $ref: "#/components/schemas/ConformityPortfolio" "401": $ref: "#/components/responses/Unauthorized" /conformity/team: get: operationId: listConformityTeam tags: [conformity] summary: List assignable team members (directory) description: >- Active named assessors, for owner-assignment pickers and actor display in the workbench. Available to any signed-in session (admin, member, demo). responses: "200": description: Assignable people content: application/json: schema: type: array items: $ref: "#/components/schemas/TeamDirectoryEntry" "401": $ref: "#/components/responses/Unauthorized" /conformity/regulations: get: operationId: listRegulations tags: [conformity] summary: List all mapped regulations responses: "200": description: Regulations content: application/json: schema: type: array items: $ref: "#/components/schemas/Regulation" /conformity/regulations/{key}: get: operationId: getRegulation tags: [conformity] summary: Get a regulation with its classes and conformity routes parameters: - name: key in: path required: true schema: type: string responses: "200": description: Regulation detail content: application/json: schema: $ref: "#/components/schemas/RegulationDetail" "404": $ref: "#/components/responses/NotFound" /conformity/themes: get: operationId: listThemes tags: [conformity] summary: List cross-cutting conformity themes with per-regulation coverage responses: "200": description: Theme coverage content: application/json: schema: type: array items: $ref: "#/components/schemas/ThemeCoverage" /conformity/requirements: get: operationId: listRequirements tags: [conformity] summary: List requirements, filterable by regulation, theme, obligation type, or text parameters: - name: regulation in: query required: false description: Regulation key (cra, ai_act, machinery, iec_62443). schema: type: string - name: theme in: query required: false description: Theme key. schema: type: string - name: obligationType in: query required: false schema: type: string - name: q in: query required: false schema: type: string responses: "200": description: Requirements content: application/json: schema: type: array items: $ref: "#/components/schemas/Requirement" /conformity/requirements/{id}: get: operationId: getRequirement tags: [conformity] summary: Get a requirement with its resolved cross-regulation mappings parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Requirement detail content: application/json: schema: $ref: "#/components/schemas/RequirementDetail" "404": $ref: "#/components/responses/NotFound" /conformity/mappings: get: operationId: getMappingMatrix tags: [conformity] summary: Cross-regulation mapping matrix (themes x regulations) description: For each theme, the requirements each regulation contributes. Drives the "one control satisfies many clauses" view. responses: "200": description: Mapping matrix content: application/json: schema: $ref: "#/components/schemas/MappingMatrix" /conformity/sources: get: operationId: listSourceDocuments tags: [conformity] summary: List the underlying source documents backing the library responses: "200": description: Source documents content: application/json: schema: type: array items: $ref: "#/components/schemas/SourceDocument" /conformity/flow/{regulationKey}: get: operationId: getConformityFlow tags: [conformity] summary: Get the wizard flow definition for a regulation description: Requires an admin session. parameters: - name: regulationKey in: path required: true schema: type: string responses: "200": description: Flow definition content: application/json: schema: $ref: "#/components/schemas/ConformityFlow" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/suppliers: get: operationId: listConformitySuppliers tags: [conformity] summary: List suppliers with their product counts description: >- The operator/asset-owner supplier register (Phase 21). A supplier row is a business-relationship record — nothing here states or implies a legal status about the supplier. responses: "200": description: Suppliers content: application/json: schema: $ref: "#/components/schemas/ConformitySupplierList" "401": $ref: "#/components/responses/Unauthorized" post: operationId: createConformitySupplier tags: [conformity] summary: Register a supplier requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ConformitySupplierInput" responses: "200": description: Created supplier content: application/json: schema: $ref: "#/components/schemas/ConformitySupplier" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /conformity/suppliers/posture: get: operationId: getSupplierPosture tags: [conformity] summary: Portfolio posture per supplier description: >- For every supplier: its linked products with each product's procurement-check counts and support-period end. Pure derivation from recorded facts — on-file / not-provided / unanswered counts, never a verdict about any supplier. responses: "200": description: Per-supplier posture content: application/json: schema: $ref: "#/components/schemas/SupplierPostureList" "401": $ref: "#/components/responses/Unauthorized" /conformity/suppliers/{id}: put: operationId: updateConformitySupplier tags: [conformity] summary: Update a supplier parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ConformitySupplierInput" responses: "200": description: Updated supplier content: application/json: schema: $ref: "#/components/schemas/ConformitySupplier" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" delete: operationId: deleteConformitySupplier tags: [conformity] summary: Delete a supplier (products are unlinked, never deleted) parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/OkResponse" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/products/{id}/supplier-documents: get: operationId: listSupplierDocuments tags: [conformity] summary: Documents the supplier has provided for this product parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Supplier documents content: application/json: schema: $ref: "#/components/schemas/SupplierDocumentList" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" post: operationId: addSupplierDocument tags: [conformity] summary: Record a supplier document (internal upload or external link) parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/SupplierDocumentInput" responses: "200": description: Recorded document content: application/json: schema: $ref: "#/components/schemas/SupplierDocument" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/supplier-documents/{id}: delete: operationId: deleteSupplierDocument tags: [conformity] summary: Delete a supplier document (its stored file is removed too) parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/OkResponse" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/products/{id}/shared-responsibility: get: operationId: getSharedResponsibilityMatrix tags: [conformity] summary: The shared-responsibility matrix for one product (supplier vs customer) description: >- The authored split of who owns what for a component/IP supplier: for each responsibility area, what the supplier provides vs. what the integrating customer retains. Authored data, never a conformity verdict. Returns empty rows (version 0) if not yet authored. parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: The matrix (empty rows if not yet authored) content: application/json: schema: $ref: "#/components/schemas/SharedResponsibilityMatrix" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" put: operationId: putSharedResponsibilityMatrix tags: [conformity] summary: Author the shared-responsibility matrix for one product (upsert) parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/SharedResponsibilityInput" responses: "200": description: Updated matrix (version bumped) content: application/json: schema: $ref: "#/components/schemas/SharedResponsibilityMatrix" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/products/{id}/assurance-package: get: operationId: getAssurancePackage tags: [conformity] summary: The composed supplier assurance package for one product (computed) description: >- A live composition of the customer-facing evidence a component/IP supplier assembles: the shared-responsibility matrix, the delivery manifest, and the CVD policy / support-period statement / SBOM from the product's conformity artifacts — with a completeness readout. Computed, not stored; never a conformity verdict. parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: The composed package and its completeness content: application/json: schema: $ref: "#/components/schemas/AssurancePackage" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/products/{id}/assurance-recipients: get: operationId: listAssuranceRecipients tags: [conformity] summary: Named customer recipients of this product's assurance package parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: The recipient grants (newest first) content: application/json: schema: $ref: "#/components/schemas/AssuranceRecipientList" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" post: operationId: createAssuranceRecipient tags: [conformity] summary: Issue a revocable package link to one named customer parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateAssuranceRecipientInput" responses: "200": description: The created recipient grant content: application/json: schema: $ref: "#/components/schemas/AssuranceRecipient" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/assurance-recipients/{id}/revoke: post: operationId: revokeAssuranceRecipient tags: [conformity] summary: Revoke one customer's package link parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: The revoked grant content: application/json: schema: $ref: "#/components/schemas/AssuranceRecipient" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/assurance-package/view: get: operationId: getAssurancePackagePublic tags: [conformity] summary: Public customer view of the full assurance package (token-authenticated) parameters: - name: token in: query required: true schema: { type: string } responses: "200": description: The full package for the token's recipient content: application/json: schema: $ref: "#/components/schemas/AssurancePackagePublicView" "401": $ref: "#/components/responses/Unauthorized" "403": $ref: "#/components/responses/Forbidden" /conformity/products/{id}/delivery-manifest: get: operationId: getDeliveryManifest tags: [conformity] summary: The versioned delivery manifest for one product + its customer token parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Manifest versions (newest first) and the customer-door token state content: application/json: schema: $ref: "#/components/schemas/DeliveryManifestList" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" post: operationId: createDeliveryManifestVersion tags: [conformity] summary: Record a new delivery-manifest version (append-only) parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateDeliveryManifestVersionInput" responses: "200": description: The created version content: application/json: schema: $ref: "#/components/schemas/DeliveryManifestVersion" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/products/{id}/delivery-manifest/access: post: operationId: issueDeliveryManifestAccess tags: [conformity] summary: Issue or rotate the customer-facing token for this manifest parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: The active token state content: application/json: schema: $ref: "#/components/schemas/DeliveryManifestAccessState" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/products/{id}/delivery-manifest/access/revoke: post: operationId: revokeDeliveryManifestAccess tags: [conformity] summary: Revoke the customer-facing token for this manifest parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: The revoked token state content: application/json: schema: $ref: "#/components/schemas/DeliveryManifestAccessState" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/delivery-manifest/view: get: operationId: getDeliveryManifestPublic tags: [conformity] summary: Public customer view of a delivery manifest (token-authenticated) parameters: - name: token in: query required: true schema: { type: string } responses: "200": description: The product name and its manifest history (newest first) content: application/json: schema: $ref: "#/components/schemas/DeliveryManifestPublicView" "401": $ref: "#/components/responses/Unauthorized" "403": $ref: "#/components/responses/Forbidden" /conformity/products/{id}/supplier-requests: get: operationId: listSupplierRequests tags: [conformity] summary: Evidence asks sent to the supplier for this product parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Requests content: application/json: schema: $ref: "#/components/schemas/SupplierRequestList" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" post: operationId: createSupplierRequest tags: [conformity] summary: Ask the supplier for a document (issues an expiring door token) parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/SupplierRequestInput" responses: "200": description: The ask, with its door token content: application/json: schema: $ref: "#/components/schemas/SupplierRequest" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/supplier-requests/{id}/withdraw: post: operationId: withdrawSupplierRequest tags: [conformity] summary: Withdraw an ask (its door token stops working) parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Withdrawn content: application/json: schema: $ref: "#/components/schemas/SupplierRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/supplier-portal/workspace: get: operationId: getSupplierPortalWorkspace tags: [conformity] summary: "Supplier door: what is being asked (token-authenticated, rate-limited)" security: [] parameters: - name: token in: query required: true schema: { type: string } responses: "200": description: The ask, as the supplier sees it content: application/json: schema: $ref: "#/components/schemas/SupplierPortalWorkspace" "401": description: Missing, unknown, expired or withdrawn token "429": description: Rate limited /conformity/supplier-portal/upload-url: post: operationId: supplierPortalUploadUrl tags: [conformity] summary: "Supplier door: mint a one-time upload URL for the asked document (token-authenticated, rate-limited)" description: >- Same size cap and file-type allow-list as the internal upload flow. SECURITY REVIEW PENDING: this is a public write surface accepted by explicit decision; the formal review is a tracked open item. security: [] requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/SupplierDoorUploadInput" responses: "200": description: One-time upload URL and its object path content: application/json: schema: $ref: "#/components/schemas/SupplierDoorUploadTarget" "400": $ref: "#/components/responses/BadRequest" "401": description: Missing, unknown, expired or withdrawn token "429": description: Rate limited /conformity/supplier-portal/submit: post: operationId: submitSupplierPortal tags: [conformity] summary: "Supplier door: submit a link or note against the ask" security: [] requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/SupplierPortalSubmitBody" responses: "200": description: Submission recorded; the ask is fulfilled content: application/json: schema: $ref: "#/components/schemas/OkResponse" "400": $ref: "#/components/responses/BadRequest" "401": description: Missing, unknown, expired or withdrawn token "429": description: Rate limited /conformity/products/{id}/procurement-check: get: operationId: getProcurementCheck tags: [conformity] summary: The operator's procurement check for one product description: >- Tri-state facts about what the supplier's manufacturer has provided (each anchored to the CRA duty that binds the MANUFACTURER), with the derived posture. Reports on-file / not-provided / unanswered — never a verdict about the supplier. parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Facts and derived posture content: application/json: schema: $ref: "#/components/schemas/ProcurementCheck" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" put: operationId: putProcurementCheck tags: [conformity] summary: Record procurement facts for one product (upsert) parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ProcurementFactsInput" responses: "200": description: Updated facts and derived posture content: application/json: schema: $ref: "#/components/schemas/ProcurementCheck" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/products: get: operationId: listConformityProducts tags: [conformity] summary: List products under assessment description: Requires an admin session. responses: "200": description: Products content: application/json: schema: type: array items: $ref: "#/components/schemas/ConformityProduct" "401": $ref: "#/components/responses/Unauthorized" post: operationId: createConformityProduct tags: [conformity] summary: Create a product under assessment requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ConformityProductInput" responses: "200": description: Created product content: application/json: schema: $ref: "#/components/schemas/ConformityProduct" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /conformity/products/import: post: operationId: importConformityProducts tags: [conformity] summary: Bulk-create products in the registry description: > Creates each valid row as a product; rows without a name are rejected and reported by index, never silently dropped. Absent fields stay absent — nothing is defaulted or invented. No assessment and no classification is created; the Art. 32 conformity assessment remains an explicit user act per product. requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ImportConformityProductsInput" responses: "200": description: Import result content: application/json: schema: $ref: "#/components/schemas/ImportConformityProductsResult" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /conformity/products/{id}: get: operationId: getConformityProduct tags: [conformity] summary: Get a product and its assessments parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Product detail content: application/json: schema: $ref: "#/components/schemas/ConformityProductDetail" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" put: operationId: updateConformityProduct tags: [conformity] summary: Update a product parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ConformityProductInput" responses: "200": description: Updated product content: application/json: schema: $ref: "#/components/schemas/ConformityProduct" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" delete: operationId: deleteConformityProduct tags: [conformity] summary: Delete a product and its assessments parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/OkResponse" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/assessments: post: operationId: createConformityAssessment tags: [conformity] summary: Start an assessment for a product requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateAssessmentInput" responses: "200": description: Created assessment content: application/json: schema: $ref: "#/components/schemas/ConformityAssessmentDetail" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" /conformity/assessments/{id}: get: operationId: getConformityAssessment tags: [conformity] summary: Get an assessment with computed scope, class, route and counts parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Assessment detail content: application/json: schema: $ref: "#/components/schemas/ConformityAssessmentDetail" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" delete: operationId: deleteConformityAssessment tags: [conformity] summary: Delete an assessment parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/OkResponse" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/assessments/{id}/answers: put: operationId: saveConformityAnswers tags: [conformity] summary: Save wizard answers and recompute scope and classification parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/SaveAnswersInput" responses: "200": description: Updated assessment detail content: application/json: schema: $ref: "#/components/schemas/ConformityAssessmentDetail" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/assessments/{id}/route: put: operationId: selectConformityRoute tags: [conformity] summary: Select the conformity assessment route parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/SelectRouteInput" responses: "200": description: Updated assessment detail content: application/json: schema: $ref: "#/components/schemas/ConformityAssessmentDetail" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/assessments/{id}/standards: put: operationId: saveConformityStandards tags: [conformity] summary: Record the harmonised standards applied for the assessment (Art 32) parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/SaveStandardsInput" responses: "200": description: Updated assessment detail content: application/json: schema: $ref: "#/components/schemas/ConformityAssessmentDetail" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/assessments/{id}/instantiate: post: operationId: instantiateConformityRequirements tags: [conformity] summary: Create requirement evaluations for the applicable requirements parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Updated assessment detail content: application/json: schema: $ref: "#/components/schemas/ConformityAssessmentDetail" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/assessments/{id}/evaluations: get: operationId: listConformityEvaluations tags: [conformity] summary: List requirement evaluations (the gap worklist) parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Evaluations content: application/json: schema: type: array items: $ref: "#/components/schemas/ConformityEvaluation" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/evaluations/{id}: put: operationId: updateConformityEvaluation tags: [conformity] summary: Update the gap state of one requirement parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateEvaluationInput" responses: "200": description: Updated evaluation content: application/json: schema: $ref: "#/components/schemas/ConformityEvaluation" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/products/{id}/users: get: operationId: listProductUsers tags: [conformity] summary: The product-user register (CRA Art. 14(8)) parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Registered users of this product content: application/json: schema: $ref: "#/components/schemas/ProductUserList" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" post: operationId: createProductUser tags: [conformity] summary: Register a product user description: > Name is required; contact and deployed version are recorded as stated and stay absent ("") until known — never invented. An absent version means an advisory match cannot rule this user out. parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateProductUserInput" responses: "200": description: The registered user content: application/json: schema: $ref: "#/components/schemas/ProductUser" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/product-users/{id}: delete: operationId: deleteProductUser tags: [conformity] summary: Remove a product-user row parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Deleted content: application/json: schema: type: object properties: success: { type: boolean } required: [success] "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/advisories/{id}/impacted-users: get: operationId: getAdvisoryImpactedUsers tags: [conformity] summary: Which registered users an advisory impacts (Art. 14(8)) description: > The advisory's affected-versions field is free text, so the only honest derivation is an exact match on the RECORDED version: users whose recorded version appears verbatim are "impacted"; users with NO recorded version cannot be ruled out; everyone else needs manual verification. The response carries that rule so no caller can present the split as more certain than it is. parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: The tri-state split with its rule content: application/json: schema: $ref: "#/components/schemas/AdvisoryImpactedUsers" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/products/{id}/user-notifications: get: operationId: listUserNotifications tags: [conformity] summary: The record of user notifications for a product parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Recorded notification acts content: application/json: schema: $ref: "#/components/schemas/UserNotificationList" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" post: operationId: recordUserNotification tags: [conformity] summary: Record that the organisation informed users (Art. 14(8)) description: > Records the ORGANISATION'S OWN act — this application transmits nothing. Scope, the stated time, and the method are the recorder's explicit statements; the session actor is captured as provenance. parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/RecordUserNotificationInput" responses: "200": description: The recorded act content: application/json: schema: $ref: "#/components/schemas/UserNotification" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/assessments/{id}/auditor-access: get: operationId: listAuditorAccess tags: [conformity] summary: List notified-body auditor access grants for an assessment description: > The organisation's side of the external auditor portal (9.3b). Each grant is an expiring, revocable token scoped to ONE assessment; the token is shown so an admin can send the portal link to the auditor. parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Access grants content: application/json: schema: $ref: "#/components/schemas/AuditorAccessList" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" post: operationId: issueAuditorAccess tags: [conformity] summary: Issue an auditor access token (admin only) description: > Requires an admin session. Expiry is the issuer's explicit choice — it is never defaulted. parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/IssueAuditorAccessInput" responses: "200": description: The issued grant, including its token content: application/json: schema: $ref: "#/components/schemas/AuditorAccess" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "403": $ref: "#/components/responses/Forbidden" "404": $ref: "#/components/responses/NotFound" /conformity/auditor-access/{id}/revoke: post: operationId: revokeAuditorAccess tags: [conformity] summary: Revoke an auditor access token (admin only) parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: The revoked grant content: application/json: schema: $ref: "#/components/schemas/AuditorAccess" "401": $ref: "#/components/responses/Unauthorized" "403": $ref: "#/components/responses/Forbidden" "404": $ref: "#/components/responses/NotFound" /conformity/assessments/{id}/auditor-rfis: get: operationId: listAuditorRfis tags: [conformity] summary: The organisation's inbox of auditor RFIs for an assessment parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: RFIs, non-conformities and observations content: application/json: schema: $ref: "#/components/schemas/AuditorRfiList" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/auditor-rfis/{id}/respond: post: operationId: respondAuditorRfi tags: [conformity] summary: Record the organisation's response to an auditor RFI parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/RespondAuditorRfiInput" responses: "200": description: The answered RFI content: application/json: schema: $ref: "#/components/schemas/AuditorRfi" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/assessments/{id}/evidence: get: operationId: listConformityEvidence tags: [conformity] summary: List evidence for an assessment parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Evidence content: application/json: schema: type: array items: $ref: "#/components/schemas/ConformityEvidence" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" post: operationId: addConformityEvidence tags: [conformity] summary: Attach evidence to an assessment parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/AddEvidenceInput" responses: "200": description: Created evidence content: application/json: schema: $ref: "#/components/schemas/ConformityEvidence" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/evidence/{id}: delete: operationId: deleteConformityEvidence tags: [conformity] summary: Delete an evidence item parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/OkResponse" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/evidence/{id}/download: get: operationId: downloadConformityEvidence tags: [conformity] summary: Stream a file-backed evidence attachment (admin-gated; confidential) parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: The evidence file, streamed with its original content type content: application/octet-stream: schema: type: string format: binary "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/assessments/{id}/artifacts: get: operationId: listConformityArtifacts tags: [conformity] summary: List generated artifacts for an assessment parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Artifacts content: application/json: schema: type: array items: $ref: "#/components/schemas/ConformityArtifact" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/assessments/{id}/artifacts/generate: post: operationId: generateConformityArtifacts tags: [conformity] summary: Regenerate all artifacts from the current assessment state parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Artifacts content: application/json: schema: type: array items: $ref: "#/components/schemas/ConformityArtifact" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/artifacts/{id}: get: operationId: getConformityArtifact tags: [conformity] summary: Get one generated artifact parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Artifact content: application/json: schema: $ref: "#/components/schemas/ConformityArtifact" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/assessments/{id}/grade: post: operationId: computeConformityGrade tags: [conformity] summary: Compute and snapshot the readiness grade parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Grade content: application/json: schema: $ref: "#/components/schemas/ConformityGrade" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/assessments/{id}/grades: get: operationId: listConformityGrades tags: [conformity] summary: List grade snapshots (newest first) parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Grades content: application/json: schema: type: array items: $ref: "#/components/schemas/ConformityGrade" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/assessments/{id}/assistant: post: operationId: askConformityAssistant tags: [conformity] summary: Ask the workspace-aware conformity assistant (streamed) description: >- Streams a grounded reply as Server-Sent Events. The assistant is scoped to one assessment and sees its product, wizard answers, requirement gap worklist, evidence, artifacts and BOM findings. Conversation history is supplied by the client. Requires an authenticated session (admin or demo). Consumed with fetch + ReadableStream, not a generated hook. parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/AskAssistantInput" responses: "200": description: SSE stream of reply deltas content: text/event-stream: schema: type: string "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/incidents: get: operationId: listWorkspaceIncidents tags: [conformity] summary: List every incident in the workspace with its statutory clocks description: >- The Incidents destination's feed (task 7.4): all incidents across all assessments, each with its three CRA Article 14 clocks and the product and regulation it arises from. One act-badged surface (D10). responses: "200": description: All incidents, newest detection first content: application/json: schema: type: object properties: total: { type: integer } incidents: type: array items: type: object properties: incident: { $ref: "#/components/schemas/ConformityIncident" } productId: { type: ["integer", "null"] } productName: { type: string } regulationKey: { type: string } required: [incident, productId, productName, regulationKey] required: [total, incidents] "401": $ref: "#/components/responses/Unauthorized" /conformity/assessments/{id}/incidents: get: operationId: listConformityIncidents tags: [conformity] summary: List post-market incidents for an assessment parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Incidents content: application/json: schema: type: array items: $ref: "#/components/schemas/ConformityIncident" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" post: operationId: createConformityIncident tags: [conformity] summary: Log a post-market incident and start the Article 14 clock parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateIncidentInput" responses: "200": description: Created incident content: application/json: schema: $ref: "#/components/schemas/ConformityIncident" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/incidents/{id}: put: operationId: updateConformityIncident tags: [conformity] summary: Update an incident (record submissions / close it) parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateIncidentInput" responses: "200": description: Updated incident content: application/json: schema: $ref: "#/components/schemas/ConformityIncident" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" delete: operationId: deleteConformityIncident tags: [conformity] summary: Delete an incident parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/OkResponse" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/assessments/{id}/incident-alert-history: get: operationId: getConformityIncidentAlertHistory tags: [conformity] summary: Alert email history for breached incident deadlines (reminders sent vs cap) parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Alert history content: application/json: schema: $ref: "#/components/schemas/ConformityIncidentAlertHistory" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/incidents/{id}/report-package: get: operationId: getConformityIncidentReportPackage tags: [conformity] summary: Assemble the Article 14 SRP-ready report package (early warning / notification / final report) parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Report package content: application/json: schema: $ref: "#/components/schemas/IncidentReportPackage" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/incidents/{id}/submissions: get: operationId: listIncidentSubmissions tags: [conformity] summary: List the append-only Article 14 submission proofs for an incident parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Submission proofs (newest first) content: application/json: schema: type: array items: $ref: "#/components/schemas/IncidentSubmission" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" post: operationId: createIncidentSubmission tags: [conformity] summary: Record proof of an actual Article 14 submission (marks the stage done) parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateIncidentSubmissionInput" responses: "200": description: Created submission proof content: application/json: schema: $ref: "#/components/schemas/IncidentSubmission" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/bom-catalog: get: operationId: getBomCatalog tags: [conformity] summary: Get the xBOM per-type catalog (labels, descriptions, checklists) responses: "200": description: BOM catalog content: application/json: schema: $ref: "#/components/schemas/BomCatalog" "401": $ref: "#/components/responses/Unauthorized" /conformity/activity: get: operationId: listWorkspaceActivity tags: [conformity] summary: List workspace-level activity (events not tied to one assessment) description: >- Returns ledger entries with no assessment (product created/renamed/deleted, assessment deleted, member changes), newest first, with the same actorDisplay enrichment as the per-assessment feed. Paged with limit/offset so auditors can walk the full history. Requires any authenticated session; the read-only demo role may read. parameters: - name: limit in: query required: false schema: type: integer minimum: 1 maximum: 100 description: Page size (default 20, max 100). - name: offset in: query required: false schema: type: integer minimum: 0 description: Number of newest entries to skip (default 0). responses: "200": description: One page of workspace activity entries, newest first content: application/json: schema: $ref: "#/components/schemas/WorkspaceActivityPage" "401": $ref: "#/components/responses/Unauthorized" /conformity/assessments/{id}/activity: get: operationId: listAssessmentActivity tags: [conformity] summary: List the chain-of-custody activity ledger for an assessment parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Activity ledger entries, newest first content: application/json: schema: type: array items: $ref: "#/components/schemas/ConformityActivityEntry" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/assessments/{id}/boms: get: operationId: listAssessmentBoms tags: [conformity] summary: List BOM summaries for an assessment parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: BOM summaries content: application/json: schema: type: array items: $ref: "#/components/schemas/BomSummary" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" post: operationId: ingestAssessmentBom tags: [conformity] summary: Ingest (parse + store) a BOM document for an assessment parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/IngestBomInput" responses: "200": description: Created BOM detail content: application/json: schema: $ref: "#/components/schemas/BomDetail" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/boms/{bomId}: get: operationId: getBom tags: [conformity] summary: Get a BOM with its components and findings parameters: - $ref: "#/components/parameters/BomIdPath" responses: "200": description: BOM detail content: application/json: schema: $ref: "#/components/schemas/BomDetail" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" delete: operationId: deleteBom tags: [conformity] summary: Delete a BOM (cascades components and findings) parameters: - $ref: "#/components/parameters/BomIdPath" responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/OkResponse" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/boms/{bomId}/analyze: post: operationId: analyzeBom tags: [conformity] summary: Analyze a BOM (crypto heuristics + OSV vulnerability lookup) parameters: - $ref: "#/components/parameters/BomIdPath" responses: "200": description: Refreshed BOM detail content: application/json: schema: $ref: "#/components/schemas/BomDetail" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/boms/{bomId}/export: get: operationId: exportBom tags: [conformity] summary: Export a BOM as CycloneDX 1.6 JSON rebuilt from the normalized tables parameters: - $ref: "#/components/parameters/BomIdPath" responses: "200": description: CycloneDX 1.6 JSON document (attachment) content: application/json: schema: type: object additionalProperties: true "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/boms/{bomId}/engineering: get: operationId: getBomEngineering tags: [conformity] summary: Get the normalized DEXPI plant model (items, attributes, connections) for an engineering BOM parameters: - $ref: "#/components/parameters/BomIdPath" responses: "200": description: Engineering plant model content: application/json: schema: $ref: "#/components/schemas/BomEngineering" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/boms/{bomId}/checklist: patch: operationId: updateBomChecklist tags: [conformity] summary: Overwrite a BOM's editable checklist parameters: - $ref: "#/components/parameters/BomIdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateBomChecklistInput" responses: "200": description: Updated BOM detail content: application/json: schema: $ref: "#/components/schemas/BomDetail" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/assessments/{id}/bom-notifications: get: operationId: listBomNotifications tags: [conformity] summary: List tracked upstream component-vulnerability notifications (CRA Art 13(6)) parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Upstream notification records, newest first content: application/json: schema: type: array items: $ref: "#/components/schemas/BomNotification" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" post: operationId: createBomNotification tags: [conformity] summary: >- Start (or upsert) tracking an upstream notification for a component vulnerability. Keyed by the stable component identity (purl, else name@version) + vulnerability id, never by a finding row, so re-analysis re-attaches the record. parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/BomNotificationInput" responses: "200": description: The created or updated notification record content: application/json: schema: $ref: "#/components/schemas/BomNotification" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/assessments/{id}/bom-notification-gaps: get: operationId: listBomNotificationGaps tags: [conformity] summary: >- List vulnerability findings across this assessment's BOMs whose maintainer has not been notified yet (CRA Art 13(6) compliance gap): no tracked record at all, or a tracked record still `pending`. Only `notified`, `acknowledged` and `not_required` resolve the duty. Matched by the stable component identity key + vulnerability id, the same rule the inline finding chips use. Read-only — derived from existing findings and notification records. parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Untracked vulnerability findings, grouped implicitly by BOM order content: application/json: schema: type: array items: $ref: "#/components/schemas/BomNotificationGap" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/bom-notifications/{notificationId}: patch: operationId: updateBomNotification tags: [conformity] summary: Update a tracked upstream notification (status, contact, method, date, notes) parameters: - $ref: "#/components/parameters/NotificationIdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateBomNotificationInput" responses: "200": description: The updated notification record content: application/json: schema: $ref: "#/components/schemas/BomNotification" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/flows: get: operationId: listConformityFlows tags: [conformity] summary: List conformity flow definitions responses: "200": description: Flow definitions content: application/json: schema: type: array items: $ref: "#/components/schemas/ConformityFlowSummary" "401": $ref: "#/components/responses/Unauthorized" post: operationId: createConformityFlow tags: [conformity] summary: Create a conformity flow definition requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateFlowInput" responses: "200": description: Created flow definition content: application/json: schema: $ref: "#/components/schemas/ConformityFlowSummary" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "409": $ref: "#/components/responses/Conflict" /conformity/flows/{flowId}: get: operationId: getConformityFlowById tags: [conformity] summary: Get one conformity flow definition parameters: - $ref: "#/components/parameters/FlowIdPath" responses: "200": description: Flow definition content: application/json: schema: $ref: "#/components/schemas/ConformityFlowSummary" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" put: operationId: updateConformityFlow tags: [conformity] summary: Update a conformity flow definition parameters: - $ref: "#/components/parameters/FlowIdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateFlowInput" responses: "200": description: Updated flow definition content: application/json: schema: $ref: "#/components/schemas/ConformityFlowSummary" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" delete: operationId: deleteConformityFlow tags: [conformity] summary: Delete a conformity flow definition parameters: - $ref: "#/components/parameters/FlowIdPath" responses: "200": description: Deleted content: application/json: schema: $ref: "#/components/schemas/OkResponse" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/assessments/{id}/flow-runs: get: operationId: listAssessmentFlowRuns tags: [conformity] summary: List flow runs for an assessment parameters: - $ref: "#/components/parameters/IdPath" responses: "200": description: Flow run summaries content: application/json: schema: type: array items: $ref: "#/components/schemas/ConformityFlowRunSummary" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" post: operationId: createAssessmentFlowRun tags: [conformity] summary: Start a flow run for an assessment parameters: - $ref: "#/components/parameters/IdPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/StartFlowRunInput" responses: "200": description: Started flow run detail content: application/json: schema: $ref: "#/components/schemas/ConformityFlowRunDetail" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/flow-runs/{runId}: get: operationId: getConformityFlowRun tags: [conformity] summary: Get a flow run with its flow's step definitions and current state parameters: - $ref: "#/components/parameters/RunIdPath" responses: "200": description: Flow run detail content: application/json: schema: $ref: "#/components/schemas/ConformityFlowRunDetail" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/flow-runs/{runId}/adopt-steps: post: operationId: adoptConformityFlowRunSteps tags: [conformity] summary: Re-snapshot the current flow definition into this run (admin only) parameters: - $ref: "#/components/parameters/RunIdPath" responses: "200": description: Updated flow run detail with the adopted steps content: application/json: schema: $ref: "#/components/schemas/ConformityFlowRunDetail" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" "409": $ref: "#/components/responses/Conflict" /conformity/flow-runs/{runId}/steps/{stepKey}: patch: operationId: updateConformityFlowRunStep tags: [conformity] summary: Update one step's state in a flow run parameters: - $ref: "#/components/parameters/RunIdPath" - $ref: "#/components/parameters/StepKeyPath" requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateFlowRunStepInput" responses: "200": description: Updated flow run detail content: application/json: schema: $ref: "#/components/schemas/ConformityFlowRunDetail" "400": $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" "404": $ref: "#/components/responses/NotFound" /conformity/reports: get: operationId: listConformityReports summary: List generated reports (optionally filtered by scope/assessment) parameters: - name: scope in: query required: false schema: type: string enum: [assessment, portfolio] - name: assessmentId in: query required: false schema: { type: integer } responses: "200": description: Report summaries, most recently updated first content: application/json: schema: type: object properties: reports: type: array items: $ref: "#/components/schemas/ConformityReportSummary" required: - reports post: operationId: createConformityReport summary: Generate a new report from a frozen data snapshot requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateConformityReportInput" responses: "200": description: The created report (deterministic sections ready, AI sections drafting in background) content: application/json: schema: type: object properties: report: $ref: "#/components/schemas/ConformityReport" required: - report /conformity/reports/{id}: get: operationId: getConformityReport summary: Fetch one report with all sections and citations parameters: - name: id in: path required: true schema: { type: integer } responses: "200": description: The report content: application/json: schema: type: object properties: report: $ref: "#/components/schemas/ConformityReport" required: - report delete: operationId: deleteConformityReport summary: Delete a report parameters: - name: id in: path required: true schema: { type: integer } responses: "200": description: Deleted content: application/json: schema: type: object properties: ok: { type: boolean } required: - ok /conformity/reports/{id}/sections/{key}: patch: operationId: updateConformityReportSection summary: Hand-edit an AI-drafted section (draft reports only) parameters: - name: id in: path required: true schema: { type: integer } - name: key in: path required: true schema: { type: string } requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateConformityReportSectionInput" responses: "200": description: The updated report content: application/json: schema: type: object properties: report: $ref: "#/components/schemas/ConformityReport" required: - report /conformity/reports/{id}/sections/{key}/regenerate: post: operationId: regenerateConformityReportSection summary: Re-draft one AI section from the frozen snapshot (draft reports only) parameters: - name: id in: path required: true schema: { type: integer } - name: key in: path required: true schema: { type: string } responses: "200": description: The report with the section back in `pending` content: application/json: schema: type: object properties: report: $ref: "#/components/schemas/ConformityReport" required: - report /conformity/reports/{id}/finalize: post: operationId: finalizeConformityReport summary: Lock a draft report (requires every AI section ready) parameters: - name: id in: path required: true schema: { type: integer } responses: "200": description: The finalised report content: application/json: schema: type: object properties: report: $ref: "#/components/schemas/ConformityReport" required: - report /conformity/reports/{id}/export: get: operationId: exportConformityReport summary: Compose the print-ready HTML document for the report parameters: - name: id in: path required: true schema: { type: integer } responses: "200": description: Self-contained print document content: application/json: schema: $ref: "#/components/schemas/ConformityReportExport" /conformity/assessments/{id}/annex-readiness: get: operationId: getConformityAnnexReadiness summary: Guided-builder checklists for the Annex V DoC and Annex VII technical documentation parameters: - name: id in: path required: true schema: { type: integer } responses: "200": description: Per-field completeness for both statutory documents content: application/json: schema: $ref: "#/components/schemas/AnnexReadiness" /conformity/public/vulnerability-reports: post: operationId: submitConformityVulnReport summary: Public CVD intake — submit a vulnerability report (no auth, rate-limited) requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/SubmitVulnReportInput" responses: "201": description: Report received content: application/json: schema: type: object properties: id: { type: integer } message: { type: string } required: [id, message] /conformity/public/advisories: get: operationId: listPublicSecurityAdvisories summary: Published security advisories (public) responses: "200": description: Published advisories, newest first content: application/json: schema: type: array items: $ref: "#/components/schemas/PublicSecurityAdvisory" /conformity/public/security-policy: get: operationId: getPublicSecurityPolicy summary: Published per-product CVD contact points and policies (public) responses: "200": description: Published CVD profiles content: application/json: schema: type: array items: $ref: "#/components/schemas/PublicSecurityPolicy" /conformity/products/{id}/psirt-profile: get: operationId: getConformityPsirtProfile summary: Get the product's PSIRT/CVD profile (empty defaults when unset) parameters: - name: id in: path required: true schema: { type: integer } responses: "200": description: The profile content: application/json: schema: $ref: "#/components/schemas/ConformityPsirtProfile" put: operationId: updateConformityPsirtProfile summary: Create or update the product's PSIRT/CVD profile parameters: - name: id in: path required: true schema: { type: integer } requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdatePsirtProfileInput" responses: "200": description: The saved profile content: application/json: schema: $ref: "#/components/schemas/ConformityPsirtProfile" /conformity/vuln-reports: get: operationId: listConformityVulnReports summary: List received vulnerability reports (PSIRT queue), newest first responses: "200": description: All reports content: application/json: schema: type: array items: $ref: "#/components/schemas/ConformityVulnReport" /conformity/vuln-reports/{reportId}: patch: operationId: updateConformityVulnReport summary: Triage/update a vulnerability report (status transitions are validated) parameters: - name: reportId in: path required: true schema: { type: integer } requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateVulnReportInput" responses: "200": description: The updated report content: application/json: schema: $ref: "#/components/schemas/ConformityVulnReport" /conformity/vuln-reports/{reportId}/events: get: operationId: listConformityVulnReportEvents summary: Lifecycle ledger for a vulnerability report, newest first parameters: - name: reportId in: path required: true schema: { type: integer } responses: "200": description: Events content: application/json: schema: type: array items: $ref: "#/components/schemas/VulnReportEvent" /conformity/advisories: get: operationId: listConformityAdvisories summary: List all advisories (drafts included), newest first responses: "200": description: Advisories content: application/json: schema: type: array items: $ref: "#/components/schemas/ConformityAdvisory" post: operationId: createConformityAdvisory summary: Create a draft advisory (advisoryCode auto-assigned) requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateAdvisoryInput" responses: "201": description: The created draft content: application/json: schema: $ref: "#/components/schemas/ConformityAdvisory" /conformity/advisories/{advisoryId}: patch: operationId: updateConformityAdvisory summary: Update a draft advisory (published advisories are immutable) parameters: - name: advisoryId in: path required: true schema: { type: integer } requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/UpdateAdvisoryInput" responses: "200": description: The updated advisory content: application/json: schema: $ref: "#/components/schemas/ConformityAdvisory" delete: operationId: deleteConformityAdvisory summary: Delete a draft advisory (published advisories cannot be deleted) parameters: - name: advisoryId in: path required: true schema: { type: integer } responses: "200": description: Deleted content: application/json: schema: type: object properties: ok: { type: boolean } required: [ok] /conformity/advisories/{advisoryId}/publish: post: operationId: publishConformityAdvisory summary: Publish an advisory (validates completeness, freezes content) parameters: - name: advisoryId in: path required: true schema: { type: integer } responses: "200": description: The published advisory content: application/json: schema: $ref: "#/components/schemas/ConformityAdvisory" components: responses: BadRequest: description: Invalid request content: application/json: schema: $ref: "#/components/schemas/Error" NotFound: description: Resource not found content: application/json: schema: $ref: "#/components/schemas/Error" Unauthorized: description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/Error" Conflict: description: Conflict content: application/json: schema: $ref: "#/components/schemas/Error" Forbidden: description: The session lacks the required role content: application/json: schema: $ref: "#/components/schemas/Error" parameters: LocalePath: name: locale in: path required: true description: Language for the returned content. schema: $ref: "#/components/schemas/Locale" IdPath: name: id in: path required: true description: Numeric resource identifier. schema: type: integer BomIdPath: name: bomId in: path required: true description: Numeric BOM identifier. schema: type: integer NotificationIdPath: name: notificationId in: path required: true description: Numeric upstream-notification identifier. schema: type: integer FlowIdPath: name: flowId in: path required: true description: Numeric flow definition identifier. schema: type: integer RunIdPath: name: runId in: path required: true description: Numeric flow run identifier. schema: type: integer StepKeyPath: name: stepKey in: path required: true description: Flow step id (key) within the run's step states. schema: type: string schemas: HealthStatus: type: object properties: status: type: string required: - status KeyDate: type: object properties: regulationKey: type: string date: type: string label: type: string required: - date - label RegulationStat: type: object properties: key: type: string name: type: string shortName: type: string requirementCount: type: integer required: - key - name - shortName - requirementCount ConformitySummary: type: object properties: regulationCount: type: integer requirementCount: type: integer themeCount: type: integer mappingCount: type: integer regulations: type: array items: $ref: "#/components/schemas/RegulationStat" keyDates: type: array items: $ref: "#/components/schemas/KeyDate" required: - regulationCount - requirementCount - themeCount - mappingCount - regulations - keyDates ConformityPortfolio: type: object description: Operational rollup across every product assessment. properties: generatedAt: type: string description: ISO timestamp the rollup was computed. totals: $ref: "#/components/schemas/PortfolioTotals" risk: $ref: "#/components/schemas/PortfolioRisk" evidence: $ref: "#/components/schemas/PortfolioEvidence" grades: type: array items: $ref: "#/components/schemas/PortfolioGradeBucket" deadlines: type: array description: Every open statutory deadline across the portfolio, soonest first. items: $ref: "#/components/schemas/PortfolioDeadline" products: type: array description: Per-assessment triage rows, most urgent first. items: $ref: "#/components/schemas/PortfolioProduct" required: - generatedAt - totals - risk - evidence - grades - deadlines - products PortfolioTotals: type: object description: Assessment counts. The four readiness buckets are mutually exclusive and sum to assessments. properties: products: type: integer assessments: type: integer notStarted: type: integer inProgress: type: integer blocked: type: integer readyForReview: type: integer required: - products - assessments - notStarted - inProgress - blocked - readyForReview PortfolioRisk: type: object description: Portfolio-wide urgency and risk counters. properties: openBlockers: type: integer description: Requirements marked not met (cap the grade). highRiskGaps: type: integer description: High or critical risk requirements not yet resolved. openIncidents: type: integer overdueDeadlines: type: integer dueSoonDeadlines: type: integer description: Open statutory deadlines due within 14 days (not yet overdue). silencedDeadlines: type: integer description: >- Overdue deadlines whose breach reminder emails are exhausted (alerting has gone silent). required: - openBlockers - highRiskGaps - openIncidents - overdueDeadlines - dueSoonDeadlines - silencedDeadlines PortfolioEvidence: type: object description: >- Honest coverage ratios. Percentages are null when the denominator is zero (nothing to measure yet) rather than a misleading 0 or 100. properties: requirementCoverage: type: ["number", "null"] description: Resolved (met or not applicable) over total requirements, as a percentage. evidenceCoverage: type: ["number", "null"] description: Applicable requirements with at least one evidence item, over all applicable requirements, as a percentage. documentationCoverage: type: ["number", "null"] description: Complete artifact sections over total artifact sections, as a percentage. totalRequirements: type: integer resolvedRequirements: type: integer applicableRequirements: type: integer evidencedRequirements: type: integer totalSections: type: integer completeSections: type: integer required: - requirementCoverage - evidenceCoverage - documentationCoverage - totalRequirements - resolvedRequirements - applicableRequirements - evidencedRequirements - totalSections - completeSections PortfolioGradeBucket: type: object properties: grade: type: string description: One of A, B, C, D, F, or "ungraded". count: type: integer required: - grade - count PortfolioDeadline: type: object properties: assessmentId: type: integer productId: type: integer productName: type: string regulationKey: type: string incidentTitle: type: string incidentKind: type: string description: CRA Art 14 track — exploited_vulnerability or severe_incident. severity: type: string kind: type: string description: One of early_warning, notification, final_report. dueAt: type: string overdue: type: boolean alertsSilenced: type: boolean description: >- True when this clock is overdue AND its breached stage's reminder emails are exhausted — nobody will be nudged about it again. required: - assessmentId - productId - productName - regulationKey - incidentTitle - incidentKind - severity - kind - dueAt - overdue - alertsSilenced PortfolioProduct: type: object description: One assessment's triage row, mirroring the per-assessment worklist semantics. properties: assessmentId: type: integer productId: type: integer productName: type: string manufacturerName: type: string regulationKey: type: string readiness: type: string description: One of not_started, in_progress, blocked, ready. journeyStage: type: string description: Current journey stage label. journeyPct: type: integer journeyDone: type: integer journeyTotal: type: integer grade: type: ["string", "null"] score: type: ["integer", "null"] blockers: type: integer highRiskGaps: type: integer openRequirements: type: integer openIncidents: type: integer overdueDeadlines: type: integer dueSoonDeadlines: type: integer silencedDeadlines: type: integer description: >- Overdue deadlines on this assessment whose breach reminder emails are exhausted (alerting has gone silent). nextDeadlineAt: type: ["string", "null"] evidenceCoverage: type: ["number", "null"] urgencyScore: type: number headline: type: string description: One-line, data-derived next action for this assessment. required: - assessmentId - productId - productName - manufacturerName - regulationKey - readiness - journeyStage - journeyPct - journeyDone - journeyTotal - grade - score - blockers - highRiskGaps - openRequirements - openIncidents - overdueDeadlines - dueSoonDeadlines - silencedDeadlines - nextDeadlineAt - evidenceCoverage - urgencyScore - headline Regulation: type: object properties: id: type: integer key: type: string name: type: string shortName: type: string fullTitle: type: string jurisdiction: type: string summary: type: string inForceDate: type: ["string", "null"] sourceUrl: type: string requirementCount: type: integer sortOrder: type: integer keyDates: type: array items: $ref: "#/components/schemas/KeyDate" required: - id - key - name - shortName - fullTitle - jurisdiction - summary - sourceUrl - requirementCount - sortOrder - keyDates ProductClass: type: object properties: id: type: integer key: type: string name: type: string description: type: string riskLevel: type: ["string", "null"] defaultRouteKey: type: ["string", "null"] sortOrder: type: integer required: - id - key - name - description - sortOrder ConformityRoute: type: object properties: id: type: integer key: type: string name: type: string description: type: string thirdPartyRequired: type: boolean appliesToClasses: type: array items: type: string sortOrder: type: integer required: - id - key - name - description - thirdPartyRequired - appliesToClasses - sortOrder RegulationDetail: type: object properties: id: type: integer key: type: string name: type: string shortName: type: string fullTitle: type: string jurisdiction: type: string summary: type: string inForceDate: type: ["string", "null"] sourceUrl: type: string requirementCount: type: integer sortOrder: type: integer keyDates: type: array items: $ref: "#/components/schemas/KeyDate" classes: type: array items: $ref: "#/components/schemas/ProductClass" routes: type: array items: $ref: "#/components/schemas/ConformityRoute" required: - id - key - name - shortName - fullTitle - jurisdiction - summary - sourceUrl - requirementCount - sortOrder - keyDates - classes - routes ConformityTheme: type: object properties: id: type: integer key: type: string name: type: string description: type: string sortOrder: type: integer required: - id - key - name - description - sortOrder ThemeRegCoverage: type: object properties: regulationKey: type: string regulationShortName: type: string requirementCount: type: integer required: - regulationKey - regulationShortName - requirementCount ThemeCoverage: type: object properties: theme: $ref: "#/components/schemas/ConformityTheme" totalRequirements: type: integer coverage: type: array items: $ref: "#/components/schemas/ThemeRegCoverage" required: - theme - totalRequirements - coverage Requirement: type: object properties: id: type: integer regulationKey: type: string regulationShortName: type: string themeKey: type: ["string", "null"] themeName: type: ["string", "null"] refCode: type: string title: type: string description: type: string obligationType: type: string appliesTo: type: array items: type: string mappingCount: type: integer sortOrder: type: integer required: - id - regulationKey - regulationShortName - refCode - title - description - obligationType - appliesTo - mappingCount - sortOrder RequirementMappingRef: type: object properties: requirementId: type: integer regulationKey: type: string regulationShortName: type: string refCode: type: string title: type: string relationship: type: string direction: description: >- Direction of the relationship relative to the requirement being viewed. "outbound" = this requirement is the source; "inbound" = this requirement is the target. Meaningful for asymmetric relations such as "supports". type: string enum: [outbound, inbound] note: type: ["string", "null"] required: - requirementId - regulationKey - regulationShortName - refCode - title - relationship - direction RequirementDetail: type: object properties: id: type: integer regulationKey: type: string regulationShortName: type: string themeKey: type: ["string", "null"] themeName: type: ["string", "null"] refCode: type: string title: type: string description: type: string obligationType: type: string appliesTo: type: array items: type: string mappingCount: type: integer sortOrder: type: integer mappings: type: array items: $ref: "#/components/schemas/RequirementMappingRef" required: - id - regulationKey - regulationShortName - refCode - title - description - obligationType - appliesTo - mappingCount - sortOrder - mappings MappingCell: type: object properties: themeKey: type: string regulationKey: type: string requirementCount: type: integer requirementRefs: type: array items: type: string required: - themeKey - regulationKey - requirementCount - requirementRefs MappingMatrix: type: object properties: themes: type: array items: $ref: "#/components/schemas/ConformityTheme" regulations: type: array items: $ref: "#/components/schemas/RegulationStat" cells: type: array items: $ref: "#/components/schemas/MappingCell" required: - themes - regulations - cells SourceDocument: type: object properties: title: type: string filename: type: string url: type: string kind: type: string description: type: string regulationKey: description: Regulation this source is indexed under, or null if general. type: ["string", "null"] required: - title - filename - url - kind - description - regulationKey Locale: type: string enum: [en, nl] MenuPlacement: type: string enum: [header, footer] Error: type: object properties: error: type: string required: - error OkResponse: type: object properties: success: type: boolean required: - success SocialLink: type: object properties: platform: type: string url: type: string required: - platform - url SiteSettings: type: object properties: siteName: type: string tagline: type: string description: type: string contactEmail: type: ["string", "null"] footerText: type: string socialLinks: type: array items: $ref: "#/components/schemas/SocialLink" availableLocales: type: array items: $ref: "#/components/schemas/Locale" required: - siteName - tagline - description - footerText - socialLinks - availableLocales NavItem: type: object properties: id: type: integer label: type: string href: type: string placement: $ref: "#/components/schemas/MenuPlacement" order: type: integer external: type: boolean required: - id - label - href - placement - order - external PageSummary: type: object properties: id: type: integer slug: type: string serviceKey: type: ["string", "null"] description: Immutable canonical page key set at seed time. Stable across slug renames; used to wire editorial relationships (e.g. related-service strips) so they don't break when an admin changes a page's slug. title: type: string excerpt: type: ["string", "null"] description: Short lead paragraph from the page's article section, if present. Sourced from CMS content so summary cards stay in sync. locale: $ref: "#/components/schemas/Locale" visibility: $ref: "#/components/schemas/PageVisibility" regulationKeys: type: array items: type: string description: Regulation tracks this page belongs to, using the conformity catalogue's natural regulation keys (e.g. "cra"). Empty = cross-cutting content. required: - id - slug - serviceKey - title - excerpt - locale - visibility - regulationKeys PageVisibility: type: string enum: [public, members, admin] description: >- Tiered page access. "public" — anonymous visitors; "members" — any authenticated session (member/demo/admin); "admin" — site admins only. Enforced server-side on every page listing/fetch surface. PageSection: type: object description: A content section. `type` selects how the frontend renders it; `data` holds its localized content. properties: id: type: integer type: type: string description: Section renderer type (e.g. hero, feature_grid, two_column, comparison_table, stat_band, cta, faq, logo_wall, steps, quote). order: type: integer data: type: object additionalProperties: true required: - id - type - order - data Page: type: object properties: id: type: integer slug: type: string title: type: string locale: $ref: "#/components/schemas/Locale" seoTitle: type: ["string", "null"] seoDescription: type: ["string", "null"] ogTitle: type: ["string", "null"] ogDescription: type: ["string", "null"] ogImage: type: ["string", "null"] canonicalUrl: type: ["string", "null"] metaKeywords: type: ["string", "null"] noindex: type: boolean visibility: $ref: "#/components/schemas/PageVisibility" regulationKeys: type: array items: type: string sections: type: array items: $ref: "#/components/schemas/PageSection" required: - id - slug - title - locale - noindex - visibility - regulationKeys - sections AdminCredentials: type: object properties: username: type: string minLength: 1 password: type: string minLength: 1 required: - username - password AdminSession: type: object properties: authenticated: type: boolean username: type: ["string", "null"] role: type: ["string", "null"] description: "admin | demo | member. Null when not authenticated." displayName: type: ["string", "null"] description: "The person's display name for member sessions. Null otherwise." needsOnboarding: type: boolean description: >- Member sessions only: true until the assessor completes first-login onboarding. Always false for admin, demo and anonymous sessions. required: - authenticated TeamMember: type: object properties: id: { type: integer } username: { type: string } displayName: { type: string } active: { type: boolean } createdAt: { type: string } updatedAt: { type: string } required: - id - username - displayName - active - createdAt - updatedAt CreateTeamMemberInput: type: object properties: username: { type: string, minLength: 3, maxLength: 64 } displayName: { type: string, minLength: 1, maxLength: 120 } password: { type: string, minLength: 8, maxLength: 256 } required: - username - displayName - password UpdateTeamMemberInput: type: object properties: displayName: { type: string, minLength: 1, maxLength: 120 } active: { type: boolean } password: { type: string, minLength: 8, maxLength: 256 } MyProfile: type: object properties: username: { type: string } displayName: { type: ["string", "null"] } role: { type: string, description: "admin | demo | member" } teamRole: type: ["string", "null"] enum: [compliance_coordinator, engineering_lead, psirt, signatory, null] description: >- The member's internal team role (task 6.3), used to scope the home surface and inbox. Null when unassigned, and always null for admin/demo sessions — env-configured accounts are not team members. memberSince: type: ["string", "null"] description: "ISO timestamp the member account was created. Null for admin/demo." needsOnboarding: { type: boolean } toursSeen: type: array items: { type: string } description: >- Guided-tour ids this account has already seen. Persisted on the member account; always empty for admin/demo sessions (they use per-browser storage). required: - username - displayName - role - teamRole - memberSince - needsOnboarding - toursSeen UpdateMyProfileInput: type: object properties: displayName: { type: string, minLength: 1, maxLength: 120 } required: - displayName MarkMyTourSeenInput: type: object properties: tourId: type: string enum: [workbench, portfolio] required: - tourId ChangeMyPasswordInput: type: object properties: currentPassword: { type: string, minLength: 1, maxLength: 256 } newPassword: { type: string, minLength: 8, maxLength: 256 } required: - currentPassword - newPassword TeamDirectoryEntry: type: object properties: username: { type: string } displayName: { type: string } required: - username - displayName AskAssistantInput: type: object properties: message: type: string minLength: 1 history: type: array items: $ref: "#/components/schemas/AssistantTurn" required: - message AssistantTurn: type: object properties: role: type: string enum: [user, assistant] content: type: string required: - role - content ChatMessage: type: object properties: role: type: string enum: [user, assistant] content: type: string createdAt: type: string required: - role - content - createdAt ChatConversation: type: object properties: id: type: integer sessionId: type: string locale: $ref: "#/components/schemas/Locale" required: - id - sessionId - locale ChatConversationDetail: type: object properties: id: type: integer sessionId: type: string locale: $ref: "#/components/schemas/Locale" messages: type: array items: $ref: "#/components/schemas/ChatMessage" required: - id - sessionId - locale - messages CreateConversationInput: type: object properties: sessionId: type: string SendMessageInput: type: object properties: content: type: string minLength: 1 required: - content CaptureLeadInput: type: object properties: name: type: string minLength: 1 email: type: string minLength: 3 company: type: string message: type: string required: - name - email UpdateLeadStatusInput: type: object properties: status: type: string enum: [new, contacted, qualified, won, lost] required: - status Lead: type: object properties: id: type: integer conversationId: type: ["integer", "null"] name: type: string email: type: string company: type: ["string", "null"] message: type: ["string", "null"] locale: $ref: "#/components/schemas/Locale" status: type: string createdAt: type: string required: - id - name - email - locale - status - createdAt LeadDetail: type: object properties: id: type: integer conversationId: type: ["integer", "null"] name: type: string email: type: string company: type: ["string", "null"] message: type: ["string", "null"] locale: $ref: "#/components/schemas/Locale" status: type: string createdAt: type: string messages: type: array items: $ref: "#/components/schemas/ChatMessage" required: - id - name - email - locale - status - createdAt - messages IndexStatus: type: object description: State of the assistant's knowledge (content-embedding) index. properties: chunkCount: type: integer lastIndexedAt: type: ["string", "null"] running: type: boolean required: - chunkCount - lastIndexedAt - running NewsletterSubscriber: type: object properties: id: type: integer email: type: string status: type: string locale: type: string source: type: ["string", "null"] confirmedAt: type: ["string", "null"] unsubscribedAt: type: ["string", "null"] createdAt: type: string required: - id - email - status - locale - source - confirmedAt - unsubscribedAt - createdAt Newsletter: type: object properties: id: type: integer subject: type: string preheader: type: ["string", "null"] contentMarkdown: type: string topic: type: ["string", "null"] locale: type: string status: type: string scheduledAt: type: ["string", "null"] sentAt: type: ["string", "null"] recipientCount: type: integer sentCount: type: integer failedCount: type: integer openedCount: type: integer createdAt: type: string updatedAt: type: string required: - id - subject - preheader - contentMarkdown - topic - locale - status - scheduledAt - sentAt - recipientCount - sentCount - failedCount - openedCount - createdAt - updatedAt NewsletterInput: type: object properties: subject: type: string minLength: 1 preheader: type: ["string", "null"] contentMarkdown: type: string topic: type: ["string", "null"] locale: type: string required: - subject - contentMarkdown - locale SubscribeInput: type: object properties: email: type: string minLength: 3 locale: type: string source: type: string website: type: string description: >- Honeypot field. Must be left empty by real users (it is hidden in the UI). Any non-empty value is treated as a bot and silently ignored. required: - email ConfirmSubscriptionInput: type: object properties: token: type: string minLength: 1 required: - token UnsubscribeInput: type: object properties: token: type: string minLength: 1 required: - token GenerateNewsletterInput: type: object properties: topic: type: string minLength: 1 locale: type: string tone: type: string audience: type: string required: - topic GeneratedNewsletter: type: object properties: subject: type: string preheader: type: string contentMarkdown: type: string required: - subject - preheader - contentMarkdown ScheduleNewsletterInput: type: object properties: scheduledAt: type: string minLength: 1 required: - scheduledAt NewsletterActionResult: type: object properties: ok: type: boolean message: type: string required: - ok DeleteResult: type: object properties: success: type: boolean required: - success MailStatus: type: object properties: configured: type: boolean fromAddress: type: ["string", "null"] required: - configured - fromAddress UploadUrlRequest: type: object properties: name: type: string minLength: 1 size: type: integer minimum: 1 contentType: type: string minLength: 1 required: - name - size - contentType UploadUrlResponse: type: object properties: uploadURL: type: string objectPath: type: string metadata: $ref: "#/components/schemas/UploadUrlRequest" required: - uploadURL - objectPath AdminSection: type: object description: A content section within a draft. `data` holds the localized content for its `type`. properties: type: type: string order: type: integer data: type: object additionalProperties: true required: - type - order - data AdminSectionInput: type: object properties: type: type: string order: type: integer data: type: object additionalProperties: true required: - type - order - data AdminPageSummary: type: object properties: id: type: integer slug: type: string title: type: string locale: $ref: "#/components/schemas/Locale" status: type: string enum: [draft, published] hasUnpublishedChanges: type: boolean updatedAt: type: string required: - id - slug - title - locale - status - hasUnpublishedChanges - updatedAt AdminPage: type: object properties: id: type: integer slug: type: string title: type: string locale: $ref: "#/components/schemas/Locale" seoTitle: type: ["string", "null"] seoDescription: type: ["string", "null"] status: type: string enum: [draft, published] hasUnpublishedChanges: type: boolean sections: type: array items: $ref: "#/components/schemas/AdminSection" updatedAt: type: string required: - id - slug - title - locale - status - hasUnpublishedChanges - sections - updatedAt CreatePageInput: type: object properties: slug: type: string minLength: 1 locale: $ref: "#/components/schemas/Locale" title: type: string minLength: 1 required: - slug - locale - title SavePageDraftInput: type: object properties: title: type: string minLength: 1 seoTitle: type: ["string", "null"] seoDescription: type: ["string", "null"] sections: type: array items: $ref: "#/components/schemas/AdminSectionInput" required: - title - sections PageVersion: type: object properties: id: type: integer versionNumber: type: integer state: type: string enum: [draft, published, archived] title: type: string note: type: ["string", "null"] createdAt: type: string required: - id - versionNumber - state - title - createdAt NavItemInput: type: object properties: label: type: string minLength: 1 href: type: string minLength: 1 placement: $ref: "#/components/schemas/MenuPlacement" order: type: integer external: type: boolean required: - label - href - placement - order - external SaveNavInput: type: object properties: items: type: array items: $ref: "#/components/schemas/NavItemInput" required: - items MediaAsset: type: object properties: id: type: integer kind: type: string objectPath: type: string url: type: string fileName: type: string mimeType: type: string sizeBytes: type: integer width: type: ["integer", "null"] height: type: ["integer", "null"] pageCount: type: ["integer", "null"] createdAt: type: string required: - id - kind - objectPath - url - fileName - mimeType - sizeBytes - createdAt RegisterMediaInput: type: object properties: objectPath: type: string minLength: 1 fileName: type: string minLength: 1 mimeType: type: string minLength: 1 sizeBytes: type: integer width: type: ["integer", "null"] height: type: ["integer", "null"] required: - objectPath - fileName - mimeType CarouselSlide: type: object properties: id: type: integer sortOrder: type: integer kind: type: string imagePath: type: string imageUrl: type: string groupId: type: ["string", "null"] pageIndex: type: ["integer", "null"] captionEn: type: ["string", "null"] captionNl: type: ["string", "null"] linkUrl: type: ["string", "null"] active: type: boolean required: - id - sortOrder - kind - imagePath - imageUrl - active AddCarouselImageInput: type: object properties: objectPath: type: string minLength: 1 captionEn: type: ["string", "null"] captionNl: type: ["string", "null"] linkUrl: type: ["string", "null"] required: - objectPath AddCarouselPdfInput: type: object properties: objectPath: type: string minLength: 1 captionEn: type: ["string", "null"] captionNl: type: ["string", "null"] linkUrl: type: ["string", "null"] required: - objectPath UpdateCarouselSlideInput: type: object properties: captionEn: type: ["string", "null"] captionNl: type: ["string", "null"] linkUrl: type: ["string", "null"] active: type: boolean CarouselReorderInput: type: object properties: ids: type: array items: type: integer required: - ids ModelInfo: type: object properties: id: type: string name: type: string provider: type: string description: type: string roles: type: array items: type: string contextWindow: type: ["integer", "null"] required: - id - name - provider - description - roles ProviderStatus: type: object properties: id: type: string name: type: string description: type: string configured: type: boolean required: - id - name - description - configured LlmConfig: type: object properties: # Present in the running API and its three consumers since b360c37 but # never added to this spec — the generated types were hand-edited # instead, and every codegen run silently reverted them. Restored here # (2026-08-15) so the spec matches reality and codegen is safe to run. openrouterApiKey: type: ["string", "null"] chatModel: type: ["string", "null"] embeddingModel: type: ["string", "null"] longContextModel: type: ["string", "null"] briefModel: type: ["string", "null"] searchModel: type: ["string", "null"] translationModel: type: ["string", "null"] LlmConfigInput: type: object properties: openrouterApiKey: type: ["string", "null"] chatModel: type: ["string", "null"] embeddingModel: type: ["string", "null"] longContextModel: type: ["string", "null"] briefModel: type: ["string", "null"] searchModel: type: ["string", "null"] translationModel: type: ["string", "null"] LlmSettings: type: object properties: config: $ref: "#/components/schemas/LlmConfig" providers: type: array items: $ref: "#/components/schemas/ProviderStatus" catalog: type: array items: $ref: "#/components/schemas/ModelInfo" required: - config - providers - catalog EmailSettings: type: object properties: enabled: { type: boolean } fromName: { type: string } fromEmail: { type: string } smtpHost: { type: string } smtpPort: { type: integer } smtpSecure: { type: boolean } smtpUser: { type: string } smtpPasswordSet: { type: boolean } alertEmail: { type: string } health: $ref: "#/components/schemas/IntegrationHealthSnapshot" required: - enabled - fromName - fromEmail - smtpHost - smtpPort - smtpSecure - smtpUser - smtpPasswordSet - alertEmail - health LinkedinSettings: type: object properties: enabled: { type: boolean } autoPublish: { type: boolean } profileUrl: { type: string } authorUrn: { type: string } accessTokenSet: { type: boolean } expiresAt: { type: ["integer", "null"] } clientId: { type: string } clientSecretSet: { type: boolean } health: $ref: "#/components/schemas/IntegrationHealthSnapshot" required: - enabled - autoPublish - profileUrl - authorUrn - accessTokenSet - expiresAt - clientId - clientSecretSet - health XSettings: type: object properties: enabled: { type: boolean } autoPublish: { type: boolean } username: { type: string } apiKeySet: { type: boolean } apiSecretSet: { type: boolean } accessTokenSet: { type: boolean } accessSecretSet: { type: boolean } health: $ref: "#/components/schemas/IntegrationHealthSnapshot" required: - enabled - autoPublish - username - apiKeySet - apiSecretSet - accessTokenSet - accessSecretSet - health SlackSettings: type: object properties: enabled: { type: boolean } webhookUrlSet: { type: boolean } health: $ref: "#/components/schemas/IntegrationHealthSnapshot" required: - enabled - webhookUrlSet - health ConformityAlertsSettings: type: object properties: enabled: { type: boolean } recipient: { type: string } leadTimeHours: { type: integer } digestEnabled: { type: boolean } # Hours between repeat "still overdue" reminders for a breached stage. reminderIntervalHours: { type: integer } # Max repeat reminders per breached stage (0 = breach email only). maxReminders: { type: integer } # Where alerts actually go right now (recipient falling back to the # email integration's alertEmail / fromEmail). Empty = nowhere. effectiveRecipient: { type: string } required: - enabled - recipient - leadTimeHours - digestEnabled - reminderIntervalHours - maxReminders - effectiveRecipient IntegrationSettings: type: object properties: email: $ref: "#/components/schemas/EmailSettings" linkedin: $ref: "#/components/schemas/LinkedinSettings" x: $ref: "#/components/schemas/XSettings" slack: $ref: "#/components/schemas/SlackSettings" conformityAlerts: $ref: "#/components/schemas/ConformityAlertsSettings" required: - email - linkedin - x - slack - conformityAlerts EmailSettingsInput: type: object properties: enabled: { type: boolean } fromName: { type: string } fromEmail: { type: string } smtpHost: { type: string } smtpPort: { type: integer } smtpSecure: { type: boolean } smtpUser: { type: string } smtpPassword: { type: string } alertEmail: { type: string } LinkedinSettingsInput: type: object properties: enabled: { type: boolean } autoPublish: { type: boolean } profileUrl: { type: string } authorUrn: { type: string } accessToken: { type: string } expiresAt: { type: ["integer", "null"] } clientId: { type: string } clientSecret: { type: string } XSettingsInput: type: object properties: enabled: { type: boolean } autoPublish: { type: boolean } username: { type: string } apiKey: { type: string } apiSecret: { type: string } accessToken: { type: string } accessSecret: { type: string } SlackSettingsInput: type: object properties: enabled: { type: boolean } webhookUrl: { type: string } SlackTestResult: type: object properties: delivered: { type: boolean } error: { type: ["string", "null"] } required: - delivered - error ConformityAlertsSettingsInput: type: object properties: enabled: { type: boolean } recipient: { type: string } leadTimeHours: { type: integer, minimum: 1, maximum: 168 } digestEnabled: { type: boolean } reminderIntervalHours: { type: integer, minimum: 1, maximum: 168 } maxReminders: { type: integer, minimum: 0, maximum: 30 } ConformityAlertsRunResult: type: object properties: ranAt: { type: string } enabled: { type: boolean } emailConfigured: { type: boolean } incidentsChecked: { type: integer } alertsSent: { type: integer } alertsFailed: { type: integer } digestSent: { type: boolean } required: - ranAt - enabled - emailConfigured - incidentsChecked - alertsSent - alertsFailed - digestSent EmailTestInput: type: object properties: to: type: string minLength: 3 required: - to IntegrationHealthSnapshot: type: object properties: lastCheckedAt: { type: ["integer", "null"] } lastSuccessAt: { type: ["integer", "null"] } lastFailureAt: { type: ["integer", "null"] } lastError: { type: ["string", "null"] } required: - lastCheckedAt - lastSuccessAt - lastFailureAt - lastError ConnectionTestResult: type: object properties: ok: { type: boolean } error: { type: ["string", "null"] } checkedAt: { type: string } required: - ok - error - checkedAt IntegrationHealthEntry: type: object properties: enabled: { type: boolean } configured: { type: boolean } connected: { type: ["boolean", "null"] } lastCheckedAt: { type: ["integer", "null"] } lastSuccessAt: { type: ["integer", "null"] } lastFailureAt: { type: ["integer", "null"] } lastError: { type: ["string", "null"] } tokenExpiresAt: { type: ["integer", "null"] } recentSuccessCount: { type: integer } recentFailureCount: { type: integer } required: - enabled - configured - connected - lastCheckedAt - lastSuccessAt - lastFailureAt - lastError - tokenExpiresAt - recentSuccessCount - recentFailureCount IntegrationsHealth: type: object properties: email: $ref: "#/components/schemas/IntegrationHealthEntry" linkedin: $ref: "#/components/schemas/IntegrationHealthEntry" x: $ref: "#/components/schemas/IntegrationHealthEntry" slack: $ref: "#/components/schemas/IntegrationHealthEntry" required: - email - linkedin - x - slack IntegrationActivityItem: type: object properties: id: { type: string } integration: { type: string } kind: { type: string } success: { type: boolean } detail: { type: ["string", "null"] } createdAt: { type: string } required: - id - integration - kind - success - detail - createdAt MailTestResult: type: object properties: delivered: { type: boolean } error: { type: ["string", "null"] } required: - delivered WizardGenerateInput: type: object properties: topic: type: string minLength: 1 persona: type: ["string", "null"] cta: type: ["string", "null"] tone: type: ["string", "null"] locale: $ref: "#/components/schemas/Locale" sections: type: array items: type: string templateId: type: ["integer", "null"] required: - topic - locale WizardResult: type: object properties: title: type: string slug: type: string seoTitle: type: ["string", "null"] seoDescription: type: ["string", "null"] sections: type: array items: $ref: "#/components/schemas/AdminSection" required: - title - slug - sections PageTemplate: type: object properties: id: type: integer name: type: string description: type: ["string", "null"] config: type: object additionalProperties: true createdAt: type: string required: - id - name - config - createdAt CreateTemplateInput: type: object properties: name: type: string minLength: 1 description: type: ["string", "null"] config: type: object additionalProperties: true required: - name - config AffiliateKeyword: type: object properties: id: type: integer keyword: type: string locale: $ref: "#/components/schemas/Locale" active: type: boolean required: - id - keyword - locale - active AffiliateKeywordInput: type: object properties: keyword: type: string minLength: 1 locale: $ref: "#/components/schemas/Locale" active: type: boolean required: - keyword AffiliateLink: type: object properties: id: type: integer name: type: string targetUrl: type: string description: type: ["string", "null"] sponsored: type: boolean active: type: boolean clickCount: type: integer keywords: type: array items: $ref: "#/components/schemas/AffiliateKeyword" createdAt: type: string updatedAt: type: string required: - id - name - targetUrl - sponsored - active - clickCount - keywords - createdAt - updatedAt AffiliateLinkInput: type: object properties: name: type: string minLength: 1 targetUrl: type: string minLength: 1 description: type: ["string", "null"] sponsored: type: boolean active: type: boolean keywords: type: array items: $ref: "#/components/schemas/AffiliateKeywordInput" required: - name - targetUrl - keywords SuggestLinksInput: type: object properties: pageId: type: integer required: - pageId LinkSuggestion: type: object properties: sectionIndex: type: integer sectionType: type: string linkId: type: integer linkName: type: string keyword: type: string snippet: type: string required: - sectionIndex - sectionType - linkId - linkName - keyword - snippet LinkSuggestionsResult: type: object properties: suggestions: type: array items: $ref: "#/components/schemas/LinkSuggestion" required: - suggestions ApplyLinkInsertion: type: object properties: sectionIndex: type: integer linkId: type: integer keyword: type: string required: - sectionIndex - linkId - keyword ApplyLinksInput: type: object properties: pageId: type: integer insertions: type: array items: $ref: "#/components/schemas/ApplyLinkInsertion" required: - pageId - insertions SeoPage: type: object properties: id: type: integer slug: type: string title: type: string locale: $ref: "#/components/schemas/Locale" status: type: string seoTitle: type: ["string", "null"] seoDescription: type: ["string", "null"] ogTitle: type: ["string", "null"] ogDescription: type: ["string", "null"] ogImage: type: ["string", "null"] canonicalUrl: type: ["string", "null"] metaKeywords: type: ["string", "null"] noindex: type: boolean visibility: $ref: "#/components/schemas/PageVisibility" regulationKeys: type: array items: type: string required: - id - slug - title - locale - status - noindex - visibility - regulationKeys SeoPageInput: type: object description: >- Operational SEO fields owned by the SEO admin. seoTitle/seoDescription are intentionally excluded: they are versioned page content managed by the CMS page editor and are rewritten on publish. properties: ogTitle: type: ["string", "null"] ogDescription: type: ["string", "null"] ogImage: type: ["string", "null"] canonicalUrl: type: ["string", "null"] metaKeywords: type: ["string", "null"] noindex: type: boolean visibility: $ref: "#/components/schemas/PageVisibility" regulationKeys: type: array items: type: string AnalyticsCountByDay: type: object properties: date: type: string views: type: integer required: - date - views AnalyticsPathCount: type: object properties: path: type: string views: type: integer required: - path - views AnalyticsReferrerCount: type: object properties: referrer: type: string count: type: integer required: - referrer - count AnalyticsDeviceCount: type: object properties: device: type: string count: type: integer required: - device - count AnalyticsLinkPerformance: type: object properties: linkId: type: integer name: type: string clicks: type: integer required: - linkId - name - clicks AnalyticsOverview: type: object properties: rangeDays: type: integer totalViews: type: integer uniqueVisitors: type: integer totalClicks: type: integer viewsByDay: type: array items: $ref: "#/components/schemas/AnalyticsCountByDay" topPages: type: array items: $ref: "#/components/schemas/AnalyticsPathCount" topReferrers: type: array items: $ref: "#/components/schemas/AnalyticsReferrerCount" deviceBreakdown: type: array items: $ref: "#/components/schemas/AnalyticsDeviceCount" linkPerformance: type: array items: $ref: "#/components/schemas/AnalyticsLinkPerformance" required: - rangeDays - totalViews - uniqueVisitors - totalClicks - viewsByDay - topPages - topReferrers - deviceBreakdown - linkPerformance ContentIdea: type: object properties: title: type: string rationale: type: string required: - title - rationale PlacementIdea: type: object properties: linkName: type: string keyword: type: string suggestion: type: string required: - linkName - keyword - suggestion AnalyticsRecommendations: type: object properties: contentIdeas: type: array items: $ref: "#/components/schemas/ContentIdea" placementIdeas: type: array items: $ref: "#/components/schemas/PlacementIdea" generatedAt: type: string required: - contentIdeas - placementIdeas - generatedAt CollectAnalyticsInput: type: object properties: path: type: string minLength: 1 locale: $ref: "#/components/schemas/Locale" sessionId: type: string referrer: type: string device: type: string required: - path PublishAdminPageInput: type: object description: Optional social-sharing options passed when publishing a page. properties: shareLinkedIn: type: boolean shareX: type: boolean shareText: type: string maxLength: 3000 description: Text for the social post. Defaults to the page title if omitted. SocialStatus: type: object properties: linkedin: $ref: "#/components/schemas/SocialPlatformStatus" x: $ref: "#/components/schemas/SocialPlatformStatus" required: - linkedin - x SocialPlatformStatus: type: object properties: configured: type: boolean checked: type: boolean description: Whether a live validation call was made against the provider. valid: type: ["boolean", "null"] description: >- Result of the live token check. null when not checked or when the outcome is indeterminate. expiresInDays: type: ["integer", "null"] description: Whole days until the access token expires, when the provider reports it. expiresAt: type: ["string", "null"] description: ISO timestamp when the access token expires, when known. error: type: ["string", "null"] description: Human-readable problem detected during validation, if any. required: - configured SocialPostInput: type: object properties: text: type: string minLength: 1 maxLength: 3000 platforms: type: array items: type: string enum: [linkedin, x] minItems: 1 required: - text - platforms SocialPostResult: type: object properties: results: type: array items: $ref: "#/components/schemas/SocialPostOutcome" required: - results SocialPostOutcome: type: object properties: platform: type: string success: type: boolean error: type: ["string", "null"] required: - platform - success - error SocialPostLogEntry: type: object properties: id: type: integer platform: type: string success: type: boolean error: type: ["string", "null"] text: type: string source: type: string createdAt: type: string required: - id - platform - success - error - text - source - createdAt # ----- Conformity execution ("working") layer ----- SupplierDocument: type: object properties: id: { type: integer } productId: { type: integer } docType: type: string enum: [declaration_of_conformity, user_information, support_period_statement, security_advisory_channel, sbom, other] title: { type: string } objectPath: { type: string } fileName: { type: string } fileHash: { type: string } url: { type: string } note: { type: string } submittedVia: { type: string, enum: [internal_upload, supplier_token] } submittedBy: { type: string } createdAt: { type: string } required: [id, productId, docType, title, objectPath, fileName, fileHash, url, note, submittedVia, submittedBy, createdAt] SupplierDocumentList: type: object properties: documents: type: array items: $ref: "#/components/schemas/SupplierDocument" required: [documents] SupplierDocumentInput: type: object properties: docType: type: string enum: [declaration_of_conformity, user_information, support_period_statement, security_advisory_channel, sbom, other] title: { type: string, minLength: 1 } objectPath: { type: string } fileName: { type: string } url: { type: string } note: { type: string } required: [docType, title] SharedResponsibilityRow: type: object properties: area: { type: string } supplier: { type: string } customer: { type: string } note: { type: string } required: [area, supplier, customer, note] SharedResponsibilityMatrix: type: object properties: id: { type: integer } productId: { type: integer } rows: type: array items: $ref: "#/components/schemas/SharedResponsibilityRow" version: { type: integer } updatedBy: { type: string } createdAt: { type: string } updatedAt: { type: string } required: [id, productId, rows, version, updatedBy, createdAt, updatedAt] SharedResponsibilityInput: type: object properties: rows: type: array items: $ref: "#/components/schemas/SharedResponsibilityRow" updatedBy: { type: string } required: [rows] DeliveryManifestVersion: type: object properties: id: { type: integer } productId: { type: integer } version: { type: integer } ipRelease: { type: string } node: { type: string } options: type: array items: { type: string } configBaseline: { type: string } changeNote: { type: string } createdBy: { type: string } createdAt: { type: string } required: [id, productId, version, ipRelease, node, options, configBaseline, changeNote, createdBy, createdAt] DeliveryManifestAccessState: type: object properties: accessToken: { type: string } accessActive: { type: boolean } required: [accessToken, accessActive] DeliveryManifestList: type: object properties: versions: type: array items: $ref: "#/components/schemas/DeliveryManifestVersion" accessToken: { type: string } accessActive: { type: boolean } required: [versions, accessToken, accessActive] CreateDeliveryManifestVersionInput: type: object properties: ipRelease: { type: string, minLength: 1 } node: { type: string } options: type: array items: { type: string } configBaseline: { type: string } changeNote: { type: string } required: [ipRelease] DeliveryManifestPublicView: type: object properties: productName: { type: string } versions: type: array items: $ref: "#/components/schemas/DeliveryManifestVersion" required: [productName, versions] AssuranceRecipient: type: object properties: id: { type: integer } productId: { type: integer } recipientName: { type: string } accessToken: { type: string } isActive: { type: boolean } createdAt: { type: string } required: [id, productId, recipientName, accessToken, isActive, createdAt] AssuranceRecipientList: type: object properties: recipients: type: array items: $ref: "#/components/schemas/AssuranceRecipient" required: [recipients] CreateAssuranceRecipientInput: type: object properties: recipientName: { type: string, minLength: 1 } required: [recipientName] AssurancePackagePublicView: type: object properties: productName: { type: string } recipientName: { type: string } matrix: type: array items: $ref: "#/components/schemas/SharedResponsibilityRow" versions: type: array items: $ref: "#/components/schemas/DeliveryManifestVersion" cvdPolicy: { type: boolean } supportStatement: { type: boolean } sbom: { type: boolean } completeHave: { type: integer } completeTotal: { type: integer } required: [productName, recipientName, matrix, versions, cvdPolicy, supportStatement, sbom, completeHave, completeTotal] AssurancePackage: type: object properties: productName: { type: string } matrixPresent: { type: boolean } matrixRows: { type: integer } manifestVersions: { type: integer } manifestLatest: { type: string } cvdPolicy: { type: boolean } supportStatement: { type: boolean } sbom: { type: boolean } completeHave: { type: integer } completeTotal: { type: integer } required: [productName, matrixPresent, matrixRows, manifestVersions, manifestLatest, cvdPolicy, supportStatement, sbom, completeHave, completeTotal] SupplierRequest: type: object properties: id: { type: integer } supplierId: { type: integer } productId: { type: integer } docType: { type: string } message: { type: string } accessToken: { type: string } expiresAt: { type: string } status: { type: string, enum: [open, fulfilled, withdrawn] } fulfilledAt: { type: ["string", "null"] } createdBy: { type: string } createdAt: { type: string } required: [id, supplierId, productId, docType, message, accessToken, expiresAt, status, fulfilledAt, createdBy, createdAt] SupplierRequestList: type: object properties: requests: type: array items: $ref: "#/components/schemas/SupplierRequest" required: [requests] SupplierRequestInput: type: object properties: docType: type: string enum: [declaration_of_conformity, user_information, support_period_statement, security_advisory_channel, sbom, other] message: { type: string } expiresInDays: { type: integer, minimum: 1, maximum: 90 } required: [docType] SupplierPortalWorkspace: type: object description: >- What the supplier sees through the door — only what it needs: who is asking, for which product, for what, until when. No internal ids. properties: organisationAsking: { type: string } supplierName: { type: string } productName: { type: string } docType: { type: string } message: { type: string } status: { type: string } expiresAt: { type: string } required: [organisationAsking, supplierName, productName, docType, message, status, expiresAt] SupplierPortalSubmitBody: type: object properties: token: { type: string, minLength: 1 } url: type: string description: A link to the document. note: { type: string } objectPath: type: string description: >- Object path of a file uploaded through the door's one-time upload URL. Fingerprinted server-side at link time. fileName: { type: string } submitterEmail: { type: string } required: [token] SupplierDoorUploadInput: type: object properties: token: { type: string, minLength: 1 } name: { type: string, minLength: 1 } size: { type: integer, minimum: 1 } contentType: { type: string, minLength: 1 } required: [token, name, size, contentType] SupplierDoorUploadTarget: type: object properties: uploadURL: { type: string } objectPath: { type: string } required: [uploadURL, objectPath] ProcurementFactsInput: type: object description: >- Tri-state facts (true / false / null = unanswered; omitted fields are left unchanged). Each fact concerns a duty of the SUPPLIER's manufacturer, not of this organisation. properties: ceMarkingSighted: { type: ["boolean", "null"] } docOnFile: { type: ["boolean", "null"] } userInformationReceived: { type: ["boolean", "null"] } supportPeriodStated: { type: ["boolean", "null"] } securityContactKnown: { type: ["boolean", "null"] } manufacturerIdentified: { type: ["boolean", "null"] } sbomReceived: { type: ["boolean", "null"] } note: { type: string } ProcurementPostureItem: type: object properties: key: { type: string } label: { type: string } anchor: { type: string } kind: { type: string, enum: [statutory, contractual] } status: { type: string, enum: [on_file, not_provided, unanswered] } required: [key, label, anchor, kind, status] ProcurementCheck: type: object properties: productId: { type: integer } facts: type: object properties: ceMarkingSighted: { type: ["boolean", "null"] } docOnFile: { type: ["boolean", "null"] } userInformationReceived: { type: ["boolean", "null"] } supportPeriodStated: { type: ["boolean", "null"] } securityContactKnown: { type: ["boolean", "null"] } manufacturerIdentified: { type: ["boolean", "null"] } sbomReceived: { type: ["boolean", "null"] } required: [ceMarkingSighted, docOnFile, userInformationReceived, supportPeriodStated, securityContactKnown, manufacturerIdentified, sbomReceived] note: { type: string } updatedBy: { type: string } updatedAt: { type: ["string", "null"] } posture: type: object properties: items: type: array items: $ref: "#/components/schemas/ProcurementPostureItem" onFile: { type: integer } notProvided: { type: integer } unanswered: { type: integer } statutoryOnFile: { type: integer } statutoryTotal: { type: integer } required: [items, onFile, notProvided, unanswered, statutoryOnFile, statutoryTotal] required: [productId, facts, note, updatedBy, updatedAt, posture] SupplierPostureProduct: type: object properties: id: { type: integer } name: { type: string } productType: { type: string } supportPeriodEnd: { type: ["string", "null"] } redInScope: { type: ["boolean", "null"] } statutoryOnFile: { type: integer } statutoryTotal: { type: integer } notProvided: { type: integer } unanswered: { type: integer } required: [id, name, productType, supportPeriodEnd, redInScope, statutoryOnFile, statutoryTotal, notProvided, unanswered] SupplierPosture: type: object properties: id: { type: integer } name: { type: string } contact: { type: string } products: type: array items: $ref: "#/components/schemas/SupplierPostureProduct" productCount: { type: integer } statutoryOnFile: { type: integer } statutoryTotal: { type: integer } unanswered: { type: integer } earliestSupportEnd: type: ["string", "null"] description: The soonest support-period end among this supplier's products, or null when none is recorded. required: [id, name, contact, products, productCount, statutoryOnFile, statutoryTotal, unanswered, earliestSupportEnd] SupplierPostureList: type: object properties: suppliers: type: array items: $ref: "#/components/schemas/SupplierPosture" unlinkedProductCount: type: integer description: Operator-filed products with no supplier recorded — named so zero-linkage never reads as clean. required: [suppliers, unlinkedProductCount] ConformitySupplier: type: object properties: id: { type: integer } name: { type: string } contact: { type: string } website: { type: string } notes: { type: string } productCount: type: integer description: How many products in the register are linked to this supplier. createdAt: { type: string } updatedAt: { type: string } required: [id, name, contact, website, notes, productCount, createdAt, updatedAt] ConformitySupplierInput: type: object properties: name: { type: string, minLength: 1 } contact: { type: string } website: { type: string } notes: { type: string } required: [name] ConformitySupplierList: type: object properties: suppliers: type: array items: $ref: "#/components/schemas/ConformitySupplier" required: [suppliers] ConformityProduct: type: object properties: id: { type: integer } name: { type: string } description: { type: string } manufacturerName: { type: string } manufacturerAddress: { type: string } authorizedRep: { type: string } productType: { type: string } version: { type: string } intendedUse: { type: string } orgRole: type: ["string", "null"] enum: [manufacturer, authorised_representative, importer, distributor, oss_steward, system_integrator, operator, null] description: >- The role THIS organisation holds for THIS product (D5 — Siemens manufactures some products and imports others). Selects which stages the product file renders. Null until declared; the file then prompts for the declaration instead of guessing. supportPeriodStart: { type: ["string", "null"] } supportPeriodEnd: { type: ["string", "null"] } redInScope: type: ["boolean", "null"] description: >- Whether the product is radio equipment in a category designated by Delegated Regulation (EU) 2022/30 (RED Art 3(3)(d)/(e)/(f)). Null until answered; the product file prompts instead of guessing. supplierId: type: ["integer", "null"] description: >- The supplier this product was procured from (operator shape). Null for own products or until the relationship is recorded. createdAt: { type: string } updatedAt: { type: string } required: - id - name - description - manufacturerName - manufacturerAddress - authorizedRep - productType - version - intendedUse - orgRole - supportPeriodStart - supportPeriodEnd - createdAt - updatedAt ConformityProductInput: type: object properties: name: { type: string, minLength: 1 } description: { type: string } manufacturerName: { type: string } manufacturerAddress: { type: string } authorizedRep: { type: string } productType: { type: string } version: { type: string } intendedUse: { type: string } orgRole: type: ["string", "null"] enum: [manufacturer, authorised_representative, importer, distributor, oss_steward, system_integrator, operator, null] supportPeriodStart: { type: ["string", "null"] } supportPeriodEnd: { type: ["string", "null"] } redInScope: type: ["boolean", "null"] description: >- Whether the product is radio equipment in a category designated by Delegated Regulation (EU) 2022/30 (RED Art 3(3)(d)/(e)/(f)). Null until answered — a scoping fact, never defaulted. supplierId: type: ["integer", "null"] description: >- The supplier this product was procured from (operator shape). Must reference an existing supplier; null clears the link. required: - name ProductUser: type: object properties: id: { type: integer } productId: { type: integer } name: { type: string } contact: { type: string } deployedVersion: { type: string } notes: { type: string } registeredBy: { type: string } createdAt: { type: string } updatedAt: { type: string } required: [id, productId, name, contact, deployedVersion, notes, registeredBy, createdAt, updatedAt] ProductUserList: type: object properties: users: type: array items: $ref: "#/components/schemas/ProductUser" required: [users] CreateProductUserInput: type: object properties: name: { type: string, minLength: 1 } contact: { type: string } deployedVersion: { type: string } notes: { type: string } required: [name] AdvisoryImpactedUsers: type: object properties: rule: { type: string } affectedVersionTokens: type: array items: { type: string } impacted: type: array items: $ref: "#/components/schemas/ProductUser" versionNotRecorded: type: array items: $ref: "#/components/schemas/ProductUser" noRecordedMatch: type: array items: $ref: "#/components/schemas/ProductUser" required: [rule, affectedVersionTokens, impacted, versionNotRecorded, noRecordedMatch] UserNotification: type: object properties: id: { type: integer } productId: { type: integer } advisoryId: { type: ["integer", "null"] } scope: { type: string, enum: [impacted_users, all_users] } statedAt: { type: string } method: { type: string } measuresSummary: { type: string } machineReadableFormat: { type: string } recordedBy: { type: string } createdAt: { type: string } required: [id, productId, advisoryId, scope, statedAt, method, measuresSummary, machineReadableFormat, recordedBy, createdAt] UserNotificationList: type: object properties: notifications: type: array items: $ref: "#/components/schemas/UserNotification" required: [notifications] RecordUserNotificationInput: type: object properties: advisoryId: { type: ["integer", "null"] } scope: { type: string, enum: [impacted_users, all_users] } # The recorder's explicit statement of when users were informed. statedAt: { type: string, minLength: 4 } method: { type: string, minLength: 1 } measuresSummary: { type: string } machineReadableFormat: { type: string } required: [scope, statedAt, method] AuditorAccess: type: object properties: id: { type: integer } assessmentId: { type: integer } auditorEmail: { type: string } notifiedBodyName: { type: string } notifiedBodyNumber: { type: string } accessToken: { type: string } expiresAt: { type: string } isActive: { type: boolean } createdAt: { type: string } required: [id, assessmentId, auditorEmail, notifiedBodyName, notifiedBodyNumber, accessToken, expiresAt, isActive, createdAt] AuditorAccessList: type: object properties: access: type: array items: $ref: "#/components/schemas/AuditorAccess" required: [access] IssueAuditorAccessInput: type: object properties: auditorEmail: { type: string, minLength: 3 } notifiedBodyName: { type: string, minLength: 1 } notifiedBodyNumber: { type: string, minLength: 1 } # Explicit, never defaulted: expiry is the issuer's decision. expiresInDays: { type: integer, minimum: 1, maximum: 365 } required: [auditorEmail, notifiedBodyName, notifiedBodyNumber, expiresInDays] AuditorRfi: type: object properties: id: { type: integer } assessmentId: { type: integer } requirementRefCode: { type: ["string", "null"] } auditorEmail: { type: string } question: { type: string } severity: { type: string, enum: [rfi, non_conformity, observation] } status: { type: string, enum: [open, answered, closed] } manufacturerResponse: { type: string } respondedAt: { type: ["string", "null"] } createdAt: { type: string } required: [id, assessmentId, auditorEmail, question, severity, status, manufacturerResponse, respondedAt, createdAt] AuditorRfiList: type: object properties: rfis: type: array items: $ref: "#/components/schemas/AuditorRfi" required: [rfis] RespondAuditorRfiInput: type: object properties: response: { type: string, minLength: 1 } required: [response] ImportConformityProductsInput: type: object properties: rows: type: array minItems: 1 maxItems: 500 # Deliberately NOT ConformityProductInput: its required `name` would # reject the whole request at validation. A nameless row is rejected # individually in the result so the rest of the file still imports. items: $ref: "#/components/schemas/ImportConformityProductRow" required: - rows ImportConformityProductRow: type: object properties: name: { type: string } description: { type: string } manufacturerName: { type: string } productType: { type: string } version: { type: string } intendedUse: { type: string } ImportConformityProductsResult: type: object properties: created: type: array items: $ref: "#/components/schemas/ConformityProduct" rejected: type: array items: type: object properties: index: { type: integer } reason: { type: string } required: [index, reason] required: - created - rejected AppliedStandard: type: object properties: reference: { type: string, minLength: 1, maxLength: 200 } title: { type: string, maxLength: 300 } coverage: { type: string, enum: [full, partial] } notes: { type: string, maxLength: 2000 } required: - reference - coverage SaveStandardsInput: type: object properties: standards: type: array maxItems: 50 items: $ref: "#/components/schemas/AppliedStandard" required: - standards ConformityAssessment: type: object properties: id: { type: integer } productId: { type: integer } regulationKey: { type: string } status: { type: string } currentStage: { type: string } scopeResult: { type: ["string", "null"] } classKey: { type: ["string", "null"] } routeKey: { type: ["string", "null"] } appliedStandards: type: array items: $ref: "#/components/schemas/AppliedStandard" startedAt: { type: string } completedAt: { type: ["string", "null"] } updatedAt: { type: string } required: - id - productId - regulationKey - status - currentStage - scopeResult - classKey - routeKey - appliedStandards - startedAt - completedAt - updatedAt ConformityProductDetail: type: object properties: product: { $ref: "#/components/schemas/ConformityProduct" } assessments: type: array items: $ref: "#/components/schemas/ConformityAssessment" required: - product - assessments FlowQuestion: type: object properties: key: { type: string } title: { type: string } help: { type: string } citation: { type: string } inScopeWhen: { type: boolean } required: - key - title - citation ClassificationOption: type: object properties: value: { type: string } label: { type: string } description: { type: string } required: - value - label ClassificationGroup: type: object properties: classKey: { type: string } classLabel: { type: string } citation: { type: string } options: type: array items: $ref: "#/components/schemas/ClassificationOption" required: - classKey - classLabel - citation - options ConformityFlow: type: object properties: regulationKey: { type: string } regulationName: { type: string } scoping: type: object properties: title: { type: string } description: { type: string } questions: type: array items: $ref: "#/components/schemas/FlowQuestion" required: - title - description - questions classification: type: object properties: title: { type: string } description: { type: string } defaultClassKey: { type: string } defaultClassLabel: { type: string } defaultCitation: { type: string } groups: type: array items: $ref: "#/components/schemas/ClassificationGroup" required: - title - description - defaultClassKey - defaultClassLabel - defaultCitation - groups route: type: object properties: title: { type: string } description: { type: string } forkQuestion: { $ref: "#/components/schemas/FlowQuestion" } required: - title - description - forkQuestion required: - regulationKey - regulationName - scoping - classification - route AnswerValue: type: object properties: bool: { type: boolean } text: { type: string } options: type: array items: { type: string } ConformityAnswer: type: object properties: questionKey: { type: string } value: { $ref: "#/components/schemas/AnswerValue" } note: { type: string } required: - questionKey - value - note ScopeInfo: type: object properties: result: { type: string } reasons: type: array items: { type: string } answered: { type: boolean } required: - result - reasons - answered ClassificationMatch: type: object properties: value: { type: string } label: { type: string } classKey: { type: string } citation: { type: string } required: - value - label - classKey - citation ClassificationInfo: type: object properties: classKey: { type: string } classLabel: { type: string } citation: { type: string } matched: type: array items: $ref: "#/components/schemas/ClassificationMatch" required: - classKey - classLabel - citation - matched AllowedRoute: type: object properties: key: { type: string } name: { type: string } description: { type: string } thirdPartyRequired: { type: boolean } required: - key - name - description - thirdPartyRequired AssessmentCounts: type: object properties: evaluationsTotal: { type: integer } evaluationsMet: { type: integer } evaluationsNotMet: { type: integer } evidenceCount: { type: integer } openIncidents: { type: integer } notificationGaps: type: integer description: Art 13(6) upstream-notification gaps — vulnerability findings without a resolved notification (same derivation as the BOM tab). required: - evaluationsTotal - evaluationsMet - evaluationsNotMet - evidenceCount - openIncidents - notificationGaps ConformityAssessmentDetail: type: object properties: assessment: { $ref: "#/components/schemas/ConformityAssessment" } product: { $ref: "#/components/schemas/ConformityProduct" } answers: type: array items: $ref: "#/components/schemas/ConformityAnswer" scope: { $ref: "#/components/schemas/ScopeInfo" } classification: { $ref: "#/components/schemas/ClassificationInfo" } allowedRoutes: type: array items: $ref: "#/components/schemas/AllowedRoute" recommendedRouteKey: { type: ["string", "null"] } className: { type: ["string", "null"] } routeName: { type: ["string", "null"] } # Art 32(2) route-validity advisory (Class I + Module A without a # fully-applied standard on record). Null when the route is backed. standardsAdvisory: { type: ["string", "null"] } counts: { $ref: "#/components/schemas/AssessmentCounts" } required: - assessment - product - answers - scope - classification - allowedRoutes - recommendedRouteKey - className - routeName - standardsAdvisory - counts CreateAssessmentInput: type: object properties: productId: { type: integer } regulationKey: { type: string } required: - productId SaveAnswersItem: type: object properties: questionKey: { type: string } value: { $ref: "#/components/schemas/AnswerValue" } note: { type: string } required: - questionKey - value SaveAnswersInput: type: object properties: answers: type: array items: $ref: "#/components/schemas/SaveAnswersItem" required: - answers SelectRouteInput: type: object properties: routeKey: { type: string } required: - routeKey EvaluationMappingRef: type: object properties: regulationKey: { type: string } refCode: { type: string } relationship: { type: string } required: - regulationKey - refCode - relationship ConformityEvaluation: type: object properties: id: { type: integer } assessmentId: { type: integer } regulationKey: { type: string } requirementRefCode: { type: string } status: { type: string } implementationNote: { type: string } riskRating: { type: ["string", "null"] } owner: { type: string } dueDate: { type: ["string", "null"] } title: { type: string } description: { type: string } themeKey: { type: ["string", "null"] } themeName: { type: ["string", "null"] } obligationType: { type: string } relatedMappings: type: array items: $ref: "#/components/schemas/EvaluationMappingRef" evidenceCount: { type: integer } required: - id - assessmentId - regulationKey - requirementRefCode - status - implementationNote - riskRating - owner - dueDate - title - description - themeKey - themeName - obligationType - relatedMappings - evidenceCount UpdateEvaluationInput: type: object properties: status: { type: string } implementationNote: { type: string } riskRating: { type: ["string", "null"] } owner: { type: string } dueDate: { type: ["string", "null"] } ConformityActivityEntry: type: object properties: id: { type: integer } entityType: { type: string } entityId: { type: ["integer", "null"] } action: { type: string } actor: { type: string } actorDisplay: { type: string } source: { type: string } hash: { type: string } summary: { type: string } createdAt: { type: string } required: - id - entityType - entityId - action - actor - source - hash - summary - createdAt WorkspaceActivityPage: type: object properties: entries: type: array items: $ref: "#/components/schemas/ConformityActivityEntry" total: type: integer description: Total workspace-level entries in the ledger. required: - entries - total ConformityEvidence: type: object properties: id: { type: integer } assessmentId: { type: integer } requirementRefCode: { type: ["string", "null"] } title: { type: string } evidenceType: { type: string } url: { type: string } objectPath: { type: string } fileName: { type: string } fileHash: { type: string } note: { type: string } createdAt: { type: string } required: - id - assessmentId - requirementRefCode - title - evidenceType - url - objectPath - fileName - fileHash - note - createdAt AddEvidenceInput: type: object properties: requirementRefCode: { type: ["string", "null"] } title: { type: string, minLength: 1 } evidenceType: { type: string } url: { type: string } objectPath: { type: string } fileName: { type: string } note: { type: string } required: - title ArtifactSection: type: object properties: key: { type: string } label: { type: string } body: { type: string } complete: { type: boolean } required: - key - label - body - complete GeneratableArtifactType: type: string description: >- The canonical set of artifact types the conformity engine can generate. This is the single shared source of truth for both the run-side auto-link path and the flow builder's artifact-type picker: the server (conformityEngine.ts ARTIFACT_TYPES) and the client both derive from this enum, so the builder can never offer a type the server won't generate. enum: - eu_doc - technical_documentation - risk_assessment - cvd_policy - sbom_reference - support_statement - user_information ConformityArtifact: type: object properties: id: { type: integer } assessmentId: { type: integer } artifactType: $ref: "#/components/schemas/GeneratableArtifactType" label: { type: string } status: { type: string } sections: type: array items: $ref: "#/components/schemas/ArtifactSection" completeness: { type: integer } version: { type: integer } generatedAt: { type: string } required: - id - assessmentId - artifactType - label - status - sections - completeness - version - generatedAt ThemeScore: type: object properties: themeKey: { type: string } themeName: { type: string } score: { type: integer } met: { type: integer } total: { type: integer } required: - themeKey - themeName - score - met - total ArtifactScoreItem: type: object properties: artifactType: { type: string } completeness: { type: integer } required: - artifactType - completeness ConformityGrade: type: object properties: id: { type: integer } assessmentId: { type: integer } overallScore: { type: integer } overallGrade: { type: string } blockerCount: { type: integer } perTheme: type: array items: $ref: "#/components/schemas/ThemeScore" perArtifact: type: array items: $ref: "#/components/schemas/ArtifactScoreItem" computedAt: { type: string } required: - id - assessmentId - overallScore - overallGrade - blockerCount - perTheme - perArtifact - computedAt ConformityAlertStageHistory: type: object description: Delivered alert emails for one breached incident stage. properties: incidentId: { type: integer } stage: type: string enum: [early_warning, notification, final_report] breachAlertedAt: type: ["string", "null"] description: When the initial "deadline breached" email was delivered (null if only reminders exist). reminderCount: type: integer description: Highest reminder number delivered so far. lastAlertAt: type: string description: Delivery time of the most recent alert email for this stage. remindersExhausted: type: boolean description: True when reminderCount has reached the configured cap — no further nudges will be sent. required: - incidentId - stage - breachAlertedAt - reminderCount - lastAlertAt - remindersExhausted ConformityIncidentAlertHistory: type: object properties: alertsEnabled: { type: boolean } reminderIntervalHours: { type: integer } maxReminders: { type: integer } stages: type: array items: $ref: "#/components/schemas/ConformityAlertStageHistory" required: - alertsEnabled - reminderIntervalHours - maxReminders - stages ConformityIncident: type: object properties: id: { type: integer } assessmentId: { type: integer } title: { type: string } description: { type: string } kind: type: string enum: [exploited_vulnerability, severe_incident] description: CRA Art 14 reporting track. severity: { type: string } owner: { type: string } detectedAt: { type: string } earlyWarningDueAt: { type: string } earlyWarningDoneAt: { type: ["string", "null"] } notificationDueAt: { type: string } notificationDoneAt: { type: ["string", "null"] } finalReportDueAt: { type: string } finalReportDoneAt: { type: ["string", "null"] } correctiveAvailableAt: type: ["string", "null"] description: When a corrective/mitigating measure became available (vulnerability final-report anchor). memberStates: { type: string } suspectedMalicious: { type: boolean } exploitNature: { type: string } sourceVulnerabilityId: type: string description: Vulnerability identifier (e.g. CVE) the incident originated from; "" when reported manually. sourceComponent: type: string description: Affected component ("name@version") the incident originated from; "" when reported manually. correctiveMeasures: { type: string } userMitigations: { type: string } threatActorInfo: { type: string } sensitive: { type: boolean } status: { type: string } createdAt: { type: string } updatedAt: { type: string } required: - id - assessmentId - title - description - kind - severity - detectedAt - earlyWarningDueAt - earlyWarningDoneAt - notificationDueAt - notificationDoneAt - finalReportDueAt - finalReportDoneAt - correctiveAvailableAt - memberStates - suspectedMalicious - exploitNature - sourceVulnerabilityId - sourceComponent - correctiveMeasures - userMitigations - threatActorInfo - sensitive - status - createdAt - updatedAt CreateIncidentInput: type: object properties: title: { type: string, minLength: 1 } description: { type: string } kind: type: string enum: [exploited_vulnerability, severe_incident] severity: { type: string } owner: { type: string } detectedAt: { type: string } correctiveAvailableAt: { type: ["string", "null"] } memberStates: { type: string } suspectedMalicious: { type: boolean } exploitNature: { type: string } sourceVulnerabilityId: { type: string } sourceComponent: { type: string } correctiveMeasures: { type: string } userMitigations: { type: string } threatActorInfo: { type: string } sensitive: { type: boolean } required: - title - kind - detectedAt UpdateIncidentInput: type: object properties: description: { type: string } kind: type: string enum: [exploited_vulnerability, severe_incident] severity: { type: string } owner: { type: string } status: { type: string } earlyWarningDoneAt: { type: ["string", "null"] } notificationDoneAt: { type: ["string", "null"] } finalReportDoneAt: { type: ["string", "null"] } correctiveAvailableAt: { type: ["string", "null"] } memberStates: { type: string } suspectedMalicious: { type: boolean } exploitNature: { type: string } correctiveMeasures: { type: string } userMitigations: { type: string } threatActorInfo: { type: string } sensitive: { type: boolean } IncidentReportField: type: object properties: label: { type: string } value: { type: string } missing: { type: boolean } citation: type: string description: Statutory basis for the field (e.g. "Art 14(2)(b) CRA"); "" for workbench-only context fields. required: - label - value - missing - citation IncidentReportSection: type: object properties: stage: type: string enum: [early_warning, notification, final_report] label: { type: string } articleRef: type: string description: The CRA provision this stage submission fulfils (e.g. "Art 14(2)(a) CRA"). dueAt: { type: string } doneAt: { type: ["string", "null"] } fields: type: array items: $ref: "#/components/schemas/IncidentReportField" required: - stage - label - articleRef - dueAt - doneAt - fields IncidentReportPackage: type: object properties: incidentId: { type: integer } assessmentId: { type: integer } title: { type: string } productName: { type: string } kind: { type: string } kindLabel: { type: string } deadlineNote: { type: string } generatedAt: { type: string } sections: type: array items: $ref: "#/components/schemas/IncidentReportSection" required: - incidentId - assessmentId - title - productName - kind - kindLabel - deadlineNote - generatedAt - sections BomChecklistItem: type: object properties: key: { type: string } label: { type: string } done: { type: boolean } note: { type: string } required: - key - label - done BomCatalogChecklistItem: type: object properties: key: { type: string } label: { type: string } required: - key - label BomCatalogEntry: type: object properties: label: { type: string } description: { type: string } checklist: type: array items: $ref: "#/components/schemas/BomCatalogChecklistItem" required: - label - description - checklist BomCatalog: type: object additionalProperties: $ref: "#/components/schemas/BomCatalogEntry" BomSummary: type: object properties: id: { type: integer } assessmentId: { type: integer } bomType: { type: string } format: { type: string } name: { type: string } fileName: { type: string } componentCount: { type: integer } findingCount: { type: integer } status: { type: string } checklist: type: array items: $ref: "#/components/schemas/BomChecklistItem" createdAt: { type: string } updatedAt: { type: string } required: - id - assessmentId - bomType - format - name - fileName - componentCount - findingCount - status - checklist - createdAt - updatedAt BomComponent: type: object properties: id: { type: integer } bomId: { type: integer } name: { type: string } version: { type: string } componentType: { type: string } purl: { type: string } supplier: { type: string } bomRef: { type: string } group: { type: string } cpe: { type: string } scope: { type: string } description: { type: string } manufacturer: { type: string } partNumber: { type: string } serialNumber: { type: string } firmwareVersion: { type: string } licenses: type: array items: { type: string } hashes: type: object additionalProperties: { type: string } cryptoProperties: type: ["object", "null"] additionalProperties: true findingCount: { type: integer } required: - id - bomId - name - version - componentType - purl - supplier - bomRef - group - cpe - scope - description - manufacturer - partNumber - serialNumber - firmwareVersion - licenses - hashes - cryptoProperties - findingCount BomDependency: type: object description: One dependency-graph edge in the document's own reference space (bom-ref / SPDXID). properties: ref: { type: string } dependsOnRef: { type: string } required: - ref - dependsOnRef BomEngineeringItem: type: object properties: id: { type: integer } itemRef: { type: string } tagName: { type: string } itemClass: { type: string } componentClass: { type: string } componentName: { type: string } specification: { type: string } parentRef: { type: string } required: - id - itemRef - tagName - itemClass - componentClass - componentName - specification - parentRef BomEngineeringAttribute: type: object properties: id: { type: integer } itemId: { type: integer } name: { type: string } value: { type: string } format: { type: string } units: { type: string } attributeSet: { type: string } required: - id - itemId - name - value - format - units - attributeSet BomEngineeringConnection: type: object properties: id: { type: integer } fromRef: { type: string } toRef: { type: string } connectionType: { type: string } required: - id - fromRef - toRef - connectionType BomEngineering: type: object properties: bom: $ref: "#/components/schemas/BomSummary" items: type: array items: $ref: "#/components/schemas/BomEngineeringItem" attributes: type: array items: $ref: "#/components/schemas/BomEngineeringAttribute" connections: type: array items: $ref: "#/components/schemas/BomEngineeringConnection" required: - bom - items - attributes - connections BomFinding: type: object properties: id: { type: integer } bomId: { type: integer } componentId: { type: ["integer", "null"] } findingType: { type: string } identifier: { type: string } severity: { type: string } title: { type: string } description: { type: string } source: { type: string } detail: type: object additionalProperties: true createdAt: { type: string } required: - id - bomId - componentId - findingType - identifier - severity - title - description - source - detail - createdAt BomDetail: type: object properties: bom: $ref: "#/components/schemas/BomSummary" components: type: array items: $ref: "#/components/schemas/BomComponent" findings: type: array items: $ref: "#/components/schemas/BomFinding" dependencies: type: array items: $ref: "#/components/schemas/BomDependency" required: - bom - components - findings - dependencies IngestBomInput: type: object description: >- Provide the BOM document either inline via `content` (for small paste/upload cases) OR by reference via `objectPath` (a file uploaded to object storage; the server downloads and parses it). Exactly one of the two must be supplied. properties: bomType: { type: string } format: { type: string } name: { type: string, minLength: 1 } content: { type: string } objectPath: { type: string } fileName: { type: string } required: - bomType - format - name UpdateBomChecklistInput: type: object properties: checklist: type: array items: $ref: "#/components/schemas/BomChecklistItem" required: - checklist BomNotification: type: object description: >- A tracked CRA Art 13(6) upstream notification: whether the maintainer of a third-party component was told about a vulnerability found in it. `componentKey` is the stable identity (purl, else name@version) the record is keyed by. properties: id: { type: integer } assessmentId: { type: integer } componentKey: { type: string } componentName: { type: string } componentVersion: { type: string } purl: { type: string } vulnerabilityId: { type: string } status: type: string enum: [not_required, pending, notified, acknowledged] maintainerContact: { type: string } method: { type: string } notifiedAt: { type: string, nullable: true } dueAt: { type: string, nullable: true } acknowledgedAt: { type: string, nullable: true } notes: { type: string } recordedBy: { type: string } createdAt: { type: string } updatedAt: { type: string } required: - id - assessmentId - componentKey - componentName - componentVersion - purl - vulnerabilityId - status - maintainerContact - method - notifiedAt - dueAt - acknowledgedAt - notes - recordedBy - createdAt - updatedAt BomNotificationGap: type: object description: >- A vulnerability finding whose Art 13(6) upstream-notification duty is unresolved — either untracked (`trackedStatus` empty) or tracked but still `pending`. Carries everything needed to open the tracking dialog directly. properties: findingId: { type: integer } trackedStatus: type: string description: Empty when untracked; `pending` when tracked but not yet notified. bomId: { type: integer } bomName: { type: string } componentKey: { type: string } componentName: { type: string } componentVersion: { type: string } purl: { type: string } vulnerabilityId: { type: string } severity: { type: string } required: - findingId - trackedStatus - bomId - bomName - componentKey - componentName - componentVersion - purl - vulnerabilityId - severity BomNotificationInput: type: object description: >- Identify the component by name/version and (preferably) purl; the server derives the canonical componentKey. Upserts on (assessment, componentKey, vulnerabilityId). properties: componentName: { type: string } componentVersion: { type: string } purl: { type: string } vulnerabilityId: { type: string, minLength: 1 } status: type: string enum: [not_required, pending, notified, acknowledged] maintainerContact: { type: string } method: { type: string } notifiedAt: { type: string, nullable: true } dueAt: { type: string, nullable: true } notes: { type: string } required: - vulnerabilityId UpdateBomNotificationInput: type: object properties: status: type: string enum: [not_required, pending, notified, acknowledged] maintainerContact: { type: string } method: { type: string } notifiedAt: { type: string, nullable: true } acknowledgedAt: { type: string, nullable: true } dueAt: { type: string, nullable: true } notes: { type: string } IncidentSubmission: type: object description: >- Append-only proof of an actual Article 14 submission to the CSIRT/ENISA single reporting platform. Corrections are NEW rows via `supersedes`. properties: id: { type: integer } incidentId: { type: integer } stage: type: string enum: [early_warning, notification, final_report] submittedAt: { type: string } channel: { type: string } reference: { type: string } contentHash: { type: string } notes: { type: string } recordedBy: { type: string } supersedes: { type: ["integer", "null"] } createdAt: { type: string } required: - id - incidentId - stage - submittedAt - channel - reference - contentHash - notes - recordedBy - supersedes - createdAt CreateIncidentSubmissionInput: type: object properties: stage: type: string enum: [early_warning, notification, final_report] submittedAt: { type: string } channel: { type: string } reference: { type: string } contentHash: { type: string } notes: { type: string } supersedes: { type: integer } required: - stage - submittedAt FlowStepRequirementRef: type: object description: Natural key into the requirements catalogue (regulation-agnostic). properties: regulationKey: { type: string, minLength: 1 } refCode: { type: string, minLength: 1 } required: - regulationKey - refCode FlowStep: type: object properties: id: { type: string } type: { type: string } title: { type: string } description: { type: string } requirementRefs: type: array items: $ref: "#/components/schemas/FlowStepRequirementRef" config: type: object additionalProperties: true required: - id - type - title FlowAppliesTo: type: object properties: regulationKeys: type: array items: { type: string } classKeys: type: array items: { type: string } bomTypes: type: array items: { type: string } ConformityFlowSummary: type: object properties: id: { type: integer } key: { type: string } name: { type: string } description: { type: string } appliesTo: $ref: "#/components/schemas/FlowAppliesTo" steps: type: array items: $ref: "#/components/schemas/FlowStep" isTemplate: { type: boolean } sortOrder: { type: integer } createdAt: { type: string } updatedAt: { type: string } required: - id - key - name - description - appliesTo - steps - isTemplate - sortOrder - createdAt - updatedAt FlowRunStepState: type: object properties: status: type: string enum: [pending, in_progress, done, skipped] answer: { type: string } note: { type: string } artifactId: { type: integer } bomId: { type: integer } completedAt: { type: string } required: - status ConformityFlowRunSummary: type: object properties: id: { type: integer } # Null once the originating flow definition has been deleted; the run # still renders from its own frozen flowName + steps snapshot. flowId: { type: ["integer", "null"] } assessmentId: { type: integer } flowName: { type: string } status: { type: string } assignee: { type: string } stepStates: type: object additionalProperties: $ref: "#/components/schemas/FlowRunStepState" # True when the originating flow still exists and its current steps # differ from this run's frozen snapshot. Deleted flow => false. flowUpdated: { type: boolean } createdAt: { type: string } updatedAt: { type: string } required: - id - flowId - assessmentId - flowName - status - assignee - stepStates - flowUpdated - createdAt - updatedAt ConformityFlowRunDetail: type: object properties: run: $ref: "#/components/schemas/ConformityFlowRunSummary" steps: type: array items: $ref: "#/components/schemas/FlowStep" flowUpdated: type: boolean description: >- True when the originating flow still exists and its current step definitions differ from this run's frozen snapshot. Always false when the flow was deleted. required: - run - steps - flowUpdated CreateFlowInput: type: object properties: key: { type: string, minLength: 1 } name: { type: string, minLength: 1 } description: { type: string } appliesTo: $ref: "#/components/schemas/FlowAppliesTo" steps: type: array items: $ref: "#/components/schemas/FlowStep" required: - key - name - steps UpdateFlowInput: type: object properties: name: { type: string, minLength: 1 } description: { type: string } appliesTo: $ref: "#/components/schemas/FlowAppliesTo" steps: type: array items: $ref: "#/components/schemas/FlowStep" StartFlowRunInput: type: object properties: flowId: { type: integer } required: - flowId UpdateFlowRunStepInput: type: object properties: status: type: string enum: [pending, in_progress, done, skipped] answer: { type: string } note: { type: string } artifactId: { type: integer } bomId: { type: integer } required: - status ConformityReportSection: type: object properties: key: { type: string } heading: { type: string } kind: type: string enum: [deterministic, ai] status: type: string enum: [ready, pending, failed] html: { type: string } contentMd: { type: string } note: { type: string } editedBy: { type: string } editedAt: { type: ["string", "null"] } required: - key - heading - kind - status - html - contentMd - note - editedBy - editedAt ConformityReportCitation: type: object properties: n: { type: integer } key: { type: string } label: { type: string } kind: type: string enum: [regulation, standard, bibliography, evidence] required: - n - key - label - kind ConformityReportOptions: type: object properties: includeAnnexes: { type: boolean } includeEvidenceRegister: { type: boolean } includeIncidentDetail: { type: boolean } required: - includeAnnexes - includeEvidenceRegister - includeIncidentDetail ConformityReportSummary: type: object properties: id: { type: integer } scope: type: string enum: [assessment, portfolio] assessmentId: { type: ["integer", "null"] } productName: { type: ["string", "null"] } title: { type: string } reportType: type: string enum: [briefing, full, readout] audience: type: string enum: [board, regulator] status: type: string enum: [generating, draft, final, failed] sectionsTotal: { type: integer } sectionsReady: { type: integer } sectionsPending: { type: integer } sectionsFailed: { type: integer } createdBy: { type: string } createdAt: { type: string } updatedAt: { type: string } required: - id - scope - assessmentId - productName - title - reportType - audience - status - sectionsTotal - sectionsReady - sectionsPending - sectionsFailed - createdBy - createdAt - updatedAt ConformityReport: type: object properties: id: { type: integer } scope: type: string enum: [assessment, portfolio] assessmentId: { type: ["integer", "null"] } productName: { type: ["string", "null"] } title: { type: string } reportType: type: string enum: [briefing, full, readout] audience: type: string enum: [board, regulator] status: type: string enum: [generating, draft, final, failed] sectionsTotal: { type: integer } sectionsReady: { type: integer } sectionsPending: { type: integer } sectionsFailed: { type: integer } createdBy: { type: string } createdAt: { type: string } updatedAt: { type: string } options: $ref: "#/components/schemas/ConformityReportOptions" citations: type: array items: $ref: "#/components/schemas/ConformityReportCitation" sections: type: array items: $ref: "#/components/schemas/ConformityReportSection" required: - id - scope - assessmentId - productName - title - reportType - audience - status - sectionsTotal - sectionsReady - sectionsPending - sectionsFailed - createdBy - createdAt - updatedAt - options - citations - sections CreateConformityReportInput: type: object properties: scope: type: string enum: [assessment, portfolio] assessmentId: { type: integer } reportType: type: string enum: [briefing, full, readout] audience: type: string enum: [board, regulator] title: type: string maxLength: 200 options: type: object properties: includeAnnexes: { type: boolean } includeEvidenceRegister: { type: boolean } includeIncidentDetail: { type: boolean } required: - scope - reportType - audience UpdateConformityReportSectionInput: type: object properties: contentMd: type: string minLength: 1 maxLength: 40000 required: - contentMd AnnexReadinessItem: type: object properties: key: { type: string } label: { type: string } complete: { type: boolean } hint: { type: string, description: "What to do to complete the field; empty when complete." } required: [key, label, complete, hint] AnnexReadinessDoc: type: object properties: title: { type: string } annexRef: { type: string } items: type: array items: $ref: "#/components/schemas/AnnexReadinessItem" completeCount: { type: integer } totalCount: { type: integer } required: [title, annexRef, items, completeCount, totalCount] AnnexReadiness: type: object properties: euDoc: $ref: "#/components/schemas/AnnexReadinessDoc" technicalDocumentation: $ref: "#/components/schemas/AnnexReadinessDoc" required: [euDoc, technicalDocumentation] ConformityPsirtProfile: type: object properties: productId: { type: integer } contactEmail: { type: string } contactUrl: { type: string } policyText: { type: string } policyUrl: { type: string } disclosureDays: { type: integer } updatedBy: { type: string } updatedAt: { type: ["string", "null"] } required: - productId - contactEmail - contactUrl - policyText - policyUrl - disclosureDays - updatedBy - updatedAt UpdatePsirtProfileInput: type: object properties: contactEmail: { type: string } contactUrl: { type: string } policyText: { type: string } policyUrl: { type: string } disclosureDays: { type: integer, minimum: 0, maximum: 3650 } required: - contactEmail - contactUrl - policyText - policyUrl - disclosureDays PublicSecurityPolicy: type: object properties: productName: { type: string } contactEmail: { type: string } contactUrl: { type: string } policyText: { type: string } policyUrl: { type: string } required: - productName - contactEmail - contactUrl - policyText - policyUrl SubmitVulnReportInput: type: object properties: productName: { type: string, minLength: 1, maxLength: 200 } title: { type: string, minLength: 1, maxLength: 300 } description: { type: string, minLength: 1, maxLength: 20000 } affectedVersions: { type: string, maxLength: 500 } claimedSeverity: { type: string, enum: ["", "low", "medium", "high", "critical"] } reporterName: { type: string, maxLength: 200 } reporterEmail: { type: string, maxLength: 320 } website: { type: string, description: "Honeypot — must be empty." } required: - productName - title - description ConformityVulnReport: type: object properties: id: { type: integer } productName: { type: string } productId: { type: ["integer", "null"] } reporterName: { type: string } reporterEmail: { type: string } title: { type: string } description: { type: string } affectedVersions: { type: string } claimedSeverity: { type: string } assessedSeverity: { type: string } status: { type: string } owner: { type: string } vulnerabilityId: { type: string } resolutionNotes: { type: string } disclosureDueAt: { type: ["string", "null"] } createdAt: { type: string } updatedAt: { type: string } required: - id - productName - productId - reporterName - reporterEmail - title - description - affectedVersions - claimedSeverity - assessedSeverity - status - owner - vulnerabilityId - resolutionNotes - disclosureDueAt - createdAt - updatedAt UpdateVulnReportInput: type: object properties: status: type: string enum: [triaged, confirmed, rejected, fix_in_progress, fix_available, disclosed] productId: { type: ["integer", "null"] } assessedSeverity: { type: string, enum: ["", "low", "medium", "high", "critical"] } owner: { type: string, maxLength: 200 } vulnerabilityId: { type: string, maxLength: 100 } resolutionNotes: { type: string, maxLength: 20000 } note: { type: string, maxLength: 2000, description: "Ledger note for this change." } VulnReportEvent: type: object properties: id: { type: integer } reportId: { type: integer } fromStatus: { type: string } toStatus: { type: string } actor: { type: string } note: { type: string } createdAt: { type: string } required: - id - reportId - fromStatus - toStatus - actor - note - createdAt PublicSecurityAdvisory: type: object description: >- Disclosure-only advisory view for the public security page. Never includes internal audit identities (createdBy) or internal linkage ids (vulnReportId/incidentId/productId). properties: id: { type: integer } advisoryCode: { type: string } productName: { type: string } title: { type: string } summary: { type: string } severity: { type: string } vulnerabilityId: { type: string } affectedVersions: { type: string } fixedVersions: { type: string } workarounds: { type: string } credits: { type: string } publishedAt: { type: string, nullable: true } required: [id, advisoryCode, productName, title, summary, severity, vulnerabilityId, affectedVersions, fixedVersions, workarounds, credits, publishedAt] ConformityAdvisory: type: object properties: id: { type: integer } advisoryCode: { type: string } productId: { type: ["integer", "null"] } productName: { type: string } vulnReportId: { type: ["integer", "null"] } incidentId: { type: ["integer", "null"] } title: { type: string } summary: { type: string } severity: { type: string } vulnerabilityId: { type: string } affectedVersions: { type: string } fixedVersions: { type: string } workarounds: { type: string } credits: { type: string } status: { type: string } publishedAt: { type: ["string", "null"] } createdBy: { type: string } createdAt: { type: string } updatedAt: { type: string } required: - id - advisoryCode - productId - productName - vulnReportId - incidentId - title - summary - severity - vulnerabilityId - affectedVersions - fixedVersions - workarounds - credits - status - publishedAt - createdBy - createdAt - updatedAt CreateAdvisoryInput: type: object properties: productId: { type: ["integer", "null"] } vulnReportId: { type: ["integer", "null"] } incidentId: { type: ["integer", "null"] } title: { type: string, minLength: 1, maxLength: 300 } summary: { type: string, maxLength: 20000 } severity: { type: string, enum: [low, medium, high, critical] } vulnerabilityId: { type: string, maxLength: 100 } affectedVersions: { type: string, maxLength: 500 } fixedVersions: { type: string, maxLength: 500 } workarounds: { type: string, maxLength: 20000 } credits: { type: string, maxLength: 500 } required: - title - severity UpdateAdvisoryInput: type: object properties: productId: { type: ["integer", "null"] } vulnReportId: { type: ["integer", "null"] } incidentId: { type: ["integer", "null"] } title: { type: string, minLength: 1, maxLength: 300 } summary: { type: string, maxLength: 20000 } severity: { type: string, enum: [low, medium, high, critical] } vulnerabilityId: { type: string, maxLength: 100 } affectedVersions: { type: string, maxLength: 500 } fixedVersions: { type: string, maxLength: 500 } workarounds: { type: string, maxLength: 20000 } credits: { type: string, maxLength: 500 } ConformityReportExport: type: object properties: title: { type: string } html: { type: string } required: - title - html