{"openapi":"3.1.0","info":{"title":"CrewCheck API","version":"0.1.0"},"paths":{"/v1/agents":{"get":{"tags":["agents"],"summary":"List Agents","operationId":"list_agents_v1_agents_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentStatus"},{"type":"null"}],"title":"Status"}},{"name":"budget","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(ok|warning|over|blocked)$"},{"type":"null"}],"title":"Budget"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentResponse"},"title":"Response List Agents V1 Agents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["agents"],"summary":"Create Agent","operationId":"create_agent_v1_agents_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/{agent_id}":{"get":{"tags":["agents"],"summary":"Get Agent","operationId":"get_agent_v1_agents__agent_id__get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["agents"],"summary":"Update Agent","operationId":"update_agent_v1_agents__agent_id__patch","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agents"],"summary":"Terminate Agent","operationId":"terminate_agent_v1_agents__agent_id__delete","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/{agent_id}/budget-status":{"get":{"tags":["agents"],"summary":"Get Budget Status","operationId":"get_budget_status_v1_agents__agent_id__budget_status_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/{agent_id}/packs":{"get":{"tags":["agents"],"summary":"List Agent Packs","operationId":"list_agent_packs_v1_agents__agent_id__packs_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentPackAssignmentResponse"},"title":"Response List Agent Packs V1 Agents  Agent Id  Packs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/{agent_id}/bodh-evaluate":{"post":{"tags":["agents"],"summary":"Evaluate Bodh","operationId":"evaluate_bodh_v1_agents__agent_id__bodh_evaluate_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodhEvaluationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodhEvaluationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/{agent_id}/packs/{pack_id}/enable":{"post":{"tags":["agents"],"summary":"Enable Agent Pack","operationId":"enable_agent_pack_v1_agents__agent_id__packs__pack_id__enable_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPackToggleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/{agent_id}/packs/{pack_id}/disable":{"post":{"tags":["agents"],"summary":"Disable Agent Pack","operationId":"disable_agent_pack_v1_agents__agent_id__packs__pack_id__disable_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPackToggleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/{agent_id}/revive-budget":{"post":{"tags":["agents"],"summary":"Revive Budget Suspension","operationId":"revive_budget_suspension_v1_agents__agent_id__revive_budget_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/{agent_id}/pip":{"post":{"tags":["agents"],"summary":"Place On Pip","operationId":"place_on_pip_v1_agents__agent_id__pip_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/{agent_id}/promote":{"post":{"tags":["agents"],"summary":"Promote Agent","operationId":"promote_agent_v1_agents__agent_id__promote_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/{agent_id}/trust-history":{"get":{"tags":["agents"],"summary":"Trust History","operationId":"trust_history_v1_agents__agent_id__trust_history_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"consent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TrustHistoryPoint"},"title":"Response Trust History V1 Agents  Agent Id  Trust History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/{agent_id}/record":{"get":{"tags":["agents"],"summary":"Trust Record","operationId":"trust_record_v1_agents__agent_id__record_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"consent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Trust Record V1 Agents  Agent Id  Record Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/{agent_id}/export-audit":{"get":{"tags":["agents"],"summary":"Export Agent Audit","operationId":"export_agent_audit_v1_agents__agent_id__export_audit_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/{agent_id}/export-regulatory-report":{"get":{"tags":["agents"],"summary":"Export Regulatory Report","operationId":"export_regulatory_report_v1_agents__agent_id__export_regulatory_report_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"framework","in":"query","required":false,"schema":{"type":"string","pattern":"^(rbi|sebi)$","default":"rbi","title":"Framework"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/{agent_id}/mystery-shopper-runs":{"get":{"tags":["agents"],"summary":"Mystery Runs","operationId":"mystery_runs_v1_agents__agent_id__mystery_shopper_runs_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MysteryShopperRunResponse"},"title":"Response Mystery Runs V1 Agents  Agent Id  Mystery Shopper Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/analytics/violations-trend":{"get":{"tags":["analytics"],"summary":"Violations Trend","operationId":"violations_trend_v1_analytics_violations_trend_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":30,"title":"Days"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ViolationTrendPoint"},"title":"Response Violations Trend V1 Analytics Violations Trend Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/analytics/mystery-shopper-pass-rate":{"get":{"tags":["analytics"],"summary":"Mystery Shopper Pass Rate","operationId":"mystery_shopper_pass_rate_v1_analytics_mystery_shopper_pass_rate_get","parameters":[{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"}},{"name":"compliance_pack_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Compliance Pack Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MysteryShopperPassRate"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/analytics/top-violations":{"get":{"tags":["analytics"],"summary":"Top Violations","operationId":"top_violations_v1_analytics_top_violations_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":10,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TopViolationRule"},"title":"Response Top Violations V1 Analytics Top Violations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/analytics/trust-distribution":{"get":{"tags":["analytics"],"summary":"Trust Distribution","operationId":"trust_distribution_v1_analytics_trust_distribution_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TrustDistributionBucket"},"title":"Response Trust Distribution V1 Analytics Trust Distribution Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/analytics/industry-benchmark":{"get":{"tags":["analytics"],"summary":"Industry Benchmark","operationId":"industry_benchmark_v1_analytics_industry_benchmark_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndustryBenchmarkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api-keys":{"get":{"tags":["api-keys"],"summary":"List Api Keys","operationId":"list_api_keys_v1_api_keys_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiKeyResponse"},"title":"Response List Api Keys V1 Api Keys Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["api-keys"],"summary":"Create Api Key","operationId":"create_api_key_v1_api_keys_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api-keys/{api_key_id}":{"delete":{"tags":["api-keys"],"summary":"Revoke Api Key","operationId":"revoke_api_key_v1_api_keys__api_key_id__delete","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Api Key Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/approvals":{"get":{"tags":["approvals"],"summary":"List pending approval items for the user's organization","operationId":"list_approvals_v1_approvals_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApprovalItem"},"title":"Response List Approvals V1 Approvals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/approvals/{ledger_id}/decide":{"post":{"tags":["approvals"],"summary":"Approve or reject an escalation","operationId":"decide_approval_v1_approvals__ledger_id__decide_post","parameters":[{"name":"ledger_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ledger Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalDecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Decide Approval V1 Approvals  Ledger Id  Decide Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/me":{"get":{"tags":["auth"],"summary":"Return the authenticated user's profile","operationId":"me_v1_auth_me_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public/benchmark":{"get":{"tags":["benchmark"],"summary":"Public Benchmark","operationId":"public_benchmark_v1_public_benchmark_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BenchmarkReport"}}}}}}},"/v1/public/benchmark/download.json":{"get":{"tags":["benchmark"],"summary":"Public Benchmark Json","operationId":"public_benchmark_json_v1_public_benchmark_download_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/public/benchmark/download.csv":{"get":{"tags":["benchmark"],"summary":"Public Benchmark Csv","operationId":"public_benchmark_csv_v1_public_benchmark_download_csv_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/circuit-breaker/trip":{"post":{"tags":["circuit-breaker"],"summary":"Trip Breaker","description":"Trip (open) a circuit breaker. Requires manager role.","operationId":"trip_breaker_v1_circuit_breaker_trip_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TripRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BreakerStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/circuit-breaker/half-open":{"post":{"tags":["circuit-breaker"],"summary":"Set Half Open","description":"Transition a breaker to half-open. Requires manager role.","operationId":"set_half_open_v1_circuit_breaker_half_open_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HalfOpenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Half Open V1 Circuit Breaker Half Open Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/circuit-breaker/reset":{"post":{"tags":["circuit-breaker"],"summary":"Reset Breaker","description":"Reset a circuit breaker to closed. Requires manager role.","operationId":"reset_breaker_v1_circuit_breaker_reset_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reset Breaker V1 Circuit Breaker Reset Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/circuit-breaker/status":{"get":{"tags":["circuit-breaker"],"summary":"Breaker Status","description":"Get all breaker states for the org.","operationId":"breaker_status_v1_circuit_breaker_status_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BreakerStatusResponse"},"title":"Response Breaker Status V1 Circuit Breaker Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/circuit-breaker/history":{"get":{"tags":["circuit-breaker"],"summary":"Breaker History","description":"Get breaker state change history.","operationId":"breaker_history_v1_circuit_breaker_history_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BreakerHistoryResponse"},"title":"Response Breaker History V1 Circuit Breaker History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/circuit-breaker/emergency-stop":{"post":{"tags":["circuit-breaker"],"summary":"Do Emergency Stop","description":"KILL EVERYTHING for the org. Returns a release_token. Requires admin role.","operationId":"do_emergency_stop_v1_circuit_breaker_emergency_stop_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmergencyStopRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Do Emergency Stop V1 Circuit Breaker Emergency Stop Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/circuit-breaker/emergency-stop/release":{"post":{"tags":["circuit-breaker"],"summary":"Do Emergency Release","description":"Release an emergency stop. Requires the release_token.","operationId":"do_emergency_release_v1_circuit_breaker_emergency_stop_release_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmergencyReleaseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Do Emergency Release V1 Circuit Breaker Emergency Stop Release Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/compliance-packs":{"get":{"tags":["compliance-packs"],"summary":"List Compliance Packs","operationId":"list_compliance_packs_v1_compliance_packs_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CompliancePackResponse"},"title":"Response List Compliance Packs V1 Compliance Packs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["compliance-packs"],"summary":"Create Compliance Pack","operationId":"create_compliance_pack_v1_compliance_packs_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompliancePackCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompliancePackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/compliance-packs/from-pdf":{"post":{"tags":["compliance-packs"],"summary":"Create Compliance Pack From Pdf","operationId":"create_compliance_pack_from_pdf_v1_compliance_packs_from_pdf_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_compliance_pack_from_pdf_v1_compliance_packs_from_pdf_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompliancePackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/compliance-packs/{pack_id}":{"patch":{"tags":["compliance-packs"],"summary":"Update Compliance Pack","operationId":"update_compliance_pack_v1_compliance_packs__pack_id__patch","parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompliancePackUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompliancePackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["compliance-packs"],"summary":"Delete Compliance Pack","operationId":"delete_compliance_pack_v1_compliance_packs__pack_id__delete","parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/compliance-packs/{pack_id}/rules":{"post":{"tags":["compliance-packs"],"summary":"Add Compliance Pack Rule","operationId":"add_compliance_pack_rule_v1_compliance_packs__pack_id__rules_post","parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompliancePackRuleCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompliancePackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/compliance-packs/{pack_id}/rules/{rule_id}":{"patch":{"tags":["compliance-packs"],"summary":"Update Compliance Pack Rule","operationId":"update_compliance_pack_rule_v1_compliance_packs__pack_id__rules__rule_id__patch","parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompliancePackRuleCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompliancePackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["compliance-packs"],"summary":"Delete Compliance Pack Rule","operationId":"delete_compliance_pack_rule_v1_compliance_packs__pack_id__rules__rule_id__delete","parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompliancePackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/check":{"post":{"tags":["risk"],"summary":"Run Risk Check","operationId":"run_risk_check_v1_check_post","parameters":[{"name":"X-Agent-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Id"}},{"name":"X-Consent-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Consent-Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskCheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dashboard/costs":{"get":{"tags":["costs"],"summary":"Dashboard Costs","operationId":"dashboard_costs_v1_dashboard_costs_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":30,"title":"Days"}},{"name":"group_by_model","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Group By Model"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CostDailyPoint"},"title":"Response Dashboard Costs V1 Dashboard Costs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/{agent_id}/costs":{"get":{"tags":["costs"],"summary":"App Costs","operationId":"app_costs_v1_apps__agent_id__costs_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":30,"title":"Days"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CostDailyPoint"},"title":"Response App Costs V1 Apps  Agent Id  Costs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/apps/{agent_id}/cost/summary":{"get":{"tags":["costs"],"summary":"App Cost Summary","operationId":"app_cost_summary_v1_apps__agent_id__cost_summary_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/data-products/vendor-leads":{"post":{"tags":["data-products"],"summary":"Create Vendor Lead","description":"Create an explicitly consented third-party vendor lead.\n\nThis endpoint stores only the user-provided problem summary and contact fields.\nIt does not grant access to raw prompts, uploaded documents, or private scans.","operationId":"create_vendor_lead_v1_data_products_vendor_leads_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorLeadCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorLeadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/data-products/research-panel":{"post":{"tags":["data-products"],"summary":"Join Research Panel","operationId":"join_research_panel_v1_data_products_research_panel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResearchPanelSignup"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResearchPanelResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/data-products/vendor-performance-events":{"post":{"tags":["data-products"],"summary":"Create Vendor Performance Event","operationId":"create_vendor_performance_event_v1_data_products_vendor_performance_events_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorPerformanceCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorPerformanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/data-products/refresh":{"post":{"tags":["data-products"],"summary":"Refresh Data Product Pipeline","operationId":"refresh_data_product_pipeline_v1_data_products_refresh_post","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":180,"minimum":1,"default":30,"title":"Days"}},{"name":"min_k","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":3,"default":5,"title":"Min K"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/data-products/snapshots":{"get":{"tags":["data-products"],"summary":"List Market Intelligence Snapshots","operationId":"list_market_intelligence_snapshots_v1_data_products_snapshots_get","parameters":[{"name":"source_kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(public_scan|product_telemetry|vendor_performance|research_panel)$"},{"type":"null"}],"title":"Source Kind"}},{"name":"publishable_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Publishable Only"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SnapshotResponse"},"title":"Response List Market Intelligence Snapshots V1 Data Products Snapshots Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/data-products/consents":{"get":{"tags":["data-products"],"summary":"List Data Product Consents","operationId":"list_data_product_consents_v1_data_products_consents_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DataProductConsentResponse"},"title":"Response List Data Product Consents V1 Data Products Consents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dashboard/stats":{"get":{"tags":["dashboard"],"summary":"Dashboard Stats","operationId":"dashboard_stats_v1_dashboard_stats_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardStatsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/default-agent":{"get":{"tags":["default-agent"],"summary":"Get Or Create Default Agent","operationId":"get_or_create_default_agent_v1_default_agent_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/integrations":{"get":{"tags":["integrations"],"summary":"List Integrations","operationId":"list_integrations_v1_integrations_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationResponse"},"title":"Response List Integrations V1 Integrations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/integrations/{integration_id}":{"get":{"tags":["integrations"],"summary":"Get Integration","operationId":"get_integration_v1_integrations__integration_id__get","parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Integration Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organization/integrations":{"post":{"tags":["integrations"],"summary":"Connect Integration","operationId":"connect_integration_v1_organization_integrations_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationIntegrationCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organization/integrations/{organization_integration_id}":{"patch":{"tags":["integrations"],"summary":"Update Integration","operationId":"update_integration_v1_organization_integrations__organization_integration_id__patch","parameters":[{"name":"organization_integration_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Integration Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationIntegrationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["integrations"],"summary":"Delete Integration","operationId":"delete_integration_v1_organization_integrations__organization_integration_id__delete","parameters":[{"name":"organization_integration_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Integration Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/trust-ledger/verify":{"get":{"tags":["trust-ledger"],"summary":"Verify Trust Ledger","operationId":"verify_trust_ledger_v1_trust_ledger_verify_get","parameters":[{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Verify Trust Ledger V1 Trust Ledger Verify Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/trust-ledger/recent":{"get":{"tags":["trust-ledger"],"summary":"Recent Ledger Entries","description":"Return the most recent trust ledger entries for the dashboard activity feed.","operationId":"recent_ledger_entries_v1_trust_ledger_recent_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Recent Ledger Entries V1 Trust Ledger Recent Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mystery-shopper/prompts":{"get":{"tags":["mystery-shopper"],"summary":"List the built-in adversarial prompt library","operationId":"list_prompts_v1_mystery_shopper_prompts_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response List Prompts V1 Mystery Shopper Prompts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mystery-shopper/run":{"post":{"tags":["mystery-shopper"],"summary":"Manually run red teaming prompts for one app","operationId":"run_mystery_shopper_v1_mystery_shopper_run_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MysteryShopperRunRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MysteryShopperRunResponse"},"title":"Response Run Mystery Shopper V1 Mystery Shopper Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mystery-shopper/results":{"get":{"tags":["mystery-shopper"],"summary":"List red team run results with evidence details","operationId":"mystery_results_v1_mystery_shopper_results_get","parameters":[{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MysteryShopperRunResponse"},"title":"Response Mystery Results V1 Mystery Shopper Results Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mystery-shopper/export-pdf":{"get":{"tags":["mystery-shopper"],"summary":"Export a red team run report as a PDF","operationId":"export_mystery_report_v1_mystery_shopper_export_pdf_get","parameters":[{"name":"agent_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"run_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organization":{"get":{"tags":["organization"],"summary":"Get Organization","operationId":"get_organization_v1_organization_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["organization"],"summary":"Update Organization","operationId":"update_organization_v1_organization_patch","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organization/complete-onboarding":{"post":{"tags":["organization"],"summary":"Complete Onboarding","operationId":"complete_onboarding_v1_organization_complete_onboarding_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organization/settings":{"get":{"tags":["organization"],"summary":"Get Organization Settings","operationId":"get_organization_settings_v1_organization_settings_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["organization"],"summary":"Update Organization Settings","operationId":"update_organization_settings_v1_organization_settings_patch","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSettingsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["organization"],"summary":"Post Organization Settings","operationId":"post_organization_settings_v1_organization_settings_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSettingsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organization/branding/upload-logo":{"post":{"tags":["organization"],"summary":"Upload Logo","operationId":"upload_logo_v1_organization_branding_upload_logo_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_logo_v1_organization_branding_upload_logo_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Upload Logo V1 Organization Branding Upload Logo Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organization/branding/upload-signature":{"post":{"tags":["organization"],"summary":"Upload Signature","operationId":"upload_signature_v1_organization_branding_upload_signature_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_signature_v1_organization_branding_upload_signature_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Upload Signature V1 Organization Branding Upload Signature Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organization/soc2-controls":{"get":{"tags":["organization"],"summary":"List Soc2 Controls","operationId":"list_soc2_controls_v1_organization_soc2_controls_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Soc2Control"},"title":"Response List Soc2 Controls V1 Organization Soc2 Controls Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/plugins":{"get":{"tags":["plugins"],"summary":"List Plugins","operationId":"list_plugins_v1_plugins_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PluginMetadata"},"title":"Response List Plugins V1 Plugins Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/plugins/{name}/enable":{"post":{"tags":["plugins"],"summary":"Enable Plugin","operationId":"enable_plugin_v1_plugins__name__enable_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PluginMetadata"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/plugins/{name}/disable":{"post":{"tags":["plugins"],"summary":"Disable Plugin","operationId":"disable_plugin_v1_plugins__name__disable_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PluginMetadata"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/proxy/v1/chat/completions":{"post":{"tags":["proxy"],"summary":"Exact Proxy Chat Completions","operationId":"exact_proxy_chat_completions_v1_proxy_v1_chat_completions_post","parameters":[{"name":"X-Request-ID","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Id"}},{"name":"X-Agent-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Id"}},{"name":"X-Provider-Api-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Provider-Api-Key"}},{"name":"X-Consent-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Consent-Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionProxyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/proxy/openai/v1/chat/completions":{"post":{"tags":["proxy"],"summary":"Openai Proxy","operationId":"openai_proxy_v1_proxy_openai_v1_chat_completions_post","parameters":[{"name":"X-Request-ID","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Id"}},{"name":"X-Agent-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Id"}},{"name":"X-Provider-Api-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Provider-Api-Key"}},{"name":"X-Consent-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Consent-Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionProxyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/proxy/anthropic/v1/messages":{"post":{"tags":["proxy"],"summary":"Anthropic Proxy","operationId":"anthropic_proxy_v1_proxy_anthropic_v1_messages_post","parameters":[{"name":"X-Request-ID","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Id"}},{"name":"X-Agent-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Id"}},{"name":"X-Provider-Api-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Provider-Api-Key"}},{"name":"X-Consent-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Consent-Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionProxyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/proxy/chat":{"post":{"tags":["proxy"],"summary":"Universal Proxy","description":"Universal proxy endpoint – auto-detects provider from model name.","operationId":"universal_proxy_v1_proxy_chat_post","parameters":[{"name":"X-Request-ID","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Id"}},{"name":"X-Agent-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Agent-Id"}},{"name":"X-Provider-Api-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Provider-Api-Key"}},{"name":"X-Consent-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Consent-Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionProxyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/privacy/export":{"post":{"tags":["privacy"],"summary":"Export Data","operationId":"export_data_v1_privacy_export_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivacyRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/privacy/erase":{"post":{"tags":["privacy"],"summary":"Erase Data","operationId":"erase_data_v1_privacy_erase_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivacyEraseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivacyRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/search":{"get":{"tags":["search"],"summary":"Search","operationId":"search_v1_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":120,"title":"Q"}},{"name":"type","in":"query","required":false,"schema":{"enum":["all","agents","logs"],"type":"string","default":"all","title":"Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/shadow/settings":{"patch":{"tags":["shadow-mode"],"summary":"Update Settings","description":"Enable or disable shadow mode for the org.","operationId":"update_settings_v1_shadow_settings_patch","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShadowSettingsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Settings V1 Shadow Settings Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/shadow/baseline":{"post":{"tags":["shadow-mode"],"summary":"Submit Baseline Decision","description":"Submit a baseline decision from a legacy system for comparison.","operationId":"submit_baseline_decision_v1_shadow_baseline_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaselineSubmission"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Baseline Decision V1 Shadow Baseline Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/shadow/baseline/bulk":{"post":{"tags":["shadow-mode"],"summary":"Submit Baseline Bulk Decisions","description":"Bulk-ingest baseline decisions from a legacy system webhook.","operationId":"submit_baseline_bulk_decisions_v1_shadow_baseline_bulk_post","parameters":[{"name":"X-Legacy-Secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Legacy-Secret"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkBaselineSubmission"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Baseline Bulk Decisions V1 Shadow Baseline Bulk Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/shadow/report":{"get":{"tags":["shadow-mode"],"summary":"Delta Report","description":"Get the shadow mode delta report.","operationId":"delta_report_v1_shadow_report_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delta Report V1 Shadow Report Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/simulate/agent-response":{"post":{"tags":["simulate"],"summary":"Return a simulated app response for red teaming tests","operationId":"simulate_agent_response_v1_simulate_agent_response_post","parameters":[{"name":"X-Simulate-Secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Simulate-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulateAgentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulateAgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/stream-audit-configs":{"get":{"tags":["streamguard"],"summary":"List Configs","operationId":"list_configs_v1_stream_audit_configs_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StreamAuditConfigResponse"},"title":"Response List Configs V1 Stream Audit Configs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["streamguard"],"summary":"Create Config","operationId":"create_config_v1_stream_audit_configs_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamAuditConfigCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamAuditConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/stream-audit-configs/{config_id}":{"get":{"tags":["streamguard"],"summary":"Get Config","operationId":"get_config_v1_stream_audit_configs__config_id__get","parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Config Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamAuditConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["streamguard"],"summary":"Update Config","operationId":"update_config_v1_stream_audit_configs__config_id__patch","parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Config Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamAuditConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamAuditConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["streamguard"],"summary":"Delete Config","operationId":"delete_config_v1_stream_audit_configs__config_id__delete","parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Config Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/stream-audit-configs/{config_id}/events":{"get":{"tags":["streamguard"],"summary":"List Events","operationId":"list_events_v1_stream_audit_configs__config_id__events_get","parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Config Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"decision","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(allowed|blocked|flagged)$"},{"type":"null"}],"title":"Decision"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StreamAuditEventResponse"},"title":"Response List Events V1 Stream Audit Configs  Config Id  Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/internal/stream-audit-configs":{"get":{"tags":["streamguard-internal"],"summary":"List Enabled Configs","operationId":"list_enabled_configs_v1_internal_stream_audit_configs_get","parameters":[{"name":"X-Internal-Api-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StreamAuditConfigResponse"},"title":"Response List Enabled Configs V1 Internal Stream Audit Configs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/internal/stream-audit-events":{"post":{"tags":["streamguard-internal"],"summary":"Create Event","operationId":"create_event_v1_internal_stream_audit_events_post","parameters":[{"name":"X-Internal-Api-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamAuditEventCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamAuditEventResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/internal/circuit-breaker-check":{"get":{"tags":["streamguard-internal"],"summary":"Check Breaker For Stream","description":"Check circuit breaker state for a StreamGuard consumer.","operationId":"check_breaker_for_stream_v1_internal_circuit_breaker_check_get","parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"agent_id","in":"query","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"stream_config_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Stream Config Id"}},{"name":"X-Internal-Api-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Check Breaker For Stream V1 Internal Circuit Breaker Check Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/compliance-scanner/scan":{"post":{"tags":["compliance-scanner"],"summary":"Start Scan","description":"Start a new DPDP compliance scan. No authentication required (lead-gen).","operationId":"start_scan_v1_compliance_scanner_scan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanResultResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/compliance-scanner/scans/{scan_id}":{"get":{"tags":["compliance-scanner"],"summary":"Get Scan","description":"Get scan status and results. Public endpoint for polling.","operationId":"get_scan_v1_compliance_scanner_scans__scan_id__get","parameters":[{"name":"scan_id","in":"path","required":true,"schema":{"type":"string","title":"Scan Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanResultResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/compliance-scanner/scans/{scan_id}/pdf":{"get":{"tags":["compliance-scanner"],"summary":"Download Scan Pdf","description":"Download the PDF report for a completed scan.","operationId":"download_scan_pdf_v1_compliance_scanner_scans__scan_id__pdf_get","parameters":[{"name":"scan_id","in":"path","required":true,"schema":{"type":"string","title":"Scan Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/compliance-scanner/scans":{"get":{"tags":["compliance-scanner"],"summary":"List Scans","description":"List all scans (most recent first).","operationId":"list_scans_v1_compliance_scanner_scans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ScanHistoryItem"},"type":"array","title":"Response List Scans V1 Compliance Scanner Scans Get"}}}}}}},"/v1/compliance-scanner/ask":{"post":{"tags":["compliance-scanner"],"summary":"Ask Compliance Question","description":"DPO-in-a-Box: Ask a compliance question.","operationId":"ask_compliance_question_v1_compliance_scanner_ask_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceAskRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceAskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health Check","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Health Get"}}}}},"tags":["system"],"description":"Returns the public health status for the CrewCheck API."}},"/health/playwright":{"get":{"summary":"Playwright Health","description":"Check if Playwright Chromium is available.","operationId":"playwright_health_health_playwright_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Playwright Health Health Playwright Get"}}}}},"tags":["system"]}}},"components":{"schemas":{"AgentCreate":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"role":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Role"},"compliance_pack_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Compliance Pack Ids"},"token_budget_limit":{"type":"integer","minimum":1,"title":"Token Budget Limit","default":100000},"budget_inr":{"anyOf":[{"type":"number","minimum":0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Budget Inr"},"budget_alert_threshold_pct":{"type":"integer","maximum":100,"minimum":1,"title":"Budget Alert Threshold Pct","default":80}},"type":"object","required":["name"],"title":"AgentCreate"},"AgentPackAssignmentResponse":{"properties":{"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"compliance_pack_id":{"type":"string","format":"uuid","title":"Compliance Pack Id"},"enabled":{"type":"boolean","title":"Enabled"},"pack":{"$ref":"#/components/schemas/CompliancePackResponse"}},"type":"object","required":["agent_id","compliance_pack_id","enabled","pack"],"title":"AgentPackAssignmentResponse"},"AgentPackToggleResponse":{"properties":{"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"compliance_pack_id":{"type":"string","format":"uuid","title":"Compliance Pack Id"},"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["agent_id","compliance_pack_id","enabled"],"title":"AgentPackToggleResponse"},"AgentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"status":{"$ref":"#/components/schemas/AgentStatus"},"trust_score":{"type":"integer","title":"Trust Score"},"token_budget_limit":{"type":"integer","title":"Token Budget Limit"},"budget_inr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Budget Inr"},"budget_alert_threshold_pct":{"type":"integer","title":"Budget Alert Threshold Pct","default":80},"current_month_spend":{"type":"number","title":"Current Month Spend","default":0},"budget_status":{"type":"string","title":"Budget Status","default":"ok"},"enabled_pack_count":{"type":"integer","title":"Enabled Pack Count","default":0},"shadow_mode":{"type":"boolean","title":"Shadow Mode","default":false},"bodh_certified":{"type":"boolean","title":"Bodh Certified","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"terminated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Terminated At"}},"type":"object","required":["id","organization_id","name","role","status","trust_score","token_budget_limit","created_at","terminated_at"],"title":"AgentResponse"},"AgentSearchResult":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"status":{"$ref":"#/components/schemas/AgentStatus"},"trust_score":{"type":"integer","title":"Trust Score"}},"type":"object","required":["id","name","role","status","trust_score"],"title":"AgentSearchResult"},"AgentStatus":{"type":"string","enum":["active","probation","restricted","suspended","budget_suspended","terminated"],"title":"AgentStatus"},"AgentUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"},"role":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Role"},"compliance_pack_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Compliance Pack Ids"},"token_budget_limit":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Token Budget Limit"},"budget_inr":{"anyOf":[{"type":"number","minimum":0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Budget Inr"},"budget_alert_threshold_pct":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"title":"Budget Alert Threshold Pct"},"shadow_mode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Shadow Mode"},"bodh_certified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Bodh Certified"}},"type":"object","title":"AgentUpdate"},"ApiKeyCreate":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["name"],"title":"ApiKeyCreate"},"ApiKeyCreated":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix"},"key":{"type":"string","title":"Key"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["id","name","prefix","key","created_at","expires_at"],"title":"ApiKeyCreated"},"ApiKeyResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["id","name","prefix","created_at","last_used","expires_at"],"title":"ApiKeyResponse"},"ApprovalDecisionRequest":{"properties":{"action":{"type":"string","pattern":"^(approve|reject)$","title":"Action"},"note":{"type":"string","maxLength":1000,"title":"Note","default":""}},"type":"object","required":["action"],"title":"ApprovalDecisionRequest"},"ApprovalItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"agent_name":{"type":"string","title":"Agent Name"},"agent_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Role"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"risk_score":{"type":"integer","title":"Risk Score"},"decision":{"$ref":"#/components/schemas/DecisionStatus"},"input_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input Text"},"output_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Text"},"rule_violated":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Violated"}},"type":"object","required":["id","agent_id","agent_name","agent_role","created_at","risk_score","decision","input_text","output_text","rule_violated"],"title":"ApprovalItem"},"BaselineSubmission":{"properties":{"request_id":{"type":"string","minLength":1,"title":"Request Id"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"baseline_decision":{"type":"string","pattern":"^(allowed|blocked|flagged)$","title":"Baseline Decision"},"baseline_rule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Baseline Rule"},"baseline_source":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Baseline Source","default":"manual"}},"type":"object","required":["request_id","baseline_decision"],"title":"BaselineSubmission"},"BenchmarkLanguageMetric":{"properties":{"language":{"type":"string","title":"Language","default":"all"},"category":{"type":"string","title":"Category"},"total":{"type":"integer","title":"Total"},"correct":{"type":"integer","title":"Correct"},"precision":{"type":"number","title":"Precision"},"recall":{"type":"number","title":"Recall"},"f1":{"type":"number","title":"F1","default":0},"accuracy":{"type":"number","title":"Accuracy","default":0},"false_positive_rate":{"type":"number","title":"False Positive Rate","default":0},"false_negative_rate":{"type":"number","title":"False Negative Rate","default":0},"tp":{"type":"integer","title":"Tp","default":0},"fp":{"type":"integer","title":"Fp","default":0},"tn":{"type":"integer","title":"Tn","default":0},"fn":{"type":"integer","title":"Fn","default":0}},"type":"object","required":["category","total","correct","precision","recall"],"title":"BenchmarkLanguageMetric"},"BenchmarkReport":{"properties":{"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"total_samples":{"type":"integer","title":"Total Samples"},"accuracy":{"type":"number","title":"Accuracy"},"metrics":{"items":{"$ref":"#/components/schemas/BenchmarkLanguageMetric"},"type":"array","title":"Metrics"},"overall":{"additionalProperties":true,"type":"object","title":"Overall"},"confusion_matrix":{"additionalProperties":true,"type":"object","title":"Confusion Matrix"},"latency_stats":{"additionalProperties":{"type":"number"},"type":"object","title":"Latency Stats"},"history":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"History"}},"type":"object","required":["generated_at","total_samples","accuracy"],"title":"BenchmarkReport"},"BodhEvaluationRequest":{"properties":{"model_id":{"type":"string","maxLength":200,"minLength":1,"title":"Model Id"},"dataset_reference":{"type":"string","maxLength":500,"minLength":1,"title":"Dataset Reference"}},"type":"object","required":["model_id","dataset_reference"],"title":"BodhEvaluationRequest"},"BodhEvaluationResponse":{"properties":{"passed":{"type":"boolean","title":"Passed"},"score":{"type":"number","maximum":1,"minimum":0,"title":"Score"},"bodh_certified":{"type":"boolean","title":"Bodh Certified","default":false},"model_id":{"type":"string","title":"Model Id"},"dataset_reference":{"type":"string","title":"Dataset Reference"}},"type":"object","required":["passed","score","model_id","dataset_reference"],"title":"BodhEvaluationResponse"},"Body_create_compliance_pack_from_pdf_v1_compliance_packs_from_pdf_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_create_compliance_pack_from_pdf_v1_compliance_packs_from_pdf_post"},"Body_upload_logo_v1_organization_branding_upload_logo_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_logo_v1_organization_branding_upload_logo_post"},"Body_upload_signature_v1_organization_branding_upload_signature_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_signature_v1_organization_branding_upload_signature_post"},"BreakerHistoryResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"breaker_id":{"type":"string","format":"uuid","title":"Breaker Id"},"previous_state":{"type":"string","title":"Previous State"},"new_state":{"type":"string","title":"New State"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"changed_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changed By Name"},"auto_triggered":{"type":"boolean","title":"Auto Triggered"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","breaker_id","previous_state","new_state","reason","changed_by_name","auto_triggered","created_at"],"title":"BreakerHistoryResponse"},"BreakerStatusResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"scope":{"type":"string","title":"Scope"},"scope_id":{"type":"string","format":"uuid","title":"Scope Id"},"state":{"type":"string","title":"State"},"reason":{"type":"string","title":"Reason"},"triggered_at":{"type":"string","format":"date-time","title":"Triggered At"},"auto_triggered":{"type":"boolean","title":"Auto Triggered"},"half_open_pct":{"type":"integer","title":"Half Open Pct"},"failure_count":{"type":"integer","title":"Failure Count"},"failure_threshold":{"type":"integer","title":"Failure Threshold"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"}},"type":"object","required":["id","organization_id","scope","scope_id","state","reason","triggered_at","auto_triggered","half_open_pct","failure_count","failure_threshold","expires_at"],"title":"BreakerStatusResponse"},"BudgetStatusResponse":{"properties":{"budget_inr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Budget Inr"},"current_month_spend":{"type":"number","title":"Current Month Spend"},"percent_used":{"type":"number","title":"Percent Used"},"alert_threshold_pct":{"type":"integer","title":"Alert Threshold Pct"},"estimated_overshoot_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Estimated Overshoot Date"},"status":{"type":"string","title":"Status"}},"type":"object","required":["budget_inr","current_month_spend","percent_used","alert_threshold_pct","status"],"title":"BudgetStatusResponse"},"BulkBaselinePairing":{"properties":{"request_id":{"type":"string","minLength":1,"title":"Request Id"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"baseline_decision":{"type":"string","pattern":"^(allowed|blocked|flagged)$","title":"Baseline Decision"},"baseline_rule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Baseline Rule"},"baseline_source":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Baseline Source","default":"legacy_webhook"}},"type":"object","required":["request_id","baseline_decision"],"title":"BulkBaselinePairing"},"BulkBaselineSubmission":{"properties":{"pairings":{"items":{"$ref":"#/components/schemas/BulkBaselinePairing"},"type":"array","maxItems":500,"minItems":1,"title":"Pairings"}},"type":"object","required":["pairings"],"title":"BulkBaselineSubmission"},"ChatCompletionProxyRequest":{"properties":{"model":{"type":"string","minLength":1,"title":"Model"},"messages":{"items":{"additionalProperties":true,"type":"object"},"type":"array","minItems":1,"title":"Messages"},"stream":{"type":"boolean","title":"Stream","default":false},"max_tokens":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Max Tokens"},"temperature":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Temperature"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["model","messages"],"title":"ChatCompletionProxyRequest"},"ComplianceAskRequest":{"properties":{"question":{"type":"string","maxLength":2000,"minLength":5,"title":"Question"},"scan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scan Id"}},"type":"object","required":["question"],"title":"ComplianceAskRequest"},"ComplianceAskResponse":{"properties":{"answer":{"type":"string","title":"Answer"},"citations":{"items":{"type":"string"},"type":"array","title":"Citations"},"risk_level":{"type":"string","title":"Risk Level","default":"medium"},"action_items":{"items":{"type":"string"},"type":"array","title":"Action Items"},"requires_legal_review":{"type":"boolean","title":"Requires Legal Review","default":true}},"type":"object","required":["answer"],"title":"ComplianceAskResponse"},"CompliancePackCreate":{"properties":{"name":{"type":"string","maxLength":160,"minLength":1,"title":"Name"},"region":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Region"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"rules":{"items":{"$ref":"#/components/schemas/ComplianceRule"},"type":"array","title":"Rules"}},"type":"object","required":["name"],"title":"CompliancePackCreate"},"CompliancePackResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"name":{"type":"string","title":"Name"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"rules":{"items":{"$ref":"#/components/schemas/ComplianceRule"},"type":"array","title":"Rules"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","name","region","description","rules","is_active","created_at"],"title":"CompliancePackResponse"},"CompliancePackRuleCreate":{"properties":{"id":{"type":"string","maxLength":120,"minLength":1,"title":"Id"},"description":{"type":"string","maxLength":500,"minLength":1,"title":"Description"},"type":{"type":"string","pattern":"^(regex|keyword|llm)$","title":"Type","default":"llm"},"apply_to":{"type":"string","pattern":"^(input|output|both)$","title":"Apply To","default":"output"},"prompt":{"type":"string","title":"Prompt","default":""},"pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pattern"},"severity":{"type":"string","pattern":"^(low|medium|high|critical)$","title":"Severity"},"action":{"type":"string","pattern":"^(block|flag|escalate)$","title":"Action"}},"type":"object","required":["id","description","severity","action"],"title":"CompliancePackRuleCreate"},"CompliancePackUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":160,"minLength":1},{"type":"null"}],"title":"Name"},"region":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Region"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"rules":{"anyOf":[{"items":{"$ref":"#/components/schemas/ComplianceRule"},"type":"array"},{"type":"null"}],"title":"Rules"}},"type":"object","title":"CompliancePackUpdate"},"ComplianceRule":{"properties":{"id":{"type":"string","title":"Id"},"description":{"type":"string","title":"Description"},"type":{"type":"string","title":"Type","default":"llm"},"apply_to":{"type":"string","pattern":"^(input|output|both)$","title":"Apply To","default":"output"},"prompt":{"type":"string","title":"Prompt","default":""},"pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pattern"},"severity":{"type":"string","pattern":"^(low|medium|high|critical)$","title":"Severity"},"action":{"type":"string","pattern":"^(block|flag|escalate)$","title":"Action"},"sutra":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sutra"},"crewcheck_feature":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crewcheck Feature"}},"type":"object","required":["id","description","severity","action"],"title":"ComplianceRule"},"CostDailyPoint":{"properties":{"date":{"type":"string","title":"Date"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"cost_inr":{"type":"number","title":"Cost Inr"},"prompt_tokens":{"type":"integer","title":"Prompt Tokens"},"completion_tokens":{"type":"integer","title":"Completion Tokens"}},"type":"object","required":["date","cost_inr","prompt_tokens","completion_tokens"],"title":"CostDailyPoint"},"CostSummaryResponse":{"properties":{"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"total_cost_inr":{"type":"number","title":"Total Cost Inr"},"prompt_tokens":{"type":"integer","title":"Prompt Tokens"},"completion_tokens":{"type":"integer","title":"Completion Tokens"},"total_tokens":{"type":"integer","title":"Total Tokens"}},"type":"object","required":["total_cost_inr","prompt_tokens","completion_tokens","total_tokens"],"title":"CostSummaryResponse"},"DashboardStatsResponse":{"properties":{"active_agents":{"type":"integer","title":"Active Agents"},"probation_agents":{"type":"integer","title":"Probation Agents"},"restricted_agents":{"type":"integer","title":"Restricted Agents","default":0},"terminated_agents":{"type":"integer","title":"Terminated Agents"},"recent_violations":{"type":"integer","title":"Recent Violations"},"ai_spend_month_inr":{"type":"number","title":"Ai Spend Month Inr","default":0},"budget_warning_agents":{"type":"integer","title":"Budget Warning Agents","default":0},"over_budget_agents":{"type":"integer","title":"Over Budget Agents","default":0}},"type":"object","required":["active_agents","probation_agents","terminated_agents","recent_violations"],"title":"DashboardStatsResponse"},"DataProductConsentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"consent_type":{"type":"string","title":"Consent Type"},"status":{"type":"string","title":"Status"},"notice_version":{"type":"string","title":"Notice Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","consent_type","status","notice_version","created_at"],"title":"DataProductConsentResponse"},"DecisionStatus":{"type":"string","enum":["allowed","blocked","escalated","flagged"],"title":"DecisionStatus"},"EmergencyReleaseRequest":{"properties":{"release_token":{"type":"string","minLength":1,"title":"Release Token"}},"type":"object","required":["release_token"],"title":"EmergencyReleaseRequest"},"EmergencyStopRequest":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"EmergencyStopRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HalfOpenRequest":{"properties":{"scope":{"type":"string","pattern":"^(agent|organization|stream_config)$","title":"Scope"},"scope_id":{"type":"string","format":"uuid","title":"Scope Id"},"half_open_pct":{"type":"integer","maximum":100,"minimum":1,"title":"Half Open Pct","default":10},"reason":{"type":"string","maxLength":1000,"title":"Reason","default":"Transitioning to half-open for testing"}},"type":"object","required":["scope","scope_id"],"title":"HalfOpenRequest"},"IndustryBenchmarkResponse":{"properties":{"your_pass_rate":{"type":"number","title":"Your Pass Rate"},"benchmarking_opt_in":{"type":"boolean","title":"Benchmarking Opt In"}},"type":"object","required":["your_pass_rate","benchmarking_opt_in"],"title":"IndustryBenchmarkResponse"},"IntegrationConfigField":{"properties":{"name":{"type":"string","title":"Name"},"label":{"type":"string","title":"Label"},"type":{"type":"string","title":"Type","default":"text"},"required":{"type":"boolean","title":"Required","default":false},"placeholder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Placeholder"}},"type":"object","required":["name","label"],"title":"IntegrationConfigField"},"IntegrationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"connector_type":{"type":"string","title":"Connector Type"},"config_schema":{"items":{"$ref":"#/components/schemas/IntegrationConfigField"},"type":"array","title":"Config Schema"},"is_active":{"type":"boolean","title":"Is Active","default":true},"connected":{"type":"boolean","title":"Connected","default":false},"organization_integration_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Integration Id"},"enabled":{"type":"boolean","title":"Enabled","default":false},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"}},"type":"object","required":["id","name","connector_type"],"title":"IntegrationResponse"},"LogSearchResult":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"agent_name":{"type":"string","title":"Agent Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"event_type":{"type":"string","title":"Event Type"},"decision":{"$ref":"#/components/schemas/DecisionStatus"},"risk_score":{"type":"integer","title":"Risk Score"},"rule_violated":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Violated"},"input_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input Text"},"output_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Text"}},"type":"object","required":["id","agent_id","agent_name","created_at","event_type","decision","risk_score","rule_violated","input_text","output_text"],"title":"LogSearchResult"},"MysteryShopperPassRate":{"properties":{"total_runs":{"type":"integer","title":"Total Runs"},"passed_runs":{"type":"integer","title":"Passed Runs"},"pass_rate":{"type":"number","title":"Pass Rate"}},"type":"object","required":["total_runs","passed_runs","pass_rate"],"title":"MysteryShopperPassRate"},"MysteryShopperRunRequest":{"properties":{"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"adversarial_prompts":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":25},{"type":"null"}],"title":"Adversarial Prompts"}},"type":"object","required":["agent_id"],"title":"MysteryShopperRunRequest"},"MysteryShopperRunResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"adversarial_prompt":{"type":"string","title":"Adversarial Prompt"},"agent_response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Response"},"pass":{"type":"boolean","title":"Pass"},"trust_impact":{"type":"integer","title":"Trust Impact"},"run_at":{"type":"string","format":"date-time","title":"Run At"},"rule_violated":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Violated"},"explanation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Explanation"}},"type":"object","required":["id","agent_id","adversarial_prompt","agent_response","pass","trust_impact","run_at"],"title":"MysteryShopperRunResponse"},"OrganizationIntegrationCreate":{"properties":{"integration_id":{"type":"string","format":"uuid","title":"Integration Id"},"config":{"additionalProperties":true,"type":"object","title":"Config"},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["integration_id"],"title":"OrganizationIntegrationCreate"},"OrganizationIntegrationUpdate":{"properties":{"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"type":"object","title":"OrganizationIntegrationUpdate"},"OrganizationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"onboarding_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Onboarding Completed At"}},"type":"object","required":["id","name"],"title":"OrganizationResponse"},"OrganizationSettingsResponse":{"properties":{"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"primary_color":{"type":"string","title":"Primary Color","default":"222.2 47.4% 11.2%"},"accent_color":{"type":"string","title":"Accent Color","default":"217.2 91.2% 59.8%"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"signature_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signature Url"},"benchmarking_opt_in":{"type":"boolean","title":"Benchmarking Opt In","default":false},"pii_redaction_enabled":{"type":"boolean","title":"Pii Redaction Enabled","default":true},"slack_webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack Webhook Url"},"openai_api_key_configured":{"type":"boolean","title":"Openai Api Key Configured","default":false},"anthropic_api_key_configured":{"type":"boolean","title":"Anthropic Api Key Configured","default":false},"deepseek_api_key_configured":{"type":"boolean","title":"Deepseek Api Key Configured","default":false},"azure_openai_api_key_configured":{"type":"boolean","title":"Azure Openai Api Key Configured","default":false},"has_openai_key":{"type":"boolean","title":"Has Openai Key","default":false},"has_anthropic_key":{"type":"boolean","title":"Has Anthropic Key","default":false},"has_deepseek_key":{"type":"boolean","title":"Has Deepseek Key","default":false},"has_azure_openai_key":{"type":"boolean","title":"Has Azure Openai Key","default":false},"azure_openai_resource":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Azure Openai Resource"},"azure_openai_deployment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Azure Openai Deployment"},"azure_openai_api_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Azure Openai Api Version"},"streaming_guard_mode":{"type":"string","title":"Streaming Guard Mode","default":"post_check"},"shadow_mode_enabled":{"type":"boolean","title":"Shadow Mode Enabled","default":false},"shadow_mode_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Shadow Mode Expires At"},"fail_mode":{"type":"string","title":"Fail Mode","default":"open"},"evaluation_thresholds":{"additionalProperties":true,"type":"object","title":"Evaluation Thresholds"},"production_eval_enabled":{"type":"boolean","title":"Production Eval Enabled","default":false},"production_eval_sample_rate":{"type":"number","title":"Production Eval Sample Rate","default":0.01},"high_risk_data":{"type":"boolean","title":"High Risk Data","default":false},"legacy_system_webhook_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legacy System Webhook Secret"}},"type":"object","title":"OrganizationSettingsResponse"},"OrganizationSettingsUpdate":{"properties":{"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"primary_color":{"type":"string","maxLength":64,"minLength":3,"title":"Primary Color","default":"222.2 47.4% 11.2%"},"accent_color":{"type":"string","maxLength":64,"minLength":3,"title":"Accent Color","default":"217.2 91.2% 59.8%"},"company_name":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Company Name"},"signature_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Signature Url"},"benchmarking_opt_in":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Benchmarking Opt In"},"pii_redaction_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pii Redaction Enabled"},"slack_webhook_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Slack Webhook Url"},"openai_api_key":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Openai Api Key"},"anthropic_api_key":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Anthropic Api Key"},"deepseek_api_key":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Deepseek Api Key"},"azure_openai_api_key":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Azure Openai Api Key"},"azure_openai_resource":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Azure Openai Resource"},"azure_openai_deployment":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Azure Openai Deployment"},"azure_openai_api_version":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Azure Openai Api Version"},"streaming_guard_mode":{"anyOf":[{"type":"string","pattern":"^(post_check|pre_block)$"},{"type":"null"}],"title":"Streaming Guard Mode"},"fail_mode":{"anyOf":[{"type":"string","pattern":"^(open|closed)$"},{"type":"null"}],"title":"Fail Mode"},"evaluation_thresholds":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Evaluation Thresholds"},"production_eval_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Production Eval Enabled"},"production_eval_sample_rate":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"Production Eval Sample Rate"},"high_risk_data":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"High Risk Data"},"legacy_system_webhook_secret":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Legacy System Webhook Secret"}},"type":"object","title":"OrganizationSettingsUpdate"},"OrganizationUpdate":{"properties":{"name":{"type":"string","maxLength":160,"minLength":1,"title":"Name"},"industry":{"type":"string","maxLength":80,"minLength":1,"title":"Industry"},"region":{"type":"string","maxLength":80,"minLength":1,"title":"Region"}},"type":"object","required":["name","industry","region"],"title":"OrganizationUpdate"},"PluginMetadata":{"properties":{"name":{"type":"string","title":"Name"},"version":{"type":"string","title":"Version"},"description":{"type":"string","title":"Description","default":""},"enabled":{"type":"boolean","title":"Enabled","default":false},"has_settings":{"type":"boolean","title":"Has Settings","default":false}},"type":"object","required":["name","version"],"title":"PluginMetadata"},"PrivacyEraseRequest":{"properties":{"confirm":{"type":"boolean","title":"Confirm","default":false}},"type":"object","title":"PrivacyEraseRequest"},"PrivacyRequestResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["job_id","status"],"title":"PrivacyRequestResponse"},"ProfileResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"role":{"$ref":"#/components/schemas/UserRole"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"}},"type":"object","required":["id","organization_id","role"],"title":"ProfileResponse"},"RefreshResponse":{"properties":{"telemetry_rows":{"type":"integer","title":"Telemetry Rows"},"snapshot_rows":{"type":"integer","title":"Snapshot Rows"}},"type":"object","required":["telemetry_rows","snapshot_rows"],"title":"RefreshResponse"},"ResearchPanelResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"consent_id":{"type":"string","format":"uuid","title":"Consent Id"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","consent_id","status","created_at"],"title":"ResearchPanelResponse"},"ResearchPanelSignup":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","title":"Email"},"name":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Name"},"role":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Role"},"company_domain":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Company Domain"},"topics":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Topics"},"consent_text":{"type":"string","maxLength":2000,"minLength":20,"title":"Consent Text","default":"I agree to join CrewCheck research panels. CrewCheck may contact me for surveys or interviews and may sell only aggregated research findings that do not identify me or my company without permission."},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["email"],"title":"ResearchPanelSignup"},"ResetRequest":{"properties":{"scope":{"type":"string","pattern":"^(agent|organization|stream_config)$","title":"Scope"},"scope_id":{"type":"string","format":"uuid","title":"Scope Id"},"reason":{"type":"string","maxLength":1000,"title":"Reason","default":"Manual reset"}},"type":"object","required":["scope","scope_id"],"title":"ResetRequest"},"RiskCheckRequest":{"properties":{"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"prompt":{"type":"string","minLength":1,"title":"Prompt"},"model_output":{"type":"string","minLength":1,"title":"Model Output"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"consent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Id"}},"type":"object","required":["agent_id","prompt","model_output"],"title":"RiskCheckRequest"},"RiskCheckResponse":{"properties":{"status":{"$ref":"#/components/schemas/DecisionStatus"},"rule_violated":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Violated"},"risk_score":{"type":"integer","maximum":100,"minimum":0,"title":"Risk Score"},"decision_reason":{"type":"string","title":"Decision Reason"},"source":{"type":"string","title":"Source","default":"core"}},"type":"object","required":["status","rule_violated","risk_score","decision_reason"],"title":"RiskCheckResponse"},"ScanEvent":{"properties":{"type":{"$ref":"#/components/schemas/ScanEventType"},"message":{"type":"string","title":"Message"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"data":{"additionalProperties":true,"type":"object","title":"Data"}},"type":"object","required":["type","message","timestamp"],"title":"ScanEvent"},"ScanEventType":{"type":"string","enum":["scout_start","scout_crawling","scout_privacy_found","scout_trackers","shadow_ai","auditor_start","auditor_critical","auditor_complete","report_generating","report_complete","scan_complete","scan_error"],"title":"ScanEventType"},"ScanFinding":{"properties":{"check_id":{"type":"integer","title":"Check Id"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"severity":{"type":"string","title":"Severity"},"status":{"type":"string","title":"Status"},"regulation":{"type":"string","title":"Regulation"},"remediation":{"type":"string","title":"Remediation","default":""},"details":{"type":"string","title":"Details","default":""}},"type":"object","required":["check_id","title","description","severity","status","regulation"],"title":"ScanFinding"},"ScanHistoryItem":{"properties":{"id":{"type":"string","title":"Id"},"url":{"type":"string","title":"Url"},"status":{"$ref":"#/components/schemas/ScanStatus"},"overall_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Overall Score"},"sutra_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sutra Score"},"breach_readiness_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Breach Readiness Score"},"critical_count":{"type":"integer","title":"Critical Count","default":0},"high_count":{"type":"integer","title":"High Count","default":0},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","url","status"],"title":"ScanHistoryItem"},"ScanRequest":{"properties":{"url":{"type":"string","maxLength":2048,"minLength":3,"title":"Url"},"email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Email"},"share_with_vendors":{"type":"boolean","title":"Share With Vendors","default":false},"requested_vendor_categories":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Requested Vendor Categories"},"company_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Company Name"},"contact_name":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Contact Name"},"vendor_referral_consent_text":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Vendor Referral Consent Text"}},"type":"object","required":["url"],"title":"ScanRequest"},"ScanResultResponse":{"properties":{"id":{"type":"string","title":"Id"},"url":{"type":"string","title":"Url"},"status":{"$ref":"#/components/schemas/ScanStatus"},"overall_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Overall Score"},"sutra_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sutra Score"},"breach_readiness_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Breach Readiness Score"},"critical_count":{"type":"integer","title":"Critical Count","default":0},"high_count":{"type":"integer","title":"High Count","default":0},"medium_count":{"type":"integer","title":"Medium Count","default":0},"low_count":{"type":"integer","title":"Low Count","default":0},"pass_count":{"type":"integer","title":"Pass Count","default":0},"findings":{"items":{"$ref":"#/components/schemas/ScanFinding"},"type":"array","title":"Findings"},"sutra_scores":{"items":{"$ref":"#/components/schemas/SutraScoreItem"},"type":"array","title":"Sutra Scores"},"shadow_ai_endpoints":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Shadow Ai Endpoints"},"trackers_detected":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Trackers Detected"},"languages_detected":{"items":{"type":"string"},"type":"array","title":"Languages Detected"},"pages_crawled":{"type":"integer","title":"Pages Crawled","default":0},"events":{"items":{"$ref":"#/components/schemas/ScanEvent"},"type":"array","title":"Events"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"pdf_available":{"type":"boolean","title":"Pdf Available","default":false},"has_consent_banner":{"type":"boolean","title":"Has Consent Banner","default":false},"consent_banner_has_reject":{"type":"boolean","title":"Consent Banner Has Reject","default":false},"privacy_policy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Privacy Policy Url"},"healthcare_specific":{"type":"boolean","title":"Healthcare Specific","default":false},"health_data_collection_detected":{"type":"boolean","title":"Health Data Collection Detected","default":false},"abha_ids_detected":{"items":{"type":"string"},"type":"array","title":"Abha Ids Detected"},"abdm_statement_found":{"type":"boolean","title":"Abdm Statement Found","default":false},"health_data_privacy_section_found":{"type":"boolean","title":"Health Data Privacy Section Found","default":false},"high_risk_consent_found":{"type":"boolean","title":"High Risk Consent Found","default":false},"telemedicine_detected":{"type":"boolean","title":"Telemedicine Detected","default":false},"encryption_notice_found":{"type":"boolean","title":"Encryption Notice Found","default":false},"bodh_mentioned":{"type":"boolean","title":"Bodh Mentioned","default":false},"sahi_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sahi Score"},"sahi_findings":{"items":{"$ref":"#/components/schemas/ScanFinding"},"type":"array","title":"Sahi Findings"}},"type":"object","required":["id","url","status"],"title":"ScanResultResponse"},"ScanStatus":{"type":"string","enum":["pending","crawling","analyzing","generating_report","completed","failed"],"title":"ScanStatus"},"SearchResponse":{"properties":{"agents":{"items":{"$ref":"#/components/schemas/AgentSearchResult"},"type":"array","title":"Agents"},"logs":{"items":{"$ref":"#/components/schemas/LogSearchResult"},"type":"array","title":"Logs"}},"type":"object","title":"SearchResponse"},"ShadowSettingsUpdate":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"expires_in_days":{"anyOf":[{"type":"integer","maximum":365,"minimum":1},{"type":"null"}],"title":"Expires In Days"}},"type":"object","required":["enabled"],"title":"ShadowSettingsUpdate"},"SimulateAgentRequest":{"properties":{"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"prompt":{"type":"string","minLength":1,"title":"Prompt"}},"type":"object","required":["agent_id","prompt"],"title":"SimulateAgentRequest"},"SimulateAgentResponse":{"properties":{"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"prompt":{"type":"string","title":"Prompt"},"response":{"type":"string","title":"Response"}},"type":"object","required":["agent_id","prompt","response"],"title":"SimulateAgentResponse"},"SnapshotResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"snapshot_date":{"type":"string","title":"Snapshot Date"},"source_kind":{"type":"string","title":"Source Kind"},"segment_type":{"type":"string","title":"Segment Type"},"segment_key":{"type":"string","title":"Segment Key"},"sample_size":{"type":"integer","title":"Sample Size"},"min_k_anonymity":{"type":"integer","title":"Min K Anonymity"},"publishable":{"type":"boolean","title":"Publishable"},"metrics":{"additionalProperties":true,"type":"object","title":"Metrics"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","snapshot_date","source_kind","segment_type","segment_key","sample_size","min_k_anonymity","publishable","metrics","created_at"],"title":"SnapshotResponse"},"Soc2Control":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"implemented":{"type":"boolean","title":"Implemented"}},"type":"object","required":["id","name","description","implemented"],"title":"Soc2Control"},"StreamAuditConfigCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"kafka_brokers":{"type":"string","minLength":1,"title":"Kafka Brokers"},"source_topic":{"type":"string","minLength":1,"title":"Source Topic"},"dead_letter_topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dead Letter Topic"},"approved_topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved Topic"},"schema_registry_url":{"type":"string","minLength":1,"title":"Schema Registry Url"},"schema_subject":{"type":"string","minLength":1,"title":"Schema Subject"},"key_schema_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Schema Subject"},"message_ai_field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Ai Field"},"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"behavior":{"type":"string","pattern":"^(block|flag|pass)$","title":"Behavior","default":"block"},"enabled":{"type":"boolean","title":"Enabled","default":false},"fhir_conversion_enabled":{"type":"boolean","title":"Fhir Conversion Enabled","default":false}},"type":"object","required":["name","kafka_brokers","source_topic","schema_registry_url","schema_subject","agent_id"],"title":"StreamAuditConfigCreate"},"StreamAuditConfigResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"kafka_brokers":{"type":"string","title":"Kafka Brokers"},"source_topic":{"type":"string","title":"Source Topic"},"dead_letter_topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dead Letter Topic"},"approved_topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved Topic"},"schema_registry_url":{"type":"string","title":"Schema Registry Url"},"schema_subject":{"type":"string","title":"Schema Subject"},"key_schema_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Schema Subject"},"message_ai_field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Ai Field"},"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"behavior":{"type":"string","title":"Behavior"},"enabled":{"type":"boolean","title":"Enabled"},"fhir_conversion_enabled":{"type":"boolean","title":"Fhir Conversion Enabled","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"recent_events_count":{"type":"integer","title":"Recent Events Count","default":0}},"type":"object","required":["id","organization_id","name","kafka_brokers","source_topic","dead_letter_topic","approved_topic","schema_registry_url","schema_subject","key_schema_subject","message_ai_field","agent_id","behavior","enabled","created_at","updated_at"],"title":"StreamAuditConfigResponse"},"StreamAuditConfigUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"kafka_brokers":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Kafka Brokers"},"source_topic":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Source Topic"},"dead_letter_topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dead Letter Topic"},"approved_topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved Topic"},"schema_registry_url":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Schema Registry Url"},"schema_subject":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Schema Subject"},"key_schema_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Schema Subject"},"message_ai_field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Ai Field"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"behavior":{"anyOf":[{"type":"string","pattern":"^(block|flag|pass)$"},{"type":"null"}],"title":"Behavior"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"fhir_conversion_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Fhir Conversion Enabled"}},"type":"object","title":"StreamAuditConfigUpdate"},"StreamAuditEventCreate":{"properties":{"config_id":{"type":"string","format":"uuid","title":"Config Id"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"kafka_topic":{"type":"string","title":"Kafka Topic"},"kafka_partition":{"type":"integer","title":"Kafka Partition"},"kafka_offset":{"type":"integer","title":"Kafka Offset"},"message_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Key"},"message_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Value"},"ai_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Text"},"risk_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Risk Score"},"decision":{"type":"string","pattern":"^(allowed|blocked|flagged)$","title":"Decision"},"rule_violated":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Violated"},"trust_ledger_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Trust Ledger Id"},"is_shadow":{"type":"boolean","title":"Is Shadow","default":false}},"type":"object","required":["config_id","kafka_topic","kafka_partition","kafka_offset","decision"],"title":"StreamAuditEventCreate","description":"Used by the internal API for the streamguard service to log events."},"StreamAuditEventResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"config_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Config Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"kafka_topic":{"type":"string","title":"Kafka Topic"},"kafka_partition":{"type":"integer","title":"Kafka Partition"},"kafka_offset":{"type":"integer","title":"Kafka Offset"},"message_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Key"},"message_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Value"},"ai_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Text"},"risk_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Risk Score"},"decision":{"type":"string","title":"Decision"},"rule_violated":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Violated"},"trust_ledger_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Trust Ledger Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","config_id","organization_id","agent_id","kafka_topic","kafka_partition","kafka_offset","message_key","message_value","ai_text","risk_score","decision","rule_violated","trust_ledger_id","created_at"],"title":"StreamAuditEventResponse"},"SutraScoreItem":{"properties":{"sutra_number":{"type":"integer","title":"Sutra Number"},"sutra_name":{"type":"string","title":"Sutra Name"},"status":{"type":"string","title":"Status"},"score":{"type":"integer","title":"Score"},"findings":{"items":{"type":"string"},"type":"array","title":"Findings"}},"type":"object","required":["sutra_number","sutra_name","status","score"],"title":"SutraScoreItem"},"TopViolationRule":{"properties":{"rule":{"type":"string","title":"Rule"},"count":{"type":"integer","title":"Count"},"agent_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Agent Ids"}},"type":"object","required":["rule","count"],"title":"TopViolationRule"},"TripRequest":{"properties":{"scope":{"type":"string","pattern":"^(agent|organization|stream_config)$","title":"Scope"},"scope_id":{"type":"string","format":"uuid","title":"Scope Id"},"reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Reason"},"half_open_pct":{"type":"integer","maximum":100,"minimum":1,"title":"Half Open Pct","default":10},"failure_threshold":{"type":"integer","maximum":100,"minimum":1,"title":"Failure Threshold","default":3},"expires_in_minutes":{"anyOf":[{"type":"integer","maximum":43200,"minimum":1},{"type":"null"}],"title":"Expires In Minutes"}},"type":"object","required":["scope","scope_id","reason"],"title":"TripRequest"},"TrustDistributionBucket":{"properties":{"bucket":{"type":"string","title":"Bucket"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["bucket","count"],"title":"TrustDistributionBucket"},"TrustHistoryPoint":{"properties":{"ledger_id":{"type":"string","format":"uuid","title":"Ledger Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"trust_score":{"type":"integer","title":"Trust Score"},"event_type":{"type":"string","title":"Event Type"},"decision":{"$ref":"#/components/schemas/DecisionStatus"},"risk_score":{"type":"integer","title":"Risk Score"}},"type":"object","required":["ledger_id","created_at","trust_score","event_type","decision","risk_score"],"title":"TrustHistoryPoint"},"UserRole":{"type":"string","enum":["admin","manager","readonly"],"title":"UserRole"},"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"},"VendorLeadCreate":{"properties":{"contact_email":{"type":"string","maxLength":320,"minLength":3,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$","title":"Contact Email"},"contact_name":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Contact Name"},"company_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Company Name"},"company_domain":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Company Domain"},"requested_categories":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Requested Categories"},"problem_summary":{"type":"string","maxLength":1200,"minLength":20,"title":"Problem Summary"},"consent_text":{"type":"string","maxLength":2000,"minLength":20,"title":"Consent Text","default":"I agree that CrewCheck may share my contact details, company domain, scan summary, and selected remediation needs with relevant compliance, security, or AI-governance vendors so they can contact me."},"source":{"type":"string","pattern":"^(public_scan|manual|vendor_lead)$","title":"Source","default":"manual"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["contact_email","problem_summary"],"title":"VendorLeadCreate"},"VendorLeadResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"consent_id":{"type":"string","format":"uuid","title":"Consent Id"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","consent_id","status","created_at"],"title":"VendorLeadResponse"},"VendorPerformanceCreate":{"properties":{"vendor_name":{"type":"string","maxLength":200,"minLength":1,"title":"Vendor Name"},"category":{"type":"string","maxLength":120,"minLength":1,"title":"Category"},"implementation_days":{"anyOf":[{"type":"integer","maximum":3650,"minimum":0},{"type":"null"}],"title":"Implementation Days"},"requested_integration":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Requested Integration"},"missing_clause":{"anyOf":[{"type":"string","maxLength":240},{"type":"null"}],"title":"Missing Clause"},"false_positive_rate":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"title":"False Positive Rate"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["vendor_name","category"],"title":"VendorPerformanceCreate"},"VendorPerformanceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","created_at"],"title":"VendorPerformanceResponse"},"ViolationTrendPoint":{"properties":{"date":{"type":"string","title":"Date"},"low":{"type":"integer","title":"Low","default":0},"medium":{"type":"integer","title":"Medium","default":0},"high":{"type":"integer","title":"High","default":0}},"type":"object","required":["date"],"title":"ViolationTrendPoint"}}},"tags":[{"name":"system","description":"Health checks and system-level platform status."},{"name":"analytics","description":"Gateway reporting, violation trends, and trust distribution."},{"name":"agents","description":"AI App management, trust posture, and attached policy packs."},{"name":"proxy","description":"CrewCheck gateway and live request enforcement endpoints."},{"name":"risk","description":"Direct guardrail checks for prompts and model outputs."}]}