{"openapi":"3.1.0","info":{"title":"budapp","version":"nightly"},"paths":{"/":{"get":{"tags":["Metadata"],"summary":"Ping","description":"Get microservice details.","operationId":"ping__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}}}}},"/health":{"get":{"tags":["Metadata"],"summary":"Health","description":"Get microservice health.","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}}}}},"/sync/configurations":{"get":{"tags":["Sync"],"summary":"Sync Configurations","description":"Sync microservice configuration from a supported configstore.","operationId":"sync_configurations_sync_configurations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"503":{"description":"Service is unavailable due to a misconfigured configuration store","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/sync/secrets":{"get":{"tags":["Sync"],"summary":"Sync Secrets","description":"Sync microservice secrets from a supported secret store.","operationId":"sync_secrets_sync_secrets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"503":{"description":"Service is unavailable due to a misconfigured secret store","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/register":{"get":{"tags":["Sync"],"summary":"Register Service","description":"Register the microservice to the ecosystem.","operationId":"register_service_register_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service registration failures due to internal issues.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/workflow/{workflow_id}/status":{"get":{"tags":["Workflows"],"summary":"Get Workflow Status","description":"Retrieve the status of a specific workflow.\n\nThis endpoint allows clients to check the current status of a workflow\nidentified by the provided workflow ID. It returns the status information\nwhich can be used to determine if the workflow is still running, completed,\nor has encountered an error.\n\nArgs:\n    workflow_id (str): The unique identifier of the workflow whose status\n    is to be retrieved.\n\nReturns:\n    HTTP response containing the status of the specified workflow.","operationId":"get_workflow_status_workflow__workflow_id__status_get","parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflow/{workflow_id}/stop":{"delete":{"tags":["Workflows"],"summary":"Stop Workflow","description":"Stop a workflow by its ID.","operationId":"stop_workflow_workflow__workflow_id__stop_delete","parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflow/{workflow_id}/pause":{"post":{"tags":["Workflows"],"summary":"Pause Workflow","description":"Pause a workflow by its ID.","operationId":"pause_workflow_workflow__workflow_id__pause_post","parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflow/{workflow_id}/resume":{"post":{"tags":["Workflows"],"summary":"Resume Workflow","description":"Resume a workflow by its ID.","operationId":"resume_workflow_workflow__workflow_id__resume_post","parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflow/{workflow_id}/restart":{"post":{"tags":["Workflows"],"summary":"Restart Workflow","description":"Restart a workflow by its ID.","operationId":"restart_workflow_workflow__workflow_id__restart_post","parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/alerts/rules":{"get":{"tags":["Alerts"],"summary":"List Alert Rules","description":"List alert rules: built-ins (with any override) first, then custom rules.","operationId":"list_alert_rules_alerts_rules_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"include_disabled","in":"query","required":false,"schema":{"type":"boolean","description":"Include disabled rules","default":true,"title":"Include Disabled"},"description":"Include disabled rules"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertRuleListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Alert Rules Alerts Rules Get","$ref":"#/components/schemas/AlertRuleListResponse"}}}},"400":{"description":"Rejected by the alerting service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Rule, cluster or endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid rule or filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Alerting service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}},"post":{"tags":["Alerts"],"summary":"Create Alert Rule","description":"Create a custom alert rule. cluster_ids are budapp cluster ids; [] means every cluster.","operationId":"create_alert_rule_alerts_rules_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleInput"}}}},"responses":{"201":{"description":"Alert rule created","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertRuleResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Create Alert Rule Alerts Rules Post","$ref":"#/components/schemas/AlertRuleResponse"}}}},"400":{"description":"Rejected by the alerting service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Rule, cluster or endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid rule or filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Alerting service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/alerts/rules/preview":{"post":{"tags":["Alerts"],"summary":"Preview Alert Rule","description":"Evaluate a rule now without saving it: up to 200 groups, matching groups first.","operationId":"preview_alert_rule_alerts_rules_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleInput"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertPreviewResponse","anyOf":[{"$ref":"#/components/schemas/AlertPreviewResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Preview Alert Rule Alerts Rules Preview Post"}}}},"400":{"description":"Rejected by the alerting service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Rule, cluster or endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid rule or filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Alerting service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/alerts/rules/{rule_id}":{"get":{"tags":["Alerts"],"summary":"Get Alert Rule","description":"Get one alert rule.","operationId":"get_alert_rule_alerts_rules__rule_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertRuleResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Alert Rule Alerts Rules  Rule Id  Get","$ref":"#/components/schemas/AlertRuleResponse"}}}},"400":{"description":"Rejected by the alerting service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Rule, cluster or endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid rule or filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Alerting service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}},"put":{"tags":["Alerts"],"summary":"Update Alert Rule","description":"Replace an alert rule. Editing a built-in stores an override; reset restores the default.","operationId":"update_alert_rule_alerts_rules__rule_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertRuleInput"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertRuleResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Update Alert Rule Alerts Rules  Rule Id  Put","$ref":"#/components/schemas/AlertRuleResponse"}}}},"400":{"description":"Rejected by the alerting service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Rule, cluster or endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid rule or filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Alerting service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}},"delete":{"tags":["Alerts"],"summary":"Delete Alert Rule","description":"Delete a custom alert rule. A built-in can't be deleted (400): disable it instead.","operationId":"delete_alert_rule_alerts_rules__rule_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Alert Rule Alerts Rules  Rule Id  Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"400":{"description":"Rejected by the alerting service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Rule, cluster or endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid rule or filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Alerting service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/alerts/rules/{rule_id}/reset":{"post":{"tags":["Alerts"],"summary":"Reset Alert Rule","description":"Reset a built-in rule to its default. A custom rule returns 400.","operationId":"reset_alert_rule_alerts_rules__rule_id__reset_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertRuleResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Reset Alert Rule Alerts Rules  Rule Id  Reset Post","$ref":"#/components/schemas/AlertRuleResponse"}}}},"400":{"description":"Rejected by the alerting service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Rule, cluster or endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid rule or filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Alerting service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/alerts/active":{"get":{"tags":["Alerts"],"summary":"List Active Alerts","description":"Firing alerts, newest first. cluster_id is a budapp cluster id (404 if unknown); endpoint_id narrows to that deployment's cluster and namespace.","operationId":"list_active_alerts_alerts_active_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"budapp cluster id","title":"Cluster Id"},"description":"budapp cluster id"},{"name":"endpoint_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"budapp endpoint id","title":"Endpoint Id"},"description":"budapp endpoint id"},{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Kubernetes namespace","title":"Namespace"},"description":"Kubernetes namespace"},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"enum":["info","warning","critical"],"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"rule_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rule Id"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ActiveAlertListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Active Alerts Alerts Active Get","$ref":"#/components/schemas/ActiveAlertListResponse"}}}},"400":{"description":"Rejected by the alerting service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Rule, cluster or endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid rule or filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Alerting service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/alerts/events":{"get":{"tags":["Alerts"],"summary":"List Alert Events","description":"Alert history (firing and resolved), paged. Defaults to the last 7 days.","operationId":"list_alert_events_alerts_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start of the range (ISO-8601)","title":"From"},"description":"Start of the range (ISO-8601)"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End of the range (ISO-8601)","title":"To"},"description":"End of the range (ISO-8601)"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["firing","resolved"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"enum":["info","warning","critical"],"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"rule_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rule Id"}},{"name":"cluster_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"budapp cluster id","title":"Cluster Id"},"description":"budapp cluster id"},{"name":"endpoint_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"budapp endpoint id","title":"Endpoint Id"},"description":"budapp endpoint id"},{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Kubernetes namespace","title":"Namespace"},"description":"Kubernetes namespace"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertEventListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Alert Events Alerts Events Get","$ref":"#/components/schemas/AlertEventListResponse"}}}},"400":{"description":"Rejected by the alerting service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Rule, cluster or endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid rule or filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Alerting service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/alerts/metrics":{"get":{"tags":["Alerts"],"summary":"List Alert Metrics","description":"The metric catalog for the rule editor: known series plus any seen in the last hour.","operationId":"list_alert_metrics_alerts_metrics_get","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertMetricListResponse","anyOf":[{"$ref":"#/components/schemas/AlertMetricListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Alert Metrics Alerts Metrics Get"}}}},"400":{"description":"Rejected by the alerting service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Rule, cluster or endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid rule or filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Alerting service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/alerts/evaluate":{"post":{"tags":["Alerts"],"summary":"Evaluate Alerts","description":"Run one evaluation cycle now (normally driven by the every-minute cron).","operationId":"evaluate_alerts_alerts_evaluate_post","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertEvaluationResponse","anyOf":[{"$ref":"#/components/schemas/AlertEvaluationResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Evaluate Alerts Alerts Evaluate Post"}}}},"400":{"description":"Rejected by the alerting service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Rule, cluster or endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid rule or filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Alerting service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/endpoints/{endpoint_id}/alerts/active":{"get":{"tags":["Alerts"],"summary":"List Endpoint Active Alerts","description":"This deployment's firing alerts, newest first.","operationId":"list_endpoint_active_alerts_endpoints__endpoint_id__alerts_active_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"enum":["info","warning","critical"],"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"rule_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rule Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ActiveAlertListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Endpoint Active Alerts Endpoints  Endpoint Id  Alerts Active Get","$ref":"#/components/schemas/ActiveAlertListResponse"}}}},"400":{"description":"Rejected by the alerting service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Rule, cluster or endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid rule or filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Alerting service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"No access to the deployment's project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/endpoints/{endpoint_id}/alerts/events":{"get":{"tags":["Alerts"],"summary":"List Endpoint Alert Events","description":"This deployment's alert history (firing and resolved), paged. Defaults to the last 7 days.","operationId":"list_endpoint_alert_events_endpoints__endpoint_id__alerts_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start of the range (ISO-8601)","title":"From"},"description":"Start of the range (ISO-8601)"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End of the range (ISO-8601)","title":"To"},"description":"End of the range (ISO-8601)"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["firing","resolved"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"enum":["info","warning","critical"],"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"rule_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rule Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertEventListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Endpoint Alert Events Endpoints  Endpoint Id  Alerts Events Get","$ref":"#/components/schemas/AlertEventListResponse"}}}},"400":{"description":"Rejected by the alerting service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Rule, cluster or endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid rule or filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Alerting service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"No access to the deployment's project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/endpoints/{endpoint_id}/alerts/rules":{"get":{"tags":["Alerts"],"summary":"List Endpoint Alert Rules","description":"The rules that watch this deployment: its own rules (applies_to=this_deployment) first, then the built-ins in catalog order, then other global deployment rules (applies_to=all_deployments, read-only here). Cluster-scope rules and other deployments' rules are left out.","operationId":"list_endpoint_alert_rules_endpoints__endpoint_id__alerts_rules_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"include_disabled","in":"query","required":false,"schema":{"type":"boolean","description":"Include disabled rules","default":true,"title":"Include Disabled"},"description":"Include disabled rules"},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EndpointRuleListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Endpoint Alert Rules Endpoints  Endpoint Id  Alerts Rules Get","$ref":"#/components/schemas/EndpointRuleListResponse"}}}},"400":{"description":"Rejected by the alerting service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Rule, cluster or endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid rule or filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Alerting service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"No access to the deployment's project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}},"post":{"tags":["Alerts"],"summary":"Create Endpoint Alert Rule","description":"Create a rule for this deployment. budapp sets scope=deployment, cluster_ids=[the deployment's cluster] and every condition's namespace filter to the deployment's namespace; any scope or cluster_ids sent is ignored.","operationId":"create_endpoint_alert_rule_endpoints__endpoint_id__alerts_rules_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointRuleInput"}}}},"responses":{"201":{"description":"Alert rule created","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EndpointRuleResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Create Endpoint Alert Rule Endpoints  Endpoint Id  Alerts Rules Post","$ref":"#/components/schemas/EndpointRuleResponse"}}}},"400":{"description":"Rejected by the alerting service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Rule, cluster or endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid rule or filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Alerting service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"No access to the deployment's project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/endpoints/{endpoint_id}/alerts/rules/preview":{"post":{"tags":["Alerts"],"summary":"Preview Endpoint Alert Rule","description":"Evaluate a rule for this deployment now, scoped as a create would scope it, without saving it.","operationId":"preview_endpoint_alert_rule_endpoints__endpoint_id__alerts_rules_preview_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointRuleInput"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertPreviewResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Preview Endpoint Alert Rule Endpoints  Endpoint Id  Alerts Rules Preview Post","$ref":"#/components/schemas/AlertPreviewResponse"}}}},"400":{"description":"Rejected by the alerting service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Rule, cluster or endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid rule or filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Alerting service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"No access to the deployment's project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/endpoints/{endpoint_id}/alerts/rules/{rule_id}":{"put":{"tags":["Alerts"],"summary":"Update Endpoint Alert Rule","description":"Replace one of this deployment's own rules, re-scoped to it. Any other rule is a 404.","operationId":"update_endpoint_alert_rule_endpoints__endpoint_id__alerts_rules__rule_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointRuleInput"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EndpointRuleResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Update Endpoint Alert Rule Endpoints  Endpoint Id  Alerts Rules  Rule Id  Put","$ref":"#/components/schemas/EndpointRuleResponse"}}}},"400":{"description":"Rejected by the alerting service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Rule, cluster or endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid rule or filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Alerting service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"No access to the deployment's project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}},"delete":{"tags":["Alerts"],"summary":"Delete Endpoint Alert Rule","description":"Delete one of this deployment's own rules. Any other rule is a 404.","operationId":"delete_endpoint_alert_rule_endpoints__endpoint_id__alerts_rules__rule_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Endpoint Alert Rule Endpoints  Endpoint Id  Alerts Rules  Rule Id  Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"400":{"description":"Rejected by the alerting service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Rule, cluster or endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid rule or filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Alerting service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"No access to the deployment's project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/endpoints/{endpoint_id}/alerts/metrics":{"get":{"tags":["Alerts"],"summary":"List Endpoint Alert Metrics","description":"The metric catalog for the rule editor, as GET /alerts/metrics.","operationId":"list_endpoint_alert_metrics_endpoints__endpoint_id__alerts_metrics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AlertMetricListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Endpoint Alert Metrics Endpoints  Endpoint Id  Alerts Metrics Get","$ref":"#/components/schemas/AlertMetricListResponse"}}}},"400":{"description":"Rejected by the alerting service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Rule, cluster or endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid rule or filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Alerting service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"No access to the deployment's project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/audit/records":{"get":{"tags":["Audit"],"summary":"Get audit records","description":"Retrieve paginated audit records with optional filtering or export as CSV","operationId":"get_audit_records_audit_records_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":10,"title":"Limit"},"description":"Items per page"},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by user ID","title":"User Id"},"description":"Filter by user ID"},{"name":"actioned_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by admin/user who performed action on behalf","title":"Actioned By"},"description":"Filter by admin/user who performed action on behalf"},{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AuditActionEnum"},{"type":"null"}],"description":"Filter by action type","title":"Action"},"description":"Filter by action type"},{"name":"resource_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AuditResourceTypeEnum"},{"type":"null"}],"description":"Filter by resource type","title":"Resource Type"},"description":"Filter by resource type"},{"name":"resource_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by resource ID","title":"Resource Id"},"description":"Filter by resource ID"},{"name":"resource_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by resource name (partial match)","title":"Resource Name"},"description":"Filter by resource name (partial match)"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by start date (inclusive)","title":"Start Date"},"description":"Filter by start date (inclusive)"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by end date (inclusive)","title":"End Date"},"description":"Filter by end date (inclusive)"},{"name":"ip_address","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by IP address (exact match)","title":"Ip Address"},"description":"Filter by IP address (exact match)"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search term for partial matching in resource name and IP address","title":"Search"},"description":"Search term for partial matching in resource name and IP address"},{"name":"export_csv","in":"query","required":false,"schema":{"type":"boolean","description":"Export results as CSV file","default":false,"title":"Export Csv"},"description":"Export results as CSV file"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit/records/{audit_id}":{"get":{"tags":["Audit"],"summary":"Get audit record by ID","description":"Retrieve a specific audit record by its ID","operationId":"get_audit_record_audit_records__audit_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"audit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Audit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditRecordResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit/summary":{"get":{"tags":["Audit"],"summary":"Get audit summary","description":"Retrieve summary statistics for audit records","operationId":"get_audit_summary_audit_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start date for summary","title":"Start Date"},"description":"Start date for summary"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End date for summary","title":"End Date"},"description":"End date for summary"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit/records/{audit_id}/verify":{"get":{"tags":["Audit"],"summary":"Verify audit record integrity","description":"Verify the integrity of a specific audit record using its hash","operationId":"verify_audit_record_audit_records__audit_id__verify_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"audit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Audit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit/verify-batch":{"post":{"tags":["Audit"],"summary":"Verify multiple audit records","description":"Verify the integrity of multiple audit records","operationId":"verify_audit_batch_audit_verify_batch_post","requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Audit Ids"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/audit/find-tampered":{"get":{"tags":["Audit"],"summary":"Find potentially tampered audit records","description":"Search for audit records that may have been tampered with","operationId":"find_tampered_records_audit_find_tampered_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start date for search","title":"Start Date"},"description":"Start date for search"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End date for search","title":"End Date"},"description":"End date for search"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"description":"Maximum number of records to check","default":100,"title":"Limit"},"description":"Maximum number of records to check"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/register":{"post":{"tags":["auth"],"summary":"Register User","description":"Register a user with email and password","operationId":"register_user_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}},"required":true},"responses":{"200":{"description":"Successfully registered user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRegisterResponse","anyOf":[{"$ref":"#/components/schemas/UserRegisterResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Register User Auth Register Post"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"429":{"description":"Too many registration attempts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login":{"post":{"tags":["auth"],"summary":"Login User","description":"Login a user with email and password","operationId":"login_user_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserLogin"}}},"required":true},"responses":{"200":{"description":"Successfully logged in user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserLoginResponse","anyOf":[{"$ref":"#/components/schemas/UserLoginResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Login User Auth Login Post"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"429":{"description":"Too many login attempts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/logout":{"post":{"tags":["auth"],"summary":"Logout User","description":"Logout a user by invalidating their refresh token and blacklisting access token","operationId":"logout_user_auth_logout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoutRequest"}}},"required":true},"responses":{"200":{"description":"Successfully logged out user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoutResponse","anyOf":[{"$ref":"#/components/schemas/LogoutResponse"},{"type":"null"}],"title":"Response Logout User Auth Logout Post"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/auth/refresh-token":{"post":{"tags":["auth"],"summary":"Refresh Token","description":"Refresh a user's access token using their refresh token","operationId":"refresh_token_auth_refresh_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successfully refreshed user's access token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshTokenResponse","anyOf":[{"$ref":"#/components/schemas/RefreshTokenResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Refresh Token Auth Refresh Token Post"}}}},"401":{"description":"Token Expired or Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"429":{"description":"Too many token refresh attempts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/me/account-management-url":{"get":{"tags":["user"],"summary":"Get the IdP account-management URL for the current user.","description":"Return a 302-able URL pointing at the IdP's account console.\n\nHonors optional ``referrer`` + ``referrer_uri`` query params so the\nIdP can show a \"back to budadmin\" link.","operationId":"get_account_management_url_endpoint_users_me_account_management_url_get","parameters":[{"name":"referrer","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referrer"}},{"name":"referrer_uri","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referrer Uri"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountManagementURLResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/login":{"post":{"tags":["oauth"],"summary":"Initiate Oauth Login","description":"Initiate OAuth login flow for a specific provider","operationId":"initiate_oauth_login_oauth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthLoginRequest"}}},"required":true},"responses":{"200":{"description":"OAuth login URL generated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_OAuthLoginResponse_","anyOf":[{"$ref":"#/components/schemas/SingleResponse_OAuthLoginResponse_"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Initiate Oauth Login Oauth Login Post"}}}},"400":{"description":"Invalid request or provider not enabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"429":{"description":"Too many login attempts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/link":{"post":{"tags":["oauth"],"summary":"Link Oauth Account","description":"Link OAuth account to existing user","operationId":"link_oauth_account_oauth_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthLinkRequest"}}},"required":true},"responses":{"200":{"description":"OAuth account linked successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse","anyOf":[{"$ref":"#/components/schemas/SingleResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Link Oauth Account Oauth Link Post"}}}},"400":{"description":"Account linking failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/oauth/providers":{"get":{"tags":["oauth"],"summary":"Get Oauth Providers","description":"Get available OAuth providers for a tenant","operationId":"get_oauth_providers_oauth_providers_get","parameters":[{"name":"tenant_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","description":"Tenant ID (uses default if not provided)","title":"Tenant Id"},"description":"Tenant ID (uses default if not provided)"}],"responses":{"200":{"description":"Available OAuth providers retrieved successfully","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SingleResponse_OAuthProvidersResponse_"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Oauth Providers Oauth Providers Get","$ref":"#/components/schemas/SingleResponse_OAuthProvidersResponse_"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/secure-callback":{"get":{"tags":["oauth"],"summary":"Secure Oauth Callback","description":"Secure OAuth callback that uses exchange tokens","operationId":"secure_oauth_callback_oauth_secure_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Authorization code from provider","title":"Code"},"description":"Authorization code from provider"},{"name":"state","in":"query","required":true,"schema":{"type":"string","description":"State parameter for validation","title":"State"},"description":"State parameter for validation"},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Error from provider","title":"Error"},"description":"Error from provider"},{"name":"error_description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Error description","title":"Error Description"},"description":"Error description"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"302":{"description":"Redirect to frontend with exchange token"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/token/exchange":{"post":{"tags":["auth"],"summary":"Exchange Token","description":"Exchange temporary token for JWT access and refresh tokens","operationId":"exchange_token_auth_token_exchange_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenExchangeRequest"}}},"required":true},"responses":{"200":{"description":"Tokens retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_TokenExchangeResponse_"}}}},"400":{"description":"Invalid or expired exchange token"},"401":{"description":"Exchange token already used"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/benchmark/run-workflow":{"post":{"tags":["benchmark"],"summary":"Run Benchmark Workflow","description":"Run benchmark workflow","operationId":"run_benchmark_workflow_benchmark_run_workflow_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"User ID initiating the workflow","title":"User Id"},"description":"User ID initiating the workflow"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunBenchmarkWorkflowRequest"}}}},"responses":{"200":{"description":"Run benchmark workflow executed successfully","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Run Benchmark Workflow Benchmark Run Workflow Post","$ref":"#/components/schemas/RetrieveWorkflowDataResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/benchmark":{"get":{"tags":["benchmark"],"summary":"List All Benchmarks","description":"List all benchmarks. \n\n order_by fields are: name, status, created_at, cluster_name, model_name","operationId":"list_all_benchmarks_benchmark_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/BenchmarkStatusEnum"},{"type":"null"}],"title":"Status"}},{"name":"model_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name"}},{"name":"cluster_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cluster Name"}},{"name":"min_concurrency","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Concurrency"}},{"name":"max_concurrency","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Concurrency"}},{"name":"min_tpot","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Tpot"}},{"name":"max_tpot","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Tpot"}},{"name":"min_ttft","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Ttft"}},{"name":"max_ttft","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Ttft"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully list all benchmarks","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/BenchmarkPaginatedResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List All Benchmarks Benchmark Get","$ref":"#/components/schemas/BenchmarkPaginatedResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/benchmark/filters":{"get":{"tags":["benchmark"],"summary":"List All Benchmark Filters","description":"List unique benchmark filter values","operationId":"list_all_benchmark_filters_benchmark_filters_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"model_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name"}},{"name":"cluster_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cluster Name"}},{"name":"resource","in":"query","required":false,"schema":{"$ref":"#/components/schemas/BenchmarkFilterResourceEnum","default":"model"}}],"responses":{"200":{"description":"Successfully list all benchmark filters","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/BenchmarkFilterValueResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List All Benchmark Filters Benchmark Filters Get","$ref":"#/components/schemas/BenchmarkFilterValueResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/benchmark/result":{"get":{"tags":["benchmark"],"summary":"Get Benchmark Result","description":"Fetch benchmark result","operationId":"get_benchmark_result_benchmark_result_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"benchmark_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Benchmark Id"}}],"responses":{"200":{"description":"Successfully fetch benchmark result","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budmicroframe__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Benchmark Result Benchmark Result Get","$ref":"#/components/schemas/budmicroframe__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/benchmark/{benchmark_id}/model-cluster-detail":{"get":{"tags":["benchmark"],"summary":"Get Benchmark Model Cluster Detail","description":"Fetch benchmark's model and cluster details","operationId":"get_benchmark_model_cluster_detail_benchmark__benchmark_id__model_cluster_detail_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"benchmark_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Benchmark Id"}}],"responses":{"200":{"description":"Successfully fetch benchmark's model and cluster details","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelClusterDetailResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Benchmark Model Cluster Detail Benchmark  Benchmark Id  Model Cluster Detail Get","$ref":"#/components/schemas/ModelClusterDetailResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/benchmark/analysis/field1_vs_field2":{"post":{"tags":["benchmark"],"summary":"Get Field1 Vs Field2 Data","description":"Fetchetched analysis data","operationId":"get_field1_vs_field2_data_benchmark_analysis_field1_vs_field2_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"field1","in":"query","required":true,"schema":{"type":"string","title":"Field1"}},{"name":"field2","in":"query","required":true,"schema":{"type":"string","title":"Field2"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Model Ids"}}}},"responses":{"200":{"description":"Successfully fetched analysis data","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budmicroframe__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Field1 Vs Field2 Data Benchmark Analysis Field1 Vs Field2 Post","$ref":"#/components/schemas/budmicroframe__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/benchmark/{benchmark_id}/analysis/field1_vs_field2":{"post":{"tags":["benchmark"],"summary":"Get Field1 Vs Field2 Benchmark Data","description":"Fetchetched analysis data","operationId":"get_field1_vs_field2_benchmark_data_benchmark__benchmark_id__analysis_field1_vs_field2_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"benchmark_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Benchmark Id"}},{"name":"field1","in":"query","required":true,"schema":{"type":"string","title":"Field1"}},{"name":"field2","in":"query","required":true,"schema":{"type":"string","title":"Field2"}}],"responses":{"200":{"description":"Successfully fetched analysis data","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budmicroframe__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Field1 Vs Field2 Benchmark Data Benchmark  Benchmark Id  Analysis Field1 Vs Field2 Post","$ref":"#/components/schemas/budmicroframe__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/benchmark/request-metrics":{"post":{"tags":["benchmark","internal"],"summary":"Add Request Metrics Internal","description":"Add request metrics (Internal endpoint for service-to-service calls via Dapr)","operationId":"add_request_metrics_internal_benchmark_request_metrics_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddRequestMetricsRequest"}}}},"responses":{"200":{"description":"Successfully added request metrics","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budmicroframe__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Add Request Metrics Internal Benchmark Request Metrics Post","$ref":"#/components/schemas/budmicroframe__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["benchmark"],"summary":"Get Request Metrics","description":"Get benchmark request metrics","operationId":"get_request_metrics_benchmark_request_metrics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"benchmark_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Benchmark Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successfully fetched benchmark request metrics","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budmicroframe__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Request Metrics Benchmark Request Metrics Get","$ref":"#/components/schemas/budmicroframe__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/benchmark/add-request-metrics":{"post":{"tags":["benchmark"],"summary":"Add Request Metrics","description":"Add request metrics (Authenticated endpoint for external use)","operationId":"add_request_metrics_benchmark_add_request_metrics_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddRequestMetricsRequest"}}},"required":true},"responses":{"200":{"description":"Successfully added request metrics","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budmicroframe__commons__schemas__SuccessResponse","anyOf":[{"$ref":"#/components/schemas/budmicroframe__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Add Request Metrics Benchmark Add Request Metrics Post"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/benchmark/dataset/input-distribution":{"post":{"tags":["benchmark"],"summary":"Get Dataset Input Distribution","description":"Get dataset vs input-distribution","operationId":"get_dataset_input_distribution_benchmark_dataset_input_distribution_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"benchmark_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Benchmark Id"}},{"name":"num_bins","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Num Bins"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"},"title":"Dataset Ids"}}}},"responses":{"200":{"description":"Successfully fetched dataset metrics","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budmicroframe__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Dataset Input Distribution Benchmark Dataset Input Distribution Post","$ref":"#/components/schemas/budmicroframe__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/benchmark/dataset/output-distribution":{"post":{"tags":["benchmark"],"summary":"Get Dataset Output Distribution","description":"Get dataset vs output-distribution","operationId":"get_dataset_output_distribution_benchmark_dataset_output_distribution_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"benchmark_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Benchmark Id"}},{"name":"num_bins","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Num Bins"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"},"title":"Dataset Ids"}}}},"responses":{"200":{"description":"Successfully fetched dataset metrics","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budmicroframe__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Dataset Output Distribution Benchmark Dataset Output Distribution Post","$ref":"#/components/schemas/budmicroframe__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/benchmark/node-configurations":{"post":{"tags":["benchmark"],"summary":"Get Node Configurations","description":"Get valid TP/PP configuration options for selected nodes by proxying to budsim","operationId":"get_node_configurations_benchmark_node_configurations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"User ID initiating the workflow","title":"User Id"},"description":"User ID initiating the workflow"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeConfigurationProxyRequest"}}}},"responses":{"200":{"description":"Successfully retrieved node configuration options","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NodeConfigurationProxyResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Node Configurations Benchmark Node Configurations Post","$ref":"#/components/schemas/NodeConfigurationProxyResponse"}}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/benchmark/cancel":{"post":{"tags":["benchmark"],"summary":"Cancel Benchmark","description":"Cancel a running benchmark","operationId":"cancel_benchmark_benchmark_cancel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelBenchmarkRequest"}}},"required":true},"responses":{"200":{"description":"Successfully cancelled benchmark","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budmicroframe__commons__schemas__SuccessResponse","anyOf":[{"$ref":"#/components/schemas/budmicroframe__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Cancel Benchmark Benchmark Cancel Post"}}}},"400":{"description":"Invalid request or benchmark cannot be cancelled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Not authorized to cancel this benchmark","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Workflow not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/clusters/{cluster_id}/grafana-dashboard":{"get":{"tags":["cluster"],"summary":"Get Grafana Dashboard Url","description":"Get Grafana dashboard URL by cluster id","operationId":"get_grafana_dashboard_url_clusters__cluster_id__grafana_dashboard_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}}],"responses":{"200":{"description":"Successfully retrieved Grafana dashboard URL","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GrafanaDashboardResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Grafana Dashboard Url Clusters  Cluster Id  Grafana Dashboard Get","$ref":"#/components/schemas/GrafanaDashboardResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/clusters/{cluster_id}/metrics/summary":{"get":{"tags":["cluster"],"summary":"Get Cluster Metrics Summary","description":"Get cluster metrics summary","operationId":"get_cluster_metrics_summary_clusters_clusters__cluster_id__metrics_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","title":"Cluster Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/clusters/{cluster_id}/metrics/nodes":{"get":{"tags":["cluster"],"summary":"Get Cluster Node Metrics","description":"Get cluster node metrics","operationId":"get_cluster_node_metrics_clusters_clusters__cluster_id__metrics_nodes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","title":"Cluster Id"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/clusters/{cluster_id}/metrics/pods":{"get":{"tags":["cluster"],"summary":"Get Cluster Pod Metrics","description":"Get cluster pod metrics","operationId":"get_cluster_pod_metrics_clusters_clusters__cluster_id__metrics_pods_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","title":"Cluster Id"}},{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Namespace"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/clusters/{cluster_id}/metrics/health":{"get":{"tags":["cluster"],"summary":"Get Cluster Health Status","description":"Get cluster health status","operationId":"get_cluster_health_status_clusters_clusters__cluster_id__metrics_health_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","title":"Cluster Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/clusters/{cluster_id}/metrics/query":{"post":{"tags":["cluster"],"summary":"Query Cluster Metrics","description":"Query custom cluster metrics","operationId":"query_cluster_metrics_clusters_clusters__cluster_id__metrics_query_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","title":"Cluster Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Query"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/clusters":{"post":{"tags":["cluster"],"summary":"Create Cluster Workflow","description":"Create cluster workflow","operationId":"create_cluster_workflow_clusters_clusters_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_cluster_workflow_clusters_clusters_post"}}}},"responses":{"200":{"description":"Create cluster workflow executed successfully","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Create Cluster Workflow Clusters Clusters Post","$ref":"#/components/schemas/RetrieveWorkflowDataResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["cluster"],"summary":"List Clusters","description":"List all clusters","operationId":"list_clusters_clusters_clusters_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"User ID initiating the workflow","title":"User Id"},"description":"User ID initiating the workflow"},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully listed all clusters","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ClusterListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Clusters Clusters Clusters Get","$ref":"#/components/schemas/ClusterListResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/{cluster_id}":{"patch":{"tags":["cluster"],"summary":"Edit Cluster","description":"Edit cluster","operationId":"edit_cluster_clusters__cluster_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditClusterRequest"}}}},"responses":{"200":{"description":"Successfully edited cluster","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SingleClusterResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Edit Cluster Clusters  Cluster Id  Patch","$ref":"#/components/schemas/SingleClusterResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["cluster"],"summary":"Get Cluster Details","description":"Retrieve details of a cluster by ID","operationId":"get_cluster_details_clusters__cluster_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"User ID initiating the workflow","title":"User Id"},"description":"User ID initiating the workflow"}],"responses":{"200":{"description":"Successfully retrieved cluster details","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SingleClusterResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Cluster Details Clusters  Cluster Id  Get","$ref":"#/components/schemas/SingleClusterResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/{cluster_id}/delete-workflow":{"post":{"tags":["cluster"],"summary":"Delete Cluster","description":"Delete a cluster by ID","operationId":"delete_cluster_clusters__cluster_id__delete_workflow_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}}],"responses":{"200":{"description":"Successfully executed delete cluster workflow","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Cluster Clusters  Cluster Id  Delete Workflow Post","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/{cluster_id}/sync-nodes":{"post":{"tags":["cluster"],"summary":"Sync Cluster Nodes","description":"Trigger an immediate node inventory and status refresh for a cluster. The node list is otherwise only as fresh as budcluster's last periodic sync.","operationId":"sync_cluster_nodes_clusters__cluster_id__sync_nodes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}}],"responses":{"200":{"description":"Successfully triggered a cluster node sync","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ClusterNodeSyncResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Sync Cluster Nodes Clusters  Cluster Id  Sync Nodes Post","$ref":"#/components/schemas/ClusterNodeSyncResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"The cluster service could not complete the node sync","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/{cluster_id}/capability-check":{"post":{"tags":["cluster"],"summary":"Start Cluster Capability Check","description":"Re-check the capabilities of a cluster's nodes and storage (FRD-024). Optional body: `nodes` (node names; omit for every node) and `scope` (`node`, `storage`; omit for both). The check runs in the background: follow it with GET /clusters/{cluster_id}/capability-check.","operationId":"start_cluster_capability_check_clusters__cluster_id__capability_check_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ClusterCapabilityCheckRequest"},{"type":"null"}],"title":"Request"}}}},"responses":{"200":{"description":"The check was scheduled, joined a running one, or was rate limited","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ClusterCapabilityCheckResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Start Cluster Capability Check Clusters  Cluster Id  Capability Check Post","$ref":"#/components/schemas/ClusterCapabilityCheckResponse"}}}},"404":{"description":"Cluster not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"Cluster is not registered with budcluster yet","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"The upstream service failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["cluster"],"summary":"Get Cluster Capability Check Summary","description":"Get the summary of the cluster's last capability-check run (FRD-024), including one in progress.","operationId":"get_cluster_capability_check_summary_clusters__cluster_id__capability_check_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}}],"responses":{"200":{"description":"The last capability-check run, or null when none has run","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ClusterCapabilityCheckSummaryResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Cluster Capability Check Summary Clusters  Cluster Id  Capability Check Get","$ref":"#/components/schemas/ClusterCapabilityCheckSummaryResponse"}}}},"404":{"description":"Cluster not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"Cluster is not registered with budcluster yet","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"The upstream service failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/{cluster_id}/capabilities":{"get":{"tags":["cluster"],"summary":"Get Cluster Capabilities","description":"Get the cluster's capability readiness report (FRD-024): each node's status and findings, with the fix for each, and the cluster-level findings.","operationId":"get_cluster_capabilities_clusters__cluster_id__capabilities_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}}],"responses":{"200":{"description":"The cluster's readiness report: per-node and cluster findings","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ClusterCapabilitiesResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Cluster Capabilities Clusters  Cluster Id  Capabilities Get","$ref":"#/components/schemas/ClusterCapabilitiesResponse"}}}},"404":{"description":"Cluster not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"Cluster is not registered with budcluster yet","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"The upstream service failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/cancel-onboarding":{"post":{"tags":["cluster"],"summary":"Cancel Cluster Onboarding","description":"Cancel cluster onboarding","operationId":"cancel_cluster_onboarding_clusters_cancel_onboarding_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelClusterOnboardingRequest"}}},"required":true},"responses":{"200":{"description":"Successfully cancel cluster onboarding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse","anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Cancel Cluster Onboarding Clusters Cancel Onboarding Post"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/clusters/{cluster_id}/endpoints":{"get":{"tags":["cluster"],"summary":"List All Endpoints","description":"List all endpoints in a cluster.\n\nOrder by values are: name, status, created_at, project_name, model_name.","operationId":"list_all_endpoints_clusters__cluster_id__endpoints_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/EndpointStatusEnum"},{"type":"null"}],"title":"Status"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully listed all endpoints in the cluster","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ClusterEndpointPaginatedResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List All Endpoints Clusters  Cluster Id  Endpoints Get","$ref":"#/components/schemas/ClusterEndpointPaginatedResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/{cluster_id}/metrics":{"get":{"tags":["cluster"],"summary":"Get Cluster Metrics","description":"Get detailed metrics for a specific cluster including CPU, memory, disk, GPU, HPU, and network statistics. Use metric_type to filter specific metrics.","operationId":"get_cluster_metrics_clusters__cluster_id__metrics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","enum":["today","7days","month"],"default":"today","title":"Filter"}},{"name":"metric_type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/MetricTypeEnum","description":"Type of metrics to return","default":"all"},"description":"Type of metrics to return"}],"responses":{"200":{"description":"Successfully retrieved cluster metrics","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ClusterMetricsResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Cluster Metrics Clusters  Cluster Id  Metrics Get","$ref":"#/components/schemas/ClusterMetricsResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/{cluster_id}/node-metrics":{"get":{"tags":["cluster"],"summary":"Get Node Wise Metrics","description":"Get node-wise metrics for a cluster","operationId":"get_node_wise_metrics_clusters__cluster_id__node_metrics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}}],"responses":{"200":{"description":"Successfully retrieved node-wise metrics","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NodeMetricsResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Node Wise Metrics Clusters  Cluster Id  Node Metrics Get","$ref":"#/components/schemas/NodeMetricsResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/{cluster_id}/node-events/{node_hostname}":{"get":{"tags":["cluster"],"summary":"Get Node Wise Events By Hostname","description":"Get node-wise Events by hostname with pagination","operationId":"get_node_wise_events_by_hostname_clusters__cluster_id__node_events__node_hostname__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}},{"name":"node_hostname","in":"path","required":true,"schema":{"type":"string","title":"Node Hostname"}}],"responses":{"200":{"description":"Successfully retrieved node-wise metrics by hostname with pagination","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ClusterNodeWiseEventsResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Node Wise Events By Hostname Clusters  Cluster Id  Node Events  Node Hostname  Get","$ref":"#/components/schemas/ClusterNodeWiseEventsResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/recommended-scheduler":{"post":{"tags":["cluster"],"summary":"Recommended Scheduler","description":"Recommended scheduler cron job.\n\nThis endpoint processes the recommended scheduler cron job.\n\nReturns:\n    HTTP response containing the recommended scheduler.","operationId":"recommended_scheduler_clusters_recommended_scheduler_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/clusters/recommended/{workflow_id}":{"get":{"tags":["cluster"],"summary":"Get Recommended Clusters","description":"Get all recommended clusters by id","operationId":"get_recommended_clusters_clusters_recommended__workflow_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workflow Id"}}],"responses":{"200":{"description":"Successfully retrieved recommended clusters","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RecommendedClusterResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Recommended Clusters Clusters Recommended  Workflow Id  Get","$ref":"#/components/schemas/RecommendedClusterResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/{cluster_id}/storage-classes":{"get":{"tags":["cluster"],"summary":"Get Cluster Storage Classes","description":"Get all storage classes available in the cluster","operationId":"get_cluster_storage_classes_clusters__cluster_id__storage_classes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}}],"responses":{"200":{"description":"Successfully retrieved storage classes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"404":{"description":"Cluster not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"Cluster is registered but not available","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/{cluster_id}/metrics/gpu":{"get":{"tags":["cluster"],"summary":"Get Cluster Gpu Metrics","description":"Get cluster-wide HAMI GPU metrics including device info, slices, and summary","operationId":"get_cluster_gpu_metrics_clusters__cluster_id__metrics_gpu_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}}],"responses":{"200":{"description":"Successfully retrieved cluster GPU metrics","content":{"application/json":{"schema":{}}}},"404":{"description":"Cluster not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/{cluster_id}/nodes/{hostname}/metrics/gpu":{"get":{"tags":["cluster"],"summary":"Get Node Gpu Metrics","description":"Get HAMI GPU metrics for a specific node","operationId":"get_node_gpu_metrics_clusters__cluster_id__nodes__hostname__metrics_gpu_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}},{"name":"hostname","in":"path","required":true,"schema":{"type":"string","title":"Hostname"}}],"responses":{"200":{"description":"Successfully retrieved node GPU metrics","content":{"application/json":{"schema":{}}}},"404":{"description":"Cluster not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/{cluster_id}/nodes/{hostname}/metrics/gpu/timeseries":{"get":{"tags":["cluster"],"summary":"Get Node Gpu Timeseries","description":"Get GPU timeseries data for a specific node for charts","operationId":"get_node_gpu_timeseries_clusters__cluster_id__nodes__hostname__metrics_gpu_timeseries_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}},{"name":"hostname","in":"path","required":true,"schema":{"type":"string","title":"Hostname"}},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":168,"minimum":1,"description":"Number of hours to look back","default":6,"title":"Hours"},"description":"Number of hours to look back"}],"responses":{"200":{"description":"Successfully retrieved GPU timeseries data","content":{"application/json":{"schema":{}}}},"404":{"description":"Cluster not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/{cluster_id}/nodes/{hostname}/metrics/cpu/timeseries":{"get":{"tags":["cluster"],"summary":"Get Node Cpu Timeseries","description":"Get CPU timeseries data for a specific node for charts","operationId":"get_node_cpu_timeseries_clusters__cluster_id__nodes__hostname__metrics_cpu_timeseries_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}},{"name":"hostname","in":"path","required":true,"schema":{"type":"string","title":"Hostname"}},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":168,"minimum":1,"description":"Number of hours to look back","default":6,"title":"Hours"},"description":"Number of hours to look back"}],"responses":{"200":{"description":"Successfully retrieved CPU timeseries data","content":{"application/json":{"schema":{}}}},"404":{"description":"Cluster not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clusters/{cluster_id}/settings":{"get":{"tags":["cluster-settings"],"summary":"Get Cluster Settings","description":"Get cluster settings by cluster ID","operationId":"get_cluster_settings_clusters__cluster_id__settings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}}],"responses":{"200":{"description":"Successfully retrieved cluster settings","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ClusterSettingsDetailResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Cluster Settings Clusters  Cluster Id  Settings Get","$ref":"#/components/schemas/ClusterSettingsDetailResponse"}}}},"404":{"description":"Cluster settings not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["cluster-settings"],"summary":"Create Cluster Settings","description":"Create cluster settings","operationId":"create_cluster_settings_clusters__cluster_id__settings_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateClusterSettingsRequest"}}}},"responses":{"201":{"description":"Successfully created cluster settings","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ClusterSettingsDetailResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Create Cluster Settings Clusters  Cluster Id  Settings Post","$ref":"#/components/schemas/ClusterSettingsDetailResponse"}}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Cluster not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["cluster-settings"],"summary":"Update Cluster Settings","description":"Update or create cluster settings (upsert)","operationId":"update_cluster_settings_clusters__cluster_id__settings_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateClusterSettingsRequest"}}}},"responses":{"200":{"description":"Successfully updated cluster settings","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ClusterSettingsDetailResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Update Cluster Settings Clusters  Cluster Id  Settings Put","$ref":"#/components/schemas/ClusterSettingsDetailResponse"}}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Cluster or cluster settings not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["cluster-settings"],"summary":"Delete Cluster Settings","description":"Delete cluster settings","operationId":"delete_cluster_settings_clusters__cluster_id__settings_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cluster Id"}}],"responses":{"200":{"description":"Successfully deleted cluster settings","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Cluster Settings Clusters  Cluster Id  Settings Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"404":{"description":"Cluster settings not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/capabilities":{"get":{"tags":["connectors"],"summary":"Get Generation Capabilities","description":"What the tool generator can do on this deployment (budadmin's feature gate)","operationId":"get_generation_capabilities_connectors_capabilities_get","responses":{"200":{"description":"Tool generation capabilities","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Generation Capabilities Connectors Capabilities Get"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/connectors/generate/url":{"post":{"tags":["connectors"],"summary":"Generate From Url","description":"Generate tools from an OpenAPI spec URL or an API documentation site","operationId":"generate_from_url_connectors_generate_url_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateFromUrlRequest"}}},"required":true},"responses":{"202":{"description":"Generation job submitted","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Generate From Url Connectors Generate Url Post"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/connectors/generate/upload":{"post":{"tags":["connectors"],"summary":"Generate From Upload","description":"Generate tools from an uploaded OpenAPI spec or documentation file","operationId":"generate_from_upload_connectors_generate_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_generate_from_upload_connectors_generate_upload_post"}}},"required":true},"responses":{"202":{"description":"Generation job submitted","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Generate From Upload Connectors Generate Upload Post"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/connectors/generate/jobs/{job_id}":{"get":{"tags":["connectors"],"summary":"Get Generation Job","description":"Read a generation job and its candidates, normalised to bud's result DTO","operationId":"get_generation_job_connectors_generate_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Generation job status","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Generation Job Connectors Generate Jobs  Job Id  Get"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/generate/jobs/{job_id}/cancel":{"post":{"tags":["connectors"],"summary":"Cancel Generation Job","description":"Cancel a running generation job","operationId":"cancel_generation_job_connectors_generate_jobs__job_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Generation job cancelled","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cancel Generation Job Connectors Generate Jobs  Job Id  Cancel Post"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/generate/jobs/{job_id}/finalize":{"post":{"tags":["connectors"],"summary":"Finalize Generation Job","description":"Create the connection and register only the selected candidates into it","operationId":"finalize_generation_job_connectors_generate_jobs__job_id__finalize_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinalizeGenerationRequest"}}}},"responses":{"200":{"description":"Generated tool source published","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Finalize Generation Job Connectors Generate Jobs  Job Id  Finalize Post"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"410":{"description":"The cached preview expired; re-run","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/connectors/registry":{"get":{"tags":["connectors"],"summary":"List Registry","description":"Browse connectors from MCP Foundry registry","operationId":"list_registry_connectors_registry_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"query","required":false,"schema":{"type":"string","description":"Filter by name","title":"Name"},"description":"Filter by name"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successfully listed registry connectors","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Registry Connectors Registry Get"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/registry/{connector_id}":{"get":{"tags":["connectors"],"summary":"Get Registry Connector","description":"Get a single connector from the MCP Foundry registry","operationId":"get_registry_connector_connectors_registry__connector_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"connector_id","in":"path","required":true,"schema":{"type":"string","title":"Connector Id"}}],"responses":{"200":{"description":"Successfully retrieved connector","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Registry Connector Connectors Registry  Connector Id  Get"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/gateways":{"post":{"tags":["connectors"],"summary":"Configure Connector","description":"Configure a global connector (create gateway with credentials)","operationId":"configure_connector_connectors_gateways_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigureConnectorRequest"}}}},"responses":{"201":{"description":"Gateway created successfully","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Configure Connector Connectors Gateways Post"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["connectors"],"summary":"List Gateways","description":"List all global gateways","operationId":"list_gateways_connectors_gateways_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successfully listed gateways","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Gateways Connectors Gateways Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/custom":{"post":{"tags":["connectors"],"summary":"Create Custom Gateway","description":"Create a custom MCP gateway directly (bypassing registry)","operationId":"create_custom_gateway_connectors_custom_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomGatewayRequest"}}},"required":true},"responses":{"201":{"description":"Custom gateway created successfully","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Custom Gateway Connectors Custom Post"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/connectors/custom/credential-schema":{"get":{"tags":["connectors"],"summary":"Get Custom Credential Schema","description":"Get credential field schema for custom connector auth types","operationId":"get_custom_credential_schema_connectors_custom_credential_schema_get","responses":{"200":{"description":"Credential schema returned","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Custom Credential Schema Connectors Custom Credential Schema Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/connectors/gateways/{gateway_id}":{"get":{"tags":["connectors"],"summary":"Get Gateway","description":"Get gateway details with tools","operationId":"get_gateway_connectors_gateways__gateway_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"gateway_id","in":"path","required":true,"schema":{"type":"string","title":"Gateway Id"}}],"responses":{"200":{"description":"Successfully retrieved gateway","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Gateway Connectors Gateways  Gateway Id  Get"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["connectors"],"summary":"Update Gateway","description":"Update a gateway","operationId":"update_gateway_connectors_gateways__gateway_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"gateway_id","in":"path","required":true,"schema":{"type":"string","title":"Gateway Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Update Data"}}}},"responses":{"200":{"description":"Gateway updated successfully","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Gateway Connectors Gateways  Gateway Id  Put"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["connectors"],"summary":"Delete Gateway","description":"Delete a connection (shared gateway). Kicks off a background workflow that detaches it from every agent that references it, then deletes the gateway.","operationId":"delete_gateway_connectors_gateways__gateway_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"gateway_id","in":"path","required":true,"schema":{"type":"string","title":"Gateway Id"}}],"responses":{"200":{"description":"Connection removal started","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Gateway Connectors Gateways  Gateway Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/configured":{"get":{"tags":["connectors"],"summary":"List Configured","description":"List configured connectors enriched with registry metadata","operationId":"list_configured_connectors_configured_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"client","in":"query","required":false,"schema":{"type":"string","description":"Filter by client tag (studio)","title":"Client"},"description":"Filter by client tag (studio)"},{"name":"include_disabled","in":"query","required":false,"schema":{"type":"boolean","description":"Include disabled gateways","default":false,"title":"Include Disabled"},"description":"Include disabled gateways"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successfully listed configured connectors","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Configured Connectors Configured Get"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/configured/{gateway_id}/toggle":{"patch":{"tags":["connectors"],"summary":"Toggle Connector","description":"Enable or disable a configured connector gateway","operationId":"toggle_connector_connectors_configured__gateway_id__toggle_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"gateway_id","in":"path","required":true,"schema":{"type":"string","title":"Gateway Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToggleRequest"}}}},"responses":{"200":{"description":"Gateway toggled successfully","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Toggle Connector Connectors Configured  Gateway Id  Toggle Patch"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/configured/{gateway_id}":{"patch":{"tags":["connectors"],"summary":"Update Connection","description":"Update a connection's client access and/or agent-visibility scope (tag-encoded)","operationId":"update_connection_connectors_configured__gateway_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"gateway_id","in":"path","required":true,"schema":{"type":"string","title":"Gateway Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConnectionRequest"}}}},"responses":{"200":{"description":"Connection updated successfully","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Connection Connectors Configured  Gateway Id  Patch"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/configured/{gateway_id}/tag":{"post":{"tags":["connectors"],"summary":"Tag Existing Gateway","description":"Backfill tags on an existing gateway","operationId":"tag_existing_gateway_connectors_configured__gateway_id__tag_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"gateway_id","in":"path","required":true,"schema":{"type":"string","title":"Gateway Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagExistingRequest"}}}},"responses":{"200":{"description":"Tags added successfully","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Tag Existing Gateway Connectors Configured  Gateway Id  Tag Post"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/oauth/public-callback":{"get":{"tags":["connectors"],"summary":"Public Oauth Callback","description":"Public OAuth callback endpoint — no authentication required","operationId":"public_oauth_callback_connectors_oauth_public_callback_get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","description":"Authorization code from OAuth provider","title":"Code"},"description":"Authorization code from OAuth provider"},{"name":"state","in":"query","required":true,"schema":{"type":"string","description":"State parameter for CSRF verification","title":"State"},"description":"State parameter for CSRF verification"}],"responses":{"200":{"description":"OAuth callback handled successfully","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Oauth Callback Connectors Oauth Public Callback Get"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/available":{"get":{"tags":["connectors"],"summary":"List Available Connectors","description":"List enabled configured connectors enriched with registry data, optionally filtered by client","operationId":"list_available_connectors_connectors_available_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"client","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by client tag (studio)","title":"Client"},"description":"Filter by client tag (studio)"},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Agent's project id — only connections enabled globally or for this project are returned","title":"Project Id"},"description":"Agent's project id — only connections enabled globally or for this project are returned"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successfully listed available connectors","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Available Connectors Connectors Available Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/{gateway_id}/oauth/initiate":{"post":{"tags":["connectors"],"summary":"Initiate Oauth","description":"Start OAuth flow for a global connector","operationId":"initiate_oauth_connectors__gateway_id__oauth_initiate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"gateway_id","in":"path","required":true,"schema":{"type":"string","title":"Gateway Id"}},{"name":"return_url","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"URL to redirect to after OAuth completes","title":"Return Url"},"description":"URL to redirect to after OAuth completes"}],"responses":{"200":{"description":"OAuth flow initiated","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Initiate Oauth Connectors  Gateway Id  Oauth Initiate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/oauth/callback":{"post":{"tags":["connectors"],"summary":"Handle Oauth Callback","description":"Handle OAuth callback for a global connector","operationId":"handle_oauth_callback_connectors_oauth_callback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__connector_ops__schemas__OAuthCallbackRequest"}}},"required":true},"responses":{"200":{"description":"OAuth callback handled successfully","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Handle Oauth Callback Connectors Oauth Callback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/connectors/{gateway_id}/fetch-tools":{"post":{"tags":["connectors"],"summary":"Fetch Tools","description":"Fetch tools after OAuth completion","operationId":"fetch_tools_connectors__gateway_id__fetch_tools_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"gateway_id","in":"path","required":true,"schema":{"type":"string","title":"Gateway Id"}}],"responses":{"200":{"description":"Tools fetched successfully","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Fetch Tools Connectors  Gateway Id  Fetch Tools Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/{gateway_id}/tools":{"get":{"tags":["connectors"],"summary":"List Tools","description":"List tools from a gateway","operationId":"list_tools_connectors__gateway_id__tools_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"gateway_id","in":"path","required":true,"schema":{"type":"string","title":"Gateway Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successfully listed tools","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Tools Connectors  Gateway Id  Tools Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/{gateway_id}/oauth/status":{"get":{"tags":["connectors"],"summary":"Get Oauth Status","description":"Check user's OAuth status for a gateway","operationId":"get_oauth_status_connectors__gateway_id__oauth_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"gateway_id","in":"path","required":true,"schema":{"type":"string","title":"Gateway Id"}}],"responses":{"200":{"description":"OAuth status retrieved","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Oauth Status Connectors  Gateway Id  Oauth Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/{gateway_id}/oauth/token-status":{"get":{"tags":["connectors"],"summary":"Get Oauth Token Status","description":"Check if current user has an active OAuth token for a gateway","operationId":"get_oauth_token_status_connectors__gateway_id__oauth_token_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"gateway_id","in":"path","required":true,"schema":{"type":"string","title":"Gateway Id"}}],"responses":{"200":{"description":"Token status retrieved","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Oauth Token Status Connectors  Gateway Id  Oauth Token Status Get"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/{gateway_id}/oauth/token":{"delete":{"tags":["connectors"],"summary":"Revoke Oauth Token","description":"Revoke current user's OAuth token for a gateway","operationId":"revoke_oauth_token_connectors__gateway_id__oauth_token_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"gateway_id","in":"path","required":true,"schema":{"type":"string","title":"Gateway Id"}}],"responses":{"200":{"description":"Token revoked successfully","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revoke Oauth Token Connectors  Gateway Id  Oauth Token Delete"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/{gateway_id}/oauth/token/{user_email}":{"delete":{"tags":["connectors"],"summary":"Admin Revoke Oauth Token","description":"Admin: Revoke another user's OAuth token for a gateway","operationId":"admin_revoke_oauth_token_connectors__gateway_id__oauth_token__user_email__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"gateway_id","in":"path","required":true,"schema":{"type":"string","title":"Gateway Id"}},{"name":"user_email","in":"path","required":true,"schema":{"type":"string","title":"User Email"}}],"responses":{"200":{"description":"Token revoked successfully","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Revoke Oauth Token Connectors  Gateway Id  Oauth Token  User Email  Delete"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/icons":{"get":{"tags":["icon"],"summary":"List All Icons","description":"List all icons","operationId":"list_all_icons_icons_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully list all icons","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IconListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List All Icons Icons Get","$ref":"#/components/schemas/IconListResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/templates":{"get":{"tags":["template"],"summary":"Get All Model Templates","description":"Get all model templates from the database","operationId":"get_all_model_templates_templates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"template_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Type"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully list all model templates","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelTemplateListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get All Model Templates Templates Get","$ref":"#/components/schemas/ModelTemplateListResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentials/":{"post":{"tags":["credential"],"summary":"Add Credential","description":"Add or generate a new credential for user. Valid credential types:\n    client_app, admin_app.\n    Project_id and expiry(None, 0, 30, 60, or 90) are required. 0 or None means no expiry.","operationId":"add_credential_credentials__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_CredentialResponse_"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unauthorized"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"}}},"get":{"tags":["credential"],"summary":"Retrieve Credentials","description":"Get saved credentials of user","operationId":"retrieve_credentials_credentials__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"credential_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ApiCredentialTypeEnum"},{"type":"null"}],"title":"Credential Type"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedCredentialResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unauthorized"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/credentials/{credential_id}":{"put":{"tags":["credential"],"summary":"Update Credential","description":"Update saved credential of user.","operationId":"update_credential_credentials__credential_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_CredentialResponse_"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unauthorized"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"}}},"delete":{"tags":["credential"],"summary":"Delete Credential","description":"Delete saved credential of user","operationId":"delete_credential_credentials__credential_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unauthorized"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"}}}},"/credentials/{credential_id}/reveal":{"get":{"tags":["credential"],"summary":"Reveal Credential","description":"Reveal the plaintext API key for a credential the caller owns","operationId":"reveal_credential_credentials__credential_id__reveal_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_CredentialRevealResponse_"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unauthorized"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"}}}},"/credentials/cloud-providers":{"get":{"tags":["credential"],"summary":"Get Cloud Providers","description":"Get all available cloud providers","operationId":"get_cloud_providers_credentials_cloud_providers_get","responses":{"200":{"description":"Successfully retrieved cloud providers","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudProvidersListResponse","anyOf":[{"$ref":"#/components/schemas/CloudProvidersListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Cloud Providers Credentials Cloud Providers Get"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"401":{"description":"User is not authenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["credential"],"summary":"Create Cloud Provider","description":"Create a new cloud provider credential.","operationId":"create_cloud_provider_credentials_cloud_providers_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudProvidersCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/credentials/cloud-providers/credentials":{"get":{"tags":["credential"],"summary":"Get User Cloud Credentials","description":"Retrieve cloud provider credentials for the current user.\n\nArgs:\n    provider_id: Optional parameter to filter credentials by provider ID\n\nReturns:\n    CloudCredentialResponse: List of cloud provider credentials for the user,\n        filtered by provider_id if specified.","operationId":"get_user_cloud_credentials_credentials_cloud_providers_credentials_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider ID","description":"Filter credentials by cloud provider ID"},"description":"Filter credentials by cloud provider ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudCredentialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentials/cloud-providers/credentials/{credential_id}":{"get":{"tags":["credential"],"summary":"Get User Cloud Credential","description":"Retrieve a specific cloud provider credential for the current user.\n\nArgs:\n    credential_id: ID of the credential to retrieve\n\nReturns:\n    CloudCredentialResponse: The requested cloud provider credential.","operationId":"get_user_cloud_credential_credentials_cloud_providers_credentials__credential_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","title":"The ID of the credential to retrieve"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudCredentialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credentials/cloud-providers/{provider_id}/regions":{"get":{"tags":["credential"],"summary":"Get Provider Regions","description":"Retrieve the regions supported by a specific cloud provider.\n\nArgs:\n    provider_id: The UUID of the cloud provider.\n\nReturns:`\n    CloudProviderRegionsResponse: List of regions supported by the provider.\n\nRaises:\n    HTTPException: If the provider is not found.","operationId":"get_provider_regions_credentials_cloud_providers__provider_id__regions_get","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"The ID of the cloud provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudProviderRegionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/proprietary/credentials/":{"post":{"tags":["proprietary credential"],"summary":"Add Proprietary Credential","description":"Add or generate a new credential for proprietary models.\n    Valid credential types: nlp_cloud, deepinfra, anthropic, vertex_ai-vision-models, vertex_ai-ai21_models, cerebras, watsonx, predibase, volcengine, clarifai, baseten, sambanova, github, petals, replicate, vertex_ai-chat-models, azure_ai, perplexity, vertex_ai-code-text-models, vertex_ai-text-models, cohere_chat, vertex_ai-embedding-models, text-completion-openai, groq, openai, aleph_alpha, sagemaker, databricks, fireworks_ai, vertex_ai-anthropic_models, vertex_ai-mistral_models, voyage, vertex_ai-language-models, anyscale, deepseek, vertex_ai-image-models, mistral, ollama, cohere, gemini, friendliai, vertex_ai-code-chat-models, azure, codestral, vertex_ai-llama_models, together_ai, cloudflare, ai21, openrouter, bedrock, text-completion-codestral, huggingface, bud_sentinel, azure_content_safety, aws_comprehend, moonshotai, openai_compatible, xai, deepgram, elevenlabs, cartesia, waav_self_hosted, acapela, alibaba_cloud, amivoice, assemblyai, aws_polly, aws_transcribe, baidu, bhashini, cereproc, fpt_ai, gladia, gnani, google_speech, huawei_cloud, hume, ibm_watson, iflytek, murf, naver_clova, nectec, phonexia, resemble, revai, reverie, sarvam, sberdevices, smallest, speechify, speechmatics, tencent, tinkoff, unrealspeech, viettel_ai, wellsaid, yandex, zalo_ai, typesafe, liquid_ai, bespokelabs, subq, embedding_space, system_one_compatible.\n    For budserve credential type, project_id, expiry(None, 0, 30, 60, or 90) are required. 0 or None means no expiry.","operationId":"add_proprietary_credential_proprietary_credentials__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProprietaryCredentialRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_ProprietaryCredentialResponse_"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unauthorized"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"}}},"get":{"tags":["proprietary credential"],"summary":"Retrieve Proprietary Credentials","description":"Get proprietary credentials of user","operationId":"retrieve_proprietary_credentials_proprietary_credentials__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ProprietaryCredentialTypeEnum"},{"type":"null"}],"title":"Type"}},{"name":"id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedCredentialResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unauthorized"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/proprietary/credentials/{credential_id}":{"put":{"tags":["proprietary credential"],"summary":"Update Proprietary Credential","description":"Update saved proprietary credential of user.","operationId":"update_proprietary_credential_proprietary_credentials__credential_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProprietaryCredentialUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_ProprietaryCredentialResponse_"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unauthorized"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"}}},"delete":{"tags":["proprietary credential"],"summary":"Delete Proprietary Credential","description":"Delete saved proprietary credential of user","operationId":"delete_proprietary_credential_proprietary_credentials__credential_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unauthorized"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"}}}},"/proprietary/credentials/provider-info":{"get":{"tags":["proprietary credential"],"summary":"Get Provider Info","description":"Different proprietary provider information","operationId":"get_provider_info_proprietary_credentials_provider_info_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_name","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ProprietaryCredentialTypeEnum"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unauthorized"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"}}}},"/proprietary/credentials/{credential_id}/detailed-view":{"get":{"tags":["proprietary credential"],"summary":"Get Proprietary Credential Detailed View","description":"Get details of a proprietary credential","operationId":"get_proprietary_credential_detailed_view_proprietary_credentials__credential_id__detailed_view_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_ProprietaryCredentialDetailedView_"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unauthorized"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/proprietary/credentials/{credential_id}/details":{"get":{"tags":["proprietary credential"],"summary":"Get Proprietary Credential Details","description":"Get details of a proprietary credential","operationId":"get_proprietary_credential_details_proprietary_credentials__credential_id__details_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_ProprietaryCredentialResponse_"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unauthorized"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/internal/proxy-cache/resync":{"post":{"tags":["internal"],"summary":"Resync Proxy Cache","description":"Rebuild every active credential's gateway auth-cache entry from Postgres. Redis is a cache, not the source of truth, so this is the only path that can recover api_key:* after a Valkey data loss. Idempotent, chunked, and single-flight per replica. Dapr/internal token required.","operationId":"resync_proxy_cache_internal_proxy_cache_resync_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyCacheResyncResponse"}}}}}}},"/internal/event-session":{"post":{"tags":["internal"],"summary":"Create Event Session","description":"Mint an ephemeral, project-scoped model credential for an agent or a running deployment. Registers the token in the shared Redis (api_key:{hash}) with a TTL and returns the raw token. No credential row is persisted. Dapr/internal token required.","operationId":"create_event_session_internal_event_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/on-behalf-session":{"post":{"tags":["internal"],"summary":"Create On Behalf Session","description":"Mint a short-lived token that acts ON BEHALF of an existing api key: a fresh opaque token whose gateway entry carries the original api_key_id in metadata, so usage/quota attribute to that key without shadowing its secret. Used by budprompt's durable worker to re-authenticate a parked /v1/responses run on resume. Dapr/internal token required.","operationId":"create_on_behalf_session_internal_on_behalf_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnBehalfSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/mcp-session":{"post":{"tags":["internal"],"summary":"Create Mcp Session","description":"Re-issue a live Keycloak access token for the user who owns an expired one, using that user's BFF session refresh token. Used by budprompt when MCP Foundry 401s a forwarded user bearer mid-run: the agent's MCP session is bound to the caller's identity, so falling back to a service credential would silently change which OAuth grants resolve. 404 when the user has no session that can still refresh (logged out, refresh token expired, or the bearer never came from the browser flow). Dapr/internal token required.","operationId":"create_mcp_session_internal_mcp_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/agent-attribution":{"post":{"tags":["internal"],"summary":"Resolve Agent Attribution","description":"Resolve an agent's OTel bud.* attribution ids (project / prompt / version / endpoint / model). Read-only — no token is minted. Dapr/internal token required.","operationId":"resolve_agent_attribution_internal_agent_attribution_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAttributionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAttributionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/data-foundry/projects/{project_id}/notebooks":{"get":{"tags":["data-foundry"],"summary":"List Project Notebooks Route","description":"List the data-foundry notebooks shared with a project, for the agent editor's knowledge picker.","operationId":"list_project_notebooks_route_data_foundry_projects__project_id__notebooks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Notebooks per page","default":50,"title":"Page Size"},"description":"Notebooks per page"},{"name":"page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"description":"A previous response's next_page_token, with the same page_size","title":"Page Token"},"description":"A previous response's next_page_token, with the same page_size"}],"responses":{"200":{"description":"The notebooks","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DataFoundryNotebookListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Project Notebooks Route Data Foundry Projects  Project Id  Notebooks Get","$ref":"#/components/schemas/DataFoundryNotebookListResponse"}}}},"404":{"description":"No such project for this caller","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"The project's identity is disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"424":{"description":"data-foundry cannot list them: type DATA_FOUNDRY_UNAVAILABLE or DATA_FOUNDRY_PROJECT_LISTING_UNSUPPORTED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dataset":{"get":{"tags":["dataset"],"summary":"List All Datasets","description":"List all datasets. Filter by fields are: name, tags","operationId":"list_all_datasets_dataset_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully list all datasets","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DatasetPaginatedResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List All Datasets Dataset Get","$ref":"#/components/schemas/DatasetPaginatedResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/":{"get":{"tags":["endpoint"],"summary":"List All Endpoints","description":"List all endpoints. \n\n order_by fields are: name, status, created_at, modified_at, cluster_name, model_name, modality, is_published, published_date","operationId":"list_all_endpoints_endpoints__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"List endpoints by project id. If not provided, returns all endpoints across all projects.","title":"Project Id"},"description":"List endpoints by project id. If not provided, returns all endpoints across all projects."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"supported_endpoint","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelEndpointEnum"},{"type":"null"}],"description":"Keep only deployments that can serve this API endpoint, e.g. `/v1/chat/completions`. Callers that can only drive one API surface use this to avoid offering a deployment that would fail at request time.","title":"Supported Endpoint"},"description":"Keep only deployments that can serve this API endpoint, e.g. `/v1/chat/completions`. Callers that can only drive one API surface use this to avoid offering a deployment that would fail at request time."},{"name":"model_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Keep only deployments of this model. Scoped like the rest of the list, so a non-superuser sees only the deployments in projects they belong to.","title":"Model Id"},"description":"Keep only deployments of this model. Scoped like the rest of the list, so a non-superuser sees only the deployments in projects they belong to."},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/EndpointStatusEnum"},{"type":"null"}],"title":"Status"}},{"name":"is_published","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Published"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successfully list all endpoints","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EndpointPaginatedResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List All Endpoints Endpoints  Get","$ref":"#/components/schemas/EndpointPaginatedResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/delete-workflow":{"post":{"tags":["endpoint"],"summary":"Delete Endpoint","description":"Delete an endpoint by ID","operationId":"delete_endpoint_endpoints__endpoint_id__delete_workflow_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"User ID initiating the workflow","title":"User Id"},"description":"User ID initiating the workflow"},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_delete_endpoint_endpoints__endpoint_id__delete_workflow_post"}}}},"responses":{"200":{"description":"Successfully executed delete endpoint workflow","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EndpointDeleteResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Endpoint Endpoints  Endpoint Id  Delete Workflow Post","$ref":"#/components/schemas/EndpointDeleteResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/workers":{"get":{"tags":["endpoint"],"summary":"Get Endpoint Workers","description":"Get endpoint workers.","operationId":"get_endpoint_workers_endpoints__endpoint_id__workers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Order By"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"hardware","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hardware"}},{"name":"utilization_min","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Utilization Min"}},{"name":"utilization_max","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Utilization Max"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successfully get endpoint detail","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WorkerInfoResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Endpoint Workers Endpoints  Endpoint Id  Workers Get","$ref":"#/components/schemas/WorkerInfoResponse"}}}},"500":{"description":"Failed to get endpoint workers","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/workers/{worker_id}/logs":{"get":{"tags":["endpoint"],"summary":"Get Endpoint Worker Logs","description":"Get endpoint worker logs.","operationId":"get_endpoint_worker_logs_endpoints__endpoint_id__workers__worker_id__logs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"worker_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Worker Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successfully get endpoint detail","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WorkerLogsResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Endpoint Worker Logs Endpoints  Endpoint Id  Workers  Worker Id  Logs Get","$ref":"#/components/schemas/WorkerLogsResponse"}}}},"500":{"description":"Failed to get endpoint workers","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Worker not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/workers/{worker_id}/metrics":{"get":{"tags":["endpoint"],"summary":"Get Endpoint Worker Metrics","description":"Get endpoint worker metrics.","operationId":"get_endpoint_worker_metrics_endpoints__endpoint_id__workers__worker_id__metrics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"worker_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Worker Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successfully get endpoint worker metrics","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WorkerMetricsResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Endpoint Worker Metrics Endpoints  Endpoint Id  Workers  Worker Id  Metrics Get","$ref":"#/components/schemas/WorkerMetricsResponse"}}}},"404":{"description":"Worker not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to get endpoint worker metrics","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/workers/{worker_id}":{"get":{"tags":["endpoint"],"summary":"Get Endpoint Worker Detail","description":"Get endpoint workers.","operationId":"get_endpoint_worker_detail_endpoints__endpoint_id__workers__worker_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"worker_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Worker Id"}},{"name":"reload","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Reload"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successfully get endpoint detail","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WorkerDetailResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Endpoint Worker Detail Endpoints  Endpoint Id  Workers  Worker Id  Get","$ref":"#/components/schemas/WorkerDetailResponse"}}}},"500":{"description":"Failed to get endpoint workers","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Worker not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/model-cluster-detail":{"get":{"tags":["endpoint"],"summary":"Get Model Cluster Detail","description":"Get model cluster detail.","operationId":"get_model_cluster_detail_endpoints__endpoint_id__model_cluster_detail_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successfully get model cluster detail","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelClusterDetailResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Model Cluster Detail Endpoints  Endpoint Id  Model Cluster Detail Get","$ref":"#/components/schemas/ModelClusterDetailResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to get model cluster detail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/delete-worker":{"post":{"tags":["endpoint"],"summary":"Delete Endpoint Worker","description":"Delete a endpoint worker by its ID.","operationId":"delete_endpoint_worker_endpoints_delete_worker_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteWorkerRequest"}}}},"responses":{"200":{"description":"Successfully deleted deploymentworker","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Endpoint Worker Endpoints Delete Worker Post","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"404":{"description":"Worker not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to delete deployment worker","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/add-worker":{"post":{"tags":["endpoint"],"summary":"Add Worker To Endpoint","description":"Add worker to endpoint","operationId":"add_worker_to_endpoint_endpoints_add_worker_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddWorkerRequest"}}}},"responses":{"200":{"description":"Successfully add worker","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Add Worker To Endpoint Endpoints Add Worker Post","$ref":"#/components/schemas/RetrieveWorkflowDataResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/add-adapter":{"post":{"tags":["endpoint"],"summary":"Add Adapter To Endpoint","description":"Add worker to endpoint","operationId":"add_adapter_to_endpoint_endpoints_add_adapter_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddAdapterRequest"}}}},"responses":{"200":{"description":"Successfully updated Add Adapter workflow","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Add Adapter To Endpoint Endpoints Add Adapter Post","$ref":"#/components/schemas/RetrieveWorkflowDataResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/adapters":{"get":{"tags":["endpoint"],"summary":"Get Endpoint Adapters","description":"Get endpoint adapters","operationId":"get_endpoint_adapters_endpoints__endpoint_id__adapters_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AdapterStatusEnum"},{"type":"null"}],"title":"Status"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successfully get endpoint adapters","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AdapterPaginatedResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Endpoint Adapters Endpoints  Endpoint Id  Adapters Get","$ref":"#/components/schemas/AdapterPaginatedResponse"}}}},"500":{"description":"Failed to get endpoint workers","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/delete-adapter/{adapter_id}":{"post":{"tags":["endpoint"],"summary":"Delete Adapter From Endpoint","description":"Add worker to endpoint","operationId":"delete_adapter_from_endpoint_endpoints_delete_adapter__adapter_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"adapter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Adapter Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successfully updated delete adapter workflow","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Adapter From Endpoint Endpoints Delete Adapter  Adapter Id  Post","$ref":"#/components/schemas/RetrieveWorkflowDataResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/publish":{"put":{"tags":["endpoint"],"summary":"Update Publication Status","description":"Update publication status of an endpoint (publish/unpublish)","operationId":"update_publication_status_endpoints__endpoint_id__publish_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePublicationStatusRequest"}}}},"responses":{"200":{"description":"Successfully updated publication status","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PublishEndpointResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Update Publication Status Endpoints  Endpoint Id  Publish Put","$ref":"#/components/schemas/PublishEndpointResponse"}}}},"400":{"description":"Invalid request or action","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to update publication status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/pricing":{"put":{"tags":["endpoint"],"summary":"Update Endpoint Pricing","description":"Update pricing for a published endpoint. A voice endpoint (served by the audio gateway) can be priced whether or not it is published: its calls are priced from the price in force either way.","operationId":"update_endpoint_pricing_endpoints__endpoint_id__pricing_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentPricingInput"}}}},"responses":{"200":{"description":"Successfully updated pricing","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DeploymentPricingResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Update Endpoint Pricing Endpoints  Endpoint Id  Pricing Put","$ref":"#/components/schemas/DeploymentPricingResponse"}}}},"400":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to update pricing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["endpoint"],"summary":"Get Endpoint Pricing","description":"Get current pricing for an endpoint","operationId":"get_endpoint_pricing_endpoints__endpoint_id__pricing_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successfully retrieved current pricing","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DeploymentPricingResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Endpoint Pricing Endpoints  Endpoint Id  Pricing Get","$ref":"#/components/schemas/DeploymentPricingResponse"}}}},"404":{"description":"Endpoint or pricing not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to get pricing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/pricing/options":{"get":{"tags":["endpoint"],"summary":"Get Endpoint Pricing Options","description":"The units a price for this deployment can be quoted in -- tokens for a text deployment; character, second, minute or request for a voice one, by capability -- and a price derived from its cost on record (the model catalogue, BudSim, or a Price basis edit) to start the publish or reprice form from. Publish and reprice refuse any other unit.","operationId":"get_endpoint_pricing_options_endpoints__endpoint_id__pricing_options_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"The units this deployment can be priced in, and a suggested price","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PricingOptionsResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Endpoint Pricing Options Endpoints  Endpoint Id  Pricing Options Get","$ref":"#/components/schemas/PricingOptionsResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to get pricing options","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/pricing/history":{"get":{"tags":["endpoint"],"summary":"Get Pricing History","description":"Get pricing history for an endpoint","operationId":"get_pricing_history_endpoints__endpoint_id__pricing_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successfully retrieved pricing history","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PricingHistoryResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Pricing History Endpoints  Endpoint Id  Pricing History Get","$ref":"#/components/schemas/PricingHistoryResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to get pricing history","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/publication-history":{"get":{"tags":["endpoint"],"summary":"Get Publication History","description":"Get publication history for an endpoint","operationId":"get_publication_history_endpoints__endpoint_id__publication_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successfully retrieved publication history","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PublicationHistoryResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Publication History Endpoints  Endpoint Id  Publication History Get","$ref":"#/components/schemas/PublicationHistoryResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to get publication history","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/deployment-settings":{"get":{"tags":["endpoint"],"summary":"Get Deployment Settings","description":"Get deployment settings for an endpoint","operationId":"get_deployment_settings_endpoints__endpoint_id__deployment_settings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successfully retrieved deployment settings","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DeploymentSettingsResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Deployment Settings Endpoints  Endpoint Id  Deployment Settings Get","$ref":"#/components/schemas/DeploymentSettingsResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to get deployment settings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["endpoint"],"summary":"Update Deployment Settings","description":"Update deployment settings for an endpoint","operationId":"update_deployment_settings_endpoints__endpoint_id__deployment_settings_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDeploymentSettingsRequest"}}}},"responses":{"200":{"description":"Successfully updated deployment settings","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DeploymentSettingsResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Update Deployment Settings Endpoints  Endpoint Id  Deployment Settings Put","$ref":"#/components/schemas/DeploymentSettingsResponse"}}}},"400":{"description":"Invalid deployment settings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to update deployment settings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/responses-config":{"get":{"tags":["endpoint"],"summary":"Get Responses Config","description":"Get the per-deployment Responses API configuration (``endpoints.responses_config`` JSONB column, FRD §11.2.2). Returns the spec defaults (``ResponsesConfig()``) when the column has not been set yet — the UI receives a fully-populated object either way so it can render the editor without a separate 'first save' code path.","operationId":"get_responses_config_endpoints__endpoint_id__responses_config_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successfully retrieved Responses API configuration","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponsesConfigResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Responses Config Endpoints  Endpoint Id  Responses Config Get","$ref":"#/components/schemas/ResponsesConfigResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to get Responses API configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["endpoint"],"summary":"Update Responses Config","description":"Replace the per-deployment Responses API configuration (``endpoints.responses_config`` JSONB column, FRD §11.2.2). The request body must contain the full :class:`ResponsesConfig` object — the budadmin UI loads the current config, mutates the edited fields, and PUTs the whole thing so the server-side write stays atomic. A ``model.endpoint.updated`` pub/sub event is fired after a successful commit so budprompt's ``ModelRegistryMirror`` picks up the change within seconds (FRD §8.5 / S2.7).","operationId":"update_responses_config_endpoints__endpoint_id__responses_config_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateResponsesConfigRequest"}}}},"responses":{"200":{"description":"Successfully updated Responses API configuration","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResponsesConfigResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Update Responses Config Endpoints  Endpoint Id  Responses Config Put","$ref":"#/components/schemas/ResponsesConfigResponse"}}}},"400":{"description":"Invalid Responses API configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to update Responses API configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/context-length":{"get":{"tags":["endpoint"],"summary":"Get Context Length By Name","description":"The context length of the live deployment(s) with this name, for the agent builder, which addresses deployments by name. The smaller window when two share the name; ``context_length: null`` when no source knows it.","operationId":"get_context_length_by_name_endpoints_context_length_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_name","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"The deployment name an agent is configured with","title":"Deployment Name"},"description":"The deployment name an agent is configured with"},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/context-length":{"get":{"tags":["endpoint"],"summary":"Get Context Length","description":"The deployment's context length and where it comes from. A self-hosted deployment's is its engine's ``max-model-len`` and read-only (``editable: false``); a cloud deployment's is the value set here, else the model's limit, else the cloud catalogue's (``default``, what a reset returns to).","operationId":"get_context_length_endpoints__endpoint_id__context_length_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["endpoint"],"summary":"Update Context Length","description":"Set a cloud deployment's context length, or reset it with ``null`` to the model's or the catalogue's. Refused for a self-hosted deployment, whose engine fixes it at deploy time. budprompt is told through ``model.endpoint.updated``.","operationId":"update_context_length_endpoints__endpoint_id__context_length_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContextLengthRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/audio-voices":{"get":{"tags":["endpoint"],"summary":"Get Audio Voices","description":"The voices a text-to-speech deployment's account can use, listed by the audio gateway with the deployment's own credential, plus the accents, genders, ages and timbre words present among them. ``status`` is ``ok``, or says why there is no list: ``unavailable`` (the vendor refused this key), ``unsupported`` (the vendor cannot be listed per deployment, or the deployment does not synthesise), or ``pending`` (not listed yet). ``descriptor_matching`` says whether describing a voice can resolve to one at all.","operationId":"get_audio_voices_endpoints__endpoint_id__audio_voices_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"The deployment's voices","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AudioVoicesResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Audio Voices Endpoints  Endpoint Id  Audio Voices Get","$ref":"#/components/schemas/AudioVoicesResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to get voices","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/audio-stt-capability":{"get":{"tags":["endpoint"],"summary":"Get Audio Stt Capability","description":"How the audio gateway serves a speech-to-text deployment on a live call, as it last reported: for a voice agent with automatic turns, a push-to-talk session and a plain session, ``streaming``, ``segmented`` (the gateway cuts the caller's audio at pauses and uploads each utterance; ``slower_on_calls``), ``buffered`` or ``refused`` with its code. ``status`` is ``unknown`` until the gateway has reported.","operationId":"get_audio_stt_capability_endpoints__endpoint_id__audio_stt_capability_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"How calls are served","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AudioSttCapabilityResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Audio Stt Capability Endpoints  Endpoint Id  Audio Stt Capability Get","$ref":"#/components/schemas/AudioSttCapabilityResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to get it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/audio-config":{"get":{"tags":["endpoint"],"summary":"Get Audio Config","description":"Get a deployment's audio configuration -- default voice and language, synthesis settings, transcription features -- together with the facts the settings form needs to render itself: whether the deployment is on the audio plane at all, which configuration sections its capabilities make reachable, and the canonical value spaces (44 emotion tokens, 27 delivery styles, ...). The value spaces ship with the response deliberately: a second copy in the UI is a second thing that goes stale, and the drift is invisible until a vendor rejects the token.\n\nA deployment that is not served by the audio gateway is reported with ``audio_plane: false`` rather than a 404 -- the panel has to render an explanation, and a 404 reads as 'this deployment does not exist'.","operationId":"get_audio_config_endpoints__endpoint_id__audio_config_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successfully retrieved audio configuration","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AudioConfigResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Audio Config Endpoints  Endpoint Id  Audio Config Get","$ref":"#/components/schemas/AudioConfigResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to get audio configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["endpoint"],"summary":"Update Audio Config","description":"Replace a deployment's audio configuration and push it to the audio gateway. The whole block is replaced rather than merged, so clearing a knob in the form clears it in the gateway; ``audio_config: null`` returns the deployment to vendor defaults.\n\nWhat is refused here is a value that is wrong on every vendor (an emotion token that does not exist, a percentage outside +/-50) and a feature that needs a transport this deployment does not serve. What is NOT refused is a knob the chosen vendor happens not to support: WaaV degrades that with a warning at serve time, deliberately, because a deployment-time typo must not become a serve-time outage.\n\nA 503 means the block was stored but the gateway did not receive it -- the row is written by then, so reporting success would leave the UI showing a voice the gateway is not using.","operationId":"update_audio_config_endpoints__endpoint_id__audio_config_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAudioConfigRequest"}}}},"responses":{"200":{"description":"Successfully updated audio configuration","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AudioConfigResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Update Audio Config Endpoints  Endpoint Id  Audio Config Put","$ref":"#/components/schemas/AudioConfigResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"The configuration is invalid, or names a capability this deployment does not serve","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Stored, but could not be applied to the audio gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to update audio configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/endpoints/{endpoint_id}/cache-config":{"get":{"tags":["endpoint"],"summary":"Get Cache Config","description":"Get the per-deployment semantic-cache configuration (``endpoint.cache_enabled`` / ``endpoint.cache_config``, FRD section 5.3). Rows that have never been configured -- which is all of them until this endpoint is used -- return ``CacheConfig()`` defaults with caching off, so the UI renders the editor without a separate 'first save' path.","operationId":"get_cache_config_endpoints__endpoint_id__cache_config_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successfully retrieved cache configuration","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CacheConfigResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Cache Config Endpoints  Endpoint Id  Cache Config Get","$ref":"#/components/schemas/CacheConfigResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to get cache configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["endpoint"],"summary":"Update Cache Config","description":"Replace the per-deployment semantic-cache configuration. The body carries the whole :class:`CacheConfig`; budadmin loads the current config, mutates the edited field and PUTs it back, so the write stays atomic.\n\n``mode`` accepts ``off``, ``write_only``, ``read_only`` and ``read_write``. Matching is EXACT: upstream BudCache serves a stored response only when the canonical request bytes are identical, so a read mode cannot return a close-but-different answer.","operationId":"update_cache_config_endpoints__endpoint_id__cache_config_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"An `UpdateCacheConfigRequest`: `{\"cache_config\": {...}}`.","title":"Payload"},"examples":{"shadow":{"value":{"cache_config":{"mode":"shadow","ttl_seconds":3600}}}}}}},"responses":{"200":{"description":"Successfully updated cache configuration","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CacheConfigResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Update Cache Config Endpoints  Endpoint Id  Cache Config Put","$ref":"#/components/schemas/CacheConfigResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid cache configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to update cache configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/endpoints/{endpoint_id}/cache/clear":{"post":{"tags":["endpoint"],"summary":"Clear Deployment Cache","description":"Erase this deployment's cached answers, prefix sessions, usage reports and spill. Irreversible. The deployment's cache settings are kept. Requires the deployment's name in `confirm_name`.","operationId":"clear_deployment_cache_endpoints__endpoint_id__cache_clear_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClearDeploymentCacheRequest"}}}},"responses":{"200":{"description":"The deployment's cache was cleared","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CacheClearResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Clear Deployment Cache Endpoints  Endpoint Id  Cache Clear Post","$ref":"#/components/schemas/CacheClearResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"No BudCache in this environment, or the deployment is being deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"The typed name does not match","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"The clear could not be confirmed; nothing is reported as removed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/endpoints/{endpoint_id}/price-basis":{"put":{"tags":["endpoint"],"summary":"Update Price Basis","description":"Replace this deployment's price basis with a contract rate, in USD per token. The rates are what the optimiser weighs every rewrite against and what cost reports use. The catalogue refresh leaves them alone until they are reset.","operationId":"update_price_basis_endpoints__endpoint_id__price_basis_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceBasisUpdate"}}}},"responses":{"200":{"description":"The rates are in force","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PriceBasisResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Update Price Basis Endpoints  Endpoint Id  Price Basis Put","$ref":"#/components/schemas/PriceBasisResponse"}}}},"409":{"description":"The deployment is being deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Saved, but not applied to the gateway or BudCache","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["endpoint"],"summary":"Reset Price Basis","description":"Return to the cloud catalogue or BudSim rate underneath an edit. A no-op when unedited.","operationId":"reset_price_basis_endpoints__endpoint_id__price_basis_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"The catalogue or BudSim rate is back","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PriceBasisResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Reset Price Basis Endpoints  Endpoint Id  Price Basis Delete","$ref":"#/components/schemas/PriceBasisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/cache-activity":{"get":{"tags":["endpoint"],"summary":"Get Cache Activity","description":"Cache-configuration saves (including refused ones), price basis changes and cache clears for this deployment, newest first.","operationId":"get_cache_activity_endpoints__endpoint_id__cache_activity_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"The deployment's Cost Optimiser activity","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CacheActivityResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Cache Activity Endpoints  Endpoint Id  Cache Activity Get","$ref":"#/components/schemas/CacheActivityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/autoscale":{"get":{"tags":["endpoint"],"summary":"Get Autoscale Config","description":"Get autoscale configuration for an endpoint","operationId":"get_autoscale_config_endpoints__endpoint_id__autoscale_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"User ID initiating the workflow","title":"User Id"},"description":"User ID initiating the workflow"},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successfully retrieved autoscale configuration","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AutoscaleConfigResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Autoscale Config Endpoints  Endpoint Id  Autoscale Get","$ref":"#/components/schemas/AutoscaleConfigResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to get autoscale configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["endpoint"],"summary":"Update Autoscale Config","description":"Update autoscale configuration for an endpoint","operationId":"update_autoscale_config_endpoints__endpoint_id__autoscale_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"User ID initiating the workflow","title":"User Id"},"description":"User ID initiating the workflow"},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAutoscaleRequest"}}}},"responses":{"200":{"description":"Successfully updated autoscale configuration","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AutoscaleConfigResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Update Autoscale Config Endpoints  Endpoint Id  Autoscale Put","$ref":"#/components/schemas/AutoscaleConfigResponse"}}}},"400":{"description":"Invalid autoscale configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to update autoscale configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/cache/entries":{"get":{"tags":["endpoint"],"summary":"List Cache Entries","description":"List this deployment's resident cache entries. Residency only -- the prompt, model and agent are joined from observability on `key_digest`. Filters apply to residency: status, pinned, minimum hits, expiry.","operationId":"list_cache_entries_endpoints__endpoint_id__cache_entries_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"cursor_generation","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cursor Generation"}},{"name":"pinned","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pinned"}},{"name":"entry_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(live|expired)$"},{"type":"null"}],"title":"Entry Status"}},{"name":"min_hits","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"title":"Min Hits"}},{"name":"expires_before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"title":"Expires Before"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"One page of resident entries","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CacheEntryListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Cache Entries Endpoints  Endpoint Id  Cache Entries Get","$ref":"#/components/schemas/CacheEntryListResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"No BudCache in this environment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/cache/entries/residency":{"post":{"tags":["endpoint"],"summary":"Cache Entry Residency","description":"Given digests chosen elsewhere (typically by a search over observability), report which are still resident. A digest that is absent was evicted, expired, or never cached -- all three are ordinary results, not errors.","operationId":"cache_entry_residency_endpoints__endpoint_id__cache_entries_residency_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CacheEntryResidencyRequest"}}}},"responses":{"200":{"description":"Which digests are still cached","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CacheEntryResidencyResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Cache Entry Residency Endpoints  Endpoint Id  Cache Entries Residency Post","$ref":"#/components/schemas/CacheEntryResidencyResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"No BudCache in this environment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/cache/entries/{key_digest}":{"get":{"tags":["endpoint"],"summary":"Get Cache Entry","description":"One entry and the answer it would serve. Reading this does NOT count as a cache hit and does not move the entry up the eviction order.","operationId":"get_cache_entry_endpoints__endpoint_id__cache_entries__key_digest__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"key_digest","in":"path","required":true,"schema":{"type":"string","title":"Key Digest"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"One entry and its stored answer","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CacheEntryDetailResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Cache Entry Endpoints  Endpoint Id  Cache Entries  Key Digest  Get","$ref":"#/components/schemas/CacheEntryDetailResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"No BudCache in this environment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["endpoint"],"summary":"Update Cache Entry","description":"Pin, unpin, or re-arm one entry's TTL. A TTL is clamped to the deployment's configured ceiling. A pin may be refused when this deployment has reached the bytes it may hold pinned; that comes back as `pin_result: budget_exhausted` with the cap, not as an error.","operationId":"update_cache_entry_endpoints__endpoint_id__cache_entries__key_digest__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"key_digest","in":"path","required":true,"schema":{"type":"string","title":"Key Digest"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CacheEntryUpdateRequest"}}}},"responses":{"200":{"description":"The entry was updated","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CacheEntryUpdateResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Update Cache Entry Endpoints  Endpoint Id  Cache Entries  Key Digest  Patch","$ref":"#/components/schemas/CacheEntryUpdateResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"No BudCache in this environment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Nothing to change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/endpoints/{endpoint_id}/cache/entries/delete":{"post":{"tags":["endpoint"],"summary":"Delete Cache Entries","description":"Delete named entries from this deployment's cache. Irreversible. Digests that name nothing are counted, not refused: an entry can be evicted between being listed and being deleted.","operationId":"delete_cache_entries_endpoints__endpoint_id__cache_entries_delete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CacheEntryDeleteRequest"}}}},"responses":{"200":{"description":"Entries were deleted","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CacheEntryDeleteResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Cache Entries Endpoints  Endpoint Id  Cache Entries Delete Post","$ref":"#/components/schemas/CacheEntryDeleteResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"No BudCache in this environment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"No entries were named","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/endpoints/{endpoint_id}/cache/purge-expired":{"post":{"tags":["endpoint"],"summary":"Purge Expired Cache Entries","description":"Sweep THIS deployment's expired entries now instead of waiting for the background sweep. Scoped to this deployment only.","operationId":"purge_expired_cache_entries_endpoints__endpoint_id__cache_purge_expired_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Expired entries were swept","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CachePurgeExpiredResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Purge Expired Cache Entries Endpoints  Endpoint Id  Cache Purge Expired Post","$ref":"#/components/schemas/CachePurgeExpiredResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"No BudCache in this environment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/cache/occupancy":{"get":{"tags":["endpoint"],"summary":"Cache Occupancy","description":"How many entries and stored bytes this deployment holds.","operationId":"cache_occupancy_endpoints__endpoint_id__cache_occupancy_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"This deployment's cache usage","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CacheOccupancyResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Cache Occupancy Endpoints  Endpoint Id  Cache Occupancy Get","$ref":"#/components/schemas/CacheOccupancyResponse"}}}},"404":{"description":"Endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"No BudCache in this environment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoints/{endpoint_id}/service-grants/{principal_id}":{"put":{"tags":["endpoint"],"summary":"Put Service Grant","description":"Allow hodor service principal `principal_id` to call this endpoint through the gateway. Empty body. Idempotent: an existing grant answers its original `create_time`.","operationId":"put_service_grant_endpoints__endpoint_id__service_grants__principal_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"principal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Principal Id"}}],"responses":{"200":{"description":"{\"endpoint_id\", \"principal_id\", \"create_time\"} (RFC 3339)","content":{"application/json":{"schema":{}}}},"403":{"description":"{\"code\": \"not_in_project\"} or {\"code\": \"principal_mismatch\"}"},"404":{"description":"Unknown, deleted or another tenant's endpoint"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["endpoint"],"summary":"Delete Service Grant","description":"Remove hodor service principal `principal_id`'s grant on this endpoint.","operationId":"delete_service_grant_endpoints__endpoint_id__service_grants__principal_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"principal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Principal Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"{\"code\": \"not_in_project\"} or {\"code\": \"principal_mismatch\"}"},"404":{"description":"Unknown or deleted endpoint, or no such grant"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/version":{"get":{"tags":["Metadata"],"summary":"Version","description":"Get the build this instance is running.","operationId":"version_version_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__core__schemas__VersionResponse"}}}}}}},"/metrics/analytics":{"post":{"tags":["metric"],"summary":"Analytics Proxy","description":"Proxy endpoint for analytics requests to the observability/analytics endpoint","operationId":"analytics_proxy_metrics_analytics_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Request Body"}}},"required":true},"responses":{"200":{"description":"Analytics response from metrics service","content":{"application/json":{"schema":{}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/observability/events/analytics":{"post":{"tags":["metric"],"summary":"Agent Invocation Analytics Proxy","description":"Proxy endpoint for agent-invocation event analytics (observability/events/analytics)","operationId":"agent_invocation_analytics_proxy_metrics_observability_events_analytics_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Request Body"}}},"required":true},"responses":{"200":{"description":"Agent-invocation event analytics from the metrics service","content":{"application/json":{"schema":{}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/observability/events/summary":{"post":{"tags":["metric"],"summary":"Agent Invocation Summary Proxy","description":"Proxy endpoint for agent-invocation window-wide totals (observability/events/summary)","operationId":"agent_invocation_summary_proxy_metrics_observability_events_summary_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Request Body"}}},"required":true},"responses":{"200":{"description":"Agent-invocation window-wide totals from the metrics service","content":{"application/json":{"schema":{}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/observability/tools/analytics":{"post":{"tags":["metric"],"summary":"Tool Call Analytics Proxy","description":"Proxy endpoint for per-tool execution analytics (observability/tools/analytics)","operationId":"tool_call_analytics_proxy_metrics_observability_tools_analytics_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Request Body"}}},"required":true},"responses":{"200":{"description":"Per-tool execution analytics from the metrics service","content":{"application/json":{"schema":{}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/observability/tokens/usage":{"post":{"tags":["metric"],"summary":"Agent Token Usage Proxy","description":"Proxy endpoint for agent token usage over time (observability/tokens/usage)","operationId":"agent_token_usage_proxy_metrics_observability_tokens_usage_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Request Body"}}},"required":true},"responses":{"200":{"description":"Agent token usage over time from the metrics service","content":{"application/json":{"schema":{}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/count":{"get":{"tags":["metric"],"summary":"Get Dashboard Stats","description":"Retrieve the dashboard statistics, including counts for models, projects, endpoints, and clusters.","operationId":"get_dashboard_stats_metrics_count_get","responses":{"200":{"description":"Successfully retrieved dashboard statistics","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardStatsResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/inferences/list":{"post":{"tags":["metric"],"summary":"List Inferences","description":"List inference requests with pagination and filtering","operationId":"list_inferences_metrics_inferences_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferenceListRequest"}}},"required":true},"responses":{"200":{"description":"Successfully retrieved inference list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferenceListResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/inferences/{inference_id}":{"get":{"tags":["metric"],"summary":"Get Inference Details","description":"Get complete details for a single inference","operationId":"get_inference_details_metrics_inferences__inference_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"inference_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Inference Id"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"enum":["inference","voice"],"type":"string"},{"type":"null"}],"description":"Row source from the list item's `source`; `voice` reads the voice fact (spec 021). Omitted: the metrics service falls back to the voice lookup when no inference row exists.","title":"Source"},"description":"Row source from the list item's `source`; `voice` reads the voice fact (spec 021). Omitted: the metrics service falls back to the voice lookup when no inference row exists."}],"responses":{"200":{"description":"Successfully retrieved inference details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferenceDetailResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Inference not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Access denied to this inference","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/inferences/{inference_id}/feedback":{"get":{"tags":["metric"],"summary":"Get Inference Feedback","description":"Get all feedback associated with an inference","operationId":"get_inference_feedback_metrics_inferences__inference_id__feedback_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"inference_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Inference Id"}}],"responses":{"200":{"description":"Successfully retrieved inference feedback","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferenceFeedbackResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Inference not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Access denied to this inference","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/gateway/analytics":{"post":{"tags":["metric"],"summary":"Query gateway analytics","description":"Query comprehensive gateway analytics with filtering by projects, models, and endpoints","operationId":"query_gateway_analytics_metrics_gateway_analytics_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayAnalyticsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayAnalyticsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/gateway/geographical-stats":{"get":{"tags":["metric"],"summary":"Get geographical distribution statistics","description":"Get statistics on the geographical distribution of API requests","operationId":"get_geographical_stats_metrics_gateway_geographical_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_time","in":"query","required":false,"schema":{"type":"string","format":"date-time","description":"Start time for the query (defaults to 7 days ago)","title":"Start Time"},"description":"Start time for the query (defaults to 7 days ago)"},{"name":"end_time","in":"query","required":false,"schema":{"type":"string","format":"date-time","description":"End time for the query (defaults to now)","title":"End Time"},"description":"End time for the query (defaults to now)"},{"name":"project_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"List of project IDs to filter by (defaults to user's accessible projects)","title":"Project Ids"},"description":"List of project IDs to filter by (defaults to user's accessible projects)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeographicalStatsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/gateway/blocking-stats":{"get":{"tags":["metric"],"summary":"Get blocking statistics","description":"Get statistics on blocked requests for security analysis","operationId":"get_blocking_stats_metrics_gateway_blocking_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_time","in":"query","required":false,"schema":{"type":"string","format":"date-time","description":"Start time for the query (defaults to 7 days ago)","title":"Start Time"},"description":"Start time for the query (defaults to 7 days ago)"},{"name":"end_time","in":"query","required":false,"schema":{"type":"string","format":"date-time","description":"End time for the query (defaults to now)","title":"End Time"},"description":"End time for the query (defaults to now)"},{"name":"project_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"List of project IDs to filter by (defaults to user's accessible projects)","title":"Project Ids"},"description":"List of project IDs to filter by (defaults to user's accessible projects)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockingStatsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/gateway/blocking-rules-stats":{"get":{"tags":["metric"],"summary":"Get blocking rules overview statistics","description":"Get overview statistics for blocking rules dashboard cards including rule counts and block statistics","operationId":"get_blocking_rules_stats_overview_metrics_gateway_blocking_rules_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start time for time-based statistics (defaults to 7 days ago)","title":"Start Time"},"description":"Start time for time-based statistics (defaults to 7 days ago)"},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End time for time-based statistics (defaults to now)","title":"End Time"},"description":"End time for time-based statistics (defaults to now)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockingRulesStatsOverviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/gateway/blocking-dashboard-stats":{"get":{"tags":["metric"],"summary":"Get blocking rules dashboard statistics","description":"Get real-time dashboard statistics for blocking rules, querying PostgreSQL for rule counts and ClickHouse for block counts","operationId":"get_blocking_dashboard_stats_metrics_gateway_blocking_dashboard_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start time for block statistics (defaults to 7 days ago)","title":"Start Time"},"description":"Start time for block statistics (defaults to 7 days ago)"},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End time for block statistics (defaults to now)","title":"End Time"},"description":"End time for block statistics (defaults to now)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Blocking Dashboard Stats Metrics Gateway Blocking Dashboard Stats Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/gateway/top-routes":{"get":{"tags":["metric"],"summary":"Get top API routes","description":"Get the most frequently accessed API routes with performance metrics","operationId":"get_top_routes_metrics_gateway_top_routes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_time","in":"query","required":false,"schema":{"type":"string","format":"date-time","description":"Start time for the query (defaults to 7 days ago)","title":"Start Time"},"description":"Start time for the query (defaults to 7 days ago)"},{"name":"end_time","in":"query","required":false,"schema":{"type":"string","format":"date-time","description":"End time for the query (defaults to now)","title":"End Time"},"description":"End time for the query (defaults to now)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Maximum number of routes to return","default":10,"title":"Limit"},"description":"Maximum number of routes to return"},{"name":"project_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"List of project IDs to filter by (defaults to user's accessible projects)","title":"Project Ids"},"description":"List of project IDs to filter by (defaults to user's accessible projects)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopRoutesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/gateway/client-analytics":{"get":{"tags":["metric"],"summary":"Get client analytics","description":"Get analytics data grouped by client/user","operationId":"get_client_analytics_metrics_gateway_client_analytics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_time","in":"query","required":false,"schema":{"type":"string","format":"date-time","description":"Start time for the query (defaults to 7 days ago)","title":"Start Time"},"description":"Start time for the query (defaults to 7 days ago)"},{"name":"end_time","in":"query","required":false,"schema":{"type":"string","format":"date-time","description":"End time for the query (defaults to now)","title":"End Time"},"description":"End time for the query (defaults to now)"},{"name":"project_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"List of project IDs to filter by (defaults to user's accessible projects)","title":"Project Ids"},"description":"List of project IDs to filter by (defaults to user's accessible projects)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientAnalyticsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/gateway/blocking-rules":{"post":{"tags":["metric"],"summary":"Create a blocking rule","description":"Create a new blocking rule (global, model-specific, or project-specific)","operationId":"create_blocking_rule_metrics_gateway_blocking_rules_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Project ID for project-specific rules","title":"Project Id"},"description":"Project ID for project-specific rules"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockingRuleCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockingRuleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["metric"],"summary":"List blocking rules","description":"List blocking rules with filtering options","operationId":"list_blocking_rules_metrics_gateway_blocking_rules_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by project ID","title":"Project Id"},"description":"Filter by project ID"},{"name":"rule_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/BlockingRuleType"},{"type":"null"}],"description":"Filter by rule type","title":"Rule Type"},"description":"Filter by rule type"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/BlockingRuleStatus"},{"type":"null"}],"description":"Filter by status","title":"Status"},"description":"Filter by status"},{"name":"endpoint_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by endpoint ID","title":"Endpoint Id"},"description":"Filter by endpoint ID"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":20,"title":"Page Size"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockingRuleListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/gateway/blocking-rules/{rule_id}":{"get":{"tags":["metric"],"summary":"Get a blocking rule","description":"Get details of a specific blocking rule","operationId":"get_blocking_rule_metrics_gateway_blocking_rules__rule_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockingRuleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["metric"],"summary":"Update a blocking rule","description":"Update an existing blocking rule","operationId":"update_blocking_rule_metrics_gateway_blocking_rules__rule_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockingRuleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockingRuleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["metric"],"summary":"Delete a blocking rule","description":"Delete a blocking rule","operationId":"delete_blocking_rule_metrics_gateway_blocking_rules__rule_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockingRuleDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/gateway/blocking-rules/sync":{"post":{"tags":["metric"],"summary":"Sync blocking rules to Redis","description":"Sync blocking rules to Redis for real-time access by the gateway","operationId":"sync_blocking_rules_metrics_gateway_blocking_rules_sync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockingRuleSyncRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/gateway/blocking-rules/sync-stats":{"post":{"tags":["metric"],"summary":"Sync blocking rule statistics from ClickHouse","description":"Sync blocking rule match counts and last matched timestamps from ClickHouse to PostgreSQL","operationId":"sync_blocking_rule_stats_metrics_gateway_blocking_rules_sync_stats_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/aggregated":{"post":{"tags":["metric"],"summary":"Get Aggregated Metrics","description":"Get aggregated metrics with server-side calculations and user access control","operationId":"get_aggregated_metrics_metrics_aggregated_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AggregatedMetricsRequest"}}},"required":true},"responses":{"200":{"description":"Successfully retrieved aggregated metrics","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AggregatedMetricsResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Access denied to requested projects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/time-series":{"post":{"tags":["metric"],"summary":"Get Time Series Metrics","description":"Get time-series metrics data for chart visualization with user access control","operationId":"get_time_series_metrics_metrics_time_series_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesRequest"}}},"required":true},"responses":{"200":{"description":"Successfully retrieved time-series data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Access denied to requested projects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/geography":{"get":{"tags":["metric"],"summary":"Get Geographic Distribution","description":"Get geographic distribution of API requests with user access control","operationId":"get_geographic_distribution_metrics_geography_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"from_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Start date for the analysis","title":"From Date"},"description":"Start date for the analysis"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End date for the analysis","title":"To Date"},"description":"End date for the analysis"},{"name":"group_by","in":"query","required":false,"schema":{"type":"string","description":"Group by: country, region, city","default":"country","title":"Group By"},"description":"Group by: country, region, city"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Maximum number of locations to return","default":50,"title":"Limit"},"description":"Maximum number of locations to return"},{"name":"project_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of project IDs to filter by (optional - defaults to user's projects)","title":"Project Ids"},"description":"Comma-separated list of project IDs to filter by (optional - defaults to user's projects)"}],"responses":{"200":{"description":"Successfully retrieved geographic distribution data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeographicDataResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Access denied to requested projects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/observability/metrics/aggregated":{"post":{"tags":["metric"],"summary":"Get Aggregated Metrics","description":"Get aggregated metrics with user access control","operationId":"get_aggregated_metrics_metrics_observability_metrics_aggregated_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AggregatedMetricsRequest"}}},"required":true},"responses":{"200":{"description":"Successfully retrieved aggregated metrics data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AggregatedMetricsResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Access denied to requested projects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/observability/metrics/time-series":{"post":{"tags":["metric"],"summary":"Get Time Series Metrics","description":"Get time series metrics with user access control","operationId":"get_time_series_metrics_metrics_observability_metrics_time_series_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesRequest"}}},"required":true},"responses":{"200":{"description":"Successfully retrieved time series data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeSeriesResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Access denied to requested projects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/observability/metrics/geography":{"get":{"tags":["metric"],"summary":"Get Geographic Metrics","description":"Get geographic distribution metrics with user access control","operationId":"get_geographic_metrics_metrics_observability_metrics_geography_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"from_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Start date for the query range","title":"From Date"},"description":"Start date for the query range"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End date for the query range","title":"To Date"},"description":"End date for the query range"}],"responses":{"200":{"description":"Successfully retrieved geographic data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeographicDataResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Access denied to requested projects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/latency-distribution":{"post":{"tags":["metric"],"summary":"Get Latency Distribution","description":"Get latency distribution analysis with server-side calculations and user access control","operationId":"get_latency_distribution_metrics_latency_distribution_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LatencyDistributionRequest"}}},"required":true},"responses":{"200":{"description":"Successfully retrieved latency distribution data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LatencyDistributionResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Access denied to requested projects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/distribution":{"post":{"tags":["metric"],"summary":"Get Prompt Distribution","description":"Get prompt distribution analysis with access control","operationId":"get_prompt_distribution_metrics_distribution_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptDistributionRequest"}}},"required":true},"responses":{"200":{"description":"Successfully retrieved prompt distribution data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptDistributionResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Access denied to requested projects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/sync-stats":{"get":{"tags":["metric"],"summary":"Get Hybrid Sync Stats","description":"Get hybrid metrics sync task statistics.\n\nThis endpoint returns statistics about the hybrid sync task that combines\ncredential usage sync and user usage sync.\n\nArgs:\n    current_user: The current authenticated user\n\nReturns:\n    Dict containing sync task statistics","operationId":"get_hybrid_sync_stats_metrics_sync_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Hybrid Sync Stats Metrics Sync Stats Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/observability/traces":{"get":{"tags":["metric"],"summary":"List Traces","description":"List OTel traces filtered by resource type, scoped to the caller's projects","operationId":"list_traces_metrics_observability_traces_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"resource_type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/TraceResourceType","description":"Resource type: all, endpoint, prompt, project, model"},"description":"Resource type: all, endpoint, prompt, project, model"},{"name":"from_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Start date for filtering traces","title":"From Date"},"description":"Start date for filtering traces"},{"name":"to_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"End date for filtering traces","title":"To Date"},"description":"End date for filtering traces"},{"name":"resource_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Resource ID (required for all types except 'all')","title":"Resource Id"},"description":"Resource ID (required for all types except 'all')"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number (1-indexed)","default":1,"title":"Page"},"description":"Page number (1-indexed)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Number of results per page","default":50,"title":"Limit"},"description":"Number of results per page"},{"name":"flatten","in":"query","required":false,"schema":{"type":"boolean","description":"If true, return all spans (root + children) sorted by time","default":false,"title":"Flatten"},"description":"If true, return all spans (root + children) sorted by time"},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Only traces carrying one of these tags (project listings)","title":"Tags"},"description":"Only traces carrying one of these tags (project listings)"}],"responses":{"200":{"description":"Successfully retrieved traces","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Access denied to the requested project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/observability/traces/{trace_id}":{"get":{"tags":["metric"],"summary":"Get Trace","description":"Get all spans for a single trace","operationId":"get_trace_metrics_observability_traces__trace_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"trace_id","in":"path","required":true,"schema":{"type":"string","title":"Trace Id"}}],"responses":{"200":{"description":"Successfully retrieved trace","content":{"application/json":{"schema":{}}}},"404":{"description":"Trace not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/observability/traces/{trace_id}/tags":{"get":{"tags":["metric"],"summary":"Get Trace Tags","description":"Tags on one trace","operationId":"get_trace_tags_metrics_observability_traces__trace_id__tags_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"trace_id","in":"path","required":true,"schema":{"type":"string","title":"Trace Id"}},{"name":"started_at","in":"query","required":true,"schema":{"type":"string","description":"The trace's start (root timestamp); bounds the lookup","title":"Started At"},"description":"The trace's start (root timestamp); bounds the lookup"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["metric"],"summary":"Change Trace Tags","description":"Add or remove tags on one trace","operationId":"change_trace_tags_metrics_observability_traces__trace_id__tags_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"trace_id","in":"path","required":true,"schema":{"type":"string","title":"Trace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_TagChangeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/observability/traces/tags/bulk":{"post":{"tags":["metric"],"summary":"Bulk Trace Tags","description":"Add or remove tags on several traces","operationId":"bulk_trace_tags_metrics_observability_traces_tags_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_TagBulkIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/observability/trace-tags":{"get":{"tags":["metric"],"summary":"Trace Tag Vocabulary","description":"A project's tags with counts","operationId":"trace_tag_vocabulary_metrics_observability_trace_tags_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"prefix","in":"query","required":false,"schema":{"type":"string","maxLength":64,"default":"","title":"Prefix"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/observability/voice/summary":{"post":{"tags":["metric"],"summary":"Voice Summary Proxy","description":"Voice (TTS / transcription / translation / realtime sessions) totals and per-capability stats, including realtime token totals and session counts, scoped to the caller","operationId":"voice_summary_proxy_metrics_observability_voice_summary_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceAnalyticsRequest"}}},"required":true},"responses":{"200":{"description":"Voice analytics from the metrics service","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Access denied to requested projects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Rejected by the metrics service (unknown filter key, metric or dimension)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/observability/voice/time-series":{"post":{"tags":["metric"],"summary":"Voice Time Series Proxy","description":"Voice metrics bucketed over time, optionally grouped by one dimension, scoped to the caller","operationId":"voice_time_series_proxy_metrics_observability_voice_time_series_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceAnalyticsRequest"}}},"required":true},"responses":{"200":{"description":"Voice analytics from the metrics service","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Access denied to requested projects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Rejected by the metrics service (unknown filter key, metric or dimension)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/observability/voice/breakdown":{"post":{"tags":["metric"],"summary":"Voice Breakdown Proxy","description":"Voice metrics grouped by one or two dimensions, scoped to the caller","operationId":"voice_breakdown_proxy_metrics_observability_voice_breakdown_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceAnalyticsRequest"}}},"required":true},"responses":{"200":{"description":"Voice analytics from the metrics service","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Access denied to requested projects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Rejected by the metrics service (unknown filter key, metric or dimension)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/metrics/observability/voice/calls":{"post":{"tags":["metric"],"summary":"Voice Calls Proxy","description":"Individual voice calls (no transcript or synthesis text), keyset-paginated, scoped to the caller. A realtime session's billed responses: `filters.session_id` with `order: asc`","operationId":"voice_calls_proxy_metrics_observability_voice_calls_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceAnalyticsRequest"}}},"required":true},"responses":{"200":{"description":"Voice analytics from the metrics service","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Access denied to requested projects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Rejected by the metrics service (unknown filter key, metric or dimension)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/models/":{"get":{"tags":["model"],"summary":"List All Models","description":"List all models","operationId":"list_all_models_models__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"author","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[],"title":"Author"}},{"name":"modality","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ModalityEnum"},"default":[],"title":"Modality"}},{"name":"supported_endpoints","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ModelEndpointEnum"},"default":[],"title":"Supported Endpoints"}},{"name":"tags","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[],"title":"Tags"}},{"name":"tasks","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[],"title":"Tasks"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"model_size_min","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":0},{"type":"null"}],"title":"Model Size Min"}},{"name":"model_size_max","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":0},{"type":"null"}],"title":"Model Size Max"}},{"name":"provider_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelProviderTypeEnum"},{"type":"null"}],"title":"Provider Type"}},{"name":"table_source","in":"query","required":false,"schema":{"enum":["cloud_model","model"],"type":"string","default":"cloud_model","title":"Table Source"}},{"name":"base_model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Model"}},{"name":"base_model_relation","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/BaseModelRelationEnum"},{"type":"null"}],"title":"Base Model Relation"}},{"name":"exclude_adapters","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Exclude Adapters"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/ModelEndpointEnum"}},{"type":"null"}],"title":"Supported Endpoints"}}}},"responses":{"200":{"description":"Successfully list all models","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelPaginatedResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List All Models Models  Get","$ref":"#/components/schemas/ModelPaginatedResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/models/top-leaderboards":{"post":{"tags":["model"],"summary":"List Top Leaderboards","description":"List top leaderboards","operationId":"list_top_leaderboards_models_top_leaderboards_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopLeaderboardRequest"}}},"required":true},"responses":{"200":{"description":"Successfully listed top leaderboards","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopLeaderboardResponse","anyOf":[{"$ref":"#/components/schemas/TopLeaderboardResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Top Leaderboards Models Top Leaderboards Post"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/models/providers":{"get":{"tags":["model"],"summary":"List Providers","description":"List all model providers","operationId":"list_providers_models_providers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"modality","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ModalityEnum"},"default":[],"title":"Modality"}},{"name":"supported_endpoints","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ModelEndpointEnum"},"default":[],"title":"Supported Endpoints"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"capabilities","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderCapabilityEnum"},{"type":"null"}],"title":"Capabilities"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully list all providers","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Providers Models Providers Get","$ref":"#/components/schemas/ProviderResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/models/cloud-model-workflow":{"post":{"tags":["model"],"summary":"Add Cloud Model Workflow","description":"Add cloud model workflow","operationId":"add_cloud_model_workflow_models_cloud_model_workflow_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"User ID initiating the workflow","title":"User Id"},"description":"User ID initiating the workflow"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCloudModelWorkflowRequest"}}}},"responses":{"200":{"description":"Successfully add cloud model workflow","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Add Cloud Model Workflow Models Cloud Model Workflow Post","$ref":"#/components/schemas/RetrieveWorkflowDataResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/models/local-model-workflow":{"post":{"tags":["model"],"summary":"Add Local Model Workflow","description":"Add local model workflow","operationId":"add_local_model_workflow_models_local_model_workflow_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"User ID initiating the workflow","title":"User Id"},"description":"User ID initiating the workflow"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLocalModelWorkflowRequest"}}}},"responses":{"200":{"description":"Successfully add local model workflow","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Add Local Model Workflow Models Local Model Workflow Post","$ref":"#/components/schemas/RetrieveWorkflowDataResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/models/openai-compatible/discover":{"post":{"tags":["model"],"summary":"Discover Openai Compatible Models","description":"List the models an OpenAI-compatible server advertises at GET {api_base}/models. Supply either a saved openai_compatible credential_id or a raw api_base (+ optional api_key). An unreachable server is NOT an error: the response is still 200 with reachable=false and a short detail, so the caller can fall back to entering the model id manually.","operationId":"discover_openai_compatible_models_models_openai_compatible_discover_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAICompatibleDiscoverRequest"}}},"required":true},"responses":{"200":{"description":"Successfully probed the OpenAI-compatible server","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAICompatibleDiscoverResponse","anyOf":[{"$ref":"#/components/schemas/OpenAICompatibleDiscoverResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Discover Openai Compatible Models Models Openai Compatible Discover Post"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/models/{model_id}":{"patch":{"tags":["model"],"summary":"Edit Model","description":"Edit cloud model","operationId":"edit_model_models__model_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Model Id"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_edit_model_models__model_id__patch"}}}},"responses":{"200":{"description":"Successfully edited cloud model","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Edit Model Models  Model Id  Patch","$ref":"#/components/schemas/CreateCloudModelWorkflowResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["model"],"summary":"Retrieve Model","description":"Retrieve details of a model by ID","operationId":"retrieve_model_models__model_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Model Id"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"User ID initiating the workflow","title":"User Id"},"description":"User ID initiating the workflow"}],"responses":{"200":{"description":"Successfully retrieved model details","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelDetailSuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Retrieve Model Models  Model Id  Get","$ref":"#/components/schemas/ModelDetailSuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Model not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["model"],"summary":"Delete Model","description":"Delete an active model from the database","operationId":"delete_model_models__model_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Model Id"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"User ID initiating the workflow","title":"User Id"},"description":"User ID initiating the workflow"}],"responses":{"200":{"description":"Successfully deleted model","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Model Models  Model Id  Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Model not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/models/cloud-models/recommended-tags":{"get":{"tags":["model"],"summary":"List Cloud Model Recommended Tags","description":"List all cloud model recommended tags","operationId":"list_cloud_model_recommended_tags_models_cloud_models_recommended_tags_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successfully list all recommended tags","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RecommendedTagsResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Cloud Model Recommended Tags Models Cloud Models Recommended Tags Get","$ref":"#/components/schemas/RecommendedTagsResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/models/tags":{"get":{"tags":["model"],"summary":"List Model Tags","description":"Search model tags by name with pagination","operationId":"list_model_tags_models_tags_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successfully searched tags by name","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TagsListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Model Tags Models Tags Get","$ref":"#/components/schemas/TagsListResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/models/tasks":{"get":{"tags":["model"],"summary":"List Model Tasks","description":"Search model tags by name with pagination","operationId":"list_model_tasks_models_tasks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successfully listed tasks","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TasksListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Model Tasks Models Tasks Get","$ref":"#/components/schemas/TasksListResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/models/authors":{"get":{"tags":["model"],"summary":"List All Model Authors","description":"Search model author by name with pagination","operationId":"list_all_model_authors_models_authors_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"author","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully searched author by name","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelAuthorResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List All Model Authors Models Authors Get","$ref":"#/components/schemas/ModelAuthorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/models/quantization-methods":{"get":{"tags":["model"],"summary":"List Quantization Methods","description":"List quantization methods","operationId":"list_quantization_methods_models_quantization_methods_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","description":"Whether to search for quantization methods","default":false,"title":"Search"},"description":"Whether to search for quantization methods"},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully listed quantization methods","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/QuantizationMethodResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Quantization Methods Models Quantization Methods Get","$ref":"#/components/schemas/QuantizationMethodResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/models/catalog":{"get":{"tags":["model"],"summary":"List Catalog Models","description":"List published models available in the catalog with optional search and filtering","operationId":"list_catalog_models_models_catalog_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"modality","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/ModalityEnum"}},{"type":"null"}],"description":"Filter by modality","title":"Modality"},"description":"Filter by modality"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelStatusEnum"},{"type":"null"}],"title":"Status"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully listed published models","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelCatalogResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Catalog Models Models Catalog Get","$ref":"#/components/schemas/ModelCatalogResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/models/catalog/{endpoint_id}":{"get":{"tags":["model"],"summary":"Get Catalog Model Details","description":"Get detailed information about a published model","operationId":"get_catalog_model_details_models_catalog__endpoint_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}}],"responses":{"200":{"description":"Successfully retrieved model details","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelDetailSuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Catalog Model Details Models Catalog  Endpoint Id  Get","$ref":"#/components/schemas/ModelDetailSuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Model not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/models/{model_id}/deployment-capabilities":{"get":{"tags":["model"],"summary":"Get Deployment Capabilities","description":"Which deployment features (speculative decoding, tool calling, reasoning, ...) the model can use","operationId":"get_deployment_capabilities_models__model_id__deployment_capabilities_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Model Id"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"User ID initiating the workflow","title":"User Id"},"description":"User ID initiating the workflow"}],"responses":{"200":{"description":"The deployment features the model can use","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DeploymentCapabilitiesResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Deployment Capabilities Models  Model Id  Deployment Capabilities Get","$ref":"#/components/schemas/DeploymentCapabilitiesResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Model not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/models/{model_id}/security-scan/export":{"get":{"tags":["model"],"summary":"Export Model Scan Report","description":"Download the security scan report for a model as a PDF","operationId":"export_model_scan_report_models__model_id__security_scan_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Model Id"}},{"name":"format","in":"query","required":false,"schema":{"const":"pdf","type":"string","default":"pdf","title":"Format"}}],"responses":{"200":{"description":"Downloadable security scan report","content":{"application/json":{"schema":{}},"application/pdf":{}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Model or scan result not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/models/security-scan":{"post":{"tags":["model"],"summary":"Scan Local Model Workflow","description":"Scan local model","operationId":"scan_local_model_workflow_models_security_scan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalModelScanRequest"}}},"required":true},"responses":{"200":{"description":"Successfully scan local model","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse","anyOf":[{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Scan Local Model Workflow Models Security Scan Post"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/models/cancel-deployment":{"post":{"tags":["model"],"summary":"Cancel Model Deployment","description":"Cancel model deployment","operationId":"cancel_model_deployment_models_cancel_deployment_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelDeploymentWorkflowRequest"}}}},"responses":{"200":{"description":"Successfully cancel model deployment","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Cancel Model Deployment Models Cancel Deployment Post","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/models/{model_id}/leaderboards":{"get":{"tags":["model"],"summary":"List Leaderboards","description":"List leaderboards of specific model by uri","operationId":"list_leaderboards_models__model_id__leaderboards_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Model Id"}},{"name":"table_source","in":"query","required":false,"schema":{"enum":["cloud_model","model"],"type":"string","description":"The source of the model","default":"model","title":"Table Source"},"description":"The source of the model"},{"name":"k","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"The maximum number of leaderboards to return","default":10,"title":"K"},"description":"The maximum number of leaderboards to return"}],"responses":{"200":{"description":"Successfully listed leaderboards","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/LeaderboardTableResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Leaderboards Models  Model Id  Leaderboards Get","$ref":"#/components/schemas/LeaderboardTableResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Model not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/models/quantize-model-workflow":{"post":{"tags":["model"],"summary":"Quantize Model Workflow","description":"Quantize model workflow","operationId":"quantize_model_workflow_models_quantize_model_workflow_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuantizeModelWorkflowRequest"}}},"required":true},"responses":{"200":{"description":"Successfully quantize model workflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse","anyOf":[{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Quantize Model Workflow Models Quantize Model Workflow Post"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/models/cancel-quantization":{"post":{"tags":["model"],"summary":"Cancel Model Quantization","description":"Cancel model quantization","operationId":"cancel_model_quantization_models_cancel_quantization_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelDeploymentWorkflowRequest"}}},"required":true},"responses":{"200":{"description":"Successfully cancel model quantization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse","anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Cancel Model Quantization Models Cancel Quantization Post"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/models/deploy-workflow":{"post":{"tags":["model"],"summary":"Deploy Model By Step","description":"Deploy a model in server for a specified project by step","operationId":"deploy_model_by_step_models_deploy_workflow_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"User ID initiating the workflow","title":"User Id"},"description":"User ID initiating the workflow"},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelDeployStepRequest"}}}},"responses":{"200":{"description":"Successfully deploy a model in server for a specified project by step","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Deploy Model By Step Models Deploy Workflow Post","$ref":"#/components/schemas/RetrieveWorkflowDataResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications":{"post":{"tags":["Notifications"],"summary":"Receive Notification","description":"Triggers a notification. Can be used for both API and PubSub. Refer to NotificationRequest schema for details.","operationId":"receive_notification_notifications_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRequest"}}},"required":true},"responses":{"200":{"description":"Successfully triggered notification","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/permissions/project":{"patch":{"tags":["permission"],"summary":"Update Project Permissions","description":"Update project permissions for a specific user","operationId":"update_project_permissions_permissions_project_patch","requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProjectPermissionUpdate"},"type":"array","title":"Permissions"}}},"required":true},"responses":{"200":{"description":"Successfully updated project permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budmicroframe__commons__schemas__SuccessResponse","anyOf":[{"$ref":"#/components/schemas/budmicroframe__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budmicroframe__commons__schemas__ErrorResponse"}],"title":"Response Update Project Permissions Permissions Project Patch"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budmicroframe__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budmicroframe__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/permissions/{user_id}/global":{"put":{"tags":["permission"],"summary":"Update Global Permissions","description":"Update global permissions for a specific user","operationId":"update_global_permissions_permissions__user_id__global_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PermissionList"},"title":"Permissions"}}}},"responses":{"200":{"description":"Updated list of permissions","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GlobalPermissionUpdateResponse"},{"$ref":"#/components/schemas/budmicroframe__commons__schemas__ErrorResponse"}],"title":"Response Update Global Permissions Permissions  User Id  Global Put","$ref":"#/components/schemas/GlobalPermissionUpdateResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budmicroframe__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budmicroframe__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/permissions/{user_id}/projects":{"get":{"tags":["permission"],"summary":"Get User Project Permissions","description":"Get all project permissions for a specific user","operationId":"get_user_project_permissions_permissions__user_id__projects_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"project_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ProjectTypeEnum"},{"type":"null"}],"title":"Project Type"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully listed user project permissions","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PaginatedUserProjectPermissionsResponse"},{"$ref":"#/components/schemas/budmicroframe__commons__schemas__ErrorResponse"}],"title":"Response Get User Project Permissions Permissions  User Id  Projects Get","$ref":"#/components/schemas/PaginatedUserProjectPermissionsResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budmicroframe__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budmicroframe__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/me":{"get":{"tags":["user"],"summary":"Get Current User","description":"Get current user","operationId":"get_current_user_users_me_get","responses":{"200":{"description":"Successfully get current user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse","anyOf":[{"$ref":"#/components/schemas/UserResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Current User Users Me Get"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/onboard":{"patch":{"tags":["user"],"summary":"Complete User Onboarding","description":"Api to set user onboarding status to completed","operationId":"complete_user_onboarding_users_onboard_patch","responses":{"200":{"description":"Set user onboarding status to completed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse","anyOf":[{"$ref":"#/components/schemas/UserResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Complete User Onboarding Users Onboard Patch"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/reset-password":{"post":{"tags":["user"],"summary":"Reset Password","description":"Trigger a reset password email notification","operationId":"reset_password_users_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Set user onboarding status to completed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordResponse","anyOf":[{"$ref":"#/components/schemas/ResetPasswordResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Reset Password Users Reset Password Post"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/validate-reset-token":{"post":{"tags":["user"],"summary":"Validate Reset Token","description":"Retired: always 410. Password reset is hosted by the identity provider.","operationId":"validate_reset_token_users_validate_reset_token_post","responses":{"410":{"description":"Password reset is hosted by the identity provider","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/users/reset-password-with-token":{"post":{"tags":["user"],"summary":"Reset Password With Token","description":"Retired: always 410. Password reset is hosted by the identity provider.","operationId":"reset_password_with_token_users_reset_password_with_token_post","responses":{"410":{"description":"Password reset is hosted by the identity provider","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/users/auth-capabilities":{"get":{"tags":["user"],"summary":"Get Auth Capabilities","description":"Return what the active IdP integration supports (credential invite, admin reset, self-service password, account-console URL). Drives the frontend's auth affordances.","operationId":"get_auth_capabilities_users_auth_capabilities_get","responses":{"200":{"description":"Capabilities of the active IdP integration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthCapabilitiesResponse","anyOf":[{"$ref":"#/components/schemas/AuthCapabilitiesResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Auth Capabilities Users Auth Capabilities Get"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/{user_id}/send-password-reset":{"post":{"tags":["user"],"summary":"Send Password Reset","description":"Admin-triggered: send an IdP-hosted 'set password' email to a user (bundled Keycloak only).","operationId":"send_password_reset_users__user_id__send_password_reset_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Password-reset email dispatched via the IdP","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SendPasswordResetResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Send Password Reset Users  User Id  Send Password Reset Post","$ref":"#/components/schemas/SendPasswordResetResponse"}}}},"404":{"description":"User not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"Reset is IdP self-service (external IdP)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{user_id}":{"patch":{"tags":["user"],"summary":"Update Current User","description":"Update current user","operationId":"update_current_user_users__user_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}}},"responses":{"200":{"description":"Successfully update current user","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UserResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Update Current User Users  User Id  Patch","$ref":"#/components/schemas/UserResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["user"],"summary":"Retrieve User","description":"Get a single active user from the database","operationId":"retrieve_user_users__user_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successfully get user by id","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UserResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Retrieve User Users  User Id  Get","$ref":"#/components/schemas/UserResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["user"],"summary":"Delete User","description":"Delete an active user from the database","operationId":"delete_user_users__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"remove_credential","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Remove Credential"}}],"responses":{"200":{"description":"Delete an active user from the database","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete User Users  User Id  Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/me/permissions":{"get":{"tags":["user"],"summary":"Get User Roles","description":"Get user roles and permissions","operationId":"get_user_roles_users_me_permissions_get","responses":{"200":{"description":"Successfully get user permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyPermissions","anyOf":[{"$ref":"#/components/schemas/MyPermissions"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get User Roles Users Me Permissions Get"}}}},"401":{"description":"Authentication failed or token expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/":{"get":{"tags":["user"],"summary":"Get All Users","description":"Get all active users from the database","operationId":"get_all_users_users__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"email","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},{"name":"role","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/UserRoleEnum"},{"const":"platform_admin","type":"string"},{"type":"null"}],"title":"Role"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/UserStatusEnum"},{"type":"null"}],"title":"Status"}},{"name":"user_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/UserTypeEnum"},{"type":"null"}],"title":"User Type"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully get user list","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MyPermissions"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get All Users Users  Get","$ref":"#/components/schemas/UserListResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["user"],"summary":"Create User","description":"Create a new user with email and password","operationId":"create_user_users__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreateRequest"}}}},"responses":{"200":{"description":"Successfully created user","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UserResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Create User Users  Post","$ref":"#/components/schemas/UserResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{user_id}/permissions":{"get":{"tags":["user"],"summary":"Get User Permissions By Id","description":"Get user roles","operationId":"get_user_permissions_by_id_users__user_id__permissions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successfully get user permissions","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UserPermissions"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get User Permissions By Id Users  User Id  Permissions Get","$ref":"#/components/schemas/UserPermissions"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{user_id}/reactivate":{"patch":{"tags":["user"],"summary":"Reactivate User","description":"Reactivate an inactive user from the database","operationId":"reactivate_user_users__user_id__reactivate_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Reactivate an inactive user from the database","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Reactivate User Users  User Id  Reactivate Patch","$ref":"#/components/schemas/UserResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{user_id}/user-type":{"patch":{"tags":["user"],"summary":"Update User Type","description":"Promote a client user to admin, or demote an admin back to client. Moves the IdP realm role, the user_type/role columns and the user's global module scopes together (Admin only).","operationId":"update_user_type_users__user_id__user_type_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserTypeUpdate"}}}},"responses":{"200":{"description":"Successfully updated the user's type","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UserResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Update User Type Users  User Id  User Type Patch","$ref":"#/components/schemas/UserResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"User not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"The identity provider rejected the role change","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{user_id}/subscribe":{"post":{"tags":["user"],"summary":"Subscribe User To Notifications","description":"Subscribe an existing user to notifications (Admin only)","operationId":"subscribe_user_to_notifications_users__user_id__subscribe_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successfully subscribed user to notifications","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"User not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenancy/host":{"get":{"tags":["tenancy"],"summary":"Get Host","description":"Which tenant (or the platform plane) this address serves","operationId":"get_host_tenancy_host_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tenancy/switch":{"post":{"tags":["tenancy"],"summary":"Switch Tenant","description":"Open another of your organizations on this address (shared host)","operationId":"switch_tenant_tenancy_switch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantSwitchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/platform-admin/overview":{"get":{"tags":["platform-admin"],"summary":"Overview","operationId":"overview_platform_admin_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/platform-admin/tenants":{"get":{"tags":["platform-admin"],"summary":"List Tenants","operationId":"list_tenants_platform_admin_tenants_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["platform-admin"],"summary":"Create Tenant","operationId":"create_tenant_platform_admin_tenants_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/check-slug":{"get":{"tags":["platform-admin"],"summary":"Check Slug","operationId":"check_slug_platform_admin_tenants_check_slug_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"query","required":true,"schema":{"type":"string","maxLength":80,"title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}":{"get":{"tags":["platform-admin"],"summary":"Get Tenant","operationId":"get_tenant_platform_admin_tenants__tenant_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["platform-admin"],"summary":"Update Tenant","operationId":"update_tenant_platform_admin_tenants__tenant_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/suspend":{"post":{"tags":["platform-admin"],"summary":"Suspend Tenant","operationId":"suspend_tenant_platform_admin_tenants__tenant_id__suspend_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LifecycleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/reactivate":{"post":{"tags":["platform-admin"],"summary":"Reactivate Tenant","operationId":"reactivate_tenant_platform_admin_tenants__tenant_id__reactivate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LifecycleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/delete":{"post":{"tags":["platform-admin"],"summary":"Delete Tenant","operationId":"delete_tenant_platform_admin_tenants__tenant_id__delete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LifecycleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/retry":{"post":{"tags":["platform-admin"],"summary":"Retry Tenant","operationId":"retry_tenant_platform_admin_tenants__tenant_id__retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/export":{"post":{"tags":["platform-admin"],"summary":"Export Tenant","operationId":"export_tenant_platform_admin_tenants__tenant_id__export_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/exports":{"get":{"tags":["platform-admin"],"summary":"List Tenant Exports","operationId":"list_tenant_exports_platform_admin_tenants__tenant_id__exports_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/exports/{export_id}/download":{"get":{"tags":["platform-admin"],"summary":"Download Tenant Export","operationId":"download_tenant_export_platform_admin_tenants__tenant_id__exports__export_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"export_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Export Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/members":{"get":{"tags":["platform-admin"],"summary":"Platform List Members","operationId":"platform_list_members_platform_admin_tenants__tenant_id__members_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/admins":{"post":{"tags":["platform-admin"],"summary":"Platform Add Admin","operationId":"platform_add_admin_platform_admin_tenants__tenant_id__admins_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAddRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/admins/{user_id}":{"delete":{"tags":["platform-admin"],"summary":"Platform Remove Admin","operationId":"platform_remove_admin_platform_admin_tenants__tenant_id__admins__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/admins/{user_id}/resend-invite":{"post":{"tags":["platform-admin"],"summary":"Platform Resend Invite","operationId":"platform_resend_invite_platform_admin_tenants__tenant_id__admins__user_id__resend_invite_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/idp":{"put":{"tags":["platform-admin"],"summary":"Platform Set Idp","operationId":"platform_set_idp_platform_admin_tenants__tenant_id__idp_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdpHintRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/clusters":{"get":{"tags":["platform-admin"],"summary":"Platform Tenant Clusters","operationId":"platform_tenant_clusters_platform_admin_tenants__tenant_id__clusters_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/usage/by-tenant":{"get":{"tags":["platform-admin"],"summary":"Platform Usage By Tenant","description":"Metered quantities and rated spend of every tenant over the window (FR-PA-3). Ledger rows from before MT3\n(tenant ``''``) are the provider's; a slug no live tenant has (a purged tenant) is listed with no name.","operationId":"platform_usage_by_tenant_platform_admin_usage_by_tenant_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"First day (inclusive); default the first of this month","title":"From"},"description":"First day (inclusive); default the first of this month"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Last day (inclusive); default today","title":"To"},"description":"Last day (inclusive); default today"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/usage":{"get":{"tags":["platform-admin"],"summary":"Platform Tenant Usage","operationId":"platform_tenant_usage_platform_admin_tenants__tenant_id__usage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"First day (inclusive); default the first of this month","title":"From"},"description":"First day (inclusive); default the first of this month"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Last day (inclusive); default today","title":"To"},"description":"Last day (inclusive); default today"},{"name":"group_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated subset of meter, project_id, period (default meter)","title":"Group By"},"description":"Comma-separated subset of meter, project_id, period (default meter)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/spend":{"get":{"tags":["platform-admin"],"summary":"Platform Tenant Spend","operationId":"platform_tenant_spend_platform_admin_tenants__tenant_id__spend_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"First day (inclusive); default the first of this month","title":"From"},"description":"First day (inclusive); default the first of this month"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Last day (inclusive); default today","title":"To"},"description":"Last day (inclusive); default today"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/gateway-errors":{"get":{"tags":["platform-admin"],"summary":"Platform Tenant Gateway Errors","operationId":"platform_tenant_gateway_errors_platform_admin_tenants__tenant_id__gateway_errors_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"First day (inclusive); default the first of this month","title":"From"},"description":"First day (inclusive); default the first of this month"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Last day (inclusive); default today","title":"To"},"description":"Last day (inclusive); default today"},{"name":"frequency_unit","in":"query","required":false,"schema":{"type":"string","pattern":"^(hour|day|week|month)$","default":"day","title":"Frequency Unit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/support-requests":{"post":{"tags":["platform-admin"],"summary":"Platform Request Support","operationId":"platform_request_support_platform_admin_tenants__tenant_id__support_requests_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportRequestCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/support/memberships":{"get":{"tags":["platform-admin"],"summary":"Platform Support List","operationId":"platform_support_list_platform_admin_support_memberships_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Limit"}},{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tenant Id"}},{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Active Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/support/memberships/{membership_id}":{"delete":{"tags":["platform-admin"],"summary":"Platform Support Revoke","operationId":"platform_support_revoke_platform_admin_support_memberships__membership_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/audit":{"get":{"tags":["platform-admin"],"summary":"Platform Audit","operationId":"platform_audit_platform_admin_audit_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Limit"}},{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tenant Id"}},{"name":"actor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor"}},{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"}},{"name":"resource_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Type"}},{"name":"plane","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plane"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/plans":{"get":{"tags":["platform-admin"],"summary":"Platform Plans","operationId":"platform_plans_platform_admin_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/platform-admin/capacity":{"get":{"tags":["platform-admin"],"summary":"Platform Capacity","operationId":"platform_capacity_platform_admin_capacity_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/platform-admin/settings":{"get":{"tags":["platform-admin"],"summary":"Platform Get Settings","operationId":"platform_get_settings_platform_admin_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["platform-admin"],"summary":"Platform Update Settings","operationId":"platform_update_settings_platform_admin_settings_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformSettingsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/platform-admin/modules":{"get":{"tags":["platform-admin"],"summary":"Platform Modules","operationId":"platform_modules_platform_admin_modules_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/platform-admin/modules/{key}":{"get":{"tags":["platform-admin"],"summary":"Platform Module","operationId":"platform_module_platform_admin_modules__key__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["platform-admin"],"summary":"Platform Update Module","operationId":"platform_update_module_platform_admin_modules__key__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/modules/{key}/plan":{"get":{"tags":["platform-admin"],"summary":"Platform Module Plan","operationId":"platform_module_plan_platform_admin_modules__key__plan_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenant":{"get":{"tags":["tenant"],"summary":"Get My Tenant","operationId":"get_my_tenant_tenant_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["tenant"],"summary":"Rename My Tenant","operationId":"rename_my_tenant_tenant_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantNameRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tenant/members":{"get":{"tags":["tenant"],"summary":"Tenant Members","operationId":"tenant_members_tenant_members_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"role","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["tenant"],"summary":"Tenant Invite","operationId":"tenant_invite_tenant_members_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberInviteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenant/members/{user_id}":{"patch":{"tags":["tenant"],"summary":"Tenant Change Member","operationId":"tenant_change_member_tenant_members__user_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tenant"],"summary":"Tenant Remove Member","operationId":"tenant_remove_member_tenant_members__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenant/sso":{"get":{"tags":["tenant"],"summary":"Tenant Sso","operationId":"tenant_sso_tenant_sso_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/tenant/api-keys":{"get":{"tags":["tenant"],"summary":"Tenant Api Keys","operationId":"tenant_api_keys_tenant_api_keys_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenant/api-keys/{credential_id}":{"delete":{"tags":["tenant"],"summary":"Tenant Revoke Key","operationId":"tenant_revoke_key_tenant_api_keys__credential_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenant/support":{"get":{"tags":["tenant"],"summary":"Tenant Support","operationId":"tenant_support_tenant_support_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["tenant"],"summary":"Tenant Set Support","operationId":"tenant_set_support_tenant_support_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportPolicyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tenant/support/requests/{request_id}/approve":{"post":{"tags":["tenant"],"summary":"Tenant Approve Support","operationId":"tenant_approve_support_tenant_support_requests__request_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenant/support/requests/{request_id}/deny":{"post":{"tags":["tenant"],"summary":"Tenant Deny Support","operationId":"tenant_deny_support_tenant_support_requests__request_id__deny_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenant/support/memberships/{request_id}":{"delete":{"tags":["tenant"],"summary":"Tenant Revoke Support","operationId":"tenant_revoke_support_tenant_support_memberships__request_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenant/audit":{"get":{"tags":["tenant"],"summary":"Tenant Audit","operationId":"tenant_audit_tenant_audit_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Limit"}},{"name":"actor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor"}},{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"}},{"name":"resource_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Type"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenant/export":{"post":{"tags":["tenant"],"summary":"Tenant Export","operationId":"tenant_export_tenant_export_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/tenant/exports":{"get":{"tags":["tenant"],"summary":"Tenant Exports","operationId":"tenant_exports_tenant_exports_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/tenant/exports/{export_id}/download":{"get":{"tags":["tenant"],"summary":"Tenant Export Download","operationId":"tenant_export_download_tenant_exports__export_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Export Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenant/deletion-request":{"post":{"tags":["tenant"],"summary":"Tenant Deletion Request","operationId":"tenant_deletion_request_tenant_deletion_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tenant/usage":{"get":{"tags":["tenant"],"summary":"Tenant Usage","description":"The organization's own metered usage (WP-MT3.9). Invoices are under the billing routes (MT6).","operationId":"tenant_usage_tenant_usage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"First day (inclusive); default the first of this month","title":"From"},"description":"First day (inclusive); default the first of this month"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Last day (inclusive); default today","title":"To"},"description":"Last day (inclusive); default today"},{"name":"group_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated subset of meter, project_id, period (default meter)","title":"Group By"},"description":"Comma-separated subset of meter, project_id, period (default meter)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenant/spend":{"get":{"tags":["tenant"],"summary":"Tenant Spend","operationId":"tenant_spend_tenant_spend_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"First day (inclusive); default the first of this month","title":"From"},"description":"First day (inclusive); default the first of this month"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Last day (inclusive); default today","title":"To"},"description":"Last day (inclusive); default today"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenant/gateway-errors":{"get":{"tags":["tenant"],"summary":"Tenant Gateway Errors","operationId":"tenant_gateway_errors_tenant_gateway_errors_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"First day (inclusive); default the first of this month","title":"From"},"description":"First day (inclusive); default the first of this month"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Last day (inclusive); default today","title":"To"},"description":"Last day (inclusive); default today"},{"name":"frequency_unit","in":"query","required":false,"schema":{"type":"string","pattern":"^(hour|day|week|month)$","default":"day","title":"Frequency Unit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/quotas":{"get":{"tags":["platform-admin","billing"],"summary":"Platform Get Quotas","operationId":"platform_get_quotas_platform_admin_tenants__tenant_id__quotas_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["platform-admin","billing"],"summary":"Platform Put Quotas","operationId":"platform_put_quotas_platform_admin_tenants__tenant_id__quotas_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotasPut"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/price-books":{"get":{"tags":["platform-admin","billing"],"summary":"Platform List Books","operationId":"platform_list_books_platform_admin_price_books_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["platform-admin","billing"],"summary":"Platform Create Book","operationId":"platform_create_book_platform_admin_price_books_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceBookBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/platform-admin/price-books/{book_id}":{"get":{"tags":["platform-admin","billing"],"summary":"Platform Get Book","operationId":"platform_get_book_platform_admin_price_books__book_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"book_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Book Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["platform-admin","billing"],"summary":"Platform Update Book","operationId":"platform_update_book_platform_admin_price_books__book_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"book_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Book Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceBookBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["platform-admin","billing"],"summary":"Platform Delete Book","operationId":"platform_delete_book_platform_admin_price_books__book_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"book_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Book Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/billing":{"get":{"tags":["platform-admin","billing"],"summary":"Platform Get Billing","operationId":"platform_get_billing_platform_admin_tenants__tenant_id__billing_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["platform-admin","billing"],"summary":"Platform Put Billing","operationId":"platform_put_billing_platform_admin_tenants__tenant_id__billing_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingProfileBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/price-book":{"put":{"tags":["platform-admin","billing"],"summary":"Platform Assign Book","operationId":"platform_assign_book_platform_admin_tenants__tenant_id__price_book_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceBookAssign"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/invoices":{"get":{"tags":["platform-admin","billing"],"summary":"Platform List Invoices","operationId":"platform_list_invoices_platform_admin_tenants__tenant_id__invoices_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Limit"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(draft|finalized|void)$"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/tenants/{tenant_id}/invoices/{invoice_id}":{"get":{"tags":["platform-admin","billing"],"summary":"Platform Get Invoice","operationId":"platform_get_invoice_platform_admin_tenants__tenant_id__invoices__invoice_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/invoices/{invoice_id}/adjustments":{"post":{"tags":["platform-admin","billing"],"summary":"Platform Adjust Invoice","operationId":"platform_adjust_invoice_platform_admin_invoices__invoice_id__adjustments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdjustmentBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/invoices/{invoice_id}/finalize":{"post":{"tags":["platform-admin","billing"],"summary":"Platform Finalize Invoice","operationId":"platform_finalize_invoice_platform_admin_invoices__invoice_id__finalize_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinalizeBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/invoices/{invoice_id}/void":{"post":{"tags":["platform-admin","billing"],"summary":"Platform Void Invoice","operationId":"platform_void_invoice_platform_admin_invoices__invoice_id__void_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoidBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/billing/close":{"post":{"tags":["platform-admin","billing"],"summary":"Platform Run Close","description":"Run the close now (all tenants, or one). Refused while another replica runs it (lease ``close``).","operationId":"platform_run_close_platform_admin_billing_close_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tenant/quotas":{"get":{"tags":["tenant","billing"],"summary":"Tenant Quotas","operationId":"tenant_quotas_tenant_quotas_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/tenant/invoices":{"get":{"tags":["tenant","billing"],"summary":"Tenant Invoices","operationId":"tenant_invoices_tenant_invoices_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Limit"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(draft|finalized|void)$"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenant/invoices/{invoice_id}":{"get":{"tags":["tenant","billing"],"summary":"Tenant Invoice","operationId":"tenant_invoice_tenant_invoices__invoice_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows":{"get":{"tags":["workflow"],"summary":"List Active Workflows","description":"List all workflows","operationId":"list_active_workflows_workflows_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"workflow_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/WorkflowTypeEnum"},{"type":"null"}],"title":"Workflow Type"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully listed all workflows","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WorkflowListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Active Workflows Workflows Get","$ref":"#/components/schemas/WorkflowListResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/{workflow_id}":{"get":{"tags":["workflow"],"summary":"Retrieve Workflow Data","description":"Retrieve workflow data","operationId":"retrieve_workflow_data_workflows__workflow_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workflow Id"}}],"responses":{"200":{"description":"Successfully retrieve workflow data","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Retrieve Workflow Data Workflows  Workflow Id  Get","$ref":"#/components/schemas/RetrieveWorkflowDataResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["workflow"],"summary":"Mark Workflow As Completed","description":"Mark workflow as completed","operationId":"mark_workflow_as_completed_workflows__workflow_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workflow Id"}}],"responses":{"200":{"description":"Successfully mark workflow as completed","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WorkflowResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Mark Workflow As Completed Workflows  Workflow Id  Patch","$ref":"#/components/schemas/WorkflowResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workflow"],"summary":"Delete Workflow","description":"Delete workflow","operationId":"delete_workflow_workflows__workflow_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workflow Id"}}],"responses":{"200":{"description":"Successfully delete workflow","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Workflow Workflows  Workflow Id  Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/budpipeline/validate":{"post":{"tags":["budpipeline"],"summary":"Validate Workflow Dag","description":"Validate a workflow DAG definition without creating it","operationId":"validate_workflow_dag_budpipeline_validate_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Request Body"}}},"required":true},"responses":{"200":{"description":"DAG validation result","content":{"application/json":{"schema":{}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Invalid DAG definition","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/budpipeline/run":{"post":{"tags":["budpipeline"],"summary":"Run Ephemeral Execution","description":"Execute a pipeline inline without saving the pipeline definition","operationId":"run_ephemeral_execution_budpipeline_run_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Request Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Invalid pipeline definition","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"201":{"description":"Ephemeral execution started"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/budpipeline":{"post":{"tags":["budpipeline"],"summary":"Create Budpipeline","description":"Create a new pipeline in budpipeline service","operationId":"create_budpipeline_budpipeline_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Request Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Invalid pipeline creation request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"201":{"description":"Successfully created pipeline"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["budpipeline"],"summary":"List Budpipelines","description":"List all pipelines from budpipeline service","operationId":"list_budpipelines_budpipeline_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"include_system","in":"query","required":false,"schema":{"type":"boolean","description":"Include system-owned pipelines","default":false,"title":"Include System"},"description":"Include system-owned pipelines"}],"responses":{"200":{"description":"List of pipelines","content":{"application/json":{"schema":{}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/budpipeline/executions":{"get":{"tags":["budpipeline"],"summary":"List Budpipeline Executions","description":"List workflow executions with filtering and pagination (T059)","operationId":"list_budpipeline_executions_budpipeline_executions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by workflow ID","title":"Workflow Id"},"description":"Filter by workflow ID"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status","title":"Status"},"description":"Filter by status"},{"name":"initiator","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by initiator","title":"Initiator"},"description":"Filter by initiator"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by created_at >= start_date (ISO format)","title":"Start Date"},"description":"Filter by created_at >= start_date (ISO format)"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by created_at <= end_date (ISO format)","title":"End Date"},"description":"Filter by created_at <= end_date (ISO format)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":20,"title":"Page Size"},"description":"Items per page"}],"responses":{"200":{"description":"List of workflow executions with pagination","content":{"application/json":{"schema":{}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/budpipeline/executions/{execution_id}":{"get":{"tags":["budpipeline"],"summary":"Get Budpipeline Execution","description":"Get execution details including step statuses","operationId":"get_budpipeline_execution_budpipeline_executions__execution_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"execution_id","in":"path","required":true,"schema":{"type":"string","title":"Execution Id"}}],"responses":{"200":{"description":"Execution details with step statuses","content":{"application/json":{"schema":{}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Execution not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/budpipeline/executions/{execution_id}/progress":{"get":{"tags":["budpipeline"],"summary":"Get Budpipeline Execution Progress","description":"Get detailed execution progress including steps, events, and aggregated progress","operationId":"get_budpipeline_execution_progress_budpipeline_executions__execution_id__progress_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"execution_id","in":"path","required":true,"schema":{"type":"string","title":"Execution Id"}}],"responses":{"200":{"description":"Execution progress with steps, events, and aggregated progress","content":{"application/json":{"schema":{}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Execution not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/budpipeline/schedules":{"get":{"tags":["budpipeline"],"summary":"List Schedules","description":"List workflow schedules","operationId":"list_schedules_budpipeline_schedules_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by workflow ID","title":"Workflow Id"},"description":"Filter by workflow ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["budpipeline"],"summary":"Create Schedule","description":"Create a workflow schedule","operationId":"create_schedule_budpipeline_schedules_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Request Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/budpipeline/schedules/{schedule_id}":{"get":{"tags":["budpipeline"],"summary":"Get Schedule","description":"Get schedule details","operationId":"get_schedule_budpipeline_schedules__schedule_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","title":"Schedule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["budpipeline"],"summary":"Update Schedule","description":"Update a schedule","operationId":"update_schedule_budpipeline_schedules__schedule_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","title":"Schedule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Request Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["budpipeline"],"summary":"Delete Schedule","description":"Delete a schedule","operationId":"delete_schedule_budpipeline_schedules__schedule_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","title":"Schedule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/budpipeline/schedules/{schedule_id}/pause":{"post":{"tags":["budpipeline"],"summary":"Pause Schedule","description":"Pause a schedule","operationId":"pause_schedule_budpipeline_schedules__schedule_id__pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","title":"Schedule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/budpipeline/schedules/{schedule_id}/resume":{"post":{"tags":["budpipeline"],"summary":"Resume Schedule","description":"Resume a paused schedule","operationId":"resume_schedule_budpipeline_schedules__schedule_id__resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","title":"Schedule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/budpipeline/schedules/{schedule_id}/trigger":{"post":{"tags":["budpipeline"],"summary":"Trigger Schedule","description":"Trigger a schedule immediately","operationId":"trigger_schedule_budpipeline_schedules__schedule_id__trigger_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","title":"Schedule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/budpipeline/webhooks":{"get":{"tags":["budpipeline"],"summary":"List Webhooks","description":"List workflow webhooks","operationId":"list_webhooks_budpipeline_webhooks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by workflow ID","title":"Workflow Id"},"description":"Filter by workflow ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["budpipeline"],"summary":"Create Webhook","description":"Create a workflow webhook","operationId":"create_webhook_budpipeline_webhooks_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Request Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/budpipeline/webhooks/{webhook_id}":{"delete":{"tags":["budpipeline"],"summary":"Delete Webhook","description":"Delete a webhook","operationId":"delete_webhook_budpipeline_webhooks__webhook_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/budpipeline/webhooks/{webhook_id}/rotate-secret":{"post":{"tags":["budpipeline"],"summary":"Rotate Webhook Secret","description":"Rotate a webhook's secret","operationId":"rotate_webhook_secret_budpipeline_webhooks__webhook_id__rotate_secret_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/budpipeline/event-triggers":{"get":{"tags":["budpipeline"],"summary":"List Event Triggers","description":"List event triggers","operationId":"list_event_triggers_budpipeline_event_triggers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by workflow ID","title":"Workflow Id"},"description":"Filter by workflow ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["budpipeline"],"summary":"Create Event Trigger","description":"Create an event trigger","operationId":"create_event_trigger_budpipeline_event_triggers_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Request Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/budpipeline/event-triggers/{trigger_id}":{"delete":{"tags":["budpipeline"],"summary":"Delete Event Trigger","description":"Delete an event trigger","operationId":"delete_event_trigger_budpipeline_event_triggers__trigger_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","title":"Trigger Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/budpipeline/actions":{"get":{"tags":["budpipeline"],"summary":"List Actions","description":"List all available pipeline actions with metadata","operationId":"list_actions_budpipeline_actions_get","responses":{"200":{"description":"List of available pipeline actions","content":{"application/json":{"schema":{}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/budpipeline/actions/{action_type}":{"get":{"tags":["budpipeline"],"summary":"Get Action","description":"Get metadata for a specific action type","operationId":"get_action_budpipeline_actions__action_type__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"action_type","in":"path","required":true,"schema":{"type":"string","title":"Action Type"}}],"responses":{"200":{"description":"Action metadata","content":{"application/json":{"schema":{}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Action type not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/budpipeline/actions/validate":{"post":{"tags":["budpipeline"],"summary":"Validate Action Params","description":"Validate parameters for an action type","operationId":"validate_action_params_budpipeline_actions_validate_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Request Body"}}},"required":true},"responses":{"200":{"description":"Validation result","content":{"application/json":{"schema":{}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/budpipeline/{pipeline_id}":{"get":{"tags":["budpipeline"],"summary":"Get Budpipeline","description":"Get pipeline details including DAG definition","operationId":"get_budpipeline_budpipeline__pipeline_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}}],"responses":{"200":{"description":"Pipeline details including DAG","content":{"application/json":{"schema":{}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Pipeline not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["budpipeline"],"summary":"Update Budpipeline","description":"Update a pipeline's DAG definition","operationId":"update_budpipeline_budpipeline__pipeline_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Request Body"}}}},"responses":{"200":{"description":"Updated pipeline","content":{"application/json":{"schema":{}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Pipeline not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["budpipeline"],"summary":"Delete Budpipeline","description":"Delete a pipeline","operationId":"delete_budpipeline_budpipeline__pipeline_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Pipeline not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"204":{"description":"Pipeline deleted successfully"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/budpipeline/{pipeline_id}/execute":{"post":{"tags":["budpipeline"],"summary":"Execute Budpipeline","description":"Start a pipeline execution","operationId":"execute_budpipeline_budpipeline__pipeline_id__execute_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Request Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Pipeline not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"201":{"description":"Pipeline execution started"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform/modules":{"get":{"tags":["platform"],"summary":"List Platform Modules","description":"Every platform module, its state and why; and whether the caller may change them","operationId":"list_platform_modules_platform_modules_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/platform/modules/{key}":{"get":{"tags":["platform"],"summary":"Get Platform Module","description":"One platform module","operationId":"get_platform_module_platform_modules__key__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["platform"],"summary":"Update Platform Module","description":"Turn a platform module on or off, or change its settings (super admin)","operationId":"update_platform_module_platform_modules__key__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModuleUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform/modules/{key}/plan":{"get":{"tags":["platform"],"summary":"Get Platform Module Plan","description":"Which devices a provisioning module can use, and why not","operationId":"get_platform_module_plan_platform_modules__key__plan_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/playground/initialize":{"post":{"tags":["playground"],"summary":"Initialize Playground","description":"Initialize playground session with refresh token authentication. Validates refresh token, generates new tokens, and populates Redis cache.","operationId":"initialize_playground_playground_initialize_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaygroundInitializeRequest"}}},"required":true},"responses":{"200":{"description":"Successfully initialized playground session with refresh token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaygroundInitializeResponse","anyOf":[{"$ref":"#/components/schemas/PlaygroundInitializeResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Initialize Playground Playground Initialize Post"}}}},"401":{"description":"Invalid or expired refresh token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Invalid request or refresh token format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/playground/initialize-with-token":{"post":{"tags":["playground"],"summary":"Initialize Playground With Access Token","description":"Initialize playground session with access token authentication (cross-app SSO). Validates access token using Keycloak's public keys and populates Redis cache. This endpoint accepts tokens from any OAuth client in the same Keycloak realm.","operationId":"initialize_playground_with_access_token_playground_initialize_with_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaygroundInitializeWithAccessTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successfully initialized playground session with access token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaygroundInitializeWithAccessTokenResponse","anyOf":[{"$ref":"#/components/schemas/PlaygroundInitializeWithAccessTokenResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Initialize Playground With Access Token Playground Initialize With Token Post"}}}},"401":{"description":"Invalid or expired access token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Invalid request or access token format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"User not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/playground/initialize-from-session":{"post":{"tags":["playground"],"summary":"Initialize Playground From Session","description":"BFF-cookie-authenticated playground init (FRD-003 inference-token bridge). Pulls the user's access_token out of the BFF session record and pre-registers its hash in budgateway's Redis (same flow as /initialize-with-token) so subsequent inference calls with ``Authorization: Bearer <jwt>`` are accepted. Returns the access_token to the browser — the browser must hold it in memory only (NEVER ``localStorage``, per FRD SEC-04).","operationId":"initialize_playground_from_session_playground_initialize_from_session_post","responses":{"200":{"description":"Successfully initialized playground session from BFF cookie","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaygroundInitializeFromSessionResponse","anyOf":[{"$ref":"#/components/schemas/PlaygroundInitializeFromSessionResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Initialize Playground From Session Playground Initialize From Session Post"}}}},"401":{"description":"No valid BFF session cookie / Bearer; or session record carries no access_token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/playground/deployments":{"get":{"tags":["playground"],"summary":"List Playground Deployments","description":"List all playground deployments with filtering and pagination.","operationId":"list_playground_deployments_playground_deployments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"modality","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ModalityEnum"},"default":[],"title":"Modality"}},{"name":"tags","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[],"title":"Tags"}},{"name":"tasks","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[],"title":"Tasks"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"supported_endpoint","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelEndpointEnum"},{"type":"null"}],"description":"Keep only deployments that can serve this API endpoint, e.g. `/v1/chat/completions`. Callers that can only drive one API surface use this to avoid offering a deployment that would fail at request time.","title":"Supported Endpoint"},"description":"Keep only deployments that can serve this API endpoint, e.g. `/v1/chat/completions`. Callers that can only drive one API surface use this to avoid offering a deployment that would fail at request time."},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/EndpointStatusEnum"},{"type":"null"}],"title":"Status"}},{"name":"model_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name"}},{"name":"model_size","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Size"}},{"name":"tool_enabled","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tool Enabled"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Project Id"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"},{"name":"api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api-Key"}}],"responses":{"200":{"description":"Successfully list all playground deployments","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PlaygroundDeploymentListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Playground Deployments Playground Deployments Get","$ref":"#/components/schemas/PlaygroundDeploymentListResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/playground/agents":{"get":{"tags":["playground"],"summary":"List Playground Agents","description":"List the agents (prompts) available to the playground's agent picker.","operationId":"list_playground_agents_playground_agents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"prompt_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Type"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Project Id"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"},{"name":"api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api-Key"}}],"responses":{"200":{"description":"Successfully listed the agents this caller may run","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PlaygroundAgentListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Playground Agents Playground Agents Get","$ref":"#/components/schemas/PlaygroundAgentListResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/playground/chat-sessions":{"get":{"tags":["playground"],"summary":"List Chat Sessions","description":"List chat sessions for a user filtered by user ID.","operationId":"list_chat_sessions_playground_chat_sessions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully retrieved chat sessions.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ChatSessionPaginatedResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Chat Sessions Playground Chat Sessions Get","$ref":"#/components/schemas/ChatSessionPaginatedResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/playground/chat-sessions/{chat_session_id}":{"get":{"tags":["playground"],"summary":"Get Chat Session Details","description":"Retrieve details of a specific chat session.","operationId":"get_chat_session_details_playground_chat_sessions__chat_session_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}}],"responses":{"200":{"description":"Successfully retrieved chat session details.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ChatSessionSuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Chat Session Details Playground Chat Sessions  Chat Session Id  Get","$ref":"#/components/schemas/ChatSessionSuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["playground"],"summary":"Delete Chat Session","description":"Delete chat session","operationId":"delete_chat_session_playground_chat_sessions__chat_session_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}}],"responses":{"200":{"description":"Chat session deleted successfully.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Chat Session Playground Chat Sessions  Chat Session Id  Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["playground"],"summary":"Edit Chat Session","description":"Edit chat session","operationId":"edit_chat_session_playground_chat_sessions__chat_session_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatSessionEditRequest"}}}},"responses":{"200":{"description":"Successfully edited chat session","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ChatSessionSuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Edit Chat Session Playground Chat Sessions  Chat Session Id  Patch","$ref":"#/components/schemas/ChatSessionSuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/playground/messages":{"post":{"tags":["playground"],"summary":"Create Message","description":"Create a Message.","operationId":"create_message_playground_messages_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreateRequest"}}},"required":true},"responses":{"200":{"description":"Message created successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageSuccessResponse","anyOf":[{"$ref":"#/components/schemas/MessageSuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Create Message Playground Messages Post"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/playground/chat-sessions/{chat_session_id}/messages":{"get":{"tags":["playground"],"summary":"Get All Messages","description":"Retrieve all messages for a given chat session.","operationId":"get_all_messages_playground_chat_sessions__chat_session_id__messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"prompt","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully retrieved messages.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MessagePaginatedResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get All Messages Playground Chat Sessions  Chat Session Id  Messages Get","$ref":"#/components/schemas/MessagePaginatedResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/playground/messages/{message_id}":{"patch":{"tags":["playground"],"summary":"Edit Message","description":"Edit a chat message","operationId":"edit_message_playground_messages__message_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Message Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageEditRequest"}}}},"responses":{"200":{"description":"Successfully edited message","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MessageSuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Edit Message Playground Messages  Message Id  Patch","$ref":"#/components/schemas/MessageSuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["playground"],"summary":"Delete Message","description":"Delete a message","operationId":"delete_message_playground_messages__message_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Message Id"}}],"responses":{"200":{"description":"Message deleted successfully.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Message Playground Messages  Message Id  Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/playground/chat-settings":{"post":{"tags":["playground"],"summary":"Create Chat Setting","description":"Create a chat setting.","operationId":"create_chat_setting_playground_chat_settings_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatSettingCreate"}}}},"responses":{"200":{"description":"Chat setting created successfully.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ChatSettingSuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Create Chat Setting Playground Chat Settings Post","$ref":"#/components/schemas/ChatSettingSuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["playground"],"summary":"List Chat Settings","description":"List all chat settings.","operationId":"list_chat_settings_playground_chat_settings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully retrieved chat settings.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ChatSettingPaginatedResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Chat Settings Playground Chat Settings Get","$ref":"#/components/schemas/ChatSettingPaginatedResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/playground/chat-settings/{chat_setting_id}":{"get":{"tags":["playground"],"summary":"Get Chat Setting Details","description":"Retrieve details of a specific chat setting.","operationId":"get_chat_setting_details_playground_chat_settings__chat_setting_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_setting_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Setting Id"}}],"responses":{"200":{"description":"Successfully retrieved chat setting details.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ChatSettingSuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Chat Setting Details Playground Chat Settings  Chat Setting Id  Get","$ref":"#/components/schemas/ChatSettingSuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["playground"],"summary":"Edit Chat Setting","description":"Edit chat setting","operationId":"edit_chat_setting_playground_chat_settings__chat_setting_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_setting_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Setting Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatSettingEditRequest"}}}},"responses":{"200":{"description":"Successfully edited chat setting","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ChatSettingSuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Edit Chat Setting Playground Chat Settings  Chat Setting Id  Patch","$ref":"#/components/schemas/ChatSettingSuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["playground"],"summary":"Delete Chat Setting","description":"Delete chat setting","operationId":"delete_chat_setting_playground_chat_settings__chat_setting_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_setting_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Setting Id"}}],"responses":{"200":{"description":"Chat setting deleted successfully.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Chat Setting Playground Chat Settings  Chat Setting Id  Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/playground/chat-sessions/notes":{"post":{"tags":["playground"],"summary":"Create Note","description":"Create a note.","operationId":"create_note_playground_chat_sessions_notes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteCreateRequest"}}},"required":true},"responses":{"200":{"description":"Note created successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteSuccessResponse","anyOf":[{"$ref":"#/components/schemas/NoteSuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Create Note Playground Chat Sessions Notes Post"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/playground/chat-sessions/{chat_session_id}/notes":{"get":{"tags":["playground"],"summary":"Get All Notes","description":"Retrieve all notes with filtering, sorting, and search capabilities.","operationId":"get_all_notes_playground_chat_sessions__chat_session_id__notes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"note","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully retrieved notes.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotePaginatedResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get All Notes Playground Chat Sessions  Chat Session Id  Notes Get","$ref":"#/components/schemas/NotePaginatedResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/playground/chat-sessions/notes/{note_id}":{"patch":{"tags":["playground"],"summary":"Edit Note","description":"Edit note","operationId":"edit_note_playground_chat_sessions_notes__note_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteEditRequest"}}}},"responses":{"200":{"description":"Successfully edited note","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NoteSuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Edit Note Playground Chat Sessions Notes  Note Id  Patch","$ref":"#/components/schemas/NoteSuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["playground"],"summary":"Delete Note","description":"Delete note","operationId":"delete_note_playground_chat_sessions_notes__note_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}}],"responses":{"200":{"description":"Note deleted successfully.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Note Playground Chat Sessions Notes  Note Id  Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/playground/initialize-widget-session":{"post":{"tags":["playground"],"summary":"Create Widget Session","description":"Mint or renew a widget chat session. Requires the WIDGET_INTERNAL_TOKEN header and rejects APP_API_TOKEN. Mint runs the full gauntlet (widget/agent/project active, rate limits) and issues a short-lived bearer scoped to a single agent alias; renewal re-runs the same policy and EXTENDS the existing bearer so conversation ownership survives.","operationId":"create_widget_session_playground_initialize_widget_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/tags/search":{"get":{"tags":["project"],"summary":"Search Project Tags","description":"Search tags by name","operationId":"search_project_tags_projects_tags_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search_term","in":"query","required":true,"schema":{"type":"string","description":"Tag name to search for","title":"Search Term"},"description":"Tag name to search for"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successfully listed tags","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__project_ops__schemas__PaginatedTagsResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Search Project Tags Projects Tags Search Get","$ref":"#/components/schemas/budapp__project_ops__schemas__PaginatedTagsResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/tags":{"get":{"tags":["project"],"summary":"Get Project Tags","description":"List all project tags","operationId":"get_project_tags_projects_tags_get","responses":{"200":{"description":"Successfully listed tags","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__project_ops__schemas__PaginatedTagsResponse","anyOf":[{"$ref":"#/components/schemas/budapp__project_ops__schemas__PaginatedTagsResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Project Tags Projects Tags Get"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/projects/":{"post":{"tags":["project"],"summary":"Create Project","description":"Create a new project","operationId":"create_project_projects__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreateRequest"}}}},"responses":{"200":{"description":"Successfully created project","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProjectSuccessResopnse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Create Project Projects  Post","$ref":"#/components/schemas/ProjectSuccessResopnse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["project"],"summary":"Get All Projects","description":"Get all active projects from the database","operationId":"get_all_projects_projects__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"project_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ProjectTypeEnum"},{"type":"null"}],"title":"Project Type"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully listed active projects","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PaginatedProjectsResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get All Projects Projects  Get","$ref":"#/components/schemas/PaginatedProjectsResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}":{"patch":{"tags":["project"],"summary":"Edit Project","description":"Edit project","operationId":"edit_project_projects__project_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditProjectRequest"}}}},"responses":{"200":{"description":"Successfully edited project","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SingleProjectResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Edit Project Projects  Project Id  Patch","$ref":"#/components/schemas/SingleProjectResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["project"],"summary":"Retrieve Project","description":"Get a single active project from the database","operationId":"retrieve_project_projects__project_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successfully retrieved project","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProjectDetailResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Retrieve Project Projects  Project Id  Get","$ref":"#/components/schemas/ProjectDetailResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["project"],"summary":"Delete Project","description":"Delete an active project from the database","operationId":"delete_project_projects__project_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"remove_credential","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Remove Credential"}}],"responses":{"200":{"description":"Successfully deleted project","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Project Projects  Project Id  Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/clusters":{"get":{"tags":["project"],"summary":"List All Clusters","description":"List all clusters in a project.\n\nOrder by values are: name, endpoint_count, hardware_type, node_count, worker_count, status, created_at, modified_at","operationId":"list_all_clusters_projects__project_id__clusters_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ClusterStatusEnum"},{"type":"null"}],"title":"Status"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully list all clusters in a project","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProjectClusterPaginatedResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List All Clusters Projects  Project Id  Clusters Get","$ref":"#/components/schemas/ProjectClusterPaginatedResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/add-users":{"post":{"tags":["project"],"summary":"Add Users To Project","description":"For existing users, user_id must be provided. For new users, email must be provided.","operationId":"add_users_to_project_projects__project_id__add_users_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUserAddList"}}}},"responses":{"200":{"description":"Users successfully added to project","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Add Users To Project Projects  Project Id  Add Users Post","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/remove-users":{"post":{"tags":["project"],"summary":"Remove Users From Project","description":"Remove users from an active project","operationId":"remove_users_from_project_projects__project_id__remove_users_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"remove_credential","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Remove Credential"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUserUpdate"}}}},"responses":{"200":{"description":"Users successfully removed from project","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Remove Users From Project Projects  Project Id  Remove Users Post","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/users":{"get":{"tags":["project"],"summary":"List Project Users","description":"Get all active users in a project. Additional Sorting: project_role","operationId":"list_project_users_projects__project_id__users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"email","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},{"name":"role","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/UserRoleEnum"},{"type":"null"}],"title":"Role"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully listed project users","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PagenatedProjectUserResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Project Users Projects  Project Id  Users Get","$ref":"#/components/schemas/PagenatedProjectUserResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/tags/search":{"get":{"tags":["prompt"],"summary":"Search Prompt Tags","description":"Search prompt tags by name","operationId":"search_prompt_tags_prompts_tags_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search_term","in":"query","required":true,"schema":{"type":"string","description":"Tag name to search for","title":"Search Term"},"description":"Tag name to search for"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successfully listed tags","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__prompt_ops__schemas__PaginatedTagsResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Search Prompt Tags Prompts Tags Search Get","$ref":"#/components/schemas/budapp__prompt_ops__schemas__PaginatedTagsResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/tags":{"get":{"tags":["prompt"],"summary":"Get Prompt Tags","description":"List all prompt tags with pagination","operationId":"get_prompt_tags_prompts_tags_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successfully listed tags","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__prompt_ops__schemas__PaginatedTagsResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Prompt Tags Prompts Tags Get","$ref":"#/components/schemas/budapp__prompt_ops__schemas__PaginatedTagsResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts":{"get":{"tags":["prompt"],"summary":"List Prompts","description":"List all prompts with filtering and sorting","operationId":"list_prompts_prompts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"prompt_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PromptTypeEnum"},{"type":"null"}],"title":"Prompt Type"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Project Id"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully listed prompts","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PromptListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Prompts Prompts Get","$ref":"#/components/schemas/PromptListResponse"}}}},"400":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/catalog":{"get":{"tags":["prompt"],"summary":"List Catalog Agents","description":"List published agents available in the customer catalog","operationId":"list_catalog_agents_prompts_catalog_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":2},{"type":"null"}],"description":"Search agents by name, description or tag","title":"Search"},"description":"Search agents by name, description or tag"},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Narrow the published set to one project","title":"Project Id"},"description":"Narrow the published set to one project"},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully listed published agents","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentCatalogResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Catalog Agents Prompts Catalog Get","$ref":"#/components/schemas/AgentCatalogResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/catalog/{prompt_id}":{"get":{"tags":["prompt"],"summary":"Get Catalog Agent Details","description":"Get a published agent's details, including its sanitized configuration","operationId":"get_catalog_agent_details_prompts_catalog__prompt_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The published agent ID","title":"Prompt Id"},"description":"The published agent ID"}],"responses":{"200":{"description":"Successfully retrieved published agent","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentCatalogDetailResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Catalog Agent Details Prompts Catalog  Prompt Id  Get","$ref":"#/components/schemas/AgentCatalogDetailResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Published agent not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{prompt_id}/publish":{"put":{"tags":["prompt"],"summary":"Update Agent Publication Status","description":"Update publication status of an agent (publish/unpublish)","operationId":"update_agent_publication_status_prompts__prompt_id__publish_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The agent ID","title":"Prompt Id"},"description":"The agent ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAgentPublicationStatusRequest"}}}},"responses":{"200":{"description":"Successfully updated publication status","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PublishAgentResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Update Agent Publication Status Prompts  Prompt Id  Publish Put","$ref":"#/components/schemas/PublishAgentResponse"}}}},"400":{"description":"Invalid request or action","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Agent not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"Another published agent already uses this name","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Failed to update publication status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{prompt_id}/pricing":{"put":{"tags":["prompt"],"summary":"Update Agent Pricing","description":"Update pricing of a published agent","operationId":"update_agent_pricing_prompts__prompt_id__pricing_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The agent ID","title":"Prompt Id"},"description":"The agent ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPricingInput"}}}},"responses":{"200":{"description":"Successfully updated agent pricing","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentPricingResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Update Agent Pricing Prompts  Prompt Id  Pricing Put","$ref":"#/components/schemas/AgentPricingResponse"}}}},"400":{"description":"Invalid pricing data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Agent not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["prompt"],"summary":"Get Agent Pricing","description":"Get current pricing of an agent","operationId":"get_agent_pricing_prompts__prompt_id__pricing_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The agent ID","title":"Prompt Id"},"description":"The agent ID"}],"responses":{"200":{"description":"Successfully retrieved agent pricing","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentPricingResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Agent Pricing Prompts  Prompt Id  Pricing Get","$ref":"#/components/schemas/AgentPricingResponse"}}}},"404":{"description":"Pricing not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{prompt_id}/pricing/history":{"get":{"tags":["prompt"],"summary":"Get Agent Pricing History","description":"Get pricing history of an agent","operationId":"get_agent_pricing_history_prompts__prompt_id__pricing_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The agent ID","title":"Prompt Id"},"description":"The agent ID"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successfully retrieved pricing history","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentPricingHistoryResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Agent Pricing History Prompts  Prompt Id  Pricing History Get","$ref":"#/components/schemas/AgentPricingHistoryResponse"}}}},"500":{"description":"Failed to retrieve pricing history","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{prompt_id}/publication-history":{"get":{"tags":["prompt"],"summary":"Get Agent Publication History","description":"Get publish/unpublish history of an agent","operationId":"get_agent_publication_history_prompts__prompt_id__publication_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The agent ID","title":"Prompt Id"},"description":"The agent ID"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successfully retrieved publication history","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentPublicationHistoryResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Agent Publication History Prompts  Prompt Id  Publication History Get","$ref":"#/components/schemas/AgentPublicationHistoryResponse"}}}},"500":{"description":"Failed to retrieve publication history","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{prompt_id}/versions":{"get":{"tags":["prompt"],"summary":"List Prompt Versions","description":"List all versions for a specific prompt.","operationId":"list_prompt_versions_prompts__prompt_id__versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Prompt Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully listed prompt versions","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PromptVersionListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Prompt Versions Prompts  Prompt Id  Versions Get","$ref":"#/components/schemas/PromptVersionListResponse"}}}},"404":{"description":"Prompt not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["prompt"],"summary":"Create Prompt Version","description":"Create a new version for a specific prompt","operationId":"create_prompt_version_prompts__prompt_id__versions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Prompt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePromptVersionRequest"}}}},"responses":{"200":{"description":"Successfully created prompt version","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SinglePromptVersionResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Create Prompt Version Prompts  Prompt Id  Versions Post","$ref":"#/components/schemas/SinglePromptVersionResponse"}}}},"400":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Prompt or endpoint not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"The agent's publish gate blocks making this version the default","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{prompt_id}/versions/{version_id}":{"get":{"tags":["prompt"],"summary":"Get Prompt Version","description":"Retrieve a specific prompt version with its prompt schema","operationId":"get_prompt_version_prompts__prompt_id__versions__version_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Prompt Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}}],"responses":{"200":{"description":"Successfully retrieved prompt version","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GetPromptVersionResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Prompt Version Prompts  Prompt Id  Versions  Version Id  Get","$ref":"#/components/schemas/GetPromptVersionResponse"}}}},"404":{"description":"Prompt or version not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["prompt"],"summary":"Edit Prompt Version","description":"Update a prompt version by its ID","operationId":"edit_prompt_version_prompts__prompt_id__versions__version_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Prompt Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditPromptVersionRequest"}}}},"responses":{"200":{"description":"Successfully updated prompt version","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SinglePromptVersionResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Edit Prompt Version Prompts  Prompt Id  Versions  Version Id  Patch","$ref":"#/components/schemas/SinglePromptVersionResponse"}}}},"400":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Prompt or version not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"The agent's publish gate blocks making this version the default","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["prompt"],"summary":"Delete Prompt Version","description":"Delete a prompt version by its ID","operationId":"delete_prompt_version_prompts__prompt_id__versions__version_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Prompt Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}}],"responses":{"200":{"description":"Successfully deleted prompt version","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Prompt Version Prompts  Prompt Id  Versions  Version Id  Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"400":{"description":"Cannot delete default version","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Prompt or version not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/prompt-workflow":{"post":{"tags":["prompt"],"summary":"Create Prompt Workflow","description":"Create a prompt workflow","operationId":"create_prompt_workflow_prompts_prompt_workflow_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePromptWorkflowRequest"}}},"required":true},"responses":{"200":{"description":"Successfully created prompt workflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse","anyOf":[{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Create Prompt Workflow Prompts Prompt Workflow Post"}}}},"400":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/prompts/prompt-schema":{"post":{"tags":["prompt"],"summary":"Create Prompt Schema Workflow","description":"Create a prompt workflow","operationId":"create_prompt_schema_workflow_prompts_prompt_schema_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptSchemaRequest"}}},"required":true},"responses":{"200":{"description":"Successfully created prompt workflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse","anyOf":[{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Create Prompt Schema Workflow Prompts Prompt Schema Post"}}}},"400":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/prompts/voice-capabilities":{"get":{"tags":["prompt"],"summary":"Get Voice Capabilities","description":"Whether interaction mode is available to voice agents here, and why not when it is not","operationId":"get_voice_capabilities_prompts_voice_capabilities_get","responses":{"200":{"description":"What voice agents can use on this platform","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceCapabilitiesResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/prompts/prompt-config":{"post":{"tags":["prompt"],"summary":"Save Prompt Config","description":"Save or update prompt configuration in Redis via budprompt service","operationId":"save_prompt_config_prompts_prompt_config_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptConfigRequest"}}},"required":true},"responses":{"200":{"description":"Successfully saved prompt configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptConfigResponse","anyOf":[{"$ref":"#/components/schemas/PromptConfigResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Save Prompt Config Prompts Prompt Config Post"}}}},"400":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/prompts/prompt-config/{prompt_id}":{"get":{"tags":["prompt"],"summary":"Get Prompt Config","description":"Retrieve prompt configuration from Redis via budprompt service","operationId":"get_prompt_config_prompts_prompt_config__prompt_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Prompt Id"}},{"name":"version","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Version of the configuration to retrieve","default":1,"title":"Version"},"description":"Version of the configuration to retrieve"}],"responses":{"200":{"description":"Successfully retrieved prompt configuration","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PromptConfigGetResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Prompt Config Prompts Prompt Config  Prompt Id  Get","$ref":"#/components/schemas/PromptConfigGetResponse"}}}},"404":{"description":"Configuration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/agent-card/{prompt_id}":{"get":{"tags":["prompt"],"summary":"Get Agent Card","description":"Fetch the A2A Agent Card for a prompt","operationId":"get_agent_card_prompts_agent_card__prompt_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Prompt Id"}},{"name":"version","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Version number (0 = default)","default":0,"title":"Version"},"description":"Version number (0 = default)"}],"responses":{"200":{"description":"Successfully retrieved A2A Agent Card","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentCardResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Agent Card Prompts Agent Card  Prompt Id  Get","$ref":"#/components/schemas/AgentCardResponse"}}}},"404":{"description":"Agent card not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/connectors":{"get":{"tags":["prompt"],"summary":"List Connectors","description":"List all connectors with optional filtering by prompt_id","operationId":"list_connectors_prompts_connectors_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"version","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Version of prompt config (defaults to 1)","default":1,"title":"Version"},"description":"Version of prompt config (defaults to 1)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"prompt_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Id"}},{"name":"is_registered","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Registered"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully listed connectors","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConnectorListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Connectors Prompts Connectors Get","$ref":"#/components/schemas/ConnectorListResponse"}}}},"400":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/connectors/{connector_id}":{"get":{"tags":["prompt"],"summary":"Get Connector","description":"Retrieve a single connector by ID","operationId":"get_connector_prompts_connectors__connector_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"connector_id","in":"path","required":true,"schema":{"type":"string","title":"Connector Id"}}],"responses":{"200":{"description":"Successfully retrieved connector","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConnectorResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Connector Prompts Connectors  Connector Id  Get","$ref":"#/components/schemas/ConnectorResponse"}}}},"404":{"description":"Connector not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{budprompt_id}/connectors/{connector_id}/register":{"post":{"tags":["prompt"],"summary":"Register Connector","description":"Register a connector for a prompt by creating gateway in MCP Foundry","operationId":"register_connector_prompts__budprompt_id__connectors__connector_id__register_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"budprompt_id","in":"path","required":true,"schema":{"type":"string","title":"Budprompt Id"}},{"name":"connector_id","in":"path","required":true,"schema":{"type":"string","title":"Connector Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterConnectorRequest"}}}},"responses":{"200":{"description":"Successfully registered connector","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RegisterConnectorResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Register Connector Prompts  Budprompt Id  Connectors  Connector Id  Register Post","$ref":"#/components/schemas/RegisterConnectorResponse"}}}},"404":{"description":"Connector not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{budprompt_id}/connections/{gateway_id}/attach-tools":{"post":{"tags":["prompt"],"summary":"Attach Connection Tools","description":"Attach tools from an existing global connection (gateway) to a prompt's agent","operationId":"attach_connection_tools_prompts__budprompt_id__connections__gateway_id__attach_tools_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"budprompt_id","in":"path","required":true,"schema":{"type":"string","title":"Budprompt Id"}},{"name":"gateway_id","in":"path","required":true,"schema":{"type":"string","title":"Gateway Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachConnectionToolsRequest"}}}},"responses":{"200":{"description":"Tools attached from the connection successfully","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AddToolResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Attach Connection Tools Prompts  Budprompt Id  Connections  Gateway Id  Attach Tools Post","$ref":"#/components/schemas/AddToolResponse"}}}},"404":{"description":"Prompt or connection not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{budprompt_id}/connectors/{connector_id}/disconnect":{"delete":{"tags":["prompt"],"summary":"Disconnect Connector","description":"Disconnect a connector from a prompt by deleting gateway and cleaning configuration","operationId":"disconnect_connector_prompts__budprompt_id__connectors__connector_id__disconnect_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"budprompt_id","in":"path","required":true,"schema":{"type":"string","title":"Budprompt Id"}},{"name":"connector_id","in":"path","required":true,"schema":{"type":"string","title":"Connector Id"}},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Version of prompt config (defaults to 1)","default":1,"title":"Version"},"description":"Version of prompt config (defaults to 1)"},{"name":"permanent","in":"query","required":false,"schema":{"type":"boolean","description":"Store configuration permanently without expiration (default: False, uses configured TTL)","default":false,"title":"Permanent"},"description":"Store configuration permanently without expiration (default: False, uses configured TTL)"}],"responses":{"200":{"description":"Successfully disconnected connector","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DisconnectConnectorResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Disconnect Connector Prompts  Budprompt Id  Connectors  Connector Id  Disconnect Delete","$ref":"#/components/schemas/DisconnectConnectorResponse"}}}},"404":{"description":"Prompt or connector not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{budprompt_id}/connections/{gateway_id}/detach":{"delete":{"tags":["prompt"],"summary":"Detach Connection","description":"Detach an existing global connection from a prompt (keeps the shared gateway)","operationId":"detach_connection_prompts__budprompt_id__connections__gateway_id__detach_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"budprompt_id","in":"path","required":true,"schema":{"type":"string","title":"Budprompt Id"}},{"name":"gateway_id","in":"path","required":true,"schema":{"type":"string","title":"Gateway Id"}},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Version of prompt config (defaults to 1)","default":1,"title":"Version"},"description":"Version of prompt config (defaults to 1)"},{"name":"permanent","in":"query","required":false,"schema":{"type":"boolean","description":"Store configuration permanently without expiration (default: False, uses configured TTL)","default":false,"title":"Permanent"},"description":"Store configuration permanently without expiration (default: False, uses configured TTL)"}],"responses":{"200":{"description":"Successfully detached connection","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DisconnectConnectorResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Detach Connection Prompts  Budprompt Id  Connections  Gateway Id  Detach Delete","$ref":"#/components/schemas/DisconnectConnectorResponse"}}}},"404":{"description":"Prompt or connection not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/event-catalog":{"get":{"tags":["prompt"],"summary":"Get Event Catalog","description":"List the selectable event types for a provider, sourced from the MCP gateway's authoritative descriptor catalog (so the trigger UI never hardcodes the event list).","operationId":"get_event_catalog_prompts_event_catalog_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"descriptor_ref","in":"query","required":false,"schema":{"type":"string","description":"Provider descriptor ref (e.g. 'slack').","default":"slack","title":"Descriptor Ref"},"description":"Provider descriptor ref (e.g. 'slack')."}],"responses":{"200":{"description":"Selectable event types for the provider","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EventCatalogResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Event Catalog Prompts Event Catalog Get","$ref":"#/components/schemas/EventCatalogResponse"}}}},"404":{"description":"Unknown descriptor / events disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"Gateway unreachable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/trigger-providers":{"get":{"tags":["prompt"],"summary":"List Trigger Providers","description":"List the supported trigger providers (event sources), sourced from budevent. Triggers are independent of MCP tool connectors.","operationId":"list_trigger_providers_prompts_trigger_providers_get","responses":{"200":{"description":"Supported trigger providers","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerProvidersResponse","anyOf":[{"$ref":"#/components/schemas/TriggerProvidersResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Trigger Providers Prompts Trigger Providers Get"}}}},"502":{"description":"budevent unreachable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/prompts/{budprompt_id}/connectors/{connector_id}/triggers":{"post":{"tags":["prompt"],"summary":"Provision Triggers","description":"Provision/replace a conversational channel bot (Slack/Teams/Workvivo) on an agent's connector.","operationId":"provision_triggers_prompts__budprompt_id__connectors__connector_id__triggers_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"budprompt_id","in":"path","required":true,"schema":{"type":"string","title":"Budprompt Id"}},{"name":"connector_id","in":"path","required":true,"schema":{"type":"string","title":"Connector Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisionTriggersRequest"}}}},"responses":{"200":{"description":"Triggers provisioned","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProvisionTriggersResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Provision Triggers Prompts  Budprompt Id  Connectors  Connector Id  Triggers Post","$ref":"#/components/schemas/ProvisionTriggersResponse"}}}},"400":{"description":"Connector not registered / invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Agent not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["prompt"],"summary":"Remove Triggers","description":"Remove the conversational channel bot (subscription) bound to an agent's connector.","operationId":"remove_triggers_prompts__budprompt_id__connectors__connector_id__triggers_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"budprompt_id","in":"path","required":true,"schema":{"type":"string","title":"Budprompt Id"}},{"name":"connector_id","in":"path","required":true,"schema":{"type":"string","title":"Connector Id"}},{"name":"version","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Version"}}],"responses":{"200":{"description":"Triggers removed","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RemoveTriggersResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Remove Triggers Prompts  Budprompt Id  Connectors  Connector Id  Triggers Delete","$ref":"#/components/schemas/RemoveTriggersResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{budprompt_id}/triggers":{"get":{"tags":["prompt"],"summary":"List Triggers","description":"List the conversational channel bots configured for an agent (across connectors).","operationId":"list_triggers_prompts__budprompt_id__triggers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"budprompt_id","in":"path","required":true,"schema":{"type":"string","title":"Budprompt Id"}},{"name":"version","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Version"}}],"responses":{"200":{"description":"Triggers for the agent","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ListTriggersResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Triggers Prompts  Budprompt Id  Triggers Get","$ref":"#/components/schemas/ListTriggersResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/prompt-config/add-tool":{"post":{"tags":["prompt"],"summary":"Add Tool","description":"Add tools for a prompt by creating/updating virtual server in MCP Foundry","operationId":"add_tool_prompts_prompt_config_add_tool_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddToolRequest"}}},"required":true},"responses":{"200":{"description":"Tool added successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddToolResponse","anyOf":[{"$ref":"#/components/schemas/AddToolResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Add Tool Prompts Prompt Config Add Tool Post"}}}},"404":{"description":"Prompt not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/prompts/tools":{"get":{"tags":["prompt"],"summary":"List Tools","description":"List tools filtered by connector type","operationId":"list_tools_prompts_tools_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"prompt_id","in":"query","required":true,"schema":{"type":"string","title":"Prompt Id"}},{"name":"connector_id","in":"query","required":true,"schema":{"type":"string","title":"Connector Id"}},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"default":1,"title":"Version"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully listed tools","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ToolListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Tools Prompts Tools Get","$ref":"#/components/schemas/ToolListResponse"}}}},"400":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/tools/{tool_id}":{"get":{"tags":["prompt"],"summary":"Get Tool","description":"Get a single tool by ID.\n\nArgs:\n    tool_id: Tool ID to retrieve\n    session: Database session\n    current_user: Authenticated user\n\nReturns:\n    Tool details with complete schema","operationId":"get_tool_prompts_tools__tool_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tool_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tool Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/prompt-cleanup":{"post":{"tags":["prompt"],"summary":"Cleanup Prompts","description":"Trigger cleanup of temporary prompt resources (MCP gateways, virtual servers, etc.)","operationId":"cleanup_prompts_prompts_prompt_cleanup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptCleanupRequest"}}},"required":true},"responses":{"200":{"description":"Successfully cleaned up prompts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse","anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Cleanup Prompts Prompts Prompt Cleanup Post"}}}},"400":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/prompts/oauth/initiate":{"post":{"tags":["prompt"],"summary":"Initiate Oauth","description":"Initiate OAuth flow for a connector","operationId":"initiate_oauth_prompts_oauth_initiate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthInitiateRequest"}}},"required":true},"responses":{"200":{"description":"Successfully initiated OAuth flow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthInitiateResponse","anyOf":[{"$ref":"#/components/schemas/OAuthInitiateResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Initiate Oauth Prompts Oauth Initiate Post"}}}},"404":{"description":"Prompt or connector not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/prompts/oauth/status":{"get":{"tags":["prompt"],"summary":"Get Oauth Status","description":"Get OAuth status for a connector","operationId":"get_oauth_status_prompts_oauth_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"query","required":true,"schema":{"type":"string","description":"Prompt id","title":"Prompt Id"},"description":"Prompt id"},{"name":"connector_id","in":"query","required":true,"schema":{"type":"string","description":"Connector id to check OAuth status for","title":"Connector Id"},"description":"Connector id to check OAuth status for"},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Version of prompt config (defaults to 1)","default":1,"title":"Version"},"description":"Version of prompt config (defaults to 1)"}],"responses":{"200":{"description":"Successfully retrieved OAuth status","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OAuthStatusResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Oauth Status Prompts Oauth Status Get","$ref":"#/components/schemas/OAuthStatusResponse"}}}},"404":{"description":"Prompt or connector not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/oauth/fetch-tools":{"post":{"tags":["prompt"],"summary":"Fetch Tools After Oauth","description":"Fetch tools after OAuth completion for a connector","operationId":"fetch_tools_after_oauth_prompts_oauth_fetch_tools_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthFetchToolsRequest"}}},"required":true},"responses":{"200":{"description":"Successfully fetched tools after OAuth","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse","anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Fetch Tools After Oauth Prompts Oauth Fetch Tools Post"}}}},"404":{"description":"Prompt or connector not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/prompts/oauth/callback":{"post":{"tags":["prompt"],"summary":"Oauth Callback","description":"Handle OAuth callback from provider","operationId":"oauth_callback_prompts_oauth_callback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__prompt_ops__schemas__OAuthCallbackRequest"}}},"required":true},"responses":{"200":{"description":"Successfully handled OAuth callback","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthCallbackResponse","anyOf":[{"$ref":"#/components/schemas/OAuthCallbackResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Oauth Callback Prompts Oauth Callback Post"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/prompts/widgets/{public_id}/config":{"get":{"tags":["prompt"],"summary":"Get Public Widget Config","description":"Scrubbed widget projection addressed by the `wgt_` public id: branding, copy, launcher, feature flags and the allowed-domain list — never the internal agent id, project id or credential. Requires the session bearer from POST /playground/initialize-widget-session, so budplayground mints FIRST and fetches this with the bearer it holds; the bearer must belong to the widget's project. `origin` is checked against `allowed_domains` (403 on a miss) as defence in depth — the binding controls are the frontend's origin-gated CORS and CSP `frame-ancestors`.","operationId":"get_public_widget_config_prompts_widgets__public_id__config_get","parameters":[{"name":"public_id","in":"path","required":true,"schema":{"type":"string","title":"Public Id"}},{"name":"origin","in":"query","required":true,"schema":{"type":"string","description":"The embedding page's origin, e.g. `https://customer.com`. REQUIRED and checked against the widget's `allowed_domains`. Spoofable (it is a query param), so defence in depth only — never the enforcement point.","title":"Origin"},"description":"The embedding page's origin, e.g. `https://customer.com`. REQUIRED and checked against the widget's `allowed_domains`. Spoofable (it is a query param), so defence in depth only — never the enforcement point."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Widget configuration","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WidgetPublicConfigResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Public Widget Config Prompts Widgets  Public Id  Config Get","$ref":"#/components/schemas/WidgetPublicConfigResponse"}}}},"401":{"description":"Missing or expired session bearer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Origin not in allowed_domains","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Widget not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/widgets/{public_id}/launcher":{"get":{"tags":["prompt"],"summary":"Get Public Widget Launcher","description":"UNAUTHENTICATED cosmetic launcher branding addressed by the `wgt_` public id: launcher shape, icon, position, label, greeting bubble, accent colour, logo and corner radius — and nothing else. Unlike the full config read this needs NO session bearer, because the loader paints the collapsed launcher on the host page before any iframe (and therefore any session) exists. It is the smallest, lowest-sensitivity surface: it never carries `allowed_domains`, copy, content, feature flags or any internal id, so a guessed public id leaks nothing not already visible on the widget's live page. `origin` is still checked against `allowed_domains` (403 on a miss) as defence in depth, so the launcher only paints on a whitelisted embed.","operationId":"get_public_widget_launcher_prompts_widgets__public_id__launcher_get","parameters":[{"name":"public_id","in":"path","required":true,"schema":{"type":"string","title":"Public Id"}},{"name":"origin","in":"query","required":true,"schema":{"type":"string","description":"The embedding page's origin, e.g. `https://customer.com`. REQUIRED and checked against the widget's `allowed_domains`. Spoofable (it is a query param), so defence in depth only.","title":"Origin"},"description":"The embedding page's origin, e.g. `https://customer.com`. REQUIRED and checked against the widget's `allowed_domains`. Spoofable (it is a query param), so defence in depth only."}],"responses":{"200":{"description":"Launcher branding","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WidgetLauncherBrandingResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Public Widget Launcher Prompts Widgets  Public Id  Launcher Get","$ref":"#/components/schemas/WidgetLauncherBrandingResponse"}}}},"403":{"description":"Origin not in allowed_domains","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Widget not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/agent-assets/{key}":{"get":{"tags":["prompt"],"summary":"Get Widget Asset","description":"Public, unauthenticated read of a widget asset. Served with `nosniff`, `Cross-Origin-Resource-Policy: cross-site` (third-party pages embed these) and `Cache-Control: no-cache` + an ETag — a key's bytes change when the operator re-uploads, so the browser revalidates and gets a bodiless 304 when unchanged.","operationId":"get_widget_asset_prompts_agent_assets__key__get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"The widget asset, streamed","content":{"application/json":{"schema":{}},"image/png":{},"image/jpeg":{},"image/webp":{}}},"304":{"description":"Client's cached copy is current"},"404":{"description":"No such asset","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{bud_prompt_id}/widgets":{"post":{"tags":["prompt"],"summary":"Upsert Widget","description":"Create or fully replace the embedded chat widget bound to an agent. The response carries the public `wgt_` id used in the embed snippet. This body is a FULL REPLACE and deliberately cannot carry `status`: use PATCH for the enable/disable kill switch, so a stale editor cannot resurrect a widget that was disabled after it loaded.","operationId":"upsert_widget_prompts__bud_prompt_id__widgets_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bud_prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Bud Prompt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetConfigIn"}}}},"responses":{"200":{"description":"Widget configuration saved","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WidgetResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Upsert Widget Prompts  Bud Prompt Id  Widgets Post","$ref":"#/components/schemas/WidgetResponse"}}}},"400":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Not a member of the project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Agent not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["prompt"],"summary":"Patch Widget","description":"Sparsely update a widget using JSON Merge Patch (RFC 7386): nested objects deep-merge, an explicit `null` clears a field, and arrays (`suggestions`, `allowed_domains`) replace wholesale. This is the only route that accepts `status`, which is the widget kill switch. The MERGED document is validated, never the fragment.","operationId":"patch_widget_prompts__bud_prompt_id__widgets_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bud_prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Bud Prompt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"RFC 7386 merge patch","title":"Patch"}}}},"responses":{"200":{"description":"Widget updated","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WidgetResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Patch Widget Prompts  Bud Prompt Id  Widgets Patch","$ref":"#/components/schemas/WidgetResponse"}}}},"400":{"description":"Invalid patch","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Not a member of the project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Agent or widget not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Merged config invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}},"get":{"tags":["prompt"],"summary":"Get Widget","description":"Read back the full widget configuration for the studio, including the allowed-domain list.","operationId":"get_widget_prompts__bud_prompt_id__widgets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bud_prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Bud Prompt Id"}}],"responses":{"200":{"description":"Widget configuration","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WidgetResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Widget Prompts  Bud Prompt Id  Widgets Get","$ref":"#/components/schemas/WidgetResponse"}}}},"403":{"description":"Not a member of the project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Agent or widget not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{bud_prompt_id}/widgets/assets":{"post":{"tags":["prompt"],"summary":"Upload Widget Asset","description":"Upload a chat-widget image (`assistant_avatar` or `brand_mark`). PNG/JPEG/WEBP only, 1 MB max; the image is re-encoded server-side to WEBP (max 512px) and stored under a server-derived key. Returns the permanent `/prompts/agent-assets/{key}` URL to put in `design.marks.*`. Re-uploading supersedes the slot's previous asset.","operationId":"upload_widget_asset_prompts__bud_prompt_id__widgets_assets_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bud_prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Bud Prompt Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_widget_asset_prompts__bud_prompt_id__widgets_assets_post"}}}},"responses":{"200":{"description":"Asset stored; returns its permanent URL","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WidgetAssetUploadResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Upload Widget Asset Prompts  Bud Prompt Id  Widgets Assets Post","$ref":"#/components/schemas/WidgetAssetUploadResponse"}}}},"400":{"description":"Unsupported kind, unsupported image type, or undecodable image","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Caller is not a member of the project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Prompt not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"413":{"description":"Asset exceeds the 1 MB limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{prompt_id}":{"delete":{"tags":["prompt"],"summary":"Delete Prompt","description":"Delete a prompt by its ID","operationId":"delete_prompt_prompts__prompt_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Prompt Id"}}],"responses":{"200":{"description":"Successfully deleted prompt","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Prompt Prompts  Prompt Id  Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"400":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Prompt not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["prompt"],"summary":"Edit Prompt","description":"Update a prompt by its ID","operationId":"edit_prompt_prompts__prompt_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Prompt Id"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"User the internal call acts for (required internally)","title":"User Id"},"description":"User the internal call acts for (required internally)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditPromptRequest"}}}},"responses":{"200":{"description":"Successfully updated prompt","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SinglePromptResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Edit Prompt Prompts  Prompt Id  Patch","$ref":"#/components/schemas/SinglePromptResponse"}}}},"400":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Prompt not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"The agent's publish gate blocks making this version the default","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["prompt"],"summary":"Get Prompt","description":"Retrieve a single prompt by its ID","operationId":"get_prompt_prompts__prompt_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Prompt Id"}}],"responses":{"200":{"description":"Successfully retrieved prompt","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SinglePromptResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Prompt Prompts  Prompt Id  Get","$ref":"#/components/schemas/SinglePromptResponse"}}}},"404":{"description":"Prompt not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/a2a-catalog":{"get":{"tags":["prompt"],"summary":"List A2A Catalog Agents","description":"List pre-seeded A2A agents from registry catalog with filtering and search","operationId":"list_a2a_catalog_agents_prompts_a2a_catalog_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":20,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully listed A2A catalog agents","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/A2ACatalogAgentListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List A2A Catalog Agents Prompts A2A Catalog Get","$ref":"#/components/schemas/A2ACatalogAgentListResponse"}}}},"400":{"description":"Invalid request data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{bud_prompt_id}/traces":{"get":{"tags":["prompt"],"summary":"List Prompt Traces","description":"List OTel traces for a specific prompt, scoped to the caller's projects","operationId":"list_prompt_traces_prompts__bud_prompt_id__traces_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bud_prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Bud Prompt Id"}},{"name":"project_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Project ID to validate prompt ownership","title":"Project Id"},"description":"Project ID to validate prompt ownership"},{"name":"from_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Start date for filtering traces","title":"From Date"},"description":"Start date for filtering traces"},{"name":"to_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"End date for filtering traces","title":"To Date"},"description":"End date for filtering traces"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number (1-indexed)","default":1,"title":"Page"},"description":"Page number (1-indexed)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Number of results per page","default":50,"title":"Limit"},"description":"Number of results per page"},{"name":"flatten","in":"query","required":false,"schema":{"type":"boolean","description":"If true, return all spans (root + children) sorted by time","default":false,"title":"Flatten"},"description":"If true, return all spans (root + children) sorted by time"}],"responses":{"200":{"description":"Successfully retrieved traces","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TraceListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Prompt Traces Prompts  Bud Prompt Id  Traces Get","$ref":"#/components/schemas/TraceListResponse"}}}},"403":{"description":"Access denied to the requested project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Prompt not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{bud_prompt_id}/traces/{trace_id}":{"get":{"tags":["prompt"],"summary":"Get Prompt Trace","description":"Get all spans for a single trace, if it belongs to the caller's project","operationId":"get_prompt_trace_prompts__bud_prompt_id__traces__trace_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bud_prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Bud Prompt Id"}},{"name":"trace_id","in":"path","required":true,"schema":{"type":"string","title":"Trace Id"}},{"name":"project_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Project ID to validate prompt ownership","title":"Project Id"},"description":"Project ID to validate prompt ownership"}],"responses":{"200":{"description":"Successfully retrieved trace","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TraceDetailResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Prompt Trace Prompts  Bud Prompt Id  Traces  Trace Id  Get","$ref":"#/components/schemas/TraceDetailResponse"}}}},"403":{"description":"Access denied to the requested project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Prompt or trace not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/telemetry/query":{"post":{"tags":["prompt","Telemetry"],"summary":"Query Telemetry","description":"Query prompt telemetry data (SDK authentication via API key)","operationId":"query_telemetry_prompts_telemetry_query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelemetryQueryRequest"}}},"required":true},"responses":{"200":{"description":"Telemetry query results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelemetryQueryResponse","anyOf":[{"$ref":"#/components/schemas/TelemetryQueryResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Query Telemetry Prompts Telemetry Query Post"}}}},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Prompt not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/prompts/{bud_prompt_id}/agents":{"get":{"tags":["prompt"],"summary":"List Available Agents","description":"List A2A agents available to connect as tools to a prompt","operationId":"list_available_agents_prompts__bud_prompt_id__agents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bud_prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Bud Prompt Id"}},{"name":"project_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Project ID to scope agent listing","title":"Project Id"},"description":"Project ID to scope agent listing"},{"name":"version","in":"query","required":false,"schema":{"type":"integer","description":"Prompt config version","default":1,"title":"Version"},"description":"Prompt config version"},{"name":"connected_only","in":"query","required":false,"schema":{"type":"boolean","description":"If true, return only connected agents","default":false,"title":"Connected Only"},"description":"If true, return only connected agents"},{"name":"agent_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by agent type: 'simple_prompt' or 'external_a2a_agent'","title":"Agent Type"},"description":"Filter by agent type: 'simple_prompt' or 'external_a2a_agent'"},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter or search by agent name","title":"Name"},"description":"Filter or search by agent name"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successfully retrieved available agents","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ListAvailableAgentsResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Available Agents Prompts  Bud Prompt Id  Agents Get","$ref":"#/components/schemas/ListAvailableAgentsResponse"}}}},"404":{"description":"Prompt not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{bud_prompt_id}/connect-agent":{"post":{"tags":["prompt"],"summary":"Connect Agent To Prompt","description":"Connect an A2A agent as a tool to a prompt","operationId":"connect_agent_to_prompt_prompts__bud_prompt_id__connect_agent_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bud_prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Bud Prompt Id"}},{"name":"version","in":"query","required":false,"schema":{"type":"integer","description":"Prompt config version","default":1,"title":"Version"},"description":"Prompt config version"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectAgentToPromptRequest"}}}},"responses":{"200":{"description":"Successfully connected agent to prompt","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Connect Agent To Prompt Prompts  Bud Prompt Id  Connect Agent Post","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"400":{"description":"Invalid request or agent already connected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Prompt or agent not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{bud_prompt_id}/disconnect-agent":{"delete":{"tags":["prompt"],"summary":"Disconnect Agent From Prompt","description":"Disconnect an A2A agent tool from a prompt","operationId":"disconnect_agent_from_prompt_prompts__bud_prompt_id__disconnect_agent_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bud_prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Bud Prompt Id"}},{"name":"agent_prompt_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"ID of the agent prompt to disconnect","title":"Agent Prompt Id"},"description":"ID of the agent prompt to disconnect"},{"name":"version","in":"query","required":false,"schema":{"type":"integer","description":"Prompt config version","default":1,"title":"Version"},"description":"Prompt config version"}],"responses":{"200":{"description":"Successfully disconnected agent from prompt","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Disconnect Agent From Prompt Prompts  Bud Prompt Id  Disconnect Agent Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"404":{"description":"Prompt or agent not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{bud_prompt_id}/native-tools":{"get":{"tags":["prompt"],"summary":"List Native Tools","description":"List native PydanticAI tools with connected/not_connected status","operationId":"list_native_tools_prompts__bud_prompt_id__native_tools_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bud_prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Bud Prompt Id"}},{"name":"version","in":"query","required":false,"schema":{"type":"integer","description":"Prompt config version","default":1,"title":"Version"},"description":"Prompt config version"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Items per page","default":10,"title":"Limit"},"description":"Items per page"},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"display_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/NativeToolFilterEnum"},{"type":"null"}],"default":"all","title":"Status"}}],"responses":{"200":{"description":"List of native tools with connected status","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NativeToolListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Native Tools Prompts  Bud Prompt Id  Native Tools Get","$ref":"#/components/schemas/NativeToolListResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["prompt"],"summary":"Upsert Native Tool","description":"Connect a native tool to a prompt or update its config (upsert)","operationId":"upsert_native_tool_prompts__bud_prompt_id__native_tools_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bud_prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Bud Prompt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertNativeToolRequest"}}}},"responses":{"200":{"description":"Native tool connected or config updated","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UpsertNativeToolResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Upsert Native Tool Prompts  Bud Prompt Id  Native Tools Post","$ref":"#/components/schemas/UpsertNativeToolResponse"}}}},"400":{"description":"Unknown tool name","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{bud_prompt_id}/native-tools/{tool_name}":{"get":{"tags":["prompt"],"summary":"Get Native Tool Detail","description":"Get detail of a native tool including config schema and connected config","operationId":"get_native_tool_detail_prompts__bud_prompt_id__native_tools__tool_name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bud_prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Bud Prompt Id"}},{"name":"tool_name","in":"path","required":true,"schema":{"type":"string","title":"Tool Name"}},{"name":"version","in":"query","required":false,"schema":{"type":"integer","description":"Prompt config version","default":1,"title":"Version"},"description":"Prompt config version"}],"responses":{"200":{"description":"Native tool detail with config schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NativeToolDetailResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Native Tool Detail Prompts  Bud Prompt Id  Native Tools  Tool Name  Get","$ref":"#/components/schemas/NativeToolDetailResponse"}}}},"400":{"description":"Unknown tool name","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["prompt"],"summary":"Disconnect Native Tool","description":"Disconnect a native tool from a prompt","operationId":"disconnect_native_tool_prompts__bud_prompt_id__native_tools__tool_name__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bud_prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Bud Prompt Id"}},{"name":"tool_name","in":"path","required":true,"schema":{"type":"string","title":"Tool Name"}},{"name":"version","in":"query","required":false,"schema":{"type":"integer","description":"Prompt config version","default":1,"title":"Version"},"description":"Prompt config version"},{"name":"permanent","in":"query","required":false,"schema":{"type":"boolean","description":"Store permanently without expiration","default":false,"title":"Permanent"},"description":"Store permanently without expiration"}],"responses":{"200":{"description":"Native tool disconnected","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Disconnect Native Tool Prompts  Bud Prompt Id  Native Tools  Tool Name  Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"404":{"description":"Tool not connected to prompt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/agent-health-check":{"post":{"tags":["prompt"],"summary":"Agent Health Check","description":"Agent health check cron job.\n\nThis endpoint processes the external A2A agent health check cron job.\n\nReturns:\n    HTTP response indicating the health check was triggered.","operationId":"agent_health_check_prompts_agent_health_check_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/prompts/code-interpreter/templates":{"post":{"tags":["prompt","code-interpreter"],"summary":"Create Custom Template","description":"Create a custom code-interpreter template (project-scoped).","operationId":"create_custom_template_prompts_code_interpreter_templates_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomTemplateCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["prompt","code-interpreter"],"summary":"List Code Interpreter Templates","description":"List code-interpreter templates (ready builtins + the caller's own custom rows).","operationId":"list_code_interpreter_templates_prompts_code_interpreter_templates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cpu","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Filter by exact cpu_count","title":"Cpu"},"description":"Filter by exact cpu_count"},{"name":"memory_mb","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Filter by exact memory_mb","title":"Memory Mb"},"description":"Filter by exact memory_mb"},{"name":"languages","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Templates must support ALL given languages (repeat the param)","title":"Languages"},"description":"Templates must support ALL given languages (repeat the param)"},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"Filter by template type ('builtin' / 'custom')","title":"Type"},"description":"Filter by template type ('builtin' / 'custom')"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/code-interpreter/templates/{template_id}":{"get":{"tags":["prompt","code-interpreter"],"summary":"Get Template","description":"Get a custom or builtin template (project-scoped for custom rows).","operationId":"get_template_prompts_code_interpreter_templates__template_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["prompt","code-interpreter"],"summary":"Update Custom Template","description":"Replace a custom template's commands and re-enqueue the build.","operationId":"update_custom_template_prompts_code_interpreter_templates__template_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomTemplateUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["prompt","code-interpreter"],"summary":"Delete Custom Template","description":"Delete a custom template (404 if cross-project; 409 if in-use).","operationId":"delete_custom_template_prompts_code_interpreter_templates__template_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pact/imports/upload":{"post":{"tags":["pact"],"summary":"Upload Import","description":"Create an import from a workspace archive or a pydantic-ai spec, saved as its draft (FRD §5.2).","operationId":"upload_import_pact_imports_upload_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The project the import targets","title":"Project Id"},"description":"The project the import targets"},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_import_pact_imports_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PactUploadResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Upload Import Pact Imports Upload Post","$ref":"#/components/schemas/PactUploadResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Request Entity Too Large"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pact/imports/github":{"post":{"tags":["pact"],"summary":"Github Import","description":"Create an import from a GitHub repository and start its check; the clone runs in the check.","operationId":"github_import_pact_imports_github_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The project the import targets","title":"Project Id"},"description":"The project the import targets"},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PactGithubRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PactImportResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Github Import Pact Imports Github Post","$ref":"#/components/schemas/PactImportResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pact/imports/{import_id}/check":{"post":{"tags":["pact"],"summary":"Check Import","description":"Seed the estimated time and start the check of an uploaded import (FRD §5.3).","operationId":"check_import_pact_imports__import_id__check_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Import Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The project the import targets","title":"Project Id"},"description":"The project the import targets"},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PactImportResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Check Import Pact Imports  Import Id  Check Post","$ref":"#/components/schemas/PactImportResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pact/capabilities":{"get":{"tags":["pact"],"summary":"Pact Capabilities","description":"What this budapp can import: Atlas, tool generation, the pinned PACT build and the limits.","operationId":"pact_capabilities_pact_capabilities_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The project the import targets","title":"Project Id"},"description":"The project the import targets"},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PactCapabilitiesResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Pact Capabilities Pact Capabilities Get","$ref":"#/components/schemas/PactCapabilitiesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pact/imports/{import_id}":{"get":{"tags":["pact"],"summary":"Get Import","description":"The import: status, check_state with the time left, error, source, inventory, findings, and the plan with its open cases, Review lines and footer recomputed.","operationId":"get_import_pact_imports__import_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Import Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The project the import targets","title":"Project Id"},"description":"The project the import targets"},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PactImportResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Import Pact Imports  Import Id  Get","$ref":"#/components/schemas/PactImportResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["pact"],"summary":"Cancel Import","description":"Cancel the import: stop its check, delete its objects, erase its envelope (FRD §5.4).","operationId":"cancel_import_pact_imports__import_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Import Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The project the import targets","title":"Project Id"},"description":"The project the import targets"},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PactImportResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Cancel Import Pact Imports  Import Id  Delete","$ref":"#/components/schemas/PactImportResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pact/imports/{import_id}/knowledge/{agent}":{"post":{"tags":["pact"],"summary":"Add Knowledge File","description":"Hold a local file for an agent's Knowledge Base; it uploads in the saga (FRD §5.9).","operationId":"add_knowledge_file_pact_imports__import_id__knowledge__agent__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Import Id"}},{"name":"agent","in":"path","required":true,"schema":{"type":"string","title":"Agent"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The project the import targets","title":"Project Id"},"description":"The project the import targets"},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_add_knowledge_file_pact_imports__import_id__knowledge__agent__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PactPlanResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Add Knowledge File Pact Imports  Import Id  Knowledge  Agent  Post","$ref":"#/components/schemas/PactPlanResponse"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Request Entity Too Large"},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unsupported Media Type"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pact/imports/{import_id}/knowledge/{agent}/{file_id}":{"delete":{"tags":["pact"],"summary":"Remove Knowledge File","description":"Drop a held local file and its entry, with `rev`.","operationId":"remove_knowledge_file_pact_imports__import_id__knowledge__agent___file_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Import Id"}},{"name":"agent","in":"path","required":true,"schema":{"type":"string","title":"Agent"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}},{"name":"rev","in":"query","required":true,"schema":{"type":"integer","description":"The plan revision this write is based on","title":"Rev"},"description":"The plan revision this write is based on"},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The project the import targets","title":"Project Id"},"description":"The project the import targets"},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PactPlanResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Remove Knowledge File Pact Imports  Import Id  Knowledge  Agent   File Id  Delete","$ref":"#/components/schemas/PactPlanResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pact/imports/{import_id}/secrets/{agent}/{port}":{"put":{"tags":["pact"],"summary":"Put Channel Secret","description":"Write-only channel credentials for a port, held encrypted until Import (FRD §5.6, §5.18).","operationId":"put_channel_secret_pact_imports__import_id__secrets__agent___port__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Import Id"}},{"name":"agent","in":"path","required":true,"schema":{"type":"string","title":"Agent"}},{"name":"port","in":"path","required":true,"schema":{"type":"string","title":"Port"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The project the import targets","title":"Project Id"},"description":"The project the import targets"},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PactChannelSecretRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PactPlanResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Put Channel Secret Pact Imports  Import Id  Secrets  Agent   Port  Put","$ref":"#/components/schemas/PactPlanResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["pact"],"summary":"Delete Channel Secret","description":"Erase a channel's credentials and remove the channel, with `rev`.","operationId":"delete_channel_secret_pact_imports__import_id__secrets__agent___port__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Import Id"}},{"name":"agent","in":"path","required":true,"schema":{"type":"string","title":"Agent"}},{"name":"port","in":"path","required":true,"schema":{"type":"string","title":"Port"}},{"name":"rev","in":"query","required":true,"schema":{"type":"integer","description":"The plan revision this write is based on","title":"Rev"},"description":"The plan revision this write is based on"},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The project the import targets","title":"Project Id"},"description":"The project the import targets"},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PactPlanResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Channel Secret Pact Imports  Import Id  Secrets  Agent   Port  Delete","$ref":"#/components/schemas/PactPlanResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pact/imports/{import_id}/apply":{"post":{"tags":["pact"],"summary":"Apply Import","description":"Validate the plan, hold the caller's token for the saga, and start it (FRD §5.15).","operationId":"apply_import_pact_imports__import_id__apply_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Import Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"The project the import targets","title":"Project Id"},"description":"The project the import targets"},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PactImportResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Apply Import Pact Imports  Import Id  Apply Post","$ref":"#/components/schemas/PactImportResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pact/exports":{"post":{"tags":["pact"],"summary":"Create Export","description":"Export an agent and its team as a PACT workspace; checks that block it come back without an id.","operationId":"create_export_pact_exports_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PactExportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PactExportResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Create Export Pact Exports Post","$ref":"#/components/schemas/PactExportResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pact/exports/{export_id}/download":{"get":{"tags":["pact"],"summary":"Download Export","description":"Download an export within its hour, as a member of its project.","operationId":"download_export_pact_exports__export_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Export Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pact/sources/{source_id}/download":{"get":{"tags":["pact"],"summary":"Download Source","description":"Download the workspace an agent was imported from, as Bud read it (Original as imported).","operationId":"download_source_pact_sources__source_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pact/imports/{import_id}/plan":{"patch":{"tags":["pact"],"summary":"Patch Plan","description":"Write `yours`, `/later/{case_id}`, `tags` and each agent's `review`, with `rev`.","operationId":"patch_plan_pact_imports__import_id__plan_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Import Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchPlanRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pact/imports/{import_id}/plan/prefill":{"post":{"tags":["pact"],"summary":"Prefill Plan","description":"Fill each agent's Bud-side picks for the step, once per agent and key (D-39).","operationId":"prefill_plan_pact_imports__import_id__plan_prefill_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Import Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrefillRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pact/imports/{import_id}/plan/resolve":{"post":{"tags":["pact"],"summary":"Resolve Plan","description":"Record a drawer's result for a case (every agent holding it) or one agent.","operationId":"resolve_plan_pact_imports__import_id__plan_resolve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Import Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pact/imports/{import_id}/candidates/{key}":{"get":{"tags":["pact"],"summary":"Plan Candidates","description":"Live candidates for a plan key, worked out against the project as it is now.","operationId":"plan_candidates_pact_imports__import_id__candidates__key__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Import Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"agent","in":"query","required":true,"schema":{"type":"string","title":"Agent"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pact/imports/{import_id}/name-check":{"get":{"tags":["pact"],"summary":"Plan Name Check","description":"Whether the name is free and valid, the clash, the alias and provenance matches, and\nthe versions an Add to existing would make.","operationId":"plan_name_check_pact_imports__import_id__name_check_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Import Id"}},{"name":"agent","in":"query","required":true,"schema":{"type":"string","title":"Agent"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pact/imports/{import_id}/tools/{tool}/openapi":{"post":{"tags":["pact"],"summary":"Tool Openapi","description":"The OpenAPI 3.1 document the Bud module wrote for an HTTP tool (FRD §5.6).","operationId":"tool_openapi_pact_imports__import_id__tools__tool__openapi_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Import Id"}},{"name":"tool","in":"path","required":true,"schema":{"type":"string","title":"Tool"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pact/imports/{import_id}/governance/{file_key}/draft":{"get":{"tags":["pact"],"summary":"Governance Draft","description":"The synthesized policy for Add Policy, with Bud tool names and detector refs (FRD §5.12).","operationId":"governance_draft_pact_imports__import_id__governance__file_key__draft_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Import Id"}},{"name":"file_key","in":"path","required":true,"schema":{"type":"string","title":"File Key"}},{"name":"agent","in":"query","required":true,"schema":{"type":"string","title":"Agent"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pact/imports/{import_id}/diff":{"get":{"tags":["pact"],"summary":"Plan Diff","description":"Review's Compared with version N, for Add to existing (FRD §5.13).","operationId":"plan_diff_pact_imports__import_id__diff_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Import Id"}},{"name":"agent","in":"query","required":true,"schema":{"type":"string","title":"Agent"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/skills/create-workflow":{"post":{"tags":["skill"],"summary":"Skill Create Workflow","description":"Register-skill wizard step (JSON): github/url source, or the scope step.","operationId":"skill_create_workflow_skills_create_workflow_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillWorkflowStepRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse","anyOf":[{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Skill Create Workflow Skills Create Workflow Post"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/skills/create-workflow/upload":{"post":{"tags":["skill"],"summary":"Skill Create Workflow Upload","description":"Register-skill wizard source step for a .zip upload (multipart).","operationId":"skill_create_workflow_upload_skills_create_workflow_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_skill_create_workflow_upload_skills_create_workflow_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse","anyOf":[{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Skill Create Workflow Upload Skills Create Workflow Upload Post"}}}},"413":{"description":"Request Entity Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/skills/scan-workflow":{"post":{"tags":["skill"],"summary":"Skill Scan Workflow","description":"Start a security scan — from the register wizard's Scan step or the detail page.","operationId":"skill_scan_workflow_skills_scan_workflow_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillScanWorkflowRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse","anyOf":[{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Skill Scan Workflow Skills Scan Workflow Post"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/skills":{"get":{"tags":["skill"],"summary":"List Skills","description":"Registry listing with search, facets and project-visibility scoping.","operationId":"list_skills_skills_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"facet","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"scripts | global | unattached","title":"Facet"},"description":"scripts | global | unattached"},{"name":"visible_to_project","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Visible To Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SkillListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Skills Skills Get","$ref":"#/components/schemas/SkillListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/skills/{skill_id}":{"get":{"tags":["skill"],"summary":"Get Skill","description":"One skill with its file manifest.","operationId":"get_skill_skills__skill_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Skill Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SkillDetailResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Skill Skills  Skill Id  Get","$ref":"#/components/schemas/SkillDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["skill"],"summary":"Delete Skill","description":"Soft-delete a skill, strip it from every config carrying it, drop its object.","operationId":"delete_skill_skills__skill_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Skill Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Skill Skills  Skill Id  Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/skills/internal/catalog":{"get":{"tags":["skill"],"summary":"Internal Catalog","description":"Batch skill metadata for budprompt's agent build. Never includes the body.","operationId":"internal_catalog_skills_internal_catalog_get","parameters":[{"name":"ids","in":"query","required":true,"schema":{"type":"string","description":"Comma-separated skill ids","title":"Ids"},"description":"Comma-separated skill ids"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SkillCatalogResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Internal Catalog Skills Internal Catalog Get","$ref":"#/components/schemas/SkillCatalogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/skills/internal/body/{skill_id}":{"get":{"tags":["skill"],"summary":"Internal Body","description":"SKILL.md body — the load_skill hot path. One indexed column read, no unzip.","operationId":"internal_body_skills_internal_body__skill_id__get","parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Skill Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/skills/{skill_id}/file":{"get":{"tags":["skill"],"summary":"Get Skill File","description":"Stream one file out of the stored bundle for the detail page's Files tab.","operationId":"get_skill_file_skills__skill_id__file_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Skill Id"}},{"name":"path","in":"query","required":true,"schema":{"type":"string","description":"Manifest-relative path","title":"Path"},"description":"Manifest-relative path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/skills/{skill_id}/scan-report":{"get":{"tags":["skill"],"summary":"Get Skill Scan Report","description":"Stream the full scan report object for the detail page's Scan tab.","operationId":"get_skill_scan_report_skills__skill_id__scan_report_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Skill Id"}},{"name":"mode","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"static|llm — defaults to the mode of the stored result","title":"Mode"},"description":"static|llm — defaults to the mode of the stored result"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{prompt_id}/skills":{"post":{"tags":["skill"],"summary":"Attach Skills","description":"Attach skills to one agent version.","operationId":"attach_skills_prompts__prompt_id__skills_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Prompt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillAttachRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SkillAttachResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Attach Skills Prompts  Prompt Id  Skills Post","$ref":"#/components/schemas/SkillAttachResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["skill"],"summary":"List Attached Skills","description":"The skills attached to one agent version.","operationId":"list_attached_skills_prompts__prompt_id__skills_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Prompt Id"}},{"name":"version","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SkillListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Attached Skills Prompts  Prompt Id  Skills Get","$ref":"#/components/schemas/SkillListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompts/{prompt_id}/skills/detach":{"post":{"tags":["skill"],"summary":"Detach Skills","description":"Detach skills from one agent version.","operationId":"detach_skills_prompts__prompt_id__skills_detach_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Prompt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillAttachRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SkillAttachResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Detach Skills Prompts  Prompt Id  Skills Detach Post","$ref":"#/components/schemas/SkillAttachResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/events/descriptors":{"get":{"tags":["shared-event-connections"],"summary":"List Event Descriptors","description":"Passthrough of budevent's GET /events/descriptors (FR-BE-4): the single source of truth for trigger providers, their event types, and each provider's credential field-spec. Any authenticated user (no admin permission) — it backs BDA's binding-create event_types validation (FR-TRIG-3b) and the Phase-2 UI pickers. Optional ?provider= filters the descriptors rows client-side.","operationId":"list_event_descriptors_events_descriptors_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter descriptors to a single provider","title":"Provider"},"description":"Filter descriptors to a single provider"}],"responses":{"200":{"description":"budevent descriptor catalog (verbatim passthrough)","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EventDescriptorCatalogResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Event Descriptors Events Descriptors Get","$ref":"#/components/schemas/EventDescriptorCatalogResponse"}}}},"502":{"description":"budevent failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/events/shared-connections":{"post":{"tags":["shared-event-connections"],"summary":"Create Shared Connection","description":"Provision a project-scoped SHARED budevent connection (admin). Credentials are validated against the provider descriptor field-spec, passed through to budevent (encrypted there), and never stored in budapp.","operationId":"create_shared_connection_events_shared_connections_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedEventConnectionCreateRequest"}}}},"responses":{"200":{"description":"Shared connection provisioned","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SharedEventConnectionCreateResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Create Shared Connection Events Shared Connections Post","$ref":"#/components/schemas/SharedEventConnectionCreateResponse"}}}},"400":{"description":"Missing required credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"budevent failure (nothing stored)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["shared-event-connections"],"summary":"List Shared Connections","description":"List shared event connections (any project member). With project_id: that project's connections. Without it (the BudAgent form, FR-CONN-5): every project the caller is a member of — all projects for a superuser. Returns ids/provider/semantics/name only — NEVER credentials.","operationId":"list_shared_connections_events_shared_connections_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Project to list shared connections for; omit to scope by the caller's memberships","title":"Project Id"},"description":"Project to list shared connections for; omit to scope by the caller's memberships"}],"responses":{"200":{"description":"Shared connections for the project","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SharedEventConnectionListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Shared Connections Events Shared Connections Get","$ref":"#/components/schemas/SharedEventConnectionListResponse"}}}},"403":{"description":"Not a project member","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/events/shared-connections/{connection_id}":{"delete":{"tags":["shared-event-connections"],"summary":"Delete Shared Connection","description":"Delete a shared event connection (admin): deletes the budevent connection (cascading its subscriptions), then removes the index row.","operationId":"delete_shared_connection_events_shared_connections__connection_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Connection Id"}}],"responses":{"200":{"description":"Shared connection deleted","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Shared Connection Events Shared Connections  Connection Id  Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"404":{"description":"Shared connection not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"Connection is a secondary source of a multi-source trigger (delete blocked)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"budevent failure (row kept)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["shared-event-connections"],"summary":"Rename Shared Connection","description":"Update a shared event connection's non-secret metadata: display name (blank clears it; omitted = untouched), the REPLACEMENT project set, and/or the scope (switch GLOBAL<->PROJECT: to-global clears the set, to-project needs project_ids). No budevent call is made and subscriptions are untouched (unlike delete). Any update touching GLOBAL scope is admin-only; a PROJECT update needs membership of any linked project plus each newly-ADDED project.","operationId":"rename_shared_connection_events_shared_connections__connection_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Connection Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedEventConnectionUpdateRequest"}}}},"responses":{"200":{"description":"Shared connection updated","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SharedEventConnectionUpdateResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Rename Shared Connection Events Shared Connections  Connection Id  Patch","$ref":"#/components/schemas/SharedEventConnectionUpdateResponse"}}}},"400":{"description":"project_ids on a global connection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Not permitted to update","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Shared connection not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/events/shared-connections/{connector_id}/bda-subscription":{"post":{"tags":["shared-event-connections"],"summary":"Create Bda Subscription","description":"Attach BudAgent's subscription to a shared connection (FR-BE-2). The callback {url, secret} is BudAgent-supplied and passed through to budevent verbatim — the secret is never logged and never stored in budapp.","operationId":"create_bda_subscription_events_shared_connections__connector_id__bda_subscription_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"connector_id","in":"path","required":true,"schema":{"type":"string","title":"Connector Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BdaSubscriptionRequest"}}}},"responses":{"200":{"description":"Subscription created","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/BdaSubscriptionResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Create Bda Subscription Events Shared Connections  Connector Id  Bda Subscription Post","$ref":"#/components/schemas/BdaSubscriptionResponse"}}}},"404":{"description":"Unknown shared connection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"budevent failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/events/subscriptions/{subscription_id}":{"delete":{"tags":["shared-event-connections"],"summary":"Delete Subscription","description":"Delete a budevent subscription (passthrough; idempotent — used by BudAgent secret rotation).","operationId":"delete_subscription_events_subscriptions__subscription_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","title":"Subscription Id"}}],"responses":{"200":{"description":"Subscription deleted","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Subscription Events Subscriptions  Subscription Id  Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"502":{"description":"budevent failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/triggers":{"post":{"tags":["triggers"],"summary":"Create Trigger","description":"Author a trigger (admin): resolve the shared connection, add a budevent subscription (plain-correlation routing), then persist the full descriptor. Two-phase — a persist failure rolls the subscription back.","operationId":"create_trigger_triggers_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerCreateRequest"}}}},"responses":{"200":{"description":"Trigger created","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TriggerCreateResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Create Trigger Triggers Post","$ref":"#/components/schemas/TriggerCreateResponse"}}}},"404":{"description":"Unknown shared connection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid descriptor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"budevent failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}},"get":{"tags":["triggers"],"summary":"List Triggers","description":"List triggers (any project member), optionally filtered by project_id and/or prompt_id.","operationId":"list_triggers_triggers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter triggers to a project","title":"Project Id"},"description":"Filter triggers to a project"},{"name":"prompt_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter triggers to a prompt/agent","title":"Prompt Id"},"description":"Filter triggers to a prompt/agent"}],"responses":{"200":{"description":"Triggers","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TriggerListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Triggers Triggers Get","$ref":"#/components/schemas/TriggerListResponse"}}}},"403":{"description":"Not a project member","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/triggers/{trigger_id}":{"get":{"tags":["triggers"],"summary":"Get Trigger","description":"Get a single trigger including its full persisted descriptor.","operationId":"get_trigger_triggers__trigger_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Trigger Id"}}],"responses":{"200":{"description":"Trigger detail","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TriggerDetailResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Trigger Triggers  Trigger Id  Get","$ref":"#/components/schemas/TriggerDetailResponse"}}}},"404":{"description":"Trigger not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["triggers"],"summary":"Update Trigger","description":"Edit a trigger (admin): reconcile its sources against budevent — added sources subscribe, removed sources tear down, unchanged sources keep their subscription — persist the descriptor in one transaction, then re-register. project_id is immutable.","operationId":"update_trigger_triggers__trigger_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Trigger Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerUpdateRequest"}}}},"responses":{"200":{"description":"Trigger updated","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TriggerUpdateResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Update Trigger Triggers  Trigger Id  Put","$ref":"#/components/schemas/TriggerUpdateResponse"}}}},"403":{"description":"Not a project member","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Trigger or connection not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Invalid descriptor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"budevent failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}},"delete":{"tags":["triggers"],"summary":"Delete Trigger","description":"Delete a trigger: drop the budevent subscription, then the descriptor row (cascade).","operationId":"delete_trigger_triggers__trigger_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Trigger Id"}}],"responses":{"200":{"description":"Trigger deleted","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Trigger Triggers  Trigger Id  Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"404":{"description":"Trigger not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"budevent failure (row kept)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/runs":{"get":{"tags":["durable-runs"],"summary":"List Runs","description":"List durable runs in a project (membership-scoped passthrough of budprompt GET /executions).","operationId":"list_runs_runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Project to list runs for","title":"Project Id"},"description":"Project to list runs for"},{"name":"prompt_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Optional prompt filter","title":"Prompt Id"},"description":"Optional prompt filter"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Run status filter. Accepts a raw engine status (failed, cancelled, …) or an operator-UI pill: 'live' (queued+runnable+in_progress) or 'awaiting_approval' (suspended on a human gate). 'all' and omission mean unfiltered.","title":"Status"},"description":"Run status filter. Accepts a raw engine status (failed, cancelled, …) or an operator-UI pill: 'live' (queued+runnable+in_progress) or 'awaiting_approval' (suspended on a human gate). 'all' and omission mean unfiltered."},{"name":"suspend_reason","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional engine suspend_reason filter","title":"Suspend Reason"},"description":"Optional engine suspend_reason filter"},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Execution surface: trigger | responses | prompt | a2a","title":"Source"},"description":"Execution surface: trigger | responses | prompt | a2a"},{"name":"trigger_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"description":"Repeatable authored trigger id. budapp expands each one into its sources' budevent subscription ids — a trigger owns N of them and none equals the trigger id.","title":"Trigger Id"},"description":"Repeatable authored trigger id. budapp expands each one into its sources' budevent subscription ids — a trigger owns N of them and none equals the trigger id."},{"name":"subscription_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Repeatable budevent subscription id, passed through as given","title":"Subscription Id"},"description":"Repeatable budevent subscription id, passed through as given"},{"name":"conversation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Show one THREAD: the runs of that conversation within this project (spec 019 WP-2.11)","title":"Conversation Id"},"description":"Show one THREAD: the runs of that conversation within this project (spec 019 WP-2.11)"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":200,"minimum":1},{"type":"null"}],"description":"Page size; the engine clamps to 200","title":"Limit"},"description":"Page size; the engine clamps to 200"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Keyset cursor (a prior page's created_at)","title":"Cursor"},"description":"Keyset cursor (a prior page's created_at)"}],"responses":{"200":{"description":"Durable runs for the project","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RunListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Runs Runs Get","$ref":"#/components/schemas/RunListResponse"}}}},"403":{"description":"Not a project member","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"budprompt failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/runs/counts":{"get":{"tags":["durable-runs"],"summary":"Get Run Counts","description":"Project-wide run counts for the Runs tab's KPI row (passthrough of budprompt GET /executions/counts). ``prompt_id`` is repeatable and BATCHED: N agent cards are one call, and every requested id appears in ``by_prompt`` — zero-filled when the agent has no runs. These numbers are NOT derivable from ``GET /runs``: that list is keyset-paginated with ``limit`` clamped to 200.","operationId":"get_run_counts_runs_counts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Project to count runs for","title":"Project Id"},"description":"Project to count runs for"},{"name":"prompt_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Repeatable agent id; each one gets an entry in by_prompt","title":"Prompt Id"},"description":"Repeatable agent id; each one gets an entry in by_prompt"},{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional namespace filter","title":"Namespace"},"description":"Optional namespace filter"}],"responses":{"200":{"description":"Project-wide run counts","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RunCountsResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Run Counts Runs Counts Get","$ref":"#/components/schemas/RunCountsResponse"}}}},"403":{"description":"Not a project member","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"budprompt failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/runs/ws-grant":{"get":{"tags":["durable-runs"],"summary":"Mint Ws Grant","description":"Mint a short-lived signed grant authorizing a project-scoped realtime subscribe (FR-SOCK-080). budnotify has no database and no project model, so budapp decides and says so in a grant carrying LITERAL room strings; budnotify then does string equality. Exactly one of ``session_id`` / ``project_id`` is required.","operationId":"mint_ws_grant_runs_ws_grant_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Run to watch — grants run:session_id=<id>","title":"Session Id"},"description":"Run to watch — grants run:session_id=<id>"},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Project to watch — grants <channel>:project_id=<id>","title":"Project Id"},"description":"Project to watch — grants <channel>:project_id=<id>"},{"name":"channel","in":"query","required":false,"schema":{"enum":["run","observability"],"type":"string","description":"Realtime channel to authorize","default":"run","title":"Channel"},"description":"Realtime channel to authorize"}],"responses":{"200":{"description":"A short-lived room grant","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WsGrantResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Mint Ws Grant Runs Ws Grant Get","$ref":"#/components/schemas/WsGrantResponse"}}}},"403":{"description":"Not a project member","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Exactly one scope required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Realtime grants are not configured (the UI falls back to polling)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/runs/prompt-watch":{"post":{"tags":["durable-runs"],"summary":"Watch Prompt","description":"Refresh an AGENT-scoped presence lease while its Runs list is open (FR-WATCH-050). The engine reads this one at CLAIM time, which is the only path by which a viewer's intent can reach a run whose whole life is one model call — such a run has no node boundary between the claim and completion, so a run-scoped lease is never read for it. Membership is enforced against the AGENT'S OWN project.","operationId":"watch_prompt_runs_prompt_watch_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"query","required":true,"schema":{"type":"string","description":"Agent whose Runs list is open","title":"Prompt Id"},"description":"Agent whose Runs list is open"}],"responses":{"202":{"description":"Agent presence lease refreshed","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PromptWatchResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Watch Prompt Runs Prompt Watch Post","$ref":"#/components/schemas/PromptWatchResponse"}}}},"403":{"description":"Not a member of the agent's project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Agent not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"budprompt failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/runs/{session_id}/watch":{"post":{"tags":["durable-runs"],"summary":"Watch Run","description":"Refresh a run's presence lease so the worker PUBLISHES its deltas instead of discarding them (FR-WATCH-020). Idempotent, self-expiring after 30 s, and a no-op for a run that is not live — which still answers 202 WITH the run's status so the client can stop its own heartbeat.","operationId":"watch_run_runs__session_id__watch_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"202":{"description":"Presence lease refreshed (or a no-op)","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RunWatchResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Watch Run Runs  Session Id  Watch Post","$ref":"#/components/schemas/RunWatchResponse"}}}},"403":{"description":"Not a member of the run's project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Run not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"budprompt failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/runs/{session_id}/events":{"get":{"tags":["durable-runs"],"summary":"Get Run Events","description":"Read one bounded page of a run's step feed with the run state folded in (passthrough of budprompt GET /executions/{session_id}/events). This is the run drawer's per-tick call: ``after_seq`` is the client's high-water mark and the response carries the four cursor fields (``high_water``, ``next_after_seq``, ``first_available_seq``, ``has_more``) needed to tell a truncated page, a burned sequence number and a retention-deleted prefix apart from a real gap.","operationId":"get_run_events_runs__session_id__events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"after_seq","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Exclusive cursor — the client's high-water mark","default":0,"title":"After Seq"},"description":"Exclusive cursor — the client's high-water mark"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Maximum frames in this page","default":200,"title":"Limit"},"description":"Maximum frames in this page"}],"responses":{"200":{"description":"One page of the run's step feed","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RunEventsResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Run Events Runs  Session Id  Events Get","$ref":"#/components/schemas/RunEventsResponse"}}}},"403":{"description":"Not a member of the run's project, or missing endpoint:view","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Run not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"budprompt failure, or a run payload with no project scope (fail-closed)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/runs/{session_id}":{"get":{"tags":["durable-runs"],"summary":"Get Run State","description":"Read a durable run's state (passthrough of budprompt GET /executions/{session_id}/state).","operationId":"get_run_state_runs__session_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Durable run state","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RunStateResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Run State Runs  Session Id  Get","$ref":"#/components/schemas/RunStateResponse"}}}},"403":{"description":"Not a member of the run's project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Run not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"budprompt failure, or a run payload with no project scope (fail-closed)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/runs/{session_id}/timeline":{"get":{"tags":["durable-runs"],"summary":"Get Run Timeline","description":"Read a durable run's event timeline (passthrough of budprompt GET /executions/{session_id}/timeline).","operationId":"get_run_timeline_runs__session_id__timeline_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Durable run timeline","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RunTimelineResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Run Timeline Runs  Session Id  Timeline Get","$ref":"#/components/schemas/RunTimelineResponse"}}}},"403":{"description":"Not a member of the run's project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Run not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"budprompt failure, or a run payload with no project scope (fail-closed)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/runs/{session_id}/inject":{"post":{"tags":["durable-runs"],"summary":"Inject Context","description":"Inject a context delta into a run (``inject_context``).","operationId":"inject_context_runs__session_id__inject_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InjectRequest"}}}},"responses":{"202":{"description":"Inject signal forwarded","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SignalAcceptedResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Inject Context Runs  Session Id  Inject Post","$ref":"#/components/schemas/SignalAcceptedResponse"}}}},"502":{"description":"budprompt failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/runs/{session_id}/abort":{"post":{"tags":["durable-runs"],"summary":"Abort Run","description":"Abort a run (``control_abort``). ``after_turn`` (default) lets the current turn finish (graceful); ``immediate`` tears the run down at the next checkpoint.","operationId":"abort_run_runs__session_id__abort_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbortRequest"}}}},"responses":{"202":{"description":"Abort signal forwarded","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SignalAcceptedResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Abort Run Runs  Session Id  Abort Post","$ref":"#/components/schemas/SignalAcceptedResponse"}}}},"502":{"description":"budprompt failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/approvals":{"get":{"tags":["durable-run-approvals"],"summary":"List Approvals","description":"List the human-in-the-loop approval gates (``awaiting-approval``) in a project that the caller is eligible to act on — runs whose ``run_policy.approvers`` names the caller. Each row carries the pending call, the CAS ``awaited_token``, the deadline, and the escalation summary.","operationId":"list_approvals_approvals_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Project to list pending approvals for","title":"Project Id"},"description":"Project to list pending approvals for"},{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional namespace filter","title":"Namespace"},"description":"Optional namespace filter"}],"responses":{"200":{"description":"Pending approvals for the caller","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApprovalListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Approvals Approvals Get","$ref":"#/components/schemas/ApprovalListResponse"}}}},"403":{"description":"Not a project member","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"budprompt failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/approvals/{session_id}/approve":{"post":{"tags":["durable-run-approvals"],"summary":"Approve Run","description":"Approve a parked tool call: reads the live ``awaited_token`` and forwards a ``resume_awaited_result`` (decision=approve) with a deterministic idempotency key so a double-click dedups. ``override_args`` edits the tool args before run.","operationId":"approve_run_approvals__session_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveRequest"}}}},"responses":{"202":{"description":"Approval signal forwarded","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SignalAcceptedResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Approve Run Approvals  Session Id  Approve Post","$ref":"#/components/schemas/SignalAcceptedResponse"}}}},"409":{"description":"Stale awaited_token (CAS miss)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"502":{"description":"budprompt failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/approvals/{session_id}/reject":{"post":{"tags":["durable-run-approvals"],"summary":"Reject Run","description":"Reject a parked tool call. Default ``on_reject=deny`` resumes the run telling the model the call was refused; ``on_reject=abort`` ends the run with a graceful ``control_abort`` instead.","operationId":"reject_run_approvals__session_id__reject_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RejectRequest"}}}},"responses":{"202":{"description":"Reject signal forwarded","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SignalAcceptedResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Reject Run Approvals  Session Id  Reject Post","$ref":"#/components/schemas/SignalAcceptedResponse"}}}},"502":{"description":"budprompt failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/routers/actions":{"get":{"tags":["router"],"summary":"List Routing Actions","description":"List all available routing action types with metadata — matches budpipeline format.","operationId":"list_routing_actions_routers_actions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/routers/actions/validate":{"post":{"tags":["router"],"summary":"Validate Action Params","description":"Validate parameters for a routing action type.","operationId":"validate_action_params_routers_actions_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouterActionValidateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_RouterActionValidateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/routers/actions/{action_type}":{"get":{"tags":["router"],"summary":"Get Routing Action","description":"Get metadata for a specific routing action type.","operationId":"get_routing_action_routers_actions__action_type__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"action_type","in":"path","required":true,"schema":{"type":"string","title":"Action Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/routers/":{"post":{"tags":["router"],"summary":"Create Router","description":"Create a new inference router with DAG-based routing config.","operationId":"create_router_routers__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouterCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_RouterResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["router"],"summary":"Get Routers","description":"List routers for a project with pagination and filtering.","operationId":"get_routers_routers__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedRouterResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/routers/{router_id}/publish":{"put":{"tags":["router"],"summary":"Update Router Publication Status","description":"Publish or unpublish a router.\n\nPublishing lists the router in the customer catalog, makes it routable by every\ncustomer key at the router's own price, and grants those callers access to the\nrouter's candidate deployments THROUGH THIS ROUTER ONLY (FRD-017 D3).","operationId":"update_router_publication_status_routers__router_id__publish_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"router_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Router Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRouterPublicationStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishRouterResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/routers/{router_id}/pricing":{"put":{"tags":["router"],"summary":"Update Router Pricing","description":"Reprice a published router. Takes effect on the next request.","operationId":"update_router_pricing_routers__router_id__pricing_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"router_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Router Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouterPricingInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouterPricingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["router"],"summary":"Get Router Pricing","description":"Current price of a router, or 404 if it was never priced.","operationId":"get_router_pricing_routers__router_id__pricing_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"router_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Router Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouterPricingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/routers/{router_id}/pricing/history":{"get":{"tags":["router"],"summary":"Get Router Pricing History","description":"Paginated pricing history for a router, newest first.","operationId":"get_router_pricing_history_routers__router_id__pricing_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"router_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Router Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouterPricingHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/routers/{router_id}/publication-history":{"get":{"tags":["router"],"summary":"Get Router Publication History","description":"Publish/unpublish audit trail, newest first.\n\nAuto-unpublishes (sync failure, candidate teardown, deactivation, delete) appear here\nwith their cause in ``action_metadata.reason`` -- otherwise a router leaving the\ncatalog has no explanation attached to it.","operationId":"get_router_publication_history_routers__router_id__publication_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"router_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Router Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouterPublicationHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/routers/{router_id}":{"get":{"tags":["router"],"summary":"Get Router","description":"Get a single router by ID.","operationId":"get_router_routers__router_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"router_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Router Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_RouterResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["router"],"summary":"Update Router","description":"Update a router.","operationId":"update_router_routers__router_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"router_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Router Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouterUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_RouterResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["router"],"summary":"Delete Router","description":"Delete a router.","operationId":"delete_router_routers__router_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"router_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Router Id"}},{"name":"x-resource-type","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Resource-Type"}},{"name":"x-entity-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Entity-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/routers/{router_id}/retry-sync":{"post":{"tags":["router"],"summary":"Retry Router Sync","description":"Reset sync_attempts and re-run the inline sync pipeline (W1.4 manual retry).","operationId":"retry_router_sync_routers__router_id__retry_sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"router_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Router Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_RouterResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/agent-evaluations":{"get":{"tags":["agent-evaluations"],"summary":"List Attached Options","description":"Every saved agent evaluation the caller can see, across agents: the pipeline editor's picker.","operationId":"list_attached_options_experiments_agent_evaluations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/experiments/agents/{prompt_id}/evaluations":{"get":{"tags":["agent-evaluations"],"summary":"List Attached","description":"§3.1: the agent's attached evaluations with last run, progress, trend, drift and schedule.","operationId":"list_attached_experiments_agents__prompt_id__evaluations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Agent (prompt) id","title":"Prompt Id"},"description":"Agent (prompt) id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["agent-evaluations"],"summary":"Attach","description":"§3.3: attach an evaluation in a mode, optionally scheduled and run now.","operationId":"attach_experiments_agents__prompt_id__evaluations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Agent (prompt) id","title":"Prompt Id"},"description":"Agent (prompt) id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/agents/{prompt_id}/evaluations/available":{"get":{"tags":["agent-evaluations"],"summary":"List Available","description":"§3.2: evaluations that can be attached, with ``attached_modes`` and ``production_supported``.","operationId":"list_available_experiments_agents__prompt_id__evaluations_available_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Agent (prompt) id","title":"Prompt Id"},"description":"Agent (prompt) id"},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"enum":["hub","custom","red_team"],"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/agents/{prompt_id}/evaluations/defaults":{"get":{"tags":["agent-evaluations"],"summary":"Creation Defaults","description":"§3.10: the shape preset and a free name for Create new (FRD §5.12).","operationId":"creation_defaults_experiments_agents__prompt_id__evaluations_defaults_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Agent (prompt) id","title":"Prompt Id"},"description":"Agent (prompt) id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/agents/{prompt_id}/evaluations/plan":{"get":{"tags":["agent-evaluations"],"summary":"Plan Before Attach","description":"The Add drawer's facts before an attachment exists: cost range, per month, the §5.7 metric list.","operationId":"plan_before_attach_experiments_agents__prompt_id__evaluations_plan_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Agent (prompt) id","title":"Prompt Id"},"description":"Agent (prompt) id"},{"name":"dataset_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Dataset Id"}},{"name":"mode","in":"query","required":false,"schema":{"enum":["fresh","production"],"type":"string","default":"fresh","title":"Mode"}},{"name":"judge_endpoint_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Judge Endpoint Id"}},{"name":"traces_per_run","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Traces Per Run"}},{"name":"frequency","in":"query","required":false,"schema":{"anyOf":[{"enum":["off","daily","weekly","version"],"type":"string"},{"type":"null"}],"title":"Frequency"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/agents/{prompt_id}/evaluations/{attachment_id}":{"patch":{"tags":["agent-evaluations"],"summary":"Update Attached","description":"§3.4: schedule, mode, production size, baseline, judge, options, pause / resume.","operationId":"update_attached_experiments_agents__prompt_id__evaluations__attachment_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Agent (prompt) id","title":"Prompt Id"},"description":"Agent (prompt) id"},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Attached evaluation id","title":"Attachment Id"},"description":"Attached evaluation id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agent-evaluations"],"summary":"Detach","description":"§3.5: detach; the schedule and trigger are deleted, the runs are kept.","operationId":"detach_experiments_agents__prompt_id__evaluations__attachment_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Agent (prompt) id","title":"Prompt Id"},"description":"Agent (prompt) id"},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Attached evaluation id","title":"Attachment Id"},"description":"Attached evaluation id"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/agents/{prompt_id}/evaluations/{attachment_id}/run":{"post":{"tags":["agent-evaluations"],"summary":"Run Attached","description":"§3.6: Run now (JWT) or a pipeline fire (internal token + user_id). Always runs as the creator (S-2).","operationId":"run_attached_experiments_agents__prompt_id__evaluations__attachment_id__run_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Agent (prompt) id","title":"Prompt Id"},"description":"Agent (prompt) id"},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Attached evaluation id","title":"Attachment Id"},"description":"Attached evaluation id"},{"name":"callback_topic","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Callback Topic"}},{"name":"idempotency_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Idempotency Key"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"User the internal call acts for (required internally)","title":"User Id"},"description":"User the internal call acts for (required internally)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/agents/{prompt_id}/evaluations/{attachment_id}/plan":{"get":{"tags":["agent-evaluations"],"summary":"Plan Attached","description":"§3.7: rows, calls, cost range per run and per month; the production metric list.","operationId":"plan_attached_experiments_agents__prompt_id__evaluations__attachment_id__plan_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Agent (prompt) id","title":"Prompt Id"},"description":"Agent (prompt) id"},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Attached evaluation id","title":"Attachment Id"},"description":"Attached evaluation id"},{"name":"mode","in":"query","required":false,"schema":{"anyOf":[{"enum":["fresh","production"],"type":"string"},{"type":"null"}],"title":"Mode"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/agents/{prompt_id}/evaluations/{attachment_id}/series":{"get":{"tags":["agent-evaluations"],"summary":"Series","description":"§3.8: the drift card — points, markers, baseline, band, status, note.","operationId":"series_experiments_agents__prompt_id__evaluations__attachment_id__series_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Agent (prompt) id","title":"Prompt Id"},"description":"Agent (prompt) id"},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Attached evaluation id","title":"Attachment Id"},"description":"Attached evaluation id"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":7,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/agents/{prompt_id}/evaluations/{attachment_id}/baseline/reset":{"post":{"tags":["agent-evaluations"],"summary":"Reset Baseline","description":"§3.9: a new baseline period starts now.","operationId":"reset_baseline_experiments_agents__prompt_id__evaluations__attachment_id__baseline_reset_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Agent (prompt) id","title":"Prompt Id"},"description":"Agent (prompt) id"},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Attached evaluation id","title":"Attachment Id"},"description":"Attached evaluation id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/evaluations/pipeline-run":{"post":{"tags":["agent-evaluations"],"summary":"Pipeline Run","description":"§3.11.1: one route for ``eval_run``'s three forms; retry-safe through ``idempotency_key``.","operationId":"pipeline_run_experiments_evaluations_pipeline_run_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"User the internal call acts for (required internally)","title":"User Id"},"description":"User the internal call acts for (required internally)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineRunIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/evaluations/{evaluation_id}/gate-check":{"post":{"tags":["agent-evaluations"],"summary":"Gate Check","description":"§3.11.2: pass or fail against a minimum, the baseline or the previous run.","operationId":"gate_check_experiments_evaluations__evaluation_id__gate_check_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation id","title":"Evaluation Id"},"description":"Evaluation id"},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"User the internal call acts for (required internally)","title":"User Id"},"description":"User the internal call acts for (required internally)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GateCheckIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/evaluations/{evaluation_id}/outcome":{"get":{"tags":["agent-evaluations"],"summary":"Evaluation Outcome","description":"§3.11.3: what ``eval_run``'s timeout reconcile reads.","operationId":"evaluation_outcome_experiments_evaluations__evaluation_id__outcome_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation id","title":"Evaluation Id"},"description":"Evaluation id"},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"User the internal call acts for (required internally)","title":"User Id"},"description":"User the internal call acts for (required internally)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/evaluations/{evaluation_id}/pipeline-cancel":{"post":{"tags":["agent-evaluations"],"summary":"Pipeline Cancel","description":"§3.11.4: ``eval_run.cleanup`` drains an abandoned step's evaluation; terminal is a no-op.","operationId":"pipeline_cancel_experiments_evaluations__evaluation_id__pipeline_cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation id","title":"Evaluation Id"},"description":"Evaluation id"},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"User the internal call acts for (required internally)","title":"User Id"},"description":"User the internal call acts for (required internally)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/":{"post":{"tags":["experiments"],"summary":"Create Experiment","description":"Create a new experiment.\n\nCreates an experiment with basic information only. Use POST /{experiment_id}/runs\nto configure the model-dataset evaluation runs afterward.\n\n- **request**: Payload containing `name`, `description`, `project_id`, and optional `tags`.\n- **session**: Database session dependency.\n- **current_user**: The authenticated user creating the experiment.\n\nReturns a `CreateExperimentResponse` with the created experiment.","operationId":"create_experiment_experiments__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateExperimentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateExperimentResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["experiments"],"summary":"List Experiments","description":"List all experiments for the current user with pagination and advanced filtering.\n\n- **session**: Database session dependency.\n- **current_user**: The authenticated user whose experiments are listed.\n- **search**: Optional search query to filter by experiment name (case-insensitive substring match).\n- **project_id**: Optional filter by project ID.\n- **id**: Optional filter by experiment ID.\n- **experiment_status**: Optional filter by computed status (running/completed/no_runs).\n- **model_id**: Optional filter by model ID used in experiment runs.\n- **created_after**: Optional filter for experiments created after this date (ISO 8601 format).\n- **created_before**: Optional filter for experiments created before this date (ISO 8601 format).\n- **page**: Page number (default: 1).\n- **limit**: Items per page (default: 10, max: 100).\n- **order_by**: `created_at` (default) | `last_run` | `name`.\n\nReturns a `ListExperimentsResponse` containing a paginated list of experiments. Each experiment\nalso carries `created_by_name`, `run_counts`, `last_run_at` and `best_score`.\n\n**Status Logic:**\n- \"running\": At least one run is currently running\n- \"completed\": All runs are finished (includes successful, failed, pending, cancelled, skipped)\n- \"no_runs\": Experiment has no runs configured","operationId":"list_experiments_experiments__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by project ID","title":"Project Id"},"description":"Filter by project ID"},{"name":"id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by experiment ID","title":"Id"},"description":"Filter by experiment ID"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}],"description":"Search experiments by name (case-insensitive)","title":"Search"},"description":"Search experiments by name (case-insensitive)"},{"name":"experiment_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status: running, completed, no_runs","title":"Experiment Status"},"description":"Filter by status: running, completed, no_runs"},{"name":"model_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by model ID","title":"Model Id"},"description":"Filter by model ID"},{"name":"created_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter experiments created after this date (ISO 8601)","title":"Created After"},"description":"Filter experiments created after this date (ISO 8601)"},{"name":"created_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter experiments created before this date (ISO 8601)","title":"Created Before"},"description":"Filter experiments created before this date (ISO 8601)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":10,"title":"Limit"},"description":"Items per page"},{"name":"order_by","in":"query","required":false,"schema":{"enum":["created_at","last_run","name"],"type":"string","description":"Sort order: created_at (newest first, default), last_run (most recently run first; experiments without runs follow, newest first) or name (A-Z, case-insensitive).","default":"created_at","title":"Order By"},"description":"Sort order: created_at (newest first, default), last_run (most recently run first; experiments without runs follow, newest first) or name (A-Z, case-insensitive)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListExperimentsResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/models":{"get":{"tags":["experiments"],"summary":"List Experiment Models","description":"List all unique models used across user's experiments.\n\nThis endpoint returns all unique models that have been used in the current user's\nexperiments, along with the count of experiments using each model. This is useful\nfor populating filter dropdowns in the frontend.\n\n- **session**: Database session dependency.\n- **current_user**: The authenticated user whose experiments are queried.\n- **project_id**: Optional filter by project ID to limit models to specific project.\n\nReturns a `ListExperimentModelsResponse` containing:\n- List of models with their IDs, names, deployment names, and experiment counts\n- Total count of unique models","operationId":"list_experiment_models_experiments_models_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by project ID","title":"Project Id"},"description":"Filter by project ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListExperimentModelsResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/traits":{"get":{"tags":["experiments"],"summary":"List Traits","description":"List experiment traits with optional filtering and pagination.","operationId":"list_traits_experiments_traits_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Results per page","default":10,"title":"Limit"},"description":"Results per page"},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by trait name","title":"Name"},"description":"Filter by trait name"},{"name":"unique_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by trait UUID","title":"Unique Id"},"description":"Filter by trait UUID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTraitsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/datasets":{"get":{"tags":["experiments"],"summary":"List Datasets","description":"List datasets with optional filtering and pagination.\n\nBy default, only datasets with 'gen' evaluation type are returned. Set `has_gen_eval_type=false` to see all datasets.","operationId":"list_datasets_experiments_datasets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Results per page","default":10,"title":"Limit"},"description":"Results per page"},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search in dataset name and description","title":"Name"},"description":"Search in dataset name and description"},{"name":"modalities","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by modalities (comma-separated)","title":"Modalities"},"description":"Filter by modalities (comma-separated)"},{"name":"language","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by languages (comma-separated)","title":"Language"},"description":"Filter by languages (comma-separated)"},{"name":"domains","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by domains (comma-separated)","title":"Domains"},"description":"Filter by domains (comma-separated)"},{"name":"trait_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by trait UUIDs (comma-separated)","title":"Trait Ids"},"description":"Filter by trait UUIDs (comma-separated)"},{"name":"has_gen_eval_type","in":"query","required":false,"schema":{"type":"boolean","description":"Filter datasets with 'gen' key in eval_types. Set to false to show all datasets.","default":true,"title":"Has Gen Eval Type"},"description":"Filter datasets with 'gen' key in eval_types. Set to false to show all datasets."},{"name":"include_custom","in":"query","required":false,"schema":{"type":"boolean","description":"Set to true to keep builder-authored custom datasets selectable: they carry no trait rows and no 'gen' eval_type, so the trait filter would otherwise exclude them from run selection.","default":false,"title":"Include Custom"},"description":"Set to true to keep builder-authored custom datasets selectable: they carry no trait rows and no 'gen' eval_type, so the trait filter would otherwise exclude them from run selection."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDatasetsResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/tags":{"get":{"tags":["experiments"],"summary":"List Tags","description":"List all evaluation tags with pagination.\n\nTags are global and shared across all users. This endpoint returns\nall tags ordered alphabetically.\n\n- **session**: Database session dependency.\n- **current_user**: The authenticated user.\n- **page**: Page number (default: 1).\n- **limit**: Items per page (default: 50, max: 100).\n\nReturns an `EvalTagListResponse` containing a paginated list of tags.","operationId":"list_tags_experiments_tags_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":50,"title":"Limit"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalTagListResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["experiments"],"summary":"Create Tag","description":"Create a new evaluation tag or return existing tag if name already exists.\n\nTag names are case-insensitive and must be unique. If a tag with the same\nname (case-insensitive) already exists, the existing tag is returned instead\nof creating a duplicate.\n\n- **request**: Tag creation request with name and optional description.\n- **session**: Database session dependency.\n- **current_user**: The authenticated user creating the tag.\n\nReturns a `CreateEvalTagResponse` with the created or existing tag.\n\n**Validation rules:**\n- Name: 1-20 characters, alphanumeric, hyphens, and underscores only\n- Description: Optional, max 255 characters","operationId":"create_tag_experiments_tags_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalTagCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEvalTagResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/tags/search":{"get":{"tags":["experiments"],"summary":"Search Tags","description":"Search tags by name with character-by-character autocomplete.\n\nPerforms case-insensitive prefix matching on tag names. This is designed\nfor autocomplete functionality where the search query is updated as the\nuser types.\n\n- **session**: Database session dependency.\n- **current_user**: The authenticated user.\n- **q**: Search query string (minimum 1 character).\n- **limit**: Maximum number of results (default: 10, max: 50).\n\nReturns an `EvalTagSearchResponse` with matching tags and total count.","operationId":"search_tags_experiments_tags_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Search query","title":"Q"},"description":"Search query"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"description":"Maximum results","default":10,"title":"Limit"},"description":"Maximum results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalTagSearchResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/compare/deployments":{"get":{"tags":["experiments"],"summary":"List Comparison Deployments","description":"List deployments available for comparison for the current user.\n\nReturns unique deployments (endpoints) that have been used in evaluation runs\nacross the current user's experiments. Each deployment includes model information and\ncounts of experiments and runs.\n\nOnly deployments with completed evaluation runs are returned.\n\n- **page**: Page number (default: 1).\n- **limit**: Items per page (default: 50, max: 100).\n\nReturns a `ListComparisonDeploymentsResponse` with:\n- List of deployments with model info, experiment_count, and run_count\n- Pagination metadata","operationId":"list_comparison_deployments_experiments_compare_deployments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":50,"title":"Limit"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListComparisonDeploymentsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/compare/traits":{"get":{"tags":["experiments"],"summary":"List Comparison Traits","description":"List traits available for comparison filtering for the current user.\n\nReturns traits that have been evaluated in runs across the current user's experiments.\nOnly traits with completed evaluation runs are returned.\n\n- **deployment_ids**: Optional comma-separated deployment UUIDs to filter traits.\n\nReturns a `ListComparisonTraitsResponse` with:\n- List of traits with dataset_count and run_count\n- Total count of traits","operationId":"list_comparison_traits_experiments_compare_traits_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated deployment UUIDs to filter traits","title":"Deployment Ids"},"description":"Comma-separated deployment UUIDs to filter traits"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListComparisonTraitsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/compare/radar":{"get":{"tags":["experiments"],"summary":"Get Radar Chart Data","description":"Get radar chart data for comparing deployments across traits.\n\nReturns trait scores for each selected deployment. Scores represent the\nBEST (maximum) score achieved across all completed evaluation runs for\neach trait-deployment combination.\n\n- **deployment_ids**: Optional comma-separated deployment UUIDs to compare. Returns all if not provided.\n- **trait_ids**: Optional comma-separated trait UUIDs to filter.\n- **start_date**: Optional filter for runs after this date.\n- **end_date**: Optional filter for runs before this date.\n\nReturns a `RadarChartResponse` with:\n- List of traits (axes for the radar chart)\n- List of deployments with trait_scores (data points for each deployment)","operationId":"get_radar_chart_data_experiments_compare_radar_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated deployment UUIDs (optional, returns all if not provided)","title":"Deployment Ids"},"description":"Comma-separated deployment UUIDs (optional, returns all if not provided)"},{"name":"trait_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated trait UUIDs to filter","title":"Trait Ids"},"description":"Comma-separated trait UUIDs to filter"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter runs after this date (ISO 8601)","title":"Start Date"},"description":"Filter runs after this date (ISO 8601)"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter runs before this date (ISO 8601)","title":"End Date"},"description":"Filter runs before this date (ISO 8601)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RadarChartResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/compare/heatmap":{"get":{"tags":["experiments"],"summary":"Get Heatmap Chart Data","description":"Get heatmap chart data for comparing deployments across datasets.\n\nReturns dataset benchmark scores for each selected deployment. Scores\nrepresent the average accuracy across all completed evaluation runs for\neach dataset-deployment combination. By default, returns only the 5 most\nrecent deployments with successful runs.\n\n- **deployment_ids**: Optional comma-separated deployment UUIDs to compare. Returns all if not provided.\n- **trait_ids**: Optional comma-separated trait UUIDs to filter datasets.\n- **dataset_ids**: Optional comma-separated dataset UUIDs to filter.\n- **start_date**: Optional filter for runs after this date.\n- **end_date**: Optional filter for runs before this date.\n- **limit**: Maximum number of deployments to return (default: 5, max: 50).\n\nReturns a `HeatmapChartResponse` with:\n- List of datasets (columns for the heatmap)\n- List of deployments with dataset_scores (rows with cell values)\n- Stats with min, max, and average scores for color scaling","operationId":"get_heatmap_chart_data_experiments_compare_heatmap_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated deployment UUIDs (optional, returns all if not provided)","title":"Deployment Ids"},"description":"Comma-separated deployment UUIDs (optional, returns all if not provided)"},{"name":"trait_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated trait UUIDs to filter datasets","title":"Trait Ids"},"description":"Comma-separated trait UUIDs to filter datasets"},{"name":"dataset_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated dataset UUIDs to filter","title":"Dataset Ids"},"description":"Comma-separated dataset UUIDs to filter"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter runs after this date (ISO 8601)","title":"Start Date"},"description":"Filter runs after this date (ISO 8601)"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter runs before this date (ISO 8601)","title":"End Date"},"description":"Filter runs before this date (ISO 8601)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"description":"Maximum number of deployments to return (default: 5)","default":5,"title":"Limit"},"description":"Maximum number of deployments to return (default: 5)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeatmapChartResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/scores":{"get":{"tags":["experiments"],"summary":"Get Cross Dataset Scores","description":"Get scores across multiple datasets with optional filters.\n\nThis endpoint retrieves scores for model/endpoint combinations across different datasets.\nAt least one filter (endpoint_id, model_id, or dataset_id) must be provided.\n\n**Features:**\n- Query scores across multiple datasets at once\n- Filter by endpoint_id, model_id, and/or dataset_id (at least one required)\n- One entry per unique dataset + model + endpoint combination\n- Metrics averaged across all completed runs (non-zero values only)\n- Ranked by accuracy metric (1 = best)\n- Only shows completed evaluation runs\n- Access control: only shows data from user's own experiments\n\n**Query Parameters:**\n- `endpoint_id`: Filter by specific endpoint (optional)\n- `model_id`: Filter by specific model (optional)\n- `dataset_id`: Filter by specific dataset (optional)\n- `page`: Page number for pagination (default: 1)\n- `limit`: Items per page (default: 50, max: 100)\n\n**Returns:**\n- `scores`: List of score entries with:\n    - `rank`: Ranking by accuracy (1=best)\n    - `dataset_id`, `dataset_name`: Dataset information\n    - `model_id`, `model_name`, `model_display_name`, `model_icon`: Model information\n    - `endpoint_id`, `endpoint_name`: Endpoint/deployment information\n    - `accuracy`: Accuracy metric value (used for ranking)\n    - `metrics`: List of all averaged metrics\n    - `num_runs`: Number of runs averaged\n    - `created_at`: Timestamp from most recent run\n- `pagination`: Standard pagination metadata\n\n**Example Response:**\n```json\n{\n  \"code\": 200,\n  \"object\": \"cross_dataset.scores\",\n  \"message\": \"Successfully retrieved scores\",\n  \"scores\": [\n    {\n      \"rank\": 1,\n      \"dataset_id\": \"uuid\",\n      \"dataset_name\": \"MMLU Benchmark\",\n      \"model_id\": \"uuid\",\n      \"model_name\": \"meta-llama/Llama-3.1-70B\",\n      \"endpoint_id\": \"uuid\",\n      \"endpoint_name\": \"llama-3-prod\",\n      \"accuracy\": 87.4,\n      \"metrics\": [{\"metric_name\": \"accuracy\", \"metric_value\": 87.4}],\n      \"num_runs\": 3,\n      \"created_at\": \"2025-01-15T10:30:00Z\"\n    }\n  ],\n  \"page\": 1,\n  \"limit\": 50,\n  \"total_record\": 5,\n  \"total_pages\": 1\n}\n```","operationId":"get_cross_dataset_scores_experiments_scores_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by endpoint ID","title":"Endpoint Id"},"description":"Filter by endpoint ID"},{"name":"model_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by model ID","title":"Model Id"},"description":"Filter by model ID"},{"name":"dataset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by dataset ID","title":"Dataset Id"},"description":"Filter by dataset ID"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":50,"title":"Limit"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrossDatasetScoresResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/webhook-secret":{"post":{"tags":["experiments"],"summary":"Rotate Eval Webhook Secret","description":"Create the project's evaluation webhook signing secret, or rotate it (spec 027 §5.23).\n\nThe secret is shown in this response only; budapp stores it encrypted. Rotating makes the\nprevious secret stop verifying. Needs project-manage permission; a user action (no API key).","operationId":"rotate_eval_webhook_secret_experiments_webhook_secret_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSecretIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSecretCreatedResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["experiments"],"summary":"Get Eval Webhook Secret Status","description":"Whether the project has a webhook signing secret and when it was last rotated (never the secret).","operationId":"get_eval_webhook_secret_status_experiments_webhook_secret_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Project ID","title":"Project Id"},"description":"Project ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSecretStatusResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/{experiment_id}":{"get":{"tags":["experiments"],"summary":"Get Experiment","description":"Get an experiment by ID.\n\n- **experiment_id**: UUID of the experiment to retrieve.\n- **session**: Database session dependency.\n- **current_user**: The authenticated user requesting the experiment.\n\nReturns a `GetExperimentResponse` with the requested experiment.","operationId":"get_experiment_experiments__experiment_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"ID of experiment to retrieve","title":"Experiment Id"},"description":"ID of experiment to retrieve"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetExperimentResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["experiments"],"summary":"Update Experiment","description":"Update an existing experiment.\n\n- **experiment_id**: UUID of the experiment to update.\n- **request**: Payload with optional `name` and/or `description` fields.\n- **session**: Database session dependency.\n- **current_user**: The authenticated user performing the update.\n\nReturns an `UpdateExperimentResponse` with the updated experiment.","operationId":"update_experiment_experiments__experiment_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"ID of experiment to update","title":"Experiment Id"},"description":"ID of experiment to update"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateExperimentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateExperimentResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["experiments"],"summary":"Delete Experiment","description":"Soft-delete an existing experiment by marking its status as 'deleted'.\n\n- **experiment_id**: UUID of the experiment to delete.\n- **purge**: ``true`` hard-deletes its evaluations' per-sample results in the\n  evaluation engine (rows, result files, idempotency keys), marks the\n  experiment purged and audits it. Not reversible. The default soft delete\n  is unchanged and keeps the results.\n- **session**: Database session dependency.\n- **current_user**: The authenticated user performing the deletion.\n\nReturns a `DeleteExperimentResponse`, or `{purged, evaluations, rows_deleted}` with ``purge``.","operationId":"delete_experiment_experiments__experiment_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"ID of experiment to delete","title":"Experiment Id"},"description":"ID of experiment to delete"},{"name":"purge","in":"query","required":false,"schema":{"type":"boolean","description":"Also delete every per-sample result in the evaluation engine (owner only).","default":false,"title":"Purge"},"description":"Also delete every per-sample result in the evaluation engine (owner only)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DeleteExperimentResponse"},{"$ref":"#/components/schemas/PurgeExperimentResponse"}],"title":"Response Delete Experiment Experiments  Experiment Id  Delete"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/workflow":{"post":{"tags":["experiments"],"summary":"Experiment Workflow Step","description":"Process a step in the experiment creation workflow.\n\nThis endpoint handles the multi-stage experiment creation process:\n\n**Step 1: Basic Information**\n- Required: name, project_id\n- Optional: description\n\n**Step 2: Endpoint Selection**\n- Required: endpoint_ids (list of endpoint UUIDs)\n\n**Step 3: Traits Selection**\n- Required: trait_ids (list of trait UUIDs)\n- Optional: dataset_ids (specific datasets)\n\n**Step 4: Performance Point**\n- Required: performance_point (integer between 0-100)\n\n**Step 5: Finalization**\n- Optional: run_name, run_description, evaluation_config\n- Set trigger_workflow=true to create the experiment\n\n- **request**: Workflow step request with stage_data\n- **session**: Database session dependency\n- **current_user**: The authenticated user\n\nReturns a `RetrieveWorkflowDataResponse` with workflow status and next step guidance.","operationId":"experiment_workflow_step_experiments_workflow_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentWorkflowStepRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/experiments/workflow/{workflow_id}":{"get":{"tags":["experiments"],"summary":"Review Experiment Workflow","description":"Review experiment workflow data.\n\nThis endpoint allows you to review all data collected during the experiment creation workflow.\nIt returns the complete workflow state including:\n\n- Current step and total steps\n- All accumulated data from completed steps\n- Workflow status and completion state\n- Next step information (if not complete)\n\nUseful for:\n- Reviewing data before final submission\n- Checking workflow progress\n- Auditing completed workflows\n- Debugging workflow issues\n\n- **workflow_id**: UUID of the workflow to review\n- **session**: Database session dependency\n- **current_user**: The authenticated user\n\nReturns a `RetrieveWorkflowDataResponse` with complete workflow data.","operationId":"review_experiment_workflow_experiments_workflow__workflow_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Workflow ID to review","title":"Workflow Id"},"description":"Workflow ID to review"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/{experiment_id}/runs":{"get":{"tags":["experiments"],"summary":"List Runs","description":"List completed evaluations for an experiment.\n\n- **experiment_id**: UUID of the experiment.\n- **session**: Database session dependency.\n- **current_user**: The authenticated user.\n\nReturns a `ListEvaluationsResponse` containing a list of completed evaluations with model, traits, and scores.","operationId":"list_runs_experiments__experiment_id__runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEvaluationsResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["experiments"],"summary":"Configure Runs","description":"Configure runs for an experiment by creating model-dataset combinations.\n\n- **experiment_id**: UUID of the experiment to configure runs for.\n- **request**: Payload containing endpoint_ids, dataset_ids, and optional evaluation_config.\n- **session**: Database session dependency.\n- **current_user**: The authenticated user.\n\nReturns a `ConfigureRunsResponse` with the created runs.","operationId":"configure_runs_experiments__experiment_id__runs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigureRunsRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigureRunsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/{experiment_id}/summary":{"get":{"tags":["experiments"],"summary":"Get Experiment Summary","description":"Get summary statistics for an experiment.\n\nReturns summary information including:\n- Total number of evaluations\n- Total duration of all evaluations in seconds\n- Count of evaluations by status (completed, failed, pending, running)\n\n- **experiment_id**: UUID of the experiment.\n- **session**: Database session dependency.\n- **current_user**: The authenticated user.\n\nReturns an `ExperimentSummaryResponse` with experiment statistics.","operationId":"get_experiment_summary_experiments__experiment_id__summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentSummaryResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/runs/{run_id}":{"get":{"tags":["experiments"],"summary":"Get Run","description":"Get detailed run information with evaluations.\n\n- **run_id**: UUID of the run.\n- **session**: Database session dependency.\n- **current_user**: The authenticated user.\n\nReturns a `GetRunResponse` with the run and its evaluations.","operationId":"get_run_experiments_runs__run_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Run ID","title":"Run Id"},"description":"Run ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetRunResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["experiments"],"summary":"Update Run","description":"Update a run.\n\n- **run_id**: UUID of the run to update.\n- **request**: Payload with optional fields to update.\n- **session**: Database session dependency.\n- **current_user**: The authenticated user performing the update.\n\nReturns an `UpdateRunResponse` with the updated run.","operationId":"update_run_experiments_runs__run_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Run ID","title":"Run Id"},"description":"Run ID"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/RunStatusEnum"},{"type":"null"}],"title":"Status"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Config"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRunResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["experiments"],"summary":"Delete Run","description":"Delete a run.\n\n- **run_id**: UUID of the run to delete.\n- **session**: Database session dependency.\n- **current_user**: The authenticated user performing the deletion.\n\nReturns a `DeleteRunResponse` confirming the deletion.","operationId":"delete_run_experiments_runs__run_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Run ID","title":"Run Id"},"description":"Run ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteRunResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/runs/{run_id}/samples":{"get":{"tags":["experiments"],"summary":"Get Run Samples","description":"Per-sample results of a run: prompt, expected answer, response and outcome.\n\n- **run_id**: UUID of the run (the caller must own its experiment, else 404).\n- **outcome**: ``all`` / ``correct`` / ``incorrect`` / ``errored`` / ``unscored``.\n- **q**: case-insensitive substring search; **subset**: one benchmark subset.\n- **index**: one sample by its index within the subset (how the run page\n  compares an item across runs).\n- **status**: custom and agent runs only — completed, requires_action, denied,\n  incomplete, failed, timeout, error, cancelled, running or interrupted.\n- **offset** / **limit**: paging over the filtered samples (limit <= 200).\n- **export**: ``jsonl`` or ``csv`` streams every sample instead of a page\n  (``offset`` / ``limit`` are ignored).\n- **since**: the ``next_since`` of a previous page — only samples written after it.\n- **row_ids**: comma-separated sample keys (an evaluation's row ids) — only those samples.\n- **order**: ``confidence`` — lowest decision confidence first (samples without one last).\n- **max_confidence**: only samples whose lowest decision confidence is below this bound.\n\n``total`` and ``counts`` describe the whole run; ``matched`` the filtered set.\nEach score carries its metric ``instance``, ``judge``, ``scored_at``, ``direction``,\n``self_graded`` and ``reason``; each item its per-score ``reviews[]``.\nCustom and agent runs add scores, trajectory, usage, cost and the policy that\nstopped a sample (``policy_id`` / ``policy_name``). ``available`` is false for\nruns without per-sample results (not finished, red-team runs, rows expired or\npurged — ``reason`` says which) or when results cannot be loaded (``error``).","operationId":"get_run_samples_experiments_runs__run_id__samples_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Run ID","title":"Run Id"},"description":"Run ID"},{"name":"outcome","in":"query","required":false,"schema":{"enum":["all","correct","incorrect","errored","unscored"],"type":"string","description":"Only samples with this outcome.","default":"all","title":"Outcome"},"description":"Only samples with this outcome."},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"description":"Case-insensitive search over prompt / expected / response.","title":"Q"},"description":"Case-insensitive search over prompt / expected / response."},{"name":"subset","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"description":"Only samples of this subset.","title":"Subset"},"description":"Only samples of this subset."},{"name":"index","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Only the sample at this index (within its subset).","title":"Index"},"description":"Only the sample at this index (within its subset)."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Samples to skip (after filters).","default":0,"title":"Offset"},"description":"Samples to skip (after filters)."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Page size (max 200).","default":50,"title":"Limit"},"description":"Page size (max 200)."},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["completed","requires_action","denied","incomplete","failed","timeout","error","cancelled","running","interrupted"],"type":"string"},{"type":"null"}],"description":"Custom / agent runs: only samples with this status.","title":"Status"},"description":"Custom / agent runs: only samples with this status."},{"name":"export","in":"query","required":false,"schema":{"anyOf":[{"enum":["jsonl","csv"],"type":"string"},{"type":"null"}],"description":"Stream every sample: jsonl (rows, content unless dropped) or csv (scores).","title":"Export"},"description":"Stream every sample: jsonl (rows, content unless dropped) or csv (scores)."},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"A next_since cursor: only samples written after it (Try polling).","title":"Since"},"description":"A next_since cursor: only samples written after it (Try polling)."},{"name":"row_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":65000},{"type":"null"}],"description":"Comma-separated sample keys (row ids): only these samples.","title":"Row Ids"},"description":"Comma-separated sample keys (row ids): only these samples."},{"name":"order","in":"query","required":false,"schema":{"anyOf":[{"const":"confidence","type":"string"},{"type":"null"}],"description":"confidence: lowest decision confidence first, samples without one last (spec 034).","title":"Order"},"description":"confidence: lowest decision confidence first, samples without one last (spec 034)."},{"name":"max_confidence","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":1,"minimum":0},{"type":"null"}],"description":"Only samples whose lowest decision confidence is below this (spec 034).","title":"Max Confidence"},"description":"Only samples whose lowest decision confidence is below this (spec 034)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunSamplesResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/datasets/{dataset_id}":{"get":{"tags":["experiments"],"summary":"Get Dataset By Id","description":"Get a dataset by ID with associated traits.","operationId":"get_dataset_by_id_experiments_datasets__dataset_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"ID of dataset to retrieve","title":"Dataset Id"},"description":"ID of dataset to retrieve"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDatasetResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/datasets/{dataset_id}/files":{"get":{"tags":["experiments"],"summary":"Get Dataset Files","description":"The data files of a catalog benchmark, as the eval Jobs read them from the eval volume.\n\nEach source says which subset it holds, its format and size, and whether it is\non the volume yet; ``downloadable`` means missing files can be fetched with\n``POST .../sync``. ``license`` is the source repo's.","operationId":"get_dataset_files_experiments_datasets__dataset_id__files_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"ID of the dataset","title":"Dataset Id"},"description":"ID of the dataset"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetFilesResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/datasets/{dataset_id}/records":{"get":{"tags":["experiments"],"summary":"Get Dataset Records","description":"One page of a benchmark data file's records: every field as the file stores it.\n\nOnly the dataset's own files can be read. ``available`` is false with an\n``error`` when the file cannot be previewed (too large, unsupported format).","operationId":"get_dataset_records_experiments_datasets__dataset_id__records_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"ID of the dataset","title":"Dataset Id"},"description":"ID of the dataset"},{"name":"config_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"description":"A source's ``config_id``.","title":"Config Id"},"description":"A source's ``config_id``."},{"name":"source","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":512,"description":"A source's ``id``.","title":"Source"},"description":"A source's ``id``."},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"description":"Case-insensitive search.","title":"Q"},"description":"Case-insensitive search."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Records to skip (after the search).","default":0,"title":"Offset"},"description":"Records to skip (after the search)."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Page size (max 200).","default":50,"title":"Limit"},"description":"Page size (max 200)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetRecordsResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/datasets/{dataset_id}/sync":{"post":{"tags":["experiments"],"summary":"Sync Dataset","description":"Download a benchmark's source files onto the eval volume, in the background.\n\nPoll ``GET .../files`` for ``sync``; the files become ``present`` when it is done.","operationId":"sync_dataset_experiments_datasets__dataset_id__sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"ID of the dataset","title":"Dataset Id"},"description":"ID of the dataset"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetSyncState"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/datasets/{dataset_id}/rows":{"get":{"tags":["experiments"],"summary":"Get Dataset Rows","description":"A benchmark's rows, as sent to the model in the caller's latest completed run of it.\n\nOnly the row (prompt, reference answer, subset) — never the model's response or\nthe verdict. ``available`` is false when the caller has no such run, or the\ndataset is not a benchmark. ``source`` names the run the rows come from.","operationId":"get_dataset_rows_experiments_datasets__dataset_id__rows_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"ID of the dataset","title":"Dataset Id"},"description":"ID of the dataset"},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"description":"Case-insensitive search.","title":"Q"},"description":"Case-insensitive search."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Rows to skip (after the search).","default":0,"title":"Offset"},"description":"Rows to skip (after the search)."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Page size (max 200).","default":50,"title":"Limit"},"description":"Page size (max 200)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetRowsResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/datasets/{dataset_id}/scores":{"get":{"tags":["experiments"],"summary":"Get Dataset Scores","description":"Get the model leaderboard for a specific dataset.\n\nThis endpoint retrieves scores for all models that have been evaluated against the specified dataset.\nEach model is represented by its BEST completed run (by the run's primary score), models are ranked\nby that score, and the result is paginated.\n\n**Features:**\n- One entry per model: its best-scoring completed run\n- Score = the run's primary score (e.g. the `*/accuracy` family, `pass@1`, or `score`); 0 is a real score\n- Ranked by that score (1 = best), models with no scored run last\n- Includes all dataset versions\n- Only shows completed evaluation runs\n- Access control: only shows data from user's own experiments\n\n**Query Parameters:**\n- `page`: Page number for pagination (default: 1)\n- `limit`: Items per page (default: 50, max: 100)\n\n**Returns:**\n- `dataset_id`: UUID of the dataset\n- `dataset_name`: Name of the dataset\n- `scores`: List of model scores with:\n    - `rank`: Ranking by accuracy (1=best)\n    - `model_id`, `model_name`, `model_display_name`, `model_icon`: Model information\n    - `endpoint_name`, `endpoint_id`: Deployment of the best run\n    - `accuracy` / `score`: Primary score of the best run (used for ranking)\n    - `metrics`: Metrics of the best run\n    - `num_runs`: Number of completed runs of the model\n    - `created_at`: Timestamp of the best run\n    - `experiment_id`, `experiment_name`, `run_id`, `evaluation_id`: Where the best run lives\n- `pagination`: Standard pagination metadata\n\n**Example Response:**\n```json\n{\n  \"success\": true,\n  \"dataset_id\": \"uuid\",\n  \"dataset_name\": \"MMLU Benchmark\",\n  \"scores\": [\n    {\n      \"rank\": 1,\n      \"model_name\": \"meta-llama/Llama-3.1-70B\",\n      \"accuracy\": 87.4,\n      \"metrics\": [{\"metric_name\": \"accuracy\", \"metric_value\": 87.4}],\n      \"num_runs\": 3\n    }\n  ],\n  \"pagination\": {\"page\": 1, \"limit\": 50, \"total\": 5}\n}\n```","operationId":"get_dataset_scores_experiments_datasets__dataset_id__scores_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"ID of dataset to get scores for","title":"Dataset Id"},"description":"ID of dataset to get scores for"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":50,"title":"Limit"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetScoresResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/{experiment_id}/evaluations/workflow":{"post":{"tags":["experiments"],"summary":"Evaluation Workflow Step","description":"Process a step in the evaluation creation workflow.\n\nThis endpoint handles a 5-step workflow for creating evaluation runs within an experiment:\n\n**Step 1: Basic Information**\n- Provide `name` and optional `description` in `stage_data`\n- `workflow_id` should be null for first step\n- `workflow_total_steps` should be 5\n\n**Step 2: Endpoint Selection**\n- Provide `endpoint_id` in `stage_data` (select one endpoint from experiment's existing runs)\n- `workflow_id` from step 1 response required\n\n**Step 3: Trait Selection**\n- Provide `trait_ids` array in `stage_data` (minimum 1)\n- `workflow_id` from previous step required\n\n**Step 4: Dataset Selection**\n- Provide `dataset_ids` array in `stage_data` (minimum 1 per trait)\n- Only datasets linked to selected traits are valid\n- `workflow_id` from previous step required\n\n**Step 5: Final Confirmation**\n- Review summary and set `trigger_workflow=true` to create the runs\n- `workflow_id` from previous step required\n\n- **experiment_id**: UUID of the experiment to create evaluation runs for\n- **request**: Workflow step request with step data\n- **session**: Database session dependency\n- **current_user**: The authenticated user creating the evaluation\n\nReturns a `RetrieveWorkflowDataResponse` with workflow status and next step data.","operationId":"evaluation_workflow_step_experiments__experiment_id__evaluations_workflow_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"ID of experiment to create evaluation for","title":"Experiment Id"},"description":"ID of experiment to create evaluation for"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationWorkflowStepRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"}}}},"/experiments/{experiment_id}/evaluations/workflow/{workflow_id}":{"get":{"tags":["experiments"],"summary":"Get Evaluation Workflow Data","description":"Get complete evaluation workflow data for review.\n\nRetrieves all accumulated data from an evaluation workflow, useful for reviewing\nselections before final submission or resuming an incomplete workflow.\n\n- **experiment_id**: UUID of the experiment\n- **workflow_id**: UUID of the evaluation workflow to retrieve\n- **session**: Database session dependency\n- **current_user**: The authenticated user\n\nReturns a `RetrieveWorkflowDataResponse` with complete workflow data.","operationId":"get_evaluation_workflow_data_experiments__experiment_id__evaluations_workflow__workflow_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"ID of experiment","title":"Experiment Id"},"description":"ID of experiment"},{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"ID of evaluation workflow to retrieve","title":"Workflow Id"},"description":"ID of evaluation workflow to retrieve"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/{experiment_id}/evaluations/workflow/{workflow_id}/plan":{"post":{"tags":["experiments"],"summary":"Get Evaluation Plan","description":"What the evaluation will do before it runs: agent preflight, planned calls and cost range, warnings.\n\nReads the wizard's stored steps; ``overrides`` (optional body) replace step 5's\n``judge_endpoint_id`` / ``eval_options``. Creates nothing.","operationId":"get_evaluation_plan_experiments__experiment_id__evaluations_workflow__workflow_id__plan_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation workflow ID","title":"Workflow Id"},"description":"Evaluation workflow ID"}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EvaluationPlanRequest"},{"type":"null"}],"title":"Overrides"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationPlanResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/{experiment_id}/evaluations/trigger":{"post":{"tags":["experiments"],"summary":"Trigger One Shot Evaluation","description":"Start an evaluation in one call — the wizard's five steps in one body (spec 027 §5.23, AE2.9).\n\nAccepts a project API key of the experiment's project (403 for another project, S-10). Runs\nthe wizard's validation, agent preflight and acknowledgement; ``?plan=true`` returns the plan\nonly. The response never carries the evaluation's own key (TC-SEC-06).","operationId":"trigger_one_shot_evaluation_experiments__experiment_id__evaluations_trigger_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"plan","in":"query","required":false,"schema":{"type":"boolean","description":"Return the plan (preflight, estimate, warnings) and create nothing.","default":false,"title":"Plan"},"description":"Return the plan (preflight, estimate, warnings) and create nothing."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OneShotTriggerIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OneShotTriggerResponse"}}}},"200":{"description":"With ?plan=true: the plan only.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationPlanResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Too Many Requests"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/{experiment_id}/manifest-diff":{"get":{"tags":["experiments"],"summary":"Get Manifest Diff","description":"Flag differences between two evaluations' judge, governance policy versions and dataset version.","operationId":"get_manifest_diff_experiments__experiment_id__manifest_diff_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"},{"name":"evaluation_ids","in":"query","required":true,"schema":{"type":"string","description":"Two evaluation ids, comma-separated.","title":"Evaluation Ids"},"description":"Two evaluation ids, comma-separated."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManifestDiffResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/{experiment_id}/evaluations":{"get":{"tags":["experiments"],"summary":"Get Experiment Evaluations","description":"Get all evaluations for an experiment with models, traits, datasets, and scores from BudEval.\n\nThis endpoint retrieves comprehensive evaluation data for an experiment including:\n- All runs with their current status\n- Model details for each run\n- Traits with their associated datasets (datasets nested under traits)\n- Real-time evaluation scores from BudEval service (fetched in parallel)\n\nThe scores are fetched asynchronously from the BudEval service, so running evaluations\nmay not have scores available yet.\n\n- **experiment_id**: UUID of the experiment to retrieve evaluations for\n- **session**: Database session dependency\n- **current_user**: The authenticated user requesting the evaluations\n\nReturns an `ExperimentEvaluationsResponse` with experiment details and all evaluations.","operationId":"get_experiment_evaluations_experiments__experiment_id__evaluations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"ID of experiment to get evaluations for","title":"Experiment Id"},"description":"ID of experiment to get evaluations for"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentEvaluationsResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/workflows/{workflow_id}/cancel":{"post":{"tags":["experiments"],"summary":"Cancel Evaluation By Workflow","description":"Cancel the evaluation started by this wizard workflow.\n\nThe run-status drawer only holds the workflow id, so this is the endpoint\nits Cancel button calls.","operationId":"cancel_evaluation_by_workflow_experiments_workflows__workflow_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Eval workflow ID","title":"Workflow Id"},"description":"Eval workflow ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelEvaluationResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/evaluations/{evaluation_id}/cancel":{"post":{"tags":["experiments"],"summary":"Cancel Evaluation","description":"Cancel a running evaluation.\n\nbudeval stops its work (Kubernetes Jobs, in-process runs, the workflow) and\nthe evaluation and its unfinished runs are marked CANCELLED.","operationId":"cancel_evaluation_experiments_evaluations__evaluation_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation ID","title":"Evaluation Id"},"description":"Evaluation ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelEvaluationResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/evaluations/all":{"get":{"tags":["experiments"],"summary":"Get All Evaluations","description":"Get all evaluations for the current user with optional filtering and export.\n\nThis endpoint retrieves all evaluations across all experiments for the current user including:\n- Evaluation details with model, traits, and datasets\n- Evaluation scores calculated from metrics\n- Runs associated with each evaluation\n\n- **model_id**: Optional UUID to filter evaluations by model\n- **endpoint_id**: Optional UUID to filter evaluations by endpoint (takes precedence over model_id)\n- **search**: Optional search term to filter by evaluation name, dataset name, trait name, and endpoint name\n- **searchName**: Include endpoint/deployment name in search (default: true)\n- **export_format**: Set to 'csv' to download results as CSV file\n- **page**: Page number for pagination (1-indexed, default: 1)\n- **page_size**: Number of items per page (default: 20, max: 100)\n\nWhen export_format='csv', returns a CSV file with columns:\nDeployment Name, Model Name, Dataset Name, Trait Name, Evaluation Name, Experiment Name, Score\n\nReturns an `AllEvaluationsResponse` with paginated evaluations (JSON) or CSV file.","operationId":"get_all_evaluations_experiments_evaluations_all_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter evaluations by model ID","title":"Model Id"},"description":"Filter evaluations by model ID"},{"name":"endpoint_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter evaluations by endpoint ID (takes precedence over model_id)","title":"Endpoint Id"},"description":"Filter evaluations by endpoint ID (takes precedence over model_id)"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by evaluation name, dataset name, trait name, and optionally endpoint name","title":"Search"},"description":"Search by evaluation name, dataset name, trait name, and optionally endpoint name"},{"name":"searchName","in":"query","required":false,"schema":{"type":"boolean","description":"Include endpoint/deployment name in search. Default: true","default":true,"title":"Searchname"},"description":"Include endpoint/deployment name in search. Default: true"},{"name":"export_format","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Set to 'csv' to export as CSV file. Leave empty for JSON response.","title":"Export Format"},"description":"Set to 'csv' to export as CSV file. Leave empty for JSON response."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number (1-indexed)","default":1,"title":"Page"},"description":"Page number (1-indexed)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of items per page (ignored when export_format=csv)","default":20,"title":"Page Size"},"description":"Number of items per page (ignored when export_format=csv)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllEvaluationsResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/evaluations/{evaluation_id}":{"get":{"tags":["experiments"],"summary":"Get Evaluation Detail","description":"An evaluation with its target, manifest, live progress, cost totals and runs (caller must own it).","operationId":"get_evaluation_detail_experiments_evaluations__evaluation_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation ID","title":"Evaluation Id"},"description":"Evaluation ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationDetailResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/evaluations/{evaluation_id}/gate":{"get":{"tags":["experiments"],"summary":"Get Evaluation Gate","description":"The evaluation's gate result ``{pass, reasons[], evaluated_at}``; ``null`` while it runs or without a gate.\n\nAccepts a project API key of the experiment's project (S-10) — what a CI job polls.","operationId":"get_evaluation_gate_experiments_evaluations__evaluation_id__gate_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation ID","title":"Evaluation Id"},"description":"Evaluation ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationGateResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/evaluations/{evaluation_id}/judge-agreement":{"post":{"tags":["experiments"],"summary":"Judge Agreement Report","description":"Pass/fail agreement, score correlation and disagreeing rows of two runs per metric instance (FR-CONF-3).\n\nEach instance: ``instance, rows_compared, pass_agreement, correlation, mode_a, mode_b, missing_a,\nmissing_b, disagreements[{sample_key, value_a, value_b, success_a, success_b}]`` (≤ 50).","operationId":"judge_agreement_report_experiments_evaluations__evaluation_id__judge_agreement_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation ID","title":"Evaluation Id"},"description":"Evaluation ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JudgeAgreementIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JudgeAgreementResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/runs/{run_id}/summary":{"get":{"tags":["experiments"],"summary":"Get Run Summary","description":"A run's outcome counts, policy breakdown (with names), cost and breakers, plus manifest and target.","operationId":"get_run_summary_experiments_runs__run_id__summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Run ID","title":"Run Id"},"description":"Run ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunSummaryResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/runs/{run_id}/rerun-failed":{"post":{"tags":["experiments"],"summary":"Rerun Failed Samples","description":"Re-run the samples of a finished run whose status is error / failed / timeout / interrupted / cancelled.\n\nSamples that answered are never called again. Requires ``confirm: true`` (400 otherwise).\nReturns ``{evaluation_id, run_id, selected}``; the run and its evaluation go back to running.","operationId":"rerun_failed_samples_experiments_runs__run_id__rerun_failed_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Run ID","title":"Run Id"},"description":"Run ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RerunFailedIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rerun Failed Samples Experiments Runs  Run Id  Rerun Failed Post"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/runs/{run_id}/rescore":{"post":{"tags":["experiments"],"summary":"Rescore Run","description":"Re-score a finished run from its stored trajectories (judge calls only; FRD §5.18).\n\nReturns ``{rescore_id, status, samples, not_rescorable}``. 400 ``{code: content_not_stored}``\nwhen the run stored no content; 409 ``run_in_progress`` while it is still running.","operationId":"rescore_run_experiments_runs__run_id__rescore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Run ID","title":"Run Id"},"description":"Run ID"}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RescoreIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rescore Run Experiments Runs  Run Id  Rescore Post"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/runs/{run_id}/samples/{sample_id}/review":{"put":{"tags":["experiments"],"summary":"Review Run Sample","description":"Record your verdict on one sample — ``pass``, ``fail`` or ``n/a`` with an optional note (FRD §5.25).\n\nOne verdict per reviewer and sample (a second replaces the first); the run summary's\n``review`` block reports ``human_pass_rate`` and ``judge_agreement``.","operationId":"review_run_sample_experiments_runs__run_id__samples__sample_id__review_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Run ID","title":"Run Id"},"description":"Run ID"},{"name":"sample_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Sample ID","title":"Sample Id"},"description":"Sample ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SampleReviewIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SampleReviewResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/runs/{run_id}/samples/{sample_id}/scores/{instance}/review":{"put":{"tags":["experiments"],"summary":"Review Run Sample Score","description":"Agree or disagree with one score — ``agree`` / ``disagree``, an optional ``human_value`` and note (spec 028 D-18).\n\nOne verdict per reviewer, sample and metric instance (a second replaces the first); the run\nsummary's ``score_reviews`` counts them per instance, and samples carry them in ``reviews[]``.","operationId":"review_run_sample_score_experiments_runs__run_id__samples__sample_id__scores__instance__review_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Run ID","title":"Run Id"},"description":"Run ID"},{"name":"sample_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Sample ID","title":"Sample Id"},"description":"Sample ID"},{"name":"instance","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$","description":"Metric instance","title":"Instance"},"description":"Metric instance"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScoreReviewIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SampleReviewResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["experiments"],"summary":"Delete Run Sample Score Review","description":"Withdraw your verdict on one score.","operationId":"delete_run_sample_score_review_experiments_runs__run_id__samples__sample_id__scores__instance__review_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Run ID","title":"Run Id"},"description":"Run ID"},{"name":"sample_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Sample ID","title":"Sample Id"},"description":"Sample ID"},{"name":"instance","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$","description":"Metric instance","title":"Instance"},"description":"Metric instance"}],"responses":{"204":{"description":"Successful Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/runs/{run_id}/rescore/{rescore_id}":{"get":{"tags":["experiments"],"summary":"Get Rescore Status","description":"State of a re-score job: ``{rescore_id, status, samples, not_rescorable, outcome?, rescore_cost?}``.","operationId":"get_rescore_status_experiments_runs__run_id__rescore__rescore_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Run ID","title":"Run Id"},"description":"Run ID"},{"name":"rescore_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Re-score job ID","title":"Rescore Id"},"description":"Re-score job ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Rescore Status Experiments Runs  Run Id  Rescore  Rescore Id  Get"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/agents/{prompt_id}/runs":{"get":{"tags":["experiments"],"summary":"List Agent Runs","description":"The caller's evaluation runs of an agent with version, status and metrics (the agent page's tab).","operationId":"list_agent_runs_experiments_agents__prompt_id__runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Agent (prompt) ID","title":"Prompt Id"},"description":"Agent (prompt) ID"},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Only runs of this version.","title":"Version"},"description":"Only runs of this version."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/sync/datasets":{"post":{"tags":["experiments","Evaluation Sync"],"summary":"Sync Evaluation Datasets","description":"Manually trigger evaluation dataset synchronization from manifest","operationId":"sync_evaluation_datasets_experiments_sync_datasets_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"force_sync","in":"query","required":false,"schema":{"type":"boolean","description":"Force synchronization even if manifest versions match. Use this to re-sync datasets after manifest updates.","default":false,"title":"Force Sync"},"description":"Force synchronization even if manifest versions match. Use this to re-sync datasets after manifest updates."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/internal/evaluations/eta":{"patch":{"tags":["experiments","Internal"],"summary":"Update Evaluation Eta","description":"Update evaluation ETA (internal service-to-service endpoint).\n\nCalled by budeval service via Dapr service invocation to update the\nETA remaining seconds for an ongoing evaluation.\n\nRequires the shared internal APP_API_TOKEN and a budeval Dapr caller identity.\n\n- **request**: Payload with evaluation_id and eta_seconds.\n- **session**: Database session dependency.\n\nReturns a `SuccessResponse` confirming the update.","operationId":"update_evaluation_eta_experiments_internal_evaluations_eta_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEvaluationETARequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/runs/{run_id}/red-team-findings":{"get":{"tags":["experiments"],"summary":"List Red Team Findings Route","description":"List findings produced by a single red-team run.\n\n- **RBAC**: loads the run, then asserts the caller has access to its\n  project. Findings from other projects are NEVER returned.\n- **Pagination**: ``page`` defaults to 1, ``limit`` defaults to 50\n  (max 200). Response envelope echoes ``total`` / ``page`` / ``limit``.\n\nThe findings shape is engine-name-blind: each row carries the feature\nlabel (``vulnerability_type``), severity (low/medium/high), the attack\n+ victim text, vulnerability score, optional mitigation notes, and an\noptional artifact pointer to the full adversarial transcript.","operationId":"list_red_team_findings_route_experiments_runs__run_id__red_team_findings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Run id (UUID).","title":"Run Id"},"description":"Run id (UUID)."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"1-indexed page number.","default":1,"title":"Page"},"description":"1-indexed page number."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Page size (max 200).","default":50,"title":"Limit"},"description":"Page size (max 200)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedTeamFindingListOut"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/agents/{prompt_id}/publish-gate":{"get":{"tags":["experiments"],"summary":"Get Agent Publish Gate","description":"The agent's publish gate, or ``null`` when it has none (spec 027 AE3.6).","operationId":"get_agent_publish_gate_experiments_agents__prompt_id__publish_gate_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Agent (prompt) ID","title":"Prompt Id"},"description":"Agent (prompt) ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishGateResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["experiments"],"summary":"Put Agent Publish Gate","description":"Create or replace the agent's publish gate (``ENDPOINT_MANAGE`` on the agent's project).","operationId":"put_agent_publish_gate_experiments_agents__prompt_id__publish_gate_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Agent (prompt) ID","title":"Prompt Id"},"description":"Agent (prompt) ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishGateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishGateResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["experiments"],"summary":"Delete Agent Publish Gate","description":"Remove the agent's publish gate; a default-version change is then not checked.","operationId":"delete_agent_publish_gate_experiments_agents__prompt_id__publish_gate_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Agent (prompt) ID","title":"Prompt Id"},"description":"Agent (prompt) ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/agents/{prompt_id}/publish-gate/check":{"get":{"tags":["experiments"],"summary":"Check Agent Publish Gate","description":"What the gate would say about making ``version_id`` the default, without changing anything.","operationId":"check_agent_publish_gate_experiments_agents__prompt_id__publish_gate_check_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Agent (prompt) ID","title":"Prompt Id"},"description":"Agent (prompt) ID"},{"name":"version_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"The candidate version.","title":"Version Id"},"description":"The candidate version."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishGateCheckResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eval-ops/capabilities":{"get":{"tags":["custom-evaluations"],"summary":"List Eval Capabilities","description":"List user-facing capability features for the given feature_kind.\n\nThe engine identity behind ``feature_kind`` is NEVER returned. Only the\ncanonical feature catalog (feature_name + display_name + per-metric\nrequirements) crosses this wire. UI consumers iterate the result to\nrender the metric / scenario picker.","operationId":"list_eval_capabilities_eval_ops_capabilities_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"feature_kind","in":"query","required":true,"schema":{"type":"string","pattern":"^(custom_eval|red_team)$","description":"Capability scope: 'custom_eval' or 'red_team'.","title":"Feature Kind"},"description":"Capability scope: 'custom_eval' or 'red_team'."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CapabilityFeatureOut"},"title":"Response List Eval Capabilities Eval Ops Capabilities Get"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eval-ops/custom-datasets":{"post":{"tags":["custom-evaluations"],"summary":"Create Custom Dataset Route","description":"Create a new eval — the single authoring endpoint for all six eval types.\n\n``eval_type`` is the discriminator. ``red_team`` persists a\n``source_kind='red_team'`` row carrying the vulnerability/attack definition\nand no metrics; every other type persists a ``source_kind='custom'`` row\ncarrying metrics. Either way the result is a GLOBAL, reusable eval that the\nHub lists and any experiment can run — repeatedly, against any model.\n\nDatasets are GLOBAL (shared across all projects); ``project_id`` is OPTIONAL.\n\n- **payload**: ``CustomDatasetCreateIn`` with name, eval_type, metrics OR\n  red_team, optional project_id.\n- **RBAC**: a project-scoped membership gate runs ONLY when ``project_id`` is\n  supplied; a global (project-less) dataset requires no project membership.\n- **Cross-project judge rejection**: applies only when ``project_id`` is set —\n  a judge_endpoint_id whose ``project_id`` differs is rejected with HTTP 400 +\n  audit_trail row. For global datasets the judge is\n  selected at RUN time, so no judge is scoped here.\n\nReturns the new dataset row with engine-name-blind fields.","operationId":"create_custom_dataset_route_eval_ops_custom_datasets_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDatasetCreateIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDatasetOut"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["custom-evaluations"],"summary":"List Custom Datasets Route","description":"List custom datasets — GLOBAL by default (shared across all projects).\n\nSpec 028 (FRD §5.19): drafts are listed only for their creator (and admins); archived\nevaluations only with ``include_archived=true``. Each item carries ``status``, ``created_by``,\nthe latest version number, row count and metric count.\n\nEvaluation datasets do NOT belong to a project; they are shared. By default\nthis returns EVERY custom dataset org-wide with no project RBAC gate.\n\n- **project_id (optional)**: accepted as a STRING so the global UI can send\n  an EMPTY value (``?project_id=``) for the global list without tripping a\n  422 UUID-parse error. Empty/omitted -> global (no filter). A non-empty\n  value MUST be a valid UUID (else a clean 400), and narrows the result to\n  that one project's datasets (back-compat for a project-scoped view).\n- **Pagination**: ``page`` defaults to 1, ``limit`` defaults to 50\n  (max 200). Response envelope echoes ``total`` / ``page`` / ``limit``.\n\nReturns a ``CustomDatasetListOut`` envelope with the row list and total\ncount.","operationId":"list_custom_datasets_route_eval_ops_custom_datasets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional project filter. Omit OR send empty for the GLOBAL list (shared across projects).","title":"Project Id"},"description":"Optional project filter. Omit OR send empty for the GLOBAL list (shared across projects)."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"1-indexed page number.","default":1,"title":"Page"},"description":"1-indexed page number."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Page size (max 200).","default":50,"title":"Limit"},"description":"Page size (max 200)."},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","description":"Spec 028: also list archived evaluations (hidden by default).","default":false,"title":"Include Archived"},"description":"Spec 028: also list archived evaluations (hidden by default)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDatasetListOut"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eval-ops/red-team-configs/resolve":{"post":{"tags":["custom-evaluations"],"summary":"Resolve Red Team Config Route","description":"Resolve a red-team catalog selection to the dataset id a run hangs off.\n\nRed teaming is not authored. There is no test data to write — only a\nselection from the engine's fixed catalog of vulnerabilities and attack\nmethods — so the run flow presents that catalog directly and never asks the\nuser to create, name or save an eval.\n\nA run still needs a dataset row (``runs.dataset_version_id`` is NOT NULL),\nso this mints one per DISTINCT configuration and returns its id. Identical\nselections resolve to the same row (``reused=true``), so repeatedly probing\nthe same vulnerabilities does not litter the database. These rows carry\n``source_kind='red_team'``, which is excluded from every user-facing listing\n(``LIBRARY_SOURCE_KINDS``) — they are machinery, not library entries.\n\n- **payload**: ``RedTeamDefinitionIn`` — framework, attacks, scenarios.\n- **Validation**: each vulnerability and attack must exist in the capability\n  catalog, using the SAME filtered set the picker offers, so anything\n  selectable is acceptable and vice versa.\n- **Idempotent** by construction: dedup is on ``exp_datasets``' UNIQUE(name),\n  whose value is a hash of the configuration.\n\nReturns the dataset id and whether an existing row was reused.","operationId":"resolve_red_team_config_route_eval_ops_red_team_configs_resolve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedTeamDefinitionIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedTeamConfigResolveOut"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/eval-ops/prompts":{"post":{"tags":["custom-evaluations"],"summary":"Create Criterion Prompt Route","description":"Proxy criterion-prompt creation to budprompt.\n\n- **payload**: ``CriterionPromptCreateIn`` with project_id, name, content.\n- **RBAC**: caller must have access to ``payload.project_id``.\n- **Wire**: forwards to budprompt ``POST /v1/prompt/prompt-config``.\n\nReturns ``CriterionPromptOut`` with ``{prompt_id, version}``.","operationId":"create_criterion_prompt_route_eval_ops_prompts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CriterionPromptCreateIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CriterionPromptOut"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/eval-ops/custom-datasets/{dataset_id}/upload":{"post":{"tags":["custom-evaluations"],"summary":"Upload Dataset Testcases Route","description":"Upload CSV / JSONL testcases for a custom dataset.\n\n- **RBAC**: loads the dataset, then asserts caller has access to its\n  project. Datasets in other projects are NEVER accepted (HTTP 403).\n- **Parsing**: filename extension drives the parser\n  (``.csv`` vs ``.jsonl``). ``input`` is the only required field;\n  other recognized testcase fields (``actual_output``,\n  ``expected_output``, ``retrieval_context``) are recognized when\n  present.\n- **Persistence**: parsed rows are stored inline on the dataset's\n  ``custom_config`` (no object storage); ``storage_uri`` is always null.\n\nReturns ``DatasetUploadOut`` with ``{artifact_id, parsed_count, storage_uri, size_bytes}``.","operationId":"upload_dataset_testcases_route_eval_ops_custom_datasets__dataset_id__upload_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Custom dataset id (UUID).","title":"Dataset Id"},"description":"Custom dataset id (UUID)."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_dataset_testcases_route_eval_ops_custom_datasets__dataset_id__upload_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetUploadOut"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eval-ops/custom-datasets/{dataset_id}/versions":{"get":{"tags":["custom-evaluations"],"summary":"List Dataset Versions Route","description":"List dataset-version snapshots for a custom dataset.\n\n- **RBAC**: loads the dataset, then asserts caller has access to its project.\n- **Pagination**: ``page`` defaults to 1, ``limit`` defaults to 50 (max 200).\n\nReturns a ``DatasetVersionListOut`` envelope.","operationId":"list_dataset_versions_route_eval_ops_custom_datasets__dataset_id__versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Custom dataset id (UUID).","title":"Dataset Id"},"description":"Custom dataset id (UUID)."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"1-indexed page number.","default":1,"title":"Page"},"description":"1-indexed page number."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Page size (max 200).","default":50,"title":"Limit"},"description":"Page size (max 200)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetVersionListOut"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["custom-evaluations"],"summary":"Create Dataset Version Route","description":"Snapshot the current dataset state as a new version row.\n\n- **RBAC**: caller must have access to the dataset's project.\n\nReturns the new ``DatasetVersionOut`` snapshot row.","operationId":"create_dataset_version_route_eval_ops_custom_datasets__dataset_id__versions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Custom dataset id (UUID).","title":"Dataset Id"},"description":"Custom dataset id (UUID)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetVersionCreateIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetVersionOut"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eval-ops/runs/{run_id}/testcases":{"get":{"tags":["custom-evaluations"],"summary":"Get Run Testcases Route","description":"Return per-testcase results for a run.\n\nOne entry per testcase, read through the samples proxy for custom and\nagent runs (the evaluation engine keeps a row per testcase), with\ninput / expected / actual text and each metric's score and ``success``.\nOlder runs without sample rows fall back to the ``metric_result`` rows\nthat carry a ``testcase_id``. Empty when nothing was recorded yet.","operationId":"get_run_testcases_route_eval_ops_runs__run_id__testcases_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Run ID.","title":"Run Id"},"description":"Run ID."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunTestcasesResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eval-ops/frameworks":{"get":{"tags":["custom-evaluations"],"summary":"List Frameworks Route","description":"List AI-safety frameworks for the Red Teaming Hub one-click selector.\n\nEach row carries the framework's user-facing identifier + its\nconstituent vulnerability identifiers. UI selects a framework →\nauto-populates the scenario's vulnerability list.\n\nThe engine identity is NEVER returned — the framework catalog is\nengine-agnostic; only vulnerability names cross the wire.","operationId":"list_frameworks_route_eval_ops_frameworks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FrameworkListOut"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/eval-ops/red-team-attack-methods":{"get":{"tags":["custom-evaluations"],"summary":"List Red Team Attack Methods Route","description":"List the Red Teaming attack-method catalog for the scenario builder.\n\nEach row carries the user-facing attack identifier + label + turn-mode\n(single / multi). The UI renders these as the selectable attack-method\nlist; the adversarial loop applies the chosen methods at run time.\n\nEngine-name invisibility: the catalog is served prefix-stripped and the\nunderlying library identity is NEVER returned. Returns an empty list\n(200 OK) when the engine is not seeded so the UI degrades to its\nbuilt-in defaults instead of erroring.","operationId":"list_red_team_attack_methods_route_eval_ops_red_team_attack_methods_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AttackMethodOut"},"type":"array","title":"Response List Red Team Attack Methods Route Eval Ops Red Team Attack Methods Get"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/eval-ops/red-team-coverage":{"get":{"tags":["custom-evaluations"],"summary":"Red Team Coverage Route","description":"How each red-team test has fared across the caller's runs.\n\nOne row per vulnerability and per attack method that at least one of the caller's own,\nnon-deleted runs probed: how many runs and targets, and the latest run's outcome. A test with no\nrow was never run — the catalog renders that, rather than a zero.","operationId":"red_team_coverage_route_eval_ops_red_team_coverage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedTeamCoverageOut"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/eval-ops/red-team-probes":{"get":{"tags":["custom-evaluations"],"summary":"List Red Team Probes Route","description":"The newest probes one red-team test produced across the caller's runs.\n\nPass a ``vulnerability`` or an ``attack_method`` (both narrows to probes that match both). Each\nprobe carries the run, experiment and target it came from. Scoped like the coverage route.","operationId":"list_red_team_probes_route_eval_ops_red_team_probes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vulnerability","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"description":"Vulnerability token.","title":"Vulnerability"},"description":"Vulnerability token."},{"name":"attack_method","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"description":"Attack-method id.","title":"Attack Method"},"description":"Attack-method id."},{"name":"behaviour","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"description":"One behaviour of the vulnerability.","title":"Behaviour"},"description":"One behaviour of the vulnerability."},{"name":"outcome","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(breached|resisted|errored)$"},{"type":"null"}],"title":"Outcome"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"description":"Newest probes to return (max 50).","default":20,"title":"Limit"},"description":"Newest probes to return (max 50)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedTeamProbeListOut"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"}}}},"/eval-ops/custom-datasets/{dataset_id}":{"get":{"tags":["evaluation-editor"],"summary":"Get Evaluation","description":"The evaluation with its draft: status, revision, draft settings, latest version, row counts.\n\n``outside_change`` is true when the previous image rewrote the rows while this draft has local\nedits; the Editor then offers \"Load the outside change\" (``…/draft/reseed``) or \"Keep my draft\"\n(``…/draft/keep``). Without local edits the draft is re-seeded silently (D-2a).","operationId":"get_evaluation_eval_ops_custom_datasets__dataset_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Custom evaluation (exp_datasets) id.","title":"Dataset Id"},"description":"Custom evaluation (exp_datasets) id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditorDatasetResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"draft_conflict / changed_outside_editor / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}},"patch":{"tags":["evaluation-editor"],"summary":"Patch Evaluation","description":"Rename, describe or change the draft settings (top-level keys replaced).\n\nA shape change removes the metrics that no longer apply and lists them in ``removed_metrics``;\na taken name is a 409 ``name_taken`` with ``suggested_name``; invalid settings are a 422\n``invalid_settings`` with ``errors[{path, message}]`` (agents as judge, simulator or generator\nincluded).","operationId":"patch_evaluation_eval_ops_custom_datasets__dataset_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Custom evaluation (exp_datasets) id.","title":"Dataset Id"},"description":"Custom evaluation (exp_datasets) id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetPatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditorDatasetResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"draft_conflict / changed_outside_editor / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}},"delete":{"tags":["evaluation-editor"],"summary":"Purge Evaluation","description":"Admin only: delete the evaluation's rows, versions, manifests, staging, uploads and previews.\n\nBlobs no other version references go too. Refused (409 ``in_use``) while runs in live\nexperiments use one of its versions — archive it instead. Without ``purge=true`` nothing is\ndeleted (archive is the reversible way to retire an evaluation).","operationId":"purge_evaluation_eval_ops_custom_datasets__dataset_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Custom evaluation (exp_datasets) id.","title":"Dataset Id"},"description":"Custom evaluation (exp_datasets) id."},{"name":"purge","in":"query","required":false,"schema":{"type":"boolean","description":"Required: delete everything of the evaluation (admin).","default":false,"title":"Purge"},"description":"Required: delete everything of the evaluation (admin)."}],"responses":{"204":{"description":"Successful Response"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"draft_conflict / changed_outside_editor / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/eval-ops/custom-datasets/{dataset_id}/archive":{"post":{"tags":["evaluation-editor"],"summary":"Archive Evaluation","description":"Archive (from draft or published); ``archived_from`` remembers the status to restore.","operationId":"archive_evaluation_eval_ops_custom_datasets__dataset_id__archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Custom evaluation (exp_datasets) id.","title":"Dataset Id"},"description":"Custom evaluation (exp_datasets) id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditorDatasetResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"draft_conflict / changed_outside_editor / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/eval-ops/custom-datasets/{dataset_id}/restore-archived":{"post":{"tags":["evaluation-editor"],"summary":"Restore Archived Evaluation","description":"Return an archived evaluation to the status it was archived from.","operationId":"restore_archived_evaluation_eval_ops_custom_datasets__dataset_id__restore_archived_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Custom evaluation (exp_datasets) id.","title":"Dataset Id"},"description":"Custom evaluation (exp_datasets) id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditorDatasetResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"draft_conflict / changed_outside_editor / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/eval-ops/custom-datasets/{dataset_id}/draft/rows":{"get":{"tags":["evaluation-editor"],"summary":"List Draft Rows","description":"Live draft rows in sheet order, paged (≤ 200) and filtered (FR-ROW-4).","operationId":"list_draft_rows_eval_ops_custom_datasets__dataset_id__draft_rows_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Custom evaluation (exp_datasets) id.","title":"Dataset Id"},"description":"Custom evaluation (exp_datasets) id."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"At most 200 rows per page.","default":50,"title":"Limit"},"description":"At most 200 rows per page."},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Tag"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"provenance.source (manual when absent).","title":"Source"},"description":"provenance.source (manual when absent)."},{"name":"valid","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Valid"}},{"name":"recorded","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Recorded"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"description":"Case-insensitive search in the row.","title":"Q"},"description":"Case-insensitive search in the row."},{"name":"run_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"A preview run whose samples filter the rows.","title":"Run Id"},"description":"A preview run whose samples filter the rows."},{"name":"outcome","in":"query","required":false,"schema":{"anyOf":[{"enum":["passed","failed","correct","incorrect","errored","unscored","all","not_run"],"type":"string"},{"type":"null"}],"description":"With run_id: rows whose sample has this outcome; not_run = rows without a sample.","title":"Outcome"},"description":"With run_id: rows whose sample has this outcome; not_run = rows without a sample."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftRowsResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"draft_conflict / changed_outside_editor / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/eval-ops/custom-datasets/{dataset_id}/draft/rows/{row_id}/history":{"get":{"tags":["evaluation-editor"],"summary":"Get Row History","description":"One row's results in the caller's completed runs of this evaluation, newest first (FR-RES-3).\n\nJoined by ``row_id`` across versions (D-32); ``found`` is false for a run whose version did not\nhave the row.","operationId":"get_row_history_eval_ops_custom_datasets__dataset_id__draft_rows__row_id__history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Custom evaluation (exp_datasets) id.","title":"Dataset Id"},"description":"Custom evaluation (exp_datasets) id."},{"name":"row_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The row's id.","title":"Row Id"},"description":"The row's id."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"description":"Runs to read, newest first.","default":10,"title":"Limit"},"description":"Runs to read, newest first."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowHistoryResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"draft_conflict / changed_outside_editor / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/eval-ops/custom-datasets/{dataset_id}/draft":{"patch":{"tags":["evaluation-editor"],"summary":"Patch Draft","description":"Insert, update, delete, move and duplicate rows in one atomic batch (≤ 1,000 operations).\n\nReturns ``{revision, inserted_row_ids, invalid[{row_id, errors}]}``. Invalid rows are kept and\nflagged; an unknown field is a 422 naming it; a used client ``row_id`` is a 409.","operationId":"patch_draft_eval_ops_custom_datasets__dataset_id__draft_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Custom evaluation (exp_datasets) id.","title":"Dataset Id"},"description":"Custom evaluation (exp_datasets) id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftPatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"draft_conflict / changed_outside_editor / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/eval-ops/custom-datasets/{dataset_id}/draft/discard":{"post":{"tags":["evaluation-editor"],"summary":"Discard Draft","description":"Draft := the latest published version (rows and settings); empty rows when never published.","operationId":"discard_draft_eval_ops_custom_datasets__dataset_id__draft_discard_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Custom evaluation (exp_datasets) id.","title":"Dataset Id"},"description":"Custom evaluation (exp_datasets) id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditorDatasetResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"draft_conflict / changed_outside_editor / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/eval-ops/custom-datasets/{dataset_id}/draft/reseed":{"post":{"tags":["evaluation-editor"],"summary":"Reseed Draft","description":"Load the outside change: draft rows := the rows the previous image wrote.","operationId":"reseed_draft_eval_ops_custom_datasets__dataset_id__draft_reseed_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Custom evaluation (exp_datasets) id.","title":"Dataset Id"},"description":"Custom evaluation (exp_datasets) id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditorDatasetResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"draft_conflict / changed_outside_editor / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/eval-ops/custom-datasets/{dataset_id}/draft/keep":{"post":{"tags":["evaluation-editor"],"summary":"Keep Draft","description":"Keep my draft: acknowledge the outside change (audited); the next Publish replaces it.","operationId":"keep_draft_eval_ops_custom_datasets__dataset_id__draft_keep_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Custom evaluation (exp_datasets) id.","title":"Dataset Id"},"description":"Custom evaluation (exp_datasets) id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditorDatasetResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"draft_conflict / changed_outside_editor / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/eval-ops/custom-datasets/{dataset_id}/publish":{"post":{"tags":["evaluation-editor"],"summary":"Publish Draft","description":"Publish the draft as a version that pins its rows and settings (FR-VER-1).\n\n422s: ``invalid_rows`` (with ``row_ids``), ``no_rows``, ``no_metrics``, ``invalid_settings``,\n``criterion_required``, ``judge_required`` (judge metrics need a judge), ``invalid_metrics``\n(budeval could not build one). An unchanged draft returns the current version (200). Above\n10,000 rows the version is written by a job: 202 with ``{job_id}``.","operationId":"publish_draft_eval_ops_custom_datasets__dataset_id__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Custom evaluation (exp_datasets) id.","title":"Dataset Id"},"description":"Custom evaluation (exp_datasets) id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__eval_ops__editor_schemas__VersionResponse"},{"$ref":"#/components/schemas/JobResponse"}],"title":"Response Publish Draft Eval Ops Custom Datasets  Dataset Id  Publish Post"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"draft_conflict / changed_outside_editor / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponse"}}},"description":"Accepted"}}}},"/eval-ops/custom-datasets/{dataset_id}/versions/{version_id}/rows":{"get":{"tags":["evaluation-editor"],"summary":"List Version Rows","description":"A version's rows from its manifest; 404 ``rows_not_recorded`` for a version without one.","operationId":"list_version_rows_eval_ops_custom_datasets__dataset_id__versions__version_id__rows_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Custom evaluation (exp_datasets) id.","title":"Dataset Id"},"description":"Custom evaluation (exp_datasets) id."},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Version id.","title":"Version Id"},"description":"Version id."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftRowsResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"draft_conflict / changed_outside_editor / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/eval-ops/custom-datasets/{dataset_id}/versions/{version_id}/settings":{"get":{"tags":["evaluation-editor"],"summary":"Get Version Settings","description":"A version's pinned settings (INTERFACES §1.4), with ``rows_recorded`` and ``all_recorded``.","operationId":"get_version_settings_eval_ops_custom_datasets__dataset_id__versions__version_id__settings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Custom evaluation (exp_datasets) id.","title":"Dataset Id"},"description":"Custom evaluation (exp_datasets) id."},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Version id.","title":"Version Id"},"description":"Version id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__eval_ops__editor_schemas__VersionResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"draft_conflict / changed_outside_editor / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/eval-ops/custom-datasets/{dataset_id}/versions/{a}/diff/{b}":{"get":{"tags":["evaluation-editor"],"summary":"Diff Versions","description":"Rows added, removed and changed from ``a`` to ``b`` by ``row_id``, and the settings changes.","operationId":"diff_versions_eval_ops_custom_datasets__dataset_id__versions__a__diff__b__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Custom evaluation (exp_datasets) id.","title":"Dataset Id"},"description":"Custom evaluation (exp_datasets) id."},{"name":"a","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Version id.","title":"A"},"description":"Version id."},{"name":"b","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Version id.","title":"B"},"description":"Version id."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionDiffResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"draft_conflict / changed_outside_editor / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/eval-ops/custom-datasets/{dataset_id}/versions/{version_id}/restore":{"post":{"tags":["evaluation-editor"],"summary":"Restore Version","description":"Draft rows and settings := the version's; the revision is bumped (audited).","operationId":"restore_version_eval_ops_custom_datasets__dataset_id__versions__version_id__restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Custom evaluation (exp_datasets) id.","title":"Dataset Id"},"description":"Custom evaluation (exp_datasets) id."},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Version id.","title":"Version Id"},"description":"Version id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditorDatasetResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"draft_conflict / changed_outside_editor / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/experiments/runs/{run_id}/resume-gated":{"post":{"tags":["experiments"],"summary":"Resume Gated Samples","description":"Score the ``requires_action`` samples whose approval was decided and whose run has finished.\n\nNo agent call: the continuation is read from the agent's stored runs and scored with the run's\nmetrics; the aggregates update when scoring finishes. Requires ``confirm: true`` (400\notherwise); 409 while the run is still running. Returns ``{ingest_id, scored, skipped}`` —\n``skipped`` samples have no finished continuation yet.","operationId":"resume_gated_samples_experiments_runs__run_id__resume_gated_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Run ID","title":"Run Id"},"description":"Run ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumeGatedIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resume Gated Samples Experiments Runs  Run Id  Resume Gated Post"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/runs/{run_id}/enrich-subagents":{"post":{"tags":["experiments"],"summary":"Enrich Subagent Trajectories","description":"Attach the delegated sub-agent runs of each sample to its trajectory (no re-score).\n\nReturns ``{ingest_id, samples, children, unavailable}``; an unreadable or unfinished child is\nattached as unavailable.","operationId":"enrich_subagent_trajectories_experiments_runs__run_id__enrich_subagents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Run ID","title":"Run Id"},"description":"Run ID"}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Enrich Subagent Trajectories Experiments Runs  Run Id  Enrich Subagents Post"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/experiments/{experiment_id}/evaluations/stored":{"post":{"tags":["experiments"],"summary":"Score Stored Runs","description":"Create an evaluation that scores the agent's stored runs selected by version and time window.\n\nOnly finished runs of the experiment's project, never an evaluation's own calls. 400\n``no_stored_runs`` when nothing matches (nothing is created). Returns ``{evaluation_id, run_id,\nworkflow_id, ingest_id, selected}``.","operationId":"score_stored_runs_experiments__experiment_id__evaluations_stored_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Experiment ID","title":"Experiment Id"},"description":"Experiment ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoredRunsIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Score Stored Runs Experiments  Experiment Id  Evaluations Stored Post"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eval-ops/custom-datasets/{dataset_id}/files":{"post":{"tags":["evaluation-editor"],"summary":"Upload Editor File Route","description":"Parse an uploaded file: columns with samples, a suggested mapping and a row estimate.\n\nThe file is kept 24 h under ``uploads/<dataset>/<file_token>`` for the stage step. Refusals:\n422 ``file_type`` / ``file_content`` (a renamed binary) / ``file_too_large`` / ``too_many_rows``\n(more than 100,000 rows).","operationId":"upload_editor_file_route_eval_ops_custom_datasets__dataset_id__files_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation (custom dataset) id.","title":"Dataset Id"},"description":"Evaluation (custom dataset) id."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_editor_file_route_eval_ops_custom_datasets__dataset_id__files_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileUploadResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/eval-ops/custom-datasets/{dataset_id}/files/template":{"get":{"tags":["evaluation-editor"],"summary":"Download Editor Template Route","description":"A template holding every importable field of the shape (default: the evaluation's), one example row.","operationId":"download_editor_template_route_eval_ops_custom_datasets__dataset_id__files_template_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation (custom dataset) id.","title":"Dataset Id"},"description":"Evaluation (custom dataset) id."},{"name":"shape","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(single|multi)$"},{"type":"null"}],"title":"Shape"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","pattern":"^(csv|jsonl)$","default":"csv","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/eval-ops/custom-datasets/{dataset_id}/files/{file_token}/stage":{"post":{"tags":["evaluation-editor"],"summary":"Stage Editor File Route","description":"Start staging an uploaded file with a mapping (a job; poll ``GET /eval-ops/editor-jobs/{id}``).\n\n410 ``upload_expired`` when the file is past its 24 hours or unknown.","operationId":"stage_editor_file_route_eval_ops_custom_datasets__dataset_id__files__file_token__stage_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation (custom dataset) id.","title":"Dataset Id"},"description":"Evaluation (custom dataset) id."},{"name":"file_token","in":"path","required":true,"schema":{"type":"string","maxLength":64,"description":"Token returned by the upload.","title":"File Token"},"description":"Token returned by the upload."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageFileIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditorJobResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"410":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Gone"}}}},"/eval-ops/editor-jobs/{job_id}":{"get":{"tags":["evaluation-editor"],"summary":"Get Editor Job Route","description":"A job's status, progress, cost, error and result (the parse report for a file job).","operationId":"get_editor_job_route_eval_ops_editor_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Editor job id.","title":"Job Id"},"description":"Editor job id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditorJobResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/eval-ops/editor-jobs/{job_id}/staged":{"get":{"tags":["evaluation-editor"],"summary":"List Staged Rows Route","description":"A page of the job's staged rows with provenance, validity and the include flag.","operationId":"list_staged_rows_route_eval_ops_editor_jobs__job_id__staged_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Editor job id.","title":"Job Id"},"description":"Editor job id."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"included","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Included"}},{"name":"valid","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Valid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StagedRowsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}},"patch":{"tags":["evaluation-editor"],"summary":"Select Staged Rows Route","description":"Include or exclude staged rows by position; ``all`` includes (true) or excludes (false) every row.","operationId":"select_staged_rows_route_eval_ops_editor_jobs__job_id__staged_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Editor job id.","title":"Job Id"},"description":"Editor job id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StagedSelectionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StagedSelectionResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/eval-ops/editor-jobs/{job_id}/accept":{"post":{"tags":["evaluation-editor"],"summary":"Accept Staged Rows Route","description":"Add the included rows to the draft (Replace jobs soft-delete the draft rows first); staging is deleted.","operationId":"accept_staged_rows_route_eval_ops_editor_jobs__job_id__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Editor job id.","title":"Job Id"},"description":"Editor job id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/eval-ops/editor-jobs/{job_id}/cancel":{"post":{"tags":["evaluation-editor"],"summary":"Cancel Editor Job Route","description":"Stop a running job (rows staged so far stay reviewable) or discard one awaiting review.","operationId":"cancel_editor_job_route_eval_ops_editor_jobs__job_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Editor job id.","title":"Job Id"},"description":"Editor job id."}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditorJobResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/eval-ops/custom-datasets/{dataset_id}/previews/plan":{"post":{"tags":["evaluation-editor"],"summary":"Plan Preview Route","description":"What a Try would run: rows, metrics, skipped metrics and why, calls, time, cost, agent preflight.","operationId":"plan_preview_route_eval_ops_custom_datasets__dataset_id__previews_plan_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation (custom dataset) id.","title":"Dataset Id"},"description":"Evaluation (custom dataset) id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewPlanIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewPlanResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/eval-ops/custom-datasets/{dataset_id}/previews":{"post":{"tags":["evaluation-editor"],"summary":"Start Preview Route","description":"Run a draft snapshot in the caller's workbench experiment; poll the run's samples for results.","operationId":"start_preview_route_eval_ops_custom_datasets__dataset_id__previews_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation (custom dataset) id.","title":"Dataset Id"},"description":"Evaluation (custom dataset) id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewStartIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}},"get":{"tags":["evaluation-editor"],"summary":"List Previews Route","description":"The caller's unexpired previews of this evaluation (never another user's).","operationId":"list_previews_route_eval_ops_custom_datasets__dataset_id__previews_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation (custom dataset) id.","title":"Dataset Id"},"description":"Evaluation (custom dataset) id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewListResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}},"delete":{"tags":["evaluation-editor"],"summary":"Clear Previews Route","description":"Clear the caller's previews of this evaluation: samples in budeval, evaluations, runs, snapshots.","operationId":"clear_previews_route_eval_ops_custom_datasets__dataset_id__previews_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation (custom dataset) id.","title":"Dataset Id"},"description":"Evaluation (custom dataset) id."}],"responses":{"204":{"description":"Successful Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/eval-ops/metrics":{"get":{"tags":["evaluation-metrics"],"summary":"List Metrics","description":"Built-ins (the catalog) and custom metrics; with ``fits_shape`` each item says whether it fits.","operationId":"list_metrics_eval_ops_metrics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(single|multi)$"},{"type":"null"}],"title":"Scope"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(builtin|custom)$"},{"type":"null"}],"title":"Source"}},{"name":"group","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":24},{"type":"null"}],"title":"Group"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Kind"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"fits_shape","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(single|multi)$"},{"type":"null"}],"title":"Fits Shape"}},{"name":"fits_fields","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"description":"Comma-separated field toggles.","title":"Fits Fields"},"description":"Comma-separated field toggles."},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricsListResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"name_taken / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"invalid_metric with errors[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}},"post":{"tags":["evaluation-metrics"],"summary":"Create Metric","description":"A custom metric and its version 1; a taken name is a 409 ``name_taken`` with ``suggested_name``.","operationId":"create_metric_eval_ops_metrics_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricCreateIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricVersionResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"name_taken / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"invalid_metric with errors[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/eval-ops/metrics/steps-preview":{"post":{"tags":["evaluation-metrics"],"summary":"Preview Steps","description":"G-Eval steps written by the chosen judge from the criteria (editable before saving).","operationId":"preview_steps_eval_ops_metrics_steps_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepsPreviewIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepsPreviewResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"name_taken / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"invalid_metric with errors[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/eval-ops/metrics/validate":{"post":{"tags":["evaluation-metrics"],"summary":"Validate Metric","description":"The evaluation service builds the instance as a run would (``checked: false`` when it cannot).","operationId":"validate_metric_eval_ops_metrics_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"409":{"description":"name_taken / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"invalid_metric with errors[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/eval-ops/metrics/calibration-jobs/{job_id}":{"get":{"tags":["evaluation-metrics"],"summary":"Get Calibration Job","description":"A calibration job, brought up to date from the evaluation service on read.","operationId":"get_calibration_job_eval_ops_metrics_calibration_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Editor job id of a calibration above 50 examples.","title":"Job Id"},"description":"Editor job id of a calibration above 50 examples."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricJobResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"name_taken / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"invalid_metric with errors[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/eval-ops/metrics/{metric_id}":{"get":{"tags":["evaluation-metrics"],"summary":"Get Metric","description":"How it's scored, fields, defaults, versions, latest calibration per version, used in.","operationId":"get_metric_eval_ops_metrics__metric_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"metric_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$","description":"A built-in's catalog key or a custom metric's id.","title":"Metric Id"},"description":"A built-in's catalog key or a custom metric's id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"name_taken / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"invalid_metric with errors[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}},"patch":{"tags":["evaluation-metrics"],"summary":"Patch Metric","description":"Rename, describe or regroup a custom metric (no new version).","operationId":"patch_metric_eval_ops_metrics__metric_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"metric_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$","description":"A built-in's catalog key or a custom metric's id.","title":"Metric Id"},"description":"A built-in's catalog key or a custom metric's id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricPatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"name_taken / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"invalid_metric with errors[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/eval-ops/metrics/{metric_id}/versions":{"post":{"tags":["evaluation-metrics"],"summary":"Add Metric Version","description":"The next version; evaluations keep the version they pin until \"Update to vN\".","operationId":"add_metric_version_eval_ops_metrics__metric_id__versions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"metric_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$","description":"A built-in's catalog key or a custom metric's id.","title":"Metric Id"},"description":"A built-in's catalog key or a custom metric's id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricVersionIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricVersionResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"name_taken / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"invalid_metric with errors[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/eval-ops/metrics/{metric_id}/duplicate":{"post":{"tags":["evaluation-metrics"],"summary":"Duplicate Metric","description":"A built-in becomes a preset (its key with saved options); a custom metric is copied.","operationId":"duplicate_metric_eval_ops_metrics__metric_id__duplicate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"metric_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$","description":"A built-in's catalog key or a custom metric's id.","title":"Metric Id"},"description":"A built-in's catalog key or a custom metric's id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricDuplicateIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricVersionResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"name_taken / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"invalid_metric with errors[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/eval-ops/metrics/{metric_id}/convert-to-rule":{"post":{"tags":["evaluation-metrics"],"summary":"Convert Metric To Rule","description":"A Rule seeded from a built-in's description and fields (steps generated when a judge is given).","operationId":"convert_metric_to_rule_eval_ops_metrics__metric_id__convert_to_rule_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"metric_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$","description":"A built-in's catalog key or a custom metric's id.","title":"Metric Id"},"description":"A built-in's catalog key or a custom metric's id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricConvertIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricVersionResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"name_taken / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"invalid_metric with errors[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/eval-ops/metrics/{metric_id}/archive":{"post":{"tags":["evaluation-metrics"],"summary":"Archive Metric","description":"Hidden from the library; evaluations that pin it keep running it.","operationId":"archive_metric_eval_ops_metrics__metric_id__archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"metric_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$","description":"A built-in's catalog key or a custom metric's id.","title":"Metric Id"},"description":"A built-in's catalog key or a custom metric's id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"name_taken / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"invalid_metric with errors[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/eval-ops/metrics/{metric_id}/restore":{"post":{"tags":["evaluation-metrics"],"summary":"Restore Metric","description":"Back in the library.","operationId":"restore_metric_eval_ops_metrics__metric_id__restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"metric_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$","description":"A built-in's catalog key or a custom metric's id.","title":"Metric Id"},"description":"A built-in's catalog key or a custom metric's id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"name_taken / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"invalid_metric with errors[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/eval-ops/metrics/{metric_id}/used-in":{"get":{"tags":["evaluation-metrics"],"summary":"Metric Used In","description":"Evaluations using the metric (those the caller may see) and the version each pins.","operationId":"metric_used_in_eval_ops_metrics__metric_id__used_in_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"metric_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$","description":"A built-in's catalog key or a custom metric's id.","title":"Metric Id"},"description":"A built-in's catalog key or a custom metric's id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsedInResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"name_taken / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"invalid_metric with errors[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/eval-ops/metrics/{metric_id}/versions/{version}/calibration/examples":{"get":{"tags":["evaluation-metrics"],"summary":"List Calibration Examples","description":"The version's labelled examples: the metric's owner or an admin; production examples only for members of\nthe project they came from (``hidden`` counts the others, S-1).","operationId":"list_calibration_examples_eval_ops_metrics__metric_id__versions__version__calibration_examples_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"metric_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$","description":"A built-in's catalog key or a custom metric's id.","title":"Metric Id"},"description":"A built-in's catalog key or a custom metric's id."},{"name":"version","in":"path","required":true,"schema":{"type":"integer","minimum":1,"description":"Metric version number.","title":"Version"},"description":"Metric version number."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalibrationExamplesResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"name_taken / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"invalid_metric with errors[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}},"post":{"tags":["evaluation-metrics"],"summary":"Add Calibration Examples","description":"Add examples: ``examples[{row, output, human}]`` or ``from_sample`` (a run sample's row and output).","operationId":"add_calibration_examples_eval_ops_metrics__metric_id__versions__version__calibration_examples_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"metric_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$","description":"A built-in's catalog key or a custom metric's id.","title":"Metric Id"},"description":"A built-in's catalog key or a custom metric's id."},{"name":"version","in":"path","required":true,"schema":{"type":"integer","minimum":1,"description":"Metric version number.","title":"Version"},"description":"Metric version number."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalibrationExamplesIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalibrationExamplesResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"name_taken / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"invalid_metric with errors[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/eval-ops/metrics/{metric_id}/versions/{version}/calibration/examples/{example_id}":{"delete":{"tags":["evaluation-metrics"],"summary":"Delete Calibration Example","operationId":"delete_calibration_example_eval_ops_metrics__metric_id__versions__version__calibration_examples__example_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"metric_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$","description":"A built-in's catalog key or a custom metric's id.","title":"Metric Id"},"description":"A built-in's catalog key or a custom metric's id."},{"name":"version","in":"path","required":true,"schema":{"type":"integer","minimum":1,"description":"Metric version number.","title":"Version"},"description":"Metric version number."},{"name":"example_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Calibration example id.","title":"Example Id"},"description":"Calibration example id."}],"responses":{"204":{"description":"Successful Response"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"name_taken / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"invalid_metric with errors[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}}}}},"/eval-ops/metrics/{metric_id}/versions/{version}/calibrate":{"post":{"tags":["evaluation-metrics"],"summary":"Calibrate Metric","description":"Score the examples and store agreement: ≤50 synchronously (200), more as a job (202 ``{job}``).","operationId":"calibrate_metric_eval_ops_metrics__metric_id__versions__version__calibrate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"metric_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.:-]+$","description":"A built-in's catalog key or a custom metric's id.","title":"Metric Id"},"description":"A built-in's catalog key or a custom metric's id."},{"name":"version","in":"path","required":true,"schema":{"type":"integer","minimum":1,"description":"Metric version number.","title":"Version"},"description":"Metric version number."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalibrateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalibrationResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"description":"name_taken / archived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"invalid_metric with errors[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricJobResponse"}}},"description":"Accepted"}}}},"/eval-ops/custom-datasets/{dataset_id}/documents":{"post":{"tags":["evaluation-editor"],"summary":"Upload Documents Route","description":"Upload documents; MD / TXT / HTML are ``ready`` at once, PDF / DOCX ``processing`` until buddoc converts them.\n\n422 ``document_rejected`` with ``file`` and ``reason`` (``type``, ``content``, ``too_large``,\n``too_many_documents``, ``empty``, ``no_text``) — nothing is stored then.","operationId":"upload_documents_route_eval_ops_custom_datasets__dataset_id__documents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation (custom dataset) id.","title":"Dataset Id"},"description":"Evaluation (custom dataset) id."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_documents_route_eval_ops_custom_datasets__dataset_id__documents_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"}}},"get":{"tags":["evaluation-editor"],"summary":"List Documents Route","description":"The evaluation's documents with purpose, pages, size, status and a failed conversion's reason.","operationId":"list_documents_route_eval_ops_custom_datasets__dataset_id__documents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation (custom dataset) id.","title":"Dataset Id"},"description":"Evaluation (custom dataset) id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"}}}},"/eval-ops/custom-datasets/{dataset_id}/documents/{document_id}":{"patch":{"tags":["evaluation-editor"],"summary":"Patch Document Route","description":"Mark a document as reference material or as requirements.","operationId":"patch_document_route_eval_ops_custom_datasets__dataset_id__documents__document_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation (custom dataset) id.","title":"Dataset Id"},"description":"Evaluation (custom dataset) id."},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Document id.","title":"Document Id"},"description":"Document id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"}}},"delete":{"tags":["evaluation-editor"],"summary":"Delete Document Route","description":"Delete a document and both its stored objects (409 ``document_in_use`` while a generation reads it).","operationId":"delete_document_route_eval_ops_custom_datasets__dataset_id__documents__document_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation (custom dataset) id.","title":"Dataset Id"},"description":"Evaluation (custom dataset) id."},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Document id.","title":"Document Id"},"description":"Document id."}],"responses":{"204":{"description":"Successful Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"}}}},"/eval-ops/custom-datasets/{dataset_id}/generate/estimate":{"post":{"tags":["evaluation-editor"],"summary":"Estimate Generation Route","description":"Generator and embedding calls, tokens and cost of a generation, before it runs (``estimated: true``).","operationId":"estimate_generation_route_eval_ops_custom_datasets__dataset_id__generate_estimate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation (custom dataset) id.","title":"Dataset Id"},"description":"Evaluation (custom dataset) id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateEstimateResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"}}}},"/eval-ops/custom-datasets/{dataset_id}/generate":{"post":{"tags":["evaluation-editor"],"summary":"Start Generation Route","description":"Start a generation job in budeval; poll ``GET /eval-ops/editor-jobs/{job_id}`` (it syncs from budeval).\n\n422 ``invalid_params`` with ``errors[{path, message}]``; 400 ``acknowledgement_required`` when a\nfixed-conversation reference agent has side-effecting tools; 409 ``documents_not_ready``.","operationId":"start_generation_route_eval_ops_custom_datasets__dataset_id__generate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation (custom dataset) id.","title":"Dataset Id"},"description":"Evaluation (custom dataset) id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateJobResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"}}}},"/eval-ops/custom-datasets/{dataset_id}/requirements":{"get":{"tags":["evaluation-editor"],"summary":"Evaluation Requirements Route","description":"The requirements the evaluation's accepted rows were written for, for \"N of M requirements covered\".\n\nA requirement counts as covered when a live row carries its id in ``metadata.requirement_id``.","operationId":"evaluation_requirements_route_eval_ops_custom_datasets__dataset_id__requirements_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation (custom dataset) id.","title":"Dataset Id"},"description":"Evaluation (custom dataset) id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequirementsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"}}}},"/eval-ops/editor-jobs/{job_id}/requirements":{"get":{"tags":["evaluation-editor"],"summary":"Get Requirements Route","description":"A requirements job's extracted requirements (untestable ones with the reason, DEG-5).","operationId":"get_requirements_route_eval_ops_editor_jobs__job_id__requirements_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Editor job id.","title":"Job Id"},"description":"Editor job id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequirementsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"}}},"put":{"tags":["evaluation-editor"],"summary":"Review Requirements Route","description":"Untick, reword, re-kind or merge requirements; ``continue: true`` starts writing the cases.","operationId":"review_requirements_route_eval_ops_editor_jobs__job_id__requirements_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Editor job id.","title":"Job Id"},"description":"Editor job id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequirementsReviewIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequirementsResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"}}}},"/eval-ops/editor-jobs/{job_id}/regenerate":{"post":{"tags":["evaluation-editor"],"summary":"Regenerate Route","description":"Run a generation again, or draw another import sample: a new job, the same params, a new seed.","operationId":"regenerate_route_eval_ops_editor_jobs__job_id__regenerate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Editor job id.","title":"Job Id"},"description":"Editor job id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenerateIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateJobResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"}}}},"/eval-ops/custom-datasets/{dataset_id}/import/count":{"post":{"tags":["evaluation-editor"],"summary":"Count Import Route","description":"Matching and de-duplicated counts, and whether the bodies are available (with the reason, DEG-9).","operationId":"count_import_route_eval_ops_custom_datasets__dataset_id__import_count_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation (custom dataset) id.","title":"Dataset Id"},"description":"Evaluation (custom dataset) id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportCountResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"}}}},"/eval-ops/custom-datasets/{dataset_id}/import":{"post":{"tags":["evaluation-editor"],"summary":"Start Import Route","description":"Import a sample of production traffic into staging (masked by default); poll the job.\n\nThe first import pins the evaluation to the source project (409 ``project_mismatch`` for\nanother); 403 ``project_access`` outside the source project; 400 ``unmasked_requires_ack``.","operationId":"start_import_route_eval_ops_custom_datasets__dataset_id__import_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Evaluation (custom dataset) id.","title":"Dataset Id"},"description":"Evaluation (custom dataset) id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportJobResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Bad Gateway"}}}},"/billing/plans":{"get":{"tags":["billing"],"summary":"Get Billing Plans","description":"Get all available billing plans.","operationId":"get_billing_plans_billing_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_List_BillingPlanSchema__"}}}}}}},"/billing/current":{"get":{"tags":["billing"],"summary":"Get Current Usage","description":"Get current billing period usage for the authenticated user.","operationId":"get_current_usage_billing_current_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_CurrentUsageSchema_"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/user/{user_id}":{"get":{"tags":["billing"],"summary":"Get User Billing Info","description":"Get billing information for a specific user (admin only).","operationId":"get_user_billing_info_billing_user__user_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_UserBillingSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/user/{user_id}/usage":{"get":{"tags":["billing"],"summary":"Get User Current Usage","description":"Get current billing period usage for a specific user (admin only).","operationId":"get_user_current_usage_billing_user__user_id__usage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_CurrentUsageSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/history":{"get":{"tags":["billing"],"summary":"Get Billing History","description":"Get billing cycle history for the current user.","operationId":"get_billing_history_billing_history_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_List_UserBillingSchema__"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["billing"],"summary":"Get Usage History","description":"Get historical usage data for the authenticated user.","operationId":"get_usage_history_billing_history_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageHistoryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/check-limits":{"get":{"tags":["billing"],"summary":"Check Usage Limits","description":"Check if user has exceeded usage limits.","operationId":"check_usage_limits_billing_check_limits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/setup":{"post":{"tags":["billing"],"summary":"Setup User Billing","description":"Set up billing for a user (admin only).","operationId":"setup_user_billing_billing_setup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserBillingRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_UserBillingSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/plan":{"put":{"tags":["billing"],"summary":"Update Billing Plan","description":"Update a user's billing plan and/or their custom quotas (admin only).\n\nTwo things are deliberately lenient here, because the only caller is the admin\n\"User Usage\" drawer, which edits quotas and never picks a plan:\n\n* ``billing_plan_id`` is optional. Omitted, the user stays on the plan they are\n  already on (or lands on the default Free plan if they have none).\n* A user with no ``user_billing`` row gets one created rather than a 404. Several\n  paths mint a CLIENT without billing — an ADMIN demoted to CLIENT, a registration\n  whose best-effort plan assignment failed, an invite adopted at first login — and\n  a 404 there is unclearable from the UI: the admin cannot create the row either.\n\nQuotas follow \"only what was sent is written\": a field the caller omitted is left\nalone, an explicit ``null`` clears the override back to the plan default.","operationId":"update_billing_plan_billing_plan_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBillingPlanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_UserBillingSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/alerts":{"get":{"tags":["billing"],"summary":"Get Billing Alerts","description":"Get all billing alerts for the authenticated user.","operationId":"get_billing_alerts_billing_alerts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_List_BillingAlertSchema__"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["billing"],"summary":"Create Billing Alert","description":"Create a new billing alert for the authenticated user.","operationId":"create_billing_alert_billing_alerts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBillingAlertRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_BillingAlertSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/alerts/{alert_id}":{"put":{"tags":["billing"],"summary":"Update Billing Alert Status","description":"Enable or disable a billing alert for the authenticated user.","operationId":"update_billing_alert_status_billing_alerts__alert_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Alert Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBillingAlertStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_BillingAlertSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["billing"],"summary":"Delete Billing Alert","description":"Delete a billing alert for the authenticated user.","operationId":"delete_billing_alert_billing_alerts__alert_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Alert Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/check-alerts":{"post":{"tags":["billing"],"summary":"Check And Trigger Alerts","description":"Check and trigger billing alerts for the authenticated user.","operationId":"check_and_trigger_alerts_billing_check_alerts_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/notification-preferences":{"put":{"tags":["billing"],"summary":"Update Notification Preferences","description":"Update notification preferences for the authenticated user.","operationId":"update_notification_preferences_billing_notification_preferences_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNotificationPreferencesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_UserBillingSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/reset/{user_id}":{"post":{"tags":["billing"],"summary":"Reset User Usage","description":"Reset a user's usage (admin only).","operationId":"reset_user_usage_billing_reset__user_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"reason","in":"query","required":false,"schema":{"type":"string","default":"Manual reset","title":"Reason"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/reset-all":{"post":{"tags":["billing"],"summary":"Reset All Users Usage","description":"Reset all users' usage (admin only).","operationId":"reset_all_users_usage_billing_reset_all_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"reason","in":"query","required":false,"schema":{"type":"string","default":"System reset","title":"Reason"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/reset-expired":{"post":{"tags":["billing"],"summary":"Reset Expired Cycles","description":"Reset expired billing cycles (admin only).","operationId":"reset_expired_cycles_billing_reset_expired_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/history/{user_id}":{"get":{"tags":["billing"],"summary":"Get User Billing History","description":"Get billing cycle history for a specific user (admin only).","operationId":"get_user_billing_history_billing_history__user_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_List_UserBillingSchema__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/history/period":{"get":{"tags":["billing"],"summary":"Get Billing For Period","description":"Get billing record that was active during a specific date.","operationId":"get_billing_for_period_billing_history_period_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"date","in":"query","required":true,"schema":{"type":"string","title":"Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_UserBillingSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/users-with-billing":{"get":{"tags":["billing"],"summary":"Get Users With Active Billing","description":"Get all user IDs that have active billing records (internal service use only).\n\nThis endpoint is intended for use by internal services (like budmetrics)\nfor synchronization purposes. It requires admin privileges.","operationId":"get_users_with_active_billing_billing_users_with_billing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleResponse_List_str__"}}}}},"security":[{"HTTPBearer":[]}]}},"/guardrails/probes/tags":{"get":{"tags":["Guardrails"],"summary":"List Probe Tags","description":"Search guardrail tags by name with pagination","operationId":"list_probe_tags_guardrails_probes_tags_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successfully searched tags by name","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TagsListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Probe Tags Guardrails Probes Tags Get","$ref":"#/components/schemas/TagsListResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/probes":{"get":{"tags":["Guardrails"],"summary":"List All Probes","operationId":"list_all_probes_guardrails_probes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Provider Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GuardrailStatusEnum"},{"type":"null"}],"title":"Status"}},{"name":"probe_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ProbeTypeEnum"},{"type":"null"}],"title":"Probe Type"}},{"name":"scanner_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ScannerTypeEnum"},{"type":"null"}],"title":"Scanner Type"}},{"name":"include_governance","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Governance"}},{"name":"profile_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GuardrailProfileTypeEnum"},{"type":"null"}],"title":"Profile Type"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailProbePaginatedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/probe":{"post":{"tags":["Guardrails"],"summary":"Create Probe","description":"Create a new guardrail probe.","operationId":"create_probe_guardrails_probe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailProbeCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailProbeDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/guardrails/probe/{probe_id}":{"get":{"tags":["Guardrails"],"summary":"Retrieve Probe","description":"Retrieve details of a probe by its ID.","operationId":"retrieve_probe_guardrails_probe__probe_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"probe_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Probe Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailProbeDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Guardrails"],"summary":"Edit Probe","description":"Update a probe.","operationId":"edit_probe_guardrails_probe__probe_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"probe_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Probe Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailProbeUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailProbeDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Guardrails"],"summary":"Delete Probe","description":"Delete a probe.","operationId":"delete_probe_guardrails_probe__probe_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"probe_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Probe Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/probe/{probe_id}/rules":{"get":{"tags":["Guardrails"],"summary":"Get Probe Rules","description":"Get paginated rules for a specific probe.","operationId":"get_probe_rules_guardrails_probe__probe_id__rules_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"probe_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Probe Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GuardrailStatusEnum"},{"type":"null"}],"title":"Status"}},{"name":"provider_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Provider Id"}},{"name":"probe_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ProbeTypeEnum"},{"type":"null"}],"title":"Probe Type"}},{"name":"scanner_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ScannerTypeEnum"},{"type":"null"}],"title":"Scanner Type"}},{"name":"include_governance","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Governance"}},{"name":"profile_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GuardrailProfileTypeEnum"},{"type":"null"}],"title":"Profile Type"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailRulePaginatedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/custom-probe":{"post":{"tags":["Guardrails"],"summary":"Create Custom Probe","description":"Create a custom model-based probe with a single rule","operationId":"create_custom_probe_guardrails_custom_probe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailCustomProbeCreate"}}},"required":true},"responses":{"201":{"description":"Successfully created custom probe","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse","anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Create Custom Probe Guardrails Custom Probe Post"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/guardrails/custom-probes":{"get":{"tags":["Guardrails"],"summary":"List Custom Probes","description":"List custom probes created by the current user","operationId":"list_custom_probes_guardrails_custom_probes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successfully listed custom probes","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GuardrailCustomProbePaginatedResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Custom Probes Guardrails Custom Probes Get","$ref":"#/components/schemas/GuardrailCustomProbePaginatedResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/custom-probe/{probe_id}":{"get":{"tags":["Guardrails"],"summary":"Get Custom Probe","description":"Retrieve a custom probe by ID (user must be owner)","operationId":"get_custom_probe_guardrails_custom_probe__probe_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"probe_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Probe Id"}}],"responses":{"200":{"description":"Successfully retrieved custom probe","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GuardrailCustomProbeDetailResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Custom Probe Guardrails Custom Probe  Probe Id  Get","$ref":"#/components/schemas/GuardrailCustomProbeDetailResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"404":{"description":"Custom probe not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"403":{"description":"User not authorized to access this probe","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Guardrails"],"summary":"Update Custom Probe","description":"Update a custom probe (user must be owner)","operationId":"update_custom_probe_guardrails_custom_probe__probe_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"probe_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Probe Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailCustomProbeUpdate"}}}},"responses":{"200":{"description":"Successfully updated custom probe","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Update Custom Probe Guardrails Custom Probe  Probe Id  Put","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Guardrails"],"summary":"Delete Custom Probe","description":"Delete a custom probe (soft delete, user must be owner)","operationId":"delete_custom_probe_guardrails_custom_probe__probe_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"probe_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Probe Id"}}],"responses":{"200":{"description":"Successfully deleted custom probe","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Custom Probe Guardrails Custom Probe  Probe Id  Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/rule/{rule_id}":{"get":{"tags":["Guardrails"],"summary":"Retrieve Rule","description":"Retrieve details of a rule by its ID.","operationId":"retrieve_rule_guardrails_rule__rule_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailRuleDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Guardrails"],"summary":"Edit Rule","description":"Update a rule.","operationId":"edit_rule_guardrails_rule__rule_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailRuleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailRuleDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Guardrails"],"summary":"Delete Rule","description":"Delete a rule.","operationId":"delete_rule_guardrails_rule__rule_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/rule":{"post":{"tags":["Guardrails"],"summary":"Create Rule","description":"Create a new rule.","operationId":"create_rule_guardrails_rule_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailRuleCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailRuleDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/guardrails/profiles/tags":{"get":{"tags":["Guardrails"],"summary":"List Profile Tags","description":"Search guardrail profile tags by name with pagination","operationId":"list_profile_tags_guardrails_profiles_tags_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successfully searched tags by name","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TagsListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Profile Tags Guardrails Profiles Tags Get","$ref":"#/components/schemas/TagsListResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/profiles":{"get":{"tags":["Guardrails"],"summary":"List All Profiles","description":"List all guardrail profiles with pagination.","operationId":"list_all_profiles_guardrails_profiles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by project ID","title":"Project Id"},"description":"Filter by project ID"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GuardrailStatusEnum"},{"type":"null"}],"title":"Status"}},{"name":"provider_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Provider Id"}},{"name":"probe_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ProbeTypeEnum"},{"type":"null"}],"title":"Probe Type"}},{"name":"scanner_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ScannerTypeEnum"},{"type":"null"}],"title":"Scanner Type"}},{"name":"include_governance","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Governance"}},{"name":"profile_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GuardrailProfileTypeEnum"},{"type":"null"}],"title":"Profile Type"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailProfilePaginatedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/profile/{profile_id}":{"get":{"tags":["Guardrails"],"summary":"Retrieve Profile","description":"Retrieve details of a profile by its ID.","operationId":"retrieve_profile_guardrails_profile__profile_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailProfileDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Guardrails"],"summary":"Update Profile With Probes","description":"Update a guardrail profile with probe selections.\n\nThis endpoint allows updating both profile fields and probe/rule selections.\nProbe selections can:\n- Add new probes to the profile\n- Remove existing probes from the profile\n- Update probe-specific overrides (severity_threshold, guard_types)\n- Update rule-specific overrides within each probe","operationId":"update_profile_with_probes_guardrails_profile__profile_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailProfileUpdateWithProbes"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailProfileDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Guardrails"],"summary":"Delete Profile","description":"Delete (soft delete) a guardrail profile.","operationId":"delete_profile_guardrails_profile__profile_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/profile/{profile_id}/probes":{"get":{"tags":["Guardrails"],"summary":"Get Profile Probes","description":"Get paginated probes for a specific profile.","operationId":"get_profile_probes_guardrails_profile__profile_id__probes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GuardrailStatusEnum"},{"type":"null"}],"title":"Status"}},{"name":"provider_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Provider Id"}},{"name":"probe_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ProbeTypeEnum"},{"type":"null"}],"title":"Probe Type"}},{"name":"scanner_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ScannerTypeEnum"},{"type":"null"}],"title":"Scanner Type"}},{"name":"include_governance","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Governance"}},{"name":"profile_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GuardrailProfileTypeEnum"},{"type":"null"}],"title":"Profile Type"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailProbePaginatedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/profile/{profile_id}/probe/{probe_id}/rules":{"get":{"tags":["Guardrails"],"summary":"Get Profile Probe Rules","description":"Get paginated rules for a specific probe in a profile with status overrides.","operationId":"get_profile_probe_rules_guardrails_profile__profile_id__probe__probe_id__rules_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Id"}},{"name":"probe_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Probe Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GuardrailStatusEnum"},{"type":"null"}],"title":"Status"}},{"name":"provider_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Provider Id"}},{"name":"probe_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ProbeTypeEnum"},{"type":"null"}],"title":"Probe Type"}},{"name":"scanner_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ScannerTypeEnum"},{"type":"null"}],"title":"Scanner Type"}},{"name":"include_governance","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Governance"}},{"name":"profile_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GuardrailProfileTypeEnum"},{"type":"null"}],"title":"Profile Type"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailRulePaginatedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/profile/{profile_id}/deployments":{"get":{"tags":["Guardrails"],"summary":"List All Profile Deployments","description":"List all guardrail deployments with pagination.","operationId":"list_all_profile_deployments_guardrails_profile__profile_id__deployments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailDeploymentPaginatedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/governance-deployments":{"get":{"tags":["Guardrails"],"summary":"List Governance Deployments","description":"List a project's ACTIVE governance deployments for the agent Attach-Policy picker.\n\nOnly ``RUNNING`` governance deployments in ``project_id`` are returned, each enriched with the\n``agentmesh_policy`` rule it serves (``governance_policy_id`` / name / status). ``name`` is the\n``/v1/governance`` model addressing the deployment.","operationId":"list_governance_deployments_guardrails_governance_deployments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Project whose active governance deployments to list","title":"Project Id"},"description":"Project whose active governance deployments to list"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GovernanceDeploymentPaginatedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/deploy-workflow":{"post":{"tags":["Guardrails"],"summary":"Add Guardrail Deployment Workflow","description":"Add guardrail deployment workflow","operationId":"add_guardrail_deployment_workflow_guardrails_deploy_workflow_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailDeploymentWorkflowRequest"}}},"required":true},"responses":{"200":{"description":"Successfully add guardrail deployment workflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse","anyOf":[{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Add Guardrail Deployment Workflow Guardrails Deploy Workflow Post"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/guardrails/custom-probe-workflow":{"post":{"tags":["Guardrails"],"summary":"Add Custom Probe Workflow","description":"Add custom probe workflow","operationId":"add_custom_probe_workflow_guardrails_custom_probe_workflow_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomProbeWorkflowRequest"}}},"required":true},"responses":{"200":{"description":"Successfully add custom probe workflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse","anyOf":[{"$ref":"#/components/schemas/RetrieveWorkflowDataResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Add Custom Probe Workflow Guardrails Custom Probe Workflow Post"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/guardrails/deployment/{deployment_id}":{"get":{"tags":["Guardrails"],"summary":"Retrieve Deployment","description":"Retrieve details of a deployment by its ID.","operationId":"retrieve_deployment_guardrails_deployment__deployment_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailDeploymentDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Guardrails"],"summary":"Edit Deployment","description":"Update a guardrail deployment.\n\nOnly the following fields can be updated:\n- name\n- description\n- severity_threshold\n- guard_types","operationId":"edit_deployment_guardrails_deployment__deployment_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deployment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailDeploymentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailDeploymentDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Guardrails"],"summary":"Delete Deployment","description":"Delete (soft delete) a guardrail deployment.","operationId":"delete_deployment_guardrails_deployment__deployment_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/deployment/{deployment_id}/progress":{"get":{"tags":["Guardrails"],"summary":"Get Deployment Progress","description":"Get progress of a guardrail deployment via BudPipeline","operationId":"get_deployment_progress_guardrails_deployment__deployment_id__progress_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deployment Id"}},{"name":"detail","in":"query","required":false,"schema":{"type":"string","description":"Detail level: summary, steps, full","default":"summary","title":"Detail"},"description":"Detail level: summary, steps, full"}],"responses":{"200":{"description":"Successfully retrieved deployment progress","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Deployment Progress Guardrails Deployment  Deployment Id  Progress Get","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"500":{"description":"Service is unavailable due to server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"400":{"description":"Service is unavailable due to client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/governance-policies":{"post":{"tags":["Guardrails"],"summary":"Create Governance Policy","description":"Create an agent-governance policy (starts in draft)","operationId":"create_governance_policy_guardrails_governance_policies_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GovernancePolicyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GovernancePolicyDetailResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Create Governance Policy Guardrails Governance Policies Post","$ref":"#/components/schemas/GovernancePolicyDetailResponse"}}}},"400":{"description":"Client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Guardrails"],"summary":"List Governance Policies","description":"List all agent-governance policies (shared catalog: seeded presets + every user's custom)","operationId":"list_governance_policies_guardrails_governance_policies_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Search"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"governance_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/GovernancePolicyStatusEnum"},{"type":"null"}],"title":"Governance Status"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc","title":"Order By"},"description":"Comma-separated list of fields. Example: field1,-field2,field3:asc,field4:desc"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GovernancePolicyListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Governance Policies Guardrails Governance Policies Get","$ref":"#/components/schemas/GovernancePolicyListResponse"}}}},"400":{"description":"Client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/governance-policies/{policy_id}":{"get":{"tags":["Guardrails"],"summary":"Get Governance Policy","description":"Get a single agent-governance policy","operationId":"get_governance_policy_guardrails_governance_policies__policy_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Policy Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GovernancePolicyDetailResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Get Governance Policy Guardrails Governance Policies  Policy Id  Get","$ref":"#/components/schemas/GovernancePolicyDetailResponse"}}}},"400":{"description":"Client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Guardrails"],"summary":"Update Governance Policy","description":"Update a governance policy (body edit mints a version; status change is lifecycle-gated)","operationId":"update_governance_policy_guardrails_governance_policies__policy_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Policy Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GovernancePolicyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GovernancePolicyDetailResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Update Governance Policy Guardrails Governance Policies  Policy Id  Put","$ref":"#/components/schemas/GovernancePolicyDetailResponse"}}}},"400":{"description":"Client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Guardrails"],"summary":"Delete Governance Policy","description":"Soft-delete a governance policy","operationId":"delete_governance_policy_guardrails_governance_policies__policy_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Policy Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Delete Governance Policy Guardrails Governance Policies  Policy Id  Delete","$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}}},"400":{"description":"Client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/governance-policies/{policy_id}/bind-agent":{"post":{"tags":["Guardrails"],"summary":"Bind Governance Policy To Agent","description":"Attach a governance policy to an agent with a per-agent settings overlay","operationId":"bind_governance_policy_to_agent_guardrails_governance_policies__policy_id__bind_agent_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Policy Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GovernanceBindingCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GovernanceBindingDetailResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Bind Governance Policy To Agent Guardrails Governance Policies  Policy Id  Bind Agent Post","$ref":"#/components/schemas/GovernanceBindingDetailResponse"}}}},"400":{"description":"Client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/agents/{prompt_id}/governance-policies":{"get":{"tags":["Guardrails"],"summary":"List Agent Governance Bindings","description":"List an agent's governance-policy bindings (Agent Details policies tab)","operationId":"list_agent_governance_bindings_guardrails_agents__prompt_id__governance_policies_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Prompt Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":10,"title":"Limit"}},{"name":"enabled","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},{"name":"policy_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GovernanceBindingListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Agent Governance Bindings Guardrails Agents  Prompt Id  Governance Policies Get","$ref":"#/components/schemas/GovernanceBindingListResponse"}}}},"400":{"description":"Client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/guardrails/governance-policies/bindings/{binding_id}":{"patch":{"tags":["Guardrails"],"summary":"Update Governance Binding","description":"Partially update a binding's mutable overlay fields (identity fields are immutable)","operationId":"update_governance_binding_guardrails_governance_policies_bindings__binding_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"binding_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Binding Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Patch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GovernanceBindingDetailResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Update Governance Binding Guardrails Governance Policies Bindings  Binding Id  Patch","$ref":"#/components/schemas/GovernanceBindingDetailResponse"}}}},"400":{"description":"Client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Guardrails"],"summary":"Delete Governance Binding","description":"Hard-delete a binding (the policy stops applying to the agent)","operationId":"delete_governance_binding_guardrails_governance_policies_bindings__binding_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"binding_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Binding Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}}},"204":{"description":"Binding deleted"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/governance/reserved-variable-names":{"get":{"tags":["Governance"],"summary":"Get Reserved Variable Names","description":"Return the reserved governance variable names + namespaces (FR-CTX-110 / FR-DATA-060).\n\nRead-only constant surface (no permission decorator): any active user may read it so\nthe budadmin inline validator can mirror the single source. `version` changes iff the\nreserved set changes.","operationId":"get_reserved_variable_names_governance_reserved_variable_names_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservedVariableNamesResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/governance/escalations/resolve-target":{"post":{"tags":["Governance"],"summary":"Resolve Escalation Target","description":"Resolve an escalation_target to its concrete live approver user-ids (internal, FR-DATA-210)","operationId":"resolve_escalation_target_governance_escalations_resolve_target_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"User ID initiating the workflow","title":"User Id"},"description":"User ID initiating the workflow"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveEscalationTargetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResolveEscalationTargetResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Resolve Escalation Target Governance Escalations Resolve Target Post","$ref":"#/components/schemas/ResolveEscalationTargetResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/escalations":{"get":{"tags":["Governance Escalations"],"summary":"List Escalations","description":"List escalation/notify inbox items (FR-ESC-200); default target=me.","operationId":"list_escalations_escalations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"pending","title":"Status"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","default":"escalation","title":"Kind"}},{"name":"target","in":"query","required":false,"schema":{"type":"string","default":"me","title":"Target"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"}},{"name":"group_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Group Id"}},{"name":"prompt_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Prompt Id"}},{"name":"prompt_version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Version"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EscalationListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Escalations Escalations Get","$ref":"#/components/schemas/EscalationListResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/escalations/notifications":{"get":{"tags":["Governance Escalations"],"summary":"List Notifications","description":"List HOTL notify events for one agent version (requirement 3.c); project-scoped.","operationId":"list_notifications_escalations_notifications_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"prompt_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Prompt Id"}},{"name":"prompt_version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Version"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"hook","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hook"}},{"name":"acknowledged","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Acknowledged"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotificationListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Notifications Escalations Notifications Get","$ref":"#/components/schemas/NotificationListResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/escalations/standing":{"get":{"tags":["Governance Escalations"],"summary":"List Standing Grants","description":"List active standing grants for a session (FR-ESC-220 / FR-DATA-230).","operationId":"list_standing_grants_escalations_standing_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"prompt_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Prompt Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"include_expired","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Expired"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StandingGrantListResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response List Standing Grants Escalations Standing Get","$ref":"#/components/schemas/StandingGrantListResponse"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/escalations/{escalation_id}/resolve":{"post":{"tags":["Governance Escalations"],"summary":"Resolve Escalation","description":"Resolve one escalation: Deny / Allow-Once / Allow-Always (+edit) (FR-ESC-210).","operationId":"resolve_escalation_escalations__escalation_id__resolve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"escalation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Escalation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveEscalationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ResolveEscalationResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Resolve Escalation Escalations  Escalation Id  Resolve Post","$ref":"#/components/schemas/ResolveEscalationResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Unprocessable Entity"}}}},"/escalations/standing/{grant_id}":{"delete":{"tags":["Governance Escalations"],"summary":"Revoke Standing Grant","description":"Revoke a standing grant mid-session (FR-ESC-150 / FR-DATA-230).","operationId":"revoke_standing_grant_escalations_standing__grant_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Revoke Standing Grant Escalations Standing  Grant Id  Delete","$ref":"#/components/schemas/EscalationDetailResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/governance/runs/{execution_id}/override":{"post":{"tags":["Governance Escalations"],"summary":"Override Run","description":"Kill a run directly (rogue-agent monitor shape, async override, FR-ESC-180).","operationId":"override_run_governance_runs__execution_id__override_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"execution_id","in":"path","required":true,"schema":{"type":"string","title":"Execution Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverrideRunRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"},{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}],"title":"Response Override Run Governance Runs  Execution Id  Override Post"}}}},"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__SuccessResponse"}}},"description":"Accepted"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/budapp__commons__schemas__ErrorResponse"}}},"description":"Conflict"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/redirect/authorize":{"get":{"tags":["auth-redirect-flow"],"summary":"Authorize","description":"Build a Keycloak authorize URL and 302 to it. BA-01.\n\nPer Task 5 / SCENARIOS F1 design decision (second interpretation):\n``/authorize`` is always open when the redirect-flow router is\nmounted. The per-user allowlist applies at ``/callback`` (after\nKeycloak has identified the user), not here — internal engineers\nneed to be able to *start* the flow in order for the per-user gate\nto ever see them. The legacy first-interpretation behaviour\n(``/authorize`` returns 404 when the global flag is off) is retained\nonly when ``feature_enabled=False`` AND the legacy in-memory\n``allowlist_user_ids`` set is empty AND no ``X-Allowlist-User-Id``\nheader bypass is supplied — this preserves the existing unit tests\nthat asserted the original semantics.","operationId":"authorize_auth_redirect_authorize_get","parameters":[{"name":"return_url","in":"query","required":false,"schema":{"type":"string","default":"/","title":"Return Url"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/redirect/callback":{"get":{"tags":["auth-redirect-flow"],"summary":"Callback","description":"Exchange code for tokens, validate id_token, set session cookies. BA-02.\n\nTerminal failures here are user-visible (the BFF callback is reached\nvia top-level redirect from Keycloak), so we render a friendly HTML\npage with a \"Try again\" link instead of FastAPI's default JSON\n``{\"detail\": \"...\"}`` blob — see ``_render_callback_error``.","operationId":"callback_auth_redirect_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/redirect/logout":{"post":{"tags":["auth-redirect-flow"],"summary":"Logout","description":"Revoke + end-session + clear cookies. BA-03 / SSO-05 / SEC-17.","operationId":"logout_auth_redirect_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/redirect/session":{"get":{"tags":["auth-redirect-flow"],"summary":"Session","description":"Return the current user (no tokens). Refreshes server-side. BA-08 / B7 / TR-02.","operationId":"session_auth_redirect_session_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/redirect/ws-token":{"get":{"tags":["auth-redirect-flow"],"summary":"Ws Token","description":"Mint a short-lived bearer for the budnotify Socket.IO handshake.\n\nWhy this endpoint exists: budnotify lives on a *different* origin\n(``notify.<root>``) than the BFF (``app.<root>``), so the\n``__Host-bud_session`` cookie is never sent to it (the ``__Host-``\nprefix pins the cookie to the BFF host). budnotify therefore can't\nauthenticate off the session cookie; it validates a JWT from the\nSocket.IO ``auth.token`` handshake against its ``OIDC_ISSUER`` via\n``validate_oidc_token``. This same-origin, credentialed GET hands the\nbrowser a *fresh* access token to put in that handshake.\n\nContract (must match budnotify + budadmin):\n- Auth: the ``__Host-bud_session`` cookie (same-origin BFF call).\n- 200 body: ``{\"ws_token\": <access_token>, \"token_type\": \"Bearer\",\n  \"expires_at\": <unix-seconds int>}``. We return the **access_token**,\n  not the id_token (S11), because budnotify validates an RS256 access\n  token.\n- ``Cache-Control: no-store`` is mandatory — the body carries a bearer\n  credential and must never be cached (S8).\n- Errors: 401 when the cookie is absent, the session is gone, or the\n  refresh was rejected (clear detail string). Returning a clean 401\n  (not a 5xx or a hang) lets the client surface the error and stop\n  reconnecting instead of spinning in a reconnect storm (S4).\n\nIt is a GET and same-origin, so no CSRF token is required (the CSRF\nmiddleware only guards state-changing methods), matching /session.\nRefresh-near-expiry + the per-session mutex are delegated to the\nshared ``get_fresh_session_access_token`` helper (S2 / S5).","operationId":"ws_token_auth_redirect_ws_token_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/redirect/forward-auth":{"get":{"tags":["auth-redirect-flow"],"summary":"Forward Auth","description":"Translate the session cookie into an ``Authorization`` header for Traefik.\n\nWhy this endpoint exists: sibling apps are published by path prefix\non this BFF's host (``app.<root>/<app>``) and accept\nonly ``Authorization: Bearer <Keycloak JWT>``. The browser sends the\nhost-only ``__Host-bud_session`` cookie to those prefixes but holds no\nbearer. A Traefik ``forwardAuth`` Middleware on the sibling's Ingress\ncalls this endpoint per request; on 2xx Traefik copies the\n``Authorization`` response header (``authResponseHeaders``) onto the\nupstream request. No new token is minted — it is the session's own\n(refreshed) access token, exactly what /ws-token hands out.\n\nContract (must match the bud chart's ``budapp-session-bearer``\nMiddleware). Traefik sends a GET with the original request's headers\nplus ``X-Forwarded-Method`` / ``-Uri`` / ``-Host``; the original method\nis only visible through ``X-Forwarded-Method``.\n\n- ``OPTIONS`` -> 200, no header. Preflights never carry cookies; the\n  upstream's own CORS middleware answers them.\n- Request already carries ``Authorization`` -> 200 echoing that same\n  header back. The caller's own bearer (CLI, agents, services) must be\n  *returned*, not omitted: Traefik removes every ``authResponseHeaders``\n  name from the forwarded request and re-adds only what this response\n  carries, so a bare 200 would strip it before the upstream sees it.\n- No session cookie -> 200, no header. The upstream stays the\n  authority for anonymous requests (its 401 carries the RFC 9728\n  ``WWW-Authenticate`` pointer; it has public routes).\n- Original method not GET/HEAD -> a CSRF check, the sole defence for\n  cookie-authenticated writes to the sibling (Traefik's auth request is\n  always a GET, so ``CSRFMiddleware`` can't fire here, and the cookie\n  is ``SameSite=None``). Either proof passes:\n    * a request that sends ``X-CSRF-Token`` is held to the\n      double-submit check (it must equal ``__Host-bud_csrf``), exactly\n      as before; or\n    * a request that sends none must carry an ``Origin`` that is one\n      of the configured frontends (the clients'\n      ``allowed_return_url_origins``) or the request's own origin.\n      Browsers attach ``Origin`` to every POST/PUT/PATCH/DELETE and a\n      page cannot forge it, so a cross-site form post is refused while\n      the admin console — which, like it does against budapp's own\n      APIs, sends the cookie and no header — is admitted.\n  403 on failure; a missing or ``null`` Origin fails closed.\n- Session gone / refresh rejected -> 401 ``session expired``.\n- Otherwise 200, empty body, ``Authorization: Bearer <access_token>``\n  and ``Cache-Control: no-store``.\n\nNon-2xx responses are returned to the browser verbatim by Traefik, so\nthey pass through the app's CORS middleware like any other response.\nRefresh-near-expiry is delegated to ``get_fresh_session_access_token``:\nper request that costs one session-record read (so revocation takes\neffect immediately) and a Keycloak call only near token expiry.","operationId":"forward_auth_auth_redirect_forward_auth_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/redirect/back-channel-logout":{"post":{"tags":["auth-redirect-flow"],"summary":"Back Channel Logout","description":"OIDC Back-Channel Logout 1.0 endpoint.\n\nReceives a signed ``logout_token`` from Keycloak via a server-to-server\nPOST when a SSO session terminates. Invalidates every BFF session\nwhose ``sub`` matches.\n\nPer spec, the response carries ``Cache-Control: no-store`` and\n``Pragma: no-cache``; on success returns 200 with empty body, on\nvalidation failure 400.","operationId":"back_channel_logout_auth_redirect_back_channel_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/redirect/_allowlist/{user_id}":{"post":{"tags":["auth-redirect-flow"],"summary":"Add To Allowlist","operationId":"add_to_allowlist_auth_redirect__allowlist__user_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["auth-redirect-flow"],"summary":"Remove From Allowlist","operationId":"remove_from_allowlist_auth_redirect__allowlist__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"A2ACardConfigData":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Override agent name (default: prompt_id)"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Override agent description"},"skills":{"anyOf":[{"items":{"$ref":"#/components/schemas/A2ACardSkill"},"type":"array"},{"type":"null"}],"title":"Skills","description":"Agent skills for discovery"},"provider":{"anyOf":[{"$ref":"#/components/schemas/A2ACardProviderData"},{"type":"null"}],"description":"Agent provider info"},"documentation_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Documentation Url","description":"Documentation URL"},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon Url","description":"Icon URL"}},"type":"object","title":"A2ACardConfigData","description":"Client-configurable A2A Agent Card fields (three-category model).\n\nCategory B (overridable): name, description — auto-derived with optional client override.\nCategory C (client-only): skills, provider, documentation_url, icon_url — omitted if not set."},"A2ACardProviderData":{"properties":{"organization":{"type":"string","title":"Organization","description":"Organization name"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"Organization URL"}},"type":"object","required":["organization"],"title":"A2ACardProviderData","description":"A2A Agent Provider info."},"A2ACardSkill":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"Unique skill identifier (auto-generated from name if omitted)"},"name":{"type":"string","title":"Name","description":"Human-readable skill name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Skill description"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","description":"Skill tags"},"examples":{"items":{"type":"string"},"type":"array","title":"Examples","description":"Example inputs"},"input_modes":{"items":{"type":"string"},"type":"array","title":"Input Modes","description":"Supported input MIME types"},"output_modes":{"items":{"type":"string"},"type":"array","title":"Output Modes","description":"Supported output MIME types"}},"type":"object","required":["name"],"title":"A2ACardSkill","description":"A2A Agent Skill descriptor.\n\nThe `id` field is auto-generated from the skill name (slugified) if not provided."},"A2ACardWorkflowConfig":{"properties":{"skills":{"anyOf":[{"items":{"$ref":"#/components/schemas/A2ACardSkill"},"type":"array"},{"type":"null"}],"title":"Skills","description":"Agent skills for discovery"},"provider":{"anyOf":[{"$ref":"#/components/schemas/A2ACardProviderData"},{"type":"null"}],"description":"Agent provider info"},"documentation_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Documentation Url","description":"Documentation URL"}},"type":"object","title":"A2ACardWorkflowConfig","description":"A2A Agent Card fields settable via the create-prompt workflow.\n\nExcludes auto-managed fields: name/description (auto-derived by budprompt) and\nicon_url (frontend-managed at render)."},"A2ACatalogAgentListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"agents":{"items":{"$ref":"#/components/schemas/A2ACatalogAgentResponse"},"type":"array","title":"Agents"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"A2ACatalogAgentListResponse","description":"Paginated response for listing A2A catalog agents."},"A2ACatalogAgentResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"base_url":{"type":"string","title":"Base Url"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"protocol_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Protocol Version"},"provider":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Provider"},"skills":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Skills"},"capabilities":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Capabilities"},"security_schemes":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Security Schemes"},"security":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Security"},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon Url"},"default_input_modes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Default Input Modes"},"default_output_modes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Default Output Modes"},"conformance":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Conformance"},"is_healthy":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Healthy"},"uptime_percentage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Uptime Percentage"},"avg_response_time_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Response Time Ms"},"supports_authenticated_extended_card":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Supports Authenticated Extended Card"},"maintainer_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Maintainer Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","base_url","name","created_at","modified_at"],"title":"A2ACatalogAgentResponse","description":"Response schema for a single A2A catalog agent."},"A2AToolConfig":{"properties":{"type":{"type":"string","const":"a2a","title":"Type","default":"a2a"},"agent_name":{"type":"string","title":"Agent Name","description":"A2A agent name"},"mode":{"anyOf":[{"type":"string","enum":["internal","external"]},{"type":"null"}],"title":"Mode","description":"'internal' = budprompt-hosted; 'external' = third-party agent"}},"type":"object","required":["agent_name"],"title":"A2AToolConfig","description":"A2A agent tool configuration. One agent = one tool.\n\nMirrors ``budprompt/prompt/schemas.py``. Without it an A2A delegation is indistinguishable from\nany other function tool downstream, because the field was dropped in transit."},"AbortRequest":{"properties":{"mode":{"type":"string","enum":["after_turn","immediate"],"title":"Mode","default":"after_turn"}},"type":"object","title":"AbortRequest","description":"Abort a run. ``after_turn`` lets the current turn finish (graceful);\n``immediate`` tears the run down at the next checkpoint (immediate)."},"AcceptIn":{"properties":{"revision":{"type":"integer","minimum":0.0,"title":"Revision","description":"The draft revision the client holds (409 when stale)."},"after_row_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"After Row Id","description":"Insert after this row; default the end."}},"additionalProperties":false,"type":"object","required":["revision"],"title":"AcceptIn","description":"``POST …/accept``."},"AcceptResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"accepted":{"additionalProperties":true,"type":"object","title":"Accepted"}},"additionalProperties":false,"type":"object","required":["message","accepted"],"title":"AcceptResponse"},"AccountManagementURLResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"AccountManagementURLResponse","description":"Response body for :py:func:`get_account_management_url`."},"ActiveAlertListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"items":{"items":{"$ref":"#/components/schemas/Alert"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"additionalProperties":false,"type":"object","required":["message","items","total"],"title":"ActiveAlertListResponse","description":"``GET /alerts/active``."},"AdapterPaginatedResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"adapters":{"items":{"$ref":"#/components/schemas/AdapterResponse"},"type":"array","title":"Adapters","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"AdapterPaginatedResponse","description":"Adapter paginated response."},"AdapterResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/AdapterStatusEnum"},"model":{"$ref":"#/components/schemas/ModelResponse"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","status","model","created_at"],"title":"AdapterResponse","description":"Adapter response."},"AdapterStatusEnum":{"type":"string","enum":["running","failure","deploying","unhealthy","deleting","deleted","pending"],"title":"AdapterStatusEnum","description":"Adapter status types.\n\nAttributes:\n    RUNNING: Represents the running endpoint status.\n    FAILURE: Represents the failure endpoint status.\n    DEPLOYING: Represents the deploying endpoint status.\n    UNHEALTHY: Represents the unhealthy endpoint status.\n    DELETING: Represents the deleting endpoint status.\n    DELETED: Represents the deleted endpoint status.\n    PENDING: Represents the pending endpoint status."},"AddAdapterRequest":{"properties":{"workflow_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Workflow Id"},"workflow_total_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workflow Total Steps"},"step_number":{"type":"integer","exclusiveMinimum":0.0,"title":"Step Number"},"trigger_workflow":{"type":"boolean","title":"Trigger Workflow","default":false},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Endpoint Id"},"adapter_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adapter Name"},"adapter_model_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Adapter Model Id"}},"type":"object","required":["step_number"],"title":"AddAdapterRequest"},"AddAdapterWorkflowStepData":{"properties":{"endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Endpoint Id"},"project_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Project Id"},"adapter_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adapter Name"},"adapter_model_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Adapter Model Id"},"adapter_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Adapter Id"}},"type":"object","title":"AddAdapterWorkflowStepData","description":"Add adapter workflow step data."},"AddModelModalityEnum":{"type":"string","enum":["llm","mllm","image","embedding","text_to_speech","speech_to_text","audio_llm","omni","realtime","decision"],"title":"AddModelModalityEnum","description":"Enumeration of model modalities when adding a model.\n\nThis enum represents different types of AI model modalities or capabilities.\n\nAttributes:\n    LLM (str): Represents Large Language Models for text generation and processing.\n    MLLM (str): Represents Multi-Modal Large Language Models for text generation and processing.\n    IMAGE (str): Represents image-related models for tasks like generation or analysis.\n    EMBEDDING (str): Represents models that create vector embeddings of input data.\n    TEXT_TO_SPEECH (str): Represents models that convert text to spoken audio.\n    SPEECH_TO_TEXT (str): Represents models that transcribe spoken audio to text.\n    AUDIO_LLM (str): Represents audio-input LLMs (e.g., Qwen2-Audio, Ultravox).\n    OMNI (str): Represents omni-modal models with audio + vision + text.\n    REALTIME (str): Realtime (speech-to-speech) models served on ``/v1/realtime`` (FRD-023).\n        The one category a hand-added cloud model must NAME: realtime is never inferred from\n        a modality shape, since audio in + audio out also describes ``gpt-live-1`` and the\n        ``gpt-audio*`` chat models.\n    DECISION (str): Decision models served on ``/v1/decisions`` only (FRD-031 D-16). Named, like\n        realtime, because text in + text out is also every chat model."},"AddRequestMetricsRequest":{"properties":{"metrics":{"items":{"$ref":"#/components/schemas/BenchmarkRequestMetrics"},"type":"array","title":"Metrics"}},"type":"object","required":["metrics"],"title":"AddRequestMetricsRequest"},"AddToolRequest":{"properties":{"prompt_id":{"type":"string","title":"Prompt Id","description":"Prompt ID (must exist in Redis)"},"connector_id":{"type":"string","title":"Connector Id","description":"Connector ID"},"tool_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Tool Ids","description":"Tool IDs to add/update (empty list removes all tools for this connector)"},"version":{"type":"integer","minimum":1.0,"title":"Version","description":"Prompt config version (defaults to 1)","default":1},"permanent":{"type":"boolean","title":"Permanent","description":"Store configuration permanently without expiration (default: False, uses configured TTL)","default":false}},"type":"object","required":["prompt_id","connector_id","tool_ids"],"title":"AddToolRequest","description":"Request schema for adding tools to a prompt."},"AddToolResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"success":{"type":"boolean","title":"Success","description":"Always true; error paths return ErrorResponse.","default":true},"virtual_server_id":{"type":"string","title":"Virtual Server Id","description":"Virtual server ID from MCP Foundry"},"virtual_server_name":{"type":"string","title":"Virtual Server Name","description":"Virtual server name (format: {prompt_id}__v{version})"},"added_tools":{"items":{"type":"string"},"type":"array","title":"Added Tools","description":"List of added tool IDs"}},"additionalProperties":false,"type":"object","required":["message","virtual_server_id","virtual_server_name","added_tools"],"title":"AddToolResponse","description":"Response schema for adding tools."},"AddWorkerRequest":{"properties":{"workflow_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Workflow Id"},"workflow_total_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workflow Total Steps"},"step_number":{"type":"integer","exclusiveMinimum":0.0,"title":"Step Number"},"trigger_workflow":{"type":"boolean","title":"Trigger Workflow","default":false},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Endpoint Id"},"additional_concurrency":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Additional Concurrency"}},"type":"object","required":["step_number"],"title":"AddWorkerRequest","description":"Add worker request."},"AdjustmentBody":{"properties":{"amount":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Amount","description":"Signed: negative is a credit"},"reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Reason"},"meter":{"anyOf":[{"type":"string","maxLength":48},{"type":"null"}],"title":"Meter"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"additionalProperties":false,"type":"object","required":["amount","reason"],"title":"AdjustmentBody"},"AdminAddRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Name"}},"additionalProperties":false,"type":"object","required":["email"],"title":"AdminAddRequest"},"AgentAttributionRequest":{"properties":{"agent_id":{"type":"string","title":"Agent Id","description":"The agent identifier — the prompt's globally-unique id (UUID), or its name."},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version","description":"Optional agent version string; when omitted the default version is resolved."},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id","description":"Optional project UUID (string) scoping the lookup to eliminate cross-project name collisions."}},"type":"object","required":["agent_id"],"title":"AgentAttributionRequest","description":"Request body for resolving an agent's OTel ``bud.*`` attribution ids."},"AgentAttributionResponse":{"properties":{"prompt_id":{"type":"string","title":"Prompt Id","description":"UUID (string) of the agent's Prompt (= bud.prompt_id)."},"project_id":{"type":"string","title":"Project Id","description":"UUID (string) of the owning project (= bud.project_id)."},"prompt_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Version Id","description":"UUID (string) of the resolved PromptVersion (= bud.prompt_version_id)."},"endpoint_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Id","description":"UUID (string) of the version's endpoint (= bud.endpoint_id)."},"model_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Id","description":"UUID (string) of the version's model (= bud.model_id)."},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version","description":"The resolved version number (default when omitted)."}},"type":"object","required":["prompt_id","project_id"],"title":"AgentAttributionResponse","description":"The ``bud.*`` attribution ids for an agent run (no secret material).\n\nConsumers (budevent for the bot root span, budprompt for the generic event path) set\nthese as OTel baggage so the run is attributed per project / prompt / version /\nendpoint / model in observability. ``version`` is the RESOLVED version number (the\ndefault when the request omitted one). Id fields are Optional so an agent without a\nresolvable version still returns ``prompt_id`` + ``project_id``."},"AgentCardResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"agent_card":{"additionalProperties":true,"type":"object","title":"Agent Card","description":"A2A Agent Card JSON"}},"additionalProperties":false,"type":"object","required":["message","agent_card"],"title":"AgentCardResponse","description":"Response for Agent Card retrieval."},"AgentCatalogChannel":{"properties":{"provider":{"type":"string","title":"Provider"},"trigger_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Type"}},"type":"object","required":["provider"],"title":"AgentCatalogChannel","description":"A messaging channel an agent is reachable on (provider slug only)."},"AgentCatalogDetail":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tags"},"prompt_type":{"type":"string","title":"Prompt Type"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name"},"model_icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Icon"},"provider_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Type"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"modality":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Modality"},"default_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Default Version"},"pricing":{"anyOf":[{"$ref":"#/components/schemas/AgentPricingInfo"},{"type":"null"}]},"published_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published Date"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"config":{"additionalProperties":true,"type":"object","title":"Config"},"policies":{"items":{"$ref":"#/components/schemas/AgentCatalogPolicy"},"type":"array","title":"Policies","default":[]},"triggers":{"items":{"$ref":"#/components/schemas/AgentCatalogTrigger"},"type":"array","title":"Triggers","default":[]},"channels":{"items":{"$ref":"#/components/schemas/AgentCatalogChannel"},"type":"array","title":"Channels","default":[]}},"type":"object","required":["id","name","prompt_type","created_at"],"title":"AgentCatalogDetail","description":"A published agent's detail view.\n\n``config`` is the agent's *live* default-version configuration exactly as budprompt stored\nit, minus deployment-internal fields (see ``strip_internal_config_fields``). It is passed\nthrough rather than reshaped so the UI renders only what is actually configured — a typed\nprojection would have to invent a value for every parameter the agent never set.\n\n``policies`` / ``triggers`` / ``channels`` are budapp-owned (they live in its own tables,\nnot in budprompt's config), so they are explicit projections rather than passthrough — each\nnames only what a customer may see and omits every id, URL and subscription handle."},"AgentCatalogDetailResponse":{"properties":{"object":{"type":"string","title":"Object","default":"agents.catalog.detail"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"agent":{"$ref":"#/components/schemas/AgentCatalogDetail"}},"additionalProperties":false,"type":"object","required":["message","agent"],"title":"AgentCatalogDetailResponse","description":"Response envelope for a single published agent."},"AgentCatalogItem":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tags"},"prompt_type":{"type":"string","title":"Prompt Type"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name"},"model_icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Icon"},"provider_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Type"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"modality":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Modality"},"default_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Default Version"},"pricing":{"anyOf":[{"$ref":"#/components/schemas/AgentPricingInfo"},{"type":"null"}]},"published_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published Date"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","prompt_type","created_at"],"title":"AgentCatalogItem","description":"A published agent as listed in the customer catalog."},"AgentCatalogPolicy":{"properties":{"name":{"type":"string","title":"Name"},"guard_types":{"items":{"type":"string"},"type":"array","title":"Guard Types","default":[]},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["name"],"title":"AgentCatalogPolicy","description":"A governance policy bound to a published agent, by name only."},"AgentCatalogResponse":{"properties":{"object":{"type":"string","title":"Object","default":"agents.catalog"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"agents":{"items":{"$ref":"#/components/schemas/AgentCatalogItem"},"type":"array","title":"Agents","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"type":"object","required":["message","page","limit","total_pages"],"title":"AgentCatalogResponse","description":"Paginated published-agent catalog response."},"AgentCatalogTrigger":{"properties":{"name":{"type":"string","title":"Name"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types","default":[]}},"type":"object","required":["name"],"title":"AgentCatalogTrigger","description":"An event trigger wired to a published agent, without its routing internals."},"AgentPricingHistoryResponse":{"properties":{"object":{"type":"string","title":"Object","default":"prompt.pricing_history"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"pricing_history":{"items":{"$ref":"#/components/schemas/AgentPricingResponse"},"type":"array","title":"Pricing History","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"AgentPricingHistoryResponse","description":"Paginated agent pricing history response."},"AgentPricingInfo":{"properties":{"input_cost":{"type":"number","title":"Input Cost"},"output_cost":{"type":"number","title":"Output Cost"},"currency":{"type":"string","title":"Currency","default":"USD"},"per_tokens":{"type":"integer","title":"Per Tokens","default":1000}},"type":"object","required":["input_cost","output_cost"],"title":"AgentPricingInfo","description":"Pricing block as surfaced to customers on the agent catalog."},"AgentPricingInput":{"properties":{"input_cost":{"anyOf":[{"type":"number","exclusiveMaximum":10000.0,"minimum":0.0},{"type":"string"}],"title":"Input Cost","description":"Cost per input tokens (max 9999.999999)"},"output_cost":{"anyOf":[{"type":"number","exclusiveMaximum":10000.0,"minimum":0.0},{"type":"string"}],"title":"Output Cost","description":"Cost per output tokens (max 9999.999999)"},"currency":{"type":"string","maxLength":3,"title":"Currency","description":"Currency code (ISO 4217)","default":"USD"},"per_tokens":{"type":"integer","exclusiveMinimum":0.0,"title":"Per Tokens","description":"Number of tokens for the pricing unit","default":1000}},"type":"object","required":["input_cost","output_cost"],"title":"AgentPricingInput","description":"Input schema for agent (prompt) pricing."},"AgentPricingResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"prompt_id":{"type":"string","format":"uuid4","title":"Prompt Id"},"input_cost":{"type":"string","title":"Input Cost"},"output_cost":{"type":"string","title":"Output Cost"},"currency":{"type":"string","title":"Currency"},"per_tokens":{"type":"integer","title":"Per Tokens"},"is_current":{"type":"boolean","title":"Is Current"},"created_by":{"type":"string","format":"uuid4","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","prompt_id","input_cost","output_cost","currency","per_tokens","is_current","created_by","created_at","modified_at"],"title":"AgentPricingResponse","description":"Response schema for agent pricing."},"AgentPublicationHistoryEntry":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"prompt_id":{"type":"string","format":"uuid4","title":"Prompt Id"},"action":{"type":"string","title":"Action"},"performed_by":{"type":"string","format":"uuid4","title":"Performed By"},"performed_at":{"type":"string","format":"date-time","title":"Performed At"},"action_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Action Metadata"},"previous_state":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Previous State"},"new_state":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"New State"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"performed_by_user":{"anyOf":[{"$ref":"#/components/schemas/UserSummary"},{"type":"null"}]}},"type":"object","required":["id","prompt_id","action","performed_by","performed_at","created_at","modified_at"],"title":"AgentPublicationHistoryEntry","description":"Schema for a single agent publication history entry."},"AgentPublicationHistoryResponse":{"properties":{"object":{"type":"string","title":"Object","default":"prompt.publication_history"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"history":{"items":{"$ref":"#/components/schemas/AgentPublicationHistoryEntry"},"type":"array","title":"History","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"AgentPublicationHistoryResponse","description":"Response schema for the agent publication history endpoint."},"AgentRunsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"items":{"items":{},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total","default":0},"page":{"type":"integer","title":"Page","default":1},"limit":{"type":"integer","title":"Limit","default":20}},"additionalProperties":false,"type":"object","required":["message"],"title":"AgentRunsResponse","description":"Runs of one agent across the caller's experiments, newest first."},"AgentSummary":{"properties":{"prompt_id":{"type":"string","format":"uuid4","title":"Prompt Id","description":"The agent's id."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The agent's name; null when it could not be resolved."},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version","description":"The agent version the runs pinned."}},"type":"object","required":["prompt_id"],"title":"AgentSummary","description":"An agent (and version) an experiment evaluated (spec 027)."},"AggregatedMetricValue":{"properties":{"value":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Value","description":"The metric value, or null when unknown"},"formatted_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Formatted Value","description":"Human readable format (e.g., '1.2K', '95.5%')"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit","description":"Unit of measurement (e.g., 'ms', '%', 'requests')"}},"type":"object","title":"AggregatedMetricValue","description":"Single aggregated metric value.\n\n`value` is NULLABLE, and this proxy must mirror budmetrics' own schema rather than\ntighten it. The savings metrics aggregate nullable columns, so ClickHouse answers NULL\nfor a window that carried no cache decision -- \"nothing here could be priced\", not\n\"the cache saved nothing\". budmetrics emits that NULL deliberately and the console\nrenders it as unknown. Declared required here, every such response failed validation\nin `AggregatedMetricsResponse(**response_data)`, the route's `except Exception` turned\nit into a 500, and the page reported \"we could not ask\" for the one answer the whole\ntri-state exists to distinguish from it."},"AggregatedMetricsGroup":{"properties":{"model_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Model Id","description":"Model ID"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name","description":"Model name"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id","description":"Project ID"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name","description":"Project name"},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Endpoint Id","description":"Endpoint ID"},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name","description":"Endpoint name"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id","description":"User ID"},"api_key_project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Api Key Project Id","description":"API key's project ID (for user_project grouping)"},"api_key_project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Project Name","description":"API key's project name"},"dimensions":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Dimensions","description":"Non-entity grouping dimensions (e.g. cache_result, prompt)"},"metrics":{"additionalProperties":{"$ref":"#/components/schemas/AggregatedMetricValue"},"type":"object","title":"Metrics","description":"Calculated metrics"}},"type":"object","required":["metrics"],"title":"AggregatedMetricsGroup","description":"Grouped aggregated metrics."},"AggregatedMetricsRequest":{"properties":{"from_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From Date","description":"Start date for the analysis (defaults to full retention window)"},"to_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To Date","description":"End date for the analysis"},"group_by":{"anyOf":[{"items":{"type":"string","enum":["model","project","endpoint","user","user_project","cache_result","cache_miss_reason","cache_transform_class","prompt"]},"type":"array"},{"type":"null"}],"title":"Group By","description":"Dimensions to group by"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters","description":"Filters to apply"},"metrics":{"items":{"type":"string","enum":["total_requests","success_rate","avg_latency","p95_latency","p99_latency","total_tokens","total_input_tokens","total_output_tokens","avg_tokens","total_cost","avg_cost","ttft_avg","ttft_p95","ttft_p99","cache_hit_rate","throughput_avg","error_rate","unique_users","p95_inference_cost","max_inference_cost","min_inference_cost","min_execution_cost","p95_execution_cost","max_execution_cost","avg_execution_cost","avg_execution_input_tokens","avg_execution_output_tokens","min_execution_cost_cumulative","p95_execution_cost_cumulative","max_execution_cost_cumulative","avg_execution_cost_cumulative","total_execution_cost_cumulative","avg_execution_input_tokens_cumulative","avg_execution_output_tokens_cumulative","cache_cost_saved","cache_would_be_cost_saved","adapter_bytes_saved","cached_discount_saved","cache_bypass_breakdown","cache_cost_saved_coverage","cache_would_be_cost_saved_coverage","cached_discount_saved_coverage"]},"type":"array","title":"Metrics","description":"Metrics to calculate"},"data_source":{"type":"string","enum":["inference","prompt","serving"],"title":"Data Source","description":"Which grain of an agent run to count. 'inference' (default) is the caller's own traffic -- ordinary rows plus the agent wrapper -- and matches billing. 'prompt' is an agent run's nested model rows, for per-agent analytics. 'serving' is everything except the wrapper: what it cost to serve, and the only grain carrying the cache columns, since the wrapper fans out to the model calls and is never seen by the cache seam. Never bill from 'serving'.","default":"inference"},"include_evaluation":{"type":"boolean","title":"Include Evaluation","description":"Spec 027 AE3.4: include evaluation runs' traffic (excluded from production analytics by default).","default":false}},"type":"object","required":["metrics"],"title":"AggregatedMetricsRequest","description":"Request schema for aggregated metrics with server-side calculations."},"AggregatedMetricsResponse":{"properties":{"object":{"type":"string","title":"Object","description":"Response object type","default":"aggregated_metrics"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"groups":{"items":{"$ref":"#/components/schemas/AggregatedMetricsGroup"},"type":"array","title":"Groups","description":"Grouped metrics"},"summary":{"additionalProperties":{"$ref":"#/components/schemas/AggregatedMetricValue"},"type":"object","title":"Summary","description":"Overall aggregated values"},"total_groups":{"type":"integer","title":"Total Groups","description":"Total number of groups"},"date_range":{"additionalProperties":{"type":"string","format":"date-time"},"type":"object","title":"Date Range","description":"Date range used for analysis"}},"additionalProperties":false,"type":"object","required":["message","groups","summary","total_groups","date_range"],"title":"AggregatedMetricsResponse","description":"Response schema for aggregated metrics."},"Alert":{"properties":{"event_id":{"type":"string","format":"uuid","title":"Event Id"},"rule_id":{"type":"string","format":"uuid","title":"Rule Id"},"rule_name":{"type":"string","title":"Rule Name"},"severity":{"type":"string","enum":["info","warning","critical"],"title":"Severity"},"scope":{"type":"string","enum":["deployment","cluster"],"title":"Scope"},"status":{"type":"string","enum":["firing","resolved"],"title":"Status"},"cluster_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Cluster Id","description":"budapp cluster id; null if the cluster isn't in budapp"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Namespace"},"labels":{"additionalProperties":{"type":"string"},"type":"object","title":"Labels"},"metric":{"type":"string","title":"Metric"},"aggregation":{"type":"string","enum":["avg","min","max","last","p95","count","absent"],"title":"Aggregation"},"operator":{"anyOf":[{"type":"string","enum":["gt","gte","lt","lte","eq","ne"]},{"type":"null"}],"title":"Operator"},"threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Threshold"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"last_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last Value"},"summary":{"type":"string","title":"Summary","default":""},"started_at":{"type":"string","format":"date-time","title":"Started At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"notified":{"type":"boolean","title":"Notified","default":false},"cluster":{"anyOf":[{"$ref":"#/components/schemas/ClusterRef"},{"type":"null"}]},"endpoint":{"anyOf":[{"$ref":"#/components/schemas/EndpointRef-Output"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["event_id","rule_id","rule_name","severity","scope","status","metric","aggregation","started_at"],"title":"Alert","description":"C4 ``Alert``: budmetrics' AlertEvent with a budapp ``cluster_id``, plus ``cluster`` and ``endpoint``."},"AlertCondition":{"properties":{"metric":{"type":"string","title":"Metric"},"aggregation":{"type":"string","enum":["avg","min","max","last","p95","count","absent"],"title":"Aggregation"},"operator":{"anyOf":[{"type":"string","enum":["gt","gte","lt","lte","eq","ne"]},{"type":"null"}],"title":"Operator"},"threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Threshold"},"label_filters":{"additionalProperties":{"type":"string"},"type":"object","title":"Label Filters"}},"additionalProperties":true,"type":"object","required":["metric","aggregation"],"title":"AlertCondition","description":"A stored rule condition."},"AlertConditionInput":{"properties":{"metric":{"type":"string","title":"Metric"},"aggregation":{"type":"string","enum":["avg","min","max","last","p95","count","absent"],"title":"Aggregation"},"operator":{"anyOf":[{"type":"string","enum":["gt","gte","lt","lte","eq","ne"]},{"type":"null"}],"title":"Operator"},"threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Threshold"},"label_filters":{"additionalProperties":{"type":"string"},"type":"object","title":"Label Filters"}},"type":"object","required":["metric","aggregation"],"title":"AlertConditionInput","description":"One condition of a rule (FRD §4.1 AlertCondition)."},"AlertEvaluationResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"result":{"additionalProperties":true,"type":"object","title":"Result"}},"additionalProperties":false,"type":"object","required":["message","result"],"title":"AlertEvaluationResponse","description":"``POST /alerts/evaluate``: budmetrics' cycle summary, unchanged."},"AlertEventListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"items":{"items":{"$ref":"#/components/schemas/Alert"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","items","total","total_pages"],"title":"AlertEventListResponse","description":"``GET /alerts/events``. ``total`` is C4's name; ``total_record`` and ``total_pages`` are budapp's usual."},"AlertMetricListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MetricInfo"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["message","items"],"title":"AlertMetricListResponse","description":"``GET /alerts/metrics``."},"AlertPreviewResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"evaluated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Evaluated At"},"groups":{"items":{"$ref":"#/components/schemas/PreviewGroup"},"type":"array","title":"Groups"}},"additionalProperties":false,"type":"object","required":["message","groups"],"title":"AlertPreviewResponse","description":"``POST /alerts/rules/preview``."},"AlertRule":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"enabled":{"type":"boolean","title":"Enabled"},"severity":{"type":"string","enum":["info","warning","critical"],"title":"Severity"},"scope":{"type":"string","enum":["deployment","cluster"],"title":"Scope"},"group_by":{"items":{"type":"string"},"type":"array","title":"Group By"},"conditions":{"items":{"$ref":"#/components/schemas/AlertCondition"},"type":"array","title":"Conditions"},"window_seconds":{"type":"integer","title":"Window Seconds"},"for_seconds":{"type":"integer","title":"For Seconds","default":0},"repeat_interval_seconds":{"type":"integer","title":"Repeat Interval Seconds","default":0},"cluster_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Cluster Ids","description":"budapp cluster ids; ids that don't resolve in budapp are dropped"},"summary_template":{"type":"string","title":"Summary Template","default":""},"builtin":{"type":"boolean","title":"Builtin","default":false},"builtin_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Builtin Key"},"modified":{"type":"boolean","title":"Modified","default":false},"clusters":{"items":{"$ref":"#/components/schemas/ClusterRef"},"type":"array","title":"Clusters","description":"The resolved cluster_ids, for display"},"missing_clusters":{"type":"integer","title":"Missing Clusters","description":"How many of the rule's clusters no longer exist in budapp. When every one is gone, cluster_ids is [] (all clusters), so saving the rule unchanged would widen it.","default":0},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"additionalProperties":true,"type":"object","required":["id","name","enabled","severity","scope","conditions","window_seconds"],"title":"AlertRule","description":"C4 ``Rule``: budmetrics' AlertRule with ``cluster_ids`` in budapp ids, plus ``clusters``."},"AlertRuleInput":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"enabled":{"type":"boolean","title":"Enabled","default":true},"severity":{"type":"string","enum":["info","warning","critical"],"title":"Severity"},"group_by":{"items":{"type":"string"},"type":"array","title":"Group By"},"conditions":{"items":{"$ref":"#/components/schemas/AlertConditionInput"},"type":"array","title":"Conditions"},"window_seconds":{"type":"integer","title":"Window Seconds"},"for_seconds":{"type":"integer","title":"For Seconds","default":0},"repeat_interval_seconds":{"type":"integer","title":"Repeat Interval Seconds","default":0},"summary_template":{"type":"string","title":"Summary Template","default":""},"scope":{"type":"string","enum":["deployment","cluster"],"title":"Scope"},"cluster_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Cluster Ids","description":"budapp cluster ids (Cluster.id); empty = every cluster"}},"type":"object","required":["name","severity","conditions","window_seconds","scope"],"title":"AlertRuleInput","description":"Body of create, update (full replace) and preview (C4 ``RuleInput``).\n\nUnknown keys are ignored, so a client may send a ``Rule`` it read back (with\n``id``, ``clusters``, …) as the body of a PUT."},"AlertRuleListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"items":{"items":{"$ref":"#/components/schemas/AlertRule"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"additionalProperties":false,"type":"object","required":["message","items","total"],"title":"AlertRuleListResponse","description":"``GET /alerts/rules``."},"AlertRuleResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"rule":{"$ref":"#/components/schemas/AlertRule"}},"additionalProperties":false,"type":"object","required":["message","rule"],"title":"AlertRuleResponse","description":"A single rule: get, create, update, reset."},"AllEvaluationsItem":{"properties":{"evaluation_id":{"type":"string","format":"uuid4","title":"Evaluation Id","description":"UUID of the evaluation"},"evaluation_name":{"type":"string","title":"Evaluation Name","description":"Name of the evaluation"},"experiment_id":{"type":"string","format":"uuid4","title":"Experiment Id","description":"UUID of the parent experiment"},"experiment_name":{"type":"string","title":"Experiment Name","description":"Name of the parent experiment"},"model":{"anyOf":[{"$ref":"#/components/schemas/ModelDetail"},{"type":"null"}],"description":"Model details for this evaluation"},"traits":{"items":{"$ref":"#/components/schemas/TraitWithDatasets"},"type":"array","title":"Traits","description":"Traits with their associated datasets"},"status":{"type":"string","title":"Status","description":"Evaluation status (pending/running/completed/failed)"},"scores":{"anyOf":[{"$ref":"#/components/schemas/EvaluationScore"},{"type":"null"}],"description":"Evaluation scores from BudEval"},"runs":{"items":{"$ref":"#/components/schemas/AllEvaluationsRunItem"},"type":"array","title":"Runs","description":"Runs in this evaluation"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"Evaluation creation timestamp"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"Evaluation update timestamp"},"duration_in_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration In Seconds","description":"Evaluation duration in seconds"},"target_type":{"type":"string","title":"Target Type","description":"model or agent (spec 027)","default":"model"},"prompt_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Prompt Id","description":"The agent evaluated, for an agent target"},"prompt_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Version","description":"The agent version evaluated, for an agent target"},"prompt_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Name","description":"The agent's name (agent targets)."},"prompt_version_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Prompt Version Id","description":"The agent version id (agent targets)."},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Endpoint Id","description":"The endpoint called; an agent's backing deployment."},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name","description":"That endpoint's name."}},"type":"object","required":["evaluation_id","evaluation_name","experiment_id","experiment_name","traits","status"],"title":"AllEvaluationsItem","description":"A single evaluation item for the all-evaluations listing."},"AllEvaluationsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"evaluations":{"items":{"$ref":"#/components/schemas/AllEvaluationsItem"},"type":"array","title":"Evaluations","description":"List of evaluations"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","evaluations","total_pages"],"title":"AllEvaluationsResponse","description":"Response schema for listing all evaluations."},"AllEvaluationsRunItem":{"properties":{"run_id":{"type":"string","format":"uuid4","title":"Run Id","description":"Run UUID"},"run_index":{"type":"integer","title":"Run Index","description":"Run index within experiment"},"status":{"type":"string","title":"Status","description":"Run status"},"evaluation_job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evaluation Job Id","description":"BudEval job ID if evaluation was triggered"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"Run creation timestamp"},"target_type":{"type":"string","title":"Target Type","description":"model or agent (spec 027)","default":"model"},"prompt_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Prompt Id","description":"The agent evaluated, for an agent target"},"prompt_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Version","description":"The agent version evaluated, for an agent target"},"prompt_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Name","description":"The agent's name (agent targets)."},"prompt_version_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Prompt Version Id","description":"The agent version id (agent targets)."},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Endpoint Id","description":"The endpoint called; an agent's backing deployment."},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name","description":"That endpoint's name."}},"type":"object","required":["run_id","run_index","status"],"title":"AllEvaluationsRunItem","description":"Run information with pass down eval id to be added to model inference Details an evaluation for the all-evaluations listing."},"AmbiguityRule":{"properties":{"condition":{"type":"string","title":"Condition"},"action":{"type":"string","title":"Action"}},"type":"object","required":["condition","action"],"title":"AmbiguityRule","description":"Ambiguity handling rule for policy."},"AnalyzerCounts":{"properties":{"completed":{"type":"integer","title":"Completed","default":0},"disabled":{"type":"integer","title":"Disabled","default":0},"not_applicable":{"type":"integer","title":"Not Applicable","default":0},"degraded":{"type":"integer","title":"Degraded","default":0},"failed":{"type":"integer","title":"Failed","default":0}},"additionalProperties":false,"type":"object","title":"AnalyzerCounts","description":"Analyzer statuses rolled up. Mirrors budmodel `AnalyzerCounts`."},"ApiCredentialTypeEnum":{"type":"string","enum":["client_app","admin_app"],"title":"ApiCredentialTypeEnum","description":"Enumeration of API credential types.\n\nThis enum defines the types of API credentials that can be created.\n\nAttributes:\n    CLIENT_APP (str): Client application credentials for external API access.\n    ADMIN_APP (str): Administrative application credentials with elevated permissions."},"ApplyRequest":{"properties":{"rev":{"type":"integer","title":"Rev"}},"type":"object","required":["rev"],"title":"ApplyRequest"},"ApprovalItem":{"properties":{"session_id":{"type":"string","title":"Session Id"},"prompt_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Namespace"},"suspend_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suspend Reason"},"pending_call":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Pending Call"},"awaited_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Awaited Token"},"wake_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wake At"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"escalation_tier":{"anyOf":[{},{"type":"null"}],"title":"Escalation Tier"},"escalation_policy":{"anyOf":[{},{"type":"null"}],"title":"Escalation Policy"}},"type":"object","required":["session_id"],"title":"ApprovalItem","description":"A single pending approval surfaced to an eligible approver.\n\nCarries the pending call, the CAS ``awaited_token`` the approve/reject signal\nmust echo, the deadline, and the escalation summary — everything budadmin needs\nto render an approval card without a second round-trip."},"ApprovalListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ApprovalItem"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["message","items"],"title":"ApprovalListResponse","description":"Response for GET /approvals."},"ApprovalPolicySchema":{"properties":{"roles":{"items":{"type":"string"},"type":"array","title":"Roles","default":[]},"distinct_approvers":{"type":"boolean","title":"Distinct Approvers","default":false},"ordered_tiers":{"items":{"$ref":"#/components/schemas/ApprovalTier"},"type":"array","title":"Ordered Tiers","default":[]},"quorum":{"type":"integer","minimum":1.0,"title":"Quorum","default":1},"ttl_secs":{"anyOf":[{"type":"integer","maximum":2592000.0,"minimum":60.0},{"type":"null"}],"title":"Ttl Secs"},"on_expiry":{"type":"string","enum":["deny","safe_default"],"title":"On Expiry","default":"deny"},"safe_default":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Safe Default"},"store_content":{"type":"boolean","title":"Store Content","default":false}},"type":"object","title":"ApprovalPolicySchema","description":"The durable approval-engine policy attached to a ``require_approval`` rule (FR-ESC-050).\n\nMirrors bud-sentinel's ``ApprovalPolicyProto`` wire shape. Authoring validation (422 on\nsave): ``on_expiry==\"safe_default\"`` requires a ``safe_default``; a ``safe_default`` may\nonly fall back to ``allow``/``deny``; every ordered tier must name at least one role."},"ApprovalTier":{"properties":{"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"quorum":{"type":"integer","minimum":1.0,"title":"Quorum","default":1},"ttl_secs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ttl Secs"}},"type":"object","required":["roles"],"title":"ApprovalTier","description":"One tier of an ordered, escalating approval chain (FR-ESC-090).\n\nEach tier names the ``roles`` whose members may approve at that level, its ``quorum``\n(approvals required to clear the tier), and an optional per-tier ``ttl_secs`` window. A\ntier with empty ``roles`` can never be satisfied and is rejected at authoring time."},"ApproveRequest":{"properties":{"call_id":{"type":"string","minLength":1,"title":"Call Id"},"override_args":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Override Args"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["call_id"],"title":"ApproveRequest","description":"Approve a parked tool call on an ``awaiting-approval`` run.\n\n``call_id`` identifies the pending call (also the idempotency seed for the\nderived ``signal_id``). ``override_args`` lets the approver edit the tool args\nbefore the engine executes the call; ``message`` is an optional operator note."},"AttachConnectionToolsRequest":{"properties":{"tool_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Tool Ids","description":"Tool IDs (from the connection's gateway) to attach; replaces existing for this connection"},"version":{"type":"integer","minimum":1.0,"title":"Version","description":"Prompt config version (defaults to 1)","default":1},"permanent":{"type":"boolean","title":"Permanent","description":"Store configuration permanently without expiration (default: False, uses configured TTL)","default":false}},"type":"object","required":["tool_ids"],"title":"AttachConnectionToolsRequest","description":"Request to attach tools from an EXISTING global connection (gateway) to a prompt's agent.\n\nUnlike registering a connector (which creates a new per-prompt gateway and re-collects\ncredentials), this references an already-configured, already-authorized global connection\nby its ``gateway_id`` and just selects which tools to expose to the agent."},"AttachIn":{"properties":{"dataset_id":{"type":"string","format":"uuid","title":"Dataset Id"},"mode":{"type":"string","enum":["fresh","production"],"title":"Mode","default":"fresh"},"schedule":{"anyOf":[{"$ref":"#/components/schemas/ScheduleIn"},{"type":"null"}]},"production":{"anyOf":[{"$ref":"#/components/schemas/ProductionIn"},{"type":"null"}]},"judge_endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Judge Endpoint Id"},"eval_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Eval Options"},"acknowledge_side_effects":{"type":"boolean","title":"Acknowledge Side Effects","default":false},"run_now":{"type":"boolean","title":"Run Now","default":false}},"additionalProperties":false,"type":"object","required":["dataset_id"],"title":"AttachIn"},"AttackMethodOut":{"properties":{"id":{"type":"string","title":"Id","description":"Stable attack identifier (e.g. 'rot13', 'linear_jailbreaking')."},"display_name":{"type":"string","title":"Display Name","description":"Human-readable label (e.g. 'ROT13 Encoding')."},"description":{"type":"string","title":"Description","description":"One-line description for the UI.","default":""},"turn":{"type":"string","pattern":"^(single|multi)$","title":"Turn","description":"Whether the attack is single-turn ('single') or multi-turn ('multi').","default":"single"}},"type":"object","required":["id","display_name"],"title":"AttackMethodOut","description":"A single Red Teaming attack-method catalog entry.\n\nServes ``GET /eval-ops/red-team-attack-methods``. Engine-name-blind,\nexactly like ``CapabilityFeatureOut``: only the user-facing attack\nidentifier + label + turn-mode cross the wire. The underlying library\nclass names live solely in the budeval attack_map. The ``attack:``\nnamespacing prefix used in the capability catalog is stripped here so\nthe ``id`` is the clean attack identifier the UI selects on."},"AudioConfigOptions":{"properties":{"emotions":{"items":{"type":"string"},"type":"array","title":"Emotions"},"delivery_styles":{"items":{"type":"string"},"type":"array","title":"Delivery Styles"},"intensity_levels":{"additionalProperties":{"type":"number"},"type":"object","title":"Intensity Levels"},"sample_rates":{"items":{"type":"integer"},"type":"array","title":"Sample Rates"},"redaction_categories":{"items":{"type":"string"},"type":"array","title":"Redaction Categories"},"voice_genders":{"items":{"type":"string"},"type":"array","title":"Voice Genders"},"voice_ages":{"items":{"type":"string"},"type":"array","title":"Voice Ages"},"streaming_only_features":{"items":{"type":"string"},"type":"array","title":"Streaming Only Features"},"stt_supported":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Stt Supported"},"tts_supported":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tts Supported"},"languages":{"items":{"type":"string"},"type":"array","title":"Languages"},"languages_supported":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Languages Supported"},"language_auto_supported":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Language Auto Supported"},"emotions_supported":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Emotions Supported"},"intensity_supported":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Intensity Supported"},"delivery_style_supported":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Delivery Style Supported"},"delivery_styles_supported":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Delivery Styles Supported"},"translation_supported":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Translation Supported"},"translation_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Translation Kind"},"translation_max_targets":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Translation Max Targets"},"realtime":{"anyOf":[{"$ref":"#/components/schemas/RealtimeConfigOptions"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["emotions","delivery_styles","intensity_levels","sample_rates","redaction_categories","voice_genders","voice_ages","streaming_only_features"],"title":"AudioConfigOptions","description":"The canonical value spaces, shipped with the config so the form never hardcodes them.\n\n44 emotion tokens and 27 delivery styles are transcribed from WaaV's Rust enums. A second\ncopy in budadmin is a second thing that goes stale, and the drift is invisible until a\nvendor rejects the token months later -- so the server is the single source and the client\nrenders whatever it is handed."},"AudioConfigResponse":{"properties":{"object":{"type":"string","title":"Object","default":"endpoint.audio_config"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","default":"Successfully retrieved audio configuration"},"endpoint_id":{"type":"string","format":"uuid4","title":"Endpoint Id"},"audio_config":{"additionalProperties":true,"type":"object","title":"Audio Config"},"audio_plane":{"type":"boolean","title":"Audio Plane","default":false},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities"},"sections":{"items":{"type":"string"},"type":"array","title":"Sections"},"vendor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"realtime_session_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Realtime Session Type"},"options":{"anyOf":[{"$ref":"#/components/schemas/AudioConfigOptions"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["endpoint_id"],"title":"AudioConfigResponse","description":"``GET`` / ``PUT /endpoints/{id}/audio-config``.\n\n``audio_plane`` and ``sections`` are what let the panel render an honest empty state: a\ntext deployment gets ``audio_plane: false`` rather than a 404, and a transcription-only\ndeployment is told it has no synthesis section rather than being shown voice controls that\ncan never run."},"AudioDeploymentConfig":{"properties":{"voice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"tts":{"anyOf":[{"$ref":"#/components/schemas/AudioTtsConfig"},{"type":"null"}]},"stt":{"anyOf":[{"$ref":"#/components/schemas/AudioSttConfig"},{"type":"null"}]},"translation":{"anyOf":[{"$ref":"#/components/schemas/AudioTranslationConfig"},{"type":"null"}]},"realtime":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Realtime"}},"additionalProperties":true,"type":"object","title":"AudioDeploymentConfig","description":"The whole block as the settings route accepts it."},"AudioInferenceDetail":{"properties":{"audio_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Type"},"input":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input"},"output":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Seconds"},"file_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Size Bytes"},"response_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Format"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"content_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Status"},"trace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Id"},"turn_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Turn Id"},"vendor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor"},"vendor_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Model"},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name"},"characters":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Characters"},"audio_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Audio Seconds"},"cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost"},"pricing_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Unit"},"duration_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Ms"},"stt_rtf":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Stt Rtf"},"error_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Type"},"vendor_status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Vendor Status Code"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"turn_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Turn Index"},"rt_component":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rt Component"},"response_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Id"},"response_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Status"},"tokens":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Tokens"},"billed_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Billed Seconds"},"unpriced_components":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unpriced Components"},"vendor_session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Session Id"},"session_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Type"},"response_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Response Count"},"end_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Reason"},"close_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Close Code"}},"additionalProperties":true,"type":"object","title":"AudioInferenceDetail","description":"Audio / voice detail of a request-log row (spec 021 CONTRACTS §3.2).\n\n``extra=\"allow\"``: this is a passthrough of budmetrics' ``audio_details``, which grows with the voice\nphases (Phase 5 adds ttfa_ms, confidence, …). Naming every field here would silently strip each new\none until budapp caught up."},"AudioPronunciation":{"properties":{"word":{"type":"string","minLength":1,"title":"Word"},"pronunciation":{"type":"string","minLength":1,"title":"Pronunciation"}},"additionalProperties":false,"type":"object","required":["word","pronunciation"],"title":"AudioPronunciation","description":"One spoken-form replacement, applied before synthesis on every path."},"AudioSttCapabilityResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"endpoint_id":{"type":"string","format":"uuid4","title":"Endpoint Id"},"status":{"type":"string","title":"Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"voice_agent":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Voice Agent"},"push_to_talk":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Push To Talk"},"plain":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Plain"},"slower_on_calls":{"type":"boolean","title":"Slower On Calls","default":false},"latency_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latency Class"},"final_latency_slow_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Final Latency Slow Ms"},"streaming_alternatives":{"items":{"type":"string"},"type":"array","title":"Streaming Alternatives"}},"additionalProperties":false,"type":"object","required":["message","endpoint_id","status"],"title":"AudioSttCapabilityResponse","description":"``GET /endpoints/{id}/audio-stt-capability`` -- how the audio gateway serves a\ntranscription deployment on a live call (segmented speech-to-text).\n\n``status`` is ``ok``, ``unknown`` (not reported yet) or ``unsupported`` (not a transcription\ndeployment). Each session kind's ``transcription_mode`` is ``streaming``, ``segmented`` (text\nafter each pause), ``buffered`` (text when the client commits) or ``refused`` with its code."},"AudioSttConfig":{"properties":{"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"punctuation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Punctuation"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"diarization":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Diarization"},"word_timestamps":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Word Timestamps"},"smart_format":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Smart Format"},"profanity_filter":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Profanity Filter"},"filler_words":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Filler Words"},"keyterms":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Keyterms"},"redaction":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Redaction"},"language_detection":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Language Detection"},"entity_detection":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Entity Detection"},"numerals":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Numerals"},"alternatives":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Alternatives"},"sentiment":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sentiment"},"noise_suppression":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Noise Suppression"},"streaming":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Streaming"}},"additionalProperties":true,"type":"object","title":"AudioSttConfig","description":"Transcription defaults for this deployment.\n\nThe five streaming-only canonical features are **not declared here and not rejected here**.\nThey have to survive parsing so :func:`validate_audio_config` can refuse them with a message\nthat names the transport; a model that dropped them at the door produces a 422 saying only\nthat an extra field was present, which teaches the operator nothing about where the feature\ndoes work. Their home is ``streaming`` (FRD-023 WP-RT6.4), a plain object for the same reason."},"AudioTranslationConfig":{"properties":{"target_languages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Target Languages"},"translate_to_english":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Translate To English"},"partials":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Partials"}},"additionalProperties":true,"type":"object","title":"AudioTranslationConfig","description":"Translation defaults. ``/v1/audio/translations`` is English-only until C3 lands."},"AudioTtsConfig":{"properties":{"sample_rate":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Rate"},"pronunciations":{"anyOf":[{"items":{"$ref":"#/components/schemas/AudioPronunciation"},"type":"array"},{"type":"null"}],"title":"Pronunciations"},"connection_timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Connection Timeout"},"request_timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Request Timeout"},"emotion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Emotion"},"emotion_intensity":{"anyOf":[{},{"type":"null"}],"title":"Emotion Intensity"},"delivery_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Style"},"voice_descriptor":{"anyOf":[{"$ref":"#/components/schemas/AudioVoiceDescriptor"},{"type":"null"}]},"pitch":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pitch"},"volume":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Volume"},"rate_percentage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rate Percentage"},"pitch_percentage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pitch Percentage"},"stability":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Stability"},"similarity_boost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Similarity Boost"},"style":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Style"},"use_speaker_boost":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Speaker Boost"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"streaming":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Streaming"},"optimize_streaming_latency":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Optimize Streaming Latency"}},"additionalProperties":true,"type":"object","title":"AudioTtsConfig","description":"Synthesis defaults for this deployment."},"AudioVoice":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name","default":""},"gender":{"type":"string","title":"Gender","default":""},"age":{"type":"string","title":"Age","default":""},"accent":{"type":"string","title":"Accent","default":""},"language":{"type":"string","title":"Language","default":""},"description":{"type":"string","title":"Description","default":""},"use_case":{"type":"string","title":"Use Case","default":""},"sample":{"type":"string","title":"Sample","default":""}},"type":"object","required":["id"],"title":"AudioVoice","description":"One voice the deployment's account can use, as the vendor describes it."},"AudioVoiceDescriptor":{"properties":{"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"},"accent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accent"},"age":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age"},"name_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name Hint"}},"additionalProperties":true,"type":"object","title":"AudioVoiceDescriptor","description":"Describe the voice instead of naming one, and let WaaV resolve it per vendor."},"AudioVoicesResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"endpoint_id":{"type":"string","format":"uuid4","title":"Endpoint Id"},"status":{"type":"string","title":"Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"descriptor_matching":{"type":"boolean","title":"Descriptor Matching","default":false},"voices":{"items":{"$ref":"#/components/schemas/AudioVoice"},"type":"array","title":"Voices"},"accents":{"items":{"type":"string"},"type":"array","title":"Accents"},"genders":{"items":{"type":"string"},"type":"array","title":"Genders"},"ages":{"items":{"type":"string"},"type":"array","title":"Ages"},"timbres":{"items":{"type":"string"},"type":"array","title":"Timbres"},"fetched_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fetched At"}},"additionalProperties":false,"type":"object","required":["message","endpoint_id","status"],"title":"AudioVoicesResponse","description":"``GET /endpoints/{id}/audio-voices`` -- the voices a TTS deployment can use.\n\nListed by the audio gateway with the deployment's own credential (budapp never holds it in\nplaintext) and read back here. ``status`` says whether there is a list and, with\n``reason``, why not: ``unsupported`` (the vendor cannot be listed per deployment),\n``unavailable`` (the vendor refused this key -- an ElevenLabs key without ``voices_read``),\nor ``pending`` (not listed yet)."},"AuditActionEnum":{"type":"string","enum":["create","read","update","delete","login","logout","login_failed","token_refresh","password_change","password_reset","access_granted","access_denied","permission_changed","role_assigned","role_removed","model_deployed","model_undeployed","endpoint_published","endpoint_unpublished","inference_request","cache_cleared","cache_entry_updated","invoice_finalized","invoice_voided","quota_alert","cache_entries_deleted","cluster_registered","cluster_updated","cluster_deleted","cluster_health_check","data_export","data_import","data_download","data_upload","config_changed","system_error","workflow_started","workflow_completed","workflow_failed","evaluation.trigger","evaluation.cancel","experiment.purge","run.rerun_failed","run.rescore","sample.review","run.resume_gated","evaluation.score_stored","trace.tags_changed","run.enrich_subagents","evaluation.webhook_secret","evaluation.keep_preview"],"title":"AuditActionEnum","description":"Enumeration of audit action types.\n\nThis enum represents different types of actions that can be audited\nin the system for compliance and security tracking."},"AuditRecordEntry":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id","description":"Unique identifier for the audit record"},"user_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"User Id","description":"ID of the user who performed the action"},"actioned_by":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Actioned By","description":"ID of the admin/user who performed the action on behalf of another user"},"action":{"type":"string","title":"Action","description":"Type of action performed"},"resource_type":{"type":"string","title":"Resource Type","description":"Type of resource affected"},"resource_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Resource Id","description":"ID of the affected resource"},"resource_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Name","description":"Name of the affected resource for display and search"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"When the action occurred"},"details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Details","description":"Additional context about the action"},"ip_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip Address","description":"IP address from which the action was performed"},"previous_state":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Previous State","description":"State of the resource before the action"},"new_state":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"New State","description":"State of the resource after the action"},"record_hash":{"type":"string","title":"Record Hash","description":"SHA256 hash of record data for integrity verification"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the audit record was created"},"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email","description":"Email of the user who performed the action"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name","description":"Name of the user who performed the action"},"actioned_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actioned By Email","description":"Email of the admin/user who performed the action on behalf"},"actioned_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actioned By Name","description":"Name of the admin/user who performed the action on behalf"}},"type":"object","required":["id","action","resource_type","timestamp","record_hash","created_at"],"title":"AuditRecordEntry","description":"Schema for a single audit record in responses.\n\nRepresents a complete audit record as returned from the database."},"AuditRecordResponse":{"properties":{"object":{"type":"string","title":"Object","description":"Object type identifier","default":"audit.record"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"data":{"$ref":"#/components/schemas/AuditRecordEntry","description":"The audit record data"}},"additionalProperties":false,"type":"object","required":["message","data"],"title":"AuditRecordResponse","description":"Response schema for a single audit record."},"AuditResourceTypeEnum":{"type":"string","enum":["tenant","tenant_member","support_access","tenant_export","platform_setting","tenant_billing","tenant_quota","price_book","invoice","user","project","model","endpoint","deployment","dataset","cluster","session","token","role","permission","api_key","workflow","job","task","experiment","evaluation","run","eval_dataset","config","setting","secret","file","bucket","database","metric","log","alert","notification","system","service","guardrail","governance_policy","governance_binding","escalation","standing_grant","generated_tool_source","skill","platform_module"],"title":"AuditResourceTypeEnum","description":"Enumeration of resource types that can be audited.\n\nThis enum represents different types of resources in the system\nthat can be tracked in audit logs."},"AuditSummaryResponse":{"properties":{"object":{"type":"string","title":"Object","description":"Object type identifier","default":"audit.summary"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"data":{"additionalProperties":true,"type":"object","title":"Data","description":"Summary statistics data"}},"additionalProperties":false,"type":"object","required":["message","data"],"title":"AuditSummaryResponse","description":"Response schema for audit summary statistics.","example":{"data":{"date_range":{"end":"2024-01-31T23:59:59Z","start":"2024-01-01T00:00:00Z"},"most_active_users":[{"count":100,"user_id":"123e4567-e89b-12d3-a456-426614174000"}],"most_common_actions":[{"action":"read","count":500},{"action":"update","count":300}],"total_records":1000,"unique_users":50},"message":"Audit summary retrieved successfully","object":"audit.summary","success":true}},"AuthCapabilitiesResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"mode":{"type":"string","title":"Mode","description":"'keycloak_admin' when bud operates the IdP, else 'external'."},"can_invite_with_credential":{"type":"boolean","title":"Can Invite With Credential","description":"Whether creating a user issues an IdP set-password email (vs a pre-authorization row)."},"can_admin_reset_password":{"type":"boolean","title":"Can Admin Reset Password","description":"Whether an admin can trigger an IdP-hosted password-reset email for a user."},"supports_self_service_password":{"type":"boolean","title":"Supports Self Service Password","description":"Whether users can self-manage their password (via account_management_url)."},"account_management_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Management Url","description":"Deep-link to the IdP account console, when configured."},"can_manage_roles":{"type":"boolean","title":"Can Manage Roles","description":"Whether budapp can write realm-role mappings on the IdP. Gates the promote/demote affordance: with an external IdP the user's roles claim wins at the next login, so the change has to be made at the IdP.","default":false}},"additionalProperties":false,"type":"object","required":["message","mode","can_invite_with_credential","can_admin_reset_password","supports_self_service_password"],"title":"AuthCapabilitiesResponse","description":"Capabilities of the active IdP integration, read by the frontend.\n\nDrives which auth affordances budadmin renders — a credential-issuing invite\n+ admin-triggered reset when bud operates the IdP (bundled Keycloak), or an\nSSO-only \"provisioned via your identity provider\" experience otherwise."},"AutoscaleConfigResponse":{"properties":{"object":{"type":"string","title":"Object","default":"endpoint.autoscale"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"endpoint_id":{"type":"string","format":"uuid4","title":"Endpoint Id"},"autoscale_enabled":{"type":"boolean","title":"Autoscale Enabled"},"budaiscaler_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Budaiscaler Config"}},"additionalProperties":false,"type":"object","required":["message","endpoint_id","autoscale_enabled"],"title":"AutoscaleConfigResponse","description":"Response with current autoscale configuration."},"AvailableAgentItem":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"prompt_type":{"type":"string","title":"Prompt Type"},"base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Url"},"auth_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Type"},"health_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Health Status"},"skills":{"items":{"type":"string"},"type":"array","title":"Skills","description":"Skill names from card_data"},"is_connected":{"type":"boolean","title":"Is Connected","default":false},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"}},"type":"object","required":["id","name","prompt_type"],"title":"AvailableAgentItem","description":"An agent available for connecting as a tool to a prompt."},"BaseModelRelationEnum":{"type":"string","enum":["adapter","merge","quantized","finetune"],"title":"BaseModelRelationEnum","description":"Base model relation types."},"BaselineIn":{"properties":{"mode":{"anyOf":[{"type":"string","enum":["runs","manual"]},{"type":"null"}],"title":"Mode"},"runs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Runs"},"pinned_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pinned Run Id"},"manual":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Manual"},"variation_pts":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Variation Pts"},"restart_on_version":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Restart On Version"}},"additionalProperties":false,"type":"object","title":"BaselineIn"},"BdaSubscriptionCallback":{"properties":{"url":{"type":"string","minLength":1,"title":"Url"},"secret":{"type":"string","minLength":1,"title":"Secret"}},"type":"object","required":["url","secret"],"title":"BdaSubscriptionCallback","description":"BudAgent's webhook callback. The secret is BudAgent-generated, passed through\nverbatim to budevent, and never logged or stored in budapp (FR-BE-2)."},"BdaSubscriptionRequest":{"properties":{"semantics":{"type":"string","enum":["conversational","fire_and_forget"],"title":"Semantics"},"callback":{"$ref":"#/components/schemas/BdaSubscriptionCallback"},"match_criteria":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Match Criteria"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"}},"type":"object","required":["semantics","callback"],"title":"BdaSubscriptionRequest","description":"Attach BudAgent's subscription to a shared connection (FR-BE-2)."},"BdaSubscriptionResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"subscription_id":{"type":"string","title":"Subscription Id"}},"additionalProperties":false,"type":"object","required":["message","subscription_id"],"title":"BdaSubscriptionResponse","description":"Response for POST /events/shared-connections/{connector_id}/bda-subscription."},"BenchmarkFilterResourceEnum":{"type":"string","enum":["model","cluster"],"title":"BenchmarkFilterResourceEnum","description":"Benchmark filter resource types."},"BenchmarkFilterValueResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"result":{"items":{"type":"string"},"type":"array","title":"Result"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","result","total_pages"],"title":"BenchmarkFilterValueResponse","description":"Benchmark filter values response schema."},"BenchmarkPaginatedResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"benchmarks":{"items":{"$ref":"#/components/schemas/BenchmarkResponse"},"type":"array","title":"Benchmarks"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","benchmarks","total_pages"],"title":"BenchmarkPaginatedResponse"},"BenchmarkRequestMetrics":{"properties":{"benchmark_id":{"type":"string","format":"uuid","title":"Benchmark Id"},"dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Id"},"latency":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latency"},"success":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Success"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"prompt_len":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Len"},"output_len":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Output Len"},"req_output_throughput":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Req Output Throughput"},"ttft":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ttft"},"tpot":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tpot"},"itl":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Itl"}},"additionalProperties":true,"type":"object","required":["benchmark_id"],"title":"BenchmarkRequestMetrics"},"BenchmarkResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/BenchmarkStatusEnum"},"model":{"$ref":"#/components/schemas/ModelResponse"},"cluster":{"$ref":"#/components/schemas/ClusterResponse"},"node_type":{"type":"string","title":"Node Type"},"vendor_type":{"type":"string","title":"Vendor Type"},"concurrency":{"type":"integer","title":"Concurrency"},"tpot":{"type":"number","title":"Tpot","default":0.5},"ttft":{"type":"number","title":"Ttft","default":0.5},"created_at":{"type":"string","format":"date-time","title":"Created At"},"eval_with":{"type":"string","enum":["dataset","configuration"],"title":"Eval With"},"dataset_ids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Dataset Ids"},"max_input_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Input Tokens"},"max_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Tokens"}},"type":"object","required":["id","name","status","model","cluster","node_type","vendor_type","concurrency","created_at","eval_with","dataset_ids","max_input_tokens","max_output_tokens"],"title":"BenchmarkResponse"},"BenchmarkStatusEnum":{"type":"string","enum":["success","failed","processing","cancelled"],"title":"BenchmarkStatusEnum","description":"Benchmark status."},"BillingAlertSchema":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"name":{"type":"string","title":"Name"},"alert_type":{"type":"string","title":"Alert Type"},"threshold_percent":{"type":"integer","title":"Threshold Percent"},"last_triggered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Triggered At"},"last_triggered_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Triggered Value"},"last_notification_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Notification Sent At"},"notification_failure_count":{"type":"integer","title":"Notification Failure Count","default":0},"last_notification_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Notification Error"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","user_id","name","alert_type","threshold_percent","last_triggered_at","last_triggered_value","is_active","created_at","modified_at"],"title":"BillingAlertSchema","description":"Billing alert schema."},"BillingPlanSchema":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"monthly_token_quota":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Monthly Token Quota"},"monthly_cost_quota":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Monthly Cost Quota"},"max_projects":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Projects"},"max_endpoints_per_project":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Endpoints Per Project"},"base_monthly_price":{"type":"string","title":"Base Monthly Price"},"overage_token_price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overage Token Price"},"features":{"additionalProperties":true,"type":"object","title":"Features"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","name","description","monthly_token_quota","monthly_cost_quota","max_projects","max_endpoints_per_project","base_monthly_price","overage_token_price","features","is_active","created_at","modified_at"],"title":"BillingPlanSchema","description":"Billing plan schema."},"BillingProfileBody":{"properties":{"plan_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Plan Id"},"billing_owner_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Billing Owner Name"},"billing_owner_email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Billing Owner Email"},"currency":{"anyOf":[{"type":"string","maxLength":3,"minLength":3},{"type":"null"}],"title":"Currency"},"cycle_anchor_day":{"anyOf":[{"type":"integer","maximum":28.0,"minimum":1.0},{"type":"null"}],"title":"Cycle Anchor Day"},"status":{"anyOf":[{"type":"string","pattern":"^(active|paused)$"},{"type":"null"}],"title":"Status"}},"additionalProperties":false,"type":"object","title":"BillingProfileBody"},"BlockingRule":{"properties":{"name":{"type":"string","maxLength":255,"title":"Name","description":"Name of the blocking rule"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description","description":"Description of the rule"},"rule_type":{"$ref":"#/components/schemas/BlockingRuleType","description":"Type of blocking rule"},"rule_config":{"additionalProperties":true,"type":"object","title":"Rule Config","description":"Rule configuration (varies by type)"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason","description":"Reason for creating this rule"},"priority":{"type":"integer","title":"Priority","description":"Rule priority (higher values evaluated first)","default":0},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name","description":"Model name for model-specific rules (None for global rules)"},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Endpoint Id","description":"Deprecated - use model_name instead"},"id":{"type":"string","format":"uuid","title":"Id","description":"Unique identifier of the rule"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id","description":"Project ID (None for global rules)"},"status":{"$ref":"#/components/schemas/BlockingRuleStatus","description":"Current status of the rule"},"created_by":{"type":"string","format":"uuid","title":"Created By","description":"User who created the rule"},"match_count":{"type":"integer","title":"Match Count","description":"Number of times this rule has been matched","default":0},"last_matched_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Matched At","description":"Last time this rule was matched"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Creation timestamp"},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"Last update timestamp"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name","description":"Project name"},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name","description":"Endpoint name if applicable"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name","description":"Name of user who created the rule"}},"type":"object","required":["name","rule_type","rule_config","id","status","created_by","created_at","updated_at"],"title":"BlockingRule","description":"Schema for blocking rule response."},"BlockingRuleCreate":{"properties":{"name":{"type":"string","maxLength":255,"title":"Name","description":"Name of the blocking rule"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description","description":"Description of the rule"},"rule_type":{"$ref":"#/components/schemas/BlockingRuleType","description":"Type of blocking rule"},"rule_config":{"additionalProperties":true,"type":"object","title":"Rule Config","description":"Rule configuration (varies by type)"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason","description":"Reason for creating this rule"},"priority":{"type":"integer","title":"Priority","description":"Rule priority (higher values evaluated first)","default":0},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name","description":"Model name for model-specific rules (None for global rules)"},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Endpoint Id","description":"Deprecated - use model_name instead"}},"type":"object","required":["name","rule_type","rule_config"],"title":"BlockingRuleCreate","description":"Schema for creating a blocking rule."},"BlockingRuleDeleteResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"id":{"type":"string","format":"uuid","title":"Id","description":"ID of the deleted rule"}},"additionalProperties":false,"type":"object","required":["message","id"],"title":"BlockingRuleDeleteResponse","description":"Response schema for deleting a blocking rule."},"BlockingRuleListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"items":{"items":{"$ref":"#/components/schemas/BlockingRule"},"type":"array","title":"Items","description":"List of blocking rules"},"total":{"type":"integer","title":"Total","description":"Total number of rules"},"page":{"type":"integer","title":"Page","description":"Current page number","default":1},"page_size":{"type":"integer","title":"Page Size","description":"Number of items per page","default":20}},"additionalProperties":false,"type":"object","required":["message","items","total"],"title":"BlockingRuleListResponse","description":"Response schema for listing blocking rules."},"BlockingRuleResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"data":{"$ref":"#/components/schemas/BlockingRule","description":"Blocking rule details"}},"additionalProperties":false,"type":"object","required":["message","data"],"title":"BlockingRuleResponse","description":"Response schema for single blocking rule."},"BlockingRuleStatus":{"type":"string","enum":["active","inactive","expired"],"title":"BlockingRuleStatus","description":"Enumeration of blocking rule statuses.\n\nAttributes:\n    ACTIVE: Rule is active and will be enforced\n    INACTIVE: Rule is inactive and will not be enforced\n    EXPIRED: Rule has expired (for temporary rules)"},"BlockingRuleSyncRequest":{"properties":{"project_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Project Ids","description":"Specific projects to sync"},"force_sync":{"type":"boolean","title":"Force Sync","description":"Force sync even if no changes","default":false}},"type":"object","title":"BlockingRuleSyncRequest","description":"Request to sync blocking rules to Redis for real-time access."},"BlockingRuleType":{"type":"string","enum":["ip_blocking","country_blocking","user_agent_blocking","rate_based_blocking"],"title":"BlockingRuleType","description":"Enumeration of blocking rule types for gateway protection.\n\nAttributes:\n    IP_BLOCKING: Block specific IP addresses or ranges\n    COUNTRY_BLOCKING: Block traffic from specific countries\n    USER_AGENT_BLOCKING: Block based on user agent patterns\n    RATE_BASED_BLOCKING: Block based on request rate thresholds"},"BlockingRuleUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name","description":"Name of the blocking rule"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description","description":"Description of the rule"},"rule_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rule Config","description":"Rule configuration"},"status":{"anyOf":[{"$ref":"#/components/schemas/BlockingRuleStatus"},{"type":"null"}],"description":"Rule status"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason","description":"Reason for the rule"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority","description":"Rule priority"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name","description":"Model name for model-specific rules"}},"type":"object","title":"BlockingRuleUpdate","description":"Schema for updating a blocking rule."},"BlockingRulesStatsOverviewResponse":{"properties":{"object":{"type":"string","title":"Object","default":"blocking_rules_stats"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"total_rules":{"type":"integer","title":"Total Rules","description":"Total number of blocking rules"},"active_rules":{"type":"integer","title":"Active Rules","description":"Number of active blocking rules"},"inactive_rules":{"type":"integer","title":"Inactive Rules","description":"Number of inactive blocking rules"},"expired_rules":{"type":"integer","title":"Expired Rules","description":"Number of expired blocking rules"},"total_blocks_today":{"type":"integer","title":"Total Blocks Today","description":"Total blocks in the last 24 hours"},"total_blocks_week":{"type":"integer","title":"Total Blocks Week","description":"Total blocks in the last 7 days"},"top_blocked_ips":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Top Blocked Ips","description":"Top blocked IP addresses"},"top_blocked_countries":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Top Blocked Countries","description":"Top blocked countries"},"blocks_by_type":{"additionalProperties":{"type":"integer"},"type":"object","title":"Blocks By Type","description":"Blocks grouped by rule type"},"blocks_timeline":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Blocks Timeline","description":"Timeline of blocking events"}},"additionalProperties":false,"type":"object","required":["message","total_rules","active_rules","inactive_rules","expired_rules","total_blocks_today","total_blocks_week"],"title":"BlockingRulesStatsOverviewResponse","description":"Response schema for blocking rules overview statistics."},"BlockingStats":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"Timestamp of the blocking event"},"ip_address":{"type":"string","title":"Ip Address","description":"Blocked IP address"},"reason":{"type":"string","title":"Reason","description":"Reason for blocking"},"block_count":{"type":"integer","title":"Block Count","description":"Number of times blocked"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id","description":"Associated project ID"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name","description":"Associated project name"}},"type":"object","required":["timestamp","ip_address","reason","block_count"],"title":"BlockingStats","description":"Blocking statistics item."},"BlockingStatsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"items":{"items":{"$ref":"#/components/schemas/BlockingStats"},"type":"array","title":"Items","description":"List of blocking statistics"},"total_blocked_ips":{"type":"integer","title":"Total Blocked Ips","description":"Total number of unique blocked IPs"},"total_block_events":{"type":"integer","title":"Total Block Events","description":"Total number of blocking events"}},"additionalProperties":false,"type":"object","required":["message","items","total_blocked_ips","total_block_events"],"title":"BlockingStatsResponse","description":"Response schema for blocking statistics."},"Body_add_knowledge_file_pact_imports__import_id__knowledge__agent__post":{"properties":{"file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"File"},"files":{"anyOf":[{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array"},{"type":"null"}],"title":"Files"}},"type":"object","title":"Body_add_knowledge_file_pact_imports__import_id__knowledge__agent__post"},"Body_create_cluster_workflow_clusters_clusters_post":{"properties":{"step_number":{"type":"integer","exclusiveMinimum":0.0,"title":"Step Number"},"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"icon":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Icon"},"ingress_url":{"anyOf":[{"type":"string","minLength":1,"format":"uri"},{"type":"null"}],"title":"Ingress Url"},"configuration_file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"Configuration File","description":"The configuration file for the cluster"},"workflow_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workflow Id"},"workflow_total_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workflow Total Steps"},"trigger_workflow":{"type":"boolean","title":"Trigger Workflow","default":false},"cluster_type":{"type":"string","enum":["ON_PREM","CLOUD"],"title":"Cluster Type","description":"Type of cluster","default":"ON_PREM"},"credential_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Credential Id"},"provider_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Provider Id"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"}},"type":"object","required":["step_number"],"title":"Body_create_cluster_workflow_clusters_clusters_post"},"Body_delete_endpoint_endpoints__endpoint_id__delete_workflow_post":{"properties":{"callback_topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callback Topic"}},"type":"object","title":"Body_delete_endpoint_endpoints__endpoint_id__delete_workflow_post"},"Body_edit_model_models__model_id__patch":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags"},"tasks":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tasks"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"paper_urls":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paper Urls"},"github_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Github Url"},"huggingface_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Huggingface Url"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"},"license_file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"License File"},"license_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License Url"},"remove_license":{"type":"boolean","title":"Remove License","default":false}},"type":"object","title":"Body_edit_model_models__model_id__patch"},"Body_generate_from_upload_connectors_generate_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"OpenAPI spec or documentation file"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"source_type":{"type":"string","title":"Source Type","default":"openapi_upload"},"api_base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Base Url"},"format_hint":{"type":"string","title":"Format Hint","default":"auto"},"auth":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"}},"type":"object","required":["file","name"],"title":"Body_generate_from_upload_connectors_generate_upload_post"},"Body_skill_create_workflow_upload_skills_create_workflow_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"step_number":{"type":"integer","title":"Step Number","default":1},"workflow_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workflow Id"},"workflow_total_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workflow Total Steps"},"trigger_workflow":{"type":"boolean","title":"Trigger Workflow","default":false}},"type":"object","required":["file"],"title":"Body_skill_create_workflow_upload_skills_create_workflow_upload_post"},"Body_upload_dataset_testcases_route_eval_ops_custom_datasets__dataset_id__upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"CSV or JSONL testcase upload."}},"type":"object","required":["file"],"title":"Body_upload_dataset_testcases_route_eval_ops_custom_datasets__dataset_id__upload_post"},"Body_upload_documents_route_eval_ops_custom_datasets__dataset_id__documents_post":{"properties":{"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files","description":"PDF, DOCX, MD, TXT or HTML; ≤ 25 MB each, ≤ 20."},"purpose":{"type":"string","title":"Purpose","description":"reference | requirements","default":"reference"}},"type":"object","required":["files"],"title":"Body_upload_documents_route_eval_ops_custom_datasets__dataset_id__documents_post"},"Body_upload_editor_file_route_eval_ops_custom_datasets__dataset_id__files_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"CSV, TSV, JSON array, JSONL or XLSX; at most 50 MB."}},"type":"object","required":["file"],"title":"Body_upload_editor_file_route_eval_ops_custom_datasets__dataset_id__files_post"},"Body_upload_import_pact_imports_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_import_pact_imports_upload_post"},"Body_upload_widget_asset_prompts__bud_prompt_id__widgets_assets_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"PNG, JPEG or WEBP image (max 1 MB)"},"kind":{"type":"string","title":"Kind","description":"One of: assistant_avatar, brand_mark"}},"type":"object","required":["file","kind"],"title":"Body_upload_widget_asset_prompts__bud_prompt_id__widgets_assets_post"},"BudAIScalerSpecification":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"minReplicas":{"type":"integer","minimum":0.0,"title":"Minreplicas","default":1},"maxReplicas":{"type":"integer","minimum":0.0,"title":"Maxreplicas","default":10},"scalingStrategy":{"$ref":"#/components/schemas/BudScalerStrategyEnum","default":"BudScaler"},"metricsSources":{"items":{"$ref":"#/components/schemas/BudScalerMetricSource"},"type":"array","title":"Metricssources"},"gpuConfig":{"$ref":"#/components/schemas/BudScalerGPUConfig"},"costConfig":{"$ref":"#/components/schemas/BudScalerCostConfig"},"predictionConfig":{"$ref":"#/components/schemas/BudScalerPredictionConfig"},"scheduleHints":{"items":{"$ref":"#/components/schemas/BudScalerScheduleHint"},"type":"array","title":"Schedulehints"},"multiCluster":{"$ref":"#/components/schemas/BudScalerMultiClusterConfig"},"behavior":{"$ref":"#/components/schemas/BudScalerBehavior"},"scaleToZeroConfig":{"anyOf":[{"$ref":"#/components/schemas/BudScalerScaleToZeroConfig"},{"type":"null"}],"description":"Scale-to-zero configuration (only effective when minReplicas=0)"}},"type":"object","title":"BudAIScalerSpecification","description":"BudAIScaler specification schema for new autoscaling standard."},"BudScalerBehavior":{"properties":{"scaleUp":{"$ref":"#/components/schemas/BudScalerScaleConfig"},"scaleDown":{"$ref":"#/components/schemas/BudScalerScaleConfig"}},"type":"object","title":"BudScalerBehavior","description":"Scaling behavior configuration."},"BudScalerCloudProviderEnum":{"type":"string","enum":["aws","azure","gcp","on-premises"],"title":"BudScalerCloudProviderEnum","description":"Cloud provider types for BudAIScaler cost configuration."},"BudScalerCostConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"cloudProvider":{"anyOf":[{"$ref":"#/components/schemas/BudScalerCloudProviderEnum"},{"type":"null"}]},"hourlyBudgetLimit":{"type":"number","minimum":0.0,"title":"Hourlybudgetlimit","default":0},"dailyBudgetLimit":{"type":"number","minimum":0.0,"title":"Dailybudgetlimit","default":0},"spotInstancePreference":{"$ref":"#/components/schemas/BudScalerSpotPreferenceEnum","default":"none"}},"type":"object","title":"BudScalerCostConfig","description":"Cost-aware scaling configuration."},"BudScalerFailoverThreshold":{"properties":{"healthCheckFailures":{"type":"integer","minimum":1.0,"title":"Healthcheckfailures","default":3},"latencyMs":{"type":"integer","minimum":100.0,"title":"Latencyms","default":5000}},"type":"object","title":"BudScalerFailoverThreshold","description":"Failover threshold configuration."},"BudScalerFederationModeEnum":{"type":"string","enum":["active-passive","active-active","weighted"],"title":"BudScalerFederationModeEnum","description":"Multi-cluster federation mode for BudAIScaler."},"BudScalerGPUConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"memoryThreshold":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Memorythreshold","default":80},"computeThreshold":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Computethreshold","default":80},"topologyAware":{"type":"boolean","title":"Topologyaware","default":false},"preferredGPUType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferredgputype"},"vGPUSupport":{"type":"boolean","title":"Vgpusupport","default":false}},"type":"object","title":"BudScalerGPUConfig","description":"GPU-aware scaling configuration."},"BudScalerMetricSource":{"properties":{"type":{"$ref":"#/components/schemas/BudScalerMetricSourceTypeEnum"},"protocolType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Protocoltype","default":"http"},"port":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Port","default":"9090"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path","default":"/metrics"},"targetMetric":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Targetmetric"},"targetValue":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Targetvalue"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},"type":"object","required":["type"],"title":"BudScalerMetricSource","description":"Metric source configuration for BudAIScaler."},"BudScalerMetricSourceTypeEnum":{"type":"string","enum":["pod","resource","prometheus","inferenceEngine","custom","external"],"title":"BudScalerMetricSourceTypeEnum","description":"BudAIScaler metric source types."},"BudScalerMultiClusterConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"federationMode":{"$ref":"#/components/schemas/BudScalerFederationModeEnum","default":"active-passive"},"clusterWeights":{"additionalProperties":{"type":"integer"},"type":"object","title":"Clusterweights"},"failoverThresholds":{"$ref":"#/components/schemas/BudScalerFailoverThreshold"}},"type":"object","title":"BudScalerMultiClusterConfig","description":"Multi-cluster federation configuration."},"BudScalerPredictionConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"lookAheadMinutes":{"type":"integer","maximum":60.0,"minimum":1.0,"title":"Lookaheadminutes","default":15},"historyDays":{"type":"integer","maximum":90.0,"minimum":1.0,"title":"Historydays","default":7},"minConfidence":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Minconfidence","default":0.7},"predictionMetrics":{"items":{"type":"string"},"type":"array","title":"Predictionmetrics"}},"type":"object","title":"BudScalerPredictionConfig","description":"Predictive scaling configuration."},"BudScalerScaleConfig":{"properties":{"stabilizationWindowSeconds":{"type":"integer","minimum":0.0,"title":"Stabilizationwindowseconds","default":0},"policies":{"items":{"$ref":"#/components/schemas/BudScalerScalePolicy"},"type":"array","title":"Policies"},"selectPolicy":{"type":"string","title":"Selectpolicy","default":"Max"}},"type":"object","title":"BudScalerScaleConfig","description":"Scale up/down configuration."},"BudScalerScalePolicy":{"properties":{"type":{"type":"string","title":"Type","default":"Percent"},"value":{"type":"integer","minimum":0.0,"title":"Value","default":100},"periodSeconds":{"type":"integer","minimum":1.0,"title":"Periodseconds","default":15}},"type":"object","title":"BudScalerScalePolicy","description":"Scaling policy for scale up/down."},"BudScalerScaleToZeroConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"Enable scale-to-zero functionality","default":true},"activationScale":{"type":"integer","minimum":1.0,"title":"Activationscale","description":"Number of replicas to scale to when waking from zero","default":1},"gracePeriod":{"type":"string","title":"Graceperiod","description":"Time to wait at zero demand before scaling to zero (e.g., '5m', '30s')","default":"5m"}},"type":"object","title":"BudScalerScaleToZeroConfig","description":"Scale-to-zero configuration for BudAIScaler."},"BudScalerScheduleHint":{"properties":{"name":{"type":"string","title":"Name"},"cronExpression":{"type":"string","title":"Cronexpression"},"targetReplicas":{"type":"integer","minimum":0.0,"title":"Targetreplicas"},"duration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Duration"}},"type":"object","required":["name","cronExpression","targetReplicas"],"title":"BudScalerScheduleHint","description":"Schedule-based scaling hint."},"BudScalerSpotPreferenceEnum":{"type":"string","enum":["none","prefer","require"],"title":"BudScalerSpotPreferenceEnum","description":"Spot instance preference for BudAIScaler cost configuration."},"BudScalerStrategyEnum":{"type":"string","enum":["HPA","KPA","BudScaler"],"title":"BudScalerStrategyEnum","description":"BudAIScaler scaling strategy types."},"BudgetStats":{"properties":{"limit_usd":{"type":"number","title":"Limit Usd","description":"Budget limit in USD"},"used_usd":{"type":"number","title":"Used Usd","description":"Budget used in USD"},"used_pct":{"type":"integer","title":"Used Pct","description":"Percentage of budget used"}},"type":"object","required":["limit_usd","used_usd","used_pct"],"title":"BudgetStats","description":"Budget statistics for an experiment."},"CacheActivityEntry":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"kind":{"type":"string","enum":["config_change","cache_cleared","price_change"],"title":"Kind"},"success":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Success"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"changes":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Changes"},"before":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Before"},"after":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"After"},"erased":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Erased"}},"type":"object","required":["id","timestamp","kind"],"title":"CacheActivityEntry","description":"One row of a deployment's Cost Optimiser activity log (`WP-C2.5`)."},"CacheActivityResponse":{"properties":{"object":{"type":"string","title":"Object","default":"endpoint.cache_activity"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"items":{"items":{"$ref":"#/components/schemas/CacheActivityEntry"},"type":"array","title":"Items"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"CacheActivityResponse","description":"A page of a deployment's Cost Optimiser activity, newest first."},"CacheClearResponse":{"properties":{"object":{"type":"string","title":"Object","default":"endpoint.cache_clear"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"endpoint_id":{"type":"string","format":"uuid","title":"Endpoint Id"},"erased":{"$ref":"#/components/schemas/CacheEraseCounts"},"settings_kept":{"type":"boolean","title":"Settings Kept","default":true},"spill_best_effort":{"type":"boolean","title":"Spill Best Effort","default":true}},"additionalProperties":false,"type":"object","required":["message","endpoint_id","erased"],"title":"CacheClearResponse","description":"The result of clearing a deployment's cache."},"CacheConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"mode":{"type":"string","title":"Mode","default":"off"},"ttl_seconds":{"type":"integer","minimum":60.0,"title":"Ttl Seconds","description":"How long a cached response stays valid.","default":86400},"max_cacheable_temperature":{"type":"number","maximum":2.0,"minimum":0.0,"title":"Max Cacheable Temperature","default":0.3},"bypass_on_tools":{"type":"boolean","title":"Bypass On Tools","default":true},"prompt_optimisation":{"$ref":"#/components/schemas/PromptOptimisation","default":"off"},"max_output_tokens":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Output Tokens","description":"Retired and ignored. Kept only so stored configs carrying it still validate."},"optimisation_profile":{"type":"string","enum":["off","safe","balanced","maximum"],"title":"Optimisation Profile","default":"off"},"stage_overrides":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Stage Overrides"},"tool_seam":{"type":"boolean","title":"Tool Seam","default":true},"live_zone_engines":{"items":{"type":"string"},"type":"array","title":"Live Zone Engines"},"kv_aligner":{"type":"boolean","title":"Kv Aligner","default":true},"replay_rewrites":{"type":"boolean","title":"Replay Rewrites","default":true},"compress_responses_at_rest":{"type":"boolean","title":"Compress Responses At Rest","default":true}},"type":"object","title":"CacheConfig","description":"Semantic-cache configuration for one deployment.\n\nField names deliberately match the ``plugin_semantic_cache`` router-plugin\nparams (``enabled`` / ``ttl_seconds``,\n``router_ops/manifest.yaml``) so the Router Editor and the deployment\nsettings drawer read identically to a user. The translation to budgateway's\nwire vocabulary happens once, in :meth:`to_cache_profile`."},"CacheConfigResponse":{"properties":{"object":{"type":"string","title":"Object","default":"endpoint.cache_config"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","default":"Successfully retrieved cache configuration"},"endpoint_id":{"type":"string","format":"uuid4","title":"Endpoint Id"},"cache_config":{"$ref":"#/components/schemas/CacheConfig"},"emits_to_gateway":{"type":"boolean","title":"Emits To Gateway","default":false},"prompt_optimisation_available":{"type":"boolean","title":"Prompt Optimisation Available","default":false},"prompt_optimisation_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Optimisation Unavailable Reason"},"profile_availability":{"items":{"$ref":"#/components/schemas/ProfileAvailability"},"type":"array","title":"Profile Availability"},"feature_availability":{"items":{"$ref":"#/components/schemas/FeatureAvailability"},"type":"array","title":"Feature Availability"},"optimisation_notices":{"items":{"$ref":"#/components/schemas/OptimisationNotice"},"type":"array","title":"Optimisation Notices"},"price_basis":{"$ref":"#/components/schemas/PriceBasis"},"cache_clear_available":{"type":"boolean","title":"Cache Clear Available","default":false},"cache_clear_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Clear Unavailable Reason"},"resolved_optimisation_profile":{"type":"string","title":"Resolved Optimisation Profile","default":"off"}},"additionalProperties":false,"type":"object","required":["endpoint_id","cache_config"],"title":"CacheConfigResponse","description":"Response schema for the per-deployment cache configuration.\n\nMirrors :class:`ResponsesConfigResponse` so budadmin consumes the same\nenvelope shape for every per-deployment config endpoint."},"CacheEntryDeleteRequest":{"properties":{"key_digests":{"items":{"type":"string"},"type":"array","title":"Key Digests"}},"type":"object","required":["key_digests"],"title":"CacheEntryDeleteRequest"},"CacheEntryDeleteResponse":{"properties":{"object":{"type":"string","title":"Object","default":"endpoint.cache_entries_deleted"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"endpoint_id":{"type":"string","format":"uuid","title":"Endpoint Id"},"deleted":{"type":"integer","title":"Deleted","default":0},"not_found":{"type":"integer","title":"Not Found","default":0}},"additionalProperties":false,"type":"object","required":["message","endpoint_id"],"title":"CacheEntryDeleteResponse","description":"What the delete removed, and what it could not find.\n\n``not_found`` is expected traffic, not an error: the discovery view can offer a row\nthe cache evicted between listing it and acting on it."},"CacheEntryDescription":{"properties":{"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent"},"requests":{"type":"integer","title":"Requests","default":0},"hits":{"type":"integer","title":"Hits","default":0},"saved":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Saved"},"original_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Original Bytes"},"dispatched_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dispatched Bytes"}},"type":"object","title":"CacheEntryDescription","description":"What observability knows about one entry (`specs/020` `WP-C8.5`).\n\nEvery field is optional on purpose. BudCache can hold an entry whose describing\nrequests have aged out of the shorter body TTL, or that predates the digest being\nrecorded at all. The console renders those as \"content aged out\" rather than as an\nerror or a blank that reads like an empty prompt."},"CacheEntryDetailResponse":{"properties":{"object":{"type":"string","title":"Object","default":"endpoint.cache_entry"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"endpoint_id":{"type":"string","format":"uuid","title":"Endpoint Id"},"entry":{"anyOf":[{"$ref":"#/components/schemas/CacheEntrySchema"},{"type":"null"}]},"response":{"type":"string","title":"Response","default":""}},"additionalProperties":false,"type":"object","required":["message","endpoint_id"],"title":"CacheEntryDetailResponse","description":"One entry and the answer it would serve.\n\nReading this does not count as a cache hit: inspecting the cache must not change\nwhat the console is measuring."},"CacheEntryListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"endpoint.cache_entries"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"endpoint_id":{"type":"string","format":"uuid","title":"Endpoint Id"},"entries":{"items":{"$ref":"#/components/schemas/CacheEntrySchema"},"type":"array","title":"Entries","default":[]},"described":{"additionalProperties":{"$ref":"#/components/schemas/CacheEntryDescription"},"type":"object","title":"Described","default":{}},"matched":{"type":"integer","title":"Matched","default":0},"generation":{"type":"integer","title":"Generation","default":0},"generation_changed":{"type":"boolean","title":"Generation Changed","default":false}},"additionalProperties":false,"type":"object","required":["message","endpoint_id"],"title":"CacheEntryListResponse","description":"One page of the inventory view."},"CacheEntryResidencyRequest":{"properties":{"key_digests":{"items":{"type":"string"},"type":"array","title":"Key Digests"}},"type":"object","required":["key_digests"],"title":"CacheEntryResidencyRequest","description":"Digests the analytics store chose, to be checked for residency."},"CacheEntryResidencyResponse":{"properties":{"object":{"type":"string","title":"Object","default":"endpoint.cache_residency"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"endpoint_id":{"type":"string","format":"uuid","title":"Endpoint Id"},"entries":{"items":{"$ref":"#/components/schemas/CacheEntrySchema"},"type":"array","title":"Entries","default":[]},"missing":{"items":{"type":"string"},"type":"array","title":"Missing","default":[]}},"additionalProperties":false,"type":"object","required":["message","endpoint_id"],"title":"CacheEntryResidencyResponse","description":"Which of the requested digests are still cached.\n\nA digest that is absent from ``entries`` is not an error: it was evicted, expired,\nor never cached at all, which is exactly what the discovery view renders."},"CacheEntrySchema":{"properties":{"key_digest":{"type":"string","title":"Key Digest"},"response_id":{"type":"string","title":"Response Id"},"created_at_unix_seconds":{"type":"integer","title":"Created At Unix Seconds"},"expires_at_unix_seconds":{"type":"integer","title":"Expires At Unix Seconds"},"last_used_at_unix_seconds":{"type":"integer","title":"Last Used At Unix Seconds"},"hits":{"type":"integer","title":"Hits"},"logical_weight":{"type":"integer","title":"Logical Weight"},"pinned":{"type":"boolean","title":"Pinned"},"status":{"type":"string","title":"Status"}},"type":"object","required":["key_digest","response_id","created_at_unix_seconds","expires_at_unix_seconds","last_used_at_unix_seconds","hits","logical_weight","pinned","status"],"title":"CacheEntrySchema","description":"One resident cache entry, as the browser lists it."},"CacheEntryUpdateRequest":{"properties":{"ttl_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ttl Seconds"},"pinned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pinned"}},"type":"object","title":"CacheEntryUpdateRequest","description":"Re-arm a TTL, pin, or unpin. At least one must be given."},"CacheEntryUpdateResponse":{"properties":{"object":{"type":"string","title":"Object","default":"endpoint.cache_entry_update"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"endpoint_id":{"type":"string","format":"uuid","title":"Endpoint Id"},"entry":{"anyOf":[{"$ref":"#/components/schemas/CacheEntrySchema"},{"type":"null"}]},"pin_result":{"type":"string","title":"Pin Result","default":"unspecified"},"pinned_bytes":{"type":"integer","title":"Pinned Bytes","default":0},"pinned_bytes_limit":{"type":"integer","title":"Pinned Bytes Limit","default":0}},"additionalProperties":false,"type":"object","required":["message","endpoint_id"],"title":"CacheEntryUpdateResponse","description":"The result of a pin or TTL change.\n\n``pin_result`` of ``budget_exhausted`` is a REFUSAL, not a failure: the deployment\nhas reached the bytes it may hold pinned. It is reported with the cap so the page\ncan say why, rather than showing a generic error for a request that was understood\nand declined."},"CacheEraseCounts":{"properties":{"exact_entries":{"type":"integer","title":"Exact Entries","default":0},"prefix_sessions":{"type":"integer","title":"Prefix Sessions","default":0},"usage_reports":{"type":"integer","title":"Usage Reports","default":0},"prefix_freeze_sessions":{"type":"integer","title":"Prefix Freeze Sessions","default":0},"prefix_freeze_pending":{"type":"integer","title":"Prefix Freeze Pending","default":0},"prefix_freeze_bytes":{"type":"integer","title":"Prefix Freeze Bytes","default":0}},"type":"object","title":"CacheEraseCounts","description":"What one clear removed, as BudCache reports it. Spill files are not counted upstream."},"CacheOccupancyResponse":{"properties":{"object":{"type":"string","title":"Object","default":"endpoint.cache_occupancy"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"endpoint_id":{"type":"string","format":"uuid","title":"Endpoint Id"},"entries":{"type":"integer","title":"Entries","default":0},"logical_bytes":{"type":"integer","title":"Logical Bytes","default":0}},"additionalProperties":false,"type":"object","required":["message","endpoint_id"],"title":"CacheOccupancyResponse","description":"This deployment's share of the cache, for the capacity display."},"CachePurgeExpiredResponse":{"properties":{"object":{"type":"string","title":"Object","default":"endpoint.cache_purged"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"endpoint_id":{"type":"string","format":"uuid","title":"Endpoint Id"},"purged":{"type":"integer","title":"Purged","default":0}},"additionalProperties":false,"type":"object","required":["message","endpoint_id"],"title":"CachePurgeExpiredResponse","description":"What one deployment's expiry sweep removed.\n\nScoped to this deployment. The unscoped form of the upstream RPC sweeps the whole\nfleet, so this route never reaches it."},"CalibrateIn":{"properties":{"judge":{"anyOf":[{"$ref":"#/components/schemas/JudgeIn"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"CalibrateIn","description":"``POST …/calibrate``: the judge (default: the version's default judge)."},"CalibrationExampleIn":{"properties":{"row":{"additionalProperties":true,"type":"object","title":"Row"},"output":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output"},"human":{"$ref":"#/components/schemas/HumanIn"}},"additionalProperties":false,"type":"object","required":["row","human"],"title":"CalibrationExampleIn"},"CalibrationExamplesIn":{"properties":{"examples":{"anyOf":[{"items":{"$ref":"#/components/schemas/CalibrationExampleIn"},"type":"array","maxItems":200,"minItems":1},{"type":"null"}],"title":"Examples"},"from_sample":{"anyOf":[{"$ref":"#/components/schemas/FromSampleIn"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"CalibrationExamplesIn","description":"``examples`` (manual) or ``from_sample`` (\"Add to calibration\")."},"CalibrationExamplesResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"examples":{"additionalProperties":true,"type":"object","title":"Examples","description":"{ids[], example_count} or {total, examples[]}"}},"additionalProperties":false,"type":"object","required":["message","examples"],"title":"CalibrationExamplesResponse"},"CalibrationResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"calibration":{"additionalProperties":true,"type":"object","title":"Calibration"}},"additionalProperties":false,"type":"object","required":["message","calibration"],"title":"CalibrationResponse"},"CancelBenchmarkRequest":{"properties":{"workflow_id":{"type":"string","format":"uuid4","title":"Workflow Id"}},"type":"object","required":["workflow_id"],"title":"CancelBenchmarkRequest","description":"Request to cancel a running benchmark."},"CancelClusterOnboardingRequest":{"properties":{"workflow_id":{"type":"string","format":"uuid4","title":"Workflow Id"}},"type":"object","required":["workflow_id"],"title":"CancelClusterOnboardingRequest","description":"Cancel cluster onboarding request schema."},"CancelDeploymentWorkflowRequest":{"properties":{"workflow_id":{"type":"string","format":"uuid4","title":"Workflow Id"}},"type":"object","required":["workflow_id"],"title":"CancelDeploymentWorkflowRequest","description":"Cancel deployment workflow request schema."},"CancelEvaluationResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"draining":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Draining","description":"Calls already sent are finishing before the run stops."},"in_flight":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"In Flight","description":"Calls still finishing, when the engine reports it."}},"additionalProperties":false,"type":"object","required":["message"],"title":"CancelEvaluationResponse","description":"Cancel result; agent runs drain (spec 027 D-19): calls already sent finish and are stored."},"CapabilityCheckScopeEnum":{"type":"string","enum":["node","storage"],"title":"CapabilityCheckScopeEnum","description":"What a capability check covers: the node probes, the storage measurement, or both."},"CapabilityFeatureOut":{"properties":{"feature_name":{"type":"string","title":"Feature Name","description":"Stable feature identifier (e.g. 'g_eval')."},"display_name":{"type":"string","title":"Display Name","description":"Human-readable label (e.g. 'G-Eval')."},"description":{"type":"string","title":"Description","description":"One-line description for the UI.","default":""},"requires_judge":{"type":"boolean","title":"Requires Judge","default":false},"requires_context":{"type":"boolean","title":"Requires Context","default":false},"requires_criterion_prompt":{"type":"boolean","title":"Requires Criterion Prompt","default":false},"default_threshold":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Default Threshold","default":0.5},"score_range":{"items":{"type":"number"},"type":"array","title":"Score Range"},"pass_condition":{"type":"string","pattern":"^(higher_is_better|lower_is_better)$","title":"Pass Condition","description":"Whether high or low scores indicate success. Bias/Toxicity/Hallucination/PIILeakage are lower_is_better; the rest default to higher_is_better.","default":"higher_is_better"},"required_constructor_args":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Required Constructor Args","description":"Per-metric required init args beyond ``threshold`` (e.g. ``role`` for RoleViolation, ``domain`` for Misuse). Each entry is ``{name, type, required, description}``. Empty for metrics with no required init args."},"category":{"type":"string","pattern":"^(standard|rag|agentic|conversational|multimodal|mcp|safety|dag|custom|arena|security|ethics|robustness)$","title":"Category","description":"Taxonomic bucket for the Evaluations Hub feature picker.","default":"standard"},"eval_modes":{"items":{"type":"string"},"type":"array","title":"Eval Modes","description":"Eval modes the metric runs in."},"targets":{"items":{"type":"string"},"type":"array","title":"Targets","description":"What the metric can score: model and/or agent targets (spec 027). Absent in the catalog means both."},"required_inputs":{"items":{"type":"string"},"type":"array","title":"Required Inputs","description":"Testcase or trajectory fields the metric reads (input, actual_output, expected_output, retrieval_context, tools_called, expected_tools, conversation, ...)."},"behaviours":{"items":{"type":"string"},"type":"array","title":"Behaviours","description":"Behaviours a vulnerability check probes; findings record one as their vulnerability_type."},"framework_tags":{"items":{"type":"string"},"type":"array","title":"Framework Tags","description":"Frameworks that cite the check, optionally with the control id ('owasp_llm_top_10:LLM09')."},"default_max_attempts":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Default Max Attempts","description":"Probes per behaviour a plan starts with."}},"type":"object","required":["feature_name","display_name"],"title":"CapabilityFeatureOut","description":"Output: a single capability-catalog entry.\n\nSurfaces ONLY the user-facing feature metadata. The underlying engine\nis NEVER named — the catalog reader resolves the engine internally from\n``feature_kind`` (``custom_eval`` and ``red_team`` map to their\nrespective runtimes).\n\nA later catalog expansion extends the schema with three additive\noptional fields:\n\n* ``pass_condition`` — ``\"higher_is_better\"`` (default) or\n  ``\"lower_is_better\"`` for inverse metrics (Bias, Toxicity,\n  Hallucination, PIILeakage, etc.). The UI uses this to render score\n  gauges and threshold gates correctly.\n* ``required_constructor_args`` — per-metric required init args (e.g.\n  ``role`` for RoleViolation, ``domain`` for Misuse). Empty list when\n  the metric has no required init args beyond ``threshold``.\n* ``category`` — taxonomic bucket for the Evaluations Hub picker\n  (``standard`` | ``rag`` | ``agentic`` | ``conversational`` |\n  ``multimodal`` | ``mcp`` | ``safety`` | ``dag`` | ``custom`` |\n  ``arena``). ``standard`` is the default for backward compatibility\n  with the original 8-feature seed.\n\nAll new fields are optional with sensible defaults so existing\nconsumers continue to work without\nmodification."},"CepSpec":{"properties":{"sequence":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Sequence"},"within_seconds":{"type":"integer","exclusiveMinimum":0.0,"title":"Within Seconds"}},"type":"object","required":["sequence","within_seconds"],"title":"CepSpec","description":"Complex-event-processing: an ordered ``sequence`` that must occur ``within_seconds``."},"ChatSessionEditRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Name"},"chat_setting_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Chat Setting Id"}},"type":"object","title":"ChatSessionEditRequest","description":"Chat session edit schema."},"ChatSessionListResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"total_tokens":{"type":"integer","title":"Total Tokens"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","name","total_tokens","created_at","modified_at"],"title":"ChatSessionListResponse","description":"Chat session list response schema."},"ChatSessionPaginatedResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"chat_sessions":{"items":{"$ref":"#/components/schemas/ChatSessionListResponse"},"type":"array","title":"Chat Sessions","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"ChatSessionPaginatedResponse","description":"Chat session paginated response schema."},"ChatSessionResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"chat_setting":{"anyOf":[{"$ref":"#/components/schemas/ChatSettingResponse"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","name","created_at","modified_at"],"title":"ChatSessionResponse","description":"Chat session response schema."},"ChatSessionSuccessResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"chat_session":{"$ref":"#/components/schemas/ChatSessionResponse"}},"additionalProperties":false,"type":"object","required":["message","chat_session"],"title":"ChatSessionSuccessResponse","description":"Chat session success response schema."},"ChatSettingCreate":{"properties":{"name":{"type":"string","maxLength":300,"minLength":1,"title":"Name"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"},"temperature":{"type":"number","title":"Temperature","default":1},"limit_response_length":{"type":"boolean","title":"Limit Response Length","default":false},"sequence_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sequence Length","default":1000},"stop_strings":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Stop Strings"},"repeat_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Repeat Penalty","default":0},"top_p_sampling":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P Sampling","default":1},"structured_json_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Structured Json Schema"}},"type":"object","required":["name"],"title":"ChatSettingCreate","description":"Chat setting create schema."},"ChatSettingEditRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"limit_response_length":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Limit Response Length"},"sequence_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sequence Length"},"stop_strings":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Stop Strings"},"repeat_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Repeat Penalty"},"top_p_sampling":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P Sampling"},"structured_json_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Structured Json Schema"}},"type":"object","title":"ChatSettingEditRequest"},"ChatSettingListResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","name","created_at","modified_at"],"title":"ChatSettingListResponse","description":"Chat session list response schema."},"ChatSettingPaginatedResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"chat_settings":{"items":{"$ref":"#/components/schemas/ChatSettingListResponse"},"type":"array","title":"Chat Settings","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"ChatSettingPaginatedResponse","description":"Chat setting paginated response schema."},"ChatSettingResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"},"temperature":{"type":"number","title":"Temperature"},"limit_response_length":{"type":"boolean","title":"Limit Response Length"},"sequence_length":{"type":"integer","title":"Sequence Length"},"stop_strings":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Stop Strings"},"repeat_penalty":{"type":"number","title":"Repeat Penalty"},"top_p_sampling":{"type":"number","title":"Top P Sampling"},"structured_json_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Structured Json Schema"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","name","temperature","limit_response_length","sequence_length","repeat_penalty","top_p_sampling","created_at","modified_at"],"title":"ChatSettingResponse","description":"Chat setting response schema."},"ChatSettingSuccessResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"chat_setting":{"$ref":"#/components/schemas/ChatSettingResponse"}},"additionalProperties":false,"type":"object","required":["message","chat_setting"],"title":"ChatSettingSuccessResponse","description":"Chat setting success response schema."},"ChunkingIn":{"properties":{"chunk_size":{"type":"integer","maximum":8192.0,"minimum":64.0,"title":"Chunk Size","default":1024},"chunk_overlap":{"type":"integer","maximum":4096.0,"minimum":0.0,"title":"Chunk Overlap","default":0},"min_contexts_per_document":{"type":"integer","maximum":3.0,"minimum":1.0,"title":"Min Contexts Per Document","default":1},"max_contexts_per_document":{"type":"integer","maximum":3.0,"minimum":1.0,"title":"Max Contexts Per Document","default":3},"min_chunks_per_context":{"type":"integer","maximum":3.0,"minimum":1.0,"title":"Min Chunks Per Context","default":1},"max_chunks_per_context":{"type":"integer","maximum":3.0,"minimum":1.0,"title":"Max Chunks Per Context","default":3},"similarity_threshold":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Similarity Threshold","default":0.0},"quality_threshold":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Quality Threshold","description":"Context quality filter; off when null."}},"additionalProperties":false,"type":"object","title":"ChunkingIn","description":"budeval's chunker knobs (DeepEval ``ContextConstructionConfig`` names)."},"ClamAVDbInfo":{"properties":{"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"},"age_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age Days"}},"additionalProperties":false,"type":"object","title":"ClamAVDbInfo","description":"Signature database freshness. Mirrors budmodel `ClamAVDbInfo`."},"ClamAVSummary":{"properties":{"status":{"type":"string","enum":["clean","infected","unavailable"],"title":"Status","default":"unavailable"},"files_scanned_count":{"type":"integer","title":"Files Scanned Count","default":0},"hits_count":{"type":"integer","title":"Hits Count","default":0}},"additionalProperties":false,"type":"object","title":"ClamAVSummary","description":"Bounded ClamAV facts. Mirrors budmodel `ClamAVSummary`."},"ClassifierConfig":{"properties":{"head_mappings":{"items":{"$ref":"#/components/schemas/HeadMapping"},"type":"array","title":"Head Mappings"},"post_processing":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Post Processing"}},"type":"object","required":["head_mappings"],"title":"ClassifierConfig","description":"Configuration for classifier-based rules."},"ClearDeploymentCacheRequest":{"properties":{"confirm_name":{"type":"string","maxLength":255,"minLength":1,"title":"Confirm Name"}},"type":"object","required":["confirm_name"],"title":"ClearDeploymentCacheRequest","description":"``POST /endpoints/{id}/cache/clear`` (`specs/020` `WP-C2.4`)."},"ClientAnalytics":{"properties":{"client_id":{"type":"string","title":"Client Id","description":"Client identifier (could be user ID, API key, etc.)"},"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name","description":"Client name if available"},"request_count":{"type":"integer","title":"Request Count","description":"Number of requests from this client"},"error_count":{"type":"integer","title":"Error Count","description":"Number of errors for this client","default":0},"avg_response_time":{"type":"number","title":"Avg Response Time","description":"Average response time in milliseconds"},"total_tokens_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Tokens Used","description":"Total tokens consumed"},"total_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Cost","description":"Total cost incurred"},"last_request_time":{"type":"string","format":"date-time","title":"Last Request Time","description":"Timestamp of last request"},"project_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Project Ids","description":"Associated project IDs"},"model_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Model Ids","description":"Models used by this client"}},"type":"object","required":["client_id","request_count","avg_response_time","last_request_time"],"title":"ClientAnalytics","description":"Client analytics item."},"ClientAnalyticsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ClientAnalytics"},"type":"array","title":"Items","description":"List of client analytics"},"total_clients":{"type":"integer","title":"Total Clients","description":"Total number of unique clients"},"total_requests":{"type":"integer","title":"Total Requests","description":"Total number of requests"}},"additionalProperties":false,"type":"object","required":["message","items","total_clients","total_requests"],"title":"ClientAnalyticsResponse","description":"Response schema for client analytics."},"CloseBody":{"properties":{"tenant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tenant Id"},"as_of":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"As Of"}},"additionalProperties":false,"type":"object","title":"CloseBody"},"CloudCredentialResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"credentials":{"items":{"$ref":"#/components/schemas/CloudCredentialSchema"},"type":"array","title":"Credentials"}},"additionalProperties":false,"type":"object","required":["message","credentials"],"title":"CloudCredentialResponse","description":"Response containing cloud credentials."},"CloudCredentialSchema":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier for the credential"},"provider_id":{"type":"string","title":"Provider Id","description":"ID of the provider this credential is for"},"provider_name":{"type":"string","title":"Provider Name","description":"Display name of the provider"},"icon":{"type":"string","title":"Icon","description":"Icon URL for the provider"},"provider_description":{"type":"string","title":"Provider Description","description":"Description of the provider"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the credential was created"},"credential_name":{"type":"string","title":"Credential Name","description":"Name of the credential"},"credential_summary":{"additionalProperties":true,"type":"object","title":"Credential Summary","description":"Summary of credential values with sensitive information masked"}},"type":"object","required":["id","provider_id","provider_name","icon","provider_description","created_at","credential_name","credential_summary"],"title":"CloudCredentialSchema","description":"Schema for cloud credential.\n\nAttributes:\n    id: Unique identifier for the credential\n    provider_id: ID of the provider this credential is for\n    provider_name: Display name of the provider\n    created_at: When the credential was created\n    credential_summary: Summary of credential values with sensitive information masked"},"CloudModel":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"modality":{"additionalProperties":true,"type":"object","title":"Modality"},"source":{"type":"string","title":"Source"},"provider_type":{"$ref":"#/components/schemas/ModelProviderTypeEnum"},"uri":{"type":"string","title":"Uri"},"model_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Model Size"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"tasks":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tasks"},"is_present_in_model":{"type":"boolean","title":"Is Present In Model","default":false},"supported_endpoints":{"additionalProperties":true,"type":"object","title":"Supported Endpoints"}},"type":"object","required":["id","name","modality","source","provider_type","uri","supported_endpoints"],"title":"CloudModel","description":"Cloud model schema."},"CloudProviderRegionsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"provider_id":{"type":"string","title":"Provider Id","description":"Unique identifier of the cloud provider"},"regions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Regions","description":"List of regions supported by the provider"}},"additionalProperties":false,"type":"object","required":["message","provider_id","regions"],"title":"CloudProviderRegionsResponse","description":"Response model for cloud provider regions.\n\nAttributes:\n    provider_id: Unique identifier of the cloud provider\n    provider_name: Name of the cloud provider\n    regions: List of regions supported by the provider\n    code: HTTP status code\n    message: Status message"},"CloudProvidersCreateRequest":{"properties":{"provider_id":{"type":"string","title":"Provider Id"},"credential_values":{"additionalProperties":{"type":"string"},"type":"object","title":"Credential Values"},"credential_name":{"type":"string","title":"Credential Name"}},"type":"object","required":["provider_id","credential_values","credential_name"],"title":"CloudProvidersCreateRequest","description":"Request to create a new cloud provider."},"CloudProvidersListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"providers":{"items":{"$ref":"#/components/schemas/CloudProvidersSchema"},"type":"array","title":"Providers"}},"additionalProperties":false,"type":"object","required":["message","providers"],"title":"CloudProvidersListResponse","description":"Response to list the cloud providers."},"CloudProvidersSchema":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"string","format":"uuid"}],"title":"Id","description":"Unique identifier for the cloud provider"},"name":{"type":"string","title":"Name","description":"Display name of the cloud provider"},"description":{"type":"string","title":"Description","description":"Detailed description of the cloud provider"},"logo_url":{"type":"string","title":"Logo Url","description":"URL to the provider's logo image"},"schema_definition":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}],"title":"Schema Definition","description":"JSON schema defining the configuration options for this provider"}},"additionalProperties":true,"type":"object","required":["id","name","description","logo_url","schema_definition"],"title":"CloudProvidersSchema","description":"Schema for cloud providers.\n\nAttributes:\n    id: Unique identifier for the cloud provider\n    name: Display name of the cloud provider\n    description: Detailed description of the cloud provider\n    logo_url: URL to the provider's logo image\n    schema_definition: JSON schema defining the configuration options for this provider"},"ClusterCapabilitiesResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"readiness":{"additionalProperties":true,"type":"object","title":"Readiness"}},"additionalProperties":false,"type":"object","required":["message","readiness"],"title":"ClusterCapabilitiesResponse","description":"Response of ``GET /clusters/{cluster_id}/capabilities``: budsim's ClusterReadiness (CONTRACTS §5), unchanged.\n\nIt is passed through as a mapping so keys budsim adds later reach budadmin without a budapp release. Its\n``cluster_id`` is budcluster's id, the same value as the cluster's own ``cluster_id`` field."},"ClusterCapabilityCheckRequest":{"properties":{"nodes":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1},{"type":"null"}],"title":"Nodes","description":"Node names to check; omit to check every node"},"scope":{"anyOf":[{"items":{"$ref":"#/components/schemas/CapabilityCheckScopeEnum"},"type":"array","minItems":1},{"type":"null"}],"title":"Scope","description":"What to check; omit for both node and storage"}},"additionalProperties":false,"type":"object","title":"ClusterCapabilityCheckRequest","description":"Body of ``POST /clusters/{cluster_id}/capability-check``. Both fields are optional.\n\n``nodes`` omitted (or null) checks every node; ``scope`` omitted checks both node and storage, as budcluster\ndefaults. An empty list is refused rather than read as \"everything\": it says nothing to check. Unknown keys are\nrefused too, so a typo (``node`` for ``nodes``) cannot silently become a whole-cluster run."},"ClusterCapabilityCheckResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"status":{"type":"string","title":"Status"},"nodes":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"Nodes","default":"all"},"scope":{"items":{"type":"string"},"type":"array","title":"Scope"}},"additionalProperties":false,"type":"object","required":["message","status"],"title":"ClusterCapabilityCheckResponse","description":"Response of ``POST /clusters/{cluster_id}/capability-check``.\n\n``status`` is ``scheduled`` (a run started), ``joined`` (one was already running and covers the request) or\n``rate_limited`` (one ran too recently). A 200 means \"queued\", not \"done\": progress comes through\n``GET /clusters/{cluster_id}/capability-check``."},"ClusterCapabilityCheckSummaryResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"summary":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Summary"}},"additionalProperties":false,"type":"object","required":["message"],"title":"ClusterCapabilityCheckSummaryResponse","description":"Response of ``GET /clusters/{cluster_id}/capability-check``: the last run (CONTRACTS §3), or null."},"ClusterDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"icon":{"type":"string","title":"Icon"},"ingress_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ingress Url"},"cluster_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cluster Type"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"status":{"$ref":"#/components/schemas/ClusterStatusEnum"},"cluster_id":{"type":"string","format":"uuid","title":"Cluster Id"},"cpu_count":{"type":"integer","title":"Cpu Count"},"gpu_count":{"type":"integer","title":"Gpu Count"},"hpu_count":{"type":"integer","title":"Hpu Count"},"cpu_total_workers":{"type":"integer","title":"Cpu Total Workers"},"cpu_available_workers":{"type":"integer","title":"Cpu Available Workers"},"gpu_total_workers":{"type":"integer","title":"Gpu Total Workers"},"gpu_available_workers":{"type":"integer","title":"Gpu Available Workers"},"hpu_total_workers":{"type":"integer","title":"Hpu Total Workers"},"hpu_available_workers":{"type":"integer","title":"Hpu Available Workers"},"total_nodes":{"type":"integer","title":"Total Nodes"},"available_nodes":{"type":"integer","title":"Available Nodes"},"is_default":{"type":"boolean","title":"Is Default","default":false},"total_workers_count":{"type":"integer","title":"Total Workers Count"},"active_workers_count":{"type":"integer","title":"Active Workers Count"},"total_endpoints_count":{"type":"integer","title":"Total Endpoints Count"},"running_endpoints_count":{"type":"integer","title":"Running Endpoints Count"},"hardware_type":{"items":{},"type":"array","title":"Hardware Type"}},"type":"object","required":["id","name","icon","created_at","modified_at","status","cluster_id","cpu_count","gpu_count","hpu_count","cpu_total_workers","cpu_available_workers","gpu_total_workers","gpu_available_workers","hpu_total_workers","hpu_available_workers","total_nodes","available_nodes","total_workers_count","active_workers_count","total_endpoints_count","running_endpoints_count","hardware_type"],"title":"ClusterDetailResponse","description":"Cluster detail response schema."},"ClusterEndpointPaginatedResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"endpoints":{"items":{"$ref":"#/components/schemas/ClusterEndpointResponse"},"type":"array","title":"Endpoints","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"ClusterEndpointPaginatedResponse","description":"Cluster endpoint paginated response schema."},"ClusterEndpointResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/EndpointStatusEnum"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"project":{"$ref":"#/components/schemas/Project"},"model":{"$ref":"#/components/schemas/Model"},"active_workers":{"type":"integer","title":"Active Workers"},"total_workers":{"type":"integer","title":"Total Workers"},"roi":{"type":"integer","title":"Roi"}},"type":"object","required":["id","name","status","created_at","project","model","active_workers","total_workers","roi"],"title":"ClusterEndpointResponse","description":"Cluster endpoint response schema."},"ClusterListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"clusters":{"items":{"$ref":"#/components/schemas/ClusterPaginatedResponse"},"type":"array","title":"Clusters"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"type":"object","required":["message","page","limit","clusters","total_pages"],"title":"ClusterListResponse","description":"Cluster response schema."},"ClusterMetricsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"nodes":{"additionalProperties":{"$ref":"#/components/schemas/NodeMetrics"},"type":"object","title":"Nodes"},"cluster_summary":{"$ref":"#/components/schemas/ClusterSummaryMetrics"},"time_range":{"type":"string","title":"Time Range"},"metric_type":{"type":"string","title":"Metric Type"},"timestamp":{"type":"string","title":"Timestamp"},"cluster_id":{"type":"string","title":"Cluster Id"}},"additionalProperties":false,"type":"object","required":["message","time_range","metric_type","timestamp","cluster_id"],"title":"ClusterMetricsResponse","description":"Cluster metrics response schema.","example":{"cluster_id":"12345678-1234-5678-1234-567812345678","cluster_summary":{"cpu":{"change_percent":5.23,"usage_percent":25.45},"memory":{"available_gib":975.18,"change_percent":-0.52,"total_gib":1006.84,"usage_percent":3.14,"used_gib":31.66},"network_bandwidth":{"change_percent":6.67,"time_series":[{"timestamp":1738567200,"value":156.24}],"total_mbps":156.24},"network_in":{"change_percent":12.34,"inbound_mbps":91.34,"time_series":[{"timestamp":1738567200,"value":91.34}]},"network_out":{"change_percent":-5.67,"outbound_mbps":64.9,"time_series":[{"timestamp":1738567200,"value":64.9}]},"storage":{"available_gib":1530.22,"change_percent":0.34,"total_gib":1752.28,"usage_percent":12.67,"used_gib":222.06}},"metric_type":"all","nodes":{"10.25.30.22:9100":{"cpu":{"change_percent":5.23,"usage_percent":25.45},"memory":{"available_gib":487.59,"change_percent":-0.52,"total_gib":503.42,"usage_percent":3.14,"used_gib":15.83},"network_bandwidth":{"change_percent":6.67,"time_series":[{"timestamp":1738567200,"value":78.12}],"total_mbps":78.12},"network_in":{"change_percent":12.34,"inbound_mbps":45.67,"time_series":[{"timestamp":1738567200,"value":45.67}]},"network_out":{"change_percent":-5.67,"outbound_mbps":32.45,"time_series":[{"timestamp":1738567200,"value":32.45}]},"storage":{"available_gib":765.11,"change_percent":0.34,"total_gib":876.14,"usage_percent":12.67,"used_gib":111.03}}},"time_range":"today","timestamp":"2025-02-03T08:58:18.368278+00:00"}},"ClusterNodeSyncResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"workflow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Id"}},"additionalProperties":false,"type":"object","required":["message"],"title":"ClusterNodeSyncResponse","description":"Response for a triggered cluster node sync.\n\nAttributes:\n    workflow_id: Id of the budcluster workflow performing the refresh, when\n        budcluster returned one. budcluster *schedules* the sync rather than\n        running it inline, so a 200 means \"queued\", not \"done\" -- callers\n        must poll rather than refetch immediately, or they render pre-sync\n        data. Declared here because ``SuccessResponse`` forbids extra keys."},"ClusterNodeWiseEventsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"events":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Events","default":[]}},"additionalProperties":false,"type":"object","required":["message"],"title":"ClusterNodeWiseEventsResponse","description":"Cluster node-wise events response schema."},"ClusterPaginatedResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"icon":{"type":"string","title":"Icon"},"ingress_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ingress Url"},"cluster_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cluster Type"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"status":{"$ref":"#/components/schemas/ClusterStatusEnum"},"cluster_id":{"type":"string","format":"uuid","title":"Cluster Id"},"cpu_count":{"type":"integer","title":"Cpu Count"},"gpu_count":{"type":"integer","title":"Gpu Count"},"hpu_count":{"type":"integer","title":"Hpu Count"},"cpu_total_workers":{"type":"integer","title":"Cpu Total Workers"},"cpu_available_workers":{"type":"integer","title":"Cpu Available Workers"},"gpu_total_workers":{"type":"integer","title":"Gpu Total Workers"},"gpu_available_workers":{"type":"integer","title":"Gpu Available Workers"},"hpu_total_workers":{"type":"integer","title":"Hpu Total Workers"},"hpu_available_workers":{"type":"integer","title":"Hpu Available Workers"},"total_nodes":{"type":"integer","title":"Total Nodes"},"available_nodes":{"type":"integer","title":"Available Nodes"},"is_default":{"type":"boolean","title":"Is Default","default":false},"endpoint_count":{"type":"integer","title":"Endpoint Count"}},"type":"object","required":["id","name","icon","created_at","modified_at","status","cluster_id","cpu_count","gpu_count","hpu_count","cpu_total_workers","cpu_available_workers","gpu_total_workers","gpu_available_workers","hpu_total_workers","hpu_available_workers","total_nodes","available_nodes","endpoint_count"],"title":"ClusterPaginatedResponse"},"ClusterRef":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"ClusterRef","description":"A budapp cluster, for display and linking."},"ClusterResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"icon":{"type":"string","title":"Icon"},"ingress_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ingress Url"},"cluster_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cluster Type"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"status":{"$ref":"#/components/schemas/ClusterStatusEnum"},"cluster_id":{"type":"string","format":"uuid","title":"Cluster Id"},"cpu_count":{"type":"integer","title":"Cpu Count"},"gpu_count":{"type":"integer","title":"Gpu Count"},"hpu_count":{"type":"integer","title":"Hpu Count"},"cpu_total_workers":{"type":"integer","title":"Cpu Total Workers"},"cpu_available_workers":{"type":"integer","title":"Cpu Available Workers"},"gpu_total_workers":{"type":"integer","title":"Gpu Total Workers"},"gpu_available_workers":{"type":"integer","title":"Gpu Available Workers"},"hpu_total_workers":{"type":"integer","title":"Hpu Total Workers"},"hpu_available_workers":{"type":"integer","title":"Hpu Available Workers"},"total_nodes":{"type":"integer","title":"Total Nodes"},"available_nodes":{"type":"integer","title":"Available Nodes"},"is_default":{"type":"boolean","title":"Is Default","default":false}},"type":"object","required":["id","name","icon","created_at","modified_at","status","cluster_id","cpu_count","gpu_count","hpu_count","cpu_total_workers","cpu_available_workers","gpu_total_workers","gpu_available_workers","hpu_total_workers","hpu_available_workers","total_nodes","available_nodes"],"title":"ClusterResponse","description":"Cluster response schema."},"ClusterSettingsDetailResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"settings":{"$ref":"#/components/schemas/ClusterSettingsResponse"}},"additionalProperties":false,"type":"object","required":["message","settings"],"title":"ClusterSettingsDetailResponse","description":"Single cluster settings response."},"ClusterSettingsResponse":{"properties":{"default_storage_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Storage Class","description":"Default storage class for cluster deployments"},"default_access_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Access Mode","description":"Default access mode for cluster volumes"},"id":{"type":"string","format":"uuid","title":"Id"},"cluster_id":{"type":"string","format":"uuid","title":"Cluster Id"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","cluster_id","created_by","created_at","modified_at"],"title":"ClusterSettingsResponse","description":"Response schema for cluster settings."},"ClusterStatusEnum":{"type":"string","enum":["available","not_available","error","deleting","deleted"],"title":"ClusterStatusEnum","description":"Cluster status types.\n\nAttributes:\n    AVAILABLE: Represents the available cluster status.\n    NOT_AVAILABLE: Represents the not available cluster status.\n    REGISTERING: Represents the registering cluster status.\n    ERROR: Represents the error cluster status."},"ClusterSummaryMetrics":{"properties":{"memory":{"anyOf":[{"$ref":"#/components/schemas/MemoryMetrics"},{"type":"null"}]},"cpu":{"anyOf":[{"$ref":"#/components/schemas/CpuMetrics"},{"type":"null"}]},"storage":{"anyOf":[{"$ref":"#/components/schemas/StorageMetrics"},{"type":"null"}]},"network_in":{"anyOf":[{"$ref":"#/components/schemas/NetworkMetrics"},{"type":"null"}]},"network_out":{"anyOf":[{"$ref":"#/components/schemas/NetworkOutMetrics"},{"type":"null"}]},"network_bandwidth":{"anyOf":[{"$ref":"#/components/schemas/NetworkBandwidthMetrics"},{"type":"null"}]},"power":{"anyOf":[{},{"type":"null"}],"title":"Power"}},"type":"object","title":"ClusterSummaryMetrics","description":"Cluster summary metrics schema."},"ComparisonDeployment":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id","description":"Endpoint/deployment ID"},"endpoint_name":{"type":"string","title":"Endpoint Name","description":"Deployment name"},"model_id":{"type":"string","format":"uuid4","title":"Model Id","description":"Model ID"},"model_name":{"type":"string","title":"Model Name","description":"Model name"},"model_icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Icon","description":"Model icon URL"},"experiment_count":{"type":"integer","title":"Experiment Count","description":"Number of experiments using this deployment"},"run_count":{"type":"integer","title":"Run Count","description":"Total completed runs for this deployment"}},"type":"object","required":["id","endpoint_name","model_id","model_name","experiment_count","run_count"],"title":"ComparisonDeployment","description":"Deployment available for comparison."},"ComparisonTrait":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id","description":"Trait ID"},"name":{"type":"string","title":"Name","description":"Trait name"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon","description":"Trait icon"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Trait description"},"dataset_count":{"type":"integer","title":"Dataset Count","description":"Number of datasets with this trait"},"run_count":{"type":"integer","title":"Run Count","description":"Number of completed runs with this trait"}},"type":"object","required":["id","name","dataset_count","run_count"],"title":"ComparisonTrait","description":"Trait available for comparison filtering."},"CompletenessSummary":{"properties":{"status":{"type":"string","enum":["complete","partial"],"title":"Status","default":"complete"},"coverage_percent":{"type":"number","title":"Coverage Percent","default":100.0},"is_complete":{"type":"boolean","title":"Is Complete","default":true},"total_components":{"type":"integer","title":"Total Components","default":0},"scanned_components":{"type":"integer","title":"Scanned Components","default":0}},"additionalProperties":false,"type":"object","title":"CompletenessSummary","description":"Coverage accounting. Mirrors budmodel `CompletenessSummary`."},"ConfigParamSchema":{"properties":{"type":{"type":"string","title":"Type","description":"JSON type (e.g., 'integer', 'boolean', 'array', 'object')"},"default":{"title":"Default","description":"Default value used when parameter is not provided"},"required":{"type":"boolean","title":"Required","description":"Whether the parameter is required","default":false},"description":{"type":"string","title":"Description","description":"Human-readable description of the parameter"},"items":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Items","description":"Item type for array parameters (e.g., 'string')"},"enum":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Enum","description":"Allowed values for this parameter — drives UI dropdowns. Used by code_interpreter for cpu/memory_mb/languages where the live values are spliced in from budcodeinterpreter's template catalog at request time."},"schema":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/ConfigParamSchema"},"type":"object"},{"type":"null"}],"title":"Schema","description":"Nested per-field schema for parameters of type 'object'. Used by code_interpreter's network_policy (type / allow_out / deny_out)."},"widget":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Widget","description":"Optional rendering hint for the budadmin form. Known values: 'segmented' (radio-pill picker over an enum), 'badge_readonly' (non-interactive value display with optional icons), 'number_with_null_toggle' (integer input + 'send null' shortcut checkbox), 'network_policy' (opt-in to the custom network-policy widget), 'multi_select' (checkbox list over `enum` for an array field, labelled by `enum_labels` and explained by `enum_descriptions`). Unknown values fall back to the default widget chosen by `type`."},"readonly":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Readonly","description":"Field is shown but not editable. Pairs with `default`."},"unit_suffix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Suffix","description":"String to render after the value (e.g. 'vCPU', 'GB', 'seconds')."},"minimum":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Minimum","description":"Inclusive minimum for numeric fields. Used by the renderer for client-side validation; not enforced server-side here (the downstream service does its own validation)."},"enum_labels":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Enum Labels","description":"Map enum value → human-readable label, e.g. {'python': 'Python'}."},"enum_icons":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Enum Icons","description":"Map enum value → icon path (relative to the budapp static dir)."},"enum_descriptions":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Enum Descriptions","description":"Map enum value → a sentence explaining that option, rendered under its label. For pickers where the options differ in ways the label alone cannot carry (e.g. one choice widening what the agent can read); `description` covers the field, this covers each choice."},"null_toggle_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Null Toggle Label","description":"Label for the 'send null' checkbox in `number_with_null_toggle` widget, e.g. 'Never expire'."},"visible_when":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Visible When","description":"Conditional visibility predicate. Each key is a sibling field name; the value is the literal that field must equal for this field to be shown. Multiple keys are AND-combined. e.g. {'type': 'filtered'} means 'visible only when sibling `type` == \"filtered\"'."},"sentinel":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Sentinel","description":"For array fields that accept a special 'all-traffic'-style value, describes how the renderer should expose it as a shortcut checkbox. Shape: {'value': '<sentinel>', 'label': '<checkbox label>'}."}},"type":"object","required":["type","description"],"title":"ConfigParamSchema","description":"Schema for a single configuration parameter of a native tool."},"ConfigureConnectorRequest":{"properties":{"connector_id":{"type":"string","title":"Connector Id","description":"Connector ID from MCP Foundry registry"},"credentials":{"anyOf":[{"$ref":"#/components/schemas/OAuthCredentials"},{"$ref":"#/components/schemas/HeadersCredentials"},{"$ref":"#/components/schemas/OpenCredentials"}],"title":"Credentials","description":"Credentials matching connector's auth_type"},"scope":{"anyOf":[{"$ref":"#/components/schemas/ScopeRequest"},{"type":"null"}],"description":"Agent-visibility scope (defaults to global when omitted)"},"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name","description":"Custom gateway name (defaults to the connector's name when omitted)"}},"type":"object","required":["connector_id","credentials"],"title":"ConfigureConnectorRequest","description":"Admin request to configure a global connector (create gateway with credentials)."},"ConfigureRunsRequest":{"properties":{"endpoint_ids":{"items":{"type":"string","format":"uuid4"},"type":"array","minItems":1,"title":"Endpoint Ids","description":"List of endpoint IDs to evaluate - at least one endpoint is required."},"dataset_ids":{"items":{"type":"string","format":"uuid4"},"type":"array","minItems":1,"title":"Dataset Ids","description":"List of dataset IDs to evaluate against - at least one dataset is required."},"evaluation_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Evaluation Config","description":"Default evaluation configuration for runs."}},"type":"object","required":["endpoint_ids","dataset_ids"],"title":"ConfigureRunsRequest","description":"Request to configure runs for an experiment."},"ConfigureRunsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"runs":{"items":{"$ref":"#/components/schemas/Run"},"type":"array","title":"Runs","description":"List of created runs."},"total_runs":{"type":"integer","title":"Total Runs","description":"Total number of runs created."}},"additionalProperties":false,"type":"object","required":["message","runs","total_runs"],"title":"ConfigureRunsResponse","description":"Response after configuring runs for an experiment."},"ConnectAgentToPromptRequest":{"properties":{"agent_prompt_id":{"type":"string","format":"uuid4","title":"Agent Prompt Id","description":"ID of the agent prompt to connect"}},"type":"object","required":["agent_prompt_id"],"title":"ConnectAgentToPromptRequest","description":"Request to connect an A2A agent as a tool to a prompt."},"Connector":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"provider":{"type":"string","title":"Provider"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"documentation_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Documentation Url"},"auth_type":{"$ref":"#/components/schemas/ConnectorAuthTypeEnum"},"credential_schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Credential Schema"},"transport":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transport","description":"Transport type: 'SSE', 'STREAMABLEHTTP', or 'STDIO'"},"stdio_command":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stdio Command","description":"Executable command for STDIO connectors (e.g., 'uvx', 'npx')"},"stdio_args":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Stdio Args","description":"Arguments for the STDIO command"},"stdio_timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stdio Timeout","description":"Startup timeout in seconds for the STDIO bridge"}},"type":"object","required":["id","name","provider","auth_type","credential_schema"],"title":"Connector","description":"Internal schema for full connector data."},"ConnectorAuthTypeEnum":{"type":"string","enum":["OAuth","Open","Headers"],"title":"ConnectorAuthTypeEnum","description":"Enumeration of connector authentication types from MCP registry.\n\nAttributes:\n    OAUTH: OAuth authentication.\n    OPEN: No authentication required (open access).\n    HEADERS: Custom header-based authentication."},"ConnectorListItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"url":{"type":"string","title":"Url"},"provider":{"type":"string","title":"Provider"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"documentation_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Documentation Url"}},"type":"object","required":["id","name","url","provider"],"title":"ConnectorListItem","description":"Schema for individual connector item in list."},"ConnectorListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"connectors":{"items":{"$ref":"#/components/schemas/ConnectorListItem"},"type":"array","title":"Connectors","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"type":"object","required":["message","page","limit","total_pages"],"title":"ConnectorListResponse","description":"Connector list response schema."},"ConnectorResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"connector":{"$ref":"#/components/schemas/Connector"}},"type":"object","required":["message","connector"],"title":"ConnectorResponse","description":"Response schema for single connector retrieval."},"ContentItem":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"example":{"type":"string","title":"Example"}},"type":"object","required":["name","description","example"],"title":"ContentItem","description":"Content item for safe_content or violation items."},"ContentPart":{"properties":{"type":{"type":"string","enum":["text","image_url"],"title":"Type","description":"Content type discriminator"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text","description":"Text content (when type='text')"},"image_url":{"anyOf":[{"$ref":"#/components/schemas/ImageUrlContent"},{"type":"null"}],"description":"Image URL content (when type='image_url')"}},"type":"object","required":["type"],"title":"ContentPart","description":"Content part in a multipart message. Mirrors OpenAI content part format.\n\nExtensible for future modalities (audio, file, video) by adding new type literals\nand corresponding optional fields."},"ContextManagementSetting":{"properties":{"compaction":{"type":"string","enum":["off","auto"],"title":"Compaction","description":"'auto' (the default) compacts long threads; 'off' never does.","default":"auto"},"compact_threshold":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Compact Threshold","description":"When to compact: input tokens (e.g. 24000) or a share of the model's input budget (e.g. 0.8). Clamped to 30-95% of the budget; default 80%."},"fold_style":{"anyOf":[{"type":"string","enum":["briefing","gist","extractive"]},{"type":"null"}],"title":"Fold Style","description":"How the summary is written; default 'briefing'."}},"additionalProperties":false,"type":"object","title":"ContextManagementSetting","description":"An agent's context compaction setting (spec 024 §5.9), validated on save and passed to budprompt.\n\n``compaction: \"auto\"`` lets budprompt summarise the older turns of a long thread into a\ncheckpoint once the next request would pass the threshold, so the thread keeps fitting the\nmodel's window. A ``/v1/responses`` request's own ``context_management`` overrides it per call."},"ConversationalStylingIn":{"properties":{"scenario_context":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Scenario Context"},"conversational_task":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Conversational Task"},"participant_roles":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Participant Roles"}},"additionalProperties":false,"type":"object","title":"ConversationalStylingIn"},"CorrelationSpec":{"properties":{"key":{"type":"string","minLength":1,"title":"Key"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Namespace"},"multi_match":{"anyOf":[{"type":"string","enum":["newest","error","fanout"]},{"type":"null"}],"title":"Multi Match"},"ttl_seconds":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Ttl Seconds"}},"type":"object","required":["key"],"title":"CorrelationSpec","description":"How events are correlated into a single trigger instance.\n\n``key`` is REQUIRED (a JSONPath into the event used as the correlation id)."},"CpuMetrics":{"properties":{"usage_percent":{"type":"number","title":"Usage Percent","default":0.0},"change_percent":{"type":"number","title":"Change Percent","default":0.0}},"type":"object","title":"CpuMetrics","description":"CPU metrics schema."},"CreateBillingAlertRequest":{"properties":{"name":{"type":"string","title":"Name"},"alert_type":{"type":"string","pattern":"^(token_usage|cost_usage)$","title":"Alert Type"},"threshold_percent":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Threshold Percent"}},"type":"object","required":["name","alert_type","threshold_percent"],"title":"CreateBillingAlertRequest","description":"Request to create billing alert."},"CreateCloudModelWorkflowRequest":{"properties":{"workflow_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Workflow Id"},"workflow_total_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workflow Total Steps"},"step_number":{"type":"integer","exclusiveMinimum":0.0,"title":"Step Number"},"trigger_workflow":{"type":"boolean","title":"Trigger Workflow","default":false},"provider_type":{"anyOf":[{"$ref":"#/components/schemas/ModelProviderTypeEnum"},{"type":"null"}]},"provider_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Provider Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"modality":{"anyOf":[{"items":{"$ref":"#/components/schemas/ModalityEnum"},"type":"array"},{"type":"null"}],"title":"Modality"},"uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uri"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"cloud_model_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Cloud Model Id"},"add_model_modality":{"anyOf":[{"items":{"$ref":"#/components/schemas/AddModelModalityEnum"},"type":"array"},{"type":"null"}],"title":"Add Model Modality"}},"type":"object","required":["step_number"],"title":"CreateCloudModelWorkflowRequest","description":"Cloud model workflow request schema."},"CreateCloudModelWorkflowResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"workflow_id":{"type":"string","format":"uuid4","title":"Workflow Id"},"status":{"$ref":"#/components/schemas/WorkflowStatusEnum"},"current_step":{"type":"integer","title":"Current Step"},"total_steps":{"type":"integer","title":"Total Steps"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"workflow_steps":{"anyOf":[{"$ref":"#/components/schemas/CreateCloudModelWorkflowStepData"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["message","workflow_id","status","current_step","total_steps"],"title":"CreateCloudModelWorkflowResponse","description":"Add Cloud Model Workflow Response."},"CreateCloudModelWorkflowStepData":{"properties":{"provider_type":{"anyOf":[{"$ref":"#/components/schemas/ModelProviderTypeEnum"},{"type":"null"}]},"provider":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}]},"cloud_model":{"anyOf":[{"$ref":"#/components/schemas/CloudModel"},{"type":"null"}]},"cloud_model_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Cloud Model Id"},"provider_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Provider Id"},"model_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Model Id"},"model":{"anyOf":[{"$ref":"#/components/schemas/Model"},{"type":"null"}]},"workflow_execution_status":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Workflow Execution Status"},"leaderboard":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Leaderboard"}},"type":"object","title":"CreateCloudModelWorkflowStepData","description":"Cloud model workflow step data schema."},"CreateClusterSettingsRequest":{"properties":{"default_storage_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Storage Class","description":"Default storage class for cluster deployments"},"default_access_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Access Mode","description":"Default access mode for cluster volumes"}},"type":"object","title":"CreateClusterSettingsRequest","description":"Request schema for creating cluster settings."},"CreateCustomGatewayRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"Gateway name"},"url":{"type":"string","title":"Url","description":"MCP server URL"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description","description":"Gateway description"},"transport":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transport","description":"SSE or STREAMABLEHTTP; auto-detected if omitted"},"auth_type":{"type":"string","enum":["OAuth","Headers","Open"],"title":"Auth Type","description":"Auth type; used to validate credentials match","default":"Open"},"credentials":{"anyOf":[{"$ref":"#/components/schemas/OAuthCredentials"},{"$ref":"#/components/schemas/HeadersCredentials"},{"$ref":"#/components/schemas/OpenCredentials"}],"title":"Credentials","description":"Credentials matching auth type"},"scope":{"anyOf":[{"$ref":"#/components/schemas/ScopeRequest"},{"type":"null"}],"description":"Agent-visibility scope (defaults to global when omitted)"}},"type":"object","required":["name","url"],"title":"CreateCustomGatewayRequest","description":"Request to create a custom MCP gateway directly (bypassing registry)."},"CreateEvalTagResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"tag":{"$ref":"#/components/schemas/EvalTag","description":"The created tag"}},"additionalProperties":false,"type":"object","required":["message","tag"],"title":"CreateEvalTagResponse","description":"Response schema for creating a tag."},"CreateExperimentRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"The name of the experiment."},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description","description":"The description of the experiment."},"project_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Project Id","description":"The project ID for the experiment (optional)."},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags","description":"DEPRECATED: List of tag names. Use tag_ids instead."},"tag_ids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Tag Ids","description":"List of EvalTag IDs to associate with experiment."}},"type":"object","required":["name"],"title":"CreateExperimentRequest","description":"The request to create an experiment."},"CreateExperimentResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"experiment":{"$ref":"#/components/schemas/Experiment","description":"The created experiment."}},"additionalProperties":false,"type":"object","required":["message","experiment"],"title":"CreateExperimentResponse","description":"The response to create an experiment."},"CreateLocalModelWorkflowRequest":{"properties":{"workflow_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Workflow Id"},"workflow_total_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workflow Total Steps"},"step_number":{"type":"integer","exclusiveMinimum":0.0,"title":"Step Number"},"trigger_workflow":{"type":"boolean","title":"Trigger Workflow","default":false},"provider_type":{"anyOf":[{"$ref":"#/components/schemas/ModelProviderTypeEnum"},{"type":"null"}]},"proprietary_credential_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Proprietary Credential Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uri"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"add_model_modality":{"anyOf":[{"items":{"$ref":"#/components/schemas/AddModelModalityEnum"},"type":"array"},{"type":"null"}],"title":"Add Model Modality"},"callback_topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callback Topic"}},"type":"object","required":["step_number"],"title":"CreateLocalModelWorkflowRequest","description":"Local model workflow request schema."},"CreatePromptVersionRequest":{"properties":{"endpoint_id":{"type":"string","format":"uuid4","title":"Endpoint Id","description":"Endpoint ID for the prompt version"},"bud_prompt_id":{"type":"string","title":"Bud Prompt Id","description":"Temporary prompt ID from budprompt service"},"set_as_default":{"type":"boolean","title":"Set As Default","description":"Set this version as the default version","default":false},"override_publish_gate":{"type":"boolean","title":"Override Publish Gate","description":"Make the version the default even when the agent's publish gate (spec 027 AE3.6) blocks it.","default":false}},"type":"object","required":["endpoint_id","bud_prompt_id"],"title":"CreatePromptVersionRequest","description":"Create prompt version request schema."},"CreatePromptWorkflowRequest":{"properties":{"step_number":{"type":"integer","exclusiveMinimum":0.0,"title":"Step Number"},"trigger_workflow":{"type":"boolean","title":"Trigger Workflow","default":false},"workflow_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Workflow Id"},"workflow_total_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workflow Total Steps"},"project_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Project Id"},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Endpoint Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"prompt_type":{"anyOf":[{"$ref":"#/components/schemas/PromptTypeEnum"},{"type":"null"}]},"auto_scale":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Scale"},"caching":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Caching"},"concurrency":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Concurrency"},"rate_limit":{"type":"boolean","title":"Rate Limit","description":"Enable or disable rate limiting","default":false},"rate_limit_value":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Rate Limit Value","description":"Rate limit value (requests per minute)"},"bud_prompt_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bud Prompt Id"},"discarded_prompt_ids":{"anyOf":[{"items":{"$ref":"#/components/schemas/PromptCleanupItem"},"type":"array"},{"type":"null"}],"title":"Discarded Prompt Ids","description":"List of temporary prompt IDs discarded by user that need cleanup"},"client_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Client Metadata","description":"Arbitrary metadata from client for UI state preservation"},"base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Url","description":"Base URL of the external A2A agent"},"a2a_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"A2A Version","description":"A2A protocol version (default 0.3)","default":"0.3"},"auth_type":{"anyOf":[{"$ref":"#/components/schemas/ExternalAgentAuthTypeEnum"},{"type":"null"}],"description":"Authentication type for external agent"},"credential":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Credential","description":"Plain-text credential dict, sensitive fields encrypted before storage"},"a2a_registry_agent_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"A2A Registry Agent Id","description":"A2A catalog agent ID from registry"},"a2a_card":{"anyOf":[{"$ref":"#/components/schemas/A2ACardWorkflowConfig"},{"type":"null"}],"description":"A2A Agent Card configuration (simple prompts only)"}},"type":"object","required":["step_number"],"title":"CreatePromptWorkflowRequest","description":"Create prompt workflow request schema."},"CreateUserBillingRequest":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"billing_plan_id":{"type":"string","format":"uuid","title":"Billing Plan Id"},"custom_token_quota":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Custom Token Quota"},"custom_cost_quota":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Custom Cost Quota"}},"type":"object","required":["user_id","billing_plan_id"],"title":"CreateUserBillingRequest","description":"Request to create user billing."},"CredentialDetails":{"properties":{"name":{"type":"string","title":"Name"},"project":{"$ref":"#/components/schemas/CredentialProject"},"key":{"type":"string","title":"Key"},"expiry":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expiry"},"max_budget":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Budget"},"model_budgets":{"anyOf":[{"additionalProperties":{"type":"number","exclusiveMinimum":0.0},"propertyNames":{"format":"uuid"},"type":"object"},{"type":"null"}],"title":"Model Budgets"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"credential_type":{"$ref":"#/components/schemas/ApiCredentialTypeEnum"},"ip_whitelist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ip Whitelist"}},"type":"object","required":["name","project","key","expiry","max_budget","id","created_at","last_used_at","credential_type"],"title":"CredentialDetails","description":"BudServe credential details."},"CredentialFieldInfo":{"properties":{"key":{"type":"string","title":"Key","description":"Credential map key submitted on provision (e.g. 'bot_token', 'app_id')."},"label":{"type":"string","title":"Label","description":"Human-readable field label for the UI."},"secret":{"type":"boolean","title":"Secret","description":"True => password input, stored encrypted, never returned.","default":true},"required":{"type":"boolean","title":"Required","description":"True => the field must be provided to provision.","default":true}},"type":"object","required":["key","label"],"title":"CredentialFieldInfo","description":"One credential input a provider requires, sourced from budevent's descriptor field-spec.\n\nThe trigger/channel UI renders one input per entry (``secret`` => password) and submits a\ngeneric ``{key: value}`` map; budapp validates required keys before provisioning. Adding a\nprovider therefore needs only a budevent descriptor entry — ZERO per-provider budapp/budadmin code."},"CredentialProject":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"CredentialProject","description":"Credential project schema."},"CredentialRequest":{"properties":{"name":{"type":"string","title":"Name"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"expiry":{"anyOf":[{"$ref":"#/components/schemas/ExpiryEnum"},{"type":"null"}]},"max_budget":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Max Budget","description":"Max budget must be greater than 0 if specified"},"model_budgets":{"anyOf":[{"additionalProperties":{"type":"number","exclusiveMinimum":0.0},"propertyNames":{"format":"uuid"},"type":"object"},{"type":"null"}],"title":"Model Budgets"},"credential_type":{"anyOf":[{"$ref":"#/components/schemas/ApiCredentialTypeEnum"},{"type":"null"}]},"ip_whitelist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ip Whitelist","description":"List of allowed IP addresses for this credential"}},"type":"object","required":["name","project_id"],"title":"CredentialRequest","description":"Credential request schema."},"CredentialResponse":{"properties":{"name":{"type":"string","title":"Name"},"key":{"type":"string","title":"Key"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"expiry":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expiry"},"max_budget":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Budget"},"model_budgets":{"anyOf":[{"additionalProperties":{"type":"number","exclusiveMinimum":0.0},"propertyNames":{"format":"uuid"},"type":"object"},{"type":"null"}],"title":"Model Budgets"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"credential_type":{"$ref":"#/components/schemas/ApiCredentialTypeEnum"},"ip_whitelist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ip Whitelist"}},"type":"object","required":["name","key","project_id","expiry","max_budget","id","created_at","last_used_at","credential_type"],"title":"CredentialResponse","description":"Credential response schema."},"CredentialRevealResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"key":{"type":"string","title":"Key"}},"type":"object","required":["id","name","key"],"title":"CredentialRevealResponse","description":"Plaintext API key returned by the explicit reveal endpoint.\n\nThis is the ONLY schema in this module that carries a decrypted credential.\nIt is deliberately minimal — no project, budget or usage metadata — so that\na reveal response cannot be mistaken for, or reused as, a listing entry.\nEverything else (``CredentialDetails``, ``CredentialResponse``) keeps\nreturning the ciphertext in ``key``."},"CredentialSummary":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"}},"type":"object","required":["id","name","last_used_at"],"title":"CredentialSummary","description":"Summary of credential information for project response."},"CredentialUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"expiry":{"anyOf":[{"$ref":"#/components/schemas/ExpiryEnum"},{"type":"null"}]},"max_budget":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Max Budget","description":"Max budget; must be non-negative. 0 or null clears an existing budget, omit to leave it unchanged."},"model_budgets":{"anyOf":[{"additionalProperties":{"type":"number","exclusiveMinimum":0.0},"propertyNames":{"format":"uuid"},"type":"object"},{"type":"null"}],"title":"Model Budgets"},"ip_whitelist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ip Whitelist"}},"type":"object","title":"CredentialUpdate","description":"Credential Update schema."},"CriterionPromptCreateIn":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"content":{"type":"string","maxLength":200000,"minLength":1,"title":"Content","description":"Criterion prompt template text."},"project_id":{"type":"string","format":"uuid4","title":"Project Id","description":"Owning project (RBAC scope)."}},"type":"object","required":["name","content","project_id"],"title":"CriterionPromptCreateIn","description":"Input: payload for ``POST /eval-ops/prompts``.\n\nThe criterion prompt text is no longer\nstuffed inline into ``custom_config['metrics'][i]['criterion_prompt_id']``\n— it is saved through budprompt and a real UUID is returned.\n\nLength caps:\n\n* ``name`` 1..200 chars (matches the custom-dataset name cap).\n* ``content`` 1..200_000 chars — generous to accommodate complex\n  G-Eval criteria but bounded so a runaway editor cannot pin\n  budprompt's Redis store.","example":{"content":"You are an evaluation judge. Given the model's response and the reference answer, score relevance on a 0.0 - 1.0 scale where 1.0 is a perfect match. Respond with JSON: {\"score\": <float>, \"reason\": <str>}.","name":"G-Eval answer correctness","project_id":"00000000-0000-0000-0000-000000000001"}},"CriterionPromptOut":{"properties":{"prompt_id":{"type":"string","format":"uuid4","title":"Prompt Id"},"version":{"type":"integer","minimum":1.0,"title":"Version","default":1}},"type":"object","required":["prompt_id"],"title":"CriterionPromptOut","description":"Output: pointer to the persisted budprompt config.\n\nEngine-name invisible — only the prompt identifier + version cross\nthe wire. The downstream Custom Evaluation submission flow stores\nthis ``prompt_id`` against the metric's ``criterion_prompt_id``\nfield."},"CrossDatasetScoreItem":{"properties":{"rank":{"type":"integer","title":"Rank","description":"Ranking by accuracy within the result set (1=best)"},"dataset_id":{"type":"string","format":"uuid4","title":"Dataset Id","description":"UUID of the dataset"},"dataset_name":{"type":"string","title":"Dataset Name","description":"Name of the dataset"},"model_id":{"type":"string","format":"uuid4","title":"Model Id","description":"UUID of the model"},"model_name":{"type":"string","title":"Model Name","description":"Model name"},"model_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Display Name","description":"Model display name"},"model_icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Icon","description":"Model icon URL"},"endpoint_id":{"type":"string","format":"uuid4","title":"Endpoint Id","description":"UUID of the endpoint"},"endpoint_name":{"type":"string","title":"Endpoint Name","description":"Endpoint/deployment name"},"accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy","description":"Accuracy metric used for ranking"},"metrics":{"items":{"$ref":"#/components/schemas/MetricValue"},"type":"array","title":"Metrics","description":"All averaged metrics"},"num_runs":{"type":"integer","title":"Num Runs","description":"Number of runs averaged"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Creation timestamp from most recent run"}},"type":"object","required":["rank","dataset_id","dataset_name","model_id","model_name","endpoint_id","endpoint_name","num_runs","created_at"],"title":"CrossDatasetScoreItem","description":"Score entry for cross-dataset scores listing."},"CrossDatasetScoresResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"scores":{"items":{"$ref":"#/components/schemas/CrossDatasetScoreItem"},"type":"array","title":"Scores","description":"List of scores across datasets"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"CrossDatasetScoresResponse","description":"Response for cross-dataset scores endpoint."},"CurrentUsageSchema":{"properties":{"has_billing":{"type":"boolean","title":"Has Billing"},"billing_period_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Period Start"},"billing_period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Period End"},"plan_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Name"},"billing_plan_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Billing Plan Id"},"base_monthly_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Base Monthly Price"},"usage":{"anyOf":[{"$ref":"#/components/schemas/UsageSummarySchema"},{"type":"null"}]},"is_suspended":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Suspended"},"suspension_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suspension Reason"},"custom_token_quota":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Custom Token Quota"},"custom_cost_quota":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Custom Cost Quota"}},"type":"object","required":["has_billing","billing_period_start","billing_period_end","plan_name","billing_plan_id","base_monthly_price","usage","is_suspended","suspension_reason"],"title":"CurrentUsageSchema","description":"Current usage response schema."},"CustomDatasetCreateIn":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"project_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Project Id","description":"Optional owning project. Datasets are GLOBAL (shared across projects); leave unset for a global dataset. When set, it is the RBAC scope and any judge endpoint in ``metrics`` must belong to it."},"eval_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eval Type","description":"Authoring mode: quality_score | single_turn | rag | multi_turn | custom_graph | red_team | agent_single_turn | agent_multi_turn. Persisted into custom_config so the eval can be badged and reopened in the mode that authored it, and forwarded to the engine as the testcase type. Omitted means a metric-based eval of unrecorded type (legacy callers). Agent types validate inline testcases per row."},"metrics":{"items":{"$ref":"#/components/schemas/CustomMetricConfigIn"},"type":"array","title":"Metrics","description":"At least one metric must be configured (except for eval_type='red_team')."},"red_team":{"anyOf":[{"$ref":"#/components/schemas/RedTeamDefinitionIn"},{"type":"null"}],"description":"Required when eval_type='red_team'; rejected otherwise."},"testcases":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":10000},{"type":"null"}],"title":"Testcases","description":"Optional inline testcase list for v1."},"model_prompt":{"anyOf":[{"$ref":"#/components/schemas/ModelPromptIn"},{"type":"null"}],"description":"How a model target sees each row: system prompt, user template over row fields, function tools, tool_choice, temperature. Stored in custom_config.model_prompt; agents ignore it."},"trait_ids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array","maxItems":50},{"type":"null"}],"title":"Trait Ids","description":"Categories (traits) of the evaluation, saved as trait links."},"status":{"anyOf":[{"type":"string","const":"draft"},{"type":"null"}],"title":"Status","description":"'draft' creates an unpublished Editor draft; omitted keeps today's published create."},"settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Settings","description":"Draft settings (shape, fields, metrics, roles, model prompt, defaults); drafts only."}},"type":"object","required":["name"],"title":"CustomDatasetCreateIn","description":"Input: payload for ``POST /eval-ops/custom-datasets``.\n\nThis is the SINGLE authoring endpoint for all six eval types. ``eval_type``\nis the discriminator: ``red_team`` persists a ``source_kind='red_team'`` row\ncarrying ``red_team`` (and no metrics); anything else persists a\n``source_kind='custom'`` row carrying ``metrics``.\n\nGLOBAL datasets (live fix): an evaluation dataset does NOT belong to a\nproject — it is shared across all projects. A project is only involved at\nRUN time (the model + judge endpoint chosen for a run are project-scoped).\nSo ``project_id`` is OPTIONAL here and defaults to ``None`` (a global\ndataset). When supplied, it is still honored (back-compat) and any\ncross-project judge endpoint in ``metrics`` is rejected with HTTP 400 +\naudit row; when omitted, no project-scoped RBAC gate runs.\n\n``testcases`` is reserved for inline JSONL/CSV uploads. v1 callers may\npass a list of dicts; future versions will use a presigned-upload flow.\nCapped at 10_000 testcases to keep request payloads under the API\ngateway's body-size budget.","example":{"description":"Answer-relevancy + faithfulness checks for our chatbot.","eval_type":"single_turn","metrics":[{"metric_name":"answer_relevancy","threshold":0.7}],"name":"Customer-support QA"}},"CustomDatasetListOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CustomDatasetOut"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page","description":"Current page index.","default":1},"limit":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Limit","description":"Page size.","default":50}},"type":"object","required":["items","total"],"title":"CustomDatasetListOut","description":"Output: paginated listing for ``GET /eval-ops/custom-datasets``.\n\nPagination envelope. ``page`` / ``limit`` echo the request\npagination so clients can drive their UI off a single response\nwithout re-reading the original query string."},"CustomDatasetOut":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"source_kind":{"type":"string","title":"Source Kind","description":"'custom' for metric-based evals, 'red_team' for adversarial ones."},"eval_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eval Type","description":"Authoring mode this eval was created in, mirrored out of ``custom_config['eval_type']``. Null for rows created before the type was persisted. Drives the Hub badge."},"project_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Project Id","description":"Owning project, or null for a GLOBAL dataset (shared across projects)."},"custom_config":{"additionalProperties":true,"type":"object","title":"Custom Config","description":"Per-metric configuration bag (JSONB). Documented shape — ``{'metrics': [{'metric_name': str, 'threshold': float, 'criterion_prompt_id': str|None, 'judge_endpoint_id': str|None}, ...]}``. Producers SHOULD validate against the ``CustomMetricConfigIn`` Pydantic schema before writing. Engine identity is NEVER stored here (engine-name invariant)."},"trait_ids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Trait Ids","description":"Categories (traits) linked to the evaluation."},"status":{"type":"string","title":"Status","description":"draft | published | archived.","default":"published"},"draft_revision":{"type":"integer","title":"Draft Revision","description":"The Editor draft's revision.","default":0},"created_by":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Created By","description":"Owner; null = admins only may edit."},"shape":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shape","description":"single | multi, from the latest published settings."},"latest_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Version Number","description":"Latest published version; null for a draft."},"row_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Row Count","description":"Rows of the latest version (the draft's for a draft)."},"metric_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Metric Count","description":"Metric instances of the latest version (or the draft)."},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","name","source_kind","custom_config"],"title":"CustomDatasetOut","description":"Output: a single custom-dataset row.\n\nEngine-name invisible — exposes only user-facing fields. The\n``custom_config`` dict carries the user-supplied metrics list under\n``custom_config['metrics']``; engine identity is NEVER stored here."},"CustomMetricConfigIn":{"properties":{"metric_name":{"type":"string","maxLength":64,"minLength":1,"title":"Metric Name"},"threshold":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Threshold"},"criterion_prompt_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Criterion Prompt Id","description":"Optional budprompt UUID; required if capability.requires_criterion_prompt."},"criterion":{"anyOf":[{"type":"string","maxLength":8192},{"type":"null"}],"title":"Criterion","description":"Inline criterion TEXT — the fallback for criterion-requiring metrics (e.g. g_eval) when no budprompt prompt was persisted. GLOBAL evals have no project, so the criterion cannot be saved to project-scoped budprompt; the rubric text travels inline instead. Satisfies the requires_criterion_prompt contract together with criterion_prompt_id (exactly one is set); the run-time adapter uses whichever is present."},"judge_endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Judge Endpoint Id","description":"Optional project-scoped judge endpoint id; required if capability.requires_judge."},"constructor_args":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Constructor Args","description":"Optional per-metric constructor arguments (e.g. strict_mode, include_reason). Persisted verbatim into custom_config and shipped to the run-time adapter; keys are metric-specific."},"instance":{"anyOf":[{"type":"string","maxLength":128,"minLength":1,"pattern":"^[A-Za-z0-9_.:-]+$"},{"type":"null"}],"title":"Instance","description":"Name of this metric instance, unique within the evaluation (spec 028 D-38). Scores, aggregates, reviews, gates and baselines are keyed by it. Default: the first instance of a metric is named after metric_name, later ones '{metric_name}_{n}' (n = 2, 3, ...)."},"label":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Label","description":"Display name of this instance."},"eval_mode":{"anyOf":[{"type":"string","enum":["llm","hybrid","system_one"]},{"type":"null"}],"title":"Eval Mode","description":"How this instance decides: LLM judge, hybrid, or the decision model only."},"decision_judge_endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Decision Judge Endpoint Id","description":"A /v1/decisions endpoint in the project that decides for this instance."}},"type":"object","required":["metric_name","threshold"],"title":"CustomMetricConfigIn","description":"Input: a single custom-evaluation metric configuration.\n\n``metric_name`` MUST match a capability ``feature_name`` returned by\n``GET /eval-ops/capabilities?feature_kind=custom_eval`` (e.g. ``g_eval``,\n``answer_relevancy``, ``faithfulness``, ``hallucination``,\n``contextual_relevancy``, ``bias``, ``toxicity``, ``summarization``).\n\n``criterion_prompt_id`` is REQUIRED when the capability has\n``requires_criterion_prompt=True`` (e.g. ``g_eval``). The service-layer\nvalidation enforces this contract — Pydantic alone cannot reach the\ncatalog.\n\n``judge_endpoint_id`` is REQUIRED when the capability has\n``requires_judge=True``. The service-layer validation also enforces\nproject-RBAC on this endpoint (cross-project judge → HTTP 400 + audit)."},"CustomProbeTypeEnum":{"type":"string","enum":["llm_policy"],"title":"CustomProbeTypeEnum","description":"Available custom probe type options.\n\nEach option maps to a specific model_uri, scanner_type, handler, and provider."},"CustomProbeWorkflowRequest":{"properties":{"workflow_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Workflow Id"},"workflow_total_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workflow Total Steps"},"step_number":{"type":"integer","exclusiveMinimum":0.0,"title":"Step Number"},"trigger_workflow":{"type":"boolean","title":"Trigger Workflow","default":false},"probe_type_option":{"anyOf":[{"$ref":"#/components/schemas/CustomProbeTypeEnum"},{"type":"null"}]},"policy":{"anyOf":[{"$ref":"#/components/schemas/PolicyConfig"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"guard_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guard Types"},"modality_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Modality Types"}},"type":"object","required":["step_number"],"title":"CustomProbeWorkflowRequest","description":"Custom probe workflow request schema (multi-step).\n\nSimilar to GuardrailDeploymentWorkflowRequest but for creating custom probes.\nFollows the probe-first pattern where the probe is created with model_uri only,\nand model_id gets assigned later during deployment (or immediately if model is already onboarded).\n\nWorkflow Steps:\n- Step 1: Select probe type (llm_policy, etc.) - system auto-derives model_uri, scanner_type, etc.\n- Step 2: Configure policy (PolicyConfig)\n- Step 3: Probe metadata + trigger_workflow=true creates probe"},"CustomTemplateCreateRequest":{"properties":{"name":{"type":"string","maxLength":63,"minLength":1,"title":"Name","description":"Slug-safe template name (also the template id)."},"commands":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Commands","description":"Dockerfile-instruction strings appended to the shared base."},"cpu_count":{"type":"integer","minimum":1.0,"title":"Cpu Count","description":"vCPU count."},"memory_mb":{"type":"integer","minimum":512.0,"title":"Memory Mb","description":"Memory in MiB."}},"additionalProperties":false,"type":"object","required":["name","commands","cpu_count","memory_mb"],"title":"CustomTemplateCreateRequest","description":"Body for ``POST /prompts/code-interpreter/templates``.\n\nMirrors the budcodeinterpreter wire shape verbatim — budapp forwards\nthe body without translation. Per-field validation (slug-safe name,\nDockerfile-instruction deny-list, structural limits) is enforced on\nthe budcodeinterpreter side; the budapp schema only enforces the\n\"all four fields required\" shape."},"CustomTemplateUpdateRequest":{"properties":{"commands":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Commands","description":"Replacement Dockerfile-instruction list (re-triggers the build)."}},"additionalProperties":false,"type":"object","required":["commands"],"title":"CustomTemplateUpdateRequest","description":"Body for ``PUT /prompts/code-interpreter/templates/{id}``."},"DashboardStatsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"total_model_count":{"type":"integer","title":"Total Model Count"},"cloud_model_count":{"type":"integer","title":"Cloud Model Count"},"local_model_count":{"type":"integer","title":"Local Model Count"},"total_projects":{"type":"integer","title":"Total Projects"},"total_project_users":{"type":"integer","title":"Total Project Users"},"total_endpoints_count":{"type":"integer","title":"Total Endpoints Count"},"running_endpoints_count":{"type":"integer","title":"Running Endpoints Count"},"total_clusters":{"type":"integer","title":"Total Clusters"},"inactive_clusters":{"type":"integer","title":"Inactive Clusters"}},"additionalProperties":false,"type":"object","required":["message","total_model_count","cloud_model_count","local_model_count","total_projects","total_project_users","total_endpoints_count","running_endpoints_count","total_clusters","inactive_clusters"],"title":"DashboardStatsResponse","description":"Dashboard stats response schema."},"DataFoundryNotebook":{"properties":{"id":{"type":"string","title":"Id","description":"The notebook's lowercase hyphenated UUID; a NOTEBOOK collection's `notebook`"},"display_name":{"type":"string","title":"Display Name","description":"The notebook's name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"What the notebook is for"},"member_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Member Count","description":"People and groups it is shared with"},"source_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Count","description":"Its sources the project can list, if counted"},"update_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Update Time","description":"When it last changed (RFC 3339)"}},"type":"object","required":["id","display_name"],"title":"DataFoundryNotebook","description":"A data-foundry notebook shared with a project, as the agent editor's picker shows it."},"DataFoundryNotebookListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"data_foundry.notebooks"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"notebooks":{"items":{"$ref":"#/components/schemas/DataFoundryNotebook"},"type":"array","title":"Notebooks"},"next_page_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page Token","description":"Pass as page_token for the next page; null on the last page"}},"additionalProperties":false,"type":"object","required":["message"],"title":"DataFoundryNotebookListResponse","description":"``GET /data-foundry/projects/{project_id}/notebooks``."},"DatasetBasic":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id","description":"The UUID of the dataset."},"name":{"type":"string","title":"Name","description":"The name of the dataset."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"The description of the dataset."},"estimated_input_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Input Tokens","description":"Estimated input tokens."},"estimated_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Output Tokens","description":"Estimated output tokens."},"modalities":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Modalities","description":"List of modalities."},"sample_questions_answers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sample Questions Answers","description":"Sample questions and answers in JSON format."},"advantages_disadvantages":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Advantages Disadvantages","description":"Advantages and disadvantages with structure {'advantages': ['str1'], 'disadvantages': ['str2']}."}},"type":"object","required":["id","name"],"title":"DatasetBasic","description":"Basic dataset information for trait responses."},"DatasetFileSource":{"properties":{"id":{"type":"string","title":"Id","description":"Path of the file under the eval data root; pass it back as ``source``."},"label":{"type":"string","title":"Label","description":"The subset (or file) the file holds."},"format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format","description":"jsonl, json, csv, tsv, parquet or text."},"size":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Size","description":"Bytes, when the file is on the volume."},"present":{"type":"boolean","title":"Present","description":"Whether the file is on the eval volume yet.","default":false},"rows":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Rows","description":"Records in the file, when known."},"config_id":{"type":"string","title":"Config Id","description":"The engine config the file belongs to; pass it back as ``config_id``."}},"type":"object","required":["id","label","config_id"],"title":"DatasetFileSource","description":"One data file of a benchmark, as the eval Jobs read it from the eval volume."},"DatasetFilesResponse":{"properties":{"object":{"type":"string","title":"Object","default":"dataset.files"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"available":{"type":"boolean","title":"Available","description":"Whether the dataset has any data files the viewer can show.","default":false},"repo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo","description":"The HuggingFace repo the files come from."},"license":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License","description":"The source repo's licence, as its card states it."},"downloadable":{"type":"boolean","title":"Downloadable","description":"Some files are not on the volume yet and can be downloaded.","default":false},"sync":{"anyOf":[{"$ref":"#/components/schemas/DatasetSyncState"},{"type":"null"}]},"sources":{"items":{"$ref":"#/components/schemas/DatasetFileSource"},"type":"array","title":"Sources"}},"additionalProperties":false,"type":"object","required":["message"],"title":"DatasetFilesResponse","description":"The data files of a benchmark, for the full dataset viewer."},"DatasetInfo":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id","description":"Dataset UUID"},"name":{"type":"string","title":"Name","description":"Dataset name"},"version":{"type":"string","title":"Version","description":"Dataset version"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Dataset description"}},"type":"object","required":["id","name","version"],"title":"DatasetInfo","description":"Basic dataset information."},"DatasetModelScore":{"properties":{"rank":{"type":"integer","title":"Rank","description":"Ranking by accuracy (1=best)"},"model_id":{"type":"string","format":"uuid4","title":"Model Id","description":"UUID of the model"},"model_name":{"type":"string","title":"Model Name","description":"Model name"},"model_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Display Name","description":"Model display name"},"model_icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Icon","description":"Model icon URL"},"provider_icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Icon","description":"Provider icon URL"},"endpoint_name":{"type":"string","title":"Endpoint Name","description":"Endpoint/deployment name"},"accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy","description":"Primary score of the model's best run (used for ranking); same value as `score`"},"metrics":{"items":{"$ref":"#/components/schemas/MetricValue"},"type":"array","title":"Metrics","description":"Metrics of the model's best run"},"num_runs":{"type":"integer","title":"Num Runs","description":"Number of completed runs of the model on this dataset"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Creation timestamp of the best run"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score","description":"Primary score of the model's best run"},"experiment_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Experiment Id","description":"Experiment of the best run"},"experiment_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Experiment Name","description":"Name of the experiment of the best run"},"run_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Run Id","description":"UUID of the best run"},"evaluation_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Evaluation Id","description":"Evaluation of the best run"},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Endpoint Id","description":"Endpoint/deployment of the best run"}},"type":"object","required":["rank","model_id","model_name","endpoint_name","num_runs","created_at"],"title":"DatasetModelScore","description":"Individual model score for a dataset."},"DatasetPaginatedResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"datasets":{"items":{"$ref":"#/components/schemas/DatasetResponse"},"type":"array","title":"Datasets"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","datasets","total_pages"],"title":"DatasetPaginatedResponse"},"DatasetPatchIn":{"properties":{"revision":{"type":"integer","minimum":0.0,"title":"Revision"},"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Settings","description":"Top-level settings keys to replace (INTERFACES §1.4): shape, fields, metrics, roles, ..."}},"additionalProperties":false,"type":"object","required":["revision"],"title":"DatasetPatchIn","description":"``PATCH /eval-ops/custom-datasets/{ds}``: name, description and a partial settings patch (top-level keys)."},"DatasetRecord":{"properties":{"index":{"type":"integer","minimum":0.0,"title":"Index","description":"Position of the record in the file (0-based)."},"data":{"additionalProperties":true,"type":"object","title":"Data"},"truncated":{"type":"boolean","title":"Truncated","description":"Some long value was clipped for the page.","default":false}},"type":"object","required":["index"],"title":"DatasetRecord","description":"One record of a data file, its fields as the file stores them."},"DatasetRecordsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"dataset.records"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"available":{"type":"boolean","title":"Available","description":"Whether the file could be read.","default":false},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Why the file cannot be previewed, when it cannot."},"config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Config Id"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format"},"total":{"type":"integer","minimum":0.0,"title":"Total","description":"Records in the file.","default":0},"matched":{"type":"integer","minimum":0.0,"title":"Matched","description":"Records matching the search.","default":0},"offset":{"type":"integer","minimum":0.0,"title":"Offset","default":0},"limit":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Limit","default":50},"columns":{"items":{"type":"string"},"type":"array","title":"Columns","description":"Top-level fields seen on this page, in order."},"records":{"items":{"$ref":"#/components/schemas/DatasetRecord"},"type":"array","title":"Records"}},"additionalProperties":false,"type":"object","required":["message"],"title":"DatasetRecordsResponse","description":"One page of a benchmark data file's records."},"DatasetResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tags"},"hf_hub_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Hub Url"},"ms_hub_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ms Hub Url"},"script_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Script Url"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"},"formatting":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Formatting"},"ranking":{"type":"boolean","title":"Ranking"},"subset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subset"},"split":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Split"},"folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder"},"columns":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Columns"},"status":{"$ref":"#/components/schemas/DatasetStatusEnum"},"num_samples":{"type":"integer","title":"Num Samples"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","name","ranking","status","num_samples","created_at","modified_at"],"title":"DatasetResponse"},"DatasetRowItem":{"properties":{"index":{"type":"integer","title":"Index","description":"Position of the row within its subset."},"subset":{"type":"string","title":"Subset","description":"Benchmark subset the row belongs to."},"prompt":{"type":"string","title":"Prompt","description":"Prompt as sent to the model (may be truncated to 4000 chars)."},"expected":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected","description":"Reference answer (may be truncated)."}},"type":"object","required":["index","subset","prompt"],"title":"DatasetRowItem","description":"One row of a benchmark, as it was sent to the model: no response, no verdict."},"DatasetRowsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"dataset.rows"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"available":{"type":"boolean","title":"Available","description":"Whether rows could be read from a run.","default":false},"total":{"type":"integer","minimum":0.0,"title":"Total","description":"Rows in the run, before the search.","default":0},"matched":{"type":"integer","minimum":0.0,"title":"Matched","description":"Rows matching the search.","default":0},"offset":{"type":"integer","minimum":0.0,"title":"Offset","default":0},"limit":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Limit","default":50},"subsets":{"items":{"type":"string"},"type":"array","title":"Subsets","description":"Subsets of the run, sorted."},"items":{"items":{"$ref":"#/components/schemas/DatasetRowItem"},"type":"array","title":"Items"},"source":{"anyOf":[{"$ref":"#/components/schemas/DatasetRowsSource"},{"type":"null"}],"description":"The run the rows come from."}},"additionalProperties":false,"type":"object","required":["message"],"title":"DatasetRowsResponse","description":"A benchmark's rows, read from the caller's latest completed run of it.\n\nThe catalog only carries a few sample rows for some datasets; the rows a run\nactually sent are kept with its per-sample results. ``available`` is false\nwhen the caller has no completed run of this dataset with per-sample results,\nor the dataset is not a benchmark."},"DatasetRowsSource":{"properties":{"run_id":{"type":"string","format":"uuid4","title":"Run Id"},"evaluation_id":{"type":"string","format":"uuid4","title":"Evaluation Id"},"experiment_id":{"type":"string","format":"uuid4","title":"Experiment Id"},"experiment_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Experiment Name"},"evaluation_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evaluation Name"},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name"},"ran_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ran At"}},"type":"object","required":["run_id","evaluation_id","experiment_id"],"title":"DatasetRowsSource","description":"The run the rows were read from."},"DatasetScoreCell":{"properties":{"dataset_id":{"type":"string","format":"uuid4","title":"Dataset Id","description":"Dataset ID"},"dataset_name":{"type":"string","title":"Dataset Name","description":"Dataset name"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score","description":"Score (null if no data)"},"run_count":{"type":"integer","title":"Run Count","description":"Number of runs averaged","default":0}},"type":"object","required":["dataset_id","dataset_name"],"title":"DatasetScoreCell","description":"Score for a single dataset cell in heatmap."},"DatasetScoresResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"dataset_id":{"type":"string","format":"uuid4","title":"Dataset Id","description":"UUID of the dataset"},"dataset_name":{"type":"string","title":"Dataset Name","description":"Name of the dataset"},"scores":{"items":{"$ref":"#/components/schemas/DatasetModelScore"},"type":"array","title":"Scores","description":"List of model scores"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","dataset_id","dataset_name","total_pages"],"title":"DatasetScoresResponse","description":"Response for dataset scores endpoint."},"DatasetStatusEnum":{"type":"string","enum":["active","inactive"],"title":"DatasetStatusEnum","description":"Dataset status."},"DatasetSyncState":{"properties":{"state":{"type":"string","title":"State","description":"running, done or failed."},"files_done":{"type":"integer","minimum":0.0,"title":"Files Done","default":0},"files_total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Files Total"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["state"],"title":"DatasetSyncState","description":"A download of the dataset's source repo onto the eval volume."},"DatasetTopScore":{"properties":{"score":{"type":"number","title":"Score","description":"Raw primary score of the best run."},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name","description":"Model name behind the run's deployment."},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name","description":"Endpoint/deployment name of the run."},"experiment_id":{"type":"string","format":"uuid4","title":"Experiment Id","description":"UUID of the experiment the run belongs to."},"experiment_name":{"type":"string","title":"Experiment Name","description":"Name of the experiment the run belongs to."},"run_id":{"type":"string","format":"uuid4","title":"Run Id","description":"UUID of the best run."}},"type":"object","required":["score","experiment_id","experiment_name","run_id"],"title":"DatasetTopScore","description":"The requesting user's best completed run of a dataset."},"DatasetUploadOut":{"properties":{"artifact_id":{"type":"string","format":"uuid4","title":"Artifact Id"},"parsed_count":{"type":"integer","minimum":0.0,"title":"Parsed Count"},"storage_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storage Uri","description":"Always null: uploads are stored inline."},"size_bytes":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Size Bytes"}},"type":"object","required":["artifact_id","parsed_count"],"title":"DatasetUploadOut","description":"Output: response for ``POST /eval-ops/custom-datasets/{id}/upload``.\n\nCarries a synthetic upload id + parsed row count so the UI can render a\nconfirmation toast (\"Uploaded 1,234 testcases\"). Testcases are stored\ninline on the dataset's ``custom_config``, so ``storage_uri`` is null.","example":{"artifact_id":"00000000-0000-0000-0000-000000000050","parsed_count":1234,"size_bytes":524288}},"DatasetVersionCreateIn":{"properties":{"change_summary":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Change Summary","description":"Free-form change note."}},"type":"object","title":"DatasetVersionCreateIn","description":"Input for ``POST /custom-datasets/{id}/versions``.\n\nSnapshots the current dataset state (``custom_config['testcases']``\nor the most recent testcases artifact) as a new version row."},"DatasetVersionListOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DatasetVersionOut"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page","default":1},"limit":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Limit","default":50}},"type":"object","required":["items","total"],"title":"DatasetVersionListOut","description":"Paginated dataset-version listing envelope."},"DatasetVersionOut":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"dataset_id":{"type":"string","format":"uuid4","title":"Dataset Id"},"version":{"type":"string","title":"Version","description":"Legacy version string (kept stable)."},"version_number":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Version Number","description":"monotonic per-dataset counter (1, 2, 3,...)."},"schema_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schema Hash","description":"sha256 hex of the stable testcase shape."},"row_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Row Count","description":"Number of testcases in this snapshot."},"created_by":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Created By","description":"User who created the snapshot."},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name","description":"Display name of ``created_by`` (versions list only)."},"parent_version_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Parent Version Id","description":"Parent version (lineage)."},"change_summary":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Change Summary","description":"Free-form change note."},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"content_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Hash","description":"sha256(rows_hash || settings_hash)."},"manifest_row_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Manifest Row Count","description":"Rows in the manifest; null without one."},"rows_recorded":{"type":"boolean","title":"Rows Recorded","description":"The version's rows are recorded (a manifest exists).","default":false},"all_recorded":{"type":"boolean","title":"All Recorded","description":"Every row carries a recorded output: runnable with no target.","default":false}},"type":"object","required":["id","dataset_id","version"],"title":"DatasetVersionOut","description":"A single dataset-version snapshot row.\n\nReturned by ``GET /eval-ops/custom-datasets/{id}/versions`` and\n``POST .../versions``. The ``version_number`` is the monotonic\nper-dataset counter; the legacy ``version`` string field is exposed\nfor backwards compatibility with earlier callers."},"DebounceSpec":{"properties":{"window_seconds":{"type":"integer","exclusiveMinimum":0.0,"title":"Window Seconds"}},"type":"object","required":["window_seconds"],"title":"DebounceSpec","description":"Collapse a burst of correlated events within ``window_seconds``."},"DecisionOptionsIn":{"properties":{"eval_mode":{"anyOf":[{"type":"string","enum":["llm","hybrid","system_one"]},{"type":"null"}],"title":"Eval Mode","description":"llm (chat judge only), hybrid (the decision judge answers the decision points) or system_one (the decision judge alone). Absent: the evaluation's, else hybrid when a decision judge is set."}},"additionalProperties":false,"type":"object","title":"DecisionOptionsIn","description":"A run's decision-judge default (spec 034 J8.1): the eval mode of every instance that does not pin one."},"DecisionsWorkloadIntent":{"properties":{"calls":{"type":"integer","minimum":1.0,"title":"Calls","description":"Decision calls in flight at peak"},"questions_per_call":{"type":"integer","maximum":64.0,"minimum":1.0,"title":"Questions Per Call","description":"Average questions per call (vLLM's max_questions)","default":16},"state_tokens":{"type":"integer","minimum":1.0,"title":"State Tokens","description":"Average state length, tokens","default":1024},"question_tokens":{"type":"integer","minimum":1.0,"title":"Question Tokens","description":"Average tokens a question adds","default":48},"state_reuse":{"type":"string","enum":["fresh","repeated"],"title":"State Reuse","default":"fresh"},"target_call_latency_ms":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Target Call Latency Ms","description":"Median time for one call"}},"additionalProperties":false,"type":"object","required":["calls"],"title":"DecisionsWorkloadIntent","description":"A declared decisions load on a self-hosted chat model (spec 031 DM3, FRD §5.15).\n\nA decision call is ``questions_per_call`` one-token reads over one ``state_tokens`` state. budsim sizes it beside\nthe chat load and budcluster floors the engine's batch limit so each call runs as one batch (D-30, D-31)."},"DefinitionItem":{"properties":{"term":{"type":"string","title":"Term"},"definition":{"type":"string","title":"Definition"}},"type":"object","required":["term","definition"],"title":"DefinitionItem","description":"Term definition for policy."},"DeleteExperimentResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"additionalProperties":false,"type":"object","required":["message"],"title":"DeleteExperimentResponse","description":"Response schema for deleting an experiment."},"DeleteOp":{"properties":{"op":{"type":"string","const":"delete","title":"Op"},"row_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":10000,"minItems":1,"title":"Row Ids"}},"additionalProperties":false,"type":"object","required":["op","row_ids"],"title":"DeleteOp","description":"Soft-delete rows (``deleted_revision``); an insert under the same id revives one (undo)."},"DeleteRunResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"additionalProperties":false,"type":"object","required":["message"],"title":"DeleteRunResponse","description":"Response schema for deleting a run."},"DeleteWorkerRequest":{"properties":{"endpoint_id":{"type":"string","format":"uuid4","title":"Endpoint Id"},"worker_id":{"type":"string","format":"uuid4","title":"Worker Id"},"worker_name":{"type":"string","title":"Worker Name"}},"type":"object","required":["endpoint_id","worker_id","worker_name"],"title":"DeleteWorkerRequest","description":"Delete worker request."},"DeletionRequest":{"properties":{"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"},"confirm_slug":{"type":"string","title":"Confirm Slug"}},"additionalProperties":false,"type":"object","required":["reason","confirm_slug"],"title":"DeletionRequest"},"DeploymentCapabilitiesResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"model_id":{"type":"string","title":"Model Id"},"model_uri":{"type":"string","title":"Model Uri"},"engines":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Engines"},"features":{"additionalProperties":{"$ref":"#/components/schemas/DeploymentFeatureCapability"},"type":"object","title":"Features"}},"additionalProperties":false,"type":"object","required":["message","model_id","model_uri"],"title":"DeploymentCapabilitiesResponse","description":"The deployment features a model can use, keyed by feature name (budsim ``/simulator/capabilities``)."},"DeploymentFeatureCapability":{"properties":{"supported":{"type":"boolean","title":"Supported"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"options":{"items":{"$ref":"#/components/schemas/DeploymentFeatureOption"},"type":"array","title":"Options"},"detail":{"additionalProperties":true,"type":"object","title":"Detail"}},"type":"object","required":["supported"],"title":"DeploymentFeatureCapability","description":"Whether a deployment feature applies to the model, and why not when it does not."},"DeploymentFeatureOption":{"properties":{"value":{"type":"string","title":"Value"},"supported":{"type":"boolean","title":"Supported"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"default":{"type":"boolean","title":"Default","default":false}},"type":"object","required":["value","supported"],"title":"DeploymentFeatureOption","description":"One choice a deployment feature offers (e.g. a speculative-decoding method)."},"DeploymentHeatmapData":{"properties":{"deployment_id":{"type":"string","format":"uuid4","title":"Deployment Id","description":"Endpoint/deployment ID"},"deployment_name":{"type":"string","title":"Deployment Name","description":"Deployment name"},"model_name":{"type":"string","title":"Model Name","description":"Model name"},"dataset_scores":{"items":{"$ref":"#/components/schemas/DatasetScoreCell"},"type":"array","title":"Dataset Scores","description":"Scores per dataset"}},"type":"object","required":["deployment_id","deployment_name","model_name","dataset_scores"],"title":"DeploymentHeatmapData","description":"Heatmap data for a single deployment."},"DeploymentPricingInfo":{"properties":{"input_cost":{"type":"number","title":"Input Cost"},"output_cost":{"type":"number","title":"Output Cost"},"currency":{"type":"string","title":"Currency","default":"USD"},"per_tokens":{"type":"integer","title":"Per Tokens","default":1000},"unit":{"type":"string","title":"Unit","default":"token"},"rates":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Rates"}},"type":"object","required":["input_cost","output_cost"],"title":"DeploymentPricingInfo","description":"Simplified pricing info for catalog."},"DeploymentPricingInput":{"properties":{"input_cost":{"anyOf":[{"type":"number","exclusiveMaximum":10000.0,"minimum":0.0},{"type":"string"},{"type":"null"}],"title":"Input Cost","description":"Cost per input tokens (max 9999.999999)"},"output_cost":{"anyOf":[{"type":"number","exclusiveMaximum":10000.0,"minimum":0.0},{"type":"string"},{"type":"null"}],"title":"Output Cost","description":"Cost per output tokens (max 9999.999999)"},"currency":{"type":"string","maxLength":3,"title":"Currency","description":"Currency code (ISO 4217)","default":"USD"},"unit":{"$ref":"#/components/schemas/PricingUnitEnum","description":"What per_tokens counts","default":"token"},"per_tokens":{"type":"integer","exclusiveMinimum":0.0,"title":"Per Tokens","description":"Number of units for the pricing unit","default":1000},"rates":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"number","exclusiveMaximum":10000.0,"minimum":0.0},{"type":"string"}]},"type":"object"},{"type":"null"}],"title":"Rates","description":"Realtime per-modality rates (input_audio, output_audio, cached_input_text, ...)"},"question_cost":{"anyOf":[{"type":"number","exclusiveMaximum":10000.0,"minimum":0.0},{"type":"string"},{"type":"null"}],"title":"Question Cost","description":"Cost per decision question (self-hosted decisions)"}},"type":"object","title":"DeploymentPricingInput","description":"Input schema for deployment pricing.\n\n``input_cost`` / ``output_cost`` are required except on a per-token price that carries\n``rates`` (FRD-023, CONTRACTS C3): there they default to ``rates.input_audio`` /\n``rates.output_audio``, the stored headline. Whether ``rates`` may be sent at all, which keys it\nmay carry and which it must, depends on the DEPLOYMENT and is judged by the service (a 400\nnaming the key), not here."},"DeploymentPricingResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"endpoint_id":{"type":"string","format":"uuid4","title":"Endpoint Id"},"input_cost":{"type":"string","title":"Input Cost"},"output_cost":{"type":"string","title":"Output Cost"},"currency":{"type":"string","title":"Currency"},"unit":{"$ref":"#/components/schemas/PricingUnitEnum","default":"token"},"per_tokens":{"type":"integer","title":"Per Tokens"},"is_current":{"type":"boolean","title":"Is Current"},"created_by":{"type":"string","format":"uuid4","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"rates":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Rates"},"question_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Cost"}},"type":"object","required":["id","endpoint_id","input_cost","output_cost","currency","per_tokens","is_current","created_by","created_at","modified_at"],"title":"DeploymentPricingResponse","description":"Response schema for deployment pricing."},"DeploymentRadarData":{"properties":{"deployment_id":{"type":"string","format":"uuid4","title":"Deployment Id","description":"Endpoint/deployment ID"},"deployment_name":{"type":"string","title":"Deployment Name","description":"Deployment name"},"model_name":{"type":"string","title":"Model Name","description":"Model name"},"color":{"type":"string","title":"Color","description":"Hex color for visualization"},"trait_scores":{"items":{"$ref":"#/components/schemas/TraitScoreItem"},"type":"array","title":"Trait Scores","description":"Scores per trait"}},"type":"object","required":["deployment_id","deployment_name","model_name","color","trait_scores"],"title":"DeploymentRadarData","description":"Radar data for a single deployment."},"DeploymentSettingsConfig":{"properties":{"rate_limits":{"anyOf":[{"$ref":"#/components/schemas/RateLimitConfig-Output"},{"type":"null"}]},"retry_config":{"anyOf":[{"$ref":"#/components/schemas/RetryConfig"},{"type":"null"}]},"fallback_config":{"anyOf":[{"$ref":"#/components/schemas/FallbackConfig"},{"type":"null"}]}},"type":"object","title":"DeploymentSettingsConfig","description":"Main deployment settings configuration for endpoints."},"DeploymentSettingsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"endpoint.deployment_settings"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","default":"Successfully retrieved deployment settings"},"endpoint_id":{"type":"string","format":"uuid4","title":"Endpoint Id"},"deployment_settings":{"$ref":"#/components/schemas/DeploymentSettingsConfig"},"supported_settings":{"items":{"type":"string"},"type":"array","title":"Supported Settings"}},"additionalProperties":false,"type":"object","required":["endpoint_id","deployment_settings"],"title":"DeploymentSettingsResponse","description":"Response schema for deployment settings."},"DeploymentStatusEnum":{"type":"string","enum":["ready","pending","ingress_failed","failed"],"title":"DeploymentStatusEnum"},"DeploymentTemplateCreate":{"properties":{"concurrent_requests":{"type":"integer","minimum":0.0,"title":"Concurrent Requests"},"avg_sequence_length":{"type":"integer","minimum":0.0,"title":"Avg Sequence Length"},"avg_context_length":{"type":"integer","maximum":200000.0,"minimum":0.0,"title":"Avg Context Length"},"per_session_tokens_per_sec":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Per Session Tokens Per Sec"},"ttft":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Ttft"},"e2e_latency":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"E2E Latency"}},"type":"object","required":["concurrent_requests","avg_sequence_length","avg_context_length"],"title":"DeploymentTemplateCreate","description":"Deployment template request schema."},"DeviceTypeConfigurationResponse":{"properties":{"device_type":{"type":"string","title":"Device Type"},"device_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Name"},"device_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Model"},"total_devices":{"type":"integer","title":"Total Devices"},"nodes_count":{"type":"integer","title":"Nodes Count"},"max_devices_per_node":{"type":"integer","title":"Max Devices Per Node"},"memory_per_device_gb":{"type":"number","title":"Memory Per Device Gb"},"tp_pp_options":{"items":{"$ref":"#/components/schemas/TPPPOptionResponse"},"type":"array","title":"Tp Pp Options"},"min_tp_required":{"type":"integer","title":"Min Tp Required"},"supports_pipeline_parallelism":{"type":"boolean","title":"Supports Pipeline Parallelism"}},"type":"object","required":["device_type","total_devices","nodes_count","max_devices_per_node","memory_per_device_gb","tp_pp_options","min_tp_required","supports_pipeline_parallelism"],"title":"DeviceTypeConfigurationResponse","description":"Device configuration response from budsim."},"DisconnectConnectorResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"success":{"type":"boolean","title":"Success","description":"Always true; error paths return ErrorResponse.","default":true},"prompt_id":{"type":"string","title":"Prompt Id","description":"Prompt ID"},"connector_id":{"type":"string","title":"Connector Id","description":"Disconnected connector ID"},"deleted_gateway_id":{"type":"string","title":"Deleted Gateway Id","description":"Deleted gateway ID"}},"additionalProperties":false,"type":"object","required":["message","prompt_id","connector_id","deleted_gateway_id"],"title":"DisconnectConnectorResponse","description":"Response schema for disconnecting connector."},"DocumentPatchIn":{"properties":{"purpose":{"type":"string","enum":["reference","requirements"],"title":"Purpose"}},"additionalProperties":false,"type":"object","required":["purpose"],"title":"DocumentPatchIn"},"DocumentResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"document":{"additionalProperties":true,"type":"object","title":"Document"}},"additionalProperties":false,"type":"object","required":["message","document"],"title":"DocumentResponse"},"DocumentsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"documents":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Documents"}},"additionalProperties":false,"type":"object","required":["message","documents"],"title":"DocumentsResponse"},"DraftPatchIn":{"properties":{"revision":{"type":"integer","minimum":0.0,"title":"Revision","description":"The draft revision the client last saw."},"ops":{"items":{"oneOf":[{"$ref":"#/components/schemas/InsertOp"},{"$ref":"#/components/schemas/UpdateOp"},{"$ref":"#/components/schemas/DeleteOp"},{"$ref":"#/components/schemas/MoveOp"},{"$ref":"#/components/schemas/DuplicateOp"}],"discriminator":{"propertyName":"op","mapping":{"delete":"#/components/schemas/DeleteOp","duplicate":"#/components/schemas/DuplicateOp","insert":"#/components/schemas/InsertOp","move":"#/components/schemas/MoveOp","update":"#/components/schemas/UpdateOp"}}},"type":"array","maxItems":1000,"minItems":1,"title":"Ops"}},"additionalProperties":false,"type":"object","required":["revision","ops"],"title":"DraftPatchIn","description":"``PATCH …/draft``: the client's revision and up to 1,000 operations, applied all or none."},"DraftResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"draft":{"additionalProperties":true,"type":"object","title":"Draft"}},"additionalProperties":false,"type":"object","required":["message","draft"],"title":"DraftResponse"},"DraftRowsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"rows":{"additionalProperties":true,"type":"object","title":"Rows","description":"{revision, total, rows[{row_id, position, revision, data, ...}]}"}},"additionalProperties":false,"type":"object","required":["message","rows"],"title":"DraftRowsResponse"},"DuplicateOp":{"properties":{"op":{"type":"string","const":"duplicate","title":"Op"},"row_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":10000,"minItems":1,"title":"Row Ids"}},"additionalProperties":false,"type":"object","required":["op","row_ids"],"title":"DuplicateOp","description":"Copy rows; each copy lands right after its source."},"EditClusterRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name","description":"Name of the cluster, must be non-empty and at most 100 characters."},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon","description":"URL or path of the cluster icon."},"ingress_url":{"anyOf":[{"type":"string","minLength":1,"format":"uri"},{"type":"null"}],"title":"Ingress Url","description":"ingress_url."}},"type":"object","title":"EditClusterRequest"},"EditProjectRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"}},"type":"object","title":"EditProjectRequest"},"EditPromptRequest":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the prompt."},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags","description":"Tags associated with the prompt."},"default_version_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Default Version Id","description":"Default version ID for the prompt."},"default_version":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Default Version","description":"Default version by number (spec 033 AT4.4, for pipelines); ignored when default_version_id is set."},"override_publish_gate":{"type":"boolean","title":"Override Publish Gate","description":"Make the version the default even when the agent's publish gate (spec 027 AE3.6) blocks it.","default":false}},"type":"object","title":"EditPromptRequest","description":"Edit prompt request schema."},"EditPromptVersionRequest":{"properties":{"endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Endpoint Id","description":"Endpoint ID for the prompt version"},"set_as_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Set As Default","description":"Set this version as the default version"},"override_publish_gate":{"type":"boolean","title":"Override Publish Gate","description":"Make the version the default even when the agent's publish gate (spec 027 AE3.6) blocks it.","default":false}},"type":"object","title":"EditPromptVersionRequest","description":"Edit prompt version request schema."},"EditorDatasetResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"dataset":{"additionalProperties":true,"type":"object","title":"Dataset"}},"additionalProperties":false,"type":"object","required":["message","dataset"],"title":"EditorDatasetResponse"},"EditorJobResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"job":{"additionalProperties":true,"type":"object","title":"Job"}},"additionalProperties":false,"type":"object","required":["message","job"],"title":"EditorJobResponse"},"EndpointDeleteResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"workflow_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workflow Id"}},"additionalProperties":false,"type":"object","required":["message"],"title":"EndpointDeleteResponse","description":"Response schema for endpoint delete operation.\n\nIncludes the workflow_id for tracking the async delete workflow."},"EndpointPaginatedResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"endpoints":{"items":{"$ref":"#/components/schemas/budapp__endpoint_ops__schemas__EndpointListResponse"},"type":"array","title":"Endpoints","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"EndpointPaginatedResponse","description":"Endpoint paginated response schema."},"EndpointProjectResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"EndpointProjectResponse","description":"The project an endpoint is deployed in, as a cross-project list needs it to label and link the row."},"EndpointRef-Input":{"properties":{"endpoint_id":{"type":"string","format":"uuid4","title":"Endpoint Id"}},"additionalProperties":false,"type":"object","required":["endpoint_id"],"title":"EndpointRef"},"EndpointRef-Output":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"project_name":{"type":"string","title":"Project Name"}},"type":"object","required":["id","name","project_id","project_name"],"title":"EndpointRef","description":"A budapp endpoint (deployment), for display and linking."},"EndpointResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/EndpointStatusEnum"},"deployment_config":{"additionalProperties":true,"type":"object","title":"Deployment Config"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","name","status","deployment_config","created_at","modified_at"],"title":"EndpointResponse","description":"Endpoint response schema."},"EndpointRule":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"enabled":{"type":"boolean","title":"Enabled"},"severity":{"type":"string","enum":["info","warning","critical"],"title":"Severity"},"scope":{"type":"string","enum":["deployment","cluster"],"title":"Scope"},"group_by":{"items":{"type":"string"},"type":"array","title":"Group By"},"conditions":{"items":{"$ref":"#/components/schemas/AlertCondition"},"type":"array","title":"Conditions"},"window_seconds":{"type":"integer","title":"Window Seconds"},"for_seconds":{"type":"integer","title":"For Seconds","default":0},"repeat_interval_seconds":{"type":"integer","title":"Repeat Interval Seconds","default":0},"cluster_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Cluster Ids","description":"budapp cluster ids; ids that don't resolve in budapp are dropped"},"summary_template":{"type":"string","title":"Summary Template","default":""},"builtin":{"type":"boolean","title":"Builtin","default":false},"builtin_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Builtin Key"},"modified":{"type":"boolean","title":"Modified","default":false},"clusters":{"items":{"$ref":"#/components/schemas/ClusterRef"},"type":"array","title":"Clusters","description":"The resolved cluster_ids, for display"},"missing_clusters":{"type":"integer","title":"Missing Clusters","description":"How many of the rule's clusters no longer exist in budapp. When every one is gone, cluster_ids is [] (all clusters), so saving the rule unchanged would widen it.","default":0},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"applies_to":{"type":"string","enum":["this_deployment","all_deployments"],"title":"Applies To"}},"additionalProperties":true,"type":"object","required":["id","name","enabled","severity","scope","conditions","window_seconds","applies_to"],"title":"EndpointRule","description":"C5 ``EndpointRule``: a ``Rule`` as seen from one deployment's Alerts tab.\n\n``applies_to`` is ``this_deployment`` for a custom rule created for this deployment\n(editable there) and ``all_deployments`` for any other deployment-scope rule that\nalso watches it (read-only there; managed from the cluster's Alerts tab)."},"EndpointRuleInput":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"enabled":{"type":"boolean","title":"Enabled","default":true},"severity":{"type":"string","enum":["info","warning","critical"],"title":"Severity"},"group_by":{"items":{"type":"string"},"type":"array","title":"Group By"},"conditions":{"items":{"$ref":"#/components/schemas/AlertConditionInput"},"type":"array","title":"Conditions"},"window_seconds":{"type":"integer","title":"Window Seconds"},"for_seconds":{"type":"integer","title":"For Seconds","default":0},"repeat_interval_seconds":{"type":"integer","title":"Repeat Interval Seconds","default":0},"summary_template":{"type":"string","title":"Summary Template","default":""}},"type":"object","required":["name","severity","conditions","window_seconds"],"title":"EndpointRuleInput","description":"Body of the deployment-scoped create, update and preview (C5 ``EndpointRuleInput``).\n\nC4's ``RuleInput`` without ``scope`` and ``cluster_ids``: budapp sets those from the\nendpoint (scope ``deployment``, the endpoint's cluster) and forces every condition's\n``namespace`` label filter to the endpoint's namespace. A ``scope`` or ``cluster_ids``\nsent anyway is ignored, like any other unknown key, so a client may send back an\n``EndpointRule`` it read."},"EndpointRuleListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"items":{"items":{"$ref":"#/components/schemas/EndpointRule"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"additionalProperties":false,"type":"object","required":["message","items","total"],"title":"EndpointRuleListResponse","description":"``GET /endpoints/{id}/alerts/rules`` (C5)."},"EndpointRuleResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"rule":{"$ref":"#/components/schemas/EndpointRule"}},"additionalProperties":false,"type":"object","required":["message","rule"],"title":"EndpointRuleResponse","description":"A single deployment-scoped rule: create, update (C5)."},"EndpointStatusEnum":{"type":"string","enum":["running","failure","deploying","unhealthy","deleting","deleted","pending"],"title":"EndpointStatusEnum","description":"Status for endpoint.\n\nAttributes:\n    RUNNING: Represents the running endpoint status.\n    FAILURE: Represents the failure endpoint status.\n    DEPLOYING: Represents the deploying endpoint status.\n    UNHEALTHY: Represents the unhealthy endpoint status.\n    DELETING: Represents the deleting endpoint status.\n    DELETED: Represents the deleted endpoint status.\n    PENDING: Represents the pending endpoint status."},"EscalationDetailResponse":{"properties":{"object":{"type":"string","title":"Object","default":"governance.escalation"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"escalation":{"$ref":"#/components/schemas/EscalationListItem"}},"additionalProperties":false,"type":"object","required":["message","escalation"],"title":"EscalationDetailResponse","description":"A single escalation (FR-DATA-200 detail)."},"EscalationListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"execution_id":{"type":"string","title":"Execution Id"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"prompt_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Id"},"prompt_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Version"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"policy_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Policy Id"},"policy_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Policy Version"},"policy_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Name"},"rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Name"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"hook":{"type":"string","title":"Hook"},"kind":{"type":"string","title":"Kind","default":"escalate"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"guidance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guidance"},"min_approvals":{"type":"integer","title":"Min Approvals","default":1},"approvals_count":{"type":"integer","title":"Approvals Count","default":0},"approvals_received":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Approvals Received"},"current_tier":{"type":"integer","title":"Current Tier","default":0},"status":{"type":"string","title":"Status","default":"pending"},"resolution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution"},"sticky_allowed":{"type":"boolean","title":"Sticky Allowed","default":true},"escalation_target":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Escalation Target"},"args_preview":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Args Preview"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"notified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Notified At"},"resolved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved By"},"resolved_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved By Name"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"can_resolve":{"type":"boolean","title":"Can Resolve","default":false},"allowed_resolutions":{"items":{"type":"string"},"type":"array","title":"Allowed Resolutions"},"self_approval":{"type":"boolean","title":"Self Approval","default":false},"principal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Principal"},"principal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Principal Name"},"user_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Type"},"my_resolution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"My Resolution"}},"type":"object","required":["id","execution_id","hook"],"title":"EscalationListItem","description":"One inbox row (FR-ESC-200 item shape) — escalation projection + derived inbox fields."},"EscalationListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"governance.escalation.list"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"escalations":{"items":{"$ref":"#/components/schemas/EscalationListItem"},"type":"array","title":"Escalations"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"EscalationListResponse","description":"Paginated inbox listing (FR-ESC-200 / FR-DATA-200)."},"EscalationSpec":{"properties":{"tiers":{"items":{"$ref":"#/components/schemas/EscalationTier"},"type":"array","minItems":1,"title":"Tiers"}},"type":"object","required":["tiers"],"title":"EscalationSpec","description":"Tiered escalation. ``tiers[*].after_seconds`` must be STRICTLY increasing."},"EscalationTargetSchema":{"properties":{"type":{"type":"string","title":"Type"},"ref":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Ref"},"refs":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Refs"},"include_invoker":{"type":"boolean","title":"Include Invoker","default":false},"ttl_secs":{"anyOf":[{"type":"integer","maximum":86400.0,"minimum":10.0},{"type":"null"}],"title":"Ttl Secs","description":"Binding escalation TTL"}},"additionalProperties":false,"type":"object","required":["type"],"title":"EscalationTargetSchema","description":"Who resolves an escalation raised from this agent (§5.5, FR-BIND-160).\n\nShape only: ``{\"type\": self|user|users|group, \"ref\": <uuid>|null, \"refs\": [<uuid>…]|null,\n\"include_invoker\": bool, \"ttl_secs\": int|absent}``.\n``users`` is a multi-select of project participants (the eligible reviewer set; any\n``min_approvals`` of them resolve the escalation). The referent-existence and per-type shape\nrules are enforced in the service layer so they can surface the named\n``ESCALATION_TARGET_MALFORMED`` / ``ESCALATION_TARGET_NOT_FOUND`` codes."},"EscalationTier":{"properties":{"after_seconds":{"type":"integer","minimum":0.0,"title":"After Seconds"},"notify":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Notify"},"action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"}},"type":"object","required":["after_seconds"],"title":"EscalationTier","description":"A single escalation tier fired ``after_seconds`` of no resolution."},"EvalOptionsIn":{"properties":{"acknowledge_side_effects":{"type":"boolean","title":"Acknowledge Side Effects","description":"Required true when the agent has tools that may have side effects (every call is real).","default":false},"store_content":{"type":"boolean","title":"Store Content","description":"False drops every text field of a sample after scoring; such a run cannot be re-scored.","default":true},"max_cost":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Max Cost","description":"Stop starting samples at this estimated cost."},"breaker_failures":{"anyOf":[{"type":"integer","maximum":50.0,"minimum":1.0},{"type":"null"}],"title":"Breaker Failures","description":"Consecutive infrastructure failures that stop the run."},"agent_concurrency":{"type":"integer","maximum":16.0,"minimum":1.0,"title":"Agent Concurrency","description":"Agent calls in flight per run.","default":4},"max_agent_calls":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":1.0},{"type":"null"}],"title":"Max Agent Calls","description":"Cap on agent calls."},"repeats":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Repeats","description":"Times each testcase runs (pass^k needs > 1).","default":1},"max_turns":{"anyOf":[{"type":"integer","maximum":50.0,"minimum":1.0},{"type":"null"}],"title":"Max Turns","description":"Default turn cap for simulated conversations."},"max_benchmark_items":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":1.0},{"type":"null"}],"title":"Max Benchmark Items","description":"Items of each public benchmark sent through the agent (every item is a real agent call); null runs the whole benchmark. Ignored for a model target.","default":200},"simulator_endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Simulator Endpoint Id","description":"Simulated-user model; sent to the engine for model and agent targets (spec 028 D-15)."},"runtime_options":{"anyOf":[{"$ref":"#/components/schemas/RuntimeOptionsIn"},{"type":"null"}],"description":"Scoring runtime options for this run (verbose_mode, ignore_errors, skip_on_missing_params, use_cache); sent only to an evaluation service that advertises them."},"callback":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Callback","description":"Completion webhook {url}: https and a public host (S-11, checked at trigger and send)."},"decision":{"anyOf":[{"$ref":"#/components/schemas/DecisionOptionsIn"},{"type":"null"}],"description":"Spec 034: this run's default eval mode (sent only to a budeval with decision judges)."},"gate":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Gate","description":"Bounds on the run aggregates {metric: {min?, max?}}; judge_agreement also takes min_reviewed; an instance may set min_confidence and max_low_confidence_share (spec 034 DJ3). Evaluated on a terminal status into {pass, reasons[], evaluated_at}."}},"additionalProperties":false,"type":"object","title":"EvalOptionsIn","description":"Run options of an evaluation (spec 027 INTERFACES §4), sent at wizard step 5.\n\nOnly the engine keys whose value differs from the default reach the evaluation service\n(``agent_eval.wire_eval_options``); ``acknowledge_side_effects``, ``simulator_endpoint_id``,\n``callback`` and ``gate`` stay in budapp (callback and gate act in AE2)."},"EvalTag":{"properties":{"name":{"type":"string","maxLength":20,"minLength":1,"title":"Name","description":"Tag name (alphanumeric, hyphens, underscores)"},"description":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Description","description":"Tag description"},"id":{"type":"string","format":"uuid4","title":"Id","description":"The UUID of the tag."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Timestamp when the tag was created"},"modified_at":{"type":"string","format":"date-time","title":"Modified At","description":"Last modification timestamp"}},"type":"object","required":["name","id","created_at","modified_at"],"title":"EvalTag","description":"Complete EvalTag schema with ID and timestamps."},"EvalTagCreate":{"properties":{"name":{"type":"string","maxLength":20,"minLength":1,"title":"Name","description":"Tag name"},"description":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Description","description":"Tag description"}},"type":"object","required":["name"],"title":"EvalTagCreate","description":"Schema for creating a new EvalTag."},"EvalTagListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"tags":{"items":{"$ref":"#/components/schemas/EvalTag"},"type":"array","title":"Tags","description":"List of tags"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","tags","total_pages"],"title":"EvalTagListResponse","description":"Response schema for listing tags with pagination."},"EvalTagSearchResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"tags":{"items":{"$ref":"#/components/schemas/EvalTag"},"type":"array","title":"Tags","description":"List of matching tags"},"total":{"type":"integer","title":"Total","description":"Total number of matches"}},"additionalProperties":false,"type":"object","required":["message","tags","total"],"title":"EvalTagSearchResponse","description":"Response schema for tag search."},"EvaluationConfig":{"properties":{"depiction":{"type":"string","title":"Depiction","default":"Does the content CONTAIN policy violations?"},"request":{"type":"string","title":"Request","default":"Is the user ASKING to generate violating content?"},"guidance":{"type":"string","title":"Guidance","default":"Return the HIGHEST severity that applies. Include both aspects in your rationale."}},"type":"object","title":"EvaluationConfig","description":"Evaluation configuration for policy."},"EvaluationDetailResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"evaluation":{"additionalProperties":true,"type":"object","title":"Evaluation","description":"The evaluation (spec 027 INTERFACES §4)."}},"additionalProperties":false,"type":"object","required":["message","evaluation"],"title":"EvaluationDetailResponse","description":"One evaluation: status, target, manifest, progress, cost totals and runs."},"EvaluationGateResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"gate":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Gate"}},"additionalProperties":false,"type":"object","required":["message"],"title":"EvaluationGateResponse","description":"``GET /experiments/evaluations/{id}/gate``: ``{pass, reasons[], evaluated_at}`` or ``null``."},"EvaluationListItem":{"properties":{"evaluation_id":{"type":"string","format":"uuid4","title":"Evaluation Id","description":"UUID of the evaluation"},"evaluation_name":{"type":"string","title":"Evaluation Name","description":"Name of the evaluation"},"model_name":{"type":"string","title":"Model Name","description":"Name of the model used"},"deployment_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deployment Name","description":"Deployment/endpoint name"},"started_date":{"type":"string","format":"date-time","title":"Started Date","description":"When evaluation started"},"duration_minutes":{"type":"integer","title":"Duration Minutes","description":"Duration in minutes"},"status":{"type":"string","title":"Status","description":"Status (pending/running/completed/failed)"},"runs":{"items":{"$ref":"#/components/schemas/RunDatasetScore"},"type":"array","title":"Runs","description":"Runs with dataset scores"},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Endpoint Id","description":"UUID of the endpoint the evaluation ran against"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At","description":"When the evaluation reached a terminal state"},"model_icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Icon","description":"Icon of the evaluated model (asset key, URL or emoji)"},"provider_icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Icon","description":"Icon of the model's provider, the fallback icon"},"provider_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Type","description":"How the model is served, e.g. cloud_model"},"cluster_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cluster Name","description":"Cluster the endpoint runs on, when it has one"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name","description":"Who started the evaluation (name, else email)"},"target_type":{"type":"string","title":"Target Type","description":"model or agent","default":"model"},"prompt_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Prompt Id","description":"The agent evaluated (agent targets)"},"prompt_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Version","description":"The agent version evaluated (agent targets)"},"prompt_version_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Prompt Version Id","description":"The agent version id (agent targets)"},"prompt_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Name","description":"The agent's name (agent targets)"},"attachment_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Attachment Id","description":"Attached evaluation (agent Evaluations tab)"},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name","description":"That endpoint's name."}},"type":"object","required":["evaluation_id","evaluation_name","model_name","started_date","duration_minutes","status"],"title":"EvaluationListItem","description":"A single evaluation with its runs."},"EvaluationPlanRequest":{"properties":{"judge_endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Judge Endpoint Id"},"eval_options":{"anyOf":[{"$ref":"#/components/schemas/EvalOptionsIn"},{"type":"null"}]}},"type":"object","title":"EvaluationPlanRequest","description":"Optional overrides of the stored step 5 for the plan (the wizard summary before the trigger)."},"EvaluationPlanResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"preflight":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Preflight","description":"Agent preflight report; null for a model target."},"estimate":{"additionalProperties":true,"type":"object","title":"Estimate"},"warnings":{"items":{},"type":"array","title":"Warnings"},"rate_limit":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rate Limit","description":"{requests_per_minute, tokens_per_minute, concurrency} of the deployment called, or null."},"call_timeout_s":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Call Timeout S"},"judge_timeout_s":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Judge Timeout S"},"grace_period_s":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grace Period S"}},"additionalProperties":false,"type":"object","required":["message"],"title":"EvaluationPlanResponse","description":"Preflight report, cost estimate range, warnings and the rate limit the calls draw on."},"EvaluationScore":{"properties":{"status":{"type":"string","title":"Status","description":"Evaluation job status (pending/running/completed/failed)"},"overall_accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Overall Accuracy","description":"Overall accuracy percentage (0-100)"},"datasets":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Datasets","description":"Individual dataset scores"}},"type":"object","required":["status"],"title":"EvaluationScore","description":"Evaluation score information from BudEval."},"EvaluationWorkflowStepRequest":{"properties":{"workflow_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Workflow Id","description":"Workflow ID (required for steps 2-5)"},"step_number":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Step Number","description":"Current step number (1-5)"},"workflow_total_steps":{"type":"integer","title":"Workflow Total Steps","description":"Total steps in workflow","default":5},"trigger_workflow":{"type":"boolean","title":"Trigger Workflow","description":"Whether to trigger workflow completion","default":false},"stage_data":{"additionalProperties":true,"type":"object","title":"Stage Data","description":"Step-specific data"},"judge_endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Judge Endpoint Id","description":"Project-scoped judge endpoint id; required when any dataset has eval_method='judge'."},"red_team_options":{"anyOf":[{"$ref":"#/components/schemas/RedTeamRunOptionsIn"},{"type":"null"}],"description":"Run-time knobs for a red-team eval. Only meaningful when the selected eval has source_kind='red_team'; ignored otherwise."},"eval_options":{"anyOf":[{"$ref":"#/components/schemas/EvalOptionsIn"},{"type":"null"}],"description":"Step 5: run options (agent concurrency, caps, breaker, repeats, store_content, the side-effect acknowledgement). Omitted means every default."},"roles_override":{"anyOf":[{"$ref":"#/components/schemas/RolesOverrideIn"},{"type":"null"}],"description":"Step 5: a judge and / or simulator for this run only, over the evaluation's (spec 028 D-16). Recorded on the run and flagged as an override."}},"type":"object","required":["step_number","stage_data"],"title":"EvaluationWorkflowStepRequest","description":"Base request for evaluation workflow steps."},"EventCatalogResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"descriptor_ref":{"type":"string","title":"Descriptor Ref","description":"The provider descriptor ref (e.g. 'slack')."},"event_types":{"items":{"$ref":"#/components/schemas/EventTypeInfo"},"type":"array","title":"Event Types","description":"Selectable event types for the descriptor."}},"additionalProperties":false,"type":"object","required":["message","descriptor_ref"],"title":"EventCatalogResponse","description":"The selectable event types for a provider descriptor (sourced from the gateway).\n\nSurfaced to budadmin so the trigger UI never hardcodes the event list — it always\nreflects the gateway's authoritative descriptor."},"EventDescriptorCatalogResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"descriptors":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Descriptors"},"providers":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Providers"}},"additionalProperties":false,"type":"object","required":["message","descriptors","providers"],"title":"EventDescriptorCatalogResponse","description":"Response for GET /events/descriptors (FR-BE-4 passthrough).\n\nBoth lists are relayed VERBATIM from budevent's ``GET /events/descriptors``\n(kept as untyped dicts so descriptor extensions like ``type_label``/``actions``\npass through unmodified): ``descriptors`` rows are\n``{provider, provider_type, canonical_type, description, type_label?, actions?}``;\n``providers`` rows are ``{provider, credentials: [{key, label, secret, required}]}``\n— a field-SPEC only, never credential values."},"EventSessionRequest":{"properties":{"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id","description":"The agent identifier — the prompt's globally-unique id (UUID), or (legacy) its name."},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version","description":"Optional agent version string (default '1').","default":"1"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id","description":"Optional project UUID (string) scoping the lookup to eliminate cross-project name collisions."},"endpoint_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Id","description":"UUID (string) of a running deployment; requires project_id, which scopes the token."}},"type":"object","title":"EventSessionRequest","description":"Request body for minting an event-session token for an agent or a running deployment."},"EventSessionResponse":{"properties":{"token":{"type":"string","title":"Token","description":"Raw opaque token. Sent as 'Authorization: Bearer <token>'."},"project_id":{"type":"string","title":"Project Id","description":"UUID (string) of the project the token is scoped to."},"expires_at":{"type":"integer","title":"Expires At","description":"Unix epoch (seconds) at which the token expires."},"ttl":{"type":"integer","title":"Ttl","description":"Token lifetime in seconds."}},"type":"object","required":["token","project_id","expires_at","ttl"],"title":"EventSessionResponse","description":"Response carrying the raw opaque token and its lifetime.\n\nObservability ids (prompt / version / endpoint / model) are NOT returned here — they\nare resolved by the dedicated ``POST /internal/agent-attribution`` route instead, so\nthis route's single responsibility is minting the ephemeral token."},"EventTypeInfo":{"properties":{"value":{"type":"string","title":"Value","description":"Reverse-DNS namespaced event type (use this in a subscription)."},"event":{"type":"string","title":"Event","description":"Raw provider event name (un-namespaced)."},"label":{"type":"string","title":"Label","description":"Human-friendly label (may be empty).","default":""},"group":{"type":"string","title":"Group","description":"Display group = the event type noun (type_label).","default":""},"description":{"type":"string","title":"Description","description":"Human-friendly description (may be empty).","default":""},"carries_text":{"type":"boolean","title":"Carries Text","description":"Whether the event payload carries user text.","default":false},"required_scopes":{"items":{"type":"string"},"type":"array","title":"Required Scopes","description":"Provider scopes required to receive this event (sorted)."}},"type":"object","required":["value","event"],"title":"EventTypeInfo","description":"A single selectable event type for a provider, sourced from the MCP gateway.\n\nThe gateway is the single source of truth for the event catalog (built-in descriptor\nor YAML overlay). ``value`` is the reverse-DNS namespaced type a subscription should\nuse (e.g. ``com.slack.message``); ``event`` is the RAW provider event name (e.g.\n``message``) shown to the user."},"EvolutionIn":{"properties":{"num_evolutions":{"type":"integer","maximum":3.0,"minimum":0.0,"title":"Num Evolutions","description":"Harder: evolution rounds (1-3); 0 = none.","default":1},"shares":{"additionalProperties":{"type":"number"},"type":"object","title":"Shares"}},"additionalProperties":false,"type":"object","title":"EvolutionIn"},"ExpDataset":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id","description":"The UUID of the dataset."},"name":{"type":"string","title":"Name","description":"The name of the dataset."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"The description of the dataset."},"meta_links":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta Links","description":"Links to GitHub, paper, website, etc."},"config_validation_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config Validation Schema","description":"Configuration validation schema."},"estimated_input_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Input Tokens","description":"Estimated input tokens."},"estimated_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Output Tokens","description":"Estimated output tokens."},"language":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Language","description":"Languages supported by the dataset."},"domains":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Domains","description":"Domains covered by the dataset."},"concepts":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Concepts","description":"Concepts covered by the dataset."},"humans_vs_llm_qualifications":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Humans Vs Llm Qualifications","description":"Human vs LLM qualifications."},"task_type":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Task Type","description":"Types of tasks in the dataset."},"modalities":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Modalities","description":"List of modalities. Allowed values: 'text' (Textual data), 'image' (Image data), 'video' (Video data)"},"sample_questions_answers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sample Questions Answers","description":"Sample questions and answers in JSON format."},"advantages_disadvantages":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Advantages Disadvantages","description":"Advantages and disadvantages with structure {'advantages': ['str1'], 'disadvantages': ['str2']}."},"eval_types":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Eval Types","description":"Evaluation type configurations like {'gen': 'gsm8k_gen', 'agent': 'gsm8k_agent'}."},"why_run_this_eval":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Why Run This Eval","description":"List of reasons why running this evaluation is valuable and what insights it provides."},"what_to_expect":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"What To Expect","description":"List of expectations when evaluating this dataset, including patterns, trends, and characteristics."},"additional_info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Additional Info","description":"Additional metadata including top_5_task_types, top_5_domains, top_5_skills, top_5_concepts, top_5_qualifications, top_5_languages, age_distribution, and evaluation_description."},"metrics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Metrics","description":"List of metric names (e.g., ['accuracy'])."},"evaluator":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evaluator","description":"Evaluator class name (e.g., 'GPQAEvaluator')."},"traits":{"items":{"$ref":"#/components/schemas/Trait"},"type":"array","title":"Traits","description":"Traits associated with this dataset.","default":[]},"source_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Kind","description":"Discriminator: 'public' or 'custom'.","default":"public"},"custom_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Config","description":"Per-metric configuration for custom datasets."},"project_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Project Id","description":"RBAC: project scope; NULL for public."},"eval_method":{"anyOf":[{"type":"string","pattern":"^(gen|ppl|chat|completion|judge)$"},{"type":"null"}],"title":"Eval Method","description":"Evaluation method discriminator: 'gen' | 'ppl' | 'chat' | 'completion' | 'judge'. When 'judge', the trigger requires a project-scoped judge_endpoint_id."},"sample_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Count","description":"Number of test cases: the largest dataset-version row_count, else sample_questions_answers.total_count; null when unknown."},"top_score":{"anyOf":[{"$ref":"#/components/schemas/DatasetTopScore"},{"type":"null"}],"description":"The requesting user's best completed run of this dataset; null when none is scored."}},"type":"object","required":["id","name"],"title":"ExpDataset","description":"Represents an evaluation dataset with traits."},"Experiment":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id","description":"The UUID of the experiment."},"name":{"type":"string","title":"Name","description":"The name of the experiment."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"The description of the experiment."},"project_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Project Id","description":"The project ID for the experiment."},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags","description":"DEPRECATED: List of tag names. Use tag_objects instead."},"tag_ids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Tag Ids","description":"List of EvalTag IDs."},"tag_objects":{"anyOf":[{"items":{"$ref":"#/components/schemas/EvalTag"},"type":"array"},{"type":"null"}],"title":"Tag Objects","description":"Complete tag objects with details."},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Computed status based on runs (running/completed/no_runs)."},"models":{"anyOf":[{"items":{"$ref":"#/components/schemas/ModelSummary"},"type":"array"},{"type":"null"}],"title":"Models","description":"Models used in the experiment."},"agents":{"anyOf":[{"items":{"$ref":"#/components/schemas/AgentSummary"},"type":"array"},{"type":"null"}],"title":"Agents","description":"Agents evaluated in the experiment (their deployments are not models)."},"traits":{"anyOf":[{"items":{"$ref":"#/components/schemas/TraitSummary"},"type":"array"},{"type":"null"}],"title":"Traits","description":"Traits associated with the experiment."},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"Timestamp when the experiment was created"},"stats":{"anyOf":[{"$ref":"#/components/schemas/ExperimentStats"},{"type":"null"}],"description":"Experiment statistics"},"objective":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Objective","description":"Experiment objective"},"current_metrics":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Current Metrics","description":"Current evaluation metrics"},"progress_overview":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProgressOverview"},"type":"array"},{"type":"null"}],"title":"Progress Overview","description":"Progress overview for runs"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"Last update timestamp"},"created_by":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Created By","description":"UUID of the user who created the experiment."},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name","description":"Creator's name, falling back to their email."},"run_counts":{"anyOf":[{"$ref":"#/components/schemas/ExperimentRunCounts"},{"type":"null"}],"description":"Evaluation counts bucketed by evaluation status."},"last_run_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Run At","description":"created_at of the most recent non-deleted run."},"best_score":{"anyOf":[{"$ref":"#/components/schemas/ExperimentBestScore"},{"type":"null"}],"description":"Best primary score among completed, non-red-team runs; null when none is scored."}},"type":"object","required":["id","name"],"title":"Experiment","description":"Represents an experiment record."},"ExperimentBestScore":{"properties":{"score":{"type":"number","title":"Score","description":"Raw primary score of the run: a percentage for public datasets, a [0, 1] fraction for custom ones (compare with source_kind)."},"dataset_name":{"type":"string","title":"Dataset Name","description":"Name of the dataset the run evaluated."},"source_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Kind","description":"The dataset's source_kind ('public', 'custom', ...)."},"deployment_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deployment Name","description":"Endpoint/deployment name of the run."},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name","description":"Model name behind the deployment."},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name","description":"The agent the best run evaluated (agent runs only)."},"agent_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Version","description":"The agent version the best run pinned."},"run_id":{"type":"string","format":"uuid4","title":"Run Id","description":"UUID of the best run."},"evaluation_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Evaluation Id","description":"UUID of the evaluation the run belongs to."}},"type":"object","required":["score","dataset_name","run_id"],"title":"ExperimentBestScore","description":"The best primary score among an experiment's completed, non-red-team runs."},"ExperimentEvaluationsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"experiment":{"$ref":"#/components/schemas/Experiment","description":"Experiment information"},"evaluations":{"items":{"$ref":"#/components/schemas/RunWithEvaluations"},"type":"array","title":"Evaluations","description":"List of runs with evaluation details"}},"additionalProperties":false,"type":"object","required":["message","experiment","evaluations"],"title":"ExperimentEvaluationsResponse","description":"Response for getting experiment evaluations with scores."},"ExperimentModelListItem":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id","description":"The UUID of the model."},"name":{"type":"string","title":"Name","description":"The name of the model."},"deployment_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deployment Name","description":"The deployment name/namespace if deployed."},"experiment_count":{"type":"integer","title":"Experiment Count","description":"Number of experiments using this model."}},"type":"object","required":["id","name","experiment_count"],"title":"ExperimentModelListItem","description":"Model item for filtering experiments."},"ExperimentRunCounts":{"properties":{"total":{"type":"integer","title":"Total","description":"Evaluations with at least one non-deleted run.","default":0},"completed":{"type":"integer","title":"Completed","description":"Evaluations whose status is 'completed'.","default":0},"running":{"type":"integer","title":"Running","description":"Evaluations whose status is 'running'.","default":0},"pending":{"type":"integer","title":"Pending","description":"Evaluations whose status is 'pending'.","default":0},"failed":{"type":"integer","title":"Failed","description":"Evaluations whose status is 'failed'.","default":0},"partial":{"type":"integer","title":"Partial","description":"Evaluations whose status is 'partial'.","default":0},"cancelled":{"type":"integer","title":"Cancelled","description":"Evaluations whose status is 'cancelled'.","default":0}},"type":"object","title":"ExperimentRunCounts","description":"Evaluation counts of an experiment, bucketed by ``evaluations.status``.\n\nCounts EVALUATIONS (one per \"Run evaluation\" submission), not per-dataset\nruns, and only evaluations that still have at least one non-deleted run.\nAn unrecognised status contributes to ``total`` only."},"ExperimentStats":{"properties":{"budget":{"$ref":"#/components/schemas/BudgetStats","description":"Budget statistics"},"tokens":{"$ref":"#/components/schemas/TokenStats","description":"Token statistics"},"runtime":{"$ref":"#/components/schemas/RuntimeStats","description":"Runtime statistics"},"processing_rate":{"$ref":"#/components/schemas/ProcessingRate","description":"Processing rate statistics"}},"type":"object","required":["budget","tokens","runtime","processing_rate"],"title":"ExperimentStats","description":"Combined statistics for an experiment."},"ExperimentSummary":{"properties":{"total_evaluations":{"type":"integer","title":"Total Evaluations","description":"Total number of evaluations in the experiment"},"total_duration_seconds":{"type":"integer","title":"Total Duration Seconds","description":"Total duration of all evaluations in seconds"},"completed_evaluations":{"type":"integer","title":"Completed Evaluations","description":"Number of completed evaluations"},"failed_evaluations":{"type":"integer","title":"Failed Evaluations","description":"Number of failed evaluations"},"pending_evaluations":{"type":"integer","title":"Pending Evaluations","description":"Number of pending evaluations"},"running_evaluations":{"type":"integer","title":"Running Evaluations","description":"Number of currently running evaluations"}},"type":"object","required":["total_evaluations","total_duration_seconds","completed_evaluations","failed_evaluations","pending_evaluations","running_evaluations"],"title":"ExperimentSummary","description":"Summary statistics for an experiment."},"ExperimentSummaryResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"summary":{"$ref":"#/components/schemas/ExperimentSummary","description":"Experiment summary data"}},"additionalProperties":false,"type":"object","required":["message","summary"],"title":"ExperimentSummaryResponse","description":"Response for experiment summary endpoint."},"ExperimentWorkflowStepRequest":{"properties":{"workflow_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Workflow Id","description":"Workflow ID for continuing existing workflow"},"step_number":{"type":"integer","title":"Step Number","description":"Current step number (1-5)"},"workflow_total_steps":{"type":"integer","title":"Workflow Total Steps","description":"Total steps in workflow","default":5},"trigger_workflow":{"type":"boolean","title":"Trigger Workflow","description":"Whether to trigger workflow completion","default":false},"stage_data":{"additionalProperties":true,"type":"object","title":"Stage Data","description":"Stage-specific data"}},"type":"object","required":["step_number","stage_data"],"title":"ExperimentWorkflowStepRequest","description":"Base request for experiment workflow steps."},"ExpiryEnum":{"type":"integer","enum":[0,30,60,90],"title":"ExpiryEnum","description":"Expiry enum."},"ExternalAgentAuthTypeEnum":{"type":"string","enum":["none","bearer","api_key"],"title":"ExternalAgentAuthTypeEnum","description":"Enumeration of authentication types for external A2A agents.\n\nAttributes:\n    NONE: No authentication required.\n    BEARER: Bearer token authentication.\n    API_KEY: API key authentication with user-defined header."},"FallbackConfig":{"properties":{"fallback_models":{"items":{"type":"string"},"type":"array","title":"Fallback Models","default":[]}},"type":"object","title":"FallbackConfig","description":"Fallback endpoint configuration for primary endpoint failures."},"FeatureAvailability":{"properties":{"feature":{"type":"string","title":"Feature"},"available":{"type":"boolean","title":"Available"},"switchable":{"type":"boolean","title":"Switchable","default":true},"reason_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Code"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["feature","available"],"title":"FeatureAvailability","description":"Whether ONE optimisation can run on this deployment, and why not (`WP-C1.3`).\n\nThe console draws a card per optimisation. `profile_availability` cannot answer for a\ncard — a deployment with no tokenizer can save Safe and still not run the live zone —\nso a page built on profiles alone either hides a working feature or offers a switch\nthat saves and does nothing.\n\n`switchable` is separate from `available`: Anthropic's cache markers are available on\nan Anthropic deployment and are still not a preference (they are provider-shaped and\nchange no model-visible content), so the card states them rather than offering them."},"FeedbackEnum":{"type":"string","enum":["upvote","downvote"],"title":"FeedbackEnum","description":"Enumeration of Feedback types in the system.\n\nAttributes:\n    UPVOTE: Represents an upvote entity.\n    DOWNVOTE: Represents an downvote entity."},"FeedbackItem":{"properties":{"feedback_id":{"type":"string","format":"uuid","title":"Feedback Id"},"feedback_type":{"type":"string","enum":["boolean","float","comment","demonstration"],"title":"Feedback Type"},"metric_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metric Name"},"value":{"anyOf":[{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Value"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["feedback_id","feedback_type","created_at"],"title":"FeedbackItem","description":"Schema for individual feedback item."},"FileInputConfig":{"properties":{"required":{"type":"boolean","title":"Required","description":"Whether a file/document input is required for this prompt","default":false}},"type":"object","title":"FileInputConfig","description":"File/document input configuration for prompts that accept file inputs."},"FileInputPart":{"properties":{"type":{"type":"string","const":"input_file","title":"Type","description":"Content type discriminator","default":"input_file"},"file_url":{"type":"string","title":"File Url","description":"URL of the document file (HTTPS URL or Jinja2 template)"}},"type":"object","required":["file_url"],"title":"FileInputPart","description":"File/document input part. Separate schema from ContentPart, mirroring\nhow OpenAI's ResponseInputFile is a peer to ResponseInputText/ResponseInputImage\nin the discriminated union.\n\nCurrently supports file_url only. Future: file_data (base64), file_id (Files API)."},"FileUploadResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"file":{"additionalProperties":true,"type":"object","title":"File"}},"additionalProperties":false,"type":"object","required":["message","file"],"title":"FileUploadResponse"},"FilterCondition":{"properties":{"field":{"type":"string","maxLength":200,"minLength":1,"title":"Field"},"op":{"$ref":"#/components/schemas/FilterOperator"},"value":{"title":"Value"}},"type":"object","required":["field","op"],"title":"FilterCondition","description":"A single filter condition for telemetry queries."},"FilterOperator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","in_","not_in","like","is_null","is_not_null"],"title":"FilterOperator","description":"Supported filter operators for telemetry queries."},"FiltrationIn":{"properties":{"synthetic_input_quality_threshold":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Synthetic Input Quality Threshold","default":0.5},"max_quality_retries":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Max Quality Retries","default":3}},"additionalProperties":false,"type":"object","title":"FiltrationIn"},"FinalizeBody":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","title":"FinalizeBody"},"FinalizeGenerationRequest":{"properties":{"candidate_keys":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Candidate Keys","description":"Candidate keys to register (legacy register-mode jobs pass tool ids here)"},"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name","description":"Final connection name. Overrides the name typed at submit — the user has now seen what was actually extracted."},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"scope":{"anyOf":[{"$ref":"#/components/schemas/ScopeRequest"},{"type":"null"}]}},"type":"object","required":["candidate_keys"],"title":"FinalizeGenerationRequest","description":"Confirm the selection: create the connection and register only these candidates.\n\n``candidate_keys`` are the ``c0000``-style keys off the preview result, not tool ids —\nunder preview mode no tool row exists yet. ``tool_ids`` is accepted as a deprecated\nalias for one release so a budadmin that has not shipped yet keeps working; both\nspellings land on the same field (R-A9)."},"FrameworkListOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FrameworkOut"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"}},"type":"object","required":["items","total"],"title":"FrameworkListOut","description":"Output: framework listing for ``GET /eval-ops/frameworks``."},"FrameworkOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name","description":"Stable framework identifier (snake_case)."},"display_name":{"type":"string","title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"vulnerability_names":{"items":{"type":"string"},"type":"array","title":"Vulnerability Names","description":"User-facing vulnerability identifiers composing the framework."},"attack_names":{"items":{"type":"string"},"type":"array","title":"Attack Names","description":"Attack-method ids the framework delivers its probes with; empty when it defines none."},"is_enabled":{"type":"boolean","title":"Is Enabled","default":true}},"type":"object","required":["id","name","display_name"],"title":"FrameworkOut","description":"Output: a single AI-safety framework catalog row.\n\nSurfaces the user-facing framework identifier + its constituent\nvulnerability and attack-method identifiers. The run flow's red-team plan\nuses this to seed both lists from one click."},"FreezeIn":{"properties":{"target":{"$ref":"#/components/schemas/FreezeTargetIn"},"max_turns":{"type":"integer","maximum":30.0,"minimum":1.0,"title":"Max Turns","default":8},"simulator":{"anyOf":[{"$ref":"#/components/schemas/EndpointRef-Input"},{"type":"null"}],"description":"Default: the evaluation's simulator role."}},"additionalProperties":false,"type":"object","required":["target"],"title":"FreezeIn","description":"Fixed conversations / transcripts: simulated once against a reference model or agent (FR-SIM-2)."},"FreezeTargetIn":{"properties":{"kind":{"type":"string","enum":["model","agent"],"title":"Kind"},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Endpoint Id"},"prompt_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Prompt Id"},"version":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Version"}},"additionalProperties":false,"type":"object","required":["kind"],"title":"FreezeTargetIn"},"FromSampleIn":{"properties":{"run_id":{"type":"string","title":"Run Id"},"sample_id":{"type":"string","maxLength":128,"minLength":1,"title":"Sample Id","description":"The sample's id or its row id."},"instance":{"type":"string","maxLength":128,"minLength":1,"title":"Instance"},"human":{"anyOf":[{"$ref":"#/components/schemas/HumanIn"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["run_id","sample_id","instance"],"title":"FromSampleIn","description":"A run sample's row and output, with the human verdict (else read from the caller's review)."},"GateCheckIn":{"properties":{"against":{"type":"string","enum":["minimum","baseline","previous"],"title":"Against","default":"minimum"},"min_pass_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Pass Rate"},"max_drop_pts":{"type":"number","title":"Max Drop Pts","default":2},"on_missing":{"type":"string","enum":["pass","fail"],"title":"On Missing","default":"pass"}},"additionalProperties":false,"type":"object","title":"GateCheckIn"},"GatewayAnalyticsBucket":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"Start of the time bucket"},"items":{"items":{"$ref":"#/components/schemas/GatewayAnalyticsItem"},"type":"array","title":"Items","description":"Analytics items in this time bucket"}},"type":"object","required":["timestamp","items"],"title":"GatewayAnalyticsBucket","description":"Time bucket containing analytics items."},"GatewayAnalyticsItem":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"Timestamp for this data point"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id","description":"Project ID"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name","description":"Project name"},"model_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Model Id","description":"Model ID"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name","description":"Model name"},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Endpoint Id","description":"Endpoint ID"},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name","description":"Endpoint name"},"total_requests":{"type":"integer","title":"Total Requests","description":"Total number of requests","default":0},"error_count":{"type":"integer","title":"Error Count","description":"Number of errors","default":0},"error_rate":{"type":"number","title":"Error Rate","description":"Error rate percentage","default":0.0},"avg_response_time":{"type":"number","title":"Avg Response Time","description":"Average response time in milliseconds","default":0.0},"p95_response_time":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"P95 Response Time","description":"95th percentile response time"},"p99_response_time":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"P99 Response Time","description":"99th percentile response time"},"total_tokens_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Tokens Used","description":"Total tokens consumed"},"total_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Cost","description":"Total cost incurred"},"additional_metrics":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Additional Metrics","description":"Additional custom metrics"}},"type":"object","required":["timestamp"],"title":"GatewayAnalyticsItem","description":"Gateway analytics item in the response."},"GatewayAnalyticsRequest":{"properties":{"project_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Project Ids","description":"List of project IDs to filter by. If not provided, uses user's accessible projects"},"model_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Model Ids","description":"List of model IDs to filter by"},"endpoint_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Endpoint Ids","description":"List of endpoint IDs to filter by"},"start_time":{"type":"string","format":"date-time","title":"Start Time","description":"Start time for the analytics query"},"end_time":{"type":"string","format":"date-time","title":"End Time","description":"End time for the analytics query"},"time_bucket":{"type":"string","title":"Time Bucket","description":"Time bucket for aggregation (e.g., 1m, 5m, 1h, 1d)","default":"1h"},"metrics":{"items":{"type":"string"},"type":"array","title":"Metrics","description":"List of metrics to return"},"group_by":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Group By","description":"Fields to group results by"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters","description":"Additional filters"}},"type":"object","required":["start_time","end_time"],"title":"GatewayAnalyticsRequest","description":"Request schema for gateway analytics query."},"GatewayAnalyticsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"items":{"items":{"$ref":"#/components/schemas/GatewayAnalyticsBucket"},"type":"array","title":"Items","description":"List of time buckets with analytics data"},"summary":{"additionalProperties":true,"type":"object","title":"Summary","description":"Summary statistics across all time buckets"}},"additionalProperties":false,"type":"object","required":["message","items"],"title":"GatewayAnalyticsResponse","description":"Response schema for gateway analytics."},"GatewayMetadata":{"properties":{"client_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Ip"},"proxy_chain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proxy Chain"},"protocol_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Protocol Version"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code"},"country_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Name"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"asn":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Asn"},"isp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Isp"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent"},"device_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Type"},"browser_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Browser Name"},"browser_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Browser Version"},"os_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Os Name"},"os_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Os Version"},"is_bot":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Bot"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"query_params":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query Params"},"request_headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Request Headers"},"body_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Body Size"},"api_key_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Id"},"auth_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Method"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"gateway_processing_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gateway Processing Ms"},"total_duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Duration Ms"},"routing_decision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Routing Decision"},"model_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Version"},"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code"},"response_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Response Size"},"response_headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Response Headers"},"error_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Type"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"is_blocked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Blocked"},"block_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Block Reason"},"block_rule_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Block Rule Id"},"tags":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Tags"}},"type":"object","title":"GatewayMetadata","description":"Schema for gateway metadata."},"GatewayResponse":{"properties":{"gateway_id":{"type":"string","title":"Gateway Id","description":"Gateway ID from MCP Foundry"},"name":{"type":"string","title":"Name","description":"Gateway name (format: {prompt_id}__v{version}__{connector_id})"},"url":{"type":"string","title":"Url"},"transport":{"type":"string","title":"Transport"},"visibility":{"type":"string","title":"Visibility"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["gateway_id","name","url","transport","visibility"],"title":"GatewayResponse","description":"Response from MCP Foundry gateway creation."},"GenerateEstimateResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"estimate":{"additionalProperties":true,"type":"object","title":"Estimate"}},"additionalProperties":false,"type":"object","required":["message","estimate"],"title":"GenerateEstimateResponse"},"GenerateFromUrlRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"Connection name shown to the user"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"url":{"type":"string","maxLength":2048,"title":"Url","description":"Spec or documentation URL"},"source_type":{"type":"string","enum":["openapi_url","apidoc_url"],"title":"Source Type","default":"openapi_url"},"api_base_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Api Base Url","description":"Override the API base URL when the spec omits or misreports `servers`"},"enable_crawling":{"type":"boolean","title":"Enable Crawling","description":"apidoc_url only; ignored otherwise","default":true},"auth":{"anyOf":[{"$ref":"#/components/schemas/GeneratedSourceAuth"},{"type":"null"}]},"scope":{"anyOf":[{"$ref":"#/components/schemas/ScopeRequest"},{"type":"null"}],"description":"Agent-visibility scope (defaults to global when omitted)"}},"type":"object","required":["name","url"],"title":"GenerateFromUrlRequest","description":"Submit a URL-based generation job (an OpenAPI spec URL or a documentation site)."},"GenerateIn":{"properties":{"kind":{"type":"string","enum":["docs","requirements","description","rows","conversations"],"title":"Kind"},"params":{"$ref":"#/components/schemas/GenerateParamsIn"}},"additionalProperties":false,"type":"object","required":["kind"],"title":"GenerateIn"},"GenerateJobResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"job":{"additionalProperties":true,"type":"object","title":"Job"},"estimate":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Estimate"}},"additionalProperties":false,"type":"object","required":["message","job"],"title":"GenerateJobResponse"},"GenerateParamsIn":{"properties":{"generator":{"anyOf":[{"$ref":"#/components/schemas/EndpointRef-Input"},{"type":"null"}],"description":"Default: the evaluation's generator role."},"embedder":{"anyOf":[{"$ref":"#/components/schemas/EndpointRef-Input"},{"type":"null"}],"description":"Embedding endpoint (documents)."},"document_ids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array","maxItems":20},{"type":"null"}],"title":"Document Ids"},"count":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Count","default":25},"chunking":{"$ref":"#/components/schemas/ChunkingIn"},"evolution":{"$ref":"#/components/schemas/EvolutionIn"},"filtration":{"$ref":"#/components/schemas/FiltrationIn"},"styling":{"anyOf":[{"$ref":"#/components/schemas/StylingIn"},{"type":"null"}]},"include_expected":{"type":"boolean","title":"Include Expected","default":true},"keep_context":{"type":"boolean","title":"Keep Context","default":true},"requirements":{"$ref":"#/components/schemas/RequirementsIn"},"description":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Description"},"seed_row_ids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array","maxItems":100},{"type":"null"}],"title":"Seed Row Ids"},"per_seed":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Per Seed","default":5},"harder":{"type":"boolean","title":"Harder","default":false},"source":{"anyOf":[{"type":"string","enum":["description","documents","rows"]},{"type":"null"}],"title":"Source","description":"Conversations: what they are about."},"personas":{"items":{"$ref":"#/components/schemas/PersonaIn"},"type":"array","maxItems":10,"title":"Personas"},"save_as":{"type":"string","enum":["scenarios","fixed","transcripts"],"title":"Save As","default":"scenarios"},"conversational_styling":{"anyOf":[{"$ref":"#/components/schemas/ConversationalStylingIn"},{"type":"null"}]},"freeze":{"anyOf":[{"$ref":"#/components/schemas/FreezeIn"},{"type":"null"}]},"acknowledge_side_effects":{"type":"boolean","title":"Acknowledge Side Effects","default":false},"concurrency":{"type":"integer","maximum":8.0,"minimum":1.0,"title":"Concurrency","default":4}},"additionalProperties":false,"type":"object","title":"GenerateParamsIn","description":"Every knob of every kind; :func:`check_generate_params` enforces what each kind needs."},"GeneratedSourceAuth":{"properties":{"auth_type":{"type":"string","enum":["basic","bearer","apikey"],"title":"Auth Type"},"username":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Username"},"password":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Password"},"token":{"anyOf":[{"type":"string","maxLength":8192},{"type":"null"}],"title":"Token"},"header_key":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Header Key"},"header_value":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Header Value"}},"type":"object","required":["auth_type"],"title":"GeneratedSourceAuth","description":"Credentials for the TARGET API, applied to every tool in the batch at submit time.\n\nForwarded verbatim to MCP Foundry, which encrypts them into the tool rows. budapp\npersists nothing from this model and never logs it.\n\nOnly ``basic``/``bearer``/``apikey`` are accepted: upstream's\n``_build_auth_override_from_params`` returns ``None`` *silently* for anything else\n(including ``oauth2``), which would produce tools that call the API unauthenticated."},"GeographicDataPoint":{"properties":{"country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Code","description":"Country ISO code"},"country_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Name","description":"Country name"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region","description":"Region/state name"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"City name"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude","description":"Latitude coordinate"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude","description":"Longitude coordinate"},"request_count":{"type":"integer","title":"Request Count","description":"Number of requests from this location"},"success_rate":{"type":"number","title":"Success Rate","description":"Success rate percentage"},"avg_latency_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Latency Ms","description":"Average latency in milliseconds"},"unique_users":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unique Users","description":"Number of unique users"},"percentage":{"type":"number","title":"Percentage","description":"Percentage of total requests"}},"type":"object","required":["request_count","success_rate","percentage"],"title":"GeographicDataPoint","description":"Geographic data point."},"GeographicDataResponse":{"properties":{"object":{"type":"string","title":"Object","description":"Response object type","default":"geographic_data"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"locations":{"items":{"$ref":"#/components/schemas/GeographicDataPoint"},"type":"array","title":"Locations","description":"Geographic data points"},"total_requests":{"type":"integer","title":"Total Requests","description":"Total number of requests"},"total_locations":{"type":"integer","title":"Total Locations","description":"Total number of unique locations"},"date_range":{"additionalProperties":{"type":"string","format":"date-time"},"type":"object","title":"Date Range","description":"Date range for the analysis"},"group_by":{"type":"string","title":"Group By","description":"Geographic grouping level used"}},"additionalProperties":false,"type":"object","required":["message","locations","total_requests","total_locations","date_range","group_by"],"title":"GeographicDataResponse","description":"Response schema for geographic distribution data."},"GeographicalStats":{"properties":{"country":{"type":"string","title":"Country","description":"Country name"},"country_code":{"type":"string","title":"Country Code","description":"Country ISO code"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region","description":"Region/state name"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"City name"},"request_count":{"type":"integer","title":"Request Count","description":"Number of requests from this location"},"error_count":{"type":"integer","title":"Error Count","description":"Number of errors from this location","default":0},"avg_response_time":{"type":"number","title":"Avg Response Time","description":"Average response time in milliseconds"}},"type":"object","required":["country","country_code","request_count","avg_response_time"],"title":"GeographicalStats","description":"Geographical statistics item."},"GeographicalStatsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"items":{"items":{"$ref":"#/components/schemas/GeographicalStats"},"type":"array","title":"Items","description":"List of geographical statistics"},"total":{"type":"integer","title":"Total","description":"Total number of unique locations"}},"additionalProperties":false,"type":"object","required":["message","items","total"],"title":"GeographicalStatsResponse","description":"Response schema for geographical statistics."},"GetDatasetResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"dataset":{"$ref":"#/components/schemas/ExpDataset","description":"The dataset with traits information."}},"additionalProperties":false,"type":"object","required":["message","dataset"],"title":"GetDatasetResponse","description":"Response schema for getting a dataset by ID."},"GetExperimentResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"experiment":{"$ref":"#/components/schemas/Experiment","description":"The requested experiment."}},"additionalProperties":false,"type":"object","required":["message","experiment"],"title":"GetExperimentResponse","description":"Response schema for getting an experiment by ID."},"GetPromptVersionResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"version":{"$ref":"#/components/schemas/PromptVersionResponse"},"config_data":{"$ref":"#/components/schemas/PromptConfigurationData"}},"additionalProperties":false,"type":"object","required":["message","version","config_data"],"title":"GetPromptVersionResponse","description":"Get prompt version response with configuration data."},"GetRunResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"run":{"$ref":"#/components/schemas/RunWithResults","description":"The run with results."}},"additionalProperties":false,"type":"object","required":["message","run"],"title":"GetRunResponse","description":"Response schema for getting a single run."},"GlobalPermissionUpdateResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"permissions":{"items":{"$ref":"#/components/schemas/PermissionList"},"type":"array","title":"Permissions"}},"additionalProperties":false,"type":"object","required":["message","permissions"],"title":"GlobalPermissionUpdateResponse","description":"Response for global permission update."},"GovernanceBindingCreate":{"properties":{"prompt_id":{"type":"string","minLength":1,"title":"Prompt Id"},"prompt_version_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Prompt Version Id"},"deployment_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Deployment Id"},"mode":{"anyOf":[{"$ref":"#/components/schemas/GovernanceBindingModeEnum"},{"type":"null"}]},"enabled":{"type":"boolean","title":"Enabled","default":true},"applies_to":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Applies To"},"applies_when":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Applies When"},"escalation_target":{"anyOf":[{"$ref":"#/components/schemas/EscalationTargetSchema"},{"type":"null"}]},"min_approvals":{"type":"integer","minimum":1.0,"title":"Min Approvals","default":1},"sticky_approval":{"type":"boolean","title":"Sticky Approval","default":true}},"additionalProperties":false,"type":"object","required":["prompt_id"],"title":"GovernanceBindingCreate","description":"Create a binding: attach a policy to an agent with its settings overlay (FR-BIND-090).\n\n``extra=\"forbid\"`` rejects policy-body fields (``rules``/``conflict_strategy``/``guard_types``)\nwith a 422 — the bind endpoint can never mutate a policy body. Domain validation of\n``applies_to`` / ``applies_when`` / ``escalation_target`` (with named 4xx codes) and the\nfloor clamp happen in the service."},"GovernanceBindingDetailResponse":{"properties":{"object":{"type":"string","title":"Object","default":"governance.binding"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"binding":{"$ref":"#/components/schemas/GovernanceBindingResponse"}},"additionalProperties":false,"type":"object","required":["message","binding"],"title":"GovernanceBindingDetailResponse","description":"Single-binding envelope."},"GovernanceBindingEffective":{"properties":{"min_approvals":{"type":"integer","title":"Min Approvals"},"sticky_approval":{"type":"boolean","title":"Sticky Approval"},"below_floor":{"type":"boolean","title":"Below Floor","default":false},"policy_floor":{"additionalProperties":true,"type":"object","title":"Policy Floor","default":{}}},"type":"object","required":["min_approvals","sticky_approval"],"title":"GovernanceBindingEffective","description":"The clamped, resolution-time approval values (FR-BIND-040)."},"GovernanceBindingListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"governance.binding.list"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"bindings":{"items":{"$ref":"#/components/schemas/GovernanceBindingResponse"},"type":"array","title":"Bindings","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"GovernanceBindingListResponse","description":"Paginated binding-list envelope (the Agent Details policies tab feed)."},"GovernanceBindingModeEnum":{"type":"string","enum":["active","shadow","off"],"title":"GovernanceBindingModeEnum","description":"Per-binding enforce/observe/off mode — the PRIMARY per-agent governance control.\n\nThe binding decides how THIS agent runs the policy, independent of the policy's global\nlifecycle (``GovernancePolicyStatusEnum``): the agent owner picks the mode at attach time.\n\n* ``ACTIVE`` — enforce: real verdicts bite (deny/transform/require_approval).\n* ``SHADOW`` — observe-only: hooks evaluate and record ``would_be`` telemetry but never block\n  (per-agent shadow, independent of the policy's global status).\n* ``OFF`` — the binding is inert: no ref is emitted (equivalent to ``enabled=false``).\n\nAuthoritative at runtime: budprompt reads the binding mode from the ref to decide\nobserve-vs-enforce. ``policy_status`` now only gates SYNC-eligibility (``draft`` = not synced)."},"GovernanceBindingPolicySummary":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"governance_status":{"type":"string","title":"Governance Status"},"current_version":{"type":"integer","title":"Current Version"},"guard_types":{"items":{"type":"string"},"type":"array","title":"Guard Types","default":[]}},"type":"object","required":["id","name","governance_status","current_version"],"title":"GovernanceBindingPolicySummary","description":"Live policy summary carried on a binding response (FR-BIND-100)."},"GovernanceBindingResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"prompt_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"string"}],"title":"Prompt Id"},"prompt_version_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Prompt Version Id"},"governance_policy_id":{"type":"string","format":"uuid4","title":"Governance Policy Id"},"deployment_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Deployment Id"},"deployment_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deployment Name"},"mode":{"$ref":"#/components/schemas/GovernanceBindingModeEnum","default":"active"},"enabled":{"type":"boolean","title":"Enabled"},"applies_to":{"items":{"type":"string"},"type":"array","title":"Applies To"},"applies_when":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Applies When"},"escalation_target":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Escalation Target"},"min_approvals":{"type":"integer","title":"Min Approvals"},"sticky_approval":{"type":"boolean","title":"Sticky Approval"},"created_by":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"below_floor":{"type":"boolean","title":"Below Floor","default":false},"effective":{"$ref":"#/components/schemas/GovernanceBindingEffective"},"policy":{"$ref":"#/components/schemas/GovernanceBindingPolicySummary"},"synced":{"type":"boolean","title":"Synced","default":false},"sync_pending":{"type":"boolean","title":"Sync Pending","default":false}},"type":"object","required":["id","prompt_id","governance_policy_id","enabled","applies_to","min_approvals","sticky_approval","created_at","modified_at","effective","policy"],"title":"GovernanceBindingResponse","description":"API view of a binding: stored overlay + clamped ``effective`` + ``policy`` summary.\n\n``synced`` reflects whether a ref would be pushed to the runtime (the policy is in a synced\nstatus and the binding is enabled); the actual push/retry state is wired in WP-1.2."},"GovernanceCheck":{"properties":{"kind":{"$ref":"#/components/schemas/GovernanceControlKindEnum"},"patterns":{"items":{"type":"string"},"type":"array","title":"Patterns","default":[]},"ref_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref Name"}},"additionalProperties":true,"type":"object","required":["kind"],"title":"GovernanceCheck","description":"One Control referenced by a rule (the UI's \"check\").\n\nDetector configuration beyond ``patterns`` is retained verbatim so the policy\nround-trips losslessly (sentinel ``#[serde(flatten)]``)."},"GovernanceCondition":{"properties":{"key":{"type":"string","title":"Key"},"op":{"$ref":"#/components/schemas/GovernanceConditionOpEnum","default":"is"},"value":{"title":"Value"}},"type":"object","required":["key","value"],"title":"GovernanceCondition","description":"A single context condition gating a rule: ``<key> <op> <value>``."},"GovernanceConditionOpEnum":{"type":"string","enum":["is","isnt","gt","lt","has"],"title":"GovernanceConditionOpEnum","description":"A comparison operator for a rule condition (the UI's `CTXOPS`)."},"GovernanceConfig":{"properties":{"conflict_strategy":{"$ref":"#/components/schemas/GovernanceConflictStrategyEnum","default":"priority_first_match"},"policy":{"$ref":"#/components/schemas/GovernancePolicy"},"domain_context_schema":{"anyOf":[{"items":{"$ref":"#/components/schemas/GovernanceDomainFact"},"type":"array"},{"type":"null"}],"title":"Domain Context Schema"}},"type":"object","required":["policy"],"title":"GovernanceConfig","description":"The ``agentmesh_policy`` body stored in ``GuardrailRule.model_config_json``."},"GovernanceConflictStrategyEnum":{"type":"string","enum":["priority_first_match","deny_overrides","allow_overrides","most_specific_wins"],"title":"GovernanceConflictStrategyEnum","description":"How to resolve conflicts when several rules match one action."},"GovernanceControlKindEnum":{"type":"string","enum":["detector","action"],"title":"GovernanceControlKindEnum","description":"The kind of Control a rule's check references.\n\nA ``detector`` check references a bud-sentinel detector by ``ref`` (a vectorscan\npattern/PII scanner or a classifier — the referenced detector decides which); an\n``action`` check is self-verdicting over its patterns. The legacy ``scanner`` and\n``guardrail`` kinds carried no behavioral difference and are normalized to\n``detector`` (see ``GovernanceCheck``)."},"GovernanceDeploymentPaginatedResponse":{"properties":{"object":{"type":"string","title":"Object","default":"governance.deployments"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"deployments":{"items":{"$ref":"#/components/schemas/GovernanceDeploymentResponse"},"type":"array","title":"Deployments","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"GovernanceDeploymentPaginatedResponse","description":"Paginated list of a project's active governance deployments (attach picker feed)."},"GovernanceDeploymentResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"profile_id":{"type":"string","format":"uuid4","title":"Profile Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"$ref":"#/components/schemas/GuardrailDeploymentStatusEnum"},"created_by":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Created By"},"project_id":{"type":"string","format":"uuid4","title":"Project Id"},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Endpoint Id"},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name"},"credential_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Credential Id"},"severity_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Severity Threshold"},"guard_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guard Types"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"governance_policy_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Governance Policy Id"},"governance_policy_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Governance Policy Name"},"governance_policy_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Governance Policy Status"}},"type":"object","required":["id","profile_id","name","status","project_id","created_at","modified_at"],"title":"GovernanceDeploymentResponse","description":"A project governance deployment enriched with the policy it serves (attach picker).\n\nExtends the base deployment view with the ``agentmesh_policy`` rule the deployment's profile\ncarries, so the agent Attach-Policy dropdown can list project-deployed governance policies\n(name + status) and bind against the resolved ``governance_policy_id``. ``name`` is the\n``/v1/governance`` model addressing the deployment."},"GovernanceDomainFact":{"properties":{"name":{"type":"string","title":"Name"},"source":{"type":"string","enum":["input_field","tool_result","ledger"],"title":"Source"},"jsonpath":{"type":"string","title":"Jsonpath"},"mandatory":{"type":"boolean","title":"Mandatory","default":false},"type":{"type":"string","enum":["string","number","boolean","any"],"title":"Type","default":"any"},"ledger":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ledger"},"subject":{"anyOf":[{"type":"string","enum":["session","principal","project"]},{"type":"null"}],"title":"Subject"},"max_age_secs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Age Secs"}},"additionalProperties":false,"type":"object","required":["name","source","jsonpath"],"title":"GovernanceDomainFact","description":"One domain-fact definition on a policy (WP-3.8 domain-context extraction).\n\nA domain fact pulls a value from the request input (``input_field``), a prior tool result\n(``tool_result``), or a server-owned stateful ledger (``ledger``) by JSONPath during governance\nevaluation. The trust boundary is enforced at runtime (budprompt): only ``ledger`` is trusted,\nso a client-controlled ``input_field``/``tool_result`` can never satisfy a ``mandatory``\nidentity/residency condition. Authoring here validates the JSONPath compiles."},"GovernanceGuardTypeEnum":{"type":"string","enum":["pre_request","post_request","pre_tool","post_tool","before_agent","after_agent","outbound_handoff"],"title":"GovernanceGuardTypeEnum","description":"The lifecycle hook at which a governance rule runs.\n\nThe Phase-3/4 additions (``before_agent``/``after_agent``) are DECLARED here so a policy\nbody can carry them and the enum accepts them; ``after_agent``'s firing site is Phase 4.\nA guard type outside the ``GOVERNANCE_ENABLED_GUARD_TYPES`` allowlist 422s on authoring and\ncannot reach a synced status on a stack that lacks the capability (409\n``GOVERNANCE_HOOK_UNSUPPORTED``)."},"GovernancePolicy":{"properties":{"version":{"type":"string","title":"Version","default":"1.0"},"rules":{"items":{"$ref":"#/components/schemas/GovernanceRule"},"type":"array","title":"Rules","default":[]}},"type":"object","title":"GovernancePolicy","description":"A versioned, ordered set of governance rules (the policy body)."},"GovernancePolicyCreate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"scanner_type":{"type":"string","const":"agentmesh_policy","title":"Scanner Type","default":"agentmesh_policy"},"config":{"$ref":"#/components/schemas/GovernanceConfig"}},"type":"object","required":["name","config"],"title":"GovernancePolicyCreate","description":"Author-facing request to create a governance policy.\n\nDedicated rather than folded into ``GuardrailCustomProbeCreate`` because a\ngovernance policy has no backing model (no ``model_id``). The policy is stored as\na ``GuardrailRule`` with ``scanner_type=agentmesh_policy`` and starts life in\n``draft`` status; lifecycle transitions are driven by separate promote/pause flows."},"GovernancePolicyDetailResponse":{"properties":{"object":{"type":"string","title":"Object","default":"guardrail.governance_policy.get"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"policy":{"$ref":"#/components/schemas/GovernancePolicyResponse"}},"additionalProperties":false,"type":"object","required":["message","policy"],"title":"GovernancePolicyDetailResponse","description":"Single-policy envelope."},"GovernancePolicyListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"guardrail.governance_policy.list"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"policies":{"items":{"$ref":"#/components/schemas/GovernancePolicyResponse"},"type":"array","title":"Policies","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"GovernancePolicyListResponse","description":"Paginated policy-list envelope."},"GovernancePolicyRef":{"properties":{"binding_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Binding Id"},"policy_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Id"},"policy_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Policy Version"},"policy_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Status"},"binding_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Binding Mode"},"effective_shadow":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Effective Shadow"},"profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Id"},"profile_alias":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Alias"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"applies_to":{"items":{"type":"string"},"type":"array","title":"Applies To"},"min_approvals":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Approvals"},"sticky_approval":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sticky Approval"}},"type":"object","title":"GovernancePolicyRef","description":"A materialized agent-policy binding, passed through to the runtime and the UI.\n\nDeliberately permissive (``extra=\"ignore\"``) and every field optional beyond the two ids: this is\na PASS-THROUGH, and a strict mirror here would reintroduce exactly the silent-drop problem it\nexists to fix — the next field budprompt adds would vanish again."},"GovernancePolicyResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"$ref":"#/components/schemas/GovernancePolicyStatusEnum"},"version":{"type":"integer","title":"Version"},"config":{"anyOf":[{"$ref":"#/components/schemas/GovernanceConfig"},{"type":"null"}]},"guard_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guard Types"},"floors":{"additionalProperties":true,"type":"object","title":"Floors","default":{}},"invoker_can_approve":{"type":"boolean","title":"Invoker Can Approve","default":true},"created_by":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","name","status","version","created_at","modified_at"],"title":"GovernancePolicyResponse","description":"API view of a governance policy (a GuardrailRule + its version history)."},"GovernancePolicyScopeEnum":{"type":"string","enum":["global","agent"],"title":"GovernancePolicyScopeEnum","description":"The binding scope at which a rule applies (flat binding: no `tenant`)."},"GovernancePolicyStatusEnum":{"type":"string","enum":["draft","shadow","active","paused","deleted"],"title":"GovernancePolicyStatusEnum","description":"Lifecycle status of an agent-governance policy (design §4).\n\nDistinct from :class:`GuardrailStatusEnum` (which lacks shadow/paused) and\nfrom a rule's own ``enabled`` toggle. The string values are the wire contract\nbud-sentinel parses on profile sync (``CustomGovernancePolicy.status``).\n\nThe live lifecycle is just ``draft <-> active`` (+ terminal ``deleted``): a\npolicy is a *global, project-independent* definition, so becoming ``active``\nonly makes it **deployable** — it does not require its referenced gated models\nto be onboarded/deployed (the same policy may be deployed into many projects,\nand each project's deploy-workflow onboards/deploys the gated models it needs).\n``shadow`` and ``paused`` are parked for now (kept as values for forward/DB\ncompatibility but unreachable by the state machine below).\n\nAttributes:\n    DRAFT: Authoring; not deployable, not synced.\n    SHADOW: (Parked) synced and evaluated, but verdicts downgraded to observe.\n    ACTIVE: Deployable; synced and enforced once deployed in a profile.\n    PAUSED: (Parked) kill-switch; not synced.\n    DELETED: Soft-deleted; terminal."},"GovernancePolicyUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"config":{"anyOf":[{"$ref":"#/components/schemas/GovernanceConfig"},{"type":"null"}]},"status":{"anyOf":[{"$ref":"#/components/schemas/GovernancePolicyStatusEnum"},{"type":"null"}]}},"type":"object","title":"GovernancePolicyUpdate","description":"Partial update to a governance policy (the single generic PUT).\n\nEvery field is optional. A ``config`` change mints a new immutable version; a\n``status`` change is validated against the lifecycle state machine and re-synced.\nThe two effects are disentangled by the service, so one PUT may do either or both."},"GovernanceRule":{"properties":{"name":{"type":"string","title":"Name"},"enabled":{"type":"boolean","title":"Enabled","default":true},"verdict":{"$ref":"#/components/schemas/GovernanceVerdictEnum"},"guard_types":{"items":{"$ref":"#/components/schemas/GovernanceGuardTypeEnum"},"type":"array","minItems":1,"title":"Guard Types"},"checks":{"items":{"$ref":"#/components/schemas/GovernanceCheck"},"type":"array","minItems":1,"title":"Checks"},"conditions":{"items":{"$ref":"#/components/schemas/GovernanceCondition"},"type":"array","title":"Conditions","default":[]},"priority":{"type":"integer","title":"Priority","default":0},"guidance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guidance"},"scope":{"$ref":"#/components/schemas/GovernancePolicyScopeEnum","default":"global"},"min_approvals":{"type":"integer","minimum":1.0,"title":"Min Approvals","default":1},"require_ack":{"type":"boolean","title":"Require Ack","default":false},"approval_policy":{"anyOf":[{"$ref":"#/components/schemas/ApprovalPolicySchema"},{"type":"null"}]}},"type":"object","required":["name","verdict","guard_types","checks"],"title":"GovernanceRule","description":"A single governance rule: one or more checks bound to a single verdict."},"GovernanceVerdictEnum":{"type":"string","enum":["allow","deny","transform","require_approval","notify"],"title":"GovernanceVerdictEnum","description":"The verdict a governance rule renders when it fires."},"GrafanaDashboardResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"url":{"type":"string","title":"Url"}},"additionalProperties":false,"type":"object","required":["message","url"],"title":"GrafanaDashboardResponse","description":"Grafana dashboard response schema."},"GroupingIn":{"properties":{"by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"By","description":"Conversation column; omit for a `turns` JSON column."},"role_col":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Col"},"text_col":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Col"},"assistant":{"type":"string","enum":["transcript","reference","drop"],"title":"Assistant","description":"Replies make transcript rows, or scripted rows with metadata.reference_turns, or are dropped.","default":"transcript"}},"additionalProperties":false,"type":"object","title":"GroupingIn","description":"Multi-turn files: rows per turn grouped by a conversation column, or a ``turns`` column's replies."},"GuardrailCustomProbeCreate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"scanner_type":{"$ref":"#/components/schemas/ScannerTypeEnum"},"model_id":{"type":"string","format":"uuid4","title":"Model Id"},"model_config_data":{"anyOf":[{"$ref":"#/components/schemas/ClassifierConfig"},{"$ref":"#/components/schemas/LLMConfig"}],"title":"Model Config Data"}},"type":"object","required":["name","scanner_type","model_id","model_config_data"],"title":"GuardrailCustomProbeCreate","description":"Schema for creating a custom model probe."},"GuardrailCustomProbeDetailResponse":{"properties":{"object":{"type":"string","title":"Object","default":"guardrail.custom_probe"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"probe":{"$ref":"#/components/schemas/GuardrailCustomProbeResponse"}},"additionalProperties":false,"type":"object","required":["message","probe"],"title":"GuardrailCustomProbeDetailResponse","description":"Detail response schema for a single custom probe."},"GuardrailCustomProbePaginatedResponse":{"properties":{"object":{"type":"string","title":"Object","default":"guardrail.custom_probe.list"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"probes":{"items":{"$ref":"#/components/schemas/GuardrailCustomProbeResponse"},"type":"array","title":"Probes","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"GuardrailCustomProbePaginatedResponse","description":"Schema for custom probe list responses."},"GuardrailCustomProbeResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"probe_type":{"$ref":"#/components/schemas/ProbeTypeEnum"},"scanner_type":{"anyOf":[{"$ref":"#/components/schemas/ScannerTypeEnum"},{"type":"null"}]},"model_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Model Id"},"model_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Uri"},"model_config_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Model Config Data"},"guard_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guard Types"},"modality_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Modality Types"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","name","probe_type","status","created_at","modified_at"],"title":"GuardrailCustomProbeResponse","description":"Response schema for custom probe."},"GuardrailCustomProbeUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"model_config_data":{"anyOf":[{"$ref":"#/components/schemas/ClassifierConfig"},{"$ref":"#/components/schemas/LLMConfig"},{"type":"null"}],"title":"Model Config Data"}},"type":"object","title":"GuardrailCustomProbeUpdate","description":"Schema for updating a custom model probe."},"GuardrailDeploymentDetailResponse":{"properties":{"object":{"type":"string","title":"Object","default":"guardrail.deployment"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"deployment":{"$ref":"#/components/schemas/GuardrailDeploymentResponse"}},"additionalProperties":false,"type":"object","required":["message","deployment"],"title":"GuardrailDeploymentDetailResponse"},"GuardrailDeploymentPaginatedResponse":{"properties":{"object":{"type":"string","title":"Object","default":"guardrail.deployments"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"deployments":{"items":{"$ref":"#/components/schemas/GuardrailDeploymentResponse"},"type":"array","title":"Deployments","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"GuardrailDeploymentPaginatedResponse","description":"Schema for guardrail deployment list responses."},"GuardrailDeploymentResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"profile_id":{"type":"string","format":"uuid4","title":"Profile Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"$ref":"#/components/schemas/GuardrailDeploymentStatusEnum"},"created_by":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Created By"},"project_id":{"type":"string","format":"uuid4","title":"Project Id"},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Endpoint Id"},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name"},"credential_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Credential Id"},"severity_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Severity Threshold"},"guard_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guard Types"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","profile_id","name","status","project_id","created_at","modified_at"],"title":"GuardrailDeploymentResponse","description":"Schema for guardrail deployment responses."},"GuardrailDeploymentStatusEnum":{"type":"string","enum":["running","failure","deploying","unhealthy","deleting","deleted","pending"],"title":"GuardrailDeploymentStatusEnum","description":"Guardrail deployment status enumeration."},"GuardrailDeploymentUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"severity_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Severity Threshold"},"guard_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guard Types"}},"type":"object","title":"GuardrailDeploymentUpdate","description":"Schema for updating a guardrail deployment."},"GuardrailDeploymentWorkflowRequest":{"properties":{"workflow_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Workflow Id"},"workflow_total_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workflow Total Steps"},"step_number":{"type":"integer","exclusiveMinimum":0.0,"title":"Step Number"},"trigger_workflow":{"type":"boolean","title":"Trigger Workflow","default":false},"provider_type":{"anyOf":[{"$ref":"#/components/schemas/GuardrailProviderTypeEnum"},{"type":"null"}]},"provider_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Provider Id"},"guardrail_profile_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Guardrail Profile Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"project_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Project Id"},"endpoint_ids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Endpoint Ids"},"credential_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Credential Id"},"is_standalone":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Standalone"},"probe_selections":{"anyOf":[{"items":{"$ref":"#/components/schemas/GuardrailProfileProbeSelection"},"type":"array"},{"type":"null"}],"title":"Probe Selections"},"guard_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guard Types"},"severity_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Severity Threshold"},"cluster_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Cluster Id"},"hardware_mode":{"anyOf":[{"type":"string","enum":["dedicated","shared"]},{"type":"null"}],"title":"Hardware Mode"},"deploy_config":{"anyOf":[{"$ref":"#/components/schemas/DeploymentTemplateCreate"},{"type":"null"}]},"budaiscaler_specification":{"anyOf":[{"$ref":"#/components/schemas/BudAIScalerSpecification"},{"type":"null"}]}},"type":"object","required":["step_number"],"title":"GuardrailDeploymentWorkflowRequest","description":"Guardrail deployment workflow request schema."},"GuardrailProbeCreate":{"properties":{"name":{"type":"string","title":"Name"},"uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uri"},"provider_id":{"type":"string","format":"uuid4","title":"Provider Id"},"provider_type":{"$ref":"#/components/schemas/GuardrailProviderTypeEnum"},"status":{"$ref":"#/components/schemas/GuardrailStatusEnum"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"}},"type":"object","required":["name","provider_id","provider_type","status"],"title":"GuardrailProbeCreate","description":"Schema for creating guardrail probe."},"GuardrailProbeDetailResponse":{"properties":{"object":{"type":"string","title":"Object","default":"guardrail.probe.get"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"probe":{"$ref":"#/components/schemas/GuardrailProbeResponse"},"rule_count":{"type":"integer","title":"Rule Count"}},"additionalProperties":false,"type":"object","required":["message","probe","rule_count"],"title":"GuardrailProbeDetailResponse"},"GuardrailProbePaginatedResponse":{"properties":{"object":{"type":"string","title":"Object","default":"guardrail.probe.list"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"probes":{"items":{"$ref":"#/components/schemas/GuardrailProbeResponse"},"type":"array","title":"Probes","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"GuardrailProbePaginatedResponse","description":"Schema for guardrail probe list responses."},"GuardrailProbeResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uri"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"probe_type":{"$ref":"#/components/schemas/ProbeTypeEnum","default":"provider"},"provider_type":{"$ref":"#/components/schemas/GuardrailProviderTypeEnum"},"provider":{"$ref":"#/components/schemas/Provider"},"status":{"$ref":"#/components/schemas/GuardrailStatusEnum"},"scanner_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scanner Types"},"modality_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Modality Types"},"guard_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guard Types"},"examples":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Examples"},"created_by":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","name","provider_type","provider","status","created_at","modified_at"],"title":"GuardrailProbeResponse","description":"Schema for guardrail probe responses."},"GuardrailProbeRuleSelection":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"status":{"$ref":"#/components/schemas/GuardrailStatusEnum"},"severity_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Severity Threshold"},"guard_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guard Types"}},"type":"object","required":["id","status"],"title":"GuardrailProbeRuleSelection"},"GuardrailProbeUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"status":{"anyOf":[{"$ref":"#/components/schemas/GuardrailStatusEnum"},{"type":"null"}]}},"type":"object","title":"GuardrailProbeUpdate","description":"Schema for updating a guardrail probe."},"GuardrailProfileDetailResponse":{"properties":{"object":{"type":"string","title":"Object","default":"guardrail.profile.get"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"profile":{"$ref":"#/components/schemas/GuardrailProfileResponse"}},"additionalProperties":false,"type":"object","required":["message","profile"],"title":"GuardrailProfileDetailResponse"},"GuardrailProfilePaginatedResponse":{"properties":{"object":{"type":"string","title":"Object","default":"guardrail.profile.list"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"profiles":{"items":{"$ref":"#/components/schemas/GuardrailProfileResponse"},"type":"array","title":"Profiles","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"GuardrailProfilePaginatedResponse","description":"Schema for guardrail profile list responses."},"GuardrailProfileProbeSelection":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"rules":{"anyOf":[{"items":{"$ref":"#/components/schemas/GuardrailProbeRuleSelection"},"type":"array"},{"type":"null"}],"title":"Rules"},"severity_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Severity Threshold"},"guard_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guard Types"},"cluster_config_override":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Cluster Config Override"}},"type":"object","required":["id"],"title":"GuardrailProfileProbeSelection"},"GuardrailProfileResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/GuardrailStatusEnum"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"severity_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Severity Threshold"},"guard_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guard Types"},"profile_type":{"$ref":"#/components/schemas/GuardrailProfileTypeEnum","default":"moderation"},"probe_count":{"type":"integer","title":"Probe Count","default":0},"deployment_count":{"type":"integer","title":"Deployment Count","default":0},"is_standalone":{"type":"boolean","title":"Is Standalone","default":false},"created_by":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Created By"},"project_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Project Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","name","status","created_at","modified_at"],"title":"GuardrailProfileResponse","description":"Schema for guardrail profile responses."},"GuardrailProfileTypeEnum":{"type":"string","enum":["moderation","governance"],"title":"GuardrailProfileTypeEnum","description":"Derived classification of a guardrail profile by the kind of probes it binds.\n\nA profile is ``governance`` if any bound probe carries an ``agentmesh_policy`` rule\n(evaluated by bud-sentinel's agent-governance engine via ``/v1/governance``), else\n``moderation`` (scanned via ``/v1/moderations``). Profiles are kept homogeneous —\ndeploy/update reject mixing the two kinds — so this single value is unambiguous.\nNot a stored column: it is derived from the profile's probes (see\n``GuardrailProfile.profile_type``)."},"GuardrailProfileUpdateWithProbes":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"severity_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Severity Threshold"},"guard_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guard Types"},"probe_selections":{"anyOf":[{"items":{"$ref":"#/components/schemas/GuardrailProfileProbeSelection"},"type":"array"},{"type":"null"}],"title":"Probe Selections"}},"type":"object","title":"GuardrailProfileUpdateWithProbes","description":"Schema for updating a guardrail profile with probe selections."},"GuardrailProviderTypeEnum":{"type":"string","enum":["cloud","bud"],"title":"GuardrailProviderTypeEnum","description":"Enumeration of guardrail provider types.\n\nThis enum represents different types of guardrail providers or sources.\n\nAttributes:\n    CLOUD (str): Represents cloud-based guardrail providers.\n    BUD (str): Represents guardrails from the Bud platform."},"GuardrailRuleCreate":{"properties":{"name":{"type":"string","title":"Name"},"uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uri"},"probe_id":{"type":"string","format":"uuid4","title":"Probe Id"},"status":{"$ref":"#/components/schemas/GuardrailStatusEnum"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"modality_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Modality Types"},"guard_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guard Types"},"examples":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Examples"},"scanner_type":{"anyOf":[{"$ref":"#/components/schemas/ScannerTypeEnum"},{"type":"null"}]},"model_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Uri"},"model_provider_type":{"anyOf":[{"$ref":"#/components/schemas/ModelProviderTypeEnum"},{"type":"null"}]},"is_gated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Gated","default":false},"model_config_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Model Config Json"},"model_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Model Id"}},"type":"object","required":["name","probe_id","status"],"title":"GuardrailRuleCreate","description":"Schema for creating guardrail rule."},"GuardrailRuleDetailResponse":{"properties":{"object":{"type":"string","title":"Object","default":"guardrail.probe.rule.get"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"rule":{"$ref":"#/components/schemas/GuardrailRuleResponse"}},"additionalProperties":false,"type":"object","required":["message","rule"],"title":"GuardrailRuleDetailResponse"},"GuardrailRulePaginatedResponse":{"properties":{"object":{"type":"string","title":"Object","default":"guardrail.probe.rule.list"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"rules":{"items":{"$ref":"#/components/schemas/GuardrailRuleResponse"},"type":"array","title":"Rules","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"GuardrailRulePaginatedResponse","description":"Schema for guardrail probe rules list responses."},"GuardrailRuleResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"probe_id":{"type":"string","format":"uuid4","title":"Probe Id"},"status":{"$ref":"#/components/schemas/GuardrailStatusEnum"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"modality_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Modality Types"},"guard_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guard Types"},"examples":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Examples"},"scanner_type":{"anyOf":[{"$ref":"#/components/schemas/ScannerTypeEnum"},{"type":"null"}]},"model_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Uri"},"model_provider_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Provider Type"},"is_gated":{"type":"boolean","title":"Is Gated","default":false},"model_config_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Model Config Json"},"model_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Model Id"},"created_by":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","name","probe_id","status","created_at","modified_at"],"title":"GuardrailRuleResponse","description":"Schema for guardrail rule responses."},"GuardrailRuleUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"modality_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Modality Types"},"guard_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guard Types"},"examples":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Examples"},"status":{"anyOf":[{"$ref":"#/components/schemas/GuardrailStatusEnum"},{"type":"null"}]}},"type":"object","title":"GuardrailRuleUpdate","description":"Schema for updating a guardrail rule."},"GuardrailStatusEnum":{"type":"string","enum":["active","disabled","deleted"],"title":"GuardrailStatusEnum","description":"Enumeration of entity statuses in the system.\n\nAttributes:\n    ACTIVE: Represents an active entity.\n    DELETED: Represents an deleted entity."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HeadMapping":{"properties":{"head_name":{"type":"string","title":"Head Name","default":"default"},"target_labels":{"items":{"type":"string"},"type":"array","title":"Target Labels"}},"type":"object","required":["target_labels"],"title":"HeadMapping","description":"Head mapping for classifier models."},"HeadersCredentials":{"properties":{"passthrough_headers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Passthrough Headers","description":"List of headers to pass through (e.g., ['Authorization', 'X-Tenant-Id'])"},"auth_headers":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","minItems":1,"title":"Auth Headers","description":"Authentication headers as list of dicts with 'key' and 'value' (e.g., [{'key': 'Authorization', 'value': 'Bearer token'}])"}},"type":"object","required":["auth_headers"],"title":"HeadersCredentials","description":"Headers-based authentication credentials."},"Headline":{"properties":{"severity":{"type":"string","enum":["LOW","MEDIUM","HIGH","CRITICAL"],"title":"Severity","default":"LOW"},"recommendation":{"type":"string","enum":["SAFE","CAUTION","DO_NOT_INSTALL"],"title":"Recommendation","default":"SAFE"},"clean":{"type":"boolean","title":"Clean","default":false}},"additionalProperties":false,"type":"object","title":"Headline","description":"budmodel's composite verdict. Mirrors budmodel `Headline`."},"HeatmapChartResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"datasets":{"items":{"$ref":"#/components/schemas/HeatmapDatasetInfo"},"type":"array","title":"Datasets","description":"List of datasets for column headers"},"deployments":{"items":{"$ref":"#/components/schemas/DeploymentHeatmapData"},"type":"array","title":"Deployments","description":"Heatmap data per deployment"},"stats":{"$ref":"#/components/schemas/HeatmapStats","description":"Statistics for color scaling"}},"additionalProperties":false,"type":"object","required":["message","datasets","deployments","stats"],"title":"HeatmapChartResponse","description":"Response for heatmap chart data."},"HeatmapDatasetInfo":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id","description":"Dataset ID"},"name":{"type":"string","title":"Name","description":"Dataset name"}},"type":"object","required":["id","name"],"title":"HeatmapDatasetInfo","description":"Dataset info for heatmap column headers."},"HeatmapStats":{"properties":{"min_score":{"type":"number","title":"Min Score","description":"Minimum score across all cells"},"max_score":{"type":"number","title":"Max Score","description":"Maximum score across all cells"},"avg_score":{"type":"number","title":"Avg Score","description":"Average score across all cells"}},"type":"object","required":["min_score","max_score","avg_score"],"title":"HeatmapStats","description":"Statistics for heatmap color scaling."},"HitlSpec":{"properties":{"approvers":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Approvers"},"timeout_seconds":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Timeout Seconds"},"on_timeout":{"anyOf":[{"type":"string","enum":["approve","deny","escalate"]},{"type":"null"}],"title":"On Timeout"}},"type":"object","required":["approvers"],"title":"HitlSpec","description":"Human-in-the-loop approval gate. ``approvers`` must be non-empty."},"HumanIn":{"properties":{"verdict":{"anyOf":[{"type":"string","enum":["pass","fail"]},{"type":"null"}],"title":"Verdict"},"value":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Value"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","title":"HumanIn"},"IconListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"icons":{"items":{"$ref":"#/components/schemas/IconResponse"},"type":"array","title":"Icons"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","icons","total_pages"],"title":"IconListResponse","description":"Icon list response schema."},"IconResponse":{"properties":{"name":{"type":"string","title":"Name"},"file_path":{"type":"string","title":"File Path"},"category":{"type":"string","title":"Category"},"id":{"type":"string","format":"uuid4","title":"Id"}},"type":"object","required":["name","file_path","category","id"],"title":"IconResponse","description":"Icon response schema."},"IdpHintRequest":{"properties":{"idp_hint":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idp Hint"}},"additionalProperties":false,"type":"object","title":"IdpHintRequest"},"ImageInputConfig":{"properties":{"required":{"type":"boolean","title":"Required","description":"Whether an image input is required for this prompt","default":false}},"type":"object","title":"ImageInputConfig","description":"Image input configuration for prompts that accept image inputs."},"ImageUrlContent":{"properties":{"url":{"type":"string","title":"Url","description":"URL of the image or base64 encoded image data (data:image/...;base64,...)"},"detail":{"anyOf":[{"type":"string","enum":["auto","low","high"]},{"type":"null"}],"title":"Detail","description":"Detail level for vision processing","default":"auto"}},"type":"object","required":["url"],"title":"ImageUrlContent","description":"Image URL content. Mirrors OpenAI ChatCompletionContentPartImage.image_url schema.\n\nUsed in message templates for storing image references. Supports both HTTPS URLs\nand base64 data URIs (data:image/<format>;base64,<data>)."},"ImportCountResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"count":{"additionalProperties":true,"type":"object","title":"Count"}},"additionalProperties":false,"type":"object","required":["message","count"],"title":"ImportCountResponse"},"ImportFiltersIn":{"properties":{"success":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Success"},"feedback":{"anyOf":[{"type":"string","enum":["positive","negative","any"]},{"type":"null"}],"title":"Feedback"},"latency_percentile":{"anyOf":[{"type":"integer","maximum":99.0,"minimum":50.0},{"type":"null"}],"title":"Latency Percentile"},"has_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Tool Calls"},"min_user_turns":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Min User Turns"},"tags_any":{"anyOf":[{"items":{"type":"string","maxLength":64,"minLength":1},"type":"array","maxItems":10},{"type":"null"}],"title":"Tags Any"},"tags_all":{"anyOf":[{"items":{"type":"string","maxLength":64,"minLength":1},"type":"array","maxItems":10},{"type":"null"}],"title":"Tags All"},"exclude_tags":{"anyOf":[{"items":{"type":"string","maxLength":64,"minLength":1},"type":"array","maxItems":10},{"type":"null"}],"title":"Exclude Tags"}},"additionalProperties":false,"type":"object","title":"ImportFiltersIn"},"ImportIn":{"properties":{"kind":{"type":"string","enum":["requests","conversations","similar"],"title":"Kind"},"params":{"$ref":"#/components/schemas/ImportParamsIn"}},"additionalProperties":false,"type":"object","required":["kind","params"],"title":"ImportIn"},"ImportJobResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"job":{"additionalProperties":true,"type":"object","title":"Job"}},"additionalProperties":false,"type":"object","required":["message","job"],"title":"ImportJobResponse"},"ImportParamsIn":{"properties":{"source":{"$ref":"#/components/schemas/ImportSourceIn"},"project_id":{"type":"string","format":"uuid4","title":"Project Id"},"from":{"type":"string","format":"date-time","title":"From"},"to":{"type":"string","format":"date-time","title":"To"},"filters":{"$ref":"#/components/schemas/ImportFiltersIn"},"dedupe":{"type":"boolean","title":"Dedupe","default":true},"n":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"N","default":50},"seed":{"type":"integer","maximum":2147483647.0,"minimum":0.0,"title":"Seed","default":0},"stratify_by":{"anyOf":[{"type":"string","const":"endpoint_id"},{"type":"null"}],"title":"Stratify By"},"answer":{"type":"string","enum":["blank","logged","demonstration","drafted","recorded"],"title":"Answer","default":"blank"},"conversation_as":{"anyOf":[{"type":"string","enum":["scripted","transcript"]},{"type":"null"}],"title":"Conversation As"},"mask_pii":{"type":"boolean","title":"Mask Pii","default":true},"acknowledge_unmasked":{"type":"boolean","title":"Acknowledge Unmasked","default":false},"similar":{"anyOf":[{"$ref":"#/components/schemas/SimilarIn"},{"type":"null"}]},"generator":{"anyOf":[{"$ref":"#/components/schemas/EndpointRef-Input"},{"type":"null"}],"description":"Drafted answers; default the generator role."}},"additionalProperties":false,"type":"object","required":["source","project_id","from","to"],"title":"ImportParamsIn"},"ImportSourceIn":{"properties":{"endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Endpoint Id"},"agent_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Agent Id"},"version":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Version"}},"additionalProperties":false,"type":"object","title":"ImportSourceIn"},"InferenceDetailResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"inference_id":{"type":"string","format":"uuid","title":"Inference Id"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"model_name":{"type":"string","title":"Model Name"},"model_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Display Name"},"model_provider":{"type":"string","title":"Model Provider"},"model_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Model Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Endpoint Id"},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"},"messages":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Messages"},"output":{"type":"string","title":"Output"},"function_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Function Name"},"variant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant Name"},"episode_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Episode Id"},"input_tokens":{"type":"integer","title":"Input Tokens"},"output_tokens":{"type":"integer","title":"Output Tokens"},"reasoning_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reasoning Tokens"},"response_time_ms":{"type":"integer","title":"Response Time Ms"},"ttft_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ttft Ms"},"processing_time_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Processing Time Ms"},"request_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Ip"},"request_arrival_time":{"type":"string","format":"date-time","title":"Request Arrival Time"},"request_forward_time":{"type":"string","format":"date-time","title":"Request Forward Time"},"is_success":{"type":"boolean","title":"Is Success"},"cached":{"type":"boolean","title":"Cached"},"finish_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finish Reason"},"cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost"},"endpoint_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Type"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"error_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Type"},"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code"},"raw_request":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Request"},"raw_response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Response"},"gateway_request":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Gateway Request"},"gateway_response":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Gateway Response"},"gateway_metadata":{"anyOf":[{"$ref":"#/components/schemas/GatewayMetadata"},{"type":"null"}]},"feedback_count":{"type":"integer","title":"Feedback Count"},"average_rating":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Rating"},"audio_details":{"anyOf":[{"$ref":"#/components/schemas/AudioInferenceDetail"},{"type":"null"}]}},"type":"object","required":["message","inference_id","timestamp","model_name","model_provider","project_id","messages","output","input_tokens","output_tokens","response_time_ms","request_arrival_time","request_forward_time","is_success","cached","feedback_count"],"title":"InferenceDetailResponse","description":"Response schema for detailed inference information with enriched data."},"InferenceFeedbackResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"inference_id":{"type":"string","format":"uuid","title":"Inference Id"},"feedback_items":{"items":{"$ref":"#/components/schemas/FeedbackItem"},"type":"array","title":"Feedback Items"},"total_count":{"type":"integer","title":"Total Count"}},"additionalProperties":false,"type":"object","required":["message","inference_id","feedback_items","total_count"],"title":"InferenceFeedbackResponse","description":"Response schema for inference feedback."},"InferenceListItem":{"properties":{"inference_id":{"type":"string","format":"uuid","title":"Inference Id"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"model_name":{"type":"string","title":"Model Name"},"model_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Display Name"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name"},"prompt_preview":{"type":"string","title":"Prompt Preview"},"response_preview":{"type":"string","title":"Response Preview"},"input_tokens":{"type":"integer","title":"Input Tokens"},"output_tokens":{"type":"integer","title":"Output Tokens"},"total_tokens":{"type":"integer","title":"Total Tokens"},"response_time_ms":{"type":"integer","title":"Response Time Ms"},"cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost"},"is_success":{"type":"boolean","title":"Is Success"},"cached":{"type":"boolean","title":"Cached"},"endpoint_type":{"type":"string","title":"Endpoint Type","default":"chat"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"error_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Type"},"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code"},"source":{"type":"string","enum":["inference","voice"],"title":"Source","default":"inference"},"usage":{"anyOf":[{"$ref":"#/components/schemas/InferenceUsage"},{"type":"null"}]},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"response_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Response Count"},"end_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Reason"}},"type":"object","required":["inference_id","timestamp","model_name","prompt_preview","response_preview","input_tokens","output_tokens","total_tokens","response_time_ms","is_success","cached"],"title":"InferenceListItem","description":"Schema for inference items in list response with enriched data."},"InferenceListRequest":{"properties":{"offset":{"type":"integer","title":"Offset","default":0},"limit":{"type":"integer","title":"Limit","default":50},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Endpoint Id"},"model_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Model Id"},"from_date":{"type":"string","format":"date-time","title":"From Date"},"to_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To Date"},"is_success":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Success"},"min_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Tokens"},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens"},"max_latency_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Latency Ms"},"endpoint_type":{"anyOf":[{"type":"string","enum":["chat","embedding","audio_transcription","audio_translation","text_to_speech","image_generation","moderation","realtime_session","decisions"]},{"type":"null"}],"title":"Endpoint Type"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"sort_by":{"type":"string","enum":["timestamp","tokens","latency","cost"],"title":"Sort By","default":"timestamp"},"sort_order":{"type":"string","enum":["asc","desc"],"title":"Sort Order","default":"desc"}},"type":"object","required":["from_date"],"title":"InferenceListRequest","description":"Request schema for listing inference requests."},"InferenceListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"items":{"items":{"$ref":"#/components/schemas/InferenceListItem"},"type":"array","title":"Items"},"total_count":{"type":"integer","title":"Total Count"},"offset":{"type":"integer","title":"Offset"},"limit":{"type":"integer","title":"Limit"},"has_more":{"type":"boolean","title":"Has More"}},"additionalProperties":false,"type":"object","required":["message","items","total_count","offset","limit","has_more"],"title":"InferenceListResponse","description":"Response schema for listing inference requests."},"InferenceUsage":{"properties":{"unit":{"type":"string","enum":["characters","audio_seconds","tokens"],"title":"Unit"},"quantity":{"type":"number","title":"Quantity"}},"type":"object","required":["unit","quantity"],"title":"InferenceUsage","description":"Billable units of a voice request-log row, in the vendor's own unit (spec 021 CONTRACTS §3.1).\n\n``tokens`` (FRD-023): a realtime SESSION row -- input + output tokens over its responses. Without it\nthe first realtime row fails the whole list response."},"InjectRequest":{"properties":{"text":{"type":"string","minLength":1,"title":"Text"}},"type":"object","required":["text"],"title":"InjectRequest","description":"Inject a context delta into a running/parked session (``inject_context``)."},"InsertOp":{"properties":{"op":{"type":"string","const":"insert","title":"Op"},"after_row_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"After Row Id"},"rows":{"items":{"$ref":"#/components/schemas/RowIn"},"type":"array","maxItems":10000,"minItems":1,"title":"Rows"}},"additionalProperties":false,"type":"object","required":["op","rows"],"title":"InsertOp","description":"Insert rows after ``after_row_id``; ``null`` inserts at the top, an absent key at the bottom."},"JobResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"job":{"additionalProperties":true,"type":"object","title":"Job"}},"additionalProperties":false,"type":"object","required":["message","job"],"title":"JobResponse"},"JoinSpec":{"properties":{"require_all":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Require All"},"timeout_seconds":{"type":"integer","exclusiveMinimum":0.0,"title":"Timeout Seconds"},"on_timeout":{"type":"string","enum":["partial","cancel"],"title":"On Timeout"}},"type":"object","required":["require_all","timeout_seconds","on_timeout"],"title":"JoinSpec","description":"Wait for several correlated event types before firing.\n\n``on_timeout`` is REQUIRED when a join is configured."},"JudgeAgreementIn":{"properties":{"run_a":{"type":"string","format":"uuid","title":"Run A","description":"A run of this evaluation."},"run_b":{"type":"string","format":"uuid","title":"Run B","description":"Another run of the same experiment, over the same rows."},"instances":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":64},{"type":"null"}],"title":"Instances","description":"Metric instances to compare; default every instance either run scored."}},"additionalProperties":false,"type":"object","required":["run_a","run_b"],"title":"JudgeAgreementIn","description":"Two runs over the same rows to compare, e.g. the chat judge against a decision judge (spec 034 J8.6)."},"JudgeAgreementResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"report":{"additionalProperties":true,"type":"object","title":"Report"}},"additionalProperties":false,"type":"object","required":["message","report"],"title":"JudgeAgreementResponse","description":"``{run_a, run_b, available_a, available_b, instances[]}`` (spec 034 J8.6)."},"JudgeIn":{"properties":{"endpoint_id":{"type":"string","title":"Endpoint Id"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name"},"kind":{"anyOf":[{"type":"string","const":"model"},{"type":"null"}],"title":"Kind"}},"additionalProperties":false,"type":"object","required":["endpoint_id"],"title":"JudgeIn","description":"A model endpoint that judges (agents cannot)."},"KeepPreviewIn":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"experiment_id":{"type":"string","format":"uuid","title":"Experiment Id"}},"additionalProperties":false,"type":"object","required":["run_id","experiment_id"],"title":"KeepPreviewIn"},"KvFp8Support":{"properties":{"eligible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Eligible"},"recommended":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Recommended"},"kv_cache_dtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kv Cache Dtype"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"KvFp8Support","description":"BudSim's FP8 KV-cache verdict for one recommended cluster (``ClusterMetrics.kv_fp8_support``).\n\nRead-only advice for the deploy UI: ``eligible`` says whether the FP8 KV cache toggle may be offered,\n``recommended`` is the toggle's default state, ``reason`` is the one line shown under it. Every field is\noptional and unknown keys are ignored, so a budsim that predates or extends the verdict still parses."},"LLMConfig":{"properties":{"handler":{"type":"string","title":"Handler","default":"gpt_safeguard"},"policy":{"$ref":"#/components/schemas/PolicyConfig"}},"type":"object","required":["policy"],"title":"LLMConfig","description":"Configuration for LLM-based rules."},"LLMSummary":{"properties":{"requested":{"type":"boolean","title":"Requested","default":false},"applied":{"type":"boolean","title":"Applied","default":false},"status":{"type":"string","enum":["not_requested","completed"],"title":"Status","default":"not_requested"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"endpoint_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Id"},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name"},"meta_analysis_applied":{"type":"boolean","title":"Meta Analysis Applied","default":false},"reviews":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reviews"}},"additionalProperties":false,"type":"object","title":"LLMSummary","description":"Provenance of the semantic pass. Mirrors budmodel `LLMSummary`.\n\nThere is no `failed` status: a failed LLM run fails the whole scan (D3), so a summary\nonly ever exists for a pass that completed or was never requested."},"LatencyDistributionBucket":{"properties":{"range":{"type":"string","title":"Range","description":"Latency range (e.g., '0-100ms')"},"count":{"type":"integer","title":"Count","description":"Number of requests in this bucket"},"percentage":{"type":"number","title":"Percentage","description":"Percentage of total requests"},"avg_latency":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Latency","description":"Average latency within this bucket"}},"type":"object","required":["range","count","percentage"],"title":"LatencyDistributionBucket","description":"Single latency distribution bucket."},"LatencyDistributionGroup":{"properties":{"model_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Model Id","description":"Model ID"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name","description":"Model display name"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id","description":"Project ID"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name","description":"Project name"},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Endpoint Id","description":"Endpoint ID"},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name","description":"Endpoint name"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id","description":"User ID"},"api_key_project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Api Key Project Id","description":"API key's project ID (for user_project grouping)"},"api_key_project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Project Name","description":"API key's project name"},"buckets":{"items":{"$ref":"#/components/schemas/LatencyDistributionBucket"},"type":"array","title":"Buckets","description":"Distribution buckets"},"total_requests":{"type":"integer","title":"Total Requests","description":"Total requests for this group"}},"type":"object","required":["buckets","total_requests"],"title":"LatencyDistributionGroup","description":"Latency distribution for a specific group."},"LatencyDistributionRequest":{"properties":{"from_date":{"type":"string","format":"date-time","title":"From Date","description":"Start date for the analysis"},"to_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To Date","description":"End date for the analysis"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters","description":"Additional filters to apply"},"group_by":{"anyOf":[{"items":{"type":"string","enum":["model","project","endpoint","user","user_project"]},"type":"array"},{"type":"null"}],"title":"Group By","description":"Dimensions to group the results by"},"buckets":{"anyOf":[{"items":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"string"}]},"type":"object"},"type":"array"},{"type":"null"}],"title":"Buckets","description":"Custom latency buckets (min, max, label)"}},"type":"object","required":["from_date"],"title":"LatencyDistributionRequest","description":"Request schema for latency distribution data."},"LatencyDistributionResponse":{"properties":{"object":{"type":"string","title":"Object","description":"Response object type","default":"latency_distribution"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"groups":{"items":{"$ref":"#/components/schemas/LatencyDistributionGroup"},"type":"array","title":"Groups","description":"Grouped distribution data"},"overall_distribution":{"items":{"$ref":"#/components/schemas/LatencyDistributionBucket"},"type":"array","title":"Overall Distribution","description":"Overall distribution aggregated across all groups"},"total_requests":{"type":"integer","title":"Total Requests","description":"Total number of requests"},"date_range":{"additionalProperties":{"type":"string","format":"date-time"},"type":"object","title":"Date Range","description":"Date range for the analysis"},"bucket_definitions":{"items":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"string"}]},"type":"object"},"type":"array","title":"Bucket Definitions","description":"The bucket ranges used for the distribution"}},"additionalProperties":false,"type":"object","required":["message","groups","overall_distribution","total_requests","date_range","bucket_definitions"],"title":"LatencyDistributionResponse","description":"Response schema for latency distribution data."},"LeaderboardBenchmark":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"label":{"type":"string","title":"Label"},"value":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Value"}},"type":"object","required":["label"],"title":"LeaderboardBenchmark","description":"Leaderboard benchmark schema."},"LeaderboardModelInfo":{"properties":{"uri":{"type":"string","title":"Uri"},"model_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Model Size"},"is_selected":{"type":"boolean","title":"Is Selected","default":false}},"type":"object","required":["uri"],"title":"LeaderboardModelInfo","description":"Leaderboard model info schema."},"LeaderboardTable":{"properties":{"model":{"$ref":"#/components/schemas/LeaderboardModelInfo"},"benchmarks":{"additionalProperties":{"$ref":"#/components/schemas/LeaderboardBenchmark"},"type":"object","title":"Benchmarks"}},"type":"object","required":["model","benchmarks"],"title":"LeaderboardTable","description":"Leaderboard table schema."},"LeaderboardTableResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"leaderboards":{"items":{"$ref":"#/components/schemas/LeaderboardTable"},"type":"array","title":"Leaderboards","default":[]}},"additionalProperties":false,"type":"object","required":["message"],"title":"LeaderboardTableResponse","description":"Leaderboard response schema."},"LifecycleRequest":{"properties":{"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"},"confirm_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm Slug"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"LifecycleRequest"},"ListAvailableAgentsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"agents":{"items":{"$ref":"#/components/schemas/AvailableAgentItem"},"type":"array","title":"Agents"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"ListAvailableAgentsResponse","description":"Paginated response for listing available A2A agents."},"ListComparisonDeploymentsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"deployments":{"items":{"$ref":"#/components/schemas/ComparisonDeployment"},"type":"array","title":"Deployments","description":"List of deployments available for comparison"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","deployments","total_pages"],"title":"ListComparisonDeploymentsResponse","description":"Response for listing deployments available for comparison."},"ListComparisonTraitsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"traits":{"items":{"$ref":"#/components/schemas/ComparisonTrait"},"type":"array","title":"Traits","description":"List of traits"},"total_count":{"type":"integer","title":"Total Count","description":"Total number of traits"}},"additionalProperties":false,"type":"object","required":["message","traits","total_count"],"title":"ListComparisonTraitsResponse","description":"Response for listing traits for comparison filtering."},"ListDatasetsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"datasets":{"items":{"$ref":"#/components/schemas/ExpDataset"},"type":"array","title":"Datasets","description":"List of datasets with traits."},"total_record":{"type":"integer","title":"Total Record","description":"Total number of datasets matching the query."},"page":{"type":"integer","title":"Page","description":"Current page number."},"limit":{"type":"integer","title":"Limit","description":"Number of datasets per page."}},"additionalProperties":false,"type":"object","required":["message","datasets","total_record","page","limit"],"title":"ListDatasetsResponse","description":"Response schema for listing datasets."},"ListEvaluationsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"evaluations":{"items":{"$ref":"#/components/schemas/EvaluationListItem"},"type":"array","title":"Evaluations","description":"List of completed evaluations"}},"additionalProperties":false,"type":"object","required":["message","evaluations"],"title":"ListEvaluationsResponse","description":"Response schema for listing completed evaluations."},"ListExperimentModelsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"models":{"items":{"$ref":"#/components/schemas/ExperimentModelListItem"},"type":"array","title":"Models","description":"List of models used in experiments."},"total_count":{"type":"integer","title":"Total Count","description":"Total number of unique models."}},"additionalProperties":false,"type":"object","required":["message","models","total_count"],"title":"ListExperimentModelsResponse","description":"Response for listing models used in experiments."},"ListExperimentsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"experiments":{"items":{"$ref":"#/components/schemas/Experiment"},"type":"array","title":"Experiments","description":"The experiments."},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","experiments","total_pages"],"title":"ListExperimentsResponse","description":"The response to list experiments with pagination."},"ListTraitsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"traits":{"items":{"$ref":"#/components/schemas/TraitBasic"},"type":"array","title":"Traits","description":"The traits."},"total_record":{"type":"integer","title":"Total Record","description":"Total number of traits matching the query."},"page":{"type":"integer","title":"Page","description":"Current page number."},"limit":{"type":"integer","title":"Limit","description":"Number of traits per page."}},"additionalProperties":false,"type":"object","required":["message","traits","total_record","page","limit"],"title":"ListTraitsResponse","description":"The response schema for listing traits."},"ListTriggersResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"triggers":{"items":{"$ref":"#/components/schemas/TriggerInfo"},"type":"array","title":"Triggers"},"budprompt_id":{"type":"string","title":"Budprompt Id"}},"additionalProperties":false,"type":"object","required":["message","triggers","budprompt_id"],"title":"ListTriggersResponse","description":"Response listing all triggers configured for an agent (across connectors)."},"LocalModelScanRequest":{"properties":{"workflow_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Workflow Id"},"workflow_total_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workflow Total Steps"},"step_number":{"type":"integer","exclusiveMinimum":0.0,"title":"Step Number"},"trigger_workflow":{"type":"boolean","title":"Trigger Workflow","default":false},"model_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Model Id"}},"type":"object","required":["step_number"],"title":"LocalModelScanRequest","description":"Local model scan request schema."},"LogoutRequest":{"properties":{"tenant_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Tenant Id","description":"The ID of the tenant. If not provided, the user will be logged in to the first tenant they belong to."},"refresh_token":{"type":"string","minLength":1,"title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"LogoutRequest","description":"Schema for logout request."},"LogoutResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"type":"string","title":"Message"}},"additionalProperties":false,"type":"object","required":["message"],"title":"LogoutResponse","description":"Schema for logout response."},"MCPToolConfig":{"properties":{"type":{"type":"string","const":"mcp","title":"Type","default":"mcp"},"server_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Label","description":"Virtual server name"},"server_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Description","description":"Server description"},"server_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Url","description":"Server URL"},"require_approval":{"type":"string","enum":["always","never","auto"],"title":"Require Approval","description":"Tool approval requirement","default":"never"},"allowed_tools":{"items":{"type":"string"},"type":"array","title":"Allowed Tools","description":"List of tool IDs allowed"},"allowed_tool_names":{"items":{"type":"string"},"type":"array","title":"Allowed Tool Names","description":"Short tool names as emitted by the runtime"},"connector_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Connector Id","description":"Virtual server ID from MCP Foundry"},"gateway_config":{"additionalProperties":{"type":"string"},"type":"object","title":"Gateway Config","description":"Gateway configuration with connector_id as key and gateway_id as value"},"gateway_slugs":{"additionalProperties":{"type":"string"},"type":"object","title":"Gateway Slugs","description":"Gateway slugs with connector_id as key and gateway_slug as value"},"server_config":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Server Config","description":"Server configuration with connector_id as key and list of tool IDs as value"}},"type":"object","title":"MCPToolConfig","description":"MCP Tool configuration stored in prompt config."},"ManifestDiffResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"comparable":{"type":"boolean","title":"Comparable"},"differences":{"items":{},"type":"array","title":"Differences","description":"judge, policy_versions, dataset_version"}},"additionalProperties":false,"type":"object","required":["message","comparable"],"title":"ManifestDiffResponse","description":"Whether two evaluations' results are directly comparable (spec 027 §5.21)."},"McpSessionRequest":{"properties":{"token":{"type":"string","title":"Token","description":"The user's CURRENT (typically expired) Keycloak access token. Signature and issuer are verified; its expiry is not."}},"type":"object","required":["token"],"title":"McpSessionRequest","description":"Request body for re-issuing a user's access token from an expired one."},"McpSessionResponse":{"properties":{"token":{"type":"string","title":"Token","description":"Fresh access token. Sent as 'Authorization: Bearer <token>'."}},"type":"object","required":["token"],"title":"McpSessionResponse","description":"A live access token for the same user as the submitted one."},"MediaInputConfig":{"properties":{"image":{"anyOf":[{"$ref":"#/components/schemas/ImageInputConfig"},{"type":"null"}],"description":"Image input configuration. Present if prompt accepts images."},"file":{"anyOf":[{"$ref":"#/components/schemas/FileInputConfig"},{"type":"null"}],"description":"File/document input configuration. Present if prompt accepts files."}},"type":"object","title":"MediaInputConfig","description":"Declares non-text inputs the prompt expects.\n\nEach field is optional - presence indicates the prompt accepts that modality.\nExtensible for future modalities (audio, video) by adding new fields."},"MemberInviteRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Name"},"role":{"type":"string","enum":["tenant_admin","member"],"title":"Role","default":"member"}},"additionalProperties":false,"type":"object","required":["email"],"title":"MemberInviteRequest"},"MemberUpdateRequest":{"properties":{"role":{"anyOf":[{"type":"string","enum":["tenant_admin","member"]},{"type":"null"}],"title":"Role"}},"additionalProperties":false,"type":"object","title":"MemberUpdateRequest"},"MemoryMetrics":{"properties":{"total_gib":{"type":"number","title":"Total Gib","default":0.0},"used_gib":{"type":"number","title":"Used Gib","default":0.0},"available_gib":{"type":"number","title":"Available Gib","default":0.0},"usage_percent":{"type":"number","title":"Usage Percent","default":0.0},"change_percent":{"type":"number","title":"Change Percent","default":0.0}},"type":"object","title":"MemoryMetrics","description":"Memory metrics schema."},"Message":{"properties":{"role":{"type":"string","enum":["system","developer","user","assistant"],"title":"Role","default":"user"},"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"$ref":"#/components/schemas/ContentPart"},{"$ref":"#/components/schemas/FileInputPart"}]},"type":"array"}],"title":"Content","description":"Text string (backward compat) or list of content parts (multipart)"}},"type":"object","required":["content"],"title":"Message","description":"Message structure for prompt execution.\n\nSupports both text-only content (backward compatible) and multipart content\n(text + images + files) via ContentPart/FileInputPart list. Non-text content\n(images, files) is only allowed in user role messages.\n\nAttributes:\n    role: The role of the message sender (system, developer, user, or assistant)\n    content: Either a text string (backward compat) or list of content parts (multipart)"},"MessageCreateRequest":{"properties":{"prompt":{"type":"string","title":"Prompt"},"response":{"additionalProperties":true,"type":"object","title":"Response"},"deployment_id":{"type":"string","format":"uuid4","title":"Deployment Id"},"input_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Input Tokens"},"output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Output Tokens"},"total_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Tokens"},"token_per_sec":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Token Per Sec"},"ttft":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ttft"},"tpot":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tpot"},"e2e_latency":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"E2E Latency"},"is_cache":{"type":"boolean","title":"Is Cache","default":false},"chat_session_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Chat Session Id"},"chat_setting_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Chat Setting Id"},"request_id":{"type":"string","format":"uuid4","title":"Request Id"}},"type":"object","required":["prompt","response","deployment_id","request_id"],"title":"MessageCreateRequest","description":"Schema for creating a message."},"MessageEditRequest":{"properties":{"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"response":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Response"},"deployment_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Deployment Id"},"request_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Request Id"},"input_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Input Tokens"},"output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Output Tokens"},"total_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Tokens"},"token_per_sec":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Token Per Sec"},"ttft":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ttft"},"tpot":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tpot"},"e2e_latency":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"E2E Latency"},"is_cache":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Cache"},"harmfullness":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Harmfullness"},"faithfulness":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Faithfulness"},"feedback":{"anyOf":[{"$ref":"#/components/schemas/FeedbackEnum"},{"type":"null"}]}},"type":"object","title":"MessageEditRequest","description":"Message edit schema."},"MessagePaginatedResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"chat_messages":{"items":{"$ref":"#/components/schemas/MessageResponse"},"type":"array","title":"Chat Messages","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"MessagePaginatedResponse","description":"Paginated response schema for retrieving messages."},"MessageResponse":{"properties":{"prompt":{"type":"string","title":"Prompt"},"response":{"additionalProperties":true,"type":"object","title":"Response"},"deployment_id":{"type":"string","format":"uuid4","title":"Deployment Id"},"input_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Input Tokens"},"output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Output Tokens"},"total_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Tokens"},"token_per_sec":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Token Per Sec"},"ttft":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ttft"},"tpot":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tpot"},"e2e_latency":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"E2E Latency"},"is_cache":{"type":"boolean","title":"Is Cache","default":false},"id":{"type":"string","format":"uuid4","title":"Id"},"chat_session_id":{"type":"string","format":"uuid4","title":"Chat Session Id"},"harmfullness":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Harmfullness"},"faithfulness":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Faithfulness"},"feedback":{"anyOf":[{"$ref":"#/components/schemas/FeedbackEnum"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["prompt","response","deployment_id","id","chat_session_id","created_at","modified_at"],"title":"MessageResponse","description":"Schema for returning a message response."},"MessageSuccessResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"chat_message":{"$ref":"#/components/schemas/MessageResponse"}},"additionalProperties":false,"type":"object","required":["message","chat_message"],"title":"MessageSuccessResponse","description":"Chat session success response schema."},"MetricConvertIn":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Description"},"judge":{"anyOf":[{"$ref":"#/components/schemas/JudgeIn"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["name"],"title":"MetricConvertIn","description":"``POST /eval-ops/metrics/{id}/convert-to-rule``: with ``judge``, steps are generated from the criteria."},"MetricCreateIn":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"kind":{"type":"string","title":"Kind","description":"builtin (preset) | rule | decision_tree | label | classifier"},"scope":{"type":"string","title":"Scope","description":"single | multi"},"group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group","description":"Library group key, e.g. answer_quality, safety, custom."},"description":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Description"},"spec":{"additionalProperties":true,"type":"object","title":"Spec","description":"INTERFACES §1.7 spec of the kind."},"reads":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Reads","description":"Fields the metric reads; derived from the spec when absent."},"direction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction","description":"Ignored: derived from the kind and the catalog (D-9)."},"default_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Default Threshold"},"default_judge":{"anyOf":[{"$ref":"#/components/schemas/JudgeIn"},{"type":"null"}]},"change_summary":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Change Summary"}},"additionalProperties":false,"type":"object","required":["name","kind","scope","spec"],"title":"MetricCreateIn","description":"``POST /eval-ops/metrics``: a custom metric and its version 1."},"MetricDuplicateIn":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Description"},"version":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Version","description":"Custom metrics: the version to copy (default latest)."},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope","description":"Built-ins that read both shapes (classifiers): single | multi."},"options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Options","description":"Built-ins: the preset's options."},"pass_labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Pass Labels","description":"Classifiers: the labels that pass."},"default_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Default Threshold"},"default_judge":{"anyOf":[{"$ref":"#/components/schemas/JudgeIn"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["name"],"title":"MetricDuplicateIn","description":"``POST /eval-ops/metrics/{id}/duplicate``: a built-in → a preset; a custom metric → a copy."},"MetricInfo":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"unit":{"type":"string","enum":["ratio","seconds","bytes","count","per_second","celsius","percent","mebibytes","other"],"title":"Unit"},"source":{"type":"string","enum":["kv","engine","pod","node","gpu","custom"],"title":"Source"},"labels":{"items":{"type":"string"},"type":"array","title":"Labels"},"recent":{"type":"boolean","title":"Recent","default":false}},"additionalProperties":true,"type":"object","required":["name","unit","source"],"title":"MetricInfo","description":"C4 ``MetricInfo``: one entry of the metric catalog (FRD §6.4)."},"MetricJobResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"job":{"additionalProperties":true,"type":"object","title":"Job"}},"additionalProperties":false,"type":"object","required":["message","job"],"title":"MetricJobResponse"},"MetricPatchIn":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Description"},"group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group"}},"additionalProperties":false,"type":"object","title":"MetricPatchIn","description":"``PATCH /eval-ops/metrics/{id}``: rename, describe or regroup (no new version)."},"MetricResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"metric":{"additionalProperties":true,"type":"object","title":"Metric"}},"additionalProperties":false,"type":"object","required":["message","metric"],"title":"MetricResponse"},"MetricTypeEnum":{"type":"string","enum":["all","memory","cpu","disk","gpu","hpu","network_bandwidth","power"],"title":"MetricTypeEnum","description":"Enum for metric types."},"MetricValue":{"properties":{"metric_name":{"type":"string","title":"Metric Name","description":"Name of the metric (e.g., accuracy, f1_score)"},"metric_value":{"type":"number","title":"Metric Value","description":"Value of the metric"}},"type":"object","required":["metric_name","metric_value"],"title":"MetricValue","description":"Individual metric value."},"MetricVersionIn":{"properties":{"spec":{"additionalProperties":true,"type":"object","title":"Spec"},"reads":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Reads"},"direction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction","description":"Ignored: derived (D-9)."},"default_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Default Threshold"},"default_judge":{"anyOf":[{"$ref":"#/components/schemas/JudgeIn"},{"type":"null"}]},"change_summary":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Change Summary"}},"additionalProperties":false,"type":"object","required":["spec"],"title":"MetricVersionIn","description":"``POST /eval-ops/metrics/{id}/versions``: the next version (kind and scope stay)."},"MetricVersionResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"version":{"additionalProperties":true,"type":"object","title":"Version","description":"{id, version, metric}"}},"additionalProperties":false,"type":"object","required":["message","version"],"title":"MetricVersionResponse"},"MetricsListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"metrics":{"additionalProperties":true,"type":"object","title":"Metrics","description":"{items[], total, groups{group: n}}"}},"additionalProperties":false,"type":"object","required":["message","metrics"],"title":"MetricsListResponse"},"ModalityEnum":{"type":"string","enum":["text_input","text_output","image_input","image_output","audio_input","audio_output"],"title":"ModalityEnum","description":"Enumeration of model modalities.\n\nThis enum represents different types of AI model modalities or capabilities.\n\nAttributes:\n    TEXT_INPUT (str): Represents text input modality.\n    TEXT_OUTPUT (str): Represents text output modality.\n    IMAGE_INPUT (str): Represents image input modality.\n    IMAGE_OUTPUT (str): Represents image output modality.\n    AUDIO_INPUT (str): Represents audio input modality.\n    AUDIO_OUTPUT (str): Represents audio output modality."},"Model":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"tasks":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tasks"},"github_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Github Url"},"huggingface_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Huggingface Url"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"},"id":{"type":"string","format":"uuid4","title":"Id"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"modality":{"additionalProperties":true,"type":"object","title":"Modality"},"source":{"type":"string","title":"Source"},"provider_type":{"$ref":"#/components/schemas/ModelProviderTypeEnum"},"uri":{"type":"string","title":"Uri"},"model_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Model Size"},"created_by":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Created By"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"provider":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}]},"supported_endpoints":{"additionalProperties":true,"type":"object","title":"Supported Endpoints"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"},"decision_family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Family"},"architecture_text_config":{"anyOf":[{"$ref":"#/components/schemas/ModelArchitectureLLMConfig"},{"type":"null"}]},"architecture_vision_config":{"anyOf":[{"$ref":"#/components/schemas/ModelArchitectureVisionConfig"},{"type":"null"}]},"architecture_audio_config":{"anyOf":[{"$ref":"#/components/schemas/ModelArchitectureAudioConfig"},{"type":"null"}]},"is_quantizable":{"type":"boolean","title":"Is Quantizable","description":"Whether this model can go through the LLM quantization pipeline.","readOnly":true},"quantization_unsupported_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quantization Unsupported Reason","description":"Human-readable reason quantization is unavailable, or None if supported.","readOnly":true},"is_adapter_supported":{"type":"boolean","title":"Is Adapter Supported","description":"Whether LoRA adapters can be attached to this model.","readOnly":true},"adapter_unsupported_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adapter Unsupported Reason","description":"Human-readable reason adapters are unavailable, or None if supported.","readOnly":true}},"type":"object","required":["name","id","modality","source","provider_type","uri","created_at","modified_at","supported_endpoints","is_quantizable","quantization_unsupported_reason","is_adapter_supported","adapter_unsupported_reason"],"title":"Model","description":"Model schema."},"ModelArchitectureAudioConfig":{"properties":{"num_layers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Layers"},"hidden_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hidden Size"},"num_attention_heads":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Attention Heads"},"num_mel_bins":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Mel Bins"},"sample_rate":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Rate"},"max_source_positions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Source Positions"},"max_target_positions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Target Positions"},"torch_dtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Torch Dtype"}},"type":"object","title":"ModelArchitectureAudioConfig","description":"Audio encoder architecture configuration for speech/audio models."},"ModelArchitectureLLMConfig":{"properties":{"num_layers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Layers"},"hidden_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hidden Size"},"intermediate_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Intermediate Size"},"context_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Length"},"vocab_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Vocab Size"},"torch_dtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Torch Dtype"},"num_attention_heads":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Attention Heads"},"num_key_value_heads":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Key Value Heads"},"rope_scaling":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rope Scaling"}},"type":"object","title":"ModelArchitectureLLMConfig","description":"Model architecture schema."},"ModelArchitectureVisionConfig":{"properties":{"num_layers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Layers"},"hidden_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hidden Size"},"intermediate_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Intermediate Size"},"torch_dtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Torch Dtype"}},"type":"object","title":"ModelArchitectureVisionConfig","description":"Model architecture schema."},"ModelAuthorResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"authors":{"items":{"type":"string"},"type":"array","title":"Authors","description":"List of matching authors"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","authors","total_pages"],"title":"ModelAuthorResponse","description":"Response schema for searching tags by name."},"ModelCatalogItem":{"properties":{"kind":{"type":"string","enum":["model","router"],"title":"Kind","default":"model"},"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"modality":{"additionalProperties":true,"type":"object","title":"Modality"},"status":{"anyOf":[{"$ref":"#/components/schemas/ModelStatusEnum"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities","default":[]},"token_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Token Limit"},"max_input_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Input Tokens"},"use_cases":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Use Cases"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"model_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Model Size"},"provider_type":{"anyOf":[{"$ref":"#/components/schemas/ModelProviderTypeEnum"},{"type":"null"}]},"uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uri"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"provider_icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Icon"},"pricing":{"anyOf":[{"$ref":"#/components/schemas/DeploymentPricingInfo"},{"type":"null"}]},"published_date":{"type":"string","format":"date-time","title":"Published Date"},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Endpoint Id"},"endpoint_name":{"type":"string","title":"Endpoint Name"},"supported_endpoints":{"additionalProperties":true,"type":"object","title":"Supported Endpoints"},"router_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Router Id"},"candidate_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Candidate Count"},"candidate_model_names":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Candidate Model Names"}},"type":"object","required":["id","name","published_date","endpoint_name"],"title":"ModelCatalogItem","description":"One entry in the customer catalog: a published deployment OR a published router.\n\nBoth kinds live in one list because a customer calls them the same way --\n``{\"model\": \"<alias>\"}`` on ``/v1/chat/completions`` -- so splitting them would leak an\ninternal distinction into the product (FRD-017 D1).\n\n``kind`` discriminates, and defaults to ``\"model\"`` so every client that predates it\nkeeps working. The model-only fields below became Optional to make room for routers;\nthey are ``None`` on a router rather than blank, because a UI can branch on a null and\nan empty ``uri`` just renders as a broken link.\n\n``endpoint_name`` is the CALLABLE ALIAS for both kinds -- the endpoint's name for a\ndeployment, the router's name for a router. budCustomer's drawer title, icon and every\ncode snippet already read this field, so a router needs no special case there."},"ModelCatalogResponse":{"properties":{"object":{"type":"string","title":"Object","default":"models.catalog"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"models":{"items":{"$ref":"#/components/schemas/ModelCatalogItem"},"type":"array","title":"Models","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"ModelCatalogResponse","description":"Paginated catalog response."},"ModelClusterDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"model":{"$ref":"#/components/schemas/ModelDetailResponse"},"cluster":{"anyOf":[{"$ref":"#/components/schemas/ClusterResponse"},{"type":"null"}]},"deployment_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Deployment Config"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Namespace"},"is_published":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Published"},"reports_token_usage":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reports Token Usage"},"concurrency":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Concurrency"},"max_input_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Input Tokens"},"max_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Tokens"},"eval_with":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eval With"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Tags"},"nodes":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Nodes"},"dataset_ids":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Dataset Ids"},"dataset_names":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Dataset Names"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"modified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Modified At"}},"additionalProperties":true,"type":"object","required":["id","name","status","model"],"title":"ModelClusterDetail","description":"Model cluster detail."},"ModelClusterDetailResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"result":{"$ref":"#/components/schemas/ModelClusterDetail"}},"additionalProperties":true,"type":"object","required":["message","result"],"title":"ModelClusterDetailResponse","description":"Model cluster detail response."},"ModelClusterRecommended":{"properties":{"cost_per_million_tokens":{"type":"number","title":"Cost Per Million Tokens"},"hardware_type":{"items":{"type":"string"},"type":"array","title":"Hardware Type"},"cluster":{"$ref":"#/components/schemas/budapp__model_ops__schemas__RecommendedCluster"}},"type":"object","required":["cost_per_million_tokens","hardware_type","cluster"],"title":"ModelClusterRecommended","description":"Model cluster recommended schema."},"ModelDeployStepRequest":{"properties":{"max_context_length":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Context Length"},"max_loras":{"anyOf":[{"type":"integer","maximum":8.0,"minimum":0.0},{"type":"null"}],"title":"Max Loras"},"lora_rank":{"anyOf":[{"type":"integer","maximum":512.0,"minimum":1.0},{"type":"null"}],"title":"Lora Rank"},"input_tokens_max":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Input Tokens Max"},"output_tokens_max":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Output Tokens Max"},"weight_precision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Precision"},"speculative_decoding":{"anyOf":[{"$ref":"#/components/schemas/SpeculativeDecodingIntent"},{"type":"null"}]},"sampling":{"anyOf":[{"type":"string","enum":["greedy","sampled"]},{"type":"null"}],"title":"Sampling"},"text_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Text Only"},"decisions_workload":{"anyOf":[{"$ref":"#/components/schemas/DecisionsWorkloadIntent"},{"type":"null"}]},"workflow_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Workflow Id"},"workflow_total_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workflow Total Steps"},"step_number":{"type":"integer","exclusiveMinimum":0.0,"title":"Step Number"},"trigger_workflow":{"type":"boolean","title":"Trigger Workflow","default":false},"model_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Model Id"},"cluster_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Cluster Id"},"project_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Project Id"},"template_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Template Id"},"endpoint_name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Endpoint Name"},"deploy_config":{"anyOf":[{"$ref":"#/components/schemas/DeploymentTemplateCreate"},{"type":"null"}]},"credential_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Credential Id"},"budaiscaler_specification":{"anyOf":[{"$ref":"#/components/schemas/BudAIScalerSpecification"},{"type":"null"}]},"hardware_mode":{"anyOf":[{"type":"string","enum":["dedicated","shared"]},{"type":"null"}],"title":"Hardware Mode"},"enable_tool_calling":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Tool Calling"},"enable_reasoning":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Reasoning"},"enable_kv_fp8":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Kv Fp8"},"tool_calling_parser_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Calling Parser Type"},"reasoning_parser_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Parser Type"},"chat_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Template"},"supports_lora":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Supports Lora"},"supports_pipeline_parallelism":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Supports Pipeline Parallelism"},"kv_fp8_support":{"anyOf":[{"$ref":"#/components/schemas/KvFp8Support"},{"type":"null"}]},"callback_topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callback Topic"},"simulator_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Simulator Id"}},"type":"object","required":["step_number"],"title":"ModelDeployStepRequest","description":"Request to deploy a model by step.\n\nInherits the FRD-027 §10.1 intent fields (``max_context_length``, ``max_loras``, ``speculative_decoding``, ...)\nflat, beside ``enable_kv_fp8``. A field sent as null clears the value an earlier step stored; an absent one leaves\nit."},"ModelDeploymentResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"modality":{"additionalProperties":true,"type":"object","title":"Modality"},"source":{"type":"string","title":"Source"},"uri":{"type":"string","title":"Uri"},"local_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local Path"},"created_user":{"anyOf":[{"$ref":"#/components/schemas/UserInfo"},{"type":"null"}]},"model_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Model Size"},"tasks":{"anyOf":[{"items":{"$ref":"#/components/schemas/Task"},"type":"array"},{"type":"null"}],"title":"Tasks"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"provider_type":{"$ref":"#/components/schemas/ModelProviderTypeEnum"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"provider":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}]},"is_present_in_model":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Present In Model"},"model_cluster_recommended":{"anyOf":[{"$ref":"#/components/schemas/ModelClusterRecommended"},{"type":"null"}]},"supported_endpoints":{"additionalProperties":true,"type":"object","title":"Supported Endpoints"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"},"decision_family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Family"},"architecture_text_config":{"anyOf":[{"$ref":"#/components/schemas/ModelArchitectureLLMConfig"},{"type":"null"}]},"architecture_vision_config":{"anyOf":[{"$ref":"#/components/schemas/ModelArchitectureVisionConfig"},{"type":"null"}]},"architecture_audio_config":{"anyOf":[{"$ref":"#/components/schemas/ModelArchitectureAudioConfig"},{"type":"null"}]},"strengths":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Strengths"},"limitations":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Limitations"},"model_licenses":{"anyOf":[{"$ref":"#/components/schemas/ModelLicenseTypeSchema"},{"type":"null"}]},"is_quantizable":{"type":"boolean","title":"Is Quantizable","description":"Whether this model can go through the LLM quantization pipeline.","readOnly":true},"quantization_unsupported_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quantization Unsupported Reason","description":"Human-readable reason quantization is unavailable, or None if supported.","readOnly":true},"is_adapter_supported":{"type":"boolean","title":"Is Adapter Supported","description":"Whether LoRA adapters can be attached to this model.","readOnly":true},"adapter_unsupported_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adapter Unsupported Reason","description":"Human-readable reason adapters are unavailable, or None if supported.","readOnly":true}},"type":"object","required":["id","name","modality","source","uri","provider_type","created_at","modified_at","supported_endpoints","is_quantizable","quantization_unsupported_reason","is_adapter_supported","adapter_unsupported_reason"],"title":"ModelDeploymentResponse","description":"Model deployment response schema."},"ModelDetail":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id","description":"Model UUID"},"name":{"type":"string","title":"Name","description":"Model name"},"deployment_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deployment Name","description":"Deployment name/namespace if deployed"}},"type":"object","required":["id","name"],"title":"ModelDetail","description":"Detailed model information for evaluations."},"ModelDetailResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"tasks":{"anyOf":[{"items":{"$ref":"#/components/schemas/Task"},"type":"array"},{"type":"null"}],"title":"Tasks"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"model_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Model Size"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"github_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Github Url"},"huggingface_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Huggingface Url"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"},"bud_verified":{"type":"boolean","title":"Bud Verified","default":false},"scan_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Scan Verified"},"eval_verified":{"type":"boolean","title":"Eval Verified","default":false},"strengths":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Strengths"},"limitations":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Limitations"},"languages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Languages"},"use_cases":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Use Cases"},"minimum_requirements":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Minimum Requirements"},"examples":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Examples"},"base_model":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Base Model"},"base_model_relation":{"anyOf":[{"$ref":"#/components/schemas/BaseModelRelationEnum"},{"type":"null"}]},"model_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Type"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"},"decision_family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Family"},"model_weights_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Model Weights Size"},"kv_cache_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Kv Cache Size"},"architecture_text_config":{"anyOf":[{"$ref":"#/components/schemas/ModelArchitectureLLMConfig"},{"type":"null"}]},"architecture_vision_config":{"anyOf":[{"$ref":"#/components/schemas/ModelArchitectureVisionConfig"},{"type":"null"}]},"architecture_audio_config":{"anyOf":[{"$ref":"#/components/schemas/ModelArchitectureAudioConfig"},{"type":"null"}]},"modality":{"additionalProperties":true,"type":"object","title":"Modality"},"source":{"type":"string","title":"Source"},"provider_type":{"$ref":"#/components/schemas/ModelProviderTypeEnum"},"uri":{"type":"string","title":"Uri"},"local_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local Path"},"paper_published":{"anyOf":[{"items":{"$ref":"#/components/schemas/PaperPublishedModel"},"type":"array"},{"type":"null"}],"title":"Paper Published"},"model_licenses":{"anyOf":[{"$ref":"#/components/schemas/ModelLicensesModel"},{"type":"null"}]},"provider":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}]},"supported_endpoints":{"additionalProperties":true,"type":"object","title":"Supported Endpoints"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"pricing":{"anyOf":[{"$ref":"#/components/schemas/DeploymentPricingInfo"},{"type":"null"}]},"is_quantizable":{"type":"boolean","title":"Is Quantizable","description":"Whether this model can go through the LLM quantization pipeline.","readOnly":true},"quantization_unsupported_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quantization Unsupported Reason","description":"Human-readable reason quantization is unavailable, or None if supported.","readOnly":true},"is_adapter_supported":{"type":"boolean","title":"Is Adapter Supported","description":"Whether LoRA adapters can be attached to this model.","readOnly":true},"adapter_unsupported_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adapter Unsupported Reason","description":"Human-readable reason adapters are unavailable, or None if supported.","readOnly":true}},"type":"object","required":["id","name","modality","source","provider_type","uri","supported_endpoints","created_at","is_quantizable","quantization_unsupported_reason","is_adapter_supported","adapter_unsupported_reason"],"title":"ModelDetailResponse","description":"Response schema for model details."},"ModelDetailSuccessResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"model":{"$ref":"#/components/schemas/ModelDetailResponse"},"scan_result":{"anyOf":[{"$ref":"#/components/schemas/ModelSecurityScanResult"},{"type":"null"}]},"eval_result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Eval Result"},"model_tree":{"$ref":"#/components/schemas/ModelTree"},"endpoints_count":{"type":"integer","title":"Endpoints Count"},"endpoint_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Id"},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name"}},"additionalProperties":false,"type":"object","required":["message","model","model_tree","endpoints_count"],"title":"ModelDetailSuccessResponse","description":"Model detail success response schema."},"ModelEndpointEnum":{"type":"string","enum":["/v1/chat/completions","/v1/embeddings","/v1/responses","/v1/audio/transcriptions","/v1/audio/translations","/v1/audio/speech","/v1/documents","/v1/batch","/v1/images/generations","/v1/images/edits","/v1/images/variations","/v1/rerank","/v1/moderations","/v1/classify","/v1/realtime","/v1/decisions"],"title":"ModelEndpointEnum","description":"Enumeration of API endpoints for different model capabilities.\n\nThis enum represents the different API endpoints that can be used to access\nvarious AI model functionalities.\n\nAttributes:\n    CHAT (str): Chat completion endpoint for conversational AI.\n    IMAGE_GENERATION (str): Image creation endpoint.\n    IMAGE_EDIT (str): Image editing endpoint for modifying existing images.\n    IMAGE_VARIATION (str): Image variation endpoint for creating variations of existing images.\n    AUDIO_TRANSCRIPTION (str): Speech-to-text conversion endpoint.\n    AUDIO_TRANSLATION (str): Audio translation to English text endpoint.\n    TEXT_TO_SPEECH (str): Text-to-speech synthesis endpoint.\n    REALTIME_SESSION (str): The OpenAI Realtime GA socket (``wss://.../v1/realtime``). One\n        capability for speech-to-speech AND transcription sessions: the deployment's\n        ``config.realtime.session_type`` says which (FRD-023 D-4).\n    EMBEDDING (str): Vector embedding generation endpoint.\n    BATCH (str): Batch processing endpoint for multiple requests.\n    RESPONSES (str): Response retrieval endpoint for asynchronous operations.\n    RERANK (str): Reranking endpoint for relevance scoring.\n    MODERATION (str): Content moderation endpoint.\n    CLASSIFY (str): Classification endpoint.\n    DECISIONS (str): The OpenAI Decisions API (FRD-031): typed answers with probabilities. The\n        gateway serves the System One route ``/v1/systemone`` under the same capability."},"ModelLicenseObjectTypeEnum":{"type":"string","enum":["url","minio"],"title":"ModelLicenseObjectTypeEnum","description":"Model license object type."},"ModelLicenseTypeSchema":{"properties":{"license_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License Type"}},"type":"object","title":"ModelLicenseTypeSchema","description":"Model Licenses Model Schema."},"ModelLicensesModel":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"faqs":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Faqs"},"license_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"suitability":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suitability"},"model_id":{"type":"string","format":"uuid4","title":"Model Id"},"data_type":{"$ref":"#/components/schemas/ModelLicenseObjectTypeEnum","default":"url"}},"type":"object","required":["id","model_id"],"title":"ModelLicensesModel","description":"Model Licenses Model Schema."},"ModelListResponse":{"properties":{"model":{"$ref":"#/components/schemas/ModelResponse"},"endpoints_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Endpoints Count"}},"type":"object","required":["model"],"title":"ModelListResponse","description":"Model list response schema."},"ModelMemoryInfoResponse":{"properties":{"model_id":{"type":"string","format":"uuid","title":"Model Id"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name"},"model_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Uri"},"estimated_weight_memory_gb":{"type":"number","title":"Estimated Weight Memory Gb"},"min_tp_for_model":{"type":"integer","title":"Min Tp For Model"}},"type":"object","required":["model_id","estimated_weight_memory_gb","min_tp_for_model"],"title":"ModelMemoryInfoResponse","description":"Model memory info response from budsim."},"ModelPaginatedResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"models":{"items":{"$ref":"#/components/schemas/ModelListResponse"},"type":"array","title":"Models","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"ModelPaginatedResponse","description":"Model paginated response schema."},"ModelPromptIn":{"properties":{"system":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"System"},"user_template":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"User Template"},"tools":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":128},{"type":"null"}],"title":"Tools","description":"OpenAI function-tool definitions."},"tool_choice":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tool Choice","description":"auto | none | required | {type: function, function: {name}}."},"temperature":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Temperature"}},"additionalProperties":false,"type":"object","title":"ModelPromptIn","description":"How a model target sees a row (spec 028 D-13, FRD §5.15).\n\nbudeval sends ``system`` and the rendered ``user_template`` (row fields as ``{input}``,\n``{context}``, ``{retrieval_context}``, ``{variables.<name>}``, ``{scenario}``), plus ``tools``\nand ``tool_choice`` when defined, at ``temperature``. Agents ignore it."},"ModelProviderTypeEnum":{"type":"string","enum":["cloud_model","hugging_face","url","disk"],"title":"ModelProviderTypeEnum","description":"Enumeration of model provider types.\n\nThis enum represents different types of model providers or sources.\n\nAttributes:\n    CLOUD_MODEL (str): Represents cloud-based model providers.\n    HUGGING_FACE (str): Represents models from the Hugging Face platform.\n    URL (str): Represents models accessible via a URL.\n    DISK (str): Represents locally stored models on disk."},"ModelResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"modality":{"additionalProperties":true,"type":"object","title":"Modality"},"source":{"type":"string","title":"Source"},"uri":{"type":"string","title":"Uri"},"local_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local Path"},"created_user":{"anyOf":[{"$ref":"#/components/schemas/UserInfo"},{"type":"null"}]},"model_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Model Size"},"tasks":{"anyOf":[{"items":{"$ref":"#/components/schemas/Task"},"type":"array"},{"type":"null"}],"title":"Tasks"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"provider_type":{"$ref":"#/components/schemas/ModelProviderTypeEnum"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"provider":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}]},"is_present_in_model":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Present In Model"},"model_cluster_recommended":{"anyOf":[{"$ref":"#/components/schemas/ModelClusterRecommended"},{"type":"null"}]},"supported_endpoints":{"additionalProperties":true,"type":"object","title":"Supported Endpoints"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"},"decision_family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Family"},"architecture_text_config":{"anyOf":[{"$ref":"#/components/schemas/ModelArchitectureLLMConfig"},{"type":"null"}]},"architecture_vision_config":{"anyOf":[{"$ref":"#/components/schemas/ModelArchitectureVisionConfig"},{"type":"null"}]},"architecture_audio_config":{"anyOf":[{"$ref":"#/components/schemas/ModelArchitectureAudioConfig"},{"type":"null"}]},"is_quantizable":{"type":"boolean","title":"Is Quantizable","description":"Whether this model can go through the LLM quantization pipeline.","readOnly":true},"quantization_unsupported_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quantization Unsupported Reason","description":"Human-readable reason quantization is unavailable, or None if supported.","readOnly":true},"is_adapter_supported":{"type":"boolean","title":"Is Adapter Supported","description":"Whether LoRA adapters can be attached to this model.","readOnly":true},"adapter_unsupported_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adapter Unsupported Reason","description":"Human-readable reason adapters are unavailable, or None if supported.","readOnly":true}},"type":"object","required":["id","name","modality","source","uri","provider_type","created_at","modified_at","supported_endpoints","is_quantizable","quantization_unsupported_reason","is_adapter_supported","adapter_unsupported_reason"],"title":"ModelResponse","description":"Model response schema."},"ModelSecurityScanResult":{"properties":{"model_id":{"type":"string","format":"uuid4","title":"Model Id"},"status":{"$ref":"#/components/schemas/ModelSecurityScanStatusEnum"},"total_issues":{"type":"integer","title":"Total Issues"},"total_scanned_files":{"type":"integer","title":"Total Scanned Files"},"total_skipped_files":{"type":"integer","title":"Total Skipped Files"},"scanned_files":{"items":{"type":"string"},"type":"array","title":"Scanned Files"},"low_severity_count":{"type":"integer","title":"Low Severity Count"},"medium_severity_count":{"type":"integer","title":"Medium Severity Count"},"high_severity_count":{"type":"integer","title":"High Severity Count"},"critical_severity_count":{"type":"integer","title":"Critical Severity Count"},"model_issues":{"additionalProperties":true,"type":"object","title":"Model Issues"},"id":{"type":"string","format":"uuid4","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["model_id","status","total_issues","total_scanned_files","total_skipped_files","scanned_files","low_severity_count","medium_severity_count","high_severity_count","critical_severity_count","model_issues","id","created_at","modified_at"],"title":"ModelSecurityScanResult","description":"Model security scan result schema."},"ModelSecurityScanStatusEnum":{"type":"string","enum":["low","medium","high","critical","safe"],"title":"ModelSecurityScanStatusEnum","description":"Model security scan status types."},"ModelSettings-Input":{"properties":{"temperature":{"type":"number","maximum":2.0,"minimum":0.0,"title":"Temperature","description":"Sampling temperature","default":0.7},"max_tokens":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Max Tokens","description":"Maximum tokens to generate"},"top_p":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Top P","description":"Nucleus sampling parameter"},"frequency_penalty":{"type":"number","maximum":2.0,"minimum":-2.0,"title":"Frequency Penalty","description":"Penalize repeated tokens","default":0.0},"presence_penalty":{"type":"number","maximum":2.0,"minimum":-2.0,"title":"Presence Penalty","description":"Penalize tokens based on presence","default":0.0},"stop_sequences":{"items":{"type":"string"},"type":"array","title":"Stop Sequences","description":"Stop generation sequences"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"Random seed for reproducibility"},"timeout":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Timeout","description":"Request timeout in seconds"},"parallel_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Parallel Tool Calls","description":"Allow parallel tool calls"},"logprobs":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Logprobs","description":"Return token log probabilities"},"logit_bias":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Logit Bias","description":"Token likelihood modifications"},"extra_headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Extra Headers","description":"Additional HTTP headers"},"max_completion_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Completion Tokens","description":"Alternative to max_tokens (OpenAI compatibility)"},"stream_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Stream Options","description":"Streaming configuration"},"response_format":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Response Format","description":"Output format control"},"tool_choice":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tool Choice","description":"Tool selection strategy"},"reasoning":{"$ref":"#/components/schemas/ReasoningSettings-Input","description":"Reasoning toggle and effort, sent to the gateway as a top-level `reasoning` object"},"chat_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Template","description":"Custom chat template"},"chat_template_kwargs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Chat Template Kwargs","description":"Template parameters (e.g., {'enable_thinking': true})"},"mm_processor_kwargs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Mm Processor Kwargs","description":"Multi-modal processor parameters"},"guided_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Guided Json","description":"JSON schema for guided generation"},"guided_regex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guided Regex","description":"Regex pattern for guided generation"},"guided_choice":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guided Choice","description":"List of allowed values"},"guided_grammar":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guided Grammar","description":"Grammar for guided generation"},"structural_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Structural Tag","description":"Structural generation tag"},"guided_decoding_backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guided Decoding Backend","description":"Backend for guided decoding"},"guided_whitespace_pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guided Whitespace Pattern","description":"Whitespace pattern for guided generation"}},"type":"object","title":"ModelSettings","description":"Model settings for LLM configuration.\n\nSupports all OpenAI and BudEcosystem parameters. Parameters not in\nOpenAIModelSettings are automatically routed to extra_body.\n\nStandard OpenAI parameters:\n    temperature: Controls randomness in the model's output (0-2)\n    max_tokens: Maximum number of tokens to generate. Optional: when unset, no token cap is\n        sent and the deployment/provider default applies. Mirrors budprompt's ModelSettings.\n    top_p: Controls diversity of the output (0-1)\n    frequency_penalty: Penalizes frequently used tokens (-2 to 2)\n    presence_penalty: Penalizes tokens based on presence in the text (-2 to 2)\n    stop_sequences: List of sequences where the model will stop generating\n    seed: Random seed for reproducibility\n    timeout: Request timeout in seconds\n    parallel_tool_calls: Allow parallel tool calls\n    logprobs: Return token log probabilities\n    logit_bias: Token likelihood modifications\n    extra_headers: Additional HTTP headers\n\nBudEcosystem-specific parameters (auto-routed to extra_body):\n    max_completion_tokens: Alternative to max_tokens (OpenAI compatibility)\n    stream_options: Streaming configuration\n    response_format: Output format control\n    tool_choice: Tool selection strategy\n    reasoning: Thinking/reasoning toggle and effort; off by default, emitted to the gateway as-is\n    chat_template: Custom chat template\n    chat_template_kwargs: Template parameters (e.g., {'enable_thinking': true})\n    mm_processor_kwargs: Multi-modal processor parameters\n    guided_json: JSON schema for guided generation\n    guided_regex: Regex pattern for guided generation\n    guided_choice: List of allowed values\n    guided_grammar: Grammar for guided generation\n    structural_tag: Structural generation tag\n    guided_decoding_backend: Backend for guided decoding\n    guided_whitespace_pattern: Whitespace pattern for guided generation"},"ModelSettings-Output":{"properties":{"temperature":{"type":"number","maximum":2.0,"minimum":0.0,"title":"Temperature","description":"Sampling temperature","default":0.7},"max_tokens":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Max Tokens","description":"Maximum tokens to generate"},"top_p":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Top P","description":"Nucleus sampling parameter"},"frequency_penalty":{"type":"number","maximum":2.0,"minimum":-2.0,"title":"Frequency Penalty","description":"Penalize repeated tokens","default":0.0},"presence_penalty":{"type":"number","maximum":2.0,"minimum":-2.0,"title":"Presence Penalty","description":"Penalize tokens based on presence","default":0.0},"stop_sequences":{"items":{"type":"string"},"type":"array","title":"Stop Sequences","description":"Stop generation sequences"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"Random seed for reproducibility"},"timeout":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Timeout","description":"Request timeout in seconds"},"parallel_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Parallel Tool Calls","description":"Allow parallel tool calls"},"logprobs":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Logprobs","description":"Return token log probabilities"},"logit_bias":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Logit Bias","description":"Token likelihood modifications"},"extra_headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Extra Headers","description":"Additional HTTP headers"},"max_completion_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Completion Tokens","description":"Alternative to max_tokens (OpenAI compatibility)"},"stream_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Stream Options","description":"Streaming configuration"},"response_format":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Response Format","description":"Output format control"},"tool_choice":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tool Choice","description":"Tool selection strategy"},"reasoning":{"$ref":"#/components/schemas/ReasoningSettings-Output","description":"Reasoning toggle and effort, sent to the gateway as a top-level `reasoning` object"},"chat_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Template","description":"Custom chat template"},"chat_template_kwargs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Chat Template Kwargs","description":"Template parameters (e.g., {'enable_thinking': true})"},"mm_processor_kwargs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Mm Processor Kwargs","description":"Multi-modal processor parameters"},"guided_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Guided Json","description":"JSON schema for guided generation"},"guided_regex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guided Regex","description":"Regex pattern for guided generation"},"guided_choice":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guided Choice","description":"List of allowed values"},"guided_grammar":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guided Grammar","description":"Grammar for guided generation"},"structural_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Structural Tag","description":"Structural generation tag"},"guided_decoding_backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guided Decoding Backend","description":"Backend for guided decoding"},"guided_whitespace_pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guided Whitespace Pattern","description":"Whitespace pattern for guided generation"}},"type":"object","title":"ModelSettings","description":"Model settings for LLM configuration.\n\nSupports all OpenAI and BudEcosystem parameters. Parameters not in\nOpenAIModelSettings are automatically routed to extra_body.\n\nStandard OpenAI parameters:\n    temperature: Controls randomness in the model's output (0-2)\n    max_tokens: Maximum number of tokens to generate. Optional: when unset, no token cap is\n        sent and the deployment/provider default applies. Mirrors budprompt's ModelSettings.\n    top_p: Controls diversity of the output (0-1)\n    frequency_penalty: Penalizes frequently used tokens (-2 to 2)\n    presence_penalty: Penalizes tokens based on presence in the text (-2 to 2)\n    stop_sequences: List of sequences where the model will stop generating\n    seed: Random seed for reproducibility\n    timeout: Request timeout in seconds\n    parallel_tool_calls: Allow parallel tool calls\n    logprobs: Return token log probabilities\n    logit_bias: Token likelihood modifications\n    extra_headers: Additional HTTP headers\n\nBudEcosystem-specific parameters (auto-routed to extra_body):\n    max_completion_tokens: Alternative to max_tokens (OpenAI compatibility)\n    stream_options: Streaming configuration\n    response_format: Output format control\n    tool_choice: Tool selection strategy\n    reasoning: Thinking/reasoning toggle and effort; off by default, emitted to the gateway as-is\n    chat_template: Custom chat template\n    chat_template_kwargs: Template parameters (e.g., {'enable_thinking': true})\n    mm_processor_kwargs: Multi-modal processor parameters\n    guided_json: JSON schema for guided generation\n    guided_regex: Regex pattern for guided generation\n    guided_choice: List of allowed values\n    guided_grammar: Grammar for guided generation\n    structural_tag: Structural generation tag\n    guided_decoding_backend: Backend for guided decoding\n    guided_whitespace_pattern: Whitespace pattern for guided generation"},"ModelStatusEnum":{"type":"string","enum":["active","deleted"],"title":"ModelStatusEnum","description":"Enumeration of entity statuses in the system.\n\nAttributes:\n    ACTIVE: Represents an active entity.\n    DELETED: Represents an deleted entity."},"ModelSummary":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id","description":"The UUID of the model."},"name":{"type":"string","title":"Name","description":"The name of the model."},"deployment_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deployment Name","description":"The deployment name/namespace if deployed."},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon","description":"The model's icon (asset key, URL or emoji)."},"provider_icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Icon","description":"The model provider's icon, the fallback for models without one."},"provider_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Type","description":"How the model is served, e.g. cloud_model or hugging_face."}},"type":"object","required":["id","name"],"title":"ModelSummary","description":"Summary of a model used in an experiment."},"ModelTemplateListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"templates":{"items":{"$ref":"#/components/schemas/ModelTemplateResponse"},"type":"array","title":"Templates"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","templates","total_pages"],"title":"ModelTemplateListResponse","description":"Model template list response schema."},"ModelTemplateResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"icon":{"type":"string","title":"Icon"},"template_type":{"type":"string","title":"Template Type"},"avg_sequence_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Sequence Length"},"avg_context_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Context Length"},"per_session_tokens_per_sec":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Per Session Tokens Per Sec"},"ttft":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Ttft"},"e2e_latency":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"E2E Latency"}},"type":"object","required":["id","name","description","icon","template_type"],"title":"ModelTemplateResponse","description":"Model template response schema."},"ModelTree":{"properties":{"adapters_count":{"type":"integer","title":"Adapters Count","default":0},"finetunes_count":{"type":"integer","title":"Finetunes Count","default":0},"merges_count":{"type":"integer","title":"Merges Count","default":0},"quantizations_count":{"type":"integer","title":"Quantizations Count","default":0}},"type":"object","title":"ModelTree","description":"Model tree schema."},"ModuleUpdateRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Settings"}},"additionalProperties":false,"type":"object","required":["enabled"],"title":"ModuleUpdateRequest","description":"``PUT /platform/modules/{key}``. ``settings`` omitted keeps the current settings."},"MoveOp":{"properties":{"op":{"type":"string","const":"move","title":"Op"},"row_id":{"type":"string","format":"uuid","title":"Row Id"},"after_row_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"After Row Id"}},"additionalProperties":false,"type":"object","required":["op","row_id"],"title":"MoveOp","description":"Move a row after ``after_row_id`` (``null``: to the top)."},"MyPermissions":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"permissions":{"items":{"additionalProperties":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}]},"type":"object"},"type":"array","title":"Permissions","default":[]}},"additionalProperties":false,"type":"object","required":["message"],"title":"MyPermissions","description":"User permissions schema."},"NativeToolConfig":{"properties":{"type":{"type":"string","const":"native","title":"Type","default":"native"},"tool_name":{"type":"string","title":"Tool Name","description":"Identifier of the native tool (e.g., 'web_search', 'web_fetch')"},"config":{"additionalProperties":true,"type":"object","title":"Config","description":"Tool-specific configuration passed as kwargs to the factory function (e.g., {'max_results': 5} for web_search)"}},"type":"object","required":["tool_name"],"title":"NativeToolConfig","description":"Native PydanticAI tool configuration stored in prompt config.\n\nNo external server or credentials needed. The tool_name maps to a\nnative PydanticAI tool that is instantiated at execution time."},"NativeToolDetail":{"properties":{"name":{"type":"string","title":"Name","description":"Tool identifier"},"display_name":{"type":"string","title":"Display Name","description":"Human-readable name"},"description":{"type":"string","title":"Description","description":"Tool description"},"icon":{"type":"string","title":"Icon","description":"Icon identifier or URL"},"connected":{"type":"boolean","title":"Connected","description":"Whether the tool is connected to this prompt"},"config_schema":{"additionalProperties":{"$ref":"#/components/schemas/ConfigParamSchema"},"type":"object","title":"Config Schema","description":"Available config parameters with types and defaults"},"connected_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Connected Config","description":"Currently applied config (null if not connected)"}},"type":"object","required":["name","display_name","description","icon","connected"],"title":"NativeToolDetail","description":"Detailed native tool info with config schema and connected config."},"NativeToolDetailResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"tool":{"$ref":"#/components/schemas/NativeToolDetail","description":"Native tool detail"}},"additionalProperties":false,"type":"object","required":["message","tool"],"title":"NativeToolDetailResponse","description":"Response for retrieving a single native tool's detail."},"NativeToolFilterEnum":{"type":"string","enum":["all","connected","not_connected"],"title":"NativeToolFilterEnum","description":"Filter options for listing native tools."},"NativeToolListItem":{"properties":{"name":{"type":"string","title":"Name","description":"Tool identifier"},"display_name":{"type":"string","title":"Display Name","description":"Human-readable name"},"description":{"type":"string","title":"Description","description":"Tool description"},"icon":{"type":"string","title":"Icon","description":"Icon identifier or URL"},"connected":{"type":"boolean","title":"Connected","description":"Whether the tool is connected to this prompt"}},"type":"object","required":["name","display_name","description","icon","connected"],"title":"NativeToolListItem","description":"A single native tool in the list response."},"NativeToolListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"tools":{"items":{"$ref":"#/components/schemas/NativeToolListItem"},"type":"array","title":"Tools"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"NativeToolListResponse","description":"Paginated response for listing native tools."},"NetworkBandwidthMetrics":{"properties":{"total_mbps":{"type":"number","title":"Total Mbps","default":0.0},"change_percent":{"type":"number","title":"Change Percent","default":0.0},"time_series":{"items":{"$ref":"#/components/schemas/budapp__cluster_ops__schemas__TimeSeriesPoint"},"type":"array","title":"Time Series"}},"type":"object","title":"NetworkBandwidthMetrics","description":"Network bandwidth metrics schema."},"NetworkMetrics":{"properties":{"inbound_mbps":{"type":"number","title":"Inbound Mbps","default":0.0},"change_percent":{"type":"number","title":"Change Percent","default":0.0},"time_series":{"items":{"$ref":"#/components/schemas/budapp__cluster_ops__schemas__TimeSeriesPoint"},"type":"array","title":"Time Series"}},"type":"object","title":"NetworkMetrics","description":"Network metrics schema."},"NetworkOutMetrics":{"properties":{"outbound_mbps":{"type":"number","title":"Outbound Mbps","default":0.0},"change_percent":{"type":"number","title":"Change Percent","default":0.0},"time_series":{"items":{"$ref":"#/components/schemas/budapp__cluster_ops__schemas__TimeSeriesPoint"},"type":"array","title":"Time Series"}},"type":"object","title":"NetworkOutMetrics","description":"Network outbound metrics schema."},"NodeConfigurationProxyRequest":{"properties":{"model_id":{"type":"string","format":"uuid","title":"Model Id"},"cluster_id":{"type":"string","format":"uuid","title":"Cluster Id"},"hostnames":{"items":{"type":"string"},"type":"array","title":"Hostnames"},"hardware_mode":{"type":"string","enum":["dedicated","shared"],"title":"Hardware Mode","default":"dedicated"},"input_tokens":{"type":"integer","title":"Input Tokens","default":1024},"output_tokens":{"type":"integer","title":"Output Tokens","default":512},"concurrency":{"type":"integer","title":"Concurrency","default":10}},"type":"object","required":["model_id","cluster_id","hostnames"],"title":"NodeConfigurationProxyRequest","description":"Request to get node configuration options from budsim."},"NodeConfigurationProxyResponse":{"properties":{"cluster_id":{"type":"string","format":"uuid","title":"Cluster Id"},"model_info":{"$ref":"#/components/schemas/ModelMemoryInfoResponse"},"device_configurations":{"items":{"$ref":"#/components/schemas/DeviceTypeConfigurationResponse"},"type":"array","title":"Device Configurations"},"selected_nodes":{"items":{"type":"string"},"type":"array","title":"Selected Nodes"},"hardware_mode":{"type":"string","title":"Hardware Mode"}},"type":"object","required":["cluster_id","model_info","device_configurations","selected_nodes","hardware_mode"],"title":"NodeConfigurationProxyResponse","description":"Response for node configuration options."},"NodeMetrics":{"properties":{"memory":{"anyOf":[{"$ref":"#/components/schemas/MemoryMetrics"},{"type":"null"}]},"cpu":{"anyOf":[{"$ref":"#/components/schemas/CpuMetrics"},{"type":"null"}]},"storage":{"anyOf":[{"$ref":"#/components/schemas/StorageMetrics"},{"type":"null"}]},"network_in":{"anyOf":[{"$ref":"#/components/schemas/NetworkMetrics"},{"type":"null"}]},"network_out":{"anyOf":[{"$ref":"#/components/schemas/NetworkOutMetrics"},{"type":"null"}]},"network_bandwidth":{"anyOf":[{"$ref":"#/components/schemas/NetworkBandwidthMetrics"},{"type":"null"}]},"power":{"anyOf":[{},{"type":"null"}],"title":"Power"}},"type":"object","title":"NodeMetrics","description":"Node level metrics schema."},"NodeMetricsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"nodes":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Nodes"},"metrics_available":{"type":"boolean","title":"Metrics Available","default":true}},"additionalProperties":false,"type":"object","required":["message","nodes"],"title":"NodeMetricsResponse","description":"Node metrics response schema.\n\nAttributes:\n    nodes: Per-node payload keyed by internal IP (or hostname when the node\n        has no internal IP). Always driven by budcluster's node inventory.\n    metrics_available: False when budmetrics could not be reached, meaning\n        every node renders with zeroed utilization. The field is declared\n        here because ``SuccessResponse`` forbids extra keys."},"NoteCreateRequest":{"properties":{"chat_session_id":{"type":"string","format":"uuid4","title":"Chat Session Id"},"note":{"type":"string","maxLength":5000,"minLength":1,"title":"Note"}},"type":"object","required":["chat_session_id","note"],"title":"NoteCreateRequest","description":"Schema for creating a note."},"NoteEditRequest":{"properties":{"note":{"type":"string","maxLength":5000,"minLength":1,"title":"Note"}},"type":"object","required":["note"],"title":"NoteEditRequest","description":"Schema for editing a note."},"NotePaginatedResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"notes":{"items":{"$ref":"#/components/schemas/NoteResponse"},"type":"array","title":"Notes","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"NotePaginatedResponse","description":"Note paginated response schema."},"NoteResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"note":{"type":"string","title":"Note"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","note","created_at","modified_at"],"title":"NoteResponse","description":"Schema for note response."},"NoteSuccessResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"note":{"$ref":"#/components/schemas/NoteResponse"}},"additionalProperties":false,"type":"object","required":["message","note"],"title":"NoteSuccessResponse","description":"Note success response schema."},"NotificationCategory":{"type":"string","enum":["inapp","internal"],"title":"NotificationCategory","description":"Represents the type of an internal notification.\n\nAttributes:\n    INAPP: Represents the in-app notification type.\n    INTERNAL: Represents the internal notification type."},"NotificationContent":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result"},"primary_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Action"},"secondary_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secondary Action"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},"type":"object","title":"NotificationContent","description":"Represents the content of a notification."},"NotificationListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"execution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Execution Id"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"prompt_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Id"},"prompt_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Version"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"execution_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Execution Status"},"policy_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Policy Id"},"policy_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Name"},"rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Name"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"hook":{"type":"string","title":"Hook"},"severity":{"type":"string","title":"Severity","default":"review"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"guidance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guidance"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"decision_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Id"},"acknowledged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Acknowledged At"},"override":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Override"},"superseded_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Superseded By"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","hook"],"title":"NotificationListItem","description":"One HOTL notify row (Notifications tab, requirement 3.c) — notify projection + run context."},"NotificationListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"governance.notification.list"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"notifications":{"items":{"$ref":"#/components/schemas/NotificationListItem"},"type":"array","title":"Notifications"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"NotificationListResponse","description":"Paginated notify listing (Notifications tab, requirement 3.c)."},"NotificationPayload":{"properties":{"category":{"$ref":"#/components/schemas/NotificationCategory"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"event":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event"},"workflow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Id"},"source":{"type":"string","title":"Source"},"content":{"$ref":"#/components/schemas/NotificationContent"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},"type":"object","required":["category","source","content"],"title":"NotificationPayload","description":"Schema for notification payload."},"NotificationRequest":{"properties":{"specversion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Specversion"},"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic"},"pubsubname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pubsubname"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"source_topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Topic"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"traceid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Traceid"},"tracestate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracestate"},"traceparent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Traceparent"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"time":{"type":"string","title":"Time"},"debug":{"type":"boolean","title":"Debug","default":false},"notification_type":{"$ref":"#/components/schemas/NotificationType","default":"event"},"name":{"type":"string","title":"Name"},"subscriber_ids":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Subscriber Ids"},"actor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor"},"topic_keys":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Topic Keys"},"payload":{"$ref":"#/components/schemas/NotificationPayload"}},"additionalProperties":false,"type":"object","required":["name","payload"],"title":"NotificationRequest","description":"Represents a notification request."},"NotificationResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"additionalProperties":false,"type":"object","required":["message"],"title":"NotificationResponse","description":"Represents a notification response."},"NotificationType":{"type":"string","enum":["event","topic","broadcast"],"title":"NotificationType","description":"Represents the type of a notification.\n\nAttributes:\n    EVENT: Notification triggered by an event.\n    TOPIC: Notification related to a specific topic.\n    BROADCAST: Notification triggered by a broadcast."},"OAuthCallbackResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"gateway_id":{"type":"string","title":"Gateway Id","description":"Gateway ID"},"user_id":{"type":"string","title":"User Id","description":"User ID/email"},"expires_at":{"type":"string","title":"Expires At","description":"Token expiration timestamp"}},"additionalProperties":false,"type":"object","required":["message","gateway_id","user_id","expires_at"],"title":"OAuthCallbackResponse","description":"Response schema for OAuth callback."},"OAuthCredentials":{"properties":{"passthrough_headers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Passthrough Headers","description":"List of headers to pass through (e.g., ['Authorization', 'X-Tenant-Id'])"},"grant_type":{"type":"string","enum":["client_credentials","authorization_code"],"title":"Grant Type","description":"OAuth grant type"},"client_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Client Id","description":"OAuth client ID"},"client_secret":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Client Secret","description":"OAuth client secret"},"token_url":{"type":"string","title":"Token Url","description":"OAuth token endpoint URL"},"authorization_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization Url","description":"OAuth authorization endpoint URL"},"redirect_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect Uri","description":"OAuth callback/redirect URI"},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes","description":"List of OAuth scopes (e.g., ['repo', 'read:user'])"},"supports_dcr":{"type":"boolean","title":"Supports Dcr","description":"Whether server supports Dynamic Client Registration (RFC 7591)","default":false},"registration_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registration Url","description":"DCR registration endpoint URL"}},"type":"object","required":["grant_type","token_url"],"title":"OAuthCredentials","description":"OAuth authentication credentials."},"OAuthFetchToolsRequest":{"properties":{"prompt_id":{"type":"string","title":"Prompt Id","description":"Prompt ID (UUID or draft ID)"},"connector_id":{"type":"string","title":"Connector Id","description":"Connector ID to fetch tools for"},"version":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Version","description":"Version of prompt config (defaults to 1)","default":1}},"type":"object","required":["prompt_id","connector_id"],"title":"OAuthFetchToolsRequest","description":"Request schema for fetching tools after OAuth."},"OAuthInitiateRequest":{"properties":{"prompt_id":{"type":"string","title":"Prompt Id","description":"Prompt ID (UUID or draft ID)"},"connector_id":{"type":"string","title":"Connector Id","description":"Connector ID to initiate OAuth for"},"version":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Version","description":"Version of prompt config (defaults to 1)","default":1}},"type":"object","required":["prompt_id","connector_id"],"title":"OAuthInitiateRequest","description":"Request schema for OAuth flow initiation."},"OAuthInitiateResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"authorization_url":{"type":"string","title":"Authorization Url","description":"OAuth authorization URL to redirect user to"},"state":{"type":"string","title":"State","description":"OAuth state parameter for security"},"expires_in":{"type":"integer","title":"Expires In","description":"State expiration time in seconds"},"gateway_id":{"type":"string","title":"Gateway Id","description":"Gateway ID used for OAuth flow"}},"additionalProperties":false,"type":"object","required":["message","authorization_url","state","expires_in","gateway_id"],"title":"OAuthInitiateResponse","description":"Response schema for OAuth initiation."},"OAuthLinkRequest":{"properties":{"provider":{"$ref":"#/components/schemas/OAuthProviderEnum","description":"OAuth provider to link"}},"type":"object","required":["provider"],"title":"OAuthLinkRequest","description":"Request model for linking OAuth account."},"OAuthLoginRequest":{"properties":{"provider":{"$ref":"#/components/schemas/OAuthProviderEnum","description":"OAuth provider to use"},"tenantId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tenantid","description":"Tenant ID for multi-tenant support"},"redirectUri":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Redirecturi","description":"Custom redirect URI after OAuth"}},"type":"object","required":["provider"],"title":"OAuthLoginRequest","description":"Request model for initiating OAuth login."},"OAuthLoginResponse":{"properties":{"authUrl":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Authurl","description":"OAuth authorization URL"},"state":{"type":"string","title":"State","description":"State parameter for CSRF protection"},"expiresAt":{"type":"string","format":"date-time","title":"Expiresat","description":"When the OAuth session expires"}},"type":"object","required":["authUrl","state","expiresAt"],"title":"OAuthLoginResponse","description":"Response model for OAuth login initiation."},"OAuthProviderConfig":{"properties":{"provider":{"$ref":"#/components/schemas/OAuthProviderEnum"},"enabled":{"type":"boolean","title":"Enabled","default":true},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clientid","description":"OAuth client ID"},"allowedDomains":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Alloweddomains","description":"Allowed email domains"},"autoCreateUsers":{"type":"boolean","title":"Autocreateusers","description":"Auto-create users on first login","default":false},"iconUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Iconurl"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname"}},"type":"object","required":["provider"],"title":"OAuthProviderConfig","description":"OAuth provider configuration."},"OAuthProviderEnum":{"type":"string","enum":["google","linkedin","github","microsoft"],"title":"OAuthProviderEnum","description":"Define supported OAuth providers.\n\nAttributes:\n    GOOGLE (str): Google OAuth provider.\n    LINKEDIN (str): LinkedIn OAuth provider.\n    GITHUB (str): GitHub OAuth provider.\n    MICROSOFT (str): Microsoft OAuth provider."},"OAuthProvidersResponse":{"properties":{"providers":{"items":{"$ref":"#/components/schemas/OAuthProviderConfig"},"type":"array","title":"Providers"},"tenantId":{"type":"string","format":"uuid","title":"Tenantid"}},"type":"object","required":["providers","tenantId"],"title":"OAuthProvidersResponse","description":"Response model for available OAuth providers."},"OAuthStatusResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"oauth_enabled":{"type":"boolean","title":"Oauth Enabled","description":"Whether OAuth is enabled for this gateway"},"grant_type":{"type":"string","title":"Grant Type","description":"OAuth grant type (e.g., 'authorization_code')"},"client_id":{"type":"string","title":"Client Id","description":"OAuth client ID"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes","description":"List of OAuth scopes"},"authorization_url":{"type":"string","title":"Authorization Url","description":"OAuth authorization endpoint URL"},"redirect_uri":{"type":"string","title":"Redirect Uri","description":"OAuth callback/redirect URI"},"status_message":{"type":"string","title":"Status Message","description":"Status message from MCP Foundry"}},"additionalProperties":false,"type":"object","required":["message","oauth_enabled","grant_type","client_id","scopes","authorization_url","redirect_uri","status_message"],"title":"OAuthStatusResponse","description":"Response schema for OAuth status check."},"OnBehalfSessionRequest":{"properties":{"project_id":{"type":"string","title":"Project Id","description":"UUID (string) of the project the run belongs to."},"api_key_id":{"type":"string","title":"Api Key Id","description":"UUID (string) of the ORIGINAL api key the minted token acts on behalf of (attribution)."}},"type":"object","required":["project_id","api_key_id"],"title":"OnBehalfSessionRequest","description":"Request body for minting an on-behalf-of-key session token (OQ-14 v2)."},"OneShotDatasetIn":{"properties":{"dataset_id":{"type":"string","format":"uuid4","title":"Dataset Id"},"dataset_version_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Dataset Version Id"}},"additionalProperties":false,"type":"object","required":["dataset_id"],"title":"OneShotDatasetIn","description":"One evaluation to run, optionally pinned to a dataset version."},"OneShotRunOut":{"properties":{"run_id":{"type":"string","title":"Run Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"target_type":{"type":"string","title":"Target Type","default":"model"},"dataset_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset Version Id"},"endpoint_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Id"},"prompt_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Id"},"prompt_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Version"}},"type":"object","required":["run_id"],"title":"OneShotRunOut","description":"A run created by the one-shot trigger."},"OneShotTargetIn":{"properties":{"target_type":{"type":"string","enum":["model","agent","recorded"],"title":"Target Type","default":"model"},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Endpoint Id"},"prompt_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Prompt Id"},"version":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Version","description":"Agent version; default the agent's default version."}},"additionalProperties":false,"type":"object","title":"OneShotTargetIn","description":"What a one-shot evaluation targets: a model endpoint, an agent version, or nothing (spec 027 §4).\n\n``recorded`` (spec 028 D-35) scores the outputs the rows already carry without calling any\ntarget; the run then needs a judge, which also becomes its ``endpoint_id``."},"OneShotTriggerIn":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"target":{"$ref":"#/components/schemas/OneShotTargetIn"},"datasets":{"items":{"$ref":"#/components/schemas/OneShotDatasetIn"},"type":"array","maxItems":50,"minItems":1,"title":"Datasets"},"judge_endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Judge Endpoint Id"},"eval_options":{"anyOf":[{"$ref":"#/components/schemas/EvalOptionsIn"},{"type":"null"}]},"red_team_options":{"anyOf":[{"$ref":"#/components/schemas/RedTeamRunOptionsIn"},{"type":"null"}]},"roles_override":{"anyOf":[{"$ref":"#/components/schemas/RolesOverrideIn"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["name","target","datasets"],"title":"OneShotTriggerIn","description":"``POST /experiments/{id}/evaluations/trigger``: the wizard's five steps in one body (spec 027 §5.23)."},"OneShotTriggerResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"evaluation_id":{"type":"string","title":"Evaluation Id"},"workflow_id":{"type":"string","title":"Workflow Id"},"runs":{"items":{"$ref":"#/components/schemas/OneShotRunOut"},"type":"array","title":"Runs"}},"additionalProperties":false,"type":"object","required":["message","evaluation_id","workflow_id"],"title":"OneShotTriggerResponse","description":"``POST /experiments/{id}/evaluations/trigger``: what was started (never the evaluation key, TC-SEC-06)."},"OpenAICompatibleDiscoverRequest":{"properties":{"credential_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Credential Id"},"api_base":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Base"},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"}},"type":"object","title":"OpenAICompatibleDiscoverRequest","description":"Ask an OpenAI-compatible server which models it serves.\n\nExactly one source of connection details is accepted: a saved credential, or\na raw base URL typed into the drawer before the credential exists. Both at\nonce is ambiguous (whose ``api_base`` wins?) and neither leaves nothing to\nprobe, so both are rejected."},"OpenAICompatibleDiscoverResponse":{"properties":{"object":{"type":"string","title":"Object","default":"models.openai_compatible.discover"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"models":{"items":{"type":"string"},"type":"array","title":"Models","default":[]},"reachable":{"type":"boolean","title":"Reachable"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"additionalProperties":false,"type":"object","required":["message","reachable"],"title":"OpenAICompatibleDiscoverResponse","description":"Result of a discovery probe.\n\nAlways returned with HTTP 200, including when the server could not be\nreached: ``reachable=False`` plus a short ``detail`` is how the UI knows to\nfall back to manual model-id entry. ``detail`` is a fixed reason chosen by\nbudapp -- it never carries the upstream body, headers or status line."},"OpenCredentials":{"properties":{"passthrough_headers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Passthrough Headers","description":"List of headers to pass through (e.g., ['Authorization', 'X-Tenant-Id'])"}},"type":"object","title":"OpenCredentials","description":"Open authentication (no auth required)."},"OptimisationNotice":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"measured":{"type":"boolean","title":"Measured","default":false}},"type":"object","required":["code","message"],"title":"OptimisationNotice","description":"Something that saves cleanly and then does less than it looks like it does."},"OrderBySpec":{"properties":{"field":{"type":"string","title":"Field"},"direction":{"type":"string","enum":["asc","desc"],"title":"Direction","default":"desc"}},"type":"object","required":["field"],"title":"OrderBySpec","description":"Sort specification for telemetry queries."},"OverrideRunRequest":{"properties":{"action":{"type":"string","const":"kill","title":"Action","default":"kill"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","title":"OverrideRunRequest","description":"Body of an async-override POST (FR-ESC-180) — a single ``kill`` action today."},"PactCapabilitiesResponse":{"properties":{"object":{"type":"string","title":"Object","default":"pact.capabilities"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"atlas":{"type":"boolean","title":"Atlas"},"tool_generation":{"type":"boolean","title":"Tool Generation"},"pact":{"additionalProperties":true,"type":"object","title":"Pact"},"limits":{"additionalProperties":{"type":"integer"},"type":"object","title":"Limits"}},"additionalProperties":false,"type":"object","required":["message","atlas","tool_generation","pact","limits"],"title":"PactCapabilitiesResponse"},"PactChannelSecretRequest":{"properties":{"rev":{"type":"integer","title":"Rev"},"provider":{"type":"string","title":"Provider"},"credentials":{"additionalProperties":{"type":"string","format":"password","writeOnly":true},"type":"object","title":"Credentials"}},"type":"object","required":["rev","provider","credentials"],"title":"PactChannelSecretRequest","description":"`PUT …/secrets/{agent}/{port}`: write-only channel credentials."},"PactExportCheck":{"properties":{"rule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"fix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fix"},"prompt_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"}},"type":"object","title":"PactExportCheck"},"PactExportEgress":{"properties":{"add":{"items":{"type":"string"},"type":"array","title":"Add"},"agents":{"items":{"type":"string"},"type":"array","title":"Agents"}},"type":"object","required":["add"],"title":"PactExportEgress","description":"Export is blocked only because the workspace keeps everything in while the agents' models are served\noutside: `add` is what `allow-egress` would need, for the user to confirm."},"PactExportNotCarried":{"properties":{"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"prompt_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Id"},"entity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity"},"kind":{"type":"string","title":"Kind"},"row":{"type":"string","title":"Row"},"what":{"type":"string","title":"What"},"why":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why"}},"type":"object","required":["kind","row","what"],"title":"PactExportNotCarried","description":"What the export moved, left out or couldn't carry into PACT, shown in the Export drawer (D-53)."},"PactExportRequest":{"properties":{"prompt_id":{"type":"string","format":"uuid","title":"Prompt Id"},"version_id":{"type":"string","format":"uuid","title":"Version Id"},"allow_egress":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allow Egress"}},"type":"object","required":["prompt_id","version_id"],"title":"PactExportRequest","description":"`POST /pact/exports`: the agent and the version to export."},"PactExportResponse":{"properties":{"object":{"type":"string","title":"Object","default":"pact_export"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"export_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Export Id"},"file_name":{"type":"string","title":"File Name"},"version":{"type":"integer","title":"Version"},"files":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Files"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size"},"checks":{"items":{"$ref":"#/components/schemas/PactExportCheck"},"type":"array","title":"Checks"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"egress":{"anyOf":[{"$ref":"#/components/schemas/PactExportEgress"},{"type":"null"}]},"egress_added":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Egress Added"},"not_carried":{"items":{"$ref":"#/components/schemas/PactExportNotCarried"},"type":"array","title":"Not Carried"}},"additionalProperties":false,"type":"object","required":["message","file_name","version"],"title":"PactExportResponse","description":"The built export, or the checks that block it (then with no `export_id`)."},"PactGithubRequest":{"properties":{"repo_url":{"type":"string","title":"Repo Url"},"git_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Git Ref"},"subdir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subdir"},"github_token":{"anyOf":[{"type":"string","format":"password","writeOnly":true},{"type":"null"}],"title":"Github Token"}},"type":"object","required":["repo_url"],"title":"PactGithubRequest","description":"`POST /pact/imports/github`. The token is encrypted into the import's envelope and never returned."},"PactImportResponse":{"properties":{"object":{"type":"string","title":"Object","default":"pact_import"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"},"status":{"type":"string","title":"Status"},"source":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Source"},"check_state":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Check State"},"error":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Error"},"inventory":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inventory"},"findings":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Findings"},"plan":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Plan"},"plan_rev":{"type":"integer","title":"Plan Rev","default":0},"apply_state":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Apply State"},"atlas":{"type":"boolean","title":"Atlas","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"additionalProperties":false,"type":"object","required":["message","id","project_id","status","created_at","updated_at"],"title":"PactImportResponse","description":"`GET /pact/imports/{id}` and every route that returns the import."},"PactListing":{"properties":{"kind":{"type":"string","title":"Kind"},"size":{"type":"integer","title":"Size"},"files":{"type":"integer","title":"Files"}},"type":"object","required":["kind","size","files"],"title":"PactListing","description":"What an upload holds, read from its entries without extracting (FRD §5.2)."},"PactPlanResponse":{"properties":{"object":{"type":"string","title":"Object","default":"pact_import.plan"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"plan":{"additionalProperties":true,"type":"object","title":"Plan"},"plan_rev":{"type":"integer","title":"Plan Rev"},"file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"},"file_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"File Ids"}},"additionalProperties":false,"type":"object","required":["message","plan","plan_rev"],"title":"PactPlanResponse","description":"A plan write's result: the plan and its new revision."},"PactProvenance":{"properties":{"source_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Label"},"imported_at":{"type":"string","format":"date-time","title":"Imported At"}},"type":"object","required":["imported_at"],"title":"PactProvenance","description":"Spec 035: where an imported agent came from, for the `pact` tag's hover."},"PactSourceInfo":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"},"imported_at":{"type":"string","format":"date-time","title":"Imported At"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size"},"files":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Files"},"has_archive":{"type":"boolean","title":"Has Archive","default":false}},"type":"object","required":["id","imported_at"],"title":"PactSourceInfo","description":"Spec 035: the agent's PACT source, for Export's Original option."},"PactUploadResponse":{"properties":{"object":{"type":"string","title":"Object","default":"pact_import.upload"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"import_id":{"type":"string","format":"uuid","title":"Import Id"},"listing":{"$ref":"#/components/schemas/PactListing"}},"additionalProperties":false,"type":"object","required":["message","import_id","listing"],"title":"PactUploadResponse"},"PagenatedProjectUserResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"users":{"items":{"$ref":"#/components/schemas/ProjectUserList"},"type":"array","title":"Users"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","users","total_pages"],"title":"PagenatedProjectUserResponse","description":"Paginated response for project users."},"PaginatedCredentialResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"credentials":{"items":{"anyOf":[{"$ref":"#/components/schemas/ProprietaryCredentialResponseList"},{"$ref":"#/components/schemas/CredentialDetails"}]},"type":"array","title":"Credentials"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","credentials","total_pages"],"title":"PaginatedCredentialResponse","description":"Paginated Credential response schema."},"PaginatedProjectsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"projects":{"items":{"$ref":"#/components/schemas/ProjectListResponse"},"type":"array","title":"Projects","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"PaginatedProjectsResponse","description":"Paginated projects response schema."},"PaginatedRouterResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"routers":{"items":{"$ref":"#/components/schemas/RouterResponse"},"type":"array","title":"Routers"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","routers","total_pages"],"title":"PaginatedRouterResponse"},"PaginatedUserProjectPermissionsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"projects":{"items":{"$ref":"#/components/schemas/UserProjectPermission"},"type":"array","title":"Projects","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"PaginatedUserProjectPermissionsResponse","description":"Paginated user project permissions response schema."},"PaperPublishedModel":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"authors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Authors"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"model_id":{"type":"string","format":"uuid4","title":"Model Id"}},"type":"object","required":["id","model_id"],"title":"PaperPublishedModel","description":"Paper Published Model Schema."},"PatchIn":{"properties":{"schedule":{"anyOf":[{"$ref":"#/components/schemas/ScheduleIn"},{"type":"null"}]},"mode":{"anyOf":[{"type":"string","enum":["fresh","production"]},{"type":"null"}],"title":"Mode"},"production":{"anyOf":[{"$ref":"#/components/schemas/ProductionIn"},{"type":"null"}]},"baseline":{"anyOf":[{"$ref":"#/components/schemas/BaselineIn"},{"type":"null"}]},"judge_endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Judge Endpoint Id"},"eval_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Eval Options"},"status":{"anyOf":[{"type":"string","enum":["active","paused"]},{"type":"null"}],"title":"Status"},"acknowledge_side_effects":{"type":"boolean","title":"Acknowledge Side Effects","default":false}},"additionalProperties":false,"type":"object","title":"PatchIn"},"PatchPlanRequest":{"properties":{"rev":{"type":"integer","title":"Rev"},"ops":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Ops"}},"type":"object","required":["rev"],"title":"PatchPlanRequest"},"PermissionList":{"properties":{"name":{"type":"string","title":"Name"},"has_permission":{"type":"boolean","title":"Has Permission"}},"type":"object","required":["name","has_permission"],"title":"PermissionList"},"PersonaIn":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"characteristics":{"type":"string","maxLength":2000,"minLength":1,"title":"Characteristics"}},"additionalProperties":false,"type":"object","required":["name","characteristics"],"title":"PersonaIn"},"PipelineRunIn":{"properties":{"attachment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Attachment Id"},"target":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Target"},"dataset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Id"},"mode":{"type":"string","enum":["fresh","production"],"title":"Mode","default":"fresh"},"production":{"anyOf":[{"$ref":"#/components/schemas/ProductionIn"},{"type":"null"}]},"judge_endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Judge Endpoint Id"},"eval_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Eval Options"},"acknowledge_side_effects":{"type":"boolean","title":"Acknowledge Side Effects","default":false},"experiment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Experiment Id"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Idempotency Key"},"callback_topic":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Callback Topic"}},"additionalProperties":false,"type":"object","title":"PipelineRunIn"},"PlatformSettingsRequest":{"properties":{"self_service_tenants":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Self Service Tenants"},"default_plan_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Default Plan Id"},"deletion_grace_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":0.0},{"type":"null"}],"title":"Deletion Grace Days"}},"additionalProperties":false,"type":"object","title":"PlatformSettingsRequest"},"PlaygroundAgentListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"agents":{"items":{"$ref":"#/components/schemas/PromptListItem"},"type":"array","title":"Agents","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"PlaygroundAgentListResponse","description":"Agent (prompt) list response for the playground's agent picker.\n\nReuses ``PromptListItem`` rather than minting a parallel shape: it already carries the fields\nthe picker needs — notably ``default_version``, without which an in-app agent silently runs\nversion 1."},"PlaygroundDeploymentListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"endpoints":{"items":{"$ref":"#/components/schemas/budapp__playground_ops__schemas__EndpointListResponse"},"type":"array","title":"Endpoints","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"PlaygroundDeploymentListResponse","description":"Playground deployment list response schema."},"PlaygroundInitializeFromSessionResponse":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id","description":"User ID extracted from BFF session"},"initialization_status":{"type":"string","title":"Initialization Status","description":"Status of initialization","default":"success"},"ttl":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ttl","description":"Session TTL in seconds based on access token expiry"},"expires_in":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires In","description":"Access token expiry in seconds"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","description":"Optional message about initialization"},"access_token":{"type":"string","title":"Access Token","description":"Keycloak access token bridged out of the BFF session. The browser MUST hold this in memory only (per FRD SEC-04) and attach as Authorization: Bearer for inference calls to budgateway."},"token_type":{"type":"string","title":"Token Type","description":"Token type","default":"Bearer"}},"type":"object","required":["user_id","access_token"],"title":"PlaygroundInitializeFromSessionResponse","description":"Response for BFF-cookie-authenticated playground init (FRD-003 §6.4).\n\nUnlike ``PlaygroundInitializeWithAccessTokenResponse``, this response DOES\ninclude ``access_token`` — the cookie-flow caller (the playground browser)\ndoes not otherwise have access to the JWT (it lives only in the BFF's\nserver-side session record, never in the browser). The browser holds the\nreturned token in memory only (never ``localStorage`` per FRD SEC-04) and\nattaches it as ``Authorization: Bearer <jwt>`` on inference calls to\nbudgateway, which recognises the token via the matching SHA-256 hash of\n``\"bud-\" + jwt`` that ``initialize_session_with_access_token`` pre-registered\nin Redis."},"PlaygroundInitializeRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token","description":"Refresh token to initialize playground session and generate new tokens"}},"type":"object","required":["refresh_token"],"title":"PlaygroundInitializeRequest","description":"Request schema for playground refresh token initialization."},"PlaygroundInitializeResponse":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id","description":"User ID from refresh token"},"initialization_status":{"type":"string","title":"Initialization Status","description":"Status of initialization","default":"success"},"ttl":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ttl","description":"Session TTL in seconds based on access token expiry"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","description":"Optional message about initialization"},"access_token":{"type":"string","title":"Access Token","description":"New access token"},"refresh_token":{"type":"string","title":"Refresh Token","description":"New refresh token"},"token_type":{"type":"string","title":"Token Type","description":"Token type","default":"Bearer"},"expires_in":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires In","description":"Access token expiry in seconds"}},"type":"object","required":["user_id","access_token","refresh_token"],"title":"PlaygroundInitializeResponse","description":"Response schema for playground refresh token initialization."},"PlaygroundInitializeWithAccessTokenRequest":{"properties":{"access_token":{"type":"string","title":"Access Token","description":"Access token to validate and use for session initialization"}},"type":"object","required":["access_token"],"title":"PlaygroundInitializeWithAccessTokenRequest","description":"Request schema for playground access token initialization (cross-app SSO).\n\nThis endpoint accepts an access token from any OAuth client in the same Keycloak realm.\nUnlike refresh tokens, access tokens can be validated by any service using Keycloak's\npublic keys, enabling cross-app SSO without shared client credentials."},"PlaygroundInitializeWithAccessTokenResponse":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id","description":"User ID extracted from access token"},"initialization_status":{"type":"string","title":"Initialization Status","description":"Status of initialization","default":"success"},"ttl":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ttl","description":"Session TTL in seconds based on access token expiry"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","description":"Optional message about initialization"},"expires_in":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires In","description":"Access token expiry in seconds (from token claims)"}},"type":"object","required":["user_id"],"title":"PlaygroundInitializeWithAccessTokenResponse","description":"Response schema for playground access token initialization (cross-app SSO).\n\nThis response does not include new tokens - the access token was validated but not refreshed.\nThe session is initialized using the provided access token's claims."},"PolicyConfig":{"properties":{"task":{"type":"string","title":"Task"},"definitions":{"items":{"$ref":"#/components/schemas/DefinitionItem"},"type":"array","title":"Definitions"},"safe_content":{"$ref":"#/components/schemas/SafeContentConfig"},"violations":{"items":{"$ref":"#/components/schemas/ViolationCategory"},"type":"array","title":"Violations"},"interpretation":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Interpretation"},"evaluation":{"anyOf":[{"$ref":"#/components/schemas/EvaluationConfig"},{"type":"null"}]},"ambiguity":{"anyOf":[{"items":{"$ref":"#/components/schemas/AmbiguityRule"},"type":"array"},{"type":"null"}],"title":"Ambiguity"}},"type":"object","required":["task","definitions","safe_content","violations"],"title":"PolicyConfig","description":"Policy configuration for LLM-based rules."},"PolicyExample":{"properties":{"input":{"type":"string","title":"Input"},"rationale":{"type":"string","title":"Rationale"},"confidence":{"type":"string","title":"Confidence","default":"high"}},"type":"object","required":["input","rationale"],"title":"PolicyExample","description":"Example for policy evaluation."},"PrefillRequest":{"properties":{"step":{"type":"string","title":"Step"}},"type":"object","required":["step"],"title":"PrefillRequest"},"PreviewConditionResult":{"properties":{"metric":{"type":"string","title":"Metric"},"aggregation":{"type":"string","enum":["avg","min","max","last","p95","count","absent"],"title":"Aggregation"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"matches":{"type":"boolean","title":"Matches"}},"additionalProperties":true,"type":"object","required":["metric","aggregation","matches"],"title":"PreviewConditionResult","description":"One condition's value for one preview group."},"PreviewGroup":{"properties":{"cluster_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Cluster Id","description":"budapp cluster id; null if the cluster isn't in budapp"},"labels":{"additionalProperties":{"type":"string"},"type":"object","title":"Labels"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"matches":{"type":"boolean","title":"Matches"},"conditions":{"items":{"$ref":"#/components/schemas/PreviewConditionResult"},"type":"array","title":"Conditions"},"cluster":{"anyOf":[{"$ref":"#/components/schemas/ClusterRef"},{"type":"null"}]},"endpoint":{"anyOf":[{"$ref":"#/components/schemas/EndpointRef-Output"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["matches"],"title":"PreviewGroup","description":"C4 ``PreviewGroup``: one group a previewed rule evaluates, enriched like an ``Alert``."},"PreviewListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"previews":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Previews"}},"additionalProperties":false,"type":"object","required":["message","previews"],"title":"PreviewListResponse"},"PreviewPlanIn":{"properties":{"row_ids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array","maxItems":100000},{"type":"null"}],"title":"Row Ids","description":"Default: every draft row."},"target":{"$ref":"#/components/schemas/PreviewTargetIn"},"judge":{"anyOf":[{"$ref":"#/components/schemas/RoleIn"},{"type":"null"}],"description":"This Try's judge; default the evaluation's judge role."}},"additionalProperties":false,"type":"object","required":["target"],"title":"PreviewPlanIn","description":"``POST …/previews/plan``."},"PreviewPlanResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"plan":{"additionalProperties":true,"type":"object","title":"Plan"}},"additionalProperties":false,"type":"object","required":["message","plan"],"title":"PreviewPlanResponse"},"PreviewResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"preview":{"additionalProperties":true,"type":"object","title":"Preview"}},"additionalProperties":false,"type":"object","required":["message","preview"],"title":"PreviewResponse"},"PreviewStartIn":{"properties":{"row_ids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array","maxItems":100000},{"type":"null"}],"title":"Row Ids","description":"Default: every draft row."},"target":{"$ref":"#/components/schemas/PreviewTargetIn"},"judge":{"anyOf":[{"$ref":"#/components/schemas/RoleIn"},{"type":"null"}],"description":"This Try's judge; default the evaluation's judge role."},"revision":{"type":"integer","minimum":0.0,"title":"Revision"},"acknowledge_side_effects":{"type":"boolean","title":"Acknowledge Side Effects","default":false}},"additionalProperties":false,"type":"object","required":["target","revision"],"title":"PreviewStartIn","description":"``POST …/previews``."},"PreviewTargetIn":{"properties":{"kind":{"type":"string","enum":["model","agent","recorded"],"title":"Kind"},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Endpoint Id"},"prompt_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Prompt Id"},"version":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Version"}},"additionalProperties":false,"type":"object","required":["kind"],"title":"PreviewTargetIn"},"PriceBasis":{"properties":{"available":{"type":"boolean","title":"Available","default":false},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"unit":{"type":"string","const":"usd_per_token","title":"Unit","default":"usd_per_token"},"source":{"type":"string","enum":["model_registry","budsim","manual","none"],"title":"Source","default":"none"},"source_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Note"},"input":{"$ref":"#/components/schemas/PriceBasisRate"},"cached_input":{"$ref":"#/components/schemas/PriceBasisRate"},"output":{"$ref":"#/components/schemas/PriceBasisRate"},"cached_input_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cached Input Note"},"overridden":{"type":"boolean","title":"Overridden","default":false},"default_source":{"type":"string","enum":["model_registry","budsim","manual","none"],"title":"Default Source","default":"none"}},"type":"object","title":"PriceBasis","description":"What every optimisation decision on this deployment is priced against (`WP-C2.2`).\n\nThe rates come from ``endpoint.inference_cost``: filled in at deploy from the cloud model\ncatalogue or BudSim, and replaceable with a contract rate through\n``PUT /endpoints/{id}/price-basis`` (``source: manual``). Each rate carries its source, so\nan edited number is never mistaken for the catalogue's. The per-deployment catalogue price\n(``GET/PUT /endpoints/{id}/pricing``) is a different thing, and the optimiser does not read it."},"PriceBasisRate":{"properties":{"usd_per_token":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Usd Per Token"},"source":{"type":"string","enum":["model_registry","budsim","manual","none"],"title":"Source","default":"none"}},"type":"object","title":"PriceBasisRate","description":"One rate of the price basis, and where it came from."},"PriceBasisResponse":{"properties":{"object":{"type":"string","title":"Object","default":"endpoint.price_basis"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"endpoint_id":{"type":"string","format":"uuid","title":"Endpoint Id"},"price_basis":{"$ref":"#/components/schemas/PriceBasis"}},"additionalProperties":false,"type":"object","required":["message","endpoint_id","price_basis"],"title":"PriceBasisResponse","description":"The price basis after an edit or a reset."},"PriceBasisUpdate":{"properties":{"input_usd_per_token":{"type":"number","maximum":0.01,"exclusiveMinimum":0.0,"title":"Input Usd Per Token"},"output_usd_per_token":{"type":"number","maximum":0.01,"exclusiveMinimum":0.0,"title":"Output Usd Per Token"},"cached_input_usd_per_token":{"anyOf":[{"type":"number","maximum":0.01,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Cached Input Usd Per Token"}},"type":"object","required":["input_usd_per_token","output_usd_per_token"],"title":"PriceBasisUpdate","description":"``PUT /endpoints/{id}/price-basis``: a contract rate, in USD per token.\n\nBounded above at $0.01 per token ($10,000 per million): the most expensive published models\nare far below it, and a value above it is almost always dollars-per-million typed where\ndollars-per-token belong."},"PriceBookAssign":{"properties":{"price_book_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Price Book Id"}},"additionalProperties":false,"type":"object","title":"PriceBookAssign"},"PriceBookBody":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","default":"USD"},"is_default":{"type":"boolean","title":"Is Default","default":false},"rates":{"items":{"$ref":"#/components/schemas/RateItem"},"type":"array","maxItems":64,"title":"Rates"}},"additionalProperties":false,"type":"object","required":["name"],"title":"PriceBookBody"},"PricingHistoryResponse":{"properties":{"object":{"type":"string","title":"Object","default":"endpoint.pricing_history"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"pricing_history":{"items":{"$ref":"#/components/schemas/DeploymentPricingResponse"},"type":"array","title":"Pricing History","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"PricingHistoryResponse","description":"Paginated pricing history response."},"PricingOptionsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"endpoint.pricing_options"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"endpoint_id":{"type":"string","format":"uuid4","title":"Endpoint Id"},"plane":{"type":"string","enum":["text","audio"],"title":"Plane"},"allowed_units":{"items":{"$ref":"#/components/schemas/PricingUnitEnum"},"type":"array","title":"Allowed Units"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities","default":[]},"unpriced_capabilities":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Unpriced Capabilities","default":{}},"suggested":{"anyOf":[{"$ref":"#/components/schemas/SuggestedPricing"},{"type":"null"}]},"rate_keys":{"items":{"type":"string"},"type":"array","title":"Rate Keys","default":[]},"required_rate_keys":{"items":{"type":"string"},"type":"array","title":"Required Rate Keys","default":[]}},"additionalProperties":false,"type":"object","required":["message","endpoint_id","plane","allowed_units"],"title":"PricingOptionsResponse","description":"What a publish or reprice form may offer for this deployment, and what to prefill it with.\n\n``allowed_units`` is the rule the publish and reprice routes enforce, so a client that\noffers only these can never be refused on unit."},"PricingUnitEnum":{"type":"string","enum":["token","character","second","minute","request"],"title":"PricingUnitEnum","description":"What a published price counts.\n\n``per_tokens`` alone cannot express a voice price: TTS vendors bill per character of\ninput text and STT vendors per second of audio, neither of which is a token. The unit\nsays WHAT is counted; ``per_tokens`` stays the quantity the quoted price covers (per\n1000 tokens, per 60 seconds, per 1 character).\n\n``TOKEN`` is the default and the only value budgateway can consume -- its\n``ModelPricing`` (tensorzero-internal/src/model.rs) has no unit and divides token\ncounts by ``per_tokens`` unconditionally."},"ProbeTypeEnum":{"type":"string","enum":["provider","model_scanner","custom"],"title":"ProbeTypeEnum","description":"Type of guardrail probe."},"ProcessingRate":{"properties":{"current_per_min":{"type":"integer","title":"Current Per Min","description":"Current processing rate per minute"},"target_per_min":{"type":"integer","title":"Target Per Min","description":"Target processing rate per minute"}},"type":"object","required":["current_per_min","target_per_min"],"title":"ProcessingRate","description":"Processing rate for an experiment."},"ProductionIn":{"properties":{"traces_per_run":{"type":"integer","title":"Traces Per Run","default":50}},"additionalProperties":false,"type":"object","title":"ProductionIn"},"ProfileAvailability":{"properties":{"profile":{"type":"string","title":"Profile"},"available":{"type":"boolean","title":"Available"},"reason_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Code"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["profile","available"],"title":"ProfileAvailability","description":"Whether one profile can be SAVED for this deployment, and why not.\n\nSeparate from a notice: this is a refusal the user would otherwise meet as a 422\nafter deciding, which FRD §5.5 exists to prevent."},"ProgressActions":{"properties":{"can_pause":{"type":"boolean","title":"Can Pause","description":"Whether the run can be paused"},"pause_url":{"type":"string","title":"Pause Url","description":"URL to pause the run"}},"type":"object","required":["can_pause","pause_url"],"title":"ProgressActions","description":"Available actions for a run."},"ProgressDataset":{"properties":{"dataset_label":{"type":"string","title":"Dataset Label","description":"Dataset label"}},"type":"object","required":["dataset_label"],"title":"ProgressDataset","description":"Dataset information in progress overview."},"ProgressInfo":{"properties":{"percent":{"type":"integer","title":"Percent","description":"Progress percentage"},"completed":{"type":"integer","title":"Completed","description":"Number of completed items"},"total":{"type":"integer","title":"Total","description":"Total number of items"}},"type":"object","required":["percent","completed","total"],"title":"ProgressInfo","description":"Progress information."},"ProgressOverview":{"properties":{"run_id":{"type":"string","title":"Run Id","description":"UUID of the run"},"title":{"type":"string","title":"Title","description":"Title of the progress overview"},"objective":{"type":"string","title":"Objective","description":"Objective of the run"},"current":{"anyOf":[{"$ref":"#/components/schemas/ProgressDataset"},{"type":"null"}],"description":"Current dataset being processed"},"progress":{"anyOf":[{"$ref":"#/components/schemas/ProgressInfo"},{"type":"null"}],"description":"Progress information"},"current_evaluation":{"type":"string","title":"Current Evaluation","description":"Current evaluation being performed"},"current_model":{"type":"string","title":"Current Model","description":"Current model being evaluated"},"processing_rate_per_min":{"type":"integer","title":"Processing Rate Per Min","description":"Processing rate per minute"},"average_score_pct":{"type":"number","title":"Average Score Pct","description":"Average score percentage"},"eta_minutes":{"type":"integer","title":"Eta Minutes","description":"Estimated time to completion in minutes"},"duration_in_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration In Seconds","description":"Total duration in seconds (for completed evaluations)"},"status":{"type":"string","title":"Status","description":"Status of the run"},"actions":{"anyOf":[{"$ref":"#/components/schemas/ProgressActions"},{"type":"null"}],"description":"Available actions"}},"type":"object","required":["run_id","title","objective","current","progress","current_evaluation","current_model","processing_rate_per_min","average_score_pct","eta_minutes","status","actions"],"title":"ProgressOverview","description":"Progress overview for a run."},"Project":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"project_type":{"$ref":"#/components/schemas/ProjectTypeEnum","default":"client_app"},"id":{"type":"string","format":"uuid4","title":"Id"},"created_by":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["name","id","created_at","modified_at"],"title":"Project","description":"Project response to client schema."},"ProjectClusterListResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"endpoint_count":{"type":"integer","title":"Endpoint Count"},"hardware_type":{"items":{"type":"string","enum":["CPU","GPU","HPU"]},"type":"array","title":"Hardware Type"},"node_count":{"type":"integer","title":"Node Count"},"worker_count":{"type":"integer","title":"Worker Count"},"status":{"$ref":"#/components/schemas/ClusterStatusEnum"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","name","endpoint_count","hardware_type","node_count","worker_count","status","created_at","modified_at"],"title":"ProjectClusterListResponse","description":"Project cluster list response schema."},"ProjectClusterPaginatedResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"clusters":{"items":{"$ref":"#/components/schemas/ProjectClusterListResponse"},"type":"array","title":"Clusters","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"ProjectClusterPaginatedResponse","description":"Project cluster paginated response schema."},"ProjectCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"project_type":{"$ref":"#/components/schemas/ProjectTypeEnum","default":"client_app"},"benchmark":{"type":"boolean","title":"Benchmark","default":false}},"type":"object","required":["name"],"title":"ProjectCreateRequest"},"ProjectDetailResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"project":{"$ref":"#/components/schemas/ProjectResponse"},"endpoints_count":{"type":"integer","title":"Endpoints Count"},"credentials_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credentials Count"},"credentials":{"anyOf":[{"items":{"$ref":"#/components/schemas/CredentialSummary"},"type":"array"},{"type":"null"}],"title":"Credentials"}},"additionalProperties":false,"type":"object","required":["message","project","endpoints_count"],"title":"ProjectDetailResponse","description":"Project response to client schema."},"ProjectListResponse":{"properties":{"project":{"$ref":"#/components/schemas/Project"},"users_count":{"type":"integer","title":"Users Count"},"endpoints_count":{"type":"integer","title":"Endpoints Count"},"credentials_count":{"type":"integer","title":"Credentials Count"},"profile_colors":{"items":{},"type":"array","title":"Profile Colors"}},"type":"object","required":["project","users_count","endpoints_count","credentials_count","profile_colors"],"title":"ProjectListResponse","description":"Project list response to client schema."},"ProjectPermissionUpdate":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"permissions":{"items":{"$ref":"#/components/schemas/PermissionList"},"type":"array","title":"Permissions"}},"type":"object","required":["user_id","project_id","permissions"],"title":"ProjectPermissionUpdate","description":"Project permission update."},"ProjectResponse":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"project_type":{"$ref":"#/components/schemas/ProjectTypeEnum","default":"client_app"},"id":{"type":"string","format":"uuid4","title":"Id"}},"type":"object","required":["name","id"],"title":"ProjectResponse","description":"Project response to client schema."},"ProjectSuccessResopnse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"project":{"$ref":"#/components/schemas/Project"}},"additionalProperties":false,"type":"object","required":["message","project"],"title":"ProjectSuccessResopnse","description":"Project success response schema."},"ProjectTypeEnum":{"type":"string","enum":["client_app","admin_app"],"title":"ProjectTypeEnum","description":"Enumeration of project types in the system.\n\nThis enum defines the different types of projects that can exist in the Bud ecosystem.\n\nAttributes:\n    CLIENT_APP: Represents a client application project.\n    ADMIN_APP: Represents an admin application project."},"ProjectUserAdd":{"properties":{"user_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"User Id"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"}},"type":"object","required":["scopes"],"title":"ProjectUserAdd","description":"User to add to project."},"ProjectUserAddList":{"properties":{"users":{"items":{"$ref":"#/components/schemas/ProjectUserAdd"},"type":"array","title":"Users"}},"type":"object","required":["users"],"title":"ProjectUserAddList","description":"List of users to add to project."},"ProjectUserList":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"email":{"type":"string","maxLength":100,"minLength":1,"format":"email","title":"Email"},"id":{"type":"string","format":"uuid4","title":"Id"},"color":{"type":"string","title":"Color"},"role":{"$ref":"#/components/schemas/UserRoleEnum"},"status":{"$ref":"#/components/schemas/UserStatusEnum"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose"},"user_type":{"$ref":"#/components/schemas/UserTypeEnum"},"permissions":{"items":{"$ref":"#/components/schemas/PermissionList"},"type":"array","title":"Permissions"},"project_role":{"type":"string","title":"Project Role"}},"type":"object","required":["name","email","id","color","role","status","user_type","permissions","project_role"],"title":"ProjectUserList","description":"List of users assigned to a project."},"ProjectUserUpdate":{"properties":{"user_ids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"User Ids"}},"type":"object","required":["user_ids"],"title":"ProjectUserUpdate"},"PromptCleanupItem":{"properties":{"prompt_id":{"type":"string","title":"Prompt Id","description":"Prompt identifier"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version","description":"Version number (defaults to 1)","default":1}},"type":"object","required":["prompt_id"],"title":"PromptCleanupItem","description":"Item for cleanup request."},"PromptCleanupRequest":{"properties":{"prompts":{"items":{"$ref":"#/components/schemas/PromptCleanupItem"},"type":"array","title":"Prompts","description":"List of prompts to cleanup with prompt_id and optional version"},"debug":{"type":"boolean","title":"Debug","description":"Run cleanup synchronously (true) or via workflow (false). Defaults to true","default":true}},"type":"object","required":["prompts"],"title":"PromptCleanupRequest","description":"Request for triggering prompt cleanup."},"PromptConfigGetResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"prompt_id":{"type":"string","title":"Prompt Id","description":"The unique identifier for the prompt configuration"},"version":{"type":"integer","title":"Version","description":"The version number of the configuration retrieved"},"data":{"$ref":"#/components/schemas/PromptConfigurationData","description":"The prompt configuration data"}},"additionalProperties":false,"type":"object","required":["message","prompt_id","version","data"],"title":"PromptConfigGetResponse","description":"Response model for getting prompt configuration.\n\nReturns the complete prompt configuration data stored in Redis."},"PromptConfigRequest":{"properties":{"prompt_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Id","description":"Unique identifier for the prompt configuration. If not provided, will be auto-generated."},"version":{"type":"integer","minimum":1.0,"title":"Version","description":"Version of the configuration to save (defaults to 1)","default":1},"set_default":{"type":"boolean","title":"Set Default","description":"Whether to set this version as the default (defaults to False)","default":false},"deployment_name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Deployment Name","description":"Model deployment name"},"model_settings":{"anyOf":[{"$ref":"#/components/schemas/ModelSettings-Input"},{"type":"null"}],"description":"Model settings configuration"},"stream":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stream","description":"Enable streaming response"},"messages":{"anyOf":[{"items":{"$ref":"#/components/schemas/Message"},"type":"array"},{"type":"null"}],"title":"Messages","description":"Conversation messages (can include system/developer messages)"},"llm_retry_limit":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Llm Retry Limit","description":"Number of LLM retries when validation fails (non-streaming only)"},"tool_retry_limit":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Tool Retry Limit","description":"Number of retry attempts for tool execution failures. When the limit is exceeded the agent is informed the tool failed instead of the run erroring."},"context_management":{"anyOf":[{"$ref":"#/components/schemas/ContextManagementSetting"},{"type":"null"}],"description":"Context compaction for long threads (spec 024). Send {compaction: 'off'} to turn it off."},"enable_tools":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Tools","description":"Enable tool calling capability (requires allow_multiple_calls=true)"},"allow_multiple_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Multiple Calls","description":"Allow multiple LLM calls for retries and tool usage. When false, only a single LLM call is made"},"system_prompt_role":{"anyOf":[{"type":"string","enum":["system","developer","user"]},{"type":"null"}],"title":"System Prompt Role","description":"Role for system prompts in OpenAI models. 'developer' only works with compatible models (not o1-mini)"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt","description":"System prompt with Jinja2 template support"},"permanent":{"type":"boolean","title":"Permanent","description":"Store configuration permanently without expiration (default: False, uses configured TTL)","default":false},"client_metadata":{"additionalProperties":true,"type":"object","title":"Client Metadata","description":"Client-provided metadata for custom tracking and identification"},"a2a_card":{"anyOf":[{"$ref":"#/components/schemas/A2ACardConfigData"},{"type":"null"}],"description":"A2A Agent Card configuration"},"supported_modalities":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Supported Modalities","description":"Deployment modalities (auto-populated from model metadata by budapp on save)"},"supported_endpoints":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Supported Endpoints","description":"API endpoints the deployment supports (auto-populated by budapp on save)"},"media_inputs":{"anyOf":[{"$ref":"#/components/schemas/MediaInputConfig"},{"type":"null"}],"description":"Non-text input declarations (image, etc.)"},"voice":{"anyOf":[{"$ref":"#/components/schemas/VoiceAgentConfig"},{"type":"null"}],"description":"Voice-agent block (spec 025): the STT and TTS deployments this agent speaks through, the voice, turn-taking and interruption. Send enabled=false to stop being a voice agent."}},"type":"object","title":"PromptConfigRequest","description":"Request model for prompt configuration.\n\nThis request allows clients to save or update prompt configurations in Redis.\nConfigurations can be partially updated - only provided fields will be updated."},"PromptConfigResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"bud_prompt_id":{"type":"string","title":"Bud Prompt Id","description":"The unique identifier for the prompt configuration from budprompt"},"bud_prompt_version":{"type":"integer","minimum":1.0,"title":"Bud Prompt Version","description":"The version of the prompt configuration from budprompt"},"voice_warnings":{"items":{"type":"string"},"type":"array","title":"Voice Warnings","description":"Non-fatal problems with the voice block (spec 025), e.g. a speech deployment not yet running"}},"additionalProperties":false,"type":"object","required":["message","bud_prompt_id","bud_prompt_version"],"title":"PromptConfigResponse","description":"Response model for prompt configuration."},"PromptConfigurationData":{"properties":{"deployment_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deployment Name","description":"Model deployment name"},"model_settings":{"anyOf":[{"$ref":"#/components/schemas/ModelSettings-Output"},{"type":"null"}],"description":"Model settings"},"stream":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stream","description":"Enable streaming response"},"input_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Input Schema","description":"JSON schema for structured input (None for unstructured)"},"input_validation":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Input Validation","description":"Generated validation codes for input schema"},"output_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output Schema","description":"JSON schema for structured output (None for unstructured)"},"output_validation":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output Validation","description":"Generated validation codes for output schema"},"messages":{"anyOf":[{"items":{"$ref":"#/components/schemas/Message"},"type":"array"},{"type":"null"}],"title":"Messages","description":"Conversation messages (can include system/developer messages)"},"llm_retry_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Llm Retry Limit","description":"Number of LLM retries when validation fails (non-streaming only)"},"tool_retry_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tool Retry Limit","description":"Number of retry attempts for tool execution failures. When the limit is exceeded the agent is informed the tool failed instead of the run erroring."},"context_management":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Context Management","description":"Context compaction setting for long threads (spec 024)"},"enable_tools":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Tools","description":"Enable tool calling capability (requires allow_multiple_calls=true)"},"allow_multiple_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Multiple Calls","description":"Allow multiple LLM calls for retries and tool usage. When false, only a single LLM call is made"},"system_prompt_role":{"anyOf":[{"type":"string","enum":["system","developer","user"]},{"type":"null"}],"title":"System Prompt Role","description":"Role for system prompts in OpenAI models. 'developer' only works with compatible models (not o1-mini)"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt","description":"System prompt with Jinja2 template support"},"tools":{"items":{"$ref":"#/components/schemas/MCPToolConfig"},"type":"array","title":"Tools","description":"MCP tool configurations"},"a2a_tools":{"items":{"$ref":"#/components/schemas/A2AToolConfig"},"type":"array","title":"A2A Tools","description":"A2A agent tool configurations for this prompt"},"governance_policy_refs":{"items":{"$ref":"#/components/schemas/GovernancePolicyRef"},"type":"array","title":"Governance Policy Refs","description":"Materialized agent-policy bindings for this prompt"},"enrich_tool_status_messages":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enrich Tool Status Messages","description":"Per-agent toggle for LLM-generated tool-call status messages"},"tool_status_messages":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tool Status Messages","description":"LLM-generated per-tool status messages, keyed by tool_key"},"native_tools":{"items":{"$ref":"#/components/schemas/NativeToolConfig"},"type":"array","title":"Native Tools","description":"List of native PydanticAI tool configurations (e.g., DuckDuckGo search, web fetch)"},"skills":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Skills","description":"Attached Agent Skills as [{id, digest}] references"},"client_metadata":{"additionalProperties":true,"type":"object","title":"Client Metadata","description":"Client-provided metadata for custom tracking and identification"},"a2a_card":{"anyOf":[{"$ref":"#/components/schemas/A2ACardConfigData"},{"type":"null"}],"description":"A2A Agent Card configuration"},"supported_modalities":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Supported Modalities","description":"Deployment modalities from model metadata"},"supported_endpoints":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Supported Endpoints","description":"API endpoints the deployment supports"},"media_inputs":{"anyOf":[{"$ref":"#/components/schemas/MediaInputConfig"},{"type":"null"}],"description":"Non-text input declarations"},"voice":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Voice","description":"Voice-agent block (spec 025)"}},"type":"object","title":"PromptConfigurationData","description":"Schema for prompt configuration data retrieved from budprompt."},"PromptDistributionBucket":{"properties":{"range":{"type":"string","title":"Range","description":"Bucket range label (e.g., '0-5', '5-10')"},"bucket_start":{"type":"number","title":"Bucket Start","description":"Start value of the bucket"},"bucket_end":{"type":"number","title":"Bucket End","description":"End value of the bucket"},"count":{"type":"integer","title":"Count","description":"Number of items in this bucket"},"avg_value":{"type":"number","title":"Avg Value","description":"Average of the metric within this bucket"}},"type":"object","required":["range","bucket_start","bucket_end","count","avg_value"],"title":"PromptDistributionBucket","description":"Single prompt distribution bucket."},"PromptDistributionRequest":{"properties":{"from_date":{"type":"string","format":"date-time","title":"From Date"},"to_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To Date"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"bucket_by":{"type":"string","enum":["concurrency","input_tokens","output_tokens"],"title":"Bucket By"},"metric":{"type":"string","enum":["total_duration_ms","ttft_ms","response_time_ms","throughput_per_user"],"title":"Metric"},"buckets":{"anyOf":[{"items":{"additionalProperties":{"anyOf":[{"type":"number"},{"type":"string"}]},"type":"object"},"type":"array"},{"type":"null"}],"title":"Buckets"}},"type":"object","required":["from_date","bucket_by","metric"],"title":"PromptDistributionRequest","description":"Request schema for prompt analytics distribution data.\n\nSupports bucketing by concurrency, input_tokens, or output_tokens (X-axis)\nand metrics like total_duration_ms, ttft_ms, response_time_ms, throughput_per_user (Y-axis)."},"PromptDistributionResponse":{"properties":{"object":{"type":"string","title":"Object","description":"Response object type","default":"prompt_distribution"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"buckets":{"items":{"$ref":"#/components/schemas/PromptDistributionBucket"},"type":"array","title":"Buckets","description":"Distribution buckets"},"total_count":{"type":"integer","title":"Total Count","description":"Total number of items across all buckets"},"bucket_by":{"type":"string","title":"Bucket By","description":"The dimension used for bucketing"},"metric":{"type":"string","title":"Metric","description":"The metric being aggregated"},"date_range":{"additionalProperties":{"type":"string","format":"date-time"},"type":"object","title":"Date Range","description":"Date range for the analysis"},"bucket_definitions":{"items":{"additionalProperties":{"anyOf":[{"type":"number"},{"type":"string"}]},"type":"object"},"type":"array","title":"Bucket Definitions","description":"The bucket ranges used for the distribution"}},"additionalProperties":false,"type":"object","required":["message","buckets","total_count","bucket_by","metric","date_range","bucket_definitions"],"title":"PromptDistributionResponse","description":"Response schema for prompt analytics distribution data."},"PromptListItem":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"project_id":{"type":"string","format":"uuid4","title":"Project Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tags"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"prompt_type":{"type":"string","title":"Prompt Type"},"model_icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Icon"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name"},"default_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Default Version"},"modality":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Modality"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"last_health_checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Health Checked At"},"is_published":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Published"},"published_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published Date"},"voice_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Voice Enabled"},"pact":{"anyOf":[{"$ref":"#/components/schemas/PactProvenance"},{"type":"null"}]}},"type":"object","required":["id","project_id","name","description","tags","created_at","modified_at","prompt_type","model_icon","model_name","default_version","modality","status"],"title":"PromptListItem","description":"Schema for individual prompt item in list."},"PromptListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"prompts":{"items":{"$ref":"#/components/schemas/PromptListItem"},"type":"array","title":"Prompts","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"type":"object","required":["message","page","limit","total_pages"],"title":"PromptListResponse","description":"Prompt list response schema."},"PromptOptimisation":{"type":"string","enum":["off","compress"],"title":"PromptOptimisation","description":"The second deployment control.\n\nTwo values, not three. A middle \"lossless\" tier was designed and dropped:\n``WP-A0.4`` established that our tool arrays and JSON key order are already\nbyte-stable end to end, so all three stages that would have constituted it have\nnothing to fix on our stack. Shipping it would have put a control in front of users\nthat measurably does nothing."},"PromptResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tags"},"project":{"$ref":"#/components/schemas/ProjectResponse"},"prompt_type":{"type":"string","title":"Prompt Type"},"auto_scale":{"type":"boolean","title":"Auto Scale"},"caching":{"type":"boolean","title":"Caching"},"concurrency":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Concurrency"},"rate_limit":{"type":"boolean","title":"Rate Limit"},"rate_limit_value":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rate Limit Value"},"default_version":{"anyOf":[{"$ref":"#/components/schemas/PromptVersionResponse"},{"type":"null"}]},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"created_by":{"type":"string","format":"uuid4","title":"Created By"},"pact_source":{"anyOf":[{"$ref":"#/components/schemas/PactSourceInfo"},{"type":"null"}]}},"type":"object","required":["id","name","description","tags","project","prompt_type","auto_scale","caching","concurrency","rate_limit","rate_limit_value","status","created_at","modified_at","created_by"],"title":"PromptResponse","description":"Prompt response schema."},"PromptSchemaConfig":{"properties":{"model_settings":{"$ref":"#/components/schemas/ModelSettings-Output"},"stream":{"type":"boolean","title":"Stream","description":"Enable streaming response","default":false},"input_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Input Schema","description":"JSON schema for structured input (None for unstructured)"},"output_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output Schema","description":"JSON schema for structured output (None for unstructured)"},"messages":{"items":{"$ref":"#/components/schemas/Message"},"type":"array","title":"Messages","description":"Conversation messages (can include system/developer messages)"},"input_data":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Input Data","description":"Input data (Dict for structured, str for unstructured)"},"output_validation_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Validation Prompt","description":"Natural language validation rules for output (only for Pydantic models in non-streaming mode)"},"input_validation_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input Validation Prompt","description":"Natural language validation rules for input (only for structured input with Pydantic models)"},"llm_retry_limit":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Llm Retry Limit","description":"Number of LLM retries when validation fails (non-streaming only)","default":3},"tool_retry_limit":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Tool Retry Limit","description":"Number of retry attempts for tool execution failures. When the limit is exceeded the agent is informed the tool failed instead of the run erroring."},"enable_tools":{"type":"boolean","title":"Enable Tools","description":"Enable tool calling capability (requires allow_multiple_calls=true)","default":false},"allow_multiple_calls":{"type":"boolean","title":"Allow Multiple Calls","description":"Allow multiple LLM calls for retries and tool usage. When false, only a single LLM call is made","default":true},"system_prompt_role":{"anyOf":[{"type":"string","enum":["system","developer","user"]},{"type":"null"}],"title":"System Prompt Role","description":"Role for system prompts in OpenAI models. 'developer' only works with compatible models (not o1-mini)"}},"type":"object","title":"PromptSchemaConfig","description":"Schema for prompt configuration stored in prompt_schema field."},"PromptSchemaRequest":{"properties":{"step_number":{"type":"integer","exclusiveMinimum":0.0,"title":"Step Number"},"trigger_workflow":{"type":"boolean","title":"Trigger Workflow","default":false},"workflow_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Workflow Id"},"workflow_total_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workflow Total Steps"},"prompt_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Id"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"set_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Set Default"},"schema":{"anyOf":[{"$ref":"#/components/schemas/SchemaBase"},{"type":"null"}]},"type":{"anyOf":[{"type":"string","enum":["input","output"]},{"type":"null"}],"title":"Type"},"deployment_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deployment Name"},"permanent":{"type":"boolean","title":"Permanent","description":"Store configuration permanently without expiration (default: False, uses configured TTL)","default":false}},"type":"object","required":["step_number"],"title":"PromptSchemaRequest","description":"Schema for prompt schema validation request.\n\nThis request model supports structured schemas with validation prompts.\nThe type field specifies whether this is an input or output schema."},"PromptTypeEnum":{"type":"string","enum":["simple_prompt","external_a2a_agent"],"title":"PromptTypeEnum","description":"Enumeration of prompt types.\n\nAttributes:\n    SIMPLE_PROMPT: Represents a simple prompt type.\n    EXTERNAL_A2A_AGENT: Represents an external A2A agent registered via the platform."},"PromptVersionListItem":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"endpoint_name":{"type":"string","title":"Endpoint Name"},"version":{"type":"integer","title":"Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"is_default_version":{"type":"boolean","title":"Is Default Version"}},"type":"object","required":["id","endpoint_name","version","created_at","modified_at","is_default_version"],"title":"PromptVersionListItem","description":"Schema for individual prompt version item in list."},"PromptVersionListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"versions":{"items":{"$ref":"#/components/schemas/PromptVersionListItem"},"type":"array","title":"Versions","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"type":"object","required":["message","page","limit","total_pages"],"title":"PromptVersionListResponse","description":"Prompt version list response schema."},"PromptVersionResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"version":{"type":"integer","title":"Version"},"endpoint":{"$ref":"#/components/schemas/EndpointResponse"},"model":{"$ref":"#/components/schemas/ModelResponse"},"cluster":{"anyOf":[{"$ref":"#/components/schemas/ClusterResponse"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","version","endpoint","model","created_at","modified_at"],"title":"PromptVersionResponse","description":"Prompt version response schema."},"PromptWatchResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"prompt_id":{"type":"string","title":"Prompt Id"},"watching":{"type":"boolean","title":"Watching","default":true},"ttl_seconds":{"type":"integer","title":"Ttl Seconds"},"heartbeat_seconds":{"type":"integer","title":"Heartbeat Seconds"}},"additionalProperties":false,"type":"object","required":["message","prompt_id","ttl_seconds","heartbeat_seconds"],"title":"PromptWatchResponse","description":"Response for POST /runs/prompt-watch — the agent-scoped presence heartbeat.\n\nFR-WATCH-050. Unconditional by design: an agent whose Runs list is open may have no run\nyet (the list opened before the first trigger fires), which is exactly the case this scope\nexists to serve. Same server-constant TTL and cadence as the run-scoped lease."},"ProprietaryCredentialDetailedView":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/ProprietaryCredentialTypeEnum"},"other_provider_creds":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Other Provider Creds"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"num_of_endpoints":{"type":"integer","title":"Num Of Endpoints"},"provider_icon":{"type":"string","title":"Provider Icon"},"endpoints":{"items":{},"type":"array","title":"Endpoints"},"guardrail_deployments":{"items":{},"type":"array","title":"Guardrail Deployments","default":[]},"num_of_guardrail_deployments":{"type":"integer","title":"Num Of Guardrail Deployments","default":0}},"type":"object","required":["name","type","other_provider_creds","id","created_at","num_of_endpoints","provider_icon","endpoints"],"title":"ProprietaryCredentialDetailedView","description":"Proprietary Credential detailed view schema."},"ProprietaryCredentialRequest":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/ProprietaryCredentialTypeEnum"},"provider_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Provider Id"},"other_provider_creds":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Other Provider Creds","default":{}}},"type":"object","required":["name","type"],"title":"ProprietaryCredentialRequest","description":"Proprietary credential request schema."},"ProprietaryCredentialResponse":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/ProprietaryCredentialTypeEnum"},"other_provider_creds":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Other Provider Creds"},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["name","type","other_provider_creds","id"],"title":"ProprietaryCredentialResponse","description":"Proprietary Credential response schema."},"ProprietaryCredentialResponseList":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/ProprietaryCredentialTypeEnum"},"other_provider_creds":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Other Provider Creds"},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"num_of_endpoints":{"type":"integer","title":"Num Of Endpoints"},"provider_icon":{"type":"string","title":"Provider Icon"}},"type":"object","required":["name","type","other_provider_creds","id","created_at","num_of_endpoints","provider_icon"],"title":"ProprietaryCredentialResponseList","description":"Proprietary Credential response list schema."},"ProprietaryCredentialTypeEnum":{"type":"string","enum":["nlp_cloud","deepinfra","anthropic","vertex_ai-vision-models","vertex_ai-ai21_models","cerebras","watsonx","predibase","volcengine","clarifai","baseten","sambanova","github","petals","replicate","vertex_ai-chat-models","azure_ai","perplexity","vertex_ai-code-text-models","vertex_ai-text-models","cohere_chat","vertex_ai-embedding-models","text-completion-openai","groq","openai","aleph_alpha","sagemaker","databricks","fireworks_ai","vertex_ai-anthropic_models","vertex_ai-mistral_models","voyage","vertex_ai-language-models","anyscale","deepseek","vertex_ai-image-models","mistral","ollama","cohere","gemini","friendliai","vertex_ai-code-chat-models","azure","codestral","vertex_ai-llama_models","together_ai","cloudflare","ai21","openrouter","bedrock","text-completion-codestral","huggingface","bud_sentinel","azure_content_safety","aws_comprehend","moonshotai","openai_compatible","xai","deepgram","elevenlabs","cartesia","waav_self_hosted","acapela","alibaba_cloud","amivoice","assemblyai","aws_polly","aws_transcribe","baidu","bhashini","cereproc","fpt_ai","gladia","gnani","google_speech","huawei_cloud","hume","ibm_watson","iflytek","murf","naver_clova","nectec","phonexia","resemble","revai","reverie","sarvam","sberdevices","smallest","speechify","speechmatics","tencent","tinkoff","unrealspeech","viettel_ai","wellsaid","yandex","zalo_ai","typesafe","liquid_ai","bespokelabs","subq","embedding_space","system_one_compatible"],"title":"ProprietaryCredentialTypeEnum"},"ProprietaryCredentialUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"type":{"$ref":"#/components/schemas/ProprietaryCredentialTypeEnum"},"other_provider_creds":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Other Provider Creds"},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Endpoint Id"}},"type":"object","required":["type"],"title":"ProprietaryCredentialUpdate","description":"Proprietary Credential update schema."},"Provider":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"type":{"type":"string","title":"Type"},"icon":{"type":"string","title":"Icon"},"capabilities":{"items":{"$ref":"#/components/schemas/ProviderCapabilityEnum"},"type":"array","title":"Capabilities"}},"type":"object","required":["id","name","description","type","icon","capabilities"],"title":"Provider","description":"Provider schema."},"ProviderCapabilityEnum":{"type":"string","enum":["model","moderation","local","text_to_speech","audio_transcription","audio_translation","realtime_session","decisions"],"title":"ProviderCapabilityEnum","description":"Enumeration for identifying provider capabilities.\n\nThis enum categorizes providers like OpenAI, Azure, and AWS Bedrock based on\nthe specific services they offer, allowing for clear differentiation between\ntheir core functionalities.\n\nAttributes:\n    MODEL: Represents providers that support model hubs or offer direct access\n           to model inference endpoints.\n    MODERATION: Represents providers that offer content moderation, safety, or\n                guardrail endpoints.\n    LOCAL: Represents providers that expose local or user-managed runtimes.\n    TEXT_TO_SPEECH: The provider can synthesise speech through the audio gateway.\n    AUDIO_TRANSCRIPTION: The provider can transcribe audio through the audio gateway.\n    AUDIO_TRANSLATION: The provider can translate audio to English text.\n    REALTIME_SESSION: The provider can serve realtime sessions (``/v1/realtime``) through the\n        audio gateway (FRD-023).\n    DECISIONS: The provider's models can serve the Decisions API (``/v1/decisions``) (FRD-031).\n\nThe first three answer \"what kind of provider is this\"; the audio three answer \"what can\nit serve\", and they are deliberately in the same array. A voice vendor keeps ``model``\nalongside them -- every provider listing in budadmin filters on ``capabilities=model``\n(``useCloudProviders.ts``), so a voice-only array would remove the vendor from the very\npicker it exists for.\n\nValues match ``ModelEndpointEnum`` member names lowercased, which is the same vocabulary\n``voice_table`` uses for an endpoint's capabilities -- one spelling across the wire, the\ncatalog and the provider row."},"ProviderResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"providers":{"items":{"$ref":"#/components/schemas/Provider"},"type":"array","title":"Providers","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"type":"object","required":["message","page","limit","total_pages"],"title":"ProviderResponse","description":"Provider response schema."},"ProvisionTriggersRequest":{"properties":{"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types","description":"Provider event types to subscribe (e.g. ['com.slack.message', 'com.slack.app_mention']). Conversational channel providers (Slack/Teams) send an EMPTY list — the service auto-derives the message/mention events from the budevent descriptor."},"credentials":{"additionalProperties":{"type":"string"},"type":"object","title":"Credentials","description":"Generic provider credential map. Keys are described by the provider's `credentials` field-spec on budevent's GET /events/descriptors (e.g. {'signing_secret': ..., 'bot_token': ...} for Slack; {'app_id': ..., 'tenant_id': ..., 'client_secret': ...} for Teams). Validated against the descriptor's `required` keys; `secret` fields are encrypted at rest by budevent."},"version":{"type":"integer","minimum":1.0,"title":"Version","description":"Prompt version the trigger applies to.","default":1},"descriptor_ref":{"type":"string","minLength":1,"title":"Descriptor Ref","description":"Provider descriptor ref = the connector's id/slug (e.g. 'slack','teams','github').","default":"slack"}},"type":"object","title":"ProvisionTriggersRequest","description":"Request to enable/replace a CONVERSATIONAL channel bot on an agent's connector.\n\nThis endpoint provisions conversational channel bots only (Slack/Teams/Workvivo):\na budevent connection + subscription whose message/mention events route to budprompt\nso the agent replies in-thread. Event (fire-and-forget) triggers are created via\n``POST /triggers`` (trigger_ops), NOT here.\n\nCredentials are GENERIC and descriptor-driven (Teams scope §2/§3.D): the caller\nsupplies a ``credentials: dict[str,str]`` whose keys are described by the provider's\n``credentials`` field-spec on budevent's ``GET /events/descriptors``. The service\nvalidates that all ``required`` keys for ``descriptor_ref`` are present (fail-closed\n400) and passes the map straight through to budevent — no per-provider\n``signing_secret``/``bot_token`` field here. Adding a provider is a descriptor change."},"ProvisionTriggersResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"trigger":{"$ref":"#/components/schemas/TriggerInfo"},"budprompt_id":{"type":"string","title":"Budprompt Id"}},"additionalProperties":false,"type":"object","required":["message","trigger","budprompt_id"],"title":"ProvisionTriggersResponse","description":"Response after enabling/replacing triggers on a connector."},"ProxyCacheResyncResponse":{"properties":{"skipped":{"type":"boolean","title":"Skipped","description":"True when a sweep was already in flight on this replica."},"projects":{"type":"integer","title":"Projects","description":"Projects whose cache entries were republished."},"credentials":{"type":"integer","title":"Credentials","description":"Credentials examined across all pages."},"failed":{"type":"integer","title":"Failed","description":"Projects that failed to republish. Non-zero means PARTIAL."}},"type":"object","required":["skipped","projects","credentials","failed"],"title":"ProxyCacheResyncResponse","description":"Outcome of one bulk gateway-auth-cache rebuild."},"PublicationHistoryEntry":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"deployment_id":{"type":"string","format":"uuid4","title":"Deployment Id"},"action":{"type":"string","title":"Action"},"performed_by":{"type":"string","format":"uuid4","title":"Performed By"},"performed_at":{"type":"string","format":"date-time","title":"Performed At"},"action_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Action Metadata"},"previous_state":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Previous State"},"new_state":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"New State"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"performed_by_user":{"anyOf":[{"$ref":"#/components/schemas/UserSummary"},{"type":"null"}]}},"type":"object","required":["id","deployment_id","action","performed_by","performed_at","created_at","modified_at"],"title":"PublicationHistoryEntry","description":"Schema for a single publication history entry."},"PublicationHistoryResponse":{"properties":{"object":{"type":"string","title":"Object","default":"endpoint.publication_history"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"history":{"items":{"$ref":"#/components/schemas/PublicationHistoryEntry"},"type":"array","title":"History","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"PublicationHistoryResponse","description":"Response schema for publication history endpoint."},"PublishAgentResponse":{"properties":{"object":{"type":"string","title":"Object","default":"prompt.publish"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"prompt_id":{"type":"string","format":"uuid4","title":"Prompt Id"},"is_published":{"type":"boolean","title":"Is Published"},"published_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published Date"},"published_by":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Published By"},"pricing":{"anyOf":[{"$ref":"#/components/schemas/AgentPricingResponse"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["message","prompt_id","is_published"],"title":"PublishAgentResponse","description":"Response schema for agent publish/unpublish operations."},"PublishEndpointResponse":{"properties":{"object":{"type":"string","title":"Object","default":"endpoint.publish"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"endpoint_id":{"type":"string","format":"uuid4","title":"Endpoint Id"},"is_published":{"type":"boolean","title":"Is Published"},"published_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published Date"},"published_by":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Published By"},"pricing":{"anyOf":[{"$ref":"#/components/schemas/DeploymentPricingResponse"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["message","endpoint_id","is_published"],"title":"PublishEndpointResponse","description":"Response schema for publish endpoint operations."},"PublishGateCheckResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result","description":"The verdict for making version_id the default; null when no gate applies."}},"additionalProperties":false,"type":"object","required":["message"],"title":"PublishGateCheckResponse"},"PublishGateIn":{"properties":{"dataset_id":{"type":"string","format":"uuid","title":"Dataset Id","description":"Dataset both versions must have been evaluated on."},"dataset_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Version Id","description":"Pin one dataset version; otherwise the candidate's latest run on the dataset is used."},"mode":{"type":"string","enum":["warn","block"],"title":"Mode","description":"warn: allow and report; block: 409 unless overridden.","default":"warn"},"tolerances":{"additionalProperties":{"type":"number"},"type":"object","title":"Tolerances","description":"{metric: largest allowed regression, in the metric's units (>= 0)}."}},"type":"object","required":["dataset_id","tolerances"],"title":"PublishGateIn","description":"An agent's publish gate: the pinned dataset, the mode and the per-metric tolerance."},"PublishGateResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"gate":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Gate"}},"additionalProperties":false,"type":"object","required":["message"],"title":"PublishGateResponse"},"PublishIn":{"properties":{"revision":{"type":"integer","minimum":0.0,"title":"Revision"},"change_summary":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Change Summary"},"keep_preview":{"anyOf":[{"$ref":"#/components/schemas/KeepPreviewIn"},{"type":"null"}],"description":"Keep this Try preview as the version's first run, in this experiment (D-17)."}},"additionalProperties":false,"type":"object","required":["revision"],"title":"PublishIn","description":"``POST …/publish``."},"PublishRouterResponse":{"properties":{"object":{"type":"string","title":"Object","default":"router.publish"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"router_id":{"type":"string","format":"uuid","title":"Router Id"},"is_published":{"type":"boolean","title":"Is Published"},"published_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published Date"},"published_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Published By"},"pricing":{"anyOf":[{"$ref":"#/components/schemas/RouterPricingResponse"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["message","router_id","is_published"],"title":"PublishRouterResponse","description":"Response to a publish/unpublish call."},"PurgeExperimentResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"purged":{"type":"boolean","title":"Purged","description":"The per-sample results were deleted in the evaluation engine.","default":true},"evaluations":{"items":{"type":"string"},"type":"array","title":"Evaluations","description":"Evaluation ids whose results were deleted."},"rows_deleted":{"type":"integer","minimum":0.0,"title":"Rows Deleted","description":"Sample rows deleted, as the evaluation engine reported.","default":0}},"additionalProperties":false,"type":"object","required":["message"],"title":"PurgeExperimentResponse","description":"``DELETE /experiments/{id}?purge=true``: the experiment's evaluation results were deleted."},"QuantizationMethod":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"hardware_support":{"items":{"type":"string"},"type":"array","title":"Hardware Support"},"method_type":{"items":{"type":"string"},"type":"array","title":"Method Type"},"runtime_hardware_support":{"items":{"type":"string"},"type":"array","title":"Runtime Hardware Support"}},"type":"object","required":["name","description","hardware_support","method_type","runtime_hardware_support"],"title":"QuantizationMethod","description":"Quantization method schema."},"QuantizationMethodResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"quantization_methods":{"items":{"$ref":"#/components/schemas/QuantizationMethod"},"type":"array","title":"Quantization Methods","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"QuantizationMethodResponse","description":"Quantization method response schema."},"QuantizeConfig":{"properties":{"bit":{"type":"integer","enum":[8,4],"title":"Bit"},"granularity":{"type":"string","enum":["per_tensor","per_channel","per_group","per_head","per_token"],"title":"Granularity"},"symmetric":{"type":"boolean","title":"Symmetric"}},"type":"object","required":["bit","granularity","symmetric"],"title":"QuantizeConfig","description":"Quantize config schema."},"QuantizeModelWorkflowRequest":{"properties":{"workflow_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Workflow Id"},"workflow_total_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workflow Total Steps"},"step_number":{"type":"integer","exclusiveMinimum":0.0,"title":"Step Number"},"trigger_workflow":{"type":"boolean","title":"Trigger Workflow","default":false},"model_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Model Id"},"quantized_model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quantized Model Name"},"target_type":{"anyOf":[{"type":"string","enum":["INT8","INT4"]},{"type":"null"}],"title":"Target Type"},"target_device":{"anyOf":[{"type":"string","enum":["CPU","CUDA"]},{"type":"null"}],"title":"Target Device"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"},"weight_config":{"anyOf":[{"$ref":"#/components/schemas/QuantizeConfig"},{"type":"null"}]},"activation_config":{"anyOf":[{"$ref":"#/components/schemas/QuantizeConfig"},{"type":"null"}]},"cluster_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Cluster Id"}},"type":"object","required":["step_number"],"title":"QuantizeModelWorkflowRequest","description":"Quantize model workflow request schema."},"QuantizeModelWorkflowStepData":{"properties":{"model_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Model Id"},"quantized_model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quantized Model Name"},"target_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Type"},"target_device":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Device"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"},"weight_config":{"anyOf":[{"$ref":"#/components/schemas/QuantizeConfig"},{"type":"null"}]},"activation_config":{"anyOf":[{"$ref":"#/components/schemas/QuantizeConfig"},{"type":"null"}]},"cluster_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Cluster Id"},"simulation_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Simulation Id"},"quantization_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Quantization Data"},"quantized_model_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Quantized Model Id"}},"type":"object","required":["quantized_model_name","target_type","target_device"],"title":"QuantizeModelWorkflowStepData","description":"Quantize model workflow step data schema."},"QuotaItem":{"properties":{"meter":{"type":"string","maxLength":48,"title":"Meter"},"limit":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"}],"title":"Limit"},"period":{"type":"string","title":"Period"},"action":{"type":"string","title":"Action","default":"block"},"policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy"}},"additionalProperties":false,"type":"object","required":["meter","limit","period"],"title":"QuotaItem"},"QuotasPut":{"properties":{"quotas":{"items":{"$ref":"#/components/schemas/QuotaItem"},"type":"array","maxItems":64,"title":"Quotas"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","title":"QuotasPut"},"RadarChartResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"traits":{"items":{"$ref":"#/components/schemas/RadarTraitInfo"},"type":"array","title":"Traits","description":"List of traits for axis labels"},"deployments":{"items":{"$ref":"#/components/schemas/DeploymentRadarData"},"type":"array","title":"Deployments","description":"Radar data per deployment"}},"additionalProperties":false,"type":"object","required":["message","traits","deployments"],"title":"RadarChartResponse","description":"Response for radar chart data."},"RadarTraitInfo":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id","description":"Trait ID"},"name":{"type":"string","title":"Name","description":"Trait name"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon","description":"Trait icon"}},"type":"object","required":["id","name"],"title":"RadarTraitInfo","description":"Trait info for radar chart axis labels."},"RateItem":{"properties":{"meter":{"type":"string","title":"Meter"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"unit_price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"}],"title":"Unit Price","default":"0"},"tiers":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tier"},"type":"array","maxItems":32},{"type":"null"}],"title":"Tiers"}},"additionalProperties":false,"type":"object","required":["meter"],"title":"RateItem"},"RateLimitConfig-Input":{"properties":{"algorithm":{"type":"string","title":"Algorithm","default":"token_bucket"},"requests_per_second":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requests Per Second"},"requests_per_minute":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requests Per Minute"},"requests_per_hour":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requests Per Hour"},"burst_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Burst Size"},"enabled":{"type":"boolean","title":"Enabled","default":true},"max_concurrent":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Concurrent"}},"type":"object","title":"RateLimitConfig","description":"Rate limiting configuration for endpoints."},"RateLimitConfig-Output":{},"RealtimeConfigOptions":{"properties":{"session_type":{"type":"string","title":"Session Type"},"voices":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Voices"},"output_modalities":{"items":{"items":{"type":"string"},"type":"array"},"type":"array","title":"Output Modalities"},"turn_detection_types":{"items":{"type":"string"},"type":"array","title":"Turn Detection Types"},"eagerness_levels":{"items":{"type":"string"},"type":"array","title":"Eagerness Levels"},"server_vad_ranges":{"additionalProperties":{"items":{"anyOf":[{"type":"integer"},{"type":"number"}]},"type":"array"},"type":"object","title":"Server Vad Ranges"},"transcription_models":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Transcription Models"},"noise_reduction":{"items":{"type":"string"},"type":"array","title":"Noise Reduction"},"speed_range":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Speed Range"},"max_output_tokens_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Tokens Max"},"max_session_seconds_cap":{"type":"integer","title":"Max Session Seconds Cap"},"engine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine"},"supported_defaults":{"items":{"type":"string"},"type":"array","title":"Supported Defaults"},"supported_policy":{"items":{"type":"string"},"type":"array","title":"Supported Policy"},"input_transcription_fields":{"items":{"type":"string"},"type":"array","title":"Input Transcription Fields"},"custom_voices":{"type":"boolean","title":"Custom Voices","default":false},"setup_time_only":{"type":"boolean","title":"Setup Time Only","default":false}},"additionalProperties":false,"type":"object","required":["session_type","output_modalities","turn_detection_types","eagerness_levels","server_vad_ranges","noise_reduction","max_session_seconds_cap"],"title":"RealtimeConfigOptions","description":"The ``realtime`` section's value spaces for this deployment's vendor (CONTRACTS C3).\n\n``voices`` / ``transcription_models`` are ``None`` for a vendor with no catalogued vocabulary,\nwhich means \"free text\", not \"nothing\"."},"ReasoningSettings-Input":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"Whether to perform thinking/reasoning during inference"},"effort":{"anyOf":[{"type":"string","enum":["auto","minimal","low","medium","high","xhigh"]},{"type":"null"}],"title":"Effort","description":"How much the model should think; auto lets the model decide"},"budget_tokens":{"anyOf":[{"type":"integer","maximum":128000.0,"minimum":1024.0},{"type":"null"}],"title":"Budget Tokens","description":"Most tokens the model may think for; honoured only by models with a token-budget control"}},"type":"object","required":["enabled"],"title":"ReasoningSettings","description":"Thinking/reasoning toggle, effort and token budget. Mirrors budprompt's ReasoningSettings.\n\nEmitted to the gateway as ``reasoning={\"enabled\": false}`` when off, or\n``reasoning={\"enabled\": true, \"effort\": <level>}`` when on, where ``auto`` leaves the level to the model.\nAn optional ``budget_tokens`` caps the thinking; budprompt sends it to the gateway as ``max_tokens``."},"ReasoningSettings-Output":{"additionalProperties":true,"type":"object"},"RecommendedClusterData":{"properties":{"replicas":{"type":"integer","title":"Replicas"},"concurrency":{"additionalProperties":true,"type":"object","title":"Concurrency"},"ttft":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ttft"},"e2e_latency":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"E2E Latency"},"per_session_tokens_per_sec":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Per Session Tokens Per Sec"},"over_all_throughput":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Over All Throughput"}},"type":"object","required":["replicas","concurrency"],"title":"RecommendedClusterData","description":"Recommended cluster benchmarks schema."},"RecommendedClusterResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"clusters":{"items":{"$ref":"#/components/schemas/budapp__cluster_ops__schemas__RecommendedCluster"},"type":"array","title":"Clusters"},"status":{"type":"string","enum":["success","processing","failed"],"title":"Status","default":"success"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"rejected_clusters":{"items":{"$ref":"#/components/schemas/RejectedCluster"},"type":"array","title":"Rejected Clusters"},"workflow_id":{"type":"string","format":"uuid","title":"Workflow Id"}},"additionalProperties":false,"type":"object","required":["message","clusters","workflow_id"],"title":"RecommendedClusterResponse","description":"User response to client schema."},"RecommendedTagsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"tags":{"items":{"$ref":"#/components/schemas/TagWithCount"},"type":"array","title":"Tags","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"RecommendedTagsResponse","description":"Recommended tags response schema."},"RedTeamConfigResolveOut":{"properties":{"dataset_id":{"type":"string","format":"uuid4","title":"Dataset Id","description":"Dataset row backing this configuration."},"reused":{"type":"boolean","title":"Reused","description":"True when an identical configuration already existed and was reused rather than re-created."}},"type":"object","required":["dataset_id","reused"],"title":"RedTeamConfigResolveOut","description":"Output of ``POST /eval-ops/red-team-configs/resolve``.\n\n``dataset_id`` is plumbing, not a library entry: the run flow drops it into\nworkflow step 4 so the run has something to hang off (``runs.dataset_version_id``\nis NOT NULL). It is deliberately NOT a \"saved red-team eval\" — red teaming is\na selection from the engine's catalog, not something the user authors, and\nthese rows never appear in any listing."},"RedTeamCoverageOut":{"properties":{"vulnerabilities":{"items":{"$ref":"#/components/schemas/RedTeamCoverageRow"},"type":"array","title":"Vulnerabilities"},"attacks":{"items":{"$ref":"#/components/schemas/RedTeamCoverageRow"},"type":"array","title":"Attacks"}},"type":"object","required":["vulnerabilities","attacks"],"title":"RedTeamCoverageOut","description":"Output of ``GET /eval-ops/red-team-coverage``."},"RedTeamCoverageRow":{"properties":{"id":{"type":"string","title":"Id"},"runs":{"type":"integer","minimum":1.0,"title":"Runs","description":"Runs that probed it."},"targets":{"type":"integer","minimum":1.0,"title":"Targets","description":"Distinct deployments or agents those runs targeted."},"last_run_id":{"type":"string","format":"uuid4","title":"Last Run Id"},"last_experiment_id":{"type":"string","format":"uuid4","title":"Last Experiment Id"},"last_evaluation_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Last Evaluation Id","description":"The run's evaluation; the run page is keyed by it."},"last_run_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Run At"},"last_target_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Target Name"},"last_outcome":{"type":"string","pattern":"^(breached|resisted|errored)$","title":"Last Outcome","description":"breached if any graded probe in the latest run got through; errored if none could be graded."},"last_breached":{"type":"integer","minimum":0.0,"title":"Last Breached"},"last_resisted":{"type":"integer","minimum":0.0,"title":"Last Resisted"},"last_errored":{"type":"integer","minimum":0.0,"title":"Last Errored"}},"type":"object","required":["id","runs","targets","last_run_id","last_experiment_id","last_outcome","last_breached","last_resisted","last_errored"],"title":"RedTeamCoverageRow","description":"How one catalog test has fared across the caller's red-team runs.\n\n``id`` is a vulnerability token or an attack-method id. A test the caller never ran has no row:\nabsence means \"never run\", which the client renders as such rather than as a zero."},"RedTeamDefinitionIn":{"properties":{"framework":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Framework","description":"Optional compliance framework id used to seed the vulnerability list."},"attacks":{"items":{"type":"string"},"type":"array","title":"Attacks","description":"Attack-method feature ids from ``GET /eval-ops/red-team-attack-methods``. Empty means no attack method: every probe is sent as a plain, unenhanced request."},"scenarios":{"items":{"$ref":"#/components/schemas/RedTeamVulnerabilityIn"},"type":"array","minItems":1,"title":"Scenarios","description":"At least one vulnerability must be configured."}},"type":"object","required":["scenarios"],"title":"RedTeamDefinitionIn","description":"The reusable half of a red-team eval: what to probe for, and how.\n\nEverything here is model-independent, which is what lets a red-team eval be\nsaved once and run against any number of endpoints. ``attacks`` is persisted\nfor the first time — the previous scenario payload had no field for it, so\nevery attack-method selection the UI collected was silently discarded."},"RedTeamFindingListOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RedTeamFindingOut"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page","description":"Current page index.","default":1},"limit":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Limit","description":"Page size.","default":50}},"type":"object","required":["items","total"],"title":"RedTeamFindingListOut","description":"Output: paginated findings listing for a single scenario.\n\nPagination envelope. ``page`` / ``limit`` echo the request\npagination so clients can drive their UI off a single response\nwithout re-reading the original query string."},"RedTeamFindingOut":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"scenario_id":{"type":"string","format":"uuid4","title":"Scenario Id"},"run_id":{"type":"string","format":"uuid4","title":"Run Id"},"vulnerability_type":{"type":"string","title":"Vulnerability Type","description":"Engine-name-blind feature label (e.g. 'jailbreak')."},"severity":{"type":"string","pattern":"^(low|medium|high)$","title":"Severity","description":"Finding severity."},"attack_input":{"type":"string","title":"Attack Input","description":"The attacker prompt that elicited the finding."},"victim_output":{"type":"string","title":"Victim Output","description":"The victim's response to the attack."},"vulnerability_score":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Vulnerability Score","description":"Normalized score in [0, 1]."},"mitigation_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mitigation Notes"},"artifact_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact Uri","description":"Optional pointer to the full transcript artifact."},"occurred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred At"},"outcome":{"type":"string","pattern":"^(breached|resisted|errored)$","title":"Outcome","description":"What the probe came to: got through, held, or could not be graded.","default":"breached"},"vulnerability":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vulnerability","description":"The vulnerability the probe ran under (parent of the type)."},"attack_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attack Method","description":"Attack-method id that delivered the probe; null for a plain probe or an older run."},"turns":{"anyOf":[{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array"},{"type":"null"}],"title":"Turns","description":"The attack conversation ([{role, content}]) for a multi-turn probe."},"response_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Response Ids","description":"The attack conversation's agent response ids."},"trace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Id","description":"Trace of the attack conversation."},"identity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identity","description":"The identity tools ran under (platform_admin for bola / rbac / bfla on agents, DEG-9)."}},"type":"object","required":["id","scenario_id","run_id","vulnerability_type","severity","attack_input","victim_output","vulnerability_score"],"title":"RedTeamFindingOut","description":"Output: a single adversarial finding row.\n\nShape returned by ``GET /experiments/runs/{run_id}/red-team-findings``,\nbuilt from the MetricResult rows the red-team adapter writes. Nullable\nfields:\n\n- ``mitigation_notes`` may be empty when the judge produced none.\n- ``artifact_uri`` may be null when no adversarial transcript was\n  persisted (e.g. a low-severity finding without an attached\n  transcript artifact)."},"RedTeamProbeListOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RedTeamProbeOut"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"}},"type":"object","required":["items","total"],"title":"RedTeamProbeListOut","description":"Output of ``GET /eval-ops/red-team-probes``: newest first."},"RedTeamProbeOut":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"scenario_id":{"type":"string","format":"uuid4","title":"Scenario Id"},"run_id":{"type":"string","format":"uuid4","title":"Run Id"},"vulnerability_type":{"type":"string","title":"Vulnerability Type","description":"Engine-name-blind feature label (e.g. 'jailbreak')."},"severity":{"type":"string","pattern":"^(low|medium|high)$","title":"Severity","description":"Finding severity."},"attack_input":{"type":"string","title":"Attack Input","description":"The attacker prompt that elicited the finding."},"victim_output":{"type":"string","title":"Victim Output","description":"The victim's response to the attack."},"vulnerability_score":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Vulnerability Score","description":"Normalized score in [0, 1]."},"mitigation_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mitigation Notes"},"artifact_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact Uri","description":"Optional pointer to the full transcript artifact."},"occurred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred At"},"outcome":{"type":"string","pattern":"^(breached|resisted|errored)$","title":"Outcome","description":"What the probe came to: got through, held, or could not be graded.","default":"breached"},"vulnerability":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vulnerability","description":"The vulnerability the probe ran under (parent of the type)."},"attack_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attack Method","description":"Attack-method id that delivered the probe; null for a plain probe or an older run."},"turns":{"anyOf":[{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array"},{"type":"null"}],"title":"Turns","description":"The attack conversation ([{role, content}]) for a multi-turn probe."},"response_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Response Ids","description":"The attack conversation's agent response ids."},"trace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Id","description":"Trace of the attack conversation."},"identity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identity","description":"The identity tools ran under (platform_admin for bola / rbac / bfla on agents, DEG-9)."},"experiment_id":{"type":"string","format":"uuid4","title":"Experiment Id"},"experiment_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Experiment Name"},"evaluation_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Evaluation Id","description":"The run's evaluation; the run page is keyed by it."},"target_type":{"type":"string","title":"Target Type","description":"model or agent.","default":"model"},"target_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Name"}},"type":"object","required":["id","scenario_id","run_id","vulnerability_type","severity","attack_input","victim_output","vulnerability_score","experiment_id"],"title":"RedTeamProbeOut","description":"A finding read across runs, with the run it came from."},"RedTeamRunOptionsIn":{"properties":{"attacker_endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Attacker Endpoint Id","description":"Optional project-scoped attacker override. Defaults to the engine-side default for a model target and to the judge model for an agent target (an agent cannot attack itself)."},"async_mode":{"type":"boolean","title":"Async Mode","description":"Run attacks concurrently.","default":false},"max_concurrent":{"type":"integer","maximum":32.0,"minimum":1.0,"title":"Max Concurrent","description":"Concurrency cap when async_mode is set.","default":1}},"type":"object","title":"RedTeamRunOptionsIn","description":"The run-time half of a red-team eval — the part that is NOT reusable.\n\nThe target model is already the run's endpoint, so it is not repeated here.\nWhat remains is the optional attacker override and the execution knobs.\nThese deliberately live on the RUN rather than on the eval definition: the\nsame vulnerability set should be runnable against a different model, with a\ndifferent attacker, at a different concurrency, without re-authoring it."},"RedTeamVulnerabilityIn":{"properties":{"vulnerability_type":{"type":"string","maxLength":64,"minLength":1,"title":"Vulnerability Type"},"severity_threshold":{"type":"string","pattern":"^(low|medium|high)$","title":"Severity Threshold","description":"Minimum severity to surface in findings.","default":"medium"},"max_attempts":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Max Attempts","description":"Per-vulnerability attacker-loop budget.","default":10}},"type":"object","required":["vulnerability_type"],"title":"RedTeamVulnerabilityIn","description":"A single vulnerability configuration inside a red-team eval definition.\n\nOne row per ``vulnerability_type`` the user picks. ``vulnerability_type``\nMUST match a capability ``feature_name`` returned by\n``GET /eval-ops/capabilities?feature_kind=red_team`` (e.g. ``bias``,\n``pii_leakage``, ``bfla``, ``rbac``).\n\nNote this carries NO endpoint fields. A vulnerability set is a reusable\nDEFINITION; the target / attacker / judge models are bound at RUN time,\nexactly like the judge endpoint on a metric-based eval."},"RefreshTokenRequest":{"properties":{"refresh_token":{"type":"string","minLength":1,"title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"RefreshTokenRequest","description":"Refresh token request schema."},"RefreshTokenResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"token":{"title":"Token"}},"type":"object","required":["message","token"],"title":"RefreshTokenResponse","description":"Refresh token response schema."},"RegenerateIn":{"properties":{"seed":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Seed"}},"additionalProperties":false,"type":"object","title":"RegenerateIn"},"RegisterConnectorRequest":{"properties":{"credentials":{"anyOf":[{"$ref":"#/components/schemas/OAuthCredentials"},{"$ref":"#/components/schemas/HeadersCredentials"},{"$ref":"#/components/schemas/StdioCredentials"},{"$ref":"#/components/schemas/OpenCredentials"}],"title":"Credentials","description":"Credentials matching connector's auth_type or transport"},"version":{"type":"integer","minimum":1.0,"title":"Version","description":"Version of prompt config (defaults to 1)","default":1},"permanent":{"type":"boolean","title":"Permanent","description":"Store configuration permanently without expiration (default: False, uses configured TTL)","default":false}},"type":"object","required":["credentials"],"title":"RegisterConnectorRequest","description":"Request schema for registering a connector to a prompt with auth type-specific credentials."},"RegisterConnectorResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"gateway":{"$ref":"#/components/schemas/GatewayResponse"},"connector_id":{"type":"string","title":"Connector Id"},"budprompt_id":{"type":"string","title":"Budprompt Id"}},"additionalProperties":false,"type":"object","required":["message","gateway","connector_id","budprompt_id"],"title":"RegisterConnectorResponse","description":"Response schema for connector registration.\n\nGateway name format: {prompt_id}__v{version}__{connector_id}\nEach prompt version gets its own gateway for proper version isolation."},"RejectRequest":{"properties":{"call_id":{"type":"string","minLength":1,"title":"Call Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"on_reject":{"type":"string","enum":["deny","abort"],"title":"On Reject","default":"deny"}},"type":"object","required":["call_id"],"title":"RejectRequest","description":"Reject a parked tool call on an ``awaiting-approval`` run.\n\nDefault behaviour is a ``deny`` decision (the engine resumes and tells the model\nthe call was refused). ``on_reject=\"abort\"`` instead terminates the run with a\n``control_abort`` signal. ``call_id`` targets the pending call (and seeds the\ndeterministic ``signal_id`` for the deny path)."},"RejectedCluster":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"cluster_id":{"type":"string","title":"Cluster Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"reason":{"type":"string","title":"Reason"},"message":{"type":"string","title":"Message"},"achievable_concurrency":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"null"}],"title":"Achievable Concurrency"},"target_concurrency":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Concurrency"}},"type":"object","required":["cluster_id","reason","message"],"title":"RejectedCluster","description":"A cluster the simulator evaluated but could not plan the deployment on, and why."},"RemoveTriggersResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"success":{"type":"boolean","title":"Success","description":"Always true; error paths return ErrorResponse.","default":true},"budprompt_id":{"type":"string","title":"Budprompt Id","description":"Prompt id."},"connector_id":{"type":"string","title":"Connector Id","description":"Connector the trigger was removed from."},"deleted_subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deleted Subscription Id","description":"Deleted subscription id (if one existed)."}},"additionalProperties":false,"type":"object","required":["message","budprompt_id","connector_id"],"title":"RemoveTriggersResponse","description":"Response after removing triggers from a connector."},"RequirementEditIn":{"properties":{"id":{"type":"string","maxLength":64,"minLength":1,"title":"Id"},"text":{"anyOf":[{"type":"string","maxLength":2000,"minLength":1},{"type":"null"}],"title":"Text"},"kind":{"anyOf":[{"type":"string","enum":["must","must_not","should"]},{"type":"null"}],"title":"Kind"},"included":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Included"}},"additionalProperties":false,"type":"object","required":["id"],"title":"RequirementEditIn"},"RequirementsIn":{"properties":{"cases_per_requirement":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Cases Per Requirement","default":2},"include_violation_attempts":{"type":"boolean","title":"Include Violation Attempts","default":true},"derive_row_rules":{"type":"boolean","title":"Derive Row Rules","default":true}},"additionalProperties":false,"type":"object","title":"RequirementsIn"},"RequirementsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"requirements":{"additionalProperties":true,"type":"object","title":"Requirements"}},"additionalProperties":false,"type":"object","required":["message","requirements"],"title":"RequirementsResponse"},"RequirementsReviewIn":{"properties":{"requirements":{"items":{"$ref":"#/components/schemas/RequirementEditIn"},"type":"array","maxItems":1000,"title":"Requirements"},"merge":{"items":{"items":{"type":"string"},"type":"array"},"type":"array","maxItems":500,"title":"Merge"},"continue":{"type":"boolean","title":"Continue","default":false}},"additionalProperties":false,"type":"object","title":"RequirementsReviewIn","description":"``PUT …/requirements``: edits, merges, then ``continue`` starts writing cases."},"RerunFailedIn":{"properties":{"confirm":{"type":"boolean","title":"Confirm","description":"Required true: every re-run sample is a real agent call again.","default":false},"statuses":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Statuses","description":"error, failed, timeout, interrupted and/or cancelled; default all five."}},"type":"object","title":"RerunFailedIn","description":"Re-run a run's samples that have no answer (FRD §5.10). The agent is called again."},"RescoreIn":{"properties":{"metrics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Metrics","description":"Metric names; default the run's metrics."},"thresholds":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Thresholds","description":"New thresholds per metric name."},"judge_endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Judge Endpoint Id","description":"Another judge; default the run's."},"decision_judge_endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Decision Judge Endpoint Id","description":"Another decision judge (serving /v1/decisions); default the run's."},"eval_mode":{"anyOf":[{"type":"string","enum":["llm","hybrid","system_one"]},{"type":"null"}],"title":"Eval Mode","description":"The default eval mode of this re-score; default the run's."},"eval_modes":{"anyOf":[{"additionalProperties":{"type":"string","enum":["llm","hybrid","system_one"]},"type":"object"},{"type":"null"}],"title":"Eval Modes","description":"Per metric instance: the eval mode to re-score it in."}},"type":"object","title":"RescoreIn","description":"Score a run's stored samples again: other metrics, thresholds or judge. The agent is not called."},"ReservedVariableNamesResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"names":{"items":{"type":"string"},"type":"array","title":"Names"},"namespaces":{"items":{"type":"string"},"type":"array","title":"Namespaces"},"version":{"type":"string","title":"Version"}},"additionalProperties":false,"type":"object","required":["message","names","namespaces","version"],"title":"ReservedVariableNamesResponse","description":"Reserved governance variable names + namespaces + a version hash (FR-DATA-060)."},"ResetPasswordRequest":{"properties":{"email":{"type":"string","maxLength":100,"minLength":1,"format":"email","title":"Email"},"tenant_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Tenant Id","description":"The ID of the tenant. If not provided, the user will be considered in to the first tenant they belong to."}},"type":"object","required":["email"],"title":"ResetPasswordRequest","description":"Reset password request schema."},"ResetPasswordResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"acknowledged":{"type":"boolean","title":"Acknowledged"},"status":{"type":"string","title":"Status"},"transaction_id":{"type":"string","title":"Transaction Id"}},"additionalProperties":false,"type":"object","required":["message","acknowledged","status","transaction_id"],"title":"ResetPasswordResponse","description":"Reset password response schema."},"ResolveEscalationRequest":{"properties":{"resolution":{"type":"string","enum":["deny","allow_once","allow_always","ack","decline"],"title":"Resolution"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"edited_args":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Edited Args"}},"additionalProperties":false,"type":"object","required":["resolution"],"title":"ResolveEscalationRequest","description":"Body of ``POST /escalations/{id}/resolve`` (FR-ESC-210).\n\n``edited_args`` is opaque and validated as a JSON object only; the tool-schema check happens at\nexecution time inside budprompt (a schema-invalid edit surfaces as a normal tool error)."},"ResolveEscalationResponse":{"properties":{"object":{"type":"string","title":"Object","default":"governance.escalation.resolve"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"escalation":{"additionalProperties":true,"type":"object","title":"Escalation"},"execution_signal":{"type":"string","title":"Execution Signal","default":"sent"}},"additionalProperties":false,"type":"object","required":["message","escalation"],"title":"ResolveEscalationResponse","description":"The updated escalation + workflow signal after a resolve (FR-ESC-210 / FR-DATA-220)."},"ResolveEscalationTargetRequest":{"properties":{"escalation_target":{"$ref":"#/components/schemas/EscalationTargetSchema"},"prompt_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Prompt Id"},"project_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Project Id"},"run_invoker_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Run Invoker Id"}},"type":"object","required":["escalation_target"],"title":"ResolveEscalationTargetRequest","description":"Internal suspend-time approver-resolution request (FR-DATA-210, consumed by WP-2.6).\n\nbudprompt Dapr-invokes this at escalation-creation to snapshot the concrete set of live\napprover user ids for an ``escalation_target``. ``run_invoker_id`` is the optional actor of\nthe current run, unioned into the ``self`` resolution."},"ResolveEscalationTargetResponse":{"properties":{"object":{"type":"string","title":"Object","default":"governance.escalation.resolve_target"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"user_ids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"User Ids","default":[]}},"additionalProperties":false,"type":"object","required":["message"],"title":"ResolveEscalationTargetResponse","description":"The resolved approver audience for an ``escalation_target`` (zero results is valid)."},"ResolveRequest":{"properties":{"rev":{"type":"integer","title":"Rev"},"step":{"type":"string","title":"Step"},"resource":{"additionalProperties":true,"type":"object","title":"Resource"},"case_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Case Id"},"agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent"}},"type":"object","required":["rev","step"],"title":"ResolveRequest"},"ResponsesConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":true},"background_enabled":{"type":"boolean","title":"Background Enabled","default":true},"store_default":{"type":"boolean","title":"Store Default","default":true},"limits":{"$ref":"#/components/schemas/ResponsesConfigLimits"},"defaults":{"$ref":"#/components/schemas/ResponsesConfigDefaults"},"server_tools":{"$ref":"#/components/schemas/ResponsesConfigServerTools"}},"type":"object","title":"ResponsesConfig","description":"Per-deployment Responses API configuration persisted to ``endpoints.responses_config``.\n\nJSONB shape documented in FRD section 11.2.2. ``enabled=False`` is the\nexplicit opt-out path described in section 11.1 — it removes\n``/v1/responses`` from the deployment's ``supported_endpoints``."},"ResponsesConfigDefaults":{"properties":{"reasoning_effort":{"anyOf":[{"type":"string","enum":["minimal","low","medium","high","xhigh"]},{"type":"null"}],"title":"Reasoning Effort"},"truncation":{"anyOf":[{"type":"string","enum":["auto","disabled"]},{"type":"null"}],"title":"Truncation","default":"disabled"},"instructions":{"anyOf":[{"type":"string","maxLength":100000},{"type":"null"}],"title":"Instructions"}},"type":"object","title":"ResponsesConfigDefaults","description":"Per-deployment default values applied per F13 priority order."},"ResponsesConfigLimits":{"properties":{"max_output_tokens":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Output Tokens"},"max_tool_calls":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Tool Calls","default":50},"chain_depth_limit":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Chain Depth Limit","default":200},"background_wall_clock_seconds":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Background Wall Clock Seconds","default":3600}},"type":"object","title":"ResponsesConfigLimits","description":"Safety limits for the Responses API on a deployment (FRD 11.2.2).\n\nThe orchestrator clamps incoming request values downward to these caps."},"ResponsesConfigResponse":{"properties":{"object":{"type":"string","title":"Object","default":"endpoint.responses_config"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","default":"Successfully retrieved Responses API configuration"},"endpoint_id":{"type":"string","format":"uuid4","title":"Endpoint Id"},"responses_config":{"$ref":"#/components/schemas/ResponsesConfig"}},"additionalProperties":false,"type":"object","required":["endpoint_id","responses_config"],"title":"ResponsesConfigResponse","description":"Response schema for the per-deployment Responses API config.\n\nMirrors :class:`DeploymentSettingsResponse` so the budadmin UI can\nconsume both endpoints with the same envelope shape (``{ data:\n{ responses_config, endpoint_id, … }, message }`` once wrapped by\n``SuccessResponse.to_http_response``)."},"ResponsesConfigServerTools":{"properties":{"web_search":{"type":"boolean","title":"Web Search","default":false},"web_fetch":{"type":"boolean","title":"Web Fetch","default":false}},"type":"object","title":"ResponsesConfigServerTools","description":"Server-side tools auto-attached to every Responses call (FRD 11.2.2)."},"ResumeGatedIn":{"properties":{"confirm":{"type":"boolean","title":"Confirm","description":"Required true.","default":false}},"type":"object","title":"ResumeGatedIn","description":"Score the approved continuations of a run's approval-gated samples (FRD §5.24)."},"RetrieveWorkflowDataResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"workflow_id":{"type":"string","format":"uuid4","title":"Workflow Id"},"status":{"$ref":"#/components/schemas/WorkflowStatusEnum"},"current_step":{"type":"integer","title":"Current Step"},"total_steps":{"type":"integer","title":"Total Steps"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"workflow_steps":{"anyOf":[{"$ref":"#/components/schemas/RetrieveWorkflowStepData"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["message","workflow_id","status","current_step","total_steps"],"title":"RetrieveWorkflowDataResponse","description":"Retrieve Workflow Data Response."},"RetrieveWorkflowStepData":{"properties":{"experiment_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Experiment Id"},"trait_ids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Trait Ids"},"traits_details":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Traits Details"},"provider_type":{"anyOf":[{"$ref":"#/components/schemas/ModelProviderTypeEnum"},{"$ref":"#/components/schemas/GuardrailProviderTypeEnum"},{"type":"null"}],"title":"Provider Type"},"provider":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}]},"cloud_model":{"anyOf":[{"$ref":"#/components/schemas/CloudModel"},{"type":"null"}]},"cloud_model_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Cloud Model Id"},"provider_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Provider Id"},"model_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Model Id"},"model":{"anyOf":[{"$ref":"#/components/schemas/Model"},{"type":"null"}]},"workflow_execution_status":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Workflow Execution Status"},"leaderboard":{"anyOf":[{"items":{},"type":"array"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Leaderboard"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"ingress_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ingress Url"},"create_cluster_events":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Create Cluster Events"},"delete_cluster_events":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Delete Cluster Events"},"delete_endpoint_events":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Delete Endpoint Events"},"delete_worker_events":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Delete Worker Events"},"model_security_scan_events":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Model Security Scan Events"},"bud_simulator_events":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Bud Simulator Events"},"budserve_cluster_events":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Budserve Cluster Events"},"evaluation_events":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Evaluation Events"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uri"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"model_extraction_events":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Model Extraction Events"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"security_scan_result_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Security Scan Result Id"},"security_scan_result":{"anyOf":[{"$ref":"#/components/schemas/ModelSecurityScanResult"},{"type":"null"}]},"endpoint":{"anyOf":[{"$ref":"#/components/schemas/EndpointResponse"},{"type":"null"}]},"additional_concurrency":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Additional Concurrency"},"project":{"anyOf":[{"$ref":"#/components/schemas/ProjectResponse"},{"type":"null"}]},"cluster":{"anyOf":[{"$ref":"#/components/schemas/ClusterResponse"},{"type":"null"}]},"quantization_config":{"anyOf":[{"$ref":"#/components/schemas/QuantizeModelWorkflowStepData"},{"type":"null"}]},"quantization_deployment_events":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Quantization Deployment Events"},"quantization_simulation_events":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Quantization Simulation Events"},"eval_with":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eval With"},"max_input_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Input Tokens"},"max_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Tokens"},"datasets":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Datasets"},"dataset_ids":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Dataset Ids"},"nodes":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Nodes"},"credential_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Credential Id"},"user_confirmation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"User Confirmation"},"run_as_simulation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Run As Simulation"},"benchmark_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Benchmark Id"},"adapter_config":{"anyOf":[{"$ref":"#/components/schemas/AddAdapterWorkflowStepData"},{"type":"null"}]},"adapter_deployment_events":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Adapter Deployment Events"},"credential":{"anyOf":[{"$ref":"#/components/schemas/ProprietaryCredentialResponse"},{"type":"null"}]},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name"},"deploy_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Deploy Config"},"simulator_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Simulator Id"},"template_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Template Id"},"endpoint_details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Endpoint Details"},"agent_details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Agent Details"},"template":{"anyOf":[{"$ref":"#/components/schemas/ModelTemplateResponse"},{"type":"null"}]},"add_model_modality":{"anyOf":[{"items":{"$ref":"#/components/schemas/AddModelModalityEnum"},"type":"array"},{"type":"null"}],"title":"Add Model Modality"},"guardrail_profile_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Guardrail Profile Id"},"guardrail_profile":{"anyOf":[{"$ref":"#/components/schemas/GuardrailProfileResponse"},{"type":"null"}]},"endpoint_ids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Endpoint Ids"},"endpoints":{"anyOf":[{"items":{"$ref":"#/components/schemas/EndpointResponse"},"type":"array"},{"type":"null"}],"title":"Endpoints"},"is_standalone":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Standalone"},"probe_selections":{"anyOf":[{"items":{"$ref":"#/components/schemas/GuardrailProfileProbeSelection"},"type":"array"},{"type":"null"}],"title":"Probe Selections"},"guard_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guard Types"},"severity_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Severity Threshold"},"prompt_type":{"anyOf":[{"$ref":"#/components/schemas/PromptTypeEnum"},{"type":"null"}]},"prompt_schema":{"anyOf":[{"$ref":"#/components/schemas/PromptSchemaConfig"},{"type":"null"}]},"auto_scale":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Scale"},"caching":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Caching"},"concurrency":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Concurrency"},"rate_limit":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Rate Limit"},"rate_limit_value":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rate Limit Value"},"bud_prompt_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bud Prompt Id"},"bud_prompt_version":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Bud Prompt Version"},"discarded_prompt_ids":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Discarded Prompt Ids"},"client_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Client Metadata"},"a2a_registry_agent_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"A2A Registry Agent Id"},"prompt_schema_events":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Prompt Schema Events"},"hardware_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hardware Mode"},"tool_calling_parser_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Calling Parser Type"},"reasoning_parser_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Parser Type"},"chat_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Template"},"enable_tool_calling":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Tool Calling"},"enable_reasoning":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Reasoning"},"enable_kv_fp8":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Kv Fp8"},"kv_fp8_support":{"anyOf":[{"$ref":"#/components/schemas/KvFp8Support"},{"type":"null"}]},"max_context_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Context Length"},"max_loras":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Loras"},"lora_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lora Rank"},"input_tokens_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Input Tokens Max"},"output_tokens_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Output Tokens Max"},"weight_precision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Precision"},"speculative_decoding":{"anyOf":[{"$ref":"#/components/schemas/SpeculativeDecodingIntent"},{"type":"null"}]},"sampling":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sampling"},"text_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Text Only"},"decisions_workload":{"anyOf":[{"$ref":"#/components/schemas/DecisionsWorkloadIntent"},{"type":"null"}]},"supports_lora":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Supports Lora"},"supports_pipeline_parallelism":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Supports Pipeline Parallelism"},"model_statuses":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Model Statuses"},"models_requiring_onboarding":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Models Requiring Onboarding"},"models_requiring_deployment":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Models Requiring Deployment"},"models_reusable":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Models Reusable"},"skip_to_step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Skip To Step"},"credential_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Credential Required"},"guardrail_onboarding_events":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Guardrail Onboarding Events"},"guardrail_simulation_events":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Guardrail Simulation Events"},"guardrail_deployment_events":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Guardrail Deployment Events"},"tool_generation_events":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tool Generation Events"},"simulation_step_mapping":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Simulation Step Mapping"},"simulation_models":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Simulation Models"},"pending_profile_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Pending Profile Data"},"recommended_clusters":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Recommended Clusters"},"per_model_deployment_configs":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Per Model Deployment Configs"},"models_to_deploy":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Models To Deploy"},"models_to_reuse":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Models To Reuse"},"source_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Type"},"source_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Ref"},"validation":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Validation"},"skill_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Skill Id"},"digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Digest"},"skill_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skill Name"},"skill_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skill Description"},"skill_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skill Version"},"bundle_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bundle Size Bytes"},"file_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Count"},"contains_scripts":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Contains Scripts"},"contains_resources":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Contains Resources"},"contains_assets":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Contains Assets"},"resident_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Resident Tokens"},"is_global":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Global"},"project_ids":{"anyOf":[{"items":{"type":"string","format":"uuid4"},"type":"array"},{"type":"null"}],"title":"Project Ids"},"discovered_skills":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Discovered Skills"},"selected_skill_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Selected Skill Ids"},"published_skill_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Published Skill Ids"},"publish_collisions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Publish Collisions"},"skill_ingest_events":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Skill Ingest Events"},"scan_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scan Mode"},"scan_llm_project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scan Llm Project Id"},"scan_llm_endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scan Llm Endpoint Id"},"scan_skill_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Scan Skill Ids"},"scan_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scan Run Id"},"skill_scan_events":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Skill Scan Events"},"scan_outcomes":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Scan Outcomes"},"probe_type_option":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Probe Type Option"},"model_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Uri"},"scanner_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scanner Type"},"handler":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handler"},"model_provider_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Provider Type"},"policy":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Policy"},"modality_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Modality Types"},"probe_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Probe Id"}},"type":"object","title":"RetrieveWorkflowStepData","description":"Workflow step data schema."},"RetryConfig":{"properties":{"num_retries":{"type":"integer","title":"Num Retries","default":0},"max_delay_s":{"type":"number","title":"Max Delay S","default":1.0}},"type":"object","title":"RetryConfig","description":"Retry configuration for failed requests."},"RevisionIn":{"properties":{"revision":{"type":"integer","minimum":0.0,"title":"Revision"}},"additionalProperties":false,"type":"object","required":["revision"],"title":"RevisionIn"},"RoleIn":{"properties":{"endpoint_id":{"type":"string","format":"uuid4","title":"Endpoint Id"},"model_name":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Model Name"}},"additionalProperties":false,"type":"object","required":["endpoint_id"],"title":"RoleIn"},"RoleRefIn":{"properties":{"endpoint_id":{"type":"string","format":"uuid4","title":"Endpoint Id"}},"additionalProperties":false,"type":"object","required":["endpoint_id"],"title":"RoleRefIn","description":"A model endpoint chosen for a role (judge or simulator)."},"RolesOverrideIn":{"properties":{"judge":{"anyOf":[{"$ref":"#/components/schemas/RoleRefIn"},{"type":"null"}],"description":"Judges every metric instance of this run."},"simulator":{"anyOf":[{"$ref":"#/components/schemas/RoleRefIn"},{"type":"null"}],"description":"Plays the user in simulated conversations."},"decision_judge":{"anyOf":[{"$ref":"#/components/schemas/RoleRefIn"},{"type":"null"}],"description":"Spec 034: the decision model (an endpoint serving /v1/decisions) that answers the decision points of every hybrid / system_one instance of this run."}},"additionalProperties":false,"type":"object","title":"RolesOverrideIn","description":"Run-time overrides of the evaluation's model roles (spec 028 D-15, D-16)."},"RouterActionValidateRequest":{"properties":{"action_type":{"type":"string","title":"Action Type"},"params":{"additionalProperties":true,"type":"object","title":"Params"}},"type":"object","required":["action_type"],"title":"RouterActionValidateRequest","description":"Request body for POST /routers/actions/validate."},"RouterActionValidateResponse":{"properties":{"valid":{"type":"boolean","title":"Valid"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["valid"],"title":"RouterActionValidateResponse","description":"Response for action param validation."},"RouterCreateRequest":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"dag_config":{"anyOf":[{"$ref":"#/components/schemas/RouterDAGConfig"},{"type":"null"}]},"status":{"type":"string","title":"Status","default":"draft"},"auto":{"type":"boolean","title":"Auto","default":false},"endpoints":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Endpoints","description":"Model endpoint IDs to bind into the auto preset. Only valid when auto=true; endpoints[0] is treated as the primary/strong model."}},"type":"object","required":["project_id","name"],"title":"RouterCreateRequest"},"RouterDAGConfig":{"properties":{"name":{"type":"string","title":"Name","default":""},"description":{"type":"string","title":"Description","default":""},"entry_step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entry Step","description":"step_id of the DAG entry point"},"steps":{"items":{"$ref":"#/components/schemas/RouterStepCreate"},"type":"array","title":"Steps"},"parameters":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Parameters"},"outputs":{"additionalProperties":true,"type":"object","title":"Outputs"},"auto":{"type":"boolean","title":"Auto","description":"True when this DAG was generated from the auto preset; its nodes are managed automatically and are not hand-editable.","default":false}},"type":"object","title":"RouterDAGConfig","description":"The full DAG configuration for a router.\n\nAn empty DAG (no steps, no entry_step) is valid for draft routers."},"RouterPricingHistoryResponse":{"properties":{"object":{"type":"string","title":"Object","default":"router.pricing_history"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"pricing_history":{"items":{"$ref":"#/components/schemas/RouterPricingResponse"},"type":"array","title":"Pricing History","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"RouterPricingHistoryResponse","description":"Paginated pricing history."},"RouterPricingInput":{"properties":{"input_cost":{"anyOf":[{"type":"number","exclusiveMaximum":10000.0,"minimum":0.0},{"type":"string"}],"title":"Input Cost","description":"Cost per input tokens (max 9999.999999)"},"output_cost":{"anyOf":[{"type":"number","exclusiveMaximum":10000.0,"minimum":0.0},{"type":"string"}],"title":"Output Cost","description":"Cost per output tokens (max 9999.999999)"},"currency":{"type":"string","maxLength":3,"title":"Currency","description":"Currency code (ISO 4217)","default":"USD"},"per_tokens":{"type":"integer","exclusiveMinimum":0.0,"title":"Per Tokens","description":"Number of tokens for the pricing unit","default":1000}},"type":"object","required":["input_cost","output_cost"],"title":"RouterPricingInput","description":"Per-token price for a published router.\n\nField-for-field identical to ``DeploymentPricingInput`` / ``AgentPricingInput`` so the\nthree publishable products cannot drift apart on what a valid price is. ``per_tokens``\nmust be positive because budgateway divides by it in ``calculate_cost``."},"RouterPricingResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"router_id":{"type":"string","format":"uuid","title":"Router Id"},"input_cost":{"type":"string","title":"Input Cost"},"output_cost":{"type":"string","title":"Output Cost"},"currency":{"type":"string","title":"Currency"},"per_tokens":{"type":"integer","title":"Per Tokens"},"is_current":{"type":"boolean","title":"Is Current"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","router_id","input_cost","output_cost","currency","per_tokens","is_current","created_by","created_at","modified_at"],"title":"RouterPricingResponse","description":"A single pricing row."},"RouterPublicationHistoryEntry":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"router_id":{"type":"string","format":"uuid","title":"Router Id"},"action":{"type":"string","title":"Action"},"performed_by":{"type":"string","format":"uuid","title":"Performed By"},"performed_at":{"type":"string","format":"date-time","title":"Performed At"},"action_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Action Metadata"},"previous_state":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Previous State"},"new_state":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"New State"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","router_id","action","performed_by","performed_at","created_at","modified_at"],"title":"RouterPublicationHistoryEntry","description":"A single publish/unpublish event."},"RouterPublicationHistoryResponse":{"properties":{"object":{"type":"string","title":"Object","default":"router.publication_history"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"publication_history":{"items":{"$ref":"#/components/schemas/RouterPublicationHistoryEntry"},"type":"array","title":"Publication History","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"RouterPublicationHistoryResponse","description":"Paginated publication history."},"RouterResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"dag_config":{"additionalProperties":true,"type":"object","title":"Dag Config"},"status":{"type":"string","title":"Status"},"step_count":{"type":"integer","title":"Step Count","default":0},"sync_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync State"},"last_sync_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Sync Error"},"last_sync_attempt_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Sync Attempt At"},"sync_attempts":{"type":"integer","title":"Sync Attempts","default":0},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"modified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Modified At"},"is_published":{"type":"boolean","title":"Is Published","default":false},"published_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published Date"},"derived_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Derived Metadata"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["id","project_id","name","dag_config","status"],"title":"RouterResponse"},"RouterStepCondition":{"properties":{"field":{"type":"string","title":"Field"},"operator":{"type":"string","title":"Operator"},"value":{"title":"Value"}},"type":"object","required":["field","operator","value"],"title":"RouterStepCondition","description":"Optional condition that determines whether this step executes."},"RouterStepCreate":{"properties":{"step_id":{"type":"string","title":"Step Id","description":"Unique identifier within this DAG"},"action_type":{"type":"string","title":"Action Type","description":"Must reference a valid routing action type"},"name":{"type":"string","title":"Name","description":"Optional display name","default":""},"params":{"additionalProperties":true,"type":"object","title":"Params"},"conditions":{"anyOf":[{"items":{"$ref":"#/components/schemas/RouterStepCondition"},"type":"array"},{"type":"null"}],"title":"Conditions"},"depends_on":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Depends On","description":"Step IDs this step depends on"}},"type":"object","required":["step_id","action_type"],"title":"RouterStepCreate","description":"A single step within the router DAG.\n\nEndpoints are referenced inside params via endpoint_ref, endpoint_ref_list,\nendpoint_weighted_list, or content_rule_list param types defined in the\naction registry."},"RouterUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"$ref":"#/components/schemas/Tag"},"type":"array"},{"type":"null"}],"title":"Tags"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"dag_config":{"anyOf":[{"$ref":"#/components/schemas/RouterDAGConfig"},{"type":"null"}]},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"endpoints":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Endpoints","description":"Replacement model endpoint IDs for a router created with auto=true; the preset DAG is regenerated from them. Never valid together with dag_config. endpoints[0] is the primary/strong model."}},"type":"object","title":"RouterUpdateRequest"},"RowHistoryResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"history":{"additionalProperties":true,"type":"object","title":"History","description":"{row_id, more, runs[{run_id, run_index, experiment_id, experiment_name, version_id, version_number, target_name, target_type, created_at, available, found, outcome, response, scores, repeats}]}"}},"additionalProperties":false,"type":"object","required":["message","history"],"title":"RowHistoryResponse"},"RowIn":{"properties":{"row_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Row Id"},"data":{"additionalProperties":true,"type":"object","title":"Data"},"provenance":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Provenance"}},"additionalProperties":false,"type":"object","required":["data"],"title":"RowIn","description":"A row to insert: optional client ``row_id`` (UUID v4, unused or soft-deleted in this evaluation)."},"Run":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id","description":"The UUID of the run."},"experiment_id":{"type":"string","format":"uuid4","title":"Experiment Id","description":"The UUID of the parent experiment."},"run_index":{"type":"integer","title":"Run Index","description":"Auto-incrementing index within the experiment."},"endpoint_id":{"type":"string","format":"uuid4","title":"Endpoint Id","description":"The UUID of the endpoint being evaluated."},"dataset_version_id":{"type":"string","format":"uuid4","title":"Dataset Version Id","description":"The UUID of the dataset version."},"status":{"$ref":"#/components/schemas/RunStatusEnum","description":"Current status of the run."},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config","description":"Run-specific configuration."},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"Timestamp when the run was created."},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"Timestamp when the run was last updated."},"target_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Type","description":"model or agent (spec 027).","default":"model"},"prompt_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Prompt Id","description":"The agent evaluated, for an agent target."},"prompt_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Version","description":"The agent version evaluated, for an agent target."},"prompt_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Name","description":"The agent's name (agent targets)."},"prompt_version_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Prompt Version Id","description":"The agent version id (agent targets)."},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name","description":"That endpoint's name."}},"type":"object","required":["id","experiment_id","run_index","endpoint_id","dataset_version_id","status"],"title":"Run","description":"Represents a run (model-dataset evaluation pair) within an experiment."},"RunBenchmarkWorkflowRequest":{"properties":{"name":{"type":"string","maxLength":50,"title":"Name"},"tags":{"items":{},"type":"array","title":"Tags"},"description":{"type":"string","title":"Description"},"concurrent_requests":{"type":"integer","title":"Concurrent Requests"},"eval_with":{"type":"string","enum":["dataset","configuration"],"title":"Eval With"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"datasets":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Datasets"},"max_input_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Input Tokens"},"max_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Tokens"},"cluster_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Cluster Id"},"bud_cluster_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Bud Cluster Id"},"hardware_mode":{"anyOf":[{"type":"string","enum":["dedicated","shared"]},{"type":"null"}],"title":"Hardware Mode"},"nodes":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Nodes"},"model_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Model Id"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"provider_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Type"},"selected_device_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Device Type"},"tp_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tp Size"},"pp_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pp Size"},"replicas":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Replicas"},"num_prompts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Prompts"},"credential_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Credential Id"},"user_confirmation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"User Confirmation"},"run_as_simulation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Run As Simulation"},"workflow_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Workflow Id"},"workflow_total_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Workflow Total Steps"},"step_number":{"type":"integer","exclusiveMinimum":0.0,"title":"Step Number"},"trigger_workflow":{"type":"boolean","title":"Trigger Workflow","default":false},"callback_topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callback Topic"}},"type":"object","required":["name","tags","description","concurrent_requests","eval_with","step_number"],"title":"RunBenchmarkWorkflowRequest","description":"Run Benchmark Workflow Request."},"RunCountsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"by_status":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Status","default":{}},"by_suspend_reason":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Suspend Reason","default":{}},"by_prompt":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"By Prompt","default":{}}},"additionalProperties":false,"type":"object","required":["message"],"title":"RunCountsResponse","description":"Response for GET /runs/counts — the KPI row's numbers (FR-FEED-040 / FR-UI-080).\n\nProject-wide and engine-side, NEVER derived from a list page: that page is keyset\npaginated with ``limit`` clamped to 200, so a page-derived \"Runs total\" reads 200 on a\nproject with 5 000 runs — a wrong answer that looks like an answer.\n\n``by_status`` spans EVERY status, terminal included, because the row renders \"Runs total\"\n(the sum) and \"Failed\". ``by_suspend_reason`` is the parked-run breakdown that backs\n\"Awaiting approval\". ``by_prompt`` carries one entry per REQUESTED ``prompt_id``,\nzero-filled when the agent has no runs — a missing key renders as \"unavailable\" on a card\nrather than as zero, and laying out N cards from one response is the whole point of the\nbatched form."},"RunDatasetScore":{"properties":{"run_id":{"type":"string","format":"uuid4","title":"Run Id","description":"UUID of the run"},"dataset_name":{"type":"string","title":"Dataset Name","description":"Name of the dataset"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score","description":"Primary score of the run (see eval_ops.helpers.primary_score): a percentage for public datasets, the mean raw value for custom ones."},"dataset_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Dataset Id","description":"UUID of the dataset the run evaluated"},"source_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Kind","description":"The dataset's source_kind ('public', 'custom', 'red_team', ...)"},"trait_names":{"items":{"type":"string"},"type":"array","title":"Trait Names","description":"Traits the dataset is catalogued under"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Status of the run"},"target_type":{"type":"string","title":"Target Type","description":"model or agent (spec 027).","default":"model"},"prompt_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Prompt Id","description":"The agent evaluated (agent targets)."},"prompt_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Name","description":"The agent's name (agent targets)."},"prompt_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Version","description":"The agent version evaluated (agent targets)."},"prompt_version_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Prompt Version Id","description":"The agent version id (agent targets)."},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Endpoint Id","description":"The endpoint called; an agent's backing deployment."},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name","description":"That endpoint's name."},"eval_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eval Mode","description":"llm, hybrid, system_one or mixed; null before spec 034."},"eval_modes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Eval Modes","description":"The modes of a mixed run."}},"type":"object","required":["run_id","dataset_name"],"title":"RunDatasetScore","description":"Individual run with dataset and score."},"RunEventsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"},"high_water":{"type":"integer","title":"High Water"},"next_after_seq":{"type":"integer","title":"Next After Seq"},"first_available_seq":{"type":"integer","title":"First Available Seq"},"has_more":{"type":"boolean","title":"Has More"},"state":{"additionalProperties":true,"type":"object","title":"State"}},"additionalProperties":false,"type":"object","required":["message","items","high_water","next_after_seq","first_available_seq","has_more","state"],"title":"RunEventsResponse","description":"Response for GET /runs/{session_id}/events — the run drawer's per-tick read.\n\nThe FR-FEED-030 shape: one bounded page of step frames with the run ``state`` FOLDED\nIN, so the drawer makes one authenticated call per tick instead of a state poll plus an\nevents poll. That fold matters more than it looks: budprompt runs ``uvicorn --workers 4``\nwith the durable engine in the FastAPI lifespan, so every worker that serves this read is\nalso running agents on the same event loop and connection pool.\n\nAll FOUR cursor fields are REQUIRED and are relayed from the engine UNCHANGED. Each one\nexists for a specific failure, and dropping any of them re-creates exactly that failure:\n\n* ``high_water`` — the highest stored seq, so a client whose page was truncated knows\n  there is more without having to infer it from ``len(items) == limit`` (which answers\n  \"maybe\" on every exact-fit page, and \"maybe\" is what a reducer turns into a refetch).\n* ``next_after_seq`` — the cursor to send back; held, never rewound.\n* ``first_available_seq`` — the lowest seq still stored. Without it, a retention-deleted\n  prefix (an ``after_seq=0`` read that starts at 21) is byte-indistinguishable from a\n  20-frame gap, and every open drawer refetch-loops the first time the content TTL fires.\n* ``has_more`` — makes paging EXPLICIT so a truncated page can never be read as a gap.\n  Authoritative when false; when true it means \"there may be more\" (the engine reads the\n  page and the bounds in one READ COMMITTED session, so a concurrent append can raise the\n  high-water mark between the two statements). The false direction is the one that\n  matters for the loop.\n\n``items`` and ``state`` are relayed as untyped dicts, like the other run passthroughs, so\nengine-side field additions reach the UI without a budapp deploy. FR-SEC-130: the engine\nprojection deliberately carries no run ``output`` and no materialised history, and budapp\nadds no route that returns them."},"RunListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"additionalProperties":false,"type":"object","required":["message","items"],"title":"RunListResponse","description":"Response for GET /runs (budprompt ``GET /executions`` passthrough)."},"RunSampleCounts":{"properties":{"correct":{"type":"integer","minimum":0.0,"title":"Correct","default":0},"incorrect":{"type":"integer","minimum":0.0,"title":"Incorrect","default":0},"errored":{"type":"integer","minimum":0.0,"title":"Errored","default":0},"unscored":{"type":"integer","minimum":0.0,"title":"Unscored","default":0}},"type":"object","title":"RunSampleCounts","description":"Samples per outcome across the whole run (before filters); sums to ``total``."},"RunSampleItem":{"properties":{"index":{"type":"integer","title":"Index","description":"Position of the sample within its subset (or dataset)."},"subset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subset","description":"Benchmark subset the sample belongs to; null for custom runs."},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt","description":"Prompt sent (may be truncated to 4000 chars); null when content was not stored."},"expected":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Expected","description":"Reference answer (may be truncated); an object for custom runs."},"response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response","description":"Answer that was scored (may be truncated)."},"outcome":{"type":"string","enum":["correct","incorrect","errored","unscored"],"title":"Outcome","description":"correct / incorrect = the evaluator's verdict; errored = no response; unscored = the metric has no per-sample verdict (e.g. BLEU, ROUGE)."},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"Row id of the sample (custom and agent runs)."},"sample_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sample Key","description":"Testcase index within the dataset version."},"repeat":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Repeat","description":"Repeat number (0-based)."},"target_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Kind","description":"model or agent."},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"completed, requires_action, denied, incomplete, failed, timeout, error, cancelled, ..."},"input":{"anyOf":[{},{"type":"null"}],"title":"Input","description":"The testcase input: text, turns or scenario."},"scores":{"anyOf":[{"items":{"$ref":"#/components/schemas/RunSampleScore"},"type":"array"},{"type":"null"}],"title":"Scores"},"trajectory":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Trajectory","description":"Tools offered and called, steps, usage."},"usage":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Usage"},"latency_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latency Ms"},"response_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Response Ids"},"trace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Id","description":"Opens the sample's trace in observability."},"error":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Error","description":"{category, message, http_status, code, param}."},"policy_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Id","description":"Governance policy that stopped the sample, when known."},"policy_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Name","description":"That policy's name; null when unknown."},"cost":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Cost","description":"{agent, judge, simulator, currency, estimated}."},"content_dropped":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Content Dropped","description":"Text fields were not stored (store_content=false)."},"score_history":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Score History"},"review":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Review"},"reviews":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Reviews","description":"Per-score reviews: [{instance, verdict: agree | disagree, reviewer_id, human_value, note}]."},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["index","outcome"],"title":"RunSampleItem","description":"One scored sample: what was asked, what was expected, what the model or agent answered.\n\nBenchmark runs fill the first six fields. Custom and agent runs (per-sample rows in the\nevaluation engine, spec 027 §5.9) also fill the optional ones below; ``status`` carries the\nsample's outcome (§5.7) and ``outcome`` the derived verdict."},"RunSampleScore":{"properties":{"metric":{"type":"string","title":"Metric","description":"Catalog key of the metric, e.g. answer_relevancy."},"instance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instance","description":"The metric instance the score belongs to (absent on older rows: the metric name)."},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value","description":"The score; null when the metric did not run on this sample, or for a label result."},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit","description":"score, ratio, count, ms, tokens or currency."},"threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Threshold"},"success":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Success","description":"value met the threshold; null when not scored."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"skipped":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skipped","description":"Why it was not scored: no_answer, judge_unavailable or error."},"error":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Error","description":"The error type when skipped is error."},"judge":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Judge","description":"Model that judged the score; null for judge-free metrics."},"scored_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scored At","description":"When the score was computed (ISO-8601)."},"direction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction","description":"higher, lower or none (labels): which way is better."},"self_graded":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Self Graded","description":"True when the judge was the target model itself."},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label","description":"Label results (classifiers): the label returned."},"expected_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Label"},"conditions":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Conditions","description":"Row rules: per-condition verdicts."},"turn_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Turn Index","description":"Turn-wise scores: the deciding turn (0-based)."},"turn_values":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Turn Values","description":"Turn-wise scores: the value (or label) of each assistant turn (spec 028 contract §B)."},"metric_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Metric Version"},"verbose_logs":{"anyOf":[{},{"type":"null"}],"title":"Verbose Logs","description":"The metric's verbose logs, when the run enabled them."},"eval_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eval Mode","description":"llm, hybrid or system_one: the effective mode."},"decision_judge":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Judge","description":"Gateway alias of the decision judge, when one decided."},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence","description":"Lowest decision confidence; null when none answered."},"fallback_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fallback Reason","description":"Hybrid: why a decision fell back to the chat judge."},"decisions":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Decisions","description":"Per-question answers with probabilities (≤ 64)."},"decisions_truncated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Decisions Truncated"}},"type":"object","required":["metric"],"title":"RunSampleScore","description":"One metric's verdict on one sample (custom and agent runs).\n\nSpec 028 (F-15, FRD §5.14): everything the engine stores on a score passes through, so a cell\ncan say why it is blank, who judged it and which way is better without a catalog lookup."},"RunSamplesResponse":{"properties":{"object":{"type":"string","title":"Object","default":"run.samples"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"available":{"type":"boolean","title":"Available","description":"Whether per-sample results exist for this run.","default":false},"total":{"type":"integer","minimum":0.0,"title":"Total","description":"Samples in the run, before filters.","default":0},"counts":{"$ref":"#/components/schemas/RunSampleCounts"},"matched":{"type":"integer","minimum":0.0,"title":"Matched","description":"Samples matching the outcome / search / subset filters.","default":0},"offset":{"type":"integer","minimum":0.0,"title":"Offset","default":0},"limit":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Limit","default":50},"subsets":{"items":{"type":"string"},"type":"array","title":"Subsets","description":"Subsets of the run, sorted."},"items":{"items":{"$ref":"#/components/schemas/RunSampleItem"},"type":"array","title":"Items"},"config":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"number"}]},"type":"object","title":"Config","description":"Generation settings the run used (max_tokens, temperature, few_shot, ...); {} when unknown."},"generated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generated At","description":"When the scored attempt started (ISO-8601, no zone)."},"eval_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eval Method","description":"How the run was scored, e.g. gen (generation) or ppl."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Set when results exist but could not be loaded right now."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Why per-sample results are unavailable: not_recorded (a run from before they were stored), expired (retention) or purged."},"expired_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expired On","description":"When the rows expired or were purged."},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source","description":"Where the samples come from: sample_store for custom and agent runs."},"status_counts":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Status Counts","description":"Custom and agent runs: samples per status (FRD 027 §5.7), before filters."},"next_since":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Since","description":"Opaque cursor: pass it back as ``since`` to read only the samples changed after this page."}},"additionalProperties":false,"type":"object","required":["message"],"title":"RunSamplesResponse","description":"Paged per-sample results of a run.\n\n``available`` is false when the run has no per-sample results: it has not\nfinished, it is a red-team run (findings have their own view), its rows were\nnever recorded, expired or were purged (``reason``), or the results could not\nbe read (``error`` then says so)."},"RunStateResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"state":{"additionalProperties":true,"type":"object","title":"State"}},"additionalProperties":false,"type":"object","required":["message","state"],"title":"RunStateResponse","description":"Response for GET /runs/{session_id} (budprompt state passthrough)."},"RunStatusEnum":{"type":"string","enum":["pending","running","completed","failed","cancelled","skipped","deleted"],"title":"RunStatusEnum"},"RunSummaryResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"available":{"type":"boolean","title":"Available","default":false},"total":{"type":"integer","title":"Total","default":0},"counts":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Counts"},"policies":{"items":{},"type":"array","title":"Policies","description":"Per policy: policy_id, policy_name, status, count."},"cost":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Cost"},"breakers":{"items":{},"type":"array","title":"Breakers"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"review":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Review"},"score_reviews":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Score Reviews","description":"Per-score reviews by metric instance: {<instance>: {agree, disagree}} (spec 028 D-18)."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"manifest":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Manifest"},"target":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Target"}},"additionalProperties":false,"type":"object","required":["message"],"title":"RunSummaryResponse","description":"Counts per status and per policy, cost, breakers and outcome of a run (INTERFACES §1.4)."},"RunTestcasesResponse":{"properties":{"testcases":{"items":{"$ref":"#/components/schemas/TestcaseResultOut"},"type":"array","title":"Testcases"}},"type":"object","required":["testcases"],"title":"RunTestcasesResponse","description":"Envelope for per-testcase results of a single run."},"RunTimelineResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["message","items"],"title":"RunTimelineResponse","description":"Response for GET /runs/{session_id}/timeline (budprompt timeline passthrough)."},"RunWatchResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"session_id":{"type":"string","title":"Session Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"watching":{"type":"boolean","title":"Watching","default":false},"ttl_seconds":{"type":"integer","title":"Ttl Seconds"},"heartbeat_seconds":{"type":"integer","title":"Heartbeat Seconds"}},"additionalProperties":false,"type":"object","required":["message","session_id","ttl_seconds","heartbeat_seconds"],"title":"RunWatchResponse","description":"Response for POST /runs/{session_id}/watch — the presence heartbeat (FR-WATCH-020/060).\n\n``status`` is the run's CURRENT status and is always present: that is what lets the client\nstop heartbeating a run nothing will read, and it is why a terminal or parked run answers\n202-with-status rather than 404/500 (a laptop waking from two hours of sleep degrades\nquietly). ``watching`` reports whether the lease was actually written.\n\n``ttl_seconds`` / ``heartbeat_seconds`` are echoed so the cadence is the SERVER's. The TTL\nis never client-supplied — that is exactly what makes the engine-side ``GREATEST`` bump\nmonotonic, so a second viewer can never shorten another's lease."},"RunWithEvaluations":{"properties":{"run_id":{"type":"string","format":"uuid4","title":"Run Id","description":"Run UUID"},"run_index":{"type":"integer","title":"Run Index","description":"Run index within experiment"},"status":{"type":"string","title":"Status","description":"Run status"},"model":{"$ref":"#/components/schemas/ModelDetail","description":"Model details"},"traits":{"items":{"$ref":"#/components/schemas/TraitWithDatasets"},"type":"array","title":"Traits","description":"Traits with their associated datasets"},"evaluation_job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evaluation Job Id","description":"BudEval job ID if evaluation was triggered"},"scores":{"anyOf":[{"$ref":"#/components/schemas/EvaluationScore"},{"type":"null"}],"description":"Evaluation scores from BudEval"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"Run creation timestamp"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"Run update timestamp"},"target_type":{"type":"string","title":"Target Type","description":"model or agent (spec 027)","default":"model"},"prompt_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Prompt Id","description":"The agent evaluated, for an agent target"},"prompt_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Version","description":"The agent version evaluated, for an agent target"},"prompt_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Name","description":"The agent's name (agent targets)."},"prompt_version_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Prompt Version Id","description":"The agent version id (agent targets)."},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Endpoint Id","description":"The endpoint called; an agent's backing deployment."},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name","description":"That endpoint's name."}},"type":"object","required":["run_id","run_index","status","model","traits"],"title":"RunWithEvaluations","description":"Run information with evaluation details and scores."},"RunWithResults":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id","description":"The UUID of the run."},"experiment_id":{"type":"string","format":"uuid4","title":"Experiment Id","description":"The UUID of the parent experiment."},"run_index":{"type":"integer","title":"Run Index","description":"Auto-incrementing index within the experiment."},"endpoint_id":{"type":"string","format":"uuid4","title":"Endpoint Id","description":"The UUID of the endpoint being evaluated."},"dataset_version_id":{"type":"string","format":"uuid4","title":"Dataset Version Id","description":"The UUID of the dataset version."},"status":{"$ref":"#/components/schemas/RunStatusEnum","description":"Current status of the run."},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config","description":"Run-specific configuration."},"metrics":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Metrics","description":"List of metrics for this run.","default":[]},"raw_results":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Raw Results","description":"Raw results for this run."},"evaluation_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Evaluation Id","description":"The evaluation (one target, several datasets) the run belongs to."},"gateway_alias":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gateway Alias","description":"Snapshot of the gateway alias used when the run was triggered."},"gateway_endpoint_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Gateway Endpoint Id","description":"Resolved BudGateway endpoint id captured at trigger time."},"failure_payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Failure Payload","description":"Sanitized failure payload from the parent evaluation (category, user_message, details, occurred_at)."},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At","description":"Evaluation lifecycle: when the run's evaluation transitioned to RUNNING."},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At","description":"Evaluation lifecycle: when the run's evaluation reached a terminal state."},"red_team_plan":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Red Team Plan","description":"For a red-team run: the framework, attack ids and scenarios it executed."},"target_type":{"type":"string","title":"Target Type","description":"model or agent (spec 027).","default":"model"},"prompt_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Prompt Id","description":"The agent evaluated (agent targets)."},"prompt_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Name","description":"The agent's name (agent targets)."},"prompt_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Version","description":"The agent version evaluated (agent targets)."},"prompt_version_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Prompt Version Id","description":"The agent version id (agent targets)."},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name","description":"That endpoint's name."}},"type":"object","required":["id","experiment_id","run_index","endpoint_id","dataset_version_id","status"],"title":"RunWithResults","description":"Run with metrics and results included."},"RuntimeOptionsIn":{"properties":{"verbose_mode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Verbose Mode","description":"Keep each metric's verbose logs on its scores."},"ignore_errors":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ignore Errors","description":"A metric error becomes an error cell, not a failure."},"skip_on_missing_params":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Skip On Missing Params","description":"A metric whose fields a row lacks is skipped (missing_params) instead of failing."},"use_cache":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Cache","description":"Reuse identical judge calls within the run."}},"additionalProperties":false,"type":"object","title":"RuntimeOptionsIn","description":"Scoring runtime options applied to one run only (spec 028 D-37, F-7)."},"RuntimeStats":{"properties":{"active_seconds":{"type":"integer","title":"Active Seconds","description":"Active runtime in seconds"},"estimated_total_seconds":{"type":"integer","title":"Estimated Total Seconds","description":"Estimated total runtime in seconds"}},"type":"object","required":["active_seconds","estimated_total_seconds"],"title":"RuntimeStats","description":"Runtime statistics for an experiment."},"SafeContentConfig":{"properties":{"category":{"type":"string","title":"Category","default":"safe"},"description":{"type":"string","title":"Description"},"items":{"items":{"$ref":"#/components/schemas/ContentItem"},"type":"array","title":"Items"},"examples":{"items":{"$ref":"#/components/schemas/PolicyExample"},"type":"array","title":"Examples"}},"type":"object","required":["description","items","examples"],"title":"SafeContentConfig","description":"Safe content configuration for policy."},"SampleReviewIn":{"properties":{"verdict":{"type":"string","enum":["pass","fail","n/a"],"title":"Verdict"},"note":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["verdict"],"title":"SampleReviewIn","description":"``PUT /experiments/runs/{run_id}/samples/{sample_id}/review`` (FRD §5.25)."},"SampleReviewResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"review":{"additionalProperties":true,"type":"object","title":"Review"}},"additionalProperties":false,"type":"object","required":["message"],"title":"SampleReviewResponse","description":"The reviewer's verdict as the evaluation service stored it."},"SandboxTiming":{"properties":{"clamav_seconds":{"type":"number","title":"Clamav Seconds","default":0.0},"skillspector_seconds":{"type":"number","title":"Skillspector Seconds","default":0.0},"timed_out":{"type":"boolean","title":"Timed Out","default":false}},"additionalProperties":false,"type":"object","title":"SandboxTiming","description":"Wall-clock per step. Mirrors budmodel `SandboxTiming`."},"ScanLastError":{"properties":{"at":{"type":"string","title":"At"},"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"workflow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Id"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"additionalProperties":false,"type":"object","required":["at","code","message"],"title":"ScanLastError","description":"The only thing a failed re-scan writes."},"ScannerInfo":{"properties":{"skillspector_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skillspector Version"},"skillspector_pin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skillspector Pin"},"clamav_engine_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clamav Engine Version"},"clamav_db":{"$ref":"#/components/schemas/ClamAVDbInfo"}},"additionalProperties":false,"type":"object","title":"ScannerInfo","description":"What produced the result. Mirrors budmodel `ScannerInfo`."},"ScannerTypeEnum":{"type":"string","enum":["classifier","llm","pattern","bud_raa_classifier","agentmesh_policy"],"title":"ScannerTypeEnum","description":"Type of model scanner for guardrail rules."},"ScheduleIn":{"properties":{"frequency":{"type":"string","enum":["off","daily","weekly","version"],"title":"Frequency","default":"off"},"day":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Day"},"hour":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hour"},"minute":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minute","description":"Ignored: budapp spreads the minute (FRD §5.10)."},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone","default":"UTC"},"on_new_version":{"type":"boolean","title":"On New Version","default":false}},"type":"object","title":"ScheduleIn"},"SchemaBase":{"properties":{"schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Schema","description":"JSON schema representation"},"validations":{"anyOf":[{"additionalProperties":{"additionalProperties":{"type":"string"},"type":"object"},"type":"object"},{"type":"null"}],"title":"Validations","description":"Validation prompts by model and field. Format: {ModelName: {field_name: validation_prompt}}"}},"type":"object","title":"SchemaBase","description":"Base schema for input/output with validations."},"ScopeRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"Whether agents can use this connection at all. False → no scope tags (hidden from all agents)","default":true},"global":{"type":"boolean","title":"Global","description":"When enabled, enable for agents in all projects","default":true},"projects":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Projects","description":"Project IDs to enable for (used when enabled and not global)"}},"type":"object","title":"ScopeRequest","description":"Agent-visibility scope for a connection.\n\nA connection is visible to an agent in project P iff it is ``global`` OR ``P`` is in\n``projects``. Encoded as MCP Foundry gateway tags (``scope:global`` / ``project:{id}``);\nno budapp DB mapping."},"ScoreReviewIn":{"properties":{"verdict":{"type":"string","enum":["agree","disagree"],"title":"Verdict"},"human_value":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Human Value","description":"The score the reviewer would give."},"note":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["verdict"],"title":"ScoreReviewIn","description":"``PUT /experiments/runs/{run_id}/samples/{sample_id}/scores/{instance}/review`` (spec 028 D-18)."},"SendPasswordResetResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"acknowledged":{"type":"boolean","title":"Acknowledged","description":"Whether a reset email was dispatched via the IdP."},"delivery":{"type":"string","title":"Delivery","description":"'idp_email' when sent, 'not_sent' when the user is unknown to the IdP."},"account_management_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Management Url"}},"additionalProperties":false,"type":"object","required":["message","acknowledged","delivery"],"title":"SendPasswordResetResponse","description":"Response for an admin-triggered password-reset email."},"SeverityCounts":{"properties":{"CRITICAL":{"type":"integer","title":"Critical","default":0},"HIGH":{"type":"integer","title":"High","default":0},"MEDIUM":{"type":"integer","title":"Medium","default":0},"LOW":{"type":"integer","title":"Low","default":0}},"additionalProperties":false,"type":"object","title":"SeverityCounts","description":"Findings by severity. Mirrors budmodel `SeverityCounts`."},"SharedEventConnectionCreateRequest":{"properties":{"scope":{"type":"string","enum":["global","project"],"title":"Scope","default":"project"},"project_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Project Ids"},"provider":{"type":"string","minLength":1,"title":"Provider"},"credentials":{"additionalProperties":{"type":"string"},"type":"object","title":"Credentials"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"semantics":{"anyOf":[{"type":"string","enum":["conversational","fire_and_forget"]},{"type":"null"}],"title":"Semantics"}},"type":"object","required":["provider","credentials"],"title":"SharedEventConnectionCreateRequest","description":"Create a shared budevent connection (FR-BE-1), PROJECT-scoped or GLOBAL.\n\n``credentials`` is the GENERIC descriptor-driven map (validated against the\nprovider's ``required`` field-spec from ``GET /events/descriptors``); it is passed\nstraight through to budevent and NEVER stored in budapp. ``semantics`` defaults\nfrom the provider when omitted (chat providers -> conversational).\n\n``scope`` selects visibility: ``project`` (default) is shared with a chosen SET of\nprojects (``project_ids``, one or more; the caller must belong to each, unless admin)\nand usable only by those projects' agents; ``global`` (admin-only, enforced in the\nroute) is usable by every project and MUST omit ``project_ids``."},"SharedEventConnectionCreateResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"connection":{"$ref":"#/components/schemas/SharedEventConnectionCreated"}},"additionalProperties":false,"type":"object","required":["message","connection"],"title":"SharedEventConnectionCreateResponse","description":"Response for POST /events/shared-connections."},"SharedEventConnectionCreated":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"connector_id":{"type":"string","title":"Connector Id"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"},"provider":{"type":"string","title":"Provider"}},"type":"object","required":["id","connector_id","provider"],"title":"SharedEventConnectionCreated","description":"The stored shared-connection row + the budevent-issued ids."},"SharedEventConnectionItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"connector_id":{"type":"string","title":"Connector Id"},"provider":{"type":"string","title":"Provider"},"semantics":{"type":"string","title":"Semantics"},"scope":{"type":"string","enum":["global","project"],"title":"Scope","default":"project"},"project_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Project Ids"},"projects":{"items":{"$ref":"#/components/schemas/SharedEventConnectionProjectRef"},"type":"array","title":"Projects"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","connector_id","provider","semantics","created_at"],"title":"SharedEventConnectionItem","description":"A shared connection as listed to project members (FR-BE-3). NEVER credentials."},"SharedEventConnectionListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"connections":{"items":{"$ref":"#/components/schemas/SharedEventConnectionItem"},"type":"array","title":"Connections"}},"additionalProperties":false,"type":"object","required":["message","connections"],"title":"SharedEventConnectionListResponse","description":"Response for GET /events/shared-connections."},"SharedEventConnectionProjectRef":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["id"],"title":"SharedEventConnectionProjectRef","description":"Display reference to a project a connection is shared with (id + name only)."},"SharedEventConnectionUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"project_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Project Ids"},"scope":{"anyOf":[{"type":"string","enum":["global","project"]},{"type":"null"}],"title":"Scope"}},"type":"object","title":"SharedEventConnectionUpdateRequest","description":"Update a shared connection's non-secret metadata (FR-BE-CONN-RENAME/EDIT).\n\nThree independently-optional effects (an OMITTED field is untouched):\n\n- ``name``: display name stored in ``connection_metadata``; a blank/whitespace\n  value CLEARS it (the connection then lists un-named).\n- ``project_ids``: REPLACES the set of projects a PROJECT connection is shared\n  with (non-empty, deduped). A non-admin must be a member of each NEWLY-ADDED\n  project (adding is a grant — mirrors create).\n- ``scope``: switch GLOBAL <-> PROJECT. Any change that touches GLOBAL is\n  **admin-only**; switching TO ``project`` requires ``project_ids``; switching TO\n  ``global`` clears the share-set and forbids ``project_ids``.\n\nCredentials are immutable here, and no budevent call is made — subscriptions /\ndeliveries are untouched (unlike delete)."},"SharedEventConnectionUpdateResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"connection":{"$ref":"#/components/schemas/SharedEventConnectionItem"}},"additionalProperties":false,"type":"object","required":["message","connection"],"title":"SharedEventConnectionUpdateResponse","description":"Response for PATCH /events/shared-connections/{id} — the updated row."},"SignalAcceptedResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"signal_id":{"type":"string","title":"Signal Id"},"session_id":{"type":"string","title":"Session Id"},"kind":{"type":"string","title":"Kind"}},"additionalProperties":false,"type":"object","required":["message","signal_id","session_id","kind"],"title":"SignalAcceptedResponse","description":"Response for the operator action endpoints (202 — signal forwarded)."},"SimilarIn":{"properties":{"row_ids":{"items":{"type":"string","format":"uuid4"},"type":"array","maxItems":100,"minItems":1,"title":"Row Ids"},"k":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"K","default":10},"candidates":{"type":"integer","maximum":2000.0,"minimum":1.0,"title":"Candidates","default":2000},"embedder":{"anyOf":[{"$ref":"#/components/schemas/EndpointRef-Input"},{"type":"null"}],"description":"An embedding model ranks by cosine similarity; without one budeval ranks lexically."}},"additionalProperties":false,"type":"object","required":["row_ids"],"title":"SimilarIn"},"SingleClusterResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"cluster":{"anyOf":[{"$ref":"#/components/schemas/ClusterResponse"},{"$ref":"#/components/schemas/ClusterDetailResponse"}],"title":"Cluster"}},"additionalProperties":false,"type":"object","required":["message","cluster"],"title":"SingleClusterResponse","description":"Single cluster entity."},"SingleProjectResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"project":{"$ref":"#/components/schemas/ProjectResponse"}},"additionalProperties":false,"type":"object","required":["message","project"],"title":"SingleProjectResponse"},"SinglePromptResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"prompt":{"$ref":"#/components/schemas/PromptResponse"},"publish_gate":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Publish Gate","description":"The agent's publish-gate result when the default version changed (spec 027 AE3.6)."},"previous_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Previous Version","description":"The default version number before this edit (spec 033 agent_promote_version)."}},"additionalProperties":false,"type":"object","required":["message","prompt"],"title":"SinglePromptResponse","description":"Single prompt response."},"SinglePromptVersionResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"version":{"$ref":"#/components/schemas/PromptVersionResponse"},"publish_gate":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Publish Gate","description":"The agent's publish-gate result when the default version changed (spec 027 AE3.6)."}},"additionalProperties":false,"type":"object","required":["message","version"],"title":"SinglePromptVersionResponse","description":"Single prompt version response."},"SingleResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"result":{"anyOf":[{},{"items":{},"type":"array"}],"title":"Result"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["result"],"title":"SingleResponse","description":"Single Response Schema."},"SingleResponse_BillingAlertSchema_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"result":{"anyOf":[{"$ref":"#/components/schemas/BillingAlertSchema"},{"items":{"$ref":"#/components/schemas/BillingAlertSchema"},"type":"array"}],"title":"Result"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["result"],"title":"SingleResponse[BillingAlertSchema]"},"SingleResponse_CredentialResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"result":{"anyOf":[{"$ref":"#/components/schemas/CredentialResponse"},{"items":{"$ref":"#/components/schemas/CredentialResponse"},"type":"array"}],"title":"Result"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["result"],"title":"SingleResponse[CredentialResponse]"},"SingleResponse_CredentialRevealResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"result":{"anyOf":[{"$ref":"#/components/schemas/CredentialRevealResponse"},{"items":{"$ref":"#/components/schemas/CredentialRevealResponse"},"type":"array"}],"title":"Result"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["result"],"title":"SingleResponse[CredentialRevealResponse]"},"SingleResponse_CurrentUsageSchema_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"result":{"anyOf":[{"$ref":"#/components/schemas/CurrentUsageSchema"},{"items":{"$ref":"#/components/schemas/CurrentUsageSchema"},"type":"array"}],"title":"Result"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["result"],"title":"SingleResponse[CurrentUsageSchema]"},"SingleResponse_List_BillingAlertSchema__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"result":{"anyOf":[{"items":{"$ref":"#/components/schemas/BillingAlertSchema"},"type":"array"},{"items":{"items":{"$ref":"#/components/schemas/BillingAlertSchema"},"type":"array"},"type":"array"}],"title":"Result"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["result"],"title":"SingleResponse[List[BillingAlertSchema]]"},"SingleResponse_List_BillingPlanSchema__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"result":{"anyOf":[{"items":{"$ref":"#/components/schemas/BillingPlanSchema"},"type":"array"},{"items":{"items":{"$ref":"#/components/schemas/BillingPlanSchema"},"type":"array"},"type":"array"}],"title":"Result"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["result"],"title":"SingleResponse[List[BillingPlanSchema]]"},"SingleResponse_List_UserBillingSchema__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"result":{"anyOf":[{"items":{"$ref":"#/components/schemas/UserBillingSchema"},"type":"array"},{"items":{"items":{"$ref":"#/components/schemas/UserBillingSchema"},"type":"array"},"type":"array"}],"title":"Result"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["result"],"title":"SingleResponse[List[UserBillingSchema]]"},"SingleResponse_List_str__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"result":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"items":{"items":{"type":"string"},"type":"array"},"type":"array"}],"title":"Result"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["result"],"title":"SingleResponse[List[str]]"},"SingleResponse_OAuthLoginResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"result":{"anyOf":[{"$ref":"#/components/schemas/OAuthLoginResponse"},{"items":{"$ref":"#/components/schemas/OAuthLoginResponse"},"type":"array"}],"title":"Result"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["result"],"title":"SingleResponse[OAuthLoginResponse]"},"SingleResponse_OAuthProvidersResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"result":{"anyOf":[{"$ref":"#/components/schemas/OAuthProvidersResponse"},{"items":{"$ref":"#/components/schemas/OAuthProvidersResponse"},"type":"array"}],"title":"Result"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["result"],"title":"SingleResponse[OAuthProvidersResponse]"},"SingleResponse_ProprietaryCredentialDetailedView_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"result":{"anyOf":[{"$ref":"#/components/schemas/ProprietaryCredentialDetailedView"},{"items":{"$ref":"#/components/schemas/ProprietaryCredentialDetailedView"},"type":"array"}],"title":"Result"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["result"],"title":"SingleResponse[ProprietaryCredentialDetailedView]"},"SingleResponse_ProprietaryCredentialResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"result":{"anyOf":[{"$ref":"#/components/schemas/ProprietaryCredentialResponse"},{"items":{"$ref":"#/components/schemas/ProprietaryCredentialResponse"},"type":"array"}],"title":"Result"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["result"],"title":"SingleResponse[ProprietaryCredentialResponse]"},"SingleResponse_RouterActionValidateResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"result":{"anyOf":[{"$ref":"#/components/schemas/RouterActionValidateResponse"},{"items":{"$ref":"#/components/schemas/RouterActionValidateResponse"},"type":"array"}],"title":"Result"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["result"],"title":"SingleResponse[RouterActionValidateResponse]"},"SingleResponse_RouterResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"result":{"anyOf":[{"$ref":"#/components/schemas/RouterResponse"},{"items":{"$ref":"#/components/schemas/RouterResponse"},"type":"array"}],"title":"Result"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["result"],"title":"SingleResponse[RouterResponse]"},"SingleResponse_TokenExchangeResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"result":{"anyOf":[{"$ref":"#/components/schemas/TokenExchangeResponse"},{"items":{"$ref":"#/components/schemas/TokenExchangeResponse"},"type":"array"}],"title":"Result"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["result"],"title":"SingleResponse[TokenExchangeResponse]"},"SingleResponse_UserBillingSchema_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"result":{"anyOf":[{"$ref":"#/components/schemas/UserBillingSchema"},{"items":{"$ref":"#/components/schemas/UserBillingSchema"},"type":"array"}],"title":"Result"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["result"],"title":"SingleResponse[UserBillingSchema]"},"SkillAttachRequest":{"properties":{"skill_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Skill Ids"},"version":{"type":"integer","title":"Version"},"permanent":{"type":"boolean","title":"Permanent","default":false}},"additionalProperties":false,"type":"object","required":["skill_ids","version"],"title":"SkillAttachRequest","description":"Attach or detach skills on one agent version."},"SkillAttachResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"skills":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Skills"}},"additionalProperties":false,"type":"object","required":["message"],"title":"SkillAttachResponse","description":"The version's full skills projection after an attach or detach.\n\nA declared field, NOT `param={\"skills\": ...}`. budapp's `SuccessResponse` carries only\n`object` and `message` and forbids extras, so passing `param` raises a\n`ValidationError` while CONSTRUCTING the response — a 500 raised after the attachment\nrows and the config have already been written, so the operation succeeds and the caller\nis told it failed. (`param` does exist on `ErrorResponse`, which is what makes the\nmistake look plausible.) Shaped like `SkillListResponse`/`SkillDetailResponse` above."},"SkillCatalogEntry":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"digest":{"type":"string","title":"Digest"},"contains_scripts":{"type":"boolean","title":"Contains Scripts"},"contains_resources":{"type":"boolean","title":"Contains Resources"},"contains_assets":{"type":"boolean","title":"Contains Assets"},"resident_tokens":{"type":"integer","title":"Resident Tokens"},"manifest":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Manifest"},"object_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Key"}},"type":"object","required":["id","name","description","digest","contains_scripts","contains_resources","contains_assets","resident_tokens"],"title":"SkillCatalogEntry","description":"Per-skill metadata budprompt resolves once at agent build.\n\nNever includes `body` — that is fetched lazily by `load_skill` and only for the skill\nthe model actually activates."},"SkillCatalogResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"skills":{"items":{"$ref":"#/components/schemas/SkillCatalogEntry"},"type":"array","title":"Skills"}},"additionalProperties":false,"type":"object","required":["message"],"title":"SkillCatalogResponse","description":"Batch catalog for budprompt."},"SkillDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"source":{"$ref":"#/components/schemas/SkillSourceEnum"},"status":{"$ref":"#/components/schemas/SkillStatusEnum"},"is_global":{"type":"boolean","title":"Is Global"},"contains_scripts":{"type":"boolean","title":"Contains Scripts"},"contains_resources":{"type":"boolean","title":"Contains Resources"},"contains_assets":{"type":"boolean","title":"Contains Assets"},"resident_tokens":{"type":"integer","title":"Resident Tokens"},"bundle_size_bytes":{"type":"integer","title":"Bundle Size Bytes"},"file_count":{"type":"integer","title":"File Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"attached_agent_count":{"type":"integer","title":"Attached Agent Count","default":0},"script_count":{"type":"integer","title":"Script Count","default":0},"resource_count":{"type":"integer","title":"Resource Count","default":0},"asset_count":{"type":"integer","title":"Asset Count","default":0},"project_count":{"type":"integer","title":"Project Count","default":0},"scan_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scan Status"},"digest":{"type":"string","title":"Digest"},"source_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Ref"},"manifest":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Manifest"},"project_names":{"items":{"type":"string"},"type":"array","title":"Project Names"},"scan_result":{"anyOf":[{"$ref":"#/components/schemas/SkillScanResult"},{"type":"null"}]}},"type":"object","required":["id","name","description","source","status","is_global","contains_scripts","contains_resources","contains_assets","resident_tokens","bundle_size_bytes","file_count","created_at","digest"],"title":"SkillDetail","description":"Detail page. Adds the manifest; still no body — the Files tab streams file content."},"SkillDetailResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"skill":{"$ref":"#/components/schemas/SkillDetail"}},"additionalProperties":false,"type":"object","required":["message","skill"],"title":"SkillDetailResponse","description":"Single skill."},"SkillListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"source":{"$ref":"#/components/schemas/SkillSourceEnum"},"status":{"$ref":"#/components/schemas/SkillStatusEnum"},"is_global":{"type":"boolean","title":"Is Global"},"contains_scripts":{"type":"boolean","title":"Contains Scripts"},"contains_resources":{"type":"boolean","title":"Contains Resources"},"contains_assets":{"type":"boolean","title":"Contains Assets"},"resident_tokens":{"type":"integer","title":"Resident Tokens"},"bundle_size_bytes":{"type":"integer","title":"Bundle Size Bytes"},"file_count":{"type":"integer","title":"File Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"attached_agent_count":{"type":"integer","title":"Attached Agent Count","default":0},"script_count":{"type":"integer","title":"Script Count","default":0},"resource_count":{"type":"integer","title":"Resource Count","default":0},"asset_count":{"type":"integer","title":"Asset Count","default":0},"project_count":{"type":"integer","title":"Project Count","default":0},"scan_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scan Status"}},"type":"object","required":["id","name","description","source","status","is_global","contains_scripts","contains_resources","contains_assets","resident_tokens","bundle_size_bytes","file_count","created_at"],"title":"SkillListItem","description":"One registry card. Deliberately carries no `body` — see crud.list_skills."},"SkillListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"skills":{"items":{"$ref":"#/components/schemas/SkillListItem"},"type":"array","title":"Skills"},"facet_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Facet Counts"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"SkillListResponse","description":"Paginated registry listing."},"SkillScanResult":{"properties":{"schema_version":{"type":"integer","title":"Schema Version","default":1},"digest":{"type":"string","title":"Digest"},"mode":{"anyOf":[{"type":"string","enum":["static","llm"]},{"type":"null"}],"title":"Mode"},"scanned_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scanned At"},"workflow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Id"},"scanner":{"$ref":"#/components/schemas/ScannerInfo"},"summary":{"anyOf":[{"$ref":"#/components/schemas/SkillScanSummary"},{"type":"null"}]},"report_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Key"},"sandbox":{"$ref":"#/components/schemas/SandboxTiming"},"last_error":{"anyOf":[{"$ref":"#/components/schemas/ScanLastError"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["digest"],"title":"SkillScanResult","description":"`skill.scan_result` — the summary envelope budapp writes on the skill row.\n\n`mode`, `scanned_at` and `summary` are OPTIONAL, and that is not laxity. A scan whose first attempt\nfailed produces no result to describe: there is nothing to keep from a previous run, so the\nrow holds a digest and a `last_error` and nothing else. Requiring them made that row fail\nvalidation, which turned the detail route into a 500 and left the skill unreachable from\nthe one page that could explain why. The scan is advisory (D4); an artifact of it must\nnever be able to take a skill's page down."},"SkillScanSummary":{"properties":{"severity":{"type":"string","enum":["LOW","MEDIUM","HIGH","CRITICAL"],"title":"Severity","default":"LOW"},"recommendation":{"type":"string","enum":["SAFE","CAUTION","DO_NOT_INSTALL"],"title":"Recommendation","default":"SAFE"},"score":{"type":"integer","title":"Score","default":0},"max_issue_severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Max Issue Severity"},"findings_count":{"type":"integer","title":"Findings Count","default":0},"counts":{"$ref":"#/components/schemas/SeverityCounts"},"suppressed_count":{"type":"integer","title":"Suppressed Count","default":0},"has_executable_scripts":{"type":"boolean","title":"Has Executable Scripts","default":false},"shipped_baseline":{"type":"boolean","title":"Shipped Baseline","default":false},"clamav":{"$ref":"#/components/schemas/ClamAVSummary"},"completeness":{"$ref":"#/components/schemas/CompletenessSummary"},"analyzers":{"$ref":"#/components/schemas/AnalyzerCounts"},"llm":{"$ref":"#/components/schemas/LLMSummary"},"headline":{"$ref":"#/components/schemas/Headline"},"top_findings":{"items":{"$ref":"#/components/schemas/TopFinding"},"type":"array","title":"Top Findings"}},"additionalProperties":false,"type":"object","title":"SkillScanSummary","description":"The verdict block. Mirrors budmodel `SkillScanSummary`."},"SkillScanWorkflowRequest":{"properties":{"workflow_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workflow Id"},"workflow_total_steps":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Workflow Total Steps"},"step_number":{"type":"integer","exclusiveMinimum":0.0,"title":"Step Number"},"mode":{"type":"string","enum":["static","llm"],"title":"Mode","default":"static"},"llm_project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Llm Project Id"},"llm_endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Llm Endpoint Id"},"skill_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Skill Ids"}},"additionalProperties":false,"type":"object","required":["step_number"],"title":"SkillScanWorkflowRequest","description":"`POST /skills/scan-workflow` — start a scan, from the wizard or the detail page.\n\nWhich surface is calling is decided by the resolved workflow TYPE, never by the step\nnumber: `workflow_id` pointing at a SKILL_CREATION row means the wizard (scan the\nselection), no `workflow_id` means the detail page (create a SKILL_SCAN row and scan\n`skill_ids`)."},"SkillSourceEnum":{"type":"string","enum":["upload","github","url","pact_import"],"title":"SkillSourceEnum","description":"Where the bundle bytes came from."},"SkillStatusEnum":{"type":"string","enum":["DRAFT","ACTIVE","DELETED"],"title":"SkillStatusEnum","description":"Lifecycle of a registered skill.\n\nDRAFT exists only between a passing validation and publish. It never reserves the\nskill's name — see `uq_skill_name_active` — and is reclaimed by the sweeper if the\nwizard is abandoned."},"SkillWorkflowStepRequest":{"properties":{"workflow_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workflow Id"},"workflow_total_steps":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Workflow Total Steps"},"step_number":{"type":"integer","exclusiveMinimum":0.0,"title":"Step Number"},"trigger_workflow":{"type":"boolean","title":"Trigger Workflow","default":false},"source_type":{"anyOf":[{"type":"string","enum":["github","url","pact_import"]},{"type":"null"}],"title":"Source Type"},"repo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo Url"},"git_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Git Ref"},"subdir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subdir"},"github_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Github Token"},"bundle_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bundle Url"},"pact_import_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Pact Import Id"},"skill_key":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$"},{"type":"null"}],"title":"Skill Key"},"name_override":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Name Override"},"description_override":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Description Override"},"selected_skill_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Selected Skill Ids"},"is_global":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Global"},"project_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Project Ids"},"scan_mode":{"anyOf":[{"type":"string","const":"skipped"},{"type":"null"}],"title":"Scan Mode"}},"additionalProperties":false,"type":"object","required":["step_number"],"title":"SkillWorkflowStepRequest","description":"A step post to the register wizard (JSON variant).\n\nThe client owns the numbering and sends `workflow_total_steps` on the first post. The\nbackend records what it is given and derives the one step it adds itself (the ingest\nevents row) from it, so nothing here is pinned to a particular value.\n\nWhich handler runs is decided by what the request CARRIES, not by its number — see the\ndispatch in `skill_routes`."},"SpeculativeDecodingIntent":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"method":{"anyOf":[{"type":"string","enum":["mtp","eagle3","ngram"]},{"type":"null"}],"title":"Method"},"num_speculative_tokens":{"anyOf":[{"type":"integer","maximum":8.0,"minimum":1.0},{"type":"null"}],"title":"Num Speculative Tokens"},"draft_model_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Draft Model Id"}},"type":"object","required":["enabled"],"title":"SpeculativeDecodingIntent","description":"The deploy form's speculative-decoding choice (FRD-027 §10.5). Off unless the user enables it.\n\n``method`` and ``num_speculative_tokens`` left None mean \"the planner's default\" (MTP when the checkpoint has an\nMTP head, else EAGLE3 with a validated draft; k from the sampling class). ``draft_model_id`` is the EAGLE3 draft."},"StageFileIn":{"properties":{"sheet":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Sheet","description":"XLSX only; default the first sheet."},"mapping":{"additionalProperties":{"type":"string"},"type":"object","title":"Mapping","description":"Column → a field, \"tags\", \"metadata.<key>\" (or \"variables.<k>\", …) or \"skip\"."},"delimiters":{"additionalProperties":{"type":"string"},"type":"object","title":"Delimiters","description":"Per field or column; defaults \"|\" for passages and lists, \";\" for tools."},"grouping":{"anyOf":[{"$ref":"#/components/schemas/GroupingIn"},{"type":"null"}]},"mode":{"type":"string","enum":["append","replace"],"title":"Mode","default":"append"}},"additionalProperties":false,"type":"object","required":["mapping"],"title":"StageFileIn","description":"``POST …/files/{file_token}/stage``."},"StagedRowsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"total":{"type":"integer","title":"Total"},"included":{"type":"integer","title":"Included"},"matched":{"type":"integer","title":"Matched"},"offset":{"type":"integer","title":"Offset"},"limit":{"type":"integer","title":"Limit"},"rows":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rows"}},"additionalProperties":false,"type":"object","required":["message","total","included","matched","offset","limit","rows"],"title":"StagedRowsResponse"},"StagedSelectionIn":{"properties":{"include":{"anyOf":[{"items":{"type":"integer"},"type":"array","maxItems":100000},{"type":"null"}],"title":"Include"},"exclude":{"anyOf":[{"items":{"type":"integer"},"type":"array","maxItems":100000},{"type":"null"}],"title":"Exclude"},"all":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"All"}},"additionalProperties":false,"type":"object","title":"StagedSelectionIn","description":"``PATCH …/staged``: ``all`` applies first (true = every row), then ``include`` / ``exclude``."},"StagedSelectionResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"included":{"type":"integer","title":"Included"}},"additionalProperties":false,"type":"object","required":["message","included"],"title":"StagedSelectionResponse"},"StandingGrantItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"session_id":{"type":"string","title":"Session Id"},"escalation_key":{"type":"string","title":"Escalation Key"},"policy_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Policy Id"},"policy_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Name"},"rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Name"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"granted_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Granted By"},"granted_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Granted By Name"},"resolution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution"},"granted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Granted At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"}},"type":"object","required":["id","session_id","escalation_key"],"title":"StandingGrantItem","description":"One active standing grant (FR-ESC-220 item shape)."},"StandingGrantListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"governance.standing_grant.list"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"grants":{"items":{"$ref":"#/components/schemas/StandingGrantItem"},"type":"array","title":"Grants"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"StandingGrantListResponse","description":"Paginated standing-grant listing (FR-ESC-220 / FR-DATA-230)."},"StdioCredentials":{"properties":{"passthrough_headers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Passthrough Headers","description":"List of headers to pass through (e.g., ['Authorization', 'X-Tenant-Id'])"},"env":{"additionalProperties":{"type":"string"},"type":"object","title":"Env","description":"Environment variables required by the STDIO MCP server (keys defined by connector's env_schema)"}},"type":"object","required":["env"],"title":"StdioCredentials","description":"STDIO transport credentials — environment variables for the spawned process.\n\nThe accepted env keys are defined by the connector's ``env_schema`` in the MCP registry."},"StepsPreviewIn":{"properties":{"criteria":{"type":"string","maxLength":8000,"minLength":1,"title":"Criteria"},"evaluation_params":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Evaluation Params"},"scope":{"type":"string","enum":["single","multi"],"title":"Scope","default":"single"},"judge":{"$ref":"#/components/schemas/JudgeIn"}},"additionalProperties":false,"type":"object","required":["criteria","judge"],"title":"StepsPreviewIn","description":"``POST /eval-ops/metrics/steps-preview``."},"StepsPreviewResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"steps":{"additionalProperties":true,"type":"object","title":"Steps","description":"{evaluation_steps[]}"}},"additionalProperties":false,"type":"object","required":["message","steps"],"title":"StepsPreviewResponse"},"StorageMetrics":{"properties":{"total_gib":{"type":"number","title":"Total Gib","default":0.0},"used_gib":{"type":"number","title":"Used Gib","default":0.0},"available_gib":{"type":"number","title":"Available Gib","default":0.0},"usage_percent":{"type":"number","title":"Usage Percent","default":0.0},"change_percent":{"type":"number","title":"Change Percent","default":0.0}},"type":"object","title":"StorageMetrics","description":"Storage metrics schema."},"StoredRunsIn":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"The new evaluation's name."},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"prompt_id":{"type":"string","format":"uuid","title":"Prompt Id","description":"The agent."},"version":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Version","description":"Only runs of this version; default every version."},"since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since","description":"Runs created at or after this time."},"until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until","description":"Runs created before this time; default now."},"limit":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Limit","description":"At most this many runs, newest first.","default":50},"dataset_id":{"type":"string","format":"uuid","title":"Dataset Id","description":"A custom dataset whose metric configuration scores the runs (its testcases are not run)."},"dataset_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Dataset Version Id"},"metrics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Metrics","description":"A subset of the dataset's metrics, or catalog metrics."},"judge_endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Judge Endpoint Id","description":"Needed when a metric uses a judge."},"include_subagents":{"type":"boolean","title":"Include Subagents","description":"Attach delegated sub-agent runs (AE3.8).","default":true}},"type":"object","required":["name","prompt_id","dataset_id"],"title":"StoredRunsIn","description":"Score an agent's stored production runs (AE3.5). The agent is not called."},"StylingIn":{"properties":{"scenario":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Scenario"},"task":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Task"},"input_format":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Input Format"},"expected_output_format":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Expected Output Format"}},"additionalProperties":false,"type":"object","title":"StylingIn"},"SuggestedPricing":{"properties":{"unit":{"$ref":"#/components/schemas/PricingUnitEnum"},"input_cost":{"type":"number","title":"Input Cost"},"output_cost":{"type":"number","title":"Output Cost"},"currency":{"type":"string","title":"Currency","default":"USD"},"per_tokens":{"type":"integer","title":"Per Tokens"},"source":{"type":"string","enum":["model_registry","budsim","manual"],"title":"Source"},"rates":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Rates"}},"type":"object","required":["unit","input_cost","output_cost","per_tokens","source"],"title":"SuggestedPricing","description":"A price derived from the deployment's cost on record, in ``DeploymentPricingInput``'s shape."},"SupportPolicyRequest":{"properties":{"policy":{"type":"string","enum":["allowed","approval_required","denied"],"title":"Policy"}},"additionalProperties":false,"type":"object","required":["policy"],"title":"SupportPolicyRequest"},"SupportRequestCreate":{"properties":{"user_email":{"type":"string","format":"email","title":"User Email"},"role":{"type":"string","enum":["support_read","support_write"],"title":"Role"},"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"additionalProperties":false,"type":"object","required":["user_email","role","reason","expires_at"],"title":"SupportRequestCreate"},"TPPPOptionResponse":{"properties":{"tp_size":{"type":"integer","title":"Tp Size"},"pp_size":{"type":"integer","title":"Pp Size"},"max_replicas":{"type":"integer","title":"Max Replicas"},"total_devices_needed":{"type":"integer","title":"Total Devices Needed"},"description":{"type":"string","title":"Description"}},"type":"object","required":["tp_size","pp_size","max_replicas","total_devices_needed","description"],"title":"TPPPOptionResponse","description":"TP/PP option response from budsim."},"Tag":{"properties":{"name":{"type":"string","minLength":1,"title":"Name"},"color":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","title":"Color"}},"type":"object","required":["name","color"],"title":"Tag","description":"Tag schema with name and color."},"TagExistingRequest":{"properties":{"connector_id":{"type":"string","title":"Connector Id","description":"Registry connector ID to link to this gateway"}},"type":"object","required":["connector_id"],"title":"TagExistingRequest","description":"Request to backfill tags on an existing gateway."},"TagWithCount":{"properties":{"name":{"type":"string","title":"Name"},"color":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","title":"Color"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["name","color","count"],"title":"TagWithCount","description":"Tag with count schema."},"TagsListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"tags":{"items":{"$ref":"#/components/schemas/Tag"},"type":"array","title":"Tags","description":"List of matching tags"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","tags","total_pages"],"title":"TagsListResponse","description":"Response schema for tags list."},"Task":{"properties":{"name":{"type":"string","minLength":1,"title":"Name"},"color":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","title":"Color"}},"type":"object","required":["name","color"],"title":"Task","description":"Task schema with name and description."},"TasksListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"tasks":{"items":{"$ref":"#/components/schemas/Task"},"type":"array","title":"Tasks","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"TasksListResponse","description":"Response schema for tasks list."},"TelemetryQueryRequest":{"properties":{"prompt_id":{"type":"string","minLength":1,"title":"Prompt Id"},"from_date":{"type":"string","format":"date-time","title":"From Date"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"to_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To Date"},"trace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Id"},"span_names":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Span Names"},"depth":{"type":"integer","maximum":10.0,"minimum":-1.0,"title":"Depth","default":0},"select_attributes":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":50},{"type":"null"}],"title":"Select Attributes"},"include_all_attributes":{"type":"boolean","title":"Include All Attributes","default":false},"include_resource_attributes":{"type":"boolean","title":"Include Resource Attributes","default":false},"include_events":{"type":"boolean","title":"Include Events","default":false},"include_links":{"type":"boolean","title":"Include Links","default":false},"span_filters":{"anyOf":[{"items":{"$ref":"#/components/schemas/FilterCondition"},"type":"array","maxItems":20},{"type":"null"}],"title":"Span Filters"},"resource_filters":{"anyOf":[{"items":{"$ref":"#/components/schemas/FilterCondition"},"type":"array","maxItems":20},{"type":"null"}],"title":"Resource Filters"},"order_by":{"anyOf":[{"items":{"$ref":"#/components/schemas/OrderBySpec"},"type":"array"},{"type":"null"}],"title":"Order By"},"page":{"type":"integer","minimum":1.0,"title":"Page","default":1},"limit":{"type":"integer","minimum":0.0,"title":"Limit","default":10}},"type":"object","required":["prompt_id","from_date"],"title":"TelemetryQueryRequest","description":"Request schema for querying prompt telemetry data.\n\nThe project_id is excluded — it is injected server-side from API key context."},"TelemetryQueryResponse":{"properties":{"object":{"type":"string","title":"Object","default":"telemetry_query"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"data":{"items":{"$ref":"#/components/schemas/TelemetrySpanItem"},"type":"array","title":"Data"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"TelemetryQueryResponse","description":"Response schema for telemetry query results."},"TelemetrySpanItem":{"properties":{"timestamp":{"type":"string","title":"Timestamp"},"trace_id":{"type":"string","title":"Trace Id"},"span_id":{"type":"string","title":"Span Id"},"parent_span_id":{"type":"string","title":"Parent Span Id","default":""},"trace_state":{"type":"string","title":"Trace State","default":""},"span_name":{"type":"string","title":"Span Name"},"span_kind":{"type":"string","title":"Span Kind","default":""},"service_name":{"type":"string","title":"Service Name","default":""},"scope_name":{"type":"string","title":"Scope Name","default":""},"scope_version":{"type":"string","title":"Scope Version","default":""},"duration":{"type":"integer","title":"Duration","default":0},"status_code":{"type":"string","title":"Status Code","default":""},"status_message":{"type":"string","title":"Status Message","default":""},"child_count":{"type":"integer","title":"Child Count","default":0},"children":{"items":{"$ref":"#/components/schemas/TelemetrySpanItem"},"type":"array","title":"Children"},"attributes":{"additionalProperties":{"type":"string"},"type":"object","title":"Attributes"},"resource_attributes":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Resource Attributes"},"events":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Events"},"links":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Links"}},"type":"object","required":["timestamp","trace_id","span_id","span_name"],"title":"TelemetrySpanItem","description":"Schema for a telemetry span item."},"TenantCreateRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"slug":{"type":"string","maxLength":63,"minLength":1,"title":"Slug"},"owner_email":{"type":"string","format":"email","title":"Owner Email"},"owner_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Owner Name"},"plan_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Plan Id"},"placement":{"anyOf":[{"type":"string","enum":["shared","dedicated","byo"]},{"type":"null"}],"title":"Placement"},"region":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Region"}},"additionalProperties":false,"type":"object","required":["name","slug","owner_email"],"title":"TenantCreateRequest"},"TenantNameRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"}},"additionalProperties":false,"type":"object","required":["name"],"title":"TenantNameRequest"},"TenantSwitchRequest":{"properties":{"slug":{"type":"string","maxLength":63,"minLength":3,"pattern":"^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$","title":"Slug"}},"additionalProperties":false,"type":"object","required":["slug"],"title":"TenantSwitchRequest"},"TenantUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"plan_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Plan Id"},"region":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Region"},"placement":{"anyOf":[{"type":"string","enum":["shared","dedicated","byo"]},{"type":"null"}],"title":"Placement"},"settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Settings"}},"additionalProperties":false,"type":"object","title":"TenantUpdateRequest"},"TestcaseResultOut":{"properties":{"testcase_id":{"type":"string","title":"Testcase Id"},"input":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input"},"expected":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected"},"actual":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actual"},"scores":{"items":{"$ref":"#/components/schemas/TestcaseScoreOut"},"type":"array","title":"Scores"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"tags":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Tags"}},"type":"object","required":["testcase_id","scores"],"title":"TestcaseResultOut","description":"One testcase row with its per-metric scores."},"TestcaseScoreOut":{"properties":{"metric_name":{"type":"string","title":"Metric Name"},"metric_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Metric Value"},"success":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Success"},"metric":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metric"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"The judge's reason for the score (F-15)."},"direction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction","description":"higher, lower or none: which way is better."},"self_graded":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Self Graded"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["metric_name"],"title":"TestcaseScoreOut","description":"Per-metric score for a single testcase.\n\n``metric_name`` is the metric instance (spec 028 D-38; the catalog key on older rows and for\na metric's first instance); ``metric`` the catalog key when it differs."},"Tier":{"properties":{"up_to":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string"},{"type":"null"}],"title":"Up To"},"unit_price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"}],"title":"Unit Price"}},"additionalProperties":false,"type":"object","required":["unit_price"],"title":"Tier"},"TimeSeriesGroup":{"properties":{"model_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Model Id","description":"Model ID"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name","description":"Model name"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id","description":"Project ID"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name","description":"Project name"},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Endpoint Id","description":"Endpoint ID"},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name","description":"Endpoint name"},"api_key_project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Api Key Project Id","description":"API key's project ID (for user_project grouping)"},"api_key_project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Project Name","description":"API key's project name"},"dimensions":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Dimensions","description":"Non-entity grouping dimensions (e.g. cache_result, prompt)"},"data_points":{"items":{"$ref":"#/components/schemas/budapp__metric_ops__schemas__TimeSeriesPoint"},"type":"array","title":"Data Points","description":"Time series data points"}},"type":"object","required":["data_points"],"title":"TimeSeriesGroup","description":"Time series data for a specific group."},"TimeSeriesRequest":{"properties":{"from_date":{"type":"string","format":"date-time","title":"From Date","description":"Start date for the time series"},"to_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To Date","description":"End date for the time series"},"interval":{"type":"string","enum":["1m","5m","15m","30m","1h","6h","12h","1d","1w"],"title":"Interval","description":"Time interval for data points","default":"1h"},"metrics":{"items":{"type":"string","enum":["requests","success_rate","avg_latency","p95_latency","p99_latency","tokens","cost","ttft_avg","cache_hit_rate","throughput","error_rate","unique_users","success_count","error_count","cache_cost_saved","cache_would_be_cost_saved","adapter_bytes_saved","cached_discount_saved","cache_bypass_breakdown","cache_cost_saved_coverage","cache_would_be_cost_saved_coverage","cached_discount_saved_coverage"]},"type":"array","title":"Metrics","description":"Metrics to include in time series"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters","description":"Filters to apply"},"group_by":{"anyOf":[{"items":{"type":"string","enum":["model","project","endpoint","user_project","cache_result","cache_miss_reason","cache_transform_class","prompt"]},"type":"array"},{"type":"null"}],"title":"Group By","description":"Dimensions to group by"},"fill_gaps":{"type":"boolean","title":"Fill Gaps","description":"Fill gaps in time series data","default":true},"data_source":{"type":"string","enum":["inference","prompt","serving"],"title":"Data Source","description":"Which grain of an agent run to count. 'inference' (default) is the caller's own traffic -- ordinary rows plus the agent wrapper -- and matches billing. 'prompt' is an agent run's nested model rows, for per-agent analytics. 'serving' is everything except the wrapper: what it cost to serve, and the only grain carrying the cache columns, since the wrapper fans out to the model calls and is never seen by the cache seam. Never bill from 'serving'.","default":"inference"},"include_evaluation":{"type":"boolean","title":"Include Evaluation","description":"Spec 027 AE3.4: include evaluation runs' traffic (excluded from production analytics by default).","default":false}},"type":"object","required":["from_date","metrics"],"title":"TimeSeriesRequest","description":"Request schema for time-series data."},"TimeSeriesResponse":{"properties":{"object":{"type":"string","title":"Object","description":"Response object type","default":"time_series"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"groups":{"items":{"$ref":"#/components/schemas/TimeSeriesGroup"},"type":"array","title":"Groups","description":"Time series groups"},"interval":{"type":"string","title":"Interval","description":"Time interval used"},"date_range":{"additionalProperties":{"type":"string","format":"date-time"},"type":"object","title":"Date Range","description":"Date range for the time series"}},"additionalProperties":false,"type":"object","required":["message","groups","interval","date_range"],"title":"TimeSeriesResponse","description":"Response schema for time-series data."},"ToggleRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"Whether the gateway should be enabled"}},"type":"object","required":["enabled"],"title":"ToggleRequest","description":"Request to enable/disable a configured connector gateway."},"TokenExchangeRequest":{"properties":{"exchange_token":{"type":"string","title":"Exchange Token","description":"The temporary exchange token"}},"type":"object","required":["exchange_token"],"title":"TokenExchangeRequest","description":"Request model for token exchange."},"TokenExchangeResponse":{"properties":{"access_token":{"type":"string","title":"Access Token","description":"JWT access token"},"refresh_token":{"type":"string","title":"Refresh Token","description":"JWT refresh token"},"token_type":{"type":"string","title":"Token Type","description":"Token type","default":"Bearer"},"expires_in":{"type":"integer","title":"Expires In","description":"Token expiration in seconds"},"user":{"additionalProperties":true,"type":"object","title":"User","description":"User information"}},"type":"object","required":["access_token","refresh_token","expires_in","user"],"title":"TokenExchangeResponse","description":"Response model for token exchange."},"TokenStats":{"properties":{"total":{"type":"integer","title":"Total","description":"Total tokens"},"prefix":{"type":"integer","title":"Prefix","description":"Prefix tokens"},"decode":{"type":"integer","title":"Decode","description":"Decode tokens"},"unit":{"type":"string","title":"Unit","description":"Unit of measurement","default":"tokens"}},"type":"object","required":["total","prefix","decode"],"title":"TokenStats","description":"Token statistics for an experiment."},"Tool":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"type":{"type":"string","title":"Type"},"schema":{"additionalProperties":true,"type":"object","title":"Schema"}},"type":"object","required":["id","name","description","type","schema"],"title":"Tool","description":"Schema for tool data."},"ToolListItem":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"is_added":{"type":"boolean","title":"Is Added","description":"Whether tool is added to prompt config"}},"type":"object","required":["id","name","type","is_added"],"title":"ToolListItem","description":"Schema for tool item in list response."},"ToolListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"tools":{"items":{"$ref":"#/components/schemas/ToolListItem"},"type":"array","title":"Tools","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"type":"object","required":["message","page","limit","total_pages"],"title":"ToolListResponse","description":"Tool list response schema."},"ToolResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"success":{"type":"boolean","title":"Success","description":"Always true; error paths return ErrorResponse.","default":true},"tool":{"$ref":"#/components/schemas/Tool"}},"additionalProperties":false,"type":"object","required":["message","tool"],"title":"ToolResponse","description":"Response schema for single tool retrieval."},"TopFinding":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"file":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File"},"start_line":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start Line"},"end_line":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End Line"}},"additionalProperties":false,"type":"object","title":"TopFinding","description":"At most five, for the row. Mirrors budmodel `TopFinding`."},"TopLeaderboard":{"properties":{"benchmarks":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Benchmarks"},"name":{"type":"string","title":"Name"},"provider_type":{"type":"string","title":"Provider Type"}},"type":"object","required":["benchmarks","name","provider_type"],"title":"TopLeaderboard","description":"Top leaderboard response schema."},"TopLeaderboardBenchmark":{"properties":{"field":{"type":"string","title":"Field"},"value":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Value"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"label":{"type":"string","title":"Label"}},"type":"object","required":["field","label"],"title":"TopLeaderboardBenchmark","description":"Top leaderboard benchmark schema."},"TopLeaderboardRequest":{"properties":{"benchmarks":{"items":{"type":"string"},"type":"array","title":"Benchmarks","description":"The benchmarks to list"},"k":{"type":"integer","minimum":1.0,"title":"K","description":"Maximum number of leaderboards","default":5}},"type":"object","required":["benchmarks"],"title":"TopLeaderboardRequest","description":"Top leaderboard request schema."},"TopLeaderboardResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"leaderboards":{"items":{"$ref":"#/components/schemas/TopLeaderboard"},"type":"array","title":"Leaderboards","default":[]}},"additionalProperties":false,"type":"object","required":["message"],"title":"TopLeaderboardResponse","description":"Top leaderboard response schema."},"TopRoute":{"properties":{"route":{"type":"string","title":"Route","description":"API route path"},"method":{"type":"string","title":"Method","description":"HTTP method"},"request_count":{"type":"integer","title":"Request Count","description":"Number of requests to this route"},"error_count":{"type":"integer","title":"Error Count","description":"Number of errors for this route","default":0},"avg_response_time":{"type":"number","title":"Avg Response Time","description":"Average response time in milliseconds"},"p95_response_time":{"type":"number","title":"P95 Response Time","description":"95th percentile response time"},"p99_response_time":{"type":"number","title":"P99 Response Time","description":"99th percentile response time"},"error_rate":{"type":"number","title":"Error Rate","description":"Error rate percentage"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id","description":"Associated project ID"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name","description":"Associated project name"},"model_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Model Id","description":"Associated model ID"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name","description":"Associated model name"},"endpoint_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Endpoint Id","description":"Associated endpoint ID"},"endpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Name","description":"Associated endpoint name"}},"type":"object","required":["route","method","request_count","avg_response_time","p95_response_time","p99_response_time","error_rate"],"title":"TopRoute","description":"Top API route item."},"TopRoutesResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TopRoute"},"type":"array","title":"Items","description":"List of top routes"},"total":{"type":"integer","title":"Total","description":"Total number of routes"}},"additionalProperties":false,"type":"object","required":["message","items","total"],"title":"TopRoutesResponse","description":"Response schema for top routes."},"TraceDetailResponse":{"properties":{"object":{"type":"string","title":"Object","default":"trace_detail"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"trace_id":{"type":"string","title":"Trace Id"},"spans":{"items":{"$ref":"#/components/schemas/TraceItem"},"type":"array","title":"Spans","default":[]},"total_spans":{"type":"integer","title":"Total Spans","default":0}},"additionalProperties":false,"type":"object","required":["message","trace_id"],"title":"TraceDetailResponse","description":"Response schema for single trace with all spans."},"TraceEvent":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"name":{"type":"string","title":"Name"},"attributes":{"additionalProperties":{"type":"string"},"type":"object","title":"Attributes"}},"type":"object","required":["timestamp","name","attributes"],"title":"TraceEvent","description":"Schema for span events."},"TraceItem":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"trace_id":{"type":"string","title":"Trace Id"},"span_id":{"type":"string","title":"Span Id"},"parent_span_id":{"type":"string","title":"Parent Span Id"},"trace_state":{"type":"string","title":"Trace State"},"span_name":{"type":"string","title":"Span Name"},"span_kind":{"type":"string","title":"Span Kind"},"service_name":{"type":"string","title":"Service Name"},"resource_attributes":{"additionalProperties":{"type":"string"},"type":"object","title":"Resource Attributes"},"scope_name":{"type":"string","title":"Scope Name"},"scope_version":{"type":"string","title":"Scope Version"},"span_attributes":{"additionalProperties":true,"type":"object","title":"Span Attributes"},"duration":{"type":"integer","title":"Duration"},"status_code":{"type":"string","title":"Status Code"},"status_message":{"type":"string","title":"Status Message"},"events":{"items":{"$ref":"#/components/schemas/TraceEvent"},"type":"array","title":"Events"},"links":{"items":{"$ref":"#/components/schemas/TraceLink"},"type":"array","title":"Links"},"child_span_count":{"type":"integer","title":"Child Span Count","default":0},"trace_duration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Trace Duration"},"voice_session":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Voice Session"},"agent_turn_cost":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Agent Turn Cost"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","default":[]}},"type":"object","required":["timestamp","trace_id","span_id","parent_span_id","trace_state","span_name","span_kind","service_name","resource_attributes","scope_name","scope_version","span_attributes","duration","status_code","status_message","events","links"],"title":"TraceItem","description":"Schema for a single trace/span item."},"TraceLink":{"properties":{"trace_id":{"type":"string","title":"Trace Id"},"span_id":{"type":"string","title":"Span Id"},"trace_state":{"type":"string","title":"Trace State"},"attributes":{"additionalProperties":{"type":"string"},"type":"object","title":"Attributes"}},"type":"object","required":["trace_id","span_id","trace_state","attributes"],"title":"TraceLink","description":"Schema for span links."},"TraceListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"trace_list"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"items":{"items":{"$ref":"#/components/schemas/TraceItem"},"type":"array","title":"Items","default":[]},"tags_unavailable":{"type":"boolean","title":"Tags Unavailable","default":false},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"TraceListResponse","description":"Response schema for listing traces."},"TraceResourceType":{"type":"string","enum":["all","endpoint","prompt","project","model"],"title":"TraceResourceType","description":"Enum for trace resource types used in filtering."},"Trait":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id","description":"The UUID of the trait."},"name":{"type":"string","title":"Name","description":"The name of the trait."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"The description of the trait."},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","description":"Optional category metadata."},"exps_ids":{"items":{"type":"string","format":"uuid4"},"type":"array","title":"Exps Ids","description":"Optional list of experiment UUIDs.","default":[]},"datasets":{"items":{"$ref":"#/components/schemas/DatasetBasic"},"type":"array","title":"Datasets","description":"List of datasets associated with this trait.","default":[]}},"type":"object","required":["id","name"],"title":"Trait","description":"A trait that experiments can be grouped by."},"TraitBasic":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id","description":"The UUID of the trait."},"name":{"type":"string","title":"Name","description":"The name of the trait."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"The description of the trait."}},"type":"object","required":["id","name"],"title":"TraitBasic","description":"Basic trait information for lightweight listing."},"TraitScoreItem":{"properties":{"trait_id":{"type":"string","format":"uuid4","title":"Trait Id","description":"Trait ID"},"trait_name":{"type":"string","title":"Trait Name","description":"Trait name"},"score":{"type":"number","title":"Score","description":"Best score for this trait (0-100)"},"run_count":{"type":"integer","title":"Run Count","description":"Number of runs contributing to this score"}},"type":"object","required":["trait_id","trait_name","score","run_count"],"title":"TraitScoreItem","description":"Score for a single trait."},"TraitSummary":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id","description":"The UUID of the trait."},"name":{"type":"string","title":"Name","description":"The name of the trait."},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon","description":"The icon for the trait."}},"type":"object","required":["id","name"],"title":"TraitSummary","description":"Summary of a trait associated with datasets in an experiment."},"TraitWithDatasets":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id","description":"Trait UUID"},"name":{"type":"string","title":"Name","description":"Trait name"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon","description":"Trait icon"},"datasets":{"items":{"$ref":"#/components/schemas/DatasetInfo"},"type":"array","title":"Datasets","description":"Datasets associated with this trait"}},"type":"object","required":["id","name"],"title":"TraitWithDatasets","description":"Trait information with associated datasets."},"TriggerCreateRequest":{"properties":{"name":{"type":"string","minLength":1,"title":"Name"},"connection_id":{"type":"string","format":"uuid","title":"Connection Id"},"target":{"$ref":"#/components/schemas/TriggerTarget"},"event_types":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Event Types"},"descriptor":{"$ref":"#/components/schemas/TriggerDescriptorBody"},"sources":{"anyOf":[{"items":{"$ref":"#/components/schemas/TriggerSourceInput"},"type":"array"},{"type":"null"}],"title":"Sources"},"project_id":{"type":"string","format":"uuid","title":"Project Id"}},"type":"object","required":["name","connection_id","target","event_types","descriptor","project_id"],"title":"TriggerCreateRequest","description":"Author a trigger (POST /triggers)."},"TriggerCreateResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"trigger":{"$ref":"#/components/schemas/TriggerCreated"}},"additionalProperties":false,"type":"object","required":["message","trigger"],"title":"TriggerCreateResponse","description":"Response for POST /triggers."},"TriggerCreated":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"subscription_id":{"type":"string","title":"Subscription Id"},"summary":{"$ref":"#/components/schemas/TriggerSummary"}},"type":"object","required":["id","subscription_id","summary"],"title":"TriggerCreated","description":"The created trigger ids + behavior summary."},"TriggerDescriptorBody":{"properties":{"correlation":{"$ref":"#/components/schemas/CorrelationSpec"},"join":{"anyOf":[{"$ref":"#/components/schemas/JoinSpec"},{"type":"null"}]},"hitl":{"anyOf":[{"$ref":"#/components/schemas/HitlSpec"},{"type":"null"}]},"escalation":{"anyOf":[{"$ref":"#/components/schemas/EscalationSpec"},{"type":"null"}]},"debounce":{"anyOf":[{"$ref":"#/components/schemas/DebounceSpec"},{"type":"null"}]},"cep":{"anyOf":[{"$ref":"#/components/schemas/CepSpec"},{"type":"null"}]}},"type":"object","required":["correlation"],"title":"TriggerDescriptorBody","description":"The advanced-algebra descriptor authored for a trigger.\n\nOnly ``correlation`` is required; the rest (join/hitl/escalation/debounce/cep)\nare opt-in behaviors. Runtime registration of the advanced behaviors with budevent\nis DEFERRED (Wave 3.0) — budapp persists the whole descriptor today."},"TriggerDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"prompt_id":{"type":"string","title":"Prompt Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"connection_id":{"type":"string","format":"uuid","title":"Connection Id"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types"},"summary":{"$ref":"#/components/schemas/TriggerSummary"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"subscription_id":{"type":"string","title":"Subscription Id"},"descriptor":{"additionalProperties":true,"type":"object","title":"Descriptor"},"sources":{"items":{"$ref":"#/components/schemas/TriggerSourceRef"},"type":"array","title":"Sources"}},"type":"object","required":["id","name","prompt_id","project_id","connection_id","event_types","summary","created_at","subscription_id","descriptor"],"title":"TriggerDetail","description":"Full trigger including the persisted descriptor + version + subscription id."},"TriggerDetailResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"trigger":{"$ref":"#/components/schemas/TriggerDetail"}},"additionalProperties":false,"type":"object","required":["message","trigger"],"title":"TriggerDetailResponse","description":"Response for GET /triggers/{id}."},"TriggerInfo":{"properties":{"subscription_id":{"type":"string","title":"Subscription Id","description":"budevent subscription id."},"connector_id":{"type":"string","title":"Connector Id","description":"The connector the trigger is bound to."},"trigger_type":{"type":"string","title":"Trigger Type","description":"'conversational' or 'event'.","default":"event"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types","description":"Subscribed provider event types."},"gateway_id":{"type":"string","title":"Gateway Id","description":"Legacy MCP-gateway id (empty for budevent triggers).","default":""},"webhook_url":{"type":"string","title":"Webhook Url","description":"Webhook URL to paste into the provider app's event subscriptions."}},"type":"object","required":["subscription_id","connector_id","event_types","webhook_url"],"title":"TriggerInfo","description":"A single configured trigger (subscription) for an agent connector."},"TriggerListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"prompt_id":{"type":"string","title":"Prompt Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"connection_id":{"type":"string","format":"uuid","title":"Connection Id"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types"},"summary":{"$ref":"#/components/schemas/TriggerSummary"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","prompt_id","project_id","connection_id","event_types","summary","created_at"],"title":"TriggerListItem","description":"A trigger as listed to project members. NEVER credentials."},"TriggerListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TriggerListItem"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["message","items"],"title":"TriggerListResponse","description":"Response for GET /triggers."},"TriggerProviderInfo":{"properties":{"provider":{"type":"string","title":"Provider","description":"Provider/descriptor ref (e.g. 'slack', 'github', 'linear')."},"conversational":{"type":"boolean","title":"Conversational","description":"True for chat providers (Slack/Teams) where the agent replies in-thread (needs a bot token).","default":false},"event_count":{"type":"integer","title":"Event Count","description":"Number of selectable event types for this provider.","default":0},"credentials":{"items":{"$ref":"#/components/schemas/CredentialFieldInfo"},"type":"array","title":"Credentials","description":"Descriptor-driven credential field-spec the UI renders for Enable/Connect (generic, per-provider)."}},"type":"object","required":["provider"],"title":"TriggerProviderInfo","description":"A supported trigger provider (event source), sourced from budevent."},"TriggerProvidersResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"providers":{"items":{"$ref":"#/components/schemas/TriggerProviderInfo"},"type":"array","title":"Providers","description":"Supported trigger providers."}},"additionalProperties":false,"type":"object","required":["message"],"title":"TriggerProvidersResponse","description":"The supported trigger providers (event sources), sourced from budevent.\n\nTriggers are independent of MCP tool connectors — this is the authoritative list the\ntrigger UI should offer in its provider step."},"TriggerSourceInput":{"properties":{"connection_id":{"type":"string","format":"uuid","title":"Connection Id"},"event_types":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Event Types"},"correlation_key":{"type":"string","minLength":1,"title":"Correlation Key"}},"type":"object","required":["connection_id","event_types","correlation_key"],"title":"TriggerSourceInput","description":"One event source of a MULTI-SOURCE trigger (multi-source-join.md §2.2).\n\n``correlation_key`` is that provider's payload path holding the SHARED case\nidentifier (the ticket number that appears in every source's payload)."},"TriggerSourceRef":{"properties":{"connection_id":{"type":"string","format":"uuid","title":"Connection Id"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types"},"correlation_key":{"type":"string","title":"Correlation Key"},"subscription_id":{"type":"string","title":"Subscription Id"}},"type":"object","required":["connection_id","event_types","correlation_key","subscription_id"],"title":"TriggerSourceRef","description":"A trigger source as read back (never credentials)."},"TriggerSummary":{"properties":{"has_hitl":{"type":"boolean","title":"Has Hitl","default":false},"has_join":{"type":"boolean","title":"Has Join","default":false},"has_escalation":{"type":"boolean","title":"Has Escalation","default":false},"behaviors":{"items":{"type":"string"},"type":"array","title":"Behaviors"}},"type":"object","title":"TriggerSummary","description":"A compact, UI-friendly summary of which behaviors a descriptor enables."},"TriggerTarget":{"properties":{"prompt_id":{"type":"string","minLength":1,"title":"Prompt Id"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"}},"type":"object","required":["prompt_id"],"title":"TriggerTarget","description":"The budprompt agent a trigger fires."},"TriggerUpdateRequest":{"properties":{"name":{"type":"string","minLength":1,"title":"Name"},"connection_id":{"type":"string","format":"uuid","title":"Connection Id"},"target":{"$ref":"#/components/schemas/TriggerTarget"},"event_types":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Event Types"},"descriptor":{"$ref":"#/components/schemas/TriggerDescriptorBody"},"sources":{"anyOf":[{"items":{"$ref":"#/components/schemas/TriggerSourceInput"},"type":"array"},{"type":"null"}],"title":"Sources"}},"type":"object","required":["name","connection_id","target","event_types","descriptor"],"title":"TriggerUpdateRequest","description":"Edit a trigger (PUT /triggers/{id}).\n\n``project_id`` is intentionally absent: an edit never changes the owning project;\nthe value is read from the persisted row. Any ``project_id`` supplied by a client\nis ignored (pydantic's default extra=\"ignore\")."},"TriggerUpdateResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"trigger":{"$ref":"#/components/schemas/TriggerCreated"}},"additionalProperties":false,"type":"object","required":["message","trigger"],"title":"TriggerUpdateResponse","description":"Response for PUT /triggers/{id} (reuses the created-trigger ids + summary)."},"UpdateAgentPublicationStatusRequest":{"properties":{"action":{"type":"string","enum":["publish","unpublish"],"title":"Action"},"pricing":{"anyOf":[{"$ref":"#/components/schemas/AgentPricingInput"},{"type":"null"}],"description":"Required when action='publish'"},"action_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Action Metadata"}},"type":"object","required":["action"],"title":"UpdateAgentPublicationStatusRequest","description":"Request schema for updating agent publication status (publish/unpublish)."},"UpdateAudioConfigRequest":{"properties":{"audio_config":{"anyOf":[{"$ref":"#/components/schemas/AudioDeploymentConfig"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"UpdateAudioConfigRequest","description":"Request schema for ``PUT /endpoints/{id}/audio-config``.\n\nWhole-object replacement, like the Responses config: the form loads the current block,\nmutates what the operator edited and PUTs all of it. ``null`` clears the configuration\nentirely, which is the only way to get a deployment back to vendor defaults."},"UpdateAutoscaleRequest":{"properties":{"budaiscaler_specification":{"$ref":"#/components/schemas/BudAIScalerSpecification"}},"additionalProperties":false,"type":"object","required":["budaiscaler_specification"],"title":"UpdateAutoscaleRequest","description":"Request to update BudAIScaler configuration for an existing deployment."},"UpdateBillingAlertStatusRequest":{"properties":{"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["is_active"],"title":"UpdateBillingAlertStatusRequest","description":"Request to update billing alert status (enable/disable)."},"UpdateBillingPlanRequest":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"billing_plan_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Billing Plan Id"},"custom_token_quota":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Custom Token Quota"},"custom_cost_quota":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"},{"type":"null"}],"title":"Custom Cost Quota"}},"type":"object","required":["user_id"],"title":"UpdateBillingPlanRequest","description":"Request to update a user's billing plan and/or their custom quotas.\n\n``billing_plan_id`` is optional so a caller that only edits quotas (the admin\n\"User Usage\" drawer never changes the plan) does not have to know which plan the\nuser is on: omitting it keeps the current plan, and picks the default Free plan\nfor a user who has no billing row yet.\n\nThe quota fields follow \"only what was sent is written\" — the route reads\n``model_fields_set``, so an omitted field is left untouched while an explicit\n``null`` clears the override back to the plan default."},"UpdateClusterSettingsRequest":{"properties":{"default_storage_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Storage Class","description":"Default storage class for cluster deployments"},"default_access_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Access Mode","description":"Default access mode for cluster volumes"}},"type":"object","title":"UpdateClusterSettingsRequest","description":"Request schema for updating cluster settings."},"UpdateConnectionRequest":{"properties":{"clients":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Clients","description":"Client access (e.g. ['studio']). When omitted, client:* tags are left untouched."},"agents":{"anyOf":[{"$ref":"#/components/schemas/ScopeRequest"},{"type":"null"}],"description":"Agent-visibility scope. When omitted, scope:*/project:* tags are left untouched."}},"type":"object","title":"UpdateConnectionRequest","description":"Update a connection's tag-encoded settings in one call.\n\nBoth blocks are optional; only the ones present are applied (each rewrites its own tag family,\nthe rest is preserved). The gateway on/off ``enabled`` boolean is separate (see ``/toggle``)."},"UpdateContextLengthRequest":{"properties":{"context_length":{"anyOf":[{"type":"integer","maximum":10000000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Context Length","description":"The deployment's context window in tokens; null falls back to the detected value."}},"type":"object","title":"UpdateContextLengthRequest","description":"Request schema for ``PUT /endpoints/{id}/context-length``: a token count, or ``null`` to clear."},"UpdateDeploymentSettingsRequest":{"properties":{"rate_limits":{"anyOf":[{"$ref":"#/components/schemas/RateLimitConfig-Input"},{"type":"null"}]},"retry_config":{"anyOf":[{"$ref":"#/components/schemas/RetryConfig"},{"type":"null"}]},"fallback_config":{"anyOf":[{"$ref":"#/components/schemas/FallbackConfig"},{"type":"null"}]}},"type":"object","title":"UpdateDeploymentSettingsRequest","description":"Request schema for updating deployment settings."},"UpdateEvaluationETARequest":{"properties":{"evaluation_id":{"type":"string","format":"uuid","title":"Evaluation Id","description":"ID of the evaluation to update"},"eta_seconds":{"type":"integer","minimum":0.0,"title":"Eta Seconds","description":"Remaining time in seconds"}},"type":"object","required":["evaluation_id","eta_seconds"],"title":"UpdateEvaluationETARequest","description":"Request schema for updating evaluation ETA from budeval service."},"UpdateExperimentRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The name of the experiment."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"The description of the experiment."}},"type":"object","title":"UpdateExperimentRequest","description":"Request schema to update an experiment."},"UpdateExperimentResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"experiment":{"$ref":"#/components/schemas/Experiment","description":"The updated experiment."}},"additionalProperties":false,"type":"object","required":["message","experiment"],"title":"UpdateExperimentResponse","description":"Response schema for updating an experiment."},"UpdateNotificationPreferencesRequest":{"properties":{"enable_email_notifications":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Email Notifications"},"enable_in_app_notifications":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable In App Notifications"}},"type":"object","title":"UpdateNotificationPreferencesRequest","description":"Request to update notification preferences."},"UpdateOp":{"properties":{"op":{"type":"string","const":"update","title":"Op"},"row_id":{"type":"string","format":"uuid","title":"Row Id"},"data":{"additionalProperties":true,"type":"object","title":"Data"}},"additionalProperties":false,"type":"object","required":["op","row_id","data"],"title":"UpdateOp","description":"Replace a row's data (the whole row: a cell edit sends the row with that cell changed)."},"UpdatePublicationStatusRequest":{"properties":{"action":{"type":"string","enum":["publish","unpublish"],"title":"Action"},"pricing":{"anyOf":[{"$ref":"#/components/schemas/DeploymentPricingInput"},{"type":"null"}],"description":"Required when action='publish'"},"action_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Action Metadata"}},"type":"object","required":["action"],"title":"UpdatePublicationStatusRequest","description":"Request schema for updating publication status (publish/unpublish)."},"UpdateResponsesConfigRequest":{"properties":{"responses_config":{"$ref":"#/components/schemas/ResponsesConfig"}},"type":"object","required":["responses_config"],"title":"UpdateResponsesConfigRequest","description":"Request schema for ``PUT /endpoints/{id}/responses-config``.\n\nThe budadmin UI ships the full ``ResponsesConfig`` object on every\nsave (it loads the current config, mutates the field the user\nedited, and PUTs the whole thing). Accepting it whole keeps the\nserver-side write atomic — no partial-merge corner cases."},"UpdateRouterPublicationStatusRequest":{"properties":{"action":{"type":"string","enum":["publish","unpublish"],"title":"Action"},"pricing":{"anyOf":[{"$ref":"#/components/schemas/RouterPricingInput"},{"type":"null"}],"description":"Required when action='publish'"},"action_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Action Metadata"}},"type":"object","required":["action"],"title":"UpdateRouterPublicationStatusRequest","description":"Request body for ``PUT /routers/{id}/publish``."},"UpdateRunResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"run":{"$ref":"#/components/schemas/Run","description":"The updated run."}},"additionalProperties":false,"type":"object","required":["message","run"],"title":"UpdateRunResponse","description":"Response after updating a run."},"UpsertNativeToolRequest":{"properties":{"version":{"type":"integer","minimum":1.0,"title":"Version","description":"Prompt version to modify","default":1},"tool_name":{"type":"string","title":"Tool Name","description":"Native tool identifier (e.g., 'web_search')"},"config":{"additionalProperties":true,"type":"object","title":"Config","description":"Tool-specific configuration. Validated against the config model registered for `tool_name` (see NATIVE_TOOL_CONFIG_INPUTS); the per-tool field set is the one `GET /prompts/{id}/native-tools/{tool_name}` returns as config_schema."},"permanent":{"type":"boolean","title":"Permanent","description":"Store configuration permanently without expiration","default":false}},"type":"object","required":["tool_name"],"title":"UpsertNativeToolRequest","description":"Request for connecting or updating a native tool."},"UpsertNativeToolResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"tool":{"$ref":"#/components/schemas/UpsertNativeToolResult","description":"Connected tool result"}},"additionalProperties":false,"type":"object","required":["message","tool"],"title":"UpsertNativeToolResponse","description":"Response for connecting or updating a native tool."},"UpsertNativeToolResult":{"properties":{"name":{"type":"string","title":"Name","description":"Tool identifier"},"connected":{"type":"boolean","title":"Connected","description":"Whether the tool is connected"},"connected_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Connected Config","description":"Currently applied config"}},"type":"object","required":["name","connected"],"title":"UpsertNativeToolResult","description":"Result data for a connected/updated native tool."},"UsageHistoryRequest":{"properties":{"start_date":{"type":"string","format":"date-time","title":"Start Date"},"end_date":{"type":"string","format":"date-time","title":"End Date"},"granularity":{"type":"string","pattern":"^(hourly|daily|weekly|monthly)$","title":"Granularity","default":"daily"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["start_date","end_date"],"title":"UsageHistoryRequest","description":"Request for usage history."},"UsageSummarySchema":{"properties":{"tokens_used":{"type":"integer","title":"Tokens Used"},"tokens_quota":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tokens Quota"},"tokens_usage_percent":{"type":"number","title":"Tokens Usage Percent"},"cost_used":{"type":"number","title":"Cost Used"},"cost_quota":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Quota"},"cost_usage_percent":{"type":"number","title":"Cost Usage Percent"},"request_count":{"type":"integer","title":"Request Count"},"success_rate":{"type":"number","title":"Success Rate"},"agent_cost":{"type":"number","title":"Agent Cost","default":0.0},"agent_tokens":{"type":"integer","title":"Agent Tokens","default":0},"agent_request_count":{"type":"integer","title":"Agent Request Count","default":0},"voice_cost":{"type":"number","title":"Voice Cost","default":0.0},"voice_request_count":{"type":"integer","title":"Voice Request Count","default":0},"voice_audio_seconds":{"type":"number","title":"Voice Audio Seconds","default":0.0},"voice_characters":{"type":"integer","title":"Voice Characters","default":0},"voice_realtime_cost":{"type":"number","title":"Voice Realtime Cost","default":0.0},"voice_realtime_input_tokens":{"type":"integer","title":"Voice Realtime Input Tokens","default":0},"voice_realtime_cached_input_tokens":{"type":"integer","title":"Voice Realtime Cached Input Tokens","default":0},"voice_realtime_output_tokens":{"type":"integer","title":"Voice Realtime Output Tokens","default":0},"voice_realtime_sessions":{"type":"integer","title":"Voice Realtime Sessions","default":0},"evaluation_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Evaluation Cost"},"evaluation_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evaluation Tokens"},"evaluation_request_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evaluation Request Count"}},"type":"object","required":["tokens_used","tokens_quota","tokens_usage_percent","cost_used","cost_quota","cost_usage_percent","request_count","success_rate"],"title":"UsageSummarySchema","description":"Usage summary schema."},"UsedInResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"used_in":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Used In"}},"additionalProperties":false,"type":"object","required":["message","used_in"],"title":"UsedInResponse"},"UserBillingSchema":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"billing_plan_id":{"type":"string","format":"uuid","title":"Billing Plan Id"},"billing_period_start":{"type":"string","format":"date-time","title":"Billing Period Start"},"billing_period_end":{"type":"string","format":"date-time","title":"Billing Period End"},"custom_token_quota":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Custom Token Quota"},"custom_cost_quota":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Cost Quota"},"enable_email_notifications":{"type":"boolean","title":"Enable Email Notifications","default":true},"enable_in_app_notifications":{"type":"boolean","title":"Enable In App Notifications","default":true},"is_active":{"type":"boolean","title":"Is Active"},"is_suspended":{"type":"boolean","title":"Is Suspended"},"suspension_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suspension Reason"},"is_current":{"type":"boolean","title":"Is Current"},"cycle_number":{"type":"integer","title":"Cycle Number"},"superseded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Superseded At"},"superseded_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Superseded By Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","user_id","billing_plan_id","billing_period_start","billing_period_end","custom_token_quota","custom_cost_quota","is_active","is_suspended","suspension_reason","is_current","cycle_number","created_at","modified_at"],"title":"UserBillingSchema","description":"User billing schema."},"UserCreate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"email":{"type":"string","maxLength":100,"minLength":1,"format":"email","title":"Email"},"password":{"type":"string","maxLength":100,"minLength":8,"title":"Password"},"permissions":{"anyOf":[{"items":{"$ref":"#/components/schemas/PermissionList"},"type":"array"},{"type":"null"}],"title":"Permissions"},"role":{"$ref":"#/components/schemas/UserRoleEnum"},"company":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Company","description":"Company name"},"purpose":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Purpose","description":"Purpose of using the platform"},"user_type":{"$ref":"#/components/schemas/UserTypeEnum","description":"Type of user (admin or client)","default":"client"}},"type":"object","required":["name","email","password","role"],"title":"UserCreate","description":"Create user schema."},"UserCreateRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"email":{"type":"string","maxLength":100,"minLength":1,"format":"email","title":"Email"},"password":{"anyOf":[{"type":"string","maxLength":100,"minLength":8},{"type":"null"}],"title":"Password"},"permissions":{"anyOf":[{"items":{"$ref":"#/components/schemas/PermissionList"},"type":"array"},{"type":"null"}],"title":"Permissions"},"role":{"$ref":"#/components/schemas/UserRoleEnum"},"company":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Company","description":"Company name"},"purpose":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Purpose","description":"Purpose of using the platform"},"user_type":{"$ref":"#/components/schemas/UserTypeEnum","description":"Type of user (admin or client)","default":"client"},"tenant_role":{"anyOf":[{"type":"string","enum":["member","tenant_admin"]},{"type":"null"}],"title":"Tenant Role","description":"Role in the caller's organization; default member"}},"type":"object","required":["name","email","role"],"title":"UserCreateRequest","description":"``POST /users/``: a user plus their role in the caller's organization (spec 032 D-19).\n\n``tenant_role`` is not a user column: the route takes it off before the user is built."},"UserInfo":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"email":{"type":"string","maxLength":100,"minLength":1,"format":"email","title":"Email"},"id":{"type":"string","format":"uuid4","title":"Id"},"color":{"type":"string","title":"Color"},"role":{"$ref":"#/components/schemas/UserRoleEnum"},"status":{"$ref":"#/components/schemas/UserStatusEnum"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose"},"user_type":{"$ref":"#/components/schemas/UserTypeEnum"}},"type":"object","required":["name","email","id","color","role","status","user_type"],"title":"UserInfo","description":"User response to client schema."},"UserListItem":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"email":{"type":"string","maxLength":100,"minLength":1,"format":"email","title":"Email"},"id":{"type":"string","format":"uuid4","title":"Id"},"color":{"type":"string","title":"Color"},"role":{"$ref":"#/components/schemas/UserRoleEnum"},"status":{"$ref":"#/components/schemas/UserStatusEnum"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose"},"user_type":{"$ref":"#/components/schemas/UserTypeEnum"},"tenant_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Role"},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login At"},"shared_account":{"type":"boolean","title":"Shared Account","description":"The account is also used elsewhere: only its membership here can change (spec 032 D-19)","default":false}},"type":"object","required":["name","email","id","color","role","status","user_type"],"title":"UserListItem","description":"A user in user management, with their membership in the caller's tenant (spec 032 D-19)."},"UserListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"users":{"items":{"$ref":"#/components/schemas/UserListItem"},"type":"array","title":"Users","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"type":"object","required":["message","page","limit","total_pages"],"title":"UserListResponse","description":"User list response to client schema."},"UserLogin":{"properties":{"email":{"type":"string","maxLength":100,"minLength":1,"format":"email","title":"Email"},"password":{"type":"string","maxLength":100,"minLength":8,"title":"Password"},"tenant_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Tenant Id","description":"The ID of the tenant. If not provided, the user will be logged in to the first tenant they belong to."},"user_type":{"$ref":"#/components/schemas/UserTypeEnum","description":"Type of user (admin or client). Defaults to client.","default":"client"},"remember_me":{"type":"boolean","title":"Remember Me","description":"If true, returns offline tokens for extended 30-day sessions.","default":false}},"type":"object","required":["email","password"],"title":"UserLogin","description":"User login schema."},"UserLoginResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"token":{"title":"Token"},"first_login":{"type":"boolean","title":"First Login"},"is_reset_password":{"type":"boolean","title":"Is Reset Password"}},"type":"object","required":["message","token","first_login","is_reset_password"],"title":"UserLoginResponse","description":"User login response schema."},"UserPermissions":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"result":{"title":"Result"}},"additionalProperties":false,"type":"object","required":["message","result"],"title":"UserPermissions","description":"User permissions schema."},"UserProjectPermission":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"permissions":{"items":{"$ref":"#/components/schemas/PermissionList"},"type":"array","title":"Permissions"}},"type":"object","required":["id","name","status","permissions"],"title":"UserProjectPermission","description":"User project permission item."},"UserRegisterResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"type":"string","title":"Message"}},"additionalProperties":false,"type":"object","required":["message"],"title":"UserRegisterResponse","description":"User register response schema."},"UserResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"user":{"$ref":"#/components/schemas/UserInfo"}},"additionalProperties":false,"type":"object","required":["message","user"],"title":"UserResponse","description":"User response to client schema."},"UserRoleEnum":{"type":"string","enum":["admin","super_admin","developer","devops","tester"],"title":"UserRoleEnum","description":"Enumeration of user roles in the system.\n\nThis enum defines the various roles that a user can have in the application.\nEach role represents a different level of access and permissions.\n\nAttributes:\n    ADMIN (str): Administrator role with high-level permissions.\n    SUPER_ADMIN (str): Super administrator role with the highest level of permissions.\n    DEVELOPER (str): Role for software developers.\n    DEVOPS (str): Role for DevOps engineers.\n    TESTER (str): Role for quality assurance testers."},"UserStatusEnum":{"type":"string","enum":["active","deleted","invited"],"title":"UserStatusEnum","description":"Enumeration of user statuses in the system.\n\nThis enum defines the possible statuses that a user account can have.\nIt uses auto() to automatically assign string values equal to the member names.\n\nAttributes:\n    ACTIVE: Represents an active user account.\n    DELETED: Represents an deleted or disabled user account.\n    INVITED: Represents a user who has been invited but hasn't yet activated their account."},"UserSummary":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","email","name"],"title":"UserSummary","description":"Summary schema for user details in publication history."},"UserTypeEnum":{"type":"string","enum":["admin","client"],"title":"UserTypeEnum","description":"Enumeration of user types in the system.\n\nThis enum defines the different types of users that can exist in the application.\nIt helps differentiate between administrative users and regular client users.\n\nAttributes:\n    ADMIN: Administrative user with elevated privileges.\n    CLIENT: Regular client user with standard privileges."},"UserTypeUpdate":{"properties":{"user_type":{"$ref":"#/components/schemas/UserTypeEnum","description":"Target user type (admin or client)"}},"type":"object","required":["user_type"],"title":"UserTypeUpdate","description":"Change a user's platform type (promote a client to admin, or demote).\n\nA dedicated payload rather than a field on :class:`UserUpdate`: the change\nhas to move the IdP realm role and the user's global scopes too, so it gets\nits own endpoint and its own audit entry."},"UserUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"password":{"anyOf":[{"type":"string","maxLength":100,"minLength":8},{"type":"null"}],"title":"Password"},"role":{"anyOf":[{"$ref":"#/components/schemas/UserRoleEnum"},{"type":"null"}]},"company":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Company","description":"Company name"},"purpose":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Purpose","description":"Purpose of using the platform"}},"type":"object","title":"UserUpdate","description":"Update user schema."},"ValidateIn":{"properties":{"instance":{"additionalProperties":true,"type":"object","title":"Instance"}},"additionalProperties":false,"type":"object","required":["instance"],"title":"ValidateIn","description":"``POST /eval-ops/metrics/validate``: one settings metric instance (INTERFACES §1.6)."},"ValidateResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"validation":{"additionalProperties":true,"type":"object","title":"Validation","description":"{ok, checked, errors[{path, message}]}"}},"additionalProperties":false,"type":"object","required":["message","validation"],"title":"ValidateResponse"},"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"},"VersionDiffResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"diff":{"additionalProperties":true,"type":"object","title":"Diff"}},"additionalProperties":false,"type":"object","required":["message","diff"],"title":"VersionDiffResponse"},"ViolationCategory":{"properties":{"category":{"type":"string","title":"Category"},"severity":{"type":"string","title":"Severity"},"description":{"type":"string","title":"Description"},"escalate":{"type":"boolean","title":"Escalate","default":false},"items":{"items":{"$ref":"#/components/schemas/ContentItem"},"type":"array","title":"Items"},"examples":{"items":{"$ref":"#/components/schemas/PolicyExample"},"type":"array","title":"Examples"}},"type":"object","required":["category","severity","description","items","examples"],"title":"ViolationCategory","description":"Violation category for policy."},"VoiceAgentConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"interaction":{"type":"boolean","title":"Interaction","description":"Spec 029: the audio gateway's interaction mode. A front model decides each turn, so the agent acknowledges at once and keeps talking while its run works. Fillers, the silence hang-up and the interruption word rules stop applying","default":false},"stt":{"anyOf":[{"$ref":"#/components/schemas/VoiceSttConfig"},{"type":"null"}]},"tts":{"anyOf":[{"$ref":"#/components/schemas/VoiceTtsConfig"},{"type":"null"}]},"instructions":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Instructions","description":"Added to the system prompt on voice turns; empty means DEFAULT_VOICE_INSTRUCTIONS","default":"You are talking with someone on a live voice call, and everything you write is read aloud. Reply in plain spoken sentences, usually one to three. Never use markdown, headings, bullet points, numbered lists, tables, code blocks, emoji or links. When an answer has several items, say the few that matter in a sentence and offer to go on. Say numbers, units and symbols the way you would speak them. If you need more information, ask one short question."},"turn_detection":{"$ref":"#/components/schemas/VoiceTurnDetection"},"interruption":{"$ref":"#/components/schemas/VoiceInterruption"},"greeting":{"$ref":"#/components/schemas/VoiceGreeting"},"fillers":{"$ref":"#/components/schemas/VoiceFillers"},"text_transforms":{"$ref":"#/components/schemas/VoiceTextTransforms"},"structured_output":{"$ref":"#/components/schemas/VoiceStructuredOutput"},"idle":{"$ref":"#/components/schemas/VoiceIdle"},"limits":{"$ref":"#/components/schemas/VoiceLimits"},"session_overrides":{"items":{"type":"string","enum":["tts.voice","tts.speed","stt.language","turn_detection.eagerness"]},"type":"array","title":"Session Overrides"},"degradation_message":{"type":"string","maxLength":300,"minLength":1,"title":"Degradation Message","default":"Sorry, I'm having trouble right now. Please try again."},"approval_message":{"type":"string","maxLength":300,"minLength":1,"title":"Approval Message","default":"I need approval before I can do that."},"tool_confirmations":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/VoiceToolConfirmation"},"type":"object"},{"type":"null"}],"title":"Tool Confirmations","description":"Spec 029 WP-IM3.4: per-tool wording for an approval asked by voice, keyed by the tool name the model calls. Published in the agent entry only when set"}},"additionalProperties":false,"type":"object","title":"VoiceAgentConfig","description":"An agent version's voice block. Absent, or ``enabled: false``, means \"not a voice agent\"."},"VoiceAnalyticsRequest":{"properties":{"from_date":{"type":"string","format":"date-time","title":"From Date"},"to_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To Date"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"}},"additionalProperties":true,"type":"object","required":["from_date"],"title":"VoiceAnalyticsRequest","description":"Body of ``POST /metrics/observability/voice/{summary,time-series,breakdown,calls}``.\n\nRealtime sessions (FRD-023) ride the same passthrough: ``filters.capability = \"realtime_session\"``,\n``filters.session_id`` (expanding one session on ``calls``), the token / session metrics, and every\nrealtime field budmetrics returns reach the caller untouched.\n\nDeliberately a thin passthrough: budmetrics owns the vocabulary (metrics, dimensions, filter keys) and\nvalidates it strictly — unknown filter keys, metrics or dimensions are a 4xx naming the offender, which\nbudapp surfaces. Keeping a second copy here would let the two drift (a metric budmetrics supports but\nbudapp rejects never reaches budmetrics — see tests/test_aggregated_metric_allowlist.py). budapp only\nneeds to read ``filters`` to write the caller's project scope into it."},"VoiceCapabilitiesResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"interaction":{"$ref":"#/components/schemas/VoiceModeAvailability"}},"additionalProperties":false,"type":"object","required":["message","interaction"],"title":"VoiceCapabilitiesResponse","description":"What this platform's voice agents can use (spec 029 FR-PLT-4)."},"VoiceFillers":{"properties":{"tool_call_after_ms":{"type":"integer","maximum":30000.0,"minimum":0.0,"title":"Tool Call After Ms","description":"0 disables tool fillers","default":1200},"slow_response_after_ms":{"type":"integer","maximum":30000.0,"minimum":0.0,"title":"Slow Response After Ms","description":"0 disables slow-response fillers","default":2500},"follow_up_after_ms":{"type":"integer","maximum":30000.0,"minimum":0.0,"title":"Follow Up After Ms","description":"Gap before the next phrase while the wait goes on; 0 = one per wait","default":3000},"messages":{"items":{"type":"string"},"type":"array","title":"Messages"},"use_tool_status_messages":{"type":"boolean","title":"Use Tool Status Messages","default":true},"tool_call_sound":{"type":"boolean","title":"Tool Call Sound","description":"A gentle pulsing tone while the agent works on a tool call, after its first phrase, in place of further phrases","default":true}},"additionalProperties":false,"type":"object","title":"VoiceFillers","description":"What fills silence while a tool runs or the model is slow to answer.\n\n``messages`` is a script for one wait, said in order: the first after ``slow_response_after_ms``\n(or a tool's own phrase after ``tool_call_after_ms``), then the next every ``follow_up_after_ms``\nwhile the caller is still waiting. Every turn starts again from the first phrase, and the list\nnever wraps, so the phrase heard says how long the caller has waited."},"VoiceGreeting":{"properties":{"mode":{"type":"string","enum":["none","static"],"title":"Mode","default":"none"},"text":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Text"},"interruptible":{"type":"boolean","title":"Interruptible","default":false}},"additionalProperties":false,"type":"object","title":"VoiceGreeting","description":"What the agent says when the call opens, before the user speaks."},"VoiceIdle":{"properties":{"end_after_silence_ms":{"type":"integer","maximum":3600000.0,"minimum":10000.0,"title":"End After Silence Ms","default":120000}},"additionalProperties":false,"type":"object","title":"VoiceIdle"},"VoiceInterruption":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":true},"min_words":{"type":"integer","maximum":10.0,"minimum":0.0,"title":"Min Words","default":1},"min_speech_ms":{"type":"integer","maximum":5000.0,"minimum":0.0,"title":"Min Speech Ms","default":300},"ignore_phrases":{"items":{"type":"string"},"type":"array","title":"Ignore Phrases"},"false_interruption_timeout_ms":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"False Interruption Timeout Ms","default":2000}},"additionalProperties":false,"type":"object","title":"VoiceInterruption","description":"When the user talking over the agent stops it (barge-in)."},"VoiceLimits":{"properties":{"max_session_seconds":{"type":"integer","maximum":14400.0,"minimum":60.0,"title":"Max Session Seconds","default":1800}},"additionalProperties":false,"type":"object","title":"VoiceLimits"},"VoiceModeAvailability":{"properties":{"available":{"type":"boolean","title":"Available"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Set when unavailable: shown beside the disabled control"},"module":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Module","description":"The platform module that decides it (spec 030): the Voice tab links to it on Platform"}},"type":"object","required":["available"],"title":"VoiceModeAvailability","description":"Whether one voice capability can be used on this platform, and why not when it cannot."},"VoiceStructuredOutput":{"properties":{"speak_field":{"anyOf":[{"type":"string","maxLength":128,"minLength":1,"pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},{"type":"null"}],"title":"Speak Field"}},"additionalProperties":false,"type":"object","title":"VoiceStructuredOutput","description":"Which field of a structured-output agent's JSON is spoken."},"VoiceSttConfig":{"properties":{"endpoint_id":{"type":"string","format":"uuid","title":"Endpoint Id","description":"STT deployment (audio_transcription, audio plane, agent's project)"},"language":{"anyOf":[{"type":"string","maxLength":16,"minLength":2},{"type":"null"}],"title":"Language","description":"'en', 'en-US' or 'multi'"},"keyterms":{"items":{"type":"string"},"type":"array","title":"Keyterms","description":"Vendor keyterm boost where supported"},"settings":{"additionalProperties":true,"type":"object","title":"Settings","description":"Passthrough to the deployment's STT section"}},"additionalProperties":false,"type":"object","required":["endpoint_id"],"title":"VoiceSttConfig","description":"The speech-to-text leg: a deployment in the agent's project that serves transcription."},"VoiceTextTransforms":{"properties":{"strip_markdown":{"type":"boolean","title":"Strip Markdown","default":true},"strip_emoji":{"type":"boolean","title":"Strip Emoji","default":true},"code_blocks":{"type":"string","enum":["omit","read"],"title":"Code Blocks","default":"omit"},"urls":{"type":"string","enum":["domain","full","omit"],"title":"Urls","default":"domain"}},"additionalProperties":false,"type":"object","title":"VoiceTextTransforms","description":"Deterministic clean-up applied to the agent's text before it is spoken."},"VoiceToolConfirmation":{"properties":{"phrase":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Phrase","description":"Verb phrase, e.g. 'send the email'"},"template":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Template","description":"Read-back with {arg} slots naming the tool's arguments"},"irreversible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Irreversible","description":"True asks for a strong yes; absent counts as True"}},"additionalProperties":false,"type":"object","title":"VoiceToolConfirmation","description":"How the voice gateway asks the caller to approve one tool (spec 029 §7.3, agent entry).\n\nAbsent, the read-back says the tool name and its arguments and the call counts as irreversible."},"VoiceTtsConfig":{"properties":{"endpoint_id":{"type":"string","format":"uuid","title":"Endpoint Id","description":"TTS deployment (text_to_speech, audio plane, agent's project)"},"voice":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Voice"},"speed":{"anyOf":[{"type":"number","maximum":4.0,"minimum":0.25},{"type":"null"}],"title":"Speed"},"language":{"anyOf":[{"type":"string","maxLength":16,"minLength":2},{"type":"null"}],"title":"Language"},"settings":{"additionalProperties":true,"type":"object","title":"Settings","description":"Passthrough to the deployment's TTS section"}},"additionalProperties":false,"type":"object","required":["endpoint_id"],"title":"VoiceTtsConfig","description":"The text-to-speech leg: a deployment in the agent's project that serves speech."},"VoiceTurnDetection":{"properties":{"type":{"type":"string","enum":["semantic","server_vad","manual"],"title":"Type","default":"semantic"},"eagerness":{"type":"string","enum":["low","medium","high","auto"],"title":"Eagerness","default":"auto"},"silence_ms":{"type":"integer","maximum":5000.0,"minimum":100.0,"title":"Silence Ms","description":"server_vad: silence that ends a turn","default":500},"max_endpointing_ms":{"type":"integer","maximum":20000.0,"minimum":200.0,"title":"Max Endpointing Ms","description":"Force the end of a turn after this silence","default":3000}},"additionalProperties":false,"type":"object","title":"VoiceTurnDetection","description":"How the end of the user's turn is decided."},"VoidBody":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"VoidBody"},"WebhookSecretCreatedResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"secret":{"type":"string","title":"Secret"},"rotated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Rotated At"}},"additionalProperties":false,"type":"object","required":["message","secret"],"title":"WebhookSecretCreatedResponse","description":"The signing secret, shown this once; budapp keeps it only encrypted."},"WebhookSecretIn":{"properties":{"project_id":{"type":"string","format":"uuid4","title":"Project Id"}},"additionalProperties":false,"type":"object","required":["project_id"],"title":"WebhookSecretIn","description":"``POST /experiments/webhook-secret``: create the project's signing secret, or rotate it."},"WebhookSecretStatusResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"exists":{"type":"boolean","title":"Exists"},"rotated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Rotated At"}},"additionalProperties":false,"type":"object","required":["message","exists"],"title":"WebhookSecretStatusResponse","description":"Whether the project has a signing secret (the secret itself is never returned again)."},"WidgetAgentRef":{"properties":{"version":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Version","description":"Advisory: version this config was authored against."}},"additionalProperties":true,"type":"object","title":"WidgetAgentRef","description":"Bookkeeping about the agent the widget is bound to.\n\n**Deliberately carries no agent id.** The ``{bud_prompt_id}`` path parameter\nis the only thing that selects the agent, so a second copy in the body could\nonly ever agree (redundant) or disagree (a stored lie that nothing reads).\nIt was also actively misleading: the generated OpenAPI example synthesises a\nvalue for a ``format: uuid`` field, so a field no code consults rendered as\nexpected input.\n\nA client that still sends ``id`` is **tolerated, not rejected** — the base's\n``extra=\"allow\"`` keeps it as an unread extra rather than failing the save.\nThat is a deliberate choice for forward compatibility, not an oversight; the\nvalue is never read, and ``agent`` is absent from the public projection, so a\nstale id can neither route nor leak.\n\n``version`` is advisory bookkeeping only — it records the version the config\nwas authored against. Execution always floats to the agent's default version,\nbecause the gateway resolves ``prompt:{name}`` and prefers a client-supplied\nversion over any server-stamped one, so a stored pin would be a lie."},"WidgetAssetUploadResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"url":{"type":"string","title":"Url"}},"additionalProperties":false,"type":"object","required":["message","url"],"title":"WidgetAssetUploadResponse","description":"Upload result: the permanent URL to store in the widget's design config."},"WidgetAttachmentsBlock":{"properties":{"variant":{"anyOf":[{"type":"string","enum":["list","grid","inline"]},{"type":"null"}],"title":"Variant"},"show_file_type":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show File Type"}},"additionalProperties":true,"type":"object","title":"WidgetAttachmentsBlock"},"WidgetCapabilities":{"properties":{"attachments":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Attachments"},"reasoning":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reasoning"},"sources":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sources"},"tools":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tools"},"suggestions":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Suggestions"},"plans":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Plans"},"forms":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Forms"},"voice":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Voice"},"connections":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Connections"},"genui":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Genui"}},"additionalProperties":true,"type":"object","title":"WidgetCapabilities"},"WidgetComposerBlock":{"properties":{"input_height":{"anyOf":[{"type":"string","enum":["compact","medium","tall"]},{"type":"null"}],"title":"Input Height"}},"additionalProperties":true,"type":"object","title":"WidgetComposerBlock"},"WidgetConfigIn":{"properties":{"agent":{"$ref":"#/components/schemas/WidgetAgentRef"},"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name","description":"Display name; defaults to the agent's name."},"allowed_domains":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Allowed Domains","description":"Origins permitted to embed this widget. EMPTY MEANS DENY-ALL."},"design":{"$ref":"#/components/schemas/WidgetDesign"},"style":{"$ref":"#/components/schemas/WidgetStyle"},"features":{"$ref":"#/components/schemas/WidgetFeatures"},"content":{"$ref":"#/components/schemas/WidgetContent"}},"additionalProperties":false,"type":"object","title":"WidgetConfigIn","description":"Full widget configuration (the POST upsert body).\n\n``status`` is deliberately absent: this body is a full replace, and allowing\nit here would let a stale studio tab silently re-enable a widget that was\nkilled after that tab loaded. Status moves only through PATCH."},"WidgetContent":{"properties":{"suggestions":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Suggestions"},"disclaimer":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Disclaimer"},"footer":{"$ref":"#/components/schemas/WidgetFooter"}},"additionalProperties":true,"type":"object","title":"WidgetContent","description":"The studio's Content tab."},"WidgetDesign":{"properties":{"identity":{"$ref":"#/components/schemas/WidgetIdentity"},"marks":{"$ref":"#/components/schemas/WidgetMarks"},"theme":{"anyOf":[{"type":"string","enum":["nocturne","paper","cloud","ink","cobalt","custom"]},{"type":"null"}],"title":"Theme"},"accent":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Accent","description":"Effective accent colour, e.g. '#965CDE'."},"theme_mode":{"anyOf":[{"type":"string","enum":["dark","light","auto"]},{"type":"null"}],"title":"Theme Mode"},"corner_radius":{"anyOf":[{"type":"string","enum":["sm","md","lg"]},{"type":"null"}],"title":"Corner Radius"},"launcher":{"$ref":"#/components/schemas/WidgetLauncherBlock"}},"additionalProperties":true,"type":"object","title":"WidgetDesign","description":"The studio's Design tab."},"WidgetDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"public_id":{"type":"string","title":"Public Id"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/WidgetStatusEnum"},"prompt_id":{"type":"string","format":"uuid","title":"Prompt Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"allowed_domains":{"items":{"type":"string"},"type":"array","title":"Allowed Domains"},"config":{"additionalProperties":true,"type":"object","title":"Config"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"modified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Modified At"}},"type":"object","required":["id","public_id","name","status","prompt_id","project_id"],"title":"WidgetDetail","description":"A widget as the dashboard sees it: config plus server-owned fields."},"WidgetFeatures":{"properties":{"human_in_the_loop":{"anyOf":[{"type":"string","enum":["ask","auto","bypass"]},{"type":"null"}],"title":"Human In The Loop"},"model_access":{"$ref":"#/components/schemas/WidgetModelAccess"},"reasoning_visibility":{"anyOf":[{"type":"string","enum":["hidden","summary","full"]},{"type":"null"}],"title":"Reasoning Visibility"},"capabilities":{"$ref":"#/components/schemas/WidgetCapabilities"}},"additionalProperties":true,"type":"object","title":"WidgetFeatures","description":"The studio's Features tab.\n\n``human_in_the_loop`` is capped in practice: a widget bearer may not park a\nrun for approval (a parked run outlives the session and the kill switch), so\n``ask`` degrades to in-stream approval only."},"WidgetFooter":{"properties":{"powered_by":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Powered By"}},"additionalProperties":true,"type":"object","title":"WidgetFooter"},"WidgetIdentity":{"properties":{"assistant_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Assistant Name"},"chat_title":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Chat Title"},"greeting":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Greeting"},"sub_greeting":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Sub Greeting"},"input_placeholder":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Input Placeholder"}},"additionalProperties":true,"type":"object","title":"WidgetIdentity","description":"Design → Identity section."},"WidgetLauncherBlock":{"properties":{"shape":{"anyOf":[{"type":"string","enum":["balloon","pill","tab"]},{"type":"null"}],"title":"Shape"},"icon":{"anyOf":[{"type":"string","enum":["chat","logo","sparkle"]},{"type":"null"}],"title":"Icon"},"position":{"anyOf":[{"type":"string","enum":["bottom-right","bottom-left"]},{"type":"null"}],"title":"Position"},"label":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Label"},"greeting_bubble":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Greeting Bubble"}},"additionalProperties":true,"type":"object","title":"WidgetLauncherBlock","description":"Design → Launcher section."},"WidgetLauncherBranding":{"properties":{"public_id":{"type":"string","title":"Public Id"},"design":{"additionalProperties":true,"type":"object","title":"Design"},"style":{"additionalProperties":true,"type":"object","title":"Style"}},"additionalProperties":false,"type":"object","required":["public_id"],"title":"WidgetLauncherBranding","description":"The cosmetic launcher branding, served WITHOUT a session bearer.\n\nThe collapsed launcher is painted by the loader ON THE HOST PAGE, before any\niframe — and therefore before any session — exists, so it cannot be bearer-gated\nlike the full config read. This projection is deliberately the smallest,\nlowest-sensitivity surface the loader needs: only the cosmetic ``design`` fields\nthat drive the launcher chrome (shape, icon, position, label, greeting bubble,\naccent colour, logo, corner radius and chat title).\n\nIt carries NO ``allowed_domains``, copy, content, feature flags or any internal\nid, so a guessed ``public_id`` leaks nothing that is not already visible on the\nwidget's own live page. Origin is still checked against ``allowed_domains`` (403)\nas defence in depth, so the launcher only paints on a whitelisted embed."},"WidgetLauncherBrandingResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"widget":{"$ref":"#/components/schemas/WidgetLauncherBranding"}},"additionalProperties":false,"type":"object","required":["message","widget"],"title":"WidgetLauncherBrandingResponse","description":"Envelope for the unauthenticated launcher branding."},"WidgetMarks":{"properties":{"assistant_avatar":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Assistant Avatar"},"brand_mark":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Brand Mark"}},"additionalProperties":true,"type":"object","title":"WidgetMarks","description":"Design → Marks section. Always URLs (or null) — never inline file data.\n\nAn upload becomes a URL through ``POST /prompts/{id}/widgets/assets`` before\nthe config is saved, so this document stays pure JSON."},"WidgetMessageActions":{"properties":{"copy":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Copy"},"feedback":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Feedback"},"regenerate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Regenerate"},"share":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Share"}},"additionalProperties":true,"type":"object","title":"WidgetMessageActions"},"WidgetMessageDetails":{"properties":{"assistant_avatar":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Assistant Avatar"}},"additionalProperties":true,"type":"object","title":"WidgetMessageDetails"},"WidgetModelAccess":{"properties":{"allow_user_selection":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow User Selection"},"models":{"items":{"$ref":"#/components/schemas/WidgetModelOption"},"type":"array","title":"Models"}},"additionalProperties":true,"type":"object","title":"WidgetModelAccess","description":"Features → Model access.\n\n``allow_user_selection`` is forced to ``False`` for agent-bound widgets by the\nservice: the session bearer is scoped to a single agent alias, so a visitor\ncould not switch models even if the picker rendered."},"WidgetModelOption":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Default"}},"additionalProperties":true,"type":"object","required":["id"],"title":"WidgetModelOption"},"WidgetPlanBlock":{"properties":{"expand_by_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Expand By Default"},"show_progress":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show Progress"}},"additionalProperties":true,"type":"object","title":"WidgetPlanBlock"},"WidgetPublicConfig":{"properties":{"public_id":{"type":"string","title":"Public Id"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/WidgetStatusEnum"},"allowed_domains":{"items":{"type":"string"},"type":"array","title":"Allowed Domains"},"design":{"additionalProperties":true,"type":"object","title":"Design"},"style":{"additionalProperties":true,"type":"object","title":"Style"},"features":{"additionalProperties":true,"type":"object","title":"Features"},"content":{"additionalProperties":true,"type":"object","title":"Content"}},"additionalProperties":false,"type":"object","required":["public_id","name","status"],"title":"WidgetPublicConfig","description":"The loader-facing projection — public by design, cacheable, secret-free.\n\nBuilt by explicit field picks, never by deleting keys from the stored config:\na projection that starts from everything and subtracts leaks whatever the\nstudio adds next. The internal agent id, project id, credential id and any\nstudio-only block are absent by construction; the snippet and the iframe only\never learn the ``wgt_`` public id.\n\n``allowed_domains`` IS included: budplayground needs it to build the\norigin-gated CORS echo and the per-widget CSP ``frame-ancestors`` header, and\nthe list is already visible to any browser that receives those headers."},"WidgetPublicConfigResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"widget":{"$ref":"#/components/schemas/WidgetPublicConfig"}},"additionalProperties":false,"type":"object","required":["message","widget"],"title":"WidgetPublicConfigResponse","description":"Envelope for the public projection."},"WidgetReasoningBlock":{"properties":{"style":{"anyOf":[{"type":"string","enum":["collapsible","chain"]},{"type":"null"}],"title":"Style"},"expand_by_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Expand By Default"},"show_duration":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show Duration"}},"additionalProperties":true,"type":"object","title":"WidgetReasoningBlock"},"WidgetResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"widget":{"$ref":"#/components/schemas/WidgetDetail"}},"additionalProperties":false,"type":"object","required":["message","widget"],"title":"WidgetResponse","description":"Envelope for a single widget."},"WidgetSessionAgent":{"properties":{"prompt_id":{"type":"string","title":"Prompt Id"},"alias":{"type":"string","title":"Alias","description":"Exact string the gateway resolves as `prompt:{alias}`."},"name":{"type":"string","title":"Name"},"version":{"type":"integer","title":"Version","description":"Resolved default version; send it on every turn."},"voice_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Voice Enabled","description":"The agent can be talked to (spec 029). None = unknown."}},"type":"object","required":["prompt_id","alias","name","version"],"title":"WidgetSessionAgent","description":"Routing identity the iframe needs to build a `/v1/responses` body."},"WidgetSessionRequest":{"properties":{"public_id":{"type":"string","title":"Public Id","description":"The widget's public `wgt_` id, taken from the embed snippet."},"bearer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bearer","description":"The bearer currently held in the iframe. Required to EXTEND it in place; without it a renewal falls back to minting a fresh token."},"client_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Ip","description":"Visitor IP, forwarded for rate-limit bucketing."},"origin":{"type":"string","title":"Origin","description":"The embedding page's origin, e.g. `https://customer.com`. REQUIRED, and checked against the widget's `allowed_domains` — a mismatch is a 403. This is defence in depth against honest misembedding, NOT the enforcement point: it arrives in the request body, so it is spoofable. The binding controls are the frontend's origin-gated CORS and CSP `frame-ancestors`, which read an origin the browser supplies unforgeably."}},"type":"object","required":["public_id","origin"],"title":"WidgetSessionRequest","description":"Body budplayground posts when a widget iframe boots or refreshes."},"WidgetSessionResponse":{"properties":{"bearer":{"type":"string","title":"Bearer"},"ttl":{"type":"integer","title":"Ttl"},"expires_at":{"type":"integer","title":"Expires At"},"renewed":{"type":"boolean","title":"Renewed","description":"True when an existing bearer was extended in place."},"agent":{"$ref":"#/components/schemas/WidgetSessionAgent"},"widget":{"additionalProperties":true,"type":"object","title":"Widget"}},"type":"object","required":["bearer","ttl","expires_at","renewed","agent","widget"],"title":"WidgetSessionResponse","description":"A freshly minted, or extended, widget bearer.\n\nCarries no session id: budapp holds no session state, so there is nothing for\nit to name. The caller owns session identity."},"WidgetSourcesBlock":{"properties":{"style":{"anyOf":[{"type":"string","enum":["list","inline"]},{"type":"null"}],"title":"Style"},"expand_by_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Expand By Default"}},"additionalProperties":true,"type":"object","title":"WidgetSourcesBlock"},"WidgetStatusEnum":{"type":"string","enum":["active","disabled"],"title":"WidgetStatusEnum","description":"Enumeration of embedded chat widget statuses (FRD-015).\n\nThe status is the widget's kill switch: a DISABLED widget refuses new session\nmints and renewals, so live bearers die at their TTL. It is only ever written\nthrough the widget PATCH route, never through the full-replace upsert — a\nstale studio tab saving appearance must not be able to re-enable a widget that\nwas deliberately killed.\n\nAttributes:\n    ACTIVE: The widget mints sessions normally.\n    DISABLED: Mint and renewal are refused (kill switch)."},"WidgetStyle":{"properties":{"chat_style":{"anyOf":[{"type":"string","enum":["sheet","bubble","canvas","popover","console"]},{"type":"null"}],"title":"Chat Style"},"chat_surface":{"anyOf":[{"type":"string","enum":["classic","elements"]},{"type":"null"}],"title":"Chat Surface"},"assistant_style":{"anyOf":[{"type":"string","enum":["flat","bubble","card"]},{"type":"null"}],"title":"Assistant Style"},"message_details":{"$ref":"#/components/schemas/WidgetMessageDetails"},"message_actions":{"$ref":"#/components/schemas/WidgetMessageActions"},"reasoning":{"$ref":"#/components/schemas/WidgetReasoningBlock"},"tools":{"$ref":"#/components/schemas/WidgetToolsBlock"},"sources":{"$ref":"#/components/schemas/WidgetSourcesBlock"},"plan":{"$ref":"#/components/schemas/WidgetPlanBlock"},"suggestions":{"$ref":"#/components/schemas/WidgetSuggestionsBlock"},"composer":{"$ref":"#/components/schemas/WidgetComposerBlock"},"attachments":{"$ref":"#/components/schemas/WidgetAttachmentsBlock"}},"additionalProperties":true,"type":"object","title":"WidgetStyle","description":"The studio's Style tab.\n\n``chat_style`` is the shell; the panel's launch size is derived from it at\nrender time (sheet/console → wide, canvas → full, bubble/popover → panel)\nrather than stored, so the two can never disagree."},"WidgetSuggestionsBlock":{"properties":{"layout":{"anyOf":[{"type":"string","enum":["scroll","wrap"]},{"type":"null"}],"title":"Layout"}},"additionalProperties":true,"type":"object","title":"WidgetSuggestionsBlock"},"WidgetToolsBlock":{"properties":{"expand_by_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Expand By Default"}},"additionalProperties":true,"type":"object","title":"WidgetToolsBlock"},"WorkerDetailResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"worker":{"$ref":"#/components/schemas/WorkerInfo"}},"additionalProperties":true,"type":"object","required":["message","worker"],"title":"WorkerDetailResponse","description":"Worker detail response."},"WorkerInfo":{"properties":{"cluster_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Cluster Id"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Namespace"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"node_name":{"type":"string","title":"Node Name"},"device_name":{"type":"string","title":"Device Name"},"utilization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utilization"},"hardware":{"type":"string","title":"Hardware"},"uptime":{"type":"string","title":"Uptime"},"last_restart_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Restart Datetime"},"last_updated_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Updated Datetime"},"created_datetime":{"type":"string","format":"date-time","title":"Created Datetime"},"node_ip":{"type":"string","title":"Node Ip"},"cores":{"type":"integer","title":"Cores"},"memory":{"type":"string","title":"Memory"},"deployment_status":{"anyOf":[{"$ref":"#/components/schemas/DeploymentStatusEnum"},{"type":"null"}]},"concurrency":{"type":"integer","title":"Concurrency"},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["name","status","node_name","device_name","hardware","uptime","created_datetime","node_ip","cores","memory","concurrency","id"],"title":"WorkerInfo","description":"Worker info."},"WorkerInfoResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"workers":{"items":{"$ref":"#/components/schemas/WorkerInfo"},"type":"array","title":"Workers"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":true,"type":"object","required":["message","page","limit","workers","total_pages"],"title":"WorkerInfoResponse","description":"Response body for getting worker info."},"WorkerLogsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"logs":{"title":"Logs"}},"additionalProperties":true,"type":"object","required":["message","logs"],"title":"WorkerLogsResponse","description":"Worker logs response."},"WorkerMetricsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"metrics":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metrics"}},"additionalProperties":true,"type":"object","required":["message"],"title":"WorkerMetricsResponse","description":"Worker metrics response."},"Workflow":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"},"progress":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Progress"},"workflow_type":{"$ref":"#/components/schemas/WorkflowTypeEnum"},"total_steps":{"type":"integer","exclusiveMinimum":0.0,"title":"Total Steps"},"status":{"$ref":"#/components/schemas/WorkflowStatusEnum"},"current_step":{"type":"integer","title":"Current Step"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"}},"type":"object","required":["id","workflow_type","total_steps","status","current_step","created_at","modified_at"],"title":"Workflow","description":"Workflow schema."},"WorkflowListResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"workflows":{"items":{"$ref":"#/components/schemas/Workflow"},"type":"array","title":"Workflows"},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","workflows","total_pages"],"title":"WorkflowListResponse","description":"Workflow list response schema."},"WorkflowResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"workflow_id":{"type":"string","format":"uuid4","title":"Workflow Id"},"total_steps":{"type":"integer","exclusiveMinimum":0.0,"title":"Total Steps"},"status":{"$ref":"#/components/schemas/WorkflowStatusEnum"},"current_step":{"type":"integer","title":"Current Step"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","required":["message","workflow_id","total_steps","status","current_step"],"title":"WorkflowResponse","description":"Workflow response schema."},"WorkflowStatusEnum":{"type":"string","enum":["in_progress","completed","failed"],"title":"WorkflowStatusEnum","description":"Enumeration of workflow statuses."},"WorkflowTypeEnum":{"type":"string","enum":["model_deployment","model_security_scan","cluster_onboarding","cluster_deletion","endpoint_deletion","endpoint_worker_deletion","cloud_model_onboarding","local_model_onboarding","add_worker_to_endpoint","license_faq_fetch","local_model_quantization","model_benchmark","add_adapter","delete_adapter","evaluation_creation","evaluate_model","guardrail_deployment","prompt_creation","prompt_schema_creation","custom_probe_creation","tool_generation","skill_creation","skill_scan","pact_import"],"title":"WorkflowTypeEnum","description":"Enumeration of workflow types."},"WsGrantResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"grant":{"type":"string","title":"Grant"}},"additionalProperties":false,"type":"object","required":["message","grant"],"title":"WsGrantResponse","description":"Response for GET /runs/ws-grant — a short-lived, room-scoped socket grant.\n\n``grant`` is a compact HS256 JWT carrying LITERAL room strings (FR-SOCK-080), so budnotify\n— which has no database, no project model and no budapp client — authorizes a subscribe by\nstring equality alone. The field name is ``grant`` because that is what budadmin's\n``useRunSocket`` reads."},"_TagBulkIn":{"properties":{"traces":{"items":{"$ref":"#/components/schemas/_TraceRefIn"},"type":"array","maxItems":500,"minItems":1,"title":"Traces"},"add":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Add"},"remove":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Remove"}},"type":"object","required":["traces"],"title":"_TagBulkIn"},"_TagChangeIn":{"properties":{"started_at":{"type":"string","maxLength":64,"minLength":1,"title":"Started At","description":"The trace's start (root timestamp)"},"add":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Add"},"remove":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Remove"}},"type":"object","required":["started_at"],"title":"_TagChangeIn"},"_TraceRefIn":{"properties":{"trace_id":{"type":"string","maxLength":64,"minLength":1,"title":"Trace Id"},"started_at":{"type":"string","maxLength":64,"minLength":1,"title":"Started At","description":"The trace's start (root timestamp)"}},"type":"object","required":["trace_id","started_at"],"title":"_TraceRefIn"},"budapp__cluster_ops__schemas__RecommendedCluster":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"cluster_id":{"type":"string","format":"uuid","title":"Cluster Id"},"name":{"type":"string","title":"Name"},"cost_per_token":{"type":"number","title":"Cost Per Token"},"total_resources":{"type":"integer","title":"Total Resources"},"resources_used":{"type":"integer","title":"Resources Used"},"resource_details":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Resource Details"},"required_devices":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Required Devices"},"benchmarks":{"$ref":"#/components/schemas/RecommendedClusterData"},"tool_calling_parser_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Calling Parser Type"},"reasoning_parser_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Parser Type"},"chat_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Template"},"supports_lora":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Supports Lora"},"supports_pipeline_parallelism":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Supports Pipeline Parallelism"},"kv_fp8_support":{"anyOf":[{"$ref":"#/components/schemas/KvFp8Support"},{"type":"null"}]},"mixed":{"type":"boolean","title":"Mixed","default":false},"decisions":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Decisions"}},"type":"object","required":["id","cluster_id","name","cost_per_token","total_resources","resources_used","resource_details","required_devices","benchmarks"],"title":"RecommendedCluster","description":"Recommended cluster response schema."},"budapp__cluster_ops__schemas__TimeSeriesPoint":{"properties":{"timestamp":{"type":"integer","title":"Timestamp"},"value":{"type":"number","title":"Value"}},"type":"object","required":["timestamp","value"],"title":"TimeSeriesPoint","description":"Time series data point."},"budapp__commons__schemas__ErrorResponse":{"properties":{"object":{"type":"string","title":"Object","default":"error"},"code":{"type":"integer","title":"Code","default":500},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","default":"InternalServerError"},"param":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Param"}},"additionalProperties":false,"type":"object","required":["message"],"title":"ErrorResponse","description":"Define an error response with a code and type derived from the status code.\n\nInherits from `ResponseBase` and specifies the default values and validation for error responses.\n\nAttributes:\n    object (str): The type of response object, defaulting to \"error\".\n    message (Optional[str]): An optional message for the response.\n    type (Optional[str]): The type of the error.\n    param (Optional[str]): An optional parameter for additional context.\n    code (int): The HTTP status code for the error."},"budapp__commons__schemas__SuccessResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"additionalProperties":false,"type":"object","required":["message"],"title":"SuccessResponse","description":"Define a success response with optional message and parameters.\n\nInherits from `ResponseBase` and specifies default values and validation for success responses.\n\nAttributes:\n    object (str): The type of response object, defaulting to \"info\".\n    message (Optional[str]): An optional message for the response."},"budapp__connector_ops__schemas__OAuthCallbackRequest":{"properties":{"code":{"type":"string","title":"Code","description":"Authorization code from OAuth provider"},"state":{"type":"string","title":"State","description":"State parameter from OAuth flow"}},"type":"object","required":["code","state"],"title":"OAuthCallbackRequest","description":"Request schema for handling OAuth callback."},"budapp__core__schemas__VersionResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"name":{"type":"string","title":"Name"},"version":{"type":"string","title":"Version"}},"additionalProperties":false,"type":"object","required":["name","version"],"title":"VersionResponse","description":"The build a deployed instance is running."},"budapp__endpoint_ops__schemas__EndpointListResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/EndpointStatusEnum"},"model":{"$ref":"#/components/schemas/ModelResponse"},"cluster":{"anyOf":[{"$ref":"#/components/schemas/ClusterResponse"},{"type":"null"}]},"project":{"anyOf":[{"$ref":"#/components/schemas/EndpointProjectResponse"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"is_deprecated":{"type":"boolean","title":"Is Deprecated"},"supported_endpoints":{"items":{"$ref":"#/components/schemas/ModelEndpointEnum"},"type":"array","title":"Supported Endpoints"},"is_published":{"type":"boolean","title":"Is Published"},"published_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published Date"},"published_by":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Published By"},"context_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Length","description":"The context window the deployment accepts, as Deployment Settings shows it: a self-hosted deployment's engine max-model-len (never above the model's limit); a cloud deployment's set value, else the model's limit, else the cloud catalogue's. Null when unknown."},"max_input_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Input Tokens","description":"The model's input-token limit as stored: model.max_input_tokens, else (cloud models) the cloud catalogue's. A self-hosted engine may accept less; see context_length. Null when unknown."},"max_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Tokens","description":"The most a cloud model may generate in one answer, from the cloud catalogue. Null for a self-hosted deployment (no separate cap) and when the catalogue has no entry."}},"type":"object","required":["id","name","status","model","created_at","modified_at","is_deprecated","supported_endpoints","is_published"],"title":"EndpointListResponse","description":"Endpoint list response schema."},"budapp__eval_ops__editor_schemas__VersionResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"version":{"additionalProperties":true,"type":"object","title":"Version"}},"additionalProperties":false,"type":"object","required":["message","version"],"title":"VersionResponse"},"budapp__metric_ops__schemas__TimeSeriesPoint":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"Timestamp for this data point"},"values":{"additionalProperties":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"object","title":"Values","description":"Metric values at this timestamp"}},"type":"object","required":["timestamp","values"],"title":"TimeSeriesPoint","description":"Single time series data point."},"budapp__model_ops__schemas__RecommendedCluster":{"properties":{"name":{"type":"string","title":"Name"},"cpu_total_workers":{"type":"integer","title":"Cpu Total Workers"},"cpu_available_workers":{"type":"integer","title":"Cpu Available Workers"},"gpu_total_workers":{"type":"integer","title":"Gpu Total Workers"},"gpu_available_workers":{"type":"integer","title":"Gpu Available Workers"},"hpu_total_workers":{"type":"integer","title":"Hpu Total Workers"},"hpu_available_workers":{"type":"integer","title":"Hpu Available Workers"},"total_workers":{"type":"integer","title":"Total Workers","description":"Get sum of all total workers.","readOnly":true},"available_workers":{"type":"integer","title":"Available Workers","description":"Get sum of all available workers.","readOnly":true},"availability_percentage":{"type":"number","title":"Availability Percentage","description":"Calculate overall availability percentage.","readOnly":true}},"type":"object","required":["name","cpu_total_workers","cpu_available_workers","gpu_total_workers","gpu_available_workers","hpu_total_workers","hpu_available_workers","total_workers","available_workers","availability_percentage"],"title":"RecommendedCluster","description":"Recommended cluster schema."},"budapp__playground_ops__schemas__EndpointListResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/EndpointStatusEnum"},"model":{"$ref":"#/components/schemas/ModelDeploymentResponse"},"project":{"$ref":"#/components/schemas/ProjectResponse"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"modified_at":{"type":"string","format":"date-time","title":"Modified At"},"input_cost":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Input Cost"},"output_cost":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output Cost"},"context_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Length"},"leaderboard":{"anyOf":[{"items":{"$ref":"#/components/schemas/TopLeaderboardBenchmark"},"type":"array"},{"type":"null"}],"title":"Leaderboard"}},"type":"object","required":["id","name","status","model","project","created_at","modified_at"],"title":"EndpointListResponse","description":"Endpoint list response schema."},"budapp__project_ops__schemas__PaginatedTagsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"tags":{"items":{"$ref":"#/components/schemas/Tag"},"type":"array","title":"Tags","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"PaginatedTagsResponse","description":"Paginated tags response schema."},"budapp__prompt_ops__schemas__OAuthCallbackRequest":{"properties":{"code":{"type":"string","title":"Code","description":"Authorization code from OAuth provider"},"state":{"type":"string","title":"State","description":"State parameter from OAuth flow"}},"type":"object","required":["code","state"],"title":"OAuthCallbackRequest","description":"Request schema for OAuth callback."},"budapp__prompt_ops__schemas__PaginatedTagsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_record":{"type":"integer","title":"Total Record","default":0},"tags":{"items":{"$ref":"#/components/schemas/Tag"},"type":"array","title":"Tags","default":[]},"total_pages":{"type":"integer","title":"Total Pages","description":"Calculate the total number of pages based on the total number of records and the limit.\n\nArgs:\n    self (PaginatedSuccessResponse): The paginated success response instance.\n\nReturns:\n    int: The total number of pages.","readOnly":true}},"additionalProperties":false,"type":"object","required":["message","page","limit","total_pages"],"title":"PaginatedTagsResponse","description":"Paginated tags response schema for prompts."},"budmicroframe__commons__schemas__ErrorResponse":{"properties":{"object":{"type":"string","title":"Object","default":"error"},"code":{"type":"integer","title":"Code","default":500},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","default":"InternalServerError"},"param":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Param"}},"additionalProperties":false,"type":"object","required":["message"],"title":"ErrorResponse","description":"Define an error response with a code and type derived from the status code.\n\nInherits from `ResponseBase` and specifies the default values and validation for error responses.\n\nAttributes:\n    object (str): The type of response object, defaulting to \"error\".\n    message (Optional[str]): An optional message for the response.\n    type (Optional[str]): The type of the error.\n    param (Optional[str]): An optional parameter for additional context.\n    code (int): The HTTP status code for the error."},"budmicroframe__commons__schemas__SuccessResponse":{"properties":{"object":{"type":"string","title":"Object","default":"info"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"param":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Param"}},"additionalProperties":false,"type":"object","required":["message"],"title":"SuccessResponse","description":"Define a success response with optional message and parameters.\n\nInherits from `ResponseBase` and specifies default values and validation for success responses.\n\nAttributes:\n    object (str): The type of response object, defaulting to \"info\".\n    message (Optional[str]): An optional message for the response."}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}