{"openapi":"3.1.0","info":{"title":"MTM Graph API","description":"Graph-native API providing hierarchy management, RBAC, defense metrics, risk computation, and visualization.\n\n**Authentication:** Log in via Phoenix API or the frontend (http://localhost:3000 in dev) — the httpOnly cookie is shared automatically. All Swagger 'Try it out' requests include the cookie.","version":"1.0.0"},"paths":{"/health":{"get":{"tags":["Health"],"summary":"Health Check","description":"Health check endpoint — used as the K8s readiness probe.\n\nReturns 503 until the startup ETL has completed, so traffic doesn't\nroute to a pod whose Neo4j is empty / partially loaded. After ETL\ncompletes, returns service status and connection health.","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthCheckResponse"}}}}}}},"/clients":{"post":{"tags":["Clients"],"summary":"Create Client","description":"Create a new client.\n\nAuto-creates a default control set unless control_set_uid is provided.\nOptionally links to parent client via DESCENDANT_OF edge.\nAssigns the platform default subscription tier (`:DEFAULT_TIER` pointer).\nRematerializes RBAC so the new client is immediately accessible.\n\nRequires `client:create` — gated at the route level via\n`require_permission`. Resolves IntrusionOps 2026 web pen test §6.2:\nthe endpoint previously had only `CurrentUser` and a missing\n`:DEFAULT_TIER` produced a 500 for orphan users instead of the\ncorrect 403.","operationId":"create_client_clients_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Clients"],"summary":"List Clients","description":"List active clients.\n\nDefault (``scope=accessible``) applies row-level security: only\nreturns clients the caller has explicit RBAC grants for.  System-\nlevel access is intentionally ignored so the company switcher shows\nonly explicitly assigned clients.\n\n``scope=all`` returns every active client and requires the caller to\nhold ``client:admin:system`` or ``*:admin:system``.  Used by platform\nadmin surfaces (``/admin/companies``, the impersonation modal,\nlicense-tier company assignment, etc.).  Returns HTTP 403 otherwise.","operationId":"list_clients_clients_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"scope","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ClientListScope","default":"accessible"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_ClientResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/tree":{"get":{"tags":["Clients"],"summary":"Get Client Tree","description":"Return a hierarchical tree of all accessible clients.\n\nFetches the same flat list as ``GET /clients`` (with parent_uid),\nthen assembles it into a nested tree server-side so every consumer\n(client switcher, org chart, exports) gets pre-nested JSON.\n\nClients whose parent is outside the user's access scope are promoted\nto root level.","operationId":"get_client_tree_clients_tree_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ClientTreeNode"},"type":"array","title":"Response Get Client Tree Clients Tree Get"}}}}}}},"/clients/{client_uid}":{"get":{"tags":["Clients"],"summary":"Get Client","description":"Get a single client with all metadata.\n\nAuthorization: User must have client:read permission.","operationId":"get_client_clients__client_uid__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientResponse"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]},"delete":{"tags":["Clients"],"summary":"Delete Client","description":"Soft delete a client (sets status to 'deleted').\n\nAuthorization: User must have client:write permission.","operationId":"delete_client_clients__client_uid__delete","responses":{"204":{"description":"Successful Response"}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]},"patch":{"tags":["Clients"],"summary":"Update Client","description":"Update client metadata (name, NAICS codes, etc.).\n\nAuthorization: User must have client:write permission.","operationId":"update_client_clients__client_uid__patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]}},"/clients/{client_uid}/restore":{"post":{"tags":["Clients"],"summary":"Restore Client","description":"Restore a soft-deleted client (flips status 'deleted' → 'active'\ntamper-evidently — the restore is a hashed version on the change-log chain).\n\nAuthorization: User must have client:write permission (same as delete).","operationId":"restore_client_clients__client_uid__restore_post","responses":{"204":{"description":"Successful Response"}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]}},"/clients/{client_uid}/predictions-bounded":{"patch":{"tags":["Clients"],"summary":"Set Predictions Bounded","description":"Toggle ``predictions_bounded`` for a client (platform-only).\n\nGated on system-scope ``client:admin`` — only ``platform_admin``\n(via ``*:admin:system``) and ``platform_impersonator`` (via\n``client:admin:system``) pass. Per-client ``admin`` / ``editor`` /\n``viewer`` users are rejected with 403 because their grants are\nscoped to a specific ``client_uid``, not ``system``.\n\nBehavior:\n- When the incoming value differs from the current ClientNode value,\n  a new ClientNode version is written (anchor + version pattern) and\n  a prediction recalculation is enqueued via ``request_prediction``.\n- When the incoming value matches current state (no-op toggle), this\n  is a 200 with the unchanged client — no new version, no recalc.\n  Avoids burning ML compute on accidental double-clicks.\n\nToggling is forward-only: flipping back later triggers a fresh recalc\nbut does not reverse the prior recalc's effects. The ML worker may\nalso auto-clear ``predictions_bounded=true`` on convergence via\n``PredictionRepository.disable_predictions_bounded``.\n\nSee: ``mtm_graph/schemas/client.py::PredictionsBoundedUpdate`` for the\nrequest body schema, and ``mtm_graph/repositories/prediction.py::\nPredictionRepository.set_predictions_bounded`` for the persistence path.","operationId":"set_predictions_bounded_clients__client_uid__predictions_bounded_patch","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionsBoundedUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/taxonomy-scheme":{"patch":{"tags":["Clients"],"summary":"Set Taxonomy Scheme","description":"Atomically commit a prepared taxonomy-scheme flip.\n\nThe writer owns CAS fencing, ETL/global locks, forward preparation and\ncoverage checks, acknowledgment audit fields, and the single version\nappend. Parity and effective-value comparisons remain advisory preview\nsignals and are deliberately not commit gates.","operationId":"set_taxonomy_scheme_clients__client_uid__taxonomy_scheme_patch","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomySchemeUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/family":{"get":{"tags":["Clients"],"summary":"Get Client Family","description":"Get family tree for a client (root + all descendants).\n\nAuthorization: User must have client:read permission.","operationId":"get_client_family_clients__client_uid__family_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientFamilyResponse"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]}},"/clients/{client_uid}/scope-chain":{"get":{"tags":["Clients"],"summary":"Get Client Scope Chain","description":"The client and its ancestors along the legal hierarchy, nearest first.\n\nAuthorization: User must have client:read permission.","operationId":"get_client_scope_chain_clients__client_uid__scope_chain_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopeChainResponse"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]}},"/clients/{client_uid}/children":{"post":{"tags":["Clients"],"summary":"Create Child Client","description":"Create a child client linked to the parent via hierarchy.\n\nSets parent_uid to the path parameter client_uid.\nAssigns the platform default subscription tier (`:DEFAULT_TIER` pointer).\n\nAuthorization: User must have client:write permission.","operationId":"create_child_client_clients__client_uid__children_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]}},"/clients/{client_uid}/children/{child_uid}":{"put":{"tags":["Clients"],"summary":"Attach Child Client","description":"Attach an existing client as a child in the hierarchy.\n\nCreates a DESCENDANT_OF edge from child to parent. Idempotent —\nif the edge already exists, returns the child unchanged.\n\nAuthorization: User must have client:write permission on the parent.","operationId":"attach_child_client_clients__client_uid__children__child_uid__put","parameters":[{"name":"child_uid","in":"path","required":true,"schema":{"type":"string","title":"Child Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Clients"],"summary":"Remove Child Client","description":"Remove a child from the hierarchy (deletes DESCENDANT_OF edge).\n\nDoes NOT delete the child client itself.\n\nAuthorization: User must have client:write permission.","operationId":"remove_child_client_clients__client_uid__children__child_uid__delete","parameters":[{"name":"child_uid","in":"path","required":true,"schema":{"type":"string","title":"Child Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/audit":{"get":{"tags":["Clients"],"summary":"Get Ucf Audit","description":"Get current UCF audit answers for a client.\n\nAuthorization: User must have client:read permission.","operationId":"get_ucf_audit_clients__client_uid__audit_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UCFAuditResponse"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]}},"/clients/{client_uid}/audit/{audit_id}":{"post":{"tags":["Clients"],"summary":"Check Ucf Audit","description":"Add an audit ID to the UCF audit answers list (idempotent).\n\nAuthorization: User must have client:write permission.","operationId":"check_ucf_audit_clients__client_uid__audit__audit_id__post","parameters":[{"name":"audit_id","in":"path","required":true,"schema":{"type":"integer","title":"Audit Id"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UCFAuditResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Clients"],"summary":"Uncheck Ucf Audit","description":"Remove an audit ID from the UCF audit answers list (idempotent).\n\nAuthorization: User must have client:write permission.","operationId":"uncheck_ucf_audit_clients__client_uid__audit__audit_id__delete","parameters":[{"name":"audit_id","in":"path","required":true,"schema":{"type":"integer","title":"Audit Id"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UCFAuditResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/flip-preview":{"get":{"tags":["Clients"],"summary":"Get Flip Preview","description":"Compare current and target residual risk without persisting either result.","operationId":"get_flip_preview_clients__client_uid__flip_preview_get","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"target_scheme","in":"query","required":true,"schema":{"$ref":"#/components/schemas/TaxonomyScheme"}},{"name":"variant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlipPreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/v1-variant":{"patch":{"tags":["Clients"],"summary":"Set Client V1 Variant","description":"Set or clear a client's taxonomy-v1 variant override.\n\nFencing (§3.11 / Stage 2e.4a): ``v1_variant_uid`` is in\n``ClientRepository._MIGRATION_RELEVANT_FIELDS`` so the underlying\n``update()`` call routes through the atomic-migration-fenced path\n(CAS bump + anchor SET + version write in one managed tx). On CAS\nloss the WriteError.cause carries ``concurrent_migration_write:<uid>``\nwhich this handler translates to 409.","operationId":"set_client_v1_variant_clients__client_uid__v1_variant_patch","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientVariantUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/residual-risk-preview":{"post":{"tags":["Clients"],"summary":"Preview Residual Risk","description":"Compute full residual-risk output without writing prediction state.","operationId":"preview_residual_risk_clients__client_uid__residual_risk_preview_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResidualRiskPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResidualRiskResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/prepare-flip":{"post":{"tags":["Clients"],"summary":"Prepare Flip","operationId":"prepare_flip_clients__client_uid__prepare_flip_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareFlipRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Prepare Flip Clients  Client Uid  Prepare Flip Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reference/naics":{"get":{"tags":["Reference"],"summary":"Search Naics","description":"Search NAICS reference codes.\n\nMatches by code prefix (STARTS WITH) or description (case-insensitive CONTAINS).\nOptionally filter by sector code. Any authenticated user can access.","operationId":"search_naics_reference_naics_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"Search by code prefix or description","title":"Search"},"description":"Search by code prefix or description"},{"name":"sector","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by sector code","title":"Sector"},"description":"Filter by sector code"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Max results","default":50,"title":"Limit"},"description":"Max results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NaicsRef"},"title":"Response Search Naics Reference Naics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/defense/techniques":{"get":{"tags":["Defense"],"summary":"Get Techniques List","description":"Get paginated list of techniques with defense metrics.\n\nSupports filtering by ``tactic``, ``risk_category``, and\n``only_uncovered``. Sorting + pagination follow the standard\n``ListParams`` contract.\n\nAuthorization: User must be active in this client context or be a super\nadmin (enforced by ``require_client`` on ``ClientAccess``).","operationId":"get_techniques_list_clients__client_uid__defense_techniques_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}},{"name":"tactic","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tactic"}},{"name":"risk_category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Risk Category"}},{"name":"only_uncovered","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Only Uncovered"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_TechniqueDefense_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/defense/techniques/{technique_id}":{"get":{"tags":["Defense"],"summary":"Get Technique Detail","description":"Get defense metrics for a single technique.\n\nReturns detailed coverage analysis for a specific MITRE ATT&CK\ntechnique. Returns ``null`` when the technique is not present in the\nclient's computed defense response.\n\nArgs:\n    technique_id: MITRE technique ID (e.g. ``\"T1059\"``).\n\nAuthorization: User must be active in this client context or be a super\nadmin.","operationId":"get_technique_detail_clients__client_uid__defense_techniques__technique_id__get","parameters":[{"name":"technique_id","in":"path","required":true,"schema":{"type":"string","title":"Technique Id"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TechniqueDefense"},{"type":"null"}],"title":"Response Get Technique Detail Clients  Client Uid  Defense Techniques  Technique Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/defense/tactics":{"get":{"tags":["Defense"],"summary":"Get Tactics Summary","description":"Get defense metrics aggregated by MITRE tactic.\n\nReturns coverage + scoring rolled up to the tactic level, in canonical\nMITRE ATT&CK kill-chain order (Reconnaissance → Impact). Ordering is\nenforced inside ``DefenseAnalytics.compute``.\n\nAuthorization: User must be active in this client context or be a super\nadmin.","operationId":"get_tactics_summary_clients__client_uid__defense_tactics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TacticDefense"},"type":"array","title":"Response Get Tactics Summary Clients  Client Uid  Defense Tactics Get"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]}},"/clients/{client_uid}/control-sets/{control_set_uid}/dashboard/executive-summary":{"get":{"tags":["Analytics"],"summary":"Get Executive Summary","operationId":"get_executive_summary_clients__client_uid__control_sets__control_set_uid__dashboard_executive_summary_get","parameters":[{"name":"control_set_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Set Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecutiveSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{control_set_uid}/dashboard/program-optimization":{"get":{"tags":["Analytics"],"summary":"Get Program Optimization","operationId":"get_program_optimization_clients__client_uid__control_sets__control_set_uid__dashboard_program_optimization_get","parameters":[{"name":"control_set_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Set Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgramOptimizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{control_set_uid}/dashboard/compliance":{"get":{"tags":["Analytics"],"summary":"Get Compliance Dashboard","operationId":"get_compliance_dashboard_clients__client_uid__control_sets__control_set_uid__dashboard_compliance_get","parameters":[{"name":"control_set_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Set Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceDashboardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/dashboard/historical-trends":{"get":{"tags":["Analytics"],"summary":"Get Historical Trends","operationId":"get_historical_trends_clients__client_uid__dashboard_historical_trends_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoricalTrendsResponse"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]}},"/clients/{client_uid}/control-sets/{control_set_uid}/reports/analytics":{"get":{"tags":["Analytics"],"summary":"Get Reports Analytics","operationId":"get_reports_analytics_clients__client_uid__control_sets__control_set_uid__reports_analytics_get","parameters":[{"name":"control_set_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Set Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportsAnalyticsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{control_set_uid}/threat-intel":{"get":{"tags":["Analytics"],"summary":"Get Threat Intel","operationId":"get_threat_intel_clients__client_uid__control_sets__control_set_uid__threat_intel_get","parameters":[{"name":"control_set_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Set Uid"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ThreatIntelResponse"},{"type":"null"}],"title":"Response Get Threat Intel Clients  Client Uid  Control Sets  Control Set Uid  Threat Intel Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{control_set_uid}/threat-intel/cwes":{"get":{"tags":["Analytics"],"summary":"List Threat Intel Cwes","description":"CWE inventory for the /threat-intel autocomplete combobox.\n\nJoins the Neo4j CWE catalog (from ``ReferenceRepository.list_all_cwes``)\nwith live CVE counts from Neo4j (``ThreatIntelRepository.\ncount_cves_by_cwe``). The CWE catalog is global reference data — the\n``control_set_uid`` path param is present for URL parity with the sibling\n``/threat-intel`` route, not because the CWE list is control-set-specific.\n\nPermission model: ``ClientAccess`` already gates this to users with\naccess to ``client_uid``. No additional ``Cap.THREAT_INTEL_WIDGET`` check\n— the CWE catalog is metadata, not client-specific risk analytics.","operationId":"list_threat_intel_cwes_clients__client_uid__control_sets__control_set_uid__threat_intel_cwes_get","parameters":[{"name":"control_set_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Set Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ThreatIntelCweOption"},"title":"Response List Threat Intel Cwes Clients  Client Uid  Control Sets  Control Set Uid  Threat Intel Cwes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{cs1_uid}/compare/{cs2_uid}":{"get":{"tags":["Analytics"],"summary":"Get Comparison","operationId":"get_comparison_clients__client_uid__control_sets__cs1_uid__compare__cs2_uid__get","parameters":[{"name":"cs1_uid","in":"path","required":true,"schema":{"type":"string","title":"Cs1 Uid"}},{"name":"cs2_uid","in":"path","required":true,"schema":{"type":"string","title":"Cs2 Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ComparisonResponse"},{"type":"null"}],"title":"Response Get Comparison Clients  Client Uid  Control Sets  Cs1 Uid  Compare  Cs2 Uid  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{control_set_uid}/threat-intel/cve/{cve_id}":{"get":{"tags":["Analytics"],"summary":"Get Cve Cwe Pivot","description":"CVE→CWEs pivot for the /threat-intel CVE search combobox.\n\nReturns CWE IDs the CVE maps to. The UI then filters the threat-intel\nview to those CWE rows. Unknown CVE → 404.\n\nThe repository normalizes ``cve_id`` to upper-case, so lower-case\ninput (``cve-2024-1234``) resolves identically to canonical\n(``CVE-2024-1234``) — no pre-normalization needed at the route.\n\nPermission model: ``ClientAccess`` gates to users with access to\n``client_uid``. CVE data is global NVD reference data, not\nclient-specific — ``control_set_uid`` is URL parity only (sibling\nto ``/threat-intel`` and ``/threat-intel/cwes``).","operationId":"get_cve_cwe_pivot_clients__client_uid__control_sets__control_set_uid__threat_intel_cve__cve_id__get","parameters":[{"name":"control_set_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Set Uid"}},{"name":"cve_id","in":"path","required":true,"schema":{"type":"string","title":"Cve Id"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CveCwePivot"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/viz/hierarchy":{"get":{"tags":["Visualizations"],"summary":"Get Hierarchy Graph","description":"Get client hierarchy as React Flow graph.\n\nReturns a tree structure of the client and its subsidiaries\nfor the specified hierarchy type, ready for visualization with React Flow.\n\nWhen `all_roots=true`, returns combined hierarchies for all root companies\nthe user has access to. The `client_uid` still serves as auth context.\n\nHierarchy Types:\n- **legal**: Legal ownership structure (default).\n- **operational**: Day-to-day reporting structure. Used for control inheritance.\n- **reporting**: Financial/compliance reporting structure.","operationId":"get_hierarchy_graph_clients__client_uid__viz_hierarchy_get","parameters":[{"name":"include_controls","in":"query","required":false,"schema":{"type":"boolean","description":"Include control nodes","default":false,"title":"Include Controls"},"description":"Include control nodes"},{"name":"max_depth","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Maximum hierarchy depth","title":"Max Depth"},"description":"Maximum hierarchy depth"},{"name":"hierarchy_type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/HierarchyType","description":"Hierarchy view: legal (default), operational, or reporting","default":"legal"},"description":"Hierarchy view: legal (default), operational, or reporting"},{"name":"all_roots","in":"query","required":false,"schema":{"type":"boolean","description":"Return hierarchies for all accessible root companies","default":false,"title":"All Roots"},"description":"Return hierarchies for all accessible root companies"},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort roots by: name (default), type, employees","title":"Order By"},"description":"Sort roots by: name (default), type, employees"},{"name":"name_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter roots by name (case-insensitive contains)","title":"Name Filter"},"description":"Filter roots by name (case-insensitive contains)"},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReactFlowGraph"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/viz/hierarchy-risk":{"get":{"tags":["Visualizations"],"summary":"Get Hierarchy Risk Graph","description":"Get client hierarchy with per-node risk data.","operationId":"get_hierarchy_risk_graph_clients__client_uid__viz_hierarchy_risk_get","parameters":[{"name":"include_controls","in":"query","required":false,"schema":{"type":"boolean","description":"Include control nodes","default":false,"title":"Include Controls"},"description":"Include control nodes"},{"name":"max_depth","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Maximum hierarchy depth","title":"Max Depth"},"description":"Maximum hierarchy depth"},{"name":"hierarchy_type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/HierarchyType","description":"Hierarchy view: legal (default), operational, or reporting","default":"legal"},"description":"Hierarchy view: legal (default), operational, or reporting"},{"name":"all_roots","in":"query","required":false,"schema":{"type":"boolean","description":"Return hierarchies for all accessible root companies","default":false,"title":"All Roots"},"description":"Return hierarchies for all accessible root companies"},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort roots by: name (default), type, employees","title":"Order By"},"description":"Sort roots by: name (default), type, employees"},{"name":"name_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter roots by name (case-insensitive contains)","title":"Name Filter"},"description":"Filter roots by name (case-insensitive contains)"},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HierarchyRiskGraph"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/viz/controls":{"get":{"tags":["Visualizations"],"summary":"Get Controls Graph","description":"Get client controls as React Flow graph.\n\nReturns the client connected to its security controls,\nready for visualization with React Flow.\n\nThe response includes:\n- Client node at center\n- Control nodes with vendor, category, effectiveness\n- Implementation edges with state (direct/inherited/opted_out)\n- Optionally: Technique nodes and MITIGATES edges\n\nAuthorization: User must be active in this client context or be a super admin.","operationId":"get_controls_graph_clients__client_uid__viz_controls_get","parameters":[{"name":"include_techniques","in":"query","required":false,"schema":{"type":"boolean","description":"Include MITRE technique nodes","default":false,"title":"Include Techniques"},"description":"Include MITRE technique nodes"},{"name":"states","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ControlState"},"description":"Filter by control states","default":["direct","inherited"],"title":"States"},"description":"Filter by control states"},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReactFlowGraph"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/hierarchy/move":{"post":{"tags":["Hierarchy"],"summary":"Move a child to a new parent","description":"Move a child entity to a new parent in the hierarchy.\n\nThis directly updates Neo4j hierarchy edges.\nThe operation is atomic - either the entire move succeeds or nothing changes.\n\n**Authorization**: Requires write access to the client context (client_uid).","operationId":"move_child_clients__client_uid__hierarchy_move_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveChildRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveChildResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]}},"/clients/{client_uid}/hierarchy/move-batch":{"post":{"tags":["Hierarchy"],"summary":"Move multiple children atomically","description":"Move multiple child entities to new parents in a single atomic transaction.\n\nAll moves succeed or all fail - if any move is invalid (missing entity, circular\nreference), the entire batch is rejected and no changes are made.\n\nThis is ideal for rapid user interactions where multiple moves happen in quick\nsuccession. The frontend can queue moves and submit them as a batch.\n\n**Authorization**: Requires write access to the client context (client_access.scope).","operationId":"move_children_batch_clients__client_uid__hierarchy_move_batch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveBatchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveBatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]}},"/clients/{client_uid}/hierarchy/delete":{"post":{"tags":["Hierarchy"],"summary":"Delete a node from the hierarchy","description":"Delete a node from the hierarchy with one of two strategies:\n\n**reparent**: Move all direct children up to the deleted node's parent (grandparent),\nthen delete only the specified node. The subtree is preserved.\n\n**cascade**: Delete the specified node AND all of its descendants.\nThis removes the entire subtree.\n\nBoth strategies update Neo4j hierarchy edges.\n\n**Authorization**: Requires write access to the client context (client_access.scope).","operationId":"delete_node_clients__client_uid__hierarchy_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteNodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteNodeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]}},"/clients/{client_uid}/risk/categories/{category}":{"get":{"tags":["Risk"],"summary":"Get Risk Category","description":"Get risk metrics for a specific category.\n\nArgs:\n    category: Risk category name\n\nAuthorization: User must be active in this client context or be a super admin.","operationId":"get_risk_category_clients__client_uid__risk_categories__category__get","parameters":[{"name":"category","in":"path","required":true,"schema":{"type":"string","title":"Category"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskCategoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/risk/categories/{category}/techniques":{"get":{"tags":["Risk"],"summary":"Get Category Techniques","description":"Get techniques that affect a specific risk category.\n\nReturns technique defense metrics for techniques mapped to this risk category.\n\nArgs:\n    category: Risk category name\n\nAuthorization: User must be active in this client context or be a super admin.","operationId":"get_category_techniques_clients__client_uid__risk_categories__category__techniques_get","parameters":[{"name":"category","in":"path","required":true,"schema":{"type":"string","title":"Category"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TechniqueDefense"},"title":"Response Get Category Techniques Clients  Client Uid  Risk Categories  Category  Techniques Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rbac/roles":{"get":{"tags":["RBAC","RBAC"],"summary":"List Roles","description":"List all available roles.\n\nReturns both built-in system roles and custom roles.\n\nAuthorization: Any authenticated user can view roles.","operationId":"list_roles_rbac_roles_get","parameters":[{"name":"include_builtin","in":"query","required":false,"schema":{"type":"boolean","description":"Include built-in system roles","default":true,"title":"Include Builtin"},"description":"Include built-in system roles"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Role"},"title":"Response List Roles Rbac Roles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rbac/roles/{role_slug}":{"get":{"tags":["RBAC","RBAC"],"summary":"Get Role","description":"Get details of a specific role.\n\nAuthorization: Any authenticated user can view role details.","operationId":"get_role_rbac_roles__role_slug__get","parameters":[{"name":"role_slug","in":"path","required":true,"schema":{"type":"string","description":"Role key","title":"Role Slug"},"description":"Role key"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Role"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rbac/clients/{client_uid}/roles":{"post":{"tags":["RBAC","RBAC"],"summary":"Create Client Role","description":"Create a custom role owned by the given client.\n\nWrites the `:Role` node plus the `OWNED_BY` edge to the client anchor\nin one transaction. Built-in slugs are rejected. The caller must hold\n`role:admin:{client_uid}`.","operationId":"create_client_role_rbac_clients__client_uid__roles_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Role"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["RBAC","RBAC"],"summary":"List Client Roles With Invites","description":"List all roles with their pending invites for a specific client.\n\nReturns built-in and custom roles, each with nested invite arrays\nfiltered to the given client scope.\n\nAuthorization: Requires client:read permission on the client.","operationId":"list_client_roles_with_invites_rbac_clients__client_uid__roles_get","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","description":"Client key","title":"Client Uid"},"description":"Client key"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RoleWithInvites"},"title":"Response List Client Roles With Invites Rbac Clients  Client Uid  Roles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rbac/clients/{client_uid}/roles/{role_slug}":{"put":{"tags":["RBAC","RBAC"],"summary":"Update Client Role","description":"Update a custom role owned by the given client.\n\nReturns 404 when the role exists but is owned by a different client;\nthat intentionally hides existence from non-owners. Built-in slugs\nraise 400.","operationId":"update_client_role_rbac_clients__client_uid__roles__role_slug__put","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"role_slug","in":"path","required":true,"schema":{"type":"string","description":"Role slug","title":"Role Slug"},"description":"Role slug"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Role"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["RBAC","RBAC"],"summary":"Delete Client Role","description":"Delete a custom role owned by the given client.\n\nReturns 404 when the role exists but is owned by a different client.\nDETACH DELETE removes `HAS_ROLE` bindings alongside the node;\naffected users' permission caches are re-materialized first.\nBuilt-in slugs raise 400.","operationId":"delete_client_role_rbac_clients__client_uid__roles__role_slug__delete","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"role_slug","in":"path","required":true,"schema":{"type":"string","description":"Role slug","title":"Role Slug"},"description":"Role slug"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rbac/users/{user_uid}/roles":{"get":{"tags":["RBAC","RBAC"],"summary":"Get User Roles","description":"List all role bindings for a user.\n\nReturns roles with their scopes and inheritance settings.\n\nAuthorization: User can view own bindings, or requires user:admin permission.","operationId":"get_user_roles_rbac_users__user_uid__roles_get","parameters":[{"name":"user_uid","in":"path","required":true,"schema":{"type":"string","title":"User Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RoleBinding"},"title":"Response Get User Roles Rbac Users  User Uid  Roles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["RBAC","RBAC"],"summary":"Assign Role","description":"Assign a role to a user at a specific scope.\n\nThe scope can be:\n- A client key (ULID) - role applies to that client\n- \"system\" - role applies globally\n\nIf inherit=true, the permission cascades to all descendant clients.\n\nAuthorization: Requires role:assign permission at the target scope.","operationId":"assign_role_rbac_users__user_uid__roles_post","parameters":[{"name":"user_uid","in":"path","required":true,"schema":{"type":"string","description":"User key to assign role to","title":"User Uid"},"description":"User key to assign role to"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleBindingCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleBinding"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rbac/users/{user_uid}/roles/{role_slug}":{"delete":{"tags":["RBAC","RBAC"],"summary":"Revoke Role","description":"Revoke a role from a user at a specific scope.\n\nAuthorization: Requires role:assign permission at the target scope.","operationId":"revoke_role_rbac_users__user_uid__roles__role_slug__delete","parameters":[{"name":"user_uid","in":"path","required":true,"schema":{"type":"string","description":"User key","title":"User Uid"},"description":"User key"},{"name":"role_slug","in":"path","required":true,"schema":{"type":"string","description":"Role key to revoke","title":"Role Slug"},"description":"Role key to revoke"},{"name":"scope","in":"query","required":true,"schema":{"type":"string","description":"Scope to revoke role from","title":"Scope"},"description":"Scope to revoke role from"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rbac/users/{user_uid}/permissions":{"get":{"tags":["RBAC","RBAC"],"summary":"Get User Permissions","description":"Get complete permission snapshot for a user.\n\nReturns:\n- All role bindings\n- All effective permissions (including inherited)\n- Source information for each permission\n\nUseful for debugging and auditing.\n\nAuthorization: User can view own permissions, or requires user:admin permission.","operationId":"get_user_permissions_rbac_users__user_uid__permissions_get","parameters":[{"name":"user_uid","in":"path","required":true,"schema":{"type":"string","title":"User Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPermissions"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rbac/permissions/check":{"get":{"tags":["RBAC","RBAC"],"summary":"Check Permission","description":"Check if a user has a specific permission.\n\nReturns detailed information about whether the permission is granted\nand why (useful for debugging).\n\nAuthorization:\n- Can check own permissions\n- Checking other users requires user:admin permission","operationId":"check_permission_rbac_permissions_check_get","parameters":[{"name":"resource","in":"query","required":true,"schema":{"type":"string","description":"Resource to check (e.g., 'client')","title":"Resource"},"description":"Resource to check (e.g., 'client')"},{"name":"action","in":"query","required":true,"schema":{"type":"string","description":"Action to check (e.g., 'write')","title":"Action"},"description":"Action to check (e.g., 'write')"},{"name":"scope","in":"query","required":true,"schema":{"type":"string","description":"Scope to check (client_uid or 'system')","title":"Scope"},"description":"Scope to check (client_uid or 'system')"},{"name":"user_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"User to check (defaults to self)","title":"User Uid"},"description":"User to check (defaults to self)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionCheckResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rbac/permissions":{"get":{"tags":["RBAC","RBAC"],"summary":"List Valid Permissions","description":"List all valid resource:action permission strings.\n\nComputed from the canonical RBAC model (RESOURCES × ACTIONS).\n\nWhen assignable=true, only standard CRUD + admin actions are returned\n(suitable for the role permission matrix UI). Special operational\npermissions (invite, consult, notify, etc.) are excluded.\n\nWhen scope=client, system-only resources (subscription, release,\nnotification) are excluded.","operationId":"list_valid_permissions_rbac_permissions_get","parameters":[{"name":"assignable","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Assignable"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response List Valid Permissions Rbac Permissions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rbac/roles/{role_slug}/invites":{"post":{"tags":["RBAC","RBAC"],"summary":"Create Invite","description":"Create a pending role invite.\n\nSends an invitation for the given email to receive a role binding\nonce they log in.\n\nAuthorization: Requires role:assign permission at the target scope.","operationId":"create_invite_rbac_roles__role_slug__invites_post","parameters":[{"name":"role_slug","in":"path","required":true,"schema":{"type":"string","description":"Role key to create invite for","title":"Role Slug"},"description":"Role key to create invite for"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invite"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rbac/invites/{invite_key}":{"delete":{"tags":["RBAC","RBAC"],"summary":"Delete Invite","description":"Delete a pending invite.\n\nAuthorization: Requires role:assign permission at the invite's scope.","operationId":"delete_invite_rbac_invites__invite_key__delete","parameters":[{"name":"invite_key","in":"path","required":true,"schema":{"type":"string","description":"Invite key to delete","title":"Invite Key"},"description":"Invite key to delete"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rbac/invites/resolve":{"post":{"tags":["RBAC","RBAC"],"summary":"Resolve Invites","description":"Resolve all pending invites for an email address.\n\nConverts matching PendingInvite nodes into actual role bindings\nfor the specified user, then deletes the invite nodes. The user's\npermission cache is rematerialized so the new bindings are visible\non the next permission read — RBAC reads are Redis-only with no\nNeo4j fallback.\n\nTypically called during user login/registration flow.\n\nAuthorization: Requires role:assign permission at system scope.","operationId":"resolve_invites_rbac_invites_resolve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveInvitesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Invite"},"type":"array","title":"Response Resolve Invites Rbac Invites Resolve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rbac/users/{user_uid}/bindings":{"delete":{"tags":["RBAC","RBAC"],"summary":"Cascade-deprovision a user's RBAC bindings (service-to-service)","description":"Tombstone the UserRef, delete every HAS_ROLE edge, clear the cache.\n\nDelegates to PermissionService.deprovision_user (see rbac/service.py)\nfor the full graph-first cascade: per-user lock, fail-closed\npermission-cache delete, one Neo4j tx that tombstones + deletes\nbindings + appends ROLE_UNASSIGN audit rows, then final user-roles\ncache delete. Idempotent: a retry finds zero bindings, emits zero\naudits, keeps the original tombstone timestamp.\n\nAuthorization: purpose-bound service JWT (phoenix-api, purpose =\nuser_deprovision) whose target_user_uid claim matches the path uid.\nUser JWTs are never admitted — this is a service-to-service surface.","operationId":"deprovision_user_bindings_rbac_users__user_uid__bindings_delete","parameters":[{"name":"user_uid","in":"path","required":true,"schema":{"type":"string","description":"User key to deprovision","title":"User Uid"},"description":"User key to deprovision"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeprovisionUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rbac/clients/{client_uid}/users":{"get":{"tags":["RBAC","RBAC"],"summary":"List Scope Users","description":"List all users with role bindings at a client scope, including\nusers who inherit access from ancestor scopes.\n\nQueries Neo4j directly — no Redis indexes involved.\n\nAuthorization: Requires client:read permission on the client.","operationId":"list_scope_users_rbac_clients__client_uid__users_get","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","description":"Client scope key","title":"Client Uid"},"description":"Client scope key"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopeUsersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rbac/users":{"get":{"tags":["RBAC","RBAC"],"summary":"List All Users","description":"List all users across all scopes.\n\nPlatform admin only — requires user:admin at system scope.","operationId":"list_all_users_rbac_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopeUsersResponse"}}}}}}},"/rbac/users/directory":{"get":{"tags":["RBAC","RBAC"],"summary":"List User Directory","description":"List every ``UserRef`` known to the graph, including users with no active\nrole bindings.\n\nThis is the source for admin \"user directory\" views where an operator\nneeds to see *all* known users — including invited-but-not-yet-active\naccounts and UserRefs created indirectly via RACI assignments. For users\nwho currently have effective access (role-bearing only), use ``GET /users``\ninstead, which returns the smaller set.\n\nEach entry includes profile fields (``name``, ``email``, ``username``)\npopulated by the ETL from Redis ``user:*`` records, plus a ``roles[]``\nlist with active bindings. ``has_access`` is true iff ``roles`` is\nnon-empty.\n\nAuthorization: admin user JWT (``user:admin:system`` or\n``*:admin:system``) OR phoenix-api service JWT with\n``purpose=rbac_audit`` (MTM-2048 PR 6b, for the scheduled\nconsistency checker).","operationId":"list_user_directory_rbac_users_directory_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryUsersResponse"}}}}}}},"/rbac/audit/consistency":{"get":{"tags":["RBAC","RBAC"],"summary":"Get Rbac Audit Consistency","description":"Return a per-uid cross-source snapshot for the RBAC three-way audit.\n\nRead-only. Consumed by phoenix-api's scheduled MTM-2048 PR 6c-api job,\nwhich joins against its own idx:user to classify:\n\n- graph_userref_state == 'live' AND uid NOT in Phoenix idx:user\n  → binding for missing Phoenix user (finding 6.2)\n- graph_userref_state == 'tombstoned' AND graph_roles non-empty\n  → binding on tombstoned UserRef (finding 6.3)\n- redis_permissions_present AND uid NOT in Phoenix idx:user\n  → orphaned permission cache (finding 6.4)\n- graph_roles' {role_slug:scope} set != redis_user_roles set\n  → Neo4j ↔ per-user-Redis divergence (finding 6.5)\n\nAuthorization: purpose-bound rbac_audit service JWT minted by phoenix-api.","operationId":"get_rbac_audit_consistency_rbac_audit_consistency_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RbacAuditConsistencyResponse"}}}}}}},"/activity/security":{"get":{"tags":["Activity","Activity"],"summary":"Read security audit events (permission/role changes)","operationId":"list_security_events_activity_security_get","parameters":[{"name":"client_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Client scope; omit for the platform chain","title":"Client Uid"},"description":"Client scope; omit for the platform chain"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"before_seq","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Cursor: return events older than this seq","title":"Before Seq"},"description":"Cursor: return events older than this seq"},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","description":"Include aged-out (archived) events","default":false,"title":"Include Archived"},"description":"Include aged-out (archived) events"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditEventPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/activity":{"get":{"tags":["Activity","Activity"],"summary":"Unified activity feed — global (impostor-gated) or client scope; domain changes (per-type filtered) + security events (member-readable)","operationId":"activity_feed_activity_get","parameters":[{"name":"client_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Owning client scope; omit for the global (impostor-gated) scope","title":"Client Uid"},"description":"Owning client scope; omit for the global (impostor-gated) scope"},{"name":"stream","in":"query","required":false,"schema":{"type":"string","pattern":"^(all|domain|security)$","default":"all","title":"Stream"}},{"name":"entity_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by entity / resource type","title":"Entity Type"},"description":"Filter by entity / resource type"},{"name":"actor_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by actor","title":"Actor Uid"},"description":"Filter by actor"},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO-8601 lower bound","title":"From"},"description":"ISO-8601 lower bound"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO-8601 upper bound","title":"To"},"description":"ISO-8601 upper bound"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque pagination cursor","title":"Cursor"},"description":"Opaque pagination cursor"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","description":"Include aged-out (archived) events","default":false,"title":"Include Archived"},"description":"Include aged-out (archived) events"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityFeedPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/activity/export":{"get":{"tags":["Activity","Activity"],"summary":"Bounded change-log export snapshot (JSON) — consumers render CSV/table","operationId":"activity_export_activity_export_get","parameters":[{"name":"client_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Owning client scope; omit for the global (impostor-gated) scope","title":"Client Uid"},"description":"Owning client scope; omit for the global (impostor-gated) scope"},{"name":"stream","in":"query","required":false,"schema":{"type":"string","pattern":"^(all|domain|security)$","default":"all","title":"Stream"}},{"name":"entity_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by entity / resource type","title":"Entity Type"},"description":"Filter by entity / resource type"},{"name":"actor_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by actor","title":"Actor Uid"},"description":"Filter by actor"},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO-8601 lower bound","title":"From"},"description":"ISO-8601 lower bound"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO-8601 upper bound","title":"To"},"description":"ISO-8601 upper bound"},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","description":"Include aged-out (archived) events","default":false,"title":"Include Archived"},"description":"Include aged-out (archived) events"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"description":"Row cap for the snapshot","default":1000,"title":"Limit"},"description":"Row cap for the snapshot"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityExport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/activity/ingest":{"post":{"tags":["Activity","Activity"],"summary":"Append one auth security event to the platform audit chain (service-to-service)","description":"Append one auth event (Phase-1 ``login_success`` … ``logout``, spec\n§4.2, or an ``mcp_connection_*`` lifecycle event) to the ``platform``\naudit chain. ``actor_uid`` / ``target_uid``\nmay be null (unknown-username attempts — the raw username stays in\n``payload`` only). The payload object is canonicalised (sorted-key JSON)\nbefore hashing. Returns the stored event's identity (uid / seq).","operationId":"ingest_audit_event_activity_ingest_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditEventIngestRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditEventIngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/activity/{client_uid}/retention":{"get":{"tags":["Activity","Activity"],"summary":"Read a client's change-log retention policy (admin)","operationId":"get_retention_activity__client_uid__retention_get","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetentionConfig"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Activity","Activity"],"summary":"Set a client's change-log retention override (platform admin)","operationId":"set_retention_activity__client_uid__retention_put","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetentionConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetentionConfig"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/activity/{entity_type}/{uid}":{"get":{"tags":["Activity","Activity"],"summary":"Version-chain change history for an entity (per-type read access)","operationId":"entity_history_activity__entity_type___uid__get","parameters":[{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","title":"Entity Type"}},{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}},{"name":"client_uid","in":"query","required":true,"schema":{"type":"string","description":"Owning client scope","title":"Client Uid"},"description":"Owning client scope"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityHistory"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/activity/{entity_type}/{uid}/diff":{"get":{"tags":["Activity","Activity"],"summary":"Field-level diff between two versions of an entity (per-type read access)","operationId":"entity_diff_activity__entity_type___uid__diff_get","parameters":[{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","title":"Entity Type"}},{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}},{"name":"client_uid","in":"query","required":true,"schema":{"type":"string","description":"Owning client scope","title":"Client Uid"},"description":"Owning client scope"},{"name":"from","in":"query","required":true,"schema":{"type":"integer","minimum":1,"description":"Older version","title":"From"},"description":"Older version"},{"name":"to","in":"query","required":true,"schema":{"type":"integer","minimum":1,"description":"Newer version","title":"To"},"description":"Newer version"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityDiff"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/etl/last-run":{"get":{"tags":["admin","etl"],"summary":"Get Last Run","description":"Return the most recent ETL run receipt.\n\nReceipt shape is defined in ``mtm_graph.etl.run_receipt.write_run_receipt``.","operationId":"get_last_run_admin_etl_last_run_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Last Run Admin Etl Last Run Get"}}}}}}},"/admin/intel/status":{"get":{"tags":["admin","intel"],"summary":"Get Intel Status","description":"Snapshot of intel pipeline state.","operationId":"get_intel_status_admin_intel_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Intel Status Admin Intel Status Get"}}}}}}},"/admin/intel/reset":{"delete":{"tags":["admin","intel"],"summary":"Reset Intel Watermarks","description":"Reset pipeline watermarks so next beat tick re-dispatches.","operationId":"reset_intel_watermarks_admin_intel_reset_delete","parameters":[{"name":"pipelines","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Pipelines"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reset Intel Watermarks Admin Intel Reset Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/enrichment/import":{"post":{"tags":["admin","enrichment"],"summary":"Trigger Enrichment Import","description":"Dispatch one EnrichmentImport run for a drop file on worker-visible disk.\n\nFast-fail guards (the route is the operator's feedback loop; the\nworker log is not):\n\n- 422 when the path escapes the configured drops directory —\n  ``drop_path`` is operator input, so it is anchored to\n  ``settings.enrichment_drops_dir`` (path-traversal guard).\n- 404 when the drop file does not exist HERE. The API and worker\n  share the deployment volume; a path visible to neither is a typo.\n- 409 when the run's watermark already exists — the task would no-op\n  anyway; the operator wants a NEW run_id, not a silent skip.\n- 502 when the broker rejects the dispatch.","operationId":"trigger_enrichment_import_admin_enrichment_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrichmentImportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrichmentImportDispatched"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/taxonomy/functions":{"post":{"tags":["admin","taxonomy"],"summary":"Create Function","description":"Add a net-new function to the vocabulary.\n\n409 on a duplicate id — including deprecated rows: resurrection is\nthe explicit restore, never a silent re-create over a tombstone.\n422 when the denormalized hierarchy names disagree with the live\nvocabulary — the seed loader's coherence rule (two rows disagreeing\non a capability's name make facet rollups nondeterministic), held\nagainst the graph because the graph is the system of record.","operationId":"create_function_admin_taxonomy_functions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyFunctionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/taxonomy/functions/{function_id}/name":{"patch":{"tags":["admin","taxonomy"],"summary":"Rename Function","description":"Rename a live function's display name.\n\nIds are identity (every mapping edge joins on them) and are never\nrenamed — an id change is deprecate + create + ``replaced_by``.\n404 when the function is missing or deprecated (rename a tombstone\nvia restore first).","operationId":"rename_function_admin_taxonomy_functions__function_id__name_patch","parameters":[{"name":"function_id","in":"path","required":true,"schema":{"type":"string","title":"Function Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionRename"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyFunctionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/taxonomy/functions/{function_id}/deprecate":{"post":{"tags":["admin","taxonomy"],"summary":"Deprecate Function","description":"Mark a function deprecated (never deletes — edges stay resolvable).\n\n``replaced_by`` must reference a LIVE function (422 otherwise — a\nremap pointer at a tombstone or nothing is curation debt on write).\nAfter deprecating, ``GET /taxonomy/deprecated-mappings`` is the\nworklist of mappings still pointing here.","operationId":"deprecate_function_admin_taxonomy_functions__function_id__deprecate_post","parameters":[{"name":"function_id","in":"path","required":true,"schema":{"type":"string","title":"Function Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionDeprecate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyFunctionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/taxonomy/functions/{function_id}/restore":{"post":{"tags":["admin","taxonomy"],"summary":"Restore Function","description":"Bring a deprecated function back alive (revoked-then-restored).\n\n404 when the function is missing or already live.","operationId":"restore_function_admin_taxonomy_functions__function_id__restore_post","parameters":[{"name":"function_id","in":"path","required":true,"schema":{"type":"string","title":"Function Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyFunctionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/taxonomy/controls/{control_anchor_uid}/mappings/{function_id}":{"put":{"tags":["admin","taxonomy"],"summary":"Set Manual Mapping","description":"Write one MAPPED_TO edge as ``origin=manual`` (top precedence).\n\nReplaces whatever evidence exists on the pair; the importer's\nkeep-guard then protects it from every subsequent import. 404 when\nthe control is missing/inactive or the function missing/deprecated.","operationId":"set_manual_mapping_admin_taxonomy_controls__control_anchor_uid__mappings__function_id__put","parameters":[{"name":"control_anchor_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Anchor Uid"}},{"name":"function_id","in":"path","required":true,"schema":{"type":"string","title":"Function Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualMappingSet"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","taxonomy"],"summary":"Remove Mapping","description":"Delete one MAPPED_TO edge (any origin — the curator's call).\n\nReal deletion; this audit event is the history. ``removed=false``\nwhen no such edge existed (idempotent-safe, not a 404 — the\ndesired end state holds either way).\n\nP1 (ADR-002 §2.12): accepts a JSON body recording the curator's\nrationale and the taxonomy version for the negative evidence row.","operationId":"remove_mapping_admin_taxonomy_controls__control_anchor_uid__mappings__function_id__delete","parameters":[{"name":"control_anchor_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Anchor Uid"}},{"name":"function_id","in":"path","required":true,"schema":{"type":"string","title":"Function Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MappingRemoveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MappingRemoveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/taxonomy/catalog-coverage-gaps":{"get":{"tags":["admin","taxonomy"],"summary":"List Catalog Coverage Gaps","description":"In-use catalog controls that block flips for lack of a counted v1 mapping.\n\nRows with an active disposition no longer block; they stay listed so the\ncurator can review or revoke them. Default order: most clients first.","operationId":"list_catalog_coverage_gaps_admin_taxonomy_catalog_coverage_gaps_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_CatalogCoverageGapRow_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/taxonomy/controls/{control_anchor_uid}/no-coverage":{"put":{"tags":["admin","taxonomy"],"summary":"Set Catalog No Coverage","description":"Declare that an unmapped catalog product has no v1 function, for every client.\n\n404 for a missing control, 422 for a custom control (acknowledged per\nclient instead), 409 when it already has counted mappings or an active\ndisposition.","operationId":"set_catalog_no_coverage_admin_taxonomy_controls__control_anchor_uid__no_coverage_put","parameters":[{"name":"control_anchor_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Anchor Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogNoCoverageSet"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","taxonomy"],"summary":"Revoke Catalog No Coverage","description":"Revoke the active disposition; the product blocks flips again until mapped or re-declared.\n\n``revoked=false`` when there was none (idempotent-safe, like mapping removal).","operationId":"revoke_catalog_no_coverage_admin_taxonomy_controls__control_anchor_uid__no_coverage_delete","parameters":[{"name":"control_anchor_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Anchor Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogNoCoverageRevoke"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogNoCoverageRevokeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/taxonomy/rederive":{"post":{"tags":["admin","taxonomy"],"summary":"Trigger Taxonomy Rederive","description":"Re-derive custom-control crosswalk MAPPED_TO edges, no drop needed.\n\nRun after a crosswalk artifact fix or vocabulary curation that\nchanges the live function set (restore\nbringing a function's derivations back; there is no automatic hook\nby design — curation batches, re-derives are singular). The task\nreruns the custom-control mapping step only: the keep-guard protects manual and\nresearch mappings; vocabulary/vendors/sidecars are untouched.\nDuplicate concurrent run_ids no-op via the execution claim; re-runs\nwith new run_ids are repeatable by design (no watermark). 502 when\nthe broker rejects the dispatch.","operationId":"trigger_taxonomy_rederive_admin_taxonomy_rederive_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RederiveRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RederiveDispatched"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrity/verify":{"get":{"tags":["admin","integrity"],"summary":"Verify Entity","description":"Verify one chain's head (default) or its full history (``deep``).\n\n``uid`` is keyed per stream: anchor uid for versioned types, chain scope\nfor ``audit_event``, and the ``\"a/b\"`` pair key for edge types (exactly\nas the summary's ``invalid_uids`` reports them).","operationId":"verify_entity_admin_integrity_verify_get","parameters":[{"name":"entity_type","in":"query","required":true,"schema":{"type":"string","title":"Entity Type"}},{"name":"uid","in":"query","required":true,"schema":{"type":"string","title":"Uid"}},{"name":"deep","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Deep"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrityVerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrity/chain":{"get":{"tags":["admin","integrity"],"summary":"Read Chain","description":"Read one anchor's version chain with hashes and hashed-field snapshots.\n\nThe hash-EXPOSING read the Version Inspector's live views need: every\nversion's ``content_hash``/``chain_hash`` (null = unhashed legacy) plus\nthe trusted ``temporal_fields`` projection the hash attests to.\nTombstoned (deleted) anchors are readable — inspecting a delete is the\ntombstone's purpose. Versioned SUPERSEDES chains only; ``audit_event``\nand edge chains are verify/summary-only surfaces.","operationId":"read_chain_admin_integrity_chain_get","parameters":[{"name":"entity_type","in":"query","required":true,"schema":{"type":"string","title":"Entity Type"}},{"name":"uid","in":"query","required":true,"schema":{"type":"string","title":"Uid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"max versions returned (newest first)","default":50,"title":"Limit"},"description":"max versions returned (newest first)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrityChain"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrity/summary":{"get":{"tags":["admin","integrity"],"summary":"Integrity Summary","description":"Head-check sweep summary, bounded to ``limit`` anchors per type.","operationId":"integrity_summary_admin_integrity_summary_get","parameters":[{"name":"entity_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":1,"description":"max anchors per type","default":100,"title":"Limit"},"description":"max anchors per type"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegritySummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mapping-resolution-sets":{"get":{"tags":["MappingResolutionSets","mapping-resolution-sets"],"summary":"List Mapping Resolution Sets","description":"SystemAdmin list of every resolution set with edge count.","operationId":"list_mapping_resolution_sets_mapping_resolution_sets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MappingResolutionSetsListResponse"}}}}}}},"/mapping-resolution-sets/{uid}/withdraw":{"post":{"tags":["MappingResolutionSets","mapping-resolution-sets"],"summary":"Withdraw Mapping Resolution Set","description":"Post-activation rollback per ADR-002 §6.1.\n\nAtomic: sets the target's status to ``withdrawn`` AND repoints the\nsingleton pointer at the previously-active (now superseded) set —\nor nulls the pointer if this was the first set ever activated\n(P1-Q15 edge case; current-state reads then fail closed with\n``no_active_resolution_set``). The withdrawn set's projection\nedges are preserved so pinned assessments still resolve.\n\nReturns 409 if the set is not currently active (safety guard\nagainst double-withdrawal).","operationId":"withdraw_mapping_resolution_set_mapping_resolution_sets__uid__withdraw_post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MappingResolutionSetWithdrawRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MappingResolutionSetWithdrawResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/product-overlay-reconciliation":{"get":{"tags":["ProductOverlayReconciliation","product-overlay-reconciliation"],"summary":"List Product Overlay Reconciliation","operationId":"list_product_overlay_reconciliation_product_overlay_reconciliation_get","parameters":[{"name":"reason","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ReconciliationReason"},{"type":"null"}],"title":"Reason"}},{"name":"resolved","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Resolved"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductOverlayReconciliationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/product-overlay-reconciliation/{uid}/resolve":{"post":{"tags":["ProductOverlayReconciliation","product-overlay-reconciliation"],"summary":"Resolve Product Overlay Reconciliation","description":"Mark one entry resolved with a reviewer disposition.\n\nReturns 409 if the entry is already resolved or does not exist.","operationId":"resolve_product_overlay_reconciliation_product_overlay_reconciliation__uid__resolve_post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductOverlayReconciliationResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductOverlayReconciliationEntry"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ml/window":{"get":{"tags":["admin","ml"],"summary":"Get Window","operationId":"get_window_admin_ml_window_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WindowResponse"}}}}}},"put":{"tags":["admin","ml"],"summary":"Put Window","operationId":"put_window_admin_ml_window_put","parameters":[{"name":"start_batch","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Start Batch"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WindowUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WindowPutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ml/window/history":{"get":{"tags":["admin","ml"],"summary":"Get Window History","operationId":"get_window_history_admin_ml_window_history_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WindowHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ml/window/v/{version}":{"get":{"tags":["admin","ml"],"summary":"Get Window Version","operationId":"get_window_version_admin_ml_window_v__version__get","parameters":[{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WindowResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ml/bucket-months":{"get":{"tags":["admin","ml"],"summary":"Get Bucket Months","operationId":"get_bucket_months_admin_ml_bucket_months_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BucketMonthsResponse"}}}}}}},"/admin/ml/batch/status":{"get":{"tags":["admin","ml"],"summary":"Get Batch Status","operationId":"get_batch_status_admin_ml_batch_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchStatusResponse"}}}}}}},"/admin/ml/batch/start":{"post":{"tags":["admin","ml"],"summary":"Start Batch","operationId":"start_batch_admin_ml_batch_start_post","parameters":[{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ml/batch/cancel":{"post":{"tags":["admin","ml"],"summary":"Cancel Batch","operationId":"cancel_batch_admin_ml_batch_cancel_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchCancelResponse"}}}}}}},"/admin/notifications":{"post":{"tags":["admin","notifications"],"summary":"Send Admin Notification","description":"Send a notification by hand to named people, one client's people or everyone.\n\n202: published; the consumer sends it shortly. 200: this request id was\nalready sent; nothing is sent again. 503: nothing was sent.","operationId":"send_admin_notification_admin_notifications_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendAdminNotificationRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendAdminNotificationResponse"}}}},"200":{"description":"Already sent under this request id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendAdminNotificationResponse"}}}},"422":{"description":"The audience names unknown or inactive people, or no active client"},"503":{"description":"Nothing was sent; try again with the same request id"}}},"get":{"tags":["admin","notifications"],"summary":"List Admin Notifications","description":"What was sent by hand, newest first: by whom, to which audience, and what came of it.","operationId":"list_admin_notifications_admin_notifications_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_AdminNotificationSent_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/registries":{"get":{"tags":["Risk Registry","Risk Registry"],"summary":"Get registry for client","description":"Get the registry for this client's hierarchy (client_access.scope in path).\n\nIf no registry exists yet, one is auto-created with sensible defaults\non the root ancestor (lazy-init). This ensures every hierarchy always\nhas a registry without requiring an explicit setup step.","operationId":"get_registry_risk_registry_clients__client_uid__registries_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryResponse"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]},"post":{"tags":["Risk Registry","Risk Registry"],"summary":"Create a risk registry or add a new version","description":"Create a risk registry for a root client, or add a new version if one exists.\n\nOnly root clients (no parent in hierarchy) can have a registry. At most one\nregistry (anchor) per root client; repeated create calls add a new version\nof the same registry with the new configuration.","operationId":"create_registry_risk_registry_clients__client_uid__registries_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]}},"/risk-registry/registries/defaults":{"get":{"tags":["Risk Registry","Risk Registry"],"summary":"Get registry default configuration","description":"Return the default action_configs values used when creating a new registry.","operationId":"get_registry_defaults_risk_registry_registries_defaults_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Registry Defaults Risk Registry Registries Defaults Get"}}}}}}},"/risk-registry/registries/{registry_uid}":{"put":{"tags":["Risk Registry","Risk Registry"],"summary":"Update a registry","description":"Update registry configuration (workflow steps, custom fields, etc.).","operationId":"update_registry_risk_registry_registries__registry_uid__put","parameters":[{"name":"registry_uid","in":"path","required":true,"schema":{"type":"string","title":"Registry Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/registries/{registry_uid}/raci-templates":{"post":{"tags":["Risk Registry","Risk Registry"],"summary":"Create a RACI template","operationId":"create_raci_template_risk_registry_registries__registry_uid__raci_templates_post","parameters":[{"name":"registry_uid","in":"path","required":true,"schema":{"type":"string","title":"Registry Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RACITemplateCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RACITemplate"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Risk Registry","Risk Registry"],"summary":"List RACI templates for a registry","operationId":"list_raci_templates_risk_registry_registries__registry_uid__raci_templates_get","parameters":[{"name":"registry_uid","in":"path","required":true,"schema":{"type":"string","title":"Registry Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RACITemplate"},"title":"Response List Raci Templates Risk Registry Registries  Registry Uid  Raci Templates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/registries/{registry_uid}/raci-templates/{template_uid}":{"put":{"tags":["Risk Registry","Risk Registry"],"summary":"Update a RACI template","operationId":"update_raci_template_risk_registry_registries__registry_uid__raci_templates__template_uid__put","parameters":[{"name":"registry_uid","in":"path","required":true,"schema":{"type":"string","title":"Registry Uid"}},{"name":"template_uid","in":"path","required":true,"schema":{"type":"string","title":"Template Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RACITemplateUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RACITemplate"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Risk Registry","Risk Registry"],"summary":"Delete a RACI template","operationId":"delete_raci_template_risk_registry_registries__registry_uid__raci_templates__template_uid__delete","parameters":[{"name":"registry_uid","in":"path","required":true,"schema":{"type":"string","title":"Registry Uid"}},{"name":"template_uid","in":"path","required":true,"schema":{"type":"string","title":"Template Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks":{"post":{"tags":["Risk Registry","Risk Registry"],"summary":"Create a risk for client","description":"Create a new risk for the client.\n\nThe risk is created for the client in the path and assigned immediately (one entity).\nOptional owner sets the owner on the risk. Returns the risk with client/workflow context.","operationId":"create_risk_risk_registry_clients__client_uid__risks_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]},"get":{"tags":["Risk Registry","Risk Registry"],"summary":"List risks for a client","description":"List risks with workflow state, flat by default or nested with tree=true.\n\nTree mode applies all filters and visibility before nesting. Roots and\nsiblings use the requested sort order; pagination and meta.total count\nroots, with each page including their complete matching visible branches.\nA risk whose parent is absent from the filtered set is returned as a root.\nLeaves have children=[]; the default flat response has no children field.","operationId":"list_client_risks_risk_registry_clients__client_uid__risks_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Category"}},{"name":"category_condition","in":"query","required":false,"schema":{"type":"string","default":"OR","title":"Category Condition"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Status"}},{"name":"score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Score Min"}},{"name":"score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Score Max"}},{"name":"score_basis","in":"query","required":false,"schema":{"enum":["both","inherent","residual"],"type":"string","description":"Which score score_min/score_max are compared against. 'both' (default) matches a risk whose inherent score OR residual score falls in range; 'inherent'/'residual' restrict the comparison to that score only.","default":"both","title":"Score Basis"},"description":"Which score score_min/score_max are compared against. 'both' (default) matches a risk whose inherent score OR residual score falls in range; 'inherent'/'residual' restrict the comparison to that score only."},{"name":"owner","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Owner"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"impact","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Impact"}},{"name":"likelihood","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Likelihood"}},{"name":"overdue_mitigation","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Overdue Mitigation"}},{"name":"include_hierarchy","in":"query","required":false,"schema":{"type":"boolean","description":"Include risks from ancestor and descendant companies","default":false,"title":"Include Hierarchy"},"description":"Include risks from ancestor and descendant companies"},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","description":"Include archived (aged-out closed) risks","default":false,"title":"Include Archived"},"description":"Include archived (aged-out closed) risks"},{"name":"parent_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only direct children of this risk","title":"Parent Uid"},"description":"Only direct children of this risk"},{"name":"top_level_only","in":"query","required":false,"schema":{"type":"boolean","description":"Exclude risks that have an active parent risk","default":false,"title":"Top Level Only"},"description":"Exclude risks that have an active parent risk"},{"name":"tree","in":"query","required":false,"schema":{"type":"boolean","description":"Return matching visible risks nested under children. Pagination and meta.total count roots; each returned root includes all matching visible descendants. Risks whose parent is not in the filtered result become roots. Default false returns the existing flat list.","default":false,"title":"Tree"},"description":"Return matching visible risks nested under children. Pagination and meta.total count roots; each returned root includes all matching visible descendants. Risks whose parent is not in the filtered result become roots. Default false returns the existing flat list."},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ListResponse_RiskTreeResponse_"},{"$ref":"#/components/schemas/ListResponse_RiskResponse_"}],"title":"Response List Client Risks Risk Registry Clients  Client Uid  Risks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/risks/{risk_uid}":{"get":{"tags":["Risk Registry","Risk Registry"],"summary":"Get a risk by UID","description":"Get a specific risk by UID.","operationId":"get_risk_risk_registry_risks__risk_uid__get","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Risk Registry","Risk Registry"],"summary":"Update a risk","description":"Update risk properties.","operationId":"update_risk_risk_registry_risks__risk_uid__put","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Risk Registry","Risk Registry"],"summary":"Delete a risk","description":"Soft delete a risk.\n\nWhen the risk has child risks the caller must choose a ``children_strategy``\n(otherwise 409): ``delete_children`` tombstones the whole subtree,\n``reassign`` re-points direct children to ``new_parent_uid``, ``detach``\nmakes them top-level. Restoring a cascade-deleted parent does NOT restore\nits children — restore each child separately (it reattaches automatically).","operationId":"delete_risk_risk_registry_risks__risk_uid__delete","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"children_strategy","in":"query","required":false,"schema":{"anyOf":[{"enum":["delete_children","reassign","detach"],"type":"string"},{"type":"null"}],"description":"Required when the risk has child risks: what happens to them","title":"Children Strategy"},"description":"Required when the risk has child risks: what happens to them"},{"name":"new_parent_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Target parent for children_strategy=reassign","title":"New Parent Uid"},"description":"Target parent for children_strategy=reassign"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/risks/{risk_uid}/parent":{"put":{"tags":["Risk Registry","Risk Registry"],"summary":"Set a risk's parent risk","description":"Make this risk a child of ``parent_uid`` (re-pointing any existing parent).\n\nRules: both risks active and in the same registry; no cycles; tree depth\nbounded to ``RiskRegistryRepository.RISK_TREE_MAX_DEPTH`` levels.\nAuthorization: ``risk:write`` on the child, read visibility on the parent.","operationId":"set_risk_parent_risk_registry_risks__risk_uid__parent_put","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskParentUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Risk Registry","Risk Registry"],"summary":"Remove a risk's parent (make it top-level)","description":"Detach this risk from its parent. A risk with no parent is a no-op 204.","operationId":"remove_risk_parent_risk_registry_risks__risk_uid__parent_delete","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/risks/{risk_uid}/children":{"get":{"tags":["Risk Registry","Risk Registry"],"summary":"List a risk's direct child risks","description":"Direct active children of a risk, filtered by the caller's per-risk\nvisibility — a child the user may not view is silently omitted (its\nexistence still shows in the parent's ``children_count``).","operationId":"list_risk_children_risk_registry_risks__risk_uid__children_get","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RiskResponse"},"title":"Response List Risk Children Risk Registry Risks  Risk Uid  Children Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/risks/{risk_uid}/restore":{"post":{"tags":["Risk Registry","Risk Registry"],"summary":"Restore a soft-deleted risk","description":"Restore a tombstoned risk (flips 'deleted' → 'active' tamper-evidently —\nthe restore is a hashed version on the change-log chain).\n\nAuthorization: platform admin, or ``risk:write`` on the owning client — the\nsame right that could delete it (resolved via a status-agnostic owner lookup\nsince the risk is currently ``deleted``). RACI assignments removed at delete\ntime are NOT restored; re-assign them separately.\n\nHierarchy: restoring a cascade-deleted parent does NOT restore its\nchildren (restore each separately — the surviving CHILD_OF edge reattaches\nthem automatically). A restored child whose parent is still deleted\nappears top-level until the parent is restored too.","operationId":"restore_risk_risk_registry_risks__risk_uid__restore_post","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/heatmap":{"get":{"tags":["Risk Registry","Risk Registry"],"summary":"Get risk heatmap data","description":"Return aggregated risk counts grouped by likelihood × impact grid cells.\n\nEach cell contains:\n- ``total_risk_count``: number of risks at that coordinate\n- ``severity_counts``: breakdown by severity label (Low/Medium/High/Critical)\n- ``risk_ids``: all risk IDs in the cell (ordered by inherent score desc then created desc),\n  limited to ``top_n`` when that parameter is supplied\n\nAll filters use AND semantics (a risk must satisfy every supplied filter).\n\nPermissions: only risks visible under the requesting user's client scope are included.\nWith ``include_hierarchy=true``, risks across the full ancestor/descendant hierarchy\nare aggregated; ``business_unit`` narrows that to specific client UIDs.","operationId":"get_risk_heatmap_risk_registry_clients__client_uid__risks_heatmap_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by risk category","title":"Category"},"description":"Filter by risk category"},{"name":"category_condition","in":"query","required":false,"schema":{"type":"string","description":"AND = risk must have all selected categories; OR = any one is enough","default":"OR","title":"Category Condition"},"description":"AND = risk must have all selected categories; OR = any one is enough"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by workflow step name","title":"Status"},"description":"Filter by workflow step name"},{"name":"owner","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by owner UID(s)","title":"Owner"},"description":"Filter by owner UID(s)"},{"name":"business_unit","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by client UID(s) (business unit). Only meaningful with include_hierarchy=true.","title":"Business Unit"},"description":"Filter by client UID(s) (business unit). Only meaningful with include_hierarchy=true."},{"name":"score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":25,"minimum":1},{"type":"null"}],"description":"Minimum inherent score","title":"Score Min"},"description":"Minimum inherent score"},{"name":"score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":25,"minimum":1},{"type":"null"}],"description":"Maximum inherent score","title":"Score Max"},"description":"Maximum inherent score"},{"name":"created_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO datetime — only risks created on or after (inclusive)","title":"Created After"},"description":"ISO datetime — only risks created on or after (inclusive)"},{"name":"created_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO datetime — only risks created on or before (inclusive)","title":"Created Before"},"description":"ISO datetime — only risks created on or before (inclusive)"},{"name":"include_hierarchy","in":"query","required":false,"schema":{"type":"boolean","description":"Include risks from ancestor and descendant companies","default":false,"title":"Include Hierarchy"},"description":"Include risks from ancestor and descendant companies"},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","description":"Include archived (aged-out closed) risks","default":false,"title":"Include Archived"},"description":"Include archived (aged-out closed) risks"},{"name":"top_n","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Limit risk IDs per cell to N. When omitted all IDs in the cell are returned.","title":"Top N"},"description":"Limit risk IDs per cell to N. When omitted all IDs in the cell are returned."},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskHeatmapResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/risks/{risk_uid}/controls/{control_uid}":{"post":{"tags":["Risk Registry","Risk Registry"],"summary":"Link a mitigating control to a risk","description":"Attach a control to a risk (``MITIGATED_BY``); the repo also materialises\nthe risk's mitigation set onto its version chain.","operationId":"link_control_to_risk_risk_registry_risks__risk_uid__controls__control_uid__post","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"control_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskControlLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskControlsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Risk Registry","Risk Registry"],"summary":"Unlink a mitigating control from a risk","description":"Detach a control from a risk (``MITIGATED_BY``); the repo re-materialises\nthe risk's mitigation set onto its version chain.","operationId":"unlink_control_from_risk_risk_registry_risks__risk_uid__controls__control_uid__delete","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"control_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskControlsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/import":{"post":{"tags":["Risk Registry","Risk Registry"],"summary":"Import risks from an Excel spreadsheet","description":"Import risks from an uploaded .xlsx workbook (first worksheet).\n\nRequired header columns (case-insensitive): Title, Description, Category,\nOwner, Likelihood, Impact, Constraints. Optional: Department (when present\nand non-blank it must be one of the registry's configured department\noptions). Each non-blank row is validated independently against the\nregistry's configured values; duplicates by Title + Owner — within the file\nor against existing risks — are skipped. Returns per-row results; created\nrows are not rolled back on later failures.","operationId":"import_risks_risk_registry_clients__client_uid__risks_import_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_risks_risk_registry_clients__client_uid__risks_import_post"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskImportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]}},"/risk-registry/clients/{client_uid}/risks/summary":{"get":{"tags":["Risk Registry","Risk Registry"],"summary":"Get risk summary for a client","description":"Get summary of risks for a client (counts by step, entity breakdown, score history).","operationId":"get_client_risk_summary_risk_registry_clients__client_uid__risks_summary_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Category"}},{"name":"category_condition","in":"query","required":false,"schema":{"type":"string","description":"AND = risk must have all selected categories; OR = any one is enough","default":"OR","title":"Category Condition"},"description":"AND = risk must have all selected categories; OR = any one is enough"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"include_hierarchy","in":"query","required":false,"schema":{"type":"boolean","description":"Include risks from the full company hierarchy","default":false,"title":"Include Hierarchy"},"description":"Include risks from the full company hierarchy"},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","description":"Include archived (aged-out closed) risks","default":false,"title":"Include Archived"},"description":"Include archived (aged-out closed) risks"},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientRiskSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}":{"get":{"tags":["Risk Registry","Risk Registry"],"summary":"Get risk for client","description":"Get risk for this client including workflow state.\n\n``RiskViewOnRiskAccess`` already enforces per-risk visibility (scoped\nusers may only read their own/assigned risks) and audit-logs denials.","operationId":"get_risk_for_client_risk_registry_clients__client_uid__risks__risk_uid__get","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/approve":{"post":{"tags":["Risk Registry","Risk Registry"],"summary":"Submit an approval","description":"Submit an approval for a risk at its current workflow step.\n\nThe user must be in an approved RACI role (typically 'accountable').\nIf enough approvals are received, the workflow advances to the next step.","operationId":"approve_risk_risk_registry_clients__client_uid__risks__risk_uid__approve_post","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowActionResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/reject":{"post":{"tags":["Risk Registry","Risk Registry"],"summary":"Submit a rejection","description":"Submit a rejection for a risk.\n\nThe risk will be returned to the specified step (or step 0 by default).\nApprovals are cleared and the rejection is recorded in history.","operationId":"reject_risk_risk_registry_clients__client_uid__risks__risk_uid__reject_post","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RejectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowActionResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/approvals":{"get":{"tags":["Risk Registry","Risk Registry"],"summary":"Get approval status","description":"Get current approval status for a risk.\n\n``RiskViewOnRiskAccess`` already enforces per-risk visibility and\naudit-logs denials.","operationId":"get_approval_status_risk_registry_clients__client_uid__risks__risk_uid__approvals_get","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/raci":{"put":{"tags":["Risk Registry","Risk Registry"],"summary":"Update RACI assignment (per step, merge at step level)","description":"Update RACI assignments for a risk using a per-step structure.\n\nOnly the steps included in the request body are updated; other steps are left\nintact (merge at step level).  Each non-empty step must satisfy the business rules:\n- At least one Responsible required.\n- At least one Accountable required.\n- Accountable count must not exceed registry-configured max (default: 1).\n- All user UIDs must exist in the user directory.\n- Duplicate user/role pairs are silently deduplicated before storing.","operationId":"update_raci_risk_registry_clients__client_uid__risks__risk_uid__raci_put","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/RaciAssignment"},"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/RaciAssignment"},"title":"Response Update Raci Risk Registry Clients  Client Uid  Risks  Risk Uid  Raci Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/attachments":{"post":{"tags":["Risk Registry","Risk Registry"],"summary":"Upload Attachment","operationId":"upload_attachment_risk_registry_clients__client_uid__risks__risk_uid__attachments_post","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_attachment_risk_registry_clients__client_uid__risks__risk_uid__attachments_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Risk Registry","Risk Registry"],"summary":"List Attachments","operationId":"list_attachments_risk_registry_clients__client_uid__risks__risk_uid__attachments_get","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AttachmentResponse"},"title":"Response List Attachments Risk Registry Clients  Client Uid  Risks  Risk Uid  Attachments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/attachments/{attachment_uid}/download":{"get":{"tags":["Risk Registry","Risk Registry"],"summary":"Download Attachment","operationId":"download_attachment_risk_registry_clients__client_uid__risks__risk_uid__attachments__attachment_uid__download_get","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"attachment_uid","in":"path","required":true,"schema":{"type":"string","title":"Attachment Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/octet-stream":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/attachments/{attachment_uid}":{"delete":{"tags":["Risk Registry","Risk Registry"],"summary":"Delete Attachment","operationId":"delete_attachment_risk_registry_clients__client_uid__risks__risk_uid__attachments__attachment_uid__delete","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"attachment_uid","in":"path","required":true,"schema":{"type":"string","title":"Attachment Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/mitigation-plans":{"post":{"tags":["Risk Registry","Risk Registry"],"summary":"Create a mitigation plan for a risk","operationId":"create_mitigation_plan_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans_post","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MitigationPlanCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MitigationPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Risk Registry","Risk Registry"],"summary":"List mitigation plans for a risk","operationId":"list_mitigation_plans_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans_get","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MitigationPlanResponse"},"title":"Response List Mitigation Plans Risk Registry Clients  Client Uid  Risks  Risk Uid  Mitigation Plans Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/mitigation-plans/{plan_uid}":{"get":{"tags":["Risk Registry","Risk Registry"],"summary":"Get a mitigation plan by UID","operationId":"get_mitigation_plan_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__get","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MitigationPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Risk Registry","Risk Registry"],"summary":"Update a mitigation plan","operationId":"update_mitigation_plan_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__put","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MitigationPlanUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MitigationPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Risk Registry","Risk Registry"],"summary":"Delete a mitigation plan","operationId":"delete_mitigation_plan_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__delete","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/mitigation-plans/{plan_uid}/submit":{"post":{"tags":["Risk Registry","Risk Registry"],"summary":"Submit a mitigation plan for approval","operationId":"submit_mitigation_plan_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__submit_post","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitForApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MitigationPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/mitigation-plans/{plan_uid}/approve":{"post":{"tags":["Risk Registry","Risk Registry"],"summary":"Approve a submitted mitigation plan","operationId":"approve_mitigation_plan_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__approve_post","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MitigationPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/mitigation-plans/{plan_uid}/reject":{"post":{"tags":["Risk Registry","Risk Registry"],"summary":"Reject a submitted mitigation plan","operationId":"reject_mitigation_plan_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__reject_post","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RejectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MitigationPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/mitigation-plans/{plan_uid}/revert-submission":{"post":{"tags":["Risk Registry","Risk Registry"],"summary":"Revert a submitted mitigation plan back to draft","description":"Revert a submitted plan back to draft so it can be edited again.\n\nOnly allowed when approval_status == 'submitted'.  Returns 409 if the plan\nis already approved, rejected, or in draft state.  Approval/rejection history\nis preserved for audit purposes.","operationId":"revert_mitigation_plan_submission_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__revert_submission_post","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MitigationPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/mitigation-plans/{plan_uid}/status":{"patch":{"tags":["Risk Registry","Risk Registry"],"summary":"Change a mitigation plan's execution status","description":"Apply a manual execution-status transition.\n\nAllowed transitions:\n    in_progress → on_hold     (comment required)\n    on_hold     → in_progress (comment optional)\n    not_started → cancelled   (comment required)\n    not_started → on_hold     (comment required)\n    in_progress → completed   (comment required; auto path is via actions)\n    in_progress → cancelled   (comment required)\n    completed   → in_progress (comment required)\n    cancelled   → in_progress (comment required)\n\nnot_started → in_progress is automatic (start_date or first action change)\nand cannot be requested here.","operationId":"change_mitigation_plan_status_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__status_patch","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MitigationPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/mitigation-plans/{plan_uid}/actions":{"post":{"tags":["Risk Registry","Risk Registry"],"summary":"Create an action under a mitigation plan","operationId":"create_action_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__actions_post","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/mitigation-plans/{plan_uid}/actions/{action_uid}":{"put":{"tags":["Risk Registry","Risk Registry"],"summary":"Update an action","operationId":"update_action_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__actions__action_uid__put","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"action_uid","in":"path","required":true,"schema":{"type":"string","title":"Action Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Risk Registry","Risk Registry"],"summary":"Delete an action","operationId":"delete_action_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__actions__action_uid__delete","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"action_uid","in":"path","required":true,"schema":{"type":"string","title":"Action Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/mitigation-plans/{plan_uid}/milestones":{"post":{"tags":["Risk Registry","Risk Registry"],"summary":"Create a milestone under a mitigation plan","operationId":"create_milestone_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__milestones_post","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MilestoneCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MilestoneResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Risk Registry","Risk Registry"],"summary":"List milestones for a mitigation plan","operationId":"list_milestones_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__milestones_get","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MilestoneResponse"},"title":"Response List Milestones Risk Registry Clients  Client Uid  Risks  Risk Uid  Mitigation Plans  Plan Uid  Milestones Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/mitigation-plans/{plan_uid}/milestones/{milestone_uid}":{"get":{"tags":["Risk Registry","Risk Registry"],"summary":"Get a milestone by UID","operationId":"get_milestone_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__milestones__milestone_uid__get","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"milestone_uid","in":"path","required":true,"schema":{"type":"string","title":"Milestone Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MilestoneResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Risk Registry","Risk Registry"],"summary":"Update a milestone","operationId":"update_milestone_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__milestones__milestone_uid__patch","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"milestone_uid","in":"path","required":true,"schema":{"type":"string","title":"Milestone Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MilestoneUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MilestoneResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Risk Registry","Risk Registry"],"summary":"Delete a milestone","operationId":"delete_milestone_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__milestones__milestone_uid__delete","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"milestone_uid","in":"path","required":true,"schema":{"type":"string","title":"Milestone Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/mitigation-plans/{plan_uid}/milestones/{milestone_uid}/status":{"patch":{"tags":["Risk Registry","Risk Registry"],"summary":"Change a milestone's status","description":"Apply a milestone status transition.\n\nSide effects (see ``_status_side_effects``):\n    → completed: completed_at auto-set (server time), completion_notes stored\n    → blocked: blocker_reason stored\n    → any other status: completed_at/completion_notes/blocker_reason cleared\n\nReturns 409 when the parent plan is completed or cancelled.","operationId":"change_milestone_status_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__milestones__milestone_uid__status_patch","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"milestone_uid","in":"path","required":true,"schema":{"type":"string","title":"Milestone Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MilestoneStatusChangeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MilestoneResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/mitigation-plans/{plan_uid}/actions/{action_uid}/attachments":{"post":{"tags":["Risk Registry","Risk Registry"],"summary":"Upload an attachment to a mitigation plan action","operationId":"upload_action_attachment_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__actions__action_uid__attachments_post","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"action_uid","in":"path","required":true,"schema":{"type":"string","title":"Action Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_action_attachment_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__actions__action_uid__attachments_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Risk Registry","Risk Registry"],"summary":"List attachments for a mitigation plan action","operationId":"list_action_attachments_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__actions__action_uid__attachments_get","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"action_uid","in":"path","required":true,"schema":{"type":"string","title":"Action Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AttachmentResponse"},"title":"Response List Action Attachments Risk Registry Clients  Client Uid  Risks  Risk Uid  Mitigation Plans  Plan Uid  Actions  Action Uid  Attachments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/mitigation-plans/{plan_uid}/actions/{action_uid}/attachments/{attachment_uid}/download":{"get":{"tags":["Risk Registry","Risk Registry"],"summary":"Download an attachment from a mitigation plan action","operationId":"download_action_attachment_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__actions__action_uid__attachments__attachment_uid__download_get","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"action_uid","in":"path","required":true,"schema":{"type":"string","title":"Action Uid"}},{"name":"attachment_uid","in":"path","required":true,"schema":{"type":"string","title":"Attachment Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/octet-stream":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/risks/{risk_uid}/mitigation-plans/{plan_uid}/actions/{action_uid}/attachments/{attachment_uid}":{"delete":{"tags":["Risk Registry","Risk Registry"],"summary":"Delete an attachment from a mitigation plan action","operationId":"delete_action_attachment_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__actions__action_uid__attachments__attachment_uid__delete","parameters":[{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"plan_uid","in":"path","required":true,"schema":{"type":"string","title":"Plan Uid"}},{"name":"action_uid","in":"path","required":true,"schema":{"type":"string","title":"Action Uid"}},{"name":"attachment_uid","in":"path","required":true,"schema":{"type":"string","title":"Attachment Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/registries/{registry_uid}/statuses":{"get":{"tags":["Risk Registry","Risk Registry"],"summary":"List status options for a registry","description":"List all status options configured for a registry, optionally filtered by step.","operationId":"list_statuses_risk_registry_registries__registry_uid__statuses_get","parameters":[{"name":"registry_uid","in":"path","required":true,"schema":{"type":"string","title":"Registry Uid"}},{"name":"workflow_step_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by workflow step name","title":"Workflow Step Name"},"description":"Filter by workflow step name"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StatusResponse"},"title":"Response List Statuses Risk Registry Registries  Registry Uid  Statuses Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Risk Registry","Risk Registry"],"summary":"Create a status option","description":"Create a new status option linked to a workflow step.","operationId":"create_status_risk_registry_registries__registry_uid__statuses_post","parameters":[{"name":"registry_uid","in":"path","required":true,"schema":{"type":"string","title":"Registry Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/registries/{registry_uid}/statuses/{status_id}":{"put":{"tags":["Risk Registry","Risk Registry"],"summary":"Update a status option","description":"Update label, color, or order of a status. workflow_step_name cannot be changed.","operationId":"update_status_risk_registry_registries__registry_uid__statuses__status_id__put","parameters":[{"name":"registry_uid","in":"path","required":true,"schema":{"type":"string","title":"Registry Uid"}},{"name":"status_id","in":"path","required":true,"schema":{"type":"string","title":"Status Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Risk Registry","Risk Registry"],"summary":"Delete a status option","description":"Delete a status option. Fails if it is the last one for its step or assigned to any risks.","operationId":"delete_status_risk_registry_registries__registry_uid__statuses__status_id__delete","parameters":[{"name":"registry_uid","in":"path","required":true,"schema":{"type":"string","title":"Registry Uid"}},{"name":"status_id","in":"path","required":true,"schema":{"type":"string","title":"Status Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/severity-thresholds":{"post":{"tags":["Risk Registry","Risk Registry"],"summary":"Create a severity threshold config for a client","operationId":"create_severity_threshold_config_risk_registry_clients__client_uid__severity_thresholds_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeverityThresholdConfigCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeverityThresholdConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Risk Registry","Risk Registry"],"summary":"Get severity threshold config for a client","operationId":"get_severity_threshold_config_risk_registry_clients__client_uid__severity_thresholds_get","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeverityThresholdConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Risk Registry","Risk Registry"],"summary":"Update severity threshold config for a client","operationId":"update_severity_threshold_config_risk_registry_clients__client_uid__severity_thresholds_put","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeverityThresholdConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeverityThresholdConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Risk Registry","Risk Registry"],"summary":"Delete severity threshold config for a client","operationId":"delete_severity_threshold_config_risk_registry_clients__client_uid__severity_thresholds_delete","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/registries/{registry_uid}/template-configs":{"get":{"tags":["Risk Registry","Risk Registry"],"summary":"Get notification template config for a registry","operationId":"get_template_configs_risk_registry_registries__registry_uid__template_configs_get","parameters":[{"name":"registry_uid","in":"path","required":true,"schema":{"type":"string","title":"Registry Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryTemplateConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/registries/{registry_uid}/template-configs/{category}":{"post":{"tags":["Risk Registry","Risk Registry"],"summary":"Add a template assignment to a notification category","operationId":"add_template_assignment_risk_registry_registries__registry_uid__template_configs__category__post","parameters":[{"name":"registry_uid","in":"path","required":true,"schema":{"type":"string","title":"Registry Uid"}},{"name":"category","in":"path","required":true,"schema":{"$ref":"#/components/schemas/NotificationCategory"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddTemplateAssignment"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryTemplateConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/registries/{registry_uid}/template-configs/{category}/{template_uid}":{"put":{"tags":["Risk Registry","Risk Registry"],"summary":"Update a template assignment in a notification category","operationId":"update_template_assignment_risk_registry_registries__registry_uid__template_configs__category___template_uid__put","parameters":[{"name":"registry_uid","in":"path","required":true,"schema":{"type":"string","title":"Registry Uid"}},{"name":"category","in":"path","required":true,"schema":{"$ref":"#/components/schemas/NotificationCategory"}},{"name":"template_uid","in":"path","required":true,"schema":{"type":"string","title":"Template Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTemplateAssignment"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistryTemplateConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Risk Registry","Risk Registry"],"summary":"Remove a template assignment from a notification category","operationId":"delete_template_assignment_risk_registry_registries__registry_uid__template_configs__category___template_uid__delete","parameters":[{"name":"registry_uid","in":"path","required":true,"schema":{"type":"string","title":"Registry Uid"}},{"name":"category","in":"path","required":true,"schema":{"$ref":"#/components/schemas/NotificationCategory"}},{"name":"template_uid","in":"path","required":true,"schema":{"type":"string","title":"Template Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/my-work/kpis":{"get":{"tags":["Risk Registry","Risk Registry"],"summary":"My Work KPI cards","operationId":"get_my_work_kpis_risk_registry_clients__client_uid__my_work_kpis_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Category"}},{"name":"category_condition","in":"query","required":false,"schema":{"type":"string","description":"AND = risk must have all selected categories; OR = any one is enough","default":"OR","title":"Category Condition"},"description":"AND = risk must have all selected categories; OR = any one is enough"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"include_hierarchy","in":"query","required":false,"schema":{"type":"boolean","description":"Include risks from the full company hierarchy","default":false,"title":"Include Hierarchy"},"description":"Include risks from the full company hierarchy"},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","description":"Include archived (aged-out closed) risks","default":false,"title":"Include Archived"},"description":"Include archived (aged-out closed) risks"},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyWorkKpisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/my-work/items":{"get":{"tags":["Risk Registry","Risk Registry"],"summary":"My Work risk table (tabbed, paginated)","operationId":"get_my_work_items_risk_registry_clients__client_uid__my_work_items_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Category"}},{"name":"category_condition","in":"query","required":false,"schema":{"type":"string","description":"AND = risk must have all selected categories; OR = any one is enough","default":"OR","title":"Category Condition"},"description":"AND = risk must have all selected categories; OR = any one is enough"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"include_hierarchy","in":"query","required":false,"schema":{"type":"boolean","description":"Include risks from the full company hierarchy","default":false,"title":"Include Hierarchy"},"description":"Include risks from the full company hierarchy"},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","description":"Include archived (aged-out closed) risks","default":false,"title":"Include Archived"},"description":"Include archived (aged-out closed) risks"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}},{"name":"view","in":"query","required":false,"schema":{"type":"string","default":"requires_action","title":"View"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_RiskResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/my-work/analytics":{"get":{"tags":["Risk Registry","Risk Registry"],"summary":"My Work sidebar analytics widgets","operationId":"get_my_work_analytics_risk_registry_clients__client_uid__my_work_analytics_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Category"}},{"name":"category_condition","in":"query","required":false,"schema":{"type":"string","description":"AND = risk must have all selected categories; OR = any one is enough","default":"OR","title":"Category Condition"},"description":"AND = risk must have all selected categories; OR = any one is enough"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"include_hierarchy","in":"query","required":false,"schema":{"type":"boolean","description":"Include risks from the full company hierarchy","default":false,"title":"Include Hierarchy"},"description":"Include risks from the full company hierarchy"},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","description":"Include archived (aged-out closed) risks","default":false,"title":"Include Archived"},"description":"Include archived (aged-out closed) risks"},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyWorkAnalyticsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/dashboard/kpis":{"get":{"tags":["Risk Registry","Risk Registry"],"summary":"Portfolio Dashboard KPI cards and breakdown widgets","operationId":"get_dashboard_kpis_risk_registry_clients__client_uid__dashboard_kpis_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Category"}},{"name":"category_condition","in":"query","required":false,"schema":{"type":"string","description":"AND = risk must have all selected categories; OR = any one is enough","default":"OR","title":"Category Condition"},"description":"AND = risk must have all selected categories; OR = any one is enough"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"include_hierarchy","in":"query","required":false,"schema":{"type":"boolean","description":"Include risks from the full company hierarchy","default":false,"title":"Include Hierarchy"},"description":"Include risks from the full company hierarchy"},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","description":"Include archived (aged-out closed) risks","default":false,"title":"Include Archived"},"description":"Include archived (aged-out closed) risks"},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardKpisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/reports/risk-register":{"get":{"tags":["Risk Registry","Risk Registry"],"summary":"Download the Risk Register report as PDF","description":"Full risk register as a PDF: severity-coloured summary table plus one\nintake worksheet page per risk (and per mitigation plan). Accepts the same\nfilters/hierarchy scope as the register list, so an export always matches\nwhat the user sees in the UI.","operationId":"get_risk_register_report_risk_registry_clients__client_uid__reports_risk_register_get","parameters":[{"name":"compare_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Prior reporting-period date (ISO 8601) for the 'change from prior' column; scores come from the risk version history","title":"Compare To"},"description":"Prior reporting-period date (ISO 8601) for the 'change from prior' column; scores come from the risk version history"},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by risk category","title":"Category"},"description":"Filter by risk category"},{"name":"category_condition","in":"query","required":false,"schema":{"type":"string","description":"AND = risk must have all selected categories; OR = any one is enough","default":"OR","title":"Category Condition"},"description":"AND = risk must have all selected categories; OR = any one is enough"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by status option id(s)","title":"Status"},"description":"Filter by status option id(s)"},{"name":"owner","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by owner UID(s)","title":"Owner"},"description":"Filter by owner UID(s)"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-text search over title/description","title":"Search"},"description":"Free-text search over title/description"},{"name":"score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":25,"minimum":1},{"type":"null"}],"title":"Score Min"}},{"name":"score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":25,"minimum":1},{"type":"null"}],"title":"Score Max"}},{"name":"score_basis","in":"query","required":false,"schema":{"enum":["both","inherent","residual"],"type":"string","description":"Which score score_min/score_max are compared against","default":"both","title":"Score Basis"},"description":"Which score score_min/score_max are compared against"},{"name":"impact","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Exact impact value filter","title":"Impact"},"description":"Exact impact value filter"},{"name":"likelihood","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Exact likelihood value filter","title":"Likelihood"},"description":"Exact likelihood value filter"},{"name":"include_hierarchy","in":"query","required":false,"schema":{"type":"boolean","description":"Include risks from ancestor and descendant companies","default":false,"title":"Include Hierarchy"},"description":"Include risks from ancestor and descendant companies"},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","description":"Include archived (aged-out closed) risks","default":false,"title":"Include Archived"},"description":"Include archived (aged-out closed) risks"},{"name":"sort_by","in":"query","required":false,"schema":{"enum":["inherent_score","residual_score","title","category"],"type":"string","description":"Register row ordering","default":"inherent_score","title":"Sort By"},"description":"Register row ordering"},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","description":"Sort direction","default":"desc","title":"Sort Dir"},"description":"Sort direction"},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/pdf":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-registry/clients/{client_uid}/reports/risk-dashboard":{"get":{"tags":["Risk Registry","Risk Registry"],"summary":"Download the Enterprise Risk dashboard report as PDF","description":"Portfolio dashboard (and, on demand, the authenticated user's My Work\nview) rendered as a single PDF. The data comes from the exact handlers\nthat power the dashboard endpoints, so filters shift the numbers exactly\nas they do in the UI.","operationId":"get_risk_dashboard_report_risk_registry_clients__client_uid__reports_risk_dashboard_get","parameters":[{"name":"include_my_work","in":"query","required":false,"schema":{"type":"boolean","description":"Append the My Work section for the authenticated user","default":false,"title":"Include My Work"},"description":"Append the My Work section for the authenticated user"},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Category"}},{"name":"category_condition","in":"query","required":false,"schema":{"type":"string","description":"AND = risk must have all selected categories; OR = any one is enough","default":"OR","title":"Category Condition"},"description":"AND = risk must have all selected categories; OR = any one is enough"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Single status option id filter","title":"Status"},"description":"Single status option id filter"},{"name":"include_hierarchy","in":"query","required":false,"schema":{"type":"boolean","description":"Include risks from child entities (subsidiaries)","default":true,"title":"Include Hierarchy"},"description":"Include risks from child entities (subsidiaries)"},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/pdf":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/dashboard-layouts/{dashboard_id}":{"get":{"tags":["Dashboard Layouts"],"summary":"Get a user's dashboard layout (or preset fallback)","description":"Return the user's saved layout for a dashboard, or the preset default.\n\n404 on no override AND no preset; 409 if the stored blob is a legacy shape\nthat no longer validates (future version-bump protection).","operationId":"get_dashboard_layout_clients__client_uid__dashboard_layouts__dashboard_id__get","parameters":[{"name":"dashboard_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*(\\.[a-z0-9]+(-[a-z0-9]+)*)?$","description":"Dashboard id: kebab-case surface(.page)?","title":"Dashboard Id"},"description":"Dashboard id: kebab-case surface(.page)?"},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardLayoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Dashboard Layouts"],"summary":"Save a dashboard layout (full-document replace)","description":"Create or replace the user's layout for a dashboard (PUT semantics).\n\nStructural validation is in the document model; policy caps are enforced\nhere (widget count, config/document size).","operationId":"put_dashboard_layout_clients__client_uid__dashboard_layouts__dashboard_id__put","parameters":[{"name":"dashboard_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*(\\.[a-z0-9]+(-[a-z0-9]+)*)?$","description":"Dashboard id: kebab-case surface(.page)?","title":"Dashboard Id"},"description":"Dashboard id: kebab-case surface(.page)?"},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetDashboardDocument"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardLayoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Dashboard Layouts"],"summary":"Reset a dashboard layout to preset (soft delete)","description":"Soft-delete the user's layout — next GET falls back to preset. Idempotent.","operationId":"delete_dashboard_layout_clients__client_uid__dashboard_layouts__dashboard_id__delete","parameters":[{"name":"dashboard_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*(\\.[a-z0-9]+(-[a-z0-9]+)*)?$","description":"Dashboard id: kebab-case surface(.page)?","title":"Dashboard Id"},"description":"Dashboard id: kebab-case surface(.page)?"},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard-layout-presets/{dashboard_id}":{"get":{"tags":["Dashboard Layouts"],"summary":"Get a system preset layout for a dashboard (by preset_key)","description":"Return a system preset for a dashboard_id by preset_key. 404 if unknown.\n\nRead-only: serves an in-code constant and takes no repository dependency,\nso a persona preview can never write or clobber user storage. Omitting\n``preset_key`` (or passing ``default``) returns the product starter —\nbyte-identical to the previous no-parameter behavior.","operationId":"get_dashboard_layout_preset_dashboard_layout_presets__dashboard_id__get","parameters":[{"name":"dashboard_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*(\\.[a-z0-9]+(-[a-z0-9]+)*)?$","description":"Dashboard id: kebab-case surface(.page)?","title":"Dashboard Id"},"description":"Dashboard id: kebab-case surface(.page)?"},{"name":"preset_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque preset key. Omit or 'default' → product starter layout. Persona keys: ceo, cfo, ciso, board, auditor. Unknown key → 404.","title":"Preset Key"},"description":"Opaque preset key. Omit or 'default' → product starter layout. Persona keys: ceo, cfo, ciso, board, auditor. Unknown key → 404."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetDashboardDocument"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard-widget-catalog":{"get":{"tags":["Dashboard Layouts"],"summary":"List placeable widget types (backend-owned catalog)","description":"Backend-owned widget catalog — identity, governance, size envelopes.\n\nAuth-only (names/metadata are not sensitive): the picker renders lock\nstates from ``required_capability`` client-side; enforcement happens\non PUT via the same GRANTS lookup as the endpoint gate.","operationId":"get_dashboard_widget_catalog_dashboard_widget_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetCatalogResponse"}}}}}}},"/clients/{client_uid}/recommendations/exclusions":{"get":{"tags":["Recommendations"],"summary":"Get Recommendation Exclusions","description":"List explicit selections; inherited descendants are resolved during generation.","operationId":"get_recommendation_exclusions_clients__client_uid__recommendations_exclusions_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/RecommendationExclusionSortBy","default":"node_type"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_RecommendationExclusion_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Recommendations"],"summary":"Put Recommendation Exclusions","description":"Atomically replace all explicit selections. Empty exclusions clears the configuration.","operationId":"put_recommendation_exclusions_clients__client_uid__recommendations_exclusions_put","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendationExclusionsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_RecommendationExclusion_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]}},"/clients/{client_uid}/control-sets/{set_uid}/recommendations/generate":{"post":{"tags":["Recommendations"],"summary":"Generate Recommendations","description":"Generate independently ranked tables for an authorized advisor's selected set.\n\nAuthorization: system client admin plus control-set access and active\nmembership in the URL client. Empty sets and clients not on the taxonomy\nscheme return 422 with reason codes. A v1 client whose residual risk\ncannot be computed returns the same 409 the dashboard returns.","operationId":"generate_recommendations_clients__client_uid__control_sets__set_uid__recommendations_generate_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRecommendationsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendationsResponse"}}}},"422":{"description":"Not ready (EMPTY_CONTROL_SET, TAXONOMY_MIGRATION_REQUIRED) or request validation errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendationGenerationErrorResponse"}}}},"409":{"description":"The client's v1 residual risk cannot be computed (v1_residual_unavailable)."}}}},"/recommendations/exclusions/global":{"get":{"tags":["Recommendations"],"summary":"Get Global Recommendation Exclusions","description":"Platform-wide standing exclusions — super admins only.","operationId":"get_global_recommendation_exclusions_recommendations_exclusions_global_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_RecommendationExclusion_"}}}}}},"put":{"tags":["Recommendations"],"summary":"Put Global Recommendation Exclusions","description":"Atomically replace the complete platform-wide selection set.","operationId":"put_global_recommendation_exclusions_recommendations_exclusions_global_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendationExclusionsUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_RecommendationExclusion_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflow/approve":{"get":{"tags":["Email Actions","Email Actions"],"summary":"Validate approval token","description":"Validate an approval token (for the confirmation page).\n\nThis endpoint is called when a user clicks an approval link in an email.\nReturns token details so the frontend can show a confirmation page.","operationId":"validate_approval_token_workflow_approve_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenValidationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Email Actions","Email Actions"],"summary":"Confirm approval via token","description":"Confirm an approval using an email token.\n\nThis is the 2-step confirmation: user clicks link (GET), sees confirmation page,\nthen clicks confirm (POST).","operationId":"confirm_approval_token_workflow_approve_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowActionResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflow/reject":{"get":{"tags":["Email Actions","Email Actions"],"summary":"Validate rejection token","description":"Validate a rejection token (for the rejection page).\n\nReturns token details so the frontend can show a rejection form\nwhere the user can enter a reason.","operationId":"validate_rejection_token_workflow_reject_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenValidationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Email Actions","Email Actions"],"summary":"Confirm rejection via token","description":"Confirm a rejection using an email token.\n\nUser must provide a reason for the rejection.","operationId":"confirm_rejection_token_workflow_reject_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRejectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowActionResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflow/s/{token_id}":{"get":{"tags":["Email Actions","Email Actions"],"summary":"Approval shortlink","description":"Entry point for approval links embedded in notification emails.\n\nPerforms three checks before redirecting to the frontend approval screen:\n1. Authentication — unauthenticated users are sent to the login page with a\n   ``returnUrl`` so they land back here after signing in.\n2. Token validity — expired, used, or tampered tokens are rejected with 400.\n3. User-token binding + RACI role — the token must have been issued to the\n   logged-in user, and that user must still hold a required RACI role on the\n   risk.  Returns 403 otherwise.","operationId":"approval_shortlink_workflow_s__token_id__get","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}}],"responses":{"307":{"description":"Successful Response"},"302":{"description":"Redirect to login (unauthenticated) or approval screen (authorised)"},"400":{"description":"Token invalid, expired, or already used"},"403":{"description":"Token issued for a different user, or user lacks required RACI role"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/message-templates":{"post":{"tags":["MessageTemplates"],"summary":"Create Message Template","description":"Create a system-level notification template. Alias must be globally unique.","operationId":"create_message_template_message_templates_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageTemplateCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["MessageTemplates"],"summary":"List Message Templates","description":"List active system notification templates.","operationId":"list_message_templates_message_templates_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}},{"name":"alias","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alias"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_MessageTemplateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/templates/{uid}":{"get":{"tags":["MessageTemplates"],"summary":"Get Message Template","description":"Get a single system notification template by UID.","operationId":"get_message_template_templates__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["MessageTemplates"],"summary":"Update Message Template","description":"Update a system notification template.","operationId":"update_message_template_templates__uid__put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageTemplateUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["MessageTemplates"],"summary":"Delete Message Template","description":"Soft-delete a system notification template.","operationId":"delete_message_template_templates__uid__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications":{"get":{"tags":["Notifications"],"summary":"List Notifications","description":"The person's inbox, newest first; dismissed records only with ``include_dismissed``.","operationId":"list_notifications_notifications_get","parameters":[{"name":"include_dismissed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Dismissed"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_UserNotificationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/{id}":{"patch":{"tags":["Notifications"],"summary":"Update Notification","description":"Set one record's read or dismissed flag.","operationId":"update_notification_notifications__id__patch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","examples":["0123456789ABCDEFGHIJKLMNOP"],"title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNotificationUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/dismiss":{"post":{"tags":["Notifications"],"summary":"Bulk Dismiss Notifications","description":"Dismiss every shown record (``filter=all``) or only the read ones (``filter=read``).","operationId":"bulk_dismiss_notifications_notifications_dismiss_post","parameters":[{"name":"filter","in":"query","required":false,"schema":{"enum":["all","read"],"type":"string","default":"all","title":"Filter"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDismissResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/{notification_id}/dismiss":{"post":{"tags":["Notifications"],"summary":"Dismiss Notification","description":"Hide one record; ``include_dismissed=true`` still lists it.","operationId":"dismiss_notification_notifications__notification_id__dismiss_post","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNotificationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/mark-all-read":{"post":{"tags":["Notifications"],"summary":"Mark All Read","description":"Mark every unread record read.","operationId":"mark_all_read_notifications_mark_all_read_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkAllReadResponse"}}}}}}},"/notification-preferences":{"get":{"tags":["Notifications"],"summary":"Get Notification Preferences","description":"The person's channel for each notification type; the defaults where none is stored.","operationId":"get_notification_preferences_notification_preferences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPreferencesResponse"}}}}}},"patch":{"tags":["Notifications"],"summary":"Update Notification Preferences","description":"Change the channel of the types named; the others keep theirs.","operationId":"update_notification_preferences_notification_preferences_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNotificationPreferencesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPreferencesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/message-templates":{"post":{"tags":["MessageTemplates"],"summary":"Create Client Message Template","description":"Create a client-specific template override. Alias must be unique within the client.","operationId":"create_client_message_template_clients__client_uid__message_templates_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageTemplateCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]},"get":{"tags":["MessageTemplates"],"summary":"List Client Message Templates","description":"List this client's own template overrides (does not include system templates).","operationId":"list_client_message_templates_clients__client_uid__message_templates_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}},{"name":"alias","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alias"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_MessageTemplateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/message-templates/merged":{"get":{"tags":["MessageTemplates"],"summary":"List Merged Message Templates","description":"List all system templates for this client with override status.\n\nEach entry includes ``is_override: true`` when the client has customised\nthat alias, ``false`` when the system default is shown unchanged.\nUseful for building a template management UI that highlights which\ntemplates have been customised.","operationId":"list_merged_message_templates_clients__client_uid__message_templates_merged_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}},{"name":"alias","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alias"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_MessageTemplateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/message-templates/effective/{alias}":{"get":{"tags":["MessageTemplates"],"summary":"Get Effective Message Template","description":"Resolve the active template for a given alias.\n\nReturns the client's own override if one exists, otherwise falls back to\nthe system template with the same alias.","operationId":"get_effective_message_template_clients__client_uid__message_templates_effective__alias__get","parameters":[{"name":"alias","in":"path","required":true,"schema":{"type":"string","title":"Alias"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/message-templates/{uid}":{"get":{"tags":["MessageTemplates"],"summary":"Get Client Message Template","description":"Get a single client-specific template by UID.","operationId":"get_client_message_template_clients__client_uid__message_templates__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["MessageTemplates"],"summary":"Update Client Message Template","description":"Update a client-specific template.","operationId":"update_client_message_template_clients__client_uid__message_templates__uid__put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageTemplateUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["MessageTemplates"],"summary":"Delete Client Message Template","description":"Soft-delete a client-specific template (reverts effective lookup to system default).","operationId":"delete_client_message_template_clients__client_uid__message_templates__uid__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/categories":{"get":{"tags":["Categories","Categories"],"summary":"List Categories","description":"List all active categories with control counts.","operationId":"list_categories_categories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CategoryResponse"},"type":"array","title":"Response List Categories Categories Get"}}}}}}},"/categories/{category_uid}":{"get":{"tags":["Categories","Categories"],"summary":"Get Category","description":"Get a single category with technique and risk category counts.","operationId":"get_category_categories__category_uid__get","parameters":[{"name":"category_uid","in":"path","required":true,"schema":{"type":"string","title":"Category Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Categories","Categories"],"summary":"Update Category","description":"Update a category (creates new version node).","operationId":"update_category_categories__category_uid__patch","parameters":[{"name":"category_uid","in":"path","required":true,"schema":{"type":"string","title":"Category Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/categories/{category_uid}/techniques":{"post":{"tags":["Categories","Categories"],"summary":"Link Techniques","description":"Link one or more techniques to a category via MITIGATES edges.","operationId":"link_techniques_categories__category_uid__techniques_post","parameters":[{"name":"category_uid","in":"path","required":true,"schema":{"type":"string","title":"Category Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkTechniquesRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkTechniqueResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Categories","Categories"],"summary":"List Category Techniques","description":"List all techniques linked to a category.","operationId":"list_category_techniques_categories__category_uid__techniques_get","parameters":[{"name":"category_uid","in":"path","required":true,"schema":{"type":"string","title":"Category Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TechniqueEntry"},"title":"Response List Category Techniques Categories  Category Uid  Techniques Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/categories/{category_uid}/techniques/{technique_uid}":{"delete":{"tags":["Categories","Categories"],"summary":"Unlink Technique","description":"Remove a MITIGATES edge between a category and a technique.","operationId":"unlink_technique_categories__category_uid__techniques__technique_uid__delete","parameters":[{"name":"category_uid","in":"path","required":true,"schema":{"type":"string","title":"Category Uid"}},{"name":"technique_uid","in":"path","required":true,"schema":{"type":"string","title":"Technique Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/intel/named-vulnerabilities":{"post":{"tags":["NamedVuln","NamedVuln"],"summary":"Create","operationId":"create_admin_intel_named_vulnerabilities_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NamedVulnerabilityCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NamedVulnerabilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["NamedVuln","NamedVuln"],"summary":"List All","operationId":"list_all_admin_intel_named_vulnerabilities_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NamedVulnerabilityResponse"},"title":"Response List All Admin Intel Named Vulnerabilities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/intel/named-vulnerabilities/{uid}":{"get":{"tags":["NamedVuln","NamedVuln"],"summary":"Get One","operationId":"get_one_admin_intel_named_vulnerabilities__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NamedVulnerabilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["NamedVuln","NamedVuln"],"summary":"Update","operationId":"update_admin_intel_named_vulnerabilities__uid__patch","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NamedVulnerabilityUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NamedVulnerabilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["NamedVuln","NamedVuln"],"summary":"Delete","operationId":"delete_admin_intel_named_vulnerabilities__uid__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/intel/named-vulnerabilities/bulk-upsert":{"post":{"tags":["NamedVuln","NamedVuln"],"summary":"Bulk Upsert","operationId":"bulk_upsert_admin_intel_named_vulnerabilities_bulk_upsert_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NamedVulnerabilityBulkUpsertRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NamedVulnerabilityBulkUpsertResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/intel/named-vulnerabilities/{uid}/cves":{"post":{"tags":["NamedVuln","NamedVuln"],"summary":"Attach Cves","operationId":"attach_cves_admin_intel_named_vulnerabilities__uid__cves_post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachCvesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachCvesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/intel/named-vulnerabilities/{uid}/cves/{cve_id}":{"delete":{"tags":["NamedVuln","NamedVuln"],"summary":"Detach Cve","operationId":"detach_cve_admin_intel_named_vulnerabilities__uid__cves__cve_id__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}},{"name":"cve_id","in":"path","required":true,"schema":{"type":"string","title":"Cve Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{control_set_uid}/spending/by-category":{"get":{"tags":["Spending"],"summary":"Get Spending By Category","description":"Spending broken down by control category for a given control set.","operationId":"get_spending_by_category_clients__client_uid__control_sets__control_set_uid__spending_by_category_get","parameters":[{"name":"control_set_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Set Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpendingByCategory"},"title":"Response Get Spending By Category Clients  Client Uid  Control Sets  Control Set Uid  Spending By Category Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{control_set_uid}/spending/by-tactic":{"get":{"tags":["Spending"],"summary":"Get Spending By Tactic","description":"Spending broken down by MITRE ATT&CK tactic for a given control set.","operationId":"get_spending_by_tactic_clients__client_uid__control_sets__control_set_uid__spending_by_tactic_get","parameters":[{"name":"control_set_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Set Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpendingByTactic"},"title":"Response Get Spending By Tactic Clients  Client Uid  Control Sets  Control Set Uid  Spending By Tactic Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{control_set_uid}/spending/by-risk-category":{"get":{"tags":["Spending"],"summary":"Get Spending By Risk Category","description":"Spending broken down by risk category for a given control set.","operationId":"get_spending_by_risk_category_clients__client_uid__control_sets__control_set_uid__spending_by_risk_category_get","parameters":[{"name":"control_set_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Set Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpendingByRiskCategory"},"title":"Response Get Spending By Risk Category Clients  Client Uid  Control Sets  Control Set Uid  Spending By Risk Category Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/trust-groups":{"post":{"tags":["Trust Groups"],"summary":"Create Trust Group","description":"Create a new trust group.\n\nadmin_access: SystemAdminAccess.","operationId":"create_trust_group_clients__client_uid__trust_groups_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrustGroupCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrustGroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]},"get":{"tags":["Trust Groups"],"summary":"List Trust Groups","description":"List trust groups that the client belongs to.\n\nclient_access: ClientAccess (via capability gate).","operationId":"list_trust_groups_clients__client_uid__trust_groups_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_TrustGroupResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/trust-groups/{trust_group_uid}":{"get":{"tags":["Trust Groups"],"summary":"Get Trust Group","description":"Get a single trust group by UID.\n\nclient_access: ClientAccess (via capability gate).","operationId":"get_trust_group_clients__client_uid__trust_groups__trust_group_uid__get","parameters":[{"name":"trust_group_uid","in":"path","required":true,"schema":{"type":"string","title":"Trust Group Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrustGroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Trust Groups"],"summary":"Update Trust Group","description":"Update a trust group's name/description.\n\nadmin_access: SystemAdminAccess.","operationId":"update_trust_group_clients__client_uid__trust_groups__trust_group_uid__patch","parameters":[{"name":"trust_group_uid","in":"path","required":true,"schema":{"type":"string","title":"Trust Group Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrustGroupUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrustGroupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Trust Groups"],"summary":"Delete Trust Group","description":"Soft-delete a trust group.\n\nadmin_access: SystemAdminAccess.","operationId":"delete_trust_group_clients__client_uid__trust_groups__trust_group_uid__delete","parameters":[{"name":"trust_group_uid","in":"path","required":true,"schema":{"type":"string","title":"Trust Group Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/trust-groups/{trust_group_uid}/members":{"post":{"tags":["Trust Groups"],"summary":"Add Member","description":"Add a client as member of a trust group.\n\nadmin_access: SystemAdminAccess.","operationId":"add_member_clients__client_uid__trust_groups__trust_group_uid__members_post","parameters":[{"name":"trust_group_uid","in":"path","required":true,"schema":{"type":"string","title":"Trust Group Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddMemberRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrustGroupMember"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Trust Groups"],"summary":"List Members","description":"List all members of a trust group.\n\nclient_access: ClientAccess (via capability gate).","operationId":"list_members_clients__client_uid__trust_groups__trust_group_uid__members_get","parameters":[{"name":"trust_group_uid","in":"path","required":true,"schema":{"type":"string","title":"Trust Group Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TrustGroupMember"},"title":"Response List Members Clients  Client Uid  Trust Groups  Trust Group Uid  Members Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/trust-groups/{trust_group_uid}/members/{member_client_uid}":{"delete":{"tags":["Trust Groups"],"summary":"Remove Member","description":"Remove a client from a trust group.\n\nadmin_access: SystemAdminAccess.","operationId":"remove_member_clients__client_uid__trust_groups__trust_group_uid__members__member_client_uid__delete","parameters":[{"name":"trust_group_uid","in":"path","required":true,"schema":{"type":"string","title":"Trust Group Uid"}},{"name":"member_client_uid","in":"path","required":true,"schema":{"type":"string","title":"Member Client Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/trust-groups/{trust_group_uid}/dashboard":{"get":{"tags":["Trust Groups"],"summary":"Get Dashboard","description":"Aggregated per-member analytics dashboard.\n\nclient_access: ClientAccess (via capability gate).\n\nUses the repository for trust group membership data and analytics\nreads in a single managed transaction.","operationId":"get_dashboard_clients__client_uid__trust_groups__trust_group_uid__dashboard_get","parameters":[{"name":"trust_group_uid","in":"path","required":true,"schema":{"type":"string","title":"Trust Group Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrustGroupDashboardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets":{"post":{"tags":["Control Sets"],"summary":"Create Control Set","operationId":"create_control_set_clients__client_uid__control_sets_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlSetCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlSetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]},"get":{"tags":["Control Sets"],"summary":"List Control Sets","operationId":"list_control_sets_clients__client_uid__control_sets_get","parameters":[{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Substring search on control set name","title":"Name"},"description":"Substring search on control set name"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_ControlSetResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{set_uid}":{"get":{"tags":["Control Sets"],"summary":"Get Control Set","operationId":"get_control_set_clients__client_uid__control_sets__set_uid__get","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlSetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Control Sets"],"summary":"Update Control Set","operationId":"update_control_set_clients__client_uid__control_sets__set_uid__patch","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"if-match","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optimistic-concurrency precondition: the expected control set version as a strong ETag, e.g. If-Match: \"3\". On mismatch the request is rejected with 412 and the current version is returned in X-Current-Version.","title":"If-Match"},"description":"Optimistic-concurrency precondition: the expected control set version as a strong ETag, e.g. If-Match: \"3\". On mismatch the request is rejected with 412 and the current version is returned in X-Current-Version."},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlSetUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlSetResponse"}}}},"412":{"description":"The If-Match version does not match the current control set version (optimistic-concurrency conflict). The current version is returned in the X-Current-Version response header."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Control Sets"],"summary":"Delete Control Set","description":"Soft-delete a control set (§3.11 fenced): tombstone + fan-out\nmigration_revision bump on every attached client, all in one tx.","operationId":"delete_control_set_clients__client_uid__control_sets__set_uid__delete","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"if-match","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optimistic-concurrency precondition: the expected control set version as a strong ETag, e.g. If-Match: \"3\". On mismatch the delete is rejected with 412 and the current version is returned in X-Current-Version. Omitting the header deletes unconditionally.","title":"If-Match"},"description":"Optimistic-concurrency precondition: the expected control set version as a strong ETag, e.g. If-Match: \"3\". On mismatch the delete is rejected with 412 and the current version is returned in X-Current-Version. Omitting the header deletes unconditionally."},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"responses":{"204":{"description":"Successful Response"},"412":{"description":"The If-Match version does not match the current control set version (optimistic-concurrency conflict). The current version is returned in the X-Current-Version response header."},"409":{"description":"The set is locked, or it is the default control set of active clients (default_control_set_delete_refused); choose another default for them first."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{set_uid}/restore":{"post":{"tags":["Control Sets"],"summary":"Restore Control Set","description":"Restore a soft-deleted control set (flips 'deleted' → 'active'\ntamper-evidently). A set deleted while ``locked`` is restored to ``active``.\n\nAuthorization: control_set:admin on the set (same as delete).\n\nFencing (§3.11 / Stage 2e.4b): restore-set enumeration exception —\nthe set has no active HAS_SET edges to enumerate at start of tx\n(it was deleted). Uses the retained-attachments enumeration path\n(edges regardless of ``detached_at``) so every previously-attached\nclient sees migration_revision bumped. All in one tx: on any\ndownstream failure, both the restore version-append and every\nrevision bump roll back.","operationId":"restore_control_set_clients__client_uid__control_sets__set_uid__restore_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{set_uid}/copy":{"post":{"tags":["Control Sets"],"summary":"Copy Control Set","description":"Copy a control set with all its implementations.\n\nCreates new ImplementationAnchors for each control in the source set.\nStandard controls get new implementations pointing to the same ControlAnchor.\nCustom controls are deep-copied (new ControlAnchor + ControlNode + ImplementationAnchor).\nMaturity, cost, coverage, notes are preserved on the copies.\n\nReturns 409 if target client already has a set with this name.\n\n`ClientWriteAccess` only checks the URL `client_uid` (the source\nclient). The body `target_client_uid` is the destination — a caller\nwith write on the source could otherwise copy material INTO a\nforeign tenant. Verified inline below. See IntrusionOps 2026 web\npen test §6.1.","operationId":"copy_control_set_clients__client_uid__control_sets__set_uid__copy_post","parameters":[{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyControlSetRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlSetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{set_uid}/controls/custom":{"post":{"tags":["Control Sets"],"summary":"Create Custom Control In Set","description":"Create a custom control and implement it in a set atomically.\n\niv.control_categories / iv.mitigated_technique_ids are snapshotted\nonto the new ImplementationNode (INV-2/INV-5) and IN_CATEGORY edges\nMERGEd from the new ImplementationAnchor (INV-3, EC-2). The\ntechnique list is resolved here via ``control_repo.resolve_techniques``\nso the repo stays free of cross-repo dependencies.\n\nTaxonomy-side classification: when the body\ncarries ``taxonomy_function_ids``, they are validated against the\nlive vocabulary (422 naming offenders), the technique snapshot is\nresolved under ``scheme=taxonomy_v1`` from those ids, and after the\ncreate they land as ``DELIVERS_FUNCTION`` overrides on the new\nimplementation — a custom control has no catalog ``MAPPED_TO``\nedges, so the override set IS its function classification. Both\nclassification inputs at once are a 422 (one snapshot, one\nderivation). The category flow is byte-identical when the field is\nabsent.","operationId":"create_custom_control_in_set_clients__client_uid__control_sets__set_uid__controls_custom_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomControlCreateInSet"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImplementedControlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{set_uid}/controls/custom/bulk":{"post":{"tags":["Control Sets"],"summary":"Create Custom Controls In Set Bulk","description":"Create many custom controls in a set in one request.\n\nReplaces the per-row ``POST .../controls/custom`` loop. Each row uses\nthe exact same validation and atomic create path as the single-create\nroute (``create_custom_control_in_set``); rows are independent, so one\nfailure doesn't abort the batch. ``capability_assessments`` rows are\ntier-gated once for the batch (same client) and key-validated per row\nagainst that row's own classification — function ids when the row\ncarries ``taxonomy_function_ids``, else categories (the single-route\nmembership rule). Taxonomy rows also mirror the single route's edge\nsemantics: ids validated against the live vocabulary, techniques\nresolved under the taxonomy scheme, and ``DELIVERS_FUNCTION``\noverrides written best-effort after each successful create.","operationId":"create_custom_controls_in_set_bulk_clients__client_uid__control_sets__set_uid__controls_custom_bulk_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomControlCreateInSet"},"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkCustomControlsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{set_uid}/controls/bulk":{"delete":{"tags":["Control Sets"],"summary":"Delete All Controls In Set","description":"Soft-delete every control implementation in a set (§3.11 fenced).\n\nReplaces the FE's raw ``fetch`` in delete-all-controls-modal so the\noperation is part of the OpenAPI contract / generated client.\n\nFencing: bulk tombstone + per-attached-client migration_revision\nbumps commit atomically via ``run_shared_set_fanout_write``.","operationId":"delete_all_controls_in_set_clients__client_uid__control_sets__set_uid__controls_bulk_delete","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteControlsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Client Controls"],"summary":"Bulk Add Controls","description":"Bulk add control implementations to a set (upsert by ``control_uid``).\n\nEach row is matched to any existing active implementation of the same\ncatalog control in the set: a match **updates** the spreadsheet fields\n(maturity / cost / coverage / categories / expiration / notes) on a new\nversion; a miss **creates** a new implementation. Duplicate\n``control_uid``s in one payload are collapsed last-row-wins so the\nwrite layer never sees two rows for the same control — except\n``capability_assessments``, which consolidates across ALL of the\ncontrol's rows by max per metric (tie-break at ingest: workbook\nrows are per-(product, capability) signal, and \"last row\" would\nsilently discard every capability but one).\n\nTaxonomy-side classification: a row may carry\n``taxonomy_function_ids`` instead of ``control_categories`` (both at\nonce fails that row). Ids validate against the live vocabulary; the\nset lands as ``DELIVERS_FUNCTION`` overrides after the row's write —\nthis is how the copy-controls flow preserves a source\nimplementation's function customization. Row-level failures follow\nthe bulk contract (``failed`` + ``detail``), never a whole-batch 4xx.","operationId":"bulk_add_controls_clients__client_uid__control_sets__set_uid__controls_bulk_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ImplementedControlCreate"},"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkAddControlsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{set_uid}/controls/{impl_uid}":{"delete":{"tags":["Control Sets"],"summary":"Remove Control From Set","description":"Soft-delete an implementation from a set (§3.11 fenced): tombstone\nthe implementation + bump migration_revision on every client attached\nto the containing set, all in one tx.","operationId":"remove_control_from_set_clients__client_uid__control_sets__set_uid__controls__impl_uid__delete","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"impl_uid","in":"path","required":true,"schema":{"type":"string","title":"Impl Uid"}},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Client Controls"],"summary":"Get Control","description":"Get a single control implementation.","operationId":"get_control_clients__client_uid__control_sets__set_uid__controls__impl_uid__get","parameters":[{"name":"impl_uid","in":"path","required":true,"schema":{"type":"string","title":"Impl Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImplementedControlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Client Controls"],"summary":"Update Control","description":"Update an implementation's metrics, its tags, its per-client\ncustomizations (``control_categories``), and — for custom controls —\nits catalog-level fields (``name``, ``description``, ``control_type``).\n\n``name``, ``description`` and ``control_type`` are catalog identity:\nthey live on ``ControlNode`` and may only be edited on custom controls; non-custom\nentries 422 — the gate is origin (``custom``), not curation state, so\nan unvetted catalog draft rejects too. ``control_categories`` is\nper-client customization\non ``ImplementationNode`` and may be edited on any control; the repo\nwriter derives ``mitigated_technique_ids`` from the new categories in\nthe same new-version write.\n\n``tag_uids`` (when present in the body) replaces the full tag set on\nthe implementation in one shot. Cross-client tag UIDs are silently\ndropped by the sync query.","operationId":"update_control_clients__client_uid__control_sets__set_uid__controls__impl_uid__patch","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"impl_uid","in":"path","required":true,"schema":{"type":"string","title":"Impl Uid"}},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImplementedControlUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImplementedControlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{set_uid}/controls/{impl_uid}/restore":{"post":{"tags":["Control Sets"],"summary":"Restore Control In Set","description":"Restore a tombstoned implementation back into its set.\n\nAppends a hashed un-deleted version onto the implementation's chain and\nreactivates it (the delete stays on the chain — history is never\nrewound). 404 when the implementation is not tombstoned under this set;\npre-tombstone legacy deletes are not restorable. Authorization and the\nlocked-set guard mirror the delete (restoring is a content mutation).\n\nFencing (§3.11 / Stage 2e.4b): the restore + per-attached-client\nmigration_revision bumps commit atomically in one tx. On any\nfailure (including the conflict path below via HTTPException in\nthe callback) the whole tx rolls back.","operationId":"restore_control_in_set_clients__client_uid__control_sets__set_uid__controls__impl_uid__restore_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"impl_uid","in":"path","required":true,"schema":{"type":"string","title":"Impl Uid"}},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{set_uid}/apply":{"post":{"tags":["Control Sets"],"summary":"Apply Set","description":"Attach a control set to ONE client (§3.11 single-client CAS).\n\n``apply_set_to_client`` targets exactly one client (via ``body.client_uid``);\nthere is no shared-set fan-out here. Uses ``run_client_fenced_write`` so\nthe HAS_SET edge + that client's migration_revision bump commit atomically.\nPost-commit materialisation stays in the session-owning wrapper contract —\nthe route calls it explicitly after the tx via the repo's non-fenced\nentry point on the happy path, but here we invoke the tx-aware primitive\ndirectly so we must trigger materialisation separately.","operationId":"apply_set_clients__client_uid__control_sets__set_uid__apply_post","parameters":[{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplySetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplySetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{set_uid}/detach":{"post":{"tags":["Control Sets"],"summary":"Detach Set","description":"Detach a control set from ONE client (§3.11 single-client CAS).\n\nSymmetric to apply_set: the HAS_SET edge is soft-closed on exactly one\nclient, so the fence is a single-client CAS not shared-set fan-out.","operationId":"detach_set_clients__client_uid__control_sets__set_uid__detach_post","parameters":[{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetachSetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetachSetResponse"}}}},"409":{"description":"The set is the client's default control set (default_control_set_detach_refused); choose another default first."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{set_uid}/clients":{"get":{"tags":["Control Sets"],"summary":"List Set Clients","operationId":"list_set_clients_clients__client_uid__control_sets__set_uid__clients_get","parameters":[{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ControlSetClientEntry"},"title":"Response List Set Clients Clients  Client Uid  Control Sets  Set Uid  Clients Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{set_uid}/default":{"patch":{"tags":["Control Sets"],"summary":"Set Default Control Set","operationId":"set_default_control_set_clients__client_uid__control_sets__set_uid__default_patch","parameters":[{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetDefaultControlSetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetDefaultControlSetResponse"}}}},"409":{"description":"The set is not attached to the client (control_set_not_attached); apply it first."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/orphans":{"get":{"tags":["Orphaned Controls"],"summary":"List All Pending Orphans","operationId":"list_all_pending_orphans_clients__client_uid__orphans_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_OrphanedControl_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/orphans/{target_client_uid}":{"get":{"tags":["Orphaned Controls"],"summary":"List Pending Orphans For Client","operationId":"list_pending_orphans_for_client_clients__client_uid__orphans__target_client_uid__get","parameters":[{"name":"target_client_uid","in":"path","required":true,"schema":{"type":"string","title":"Target Client Uid"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_OrphanedControl_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/orphans/{target_client_uid}/{control_uid}/resolve":{"post":{"tags":["Orphaned Controls"],"summary":"Resolve Orphan","operationId":"resolve_orphan_clients__client_uid__orphans__target_client_uid___control_uid__resolve_post","parameters":[{"name":"target_client_uid","in":"path","required":true,"schema":{"type":"string","title":"Target Client Uid"}},{"name":"control_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveOrphanRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveOrphanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/compliance/{standard_key}":{"get":{"tags":["Compliance"],"summary":"Get Compliance Detail","description":"Get detailed compliance for a single standard.\n\nAccepts both numeric key (e.g. \"3709\") and slug (e.g. \"nist_csf_v1_1\").\nReturns per-category breakdown in addition to summary metrics.\n\nAuthorization: User must be active in this client context or be a super admin.","operationId":"get_compliance_detail_clients__client_uid__compliance__standard_key__get","parameters":[{"name":"standard_key","in":"path","required":true,"schema":{"type":"string","title":"Standard Key"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardComplianceDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{control_set_uid}/standards/{standard_key}":{"get":{"tags":["Compliance"],"summary":"Get Standard Tree","operationId":"get_standard_tree_clients__client_uid__control_sets__control_set_uid__standards__standard_key__get","parameters":[{"name":"control_set_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Set Uid"}},{"name":"standard_key","in":"path","required":true,"schema":{"type":"string","title":"Standard Key"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardTreeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/benchmarks":{"get":{"tags":["Benchmarks"],"summary":"Get Benchmarks","description":"Get peer comparison benchmarks for a client.\n\nReturns percentile ranking across maturity, spend, loss probability,\nand defense score compared to all active clients on the platform.\n\nAuthorization: User must be active in this client context or be a super admin.","operationId":"get_benchmarks_clients__client_uid__benchmarks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BenchmarkResponse"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]}},"/clients/{client_uid}/vendors":{"post":{"tags":["Vendors"],"summary":"Create Vendor","description":"Create a new vendor.\n\nAuthorization: User must have client:write permission.","operationId":"create_vendor_clients__client_uid__vendors_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]},"get":{"tags":["Vendors"],"summary":"List Vendors","description":"List all active vendors with control counts.\n\nAuthorization: User must have client:read permission.","operationId":"list_vendors_clients__client_uid__vendors_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter vendors by name (case-insensitive contains)","title":"Search"},"description":"Filter vendors by name (case-insensitive contains)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_VendorResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/vendors/dashboard":{"get":{"tags":["Vendors"],"summary":"Vendor Dashboard","description":"Get vendor dashboard with control counts and costs.","operationId":"vendor_dashboard_clients__client_uid__vendors_dashboard_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter vendors by name (case-insensitive contains)","title":"Search"},"description":"Filter vendors by name (case-insensitive contains)"},{"name":"control_set_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to specific control set (defaults to company default)","title":"Control Set Uid"},"description":"Filter to specific control set (defaults to company default)"},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VendorDashboardItem"},"title":"Response Vendor Dashboard Clients  Client Uid  Vendors Dashboard Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/vendors/{vendor_uid}":{"get":{"tags":["Vendors"],"summary":"Get Vendor","description":"Get a single vendor with metadata.\n\nAuthorization: User must have client:read permission.","operationId":"get_vendor_clients__client_uid__vendors__vendor_uid__get","parameters":[{"name":"vendor_uid","in":"path","required":true,"schema":{"type":"string","title":"Vendor Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Vendors"],"summary":"Update Vendor","description":"Update vendor metadata (name, url, alt_names).\n\nAuthorization: User must have client:write permission.","operationId":"update_vendor_clients__client_uid__vendors__vendor_uid__patch","parameters":[{"name":"vendor_uid","in":"path","required":true,"schema":{"type":"string","title":"Vendor Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Vendors"],"summary":"Delete Vendor","description":"Soft delete a vendor (sets status to 'deleted').\n\nAuthorization: User must have client:write permission.","operationId":"delete_vendor_clients__client_uid__vendors__vendor_uid__delete","parameters":[{"name":"vendor_uid","in":"path","required":true,"schema":{"type":"string","title":"Vendor Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/vendors/{vendor_uid}/absorb":{"post":{"tags":["Vendors"],"summary":"Absorb Vendor","description":"Absorb another vendor into this one.\n\nMoves all controls from the absorbed vendor to this vendor,\noptionally adds the absorbed vendor's name as an alt name,\nthen soft-deletes the absorbed vendor.","operationId":"absorb_vendor_clients__client_uid__vendors__vendor_uid__absorb_post","parameters":[{"name":"vendor_uid","in":"path","required":true,"schema":{"type":"string","title":"Vendor Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorAbsorbRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/vendors/{vendor_uid}/engagement":{"get":{"tags":["Vendor Engagements"],"summary":"Get Vendor Engagement","description":"The client's engagement terms with one canonical vendor (404 = none yet).","operationId":"get_vendor_engagement_clients__client_uid__vendors__vendor_uid__engagement_get","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"vendor_uid","in":"path","required":true,"schema":{"type":"string","title":"Vendor Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorEngagementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Vendor Engagements"],"summary":"Put Vendor Engagement","description":"Full-terms replace (PUT): omitted fields clear on the new version.","operationId":"put_vendor_engagement_clients__client_uid__vendors__vendor_uid__engagement_put","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"vendor_uid","in":"path","required":true,"schema":{"type":"string","title":"Vendor Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorEngagementUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorEngagementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/controls/catalog-requests":{"get":{"tags":["Catalog Requests"],"summary":"List Catalog Requests","description":"Admin review queue: catalog add requests with filters and sorting.\n\nRepo returns WHERE-filtered rows only; sorting/pagination happen here\nvia ``ResultSet`` (Python-side is fine at admin scale).","operationId":"list_catalog_requests_controls_catalog_requests_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CatalogRequestStatus"},{"type":"null"}],"description":"Filter by request status","title":"Status"},"description":"Filter by request status"},{"name":"origin","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CatalogRequestIntakeOrigin"},{"type":"null"}],"description":"Filter by intake path (ingest vs enrichment pipeline)","title":"Origin"},"description":"Filter by intake path (ingest vs enrichment pipeline)"},{"name":"judge_verdict","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/JudgeVerdict"},{"type":"null"}],"description":"Filter by advisory judge verdict","title":"Judge Verdict"},"description":"Filter by advisory judge verdict"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Case-insensitive search over the display name and raw name variants","title":"Search"},"description":"Case-insensitive search over the display name and raw name variants"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_CatalogRequestResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/controls/catalog-requests/stats":{"get":{"tags":["Catalog Requests"],"summary":"Get Catalog Request Stats","description":"Per-status queue counts for the review badge.\n\nA dedicated endpoint because ``ListMeta`` is fixed — extra keys in the\nlist envelope's meta are silently dropped.","operationId":"get_catalog_request_stats_controls_catalog_requests_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogRequestStatsResponse"}}}}}}},"/controls/catalog-requests/{request_uid}":{"get":{"tags":["Catalog Requests"],"summary":"Get Catalog Request","description":"Admin detail view: full request state plus origin provenance edges.\n\nOrigins include controls already absorbed on approve/merge — the review\ntrail outlives absorption (repository contract).","operationId":"get_catalog_request_controls_catalog_requests__request_uid__get","parameters":[{"name":"request_uid","in":"path","required":true,"schema":{"type":"string","title":"Request Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogRequestDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/controls/catalog-requests/{request_uid}/approve":{"post":{"tags":["Catalog Requests"],"summary":"Approve Catalog Request","description":"Approve a pending request by creating a real catalog control.\n\nSequential orchestration: validate → create the catalog\ncontrol → atomically claim the request (compensating with a soft\ndelete when the claim loses a concurrent-review race) → best-effort\nvendor edge → absorb the origin custom controls → recompute\nbenchmarks once across everything touched → fire the item-3 (D4)\npromotion re-detection hook (advisory — the shared tail isolates any\nhook failure; it never blocks or rolls back the promotion).","operationId":"approve_catalog_request_controls_catalog_requests__request_uid__approve_post","parameters":[{"name":"request_uid","in":"path","required":true,"schema":{"type":"string","title":"Request Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogRequestApproveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogRequestApproveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/controls/catalog-requests/{request_uid}/merge":{"post":{"tags":["Catalog Requests"],"summary":"Merge Catalog Request","description":"Merge a pending request into an existing vetted catalog control.\n\nSame response shape as approve, with ``control_uid`` set\nto the merge target: guarded flip pending→merged + RESULTED_IN edge,\nthen the origin absorb loop into the target, one benchmarks\nrecompute, and the item-3 (D4) promotion re-detection hook (the\nshared tail — advisory; its isolated failures never break the\ncommitted promotion). The target must be an active, vetted, non-custom\ncatalog control — merging into a custom control is nonsense.","operationId":"merge_catalog_request_controls_catalog_requests__request_uid__merge_post","parameters":[{"name":"request_uid","in":"path","required":true,"schema":{"type":"string","title":"Request Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogRequestMergeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogRequestApproveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/controls/catalog-requests/{request_uid}/reject":{"post":{"tags":["Catalog Requests"],"summary":"Reject Catalog Request","description":"Reject a pending request with a mandatory reason.\n\nDenylist semantics: occurrence counters keep counting on the rejected\nrow, but it never resurfaces in the pending queue unless reopened.","operationId":"reject_catalog_request_controls_catalog_requests__request_uid__reject_post","parameters":[{"name":"request_uid","in":"path","required":true,"schema":{"type":"string","title":"Request Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogRequestRejectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/controls/catalog-requests/{request_uid}/reopen":{"post":{"tags":["Catalog Requests"],"summary":"Reopen Catalog Request","description":"Reopen a rejected request back into the review queue.\n\nThe repo transition clears review + judge output fields and resets\n``judge_status`` to 'pending' — that reset is the seam for re-judging;\nno judge\ndispatch happens here by design. Counters and origin edges are\nuntouched. Only valid from ``rejected`` (anything else → 409).","operationId":"reopen_catalog_request_controls_catalog_requests__request_uid__reopen_post","parameters":[{"name":"request_uid","in":"path","required":true,"schema":{"type":"string","title":"Request Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{set_uid}/controls/{implementation_uid}/catalog-request":{"post":{"tags":["Catalog Requests"],"summary":"Submit Consolidation Catalog Request","description":"Submit a catalog add request for an existing custom control.\n\nThe consolidation flow's 2c forward path: an active custom\nimplementation in the set whose anchor head has no catalog match\nbecomes an add request for platform review. Set-scoped write guard\n(``ControlSetWriteAccess``) — the same guard the set-scoped write\nroutes in ``client_controls.py`` use; the guard reads ``set_uid``\nfrom the path and the route passes ``set_access.scope`` as the\nguarded scope.\n\nOnly CUSTOM heads are submittable — a catalog control cannot be\nadded to the catalog (409 ``\"not a custom control: {anchor_uid}\"``).\nAn implementation not in the set, or an anchor with no live head,\nis a 404 (the route file's ``NotFound`` → ``err_to_http`` 404\nconvention). The response is the request state plus ``was_created``\n— dedupe is free via the normalized-key upsert: a repeat submission\n(same or different set/client) returns the SAME request with bumped\ncounters and the first-sighting ``origin``.","operationId":"submit_consolidation_catalog_request_clients__client_uid__control_sets__set_uid__controls__implementation_uid__catalog_request_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"implementation_uid","in":"path","required":true,"schema":{"type":"string","title":"Implementation Uid"}},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsolidationCatalogRequestCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogRequestOccurrenceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vendors/catalog":{"get":{"tags":["Vendor Catalog"],"summary":"List Vendor Catalog","description":"Global canonical-vendor catalog with curation filters.","operationId":"list_vendor_catalog_vendors_catalog_get","parameters":[{"name":"vetted","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Tri-state curation filter: omit = all, false includes legacy-null rows","title":"Vetted"},"description":"Tri-state curation filter: omit = all, false includes legacy-null rows"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Fulltext search over name and alt_names","title":"Search"},"description":"Fulltext search over name and alt_names"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_VendorResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vendors/resolve":{"get":{"tags":["Vendor Catalog"],"summary":"Resolve External Identity","description":"Crosswalk lookup: which canonical vendor owns an external identity.","operationId":"resolve_external_identity_vendors_resolve_get","parameters":[{"name":"source","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Source"}},{"name":"external_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"External Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorResolveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vendors/merge-candidates/stats":{"get":{"tags":["Vendor Catalog"],"summary":"Merge Candidate Stats","description":"Queue dashboard numbers: per-status totals + pending origins.","operationId":"merge_candidate_stats_vendors_merge_candidates_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorMergeStatsResponse"}}}}}}},"/vendors/merge-candidates":{"get":{"tags":["Vendor Catalog"],"summary":"List Merge Candidates","description":"Merge-review queue with filters; sorting/pagination route-side.","operationId":"list_merge_candidates_vendors_merge_candidates_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/VendorMergeStatus"},{"type":"null"}],"description":"Filter by review status","title":"Status"},"description":"Filter by review status"},{"name":"origin","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/VendorMergeOrigin"},{"type":"null"}],"description":"Filter by detection origin","title":"Origin"},"description":"Filter by detection origin"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_VendorMergeCandidateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vendors/merge-candidates/{candidate_uid}/merge":{"post":{"tags":["Vendor Catalog"],"summary":"Execute Merge Candidate","description":"Merge a candidate pair: claim the review, then absorb.\n\nOrchestration order (each step in its owning repository):\n\n1. Load the candidate (404) and validate ``survivor_uid`` is one of\n   the pair (422).\n2. Pre-validate both vendors are still active (409 otherwise — a\n   missing pair member usually means it was already absorbed).\n3. Guarded ``claim_merge`` — ``Ok(None)`` means a concurrent review\n   or terminal row → 409, nothing written.\n4. ``VendorRepository.absorb``: durable ``absorbed_into_uid``\n   redirect, survivor ``vetted`` OR-recompute, ``IDENTIFIED_BY``\n   re-point, alt-name preservation.\n\nThe claim/absorb pair is not atomic; step 2 shrinks the window to\nnear-zero for an admin-scale surface. An absorb failure after a\nsuccessful claim is surfaced as 500 with the remediation in the\ndetail (re-run absorb via the client-scoped endpoint).","operationId":"execute_merge_candidate_vendors_merge_candidates__candidate_uid__merge_post","parameters":[{"name":"candidate_uid","in":"path","required":true,"schema":{"type":"string","title":"Candidate Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorMergeExecuteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorMergeExecuteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vendors/merge-candidates/{candidate_uid}/dismiss":{"post":{"tags":["Vendor Catalog"],"summary":"Dismiss Merge Candidate","description":"Dismiss a candidate (terminal; the pair is, by human judgment,\ntwo different companies). Mandatory reason; 409 on concurrent review.","operationId":"dismiss_merge_candidate_vendors_merge_candidates__candidate_uid__dismiss_post","parameters":[{"name":"candidate_uid","in":"path","required":true,"schema":{"type":"string","title":"Candidate Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorMergeDismissRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorMergeCandidateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vendors/{vendor_uid}/vetted":{"patch":{"tags":["Vendor Catalog"],"summary":"Set Vendor Vetted","description":"Flip the curation flag on a canonical vendor.","operationId":"set_vendor_vetted_vendors__vendor_uid__vetted_patch","parameters":[{"name":"vendor_uid","in":"path","required":true,"schema":{"type":"string","title":"Vendor Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorVettedUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorVettedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vendors/{vendor_uid}/external-ids":{"get":{"tags":["Vendor Catalog"],"summary":"List External Identities","description":"A vendor's crosswalk bindings (bounded sub-resource, no envelope).","operationId":"list_external_identities_vendors__vendor_uid__external_ids_get","parameters":[{"name":"vendor_uid","in":"path","required":true,"schema":{"type":"string","title":"Vendor Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExternalIdentityResponse"},"title":"Response List External Identities Vendors  Vendor Uid  External Ids Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Vendor Catalog"],"summary":"Bind External Identity","description":"Bind an external identity to a canonical vendor.\n\n409 (``UniqueConflict`` via ``err_to_http``) when the identity is\nowned by another vendor; idempotent 201 when re-binding the same one.","operationId":"bind_external_identity_vendors__vendor_uid__external_ids_post","parameters":[{"name":"vendor_uid","in":"path","required":true,"schema":{"type":"string","title":"Vendor Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalIdentityBindRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalIdentityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Vendor Catalog"],"summary":"Unbind External Identity","description":"Remove a binding; the identity node is deleted when orphaned.","operationId":"unbind_external_identity_vendors__vendor_uid__external_ids_delete","parameters":[{"name":"vendor_uid","in":"path","required":true,"schema":{"type":"string","title":"Vendor Uid"}},{"name":"source","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Source"}},{"name":"external_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"External Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/taxonomy/functions":{"get":{"tags":["Taxonomy"],"summary":"List Taxonomy Functions","description":"The v1.0 function vocabulary — flat reference list.","operationId":"list_taxonomy_functions_taxonomy_functions_get","parameters":[{"name":"include_deprecated","in":"query","required":false,"schema":{"type":"boolean","description":"Include lifecycle-deprecated functions (kept for audit, hidden by default)","default":false,"title":"Include Deprecated"},"description":"Include lifecycle-deprecated functions (kept for audit, hidden by default)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_TaxonomyFunctionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/taxonomy/functions/{function_id}/controls":{"get":{"tags":["Taxonomy"],"summary":"List Controls For Function","description":"Catalog controls mapped to one function (facet drill-down).\n\nAn unknown or unmapped ``function_id`` returns ``[]``, not 404 —\nthe vocabulary list is the existence surface.","operationId":"list_controls_for_function_taxonomy_functions__function_id__controls_get","parameters":[{"name":"function_id","in":"path","required":true,"schema":{"type":"string","title":"Function Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FunctionControlResponse"},"title":"Response List Controls For Function Taxonomy Functions  Function Id  Controls Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/taxonomy/controls/{control_anchor_uid}/functions":{"get":{"tags":["Taxonomy"],"summary":"List Functions For Control","description":"Functions mapped to one control, with per-edge evidence.\n\nAn unmapped (or unknown) control returns ``[]`` — mapping absence\nis a normal pre-import state, not an error.","operationId":"list_functions_for_control_taxonomy_controls__control_anchor_uid__functions_get","parameters":[{"name":"control_anchor_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Anchor Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ControlFunctionMappingResponse"},"title":"Response List Functions For Control Taxonomy Controls  Control Anchor Uid  Functions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/taxonomy/controls/{control_anchor_uid}/enrichment":{"get":{"tags":["Taxonomy"],"summary":"Get Control Enrichment","description":"The control's enrichment sidecar, or ``null`` when not enriched.\n\n``null`` not 404 by design: 0..1 sidecar per control and \"not yet\nenriched\" is the steady state for most of the catalog — a 404 would\nforce every consumer to treat the common case as an error path.","operationId":"get_control_enrichment_taxonomy_controls__control_anchor_uid__enrichment_get","parameters":[{"name":"control_anchor_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Anchor Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ControlEnrichmentResponse"},{"type":"null"}],"title":"Response Get Control Enrichment Taxonomy Controls  Control Anchor Uid  Enrichment Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/taxonomy/review-queue":{"get":{"tags":["Taxonomy"],"summary":"List Enrichment Review Queue","description":"Sidecars flagged for curation attention.\n\nSurfaces removal recommendations and legacy/deprecated lifecycle\nsignals. Read-only: acting on a flag goes through the existing\ncontrol-anchor curation surfaces, never through enrichment writes\n(the importer owns the sidecar).","operationId":"list_enrichment_review_queue_taxonomy_review_queue_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_ControlEnrichmentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/taxonomy/coverage/{client_uid}":{"get":{"tags":["Taxonomy"],"summary":"Get Client Taxonomy Coverage","description":"On-demand flip-gate coverage for one client.\n\nComputed per request — never persisted, so it cannot go stale.\n404 when the client/set resolves to no implemented controls (a\ncoverage ratio over zero controls is meaningless, unlike the\nper-control reads where ``[]`` is a normal state).","operationId":"get_client_taxonomy_coverage_taxonomy_coverage__client_uid__get","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"control_set_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Control set to measure; omitted -> all active sets of the client (client-wide report)","title":"Control Set Uid"},"description":"Control set to measure; omitted -> all active sets of the client (client-wide report)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyCoverageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/taxonomy/parity/{client_uid}":{"get":{"tags":["Taxonomy"],"summary":"Get Client Taxonomy Parity","description":"Shadow-parity report for one client (flip-gate input).\n\nBoth resolver paths over the same implemented controls, diffed and\ntriaged: ``removed`` techniques block (crosswalk gap / mapping\nerror), ``added`` are non-blocking candidate improvements.\nCustomized implementations resolve their taxonomy side from\ntheir ``DELIVERS_FUNCTION`` override set when one exists (fully\ncomparable); those still WITHOUT an override set are flagged in\n``customized_control_uids`` and excluded from attribution — that\nlist is the write-the-overrides worklist. Computed per request —\nnever persisted (the coverage posture). 404 when the client/set\nresolves to no implemented controls.","operationId":"get_client_taxonomy_parity_taxonomy_parity__client_uid__get","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"control_set_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Control set to compare; omitted -> all active sets of the client (client-wide report)","title":"Control Set Uid"},"description":"Control set to compare; omitted -> all active sets of the client (client-wide report)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyParityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/taxonomy/flip-gate/{client_uid}":{"get":{"tags":["Taxonomy"],"summary":"Get Client Flip Gate","description":"The full flip decision for one client, in one call.\n\nCombines the two gate legs under the default thresholds\n(module constants in ``analytics/taxonomy_parity.py``):\n\n- **parity**: zero blocking divergences — no technique the\n  legacy path credits is lost under taxonomy;\n- **coverage**: mapped ratio ≥ ``min_coverage_ratio``;\n- **effective values**: per-capability\n  overrides survive the crosswalk re-key with identical effective\n  maturity/coverage per (control, technique). Clients without\n  overrides trivially pass. The crosswalk artifact failing to load\n  fails this leg loudly (a flip cannot be evaluated without the\n  re-key input) — unless no control carries overrides, in which\n  case there is nothing to re-key.\n\n``passes=true`` means every leg passes. The verdict is advisory:\nwhether the client can prepare or complete the flip is\n``GET /clients/{client_uid}/migration-readiness``. The\ncomponent fields say which leg failed and name the offending\ncontrols (blocking ⇒ fix mappings/crosswalk; unmapped ⇒ add\nmappings). Computed per request — never persisted. 404 when the\nclient/set resolves to no implemented controls.\n\n``coverage_classifications`` — the at-risk population's\nper-control coverage explanation (UNMAPPED/UNCATEGORIZED rows:\nstatus, unresolved categories with the 422-parity suggestions,\ncatalog suggestion). Server-computed via the shared lib\nclassifier; MAPPED rows are never emitted (the worklist summary\nalready counts them via ``coverage_ratio``). Explanation, never\ndecision — the verdict fields never read it.\n\nThe evaluation is shared with the flip previews (their advisory\n``readiness``) via ``_taxonomy_gate.evaluate_client_flip_gate``;\n``PATCH /clients/{uid}/taxonomy-scheme`` does not consult it.\n\n``evaluated_control_sets`` names the active sets the verdict\ncovers (all active sets, sorted) on client-wide evaluations, while\n``control_set_uid`` keeps its request-param echo (``None`` when the\nparam is omitted).\n\n``undecided_custom`` — the per-custom-anchor catalog-status\nadvisory (flywheel item 4, D5 — loud = undecided, quiet =\ndecided). Advisory only: a nudge, never a leg — the gate's verdict\nmath never reads it and the gate never 409s on it (a client with\nundecided customs still flips when the readiness legs pass).\nComputed client-wide in BOTH modes: the state machine is\nper-custom-anchor and loudness is a client-wide property, so a\nset-scoped evaluation still carries the client's full undecided\nsurface. ``per_set_offenders`` attributes each undecided anchor to\nevery active set implementing it (offender sets only, keys sorted).","operationId":"get_client_flip_gate_taxonomy_flip_gate__client_uid__get","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"control_set_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Control set to evaluate; omitted -> all active sets of the client (client-wide verdict)","title":"Control Set Uid"},"description":"Control set to evaluate; omitted -> all active sets of the client (client-wide verdict)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyFlipGateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/taxonomy/flip-blocker-triage/{client_uid}":{"get":{"tags":["Taxonomy"],"summary":"Get Client Flip Blocker Triage","description":"Why each blocking control loses techniques, and who owns the fix.\n\nClassifies every blocking control of the flip gate's parity leg\ninto the three root causes (spec: flip blocker triage): thin\nmapping (the vocabulary covers the lost technique via functions the\nproduct is not mapped to; mapping debt, with advisory greedy-cover\nsuggested functions), vocabulary gap (no function's mechanisms in\nthe ACTIVE fn mechanism mapping set cover the technique; pipeline\ndebt), and legacy over-grant (only category membership credits the\ntechnique and no well-mapped sibling corroborates it; the flip is\nhonest). Mixed rows carry the full per-technique breakdown so no\nevidence class is hidden.\n\nAccess matches ``GET /taxonomy/flip-gate`` (platform client admin);\nthe 404 semantics mirror it too (no implemented controls). The\nvocabulary scope (the client's v1 variant, else the platform\ndefault) is echoed in the response so a mis-scoped diagnosis is\nself-diagnosing; a missing set fails loud 500. Suggestions are\nADVISORY DATA ONLY in v1: this endpoint writes nothing. Computed\nper request, never persisted.","operationId":"get_client_flip_blocker_triage_taxonomy_flip_blocker_triage__client_uid__get","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyFlipBlockerTriageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/taxonomy/customization-summary":{"get":{"tags":["Taxonomy"],"summary":"Get Customization Summary","description":"Affected-population sizing for per-implementation customization.\n\nCounts live implementations whose ``control_categories`` diverge\nfrom the catalog head's — the population that cannot flip until the\nper-implementation override mechanism is decided (\"size affected\npopulation first\"). Empty graph is a normal state (zeros), not a\n404 — unlike the per-client reads, this is a global census.\nComputed per request, never persisted.","operationId":"get_customization_summary_taxonomy_customization_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyCustomizationSummaryResponse"}}}}}}},"/taxonomy/deprecated-mappings":{"get":{"tags":["Taxonomy"],"summary":"Get Deprecated Mappings","description":"Deprecated-function mapping audit, live as an admin read.\n\nLive controls still ``MAPPED_TO`` a ``deprecated`` function, PLUS\nthe per-implementation sibling: live implementations whose ``DELIVERS_FUNCTION``\noverrides target a deprecated function (``origin='override'`` —\nthose rows' ``control_anchor_uid`` carries the implementation\nanchor uid, and the fix lives on the tenant override surface, not\nthe admin mapping routes). Healthy graph ⇒ ``clean=true`` + empty\nlist. A hit means a function was deprecated (admin curation) while\nedges still point at it — the fix is curation: remap or retire via\n``PUT/DELETE /admin/taxonomy/controls/{uid}/mappings/{fn}`` or the\ntenant's override editor. ``origin`` says where each stale edge\ncame from (research = pipeline evidence, crosswalk = derived,\nmanual = prior curation, override = tenant customization) so the\ncurator knows how much evidence they are discarding. Computed per\nrequest, never persisted.","operationId":"get_deprecated_mappings_taxonomy_deprecated_mappings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeprecatedMappingsResponse"}}}}}}},"/taxonomy-variants":{"get":{"tags":["Taxonomy Variants"],"summary":"List Taxonomy Variants","description":"List all variants and identify the platform default.","operationId":"list_taxonomy_variants_taxonomy_variants_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_TaxonomyVariantResponse_"}}}}}},"post":{"tags":["Taxonomy Variants"],"summary":"Create Taxonomy Variant","description":"Create a globally fenced variant with immutable calculator knobs.","operationId":"create_taxonomy_variant_taxonomy_variants_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyVariantCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyVariantResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/taxonomy-variants/{uid}":{"get":{"tags":["Taxonomy Variants"],"summary":"Get Taxonomy Variant","description":"Return one variant with all immutable calculator knobs.","operationId":"get_taxonomy_variant_taxonomy_variants__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyVariantResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Taxonomy Variants"],"summary":"Update Taxonomy Variant","description":"Update display metadata while rejecting calculator-knob mutations.\n\nKnob edits are refused with 409, so this route only ever writes\n``display_name`` / ``description``. Those are outside the variant's\n``mutation_hash`` (see ``mtm_graph.core.variant_hash``), so the hash stays\nput and the write is not globally fenced: a rename changes nothing the\ncalculator or a migration snapshot reads, and must not invalidate\nno-coverage acknowledgments or prepared flips. (Stage 2e.4d-2b fenced it\nwhile display fields were still hashed.)","operationId":"update_taxonomy_variant_taxonomy_variants__uid__patch","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyVariantUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyVariantResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-config":{"get":{"tags":["Platform Configuration"],"summary":"Get Platform Config","description":"Return taxonomy defaults, including backward-compatible missing-node values.","operationId":"get_platform_config_platform_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformConfigResponse"}}}}}}},"/platform-config/default-taxonomy-scheme":{"put":{"tags":["Platform Configuration"],"summary":"Set Platform Default Taxonomy Scheme","description":"Set the scheme for new clients without globally fencing existing-client state.","operationId":"set_platform_default_taxonomy_scheme_platform_config_default_taxonomy_scheme_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformDefaultTaxonomySchemeUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-config/default-v1-variant":{"put":{"tags":["Platform Configuration"],"summary":"Set Platform Default V1 Variant","description":"Set the singleton platform fallback used by taxonomy-v1 calculations.","operationId":"set_platform_default_v1_variant_platform_config_default_v1_variant_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformDefaultVariantUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformDefaultVariantResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/consolidation/sweep":{"post":{"tags":["consolidation"],"summary":"Trigger Consolidation Sweep","description":"Dispatch one deterministic sweep run (the task is the worker of record).\n\nGuards: 422 for an over-cap explicit list or malformed body\n(validation); 502 when the broker rejects the dispatch (the\n``admin_enrichment`` precedent). The run_id is server-minted (uuid)\nunless the operator supplies one — the pipeline key\n(``consolidation-sweep:<run_id>``) is the idempotency boundary.","operationId":"trigger_consolidation_sweep_consolidation_sweep_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsolidationSweepRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsolidationSweepDispatched"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/consolidation/candidates":{"get":{"tags":["consolidation"],"summary":"List Consolidation Candidates","description":"List sweep findings (the admin review queue).\n\nFilters pass through to the repository; the ordering is FIXED\n(score desc, last_seen_at desc) — no free-form sort in layer 1, so\nthere is no sort whitelist and no silent fallback: the effective\nsort is surfaced in ``meta``. Pagination is Python-side over the\nordered result (house ``ResultSet`` pattern).","operationId":"list_consolidation_candidates_consolidation_candidates_get","parameters":[{"name":"client_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Client Uid"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ConsolidationCandidateStatus"},{"type":"null"}],"title":"Status"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MatchKind"},{"type":"null"}],"title":"Kind"}},{"name":"needs_review","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Needs Review"}},{"name":"min_score","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Min Score"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_ConsolidationCandidateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/consolidation/report":{"get":{"tags":["consolidation"],"summary":"Get Consolidation Report","description":"The operator's census over the store + the latest run's truncation flag.\n\n``truncated`` reflects the LATEST completed run's scope: ``True``\nwhen an all-clients run hit the 500-client cap with more active\nclients in the graph (the store then does NOT cover every client) —\n``False`` for explicit-scope runs and before the first run.","operationId":"get_consolidation_report_consolidation_report_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsolidationReportResponse"}}}}}}},"/custom-anchors/retirable":{"get":{"tags":["Custom Anchor Retirement"],"summary":"List Retirable Custom Anchors","description":"List retirable custom anchors (the admin's pending-decision population).\n\n\"Retirable\" (spec item 5, D6): ``custom = true`` anchors with zero\nACTIVE implementations — active sets (a locked set does not count),\n``impl.state IN ['direct','inherited']`` — and no\n``discontinued_at`` on the live head. Rows carry provenance\n(``client_uids`` = active clients whose sets ever contained an\nimpl pointing at the anchor) and usage ages.\n\nThe ordering is FIXED by the repository (name ASC, anchor uid ASC)\n— no free-form sort in layer 1, so the effective sort is surfaced\nin ``meta``. Pagination is Python-side over the ordered result\n(house ``to_page_envelope`` pattern).","operationId":"list_retirable_custom_anchors_custom_anchors_retirable_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_RetirableCustomAnchorRow_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/custom-anchors/{anchor_uid}/retire":{"post":{"tags":["Custom Anchor Retirement"],"summary":"Retire Custom Anchor","description":"Explicit platform-admin retire of a custom anchor (D6).\n\nVersion-pattern head write (the ``_tombstone.py`` pattern,\ndeprecation variant): a new head version carrying the current head\nforward, with ``discontinued_at`` set and the audit chain recorded\n(``changed_by`` = the acting admin, ``change_source = 'admin'``,\n``change_reason`` from the body). The anchor is NEVER deleted —\ndeprecation, never deletion; the catalog visibility filter drops\nthe retired head from catalog universes and history stays readable\nvia the SUPERSEDES chain.\n\nGuards (the repository re-checks inside the write transaction,\nrace-safe — refusal over any ambiguity):\n- 404 when the anchor is not in a retirable state (absent /\n  inactive / headless / non-custom head / already discontinued).\n- 409 with the offending impl uids when active implementations\n  still point at the anchor.","operationId":"retire_custom_anchor_custom_anchors__anchor_uid__retire_post","parameters":[{"name":"anchor_uid","in":"path","required":true,"schema":{"type":"string","title":"Anchor Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetireCustomAnchorRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetireCustomAnchorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/custom-controls/v1-mapping-candidates":{"get":{"tags":["Custom Control Migration"],"summary":"Get Custom Control Mapping Candidates","operationId":"get_custom_control_mapping_candidates_clients__client_uid__custom_controls_v1_mapping_candidates_get","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1MappingCandidatesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/custom-controls/{control_anchor_uid}/v1-mapping":{"post":{"tags":["Custom Control Migration"],"summary":"Accept Custom Control V1 Mapping","description":"Accept function mappings for a custom control (P4-T2).\n\nWhen ``control_anchor_uids`` is provided in the body, evidence is\nwritten to ALL listed anchors (consolidated duplicates across\ncontrol sets). Otherwise only the path-parameter anchor is written.\n\nAuth: ``PlatformClientAdminAccess`` — v1 migration writes are\nplatform-ops operations (plan §3.12). Requires ``client:admin`` at\nsystem scope; ``platform_admin`` / ``platform_impersonator`` pass\nvia that cascade, per-client admins do not.\n\nOwnership (§3.12): every target anchor must be live-reachable from\n``client_uid``; any foreign or missing uid returns 404 and nothing\nis written.\n\nFencing (§3.11 / Stage 2e.4a): one managed tx bracketed by the\nclient-scoped CAS bump — a concurrent migration write on this\nclient between the caller's head read and this call returns 409\n``concurrent_migration_write`` and rolls back every evidence write.","operationId":"accept_custom_control_v1_mapping_clients__client_uid__custom_controls__control_anchor_uid__v1_mapping_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"control_anchor_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Anchor Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Accept Custom Control V1 Mapping Clients  Client Uid  Custom Controls  Control Anchor Uid  V1 Mapping Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/custom-controls/v1-mapping-batch":{"post":{"tags":["Custom Control Migration"],"summary":"Accept Custom Control V1 Mapping Batch","description":"Accept function mappings for many custom controls in one request.\n\nSame auth, ownership and fencing as the single-control accept, but\nevery item's evidence lands in one fenced transaction and the batch\nis projected with ONE resolve-and-activate. Activation copies the\nwhole active mapping set, so per-control saves cost a full copy each\nand cannot run concurrently; batching makes N controls cost one.\nAll-or-nothing: an ownership miss or a 409 writes nothing.","operationId":"accept_custom_control_v1_mapping_batch_clients__client_uid__custom_controls_v1_mapping_batch_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1MappingBatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1MappingBatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/custom-controls/bulk-auto-accept":{"post":{"tags":["Custom Control Migration"],"summary":"Bulk Auto Accept Custom Controls","description":"Bulk-accept all auto_accept candidates for a client (P4-T3).\n\nAuth: ``PlatformClientAdminAccess`` — same platform-ops gate as the\nsingle-anchor endpoint (plan §3.12). ``_client_access`` is retained to\nsatisfy ``get_custom_control_mapping_candidates`` (read-side, still\n``ClientAccess``); ``_admin_access`` gates the write side.\n\nFencing (§3.11): the whole batch is one managed tx under a single CAS\nbump. All-or-nothing: an ownership miss, a 409, or any write failure\nrolls back every candidate, and the revision moves by exactly one.","operationId":"bulk_auto_accept_custom_controls_clients__client_uid__custom_controls_bulk_auto_accept_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"integer"},"title":"Response Bulk Auto Accept Custom Controls Clients  Client Uid  Custom Controls Bulk Auto Accept Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/implementations/v1-assessment-candidates":{"get":{"tags":["V1 Assessment Authoring"],"summary":"Get V1 Assessment Candidates","operationId":"get_v1_assessment_candidates_clients__client_uid__implementations_v1_assessment_candidates_get","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1AssessmentCandidatesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/implementations/{impl_uid}/v1-assessment":{"post":{"tags":["V1 Assessment Authoring"],"summary":"Author V1 Assessment","description":"Write v1_capability_assessments + prepare_flip_fingerprint (P4-T6).\n\nAuth: ``PlatformClientAdminAccess`` — v1 migration writes are\nplatform-ops operations (plan §3.12). Requires ``client:admin`` at\nsystem scope.\n\nFencing (§3.11 / Stage 2e.4a): the implementation-version write\nruns inside a client-scoped CAS-bump managed transaction. A\nconcurrent migration write on this client rolls back the version\nwrite and returns 409 ``concurrent_migration_write``.","operationId":"author_v1_assessment_clients__client_uid__implementations__impl_uid__v1_assessment_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"impl_uid","in":"path","required":true,"schema":{"type":"string","title":"Impl Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Author V1 Assessment Clients  Client Uid  Implementations  Impl Uid  V1 Assessment Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/implementations/{impl_uid}/scalar-fallback-acknowledgment":{"post":{"tags":["V1 Assessment Authoring"],"summary":"Acknowledge Scalar Fallback","description":"Set v1_scalar_fallback_accepted_at + prepare_flip_fingerprint (P4-T7).\n\nAuth: ``PlatformClientAdminAccess`` — v1 migration writes are\nplatform-ops operations (plan §3.12). Requires ``client:admin`` at\nsystem scope.\n\nFencing (§3.11 / Stage 2e.4a): client-scoped CAS-bump managed tx.","operationId":"acknowledge_scalar_fallback_clients__client_uid__implementations__impl_uid__scalar_fallback_acknowledgment_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"impl_uid","in":"path","required":true,"schema":{"type":"string","title":"Impl Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Acknowledge Scalar Fallback Clients  Client Uid  Implementations  Impl Uid  Scalar Fallback Acknowledgment Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/implementations/bulk-scalar-fallback":{"post":{"tags":["V1 Assessment Authoring"],"summary":"Bulk Scalar Fallback","description":"Bulk-acknowledge scalar fallback for all unauthored impls (P4-T8).\n\nAuth: ``PlatformClientAdminAccess`` — same platform-ops gate as\nthe single-impl endpoint (plan §3.12). The bulk endpoint MUST own\nits own ``Depends`` because direct function calls between endpoints\ndo NOT trigger FastAPI DI.\n\n``_client_access`` is retained to satisfy\n``get_v1_assessment_candidates`` (read-side, still ``ClientAccess``);\n``_admin_access`` gates the write side.\n\nFencing (§3.11): the whole batch is one managed tx under a single CAS\nbump. All-or-nothing: an ownership miss, a 409, or any write failure\nrolls back every acknowledgment, and the revision moves by exactly one.","operationId":"bulk_scalar_fallback_clients__client_uid__implementations_bulk_scalar_fallback_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Bulk Scalar Fallback Clients  Client Uid  Implementations Bulk Scalar Fallback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/custom-controls/acknowledge-no-coverage":{"post":{"tags":["Custom Control Migration"],"summary":"Acknowledge No Coverage Bulk","operationId":"acknowledge_no_coverage_bulk_clients__client_uid__custom_controls_acknowledge_no_coverage_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkNoCoverageAckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkNoCoverageAckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/custom-controls/{control_uid}/acknowledge-no-coverage":{"post":{"tags":["Custom Control Migration"],"summary":"Acknowledge No Coverage","description":"Acknowledge that a client's custom control has no taxonomy v1 coverage.\n\nAuth: ``PlatformClientAdminAccess`` (system-scope ``client:admin``), like every v1\nmigration write; the caller is recorded as the reviewer.\n\nOne client-fenced transaction bumps ``migration_revision``, resolves the client's\neffective v1 variant and writes the disposition, stamped with that variant's\nmutation hash as ``crosswalk_version`` and the current evaluator version. A\nrefusal rolls the whole transaction back, the bump included.\n\nRaises:\n    HTTPException 404: ``no_such_control_in_client`` when the control is not\n        live-reachable from the client; ``client_not_found`` from the fence.\n    HTTPException 409: ``variant_invalid`` when no v1 variant resolves for the\n        client; ``concurrent_migration_write`` when the fence loses its CAS.","operationId":"acknowledge_no_coverage_clients__client_uid__custom_controls__control_uid__acknowledge_no_coverage_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"control_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoCoverageAckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoCoverageAckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/migration-readiness":{"get":{"tags":["Migration Readiness"],"summary":"Get Migration Readiness","description":"Whether the client can prepare, and then complete, a flip to ``target_scheme`` on ``variant_uid``.\n\nRecomputed on every request from a fresh snapshot capture and a fresh\npreparation read; there is no readiness cache.","operationId":"get_migration_readiness_clients__client_uid__migration_readiness_get","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"target_scheme","in":"query","required":true,"schema":{"$ref":"#/components/schemas/TaxonomyScheme"}},{"name":"variant_uid","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Variant Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrationReadinessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/clients/{client_uid}/flip-preview":{"get":{"tags":["Flip Preview V2"],"summary":"Get Flip Preview V2","description":"Preview flipping the client to ``target_scheme`` under ``variant_uid``.\n\nThe variant is required and judged as given, never replaced by the client override or the\nplatform default. A preview whose residuals cannot be computed is a 409\n``preview_not_computable``: prepare needs the ``preview_digest`` this response carries.","operationId":"get_flip_preview_v2_v2_clients__client_uid__flip_preview_get","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"target_scheme","in":"query","required":true,"schema":{"$ref":"#/components/schemas/TaxonomyScheme"}},{"name":"variant_uid","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Variant Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlipPreviewV2Response"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/clients/{client_uid}/prepare-flip":{"post":{"tags":["Prepare Flip V2"],"summary":"Prepare Flip V2","operationId":"prepare_flip_v2_v2_clients__client_uid__prepare_flip_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareFlipV2Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/controls":{"post":{"tags":["Controls"],"summary":"Create Control","description":"Create a catalog control.\n\nStage 2e.4d-2a / §3.11 note: `create_control` is intentionally NOT\nglobal-fenced. Per plan §3.11: `create_control` is \"additive; snapshot\nreaders only see it after it's used, so no bump needed unless it's\nadded to an active mapping in the same tx\". The catalog anchor lands\ninactive-until-referenced — a subsequent `add_control` (fenced in\nStage 2e.4c-1) or `implement_control` handles the fencing when the\nnew anchor first enters an active client's implementation set. The\npost-create `_link_vendor_edge` is a vendor-catalog side-effect\n(dashboards traverse it) with no snapshot impact.","operationId":"create_control_controls_post","parameters":[{"name":"change_source","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ChangeSource"},{"type":"null"}],"description":"Version-chain provenance override (SystemAdmin surface; e.g. vendor_ingest for the vendor-offering reconciliation apply).","title":"Change Source"},"description":"Version-chain provenance override (SystemAdmin surface; e.g. vendor_ingest for the vendor-offering reconciliation apply)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Controls"],"summary":"List Controls","operationId":"list_controls_controls_get","parameters":[{"name":"featured","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by featured status","title":"Featured"},"description":"Filter by featured status"},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Category"}},{"name":"category_condition","in":"query","required":false,"schema":{"type":"string","default":"AND","title":"Category Condition"}},{"name":"function","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by taxonomy function ids (live MAPPED_TO targets)","title":"Function"},"description":"Filter by taxonomy function ids (live MAPPED_TO targets)"},{"name":"function_condition","in":"query","required":false,"schema":{"type":"string","default":"AND","title":"Function Condition"}},{"name":"control_source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by control source","title":"Control Source"},"description":"Filter by control source"},{"name":"vendor_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by vendor UID","title":"Vendor Uid"},"description":"Filter by vendor UID"},{"name":"vendor_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by exact vendor name","title":"Vendor Name"},"description":"Filter by exact vendor name"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Case-insensitive name search","title":"Search"},"description":"Case-insensitive name search"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_ControlResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/controls/admin":{"get":{"tags":["Controls"],"summary":"List Controls Admin","operationId":"list_controls_admin_controls_admin_get","parameters":[{"name":"featured","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by featured status","title":"Featured"},"description":"Filter by featured status"},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Category"}},{"name":"category_condition","in":"query","required":false,"schema":{"type":"string","default":"AND","title":"Category Condition"}},{"name":"control_source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by control source","title":"Control Source"},"description":"Filter by control source"},{"name":"vendor_uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by vendor UID","title":"Vendor Uid"},"description":"Filter by vendor UID"},{"name":"vendor_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by exact vendor name","title":"Vendor Name"},"description":"Filter by exact vendor name"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Case-insensitive name search","title":"Search"},"description":"Case-insensitive name search"},{"name":"vetted","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by vetted flag","title":"Vetted"},"description":"Filter by vetted flag"},{"name":"include_discontinued","in":"query","required":false,"schema":{"type":"boolean","description":"Include controls with discontinued_at != NULL. Default false (safe default per P1-T14d). Non-admin /controls always excludes.","default":false,"title":"Include Discontinued"},"description":"Include controls with discontinued_at != NULL. Default false (safe default per P1-T14d). Non-admin /controls always excludes."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_ControlResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/controls/categories":{"get":{"tags":["Controls"],"summary":"List Control Categories","description":"The canonical category registry, sorted (MTM-2207: the picker IS the approved list).\n\n``crosswalk_only`` narrows it to the categories with a crosswalk row, read\nthrough the flip gate's loader so the picker and the gate agree. A defective\ncrosswalk is a 500, never the unfiltered list.","operationId":"list_control_categories_controls_categories_get","parameters":[{"name":"crosswalk_only","in":"query","required":false,"schema":{"type":"boolean","description":"Only categories that have a row in the category-to-function crosswalk (the categories the taxonomy can classify).","default":false,"title":"Crosswalk Only"},"description":"Only categories that have a row in the category-to-function crosswalk (the categories the taxonomy can classify)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response List Control Categories Controls Categories Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/controls/search":{"post":{"tags":["Controls"],"summary":"Bulk Search Controls","operationId":"bulk_search_controls_controls_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkSearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/controls/{control_uid}":{"get":{"tags":["Controls"],"summary":"Get Control","operationId":"get_control_controls__control_uid__get","parameters":[{"name":"control_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Controls"],"summary":"Update Control","operationId":"update_control_controls__control_uid__patch","parameters":[{"name":"control_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Uid"}},{"name":"change_source","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ChangeSource"},{"type":"null"}],"description":"Version-chain provenance override (SystemAdmin surface; e.g. vendor_ingest for the vendor-offering reconciliation apply).","title":"Change Source"},"description":"Version-chain provenance override (SystemAdmin surface; e.g. vendor_ingest for the vendor-offering reconciliation apply)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Controls"],"summary":"Delete Control","description":"Soft-delete a catalog control (§3.11 global-fenced).\n\nThe tombstone + MigrationGlobalGeneration bump commit atomically\nvia ``run_global_fenced_write``. On any failure the whole tx rolls\nback including the generation bump. Concurrent snapshot captures\nsee either all-pre-delete or all-post-delete state.","operationId":"delete_control_controls__control_uid__delete","parameters":[{"name":"control_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/controls/{control_uid}/restore":{"post":{"tags":["Controls"],"summary":"Restore Control","description":"Restore a soft-deleted catalog control (§3.11 global-fenced).\n\nFlips 'deleted' → 'active' tamper-evidently. Authorization: system\nadmin (same as delete). The restore + MigrationGlobalGeneration bump\ncommit atomically via ``run_global_fenced_write``.","operationId":"restore_control_controls__control_uid__restore_post","parameters":[{"name":"control_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/controls/{control_uid}/vendor":{"patch":{"tags":["Controls"],"summary":"Reassign Control Vendor","description":"Reassign a control's vendor (§3.11 global-fenced).\n\nThe vendor-reassign + MigrationGlobalGeneration bump commit\natomically via ``run_global_fenced_write``.","operationId":"reassign_control_vendor_controls__control_uid__vendor_patch","parameters":[{"name":"control_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlVendorUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlVendorReassignResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/controls/{control_uid}/absorb":{"post":{"tags":["Controls"],"summary":"Absorb Control","operationId":"absorb_control_controls__control_uid__absorb_post","parameters":[{"name":"control_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlAbsorbRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{set_uid}/controls":{"get":{"tags":["Client Controls"],"summary":"List Controls In Set","description":"List control implementations in a control set, with optional filters.\n\n``tag_keys``, ``control_categories``, ``taxonomy_functions``, and\n``control_type`` are repeated query parameters (e.g.\n``?tag_keys=a&tag_keys=b``). FastAPI parses bare ``list[str]``\nannotations as a JSON body for GET requests; the explicit ``Query()``\nannotation is what lifts them into the URL.\n\n``taxonomy_functions`` (facet swap) matches against each row's\nresolved function classification (``DELIVERS_FUNCTION`` overrides\nelse the catalog's live ``MAPPED_TO`` set) — the taxonomy analog of\nthe ``control_categories`` filter for flipped tenants.\n\n``control_type`` is an OR-match against the scalar ``control_type`` field\non each implementation (``product``/``policy``/``process``/``procedure``).","operationId":"list_controls_in_set_clients__client_uid__control_sets__set_uid__controls_get","parameters":[{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"tag_keys","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Tag Keys"}},{"name":"tag_condition","in":"query","required":false,"schema":{"type":"string","default":"AND","title":"Tag Condition"}},{"name":"control_categories","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Control Categories"}},{"name":"control_category_condition","in":"query","required":false,"schema":{"type":"string","default":"AND","title":"Control Category Condition"}},{"name":"taxonomy_functions","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Taxonomy Functions"}},{"name":"taxonomy_function_condition","in":"query","required":false,"schema":{"type":"string","default":"AND","title":"Taxonomy Function Condition"}},{"name":"control_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Control Type"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_ImplementedControlResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Client Controls"],"summary":"Add Control","description":"Add a control implementation to a control set.\n\n``(set, control_uid)`` is unique for active implementations — the same\ninvariant the bulk import documents and upserts on. A control already\nactively implemented in the set is rejected with 409 instead of silently\ncreating a duplicate implementation (the historical behavior, which let\nimports of mis-matched vendor siblings pile up as copies of one control).\n\nTaxonomy-side classification: an optional\n``taxonomy_function_ids`` set (mutually exclusive with\n``control_categories``, ids validated against the live vocabulary)\nlands as ``DELIVERS_FUNCTION`` overrides on the new implementation\nafter the create, and re-derives the technique snapshot for flipped\ntenants. The category flow is byte-identical when the field is absent.","operationId":"add_control_clients__client_uid__control_sets__set_uid__controls_post","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImplementedControlCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImplementedControlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{set_uid}/controls/taxonomy-coverage":{"get":{"tags":["Client Controls"],"summary":"Get Set Taxonomy Coverage","description":"Set-scoped taxonomy coverage — one row per implemented control.\n\nThe flywheel population read (1a): the set's per-implementation\ncoverage rows — ``function_ids`` (the anchor's live ``MAPPED_TO``\nunion the implementation's live ``DELIVERS_FUNCTION`` overrides,\ndeprecated excluded), ``function_count``, and ``anchor_custom``\n(the anchor HEAD's origin flag — custom anchors are the\nre-link-candidate population downstream) and ``catalog_visible``\n(the anchor head's catalog-visibility status — the re-link write's\ntarget leg, INV-6/EC-5: candidate builders must never propose an\ninvisible anchor as a link target) — plus the AT-RISK rows'\n(``function_count == 0``) coverage classification: the lib core's\n``classify_control_set`` over the at-risk population only, with\nthe LIVE crosswalk via the gate's ``load_crosswalk_map`` (one code\npath, no drift — a defective artifact is a loud 500) and the same\ncanonical categories. MAPPED rows (``function_count > 0``) carry\nthe raw coverage only (payload discipline); a mapped-only set\nnever loads the crosswalk.\n\nDeclared before the parameterized ``GET .../controls/{impl_uid}``\nroute — the literal ``taxonomy-coverage`` segment must not be\nswallowed as an ``impl_uid``.\n\n``CurrentUser`` + the set's read guard (``ControlSetAccess`` — the\nsame client-access guard ``list_controls_in_set`` uses). 404 when\nthe set is missing / not active / resolves to zero implemented\ncontrols — the coverage read's ``Ok(None)`` presentation (the\nclient-wide ``/taxonomy/coverage`` route and the flip gate 404\nthere: a coverage read over nothing is not a normal empty state).","operationId":"get_set_taxonomy_coverage_clients__client_uid__control_sets__set_uid__controls_taxonomy_coverage_get","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetTaxonomyCoverageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{set_uid}/controls/{impl_uid}/taxonomy-functions":{"get":{"tags":["Client Controls"],"summary":"Get Taxonomy Function Overrides","description":"The implementation's taxonomy-side customization state.\n\n``customized=false`` (no overrides) means the implementation\ninherits the catalog control's ``MAPPED_TO`` function set — read\nthat via ``GET /taxonomy/controls/{control_uid}/functions``. This\nsurface only reports the per-implementation override layer.","operationId":"get_taxonomy_function_overrides_clients__client_uid__control_sets__set_uid__controls__impl_uid__taxonomy_functions_get","parameters":[{"name":"impl_uid","in":"path","required":true,"schema":{"type":"string","title":"Impl Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionOverridesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Client Controls"],"summary":"Set Taxonomy Function Overrides","description":"Full-replace the implementation's function override set.\n\nOverride-only semantics: the supplied list REPLACES the entire\noverride set; the implementation stops inheriting the catalog's\n``MAPPED_TO`` and resolves from these functions instead. Restore\ninheritance with DELETE. Unknown or deprecated function ids 422\nnaming the offenders (the closed-vocabulary posture — a silent\npartial write would leave the tenant thinking coverage exists).\nPUT (not PATCH) because the payload is the whole set.\n\nSnapshot refresh (convergence): for a ``taxonomy_v1`` tenant\nthe ``mitigated_technique_ids`` snapshot re-derives from the new\noverride set under the taxonomy resolver branch, as a new\nimplementation version (audit-chained). For a ``legacy_categories``\ntenant the snapshot is untouched — overrides are pre-flip\npreparation; their risk math still runs on categories.","operationId":"set_taxonomy_function_overrides_clients__client_uid__control_sets__set_uid__controls__impl_uid__taxonomy_functions_put","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"impl_uid","in":"path","required":true,"schema":{"type":"string","title":"Impl Uid"}},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionOverridesUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionOverridesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Client Controls"],"summary":"Clear Taxonomy Function Overrides","description":"Delete the override set — the implementation returns to\ninheriting the catalog's ``MAPPED_TO`` functions. Clearing an\nuncustomized implementation is a no-op (200, not 404).\n\nFor a ``taxonomy_v1`` tenant the snapshot re-derives from the\nINHERITED function set (the anchor's ``MAPPED_TO``) — returning to\ninheritance must also return the risk math to the catalog mapping.","operationId":"clear_taxonomy_function_overrides_clients__client_uid__control_sets__set_uid__controls__impl_uid__taxonomy_functions_delete","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"impl_uid","in":"path","required":true,"schema":{"type":"string","title":"Impl Uid"}},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionOverridesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{set_uid}/controls/{impl_uid}/history":{"get":{"tags":["Client Controls"],"summary":"Get Control History","description":"Get version history for an implementation (all SUPERSEDES chain).","operationId":"get_control_history_clients__client_uid__control_sets__set_uid__controls__impl_uid__history_get","parameters":[{"name":"impl_uid","in":"path","required":true,"schema":{"type":"string","title":"Impl Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Control History Clients  Client Uid  Control Sets  Set Uid  Controls  Impl Uid  History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/control-sets/{set_uid}/controls/{implementation_uid}/catalog-link":{"post":{"tags":["Client Controls"],"summary":"Relink Control To Catalog","description":"Re-link an existing implementation to a catalog anchor.\n\nThe consolidation apply's write: re-points the implementation's\n``IMPLEMENTS`` edge from its current anchor (client-local custom\nanchor, or a different catalog anchor) to the approved catalog\nanchor and clears ``needs_review`` — the human approval of the link\nIS the review. Guarded exactly like ``add_control``\n(``ControlSetWriteAccess`` + ``CurrentUser``); the set's status is\nresolved in the write (active OR locked — mirroring\n``CREATE_IMPLEMENTATION``), so no separate lock check here.\n\nIdempotent: an implementation that already IMPLEMENTS the catalog\nanchor returns 200 ``changed=false`` with no write (re-approving the\nsame link is a no-op, not an error — deliberately no 409, unlike\n``add_control``'s duplicate-impl guard).\n\nThe versioned implementation node is untouched — the edge is\nanchor-level, outside the version chain (no version bump; the\nimplementation keeps its own categories).\n\n404 (the file's lumped write-404 shape) when any leg fails to\nresolve: unknown set, implementation not in the set, or a target\nanchor that is not an active catalog control — unknown, headless, or\na head failing the catalog visibility filter (``custom = false AND\nvetted = true AND discontinued_at IS NULL``, INV-6/EC-5): the\nendpoint never re-links onto a custom or non-vetted control.","operationId":"relink_control_to_catalog","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}},{"name":"implementation_uid","in":"path","required":true,"schema":{"type":"string","title":"Implementation Uid"}},{"name":"set_uid","in":"path","required":true,"schema":{"type":"string","title":"Set Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReLinkToCatalogRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReLinkToCatalogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/reference/maturity-questions":{"post":{"tags":["Reference"],"summary":"Get Maturity Questions","description":"Get maturity questions, optionally filtered by control categories.\n\nIf ``control_categories`` is empty, all questions are returned.\nQuestions tagged with ``_all`` always appear regardless of filter.\n\nAuthorization: User must have client:read permission.","operationId":"get_maturity_questions_clients__client_uid__reference_maturity_questions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaturityQuestionsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaturityQuestionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]}},"/clients/{client_uid}/reference/implementation-options":{"get":{"tags":["Reference"],"summary":"Get Implementation Options","description":"Get implementation options for UI dropdowns.\n\nReturns maturity levels, control types, and control categories.\nCategories are queried from the graph (distinct values across all\nControlNodes) so they stay in sync with actual data.\n\nAuthorization: User must have client:read permission.","operationId":"get_implementation_options_clients__client_uid__reference_implementation_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImplementationOptionsResponse"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]}},"/clients/{client_uid}/control-sets/{control_set_uid}/sankey":{"post":{"tags":["Sankey"],"summary":"Sankey Traversal","description":"Sankey DAG drill-down traversal, scoped to a control set.\n\nPath length selects the level. Forward: ``[]`` -> risk categories,\n``[risk_category]`` -> buckets (+ Uncovered), ``[risk_category, bucket]`` ->\ncontrols. Reverse: ``[]`` -> controls, ``[control]`` -> buckets,\n``[control, bucket]`` -> risk categories.\n\nAuthorization: user must have client:read permission.","operationId":"sankey_traversal_clients__client_uid__control_sets__control_set_uid__sankey_post","parameters":[{"name":"control_set_uid","in":"path","required":true,"schema":{"type":"string","title":"Control Set Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SankeyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SankeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/tags":{"post":{"tags":["Tags"],"summary":"Create Tag","description":"Create a new tag for a client.\n\nAuthorization: User must have client:write permission.","operationId":"create_tag_clients__client_uid__tags_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}]},"get":{"tags":["Tags"],"summary":"List Tags","description":"List active tags for a client with optional filtering and pagination.\n\nAuthorization: User must have client:read permission.","operationId":"list_tags_clients__client_uid__tags_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_TagResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/tags/{tag_uid}":{"get":{"tags":["Tags"],"summary":"Get Tag","description":"Get a single tag by UID.\n\nAuthorization: User must have client:read permission.","operationId":"get_tag_clients__client_uid__tags__tag_uid__get","parameters":[{"name":"tag_uid","in":"path","required":true,"schema":{"type":"string","title":"Tag Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Tags"],"summary":"Update Tag","description":"Update a tag's name and color. An omitted ``name`` keeps the current name.\n\nAuthorization: User must have client:write permission.","operationId":"update_tag_clients__client_uid__tags__tag_uid__put","parameters":[{"name":"tag_uid","in":"path","required":true,"schema":{"type":"string","title":"Tag Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Tags"],"summary":"Delete Tag","description":"Soft delete a tag (sets status to 'deleted').\n\nFails with 422 if the tag is currently referenced by any active control implementation.\n\nAuthorization: User must have client:write permission.","operationId":"delete_tag_clients__client_uid__tags__tag_uid__delete","parameters":[{"name":"tag_uid","in":"path","required":true,"schema":{"type":"string","title":"Tag Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/tags/{tag_uid}/implementations/{impl_uid}":{"post":{"tags":["Tags"],"summary":"Assign Tag To Implementation","description":"Assign a tag to an implementation. Idempotent.","operationId":"assign_tag_to_implementation_clients__client_uid__tags__tag_uid__implementations__impl_uid__post","parameters":[{"name":"tag_uid","in":"path","required":true,"schema":{"type":"string","title":"Tag Uid"}},{"name":"impl_uid","in":"path","required":true,"schema":{"type":"string","title":"Impl Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagImplementationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Tags"],"summary":"Unassign Tag From Implementation","description":"Remove a tag from an implementation. 404 if not currently assigned.","operationId":"unassign_tag_from_implementation_clients__client_uid__tags__tag_uid__implementations__impl_uid__delete","parameters":[{"name":"tag_uid","in":"path","required":true,"schema":{"type":"string","title":"Tag Uid"}},{"name":"impl_uid","in":"path","required":true,"schema":{"type":"string","title":"Impl Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagImplementationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/tags/{tag_uid}/implementations":{"get":{"tags":["Tags"],"summary":"List Implementations By Tag","description":"List every implementation carrying the given tag.","operationId":"list_implementations_by_tag_clients__client_uid__tags__tag_uid__implementations_get","parameters":[{"name":"tag_uid","in":"path","required":true,"schema":{"type":"string","title":"Tag Uid"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_ImplementedControlResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/tags/{tag_uid}/risks/{risk_uid}":{"post":{"tags":["Tags"],"summary":"Assign Tag To Risk","description":"Assign a tag to a risk.\n\nIdempotent — assigning an already-present tag is a no-op.\n\nAuthorization: User must have client:write permission.","operationId":"assign_tag_to_risk_clients__client_uid__tags__tag_uid__risks__risk_uid__post","parameters":[{"name":"tag_uid","in":"path","required":true,"schema":{"type":"string","title":"Tag Uid"}},{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagRiskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Tags"],"summary":"Unassign Tag From Risk","description":"Remove a tag from a risk.\n\nReturns 404 if the tag is not currently assigned to the risk.\n\nAuthorization: User must have client:write permission.","operationId":"unassign_tag_from_risk_clients__client_uid__tags__tag_uid__risks__risk_uid__delete","parameters":[{"name":"tag_uid","in":"path","required":true,"schema":{"type":"string","title":"Tag Uid"}},{"name":"risk_uid","in":"path","required":true,"schema":{"type":"string","title":"Risk Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagRiskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/vendors/{vendor_uid}/logo":{"get":{"tags":["Logos"],"summary":"Get Vendor Logo","operationId":"get_vendor_logo_clients__client_uid__vendors__vendor_uid__logo_get","parameters":[{"name":"vendor_uid","in":"path","required":true,"schema":{"type":"string","title":"Vendor Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"image/png":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Logos"],"summary":"Upload Vendor Logo","operationId":"upload_vendor_logo_clients__client_uid__vendors__vendor_uid__logo_post","parameters":[{"name":"vendor_uid","in":"path","required":true,"schema":{"type":"string","title":"Vendor Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_vendor_logo_clients__client_uid__vendors__vendor_uid__logo_post"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Logos"],"summary":"Delete Vendor Logo","operationId":"delete_vendor_logo_clients__client_uid__vendors__vendor_uid__logo_delete","parameters":[{"name":"vendor_uid","in":"path","required":true,"schema":{"type":"string","title":"Vendor Uid"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clients/{client_uid}/logo/{logo_key}":{"get":{"tags":["Logos"],"summary":"Get Client Logo","operationId":"get_client_logo_clients__client_uid__logo__logo_key__get","parameters":[{"name":"logo_key","in":"path","required":true,"schema":{"enum":["isologotype-light","isologotype-dark","imagotype-light","imagotype-dark"],"type":"string","title":"Logo Key"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"image/png":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Logos"],"summary":"Upload Client Logo","operationId":"upload_client_logo_clients__client_uid__logo__logo_key__post","parameters":[{"name":"logo_key","in":"path","required":true,"schema":{"enum":["isologotype-light","isologotype-dark","imagotype-light","imagotype-dark"],"type":"string","title":"Logo Key"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_client_logo_clients__client_uid__logo__logo_key__post"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Logos"],"summary":"Delete Client Logo","operationId":"delete_client_logo_clients__client_uid__logo__logo_key__delete","parameters":[{"name":"logo_key","in":"path","required":true,"schema":{"enum":["isologotype-light","isologotype-dark","imagotype-light","imagotype-dark"],"type":"string","title":"Logo Key"}},{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/subscription-tiers":{"get":{"tags":["Subscription Tiers"],"summary":"List Subscription Tiers","description":"List all active subscription tiers with granted capabilities and client counts.","operationId":"list_subscription_tiers_subscription_tiers_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_SubscriptionTierResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Subscription Tiers"],"summary":"Create Subscription Tier","description":"Create a tier and link :GRANTS edges to named CapabilityNodes.","operationId":"create_subscription_tier_subscription_tiers_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionTierCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionTierResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/subscription-tiers/{uid}":{"patch":{"tags":["Subscription Tiers"],"summary":"Update Subscription Tier","description":"Update tier name and/or replace :GRANTS edges.","operationId":"update_subscription_tier_subscription_tiers__uid__patch","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionTierUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionTierResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Subscription Tiers"],"summary":"Delete Subscription Tier","description":"Soft delete a tier. Cleans up :GRANTS edges. Optionally reassigns clients.","operationId":"delete_subscription_tier_subscription_tiers__uid__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}},{"name":"reassign_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"UID of tier to reassign clients to","title":"Reassign To"},"description":"UID of tier to reassign clients to"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/subscription-tiers/{uid}/clients":{"get":{"tags":["Subscription Tiers"],"summary":"List Tier Clients","description":"List clients on this tier (default) or not on it (``membership=unassigned``).\n\nRows include ``current_tiers``. ``meta.total`` counts the filtered set.\nUnassigned rows have no HAS_TIER edge data (dates are null).","operationId":"list_tier_clients_subscription_tiers__uid__clients_get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Sort Dir"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","default":"","title":"Search"}},{"name":"membership","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TierClientMembership","default":"assigned"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_TierClientResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Subscription Tiers"],"summary":"Assign Tier Clients","description":"Set or revoke this tier for clients. A client always has exactly one tier.\n\n- ``move`` and ``assign`` are the same operation: each client is put on this\n  tier and removed from every other tier.\n- ``revoke`` removes this tier. A client whose last tier this is moves to the\n  platform default tier (``fallback``); if this tier IS the default, the\n  client keeps it (``kept``).\n\nAssignments run first, then revokes. Each list runs in one transaction.","operationId":"assign_tier_clients_subscription_tiers__uid__clients_patch","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TierClientAssignment"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TierAssignmentResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/capabilities":{"get":{"tags":["Subscription Tiers"],"summary":"Get Capability Catalog","description":"Capability catalog from graph -- CapabilityNodes grouped by category.","operationId":"get_capability_catalog_capabilities_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapabilityCatalogResponse"}}}}}}},"/clients/{client_uid}/capabilities":{"get":{"tags":["Subscription Tiers"],"summary":"Get Client Capabilities","description":"Flat list of capability names granted to a client via its subscription tier.\n\nGated by `ClientAccess` (read-level `client:read` on `client_uid`) — orphan\nusers and cross-tenant callers get 403. See IntrusionOps 2026 web pen test §7.7.","operationId":"get_client_capabilities_clients__client_uid__capabilities_get","parameters":[{"name":"client_uid","in":"path","required":true,"schema":{"type":"string","title":"Client Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response Get Client Capabilities Clients  Client Uid  Capabilities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AbsentFunction":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uid","name"],"title":"AbsentFunction","description":"One entirely absent function a Net New row models adopting."},"ActionConfig":{"properties":{"approval_timeout_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Approval Timeout Days","description":"Days before approval expires"},"escalation_enabled":{"type":"boolean","title":"Escalation Enabled","description":"Enable escalation on timeout","default":false},"likelihood_min":{"type":"integer","minimum":1.0,"title":"Likelihood Min","description":"Minimum likelihood score","default":1},"likelihood_max":{"type":"integer","minimum":1.0,"title":"Likelihood Max","description":"Maximum likelihood score","default":5},"impact_min":{"type":"integer","minimum":1.0,"title":"Impact Min","description":"Minimum impact score","default":1},"impact_max":{"type":"integer","minimum":1.0,"title":"Impact Max","description":"Maximum impact score","default":5},"likelihood_options":{"items":{"$ref":"#/components/schemas/ScaleOption"},"type":"array","title":"Likelihood Options","description":"Labeled likelihood scale levels"},"impact_options":{"items":{"$ref":"#/components/schemas/ScaleOption"},"type":"array","title":"Impact Options","description":"Labeled impact scale levels"},"category_options":{"items":{"type":"string"},"type":"array","title":"Category Options","description":"Risk category options"},"department_options":{"items":{"type":"string"},"type":"array","title":"Department Options","description":"Risk department options"},"status_options":{"items":{"$ref":"#/components/schemas/StatusOption"},"type":"array","title":"Status Options","description":"Status options linked to workflow steps"},"qualitative_options":{"items":{"$ref":"#/components/schemas/QualitativeOption"},"type":"array","title":"Qualitative Options","description":"Qualitative rating scale"},"qualitative_enabled":{"type":"boolean","title":"Qualitative Enabled","description":"Enable qualitative ratings","default":false},"mitigation_strategies":{"items":{"type":"string"},"type":"array","title":"Mitigation Strategies"},"mitigation_strategies_enabled":{"type":"boolean","title":"Mitigation Strategies Enabled","default":false},"constraint_options":{"items":{"type":"string"},"type":"array","title":"Constraint Options","description":"Risk constraint options"},"attachment_enabled":{"type":"boolean","title":"Attachment Enabled","description":"Enable file attachments","default":false},"user_groups":{"items":{"$ref":"#/components/schemas/UserGroup"},"type":"array","title":"User Groups","description":"Named user groups"},"max_accountable":{"type":"integer","minimum":1.0,"title":"Max Accountable","description":"Maximum number of Accountable users allowed per risk (default: 1)","default":1},"closed_risk_aging_enabled":{"type":"boolean","title":"Closed Risk Aging Enabled","description":"Auto-archive closed risks once they exceed the aging range","default":true},"closed_risk_aging_range":{"type":"string","title":"Closed Risk Aging Range","description":"Retention window for closed risks: one of 6_months, 1_year, 3_years, 5_years","default":"1_year"}},"type":"object","title":"ActionConfig","description":"Global action configuration for a risk registry."},"ActionCreate":{"properties":{"description":{"type":"string","minLength":1,"title":"Description","description":"What this action involves"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner","description":"User UID of the action owner"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date"},"status":{"type":"string","enum":["not_started","in_progress","blocked","completed","cancelled"],"title":"Status","default":"not_started"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["description"],"title":"ActionCreate"},"ActionDecision":{"properties":{"can_execute":{"type":"boolean","title":"Can Execute"},"blockers":{"items":{"type":"string"},"type":"array","title":"Blockers"}},"type":"object","required":["can_execute","blockers"],"title":"ActionDecision","description":"Decision on whether an action (prepare/complete) can execute.\n\nFields:\n    can_execute: Whether the action is permitted.\n    blockers: List of human-readable blocker messages if can_execute=False."},"ActionResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"display_id":{"type":"string","title":"Display Id"},"description":{"type":"string","title":"Description"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"start_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"},"due_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due Date"},"status":{"type":"string","enum":["not_started","in_progress","blocked","completed","cancelled"],"title":"Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentResponse"},"type":"array","title":"Attachments"}},"type":"object","required":["uid","display_id","description","status"],"title":"ActionResponse"},"ActionUpdate":{"properties":{"description":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Description"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date"},"status":{"anyOf":[{"type":"string","enum":["not_started","in_progress","blocked","completed","cancelled"]},{"type":"null"}],"title":"Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"ActionUpdate"},"ActionsBlock":{"properties":{"can_prepare":{"$ref":"#/components/schemas/ActionDecision"},"can_complete":{"$ref":"#/components/schemas/ActionDecision"}},"type":"object","required":["can_prepare","can_complete"],"title":"ActionsBlock","description":"Action decisions for prepare and complete operations.\n\nFields:\n    can_prepare: Decision on whether flip preparation can proceed.\n    can_complete: Decision on whether flip completion can proceed."},"ActivityEntry":{"properties":{"stream":{"type":"string","title":"Stream"},"occurred_at":{"type":"string","title":"Occurred At"},"uid":{"type":"string","title":"Uid"},"entity_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Type"},"entity_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Uid"},"action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"actor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor"},"change_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Source"},"change_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Reason"},"event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"},"target_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Uid"},"source_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Ip"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent"},"correlation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correlation Id"}},"type":"object","required":["stream","occurred_at","uid"],"title":"ActivityEntry","description":"One event in the unified feed. Fields are populated per-stream; redacted\nfields are nulled (consistent with the shipped ``/activity/security``).\n\n``correlation_id`` is passed through from the underlying audit event so\nMFA-failure sequences link to their outcome in feed/export views (spec\n§4.3). ``payload`` is deliberately NOT part of this row: the unified feed\nis member-readable and must not carry arbitrary JSON that can hold Tier-S\ndata — payload details stay on the dedicated security reader\n(``AuditEventView``)."},"ActivityExport":{"properties":{"client_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Uid"},"count":{"type":"integer","title":"Count"},"truncated":{"type":"boolean","title":"Truncated"},"entries":{"items":{"$ref":"#/components/schemas/ActivityEntry"},"type":"array","title":"Entries"}},"type":"object","required":["count","truncated"],"title":"ActivityExport","description":"A bounded, single-shot change-log snapshot (JSON) for export. Consumers\n(mtm-agent, the frontend) render CSV/table from this — mtm-graph serves JSON\nonly. ``truncated`` signals the cap was hit (more rows exist; narrow filters).\n``client_uid`` is null for the global (impostor-gated) scope."},"ActivityFeedPage":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/ActivityEntry"},"type":"array","title":"Entries"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","title":"ActivityFeedPage"},"AddMemberRequest":{"properties":{"client_uid":{"type":"string","title":"Client Uid"}},"type":"object","required":["client_uid"],"title":"AddMemberRequest","description":"Schema for adding a member to a trust group."},"AddTemplateAssignment":{"properties":{"template_uid":{"type":"string","title":"Template Uid"},"is_default":{"type":"boolean","title":"Is Default","default":false}},"type":"object","required":["template_uid"],"title":"AddTemplateAssignment"},"AdjacentFunction":{"properties":{"function_id":{"type":"string","minLength":1,"title":"Function Id"},"function_name":{"type":"string","minLength":1,"title":"Function Name"},"domain":{"type":"string","minLength":1,"title":"Domain"}},"type":"object","required":["function_id","function_name","domain"],"title":"AdjacentFunction","description":"One row in ``adjacent_functions_not_covered`` .\n\nAdjacent-not-covered rows explicitly do NOT become positive MAPPED_TO\nedges (per Oracle's warning); they render on the product/control\ndetail page (the frontend consumer) as \"adjacent capabilities not\ncovered\" so a reviewer can see the pipeline's negative-space signal\nwithout polluting the projection."},"AdminAudience":{"type":"string","enum":["people","client","everyone"],"title":"AdminAudience","description":"Who a hand-sent notification goes to."},"AdminNotificationCounts":{"properties":{"sent":{"type":"integer","title":"Sent","default":0},"not_sent":{"type":"integer","title":"Not Sent","default":0},"refused":{"type":"integer","title":"Refused","default":0},"unknown":{"type":"integer","title":"Unknown","default":0},"inactive":{"type":"integer","title":"Inactive","default":0},"email":{"type":"integer","title":"Email","default":0}},"type":"object","title":"AdminNotificationCounts","description":"People counted over every handled page (or the request itself, for named people)."},"AdminNotificationSent":{"properties":{"request_id":{"type":"string","title":"Request Id"},"sent_by":{"type":"string","title":"Sent By"},"sent_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sent By Name"},"audience":{"$ref":"#/components/schemas/AdminAudience"},"person_uids":{"items":{"type":"string"},"type":"array","title":"Person Uids"},"client_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Uid"},"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body"},"link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link"},"priority":{"$ref":"#/components/schemas/NotificationPriority"},"sent_at":{"type":"string","format":"date-time","title":"Sent At"},"status":{"$ref":"#/components/schemas/AdminSendState"},"pages":{"type":"integer","title":"Pages","description":"Pages published for a client or everyone audience; 0 for named people."},"pages_handled":{"type":"integer","title":"Pages Handled"},"pages_failed":{"type":"integer","title":"Pages Failed"},"counts":{"$ref":"#/components/schemas/AdminNotificationCounts"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome","description":"What the request's handler did, or the error of its last failed try."}},"type":"object","required":["request_id","sent_by","sent_by_name","audience","person_uids","client_uid","title","body","link","priority","sent_at","status","pages","pages_handled","pages_failed","counts","outcome"],"title":"AdminNotificationSent","description":"One hand-sent notification as recorded: who sent what to which audience, and what came of it."},"AdminSendState":{"type":"string","enum":["waiting","sending","sent","failed"],"title":"AdminSendState","description":"Where one hand-sent notification stands, over its request and all its pages."},"AdminSendStatus":{"type":"string","enum":["published","already_sent"],"title":"AdminSendStatus"},"AlternativeCandidate":{"properties":{"uid":{"type":"string","title":"Uid","description":"Catalog control UID of the considered candidate"},"name":{"type":"string","title":"Name","description":"Catalog control name of the considered candidate"}},"type":"object","required":["uid","name"],"title":"AlternativeCandidate","description":"A catalog control the agent considered — and rejected — as a match.\n\nPart of the optional catalog-request provenance block on\n``CustomControlCreateInSet``; snapshotted onto the request's\n``REQUESTS_PROMOTION_OF`` edge for the admin review UI / judge."},"AmvWidget":{"properties":{"overall_grade":{"type":"string","title":"Overall Grade","default":"F"},"dollar_value":{"type":"number","title":"Dollar Value","default":0.0}},"type":"object","title":"AmvWidget"},"AnchorStatus":{"type":"string","enum":["active","locked","deleted","archived"],"title":"AnchorStatus","description":"Lifecycle state of an entity anchor."},"ApplySetRequest":{"properties":{"client_uid":{"type":"string","title":"Client Uid"}},"type":"object","required":["client_uid"],"title":"ApplySetRequest","description":"Apply a control set to a client."},"ApplySetResponse":{"properties":{"client_uid":{"type":"string","title":"Client Uid"},"set_uid":{"type":"string","title":"Set Uid"},"controls_applied":{"type":"integer","title":"Controls Applied","default":0},"controls_skipped":{"type":"integer","title":"Controls Skipped","default":0},"controls_conflicted":{"type":"integer","title":"Controls Conflicted","default":0}},"type":"object","required":["client_uid","set_uid"],"title":"ApplySetResponse","description":"Result of applying a set to a client."},"ApprovalAction":{"type":"string","enum":["approve","reject"],"title":"ApprovalAction","description":"User actions on a workflow approval step."},"ApprovalConfig":{"properties":{"required_count":{"type":"integer","minimum":1.0,"title":"Required Count","description":"Number of approvals required","default":1},"from_roles":{"items":{"$ref":"#/components/schemas/RaciRole"},"type":"array","title":"From Roles","description":"RACI roles that can provide approvals"},"timeout_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timeout Days","description":"Days before approval request expires"},"escalate_to":{"anyOf":[{"$ref":"#/components/schemas/RaciRole"},{"type":"null"}],"description":"Role to escalate to on timeout"},"email_enabled":{"type":"boolean","title":"Email Enabled","description":"Send approval requests via email","default":true},"email_token_ttl_hours":{"type":"integer","maximum":720.0,"minimum":1.0,"title":"Email Token Ttl Hours","description":"Email token expiration (1-720 hours)","default":72},"email_require_confirmation":{"type":"boolean","title":"Email Require Confirmation","description":"Require confirmation page (2-step)","default":true},"email_allow_reject":{"type":"boolean","title":"Email Allow Reject","description":"Allow rejection via email link","default":true},"email_reminder_after_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Email Reminder After Hours","description":"Send email reminder after N hours","default":48}},"type":"object","title":"ApprovalConfig","description":"Configuration for approval action."},"ApprovalRecord":{"properties":{"user_uid":{"type":"string","title":"User Uid","description":"User who approved"},"approved_at":{"type":"string","format":"date-time","title":"Approved At","description":"When approval was given"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment","description":"Optional comment"}},"type":"object","required":["user_uid","approved_at"],"title":"ApprovalRecord","description":"Record of an approval received."},"ApprovalRequest":{"properties":{"comment":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Comment","description":"Optional approval comment"}},"type":"object","title":"ApprovalRequest","description":"Submit an approval, optionally with a comment."},"ApprovalSchema":{"properties":{"status":{"type":"string","enum":["draft","submitted","approved","rejected"],"title":"Status"},"approvers":{"items":{"$ref":"#/components/schemas/ApproverDecisionSchema"},"type":"array","title":"Approvers"},"submitted_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submitted Date"},"approver_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approver Uid"}},"type":"object","required":["status"],"title":"ApprovalSchema"},"ApprovalStatusResponse":{"properties":{"step":{"type":"integer","title":"Step"},"step_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step Name"},"required_count":{"type":"integer","title":"Required Count"},"received_count":{"type":"integer","title":"Received Count"},"can_proceed":{"type":"boolean","title":"Can Proceed"},"pending_users":{"items":{"type":"string"},"type":"array","title":"Pending Users","description":"Users who haven't approved"},"approvals":{"items":{"$ref":"#/components/schemas/ApprovalRecord"},"type":"array","title":"Approvals"}},"type":"object","required":["step","required_count","received_count","can_proceed"],"title":"ApprovalStatusResponse","description":"Current approval status for a risk at a workflow step."},"ApproveRequest":{"properties":{"comment":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Comment"}},"type":"object","title":"ApproveRequest"},"ApproverDecisionSchema":{"properties":{"id":{"type":"string","title":"Id","description":"User UID of the approver"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"decision":{"type":"string","title":"Decision","description":"approved | rejected | pending"},"decision_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Date"},"comments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comments"}},"type":"object","required":["id","decision"],"title":"ApproverDecisionSchema"},"Assignee":{"properties":{"key":{"type":"string","title":"Key","description":"User or group UID"},"type":{"type":"string","title":"Type","description":"Assignee type: 'user' or 'group'","default":"user"},"display_name":{"type":"string","title":"Display Name","description":"Display name for the assignee"}},"type":"object","required":["key","display_name"],"title":"Assignee","description":"A single assignee entry in the RACI pool (user or group)."},"AttachCvesRequest":{"properties":{"cve_ids":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Cve Ids"}},"type":"object","required":["cve_ids"],"title":"AttachCvesRequest"},"AttachCvesResponse":{"properties":{"attached":{"type":"integer","title":"Attached"},"skipped_missing_cve":{"items":{"type":"string"},"type":"array","title":"Skipped Missing Cve"}},"type":"object","required":["attached","skipped_missing_cve"],"title":"AttachCvesResponse"},"AttachmentResponse":{"properties":{"uid":{"type":"string","title":"Uid","description":"Attachment identifier"},"filename":{"type":"string","title":"Filename"},"mime_type":{"type":"string","title":"Mime Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"uploaded_by":{"$ref":"#/components/schemas/UploadedByRef"},"uploaded_at":{"type":"string","title":"Uploaded At"}},"type":"object","required":["uid","filename","mime_type","size_bytes","uploaded_by","uploaded_at"],"title":"AttachmentResponse"},"AuditEventIngestRequest":{"properties":{"event_type":{"type":"string","title":"Event Type","description":"One of the auth event types (Phase-1 logins §4.2, mcp_connection_*)."},"actor_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Uid","description":"Authenticated user uid; null when unresolvable."},"target_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Uid","description":"Target user uid; null when unresolvable."},"source_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Ip","description":"Tier-S PII (X-Forwarded-For); purgeable."},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent","description":"Tier-S PII; purgeable."},"occurred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred At","description":"ISO-8601 event time; defaults to server clock."},"correlation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correlation Id","description":"Links one login attempt's events (MFA retries)."},"payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"title":"Payload","description":"Structured detail (grant_type, reason, idp, device_name …) — JSON object or JSON string."},"resource_type":{"type":"string","minLength":1,"title":"Resource Type","description":"Resource type; 'auth' for Phase-1.","default":"auth"}},"additionalProperties":false,"type":"object","required":["event_type"],"title":"AuditEventIngestRequest","description":"``POST /activity/ingest`` body — one Phase-1 auth security event\n(login-audit-trail spec §4.2), appended by phoenix-api to the\nplatform audit chain. The chain scope is fixed server-side\n(``platform``) — auth events are platform-level (login happens before\nclient selection), so no scope field is accepted.\n\n``actor_uid`` / ``target_uid`` are null for attempts that resolve to\nno user (unknown username); the raw username then lives only in\n``payload`` (Tier-S). ``payload`` is a JSON object (canonicalised\nserver-side) or an already-JSON-encoded string. ``occurred_at``\ndefaults to the server clock (the authoritative event time)."},"AuditEventIngestResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"seq":{"type":"integer","title":"Seq"},"chain_scope":{"type":"string","title":"Chain Scope"},"event_type":{"type":"string","title":"Event Type"},"occurred_at":{"type":"string","title":"Occurred At"}},"type":"object","required":["uid","seq","chain_scope","event_type","occurred_at"],"title":"AuditEventIngestResponse","description":"The stored event's identity — enough for the caller to verify the append."},"AuditEventPage":{"properties":{"events":{"items":{"$ref":"#/components/schemas/AuditEventView"},"type":"array","title":"Events"},"next_before_seq":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next Before Seq"}},"type":"object","title":"AuditEventPage","description":"A cursor-paginated page of audit events (newest first)."},"AuditEventView":{"properties":{"uid":{"type":"string","title":"Uid"},"seq":{"type":"integer","title":"Seq"},"chain_scope":{"type":"string","title":"Chain Scope"},"event_type":{"type":"string","title":"Event Type"},"actor_uid":{"type":"string","title":"Actor Uid"},"actor_type":{"type":"string","title":"Actor Type"},"occurred_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Occurred At"},"recorded_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recorded At"},"resource_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Type"},"resource_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Uid"},"target_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Uid"},"payload":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payload"},"correlation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correlation Id"},"content_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Hash"},"chain_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chain Hash"},"source_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Ip"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent"}},"type":"object","required":["uid","seq","chain_scope","event_type","actor_uid","actor_type"],"title":"AuditEventView","description":"A single audit event as returned to an (admin) reader."},"BatchCancelResponse":{"properties":{"batch":{"anyOf":[{"$ref":"#/components/schemas/ModelBatchState"},{"type":"null"}]},"message":{"type":"string","title":"Message"}},"type":"object","required":["batch","message"],"title":"BatchCancelResponse"},"BatchStartResponse":{"properties":{"window":{"$ref":"#/components/schemas/WindowResponse"},"batch":{"$ref":"#/components/schemas/ModelBatchState"},"message":{"type":"string","title":"Message"}},"type":"object","required":["window","batch","message"],"title":"BatchStartResponse"},"BatchStatusResponse":{"properties":{"batch":{"anyOf":[{"$ref":"#/components/schemas/ModelBatchState"},{"type":"null"}]},"window":{"anyOf":[{"$ref":"#/components/schemas/WindowResponse"},{"type":"null"}]}},"type":"object","required":["batch","window"],"title":"BatchStatusResponse"},"BenchmarkMetric":{"properties":{"metric":{"type":"string","title":"Metric"},"company_value":{"type":"number","title":"Company Value","default":0.0},"platform_avg":{"type":"number","title":"Platform Avg","default":0.0},"percentile":{"type":"number","title":"Percentile","default":0.0}},"type":"object","required":["metric"],"title":"BenchmarkMetric","description":"Single benchmark metric with peer comparison."},"BenchmarkResponse":{"properties":{"metrics":{"items":{"$ref":"#/components/schemas/BenchmarkMetric"},"type":"array","title":"Metrics"},"peer_count":{"type":"integer","title":"Peer Count","default":0}},"type":"object","title":"BenchmarkResponse","description":"Response for GET /benchmarks — peer comparison summary."},"BlockerTriageControlRow":{"properties":{"control_anchor_uid":{"type":"string","title":"Control Anchor Uid"},"control_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Control Name"},"case":{"type":"string","title":"Case"},"mixed":{"type":"boolean","title":"Mixed"},"techniques":{"items":{"$ref":"#/components/schemas/TechniqueTriageRow"},"type":"array","title":"Techniques"},"suggested_functions":{"items":{"$ref":"#/components/schemas/SuggestedFunctionRow"},"type":"array","title":"Suggested Functions"},"coverage_summary":{"additionalProperties":{"type":"integer"},"type":"object","title":"Coverage Summary"},"category_provenance":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Category Provenance"},"sibling_control_uids":{"items":{"type":"string"},"type":"array","title":"Sibling Control Uids"},"sibling_covered_count":{"type":"integer","minimum":0.0,"title":"Sibling Covered Count","default":0}},"type":"object","required":["control_anchor_uid","case","mixed"],"title":"BlockerTriageControlRow","description":"Per blocking control: the dominant case, the mixed flag, the\nper-technique breakdown, the case 1 suggestions, the category grant\nprovenance, and the sibling evidence (spec section 6.3)."},"Body_import_risks_risk_registry_clients__client_uid__risks_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_risks_risk_registry_clients__client_uid__risks_import_post"},"Body_upload_action_attachment_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__actions__action_uid__attachments_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_action_attachment_risk_registry_clients__client_uid__risks__risk_uid__mitigation_plans__plan_uid__actions__action_uid__attachments_post"},"Body_upload_attachment_risk_registry_clients__client_uid__risks__risk_uid__attachments_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_attachment_risk_registry_clients__client_uid__risks__risk_uid__attachments_post"},"Body_upload_client_logo_clients__client_uid__logo__logo_key__post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_client_logo_clients__client_uid__logo__logo_key__post"},"Body_upload_vendor_logo_clients__client_uid__vendors__vendor_uid__logo_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_vendor_logo_clients__client_uid__vendors__vendor_uid__logo_post"},"BucketMonthsResponse":{"properties":{"bucket":{"type":"string","title":"Bucket"},"months":{"items":{"type":"string"},"type":"array","title":"Months"}},"type":"object","required":["bucket","months"],"title":"BucketMonthsResponse"},"BulkAddControlsResponse":{"properties":{"added":{"type":"integer","title":"Number of new implementations created"},"updated":{"type":"integer","title":"Number of existing implementations updated","default":0},"skipped":{"type":"integer","title":"Rows dropped as in-payload duplicates (last-row-wins)","default":0},"results":{"items":{"$ref":"#/components/schemas/BulkRowResult"},"type":"array","title":"Per-row outcomes, indexed to the request payload"},"migration_revisions_bumped":{"additionalProperties":{"type":"integer"},"type":"object","title":"New migration_revision per client attached to the set (empty when no row was written)"}},"type":"object","required":["added"],"title":"BulkAddControlsResponse","description":"Response from bulk add controls operation.\n\n``(set, control_uid)`` is unique: a row whose control is already\nimplemented in the set **updates** that implementation's spreadsheet\nfields (counted in ``updated``) rather than creating a duplicate.\nDuplicate ``control_uid``s within a single payload are collapsed\n**last-row-wins** before submit; the dropped rows are counted in\n``skipped`` and listed in ``results`` with ``detail='duplicate_in_payload'``.\n``migration_revisions_bumped`` reports the shared-set fan-out: every\nclient attached to the set gets one bump per batch when at least one\nrow is written, and none when every row fails."},"BulkCustomControlsResponse":{"properties":{"added":{"type":"integer","title":"Number of custom controls created"},"failed":{"type":"integer","title":"Number of rows that failed"},"results":{"items":{"$ref":"#/components/schemas/CustomBulkRowResult"},"type":"array","title":"Per-row outcomes, indexed to the request payload"}},"type":"object","required":["added","failed"],"title":"BulkCustomControlsResponse","description":"Response from the bulk custom-control create operation.\n\nEach row is created in its own transaction, so a single bad row fails\nonly itself (``failed`` + ``results[].error``) without rolling back the\nrest of the batch."},"BulkDeleteControlsResponse":{"properties":{"deleted":{"type":"integer","title":"Number of control implementations removed"}},"type":"object","required":["deleted"],"title":"BulkDeleteControlsResponse","description":"Response from deleting all controls in a set."},"BulkDismissResponse":{"properties":{"dismissed_count":{"type":"integer","title":"Number of notifications dismissed"}},"type":"object","required":["dismissed_count"],"title":"BulkDismissResponse","description":"Response from bulk dismiss operation."},"BulkNoCoverageAckRequest":{"properties":{"control_uids":{"items":{"type":"string","minLength":1},"type":"array","maxItems":500,"minItems":1,"title":"Control Uids"},"reason":{"type":"string","minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["control_uids","reason"],"title":"BulkNoCoverageAckRequest"},"BulkNoCoverageAckResponse":{"properties":{"acknowledged":{"type":"integer","title":"Acknowledged"},"migration_revision":{"type":"integer","title":"Migration Revision"},"dispositions":{"items":{"$ref":"#/components/schemas/NoCoverageAckResponse"},"type":"array","title":"Dispositions"}},"type":"object","required":["acknowledged","migration_revision","dispositions"],"title":"BulkNoCoverageAckResponse"},"BulkRowResult":{"properties":{"index":{"type":"integer","title":"Row position in the original request payload"},"control_uid":{"type":"string","title":"Catalog control UID the row targeted"},"status":{"type":"string","enum":["added","updated","skipped","failed"],"title":"Outcome for this row"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Machine-readable reason for 'skipped'/'failed' rows (e.g. 'duplicate_in_payload', 'control_not_found')"}},"type":"object","required":["index","control_uid","status"],"title":"BulkRowResult","description":"Per-row outcome of a bulk control import."},"BulkSearchMatch":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"control_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Control Type"},"control_categories":{"items":{"type":"string"},"type":"array","title":"Control Categories"},"match_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Match Score","description":"Fulltext relevance score; higher is a better match."},"match_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Type","description":"'exact' when the name equals the query, else 'fuzzy'."}},"type":"object","required":["uid","name"],"title":"BulkSearchMatch","description":"A single catalog match for a search term.\n\nCarries the catalog identity fields the FE needs to adopt a control,\nplus the fulltext relevance ``match_score`` and a coarse ``match_type``.\n``matches`` is ordered **best-first** (highest ``match_score``), so the\nFE can trust ``matches[0]`` as the top hit."},"BulkSearchRequest":{"properties":{"names":{"items":{"type":"string"},"type":"array","title":"Names","description":"List of control names to search for"},"contexts":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Contexts","description":"Optional per-name context (e.g. the ingest row's summary), keyed by the EXACT name sent in `names`. Used only by the hybrid search's embedding arm to enrich the query vector — the keyword arm always searches the bare name. Keyed (not parallel-array) so the blank-name stripping on `names` can never misalign it."}},"type":"object","required":["names"],"title":"BulkSearchRequest","description":"Schema for bulk control name search."},"BulkSearchResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/BulkSearchResult"},"type":"array","title":"Results"}},"type":"object","title":"BulkSearchResponse","description":"Schema for bulk search response."},"BulkSearchResult":{"properties":{"query":{"type":"string","title":"Query"},"matches":{"items":{"$ref":"#/components/schemas/BulkSearchMatch"},"type":"array","title":"Matches"}},"type":"object","required":["query"],"title":"BulkSearchResult","description":"Schema for a single search term's results."},"CalculationContext":{"properties":{"scheme":{"$ref":"#/components/schemas/TaxonomyScheme"},"variant_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant Uid"},"lambda_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lambda Value"},"fn_mechanism_mapping_set_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fn Mechanism Mapping Set Uid"},"rc_mechanism_mapping_set_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rc Mechanism Mapping Set Uid"},"mapping_resolution_set_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mapping Resolution Set Uid"},"risk_category_catalog_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Risk Category Catalog Fingerprint"},"client_uid":{"type":"string","title":"Client Uid"},"control_set_uid":{"type":"string","title":"Control Set Uid"},"control_set_fingerprint":{"type":"string","title":"Control Set Fingerprint"},"taxonomy_version":{"type":"string","title":"Taxonomy Version"},"calculator_version":{"type":"string","title":"Calculator Version"},"resolved_at":{"type":"string","format":"date-time","title":"Resolved At"},"resolver_uid":{"type":"string","title":"Resolver Uid"},"pinned_mapping_resolution_set_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pinned Mapping Resolution Set Uid"},"pinned_risk_category_definition_uids":{"items":{"type":"string"},"type":"array","title":"Pinned Risk Category Definition Uids","default":[]}},"type":"object","required":["scheme","variant_uid","lambda_value","fn_mechanism_mapping_set_uid","rc_mechanism_mapping_set_uid","mapping_resolution_set_uid","risk_category_catalog_fingerprint","client_uid","control_set_uid","control_set_fingerprint","taxonomy_version","calculator_version","resolved_at","resolver_uid"],"title":"CalculationContext","description":"Resolved inputs and provenance for one residual-risk calculation."},"CapabilityAssessment":{"properties":{"maturity":{"anyOf":[{"type":"number","maximum":5.0,"minimum":0.0},{"type":"null"}],"title":"Maturity","description":"0-5 deployment maturity override"},"coverage":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Coverage","description":"0-100 percent coverage override"}},"type":"object","title":"CapabilityAssessment","description":"One capability's optional maturity/coverage override.\n\nAbsent field = inherit the implementation's top-level scalar."},"CapabilityCatalogResponse":{"properties":{"features":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Features"}},"type":"object","title":"CapabilityCatalogResponse","description":"Capabilities grouped by category — built from CapabilityNode graph."},"CatalogCandidate":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"match_score":{"type":"number","title":"Match Score","default":0.0}},"type":"object","required":["uid","name"],"title":"CatalogCandidate","description":"Catalog control candidate snapshotted at detection time.\n\nTop-3 keyword matches for the requested name — feeds the merge\ndisposition in the admin queue (addresses the \"Crowdstike silently\nbecame custom\" failure mode). Persisted on the node as a JSON string\n(Neo4j has no nested properties); ``BaseGraphNode`` parses it back\ntransparently on read."},"CatalogCoverageGapRow":{"properties":{"control_anchor_uid":{"type":"string","title":"Control Anchor Uid"},"name":{"type":"string","title":"Name"},"vendor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Name"},"control_categories":{"items":{"type":"string"},"type":"array","title":"Control Categories"},"client_count":{"type":"integer","title":"Client Count"},"disposition":{"anyOf":[{"$ref":"#/components/schemas/CatalogNoCoverageDisposition"},{"type":"null"}]}},"type":"object","required":["control_anchor_uid","name","vendor_name","control_categories","client_count","disposition"],"title":"CatalogCoverageGapRow","description":"An in-use catalog control with no counted v1 mapping, and its disposition if one is active."},"CatalogNoCoverageDisposition":{"properties":{"disposition_uid":{"type":"string","title":"Disposition Uid"},"reviewer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Name"},"acknowledged_at":{"type":"string","format":"date-time","title":"Acknowledged At"},"reason":{"type":"string","title":"Reason"},"taxonomy_version":{"type":"string","title":"Taxonomy Version"}},"type":"object","required":["disposition_uid","reviewer_name","acknowledged_at","reason","taxonomy_version"],"title":"CatalogNoCoverageDisposition"},"CatalogNoCoverageRevoke":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","title":"CatalogNoCoverageRevoke"},"CatalogNoCoverageRevokeResponse":{"properties":{"control_anchor_uid":{"type":"string","title":"Control Anchor Uid"},"revoked":{"type":"boolean","title":"Revoked"}},"type":"object","required":["control_anchor_uid","revoked"],"title":"CatalogNoCoverageRevokeResponse"},"CatalogNoCoverageSet":{"properties":{"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"},"taxonomy_version":{"type":"string","minLength":1,"title":"Taxonomy Version"}},"additionalProperties":false,"type":"object","required":["reason","taxonomy_version"],"title":"CatalogNoCoverageSet","description":"Why a catalog product has no v1 function; shown to every admin who flips a client using it."},"CatalogRequestAbsorbFailure":{"properties":{"uid":{"type":"string","title":"Uid","description":"Origin ControlAnchor UID that failed to absorb"},"error":{"type":"string","title":"Error","description":"Why the absorb failed"}},"type":"object","required":["uid","error"],"title":"CatalogRequestAbsorbFailure","description":"A single origin control that could not be absorbed during approve/merge.\n\nPartial failure is reported, not raised — the admin retries via the\nexisting absorb endpoint (bulk partial-failure precedent)."},"CatalogRequestApproveRequest":{"properties":{"name":{"type":"string","minLength":1,"title":"Name","description":"Catalog display name for the new control"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Catalog description for the new control"},"control_type":{"$ref":"#/components/schemas/ControlType","description":"Classification of the new catalog control"},"control_categories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Control Categories"},"vendor_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Uid","description":"Optional vendor to link the new control to"},"efficacy":{"type":"number","maximum":5.0,"minimum":0.0,"title":"Efficacy","default":3.0}},"type":"object","required":["name","control_type"],"title":"CatalogRequestApproveRequest","description":"Approve a pending request by creating a real catalog control.\n\nThe body is the admin-curated catalog identity for the new control —\nit intentionally mirrors the catalog-facing subset of\n``CustomControlCreateInSet`` (same ``efficacy`` default/bounds, same\ncategory validation) because approval is the promotion of exactly\nthat ingest shape into the catalog."},"CatalogRequestApproveResponse":{"properties":{"request":{"$ref":"#/components/schemas/CatalogRequestResponse"},"control_uid":{"type":"string","title":"Control Uid","description":"UID of the created (approve) or target (merge) control"},"absorbed":{"items":{"type":"string"},"type":"array","title":"Absorbed"},"absorb_failures":{"items":{"$ref":"#/components/schemas/CatalogRequestAbsorbFailure"},"type":"array","title":"Absorb Failures"}},"type":"object","required":["request","control_uid"],"title":"CatalogRequestApproveResponse","description":"Result of approve (and merge — same shape): the updated\nrequest, the resulting catalog control, and per-origin absorb results."},"CatalogRequestDetailResponse":{"properties":{"request":{"$ref":"#/components/schemas/CatalogRequestResponse"},"origins":{"items":{"$ref":"#/components/schemas/CatalogRequestOrigin"},"type":"array","title":"Origins"}},"type":"object","required":["request"],"title":"CatalogRequestDetailResponse","description":"Admin detail view: the request (generated DTO — no duplicated node\nfields) plus its origin edges."},"CatalogRequestIntakeOrigin":{"type":"string","enum":["ingest","enrichment","consolidation"],"title":"CatalogRequestIntakeOrigin","description":"Which intake path FIRST created the request (provenance, set once).\n\nThree intake paths write requests: ``ingest`` (custom-control\ncreation during client ingest — the detection service),\n``enrichment`` (research pipeline suggested_additions), and\n``consolidation`` (the consolidation flow's user-scoped 2c\nadd-request submission for an existing custom control).\n\nWritten only in the creating upsert's ``ON CREATE`` — a request that\nexists under one origin and is later seen by another path keeps its\noriginal origin (counters still bump; the queue filter answers \"where\ndid this row come from\", not \"who has seen it since\"). Rows created\nbefore this field existed have no stored property and read back as\n``ingest`` via the model default — correct, because ingest was the\nonly writer then."},"CatalogRequestMergeRequest":{"properties":{"target_control_uid":{"type":"string","title":"Target Control Uid","description":"UID of the existing catalog control this request duplicates"}},"type":"object","required":["target_control_uid"],"title":"CatalogRequestMergeRequest","description":"Merge a pending request into an existing (active, vetted) catalog control."},"CatalogRequestOccurrenceResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"normalized_key":{"type":"string","title":"Normalized Key"},"status":{"$ref":"#/components/schemas/CatalogRequestStatus","default":"pending"},"origin":{"$ref":"#/components/schemas/CatalogRequestIntakeOrigin","default":"ingest"},"name":{"type":"string","title":"Name"},"raw_names":{"items":{"type":"string"},"type":"array","title":"Raw Names"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"control_type":{"anyOf":[{"$ref":"#/components/schemas/ControlType"},{"type":"null"}]},"control_categories":{"items":{"type":"string"},"type":"array","title":"Control Categories"},"occurrence_count":{"type":"integer","title":"Occurrence Count","default":1},"client_count":{"type":"integer","title":"Client Count","default":1},"first_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Seen At"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"judge_status":{"$ref":"#/components/schemas/JudgeStatus","default":"pending"},"judge_verdict":{"anyOf":[{"$ref":"#/components/schemas/JudgeVerdict"},{"type":"null"}]},"judge_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Judge Confidence"},"judge_reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Judge Reasoning"},"judge_suggested_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Judge Suggested Name"},"judge_suggested_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Judge Suggested Description"},"judge_suggested_vendor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Judge Suggested Vendor"},"judge_duplicate_of_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Judge Duplicate Of Uid"},"judged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Judged At"},"judge_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Judge Model"},"reviewed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewed By"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed At"},"review_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Reason"},"catalog_candidates":{"anyOf":[{"items":{"$ref":"#/components/schemas/CatalogCandidate"},"type":"array"},{"type":"null"}],"title":"Catalog Candidates"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions"},"was_created":{"type":"boolean","title":"Was Created","description":"True only on the occurrence that created the request (repeat sightings are False)"}},"type":"object","required":["uid","normalized_key","name","was_created"],"title":"CatalogRequestOccurrenceResponse","description":"User-scoped submission result: the request state (generated DTO —\nall node fields) plus the upsert's ``was_created`` flag.\n\n``True`` only on the occurrence that CREATED the request; repeat\nsightings (same normalized key — any set/client) return the SAME\nrequest with bumped counters and ``was_created = False``."},"CatalogRequestOrigin":{"properties":{"control_uid":{"type":"string","title":"Control Uid","description":"Origin custom ControlAnchor UID"},"client_uid":{"type":"string","title":"Client Uid","description":"Client that created the origin custom control"},"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name"},"control_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Control Name"},"seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Seen At"},"source_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Summary"},"match_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Match Confidence"},"match_reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Reasoning"},"alternatives_considered":{"anyOf":[{"items":{"$ref":"#/components/schemas/AlternativeCandidate"},"type":"array"},{"type":"null"}],"title":"Alternatives Considered"}},"type":"object","required":["control_uid","client_uid"],"title":"CatalogRequestOrigin","description":"One origin custom control behind a request (``REQUESTS_PROMOTION_OF`` edge).\n\n``control_uid``/``client_uid`` are structurally guaranteed by the edge;\nevery other field is read-side tolerant (``None`` on gaps) because\norigins are listed even after their control was absorbed/deleted."},"CatalogRequestRejectRequest":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"CatalogRequestRejectRequest","description":"Reject a pending request (denylist — occurrences keep counting).\n\n``reason`` is required: a rejection without a recorded rationale is\nunreviewable later (``schemas/mitigation_plan.py`` RejectRequest\nprecedent, mirrored exactly)."},"CatalogRequestResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"normalized_key":{"type":"string","title":"Normalized Key"},"status":{"$ref":"#/components/schemas/CatalogRequestStatus","default":"pending"},"origin":{"$ref":"#/components/schemas/CatalogRequestIntakeOrigin","default":"ingest"},"name":{"type":"string","title":"Name"},"raw_names":{"items":{"type":"string"},"type":"array","title":"Raw Names"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"control_type":{"anyOf":[{"$ref":"#/components/schemas/ControlType"},{"type":"null"}]},"control_categories":{"items":{"type":"string"},"type":"array","title":"Control Categories"},"occurrence_count":{"type":"integer","title":"Occurrence Count","default":1},"client_count":{"type":"integer","title":"Client Count","default":1},"first_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Seen At"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"judge_status":{"$ref":"#/components/schemas/JudgeStatus","default":"pending"},"judge_verdict":{"anyOf":[{"$ref":"#/components/schemas/JudgeVerdict"},{"type":"null"}]},"judge_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Judge Confidence"},"judge_reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Judge Reasoning"},"judge_suggested_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Judge Suggested Name"},"judge_suggested_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Judge Suggested Description"},"judge_suggested_vendor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Judge Suggested Vendor"},"judge_duplicate_of_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Judge Duplicate Of Uid"},"judged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Judged At"},"judge_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Judge Model"},"reviewed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewed By"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed At"},"review_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Reason"},"catalog_candidates":{"anyOf":[{"items":{"$ref":"#/components/schemas/CatalogCandidate"},"type":"array"},{"type":"null"}],"title":"Catalog Candidates"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions"}},"type":"object","required":["uid","normalized_key","name"],"title":"CatalogRequestResponse"},"CatalogRequestStatsResponse":{"properties":{"pending":{"type":"integer","title":"Pending","default":0},"approved":{"type":"integer","title":"Approved","default":0},"merged":{"type":"integer","title":"Merged","default":0},"rejected":{"type":"integer","title":"Rejected","default":0},"judge_pending":{"type":"integer","title":"Judge Pending","default":0}},"type":"object","title":"CatalogRequestStatsResponse","description":"Per-status queue counts. A dedicated stats endpoint because\n``ListMeta`` is fixed — extra keys in list meta are silently dropped.\n``judge_pending`` counts pending requests still awaiting the judge."},"CatalogRequestStatus":{"type":"string","enum":["pending","approved","merged","rejected"],"title":"CatalogRequestStatus","description":"Lifecycle of a catalog add request.\n\n``rejected`` is terminal-but-counting (denylist): future occurrences\nbump counters, the status never flips back on its own (the admin\n``reopen`` action is the only way back to ``pending``)."},"CatalogSuggestion":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"vendor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Name"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories","default":[]},"score":{"type":"number","title":"Score"},"kind":{"$ref":"#/components/schemas/MatchKind"},"needs_review":{"type":"boolean","title":"Needs Review"}},"type":"object","required":["uid","name","score","kind","needs_review"],"title":"CatalogSuggestion","description":"A suggested catalog anchor for an implementation control.\n\n``score`` is 1.0 for an exact-normalized-name match, the difflib\nratio otherwise; ``needs_review`` marks the fuzzy band below\n``AUTO_MAP_CUTOFF`` (the only population a downstream LLM step may\ntouch)."},"CategoryCompliance":{"properties":{"category":{"type":"string","title":"Category"},"control_count":{"type":"integer","title":"Control Count","default":0},"avg_maturity":{"type":"number","title":"Avg Maturity","default":0.0},"total_cost":{"type":"number","title":"Total Cost","default":0.0},"covered":{"type":"boolean","title":"Covered","default":false}},"type":"object","required":["category"],"title":"CategoryCompliance","description":"Compliance data for a single control category within a standard."},"CategoryDetailResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"version":{"type":"integer","title":"Version","default":1},"control_count":{"type":"integer","title":"Control Count","default":0},"technique_count":{"type":"integer","title":"Technique Count","default":0}},"type":"object","required":["uid","name"],"title":"CategoryDetailResponse","description":"Extended response with linked entity counts."},"CategoryResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"version":{"type":"integer","title":"Version","default":1},"control_count":{"type":"integer","title":"Control Count","default":0}},"type":"object","required":["uid","name"],"title":"CategoryResponse","description":"Schema for category response."},"CategoryUpdate":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"additionalProperties":false,"type":"object","title":"CategoryUpdate","description":"Schema for updating a category.\n\nName and slug are immutable (MTM-2207): the category set is the frozen\ncanonical registry, so only the description may change."},"ChainErrorItem":{"properties":{"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"kind":{"type":"string","enum":["content_hash","chain_hash"],"title":"Kind"},"stored":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stored"},"expected":{"type":"string","title":"Expected"}},"type":"object","required":["version","kind","stored","expected"],"title":"ChainErrorItem","description":"One hash divergence found while verifying (mtm-lib ``ChainError``)."},"ChainVersion":{"properties":{"uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uid"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"created":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created"},"changed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changed By"},"change_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Source"},"change_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Reason"},"content_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Hash"},"chain_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chain Hash"},"deleted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deleted"},"fields":{"additionalProperties":true,"type":"object","title":"Fields"}},"type":"object","title":"ChainVersion","description":"One immutable version node, hashes included (null = unhashed legacy)."},"ChangeLogEntry":{"properties":{"kind":{"type":"string","title":"Kind","default":"version"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"created":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created"},"changed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changed By"},"change_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Source"},"change_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Reason"},"before_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before Status"},"after_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After Status"}},"type":"object","title":"ChangeLogEntry","description":"One change event on an entity's timeline. A ``version`` event is a node\nversion (``what changed`` diffed on demand); a ``status_change`` event is a\nHAS_RISK status transition carrying ``before_status``/``after_status``."},"ChangeSource":{"type":"string","enum":["api","etl","worker","admin","system","catalog_request","vendor_ingest"],"title":"ChangeSource","description":"Where a version change originated.\n\nReaders validate this enum wherever full version nodes hydrate\n(activity log, integrity sweeps) — a new member must be RELEASED\nbefore any service writes it (deploy order: lib, then writer)."},"ChangeStatusRequest":{"properties":{"new_status":{"type":"string","enum":["not_started","in_progress","on_hold","completed","cancelled"],"title":"New Status","description":"Target execution status for the plan"},"comment":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Comment","description":"Required for every transition except on_hold → in_progress"}},"type":"object","required":["new_status"],"title":"ChangeStatusRequest"},"ClientControlSet":{"properties":{"set_uid":{"type":"string","title":"Set Uid"},"source":{"type":"string","enum":["direct","inherited"],"title":"Source"}},"type":"object","required":["set_uid","source"],"title":"ClientControlSet","description":"Audit-material projection of a ``HAS_SET`` edge (Client → ControlSet).\n\nMaterialised onto ``ClientNode.control_sets`` so control-set adoption rides\nthe version chain (tamper-evident + diffable). ``source`` distinguishes a\nset the client adopted **directly** from one **inherited** via hierarchy.\nThe ``HAS_SET`` edge remains the traversal index; this snapshot is the audit\nsource of truth. See the compliance change-log spec."},"ClientCreate":{"properties":{"control_inheritance_policy":{"$ref":"#/components/schemas/InheritancePolicy","default":"accept"},"relationship_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relationship Code"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"type":{"$ref":"#/components/schemas/EntityType"},"employees":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Employees"},"security_employees":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Security Employees"},"endpoints":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Endpoints"},"servers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Servers"},"c_type":{"anyOf":[{"$ref":"#/components/schemas/ClientOwnership"},{"type":"null"}]},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"naics_sector_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Naics Sector Key"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"revenue":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Revenue"},"demo":{"type":"boolean","title":"Demo","default":false},"predictions_bounded":{"type":"boolean","title":"Predictions Bounded","default":false},"taxonomy_scheme":{"type":"null","title":"Taxonomy Scheme","description":"Reserved. New clients start on the platform default taxonomy scheme; callers cannot override it."},"flip_ready_for":{"anyOf":[{"$ref":"#/components/schemas/TaxonomyScheme"},{"type":"null"}]},"flip_ready_for_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Flip Ready For At"},"flip_fingerprint_set":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flip Fingerprint Set"},"v1_variant_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"V1 Variant Uid"},"flip_prepare_state_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flip Prepare State Digest"},"flip_prepare_preview_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flip Prepare Preview Digest"},"flip_prepare_variant_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flip Prepare Variant Uid"},"flip_prepare_target_scheme":{"anyOf":[{"$ref":"#/components/schemas/TaxonomyScheme"},{"type":"null"}]},"flip_prepare_global_generation":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Flip Prepare Global Generation"},"flip_prepare_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Flip Prepare At"},"sales_cs_acknowledgment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Cs Acknowledgment"},"sales_cs_acknowledgment_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sales Cs Acknowledgment At"},"sales_cs_acknowledgment_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Cs Acknowledgment By"},"sales_cs_acknowledgment_preview_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Cs Acknowledgment Preview Digest"},"advisory_agent":{"anyOf":[{"$ref":"#/components/schemas/ConsortiumUserRef"},{"type":"null"}]},"sales_person":{"anyOf":[{"$ref":"#/components/schemas/ConsortiumUserRef"},{"type":"null"}]},"fiscal_year_start_month":{"type":"integer","maximum":12.0,"minimum":1.0,"title":"Fiscal Year Start Month","default":1},"is_managed":{"type":"boolean","title":"Is Managed","default":false},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"risk_tolerance":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Risk Tolerance"},"cyber_fte_cost":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cyber Fte Cost"},"total_it_spend":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total It Spend"},"amv_question_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Amv Question Keys"},"amv_answer_values":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Amv Answer Values"},"logo_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Logo Keys"},"logo_timestamps":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Logo Timestamps"},"updated":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated"},"default_control_set":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Control Set"},"naics":{"items":{"$ref":"#/components/schemas/NaicsEntry"},"type":"array","minItems":1,"title":"Naics","description":"NAICS codes with weights"},"parent_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Uid","description":"Parent client UID for hierarchy"},"control_set_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Control Set Uid","description":"Existing control set to apply"}},"type":"object","required":["name","type","naics"],"title":"ClientCreate","description":"Auto-generated node fields + operation fields + validation.\n\n``taxonomy_scheme`` is narrowed to ``None`` here (like ``ClientUpdate``):\nnew tenants start on the platform's default taxonomy scheme, and cohort\nflips go through the platform-only\n``PATCH /clients/{uid}/taxonomy-scheme`` so every flip is an\naudit-chained version with a change summary. Allowing it at create\ntime would let a client-provisioning caller override platform policy."},"ClientCustomizationRow":{"properties":{"client_uid":{"type":"string","title":"Client Uid"},"total_implementations":{"type":"integer","minimum":0.0,"title":"Total Implementations"},"customized_implementations":{"type":"integer","minimum":0.0,"title":"Customized Implementations"}},"type":"object","required":["client_uid","total_implementations","customized_implementations"],"title":"ClientCustomizationRow","description":"Per-client customization counts."},"ClientFamilyMember":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"type":{"anyOf":[{"$ref":"#/components/schemas/EntityType"},{"type":"null"}]},"parent_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Uid"},"level":{"type":"integer","title":"Level","default":0}},"type":"object","required":["uid","name"],"title":"ClientFamilyMember","description":"A single member in a client family tree."},"ClientFamilyResponse":{"properties":{"root":{"anyOf":[{"$ref":"#/components/schemas/ClientFamilyMember"},{"type":"null"}]},"members":{"items":{"$ref":"#/components/schemas/ClientFamilyMember"},"type":"array","title":"Members"},"total":{"type":"integer","title":"Total","default":0}},"type":"object","title":"ClientFamilyResponse","description":"Response envelope for client family tree."},"ClientListScope":{"type":"string","enum":["accessible","all"],"title":"ClientListScope","description":"Visibility scope for GET /clients.\n\n- ``accessible`` (default): only return clients the caller has been\n  explicitly granted access to (via ``client:read:<uid>`` or\n  ``client:admin:<uid>``). System-wide grants are intentionally\n  ignored so the company switcher doesn't fan out to every tenant.\n  Matches today's behaviour.\n- ``all``: return every active client. Requires ``client:admin:system``\n  or ``*:admin:system``. Used by platform-admin surfaces (admin/*\n  pages, impersonation modal). Returns 403 otherwise."},"ClientOwnership":{"type":"string","enum":["PUB","PRV","GOV"],"title":"ClientOwnership","description":"Client ownership classification."},"ClientResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"status":{"$ref":"#/components/schemas/AnchorStatus","default":"active"},"control_inheritance_policy":{"$ref":"#/components/schemas/InheritancePolicy","default":"accept"},"relationship_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relationship Code"},"deleted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deleted"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"employees":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Employees"},"security_employees":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Security Employees"},"endpoints":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Endpoints"},"servers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Servers"},"c_type":{"anyOf":[{"$ref":"#/components/schemas/ClientOwnership"},{"type":"null"}]},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"naics_sector_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Naics Sector Key"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"revenue":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Revenue"},"demo":{"type":"boolean","title":"Demo","default":false},"predictions_bounded":{"type":"boolean","title":"Predictions Bounded","default":false},"taxonomy_scheme":{"$ref":"#/components/schemas/TaxonomyScheme","default":"legacy_categories"},"flip_ready_for":{"anyOf":[{"$ref":"#/components/schemas/TaxonomyScheme"},{"type":"null"}]},"flip_ready_for_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Flip Ready For At"},"flip_fingerprint_set":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flip Fingerprint Set"},"v1_variant_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"V1 Variant Uid"},"flip_prepare_state_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flip Prepare State Digest"},"flip_prepare_preview_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flip Prepare Preview Digest"},"flip_prepare_variant_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flip Prepare Variant Uid"},"flip_prepare_target_scheme":{"anyOf":[{"$ref":"#/components/schemas/TaxonomyScheme"},{"type":"null"}]},"flip_prepare_global_generation":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Flip Prepare Global Generation"},"flip_prepare_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Flip Prepare At"},"sales_cs_acknowledgment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Cs Acknowledgment"},"sales_cs_acknowledgment_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sales Cs Acknowledgment At"},"sales_cs_acknowledgment_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Cs Acknowledgment By"},"sales_cs_acknowledgment_preview_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Cs Acknowledgment Preview Digest"},"advisory_agent":{"anyOf":[{"$ref":"#/components/schemas/ConsortiumUserRef"},{"type":"null"}]},"sales_person":{"anyOf":[{"$ref":"#/components/schemas/ConsortiumUserRef"},{"type":"null"}]},"fiscal_year_start_month":{"type":"integer","maximum":12.0,"minimum":1.0,"title":"Fiscal Year Start Month","default":1},"is_managed":{"type":"boolean","title":"Is Managed","default":false},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"risk_tolerance":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Risk Tolerance"},"cyber_fte_cost":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cyber Fte Cost"},"total_it_spend":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total It Spend"},"amv_question_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Amv Question Keys"},"amv_answer_values":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Amv Answer Values"},"logo_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Logo Keys"},"logo_timestamps":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Logo Timestamps"},"updated":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated"},"default_control_set":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Control Set"},"control_sets":{"anyOf":[{"items":{"$ref":"#/components/schemas/ClientControlSet"},"type":"array"},{"type":"null"}],"title":"Control Sets"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions"},"naics":{"items":{"$ref":"#/components/schemas/NaicsEntry"},"type":"array","title":"Naics"},"parent_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Uid"},"features":{"items":{"type":"string"},"type":"array","title":"Features"},"subscription_tiers":{"items":{"type":"string"},"type":"array","title":"Subscription Tiers"},"amv_answers":{"additionalProperties":{"type":"integer"},"type":"object","title":"Amv Answers"},"ucf_audit_answers":{"items":{"type":"integer"},"type":"array","title":"Ucf Audit Answers"},"logo":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Logo"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version","default":1}},"type":"object","required":["uid"],"title":"ClientResponse"},"ClientRiskSummary":{"properties":{"client_uid":{"type":"string","title":"Client Uid"},"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name"},"client_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Key"},"total_risks":{"type":"integer","title":"Total Risks","default":0},"risks_by_step":{"additionalProperties":{"type":"integer"},"type":"object","title":"Risks By Step","description":"Count of risks at each step {0: 5, 1: 3, ...}"},"risks_by_status":{"additionalProperties":{"type":"integer"},"type":"object","title":"Risks By Status"},"risks_by_category":{"additionalProperties":{"type":"integer"},"type":"object","title":"Risks By Category"},"high_priority_count":{"type":"integer","title":"High Priority Count","default":0},"pending_approvals":{"type":"integer","title":"Pending Approvals","description":"Risks awaiting user's approval","default":0},"pending_reviews":{"type":"integer","title":"Pending Reviews","default":0},"overdue_reviews":{"type":"integer","title":"Overdue Reviews","description":"Risks past their review date","default":0},"entity_breakdown":{"items":{"$ref":"#/components/schemas/EntityBreakdownItem"},"type":"array","title":"Entity Breakdown"},"score_history":{"items":{"$ref":"#/components/schemas/ScoreHistoryItem"},"type":"array","title":"Score History"}},"type":"object","required":["client_uid"],"title":"ClientRiskSummary","description":"Summary of risks for a client."},"ClientTreeNode":{"properties":{"uid":{"type":"string","title":"Uid"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"status":{"$ref":"#/components/schemas/AnchorStatus","default":"active"},"control_inheritance_policy":{"$ref":"#/components/schemas/InheritancePolicy","default":"accept"},"relationship_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relationship Code"},"deleted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deleted"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"employees":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Employees"},"security_employees":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Security Employees"},"endpoints":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Endpoints"},"servers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Servers"},"c_type":{"anyOf":[{"$ref":"#/components/schemas/ClientOwnership"},{"type":"null"}]},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"naics_sector_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Naics Sector Key"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"revenue":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Revenue"},"demo":{"type":"boolean","title":"Demo","default":false},"predictions_bounded":{"type":"boolean","title":"Predictions Bounded","default":false},"taxonomy_scheme":{"$ref":"#/components/schemas/TaxonomyScheme","default":"legacy_categories"},"flip_ready_for":{"anyOf":[{"$ref":"#/components/schemas/TaxonomyScheme"},{"type":"null"}]},"flip_ready_for_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Flip Ready For At"},"flip_fingerprint_set":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flip Fingerprint Set"},"v1_variant_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"V1 Variant Uid"},"flip_prepare_state_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flip Prepare State Digest"},"flip_prepare_preview_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flip Prepare Preview Digest"},"flip_prepare_variant_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flip Prepare Variant Uid"},"flip_prepare_target_scheme":{"anyOf":[{"$ref":"#/components/schemas/TaxonomyScheme"},{"type":"null"}]},"flip_prepare_global_generation":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Flip Prepare Global Generation"},"flip_prepare_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Flip Prepare At"},"sales_cs_acknowledgment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Cs Acknowledgment"},"sales_cs_acknowledgment_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sales Cs Acknowledgment At"},"sales_cs_acknowledgment_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Cs Acknowledgment By"},"sales_cs_acknowledgment_preview_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Cs Acknowledgment Preview Digest"},"advisory_agent":{"anyOf":[{"$ref":"#/components/schemas/ConsortiumUserRef"},{"type":"null"}]},"sales_person":{"anyOf":[{"$ref":"#/components/schemas/ConsortiumUserRef"},{"type":"null"}]},"fiscal_year_start_month":{"type":"integer","maximum":12.0,"minimum":1.0,"title":"Fiscal Year Start Month","default":1},"is_managed":{"type":"boolean","title":"Is Managed","default":false},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"risk_tolerance":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Risk Tolerance"},"cyber_fte_cost":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cyber Fte Cost"},"total_it_spend":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total It Spend"},"amv_question_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Amv Question Keys"},"amv_answer_values":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Amv Answer Values"},"logo_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Logo Keys"},"logo_timestamps":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Logo Timestamps"},"updated":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated"},"default_control_set":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Control Set"},"control_sets":{"anyOf":[{"items":{"$ref":"#/components/schemas/ClientControlSet"},"type":"array"},{"type":"null"}],"title":"Control Sets"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions"},"naics":{"items":{"$ref":"#/components/schemas/NaicsEntry"},"type":"array","title":"Naics"},"parent_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Uid"},"features":{"items":{"type":"string"},"type":"array","title":"Features"},"subscription_tiers":{"items":{"type":"string"},"type":"array","title":"Subscription Tiers"},"amv_answers":{"additionalProperties":{"type":"integer"},"type":"object","title":"Amv Answers"},"ucf_audit_answers":{"items":{"type":"integer"},"type":"array","title":"Ucf Audit Answers"},"logo":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Logo"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version","default":1},"children":{"items":{"$ref":"#/components/schemas/ClientTreeNode"},"type":"array","title":"Children"}},"type":"object","required":["uid"],"title":"ClientTreeNode","description":"Recursive tree node — ClientResponse + children."},"ClientUpdate":{"properties":{"control_inheritance_policy":{"anyOf":[{"$ref":"#/components/schemas/InheritancePolicy"},{"type":"null"}]},"relationship_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relationship Code"},"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"type":{"anyOf":[{"$ref":"#/components/schemas/EntityType"},{"type":"null"}]},"employees":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Employees"},"security_employees":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Security Employees"},"endpoints":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Endpoints"},"servers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Servers"},"c_type":{"anyOf":[{"$ref":"#/components/schemas/ClientOwnership"},{"type":"null"}]},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"naics_sector_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Naics Sector Key"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"revenue":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Revenue"},"demo":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Demo"},"predictions_bounded":{"type":"null","title":"Predictions Bounded","description":"Reserved. Use PATCH /clients/{uid}/predictions-bounded (platform-only) to toggle this flag — it cannot be set via this endpoint."},"taxonomy_scheme":{"type":"null","title":"Taxonomy Scheme","description":"Reserved. Use PATCH /clients/{uid}/taxonomy-scheme (platform-only) to change the classification scheme — it cannot be set via this endpoint."},"flip_ready_for":{"anyOf":[{"$ref":"#/components/schemas/TaxonomyScheme"},{"type":"null"}]},"flip_ready_for_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Flip Ready For At"},"flip_fingerprint_set":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flip Fingerprint Set"},"v1_variant_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"V1 Variant Uid"},"flip_prepare_state_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flip Prepare State Digest"},"flip_prepare_preview_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flip Prepare Preview Digest"},"flip_prepare_variant_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flip Prepare Variant Uid"},"flip_prepare_target_scheme":{"anyOf":[{"$ref":"#/components/schemas/TaxonomyScheme"},{"type":"null"}]},"flip_prepare_global_generation":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Flip Prepare Global Generation"},"flip_prepare_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Flip Prepare At"},"sales_cs_acknowledgment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Cs Acknowledgment"},"sales_cs_acknowledgment_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sales Cs Acknowledgment At"},"sales_cs_acknowledgment_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Cs Acknowledgment By"},"sales_cs_acknowledgment_preview_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Cs Acknowledgment Preview Digest"},"advisory_agent":{"anyOf":[{"$ref":"#/components/schemas/ConsortiumUserRef"},{"type":"null"}]},"sales_person":{"anyOf":[{"$ref":"#/components/schemas/ConsortiumUserRef"},{"type":"null"}]},"fiscal_year_start_month":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":1.0},{"type":"null"}],"title":"Fiscal Year Start Month"},"is_managed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Managed"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"risk_tolerance":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Risk Tolerance"},"cyber_fte_cost":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cyber Fte Cost"},"total_it_spend":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total It Spend"},"amv_question_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Amv Question Keys"},"amv_answer_values":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Amv Answer Values"},"logo_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Logo Keys"},"logo_timestamps":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Logo Timestamps"},"updated":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated"},"default_control_set":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Control Set"},"naics":{"anyOf":[{"items":{"$ref":"#/components/schemas/NaicsEntry"},"type":"array"},{"type":"null"}],"title":"Naics"}},"type":"object","title":"ClientUpdate","description":"Auto-generated node fields (all optional) + validation.\n\n``predictions_bounded`` is deliberately narrowed to ``None`` here so the\ngeneric PATCH ``/clients/{uid}`` surface cannot mutate it. Toggling the\nflag must go through ``PATCH /clients/{uid}/predictions-bounded`` which\ngates on system-scope ``client:admin`` (platform_admin / platform_impersonator)\nAND triggers a prediction recalc. Per-client editors/admins must not be\nable to flip prediction behavior via the generic update path."},"ClientVariantUpdate":{"properties":{"variant_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant Uid"}},"type":"object","required":["variant_uid"],"title":"ClientVariantUpdate","description":"Platform-only per-client taxonomy-v1 variant override."},"CompanyRiskWidget":{"properties":{"loss_probability":{"type":"number","title":"Loss Probability","default":0.0},"platform_avg":{"type":"number","title":"Platform Avg","default":0.0}},"type":"object","title":"CompanyRiskWidget"},"ComparisonBundle":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"risk":{"$ref":"#/components/schemas/ReportRiskSection"},"defense_grade":{"type":"string","title":"Defense Grade"},"defense_grades":{"additionalProperties":{"type":"integer"},"type":"object","title":"Defense Grades"},"spending":{"$ref":"#/components/schemas/SpendingResponse"},"standards":{"additionalProperties":{"$ref":"#/components/schemas/ComparisonStandard"},"type":"object","title":"Standards"},"controls":{"items":{"$ref":"#/components/schemas/ComparisonControl"},"type":"array","title":"Controls"}},"type":"object","required":["uid","name","risk","defense_grade","defense_grades","spending","standards","controls"],"title":"ComparisonBundle"},"ComparisonControl":{"properties":{"uid":{"type":"string","title":"Uid"},"lineage_uid":{"type":"string","title":"Lineage Uid"},"name":{"type":"string","title":"Name"},"vendor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Name"},"custom":{"type":"boolean","title":"Custom","default":false},"maturity":{"type":"number","title":"Maturity","default":0.0},"cost":{"type":"number","title":"Cost","default":0.0},"coverage":{"type":"number","title":"Coverage","default":0.0},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"expiration_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiration Date"}},"type":"object","required":["uid","lineage_uid","name"],"title":"ComparisonControl"},"ComparisonResponse":{"properties":{"cs1":{"$ref":"#/components/schemas/ComparisonBundle"},"cs2":{"$ref":"#/components/schemas/ComparisonBundle"},"debug":{"anyOf":[{"$ref":"#/components/schemas/DebugEnvelope"},{"type":"null"}],"description":"Present when ?debug=true"}},"type":"object","required":["cs1","cs2"],"title":"ComparisonResponse"},"ComparisonStandard":{"properties":{"coverage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coverage","default":0.0},"statements":{"items":{"$ref":"#/components/schemas/StatementComplianceNode"},"type":"array","title":"Statements"}},"type":"object","title":"ComparisonStandard"},"ComplianceDashboardResponse":{"properties":{"standards":{"items":{"$ref":"#/components/schemas/ComplianceStandardWidget"},"type":"array","title":"Standards"},"debug":{"anyOf":[{"$ref":"#/components/schemas/DebugEnvelope"},{"type":"null"}],"description":"Present when ?debug=true"}},"type":"object","title":"ComplianceDashboardResponse"},"ComplianceStandardWidget":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"coverage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coverage","default":0.0},"avg_maturity":{"type":"number","title":"Avg Maturity","default":0.0},"category_count":{"type":"integer","title":"Category Count","default":0},"covered_count":{"type":"integer","title":"Covered Count","default":0},"title":{"type":"string","title":"Title","default":""},"tooltip":{"type":"string","title":"Tooltip","default":""}},"type":"object","required":["key","name","slug"],"title":"ComplianceStandardWidget"},"ConsolidationAlternative":{"properties":{"uid":{"type":"string","title":"Uid","description":"Catalog control UID of the considered candidate"},"name":{"type":"string","title":"Name","description":"Catalog control name of the considered candidate"}},"additionalProperties":false,"type":"object","required":["uid","name"],"title":"ConsolidationAlternative","description":"One catalog control the consolidation flow weighed before\nadjudicating ``no_candidate``.\n\nStored on the origin edge as a JSON string (via ``record_occurrence``\n— Neo4j properties cannot hold lists of maps)."},"ConsolidationCandidateResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"client_uid":{"type":"string","title":"Client Uid"},"set_uid":{"type":"string","title":"Set Uid"},"implementation_uid":{"type":"string","title":"Implementation Uid"},"custom_anchor_uid":{"type":"string","title":"Custom Anchor Uid"},"suggested_catalog_uid":{"type":"string","title":"Suggested Catalog Uid"},"control_name":{"type":"string","title":"Control Name"},"suggested_name":{"type":"string","title":"Suggested Name"},"score":{"type":"number","title":"Score"},"kind":{"$ref":"#/components/schemas/MatchKind"},"needs_review":{"type":"boolean","title":"Needs Review"},"status":{"$ref":"#/components/schemas/ConsolidationCandidateStatus","default":"open"},"last_run_id":{"type":"string","title":"Last Run Id"},"sweep_scope":{"type":"string","title":"Sweep Scope"},"hook_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hook Type"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_seen_at":{"type":"string","format":"date-time","title":"Last Seen At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions"}},"type":"object","required":["uid","client_uid","set_uid","implementation_uid","custom_anchor_uid","suggested_catalog_uid","control_name","suggested_name","score","kind","needs_review","last_run_id","sweep_scope","created_at","last_seen_at"],"title":"ConsolidationCandidateResponse"},"ConsolidationCandidateStatus":{"type":"string","enum":["open","applied","dismissed"],"title":"ConsolidationCandidateStatus","description":"Lifecycle of a sweep finding.\n\n``applied`` / ``dismissed`` are terminal in layer 1 (the re-link\napply and the dismissal land in layers 2–3 / item 3). A resolved row\nis history: a later sweep mints a fresh open row for the same pair\ninstead of flipping it back."},"ConsolidationCatalogRequestCreate":{"properties":{"provenance":{"anyOf":[{"$ref":"#/components/schemas/ConsolidationProvenance"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"ConsolidationCatalogRequestCreate","description":"Body for the user-scoped consolidation add-request submission.\n\nThe submission targets an EXISTING custom control, so the only\npayload is the advisory provenance block — everything is optional\n(a bare submission with an empty body is valid and lands with the\nservice's default ``source_summary`` only)."},"ConsolidationProvenance":{"properties":{"source_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Summary","description":"Flow summary of the no-candidate adjudication for this control"},"match_confidence":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Match Confidence","description":"Flow's catalog-match confidence (0 = no match, 1 = exact)"},"match_reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Reasoning","description":"Flow's reasoning for no catalog match"},"alternatives_considered":{"anyOf":[{"items":{"$ref":"#/components/schemas/ConsolidationAlternative"},"type":"array"},{"type":"null"}],"title":"Alternatives Considered","description":"Catalog candidates the flow considered and rejected"}},"additionalProperties":false,"type":"object","title":"ConsolidationProvenance","description":"The flow's ``no_candidate`` rationale for one add-request submission.\n\nThe existing ``record_occurrence`` provenance keys — the service\noverlays the provided keys on its own default ``source_summary``\n(``\"consolidation flow\"``); ``None`` values never erase the default.\n``extra=\"forbid\"`` keeps unknown keys a 422 (no silent drop of\ncaller data at the wire boundary)."},"ConsolidationReportByClient":{"properties":{"client_uid":{"type":"string","title":"Client Uid"},"open":{"type":"integer","title":"Open"},"applied":{"type":"integer","title":"Applied"},"dismissed":{"type":"integer","title":"Dismissed"}},"type":"object","required":["client_uid","open","applied","dismissed"],"title":"ConsolidationReportByClient"},"ConsolidationReportKindCounts":{"properties":{"exact":{"type":"integer","title":"Exact"},"fuzzy":{"type":"integer","title":"Fuzzy"}},"type":"object","required":["exact","fuzzy"],"title":"ConsolidationReportKindCounts"},"ConsolidationReportResponse":{"properties":{"total":{"type":"integer","title":"Total"},"by_status":{"$ref":"#/components/schemas/ConsolidationReportStatusCounts"},"by_kind":{"$ref":"#/components/schemas/ConsolidationReportKindCounts"},"by_client":{"items":{"$ref":"#/components/schemas/ConsolidationReportByClient"},"type":"array","title":"By Client"},"top":{"items":{"$ref":"#/components/schemas/ConsolidationCandidateResponse"},"type":"array","title":"Top"},"truncated":{"type":"boolean","title":"Truncated"}},"type":"object","required":["total","by_status","by_kind","by_client","top","truncated"],"title":"ConsolidationReportResponse"},"ConsolidationReportStatusCounts":{"properties":{"open":{"type":"integer","title":"Open"},"applied":{"type":"integer","title":"Applied"},"dismissed":{"type":"integer","title":"Dismissed"}},"type":"object","required":["open","applied","dismissed"],"title":"ConsolidationReportStatusCounts"},"ConsolidationSweepDispatched":{"properties":{"task_id":{"type":"string","title":"Task Id"},"run_id":{"type":"string","title":"Run Id"}},"type":"object","required":["task_id","run_id"],"title":"ConsolidationSweepDispatched"},"ConsolidationSweepRequest":{"properties":{"client_uids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1},{"type":"null"}],"title":"Client Uids","description":"Explicit client scope; omitted = all active clients (capped at 500)"},"run_id":{"anyOf":[{"type":"string","maxLength":200,"minLength":1,"pattern":"^[A-Za-z0-9._:-]+$"},{"type":"null"}],"title":"Run Id","description":"Run identity (server-minted uuid when omitted)"}},"additionalProperties":false,"type":"object","title":"ConsolidationSweepRequest","description":"One sweep dispatch: optional explicit client scope + run identity.\n\n``extra=\"forbid\"`` — an unknown field is a 422, never a silent\nignore. ``client_uids`` over the cap is a 422 at validation time\n(``max_length``); ``run_id`` is optional (server-minted uuid\notherwise) and grammar-bounded like the enrichment run ids."},"ConsortiumUserRef":{"properties":{"uid":{"type":"string","maxLength":256,"minLength":1,"title":"Uid"},"name":{"type":"string","maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9\\-&_ ]+$","title":"Name"},"email":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Email"}},"type":"object","required":["uid","name"],"title":"ConsortiumUserRef","description":"Consortium staff member snapshot stored on the client profile (MTM-2061).\n\n``advisory_agent`` / ``sales_person`` store the FULL picked object (uid,\ndisplay name, email) rather than a graph edge: the pickers populate from\nConsortium staff and the profile must keep displaying the assignment even\nif the staff directory entry later changes or disappears. Persisted as a\nJSON-string node property (Neo4j refuses map properties — the\n``control_sets`` precedent); ``BaseGraphNode`` auto-parses it on hydration."},"ControlAbsorbRequest":{"properties":{"absorbed_control_uid":{"type":"string","title":"Absorbed Control Uid","description":"UID of the control to absorb"},"add_alt_name":{"type":"boolean","title":"Add Alt Name","description":"Add absorbed control name as alt name","default":true}},"type":"object","required":["absorbed_control_uid"],"title":"ControlAbsorbRequest","description":"Schema for absorbing one control into another."},"ControlCategoryRef":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""}},"type":"object","required":["name"],"title":"ControlCategoryRef","description":"A control category reference with name and description."},"ControlClassification":{"properties":{"control_anchor_uid":{"type":"string","title":"Control Anchor Uid"},"status":{"$ref":"#/components/schemas/CoverageStatus"},"legacy_categories":{"items":{"type":"string"},"type":"array","title":"Legacy Categories","default":[]},"resolved_function_ids":{"items":{"type":"string"},"type":"array","title":"Resolved Function Ids","default":[]},"unresolved_categories":{"items":{"type":"string"},"type":"array","title":"Unresolved Categories","default":[]},"category_suggestions":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Category Suggestions","default":{}},"catalog_suggestion":{"anyOf":[{"$ref":"#/components/schemas/CatalogSuggestion"},{"type":"null"}]},"implementation_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Implementation Name"}},"type":"object","required":["control_anchor_uid","status"],"title":"ControlClassification","description":"Deterministic coverage classification of one control anchor."},"ControlCreate":{"properties":{"is_deprecated":{"type":"boolean","title":"Is Deprecated","default":false},"deprecated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deprecated At"},"deprecated_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deprecated Reason"},"replacement_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replacement Uid"},"origin_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin Uid"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"control_type":{"$ref":"#/components/schemas/ControlType","default":"product"},"control_source":{"$ref":"#/components/schemas/ControlSource","default":"vendor"},"custom":{"type":"boolean","title":"Custom","default":false},"vetted":{"type":"boolean","title":"Vetted","default":false},"featured":{"type":"boolean","title":"Featured","default":false},"discontinued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Discontinued At"},"vendor_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Uid"},"vendor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Name"},"hosting":{"anyOf":[{"$ref":"#/components/schemas/DeploymentModel"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"efficacy":{"type":"number","title":"Efficacy","default":3.0},"control_categories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Control Categories"}},"type":"object","required":["name"],"title":"ControlCreate"},"ControlEnrichmentResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"control_anchor_uid":{"type":"string","title":"Control Anchor Uid"},"what_it_does":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"What It Does"},"use_cases":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Cases"},"differentiators":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Differentiators"},"lifecycle_signal":{"anyOf":[{"$ref":"#/components/schemas/LifecycleSignal"},{"type":"null"}]},"removal_recommendation":{"type":"boolean","title":"Removal Recommendation","default":false},"removal_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Removal Reason"},"is_service":{"type":"boolean","title":"Is Service","default":false},"service_type":{"anyOf":[{"$ref":"#/components/schemas/ServiceType"},{"type":"null"}]},"service_rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Rationale"},"enriched_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Enriched At"},"taxonomy_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Version"},"pipeline_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Run Id"},"service_delivery":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Delivery"},"taxonomy_available":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Taxonomy Available"},"taxonomy_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Description"},"within_vendor_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Within Vendor Context"},"primary_intent_bundle":{"anyOf":[{"$ref":"#/components/schemas/IntentBundle"},{"type":"null"}]},"co_primary_intent_bundles":{"items":{"$ref":"#/components/schemas/IntentBundle"},"type":"array","title":"Co Primary Intent Bundles"},"secondary_intent_bundles":{"items":{"$ref":"#/components/schemas/IntentBundle"},"type":"array","title":"Secondary Intent Bundles"},"adjacent_functions_not_covered":{"items":{"$ref":"#/components/schemas/AdjacentFunction"},"type":"array","title":"Adjacent Functions Not Covered"},"commonly_paired_with":{"items":{"type":"string"},"type":"array","title":"Commonly Paired With"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions"}},"type":"object","required":["uid","control_anchor_uid"],"title":"ControlEnrichmentResponse"},"ControlFunctionMappingResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"capability_id":{"type":"string","title":"Capability Id"},"capability_name":{"type":"string","title":"Capability Name"},"domain_id":{"type":"string","title":"Domain Id"},"domain_name":{"type":"string","title":"Domain Name"},"deprecated":{"type":"boolean","title":"Deprecated","default":false},"replaced_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replaced By"},"mapping":{"$ref":"#/components/schemas/MappingEvidence"}},"type":"object","required":["uid","name","capability_id","capability_name","domain_id","domain_name","mapping"],"title":"ControlFunctionMappingResponse","description":"One function mapped to a control, with the edge evidence.\n\nRow shape of ``TaxonomyRepository.FUNCTIONS_FOR_CONTROL`` — the\nfunction projection flattened with the ``mapping`` sub-object."},"ControlMaturityWidget":{"properties":{"avg_maturity":{"type":"number","title":"Avg Maturity","default":0.0},"total_controls":{"type":"integer","title":"Total Controls","default":0},"total_spend":{"type":"number","title":"Total Spend","default":0.0},"platform_avg_maturity":{"type":"number","title":"Platform Avg Maturity","default":0.0}},"type":"object","title":"ControlMaturityWidget"},"ControlParityResponse":{"properties":{"control_anchor_uid":{"type":"string","title":"Control Anchor Uid"},"customized":{"type":"boolean","title":"Customized"},"legacy_technique_ids":{"items":{"type":"string"},"type":"array","title":"Legacy Technique Ids"},"taxonomy_technique_ids":{"items":{"type":"string"},"type":"array","title":"Taxonomy Technique Ids"},"added":{"items":{"type":"string"},"type":"array","title":"Added"},"removed":{"items":{"type":"string"},"type":"array","title":"Removed"},"identical":{"type":"boolean","title":"Identical"}},"type":"object","required":["control_anchor_uid","customized","identical"],"title":"ControlParityResponse","description":"Per-control shadow-parity row — both mitigated sets + the delta.\n\n``removed`` techniques are BLOCKING (crosswalk gap / mapping\nerror); ``added`` are non-blocking candidate improvements.\n``customized`` marks customized implementations (legacy categories differ\nfrom the catalog head, or a ``DELIVERS_FUNCTION`` override set\nexists). Customized rows WITH an override set compare normally\n(taxonomy side = the override set); those without one are excluded\nfrom client-level attribution and listed in\n``customized_control_uids``."},"ControlRef":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"vendor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Name"},"maturity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Maturity"},"cav_managed":{"type":"boolean","title":"Cav Managed","default":false},"cav_source_tools":{"items":{"type":"string"},"type":"array","title":"Cav Source Tools"}},"type":"object","required":["uid","name"],"title":"ControlRef","description":"Lightweight per-control reference attached to a technique.\n\nCarries just enough for the Threats (MITRE) report's expandable\ncontrols list (name + vendor + maturity). The full graph object\nis reachable via ``uid`` if a caller needs more."},"ControlResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"status":{"$ref":"#/components/schemas/AnchorStatus","default":"active"},"is_deprecated":{"type":"boolean","title":"Is Deprecated","default":false},"deprecated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deprecated At"},"deprecated_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deprecated Reason"},"replacement_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replacement Uid"},"origin_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin Uid"},"deleted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deleted"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"control_type":{"$ref":"#/components/schemas/ControlType","default":"product"},"control_source":{"$ref":"#/components/schemas/ControlSource","default":"vendor"},"custom":{"type":"boolean","title":"Custom","default":false},"vetted":{"type":"boolean","title":"Vetted","default":false},"featured":{"type":"boolean","title":"Featured","default":false},"discontinued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Discontinued At"},"vendor_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Uid"},"vendor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Name"},"hosting":{"anyOf":[{"$ref":"#/components/schemas/DeploymentModel"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"efficacy":{"type":"number","title":"Efficacy","default":3.0},"control_categories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Control Categories"},"updated":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions"}},"type":"object","required":["uid","name"],"title":"ControlResponse"},"ControlSetClientEntry":{"properties":{"client_uid":{"type":"string","title":"Client Uid"},"client_name":{"type":"string","title":"Client Name"},"applied_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Applied At"},"applied_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Applied By"}},"type":"object","required":["client_uid","client_name"],"title":"ControlSetClientEntry","description":"A client that has a control set applied."},"ControlSetCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"change_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Summary"}},"type":"object","required":["name"],"title":"ControlSetCreate"},"ControlSetResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"status":{"$ref":"#/components/schemas/AnchorStatus","default":"active"},"deleted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deleted"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"change_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Summary"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version","default":1},"client_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Client Count","default":0},"client_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Uid"},"control_count":{"type":"integer","title":"Control Count","default":0}},"type":"object","required":["uid","name"],"title":"ControlSetResponse"},"ControlSetUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"change_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Summary"},"locked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Locked"}},"type":"object","title":"ControlSetUpdate"},"ControlSource":{"type":"string","enum":["vendor","ucf","custom"],"title":"ControlSource","description":"Origin of a control definition."},"ControlState":{"type":"string","enum":["direct","inherited","opted_out"],"title":"ControlState","description":"Deployment state of a control on a client."},"ControlSummary":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"vendor_name":{"type":"string","title":"Vendor Name","default":""},"maturity":{"type":"number","title":"Maturity","default":0.0},"cost":{"type":"number","title":"Cost","default":0.0},"cav_managed":{"type":"boolean","title":"Cav Managed","default":false},"cav_source_tools":{"items":{"type":"string"},"type":"array","title":"Cav Source Tools"}},"type":"object","required":["uid","name"],"title":"ControlSummary","description":"Lightweight control summary for category breakdown."},"ControlType":{"type":"string","enum":["product","procedure","process","policy"],"title":"ControlType","description":"Classification of a security control."},"ControlUpdate":{"properties":{"is_deprecated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Deprecated"},"deprecated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deprecated At"},"deprecated_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deprecated Reason"},"replacement_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replacement Uid"},"origin_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin Uid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"control_type":{"anyOf":[{"$ref":"#/components/schemas/ControlType"},{"type":"null"}]},"control_source":{"anyOf":[{"$ref":"#/components/schemas/ControlSource"},{"type":"null"}]},"custom":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Custom"},"vetted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Vetted"},"featured":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Featured"},"discontinued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Discontinued At"},"vendor_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Uid"},"vendor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Name"},"hosting":{"anyOf":[{"$ref":"#/components/schemas/DeploymentModel"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"efficacy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Efficacy"},"control_categories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Control Categories"}},"type":"object","title":"ControlUpdate"},"ControlVendorReassignResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"vendor_uid":{"type":"string","title":"Vendor Uid"},"vendor_name":{"type":"string","title":"Vendor Name"}},"type":"object","required":["uid","name","vendor_uid","vendor_name"],"title":"ControlVendorReassignResponse","description":"Response after reassigning a control's vendor."},"ControlVendorUpdate":{"properties":{"vendor_uid":{"type":"string","title":"Vendor Uid","description":"UID of the new vendor"}},"type":"object","required":["vendor_uid"],"title":"ControlVendorUpdate","description":"Schema for reassigning a control's vendor."},"ControlsByCategory":{"properties":{"category":{"type":"string","title":"Category"},"control_count":{"type":"integer","title":"Control Count","default":0},"avg_maturity":{"type":"number","title":"Avg Maturity","default":0.0},"total_cost":{"type":"number","title":"Total Cost","default":0.0},"controls":{"items":{"$ref":"#/components/schemas/ControlSummary"},"type":"array","title":"Controls"}},"type":"object","required":["category"],"title":"ControlsByCategory","description":"Aggregated control data for a single functional category."},"ControlsResponse":{"properties":{"summary":{"$ref":"#/components/schemas/ControlsSummary"},"by_category":{"items":{"$ref":"#/components/schemas/ControlsByCategory"},"type":"array","title":"By Category"}},"type":"object","title":"ControlsResponse","description":"Response for controls analytics — used in dashboard and compliance."},"ControlsSummary":{"properties":{"total_controls":{"type":"integer","title":"Total Controls","default":0},"total_categories":{"type":"integer","title":"Total Categories","default":0},"avg_maturity":{"type":"number","title":"Avg Maturity","default":0.0},"total_cost":{"type":"number","title":"Total Cost","default":0.0}},"type":"object","title":"ControlsSummary","description":"Summary of all controls across categories."},"CopyControlSetRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"Name for the new copy"},"target_client_uid":{"type":"string","title":"Target Client Uid","description":"Client to apply the copied set to"},"control_uids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Control Uids","description":"Optional partial-copy filter: list of ControlAnchor UIDs to include from the source set. Omit for a full copy."}},"type":"object","required":["name","target_client_uid"],"title":"CopyControlSetRequest","description":"Copy a control set with all (or a filtered subset of) its implementations.\n\nWhen ``control_uids`` is provided, only implementations whose underlying\n``ControlAnchor.uid`` appears in the list are copied into the new set —\nthis is the \"partial copy\" path. When omitted, the full set is copied\n(legacy behaviour)."},"CoverageStatus":{"type":"string","enum":["mapped","unmapped","uncategorized","product_unmapped"],"title":"CoverageStatus","description":"Coverage status of one control anchor against the crosswalk.\n\nEnum values are the wire shape (lowercase strings)."},"CrosswalkFallback":{"properties":{"legacy_category":{"type":"string","title":"Legacy Category"},"candidate_function_ids":{"items":{"type":"string"},"type":"array","title":"Candidate Function Ids"},"grain":{"type":"string","title":"Grain"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["legacy_category","grain"],"title":"CrosswalkFallback"},"CustomBulkRowResult":{"properties":{"index":{"type":"integer","title":"Row position in the request payload"},"name":{"type":"string","title":"Control name from the row"},"status":{"type":"string","enum":["added","failed"],"title":"Outcome for this row"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason a row failed, if any"}},"type":"object","required":["index","name","status"],"title":"CustomBulkRowResult","description":"Per-row outcome of a bulk custom-control import."},"CustomControlCreateInSet":{"properties":{"name":{"type":"string","title":"Name","description":"Control name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Control description"},"control_type":{"$ref":"#/components/schemas/ControlType"},"control_categories":{"items":{"type":"string"},"type":"array","title":"Control Categories"},"maturity":{"anyOf":[{"type":"number","maximum":5.0,"minimum":0.0},{"type":"null"}],"title":"Maturity"},"cost":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cost"},"coverage":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Coverage"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"expiration_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expiration Date"},"efficacy":{"type":"number","maximum":5.0,"minimum":0.0,"title":"Efficacy","default":3.0},"taxonomy_function_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Taxonomy Function Ids","description":"Taxonomy function ids for taxonomy_v1 tenants (replaces category input)"},"capability_assessments":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/CapabilityAssessment"},"type":"object"},{"type":"null"}],"title":"Capability Assessments","description":"Per-capability metric overrides keyed by this control's classification"},"maturity_answers":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Maturity Answers"},"vendor_fiscal_year_start":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Vendor Fiscal Year Start"},"vendor_nda":{"anyOf":[{"$ref":"#/components/schemas/NdaType"},{"type":"null"}]},"vendor_renewal_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Vendor Renewal Date"},"vendor_discount_percentage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Vendor Discount Percentage"},"vendor_renewal_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Renewal Info"},"vendor_bulk_pricing_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Bulk Pricing Info"},"vendor_cancel_clauses":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Cancel Clauses"},"vendor_sla_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Sla Info"},"vendor_out_clauses":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Out Clauses"},"cost_recurring_license_fees":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Recurring License Fees"},"cost_fte_consulting_fees":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Fte Consulting Fees"},"cost_hardware":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Hardware"},"cost_perpetual_licensing":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Perpetual Licensing"},"cost_professional_services":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Professional Services"},"cost_enhancement_integration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Enhancement Integration"},"cost_initial_implementation":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Initial Implementation"},"cost_csp_hosting":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cost Csp Hosting"},"source_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Summary","description":"Agent summary of the source evidence for this control"},"match_confidence":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Match Confidence","description":"Agent's catalog-match confidence (0 = no match, 1 = exact)"},"match_reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Reasoning","description":"Agent's reasoning for creating a custom instead of a catalog match"},"alternatives_considered":{"anyOf":[{"items":{"$ref":"#/components/schemas/AlternativeCandidate"},"type":"array"},{"type":"null"}],"title":"Alternatives Considered","description":"Catalog candidates the agent considered and rejected"}},"type":"object","required":["name","control_type"],"title":"CustomControlCreateInSet","description":"Create a custom control and add it to a control set atomically.\n\nCreates ControlAnchor + ControlNode + ImplementationAnchor + ImplementationNode\n+ CONTAINS + IMPLEMENTS edges in a single transaction.\n\n``control_categories`` is validated against the canonical vocabulary\n(`get_canonical_categories()`) via `_check_categories`. Names outside\nthe canonical set 422 with per-name suggestions from the same\ndifflib pass every other write schema uses. Empty list is a legal\nzero-category custom (no validation performed on an empty input).\nHistorical bogus values (48 distinct non-canonical names across\n204 impls / 55 sets / 16 clients as of 2026-08-31) landed here\nbecause this was the last writer schema without the guard — see\nMTM-2087. `list[str]` (not `list[str] | None`) preserves the\nnon-nullable API contract; the `_ValidatedCategories` alias defined\nabove types as nullable and cannot be reused directly."},"CustomControlMigrationCandidate":{"properties":{"control_anchor_uid":{"type":"string","title":"Control Anchor Uid"},"control_anchor_uids":{"items":{"type":"string"},"type":"array","title":"Control Anchor Uids"},"control_name":{"type":"string","title":"Control Name"},"control_categories":{"items":{"type":"string"},"type":"array","title":"Control Categories"},"control_source":{"type":"string","title":"Control Source"},"existing_mappings":{"items":{"$ref":"#/components/schemas/ExistingMapping"},"type":"array","title":"Existing Mappings"},"direct_match":{"anyOf":[{"$ref":"#/components/schemas/DirectMatch"},{"type":"null"}]},"crosswalk_fallback":{"items":{"$ref":"#/components/schemas/CrosswalkFallback"},"type":"array","title":"Crosswalk Fallback"},"recommended_action":{"type":"string","title":"Recommended Action"},"no_coverage_acknowledgment":{"anyOf":[{"$ref":"#/components/schemas/NoCoverageAcknowledgment"},{"type":"null"}]}},"type":"object","required":["control_anchor_uid","control_name","control_source","recommended_action"],"title":"CustomControlMigrationCandidate"},"CustomFieldOption":{"properties":{"value":{"type":"string","title":"Value","description":"Option value"},"label":{"type":"string","title":"Label","description":"Display label"}},"type":"object","required":["value","label"],"title":"CustomFieldOption","description":"An option for a select-type custom field."},"CustomFieldSchema":{"properties":{"key":{"type":"string","maxLength":100,"minLength":1,"title":"Key","description":"Unique field identifier"},"label":{"type":"string","maxLength":200,"minLength":1,"title":"Label","description":"Display label"},"type":{"$ref":"#/components/schemas/CustomFieldType","description":"Field data type"},"required":{"type":"boolean","title":"Required","description":"Is this field required?","default":false},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Help text for the field"},"default":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}],"title":"Default","description":"Default value"},"options":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomFieldOption"},"type":"array"},{"type":"null"}],"title":"Options","description":"Options for select-type fields"}},"type":"object","required":["key","label","type"],"title":"CustomFieldSchema","description":"Schema for a custom field on risks."},"CustomFieldType":{"type":"string","enum":["text","number","date","select"],"title":"CustomFieldType","description":"Data types for custom fields in workflow steps."},"CustomerImpactWidget":{"properties":{"categories":{"items":{"$ref":"#/components/schemas/ValuationCategoryItem"},"type":"array","title":"Categories"},"cbri_max":{"type":"number","title":"Cbri Max","default":0.0},"cbri_recovery_max":{"type":"number","title":"Cbri Recovery Max","default":0.0}},"type":"object","title":"CustomerImpactWidget"},"CveCwePivot":{"properties":{"cwes":{"items":{"type":"string"},"type":"array","title":"Cwes","description":"CWE IDs mapped from the CVE (e.g. ['CWE-79', 'CWE-89'])."}},"type":"object","title":"CveCwePivot","description":"CWE IDs mapped from a CVE in the NVD graph.\n\nPowers the /threat-intel CVE search: user types a CVE id, we return\nthe CWEs it maps to, and the UI pivots the filter onto those CWE rows.\nEmpty ``cwes`` is valid (CVE exists but has no CWE mappings).\nUnknown CVE → HTTP 404 at the route layer."},"DashboardCategoryItem":{"properties":{"label":{"type":"string","title":"Label"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"count":{"type":"integer","title":"Count"},"new_this_month":{"type":"integer","title":"New This Month","default":0},"percentage":{"type":"number","title":"Percentage"}},"type":"object","required":["label","count","percentage"],"title":"DashboardCategoryItem"},"DashboardKpisResponse":{"properties":{"critical_risks_count":{"type":"integer","title":"Critical Risks Count","default":0},"top_band_label":{"type":"string","title":"Top Band Label","default":""},"top_band_color":{"type":"string","title":"Top Band Color","default":""},"top_band_threshold":{"type":"integer","title":"Top Band Threshold","default":0},"overdue_mitigations_count":{"type":"integer","title":"Overdue Mitigations Count","default":0},"total_open_risks":{"type":"integer","title":"Total Open Risks","default":0},"velocity_30d":{"type":"integer","title":"Velocity 30D","default":0},"velocity_prev_30d":{"type":"integer","title":"Velocity Prev 30D","default":0},"last_closed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Closed At"},"avg_planned_duration_days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Planned Duration Days"},"active_plan_count":{"type":"integer","title":"Active Plan Count","default":0},"on_time_rate_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"On Time Rate Pct"},"completed_plan_count":{"type":"integer","title":"Completed Plan Count","default":0},"avg_inherent_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Inherent Score"},"risks_scored_inherent":{"type":"integer","title":"Risks Scored Inherent","default":0},"avg_residual_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Residual Score"},"risks_scored_residual":{"type":"integer","title":"Risks Scored Residual","default":0},"status_breakdown":{"items":{"$ref":"#/components/schemas/DashboardStatusItem"},"type":"array","title":"Status Breakdown"},"category_breakdown":{"items":{"$ref":"#/components/schemas/DashboardCategoryItem"},"type":"array","title":"Category Breakdown"},"severity_breakdown":{"items":{"$ref":"#/components/schemas/DashboardSeverityItem"},"type":"array","title":"Severity Breakdown"}},"type":"object","title":"DashboardKpisResponse"},"DashboardLayoutResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"version":{"type":"integer","title":"Version","default":1},"created":{"type":"string","format":"date-time","title":"Created"},"changed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changed By"},"change_source":{"anyOf":[{"$ref":"#/components/schemas/ChangeSource"},{"type":"null"}]},"change_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Reason"},"content_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Hash"},"chain_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chain Hash"},"used_in_calculations":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Used In Calculations"},"deleted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deleted"},"user_uid":{"type":"string","title":"User Uid"},"client_uid":{"type":"string","title":"Client Uid"},"dashboard_id":{"type":"string","title":"Dashboard Id"},"layout_schema_version":{"type":"integer","title":"Layout Schema Version","default":1},"rows":{"items":{"$ref":"#/components/schemas/DashboardRow"},"type":"array","title":"Rows"},"widgets":{"items":{"$ref":"#/components/schemas/DashboardWidgetInstance"},"type":"array","title":"Widgets"},"widget_keys":{"items":{"type":"string"},"type":"array","title":"Widget Keys"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions"}},"type":"object","required":["uid","user_uid","client_uid","dashboard_id"],"title":"DashboardLayoutResponse","description":"Derived node response + Neo4j JSON-blob round-trip.\n\n``response_type()`` derives from ``_Neo4jSafeModel``, which does NOT\ninherit ``BaseGraphNode._parse_json_stored_fields`` — so ``rows`` /\n``widgets`` arriving as JSON strings from Neo4j would fail ``list``\nvalidation on read. This subclass restores the parse step (subclassing\na derived type is the house pattern, e.g. ``schemas/client.py``)."},"DashboardRow":{"properties":{"uid":{"type":"string","title":"Uid"},"units":{"type":"integer","enum":[3,4,6,8],"title":"Units"}},"type":"object","required":["uid","units"],"title":"DashboardRow","description":"One horizontal band of the dashboard grid (frozen wire type)."},"DashboardSeverityItem":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"color":{"type":"string","title":"Color"},"score_min":{"type":"integer","title":"Score Min"},"score_max":{"type":"integer","title":"Score Max"},"count":{"type":"integer","title":"Count"},"new_this_month":{"type":"integer","title":"New This Month","default":0},"percentage":{"type":"number","title":"Percentage"}},"type":"object","required":["id","label","color","score_min","score_max","count","percentage"],"title":"DashboardSeverityItem"},"DashboardStatusItem":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"color":{"type":"string","title":"Color"},"count":{"type":"integer","title":"Count"},"new_this_month":{"type":"integer","title":"New This Month","default":0},"percentage":{"type":"number","title":"Percentage"}},"type":"object","required":["id","label","color","count","percentage"],"title":"DashboardStatusItem"},"DashboardWidgetInstance":{"properties":{"uid":{"type":"string","title":"Uid"},"widget_key":{"$ref":"#/components/schemas/WidgetKeyValue"},"size":{"$ref":"#/components/schemas/WidgetSize"},"row_uid":{"type":"string","title":"Row Uid"},"col":{"type":"integer","minimum":0.0,"title":"Col"},"row_offset":{"type":"integer","minimum":0.0,"title":"Row Offset","default":0},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"}},"type":"object","required":["uid","widget_key","size","row_uid","col"],"title":"DashboardWidgetInstance","description":"Placement of one widget inside a row band (frozen wire type)."},"DebugEnvelope":{"properties":{"computation_id":{"type":"string","title":"Computation Id","description":"Unique per-request trace ID (ULID)"},"computed_at":{"type":"string","format":"date-time","title":"Computed At","description":"UTC timestamp of compute phase"},"timings_ms":{"additionalProperties":{"type":"number"},"type":"object","title":"Timings Ms","description":"Per-phase wall-clock durations in milliseconds"},"fingerprint":{"type":"string","title":"Fingerprint","description":"Data snapshot identifier (e.g. graph SHA-256 prefix)","default":""},"inputs":{"additionalProperties":true,"type":"object","title":"Inputs","description":"Cardinalities/metadata about the data driving computation"}},"additionalProperties":true,"type":"object","required":["computation_id","computed_at"],"title":"DebugEnvelope","description":"Standard debug payload attached to responses.\n\nUniversal fields (always present when debug is enabled):\n    computation_id: Unique per-request trace ID (ULID).\n    computed_at: UTC timestamp of the computation.\n    timings_ms: Per-phase wall-clock durations in milliseconds.\n    fingerprint: Data snapshot identifier proving what input state\n        was used. Any service doing computation-on-read needs this\n        to prove atomicity.\n    inputs: Cardinalities/metadata about the data driving the\n        computation. Shows what went in so changes in output can\n        be correlated to changes in input.\n\nDynamic fields (populated by collectors):\n    Collector outputs appear under their ``collector.key``\n    (e.g. ``formula_trace``, ``permissions``).\n\n``extra = \"allow\"`` ensures additional domain-specific fields\npass through without needing to declare them upfront."},"DefaultControlSetRef":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uid","name"],"title":"DefaultControlSetRef"},"DefenseOverview":{"properties":{"total_techniques":{"type":"integer","title":"Total Techniques","default":0},"covered_techniques":{"type":"integer","title":"Covered Techniques","default":0},"coverage_percent":{"type":"number","title":"Coverage Percent","default":0.0},"scores_avg":{"type":"number","title":"Scores Avg","default":0.0},"grade":{"$ref":"#/components/schemas/Grade","default":"F"},"impactful_attack_probability_avg":{"type":"number","title":"Impactful Attack Probability Avg","default":100.0}},"type":"object","title":"DefenseOverview","description":"Overall defense posture summary.\n\nMatches phoenix-api's PCDefenseRollup structure."},"DefenseResponse":{"properties":{"overview":{"$ref":"#/components/schemas/DefenseOverview"},"grades":{"additionalProperties":{"type":"integer"},"type":"object","title":"Grades"},"grade":{"$ref":"#/components/schemas/Grade","default":"F"},"techniques":{"items":{"$ref":"#/components/schemas/TechniqueDefense"},"type":"array","title":"Techniques"},"tactics":{"items":{"$ref":"#/components/schemas/TacticDefense"},"type":"array","title":"Tactics"}},"type":"object","title":"DefenseResponse","description":"Complete defense analytics response.\n\nCompatible with phoenix-api's dashboard/defense endpoint\n(``DashboardDefenseResponse`` in\n``phoenix_api/app/lib/models/response.py``):\n\n* ``grades``  — letter-grade histogram keyed by ``\"A\"..\"F\"`` with the\n  count of techniques in each bucket. Mirrors phoenix's\n  ``dashboard_defense_metrics_worker`` which initializes\n  ``{\"A\": 0, \"B\": 0, \"C\": 0, \"D\": 0, \"F\": 0}`` and increments\n  ``grades[pc_technique.grade] += 1`` per technique.\n* ``grade`` — overall control-set grade letter (mirror of\n  ``overview.grade``). Top-level for parity with phoenix's\n  ``DashboardDefenseResponse.grade`` and so the FE\n  ``useDashboardsDefense`` hook can read ``data.grade`` directly."},"DeleteNodeRequest":{"properties":{"node_uid":{"type":"string","title":"Node Uid","description":"Key of the node to delete"},"strategy":{"$ref":"#/components/schemas/DeletionMode","description":"'reparent': Move children to grandparent, delete only this node. 'cascade': Delete this node and ALL descendants."},"hierarchy_type":{"type":"string","title":"Hierarchy Type","description":"Hierarchy type to operate on (default: legal)","default":"legal"}},"type":"object","required":["node_uid","strategy"],"title":"DeleteNodeRequest","description":"Request to delete a node from the hierarchy."},"DeleteNodeResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"deleted_uid":{"type":"string","title":"Deleted Uid"},"strategy":{"$ref":"#/components/schemas/DeletionMode"},"parent_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Uid","description":"Parent of deleted node (children reparented here)"},"reparented_count":{"type":"integer","title":"Reparented Count","description":"Number of children reparented (reparent strategy)","default":0},"cascade_deleted_count":{"type":"integer","title":"Cascade Deleted Count","description":"Number of descendants deleted (cascade strategy)","default":0},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","deleted_uid","strategy","message"],"title":"DeleteNodeResponse","description":"Response from delete operation."},"DeletionMode":{"type":"string","enum":["reparent","cascade","soft_delete"],"title":"DeletionMode","description":"How to handle hierarchy node deletion and its outcome.\n\nRequest-side: REPARENT or CASCADE describe the intent.\nResponse-side: REPARENT or SOFT_DELETE describe what happened."},"DeploymentModel":{"type":"string","enum":["N/A","None","Cloud","On Premises","Both","Either"],"title":"DeploymentModel","description":"Where a control is deployed/hosted."},"DeprecatedMappingRow":{"properties":{"control_anchor_uid":{"type":"string","title":"Control Anchor Uid"},"function_id":{"type":"string","title":"Function Id"},"deprecated_in":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deprecated In","description":"Taxonomy release that deprecated the function"},"origin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin","description":"Edge origin (research/crosswalk/manual) — tells the curator how much evidence a remap discards"}},"type":"object","required":["control_anchor_uid","function_id"],"title":"DeprecatedMappingRow","description":"One live control still MAPPED_TO a deprecated function."},"DeprecatedMappingsResponse":{"properties":{"clean":{"type":"boolean","title":"Clean"},"stale_mappings":{"items":{"$ref":"#/components/schemas/DeprecatedMappingRow"},"type":"array","title":"Stale Mappings"}},"type":"object","required":["clean"],"title":"DeprecatedMappingsResponse","description":"Deprecated-mapping audit: live controls mapped to\ndeprecated functions.\n\nHealthy graph ⇒ ``clean=true`` and an empty list. A hit means a\nfunction was deprecated (admin curation) while mapping edges still\npoint at it — remap via ``PUT /admin/taxonomy/controls/{uid}/\nmappings/{fn}`` or remove via its DELETE; ``origin`` says how much\nevidence the remap discards. Computed per request, never persisted."},"DeprovisionUserResponse":{"properties":{"user_uid":{"type":"string","title":"User Uid","description":"Deprovisioned user's uid"},"removed_bindings":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Removed Bindings","description":"Bindings removed by THIS call. Empty on an idempotent retry."}},"type":"object","required":["user_uid"],"title":"DeprovisionUserResponse","description":"Response body for DELETE /rbac/users/{user_uid}/bindings (MTM-2048)."},"DetachSetRequest":{"properties":{"client_uid":{"type":"string","title":"Client Uid"}},"type":"object","required":["client_uid"],"title":"DetachSetRequest","description":"Detach a control set from a client."},"DetachSetResponse":{"properties":{"client_uid":{"type":"string","title":"Client Uid"},"set_uid":{"type":"string","title":"Set Uid"},"controls_removed":{"type":"integer","title":"Controls Removed","default":0},"controls_kept":{"type":"integer","title":"Controls Kept","default":0}},"type":"object","required":["client_uid","set_uid"],"title":"DetachSetResponse","description":"Result of detaching a set from a client."},"DirectMatch":{"properties":{"source_file":{"type":"string","title":"Source File"},"matched_by":{"type":"string","title":"Matched By"},"candidate_function_ids":{"items":{"type":"string"},"type":"array","title":"Candidate Function Ids"},"name_hint_function_ids":{"items":{"type":"string"},"type":"array","title":"Name Hint Function Ids"},"human_review":{"type":"boolean","title":"Human Review"},"review_reasons":{"items":{"type":"string"},"type":"array","title":"Review Reasons"}},"type":"object","required":["source_file","matched_by","human_review"],"title":"DirectMatch"},"DirectoryUserEntry":{"properties":{"user_uid":{"type":"string","title":"User Uid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"roles":{"items":{"$ref":"#/components/schemas/_DirectoryRoleBinding"},"type":"array","title":"Roles"},"has_access":{"type":"boolean","title":"Has Access","description":"True iff the user has at least one active role binding.","default":false}},"type":"object","required":["user_uid"],"title":"DirectoryUserEntry","description":"A UserRef enriched with profile fields and any active role bindings."},"DirectoryUsersResponse":{"properties":{"users":{"items":{"$ref":"#/components/schemas/DirectoryUserEntry"},"type":"array","title":"Users"},"total":{"type":"integer","title":"Total","description":"Total UserRefs returned."},"bound":{"type":"integer","title":"Bound","description":"Subset of `total` that have at least one active role binding."},"unbound":{"type":"integer","title":"Unbound","description":"Subset of `total` with zero active role bindings."}},"type":"object","required":["users","total","bound","unbound"],"title":"DirectoryUsersResponse","description":"Response for listing every UserRef known to the platform."},"EffectivePermission":{"properties":{"permission":{"type":"string","title":"Permission","description":"The permission in resource:action format"},"scope":{"type":"string","title":"Scope","description":"The scope this permission applies to"},"source_role":{"type":"string","title":"Source Role","description":"Role that grants this permission"},"source_scope":{"type":"string","title":"Source Scope","description":"Scope where role was assigned"},"inherited":{"type":"boolean","title":"Inherited","description":"True if inherited from parent scope"}},"type":"object","required":["permission","scope","source_role","source_scope","inherited"],"title":"EffectivePermission","description":"A computed effective permission with its source.\n\nUsed for debugging/auditing permission inheritance."},"EnrichmentImportDispatched":{"properties":{"task_id":{"type":"string","title":"Task Id"},"run_id":{"type":"string","title":"Run Id"},"pipeline_name":{"type":"string","title":"Pipeline Name"}},"type":"object","required":["task_id","run_id","pipeline_name"],"title":"EnrichmentImportDispatched"},"EnrichmentImportRequest":{"properties":{"drop_path":{"type":"string","minLength":1,"title":"Drop Path"},"run_id":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9._:-]+$","title":"Run Id"}},"type":"object","required":["drop_path","run_id"],"title":"EnrichmentImportRequest","description":"One drop file + its run identity (mirrors EnrichmentImportPayload)."},"EntityBreakdownItem":{"properties":{"client_uid":{"type":"string","title":"Client Uid"},"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name"},"risk_count":{"type":"integer","title":"Risk Count","default":0},"avg_inherent_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Inherent Score"},"avg_residual_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Residual Score"}},"type":"object","required":["client_uid"],"title":"EntityBreakdownItem"},"EntityDiff":{"properties":{"entity_type":{"type":"string","title":"Entity Type"},"uid":{"type":"string","title":"Uid"},"from_version":{"type":"integer","title":"From Version"},"to_version":{"type":"integer","title":"To Version"},"changes":{"items":{"$ref":"#/components/schemas/FieldChange"},"type":"array","title":"Changes"}},"type":"object","required":["entity_type","uid","from_version","to_version"],"title":"EntityDiff"},"EntityHistory":{"properties":{"entity_type":{"type":"string","title":"Entity Type"},"uid":{"type":"string","title":"Uid"},"entries":{"items":{"$ref":"#/components/schemas/ChangeLogEntry"},"type":"array","title":"Entries"}},"type":"object","required":["entity_type","uid"],"title":"EntityHistory"},"EntityType":{"type":"string","enum":["company","subsidiary","department","affiliate","customer","division"],"title":"EntityType","description":"Organizational entity type within a client hierarchy."},"ExclusionNodeType":{"type":"string","enum":["DOMAIN","CAPABILITY","FUNCTION"],"title":"ExclusionNodeType"},"ExecutiveSummaryResponse":{"properties":{"inherent_risk":{"anyOf":[{"$ref":"#/components/schemas/TopRiskWidget"},{"type":"null"}]},"residual_risk":{"anyOf":[{"$ref":"#/components/schemas/TopRiskWidget"},{"type":"null"}]},"loss_probability":{"anyOf":[{"$ref":"#/components/schemas/TopRiskWidget"},{"type":"null"}]},"company_risk_profile":{"anyOf":[{"$ref":"#/components/schemas/CompanyRiskWidget"},{"type":"null"}]},"adversarial_market_value":{"anyOf":[{"$ref":"#/components/schemas/AmvWidget"},{"type":"null"}]},"customer_impact":{"anyOf":[{"$ref":"#/components/schemas/CustomerImpactWidget"},{"type":"null"}]},"stock_impact":{"anyOf":[{"$ref":"#/components/schemas/StockImpactWidget"},{"type":"null"}]},"company_risk_trend":{"anyOf":[{"$ref":"#/components/schemas/RiskTrendWidget"},{"type":"null"}]},"control_maturity":{"anyOf":[{"$ref":"#/components/schemas/ControlMaturityWidget"},{"type":"null"}]},"peer_comparison":{"anyOf":[{"$ref":"#/components/schemas/PeerComparisonWidget"},{"type":"null"}]},"debug":{"anyOf":[{"$ref":"#/components/schemas/DebugEnvelope"},{"type":"null"}],"description":"Present when ?debug=true"}},"type":"object","title":"ExecutiveSummaryResponse"},"ExistingMapping":{"properties":{"function_id":{"type":"string","title":"Function Id"},"origin":{"type":"string","title":"Origin"}},"type":"object","required":["function_id","origin"],"title":"ExistingMapping"},"ExpectedResidualSchema":{"properties":{"likelihood":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":1.0},{"type":"null"}],"title":"Likelihood"},"impact":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":1.0},{"type":"null"}],"title":"Impact"},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score","description":"Computed likelihood * impact"},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rationale","description":"Explanation of expected residual reduction"}},"type":"object","title":"ExpectedResidualSchema"},"ExternalIdentityBindRequest":{"properties":{"source":{"type":"string","maxLength":64,"minLength":1,"title":"Source"},"external_id":{"type":"string","maxLength":255,"minLength":1,"title":"External Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"}},"type":"object","required":["source","external_id"],"title":"ExternalIdentityBindRequest","description":"Bind an external-system identifier to a canonical vendor."},"ExternalIdentityResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"source":{"type":"string","title":"Source"},"external_id":{"type":"string","title":"External Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"}},"type":"object","required":["uid","source","external_id"],"title":"ExternalIdentityResponse","description":"A single crosswalk binding as returned by the repository."},"FieldChange":{"properties":{"field":{"type":"string","title":"Field"},"old":{"title":"Old"},"new":{"title":"New"}},"type":"object","required":["field"],"title":"FieldChange","description":"One domain field that differs between two versions (Tier-2 detail)."},"FlipPreviewResponse":{"properties":{"current_residuals":{"additionalProperties":{"type":"number"},"type":"object","title":"Current Residuals"},"target_residuals":{"additionalProperties":{"type":"number"},"type":"object","title":"Target Residuals"},"delta":{"additionalProperties":{"type":"number"},"type":"object","title":"Delta"},"readiness":{"$ref":"#/components/schemas/FlipReadinessState"},"dormant_wizard_implementation_count":{"type":"integer","title":"Dormant Wizard Implementation Count"},"warning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Warning"}},"type":"object","required":["current_residuals","target_residuals","delta","readiness","dormant_wizard_implementation_count"],"title":"FlipPreviewResponse","description":"Read-only current-versus-target residual-risk comparison."},"FlipPreviewV2Response":{"properties":{"inherent_risk":{"additionalProperties":{"type":"number"},"type":"object","title":"Inherent Risk"},"per_control_set":{"items":{"$ref":"#/components/schemas/PerSetResidualsModel"},"type":"array","title":"Per Control Set"},"readiness":{"$ref":"#/components/schemas/FlipReadinessState"},"dormant_wizard_implementation_count":{"type":"integer","title":"Dormant Wizard Implementation Count"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"state_digest":{"type":"string","title":"State Digest"},"preview_digest":{"type":"string","title":"Preview Digest"},"variant_uid":{"type":"string","title":"Variant Uid"},"target_scheme":{"$ref":"#/components/schemas/TaxonomyScheme"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"migration_revision":{"type":"integer","title":"Migration Revision"},"global_generation":{"type":"integer","title":"Global Generation"}},"type":"object","required":["inherent_risk","per_control_set","readiness","dormant_wizard_implementation_count","warnings","state_digest","preview_digest","variant_uid","target_scheme","generated_at","migration_revision","global_generation"],"title":"FlipPreviewV2Response"},"FlipReadinessState":{"properties":{"parity_passes":{"type":"boolean","title":"Parity Passes"},"coverage_passes":{"type":"boolean","title":"Coverage Passes"},"effective_values_pass":{"type":"boolean","title":"Effective Values Pass"},"coverage_ratio":{"type":"number","title":"Coverage Ratio"},"min_coverage_ratio":{"type":"number","title":"Min Coverage Ratio"},"custom_control_v1_mappings_complete":{"type":"boolean","title":"Custom Control V1 Mappings Complete"},"implementation_v1_assessments_complete":{"type":"boolean","title":"Implementation V1 Assessments Complete"},"active_mapping_resolution_set_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Active Mapping Resolution Set Uid"}},"type":"object","required":["parity_passes","coverage_passes","effective_values_pass","coverage_ratio","min_coverage_ratio","custom_control_v1_mappings_complete","implementation_v1_assessments_complete"],"title":"FlipReadinessState","description":"Readiness projection returned with a taxonomy flip preview."},"Frequency":{"type":"string","enum":["daily","twice_daily","weekly","monthly","quarterly","semi_annual","annual"],"title":"Frequency","description":"How often a recurring event occurs (reviews, digests, etc.)."},"FunctionControlResponse":{"properties":{"control_anchor_uid":{"type":"string","title":"Control Anchor Uid"},"control_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Control Name"},"vendor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Name"},"mapping":{"$ref":"#/components/schemas/MappingEvidence"}},"type":"object","required":["control_anchor_uid","mapping"],"title":"FunctionControlResponse","description":"One catalog control delivering a function (facet drill-down).\n\nRow shape of ``TaxonomyRepository.CONTROLS_FOR_FUNCTION``."},"FunctionCreate":{"properties":{"function_id":{"type":"string","pattern":"^[A-Z0-9]+(-[A-Z0-9]+)+$","title":"Function Id"},"name":{"type":"string","minLength":1,"title":"Name"},"capability_id":{"type":"string","pattern":"^[A-Z0-9]+(-[A-Z0-9]+)+$","title":"Capability Id"},"capability_name":{"type":"string","minLength":1,"title":"Capability Name"},"domain_id":{"type":"string","minLength":1,"title":"Domain Id"},"domain_name":{"type":"string","minLength":1,"title":"Domain Name"},"taxonomy_version":{"type":"string","minLength":1,"title":"Taxonomy Version"}},"additionalProperties":false,"type":"object","required":["function_id","name","capability_id","capability_name","domain_id","domain_name","taxonomy_version"],"title":"FunctionCreate","description":"New vocabulary row. The id grammar + prefix hierarchy mirror the\nseed CI gate — an admin cannot ship what the artifact couldn't."},"FunctionDeprecate":{"properties":{"deprecated_in":{"type":"string","minLength":1,"title":"Deprecated In"},"replaced_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replaced By"}},"additionalProperties":false,"type":"object","required":["deprecated_in"],"title":"FunctionDeprecate","description":"``deprecated_in`` labels the revision (free-form — admin\nreleases are not pipeline versions); ``replaced_by`` optionally\npoints at the successor function."},"FunctionOverrideRow":{"properties":{"function_id":{"type":"string","title":"Function Id"},"origin":{"type":"string","title":"Origin"},"customized_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Customized At"},"customized_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customized By"}},"additionalProperties":false,"type":"object","required":["function_id","origin"],"title":"FunctionOverrideRow","description":"One ``DELIVERS_FUNCTION`` override edge with provenance."},"FunctionOverridesResponse":{"properties":{"implementation_uid":{"type":"string","title":"Implementation Uid"},"customized":{"type":"boolean","title":"Customized"},"overrides":{"items":{"$ref":"#/components/schemas/FunctionOverrideRow"},"type":"array","title":"Overrides"}},"additionalProperties":false,"type":"object","required":["implementation_uid","customized"],"title":"FunctionOverridesResponse","description":"The implementation's taxonomy-side customization state.\n\n``customized=False`` (empty ``overrides``) means the implementation\ninherits the catalog's ``MAPPED_TO`` function set — override-only\nsemantics: edge existence IS the customized flag."},"FunctionOverridesUpdate":{"properties":{"function_ids":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Function Ids"}},"additionalProperties":false,"type":"object","required":["function_ids"],"title":"FunctionOverridesUpdate","description":"Full-replace override set for ``PUT .../taxonomy-functions``.\n\nThe list REPLACES the implementation's entire override set (never a\npartial overlay). Empty lists are rejected at the schema — restoring\ninheritance is the DELETE route, so \"customized to nothing\" cannot\nbe expressed by accident."},"FunctionRename":{"properties":{"name":{"type":"string","minLength":1,"title":"Name"}},"additionalProperties":false,"type":"object","required":["name"],"title":"FunctionRename"},"GenerateRecommendationsRequest":{"properties":{"grain":{"$ref":"#/components/schemas/Grain"},"objective":{"$ref":"#/components/schemas/Objective"}},"additionalProperties":false,"type":"object","required":["grain","objective"],"title":"GenerateRecommendationsRequest","description":"Only grain and objective are client-configurable (MTM-2195)."},"Grade":{"type":"string","enum":["A","B","C","D","F"],"title":"Grade","description":"Letter grade for defense scoring."},"Grain":{"type":"string","enum":["DOMAIN","CAPABILITY","FUNCTION"],"title":"Grain","description":"The taxonomy level recommendations are ranked at (FR-1)."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthCheckResponse":{"properties":{"status":{"type":"string","title":"Overall health status"},"version":{"type":"string","title":"Service version"},"neo4j":{"type":"string","title":"Neo4j connection status"},"redis":{"type":"string","title":"Redis connection status"},"consumer_enabled":{"type":"boolean","title":"Whether the role event consumer is running"},"notification_consumer_enabled":{"type":"boolean","title":"Whether the notification event consumer is running"},"notification_consumer_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"The notification consumer's group, named by the event types this build handles"},"notification_consumer_too_old":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entries the notification consumer did not handle since it started, being older than its look-back"}},"type":"object","required":["status","version","neo4j","redis","consumer_enabled","notification_consumer_enabled"],"title":"HealthCheckResponse","description":"Service health status."},"HeatmapCell":{"properties":{"likelihood":{"type":"integer","minimum":1.0,"title":"Likelihood","description":"Likelihood axis value"},"impact":{"type":"integer","minimum":1.0,"title":"Impact","description":"Impact axis value"},"score":{"type":"integer","minimum":1.0,"title":"Score","description":"Inherent score (likelihood × impact)"},"total_risk_count":{"type":"integer","minimum":0.0,"title":"Total Risk Count","description":"Total risks in this cell"},"severity_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Severity Counts","description":"Risk count keyed by severity label (e.g. Low, Medium, High, Critical)"},"risk_ids":{"items":{"type":"string"},"type":"array","title":"Risk Ids","description":"All risk IDs in this cell, ordered by inherent score desc then created desc. Limited to top_n when that parameter is supplied."}},"type":"object","required":["likelihood","impact","score","total_risk_count"],"title":"HeatmapCell","description":"A single cell in the risk heatmap grid (likelihood × impact)."},"HierarchyRiskGraph":{"properties":{"graph":{"$ref":"#/components/schemas/ReactFlowGraph","description":"Hierarchy graph payload"},"risk_by_node":{"additionalProperties":{"$ref":"#/components/schemas/HierarchyRiskNode"},"type":"object","title":"Risk By Node","description":"Risk data keyed by hierarchy node client UID"}},"type":"object","required":["graph","risk_by_node"],"title":"HierarchyRiskGraph","description":"React Flow graph with hierarchy risk data keyed by node."},"HierarchyRiskNode":{"properties":{"client_uid":{"type":"string","title":"Client Uid"},"default_control_set":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Control Set","description":"Default control set identifier"},"inherent_risk":{"items":{"$ref":"#/components/schemas/RiskItem"},"type":"array","title":"Inherent Risk"},"residual_risk":{"items":{"$ref":"#/components/schemas/RiskItem"},"type":"array","title":"Residual Risk"},"mitigated_risk":{"items":{"$ref":"#/components/schemas/RiskItem"},"type":"array","title":"Mitigated Risk"},"residual_risk_percent":{"items":{"$ref":"#/components/schemas/RiskItem"},"type":"array","title":"Residual Risk Percent"},"inherent_total":{"type":"number","title":"Inherent Total","description":"Total inherent risk score"},"residual_total":{"type":"number","title":"Residual Total","description":"Total residual risk score"},"mitigated_total":{"type":"number","title":"Mitigated Total","description":"Total mitigated risk score"},"loss_event_potential":{"type":"number","title":"Loss Event Potential","description":"Loss event potential score"},"has_risk_data":{"type":"boolean","title":"Has Risk Data","description":"Whether risk data is available for the node"}},"type":"object","required":["client_uid","inherent_risk","residual_risk","mitigated_risk","residual_risk_percent","inherent_total","residual_total","mitigated_total","loss_event_potential","has_risk_data"],"title":"HierarchyRiskNode","description":"Risk data payload for a hierarchy node in React Flow."},"HierarchyType":{"type":"string","enum":["legal","operational","reporting"],"title":"HierarchyType","description":"Supported hierarchy views for organizational structure."},"HistoricalTrendsResponse":{"properties":{"risk_exposure":{"anyOf":[{"$ref":"#/components/schemas/RiskTrendWidget"},{"type":"null"}]},"program_maturity":{"anyOf":[{"$ref":"#/components/schemas/RiskTrendWidget"},{"type":"null"}]},"program_spend":{"anyOf":[{"$ref":"#/components/schemas/RiskTrendWidget"},{"type":"null"}]},"threat_exposure":{"anyOf":[{"$ref":"#/components/schemas/RiskTrendWidget"},{"type":"null"}]},"debug":{"anyOf":[{"$ref":"#/components/schemas/DebugEnvelope"},{"type":"null"}],"description":"Present when ?debug=true"}},"type":"object","title":"HistoricalTrendsResponse"},"Hop":{"properties":{"from_label":{"type":"string","title":"From Label"},"from_id":{"type":"string","title":"From Id"},"from_props":{"additionalProperties":true,"type":"object","title":"From Props"},"to_label":{"type":"string","title":"To Label"},"to_id":{"type":"string","title":"To Id"},"to_props":{"additionalProperties":true,"type":"object","title":"To Props"},"edge_type":{"type":"string","title":"Edge Type"},"edge_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edge Source"},"edge_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Edge Confidence"},"edge_mapping_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edge Mapping Version"},"edge_props":{"additionalProperties":true,"type":"object","title":"Edge Props"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"to_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Name"}},"type":"object","required":["from_label","from_id","to_label","to_id","edge_type"],"title":"Hop"},"ImplementationOptionsResponse":{"properties":{"maturity":{"items":{"$ref":"#/components/schemas/MaturityLevel"},"type":"array","title":"Maturity"},"control_type":{"items":{"type":"string"},"type":"array","title":"Control Type"},"categories":{"items":{"$ref":"#/components/schemas/ControlCategoryRef"},"type":"array","title":"Categories"}},"type":"object","title":"ImplementationOptionsResponse","description":"Response containing implementation dropdown options."},"ImplementedControlCreate":{"properties":{"state":{"$ref":"#/components/schemas/ControlState","default":"direct"},"inheritance_enabled":{"type":"boolean","title":"Inheritance Enabled","default":false},"mandatory":{"type":"boolean","title":"Mandatory","default":false},"source_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Uid"},"is_override":{"type":"boolean","title":"Is Override","default":false},"opt_out_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opt Out Reason"},"opt_out_approved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opt Out Approved By"},"opted_out_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Opted Out At"},"alternative_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alternative Uid"},"needs_review":{"type":"boolean","title":"Needs Review","default":false},"orphaned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Orphaned At"},"orphan_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Orphan Reason"},"maturity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Maturity"},"maturity_answers":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Maturity Answers"},"cost":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cost"},"coverage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Coverage"},"capability_assessments":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/CapabilityAssessment"},"type":"object"},{"type":"null"}],"title":"Capability Assessments"},"legacy_capability_assessments":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/CapabilityAssessment"},"type":"object"},{"type":"null"}],"title":"Legacy Capability Assessments"},"v1_capability_assessments":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/CapabilityAssessment"},"type":"object"},{"type":"null"}],"title":"V1 Capability Assessments"},"control_categories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Control Categories"},"mitigated_technique_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Mitigated Technique Ids"},"prepare_flip_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prepare Flip Fingerprint"},"v1_scalar_fallback_accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"V1 Scalar Fallback Accepted At"},"legacy_scalar_fallback_accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Legacy Scalar Fallback Accepted At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"expiration_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expiration Date"},"deployed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deployed At"},"contract_start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Contract Start Date"},"contract_end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Contract End Date"},"contract_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Contract Value"},"recurring_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Recurring Cost"},"one_time_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"One Time Cost"},"fte_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fte Cost"},"vendor_fiscal_year_start":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Vendor Fiscal Year Start"},"vendor_nda":{"anyOf":[{"$ref":"#/components/schemas/NdaType"},{"type":"null"}]},"vendor_renewal_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Vendor Renewal Date"},"vendor_discount_percentage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Vendor Discount Percentage"},"vendor_renewal_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Renewal Info"},"vendor_bulk_pricing_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Bulk Pricing Info"},"vendor_cancel_clauses":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Cancel Clauses"},"vendor_sla_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Sla Info"},"vendor_out_clauses":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Out Clauses"},"cost_recurring_license_fees":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Recurring License Fees"},"cost_fte_consulting_fees":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Fte Consulting Fees"},"cost_hardware":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Hardware"},"cost_perpetual_licensing":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Perpetual Licensing"},"cost_professional_services":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Professional Services"},"cost_enhancement_integration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Enhancement Integration"},"cost_initial_implementation":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Initial Implementation"},"cost_csp_hosting":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cost Csp Hosting"},"control_uid":{"type":"string","title":"Control Uid"},"taxonomy_function_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Taxonomy Function Ids"}},"additionalProperties":false,"type":"object","required":["control_uid"],"title":"ImplementedControlCreate"},"ImplementedControlResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"status":{"$ref":"#/components/schemas/AnchorStatus","default":"active"},"state":{"$ref":"#/components/schemas/ControlState","default":"direct"},"inheritance_enabled":{"type":"boolean","title":"Inheritance Enabled","default":false},"mandatory":{"type":"boolean","title":"Mandatory","default":false},"source_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Uid"},"is_override":{"type":"boolean","title":"Is Override","default":false},"opt_out_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opt Out Reason"},"opt_out_approved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opt Out Approved By"},"opted_out_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Opted Out At"},"alternative_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alternative Uid"},"needs_review":{"type":"boolean","title":"Needs Review","default":false},"orphaned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Orphaned At"},"orphan_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Orphan Reason"},"deleted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deleted"},"maturity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Maturity"},"maturity_answers":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Maturity Answers"},"cost":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cost"},"coverage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Coverage"},"capability_assessments":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/CapabilityAssessment"},"type":"object"},{"type":"null"}],"title":"Capability Assessments"},"legacy_capability_assessments":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/CapabilityAssessment"},"type":"object"},{"type":"null"}],"title":"Legacy Capability Assessments"},"v1_capability_assessments":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/CapabilityAssessment"},"type":"object"},{"type":"null"}],"title":"V1 Capability Assessments"},"control_categories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Control Categories"},"mitigated_technique_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Mitigated Technique Ids"},"prepare_flip_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prepare Flip Fingerprint"},"v1_scalar_fallback_accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"V1 Scalar Fallback Accepted At"},"legacy_scalar_fallback_accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Legacy Scalar Fallback Accepted At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"expiration_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expiration Date"},"deployed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deployed At"},"contract_start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Contract Start Date"},"contract_end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Contract End Date"},"contract_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Contract Value"},"recurring_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Recurring Cost"},"one_time_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"One Time Cost"},"fte_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fte Cost"},"vendor_fiscal_year_start":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Vendor Fiscal Year Start"},"vendor_nda":{"anyOf":[{"$ref":"#/components/schemas/NdaType"},{"type":"null"}]},"vendor_renewal_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Vendor Renewal Date"},"vendor_discount_percentage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Vendor Discount Percentage"},"vendor_renewal_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Renewal Info"},"vendor_bulk_pricing_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Bulk Pricing Info"},"vendor_cancel_clauses":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Cancel Clauses"},"vendor_sla_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Sla Info"},"vendor_out_clauses":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Out Clauses"},"cost_recurring_license_fees":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Recurring License Fees"},"cost_fte_consulting_fees":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Fte Consulting Fees"},"cost_hardware":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Hardware"},"cost_perpetual_licensing":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Perpetual Licensing"},"cost_professional_services":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Professional Services"},"cost_enhancement_integration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Enhancement Integration"},"cost_initial_implementation":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Initial Implementation"},"cost_csp_hosting":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cost Csp Hosting"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"control_type":{"$ref":"#/components/schemas/ControlType","default":"product"},"control_source":{"$ref":"#/components/schemas/ControlSource","default":"vendor"},"custom":{"type":"boolean","title":"Custom","default":false},"vetted":{"type":"boolean","title":"Vetted","default":false},"featured":{"type":"boolean","title":"Featured","default":false},"discontinued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Discontinued At"},"vendor_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Uid"},"vendor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Name"},"hosting":{"anyOf":[{"$ref":"#/components/schemas/DeploymentModel"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"efficacy":{"type":"number","title":"Efficacy","default":3.0},"updated":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions"},"control_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Control Uid"},"tag_uids":{"items":{"type":"string"},"type":"array","title":"Tag Uids"},"cav_managed":{"type":"boolean","title":"Cav Managed","default":false},"cav_source_tools":{"items":{"type":"string"},"type":"array","title":"Cav Source Tools"},"taxonomy_function_ids":{"items":{"type":"string"},"type":"array","title":"Taxonomy Function Ids"},"taxonomy_customized":{"type":"boolean","title":"Taxonomy Customized","default":false}},"type":"object","required":["uid","name"],"title":"ImplementedControlResponse"},"ImplementedControlUpdate":{"properties":{"state":{"anyOf":[{"$ref":"#/components/schemas/ControlState"},{"type":"null"}]},"inheritance_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Inheritance Enabled"},"mandatory":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mandatory"},"source_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Uid"},"is_override":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Override"},"opt_out_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opt Out Reason"},"opt_out_approved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opt Out Approved By"},"opted_out_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Opted Out At"},"alternative_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alternative Uid"},"needs_review":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Needs Review"},"orphaned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Orphaned At"},"orphan_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Orphan Reason"},"maturity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Maturity"},"maturity_answers":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Maturity Answers"},"cost":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cost"},"coverage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Coverage"},"capability_assessments":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/CapabilityAssessment"},"type":"object"},{"type":"null"}],"title":"Capability Assessments"},"legacy_capability_assessments":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/CapabilityAssessment"},"type":"object"},{"type":"null"}],"title":"Legacy Capability Assessments"},"v1_capability_assessments":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/CapabilityAssessment"},"type":"object"},{"type":"null"}],"title":"V1 Capability Assessments"},"control_categories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Control Categories"},"mitigated_technique_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Mitigated Technique Ids"},"prepare_flip_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prepare Flip Fingerprint"},"v1_scalar_fallback_accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"V1 Scalar Fallback Accepted At"},"legacy_scalar_fallback_accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Legacy Scalar Fallback Accepted At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"expiration_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expiration Date"},"deployed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deployed At"},"contract_start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Contract Start Date"},"contract_end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Contract End Date"},"contract_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Contract Value"},"recurring_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Recurring Cost"},"one_time_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"One Time Cost"},"fte_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fte Cost"},"vendor_fiscal_year_start":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Vendor Fiscal Year Start"},"vendor_nda":{"anyOf":[{"$ref":"#/components/schemas/NdaType"},{"type":"null"}]},"vendor_renewal_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Vendor Renewal Date"},"vendor_discount_percentage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Vendor Discount Percentage"},"vendor_renewal_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Renewal Info"},"vendor_bulk_pricing_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Bulk Pricing Info"},"vendor_cancel_clauses":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Cancel Clauses"},"vendor_sla_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Sla Info"},"vendor_out_clauses":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Out Clauses"},"cost_recurring_license_fees":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Recurring License Fees"},"cost_fte_consulting_fees":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Fte Consulting Fees"},"cost_hardware":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Hardware"},"cost_perpetual_licensing":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Perpetual Licensing"},"cost_professional_services":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Professional Services"},"cost_enhancement_integration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Enhancement Integration"},"cost_initial_implementation":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Initial Implementation"},"cost_csp_hosting":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cost Csp Hosting"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"control_type":{"anyOf":[{"$ref":"#/components/schemas/ControlType"},{"type":"null"}]},"tag_uids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tag Uids"}},"additionalProperties":false,"type":"object","title":"ImplementedControlUpdate"},"ImportRowError":{"properties":{"field":{"type":"string","title":"Field","description":"Spreadsheet column the error relates to; '__row__' for row-level issues"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value","description":"Offending cell value (stringified, trimmed)"},"message":{"type":"string","title":"Message","description":"Actionable explanation of why the value was rejected"}},"type":"object","required":["field","message"],"title":"ImportRowError","description":"A single field-level validation failure for an imported spreadsheet row."},"ImportRowResult":{"properties":{"row_number":{"type":"integer","title":"Row Number","description":"Excel row number (header row is 1, first data row is 2)"},"status":{"type":"string","enum":["created","skipped","failed"],"title":"Status"},"risk_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Risk Uid","description":"UID of the created risk when status is 'created'"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail","description":"Machine-readable reason for skips, e.g. 'duplicate_in_file' or 'duplicate_existing'"},"errors":{"items":{"$ref":"#/components/schemas/ImportRowError"},"type":"array","title":"Errors"}},"type":"object","required":["row_number","status"],"title":"ImportRowResult","description":"Per-row outcome of a spreadsheet risk import."},"InactivityConfig":{"properties":{"reminder_after_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reminder After Hours","description":"Send reminder after N hours of inactivity","default":48},"escalate_after_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Escalate After Hours","description":"Escalate after N hours (7 days default)","default":168},"escalate_to":{"$ref":"#/components/schemas/RaciRole","description":"Role to escalate to","default":"accountable"},"escalate_action":{"$ref":"#/components/schemas/WorkflowAction","default":"notify"}},"type":"object","title":"InactivityConfig","description":"Configuration for handling inactivity at a step."},"InheritancePolicy":{"type":"string","enum":["accept","blocked","override"],"title":"InheritancePolicy","description":"How a client handles inherited controls from its parent."},"IntegrityChain":{"properties":{"entity_type":{"type":"string","title":"Entity Type"},"uid":{"type":"string","title":"Uid"},"anchor_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anchor Status"},"length":{"type":"integer","title":"Length"},"windowed":{"type":"boolean","title":"Windowed"},"versions":{"items":{"$ref":"#/components/schemas/ChainVersion"},"type":"array","title":"Versions"}},"type":"object","required":["entity_type","uid","length","windowed"],"title":"IntegrityChain","description":"A SUPERSEDES chain window, newest first (index 0 = LATEST_VERSION)."},"IntegritySummary":{"properties":{"clean":{"type":"boolean","title":"Clean"},"checked":{"type":"integer","title":"Checked"},"invalid":{"type":"integer","title":"Invalid"},"limit_per_type":{"type":"integer","title":"Limit Per Type"},"types":{"items":{"$ref":"#/components/schemas/TypeSweepSummary"},"type":"array","title":"Types"}},"type":"object","required":["clean","checked","invalid","limit_per_type","types"],"title":"IntegritySummary","description":"``GET /admin/integrity/summary``: bounded sweep across types."},"IntegrityVerifyResponse":{"properties":{"entity_type":{"type":"string","title":"Entity Type"},"verdict":{"type":"string","enum":["valid","unhashed","invalid"],"title":"Verdict"},"uid":{"type":"string","title":"Uid"},"length":{"type":"integer","title":"Length"},"valid":{"type":"boolean","title":"Valid"},"verified":{"type":"integer","title":"Verified"},"unhashed":{"type":"integer","title":"Unhashed"},"errors":{"items":{"$ref":"#/components/schemas/ChainErrorItem"},"type":"array","title":"Errors"},"windowed":{"type":"boolean","title":"Windowed"}},"type":"object","required":["entity_type","verdict","uid","length","valid","verified","unhashed","errors","windowed"],"title":"IntegrityVerifyResponse","description":"``GET /admin/integrity/verify``: ``ChainReport`` plus its verdict."},"IntentBundle":{"properties":{"bundle_id":{"type":"string","minLength":1,"title":"Bundle Id"},"bundle_name":{"type":"string","minLength":1,"title":"Bundle Name"}},"type":"object","required":["bundle_id","bundle_name"],"title":"IntentBundle","description":"One row in ``primary_intent_bundle``, ``co_primary_intent_bundles``,\nor ``secondary_intent_bundles`` — taxonomy-team categorization of the\nproduct's intent (the reader)."},"Invite":{"properties":{"uid":{"type":"string","title":"Uid","description":"Unique invite identifier"},"email":{"type":"string","title":"Email","description":"Email address of the invitee"},"role_slug":{"type":"string","title":"Role Slug","description":"Slug of the role being invited to"},"scope":{"type":"string","title":"Scope","description":"Scope where role applies"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by":{"type":"string","title":"Created By","description":"UID of user who created the invite"}},"type":"object","required":["uid","email","role_slug","scope","created_by"],"title":"Invite","description":"A pending role invitation.\n\nRepresents a role assignment that has been created but not yet accepted\nby the invitee."},"InviteCreate":{"properties":{"email":{"type":"string","title":"Email","description":"Email address of the invitee"},"scope":{"type":"string","title":"Scope","description":"Scope where role applies (client_uid or 'system')"}},"type":"object","required":["email","scope"],"title":"InviteCreate","description":"Schema for creating a pending role invite."},"InviteResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"email":{"type":"string","title":"Email"}},"type":"object","required":["uid","email"],"title":"InviteResponse","description":"Invite as returned nested inside role responses."},"JudgeStatus":{"type":"string","enum":["pending","completed","failed"],"title":"JudgeStatus","description":"LLM judge pipeline state. Advisory only — never gates review."},"JudgeVerdict":{"type":"string","enum":["valid","invalid","uncertain","likely_duplicate"],"title":"JudgeVerdict","description":"Advisory verdict from the LLM judge. Never mutates ``status``."},"LambdaPolicy":{"type":"string","enum":["FIXED","REFIT"],"title":"LambdaPolicy"},"LifecycleSignal":{"type":"string","enum":["active","legacy","service","deprecated"],"title":"LifecycleSignal","description":"Pipeline lifecycle observation — ADVISORY ONLY.\n\nNever a visibility gate: deprecation stays a human decision on\n``ControlAnchor.is_deprecated*``; discontinuation goes through\nvendor-offering reconciliation → ``ControlNode.discontinued_at``."},"LinkTechniqueResult":{"properties":{"category_uid":{"type":"string","title":"Category Uid"},"linked":{"items":{"type":"string"},"type":"array","title":"Linked"},"failed":{"items":{"type":"string"},"type":"array","title":"Failed"}},"type":"object","required":["category_uid","linked","failed"],"title":"LinkTechniqueResult","description":"Result of linking techniques."},"LinkTechniquesRequest":{"properties":{"technique_uids":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Technique Uids","description":"Technique UIDs to link"}},"type":"object","required":["technique_uids"],"title":"LinkTechniquesRequest","description":"Request body for linking techniques to a category."},"ListMeta":{"properties":{"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"sort_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"},"sort_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort Dir"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions","description":"Allowed actions on the parent resource (e.g. create)"}},"type":"object","required":["total","page","page_size"],"title":"ListMeta","description":"Pagination and sort metadata for list responses."},"ListResponse_AdminNotificationSent_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AdminNotificationSent"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[AdminNotificationSent]"},"ListResponse_CatalogCoverageGapRow_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/CatalogCoverageGapRow"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[CatalogCoverageGapRow]"},"ListResponse_CatalogRequestResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/CatalogRequestResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[CatalogRequestResponse]"},"ListResponse_ClientResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ClientResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[ClientResponse]"},"ListResponse_ConsolidationCandidateResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ConsolidationCandidateResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[ConsolidationCandidateResponse]"},"ListResponse_ControlEnrichmentResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ControlEnrichmentResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[ControlEnrichmentResponse]"},"ListResponse_ControlResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ControlResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[ControlResponse]"},"ListResponse_ControlSetResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ControlSetResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[ControlSetResponse]"},"ListResponse_ImplementedControlResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ImplementedControlResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[ImplementedControlResponse]"},"ListResponse_MessageTemplateResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/MessageTemplateResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[MessageTemplateResponse]"},"ListResponse_OrphanedControl_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/OrphanedControl"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[OrphanedControl]"},"ListResponse_RecommendationExclusion_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RecommendationExclusion"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[RecommendationExclusion]"},"ListResponse_RetirableCustomAnchorRow_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RetirableCustomAnchorRow"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[RetirableCustomAnchorRow]"},"ListResponse_RiskResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RiskResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[RiskResponse]"},"ListResponse_RiskTreeResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RiskTreeResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[RiskTreeResponse]"},"ListResponse_SubscriptionTierResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SubscriptionTierResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[SubscriptionTierResponse]"},"ListResponse_TagResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TagResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[TagResponse]"},"ListResponse_TaxonomyFunctionResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TaxonomyFunctionResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[TaxonomyFunctionResponse]"},"ListResponse_TaxonomyVariantResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TaxonomyVariantResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[TaxonomyVariantResponse]"},"ListResponse_TechniqueDefense_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TechniqueDefense"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[TechniqueDefense]"},"ListResponse_TierClientResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TierClientResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[TierClientResponse]"},"ListResponse_TrustGroupResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TrustGroupResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[TrustGroupResponse]"},"ListResponse_UserNotificationResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/UserNotificationResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[UserNotificationResponse]"},"ListResponse_VendorMergeCandidateResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/VendorMergeCandidateResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[VendorMergeCandidateResponse]"},"ListResponse_VendorResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/VendorResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ListMeta"}},"type":"object","required":["data","meta"],"title":"ListResponse[VendorResponse]"},"ManualMappingSet":{"properties":{"confidence":{"$ref":"#/components/schemas/MappingConfidence"},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rationale"},"taxonomy_version":{"type":"string","minLength":1,"title":"Taxonomy Version"}},"additionalProperties":false,"type":"object","required":["confidence","taxonomy_version"],"title":"ManualMappingSet"},"MappingConfidence":{"type":"string","enum":["high","medium","low"],"title":"MappingConfidence","description":"Pipeline confidence for a control→function mapping edge."},"MappingEvidence":{"properties":{"confidence":{"type":"string","title":"Confidence"},"origin":{"type":"string","title":"Origin"},"taxonomy_version":{"type":"string","title":"Taxonomy Version"},"mapped_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Mapped At"},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rationale"},"curated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Curated By"},"mapping_resolution_set_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mapping Resolution Set Uid"},"resolved_from_evidence_uids":{"items":{"type":"string"},"type":"array","title":"Resolved From Evidence Uids","default":[]},"contested":{"type":"boolean","title":"Contested","default":false},"mapping_set_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mapping Set Uid"}},"type":"object","required":["confidence","origin","taxonomy_version"],"title":"MappingEvidence","description":"``MAPPED_TO`` edge properties surfaced with a mapping read.\n\nMirrors ``MappedToRelationship`` field-for-field — the edge model\nstays the write-side source of truth; this is its read projection.\n\nADR-002 evidence+projection fields are added as OPTIONAL here so\nread paths that pre-date the resolution-set model still deserialize\ncleanly (backfill lands the fields on every existing edge, but the\nschema tolerates missing values for the transition window)."},"MappingRemoveRequest":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"taxonomy_version":{"type":"string","minLength":1,"title":"Taxonomy Version"}},"additionalProperties":false,"type":"object","required":["taxonomy_version"],"title":"MappingRemoveRequest","description":"Body for DELETE `/controls/{uid}/mappings/{function_id}`.\n\nAdded in P1 (ADR-002 §2.12): a curator's mapping withdrawal is now\na semantic act recorded as a NEGATIVE-polarity manual\nMappingEvidenceNode. `curator_uid` is\nNEVER accepted from the client — always derived server-side from\nthe `admin: PlatformClientAdminAccess` dep."},"MappingRemoveResponse":{"properties":{"control_anchor_uid":{"type":"string","title":"Control Anchor Uid"},"function_id":{"type":"string","title":"Function Id"},"removed":{"type":"boolean","title":"Removed"}},"type":"object","required":["control_anchor_uid","function_id","removed"],"title":"MappingRemoveResponse"},"MappingResolutionSetSummary":{"properties":{"uid":{"type":"string","title":"Uid"},"status":{"type":"string","title":"Status"},"origin_kind":{"type":"string","title":"Origin Kind"},"origin_checksum":{"type":"string","title":"Origin Checksum"},"source_import_run_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Import Run Uid"},"published_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published At"},"activated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activated At"},"demoted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Demoted At"},"withdrawn_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Withdrawn At"},"withdrawn_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Withdrawn By"},"withdrawn_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Withdrawn Reason"},"edge_count":{"type":"integer","title":"Edge Count","default":0}},"type":"object","required":["uid","status","origin_kind","origin_checksum"],"title":"MappingResolutionSetSummary"},"MappingResolutionSetWithdrawRequest":{"properties":{"withdrawn_reason":{"type":"string","maxLength":1024,"minLength":1,"title":"Withdrawn Reason"}},"additionalProperties":false,"type":"object","required":["withdrawn_reason"],"title":"MappingResolutionSetWithdrawRequest"},"MappingResolutionSetWithdrawResponse":{"properties":{"withdrawn_uid":{"type":"string","title":"Withdrawn Uid"},"active_uid_after":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Active Uid After"},"withdrawn_by":{"type":"string","title":"Withdrawn By"},"withdrawn_reason":{"type":"string","title":"Withdrawn Reason"}},"type":"object","required":["withdrawn_uid","active_uid_after","withdrawn_by","withdrawn_reason"],"title":"MappingResolutionSetWithdrawResponse"},"MappingResolutionSetsListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MappingResolutionSetSummary"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"MappingResolutionSetsListResponse"},"MarkAllReadResponse":{"properties":{"updated_count":{"type":"integer","title":"Number of notifications marked as read"}},"type":"object","required":["updated_count"],"title":"MarkAllReadResponse","description":"Response from mark-all-read operation."},"MatchKind":{"type":"string","enum":["exact","fuzzy"],"title":"MatchKind","description":"How a catalog suggestion matched the implementation name."},"MaturityLevel":{"properties":{"value":{"type":"integer","title":"Value"},"description":{"type":"string","title":"Description"}},"type":"object","required":["value","description"],"title":"MaturityLevel","description":"A maturity level with description."},"MaturityQuestion":{"properties":{"key":{"type":"string","title":"Key"},"question":{"type":"string","title":"Question","default":""},"level":{"type":"integer","title":"Level","default":0},"control_categories":{"items":{"type":"string"},"type":"array","title":"Control Categories"}},"type":"object","required":["key"],"title":"MaturityQuestion","description":"A single maturity question with its level and control categories."},"MaturityQuestionsRequest":{"properties":{"control_categories":{"items":{"type":"string"},"type":"array","title":"Control Categories","description":"Control categories to filter by; empty = all questions"}},"type":"object","title":"MaturityQuestionsRequest","description":"Request body for filtering maturity questions by control categories."},"MaturityQuestionsResponse":{"properties":{"maturity_questions":{"items":{"$ref":"#/components/schemas/MaturityQuestion"},"type":"array","title":"Maturity Questions"}},"type":"object","title":"MaturityQuestionsResponse","description":"Response containing maturity questions."},"MessageTemplateCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"alias":{"type":"string","maxLength":100,"minLength":1,"title":"Alias"},"subject":{"type":"string","minLength":1,"title":"Subject"},"subject_variables":{"items":{"$ref":"#/components/schemas/TemplateVariable"},"type":"array","title":"Subject Variables"},"body":{"type":"string","minLength":1,"title":"Body"},"body_variables":{"items":{"$ref":"#/components/schemas/TemplateVariable"},"type":"array","title":"Body Variables"},"short_body":{"type":"string","minLength":1,"title":"Short Body"},"short_body_variables":{"items":{"$ref":"#/components/schemas/TemplateVariable"},"type":"array","title":"Short Body Variables"}},"type":"object","required":["name","alias","subject","body","short_body"],"title":"MessageTemplateCreate"},"MessageTemplateResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"alias":{"type":"string","title":"Alias"},"subject":{"type":"string","title":"Subject"},"subject_variables":{"items":{"$ref":"#/components/schemas/TemplateVariable"},"type":"array","title":"Subject Variables"},"body":{"type":"string","title":"Body"},"body_variables":{"items":{"$ref":"#/components/schemas/TemplateVariable"},"type":"array","title":"Body Variables"},"short_body":{"type":"string","title":"Short Body"},"short_body_variables":{"items":{"$ref":"#/components/schemas/TemplateVariable"},"type":"array","title":"Short Body Variables"},"status":{"type":"string","title":"Status"},"is_override":{"type":"boolean","title":"Is Override","default":false},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["uid","name","alias","subject","subject_variables","body","body_variables","short_body","short_body_variables","status"],"title":"MessageTemplateResponse"},"MessageTemplateUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"alias":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Alias"},"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Subject"},"subject_variables":{"anyOf":[{"items":{"$ref":"#/components/schemas/TemplateVariable"},"type":"array"},{"type":"null"}],"title":"Subject Variables"},"body":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Body"},"body_variables":{"anyOf":[{"items":{"$ref":"#/components/schemas/TemplateVariable"},"type":"array"},{"type":"null"}],"title":"Body Variables"},"short_body":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Short Body"},"short_body_variables":{"anyOf":[{"items":{"$ref":"#/components/schemas/TemplateVariable"},"type":"array"},{"type":"null"}],"title":"Short Body Variables"}},"type":"object","title":"MessageTemplateUpdate"},"MigrationCoverage":{"properties":{"total_controls":{"type":"integer","title":"Total Controls"},"mapped":{"type":"integer","title":"Mapped"},"acked_no_coverage":{"type":"integer","title":"Acked No Coverage"},"unresolved":{"items":{"type":"string"},"type":"array","title":"Unresolved"}},"type":"object","required":["total_controls","mapped","acked_no_coverage","unresolved"],"title":"MigrationCoverage","description":"Coverage projection for controls in the target variant.\n\nFields:\n    total_controls: Total control count in target variant.\n    mapped: Count of controls with valid mappings.\n    acked_no_coverage: Count of controls acknowledged as no-coverage.\n    unresolved: List of control UIDs without coverage resolution."},"MigrationReadinessResponse":{"properties":{"custom_controls":{"$ref":"#/components/schemas/WorkStatus"},"implementations":{"$ref":"#/components/schemas/WorkStatus"},"variant":{"$ref":"#/components/schemas/VariantStatus"},"coverage":{"$ref":"#/components/schemas/MigrationCoverage"},"preview_computable":{"type":"boolean","title":"Preview Computable"},"preview_computation_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Computation Error"},"preparation":{"$ref":"#/components/schemas/PreparationStatus"},"actions":{"$ref":"#/components/schemas/ActionsBlock"},"current_state_digest":{"type":"string","title":"Current State Digest"},"migration_revision":{"type":"integer","title":"Migration Revision"}},"type":"object","required":["custom_controls","implementations","variant","coverage","preview_computable","preparation","actions","current_state_digest","migration_revision"],"title":"MigrationReadinessResponse","description":"Complete readiness projection for a taxonomy flip.\n\nReturned by the readiness endpoint to inform the client whether a flip\ncan proceed and what work remains.\n\nFields:\n    custom_controls: Work status for custom control mappings.\n    implementations: Work status for implementation assessments.\n    variant: Validity status of the target variant.\n    coverage: Coverage projection for the target variant.\n    preview_computable: Whether a flip preview can be computed.\n    preview_computation_error: Error message if preview is not computable.\n    preparation: Current preparation state.\n    actions: Action decisions (can_prepare, can_complete).\n    current_state_digest: Hash of the current client state.\n    migration_revision: CAS version for optimistic locking."},"MilestoneCreate":{"properties":{"sequence":{"type":"integer","minimum":1.0,"title":"Sequence","description":"Order within the plan (1, 2, 3...)"},"title":{"type":"string","maxLength":200,"minLength":2,"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"target_date":{"type":"string","format":"date","title":"Target Date","description":"Date-based trigger (YYYY-MM-DD)"},"owner":{"type":"string","title":"Owner","description":"User UID of the milestone owner"},"status":{"type":"string","enum":["not_started","in_progress","completed","blocked"],"title":"Status","default":"not_started"}},"type":"object","required":["sequence","title","target_date","owner"],"title":"MilestoneCreate"},"MilestoneOwnerRef":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["uid"],"title":"MilestoneOwnerRef"},"MilestoneResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"display_id":{"type":"string","title":"Display Id"},"plan_uid":{"type":"string","title":"Plan Uid"},"risk_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Risk Uid"},"sequence":{"type":"integer","title":"Sequence"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"target_date":{"type":"string","title":"Target Date"},"status":{"type":"string","enum":["not_started","in_progress","completed","blocked"],"title":"Status"},"progress_status":{"type":"string","enum":["on_track","at_risk","off_track","completed"],"title":"Progress Status"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"},"completion_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completion Notes"},"blocker_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocker Reason"},"owner":{"anyOf":[{"$ref":"#/components/schemas/MilestoneOwnerRef"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["uid","display_id","plan_uid","sequence","title","target_date","status","progress_status"],"title":"MilestoneResponse"},"MilestoneStatusChangeRequest":{"properties":{"status":{"type":"string","enum":["not_started","in_progress","completed","blocked"],"title":"Status"},"completion_notes":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Completion Notes","description":"Only meaningful when status = completed"},"blocker_reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Blocker Reason","description":"Only meaningful when status = blocked"}},"type":"object","required":["status"],"title":"MilestoneStatusChangeRequest"},"MilestoneSummarySchema":{"properties":{"overdue":{"type":"integer","title":"Overdue","default":0},"due_soon":{"type":"integer","title":"Due Soon","default":0},"blocked":{"type":"integer","title":"Blocked","default":0}},"type":"object","title":"MilestoneSummarySchema"},"MilestoneUpdate":{"properties":{"sequence":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Sequence"},"title":{"anyOf":[{"type":"string","maxLength":200,"minLength":2},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"target_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Target Date"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"status":{"anyOf":[{"type":"string","enum":["not_started","in_progress","completed","blocked"]},{"type":"null"}],"title":"Status"},"completion_notes":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Completion Notes"},"blocker_reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Blocker Reason"}},"type":"object","title":"MilestoneUpdate","description":"PATCH body — all fields optional, at least one must be provided.\n\nOmitted fields are left untouched; fields explicitly sent as null\nare cleared (distinguished via ``model_fields_set``).\n\n``completed_at`` is server-owned: it is set/cleared automatically by\nstatus transitions and cannot be supplied by clients."},"MitigationPlanCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"strategy":{"anyOf":[{"$ref":"#/components/schemas/MitigationStrategySchema"},{"type":"null"}]},"priority":{"type":"string","enum":["low","medium","high"],"title":"Priority","default":"medium"},"status":{"type":"string","enum":["not_started","in_progress","on_hold","completed","cancelled"],"title":"Status","default":"not_started"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner","description":"User UID of the plan owner"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"target_end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Target End Date"},"next_review_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Next Review Date"},"expected_residual":{"anyOf":[{"$ref":"#/components/schemas/ExpectedResidualSchema"},{"type":"null"}]},"progress":{"anyOf":[{"$ref":"#/components/schemas/ProgressSchema"},{"type":"null"}]}},"type":"object","required":["name"],"title":"MitigationPlanCreate"},"MitigationPlanResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"display_id":{"type":"string","title":"Display Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"strategy":{"anyOf":[{"$ref":"#/components/schemas/MitigationStrategySchema"},{"type":"null"}]},"priority":{"type":"string","enum":["low","medium","high"],"title":"Priority"},"status":{"type":"string","enum":["not_started","in_progress","on_hold","completed","cancelled"],"title":"Status"},"version":{"type":"integer","title":"Version"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"start_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"},"target_end_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target End Date"},"next_review_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Review Date"},"expected_residual":{"anyOf":[{"$ref":"#/components/schemas/ExpectedResidualSchema"},{"type":"null"}]},"progress":{"anyOf":[{"$ref":"#/components/schemas/ProgressSchema"},{"type":"null"}]},"approval":{"$ref":"#/components/schemas/ApprovalSchema"},"actions":{"items":{"$ref":"#/components/schemas/ActionResponse"},"type":"array","title":"Actions"},"milestone_summary":{"anyOf":[{"$ref":"#/components/schemas/MilestoneSummarySchema"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["uid","display_id","name","priority","status","version","approval"],"title":"MitigationPlanResponse"},"MitigationPlanUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"strategy":{"anyOf":[{"$ref":"#/components/schemas/MitigationStrategySchema"},{"type":"null"}]},"priority":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}],"title":"Priority"},"status":{"anyOf":[{"type":"string","enum":["not_started","in_progress","on_hold","completed","cancelled"]},{"type":"null"}],"title":"Status"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"target_end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Target End Date"},"next_review_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Next Review Date"},"expected_residual":{"anyOf":[{"$ref":"#/components/schemas/ExpectedResidualSchema"},{"type":"null"}]},"progress":{"anyOf":[{"$ref":"#/components/schemas/ProgressSchema"},{"type":"null"}]}},"type":"object","title":"MitigationPlanUpdate"},"MitigationStrategySchema":{"properties":{"primary":{"type":"string","title":"Primary","description":"Strategy type, e.g. reduce_mitigate, transfer_insure"},"subtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtype","description":"Optional strategy subtype"}},"type":"object","required":["primary"],"title":"MitigationStrategySchema"},"ModelBatchState":{"properties":{"pipeline_name":{"type":"string","title":"Pipeline Name"},"in_progress":{"type":"boolean","title":"In Progress"},"offset":{"type":"integer","title":"Offset"},"total_clients":{"type":"integer","title":"Total Clients"},"target_months_hash":{"type":"string","title":"Target Months Hash"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"last_polled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Polled At"}},"type":"object","required":["pipeline_name","in_progress","offset","total_clients","target_months_hash","started_at","completed_at","last_polled_at"],"title":"ModelBatchState","description":"Snapshot of the orchestrator's state machine.\n\nFields:\n    pipeline_name: Always ``\"model_release_batch\"`` — identity key.\n    in_progress: ``True`` between ``start_batch`` and ``complete_batch``.\n    offset: Number of clients already enqueued in the current batch.\n    total_clients: Snapshot of active client count at batch start;\n        new clients created mid-batch are NOT included (they get\n        lazy-predicted on access per design).\n    target_months_hash: Hash of the ``ModelWindow`` this batch is\n        running for. Mid-batch mismatch with the current window\n        triggers a reset.\n    started_at: When ``start_batch`` was last called.\n    completed_at: When ``complete_batch`` was last called. ``None``\n        when ``in_progress`` is true.\n    last_polled_at: When the orchestrator last checked the GCS\n        bucket — gates the hourly cadence even while idle."},"MoveBatchRequest":{"properties":{"moves":{"items":{"$ref":"#/components/schemas/MoveChildRequest"},"type":"array","title":"Moves","description":"List of moves to perform atomically"}},"type":"object","required":["moves"],"title":"MoveBatchRequest","description":"Request to move multiple children in a single atomic operation."},"MoveBatchResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"results":{"items":{"$ref":"#/components/schemas/MoveChildResponse"},"type":"array","title":"Results"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","results","message"],"title":"MoveBatchResponse","description":"Response from batch move operation."},"MoveChildRequest":{"properties":{"child_uid":{"type":"string","title":"Child Uid","description":"Key of the child entity to move"},"new_parent_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Parent Uid","description":"Key of the new parent (null to make root)"}},"type":"object","required":["child_uid","new_parent_uid"],"title":"MoveChildRequest","description":"Request to move a child to a new parent."},"MoveChildResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"child_uid":{"type":"string","title":"Child Uid"},"new_parent_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Parent Uid"},"old_parent_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Old Parent Uid"},"root_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Root Uid"},"edges_updated":{"type":"integer","title":"Edges Updated","default":0},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","child_uid","new_parent_uid","message"],"title":"MoveChildResponse","description":"Response from move operation."},"MyWorkAnalyticsResponse":{"properties":{"risk_exposure":{"items":{"$ref":"#/components/schemas/RiskExposureItem"},"type":"array","title":"Risk Exposure"},"workload":{"$ref":"#/components/schemas/WorkloadBreakdown"},"sla":{"$ref":"#/components/schemas/SlaBreakdown"},"time_to_complete":{"$ref":"#/components/schemas/TimeToCompleteResponse"}},"type":"object","required":["workload","sla","time_to_complete"],"title":"MyWorkAnalyticsResponse"},"MyWorkKpisResponse":{"properties":{"tasks_requiring_action":{"type":"integer","title":"Tasks Requiring Action","default":0},"tasks_requiring_action_trend":{"type":"integer","title":"Tasks Requiring Action Trend","description":"Change vs 7 days ago. Trend deltas for overdue/pending-approval use current plan data applied to historical risk membership — an approximation, since historical plan state is not stored.","default":0},"overdue_items":{"type":"integer","title":"Overdue Items","default":0},"overdue_items_trend":{"type":"integer","title":"Overdue Items Trend","description":"Change vs 7 days ago (approximation — see tasks_requiring_action_trend).","default":0},"due_this_week":{"type":"integer","title":"Due This Week","default":0},"due_this_week_trend":{"type":"integer","title":"Due This Week Trend","description":"Change vs 7 days ago (approximation — see tasks_requiring_action_trend).","default":0},"pending_approvals":{"type":"integer","title":"Pending Approvals","default":0},"pending_approvals_trend":{"type":"integer","title":"Pending Approvals Trend","description":"Change vs 7 days ago (approximation — see tasks_requiring_action_trend).","default":0},"critical_risks":{"type":"integer","title":"Critical Risks","default":0},"critical_risks_trend":{"type":"integer","title":"Critical Risks Trend","description":"Change vs 7 days ago (approximation — see tasks_requiring_action_trend).","default":0}},"type":"object","title":"MyWorkKpisResponse"},"NaicsEntry":{"properties":{"code":{"type":"string","title":"Code"},"weight":{"type":"number","title":"Weight"}},"type":"object","required":["code","weight"],"title":"NaicsEntry","description":"A single NAICS code with its weight (0-100, all weights sum to 100)."},"NaicsRef":{"properties":{"code":{"type":"string","title":"Code"},"description":{"type":"string","title":"Description"},"sector":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sector"},"sector_desc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sector Desc"},"sub_sector":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sub Sector"},"sub_sector_desc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sub Sector Desc"}},"type":"object","required":["code","description"],"title":"NaicsRef","description":"NAICS code reference entry for search/autocomplete."},"NamedVulnerabilityBulkUpsertEntry":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"type":"string","title":"Description"},"source":{"type":"string","title":"Source","default":"curated"},"external_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Uid"},"cve_ids":{"items":{"type":"string"},"type":"array","title":"Cve Ids"}},"type":"object","required":["name","description"],"title":"NamedVulnerabilityBulkUpsertEntry"},"NamedVulnerabilityBulkUpsertRequest":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/NamedVulnerabilityBulkUpsertEntry"},"type":"array","minItems":1,"title":"Entries"}},"type":"object","required":["entries"],"title":"NamedVulnerabilityBulkUpsertRequest"},"NamedVulnerabilityBulkUpsertResponse":{"properties":{"upserted_uids":{"items":{"type":"string"},"type":"array","title":"Upserted Uids"},"failed":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Failed"},"cve_edges_created":{"type":"integer","title":"Cve Edges Created"}},"type":"object","required":["upserted_uids","failed","cve_edges_created"],"title":"NamedVulnerabilityBulkUpsertResponse"},"NamedVulnerabilityCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"type":"string","minLength":1,"title":"Description"},"source":{"type":"string","title":"Source","description":"Origin marker: curated|misp|external","default":"curated"},"external_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Uid"}},"type":"object","required":["name","description"],"title":"NamedVulnerabilityCreate"},"NamedVulnerabilityResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"source":{"type":"string","title":"Source"},"external_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Uid"},"version":{"type":"integer","title":"Version"},"cve_count":{"type":"integer","title":"Cve Count"}},"type":"object","required":["uid","name","description","source","external_uid","version","cve_count"],"title":"NamedVulnerabilityResponse"},"NamedVulnerabilityUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Description"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"external_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Uid"}},"type":"object","title":"NamedVulnerabilityUpdate"},"NdaType":{"type":"string","enum":["VENDOR","COMPANY","BOTH","MUTUAL","NONE"],"title":"NdaType","description":"NDA classification for vendor relationships."},"NistSpendingItem":{"properties":{"name":{"type":"string","title":"Name"},"ref":{"type":"string","title":"Ref"},"value":{"type":"number","title":"Value"}},"type":"object","required":["name","ref","value"],"title":"NistSpendingItem"},"NoCoverageAckRequest":{"properties":{"reason":{"type":"string","minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"NoCoverageAckRequest"},"NoCoverageAckResponse":{"properties":{"disposition_uid":{"type":"string","title":"Disposition Uid"},"client_uid":{"type":"string","title":"Client Uid"},"control_anchor_uid":{"type":"string","title":"Control Anchor Uid"},"target_scheme":{"$ref":"#/components/schemas/TaxonomyScheme"},"acknowledged_at":{"type":"string","format":"date-time","title":"Acknowledged At"},"migration_revision":{"type":"integer","title":"Migration Revision"}},"type":"object","required":["disposition_uid","client_uid","control_anchor_uid","target_scheme","acknowledged_at","migration_revision"],"title":"NoCoverageAckResponse"},"NoCoverageAcknowledgment":{"properties":{"acknowledged_at":{"type":"string","format":"date-time","title":"Acknowledged At"},"reviewer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Name"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["acknowledged_at","reviewer_name","reason"],"title":"NoCoverageAcknowledgment"},"NotificationCategory":{"type":"string","enum":["responsible","accountable","consulted_informed"],"title":"NotificationCategory"},"NotificationChannel":{"type":"string","enum":["sse","email","sms","none"],"title":"NotificationChannel","description":"The channel a notification type goes to; ``none`` for no channel."},"NotificationPreferenceSettingResponse":{"properties":{"type":{"type":"string","title":"Type"},"channel":{"$ref":"#/components/schemas/NotificationChannel"}},"type":"object","required":["type","channel"],"title":"NotificationPreferenceSettingResponse"},"NotificationPreferenceUpdate":{"properties":{"type":{"type":"string","title":"Type"},"channel":{"$ref":"#/components/schemas/NotificationChannel"}},"type":"object","required":["type","channel"],"title":"NotificationPreferenceUpdate"},"NotificationPreferencesResponse":{"properties":{"version":{"type":"integer","title":"Version"},"userId":{"type":"string","title":"Userid"},"preferences":{"items":{"$ref":"#/components/schemas/NotificationPreferenceSettingResponse"},"type":"array","title":"Preferences"}},"type":"object","required":["version","userId","preferences"],"title":"NotificationPreferencesResponse","description":"The person's channel for every notification type, defaults filled in."},"NotificationPriority":{"type":"string","enum":["NORMAL","HIGH"],"title":"NotificationPriority","description":"How urgent a message is; channels may show or route it differently."},"NotificationSettings":{"properties":{"digest_mode":{"type":"boolean","title":"Digest Mode","description":"Use digest mode for notifications","default":true},"digest_frequency":{"$ref":"#/components/schemas/Frequency","description":"How often to send digest","default":"daily"},"digest_time":{"type":"string","title":"Digest Time","description":"Time to send digest (HH:MM)","default":"09:00"},"user_timezone_aware":{"type":"boolean","title":"User Timezone Aware","description":"Send at user's local time","default":true},"escalation_after_days":{"type":"integer","minimum":1.0,"title":"Escalation After Days","description":"Escalate after N days of inactivity","default":7}},"type":"object","title":"NotificationSettings","description":"Global notification settings for a registry."},"NotifyConfig":{"properties":{"on_enter":{"items":{"$ref":"#/components/schemas/RaciRole"},"type":"array","title":"On Enter","description":"Roles to notify when entering this step"},"on_exit":{"items":{"$ref":"#/components/schemas/RaciRole"},"type":"array","title":"On Exit","description":"Roles to notify when leaving this step"},"channels":{"items":{"type":"string"},"type":"array","title":"Channels","description":"Notification channels to use"}},"type":"object","title":"NotifyConfig","description":"Configuration for notification action."},"Objective":{"type":"string","enum":["NET_NEW","MATURE_EXISTING","BOTH"],"title":"Objective","description":"What the engine looks for (FR-1): adopt, strengthen, or both."},"OrphanedControl":{"properties":{"client_uid":{"type":"string","title":"Client Uid"},"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name"},"control_uid":{"type":"string","title":"Control Uid"},"control_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Control Name"},"current_state":{"type":"string","title":"Current State"},"source_client_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Client Uid"},"flagged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Flagged At"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["client_uid","control_uid","current_state"],"title":"OrphanedControl","description":"An inherited control that lost its inheritance source."},"OverrideResolution":{"type":"string","enum":["merge","replace","keep"],"title":"OverrideResolution","description":"How to resolve a control override conflict."},"PeerComparisonWidget":{"properties":{"metrics":{"items":{"$ref":"#/components/schemas/PeerMetric"},"type":"array","title":"Metrics"},"peer_count":{"type":"integer","title":"Peer Count","default":0}},"type":"object","title":"PeerComparisonWidget"},"PeerMetric":{"properties":{"metric":{"type":"string","title":"Metric"},"company_value":{"type":"number","title":"Company Value","default":0.0},"platform_avg":{"type":"number","title":"Platform Avg","default":0.0},"percentile":{"type":"number","title":"Percentile","default":0.0}},"type":"object","required":["metric"],"title":"PeerMetric"},"PerSetResidualsModel":{"properties":{"control_set_uid":{"type":"string","title":"Control Set Uid"},"current_residuals":{"additionalProperties":{"type":"number"},"type":"object","title":"Current Residuals"},"target_residuals":{"additionalProperties":{"type":"number"},"type":"object","title":"Target Residuals"},"delta":{"additionalProperties":{"type":"number"},"type":"object","title":"Delta"}},"type":"object","required":["control_set_uid","current_residuals","target_residuals","delta"],"title":"PerSetResidualsModel","description":"One active control set's residuals, keyed by client risk-category name."},"PermissionCheckResult":{"properties":{"allowed":{"type":"boolean","title":"Allowed"},"user_uid":{"type":"string","title":"User Uid"},"resource":{"type":"string","title":"Resource"},"action":{"type":"string","title":"Action"},"scope":{"type":"string","title":"Scope"},"reason":{"type":"string","title":"Reason","description":"Explanation of why access was granted/denied","default":""},"matched_permission":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched Permission","description":"The permission that matched (if any)"}},"type":"object","required":["allowed","user_uid","resource","action","scope"],"title":"PermissionCheckResult","description":"Result of a permission check."},"PlatformConfigResponse":{"properties":{"default_v1_variant_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default V1 Variant Uid"},"default_taxonomy_scheme":{"$ref":"#/components/schemas/TaxonomyScheme"}},"type":"object","required":["default_v1_variant_uid","default_taxonomy_scheme"],"title":"PlatformConfigResponse","description":"Current platform defaults used by taxonomy and client creation."},"PlatformDefaultTaxonomySchemeUpdate":{"properties":{"taxonomy_scheme":{"$ref":"#/components/schemas/TaxonomyScheme"}},"additionalProperties":false,"type":"object","required":["taxonomy_scheme"],"title":"PlatformDefaultTaxonomySchemeUpdate","description":"Set the taxonomy scheme assigned to newly created clients."},"PlatformDefaultVariantResponse":{"properties":{"variant_uid":{"type":"string","title":"Variant Uid"}},"type":"object","required":["variant_uid"],"title":"PlatformDefaultVariantResponse","description":"Current platform fallback taxonomy-v1 variant."},"PlatformDefaultVariantUpdate":{"properties":{"variant_uid":{"type":"string","title":"Variant Uid"}},"type":"object","required":["variant_uid"],"title":"PlatformDefaultVariantUpdate","description":"Set the platform fallback taxonomy-v1 variant."},"PredictionsBoundedUpdate":{"properties":{"predictions_bounded":{"type":"boolean","title":"Predictions Bounded"}},"type":"object","required":["predictions_bounded"],"title":"PredictionsBoundedUpdate","description":"Platform-only request body for ``PATCH /clients/{uid}/predictions-bounded``.\n\nToggling ``predictions_bounded`` changes how the ML pipeline derives a\nclient's future predictions (1/12 monthly stepping vs straight to the new\nMA). The endpoint that consumes this schema is gated on system-scope\n``client:admin`` and triggers a prediction recalc only when the value\nactually differs from the client's current ClientNode value.\n\n``StrictBool`` rejects Pydantic's lax bool coercion (``\"yes\"``, ``1``,\n``\"true\"``) so a typed wire contract is enforced for a platform-only\ndestructive toggle."},"PreparationStatus":{"properties":{"is_prepared":{"type":"boolean","title":"Is Prepared"},"prepared_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Prepared At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"prepared_state_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prepared State Digest"},"current_state_digest":{"type":"string","title":"Current State Digest"},"matches_current_state":{"type":"boolean","title":"Matches Current State"},"prepared_variant_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prepared Variant Uid"},"prepared_target_scheme":{"anyOf":[{"$ref":"#/components/schemas/TaxonomyScheme"},{"type":"null"}]}},"type":"object","required":["is_prepared","current_state_digest","matches_current_state"],"title":"PreparationStatus","description":"Preparation state for the flip (ready to execute or not).\n\nFields:\n    is_prepared: Whether a flip preparation exists and is current.\n    prepared_at: Timestamp when preparation was created (null if not prepared).\n    expires_at: Timestamp when preparation expires (null if not prepared).\n    prepared_state_digest: Hash of the prepared state (null if not prepared).\n    current_state_digest: Hash of the current client state (always present).\n    matches_current_state: Whether prepared state matches current state.\n    prepared_variant_uid: Variant UID of the preparation (null if not prepared).\n    prepared_target_scheme: Target scheme of the preparation (null if not prepared)."},"PrepareFlipRequest":{"properties":{"target_scheme":{"anyOf":[{"$ref":"#/components/schemas/TaxonomyScheme"},{"type":"null"}]},"expected_migration_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Migration Revision"}},"additionalProperties":false,"type":"object","title":"PrepareFlipRequest"},"PrepareFlipV2Request":{"properties":{"target_scheme":{"$ref":"#/components/schemas/TaxonomyScheme"},"variant_uid":{"type":"string","minLength":1,"title":"Variant Uid"},"expected_preview_digest":{"type":"string","minLength":1,"title":"Expected Preview Digest"},"expected_migration_revision":{"type":"integer","title":"Expected Migration Revision"},"expected_global_generation":{"type":"integer","title":"Expected Global Generation"}},"additionalProperties":false,"type":"object","required":["target_scheme","variant_uid","expected_preview_digest","expected_migration_revision","expected_global_generation"],"title":"PrepareFlipV2Request"},"PrepareResponse":{"properties":{"migration_revision":{"type":"integer","title":"Migration Revision"},"flip_prepare_state_digest":{"type":"string","title":"Flip Prepare State Digest"},"flip_prepare_preview_digest":{"type":"string","title":"Flip Prepare Preview Digest"},"flip_prepare_variant_uid":{"type":"string","title":"Flip Prepare Variant Uid"},"flip_prepare_target_scheme":{"$ref":"#/components/schemas/TaxonomyScheme"},"flip_prepare_global_generation":{"type":"integer","title":"Flip Prepare Global Generation"},"flip_prepare_at":{"type":"string","format":"date-time","title":"Flip Prepare At"}},"type":"object","required":["migration_revision","flip_prepare_state_digest","flip_prepare_preview_digest","flip_prepare_variant_uid","flip_prepare_target_scheme","flip_prepare_global_generation","flip_prepare_at"],"title":"PrepareResponse"},"ProductOverlayReconciliationEntry":{"properties":{"uid":{"type":"string","title":"Uid"},"product_uid":{"type":"string","title":"Product Uid"},"product_name":{"type":"string","title":"Product Name"},"vendor_name":{"type":"string","title":"Vendor Name"},"reason":{"$ref":"#/components/schemas/ReconciliationReason"},"discovered_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discovered At"},"resolved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved At"},"resolved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved By"},"resolution":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Resolution"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["uid","product_uid","product_name","vendor_name","reason"],"title":"ProductOverlayReconciliationEntry"},"ProductOverlayReconciliationListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProductOverlayReconciliationEntry"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"ProductOverlayReconciliationListResponse"},"ProductOverlayReconciliationResolveRequest":{"properties":{"resolution":{"additionalProperties":true,"type":"object","title":"Resolution","description":"Reviewer disposition object."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["resolution"],"title":"ProductOverlayReconciliationResolveRequest"},"ProgramOptimizationResponse":{"properties":{"total_cyber_spend":{"anyOf":[{"$ref":"#/components/schemas/SpendOverviewWidget"},{"type":"null"}]},"cyber_spend":{"anyOf":[{"$ref":"#/components/schemas/SpendOverviewWidget"},{"type":"null"}]},"cyber_spend_investments":{"anyOf":[{"$ref":"#/components/schemas/SpendInvestmentsWidget"},{"type":"null"}]},"threat_exposure":{"anyOf":[{"$ref":"#/components/schemas/ThreatExposureWidget"},{"type":"null"}]},"debug":{"anyOf":[{"$ref":"#/components/schemas/DebugEnvelope"},{"type":"null"}],"description":"Present when ?debug=true"}},"type":"object","title":"ProgramOptimizationResponse"},"ProgressSchema":{"properties":{"percent_complete":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Percent Complete"},"status":{"anyOf":[{"type":"string","enum":["on_track","at_risk","off_track","completed"]},{"type":"null"}],"title":"Status"}},"type":"object","title":"ProgressSchema"},"QualitativeOption":{"properties":{"id":{"type":"string","title":"Id","description":"Option identifier"},"label":{"type":"string","title":"Label","description":"Display label"},"color":{"type":"string","title":"Color","description":"Hex colour code"},"score_min":{"type":"integer","title":"Score Min","description":"Minimum score for this option"},"score_max":{"type":"integer","title":"Score Max","description":"Maximum score for this option"}},"type":"object","required":["id","label","color","score_min","score_max"],"title":"QualitativeOption","description":"A single qualitative risk rating option with score range and colour."},"RACIAssignee":{"properties":{"key":{"type":"string","title":"Key","description":"User UID or group GID"},"type":{"type":"string","title":"Type","description":"'user' or 'group'"},"display_name":{"type":"string","title":"Display Name","description":"Human-readable display name"}},"type":"object","required":["key","type","display_name"],"title":"RACIAssignee","description":"A user or group that can be assigned in a RACI template."},"RACIStepAssignment":{"properties":{"responsible":{"items":{"type":"string"},"type":"array","title":"Responsible"},"accountable":{"items":{"type":"string"},"type":"array","title":"Accountable"},"consulted":{"items":{"type":"string"},"type":"array","title":"Consulted"},"informed":{"items":{"type":"string"},"type":"array","title":"Informed"}},"type":"object","title":"RACIStepAssignment","description":"RACI assignment for a single workflow step within a template."},"RACITemplate":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"assignees":{"items":{"$ref":"#/components/schemas/RACIAssignee"},"type":"array","title":"Assignees"},"assignments":{"additionalProperties":{"$ref":"#/components/schemas/RACIStepAssignment"},"type":"object","title":"Assignments","description":"Map of workflow step name → RACI assignment"}},"type":"object","required":["uid","name"],"title":"RACITemplate","description":"A saved RACI assignment preset owned by a registry."},"RACITemplateCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"assignees":{"items":{"$ref":"#/components/schemas/RACIAssignee"},"type":"array","title":"Assignees"},"assignments":{"additionalProperties":{"$ref":"#/components/schemas/RACIStepAssignment"},"type":"object","title":"Assignments","description":"Map of workflow step name → RACI assignment"}},"type":"object","required":["name"],"title":"RACITemplateCreate","description":"Schema for creating a RACI template."},"RACITemplateUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"assignees":{"anyOf":[{"items":{"$ref":"#/components/schemas/RACIAssignee"},"type":"array"},{"type":"null"}],"title":"Assignees"},"assignments":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/RACIStepAssignment"},"type":"object"},{"type":"null"}],"title":"Assignments"}},"type":"object","title":"RACITemplateUpdate","description":"Schema for updating a RACI template."},"RaciAssignment":{"properties":{"responsible":{"items":{"type":"string"},"type":"array","title":"Responsible","description":"User keys for responsible role"},"accountable":{"items":{"type":"string"},"type":"array","title":"Accountable","description":"User keys for accountable role"},"consulted":{"items":{"type":"string"},"type":"array","title":"Consulted","description":"User keys for consulted role"},"informed":{"items":{"type":"string"},"type":"array","title":"Informed","description":"User keys for informed role"}},"type":"object","title":"RaciAssignment","description":"RACI assignment for a single workflow step."},"RaciRole":{"type":"string","enum":["responsible","accountable","consulted","informed"],"title":"RaciRole","description":"RACI responsibility assignment roles."},"RaciUserDetail":{"properties":{"uid":{"type":"string","title":"Uid","description":"User identifier"},"active":{"type":"boolean","title":"Active","description":"Whether the user is active in the directory","default":true},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name","description":"User first name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name","description":"User last name"}},"type":"object","required":["uid"],"title":"RaciUserDetail","description":"Minimal user detail for RACI enrichment in read responses.\n\nAllows the UI to distinguish inactive/deactivated users without extra queries.\nInactive users remain in RACI assignments — they are never pruned automatically."},"RbacAuditConsistencyResponse":{"properties":{"users":{"items":{"$ref":"#/components/schemas/RbacAuditUserRecord"},"type":"array","title":"Users"},"total_uids":{"type":"integer","title":"Total Uids","description":"Size of the union of graph + Redis uid sets."}},"type":"object","required":["users","total_uids"],"title":"RbacAuditConsistencyResponse","description":"Per-uid audit snapshot across Neo4j UserRefs and the two Redis RBAC caches."},"RbacAuditUserRecord":{"properties":{"user_uid":{"type":"string","title":"User Uid"},"graph_userref_state":{"type":"string","enum":["absent","live","tombstoned"],"title":"Graph Userref State","description":"'absent' = uid present only in Redis (no UserRef); 'live' = UserRef exists and not tombstoned; 'tombstoned' = UserRef.status == 'deleted'."},"graph_roles":{"items":{"$ref":"#/components/schemas/_AuditRoleBinding"},"type":"array","title":"Graph Roles","description":"Non-expired HAS_ROLE bindings; empty for absent, tombstoned, or unbound UserRefs."},"redis_permissions_present":{"type":"boolean","title":"Redis Permissions Present","description":"Whether rbac:permissions:{user_uid} exists in the mtm-graph Redis cache."},"redis_user_roles_present":{"type":"boolean","title":"Redis User Roles Present","description":"Whether rbac:user_roles:{user_uid} exists in the mtm-graph Redis cache."},"redis_user_roles":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Redis User Roles","description":"SMEMBERS of rbac:user_roles:{user_uid} when the key exists (each entry is 'role_slug:scope'); None when the key is absent. Empty list means the key exists but has zero members — a meaningful state distinct from absent."}},"type":"object","required":["user_uid","graph_userref_state","redis_permissions_present","redis_user_roles_present"],"title":"RbacAuditUserRecord","description":"Per-uid cross-source snapshot for the three-way consistency check."},"ReLinkToCatalogRequest":{"properties":{"catalog_uid":{"type":"string","minLength":1,"title":"Catalog Uid","description":"Catalog ControlAnchor UID the implementation should IMPLEMENT"}},"additionalProperties":false,"type":"object","required":["catalog_uid"],"title":"ReLinkToCatalogRequest","description":"Payload for ``POST .../controls/{implementation_uid}/catalog-link``.\n\nRe-points the implementation's ``IMPLEMENTS`` edge at a shared\ncatalog anchor (the approved consolidation link). ``catalog_uid`` is\nthe target ``ControlAnchor`` UID — it must be active and carry a live\nhead passing the catalog visibility filter (``custom = false AND\nvetted = true AND discontinued_at IS NULL``, INV-6/EC-5): the endpoint\nnever re-links onto a custom or non-vetted control."},"ReLinkToCatalogResponse":{"properties":{"implementation_uid":{"type":"string","title":"Implementation Uid","description":"The re-linked implementation"},"previous_anchor_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Anchor Uid","description":"Anchor implemented before the write (None when the impl had no IMPLEMENTS edge)"},"catalog_uid":{"type":"string","title":"Catalog Uid","description":"The catalog anchor the implementation now IMPLEMENTS"},"changed":{"type":"boolean","title":"Changed","description":"True when the IMPLEMENTS edge was re-pointed (false = idempotent no-op)"}},"additionalProperties":false,"type":"object","required":["implementation_uid","catalog_uid","changed"],"title":"ReLinkToCatalogResponse","description":"Outcome of the re-link write.\n\n``previous_anchor_uid`` is the anchor the implementation IMPLEMENTS\nbefore the write (``None`` when it had no ``IMPLEMENTS`` edge).\n``changed`` is ``False`` on the idempotent no-op — the implementation\nalready IMPLEMENTS ``catalog_uid`` (re-approving the same link is a\n200 with no write, not an error — deliberately no 409, unlike the\nadd-control duplicate guard)."},"ReactFlowEdge":{"properties":{"id":{"type":"string","title":"Id","description":"Unique edge identifier"},"source":{"type":"string","title":"Source","description":"Source node ID"},"target":{"type":"string","title":"Target","description":"Target node ID"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Edge type for rendering (default, smoothstep, etc.)"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data","description":"Edge-specific data payload"},"sourceHandle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sourcehandle"},"targetHandle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Targethandle"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"animated":{"type":"boolean","title":"Animated","default":false},"hidden":{"type":"boolean","title":"Hidden","default":false}},"type":"object","required":["id","source","target"],"title":"ReactFlowEdge","description":"React Flow edge format."},"ReactFlowGraph":{"properties":{"nodes":{"items":{"$ref":"#/components/schemas/ReactFlowNode"},"type":"array","title":"Nodes"},"edges":{"items":{"$ref":"#/components/schemas/ReactFlowEdge"},"type":"array","title":"Edges"},"viewport":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Viewport","description":"Initial viewport state {x, y, zoom}"},"readonly":{"type":"boolean","title":"Readonly","description":"Whether the requesting user has read-only access (no write permissions)","default":false}},"type":"object","title":"ReactFlowGraph","description":"Complete React Flow graph with nodes and edges."},"ReactFlowNode":{"properties":{"id":{"type":"string","title":"Id","description":"Unique node identifier"},"type":{"type":"string","title":"Type","description":"Node type for rendering (client, control, technique, etc.)"},"data":{"additionalProperties":true,"type":"object","title":"Data","description":"Node-specific data payload"},"parentId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parentid","description":"Parent node for nested flows"},"hidden":{"type":"boolean","title":"Hidden","default":false},"selectable":{"type":"boolean","title":"Selectable","default":true},"draggable":{"type":"boolean","title":"Draggable","default":true}},"type":"object","required":["id","type","data"],"title":"ReactFlowNode","description":"React Flow node format.\n\nPosition is intentionally omitted - the frontend computes\nlayout using dagre/elkjs based on viewport dimensions."},"ReadinessReason":{"type":"string","enum":["EMPTY_CONTROL_SET","TAXONOMY_MIGRATION_REQUIRED"],"title":"ReadinessReason","description":"Machine-readable generation refusal codes (MTM-2188)."},"RecommendationExclusion":{"properties":{"node_type":{"$ref":"#/components/schemas/ExclusionNodeType"},"node_id":{"type":"string","maxLength":200,"minLength":1,"title":"Node Id"},"reason":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Reason","description":"Why this item should never be recommended."},"uid":{"type":"string","title":"Uid"},"client_uid":{"type":"string","title":"Client Uid"},"created_by":{"type":"string","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"additionalProperties":false,"type":"object","required":["node_type","node_id","uid","client_uid","created_by","created_at","updated_at"],"title":"RecommendationExclusion"},"RecommendationExclusionSelection":{"properties":{"node_type":{"$ref":"#/components/schemas/ExclusionNodeType"},"node_id":{"type":"string","maxLength":200,"minLength":1,"title":"Node Id"},"reason":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Reason","description":"Why this item should never be recommended."}},"additionalProperties":false,"type":"object","required":["node_type","node_id"],"title":"RecommendationExclusionSelection"},"RecommendationExclusionSortBy":{"type":"string","enum":["node_type","node_id","created_at","updated_at"],"title":"RecommendationExclusionSortBy"},"RecommendationExclusionsUpdate":{"properties":{"exclusions":{"items":{"$ref":"#/components/schemas/RecommendationExclusionSelection"},"type":"array","maxItems":1000,"title":"Exclusions","description":"Complete replacement of explicit selections; an empty list clears all exclusions."}},"additionalProperties":false,"type":"object","required":["exclusions"],"title":"RecommendationExclusionsUpdate"},"RecommendationGenerationErrorResponse":{"properties":{"detail":{"anyOf":[{"$ref":"#/components/schemas/RecommendationReadinessDetail"},{"items":{"$ref":"#/components/schemas/RecommendationValidationError"},"type":"array"}],"title":"Detail"}},"type":"object","required":["detail"],"title":"RecommendationGenerationErrorResponse","description":"HTTP 422: a not-ready control set or client, or invalid request input."},"RecommendationList":{"properties":{"kind":{"type":"string","pattern":"^(net_new|mature)$","title":"Kind"},"rows":{"items":{"$ref":"#/components/schemas/RecommendationRow"},"type":"array","title":"Rows"}},"type":"object","required":["kind","rows"],"title":"RecommendationList","description":"One independently ranked table. ``kind`` is never a blend (FR-2)."},"RecommendationReadinessDetail":{"properties":{"reason_codes":{"items":{"$ref":"#/components/schemas/ReadinessReason"},"type":"array","minItems":1,"title":"Reason Codes"}},"type":"object","required":["reason_codes"],"title":"RecommendationReadinessDetail","description":"Readiness refusal carried inside the HTTP error's detail field."},"RecommendationRow":{"properties":{"rank":{"type":"integer","minimum":1.0,"title":"Rank"},"item_uid":{"type":"string","title":"Item Uid"},"name":{"type":"string","title":"Name"},"parent_domain":{"type":"string","title":"Parent Domain"},"parent_capability":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Capability"},"dollar_reduction":{"type":"number","minimum":0.0,"title":"Dollar Reduction"},"presence":{"type":"string","pattern":"^(absent|partial|present)$","title":"Presence"},"metric_gaps":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Metric Gaps"},"absent_functions":{"items":{"$ref":"#/components/schemas/AbsentFunction"},"type":"array","title":"Absent Functions"}},"type":"object","required":["rank","item_uid","name","parent_domain","dollar_reduction","presence"],"title":"RecommendationRow","description":"One ranked recommendation at the selected grain (FR-3/FR-6).\n\n``parent_domain`` is always set — a row is never emitted without its\nplace in the taxonomy. ``parent_capability`` appears on function-grain\nrows only; at domain grain ``parent_domain`` is the domain itself.\n``dollar_reduction`` is the modeled reduction in residual financial risk\n(the same total the dashboard shows) from this row's change alone:\n``current_exposure`` minus exposure with only this row applied. It is a\nclient-own figure, never a peer or industry one.\n``absent_functions`` lists, on Net New capability and domain rows, the\nabsent functions the row models adopting (by name, then uid); it is\nempty on function-grain rows and on Candidates to Mature rows."},"RecommendationValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Loc"},"msg":{"type":"string","title":"Msg"},"type":{"type":"string","title":"Type"}},"additionalProperties":true,"type":"object","required":["loc","msg","type"],"title":"RecommendationValidationError","description":"FastAPI's required error fields, preserving additional framework metadata."},"RecommendationsResponse":{"properties":{"grain":{"$ref":"#/components/schemas/Grain"},"objective":{"$ref":"#/components/schemas/Objective"},"current_exposure":{"type":"number","minimum":0.0,"title":"Current Exposure"},"potential_exposure":{"type":"number","minimum":0.0,"title":"Potential Exposure"},"lists":{"items":{"$ref":"#/components/schemas/RecommendationList"},"type":"array","title":"Lists"}},"type":"object","required":["grain","objective","current_exposure","potential_exposure","lists"],"title":"RecommendationsResponse","description":"One or two independently ranked lists, never merged (FR-2/FR-7).\n\n``current_exposure`` is the client's residual financial risk for the set,\nthe same total the dashboard shows. ``potential_exposure`` is that total\nwith every recommended change across the whole taxonomy applied together:\nevery absent function adopted and every deployed function raised to the\nbenchmark. It does not depend on grain or objective. Rows are standalone\nreductions; changes overlap, so row values do not sum to\n``current_exposure - potential_exposure``."},"ReconciliationReason":{"type":"string","enum":["no_control_match","ambiguous_control_match","discontinued_control","uid_inactive","uid_points_to_custom"],"title":"ReconciliationReason"},"RederiveDispatched":{"properties":{"task_id":{"type":"string","title":"Task Id"},"run_id":{"type":"string","title":"Run Id"}},"type":"object","required":["task_id","run_id"],"title":"RederiveDispatched"},"RederiveRequest":{"properties":{"run_id":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9._:-]+$","title":"Run Id"}},"additionalProperties":false,"type":"object","required":["run_id"],"title":"RederiveRequest"},"RegistryCreate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"workflow_steps":{"items":{"$ref":"#/components/schemas/WorkflowStepConfig"},"type":"array","title":"Workflow Steps"},"custom_fields_schema":{"items":{"$ref":"#/components/schemas/CustomFieldSchema"},"type":"array","title":"Custom Fields Schema"},"action_configs":{"$ref":"#/components/schemas/ActionConfig"},"notification_settings":{"$ref":"#/components/schemas/NotificationSettings"},"raci_templates":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Raci Templates"},"template_configs":{"additionalProperties":true,"type":"object","title":"Template Configs"},"display_id_prefix":{"type":"string","title":"Display Id Prefix","default":"RISK"}},"type":"object","required":["name"],"title":"RegistryCreate"},"RegistryResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"version":{"type":"integer","title":"Version","default":1},"created":{"type":"string","format":"date-time","title":"Created"},"changed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changed By"},"change_source":{"anyOf":[{"$ref":"#/components/schemas/ChangeSource"},{"type":"null"}]},"change_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Reason"},"content_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Hash"},"chain_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chain Hash"},"used_in_calculations":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Used In Calculations"},"deleted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deleted"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"workflow_steps":{"items":{"$ref":"#/components/schemas/WorkflowStepConfig"},"type":"array","title":"Workflow Steps"},"custom_fields_schema":{"items":{"$ref":"#/components/schemas/CustomFieldSchema"},"type":"array","title":"Custom Fields Schema"},"action_configs":{"$ref":"#/components/schemas/ActionConfig"},"notification_settings":{"$ref":"#/components/schemas/NotificationSettings"},"raci_templates":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Raci Templates"},"template_configs":{"additionalProperties":true,"type":"object","title":"Template Configs"},"display_id_prefix":{"type":"string","title":"Display Id Prefix","default":"RISK"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions"}},"type":"object","required":["uid","name"],"title":"RegistryResponse"},"RegistryTemplateConfigResponse":{"properties":{"responsible":{"items":{"$ref":"#/components/schemas/TemplateAssignment"},"type":"array","title":"Responsible","default":[]},"accountable":{"items":{"$ref":"#/components/schemas/TemplateAssignment"},"type":"array","title":"Accountable","default":[]},"consulted_informed":{"items":{"$ref":"#/components/schemas/TemplateAssignment"},"type":"array","title":"Consulted Informed","default":[]}},"type":"object","title":"RegistryTemplateConfigResponse"},"RegistryUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"workflow_steps":{"anyOf":[{"items":{"$ref":"#/components/schemas/WorkflowStepConfig"},"type":"array"},{"type":"null"}],"title":"Workflow Steps"},"custom_fields_schema":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomFieldSchema"},"type":"array"},{"type":"null"}],"title":"Custom Fields Schema"},"action_configs":{"anyOf":[{"$ref":"#/components/schemas/ActionConfig"},{"type":"null"}]},"notification_settings":{"anyOf":[{"$ref":"#/components/schemas/NotificationSettings"},{"type":"null"}]},"raci_templates":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Raci Templates"},"template_configs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Template Configs"},"display_id_prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Id Prefix"}},"type":"object","title":"RegistryUpdate"},"RejectRequest":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"RejectRequest"},"RejectionRecord":{"properties":{"user_uid":{"type":"string","title":"User Uid","description":"User who rejected"},"rejected_at":{"type":"string","format":"date-time","title":"Rejected At","description":"When rejection was submitted"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Reason for rejection"},"returned_to_step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Returned To Step","description":"Step the risk was returned to"}},"type":"object","required":["user_uid","rejected_at"],"title":"RejectionRecord","description":"Record of a rejection received."},"RejectionRequest":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Reason","description":"Reason for rejection"},"return_to_step":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Return To Step","description":"Step to return to (default from workflow config)"}},"type":"object","required":["reason"],"title":"RejectionRequest","description":"Submit a rejection with a reason."},"ReportRiskSection":{"properties":{"summary":{"anyOf":[{"$ref":"#/components/schemas/RiskSummaryResponse"},{"type":"null"}],"description":"Aggregated risk metrics — phoenix-api parity (matches phoenix precalculation.py risk_summary). Includes loss_probability, defense_success, total_spend, spend_per_employee, percent_of_spend_*."},"inherent_risk":{"items":{"$ref":"#/components/schemas/RiskItem"},"type":"array","title":"Inherent Risk"},"residual_risk":{"items":{"$ref":"#/components/schemas/RiskItem"},"type":"array","title":"Residual Risk"},"residual_risk_percent":{"items":{"$ref":"#/components/schemas/RiskItem"},"type":"array","title":"Residual Risk Percent"},"mitigated_risk":{"items":{"$ref":"#/components/schemas/RiskItem"},"type":"array","title":"Mitigated Risk"}},"type":"object","title":"ReportRiskSection"},"ReportsAnalyticsResponse":{"properties":{"risk":{"anyOf":[{"$ref":"#/components/schemas/ReportRiskSection"},{"type":"null"}]},"spending":{"anyOf":[{"$ref":"#/components/schemas/SpendingResponse"},{"type":"null"}]},"defense":{"anyOf":[{"$ref":"#/components/schemas/DefenseResponse"},{"type":"null"}]},"controls":{"anyOf":[{"$ref":"#/components/schemas/ControlsResponse"},{"type":"null"}]},"debug":{"anyOf":[{"$ref":"#/components/schemas/DebugEnvelope"},{"type":"null"}],"description":"Present when ?debug=true"}},"type":"object","title":"ReportsAnalyticsResponse"},"ResidualRiskPreviewRequest":{"properties":{"variant_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant Uid"},"force_scheme":{"anyOf":[{"$ref":"#/components/schemas/TaxonomyScheme"},{"type":"null"}]}},"type":"object","title":"ResidualRiskPreviewRequest","description":"Read-only residual-risk calculation overrides."},"ResidualRiskResult":{"properties":{"context":{"$ref":"#/components/schemas/CalculationContext"},"attack_probability":{"additionalProperties":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"object","title":"Attack Probability"},"residual":{"additionalProperties":{"type":"number"},"type":"object","title":"Residual"},"coverage_by_mechanism":{"additionalProperties":{"type":"number"},"type":"object","title":"Coverage By Mechanism"},"iap_by_mechanism":{"additionalProperties":{"type":"number"},"type":"object","title":"Iap By Mechanism"},"warnings":{"items":{"$ref":"#/components/schemas/ResidualRiskWarning"},"type":"array","title":"Warnings"},"calculator_version":{"type":"string","title":"Calculator Version"},"inherent_risk":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Inherent Risk"}},"type":"object","required":["context","attack_probability","residual","coverage_by_mechanism","iap_by_mechanism","warnings","calculator_version"],"title":"ResidualRiskResult","description":"Unified output from legacy and v1 residual-risk calculators.\n\n``inherent_risk`` is populated in Stage 1b by both calculators from\nthe same canonical source and lets Stage 2's ``MigrationSnapshot``\ncarry the inputs both calculators need without a second graph read.\nIt stays ``None`` when the calculator has not been updated yet (the\nfield was introduced in Stage 1a of the v1-taxonomy unified\nmigration flow; consumers must treat ``None`` as \"not populated\nyet\" rather than \"no risk\")."},"ResidualRiskWarning":{"type":"string","enum":["zero_inherent_risk","zero_inherent_per_category"],"title":"ResidualRiskWarning","description":"Typed warnings produced by residual-risk calculators."},"ResolveInvitesRequest":{"properties":{"email":{"type":"string","title":"Email"},"user_uid":{"type":"string","title":"User Uid"}},"type":"object","required":["email","user_uid"],"title":"ResolveInvitesRequest","description":"Request body for resolving invites."},"ResolveOrphanRequest":{"properties":{"resolution":{"$ref":"#/components/schemas/OverrideResolution"}},"type":"object","required":["resolution"],"title":"ResolveOrphanRequest","description":"How to resolve an orphaned control.\n\nUses ``OverrideResolution`` enum values for backward compatibility:\n- **merge**: Clear the review flag — keep the implementation as-is.\n- **replace**: Archive the orphaned implementation entirely.\n- **keep**: Archive inherited copies, keep the direct implementation."},"ResolveOrphanResponse":{"properties":{"client_uid":{"type":"string","title":"Client Uid"},"control_uid":{"type":"string","title":"Control Uid"},"resolution":{"type":"string","title":"Resolution"},"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["client_uid","control_uid","resolution","success"],"title":"ResolveOrphanResponse","description":"Result of resolving an orphaned control."},"ResolvedPath":{"properties":{"technique_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Technique Id"},"technique_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Technique Name"},"hops":{"items":{"$ref":"#/components/schemas/Hop"},"type":"array","title":"Hops"},"confidence":{"type":"number","title":"Confidence"}},"type":"object","required":["hops","confidence"],"title":"ResolvedPath"},"RetentionConfig":{"properties":{"scope":{"type":"string","title":"Scope"},"hot_window_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hot Window Days"},"pii_retention_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pii Retention Days"},"effective_hot_window_days":{"type":"integer","title":"Effective Hot Window Days"},"effective_pii_retention_days":{"type":"integer","title":"Effective Pii Retention Days"},"floor_days":{"type":"integer","title":"Floor Days"}},"type":"object","required":["scope","effective_hot_window_days","effective_pii_retention_days","floor_days"],"title":"RetentionConfig","description":"A scope's retention policy: its stored overrides (null → unset) plus the\neffective windows the daily sweep actually applies (override or global, floored)."},"RetentionConfigUpdate":{"properties":{"hot_window_days":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Hot Window Days","description":"Days before events archive out of the default feed. Null → global default."},"pii_retention_days":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Pii Retention Days","description":"Days before login PII is purged. Null → global default."}},"type":"object","title":"RetentionConfigUpdate","description":"PUT body: a scope's per-tenant retention overrides. A full replace — a null\nfield clears that override (the global default then applies). Overrides can\nonly lengthen retention; the compliance floor still bounds the archive window."},"RetirableCustomAnchorRow":{"properties":{"anchor_uid":{"type":"string","title":"Anchor Uid"},"name":{"type":"string","title":"Name"},"client_uids":{"items":{"type":"string"},"type":"array","title":"Client Uids"},"client_count":{"type":"integer","title":"Client Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"first_implemented_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Implemented At"},"last_implemented_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Implemented At"}},"type":"object","required":["anchor_uid","name","client_uids","client_count","created_at"],"title":"RetirableCustomAnchorRow","description":"One row of the retirable report: a custom anchor with zero active\nimplementations (the admin's pending-decision population, D6).\n\n``client_uids`` is provenance — the active clients whose sets EVER\ncontained an implementation pointing at the anchor (any impl\nstatus); ``created_at`` is the anchor's creation; the\nfirst/last-implemented ages bound how long the anchor was in use."},"RetireCustomAnchorRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason","description":"Audit-trail reason recorded on the retire version (change_reason)"}},"additionalProperties":false,"type":"object","title":"RetireCustomAnchorRequest","description":"Body for the explicit platform-admin retire write (D6: explicit-only).\n\n``extra=\"forbid\"`` — unknown fields are a 422, never a silent ignore.\n``reason`` is the audit-trail ``change_reason`` recorded on the new\nhead version (the repository defaults it when omitted)."},"RetireCustomAnchorResponse":{"properties":{"anchor_uid":{"type":"string","title":"Anchor Uid"},"name":{"type":"string","title":"Name"},"version":{"type":"integer","title":"Version"},"discontinued_at":{"type":"string","format":"date-time","title":"Discontinued At"},"changed_by":{"type":"string","title":"Changed By"},"content_hash":{"type":"string","title":"Content Hash"},"chain_hash":{"type":"string","title":"Chain Hash"}},"type":"object","required":["anchor_uid","name","version","discontinued_at","changed_by","content_hash","chain_hash"],"title":"RetireCustomAnchorResponse","description":"Outcome of an explicit retire: the new head version's identity +\nthe tamper-evident audit chain.\n\nDeprecation, never deletion — the anchor stays active; the catalog\nvisibility filter (``discontinued_at IS NULL``) drops the retired\nhead from catalog universes; history stays readable via the\nSUPERSEDES chain."},"RiskBreakdown":{"properties":{"inherent_risk":{"type":"number","title":"Inherent Risk","default":0.0},"residual_risk":{"type":"number","title":"Residual Risk","default":0.0},"mitigated_risk":{"type":"number","title":"Mitigated Risk","default":0.0}},"type":"object","title":"RiskBreakdown","description":"Risk attribution for a technique or control category."},"RiskCategory":{"type":"string","enum":["compliance","financial","operational","reputational","strategic","technology"],"description":"Default risk categories — clients can add custom values","x-extensible":true},"RiskCategoryResponse":{"properties":{"category":{"type":"string","title":"Category","description":"Risk category name"},"inherent_risk":{"type":"number","title":"Inherent Risk","description":"Inherent risk value for this category"},"residual_risk":{"type":"number","title":"Residual Risk","description":"Residual risk after mitigation"},"mitigated_risk":{"type":"number","title":"Mitigated Risk","description":"Amount of risk mitigated"},"residual_risk_percent":{"type":"number","title":"Residual Risk Percent","description":"Residual risk as percentage (0-100)"},"mitigated_risk_percent":{"type":"number","title":"Mitigated Risk Percent","description":"Mitigated risk as percentage (0-100)"},"technique_count":{"type":"integer","title":"Technique Count","description":"Number of techniques affecting this category"},"control_count":{"type":"integer","title":"Control Count","description":"Number of controls protecting this category"}},"type":"object","required":["category","inherent_risk","residual_risk","mitigated_risk","residual_risk_percent","mitigated_risk_percent","technique_count","control_count"],"title":"RiskCategoryResponse","description":"Risk metrics for a single risk category."},"RiskControlLinkRequest":{"properties":{"effectiveness":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Effectiveness","default":0.5},"effectiveness_rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effectiveness Rationale"},"is_preventive":{"type":"boolean","title":"Is Preventive","default":false},"is_detective":{"type":"boolean","title":"Is Detective","default":false},"is_corrective":{"type":"boolean","title":"Is Corrective","default":false},"confidence":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Confidence"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"RiskControlLinkRequest","description":"Body for linking a mitigating control to a risk (``MITIGATED_BY``)."},"RiskControlView":{"properties":{"control_uid":{"type":"string","title":"Control Uid"},"effectiveness":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Effectiveness"},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rationale"},"is_preventive":{"type":"boolean","title":"Is Preventive","default":false},"is_detective":{"type":"boolean","title":"Is Detective","default":false},"is_corrective":{"type":"boolean","title":"Is Corrective","default":false}},"type":"object","required":["control_uid"],"title":"RiskControlView","description":"A control currently mitigating a risk (materialised ``MITIGATED_BY``)."},"RiskControlsResponse":{"properties":{"risk_uid":{"type":"string","title":"Risk Uid"},"controls":{"items":{"$ref":"#/components/schemas/RiskControlView"},"type":"array","title":"Controls"}},"type":"object","required":["risk_uid"],"title":"RiskControlsResponse","description":"A risk's current mitigating controls."},"RiskCreate":{"properties":{"title":{"type":"string","maxLength":255,"minLength":1,"title":"Title","description":"Risk title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Detailed risk description"},"category":{"items":{"$ref":"#/components/schemas/RiskCategory"},"type":"array","minItems":1,"title":"Category","description":"Risk categories"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department","description":"Risk department"},"likelihood":{"type":"integer","minimum":1.0,"title":"Likelihood","description":"Likelihood score"},"impact":{"type":"integer","minimum":1.0,"title":"Impact","description":"Impact score"},"owner":{"type":"string","title":"Owner","description":"Risk owner"},"review_frequency":{"$ref":"#/components/schemas/Frequency","description":"How often to review","default":"quarterly"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id","description":"Reference to external GRC system"},"framework_mappings":{"items":{"type":"string"},"type":"array","title":"Framework Mappings","description":"Framework control mappings"},"raci":{"additionalProperties":{"$ref":"#/components/schemas/RaciAssignment"},"type":"object","title":"Raci","description":"Initial per-step RACI assignment keyed by step name"},"custom_fields":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"}]},"type":"object","title":"Custom Fields","description":"Initial custom field values"},"treatment_strategy":{"anyOf":[{"$ref":"#/components/schemas/TreatmentStrategy"},{"type":"null"}]},"constraint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Constraint","description":"Risk constraint option"},"other_constraint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Other Constraint","description":"Free-text constraint when constraint is 'Other'"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By","description":"User who created the risk"},"parent_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Uid","description":"Create as a child of this risk (must belong to the same registry)"}},"type":"object","required":["title","category","likelihood","impact","owner"],"title":"RiskCreate","description":"Schema for creating a new risk in the registry."},"RiskExposureItem":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"color":{"type":"string","title":"Color"},"score_min":{"type":"integer","title":"Score Min"},"score_max":{"type":"integer","title":"Score Max"},"count":{"type":"integer","title":"Count"},"percentage":{"type":"number","title":"Percentage"}},"type":"object","required":["id","label","color","score_min","score_max","count","percentage"],"title":"RiskExposureItem"},"RiskHeatmapResponse":{"properties":{"cells":{"items":{"$ref":"#/components/schemas/HeatmapCell"},"type":"array","title":"Cells","description":"Non-empty grid cells, sorted by score descending"},"total_risks":{"type":"integer","title":"Total Risks","description":"Total risks across all cells (after filters)","default":0}},"type":"object","title":"RiskHeatmapResponse","description":"Aggregated risk heatmap data across the likelihood × impact grid."},"RiskImportResponse":{"properties":{"total_rows":{"type":"integer","title":"Total Rows","description":"Number of non-blank data rows processed"},"created":{"type":"integer","title":"Created"},"skipped":{"type":"integer","title":"Skipped"},"failed":{"type":"integer","title":"Failed"},"results":{"items":{"$ref":"#/components/schemas/ImportRowResult"},"type":"array","title":"Results","description":"Per-row outcomes in sheet order"}},"type":"object","required":["total_rows","created","skipped","failed"],"title":"RiskImportResponse","description":"Summary of a spreadsheet risk import."},"RiskItem":{"properties":{"name":{"type":"string","title":"Name"},"label":{"type":"string","title":"Label"},"value":{"type":"number","title":"Value"}},"type":"object","required":["name","label","value"],"title":"RiskItem"},"RiskParentUpdate":{"properties":{"parent_uid":{"type":"string","minLength":1,"title":"Parent Uid","description":"Uid of the new parent risk"}},"type":"object","required":["parent_uid"],"title":"RiskParentUpdate","description":"Schema for setting a risk's parent (PUT /risks/{uid}/parent)."},"RiskResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"category":{"items":{"$ref":"#/components/schemas/RiskCategory"},"type":"array","title":"Category"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department","description":"Risk department"},"likelihood":{"type":"integer","title":"Likelihood"},"impact":{"type":"integer","title":"Impact"},"inherent_score":{"type":"number","title":"Inherent Score","description":"Computed: likelihood * impact"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name","description":"Resolved display name for owner"},"review_frequency":{"$ref":"#/components/schemas/Frequency","description":"Review frequency","default":"quarterly"},"tag_uids":{"items":{"type":"string"},"type":"array","title":"Tag Uids"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"framework_mappings":{"items":{"type":"string"},"type":"array","title":"Framework Mappings"},"status":{"anyOf":[{"$ref":"#/components/schemas/RiskStatus"},{"type":"null"}],"description":"Current workflow step name"},"version":{"type":"integer","title":"Version","description":"Risk version number","default":1},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At","description":"Creation timestamp (ISO format)"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At","description":"Last update timestamp (ISO format)"},"client_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Uid"},"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name"},"workflow":{"anyOf":[{"$ref":"#/components/schemas/WorkflowState"},{"type":"null"}]},"residual_likelihood":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Residual Likelihood"},"residual_impact":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Residual Impact"},"residual_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Residual Score"},"treatment_strategy":{"anyOf":[{"$ref":"#/components/schemas/TreatmentStrategy"},{"type":"null"}]},"treatment_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Treatment Notes"},"last_reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Reviewed At"},"last_reviewed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Reviewed By"},"next_review_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Review Date"},"last_assessment_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Assessment Date"},"current_status_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Status Id"},"current_status_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Status Label"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"display_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Id","description":"Human-readable ID (e.g. RISK-001)"},"constraint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Constraint","description":"Risk constraint option"},"other_constraint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Other Constraint","description":"Free-text constraint when constraint is 'Other'"},"parent_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Uid","description":"Parent risk uid (null for top-level risks)"},"children_count":{"type":"integer","title":"Children Count","description":"Number of direct active child risks","default":0},"actions":{"items":{"type":"string"},"type":"array","title":"Actions"}},"type":"object","required":["uid","title","category","likelihood","impact","inherent_score"],"title":"RiskResponse","description":"Schema for risk response. When in client context, optional client/workflow fields are populated."},"RiskStatus":{"type":"string","enum":["accepted","assessed","closed","identified","mitigation_in_progress","under_review"],"description":"Default risk lifecycle statuses — workflow steps are configurable","x-extensible":true},"RiskSummaryResponse":{"properties":{"loss_probability":{"type":"number","title":"Loss Probability","description":"Attack success probability (0-100)"},"defense_success":{"type":"number","title":"Defense Success","description":"Defense success rate (0-100)"},"residual_risk":{"type":"number","title":"Residual Risk","description":"Remaining risk after controls"},"mitigated_risk":{"type":"number","title":"Mitigated Risk","description":"Risk reduced by controls"},"inherent_risk":{"type":"number","title":"Inherent Risk","description":"Total inherent risk before controls"},"total_spend":{"type":"number","title":"Total Spend","description":"Total security spend"},"spend_per_employee":{"type":"number","title":"Spend Per Employee","description":"Security spend per employee"},"percent_of_spend_it_budget":{"type":"number","title":"Percent Of Spend It Budget","description":"total_spend / client.total_it_spend * 100","default":0.0},"percent_of_spend_cyber":{"type":"number","title":"Percent Of Spend Cyber","description":"total_spend / client.cyber_fte_cost * 100","default":0.0}},"type":"object","required":["loss_probability","defense_success","residual_risk","mitigated_risk","inherent_risk","total_spend","spend_per_employee"],"title":"RiskSummaryResponse","description":"Overall risk summary metrics - matches phoenix-api's risk_summary."},"RiskTreeResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"category":{"items":{"$ref":"#/components/schemas/RiskCategory"},"type":"array","title":"Category"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department","description":"Risk department"},"likelihood":{"type":"integer","title":"Likelihood"},"impact":{"type":"integer","title":"Impact"},"inherent_score":{"type":"number","title":"Inherent Score","description":"Computed: likelihood * impact"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name","description":"Resolved display name for owner"},"review_frequency":{"$ref":"#/components/schemas/Frequency","description":"Review frequency","default":"quarterly"},"tag_uids":{"items":{"type":"string"},"type":"array","title":"Tag Uids"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"framework_mappings":{"items":{"type":"string"},"type":"array","title":"Framework Mappings"},"status":{"anyOf":[{"$ref":"#/components/schemas/RiskStatus"},{"type":"null"}],"description":"Current workflow step name"},"version":{"type":"integer","title":"Version","description":"Risk version number","default":1},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At","description":"Creation timestamp (ISO format)"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At","description":"Last update timestamp (ISO format)"},"client_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Uid"},"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name"},"workflow":{"anyOf":[{"$ref":"#/components/schemas/WorkflowState"},{"type":"null"}]},"residual_likelihood":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Residual Likelihood"},"residual_impact":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Residual Impact"},"residual_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Residual Score"},"treatment_strategy":{"anyOf":[{"$ref":"#/components/schemas/TreatmentStrategy"},{"type":"null"}]},"treatment_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Treatment Notes"},"last_reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Reviewed At"},"last_reviewed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Reviewed By"},"next_review_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Review Date"},"last_assessment_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Assessment Date"},"current_status_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Status Id"},"current_status_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Status Label"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"display_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Id","description":"Human-readable ID (e.g. RISK-001)"},"constraint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Constraint","description":"Risk constraint option"},"other_constraint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Other Constraint","description":"Free-text constraint when constraint is 'Other'"},"parent_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Uid","description":"Parent risk uid (null for top-level risks)"},"children_count":{"type":"integer","title":"Children Count","description":"Number of direct active child risks","default":0},"actions":{"items":{"type":"string"},"type":"array","title":"Actions"},"children":{"items":{"$ref":"#/components/schemas/RiskTreeResponse"},"type":"array","title":"Children","description":"Direct children in the filtered result; empty for leaves"}},"type":"object","required":["uid","title","category","likelihood","impact","inherent_score","children"],"title":"RiskTreeResponse","description":"Full risk fields plus nested matching visible risks for tree=true."},"RiskTrendWidget":{"properties":{"series":{"items":{"$ref":"#/components/schemas/TrendSeries"},"type":"array","title":"Series"}},"type":"object","title":"RiskTrendWidget"},"RiskUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Detailed risk description"},"category":{"anyOf":[{"items":{"$ref":"#/components/schemas/RiskCategory"},"type":"array"},{"type":"null"}],"title":"Category","description":"Risk categories"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department","description":"Risk department"},"likelihood":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Likelihood"},"impact":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Impact"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"review_frequency":{"anyOf":[{"$ref":"#/components/schemas/Frequency"},{"type":"null"}]},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"framework_mappings":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Framework Mappings"},"raci":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/RaciAssignment"},"type":"object"},{"type":"null"}],"title":"Raci"},"custom_fields":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"}]},"type":"object"},{"type":"null"}],"title":"Custom Fields"},"treatment_strategy":{"anyOf":[{"$ref":"#/components/schemas/TreatmentStrategy"},{"type":"null"}]},"treatment_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Treatment Notes"},"residual_likelihood":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Residual Likelihood"},"residual_impact":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Residual Impact"},"last_assessment_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Assessment Date"},"current_status_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Status Id"},"constraint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Constraint","description":"Risk constraint option"},"other_constraint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Other Constraint","description":"Free-text constraint when constraint is 'Other'"}},"type":"object","title":"RiskUpdate","description":"Schema for updating an existing risk."},"Role":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name","description":"Display name"},"description":{"type":"string","maxLength":500,"title":"Description","description":"Role description","default":""},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions","description":"List of permissions in resource:action format"},"slug":{"type":"string","title":"Slug","description":"Unique role identifier"},"system":{"type":"boolean","title":"System","description":"True if this is a built-in role","default":false},"owner_client_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Client Uid","description":"Client that owns this custom role. None for built-in roles."},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["name","slug"],"title":"Role","description":"A role definition with its permissions.\n\nRepresents a named set of permissions that can be assigned to users."},"RoleBinding":{"properties":{"scope":{"type":"string","title":"Scope","description":"Scope where role applies (client_uid or 'system')"},"inherit":{"type":"boolean","title":"Inherit","description":"If True, permission cascades to descendant clients in hierarchy","default":true},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"When this binding expires (null = permanent)"},"role_slug":{"type":"string","title":"Role Slug","description":"Slug of the assigned role"},"user_uid":{"type":"string","title":"User Uid","description":"UID of the user"},"granted_at":{"type":"string","format":"date-time","title":"Granted At"},"granted_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Granted By","description":"UID of user who granted this role"}},"type":"object","required":["scope","role_slug","user_uid"],"title":"RoleBinding","description":"Represents a user-to-role binding at a specific scope."},"RoleBindingCreate":{"properties":{"scope":{"type":"string","title":"Scope","description":"Scope where role applies (client_uid or 'system')"},"inherit":{"type":"boolean","title":"Inherit","description":"If True, permission cascades to descendant clients in hierarchy","default":true},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"When this binding expires (null = permanent)"},"role_slug":{"type":"string","title":"Role Slug","description":"Slug of the role to assign"}},"type":"object","required":["scope","role_slug"],"title":"RoleBindingCreate","description":"Schema for creating a role binding."},"RoleCreate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name","description":"Display name"},"description":{"type":"string","maxLength":500,"title":"Description","description":"Role description","default":""},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions","description":"List of permissions in resource:action format"},"slug":{"type":"string","maxLength":50,"minLength":1,"pattern":"^[a-z][a-z0-9_]*$","title":"Slug","description":"Unique role identifier (lowercase, underscores)"}},"type":"object","required":["name","slug"],"title":"RoleCreate","description":"Schema for creating a new role."},"RoleUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description"},"permissions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Permissions"}},"type":"object","title":"RoleUpdate","description":"Schema for updating a role (partial update)."},"RoleWithInvites":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"},"system":{"type":"boolean","title":"System"},"invites":{"items":{"$ref":"#/components/schemas/InviteResponse"},"type":"array","title":"Invites"}},"type":"object","required":["key","name","description","permissions","system"],"title":"RoleWithInvites","description":"Role with its pending invites, for client role listing."},"SankeyNodeDTO":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"inherent_risk":{"type":"number","title":"Inherent Risk","default":0.0},"mitigated_risk":{"type":"number","title":"Mitigated Risk","default":0.0},"residual_risk":{"type":"number","title":"Residual Risk","default":0.0},"cost":{"type":"number","title":"Cost","default":0.0},"allow_drilldown":{"type":"boolean","title":"Allow Drilldown","default":true}},"type":"object","required":["key","name","type"],"title":"SankeyNodeDTO","description":"Single node in the Sankey response - a data transfer object for visualization."},"SankeyRequest":{"properties":{"path":{"items":{"type":"string"},"type":"array","title":"Path","description":"Drill-down path"},"direction":{"type":"string","enum":["forward","reverse"],"title":"Direction","description":"Traversal direction. 'forward' drills risk category -> (control category | capability) -> control; 'reverse' (Control Flow) drills control -> (control category | capability) -> risk category.","default":"forward"}},"type":"object","title":"SankeyRequest","description":"Request body for Sankey drill-down traversal."},"SankeyResponse":{"properties":{"nodes":{"items":{"$ref":"#/components/schemas/SankeyNodeDTO"},"type":"array","title":"Nodes"},"path":{"items":{"$ref":"#/components/schemas/SankeyNodeDTO"},"type":"array","title":"Path"}},"type":"object","title":"SankeyResponse","description":"Response for Sankey traversal endpoint."},"ScaleOption":{"properties":{"value":{"type":"integer","minimum":1.0,"title":"Value","description":"Numeric scale value"},"label":{"type":"string","maxLength":100,"minLength":1,"title":"Label","description":"Display label"}},"type":"object","required":["value","label"],"title":"ScaleOption","description":"A single labeled level on a 1-N risk rating scale (impact or likelihood)."},"ScopeChainResponse":{"properties":{"chain":{"items":{"type":"string"},"type":"array","title":"Chain"}},"type":"object","required":["chain"],"title":"ScopeChainResponse","description":"A client then its ancestors along the legal hierarchy, nearest first."},"ScopeUserEntry":{"properties":{"user_uid":{"type":"string","title":"User Uid"},"roles":{"items":{"$ref":"#/components/schemas/_ScopeUserRole"},"type":"array","title":"Roles"}},"type":"object","required":["user_uid","roles"],"title":"ScopeUserEntry","description":"A user with their roles at a scope (including inherited)."},"ScopeUsersResponse":{"properties":{"users":{"items":{"$ref":"#/components/schemas/ScopeUserEntry"},"type":"array","title":"Users"}},"type":"object","required":["users"],"title":"ScopeUsersResponse","description":"Response for listing users at a scope."},"ScoreColor":{"type":"string","enum":["red","yellow","green"],"title":"ScoreColor","description":"Traffic-light color for defense score elements."},"ScoreElement":{"properties":{"color":{"$ref":"#/components/schemas/ScoreColor","default":"red"},"score":{"type":"integer","title":"Score","default":0},"comment":{"type":"string","title":"Comment","default":""}},"type":"object","title":"ScoreElement","description":"Individual score component with color coding."},"ScoreElements":{"properties":{"risk":{"$ref":"#/components/schemas/ScoreElement"},"effective_coverage":{"$ref":"#/components/schemas/ScoreElement"},"maturity":{"$ref":"#/components/schemas/ScoreElement"},"probability":{"$ref":"#/components/schemas/ScoreElement"},"efficacy":{"$ref":"#/components/schemas/ScoreElement"}},"type":"object","title":"ScoreElements","description":"Breakdown of score components for a technique."},"ScoreHistoryItem":{"properties":{"month":{"type":"string","title":"Month"},"avg_inherent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Inherent"},"avg_residual":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Residual"}},"type":"object","required":["month"],"title":"ScoreHistoryItem"},"SendAdminNotificationRequest":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"audience":{"$ref":"#/components/schemas/AdminAudience"},"person_uids":{"items":{"type":"string"},"type":"array","maxItems":500,"title":"Person Uids"},"client_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Uid"},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"body":{"type":"string","maxLength":5000,"minLength":1,"title":"Body","description":"Plain text; line breaks are kept."},"link":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Link","description":"Where the reader acts on it: a path in the web app, or an https address on crmtm.net."},"priority":{"$ref":"#/components/schemas/NotificationPriority","default":"NORMAL"}},"type":"object","required":["request_id","audience","title","body"],"title":"SendAdminNotificationRequest","description":"One hand-sent notification.\n\n``request_id`` is made by the form when it opens and sent with every try,\nso a double click or a retry sends once. ``person_uids`` is for the\n``people`` audience only, ``client_uid`` for ``client`` only."},"SendAdminNotificationResponse":{"properties":{"status":{"$ref":"#/components/schemas/AdminSendStatus"},"request_id":{"type":"string","format":"uuid","title":"Request Id"}},"type":"object","required":["status","request_id"],"title":"SendAdminNotificationResponse","description":"What came of a send: published (202), or already sent (200)."},"ServiceType":{"type":"string","enum":["MDR","MSSP","managed_soc","co_managed","IR_RETAINER","DRaaS","ransomware_response","FWaaS","professional_services","other"],"title":"ServiceType","description":"Managed/delivered service classification (rc2, 10 values)."},"SetDefaultControlSetRequest":{"properties":{"default_control_set":{"type":"string","title":"Default Control Set"}},"type":"object","required":["default_control_set"],"title":"SetDefaultControlSetRequest"},"SetDefaultControlSetResponse":{"properties":{"client_default_control_set":{"$ref":"#/components/schemas/DefaultControlSetRef"}},"type":"object","required":["client_default_control_set"],"title":"SetDefaultControlSetResponse"},"SetTaxonomyCoverageResponse":{"properties":{"client_uid":{"type":"string","title":"Client Uid"},"control_set_uid":{"type":"string","title":"Control Set Uid"},"rows":{"items":{"$ref":"#/components/schemas/SetTaxonomyCoverageRow"},"type":"array","title":"Rows"}},"additionalProperties":false,"type":"object","required":["client_uid","control_set_uid"],"title":"SetTaxonomyCoverageResponse","description":"Set-scoped taxonomy-coverage read for one control set.\n\nOne row per (implementation, anchor) implemented in the set —\ncomputed per request from the set-scoped ``COVERAGE_BY_CLIENT``\nshape (never persisted, so it cannot go stale). The at-risk\nrows' (``function_count == 0``) classification runs the lib core's\n``classify_control_set`` with the LIVE crosswalk (the gate's\nloader — one code path, loud 500 when the artifact is\nunavailable)."},"SetTaxonomyCoverageRow":{"properties":{"implementation_uid":{"type":"string","title":"Implementation Uid"},"anchor_uid":{"type":"string","title":"Anchor Uid"},"anchor_custom":{"type":"boolean","title":"Anchor Custom"},"catalog_visible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Catalog Visible"},"function_count":{"type":"integer","minimum":0.0,"title":"Function Count"},"function_ids":{"items":{"type":"string"},"type":"array","title":"Function Ids"},"coverage_status":{"anyOf":[{"$ref":"#/components/schemas/CoverageStatus"},{"type":"null"}]},"category_suggestions":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Category Suggestions"}},"additionalProperties":false,"type":"object","required":["implementation_uid","anchor_uid","anchor_custom","function_count"],"title":"SetTaxonomyCoverageRow","description":"One implemented control's taxonomy coverage within one set.\n\n``function_ids`` is the union of the anchor's live ``MAPPED_TO``\nset and the implementation's live ``DELIVERS_FUNCTION`` overrides\n(deprecated functions excluded); ``function_count`` is its size.\n``anchor_custom`` is the anchor HEAD's origin flag — custom\nanchors are the re-link-candidate population downstream of this\nread. ``catalog_visible`` is the anchor head's status under the\ncatalog visibility filter (INV-6/EC-5 — the re-link write's target\nleg: ``custom = false AND vetted = true AND discontinued_at IS\nNULL``; False on a headless anchor): downstream candidate builders\nmust never propose an invisible anchor as a link target (the write\n404s on one). ADDITIVE + defaulted — ``None`` means the server\npredates the field; consumers treat ``None`` as \"no visibility\nsignal\" (not \"visible\"), never as an exclusion either.\n\nDeterministic row order: the envelope's rows are ordered by\n``implementation_uid`` asc, then ``anchor_uid`` asc (the repo\nwalk's ``ORDER BY``) — the payload is byte-stable across calls.\n\nPayload discipline (M2.5): only AT-RISK rows (``function_count ==\n0``) carry the classification fields — ``coverage_status`` (the\nlib classifier's band: ``mapped`` / ``unmapped`` /\n``uncategorized``) and ``category_suggestions`` (the UNMAPPED band\nonly: per unresolved category, the closest canonical name at the\n422-parity cutoff, or ``None`` when no close match). Mapped rows\n(``function_count > 0``) carry the raw coverage and no\nclassification fields."},"SeverityLevelCreate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"min_score":{"type":"number","minimum":0.0,"title":"Min Score"},"max_score":{"type":"number","minimum":0.0,"title":"Max Score"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color","description":"Hex color #RGB or #RRGGBB"},"display_order":{"type":"integer","minimum":1.0,"title":"Display Order"}},"type":"object","required":["name","min_score","max_score","display_order"],"title":"SeverityLevelCreate"},"SeverityLevelResponse":{"properties":{"name":{"type":"string","title":"Name"},"min_score":{"type":"number","title":"Min Score"},"max_score":{"type":"number","title":"Max Score"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"display_order":{"type":"integer","title":"Display Order"}},"type":"object","required":["name","min_score","max_score","display_order"],"title":"SeverityLevelResponse"},"SeverityThresholdConfigCreate":{"properties":{"min_score":{"type":"number","minimum":0.0,"title":"Min Score","default":1.0},"max_score":{"type":"number","minimum":0.0,"title":"Max Score","default":25.0},"levels":{"items":{"$ref":"#/components/schemas/SeverityLevelCreate"},"type":"array","minItems":1,"title":"Levels"}},"type":"object","required":["levels"],"title":"SeverityThresholdConfigCreate"},"SeverityThresholdConfigResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"client_uid":{"type":"string","title":"Client Uid"},"min_score":{"type":"number","title":"Min Score"},"max_score":{"type":"number","title":"Max Score"},"levels":{"items":{"$ref":"#/components/schemas/SeverityLevelResponse"},"type":"array","title":"Levels"},"status":{"type":"string","title":"Status"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["uid","client_uid","min_score","max_score","levels","status"],"title":"SeverityThresholdConfigResponse"},"SeverityThresholdConfigUpdate":{"properties":{"min_score":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Min Score"},"max_score":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Max Score"},"levels":{"anyOf":[{"items":{"$ref":"#/components/schemas/SeverityLevelCreate"},"type":"array"},{"type":"null"}],"title":"Levels"}},"type":"object","title":"SeverityThresholdConfigUpdate"},"SlaBreakdown":{"properties":{"total":{"type":"integer","title":"Total"},"breakdown":{"items":{"$ref":"#/components/schemas/SlaItem"},"type":"array","title":"Breakdown"}},"type":"object","required":["total","breakdown"],"title":"SlaBreakdown"},"SlaItem":{"properties":{"status":{"type":"string","title":"Status"},"count":{"type":"integer","title":"Count"},"percentage":{"type":"number","title":"Percentage"}},"type":"object","required":["status","count","percentage"],"title":"SlaItem"},"SpendInvestmentsWidget":{"properties":{"total_spend":{"type":"number","title":"Total Spend","default":0.0},"categories":{"items":{"$ref":"#/components/schemas/SpendRiskCategory"},"type":"array","title":"Categories"}},"type":"object","title":"SpendInvestmentsWidget"},"SpendOverviewWidget":{"properties":{"total_spend":{"type":"number","title":"Total Spend","default":0.0},"total_it_spend":{"type":"integer","title":"Total It Spend","default":0}},"type":"object","title":"SpendOverviewWidget"},"SpendRiskCategory":{"properties":{"name":{"type":"string","title":"Name"},"inherent_risk":{"type":"number","title":"Inherent Risk","default":0.0},"residual_risk":{"type":"number","title":"Residual Risk","default":0.0}},"type":"object","required":["name"],"title":"SpendRiskCategory"},"SpendingByCategory":{"properties":{"category":{"type":"string","title":"Category"},"spend":{"type":"number","title":"Spend","default":0.0},"control_count":{"type":"integer","title":"Control Count","default":0},"percentage":{"type":"number","title":"Percentage","default":0.0}},"type":"object","required":["category"],"title":"SpendingByCategory"},"SpendingByRiskCategory":{"properties":{"risk_category":{"type":"string","title":"Risk Category"},"spend":{"type":"number","title":"Spend","default":0.0},"control_count":{"type":"integer","title":"Control Count","default":0}},"type":"object","required":["risk_category"],"title":"SpendingByRiskCategory"},"SpendingByTactic":{"properties":{"tactic_id":{"type":"string","title":"Tactic Id"},"tactic_name":{"type":"string","title":"Tactic Name"},"spend":{"type":"number","title":"Spend","default":0.0},"control_count":{"type":"integer","title":"Control Count","default":0}},"type":"object","required":["tactic_id","tactic_name"],"title":"SpendingByTactic"},"SpendingResponse":{"properties":{"summary":{"$ref":"#/components/schemas/SpendingSummary"},"by_category":{"items":{"$ref":"#/components/schemas/SpendingByCategory"},"type":"array","title":"By Category"},"by_tactic":{"items":{"$ref":"#/components/schemas/SpendingByTactic"},"type":"array","title":"By Tactic"},"by_risk_category":{"items":{"$ref":"#/components/schemas/SpendingByRiskCategory"},"type":"array","title":"By Risk Category"},"by_nist_standard":{"items":{"$ref":"#/components/schemas/NistSpendingItem"},"type":"array","title":"By Nist Standard"},"by_nist_csf_v2_standard":{"items":{"$ref":"#/components/schemas/NistSpendingItem"},"type":"array","title":"By Nist Csf V2 Standard"}},"type":"object","required":["summary"],"title":"SpendingResponse"},"SpendingSummary":{"properties":{"total_spend":{"type":"number","title":"Total Spend","default":0.0},"spend_per_employee":{"type":"number","title":"Spend Per Employee","default":0.0},"control_count":{"type":"integer","title":"Control Count","default":0}},"type":"object","title":"SpendingSummary"},"StandardComplianceDetail":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"coverage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coverage","description":"0.0-1.0 coverage ratio, None when standard has no statement tree","default":0.0},"avg_maturity":{"type":"number","title":"Avg Maturity","default":0.0},"total_cost":{"type":"number","title":"Total Cost","default":0.0},"category_count":{"type":"integer","title":"Category Count","description":"Total categories referenced by this standard","default":0},"covered_count":{"type":"integer","title":"Covered Count","description":"Categories with at least one control","default":0},"categories":{"items":{"$ref":"#/components/schemas/CategoryCompliance"},"type":"array","title":"Categories"}},"type":"object","required":["key","name","slug"],"title":"StandardComplianceDetail","description":"Detailed compliance for one standard, including per-category breakdown."},"StandardTreeResponse":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"coverage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coverage"},"maturity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Maturity"},"cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost"},"statements":{"items":{"$ref":"#/components/schemas/StatementComplianceNode"},"type":"array","title":"Statements"}},"type":"object","required":["key","name"],"title":"StandardTreeResponse","description":"Full compliance tree for a single standard — matches old ExportMTMStd."},"StatementAuditItem":{"properties":{"key":{"type":"integer","title":"Key"},"question":{"type":"string","title":"Question"},"checked":{"type":"boolean","title":"Checked","default":false}},"type":"object","required":["key","question"],"title":"StatementAuditItem","description":"A UCF audit Q&A entry attached to a compliance statement."},"StatementComplianceNode":{"properties":{"key":{"type":"string","title":"Key"},"sort_id":{"type":"string","title":"Sort Id"},"reference":{"type":"string","title":"Reference"},"short_str":{"type":"string","title":"Short Str"},"coverage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coverage"},"maturity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Maturity"},"cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost"},"controls":{"items":{"$ref":"#/components/schemas/StatementControl"},"type":"array","title":"Controls"},"audit_items":{"items":{"$ref":"#/components/schemas/StatementAuditItem"},"type":"array","title":"Audit Items"},"statements":{"items":{"$ref":"#/components/schemas/StatementComplianceNode"},"type":"array","title":"Statements"}},"type":"object","required":["key","sort_id","reference","short_str"],"title":"StatementComplianceNode","description":"A node in the compliance statement tree — recursive."},"StatementControl":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"maturity":{"type":"number","title":"Maturity"}},"type":"object","required":["uid","name","maturity"],"title":"StatementControl","description":"A control mapped to a compliance statement."},"StatusCreate":{"properties":{"label":{"type":"string","maxLength":50,"minLength":2,"title":"Label"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color","description":"Hex color #RGB or #RRGGBB"},"workflow_step_name":{"type":"string","title":"Workflow Step Name","description":"Must match a workflow step name"},"order":{"type":"integer","minimum":1.0,"title":"Order"}},"type":"object","required":["label","workflow_step_name","order"],"title":"StatusCreate","description":"Schema for creating a new status option."},"StatusOption":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier (UUID)"},"label":{"type":"string","maxLength":50,"minLength":2,"title":"Label","description":"Display label"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color","description":"Hex colour code"},"workflow_step_name":{"type":"string","title":"Workflow Step Name","description":"Name of the workflow step this status belongs to"},"order":{"type":"integer","minimum":1.0,"title":"Order","description":"Display order within the step (1 = first)"}},"type":"object","required":["id","label","workflow_step_name","order"],"title":"StatusOption","description":"A client-configurable status label belonging to one workflow step."},"StatusResponse":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"workflow_step_name":{"type":"string","title":"Workflow Step Name"},"order":{"type":"integer","title":"Order"}},"type":"object","required":["id","label","workflow_step_name","order"],"title":"StatusResponse","description":"Schema for a status option in API responses."},"StatusUpdate":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":50,"minLength":2},{"type":"null"}],"title":"Label"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color","description":"Hex color #RGB or #RRGGBB"},"order":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Order"}},"type":"object","title":"StatusUpdate","description":"Schema for updating an existing status option. workflow_step_name is immutable."},"StockImpactWidget":{"properties":{"categories":{"items":{"$ref":"#/components/schemas/ValuationCategoryItem"},"type":"array","title":"Categories"},"stock_price_loss_max":{"type":"number","title":"Stock Price Loss Max","default":0.0},"stock_price_recovery_max":{"type":"number","title":"Stock Price Recovery Max","default":0.0}},"type":"object","title":"StockImpactWidget"},"SubmitForApprovalRequest":{"properties":{"approver_uid":{"type":"string","title":"Approver Uid","description":"User UID of the designated approver"}},"type":"object","required":["approver_uid"],"title":"SubmitForApprovalRequest"},"SubscriptionTierCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"Tier name"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities","description":"Capability names to grant (must match CapabilityNode.name)"}},"type":"object","required":["name"],"title":"SubscriptionTierCreate","description":"Create a tier and link it to capabilities via :GRANTS."},"SubscriptionTierResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities"},"status":{"type":"string","title":"Status","default":"active"},"client_count":{"type":"integer","title":"Client Count","default":0},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["uid","name"],"title":"SubscriptionTierResponse","description":"Tier with its granted capabilities resolved from :GRANTS edges."},"SubscriptionTierUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"capabilities":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Capabilities"}},"type":"object","title":"SubscriptionTierUpdate","description":"Update tier name and/or granted capabilities."},"SuggestedFunctionRow":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"recovers":{"items":{"type":"string"},"type":"array","title":"Recovers"}},"type":"object","required":["uid","name"],"title":"SuggestedFunctionRow","description":"One greedy-cover pick (advisory data, never a write input in v1)."},"TacticDefense":{"properties":{"tactic_id":{"type":"string","title":"Tactic Id"},"name":{"type":"string","title":"Name"},"technique_ids":{"items":{"type":"string"},"type":"array","title":"Technique Ids"},"technique_count":{"type":"integer","title":"Technique Count","default":0},"scores_avg":{"type":"number","title":"Scores Avg","default":0.0},"grade":{"$ref":"#/components/schemas/Grade","default":"F"},"impactful_attack_probability_avg":{"type":"number","title":"Impactful Attack Probability Avg","default":100.0},"costs_sum":{"type":"number","title":"Costs Sum","default":0.0}},"type":"object","required":["tactic_id","name"],"title":"TacticDefense","description":"Defense metrics aggregated at the tactic level.\n\nMatches phoenix-api's PCTactic structure."},"TagCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":2,"title":"Name"},"color":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Color"},"status":{"type":"string","title":"Status","default":"active"}},"type":"object","required":["name"],"title":"TagCreate"},"TagImplementationResponse":{"properties":{"impl_uid":{"type":"string","title":"Impl Uid"},"tag_uids":{"items":{"type":"string"},"type":"array","title":"Tag Uids"}},"type":"object","required":["impl_uid","tag_uids"],"title":"TagImplementationResponse"},"TagResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"client_uid":{"type":"string","title":"Client Uid","default":""},"status":{"type":"string","title":"Status","default":"active"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions"}},"type":"object","required":["uid","name"],"title":"TagResponse"},"TagRiskResponse":{"properties":{"risk_uid":{"type":"string","title":"Risk Uid"},"tag_uids":{"items":{"type":"string"},"type":"array","title":"Tag Uids"}},"type":"object","required":["risk_uid","tag_uids"],"title":"TagRiskResponse"},"TagUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":2},{"type":"null"}],"title":"Name"},"color":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Color"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","title":"TagUpdate"},"TaxonomyCoverageResponse":{"properties":{"client_uid":{"type":"string","title":"Client Uid"},"control_set_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Control Set Uid"},"total_controls":{"type":"integer","minimum":0.0,"title":"Total Controls"},"mapped_controls":{"type":"integer","minimum":0.0,"title":"Mapped Controls"},"mapped_ratio":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Mapped Ratio"},"unmapped_control_uids":{"items":{"type":"string"},"type":"array","title":"Unmapped Control Uids"}},"type":"object","required":["client_uid","total_controls","mapped_controls","mapped_ratio"],"title":"TaxonomyCoverageResponse","description":"On-demand flip-gate coverage for one client.\n\nComputed per request from ``COVERAGE_BY_CLIENT`` — never persisted,\nso it cannot go stale. ``mapped_ratio`` is derived here so the FE\nand the flip-gate check share one rounding rule."},"TaxonomyCustomizationSummaryResponse":{"properties":{"total_implementations":{"type":"integer","minimum":0.0,"title":"Total Implementations"},"customized_implementations":{"type":"integer","minimum":0.0,"title":"Customized Implementations"},"affected_clients":{"type":"integer","minimum":0.0,"title":"Affected Clients"},"clients":{"items":{"$ref":"#/components/schemas/ClientCustomizationRow"},"type":"array","title":"Clients"}},"type":"object","required":["total_implementations","customized_implementations","affected_clients"],"title":"TaxonomyCustomizationSummaryResponse","description":"Affected-population sizing for per-implementation customization.\n\nImplementations whose ``control_categories`` diverge from the\ncatalog head's — the tenants that cannot flip until they carry\nper-implementation override edges. Computed per request from\n``CUSTOMIZATION_SUMMARY`` — never persisted."},"TaxonomyFlipBlockerTriageResponse":{"properties":{"client_uid":{"type":"string","title":"Client Uid"},"active_fn_mechanism_mapping_set_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Active Fn Mechanism Mapping Set Uid","description":"The fn mechanism mapping set the vocabulary leg read (client variant, else platform default). Never null on a successful response: a missing set fails loud 500."},"blockers":{"items":{"$ref":"#/components/schemas/BlockerTriageControlRow"},"type":"array","title":"Blockers"},"case_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Case Counts"}},"type":"object","required":["client_uid"],"title":"TaxonomyFlipBlockerTriageResponse","description":"The blocker triage for one client (spec section 6.3).\n\n``blockers`` carries one row per BLOCKING control (the parity leg's\noffenders), sorted by control uid; a client with no blocking\ncontrols yields an empty list (200: nothing to diagnose, distinct\nfrom the 404 no-implemented-controls state). ``case_counts`` is the\ncohort breakdown by dominant case. Computed per request, never\npersisted; v1 writes nothing, ever."},"TaxonomyFlipGateResponse":{"properties":{"client_uid":{"type":"string","title":"Client Uid"},"control_set_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Control Set Uid"},"passes":{"type":"boolean","title":"Passes"},"parity_passes":{"type":"boolean","title":"Parity Passes"},"coverage_passes":{"type":"boolean","title":"Coverage Passes"},"effective_values_pass":{"type":"boolean","title":"Effective Values Pass","default":true},"coverage_ratio":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Coverage Ratio"},"min_coverage_ratio":{"type":"number","maximum":1.0,"exclusiveMinimum":0.0,"title":"Min Coverage Ratio"},"blocking_control_uids":{"items":{"type":"string"},"type":"array","title":"Blocking Control Uids"},"unmapped_control_uids":{"items":{"type":"string"},"type":"array","title":"Unmapped Control Uids"},"customized_control_uids":{"items":{"type":"string"},"type":"array","title":"Customized Control Uids"},"effective_value_divergent_control_uids":{"items":{"type":"string"},"type":"array","title":"Effective Value Divergent Control Uids"},"coverage_classifications":{"items":{"$ref":"#/components/schemas/ControlClassification"},"type":"array","title":"Coverage Classifications"},"evaluated_control_sets":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Evaluated Control Sets"},"undecided_custom":{"$ref":"#/components/schemas/UndecidedCustomAdvisory","default":{"undecided_custom_count":0,"decided_custom_count":0,"total_custom_count":0,"per_set_offenders":{}}},"active_mapping_resolution_set_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Active Mapping Resolution Set Uid","description":"The singleton pointer's active mapping set. Null means the PLATFORM has no active set: every MAPPED_TO edge is hidden by the scope predicate and coverage reads 0.0 store-wide. Fix via the first-activation bootstrap, not per-control mapping work."}},"type":"object","required":["client_uid","passes","parity_passes","coverage_passes","coverage_ratio","min_coverage_ratio"],"title":"TaxonomyFlipGateResponse","description":"The full flip decision for one client (coverage + shadow parity\n+ capability-assessment effective values).\n\n``passes`` is the machine verdict under the default\nthresholds (zero blocking divergences AND coverage ≥\n``min_coverage_ratio`` AND zero effective-value divergences); the\ncomponent fields explain which leg failed and by how much. Computed\nper request — never persisted.\n\n``coverage_classifications`` is the per-control coverage\nEXPLANATION for the graph-unmapped population. Catalog controls emit\nPRODUCT_UNMAPPED; custom controls emit the crosswalk classification,\nshared lib classifier (``mtm_lib.taxonomy.ControlClassification``,\nre-exported — single definition, no drift). It replaces the\nclient-side re-derivation in the frontend worklist. Explanation,\nnever decision: the verdict fields above never read it. Additive\nfield — defaults empty, so pre-bump responses keep the old shape.\n\n``evaluated_control_sets`` — present on client-wide evaluations\n(all active sets, sorted); null on per-set evaluations. Additive\nfield — defaults null, so pre-change responses keep their shape.\n\n``undecided_custom`` — the per-custom-anchor catalog-status\nadvisory (flywheel item 4, D5 — loud = undecided, quiet =\ndecided). A nudge, not a leg — the gate never 409s on it.\nAdditive field — defaults to zeros, so pre-change responses keep\ntheir shape."},"TaxonomyFunctionResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"capability_id":{"type":"string","title":"Capability Id"},"capability_name":{"type":"string","title":"Capability Name"},"domain_id":{"type":"string","title":"Domain Id"},"domain_name":{"type":"string","title":"Domain Name"},"taxonomy_version":{"type":"string","title":"Taxonomy Version"},"deprecated":{"type":"boolean","title":"Deprecated","default":false},"deprecated_in":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deprecated In"},"replaced_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replaced By"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions"}},"type":"object","required":["uid","name","capability_id","capability_name","domain_id","domain_name","taxonomy_version"],"title":"TaxonomyFunctionResponse"},"TaxonomyParityResponse":{"properties":{"client_uid":{"type":"string","title":"Client Uid"},"control_set_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Control Set Uid"},"passes":{"type":"boolean","title":"Passes"},"controls":{"items":{"$ref":"#/components/schemas/ControlParityResponse"},"type":"array","title":"Controls"},"customized_control_uids":{"items":{"type":"string"},"type":"array","title":"Customized Control Uids"},"blocking_control_uids":{"items":{"type":"string"},"type":"array","title":"Blocking Control Uids"},"legacy_technique_ids":{"items":{"type":"string"},"type":"array","title":"Legacy Technique Ids"},"taxonomy_technique_ids":{"items":{"type":"string"},"type":"array","title":"Taxonomy Technique Ids"},"added":{"items":{"type":"string"},"type":"array","title":"Added"},"removed":{"items":{"type":"string"},"type":"array","title":"Removed"}},"type":"object","required":["client_uid","passes"],"title":"TaxonomyParityResponse","description":"Shadow-parity report for one client (flip-gate input).\n\nComputed per request from ``PARITY_INPUTS_BY_CLIENT`` — never\npersisted. ``passes`` means no blocking divergence among\nnon-customized controls; the full flip gate also requires coverage\n% and threshold sign-off."},"TaxonomyScheme":{"type":"string","enum":["legacy_categories","taxonomy_v1"],"title":"TaxonomyScheme","description":"Which classification vocabulary a client tenant reads (transition flag).\n\nLives on ``ClientNode.taxonomy_scheme``; defaults to\n``legacy_categories`` — the pydantic default IS the backfill for\nexisting clients (absent property hydrates through the default). Any\nCypher-side filter must ``coalesce(cn.taxonomy_scheme,\n'legacy_categories')`` (the ``vetted`` legacy-null lesson)."},"TaxonomySchemeUpdate":{"properties":{"taxonomy_scheme":{"$ref":"#/components/schemas/TaxonomyScheme"},"sales_cs_acknowledgment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Cs Acknowledgment"},"expected_migration_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Migration Revision"}},"type":"object","required":["taxonomy_scheme"],"title":"TaxonomySchemeUpdate","description":"Platform-only request body for ``PATCH /clients/{uid}/taxonomy-scheme``.\n\nFlipping ``taxonomy_scheme`` switches which classification vocabulary\nthe tenant's read surfaces use (92 legacy categories vs the rc2\ntaxonomy). The endpoint is gated on system-scope ``client:admin`` and\nwrites a new ClientNode version only when the value actually differs\n(no-op flips return 200 without burning a chain write).\n\nThe enum-typed field IS the strictness: Pydantic rejects any string\noutside ``TaxonomyScheme``'s values, the same wire-contract rigor\n``StrictBool`` gives ``PredictionsBoundedUpdate``."},"TaxonomyVariantCreate":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"display_name":{"type":"string","title":"Display Name","default":""},"mode":{"$ref":"#/components/schemas/VariantMode","default":"B"},"fn_mechanism_mapping_set_uid":{"type":"string","title":"Fn Mechanism Mapping Set Uid","default":""},"rc_mechanism_mapping_set_uid":{"type":"string","title":"Rc Mechanism Mapping Set Uid","default":""},"rollup":{"$ref":"#/components/schemas/VariantRollup","default":"GEOMETRIC"},"per_function_confidence":{"type":"boolean","title":"Per Function Confidence","default":false},"lambda_policy":{"$ref":"#/components/schemas/LambdaPolicy","default":"FIXED"},"lambda_value":{"type":"number","title":"Lambda Value","default":0.4},"description":{"type":"string","title":"Description","default":""}},"additionalProperties":false,"type":"object","required":["uid","name"],"title":"TaxonomyVariantCreate","description":"Create one immutable calculator-knob configuration."},"TaxonomyVariantResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"display_name":{"type":"string","title":"Display Name","default":""},"mode":{"$ref":"#/components/schemas/VariantMode","default":"B"},"fn_mechanism_mapping_set_uid":{"type":"string","title":"Fn Mechanism Mapping Set Uid","default":""},"rc_mechanism_mapping_set_uid":{"type":"string","title":"Rc Mechanism Mapping Set Uid","default":""},"rollup":{"$ref":"#/components/schemas/VariantRollup","default":"GEOMETRIC"},"per_function_confidence":{"type":"boolean","title":"Per Function Confidence","default":false},"lambda_policy":{"$ref":"#/components/schemas/LambdaPolicy","default":"FIXED"},"lambda_value":{"type":"number","title":"Lambda Value","default":0.4},"description":{"type":"string","title":"Description","default":""},"mutation_hash":{"type":"string","title":"Mutation Hash"},"is_platform_default":{"type":"boolean","title":"Is Platform Default","default":false}},"additionalProperties":false,"type":"object","required":["uid","name","mutation_hash"],"title":"TaxonomyVariantResponse","description":"Complete variant view including provenance and default status."},"TaxonomyVariantUpdate":{"properties":{"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"mode":{"anyOf":[{"$ref":"#/components/schemas/VariantMode"},{"type":"null"}]},"fn_mechanism_mapping_set_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fn Mechanism Mapping Set Uid"},"rc_mechanism_mapping_set_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rc Mechanism Mapping Set Uid"},"rollup":{"anyOf":[{"$ref":"#/components/schemas/VariantRollup"},{"type":"null"}]},"per_function_confidence":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Per Function Confidence"},"lambda_policy":{"anyOf":[{"$ref":"#/components/schemas/LambdaPolicy"},{"type":"null"}]},"lambda_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lambda Value"}},"additionalProperties":false,"type":"object","title":"TaxonomyVariantUpdate","description":"Variant patch contract; supplied knob changes are rejected with 409."},"TechniqueDefense":{"properties":{"mitre_id":{"type":"string","title":"Mitre Id"},"name":{"type":"string","title":"Name"},"control_count":{"type":"integer","title":"Control Count","default":0},"control_uids":{"items":{"type":"string"},"type":"array","title":"Control Uids"},"controls":{"items":{"$ref":"#/components/schemas/ControlRef"},"type":"array","title":"Controls"},"effective_coverage":{"type":"number","title":"Effective Coverage","default":0.0},"maturities_avg":{"type":"number","title":"Maturities Avg","default":0.0},"coverages_avg":{"type":"number","title":"Coverages Avg","default":0.0},"efficacies_avg":{"type":"number","title":"Efficacies Avg","default":0.0},"costs_sum":{"type":"number","title":"Costs Sum","default":0.0},"score":{"type":"integer","title":"Score","default":-10},"score_elements":{"$ref":"#/components/schemas/ScoreElements"},"grade":{"$ref":"#/components/schemas/Grade","default":"F"},"impactful_attack_probability":{"type":"number","title":"Impactful Attack Probability","default":100.0},"defense_success_rate":{"type":"number","title":"Defense Success Rate","default":0.0},"risk_breakdown":{"additionalProperties":{"$ref":"#/components/schemas/RiskBreakdown"},"type":"object","title":"Risk Breakdown"},"risk_totals":{"$ref":"#/components/schemas/RiskBreakdown"}},"type":"object","required":["mitre_id","name"],"title":"TechniqueDefense","description":"Defense metrics for a single MITRE ATT&CK technique.\n\nMatches phoenix-api's PCTechnique structure."},"TechniqueEntry":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"technique_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Technique Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["uid"],"title":"TechniqueEntry","description":"A technique linked to a category."},"TechniqueTriageRow":{"properties":{"mitre_id":{"type":"string","title":"Mitre Id"},"evidence":{"type":"string","title":"Evidence"},"vocab_function_uids":{"items":{"type":"string"},"type":"array","title":"Vocab Function Uids"},"sibling_covered":{"type":"boolean","title":"Sibling Covered","default":false},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"}},"type":"object","required":["mitre_id","evidence"],"title":"TechniqueTriageRow","description":"One lost technique's classification (spec section 4).\n\n``evidence`` is one of ``recoverable`` / ``vocabulary_gap`` /\n``over_grant``. ``vocab_function_uids`` is the case 1 evidence (the\nnon-product functions whose active-set mechanisms cover the\ntechnique). ``sibling_covered`` is the sibling evidence flag;\n``categories`` is the I5 category grant provenance."},"TemplateAssignment":{"properties":{"template_uid":{"type":"string","title":"Template Uid"},"template_alias":{"type":"string","title":"Template Alias"},"template_name":{"type":"string","title":"Template Name"},"is_default":{"type":"boolean","title":"Is Default","default":false}},"type":"object","required":["template_uid","template_alias","template_name"],"title":"TemplateAssignment"},"TemplateVariable":{"properties":{"name":{"type":"string","minLength":1,"title":"Name"},"isRequired":{"type":"boolean","title":"Isrequired","default":false}},"type":"object","required":["name"],"title":"TemplateVariable"},"ThreatExposureTechnique":{"properties":{"name":{"type":"string","title":"Name"},"grade":{"type":"string","title":"Grade","default":"F"},"impactful_attack_probability":{"type":"number","title":"Impactful Attack Probability","default":100.0}},"type":"object","required":["name"],"title":"ThreatExposureTechnique"},"ThreatExposureWidget":{"properties":{"techniques":{"items":{"$ref":"#/components/schemas/ThreatExposureTechnique"},"type":"array","title":"Techniques"}},"type":"object","title":"ThreatExposureWidget"},"ThreatIntelControl":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"vendor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Name"},"maturity":{"type":"number","title":"Maturity","default":0.0},"cav_managed":{"type":"boolean","title":"Cav Managed","default":false},"cav_source_tools":{"items":{"type":"string"},"type":"array","title":"Cav Source Tools"}},"type":"object","required":["uid","name"],"title":"ThreatIntelControl"},"ThreatIntelCweOption":{"properties":{"cwe_id":{"type":"string","title":"Cwe Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"technique_count":{"type":"integer","title":"Technique Count"},"cve_count":{"type":"integer","title":"Cve Count"}},"type":"object","required":["cwe_id","technique_count","cve_count"],"title":"ThreatIntelCweOption","description":"One CWE option in the /threat-intel CWE autocomplete inventory."},"ThreatIntelResponse":{"properties":{"grade":{"type":"string","title":"Grade"},"impactful_attack_probability":{"type":"number","title":"Impactful Attack Probability"},"techniques":{"items":{"$ref":"#/components/schemas/ThreatIntelTechnique"},"type":"array","title":"Techniques"},"search":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"},"paths":{"items":{"$ref":"#/components/schemas/ResolvedPath"},"type":"array","title":"Paths"},"low_confidence_paths_count":{"type":"integer","title":"Low Confidence Paths Count","description":"Count of resolved paths dropped from `paths` for being below the minimum confidence threshold. Provides UI signal for the existence of weaker inferences without inflating the response payload.","default":0},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"},"debug":{"anyOf":[{"$ref":"#/components/schemas/DebugEnvelope"},{"type":"null"}],"description":"Present when ?debug=true"}},"type":"object","required":["grade","impactful_attack_probability","techniques"],"title":"ThreatIntelResponse"},"ThreatIntelTechnique":{"properties":{"mitre_id":{"type":"string","title":"Mitre Id"},"name":{"type":"string","title":"Name"},"grade":{"type":"string","title":"Grade"},"impactful_attack_probability":{"type":"number","title":"Impactful Attack Probability"},"score":{"type":"integer","title":"Score"},"maturity":{"type":"number","title":"Maturity"},"score_elements":{"$ref":"#/components/schemas/ScoreElements"},"client_controls":{"items":{"$ref":"#/components/schemas/ThreatIntelControl"},"type":"array","title":"Client Controls"},"client_controls_count":{"type":"integer","title":"Client Controls Count"}},"type":"object","required":["mitre_id","name","grade","impactful_attack_probability","score","maturity","score_elements","client_controls","client_controls_count"],"title":"ThreatIntelTechnique"},"TierAssignmentResult":{"properties":{"assigned":{"type":"integer","title":"Assigned","default":0},"revoked":{"type":"integer","title":"Revoked","default":0},"moved":{"type":"integer","title":"Moved","default":0},"fallback":{"items":{"type":"string"},"type":"array","title":"Fallback","description":"Client UIDs from `revoke` that were on no other tier and moved to the default tier"},"kept":{"items":{"type":"string"},"type":"array","title":"Kept","description":"Client UIDs from `revoke` that kept this tier because it is their last tier and the default"},"unmatched":{"items":{"type":"string"},"type":"array","title":"Unmatched","description":"Client UIDs that did not apply: unknown or inactive client or tier, or (for `revoke`) a client not on this tier"}},"type":"object","title":"TierAssignmentResult","description":"Result of a tier-client assignment operation."},"TierClientAssignment":{"properties":{"assign":{"items":{"type":"string"},"type":"array","maxItems":1000,"title":"Assign","description":"Client UIDs to set to this tier (same as `move`)"},"revoke":{"items":{"type":"string"},"type":"array","maxItems":1000,"title":"Revoke","description":"Client UIDs to remove from this tier. A client whose last tier this is moves to the platform default tier; if this tier is the default, the client keeps it"},"move":{"items":{"type":"string"},"type":"array","maxItems":1000,"title":"Move","description":"Client UIDs to move to this tier: removed from every other tier and assigned to this one in a single transaction"}},"type":"object","title":"TierClientAssignment","description":"For PATCH /subscription-tiers/{uid}/clients.\n\nA client always has exactly one tier. ``assign`` and ``move`` both set this\ntier and remove every other. ``revoke`` falls back to the platform default\ntier instead of leaving a client without one."},"TierClientMembership":{"type":"string","enum":["assigned","unassigned"],"title":"TierClientMembership","description":"Which side of tier membership GET /subscription-tiers/{uid}/clients lists."},"TierClientResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"start_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"},"assigned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Assigned At"},"current_tiers":{"items":{"$ref":"#/components/schemas/TierRef"},"type":"array","title":"Current Tiers","description":"Active tiers the client is on (normally exactly one)"}},"type":"object","required":["uid","name"],"title":"TierClientResponse","description":"A client assigned to a tier."},"TierRef":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["uid","name"],"title":"TierRef","description":"A tier a client is currently on."},"TimeToCompleteResponse":{"properties":{"avg_days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Days"},"trend_days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Trend Days"},"weekly_trend":{"items":{"$ref":"#/components/schemas/TimeToCompleteWeek"},"type":"array","title":"Weekly Trend"}},"type":"object","title":"TimeToCompleteResponse"},"TimeToCompleteWeek":{"properties":{"week":{"type":"string","title":"Week"},"avg_days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Days"}},"type":"object","required":["week"],"title":"TimeToCompleteWeek"},"TokenApprovalRequest":{"properties":{"comment":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Comment","description":"Optional approval comment"},"token":{"type":"string","title":"Token","description":"Approval token from email"}},"type":"object","required":["token"],"title":"TokenApprovalRequest","description":"Approval via email token — extends ApprovalRequest with token."},"TokenRejectionRequest":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Reason","description":"Reason for rejection"},"return_to_step":{"type":"null","title":"Return To Step"},"token":{"type":"string","title":"Token","description":"Rejection token from email"}},"type":"object","required":["reason","token"],"title":"TokenRejectionRequest","description":"Rejection via email token — extends RejectionRequest with token."},"TokenValidationResponse":{"properties":{"valid":{"type":"boolean","title":"Valid"},"action":{"anyOf":[{"$ref":"#/components/schemas/ApprovalAction"},{"type":"null"}]},"risk_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Risk Title"},"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name"},"step_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step Name"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["valid"],"title":"TokenValidationResponse","description":"Response when validating a token (for confirmation page)."},"TopRiskWidget":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RiskItem"},"type":"array","title":"Items"},"total":{"type":"number","title":"Total","default":0.0}},"type":"object","title":"TopRiskWidget"},"TransitionConfig":{"properties":{"next_step":{"type":"integer","minimum":0.0,"title":"Next Step","description":"Step index to transition to"},"notify_roles":{"items":{"$ref":"#/components/schemas/RaciRole"},"type":"array","title":"Notify Roles","description":"RACI roles to notify on this transition"},"require_reason":{"type":"boolean","title":"Require Reason","description":"Require justification for this transition","default":false},"clear_approvals":{"type":"boolean","title":"Clear Approvals","description":"Clear approval count on transition (for rejections)","default":false}},"type":"object","required":["next_step"],"title":"TransitionConfig","description":"Configuration for a workflow step transition."},"TreatmentStrategy":{"type":"string","enum":["mitigate","accept","transfer","avoid"],"title":"TreatmentStrategy","description":"Risk treatment strategy in the risk registry."},"TrendPoint":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"value":{"type":"number","title":"Value"}},"type":"object","required":["timestamp","value"],"title":"TrendPoint"},"TrendSeries":{"properties":{"label":{"type":"string","title":"Label"},"data":{"items":{"$ref":"#/components/schemas/TrendPoint"},"type":"array","title":"Data"}},"type":"object","required":["label"],"title":"TrendSeries"},"TrustGroupCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"TrustGroupCreate","description":"Schema for creating a trust group."},"TrustGroupDashboardResponse":{"properties":{"members":{"additionalProperties":{"$ref":"#/components/schemas/TrustGroupMemberDashboard"},"type":"object","title":"Members"}},"type":"object","title":"TrustGroupDashboardResponse","description":"Per-client dashboard for trust group members.\n\nKeyed by client UID — each member gets a bundle of computed\nscalars.  Frontend handles presentation and any cross-member\naggregation it wants."},"TrustGroupMember":{"properties":{"client_uid":{"type":"string","title":"Client Uid"},"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name"},"joined_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Joined At"},"added_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Added By"}},"type":"object","required":["client_uid"],"title":"TrustGroupMember","description":"A single member within a trust group."},"TrustGroupMemberDashboard":{"properties":{"client_name":{"type":"string","title":"Client Name"},"inherent_risk":{"type":"number","title":"Inherent Risk","default":0.0},"residual_risk":{"type":"number","title":"Residual Risk","default":0.0},"spending":{"type":"number","title":"Spending","default":0.0},"maturity":{"type":"number","title":"Maturity","default":0.0},"grade":{"type":"string","title":"Grade","default":"F"},"defense_score":{"type":"number","title":"Defense Score","default":0.0}},"type":"object","required":["client_name"],"title":"TrustGroupMemberDashboard","description":"Per-client scalar metrics for trust group dashboard cards."},"TrustGroupResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","title":"Status","default":"active"},"member_count":{"type":"integer","title":"Member Count","default":0},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["uid","name"],"title":"TrustGroupResponse","description":"Schema for trust group response."},"TrustGroupUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"TrustGroupUpdate","description":"Schema for updating a trust group."},"TypeSweepSummary":{"properties":{"entity_type":{"type":"string","title":"Entity Type"},"checked":{"type":"integer","title":"Checked"},"valid":{"type":"integer","title":"Valid"},"unhashed":{"type":"integer","title":"Unhashed"},"invalid":{"type":"integer","title":"Invalid"},"not_found":{"type":"integer","title":"Not Found"},"invalid_uids":{"items":{"type":"string"},"type":"array","title":"Invalid Uids"},"aborted":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aborted"}},"type":"object","required":["entity_type","checked","valid","unhashed","invalid","not_found","invalid_uids","aborted"],"title":"TypeSweepSummary","description":"Per-type head-check aggregate (``TypeSweepReport``)."},"UCFAuditResponse":{"properties":{"ucf_audit_answers":{"items":{"type":"integer"},"type":"array","title":"Ucf Audit Answers"}},"type":"object","title":"UCFAuditResponse","description":"Response for UCF audit answers."},"UndecidedCustomAdvisory":{"properties":{"undecided_custom_count":{"type":"integer","minimum":0.0,"title":"Undecided Custom Count","default":0},"decided_custom_count":{"type":"integer","minimum":0.0,"title":"Decided Custom Count","default":0},"total_custom_count":{"type":"integer","minimum":0.0,"title":"Total Custom Count","default":0},"per_set_offenders":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Per Set Offenders"}},"type":"object","title":"UndecidedCustomAdvisory","description":"The per-custom-anchor catalog-status state machine (flywheel\nitem 4, D5 — enforce READINESS only, never centralization).\n\nLoud = undecided (UNREVIEWED / open CANDIDATE / pending\nadd-request); quiet = decided (applied finding / merged /\nrejected); new catalog evidence RE-AWAKENS quiet anchors. A\nnudge, not a leg — the gate never 409s on it. ``per_set_offenders``\nis offender attribution, not a census (only sets with at least one\nundecided anchor appear), keys sorted. Additive field — defaults\nto zeros, so pre-change responses keep their shape."},"UpdateNotificationPreferencesRequest":{"properties":{"preferences":{"items":{"$ref":"#/components/schemas/NotificationPreferenceUpdate"},"type":"array","title":"Preferences"}},"type":"object","required":["preferences"],"title":"UpdateNotificationPreferencesRequest","description":"The types to change; a type left out keeps its channel."},"UpdateTemplateAssignment":{"properties":{"is_default":{"type":"boolean","title":"Is Default"}},"type":"object","required":["is_default"],"title":"UpdateTemplateAssignment"},"UploadedByRef":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["uid"],"title":"UploadedByRef"},"UserGroup":{"properties":{"gid":{"type":"string","title":"Gid","description":"Group identifier","default":""},"name":{"type":"string","title":"Name","description":"Group display name"},"members":{"items":{"type":"string"},"type":"array","title":"Members","description":"User UIDs in this group"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color","description":"Display colour for this group"}},"type":"object","required":["name"],"title":"UserGroup","description":"A named group of users for action configuration."},"UserNotificationResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"user_uid":{"type":"string","title":"User Uid"},"notification_request_uid":{"type":"string","title":"Notification Request Uid"},"template_id":{"type":"string","title":"Template Id"},"data":{"additionalProperties":true,"type":"object","title":"Data"},"read":{"type":"boolean","title":"Read"},"dismissed":{"type":"boolean","title":"Dismissed"},"priority":{"$ref":"#/components/schemas/NotificationPriority"},"correlation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correlation Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["uid","user_uid","notification_request_uid","template_id","data","read","dismissed","priority","correlation_id","created_at","expires_at"],"title":"UserNotificationResponse","description":"One record in the person's inbox."},"UserNotificationUpdate":{"properties":{"read":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Read"},"dismissed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Dismissed"}},"type":"object","title":"UserNotificationUpdate","description":"The flags to set on one record; a flag left out stays as it is."},"UserPermissions":{"properties":{"user_uid":{"type":"string","title":"User Uid"},"computed_at":{"type":"string","format":"date-time","title":"Computed At"},"role_bindings":{"items":{"$ref":"#/components/schemas/RoleBinding"},"type":"array","title":"Role Bindings"},"effective_permissions":{"items":{"$ref":"#/components/schemas/EffectivePermission"},"type":"array","title":"Effective Permissions"}},"type":"object","required":["user_uid"],"title":"UserPermissions","description":"Complete permission snapshot for a user.\n\nReturned by the permissions API for debugging."},"V1AssessmentCandidate":{"properties":{"implementation_uid":{"type":"string","title":"Implementation Uid"},"control_anchor_uid":{"type":"string","title":"Control Anchor Uid"},"control_name":{"type":"string","title":"Control Name"},"legacy_capability_assessments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legacy Capability Assessments"},"v1_capability_assessments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"V1 Capability Assessments"},"scalar_fallback_acknowledged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scalar Fallback Acknowledged At"},"function_suggestions":{"items":{"$ref":"#/components/schemas/V1FunctionSuggestion"},"type":"array","title":"Function Suggestions"},"crosswalk_suggestions":{"items":{"$ref":"#/components/schemas/V1FunctionSuggestion"},"type":"array","title":"Crosswalk Suggestions","deprecated":true},"state":{"type":"string","title":"State"}},"type":"object","required":["implementation_uid","control_anchor_uid","control_name","state"],"title":"V1AssessmentCandidate"},"V1AssessmentCandidatesResponse":{"properties":{"client_uid":{"type":"string","title":"Client Uid"},"candidates":{"items":{"$ref":"#/components/schemas/V1AssessmentCandidate"},"type":"array","title":"Candidates"}},"type":"object","required":["client_uid"],"title":"V1AssessmentCandidatesResponse"},"V1FunctionSuggestion":{"properties":{"legacy_key":{"type":"string","title":"Legacy Key"},"v1_function_id":{"type":"string","title":"V1 Function Id"},"confidence":{"type":"string","title":"Confidence"},"source":{"type":"string","title":"Source"}},"type":"object","required":["legacy_key","v1_function_id","confidence","source"],"title":"V1FunctionSuggestion"},"V1MappingBatchItem":{"properties":{"control_anchor_uids":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Control Anchor Uids"},"accepted_function_ids":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Accepted Function Ids"}},"type":"object","required":["control_anchor_uids","accepted_function_ids"],"title":"V1MappingBatchItem","description":"One control's accepted functions; ``control_anchor_uids`` covers consolidated duplicates."},"V1MappingBatchRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/V1MappingBatchItem"},"type":"array","maxItems":500,"minItems":1,"title":"Items"},"acknowledgment_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acknowledgment Note"},"expected_migration_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Migration Revision"}},"type":"object","required":["items"],"title":"V1MappingBatchRequest"},"V1MappingBatchResponse":{"properties":{"accepted":{"type":"integer","title":"Accepted"},"control_anchor_uids":{"items":{"type":"string"},"type":"array","title":"Control Anchor Uids"}},"type":"object","required":["accepted","control_anchor_uids"],"title":"V1MappingBatchResponse"},"V1MappingCandidatesResponse":{"items":{"$ref":"#/components/schemas/CustomControlMigrationCandidate"},"type":"array","title":"V1MappingCandidatesResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"ValuationCategoryItem":{"properties":{"category":{"type":"string","title":"Category"},"value":{"type":"number","title":"Value","default":0.0}},"type":"object","required":["category"],"title":"ValuationCategoryItem"},"VariantMode":{"type":"string","enum":["A","B"],"title":"VariantMode"},"VariantRollup":{"type":"string","enum":["GEOMETRIC","ARITHMETIC"],"title":"VariantRollup"},"VariantStatus":{"properties":{"variant_uid":{"type":"string","title":"Variant Uid"},"is_valid":{"type":"boolean","title":"Is Valid"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["variant_uid","is_valid","warnings"],"title":"VariantStatus","description":"Validity status of the target variant.\n\nFields:\n    variant_uid: Concrete variant UID (never null).\n    is_valid: Whether the variant is valid for flip.\n    warnings: List of non-blocking warning messages."},"VendorAbsorbRequest":{"properties":{"absorbed_vendor_uid":{"type":"string","title":"Absorbed Vendor Uid","description":"UID of the vendor to absorb"},"add_alt_name":{"type":"boolean","title":"Add Alt Name","description":"Add absorbed vendor name as alt name","default":true}},"type":"object","required":["absorbed_vendor_uid"],"title":"VendorAbsorbRequest","description":"Schema for absorbing one vendor into another."},"VendorCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"alt_names":{"items":{"type":"string"},"type":"array","title":"Alt Names"}},"type":"object","required":["name"],"title":"VendorCreate"},"VendorDashboardControl":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"cost":{"type":"number","title":"Cost","default":0},"maturity":{"type":"number","title":"Maturity","default":0.0},"expiration_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expiration Date"}},"type":"object","required":["uid"],"title":"VendorDashboardControl","description":"A control associated with a vendor in the dashboard view."},"VendorDashboardItem":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"client_controls_count":{"type":"integer","title":"Client Controls Count","default":0},"client_controls_cost":{"type":"number","title":"Client Controls Cost","default":0},"client_controls":{"items":{"$ref":"#/components/schemas/VendorDashboardControl"},"type":"array","title":"Client Controls"}},"type":"object","required":["uid","name"],"title":"VendorDashboardItem","description":"Vendor row in the dashboard — includes aggregated control data."},"VendorEngagementResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"status":{"$ref":"#/components/schemas/AnchorStatus","default":"active"},"deleted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deleted"},"client_uid":{"type":"string","title":"Client Uid"},"vendor_uid":{"type":"string","title":"Vendor Uid"},"fiscal_year_start":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":1.0},{"type":"null"}],"title":"Fiscal Year Start"},"nda":{"anyOf":[{"$ref":"#/components/schemas/NdaType"},{"type":"null"}]},"renewal_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Renewal Date"},"discount_percentage":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Discount Percentage"},"renewal_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Renewal Info"},"bulk_pricing_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bulk Pricing Info"},"cancel_clauses":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancel Clauses"},"sla_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sla Info"},"out_clauses":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Out Clauses"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions"}},"type":"object","required":["uid","client_uid","vendor_uid"],"title":"VendorEngagementResponse"},"VendorEngagementUpdate":{"properties":{"fiscal_year_start":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":1.0},{"type":"null"}],"title":"Fiscal Year Start"},"nda":{"anyOf":[{"$ref":"#/components/schemas/NdaType"},{"type":"null"}]},"renewal_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Renewal Date"},"discount_percentage":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Discount Percentage"},"renewal_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Renewal Info"},"bulk_pricing_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bulk Pricing Info"},"cancel_clauses":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancel Clauses"},"sla_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sla Info"},"out_clauses":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Out Clauses"}},"type":"object","title":"VendorEngagementUpdate"},"VendorMergeCandidateResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"pair_key":{"type":"string","title":"Pair Key"},"status":{"$ref":"#/components/schemas/VendorMergeStatus","default":"pending"},"vendor_a_uid":{"type":"string","title":"Vendor A Uid"},"vendor_b_uid":{"type":"string","title":"Vendor B Uid"},"score":{"type":"number","title":"Score"},"origin":{"$ref":"#/components/schemas/VendorMergeOrigin"},"reviewed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewed By"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed At"},"review_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Reason"},"evidence":{"anyOf":[{"$ref":"#/components/schemas/VendorMergeEvidence"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions"}},"type":"object","required":["uid","pair_key","vendor_a_uid","vendor_b_uid","score","origin"],"title":"VendorMergeCandidateResponse"},"VendorMergeDismissRequest":{"properties":{"review_reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Review Reason"}},"type":"object","required":["review_reason"],"title":"VendorMergeDismissRequest","description":"Dismiss a merge candidate — the reason is mandatory (terminal)."},"VendorMergeEvidence":{"properties":{"vendor_a_name":{"type":"string","title":"Vendor A Name"},"vendor_b_name":{"type":"string","title":"Vendor B Name"},"vendor_a_alt_names":{"items":{"type":"string"},"type":"array","title":"Vendor A Alt Names"},"vendor_b_alt_names":{"items":{"type":"string"},"type":"array","title":"Vendor B Alt Names"},"vendor_a_control_count":{"type":"integer","title":"Vendor A Control Count","default":0},"vendor_b_control_count":{"type":"integer","title":"Vendor B Control Count","default":0}},"type":"object","required":["vendor_a_name","vendor_b_name"],"title":"VendorMergeEvidence","description":"Vendor-pair state snapshotted at detection time.\n\nNames, alt-names, and control counts as they were when the candidate was\nenqueued — the admin queue renders this even after one side is absorbed.\nPersisted on the node as a JSON string (Neo4j has no nested properties);\n``BaseGraphNode`` parses it back transparently on read."},"VendorMergeExecuteRequest":{"properties":{"survivor_uid":{"type":"string","minLength":1,"title":"Survivor Uid"},"review_reason":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Review Reason"}},"type":"object","required":["survivor_uid"],"title":"VendorMergeExecuteRequest","description":"Execute a merge: pick the surviving vendor of the candidate pair.\n\n``survivor_uid`` must be one of the pair's two vendors (422 otherwise);\nthe other is absorbed into it."},"VendorMergeExecuteResponse":{"properties":{"candidate_uid":{"type":"string","title":"Candidate Uid"},"status":{"type":"string","title":"Status"},"surviving_vendor_uid":{"type":"string","title":"Surviving Vendor Uid"},"absorbed_vendor_uid":{"type":"string","title":"Absorbed Vendor Uid"},"migrated_controls":{"type":"integer","title":"Migrated Controls","default":0},"migrated_identities":{"type":"integer","title":"Migrated Identities","default":0}},"type":"object","required":["candidate_uid","status","surviving_vendor_uid","absorbed_vendor_uid"],"title":"VendorMergeExecuteResponse","description":"Outcome of a merge: workflow row + absorption summary."},"VendorMergeOrigin":{"type":"string","enum":["backfill","create_ambiguity","judge","ingest","enrichment"],"title":"VendorMergeOrigin","description":"Which detection path enqueued the candidate (provenance, set once)."},"VendorMergeStatsResponse":{"properties":{"total":{"type":"integer","title":"Total"},"by_status":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Status"},"pending_by_origin":{"additionalProperties":{"type":"integer"},"type":"object","title":"Pending By Origin"}},"type":"object","required":["total","by_status","pending_by_origin"],"title":"VendorMergeStatsResponse","description":"Queue dashboard numbers for the admin surface."},"VendorMergeStatus":{"type":"string","enum":["pending","merged","dismissed"],"title":"VendorMergeStatus","description":"Lifecycle of a merge candidate.\n\n``merged`` and ``dismissed`` are terminal; the guarded status transition\n409s on concurrent review, so a pair is only ever resolved once."},"VendorResolveResponse":{"properties":{"vendor_uid":{"type":"string","title":"Vendor Uid"},"vendor_name":{"type":"string","title":"Vendor Name"},"vetted":{"type":"boolean","title":"Vetted"},"source":{"type":"string","title":"Source"},"external_id":{"type":"string","title":"External Id"}},"type":"object","required":["vendor_uid","vendor_name","vetted","source","external_id"],"title":"VendorResolveResponse","description":"Crosswalk resolution: which canonical vendor owns an identity."},"VendorResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"name":{"type":"string","title":"Name"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"alt_names":{"items":{"type":"string"},"type":"array","title":"Alt Names"},"status":{"type":"string","title":"Status","default":"active"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"normalized_name":{"type":"string","title":"Normalized Name","default":""},"vetted":{"type":"boolean","title":"Vetted","default":false},"absorbed_into_uid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Absorbed Into Uid"},"what_they_do":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"What They Do"},"market_position":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Position"},"portfolio_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Portfolio Summary"},"enriched_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Enriched At"},"use_cases":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Cases"},"differentiators":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Differentiators"},"description_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Source"},"description_origin_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Origin Kind"},"description_origin_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Origin Ref"},"description_confidence_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Confidence Tier"},"actions":{"items":{"type":"string"},"type":"array","title":"Actions"},"control_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Control Count"},"reused":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reused"}},"type":"object","required":["uid","name"],"title":"VendorResponse"},"VendorUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"alt_names":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Alt Names"}},"type":"object","title":"VendorUpdate"},"VendorVettedResponse":{"properties":{"uid":{"type":"string","title":"Uid"},"vetted":{"type":"boolean","title":"Vetted"}},"type":"object","required":["uid","vetted"],"title":"VendorVettedResponse","description":"Result of a vetted flip — uid + effective flag."},"VendorVettedUpdateRequest":{"properties":{"vetted":{"type":"boolean","title":"Vetted"}},"type":"object","required":["vetted"],"title":"VendorVettedUpdateRequest","description":"Flip the curation flag on a canonical vendor."},"WidgetCatalogEntry":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"required_capability":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Required Capability"},"default_size":{"$ref":"#/components/schemas/WidgetSize"},"supported_sizes":{"items":{"$ref":"#/components/schemas/WidgetSize"},"type":"array","title":"Supported Sizes"}},"type":"object","required":["key","title","default_size","supported_sizes"],"title":"WidgetCatalogEntry","description":"Catalog metadata for one placeable widget type."},"WidgetCatalogResponse":{"properties":{"widgets":{"items":{"$ref":"#/components/schemas/WidgetCatalogEntry"},"type":"array","title":"Widgets"}},"type":"object","required":["widgets"],"title":"WidgetCatalogResponse","description":"Backend-owned widget catalog — identity, governance, size envelopes."},"WidgetDashboardDocument":{"properties":{"version":{"type":"integer","const":1,"title":"Version"},"rows":{"items":{"$ref":"#/components/schemas/DashboardRow"},"type":"array","title":"Rows"},"widgets":{"items":{"$ref":"#/components/schemas/DashboardWidgetInstance"},"type":"array","title":"Widgets"}},"type":"object","required":["version","rows","widgets"],"title":"WidgetDashboardDocument","description":"Client-authored dashboard layout document.\n\nStructural invariants are enforced by ``_validate_layout``. Route-level\npolicy (widget-count caps, config size caps, key allowlists) is\ndeliberately NOT enforced here."},"WidgetKeyValue":{"type":"string","enum":["company-risk-profile","company-risk-trend","compliance-standard","control-maturity","customer-impact","cyber-spend","cyber-spend-investments","historical-trend","peer-comparison","spend-budget-mix","spend-industry-gap","spend-investment-impact","stock-impact","threat-exposure","threat-top-techniques","top-risk","total-cyber-spend"],"description":"Known widget keys synced from the frontend registry — additional keys accepted at runtime","x-extensible":true},"WidgetSize":{"type":"string","enum":["1x1","2x1","1x2","1x3","2x2","2x3","3x1","3x2","4x1","4x2","4x4","6x1","6x2","8x1","8x2"],"title":"WidgetSize","description":"Widget footprint on the dashboard grid, as ``\"<cols>x<rows>\"``.\n\nClosed domain — the grid only renders these footprints. Parse with\n``mtm_graph.schemas.dashboard_layout.span``."},"WindowHistoryResponse":{"properties":{"versions":{"items":{"$ref":"#/components/schemas/WindowResponse"},"type":"array","title":"Versions"}},"type":"object","required":["versions"],"title":"WindowHistoryResponse"},"WindowPutResponse":{"properties":{"window":{"$ref":"#/components/schemas/WindowResponse"},"batch":{"anyOf":[{"$ref":"#/components/schemas/ModelBatchState"},{"type":"null"}]},"message":{"type":"string","title":"Message"}},"type":"object","required":["window","message"],"title":"WindowPutResponse"},"WindowResponse":{"properties":{"version":{"type":"integer","title":"Version"},"months":{"items":{"type":"string"},"type":"array","title":"Months"},"months_hash":{"type":"string","title":"Months Hash"},"valuation_date":{"type":"string","title":"Valuation Date"},"created":{"title":"Created"},"changed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changed By"},"change_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Source"},"change_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Reason"},"content_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Hash"}},"type":"object","required":["version","months","months_hash","valuation_date","created","changed_by","change_source","change_reason","content_hash"],"title":"WindowResponse"},"WindowUpdateRequest":{"properties":{"months":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Months"},"valuation_date":{"type":"string","maxLength":8,"minLength":8,"pattern":"^\\d{8}$","title":"Valuation Date"},"change_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Reason"}},"type":"object","required":["months","valuation_date"],"title":"WindowUpdateRequest"},"WorkStatus":{"properties":{"total":{"type":"integer","title":"Total"},"resolved":{"type":"integer","title":"Resolved"},"unresolved":{"items":{"type":"string"},"type":"array","title":"Unresolved"}},"type":"object","required":["total","resolved","unresolved"],"title":"WorkStatus","description":"Status of work items (custom controls, implementations).\n\nFields:\n    total: Total count of items.\n    resolved: Count of resolved items.\n    unresolved: List of unresolved item UIDs."},"WorkflowAction":{"type":"string","enum":["notify","approval","auto_reassign"],"title":"WorkflowAction","description":"Actions a workflow step can take (system-initiated)."},"WorkflowActionResult":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"},"approval_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Approval Count","description":"Total approvals at current step"},"required_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Required Count","description":"Approvals needed"},"advanced":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Advanced","description":"Whether workflow advanced to next step"},"new_step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"New Step","description":"New step index if advanced"},"returned_to_step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Returned To Step","description":"Step returned to after rejection"}},"type":"object","required":["success","message"],"title":"WorkflowActionResult","description":"Unified response for approval/rejection actions."},"WorkflowState":{"properties":{"current_step":{"type":"integer","title":"Current Step","description":"Current workflow step index","default":0},"step_name":{"type":"string","title":"Step Name","description":"Current step name (from config)","default":""},"raci":{"additionalProperties":{"$ref":"#/components/schemas/RaciAssignment"},"type":"object","title":"Raci","description":"Per-step RACI assignments keyed by step name (e.g. 'Identified', 'Assessed')"},"assignees":{"items":{"$ref":"#/components/schemas/Assignee"},"type":"array","title":"Assignees","description":"Flat pool of all users/groups assigned across any RACI role and step"},"raci_users":{"additionalProperties":{"$ref":"#/components/schemas/RaciUserDetail"},"type":"object","title":"Raci Users","description":"uid → detail map for all RACI-assigned users. Includes active flag so the UI can flag deactivated users without extra queries. Inactive users are never pruned from RACI — they appear here with active=False."},"approvals":{"additionalProperties":{"items":{"$ref":"#/components/schemas/ApprovalRecord"},"type":"array"},"type":"object","title":"Approvals","description":"Approvals per step {'0': [ApprovalRecord, ...], ...}"},"approval_count":{"type":"integer","title":"Approval Count","description":"Approvals received at current step","default":0},"approval_required":{"type":"integer","title":"Approval Required","description":"Approvals needed at current step","default":1},"rejections":{"additionalProperties":{"items":{"$ref":"#/components/schemas/RejectionRecord"},"type":"array"},"type":"object","title":"Rejections","description":"Rejections per step"},"custom_fields":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"}]},"type":"object","title":"Custom Fields","description":"Custom field values"}},"type":"object","title":"WorkflowState","description":"Current workflow state for a risk at a client."},"WorkflowStepConfig":{"properties":{"index":{"type":"integer","minimum":0.0,"title":"Index","description":"Step index (0-based)"},"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name","description":"Step display name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Step description"},"allowed_roles":{"items":{"$ref":"#/components/schemas/RaciRole"},"type":"array","title":"Allowed Roles","description":"RACI roles that can perform actions at this step"},"actions":{"items":{"$ref":"#/components/schemas/WorkflowAction"},"type":"array","title":"Actions","description":"Actions enabled for this step"},"action_config":{"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/ApprovalConfig"},{"$ref":"#/components/schemas/NotifyConfig"}]},"type":"object","title":"Action Config","description":"Configuration for each enabled action"},"transitions":{"additionalProperties":{"$ref":"#/components/schemas/TransitionConfig"},"propertyNames":{"$ref":"#/components/schemas/WorkflowTransition"},"type":"object","title":"Transitions","description":"Available transitions from this step"},"inactivity_handling":{"anyOf":[{"$ref":"#/components/schemas/InactivityConfig"},{"type":"null"}],"description":"How to handle inactivity at this step"},"is_terminal":{"type":"boolean","title":"Is Terminal","description":"If true, no transitions allowed out","default":false}},"type":"object","required":["index","name"],"title":"WorkflowStepConfig","description":"Configuration for a single workflow step."},"WorkflowTransition":{"type":"string","enum":["approve","reject","submit","escalate"],"title":"WorkflowTransition","description":"User-initiated actions that move between workflow steps."},"WorkloadBreakdown":{"properties":{"total":{"type":"integer","title":"Total"},"breakdown":{"items":{"$ref":"#/components/schemas/WorkloadItem"},"type":"array","title":"Breakdown"}},"type":"object","required":["total","breakdown"],"title":"WorkloadBreakdown"},"WorkloadItem":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"color":{"type":"string","title":"Color"},"count":{"type":"integer","title":"Count"},"percentage":{"type":"number","title":"Percentage"}},"type":"object","required":["id","label","color","count","percentage"],"title":"WorkloadItem"},"_AuditRoleBinding":{"properties":{"role_slug":{"type":"string","title":"Role Slug"},"scope":{"type":"string","title":"Scope"}},"type":"object","required":["role_slug","scope"],"title":"_AuditRoleBinding","description":"A non-expired HAS_ROLE edge, minimal shape for audit consumers."},"_DirectoryRoleBinding":{"properties":{"role_slug":{"type":"string","title":"Role Slug"},"scope":{"type":"string","title":"Scope"}},"type":"object","required":["role_slug","scope"],"title":"_DirectoryRoleBinding","description":"A role binding entry inside a directory record."},"_ScopeUserRole":{"properties":{"role_slug":{"type":"string","title":"Role Slug"},"scope":{"type":"string","title":"Scope"},"inherited":{"type":"boolean","title":"Inherited","default":false}},"type":"object","required":["role_slug","scope"],"title":"_ScopeUserRole","description":"A single role binding for a user at a scope."}}}}