{
  "openapi": "3.1.0",
  "info": {
    "title": "mmune API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://{host}",
      "description": "Your mmune installation",
      "variables": {
        "host": {
          "default": "mmune.example.com"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "RAG"
    },
    {
      "name": "agents"
    },
    {
      "name": "analysis"
    },
    {
      "name": "audit"
    },
    {
      "name": "auth"
    },
    {
      "name": "cancellation"
    },
    {
      "name": "compliance"
    },
    {
      "name": "containment"
    },
    {
      "name": "dashboard"
    },
    {
      "name": "discovery"
    },
    {
      "name": "discovery-agents"
    },
    {
      "name": "drift"
    },
    {
      "name": "duplicates"
    },
    {
      "name": "events"
    },
    {
      "name": "guardian"
    },
    {
      "name": "healing"
    },
    {
      "name": "health"
    },
    {
      "name": "incidents"
    },
    {
      "name": "integrations"
    },
    {
      "name": "license"
    },
    {
      "name": "lineage"
    },
    {
      "name": "logs"
    },
    {
      "name": "mapping"
    },
    {
      "name": "mapping-feedback"
    },
    {
      "name": "masking"
    },
    {
      "name": "monitoring"
    },
    {
      "name": "notifications"
    },
    {
      "name": "oauth"
    },
    {
      "name": "orchestration"
    },
    {
      "name": "probes"
    },
    {
      "name": "projects"
    },
    {
      "name": "rag"
    },
    {
      "name": "recommendations"
    },
    {
      "name": "reconciliation"
    },
    {
      "name": "reports"
    },
    {
      "name": "semantic"
    },
    {
      "name": "state"
    },
    {
      "name": "stats"
    },
    {
      "name": "ticketing"
    },
    {
      "name": "watchdog"
    },
    {
      "name": "workflow_templates"
    },
    {
      "name": "workflows"
    }
  ],
  "paths": {
    "/api/v1/agent/cancel-status/{execution_id}": {
      "get": {
        "tags": [
          "cancellation"
        ],
        "summary": "Get Cancel Status",
        "operationId": "get_api_v1_agent_cancel_status_by_execution_id",
        "parameters": [
          {
            "name": "execution_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Execution Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Get Cancel Status Api V1 Agent Cancel Status  Execution Id  Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/agent/cancel/{execution_id}": {
      "post": {
        "tags": [
          "cancellation"
        ],
        "summary": "Cancel Agent Execution",
        "operationId": "post_api_v1_agent_cancel_by_execution_id",
        "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/CancelRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agent/state/{execution_id}": {
      "get": {
        "tags": [
          "state"
        ],
        "summary": "Get Agent State",
        "operationId": "get_api_v1_agent_state_by_execution_id",
        "parameters": [
          {
            "name": "execution_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Execution Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StateResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "state"
        ],
        "summary": "Delete Agent State",
        "operationId": "delete_api_v1_agent_state_by_execution_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "execution_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Execution Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StateResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agent/state/{execution_id}/can-resume": {
      "get": {
        "tags": [
          "state"
        ],
        "summary": "Check Can Resume",
        "operationId": "get_api_v1_agent_state_by_execution_id_can_resume",
        "parameters": [
          {
            "name": "execution_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Execution Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Check Can Resume Api V1 Agent State  Execution Id  Can Resume Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/agent/state/{execution_id}/resume": {
      "post": {
        "tags": [
          "state"
        ],
        "summary": "Resume Execution",
        "operationId": "post_api_v1_agent_state_by_execution_id_resume",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "execution_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Execution Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StateResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agents/executions": {
      "get": {
        "tags": [
          "agents"
        ],
        "summary": "List Agent Executions",
        "operationId": "get_api_v1_agents_executions",
        "parameters": [
          {
            "name": "agent_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by agent type",
              "title": "Agent Type"
            },
            "description": "Filter by agent type"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by status",
              "title": "Status"
            },
            "description": "Filter by status"
          },
          {
            "name": "project_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by project ID",
              "title": "Project Id"
            },
            "description": "Filter by project ID"
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by user ID",
              "title": "User Id"
            },
            "description": "Filter by user ID"
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Number of days to look back",
              "default": 7,
              "title": "Days"
            },
            "description": "Number of days to look back"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 1,
              "description": "Maximum number of results",
              "default": 100,
              "title": "Limit"
            },
            "description": "Maximum number of results"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "description": "Offset for pagination",
              "default": 0,
              "title": "Offset"
            },
            "description": "Offset for pagination"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentExecutionResponse"
                  },
                  "title": "Response List Agent Executions Api V1 Agents Executions Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/agents/executions/{execution_id}": {
      "get": {
        "tags": [
          "agents"
        ],
        "summary": "Get Agent Execution",
        "operationId": "get_api_v1_agents_executions_by_execution_id",
        "parameters": [
          {
            "name": "execution_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Execution Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Get Agent Execution Api V1 Agents Executions  Execution Id  Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/agents/statistics": {
      "get": {
        "tags": [
          "agents"
        ],
        "summary": "Get Agent Statistics",
        "operationId": "get_api_v1_agents_statistics",
        "parameters": [
          {
            "name": "agent_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by agent type",
              "title": "Agent Type"
            },
            "description": "Filter by agent type"
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Number of days to analyze",
              "default": 7,
              "title": "Days"
            },
            "description": "Number of days to analyze"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentStatisticsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/analysis/chat": {
      "post": {
        "tags": [
          "analysis"
        ],
        "summary": "Chat With Data",
        "operationId": "post_api_v1_analysis_chat",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/analysis/chat/stream": {
      "post": {
        "tags": [
          "analysis"
        ],
        "summary": "Chat With Data Stream",
        "operationId": "post_api_v1_analysis_chat_stream",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatRequest"
              }
            }
          },
          "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": []
          }
        ]
      }
    },
    "/api/v1/audit/events": {
      "get": {
        "tags": [
          "audit"
        ],
        "summary": "List Audit Events",
        "operationId": "get_api_v1_audit_events",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "event_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by AuditEventType value",
              "title": "Event Type"
            },
            "description": "Filter by AuditEventType value"
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "User Id"
            }
          },
          {
            "name": "resource_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Resource Type"
            }
          },
          {
            "name": "severity",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "info|low|medium|high|critical",
              "title": "Severity"
            },
            "description": "info|low|medium|high|critical"
          },
          {
            "name": "start_time",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Start Time"
            }
          },
          {
            "name": "end_time",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "title": "End Time"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "title": "Page Size"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response List Audit Events Api V1 Audit Events Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/audit/events/{event_id}": {
      "get": {
        "tags": [
          "audit"
        ],
        "summary": "Get Audit Event",
        "operationId": "get_api_v1_audit_events_by_event_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Event Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Get Audit Event Api V1 Audit Events  Event Id  Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/change-password": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Change Password",
        "operationId": "post_api_v1_auth_change_password",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordRequest"
              }
            }
          },
          "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": []
          }
        ]
      }
    },
    "/api/v1/auth/login": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Login",
        "operationId": "post_api_v1_auth_login",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/LoginResponse"
                    },
                    {
                      "$ref": "#/components/schemas/MFAChallengeResponse"
                    }
                  ],
                  "title": "Response Login Api V1 Auth Login Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/logout": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Logout",
        "operationId": "post_api_v1_auth_logout",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/me": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "Get Current User Profile",
        "operationId": "get_api_v1_auth_me",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserProfileResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/mfa/disable": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Mfa Disable",
        "operationId": "post_api_v1_auth_mfa_disable",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MFADisableRequest"
              }
            }
          },
          "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": []
          }
        ]
      }
    },
    "/api/v1/auth/mfa/enable": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Mfa Enable",
        "operationId": "post_api_v1_auth_mfa_enable",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MFAEnableRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MFAEnableResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/mfa/setup": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Mfa Setup",
        "operationId": "post_api_v1_auth_mfa_setup",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MFASetupResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/mfa/status": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "Mfa Status",
        "operationId": "get_api_v1_auth_mfa_status",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MFAStatusResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/mfa/verify-login": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Mfa Verify Login",
        "operationId": "post_api_v1_auth_mfa_verify_login",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MFAVerifyLoginRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/refresh": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Refresh Token",
        "operationId": "post_api_v1_auth_refresh",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshTokenRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/validate-token": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "Validate Token",
        "operationId": "get_api_v1_auth_validate_token",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/compliance/findings": {
      "get": {
        "tags": [
          "compliance"
        ],
        "summary": "Get Findings",
        "operationId": "get_api_v1_compliance_findings",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 1,
              "default": 200,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Get Findings Api V1 Compliance Findings Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/compliance/history": {
      "get": {
        "tags": [
          "compliance"
        ],
        "summary": "Get History",
        "operationId": "get_api_v1_compliance_history",
        "parameters": [
          {
            "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": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Get History Api V1 Compliance History Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/compliance/posture": {
      "get": {
        "tags": [
          "compliance"
        ],
        "summary": "Get Posture",
        "operationId": "get_api_v1_compliance_posture",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Get Posture Api V1 Compliance Posture Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/containment/config": {
      "get": {
        "tags": [
          "containment",
          "containment"
        ],
        "summary": "Get Config",
        "operationId": "get_api_v1_containment_config",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContainmentConfigResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "containment",
          "containment"
        ],
        "summary": "Update Config",
        "operationId": "put_api_v1_containment_config",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContainmentConfigUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContainmentConfigResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/containment/incidents/{incident_id}/revalidate": {
      "post": {
        "tags": [
          "containment",
          "containment"
        ],
        "summary": "Revalidate Containment Incident",
        "operationId": "post_api_v1_containment_incidents_by_incident_id_revalidate",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Incident Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Revalidate Containment Incident Api V1 Containment Incidents  Incident Id  Revalidate Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/containment/marks": {
      "get": {
        "tags": [
          "containment",
          "containment"
        ],
        "summary": "List Marks",
        "operationId": "get_api_v1_containment_marks",
        "parameters": [
          {
            "name": "incident_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Incident Id"
            }
          },
          {
            "name": "node_key",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Node Key"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  "title": "Response List Marks Api V1 Containment Marks Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/containment/marks/{mark_id}/lift": {
      "post": {
        "tags": [
          "containment",
          "containment"
        ],
        "summary": "Lift Quarantine Mark",
        "operationId": "post_api_v1_containment_marks_by_mark_id_lift",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "mark_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Mark Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LiftMarkRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Lift Quarantine Mark Api V1 Containment Marks  Mark Id  Lift Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/dashboard/agents/{agent_type}/health": {
      "get": {
        "tags": [
          "dashboard"
        ],
        "summary": "Get Agent Health",
        "operationId": "get_api_v1_dashboard_agents_by_agent_type_health",
        "parameters": [
          {
            "name": "agent_type",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Agent Type"
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 90,
              "minimum": 1,
              "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"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/dashboard/errors": {
      "get": {
        "tags": [
          "dashboard"
        ],
        "summary": "Get Error Summary",
        "operationId": "get_api_v1_dashboard_errors",
        "parameters": [
          {
            "name": "agent_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Agent Type"
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 90,
              "minimum": 1,
              "default": 7,
              "title": "Days"
            }
          },
          {
            "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": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/dashboard/learning/progress": {
      "get": {
        "tags": [
          "dashboard"
        ],
        "summary": "Get Learning Progress",
        "operationId": "get_api_v1_dashboard_learning_progress",
        "parameters": [
          {
            "name": "project_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "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"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/dashboard/overview": {
      "get": {
        "tags": [
          "dashboard"
        ],
        "summary": "Get Dashboard Overview",
        "operationId": "get_api_v1_dashboard_overview",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/dashboard/performance/trends": {
      "get": {
        "tags": [
          "dashboard"
        ],
        "summary": "Get Performance Trends",
        "operationId": "get_api_v1_dashboard_performance_trends",
        "parameters": [
          {
            "name": "agent_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Agent Type"
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 365,
              "minimum": 1,
              "default": 30,
              "title": "Days"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/discovery-agents": {
      "get": {
        "tags": [
          "discovery-agents",
          "discovery-agents"
        ],
        "summary": "List Agents",
        "operationId": "get_api_v1_discovery_agents",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by status",
              "title": "Status"
            },
            "description": "Filter by status"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response List Agents Api V1 Discovery Agents Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/discovery-agents/register": {
      "post": {
        "tags": [
          "discovery-agents",
          "discovery-agents"
        ],
        "summary": "Register Agent",
        "operationId": "post_api_v1_discovery_agents_register",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentRegistrationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Register Agent Api V1 Discovery Agents Register Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/discovery-agents/{agent_id}": {
      "get": {
        "tags": [
          "discovery-agents",
          "discovery-agents"
        ],
        "summary": "Get Agent",
        "operationId": "get_api_v1_discovery_agents_by_agent_id",
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Agent Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Get Agent Api V1 Discovery Agents  Agent Id  Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "discovery-agents",
          "discovery-agents"
        ],
        "summary": "Deregister Agent",
        "operationId": "delete_api_v1_discovery_agents_by_agent_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Agent Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/discovery-agents/{agent_id}/config": {
      "get": {
        "tags": [
          "discovery-agents",
          "discovery-agents"
        ],
        "summary": "Get Agent Config",
        "operationId": "get_api_v1_discovery_agents_by_agent_id_config",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Agent Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Get Agent Config Api V1 Discovery Agents  Agent Id  Config Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "discovery-agents",
          "discovery-agents"
        ],
        "summary": "Update Agent Config",
        "operationId": "put_api_v1_discovery_agents_by_agent_id_config",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Agent Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentConfigUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/discovery-agents/{agent_id}/discoveries": {
      "post": {
        "tags": [
          "discovery-agents",
          "discovery-agents"
        ],
        "summary": "Submit Discoveries",
        "operationId": "post_api_v1_discovery_agents_by_agent_id_discoveries",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Agent Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DiscoveriesSubmission"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Submit Discoveries Api V1 Discovery Agents  Agent Id  Discoveries Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/discovery-agents/{agent_id}/health": {
      "get": {
        "tags": [
          "discovery-agents",
          "discovery-agents"
        ],
        "summary": "Get Agent Health",
        "operationId": "get_api_v1_discovery_agents_by_agent_id_health",
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Agent Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Get Agent Health Api V1 Discovery Agents  Agent Id  Health Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/discovery-agents/{agent_id}/heartbeat": {
      "post": {
        "tags": [
          "discovery-agents",
          "discovery-agents"
        ],
        "summary": "Agent Heartbeat",
        "operationId": "post_api_v1_discovery_agents_by_agent_id_heartbeat",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Agent Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentHeartbeatRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/discovery-agents/{agent_id}/kafka-flow-samples": {
      "post": {
        "tags": [
          "discovery-agents",
          "discovery-agents"
        ],
        "summary": "Submit Kafka Flow Samples",
        "operationId": "post_api_v1_discovery_agents_by_agent_id_kafka_flow_samples",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Agent Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KafkaFlowSamplesSubmission"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Submit Kafka Flow Samples Api V1 Discovery Agents  Agent Id  Kafka Flow Samples Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/discovery/first-findings": {
      "get": {
        "tags": [
          "discovery"
        ],
        "summary": "List First Findings",
        "operationId": "get_api_v1_discovery_first_findings",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 500,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/discovery/first-findings/{finding_id}/dismiss": {
      "post": {
        "tags": [
          "discovery"
        ],
        "summary": "Dismiss First Finding",
        "operationId": "post_api_v1_discovery_first_findings_by_finding_id_dismiss",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "finding_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Finding Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/discovery/reintrospect/{integration_id}": {
      "post": {
        "tags": [
          "discovery"
        ],
        "summary": "Reintrospect Integration",
        "operationId": "post_api_v1_discovery_reintrospect_by_integration_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "integration_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Integration Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/discovery/scan": {
      "post": {
        "tags": [
          "discovery"
        ],
        "summary": "Start Discovery Scan",
        "operationId": "post_api_v1_discovery_scan",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/api__v1__discovery__ScanRequest"
              }
            }
          },
          "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": []
          }
        ]
      }
    },
    "/api/v1/discovery/schemas": {
      "get": {
        "tags": [
          "discovery"
        ],
        "summary": "List Schemas",
        "operationId": "get_api_v1_discovery_schemas",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/discovery/status/{scan_id}": {
      "get": {
        "tags": [
          "discovery"
        ],
        "summary": "Get Scan Status",
        "operationId": "get_api_v1_discovery_status_by_scan_id",
        "parameters": [
          {
            "name": "scan_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Scan Id"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "description": "Log cursor for incremental log streaming",
              "default": 0,
              "title": "Cursor"
            },
            "description": "Log cursor for incremental log streaming"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/drift/reports": {
      "get": {
        "tags": [
          "drift",
          "drift"
        ],
        "summary": "Get Drift Reports",
        "operationId": "get_api_v1_drift_reports",
        "parameters": [
          {
            "name": "integration_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by integration",
              "title": "Integration Id"
            },
            "description": "Filter by integration"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Maximum number of reports",
              "default": 100,
              "title": "Limit"
            },
            "description": "Maximum number of reports"
          },
          {
            "name": "include_resolved",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Include findings the watchdog has since marked resolved",
              "default": false,
              "title": "Include Resolved"
            },
            "description": "Include findings the watchdog has since marked resolved"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/drift/stats": {
      "get": {
        "tags": [
          "drift",
          "drift"
        ],
        "summary": "Get Drift Statistics",
        "operationId": "get_api_v1_drift_stats",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/drift/value-drift": {
      "get": {
        "tags": [
          "drift",
          "drift"
        ],
        "summary": "Get Value Drift Findings",
        "operationId": "get_api_v1_drift_value_drift",
        "parameters": [
          {
            "name": "integration_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by integration",
              "title": "Integration Id"
            },
            "description": "Filter by integration"
          },
          {
            "name": "include_muted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Include findings for muted fields",
              "default": false,
              "title": "Include Muted"
            },
            "description": "Include findings for muted fields"
          },
          {
            "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": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/drift/value-drift/mute": {
      "post": {
        "tags": [
          "drift",
          "drift"
        ],
        "summary": "Mute Value Drift Field",
        "operationId": "post_api_v1_drift_value_drift_mute",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValueDriftMuteRequest"
              }
            }
          },
          "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": []
          }
        ]
      }
    },
    "/api/v1/drift/value-drift/unmute": {
      "post": {
        "tags": [
          "drift",
          "drift"
        ],
        "summary": "Unmute Value Drift Field",
        "operationId": "post_api_v1_drift_value_drift_unmute",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValueDriftMuteRequest"
              }
            }
          },
          "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": []
          }
        ]
      }
    },
    "/api/v1/duplicates/check": {
      "post": {
        "tags": [
          "duplicates",
          "duplicates"
        ],
        "summary": "Check Duplicate Real Time",
        "operationId": "post_api_v1_duplicates_check",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_check_duplicate_real_time_api_v1_duplicates_check_post"
              }
            }
          },
          "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": []
          }
        ]
      }
    },
    "/api/v1/duplicates/config": {
      "get": {
        "tags": [
          "duplicates",
          "duplicates"
        ],
        "summary": "Get Duplicate Config",
        "operationId": "get_api_v1_duplicates_config",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DuplicateConfigResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "duplicates",
          "duplicates"
        ],
        "summary": "Update Duplicate Config",
        "operationId": "put_api_v1_duplicates_config",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DuplicateConfigUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DuplicateConfigResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/duplicates/detect": {
      "post": {
        "tags": [
          "duplicates",
          "duplicates"
        ],
        "summary": "Detect Duplicates",
        "operationId": "post_api_v1_duplicates_detect",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DetectDuplicatesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/DuplicateGroupResponse"
                  },
                  "type": "array",
                  "title": "Response Detect Duplicates Api V1 Duplicates Detect Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/duplicates/groups": {
      "get": {
        "tags": [
          "duplicates",
          "duplicates"
        ],
        "summary": "List Duplicate Groups",
        "operationId": "get_api_v1_duplicates_groups",
        "parameters": [
          {
            "name": "resolved",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Resolved"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DuplicateGroupResponse"
                  },
                  "title": "Response List Duplicate Groups Api V1 Duplicates Groups Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/duplicates/resolutions/history": {
      "get": {
        "tags": [
          "duplicates",
          "duplicates"
        ],
        "summary": "Get Resolution History",
        "operationId": "get_api_v1_duplicates_resolutions_history",
        "parameters": [
          {
            "name": "group_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by group ID",
              "title": "Group Id"
            },
            "description": "Filter by group ID"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Maximum number of results",
              "default": 100,
              "title": "Limit"
            },
            "description": "Maximum number of results"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/duplicates/resolve": {
      "post": {
        "tags": [
          "duplicates",
          "duplicates"
        ],
        "summary": "Resolve Duplicates",
        "operationId": "post_api_v1_duplicates_resolve",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveDuplicatesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DuplicateResolutionResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/duplicates/validate-before-write": {
      "post": {
        "tags": [
          "duplicates",
          "duplicates"
        ],
        "summary": "Validate Before Write",
        "operationId": "post_api_v1_duplicates_validate_before_write",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_validate_before_write_api_v1_duplicates_validate_before_write_post"
              }
            }
          },
          "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": []
          }
        ]
      }
    },
    "/api/v1/duplicates/{record_id}": {
      "get": {
        "tags": [
          "duplicates",
          "duplicates"
        ],
        "summary": "Get Duplicates For Record",
        "operationId": "get_api_v1_duplicates_by_record_id",
        "parameters": [
          {
            "name": "record_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Record Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DuplicateGroupResponse"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "title": "Response Get Duplicates For Record Api V1 Duplicates  Record Id  Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/events/cursor": {
      "get": {
        "tags": [
          "events",
          "events"
        ],
        "summary": "Events Cursor",
        "operationId": "get_api_v1_events_cursor",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Events Cursor Api V1 Events Cursor Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/guardian/scan": {
      "post": {
        "tags": [
          "guardian"
        ],
        "summary": "Start Security Scan",
        "operationId": "post_api_v1_guardian_scan",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GuardianScanStart"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object",
                  "title": "Response Start Security Scan Api V1 Guardian Scan Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/guardian/scan/status": {
      "get": {
        "tags": [
          "guardian"
        ],
        "summary": "Get Guardian Scan Status",
        "operationId": "get_api_v1_guardian_scan_status",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Get Guardian Scan Status Api V1 Guardian Scan Status Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/guardian/status/{job_id}": {
      "get": {
        "tags": [
          "guardian"
        ],
        "summary": "Get Scan Status",
        "operationId": "get_api_v1_guardian_status_by_job_id",
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Job Id"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "description": "Log cursor for incremental log streaming",
              "default": 0,
              "title": "Cursor"
            },
            "description": "Log cursor for incremental log streaming"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GuardianStatus"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/healing/apply-suggestion": {
      "post": {
        "tags": [
          "healing",
          "healing"
        ],
        "summary": "Apply Suggestion",
        "operationId": "post_api_v1_healing_apply_suggestion",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplySuggestionRequest"
              }
            }
          },
          "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": []
          }
        ]
      }
    },
    "/api/v1/healing/broken-connections": {
      "get": {
        "tags": [
          "healing",
          "healing"
        ],
        "summary": "Get Broken Connections",
        "operationId": "get_api_v1_healing_broken_connections",
        "parameters": [
          {
            "name": "integration_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by integration ID",
              "title": "Integration Id"
            },
            "description": "Filter by integration ID"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/healing/config": {
      "get": {
        "tags": [
          "healing",
          "healing"
        ],
        "summary": "Get Healing Config",
        "operationId": "get_api_v1_healing_config",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealingConfigResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "healing",
          "healing"
        ],
        "summary": "Update Healing Config",
        "operationId": "put_api_v1_healing_config",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HealingConfigUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealingConfigResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/healing/connection-health": {
      "get": {
        "tags": [
          "healing",
          "healing"
        ],
        "summary": "Get Connection Health",
        "operationId": "get_api_v1_healing_connection_health",
        "parameters": [
          {
            "name": "integration_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by integration ID",
              "title": "Integration Id"
            },
            "description": "Filter by integration ID"
          },
          {
            "name": "provider",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by provider",
              "title": "Provider"
            },
            "description": "Filter by provider"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/healing/connection-health/check": {
      "post": {
        "tags": [
          "healing",
          "healing"
        ],
        "summary": "Check Connection Health",
        "operationId": "post_api_v1_healing_connection_health_check",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_check_connection_health_api_v1_healing_connection_health_check_post"
              }
            }
          },
          "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": []
          }
        ]
      }
    },
    "/api/v1/healing/health-history/{integration_id}": {
      "get": {
        "tags": [
          "healing",
          "healing"
        ],
        "summary": "Get Health History",
        "operationId": "get_api_v1_healing_health_history_by_integration_id",
        "parameters": [
          {
            "name": "integration_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Integration Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Maximum number of records",
              "default": 100,
              "title": "Limit"
            },
            "description": "Maximum number of records"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/healing/statistics": {
      "get": {
        "tags": [
          "healing",
          "healing"
        ],
        "summary": "Get Healing Statistics",
        "operationId": "get_api_v1_healing_statistics",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/healing/suggest-remapping": {
      "post": {
        "tags": [
          "healing",
          "healing"
        ],
        "summary": "Suggest Remapping",
        "operationId": "post_api_v1_healing_suggest_remapping",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SuggestRemappingRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/RemappingSuggestionResponse"
                  },
                  "type": "array",
                  "title": "Response Suggest Remapping Api V1 Healing Suggest Remapping Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/health/": {
      "get": {
        "tags": [
          "health"
        ],
        "summary": "Health Check",
        "operationId": "get_api_v1_health",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/health/detailed": {
      "get": {
        "tags": [
          "health"
        ],
        "summary": "Detailed Health Check",
        "operationId": "get_api_v1_health_detailed",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/health/llm": {
      "get": {
        "tags": [
          "health"
        ],
        "summary": "Llm Health Check",
        "operationId": "get_api_v1_health_llm",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/health/sap-alerts": {
      "get": {
        "tags": [
          "health"
        ],
        "summary": "Get Sap Alerts",
        "operationId": "get_api_v1_health_sap_alerts",
        "parameters": [
          {
            "name": "integration_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Integration Id"
            }
          },
          {
            "name": "severity",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Severity"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 500,
              "default": 100,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/incidents": {
      "get": {
        "tags": [
          "incidents",
          "incidents"
        ],
        "summary": "List Incidents",
        "operationId": "get_api_v1_incidents",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "severity",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Severity"
            }
          },
          {
            "name": "integration_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Integration Id"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "title": "Page Size"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response List Incidents Api V1 Incidents Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/incidents/owners": {
      "get": {
        "tags": [
          "incidents",
          "incidents"
        ],
        "summary": "List Incident Owners",
        "operationId": "get_api_v1_incidents_owners",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response List Incident Owners Api V1 Incidents Owners Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "incidents",
          "incidents"
        ],
        "summary": "Create Incident Owner",
        "operationId": "post_api_v1_incidents_owners",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentOwnerRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Create Incident Owner Api V1 Incidents Owners Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/incidents/owners/{owner_id}": {
      "put": {
        "tags": [
          "incidents",
          "incidents"
        ],
        "summary": "Update Incident Owner",
        "operationId": "put_api_v1_incidents_owners_by_owner_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "owner_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Owner Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentOwnerUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Update Incident Owner Api V1 Incidents Owners  Owner Id  Put"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "incidents",
          "incidents"
        ],
        "summary": "Delete Incident Owner",
        "operationId": "delete_api_v1_incidents_owners_by_owner_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "owner_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Owner Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  },
                  "title": "Response Delete Incident Owner Api V1 Incidents Owners  Owner Id  Delete"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/incidents/rca-config": {
      "get": {
        "tags": [
          "incidents",
          "incidents"
        ],
        "summary": "Get Incident Analysis Policy",
        "operationId": "get_api_v1_incidents_rca_config",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentAnalysisConfigResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "incidents",
          "incidents"
        ],
        "summary": "Update Incident Analysis Policy",
        "operationId": "put_api_v1_incidents_rca_config",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentAnalysisConfigUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentAnalysisConfigResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/incidents/sla": {
      "get": {
        "tags": [
          "incidents",
          "incidents"
        ],
        "summary": "Get Incident Sla Policy",
        "operationId": "get_api_v1_incidents_sla",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Get Incident Sla Policy Api V1 Incidents Sla Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "incidents",
          "incidents"
        ],
        "summary": "Update Incident Sla Policy",
        "operationId": "put_api_v1_incidents_sla",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SlaPolicyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Update Incident Sla Policy Api V1 Incidents Sla Put"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/incidents/{incident_id}": {
      "get": {
        "tags": [
          "incidents",
          "incidents"
        ],
        "summary": "Get Incident",
        "operationId": "get_api_v1_incidents_by_incident_id",
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Incident Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/incidents/{incident_id}/acknowledge": {
      "post": {
        "tags": [
          "incidents",
          "incidents"
        ],
        "summary": "Acknowledge Incident",
        "operationId": "post_api_v1_incidents_by_incident_id_acknowledge",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Incident Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/incidents/{incident_id}/outcome": {
      "post": {
        "tags": [
          "incidents",
          "incidents"
        ],
        "summary": "Label Incident Outcome",
        "operationId": "post_api_v1_incidents_by_incident_id_outcome",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Incident Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentOutcomeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/incidents/{incident_id}/rca": {
      "get": {
        "tags": [
          "incidents",
          "incidents"
        ],
        "summary": "Get Incident Analysis Result",
        "operationId": "get_api_v1_incidents_by_incident_id_rca",
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Incident Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentAnalysisResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "incidents",
          "incidents"
        ],
        "summary": "Regenerate Incident Analysis",
        "operationId": "post_api_v1_incidents_by_incident_id_rca",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Incident Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentAnalysisResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/incidents/{incident_id}/resolve": {
      "post": {
        "tags": [
          "incidents",
          "incidents"
        ],
        "summary": "Resolve Incident",
        "operationId": "post_api_v1_incidents_by_incident_id_resolve",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Incident Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveIncidentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncidentDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/incidents/{incident_id}/runbook.md": {
      "get": {
        "tags": [
          "incidents",
          "incidents"
        ],
        "summary": "Get Incident Runbook Markdown",
        "operationId": "get_api_v1_incidents_by_incident_id_runbook_md",
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Incident Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/integrations/coverage": {
      "get": {
        "tags": [
          "integrations",
          "integrations"
        ],
        "summary": "Get Integration Coverage",
        "operationId": "get_api_v1_integrations_coverage",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoverageReport"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/integrations/discover": {
      "post": {
        "tags": [
          "integrations",
          "integrations"
        ],
        "summary": "Start Discovery",
        "operationId": "post_api_v1_integrations_discover",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DiscoveryRequest"
              }
            }
          },
          "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": []
          }
        ]
      }
    },
    "/api/v1/integrations/discovered": {
      "get": {
        "tags": [
          "integrations",
          "integrations"
        ],
        "summary": "List Discovered Integrations",
        "operationId": "get_api_v1_integrations_discovered",
        "parameters": [
          {
            "name": "project_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Project Id"
            }
          },
          {
            "name": "integration_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Integration Type"
            }
          },
          {
            "name": "integration_pattern",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Integration Pattern"
            }
          },
          {
            "name": "provider_name",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Provider Name"
            }
          },
          {
            "name": "configuration_state",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Configuration State"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/integrations/discovered/{discovered_id}": {
      "get": {
        "tags": [
          "integrations",
          "integrations"
        ],
        "summary": "Get Discovered Integration",
        "operationId": "get_api_v1_integrations_discovered_by_discovered_id",
        "parameters": [
          {
            "name": "discovered_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Discovered Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/integrations/discovered/{discovered_id}/configure": {
      "post": {
        "tags": [
          "integrations",
          "integrations"
        ],
        "summary": "Configure Integration",
        "operationId": "post_api_v1_integrations_discovered_by_discovered_id_configure",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "discovered_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Discovered Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigurationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/integrations/discovered/{discovered_id}/introspect": {
      "post": {
        "tags": [
          "integrations",
          "integrations"
        ],
        "summary": "Introspect Integration",
        "operationId": "post_api_v1_integrations_discovered_by_discovered_id_introspect",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "discovered_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Discovered Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/integrations/discovered/{discovered_id}/register": {
      "post": {
        "tags": [
          "integrations",
          "integrations"
        ],
        "summary": "Register Integration",
        "operationId": "post_api_v1_integrations_discovered_by_discovered_id_register",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "discovered_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Discovered Id"
            }
          },
          {
            "name": "config_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Config Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/integrations/discovered/{discovered_id}/test": {
      "post": {
        "tags": [
          "integrations",
          "integrations"
        ],
        "summary": "Test Integration Connection",
        "operationId": "post_api_v1_integrations_discovered_by_discovered_id_test",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "discovered_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Discovered Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestConnectionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/integrations/introspect-all": {
      "post": {
        "tags": [
          "integrations",
          "integrations"
        ],
        "summary": "Introspect All Integrations",
        "operationId": "post_api_v1_integrations_introspect_all",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/integrations/oauth/token/{provider}": {
      "post": {
        "tags": [
          "integrations",
          "integrations",
          "integrations",
          "oauth"
        ],
        "summary": "Exchange Token",
        "operationId": "post_api_v1_integrations_oauth_token_by_provider",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Provider"
            }
          },
          {
            "name": "code",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Code"
            }
          },
          {
            "name": "discovered_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Discovered Id"
            }
          },
          {
            "name": "client_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Client Id"
            }
          },
          {
            "name": "client_secret",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Client Secret"
            }
          },
          {
            "name": "redirect_uri",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Redirect Uri"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/integrations/registered": {
      "get": {
        "tags": [
          "integrations",
          "integrations"
        ],
        "summary": "List Registered Integrations",
        "operationId": "get_api_v1_integrations_registered",
        "parameters": [
          {
            "name": "project_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "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"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/integrations/registered/{integration_id}": {
      "get": {
        "tags": [
          "integrations",
          "integrations"
        ],
        "summary": "Get Registered Integration",
        "operationId": "get_api_v1_integrations_registered_by_integration_id",
        "parameters": [
          {
            "name": "integration_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Integration Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/integrations/supported": {
      "get": {
        "tags": [
          "integrations",
          "integrations"
        ],
        "summary": "List Supported Providers",
        "operationId": "get_api_v1_integrations_supported",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportedProvidersResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/integrations/{integration_id}/tables": {
      "get": {
        "tags": [
          "integrations",
          "integrations"
        ],
        "summary": "List Integration Tables",
        "operationId": "get_api_v1_integrations_by_integration_id_tables",
        "parameters": [
          {
            "name": "integration_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Integration Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/license": {
      "post": {
        "tags": [
          "license"
        ],
        "summary": "Apply License",
        "operationId": "post_api_v1_license",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplyLicenseRequest"
              }
            }
          },
          "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": []
          }
        ]
      }
    },
    "/api/v1/license/attestation": {
      "get": {
        "tags": [
          "license"
        ],
        "summary": "Get License Attestation",
        "operationId": "get_api_v1_license_attestation",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/license/status": {
      "get": {
        "tags": [
          "license"
        ],
        "summary": "Get License Status",
        "operationId": "get_api_v1_license_status",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/lineage/edge": {
      "post": {
        "tags": [
          "lineage"
        ],
        "summary": "Ingest Edge",
        "operationId": "post_api_v1_lineage_edge",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EdgeIngest"
              }
            }
          },
          "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": []
          }
        ]
      }
    },
    "/api/v1/lineage/graph": {
      "get": {
        "tags": [
          "lineage"
        ],
        "summary": "Lineage Graph",
        "operationId": "get_api_v1_lineage_graph",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Lineage Graph Api V1 Lineage Graph Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/lineage/impact/{node_key}": {
      "get": {
        "tags": [
          "lineage"
        ],
        "summary": "Lineage Impact",
        "operationId": "get_api_v1_lineage_impact_by_node_key",
        "parameters": [
          {
            "name": "node_key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Node Key"
            }
          },
          {
            "name": "max_depth",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 50,
              "title": "Max Depth"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Lineage Impact Api V1 Lineage Impact  Node Key  Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/lineage/sync": {
      "post": {
        "tags": [
          "lineage"
        ],
        "summary": "Trigger Lineage Sync",
        "operationId": "post_api_v1_lineage_sync",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncRequest"
              }
            }
          },
          "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": []
          }
        ]
      }
    },
    "/api/v1/lineage/sync/now": {
      "post": {
        "tags": [
          "lineage"
        ],
        "summary": "Sync Lineage Now",
        "operationId": "post_api_v1_lineage_sync_now",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncRequest"
              }
            }
          },
          "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": []
          }
        ]
      }
    },
    "/api/v1/logs": {
      "get": {
        "tags": [
          "logs"
        ],
        "summary": "Get Logs",
        "operationId": "get_api_v1_logs",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "default": 100,
              "title": "Limit"
            }
          },
          {
            "name": "after_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Return logs with ID greater than this",
              "default": 0,
              "title": "After Id"
            },
            "description": "Return logs with ID greater than this"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "logs"
        ],
        "summary": "Clear All Logs",
        "operationId": "delete_api_v1_logs",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/mapping/feedback": {
      "get": {
        "tags": [
          "mapping-feedback"
        ],
        "summary": "List Mapping Feedback",
        "operationId": "get_api_v1_mapping_feedback",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "mapping_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Mapping Id"
            }
          },
          {
            "name": "project_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Project Id"
            }
          },
          {
            "name": "feedback_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Feedback Type"
            }
          },
          {
            "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": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MappingFeedbackOut"
                  },
                  "title": "Response List Mapping Feedback Api V1 Mapping Feedback Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "mapping-feedback"
        ],
        "summary": "Create Mapping Feedback",
        "operationId": "post_api_v1_mapping_feedback",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MappingFeedbackCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MappingFeedbackOut"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/mapping/feedback/metrics": {
      "get": {
        "tags": [
          "mapping-feedback"
        ],
        "summary": "Mapping Feedback Metrics",
        "operationId": "get_api_v1_mapping_feedback_metrics",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Project Id"
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 365,
              "minimum": 1,
              "default": 30,
              "title": "Days"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Mapping Feedback Metrics Api V1 Mapping Feedback Metrics Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/mapping/map": {
      "post": {
        "tags": [
          "mapping"
        ],
        "summary": "Map Vendor Data",
        "operationId": "post_api_v1_mapping_map",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "target_model",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "UniversalCustomer",
              "title": "Target Model"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MappingResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/mapping/saved": {
      "get": {
        "tags": [
          "mapping"
        ],
        "summary": "List Saved Mappings Endpoint",
        "operationId": "get_api_v1_mapping_saved",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array",
                  "title": "Response List Saved Mappings Endpoint Api V1 Mapping Saved Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/mapping/saved/{filename}": {
      "get": {
        "tags": [
          "mapping"
        ],
        "summary": "Get Saved Mapping Endpoint",
        "operationId": "get_api_v1_mapping_saved_by_filename",
        "parameters": [
          {
            "name": "filename",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Filename"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MappingResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/mapping/suggest": {
      "post": {
        "tags": [
          "mapping"
        ],
        "summary": "Suggest Mapping",
        "operationId": "post_api_v1_mapping_suggest",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SuggestRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "additionalProperties": true,
                    "type": "object"
                  },
                  "type": "array",
                  "title": "Response Suggest Mapping Api V1 Mapping Suggest Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/masking": {
      "get": {
        "tags": [
          "masking"
        ],
        "summary": "List Policies",
        "operationId": "get_api_v1_masking",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "title": "Page Size"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response List Policies Api V1 Masking Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/masking/apply": {
      "post": {
        "tags": [
          "masking"
        ],
        "summary": "Apply Policy",
        "operationId": "post_api_v1_masking_apply",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplyPolicyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Apply Policy Api V1 Masking Apply Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/masking/generate": {
      "post": {
        "tags": [
          "masking"
        ],
        "summary": "Generate Policy",
        "operationId": "post_api_v1_masking_generate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneratePolicyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Generate Policy Api V1 Masking Generate Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/monitoring/ai-budgets": {
      "get": {
        "tags": [
          "monitoring",
          "monitoring"
        ],
        "summary": "List Ai Budgets",
        "operationId": "get_api_v1_monitoring_ai_budgets",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AIBudgetResponse"
                  },
                  "type": "array",
                  "title": "Response List Ai Budgets Api V1 Monitoring Ai Budgets Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/monitoring/ai-budgets/global": {
      "get": {
        "tags": [
          "monitoring",
          "monitoring"
        ],
        "summary": "Get Global Ai Budget",
        "operationId": "get_api_v1_monitoring_ai_budgets_global",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlobalAIBudgetResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/monitoring/ai-budgets/{integration_id}": {
      "get": {
        "tags": [
          "monitoring",
          "monitoring"
        ],
        "summary": "Get Ai Budget",
        "operationId": "get_api_v1_monitoring_ai_budgets_by_integration_id",
        "parameters": [
          {
            "name": "integration_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Integration Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AIBudgetResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "monitoring",
          "monitoring"
        ],
        "summary": "Put Ai Budget",
        "operationId": "put_api_v1_monitoring_ai_budgets_by_integration_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "integration_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Integration Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AIBudgetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AIBudgetResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "monitoring",
          "monitoring"
        ],
        "summary": "Delete Ai Budget",
        "operationId": "delete_api_v1_monitoring_ai_budgets_by_integration_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "integration_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Integration Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/monitoring/ai-usage": {
      "get": {
        "tags": [
          "monitoring",
          "monitoring"
        ],
        "summary": "Get Ai Usage",
        "operationId": "get_api_v1_monitoring_ai_usage",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "description": "Lookback window in days (0 = all time)",
              "default": 7,
              "title": "Days"
            },
            "description": "Lookback window in days (0 = all time)"
          },
          {
            "name": "group_by",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Comma-separated group-by fields: provider, model, component, integration_id, day",
              "default": "provider",
              "title": "Group By"
            },
            "description": "Comma-separated group-by fields: provider, model, component, integration_id, day"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AIUsageSummaryResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/monitoring/alert-rules": {
      "get": {
        "tags": [
          "monitoring",
          "monitoring"
        ],
        "summary": "List Alert Rules",
        "operationId": "get_api_v1_monitoring_alert_rules",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "monitoring",
          "monitoring"
        ],
        "summary": "Create Alert Rule",
        "operationId": "post_api_v1_monitoring_alert_rules",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AlertRuleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/monitoring/alert-rules/{rule_id}": {
      "put": {
        "tags": [
          "monitoring",
          "monitoring"
        ],
        "summary": "Update Alert Rule",
        "operationId": "put_api_v1_monitoring_alert_rules_by_rule_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "rule_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Rule Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AlertRuleUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "monitoring",
          "monitoring"
        ],
        "summary": "Delete Alert Rule",
        "operationId": "delete_api_v1_monitoring_alert_rules_by_rule_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "rule_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Rule Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/monitoring/data": {
      "get": {
        "summary": "Get Dashboard Data Http",
        "operationId": "get_api_v1_monitoring_data",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/monitoring/detection-metrics": {
      "get": {
        "tags": [
          "monitoring",
          "monitoring"
        ],
        "summary": "Get Detection Metrics",
        "operationId": "get_api_v1_monitoring_detection_metrics",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetectionMetricsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/monitoring/estate-load": {
      "get": {
        "tags": [
          "monitoring",
          "monitoring"
        ],
        "summary": "Get Estate Load",
        "operationId": "get_api_v1_monitoring_estate_load",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "description": "Lookback window in days (0 = all time)",
              "default": 7,
              "title": "Days"
            },
            "description": "Lookback window in days (0 = all time)"
          },
          {
            "name": "group_by",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Comma-separated group-by fields: integration_id, component, query_class, day",
              "default": "integration_id",
              "title": "Group By"
            },
            "description": "Comma-separated group-by fields: integration_id, component, query_class, day"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EstateLoadSummaryResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/monitoring/metrics": {
      "get": {
        "tags": [
          "monitoring",
          "monitoring"
        ],
        "summary": "Get Metrics",
        "operationId": "get_api_v1_monitoring_metrics",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/monitoring/poll-interval": {
      "get": {
        "tags": [
          "monitoring",
          "monitoring"
        ],
        "summary": "Get Poll Interval",
        "operationId": "get_api_v1_monitoring_poll_interval",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "monitoring",
          "monitoring"
        ],
        "summary": "Set Poll Interval",
        "operationId": "post_api_v1_monitoring_poll_interval",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PollIntervalRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PollIntervalResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/monitoring/summary": {
      "get": {
        "tags": [
          "monitoring",
          "monitoring"
        ],
        "summary": "Get Metrics Summary",
        "operationId": "get_api_v1_monitoring_summary",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/notifications/channels": {
      "get": {
        "tags": [
          "notifications",
          "notifications"
        ],
        "summary": "List Channels",
        "operationId": "get_api_v1_notifications_channels",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/notifications/channels/{channel}": {
      "get": {
        "tags": [
          "notifications",
          "notifications"
        ],
        "summary": "Get Channel",
        "operationId": "get_api_v1_notifications_channels_by_channel",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "channel",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Channel"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "notifications",
          "notifications"
        ],
        "summary": "Upsert Channel",
        "operationId": "put_api_v1_notifications_channels_by_channel",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "channel",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Channel"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChannelConfigRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/notifications/channels/{channel}/test": {
      "post": {
        "tags": [
          "notifications",
          "notifications"
        ],
        "summary": "Test Channel",
        "operationId": "post_api_v1_notifications_channels_by_channel_test",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "channel",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Channel"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestDeliveryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/notifications/deliveries": {
      "get": {
        "tags": [
          "notifications",
          "notifications"
        ],
        "summary": "List Deliveries",
        "operationId": "get_api_v1_notifications_deliveries",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "channel",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Channel"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "alert_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Alert Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/orchestration/artifacts/{execution_id}/download": {
      "get": {
        "tags": [
          "orchestration"
        ],
        "summary": "Download Artifacts",
        "operationId": "get_api_v1_orchestration_artifacts_by_execution_id_download",
        "parameters": [
          {
            "name": "execution_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Execution Id"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Download format: json (default)",
              "default": "json",
              "title": "Format"
            },
            "description": "Download format: json (default)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/orchestration/execute": {
      "post": {
        "tags": [
          "orchestration"
        ],
        "summary": "Execute Plan",
        "operationId": "post_api_v1_orchestration_execute",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecuteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Execute Plan Api V1 Orchestration Execute Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/orchestration/plan": {
      "post": {
        "tags": [
          "orchestration"
        ],
        "summary": "Generate Plan",
        "operationId": "post_api_v1_orchestration_plan",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlanRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Generate Plan Api V1 Orchestration Plan Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/orchestration/status/{execution_id}": {
      "get": {
        "tags": [
          "orchestration"
        ],
        "summary": "Get Execution Status",
        "operationId": "get_api_v1_orchestration_status_by_execution_id",
        "parameters": [
          {
            "name": "execution_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Execution Id"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "description": "Log cursor for incremental log streaming",
              "default": 0,
              "title": "Cursor"
            },
            "description": "Log cursor for incremental log streaming"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/probes": {
      "get": {
        "tags": [
          "probes"
        ],
        "summary": "List Probes",
        "operationId": "get_api_v1_probes",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "title": "Page Size"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response List Probes Api V1 Probes Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/probes/heartbeat": {
      "post": {
        "tags": [
          "probes"
        ],
        "summary": "Probe Heartbeat",
        "operationId": "post_api_v1_probes_heartbeat",
        "parameters": [
          {
            "name": "x-probe-key",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Probe-Key"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProbeHeartbeat"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/projects/": {
      "get": {
        "tags": [
          "projects"
        ],
        "summary": "List Projects",
        "operationId": "get_api_v1_projects",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by project status",
              "title": "Status"
            },
            "description": "Filter by project status"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "title": "Page Size"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Sort By"
            }
          },
          {
            "name": "sort_order",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "asc",
              "title": "Sort Order"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "projects"
        ],
        "summary": "Create Project",
        "operationId": "post_api_v1_projects",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProjectRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/projects/{project_id}": {
      "get": {
        "tags": [
          "projects"
        ],
        "summary": "Get Project",
        "operationId": "get_api_v1_projects_by_project_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Project Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "projects"
        ],
        "summary": "Update Project",
        "operationId": "put_api_v1_projects_by_project_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Project Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProjectRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "projects"
        ],
        "summary": "Delete Project",
        "operationId": "delete_api_v1_projects_by_project_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Project Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/projects/{project_id}/start": {
      "post": {
        "tags": [
          "projects"
        ],
        "summary": "Start Project",
        "operationId": "post_api_v1_projects_by_project_id_start",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Project Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/rag/context": {
      "get": {
        "tags": [
          "rag",
          "RAG"
        ],
        "summary": "Get Context",
        "operationId": "get_api_v1_rag_context",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Query"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 5,
              "title": "Limit"
            }
          },
          {
            "name": "min_similarity",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "maximum": 1.0,
              "minimum": 0.0,
              "default": 0.7,
              "title": "Min Similarity"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/rag/documents": {
      "get": {
        "tags": [
          "rag",
          "RAG"
        ],
        "summary": "List Documents",
        "operationId": "get_api_v1_rag_documents",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/rag/documents/{document_name}": {
      "get": {
        "tags": [
          "rag",
          "RAG"
        ],
        "summary": "Get Document Status",
        "operationId": "get_api_v1_rag_documents_by_document_name",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "document_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Document Name"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "rag",
          "RAG"
        ],
        "summary": "Delete Document",
        "operationId": "delete_api_v1_rag_documents_by_document_name",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "document_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Document Name"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/rag/ingest": {
      "post": {
        "tags": [
          "rag",
          "RAG"
        ],
        "summary": "Ingest Document",
        "operationId": "post_api_v1_rag_ingest",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IngestRequest"
              }
            }
          },
          "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": []
          }
        ]
      }
    },
    "/api/v1/rag/ingest/file": {
      "post": {
        "tags": [
          "rag",
          "RAG"
        ],
        "summary": "Ingest File",
        "operationId": "post_api_v1_rag_ingest_file",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Override document name (defaults to filename)",
              "title": "Name"
            },
            "description": "Override document name (defaults to filename)"
          },
          {
            "name": "chunk_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 10000,
              "minimum": 100,
              "default": 1000,
              "title": "Chunk Size"
            }
          },
          {
            "name": "chunk_overlap",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 2000,
              "minimum": 0,
              "default": 100,
              "title": "Chunk Overlap"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_ingest_file_api_v1_rag_ingest_file_post"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/rag/query": {
      "post": {
        "tags": [
          "rag",
          "RAG"
        ],
        "summary": "Query Rag",
        "operationId": "post_api_v1_rag_query",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QueryRequest"
              }
            }
          },
          "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": []
          }
        ]
      }
    },
    "/api/v1/recommendations": {
      "get": {
        "tags": [
          "recommendations",
          "recommendations"
        ],
        "summary": "List Recommendations",
        "operationId": "get_api_v1_recommendations",
        "parameters": [
          {
            "name": "integration_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Integration Id"
            }
          },
          {
            "name": "provider",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Provider"
            }
          },
          {
            "name": "recommendation_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by recommendation_type (alias: category)",
              "title": "Recommendation Type"
            },
            "description": "Filter by recommendation_type (alias: category)"
          },
          {
            "name": "severity",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Severity"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Legacy alias for recommendation_type",
              "title": "Category"
            },
            "description": "Legacy alias for recommendation_type"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "active|dismissed|resolved",
              "title": "Status"
            },
            "description": "active|dismissed|resolved"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 500,
              "default": 200,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RecommendationOut"
                  },
                  "title": "Response List Recommendations Api V1 Recommendations Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/recommendations/scan": {
      "post": {
        "tags": [
          "recommendations",
          "recommendations"
        ],
        "summary": "Trigger Scan",
        "operationId": "post_api_v1_recommendations_scan",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/api__v1__recommendations__ScanRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Trigger Scan Api V1 Recommendations Scan Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/recommendations/{recommendation_id}": {
      "patch": {
        "tags": [
          "recommendations",
          "recommendations"
        ],
        "summary": "Update Recommendation",
        "operationId": "patch_api_v1_recommendations_by_recommendation_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "recommendation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Recommendation Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatusUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Update Recommendation Api V1 Recommendations  Recommendation Id  Patch"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/reconciliation/findings": {
      "get": {
        "tags": [
          "reconciliation",
          "reconciliation"
        ],
        "summary": "List Findings",
        "operationId": "get_api_v1_reconciliation_findings",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "pairing_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Pairing Id"
            }
          },
          {
            "name": "include_resolved",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Include Resolved"
            }
          },
          {
            "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": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/reconciliation/pairings": {
      "get": {
        "tags": [
          "reconciliation",
          "reconciliation"
        ],
        "summary": "List Pairings",
        "operationId": "get_api_v1_reconciliation_pairings",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by pairing status",
              "title": "Status"
            },
            "description": "Filter by pairing status"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "reconciliation",
          "reconciliation"
        ],
        "summary": "Declare Pairing",
        "operationId": "post_api_v1_reconciliation_pairings",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PairingDeclareRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/reconciliation/pairings/{pairing_id}": {
      "get": {
        "tags": [
          "reconciliation",
          "reconciliation"
        ],
        "summary": "Get Pairing",
        "operationId": "get_api_v1_reconciliation_pairings_by_pairing_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "pairing_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Pairing Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "reconciliation",
          "reconciliation"
        ],
        "summary": "Patch Pairing",
        "operationId": "patch_api_v1_reconciliation_pairings_by_pairing_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "pairing_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Pairing Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PairingPatchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/reconciliation/pairings/{pairing_id}/activate": {
      "post": {
        "tags": [
          "reconciliation",
          "reconciliation"
        ],
        "summary": "Activate Pairing",
        "operationId": "post_api_v1_reconciliation_pairings_by_pairing_id_activate",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "pairing_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Pairing Id"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody",
                "default": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/reconciliation/pairings/{pairing_id}/pause": {
      "post": {
        "tags": [
          "reconciliation",
          "reconciliation"
        ],
        "summary": "Pause Pairing",
        "operationId": "post_api_v1_reconciliation_pairings_by_pairing_id_pause",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "pairing_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Pairing Id"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody",
                "default": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/reconciliation/pairings/{pairing_id}/reject": {
      "post": {
        "tags": [
          "reconciliation",
          "reconciliation"
        ],
        "summary": "Reject Pairing",
        "operationId": "post_api_v1_reconciliation_pairings_by_pairing_id_reject",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "pairing_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Pairing Id"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody",
                "default": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/reports/audit": {
      "post": {
        "tags": [
          "reports"
        ],
        "summary": "Start Audit Report",
        "operationId": "post_api_v1_reports_audit",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuditReportRequest"
              }
            }
          },
          "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": []
          }
        ]
      }
    },
    "/api/v1/reports/impact-cost-config": {
      "get": {
        "tags": [
          "reports"
        ],
        "summary": "Get Impact Cost Config",
        "operationId": "get_api_v1_reports_impact_cost_config",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImpactCostConfigResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "reports"
        ],
        "summary": "Update Impact Cost Config",
        "operationId": "put_api_v1_reports_impact_cost_config",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImpactCostConfigUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImpactCostConfigResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/reports/status/{report_id}": {
      "get": {
        "tags": [
          "reports"
        ],
        "summary": "Get Audit Report Status",
        "operationId": "get_api_v1_reports_status_by_report_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "report_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Report Id"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "description": "Log cursor for incremental log streaming",
              "default": 0,
              "title": "Cursor"
            },
            "description": "Log cursor for incremental log streaming"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/reports/{report_id}": {
      "get": {
        "tags": [
          "reports"
        ],
        "summary": "Get Audit Report Html",
        "operationId": "get_api_v1_reports_by_report_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "report_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Report Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/semantic/extract-intent": {
      "post": {
        "tags": [
          "semantic",
          "semantic"
        ],
        "summary": "Extract Intent",
        "operationId": "post_api_v1_semantic_extract_intent",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExtractIntentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtractIntentResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/semantic/find-semantic-match": {
      "post": {
        "tags": [
          "semantic",
          "semantic"
        ],
        "summary": "Find Semantic Match",
        "operationId": "post_api_v1_semantic_find_semantic_match",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FindSemanticMatchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SemanticMatchResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/semantic/intent-registry/signatures": {
      "get": {
        "tags": [
          "semantic",
          "semantic"
        ],
        "summary": "Get All Signatures",
        "operationId": "get_api_v1_semantic_intent_registry_signatures",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by category",
              "title": "Category"
            },
            "description": "Filter by category"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Maximum number of results",
              "default": 100,
              "title": "Limit"
            },
            "description": "Maximum number of results"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/semantic/intent-registry/stats": {
      "get": {
        "tags": [
          "semantic",
          "semantic"
        ],
        "summary": "Get Intent Registry Stats",
        "operationId": "get_api_v1_semantic_intent_registry_stats",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/semantic/mapping-history/{mapping_id}": {
      "get": {
        "tags": [
          "semantic",
          "semantic"
        ],
        "summary": "Get Mapping History",
        "operationId": "get_api_v1_semantic_mapping_history_by_mapping_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "mapping_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Mapping Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/semantic/mappings-by-intent/{intent}": {
      "get": {
        "tags": [
          "semantic",
          "semantic"
        ],
        "summary": "Get Mappings By Intent",
        "operationId": "get_api_v1_semantic_mappings_by_intent_by_intent",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "intent",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Intent"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Maximum number of results",
              "default": 100,
              "title": "Limit"
            },
            "description": "Maximum number of results"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/semantic/signatures": {
      "get": {
        "tags": [
          "semantic",
          "semantic"
        ],
        "summary": "Get Semantic Signatures",
        "operationId": "get_api_v1_semantic_signatures",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/semantic/signatures/{signature_hash}/matches": {
      "get": {
        "tags": [
          "semantic",
          "semantic"
        ],
        "summary": "Get Signature Matches",
        "operationId": "get_api_v1_semantic_signatures_by_signature_hash_matches",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "signature_hash",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Signature Hash"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/semantic/stats": {
      "get": {
        "tags": [
          "semantic",
          "semantic"
        ],
        "summary": "Get Semantic Registry Stats",
        "operationId": "get_api_v1_semantic_stats",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/stats/history": {
      "get": {
        "tags": [
          "stats"
        ],
        "summary": "Get History Stats",
        "operationId": "get_api_v1_stats_history",
        "parameters": [
          {
            "name": "range",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "7d",
              "title": "Range"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HistoryResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/ticketing/config": {
      "get": {
        "tags": [
          "ticketing",
          "ticketing"
        ],
        "summary": "Get Ticketing Config",
        "operationId": "get_api_v1_ticketing_config",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "ticketing",
          "ticketing"
        ],
        "summary": "Save Ticketing Config",
        "operationId": "post_api_v1_ticketing_config",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TicketingConfigRequest"
              }
            }
          },
          "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": []
          }
        ]
      },
      "delete": {
        "tags": [
          "ticketing",
          "ticketing"
        ],
        "summary": "Delete Ticketing Config",
        "operationId": "delete_api_v1_ticketing_config",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/ticketing/providers": {
      "get": {
        "tags": [
          "ticketing",
          "ticketing"
        ],
        "summary": "List Ticketing Providers",
        "operationId": "get_api_v1_ticketing_providers",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/ticketing/test": {
      "post": {
        "tags": [
          "ticketing",
          "ticketing"
        ],
        "summary": "Test Ticketing Connection",
        "operationId": "post_api_v1_ticketing_test",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/ticketing/tickets": {
      "post": {
        "tags": [
          "ticketing",
          "ticketing"
        ],
        "summary": "Create Ticket",
        "operationId": "post_api_v1_ticketing_tickets",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTicketRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TicketResultResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/watchdog/cdc/connectors/{integration_id}": {
      "get": {
        "tags": [
          "watchdog",
          "watchdog"
        ],
        "summary": "Get Cdc Connector Status",
        "operationId": "get_api_v1_watchdog_cdc_connectors_by_integration_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "integration_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Integration Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/watchdog/flow": {
      "get": {
        "tags": [
          "watchdog",
          "watchdog"
        ],
        "summary": "Get Flow Status",
        "operationId": "get_api_v1_watchdog_flow",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/watchdog/integrations": {
      "post": {
        "tags": [
          "watchdog",
          "watchdog"
        ],
        "summary": "Add Integration",
        "operationId": "post_api_v1_watchdog_integrations",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddIntegrationRequest"
              }
            }
          },
          "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": []
          }
        ]
      }
    },
    "/api/v1/watchdog/integrations/{integration_id}/priority": {
      "post": {
        "tags": [
          "watchdog",
          "watchdog"
        ],
        "summary": "Set Priority",
        "operationId": "post_api_v1_watchdog_integrations_by_integration_id_priority",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "integration_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Integration Id"
            }
          },
          {
            "name": "is_priority",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Whether to set as priority",
              "default": true,
              "title": "Is Priority"
            },
            "description": "Whether to set as priority"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/watchdog/integrations/{session_id}": {
      "delete": {
        "tags": [
          "watchdog",
          "watchdog"
        ],
        "summary": "Remove Integration",
        "operationId": "delete_api_v1_watchdog_integrations_by_session_id",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Session Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/watchdog/manager/status": {
      "get": {
        "tags": [
          "watchdog",
          "watchdog"
        ],
        "summary": "Get Manager Status",
        "operationId": "get_api_v1_watchdog_manager_status",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/watchdog/sessions": {
      "get": {
        "tags": [
          "watchdog",
          "watchdog"
        ],
        "summary": "Get Sessions",
        "operationId": "get_api_v1_watchdog_sessions",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/watchdog/sessions/{session_id}": {
      "get": {
        "tags": [
          "watchdog",
          "watchdog"
        ],
        "summary": "Get Session Status",
        "operationId": "get_api_v1_watchdog_sessions_by_session_id",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Session Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/watchdog/start": {
      "post": {
        "tags": [
          "watchdog",
          "watchdog"
        ],
        "summary": "Start Watchdog",
        "operationId": "post_api_v1_watchdog_start",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/watchdog/status": {
      "get": {
        "tags": [
          "watchdog",
          "watchdog"
        ],
        "summary": "Get Watchdog Status",
        "operationId": "get_api_v1_watchdog_status",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WatchdogStatusResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/watchdog/stop": {
      "post": {
        "tags": [
          "watchdog",
          "watchdog"
        ],
        "summary": "Stop Watchdog",
        "operationId": "post_api_v1_watchdog_stop",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/watchdog/zombies": {
      "get": {
        "tags": [
          "watchdog",
          "watchdog"
        ],
        "summary": "Get Zombie Findings",
        "operationId": "get_api_v1_watchdog_zombies",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/workflows/from-template": {
      "post": {
        "tags": [
          "workflow_templates"
        ],
        "summary": "Create From Template",
        "operationId": "post_api_v1_workflows_from_template",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/api__workflow_templates_router__CreateWorkflowRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/workflows/register": {
      "post": {
        "tags": [
          "workflows"
        ],
        "summary": "Register Workflow",
        "operationId": "post_api_v1_workflows_register",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/api__v1__workflows__CreateWorkflowRequest"
              }
            }
          },
          "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": []
          }
        ]
      }
    },
    "/api/v1/workflows/templates": {
      "get": {
        "tags": [
          "workflow_templates"
        ],
        "summary": "List Templates",
        "operationId": "get_api_v1_workflows_templates",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response List Templates Api V1 Workflows Templates Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/workflows/templates/{template_id}": {
      "get": {
        "tags": [
          "workflow_templates"
        ],
        "summary": "Get Template",
        "operationId": "get_api_v1_workflows_templates_by_template_id",
        "parameters": [
          {
            "name": "template_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Template Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Get Template Api V1 Workflows Templates  Template Id  Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/health": {
      "get": {
        "summary": "Health Liveness",
        "operationId": "get_health",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "HTTPBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "AIBudgetRequest": {
        "properties": {
          "daily_usd": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Daily Usd"
          },
          "monthly_usd": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Monthly Usd"
          },
          "estate_load_ceiling_per_cycle": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Estate Load Ceiling Per Cycle"
          }
        },
        "type": "object",
        "title": "AIBudgetRequest"
      },
      "AIBudgetResponse": {
        "properties": {
          "integration_id": {
            "type": "string",
            "title": "Integration Id"
          },
          "daily_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Daily Usd"
          },
          "monthly_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Monthly Usd"
          },
          "estate_load_ceiling_per_cycle": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Estate Load Ceiling Per Cycle"
          }
        },
        "type": "object",
        "required": [
          "integration_id",
          "daily_usd",
          "monthly_usd",
          "estate_load_ceiling_per_cycle"
        ],
        "title": "AIBudgetResponse"
      },
      "AIUsageGroupResponse": {
        "properties": {
          "group_key": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Group Key"
          },
          "event_count": {
            "type": "integer",
            "title": "Event Count"
          },
          "input_tokens": {
            "type": "integer",
            "title": "Input Tokens"
          },
          "output_tokens": {
            "type": "integer",
            "title": "Output Tokens"
          },
          "total_tokens": {
            "type": "integer",
            "title": "Total Tokens"
          },
          "estimated_cost_usd": {
            "type": "number",
            "title": "Estimated Cost Usd"
          }
        },
        "type": "object",
        "required": [
          "group_key",
          "event_count",
          "input_tokens",
          "output_tokens",
          "total_tokens",
          "estimated_cost_usd"
        ],
        "title": "AIUsageGroupResponse",
        "description": "One aggregated row of the AI usage report."
      },
      "AIUsageSummaryResponse": {
        "properties": {
          "window_days": {
            "type": "integer",
            "title": "Window Days"
          },
          "group_by": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Group By"
          },
          "groups": {
            "items": {
              "$ref": "#/components/schemas/AIUsageGroupResponse"
            },
            "type": "array",
            "title": "Groups"
          }
        },
        "type": "object",
        "required": [
          "window_days",
          "group_by",
          "groups"
        ],
        "title": "AIUsageSummaryResponse",
        "description": "Response model for GET /ai-usage."
      },
      "AddIntegrationRequest": {
        "properties": {
          "integration_id": {
            "type": "string",
            "title": "Integration Id"
          },
          "provider": {
            "type": "string",
            "title": "Provider"
          },
          "config": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config"
          }
        },
        "type": "object",
        "required": [
          "integration_id",
          "provider"
        ],
        "title": "AddIntegrationRequest",
        "description": "Request to add integration to watch."
      },
      "AgentConfigUpdate": {
        "properties": {
          "config": {
            "additionalProperties": true,
            "type": "object",
            "title": "Config",
            "description": "Configuration dictionary"
          }
        },
        "type": "object",
        "required": [
          "config"
        ],
        "title": "AgentConfigUpdate",
        "description": "Agent configuration update."
      },
      "AgentExecutionResponse": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "agent_id": {
            "type": "string",
            "title": "Agent Id"
          },
          "agent_type": {
            "type": "string",
            "title": "Agent Type"
          },
          "agent_name": {
            "type": "string",
            "title": "Agent Name"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "context_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Context Id"
          },
          "project_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id"
          },
          "session_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Id"
          },
          "user_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Id"
          },
          "started_at": {
            "type": "string",
            "title": "Started At"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "duration_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Duration Ms"
          },
          "error_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Message"
          },
          "retry_count": {
            "type": "integer",
            "title": "Retry Count"
          }
        },
        "type": "object",
        "required": [
          "id",
          "agent_id",
          "agent_type",
          "agent_name",
          "status",
          "context_id",
          "project_id",
          "session_id",
          "user_id",
          "started_at",
          "completed_at",
          "duration_ms",
          "error_message",
          "retry_count"
        ],
        "title": "AgentExecutionResponse",
        "description": "Response model for agent execution."
      },
      "AgentHeartbeatRequest": {
        "properties": {
          "metrics": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Metrics",
            "description": "Agent metrics (CPU, memory, etc.)"
          }
        },
        "type": "object",
        "title": "AgentHeartbeatRequest",
        "description": "Agent heartbeat request."
      },
      "AgentRegistrationRequest": {
        "properties": {
          "agent_id": {
            "type": "string",
            "title": "Agent Id",
            "description": "Unique agent identifier"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name",
            "description": "Human-readable agent name"
          },
          "version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version",
            "description": "Agent version"
          },
          "platform": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Platform",
            "description": "Platform (linux, windows, docker)"
          },
          "capabilities": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Capabilities",
            "description": "Agent capabilities"
          }
        },
        "type": "object",
        "required": [
          "agent_id"
        ],
        "title": "AgentRegistrationRequest",
        "description": "Agent registration request."
      },
      "AgentStatisticsResponse": {
        "properties": {
          "total_executions": {
            "type": "integer",
            "title": "Total Executions"
          },
          "successful": {
            "type": "integer",
            "title": "Successful"
          },
          "failed": {
            "type": "integer",
            "title": "Failed"
          },
          "timeout": {
            "type": "integer",
            "title": "Timeout"
          },
          "average_duration_ms": {
            "type": "integer",
            "title": "Average Duration Ms"
          },
          "success_rate": {
            "type": "number",
            "title": "Success Rate"
          }
        },
        "type": "object",
        "required": [
          "total_executions",
          "successful",
          "failed",
          "timeout",
          "average_duration_ms",
          "success_rate"
        ],
        "title": "AgentStatisticsResponse",
        "description": "Response model for agent statistics."
      },
      "AgentsConfig": {
        "properties": {
          "discovery": {
            "$ref": "#/components/schemas/DiscoveryAgentConfig"
          },
          "analysis": {
            "$ref": "#/components/schemas/AnalysisAgentConfig"
          },
          "mapping": {
            "$ref": "#/components/schemas/MappingAgentConfig"
          },
          "validation": {
            "$ref": "#/components/schemas/ValidationAgentConfig"
          },
          "execution": {
            "$ref": "#/components/schemas/ExecutionAgentConfig"
          }
        },
        "type": "object",
        "title": "AgentsConfig",
        "description": "Agents configuration model."
      },
      "AlertRuleRequest": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id",
            "description": "Rule ID (auto-generated from name if omitted)"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "default": ""
          },
          "priority": {
            "type": "integer",
            "title": "Priority",
            "default": 100
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": true
          },
          "match": {
            "$ref": "#/components/schemas/CategoricalMatchCriteria"
          },
          "actions": {
            "items": {},
            "type": "array",
            "title": "Actions"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "AlertRuleRequest"
      },
      "AlertRuleUpdateRequest": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "priority": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Priority"
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enabled"
          },
          "match": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CategoricalMatchCriteria"
              },
              {
                "type": "null"
              }
            ]
          },
          "actions": {
            "anyOf": [
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Actions"
          }
        },
        "type": "object",
        "title": "AlertRuleUpdateRequest"
      },
      "AnalysisAgentConfig": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": true
          },
          "ai_provider": {
            "type": "string",
            "pattern": "^(gemini|openai|claude)$",
            "title": "Ai Provider",
            "default": "gemini"
          },
          "analysis_depth": {
            "type": "string",
            "pattern": "^(basic|detailed|comprehensive)$",
            "title": "Analysis Depth",
            "default": "detailed"
          }
        },
        "type": "object",
        "title": "AnalysisAgentConfig",
        "description": "Analysis agent configuration."
      },
      "ApplyLicenseRequest": {
        "properties": {
          "token": {
            "type": "string",
            "minLength": 1,
            "title": "Token",
            "description": "Vendor-signed license JWT"
          }
        },
        "type": "object",
        "required": [
          "token"
        ],
        "title": "ApplyLicenseRequest"
      },
      "ApplyPolicyRequest": {
        "properties": {
          "policy_id": {
            "type": "string",
            "title": "Policy Id"
          },
          "rows": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Rows"
          }
        },
        "type": "object",
        "required": [
          "policy_id",
          "rows"
        ],
        "title": "ApplyPolicyRequest"
      },
      "ApplySuggestionRequest": {
        "properties": {
          "suggestion_id": {
            "type": "string",
            "title": "Suggestion Id",
            "description": "Suggestion ID to apply"
          },
          "integration_id": {
            "type": "string",
            "title": "Integration Id",
            "description": "Integration ID"
          },
          "source_field": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Field",
            "description": "Broken source field name"
          },
          "suggested_target_field": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Suggested Target Field",
            "description": "Suggested target field"
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider",
            "description": "Provider/vendor name (e.g. salesforce)"
          }
        },
        "type": "object",
        "required": [
          "suggestion_id",
          "integration_id"
        ],
        "title": "ApplySuggestionRequest",
        "description": "Request to apply a re-mapping suggestion."
      },
      "AuditReportRequest": {
        "properties": {
          "window_start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Window Start"
          },
          "window_end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Window End"
          },
          "client_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Client Name"
          }
        },
        "type": "object",
        "title": "AuditReportRequest"
      },
      "Body_check_connection_health_api_v1_healing_connection_health_check_post": {
        "properties": {
          "integration_id": {
            "type": "string",
            "title": "Integration Id",
            "description": "Integration ID"
          },
          "provider": {
            "type": "string",
            "title": "Provider",
            "description": "Provider name"
          },
          "test_connection": {
            "type": "boolean",
            "title": "Test Connection",
            "description": "Whether to actually test the connection",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "integration_id",
          "provider"
        ],
        "title": "Body_check_connection_health_api_v1_healing_connection_health_check_post"
      },
      "Body_check_duplicate_real_time_api_v1_duplicates_check_post": {
        "properties": {
          "record": {
            "additionalProperties": true,
            "type": "object",
            "title": "Record",
            "description": "Record to check"
          },
          "existing_records": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Existing Records",
            "description": "Existing records to check against"
          },
          "business_intent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Business Intent",
            "description": "Business intent category"
          }
        },
        "type": "object",
        "required": [
          "record"
        ],
        "title": "Body_check_duplicate_real_time_api_v1_duplicates_check_post"
      },
      "Body_ingest_file_api_v1_rag_ingest_file_post": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File"
          }
        },
        "type": "object",
        "required": [
          "file"
        ],
        "title": "Body_ingest_file_api_v1_rag_ingest_file_post"
      },
      "Body_validate_before_write_api_v1_duplicates_validate_before_write_post": {
        "properties": {
          "record": {
            "additionalProperties": true,
            "type": "object",
            "title": "Record",
            "description": "Record to validate before writing"
          },
          "existing_records": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Existing Records"
          },
          "business_intent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Business Intent"
          }
        },
        "type": "object",
        "required": [
          "record"
        ],
        "title": "Body_validate_before_write_api_v1_duplicates_validate_before_write_post"
      },
      "CancelRequest": {
        "properties": {
          "reason": {
            "type": "string",
            "title": "Reason",
            "default": "Cancelled by user"
          }
        },
        "type": "object",
        "title": "CancelRequest",
        "description": "Request to cancel an execution."
      },
      "CancelResponse": {
        "properties": {
          "success": {
            "type": "boolean",
            "title": "Success"
          },
          "message": {
            "type": "string",
            "title": "Message"
          },
          "execution_id": {
            "type": "string",
            "title": "Execution Id"
          },
          "cancelled": {
            "type": "boolean",
            "title": "Cancelled"
          }
        },
        "type": "object",
        "required": [
          "success",
          "message",
          "execution_id",
          "cancelled"
        ],
        "title": "CancelResponse",
        "description": "Response for cancel operation."
      },
      "CategoricalMatchCriteria": {
        "properties": {
          "dimensions": {
            "items": {},
            "type": "array",
            "title": "Dimensions",
            "description": "DetectionDimension values; empty = wildcard"
          },
          "integration_ids": {
            "items": {},
            "type": "array",
            "title": "Integration Ids",
            "description": "Integration ids or *; empty = wildcard"
          },
          "severities": {
            "items": {},
            "type": "array",
            "title": "Severities",
            "description": "Empty = wildcard"
          },
          "object_key_pattern": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Object Key Pattern",
            "description": "Glob on object_key / table name"
          },
          "kinds": {
            "items": {},
            "type": "array",
            "title": "Kinds",
            "description": "drift_type / kind / event strings; empty = wildcard"
          }
        },
        "type": "object",
        "title": "CategoricalMatchCriteria"
      },
      "ChangePasswordRequest": {
        "properties": {
          "current_password": {
            "type": "string",
            "title": "Current Password"
          },
          "new_password": {
            "type": "string",
            "title": "New Password"
          }
        },
        "type": "object",
        "required": [
          "current_password",
          "new_password"
        ],
        "title": "ChangePasswordRequest",
        "description": "Change password request model."
      },
      "ChannelConfigRequest": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": true
          },
          "endpoint_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Endpoint Url"
          }
        },
        "type": "object",
        "title": "ChannelConfigRequest"
      },
      "ChatRequest": {
        "properties": {
          "project_id": {
            "type": "string",
            "title": "Project Id"
          },
          "question": {
            "type": "string",
            "title": "Question"
          },
          "history": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "History"
          }
        },
        "type": "object",
        "required": [
          "project_id",
          "question"
        ],
        "title": "ChatRequest"
      },
      "ChatResponse": {
        "properties": {
          "answer": {
            "type": "string",
            "title": "Answer"
          },
          "blocks": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Blocks",
            "default": []
          },
          "console_links": {
            "items": {
              "$ref": "#/components/schemas/ConsoleLink"
            },
            "type": "array",
            "title": "Console Links",
            "default": []
          },
          "path": {
            "type": "string",
            "title": "Path",
            "default": "slow"
          },
          "used_tools": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Used Tools",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "answer"
        ],
        "title": "ChatResponse"
      },
      "ConfigurationRequest": {
        "properties": {
          "credentials": {
            "additionalProperties": true,
            "type": "object",
            "title": "Credentials"
          },
          "auth_config": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Auth Config"
          },
          "settings": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Settings"
          }
        },
        "type": "object",
        "title": "ConfigurationRequest",
        "description": "Request model for configuring integration."
      },
      "ConsoleLink": {
        "properties": {
          "label": {
            "type": "string",
            "title": "Label"
          },
          "route": {
            "type": "string",
            "title": "Route"
          },
          "tab": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tab"
          },
          "focus_node_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Focus Node Id"
          }
        },
        "type": "object",
        "required": [
          "label",
          "route"
        ],
        "title": "ConsoleLink"
      },
      "ContainmentConfigResponse": {
        "properties": {
          "mode": {
            "type": "string",
            "title": "Mode"
          },
          "severity_threshold": {
            "type": "string",
            "title": "Severity Threshold"
          },
          "max_depth": {
            "type": "integer",
            "title": "Max Depth"
          }
        },
        "type": "object",
        "required": [
          "mode",
          "severity_threshold",
          "max_depth"
        ],
        "title": "ContainmentConfigResponse"
      },
      "ContainmentConfigUpdate": {
        "properties": {
          "mode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mode",
            "description": "off, observe, or active"
          },
          "severity_threshold": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Severity Threshold"
          },
          "max_depth": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 200.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Depth"
          }
        },
        "type": "object",
        "title": "ContainmentConfigUpdate"
      },
      "CoverageEndpoint": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "integration_id": {
            "type": "string",
            "title": "Integration Id"
          },
          "host": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Host"
          },
          "port": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Port"
          },
          "provider": {
            "type": "string",
            "title": "Provider"
          },
          "tier": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tier"
          },
          "state": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "State"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "detail": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Detail"
          },
          "at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "integration_id",
          "provider"
        ],
        "title": "CoverageEndpoint",
        "description": "One discovered endpoint joined with registry tier and persisted coverage."
      },
      "CoverageReport": {
        "properties": {
          "endpoints": {
            "items": {
              "$ref": "#/components/schemas/CoverageEndpoint"
            },
            "type": "array",
            "title": "Endpoints"
          },
          "summary": {
            "$ref": "#/components/schemas/CoverageSummary"
          }
        },
        "type": "object",
        "required": [
          "endpoints",
          "summary"
        ],
        "title": "CoverageReport"
      },
      "CoverageSummary": {
        "properties": {
          "detected": {
            "type": "integer",
            "title": "Detected"
          },
          "mapped": {
            "type": "integer",
            "title": "Mapped"
          },
          "needs_connector": {
            "type": "integer",
            "title": "Needs Connector"
          },
          "needs_driver": {
            "type": "integer",
            "title": "Needs Driver"
          },
          "needs_credentials": {
            "type": "integer",
            "title": "Needs Credentials"
          },
          "unidentified": {
            "type": "integer",
            "title": "Unidentified"
          },
          "coverage_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Coverage Score"
          }
        },
        "type": "object",
        "required": [
          "detected",
          "mapped",
          "needs_connector",
          "needs_driver",
          "needs_credentials",
          "unidentified"
        ],
        "title": "CoverageSummary"
      },
      "CreateProjectRequest": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 3,
            "title": "Name"
          },
          "description": {
            "type": "string",
            "maxLength": 1000,
            "minLength": 10,
            "title": "Description"
          },
          "config": {
            "$ref": "#/components/schemas/ProjectConfig"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Tags"
          }
        },
        "type": "object",
        "required": [
          "name",
          "description",
          "config"
        ],
        "title": "CreateProjectRequest",
        "description": "Create project request model."
      },
      "CreateTicketRequest": {
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "title": "Title"
          },
          "description": {
            "type": "string",
            "minLength": 1,
            "title": "Description"
          },
          "priority": {
            "type": "string",
            "enum": [
              "critical",
              "high",
              "medium",
              "low"
            ],
            "title": "Priority",
            "default": "medium"
          },
          "alert_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Alert Id"
          },
          "alert_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Alert Source"
          },
          "metadata": {
            "additionalProperties": true,
            "type": "object",
            "title": "Metadata"
          },
          "incident_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Incident Id"
          }
        },
        "type": "object",
        "required": [
          "title",
          "description"
        ],
        "title": "CreateTicketRequest"
      },
      "DatabaseConfig": {
        "properties": {
          "type": {
            "type": "string",
            "title": "Type"
          },
          "host": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Host"
          },
          "port": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Port"
          },
          "database": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Database"
          },
          "username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Username"
          },
          "password": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Password"
          },
          "connection_string": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Connection String"
          },
          "options": {
            "additionalProperties": true,
            "type": "object",
            "title": "Options"
          }
        },
        "type": "object",
        "required": [
          "type"
        ],
        "title": "DatabaseConfig",
        "description": "Database configuration model."
      },
      "DetectDuplicatesRequest": {
        "properties": {
          "records": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Records",
            "description": "List of records to check"
          },
          "business_intent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Business Intent",
            "description": "Business intent category"
          },
          "similarity_threshold": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Similarity Threshold",
            "description": "Similarity threshold (0.0 to 1.0)",
            "default": 0.7
          }
        },
        "type": "object",
        "required": [
          "records"
        ],
        "title": "DetectDuplicatesRequest",
        "description": "Request for detecting duplicates."
      },
      "DetectionDimensionMetricsResponse": {
        "properties": {
          "dimension": {
            "type": "string",
            "title": "Dimension"
          },
          "total_labels": {
            "type": "integer",
            "title": "Total Labels"
          },
          "true_positives": {
            "type": "integer",
            "title": "True Positives"
          },
          "false_positives": {
            "type": "integer",
            "title": "False Positives"
          },
          "recall": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recall"
          },
          "precision": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Precision"
          },
          "latency_p50_seconds": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Latency P50 Seconds"
          },
          "latency_p90_seconds": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Latency P90 Seconds"
          },
          "latency_max_seconds": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Latency Max Seconds"
          }
        },
        "type": "object",
        "required": [
          "dimension",
          "total_labels",
          "true_positives",
          "false_positives",
          "recall",
          "precision",
          "latency_p50_seconds",
          "latency_p90_seconds",
          "latency_max_seconds"
        ],
        "title": "DetectionDimensionMetricsResponse"
      },
      "DetectionEventSummary": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "dimension": {
            "type": "string",
            "title": "Dimension"
          },
          "integration_id": {
            "type": "string",
            "title": "Integration Id"
          },
          "object_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Object Key"
          },
          "severity": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Severity"
          },
          "detected_at": {
            "type": "string",
            "title": "Detected At"
          },
          "source_component": {
            "type": "string",
            "title": "Source Component"
          },
          "payload": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Payload"
          }
        },
        "type": "object",
        "required": [
          "id",
          "dimension",
          "integration_id",
          "detected_at",
          "source_component"
        ],
        "title": "DetectionEventSummary"
      },
      "DetectionMetricsResponse": {
        "properties": {
          "overall": {
            "$ref": "#/components/schemas/DetectionDimensionMetricsResponse"
          },
          "dimensions": {
            "additionalProperties": {
              "$ref": "#/components/schemas/DetectionDimensionMetricsResponse"
            },
            "type": "object",
            "title": "Dimensions"
          }
        },
        "type": "object",
        "required": [
          "overall",
          "dimensions"
        ],
        "title": "DetectionMetricsResponse",
        "description": "Response model for GET /detection-metrics."
      },
      "DiscoveredIntegrationRequest": {
        "properties": {
          "integration_type": {
            "type": "string",
            "title": "Integration Type",
            "description": "Type of integration (postgresql, mysql, etc.)"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Integration name"
          },
          "endpoint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Endpoint",
            "description": "Connection endpoint (host:port or URL)"
          },
          "host": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Host",
            "description": "Host address"
          },
          "port": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Port",
            "description": "Port number"
          },
          "confidence_score": {
            "type": "number",
            "title": "Confidence Score",
            "description": "Discovery confidence (0.0 to 1.0)"
          },
          "discovery_method": {
            "type": "string",
            "title": "Discovery Method",
            "description": "Discovery method (port_scan, config_file, etc.)"
          },
          "metadata": {
            "additionalProperties": true,
            "type": "object",
            "title": "Metadata",
            "description": "Additional metadata"
          },
          "agent_schema": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PushedSchema"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "integration_type",
          "name",
          "confidence_score",
          "discovery_method"
        ],
        "title": "DiscoveredIntegrationRequest",
        "description": "Discovered integration from agent."
      },
      "DiscoveriesSubmission": {
        "properties": {
          "discoveries": {
            "items": {
              "$ref": "#/components/schemas/DiscoveredIntegrationRequest"
            },
            "type": "array",
            "title": "Discoveries",
            "description": "List of discoveries"
          }
        },
        "type": "object",
        "required": [
          "discoveries"
        ],
        "title": "DiscoveriesSubmission",
        "description": "Batch of discoveries from agent."
      },
      "DiscoveryAgentConfig": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": true
          },
          "scan_depth": {
            "type": "string",
            "pattern": "^(shallow|deep)$",
            "title": "Scan Depth",
            "default": "deep"
          },
          "include_views": {
            "type": "boolean",
            "title": "Include Views",
            "default": true
          },
          "include_procedures": {
            "type": "boolean",
            "title": "Include Procedures",
            "default": true
          }
        },
        "type": "object",
        "title": "DiscoveryAgentConfig",
        "description": "Discovery agent configuration."
      },
      "DiscoveryRequest": {
        "properties": {
          "hosts": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hosts"
          },
          "ports": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ports"
          },
          "api_endpoints": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Endpoints"
          },
          "openapi_specs": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Openapi Specs"
          },
          "graphql_endpoints": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Graphql Endpoints"
          },
          "cloud_providers": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cloud Providers"
          },
          "cloud_regions": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cloud Regions"
          },
          "config_paths": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config Paths"
          },
          "methods": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Methods"
          },
          "project_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id"
          }
        },
        "type": "object",
        "title": "DiscoveryRequest",
        "description": "Request model for triggering discovery."
      },
      "DuplicateConfigResponse": {
        "properties": {
          "mode": {
            "type": "string",
            "title": "Mode",
            "description": "flag or block"
          }
        },
        "type": "object",
        "required": [
          "mode"
        ],
        "title": "DuplicateConfigResponse",
        "description": "Duplicate mode configuration."
      },
      "DuplicateConfigUpdate": {
        "properties": {
          "mode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mode",
            "description": "flag or block"
          }
        },
        "type": "object",
        "title": "DuplicateConfigUpdate",
        "description": "Update duplicate mode."
      },
      "DuplicateGroupResponse": {
        "properties": {
          "group_id": {
            "type": "string",
            "title": "Group Id"
          },
          "record_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Record Ids"
          },
          "primary_record_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Primary Record Id"
          },
          "similarity_scores": {
            "additionalProperties": {
              "type": "number"
            },
            "type": "object",
            "title": "Similarity Scores"
          },
          "match_types": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Match Types"
          },
          "business_intent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Business Intent"
          },
          "detected_at": {
            "type": "string",
            "title": "Detected At"
          },
          "resolved": {
            "type": "boolean",
            "title": "Resolved"
          },
          "resolved_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolved At"
          }
        },
        "type": "object",
        "required": [
          "group_id",
          "record_ids",
          "detected_at",
          "resolved"
        ],
        "title": "DuplicateGroupResponse",
        "description": "Response for duplicate group."
      },
      "DuplicateResolutionResponse": {
        "properties": {
          "resolution_id": {
            "type": "string",
            "title": "Resolution Id"
          },
          "group_id": {
            "type": "string",
            "title": "Group Id"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "primary_record_id": {
            "type": "string",
            "title": "Primary Record Id"
          },
          "merged_record_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Merged Record Ids"
          },
          "deleted_record_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Deleted Record Ids"
          },
          "resolved_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolved By"
          },
          "resolved_at": {
            "type": "string",
            "title": "Resolved At"
          },
          "notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Notes"
          }
        },
        "type": "object",
        "required": [
          "resolution_id",
          "group_id",
          "status",
          "primary_record_id",
          "resolved_at"
        ],
        "title": "DuplicateResolutionResponse",
        "description": "Response for duplicate resolution."
      },
      "EdgeIngest": {
        "properties": {
          "source": {
            "type": "string",
            "title": "Source"
          },
          "target": {
            "type": "string",
            "title": "Target"
          },
          "edge_type": {
            "type": "string",
            "title": "Edge Type",
            "default": "mapping"
          },
          "metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Metadata"
          }
        },
        "type": "object",
        "required": [
          "source",
          "target"
        ],
        "title": "EdgeIngest"
      },
      "EmptyBody": {
        "properties": {},
        "type": "object",
        "title": "EmptyBody",
        "description": "Activate / pause / reject accept an empty body; unknown fields are ignored."
      },
      "EstateCostNote": {
        "properties": {
          "introspect_queries_per_table": {
            "type": "integer",
            "title": "Introspect Queries Per Table"
          },
          "row_count_strategy": {
            "type": "string",
            "title": "Row Count Strategy"
          },
          "billed_by_vendor": {
            "type": "boolean",
            "title": "Billed By Vendor"
          }
        },
        "type": "object",
        "required": [
          "introspect_queries_per_table",
          "row_count_strategy",
          "billed_by_vendor"
        ],
        "title": "EstateCostNote"
      },
      "EstateLoadGroupResponse": {
        "properties": {
          "group_key": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Group Key"
          },
          "query_count": {
            "type": "integer",
            "title": "Query Count"
          },
          "total_rows_read": {
            "type": "integer",
            "title": "Total Rows Read"
          }
        },
        "type": "object",
        "required": [
          "group_key",
          "query_count",
          "total_rows_read"
        ],
        "title": "EstateLoadGroupResponse",
        "description": "One aggregated row of the estate-load footprint report."
      },
      "EstateLoadSummaryResponse": {
        "properties": {
          "window_days": {
            "type": "integer",
            "title": "Window Days"
          },
          "group_by": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Group By"
          },
          "groups": {
            "items": {
              "$ref": "#/components/schemas/EstateLoadGroupResponse"
            },
            "type": "array",
            "title": "Groups"
          }
        },
        "type": "object",
        "required": [
          "window_days",
          "group_by",
          "groups"
        ],
        "title": "EstateLoadSummaryResponse",
        "description": "Response model for GET /estate-load."
      },
      "ExecuteRequest": {
        "properties": {
          "plan": {
            "additionalProperties": true,
            "type": "object",
            "title": "Plan"
          },
          "project_id": {
            "type": "string",
            "title": "Project Id"
          },
          "session_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Id"
          }
        },
        "type": "object",
        "required": [
          "plan",
          "project_id"
        ],
        "title": "ExecuteRequest"
      },
      "ExecutionAgentConfig": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": true
          },
          "dry_run": {
            "type": "boolean",
            "title": "Dry Run",
            "default": false
          },
          "rollback_enabled": {
            "type": "boolean",
            "title": "Rollback Enabled",
            "default": true
          }
        },
        "type": "object",
        "title": "ExecutionAgentConfig",
        "description": "Execution agent configuration."
      },
      "ExtractIntentRequest": {
        "properties": {
          "field_name": {
            "type": "string",
            "title": "Field Name",
            "description": "Field name to analyze"
          },
          "field_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Field Description",
            "description": "Optional field description"
          },
          "sample_values": {
            "anyOf": [
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sample Values",
            "description": "Optional sample values"
          },
          "data_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Data Type",
            "description": "Optional data type"
          },
          "use_llm": {
            "type": "boolean",
            "title": "Use Llm",
            "description": "Whether to use LLM for extraction",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "field_name"
        ],
        "title": "ExtractIntentRequest",
        "description": "Request for extracting business intent."
      },
      "ExtractIntentResponse": {
        "properties": {
          "intent": {
            "additionalProperties": true,
            "type": "object",
            "title": "Intent",
            "description": "Extracted business intent"
          },
          "confidence": {
            "type": "number",
            "title": "Confidence",
            "description": "Confidence score (0.0 to 1.0)"
          }
        },
        "type": "object",
        "required": [
          "intent",
          "confidence"
        ],
        "title": "ExtractIntentResponse",
        "description": "Response for business intent extraction."
      },
      "FieldMapping": {
        "properties": {
          "sourceField": {
            "type": "string",
            "title": "Sourcefield"
          },
          "targetField": {
            "type": "string",
            "title": "Targetfield"
          },
          "sourceValue": {
            "title": "Sourcevalue"
          },
          "mappedValue": {
            "title": "Mappedvalue"
          },
          "confidence": {
            "type": "number",
            "title": "Confidence"
          },
          "transformationType": {
            "type": "string",
            "enum": [
              "direct",
              "computed",
              "inferred",
              "custom"
            ],
            "title": "Transformationtype"
          },
          "aiReasoning": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Aireasoning"
          }
        },
        "type": "object",
        "required": [
          "sourceField",
          "targetField",
          "sourceValue",
          "mappedValue",
          "confidence",
          "transformationType"
        ],
        "title": "FieldMapping"
      },
      "FieldMappingMetadata": {
        "properties": {
          "vendorField": {
            "type": "string",
            "title": "Vendorfield"
          },
          "targetField": {
            "type": "string",
            "title": "Targetfield"
          },
          "transformationType": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "direct",
                  "computed",
                  "lookup",
                  "custom"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Transformationtype"
          }
        },
        "type": "object",
        "required": [
          "vendorField",
          "targetField"
        ],
        "title": "FieldMappingMetadata"
      },
      "FindSemanticMatchRequest": {
        "properties": {
          "source_field": {
            "type": "string",
            "title": "Source Field",
            "description": "Source field name"
          },
          "target_fields": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Target Fields",
            "description": "List of target field names to match against"
          },
          "source_vendor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Vendor",
            "description": "Optional source vendor"
          },
          "target_model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Target Model",
            "description": "Optional target model"
          },
          "min_confidence": {
            "type": "number",
            "title": "Min Confidence",
            "description": "Minimum confidence threshold",
            "default": 0.5
          }
        },
        "type": "object",
        "required": [
          "source_field",
          "target_fields"
        ],
        "title": "FindSemanticMatchRequest",
        "description": "Request for finding semantic matches."
      },
      "GeneratePolicyRequest": {
        "properties": {
          "scan_job_id": {
            "type": "string",
            "title": "Scan Job Id"
          },
          "project_id": {
            "type": "string",
            "title": "Project Id",
            "default": "system"
          }
        },
        "type": "object",
        "required": [
          "scan_job_id"
        ],
        "title": "GeneratePolicyRequest"
      },
      "GlobalAIBudgetResponse": {
        "properties": {
          "daily_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Daily Usd"
          },
          "monthly_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Monthly Usd"
          },
          "estate_load_ceiling_per_cycle": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Estate Load Ceiling Per Cycle"
          }
        },
        "type": "object",
        "required": [
          "daily_usd",
          "monthly_usd",
          "estate_load_ceiling_per_cycle"
        ],
        "title": "GlobalAIBudgetResponse"
      },
      "GuardianScanStart": {
        "properties": {
          "scan_type": {
            "type": "string",
            "title": "Scan Type",
            "default": "full"
          },
          "target": {
            "type": "string",
            "title": "Target",
            "default": "all"
          },
          "metadata": {
            "additionalProperties": true,
            "type": "object",
            "title": "Metadata",
            "default": {}
          },
          "samples": {
            "additionalProperties": true,
            "type": "object",
            "title": "Samples",
            "default": {}
          }
        },
        "type": "object",
        "title": "GuardianScanStart"
      },
      "GuardianStatus": {
        "properties": {
          "job_id": {
            "type": "string",
            "title": "Job Id"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "logs": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Logs"
          },
          "next_cursor": {
            "type": "integer",
            "title": "Next Cursor",
            "default": 0
          },
          "results": {
            "title": "Results"
          },
          "error": {
            "title": "Error"
          }
        },
        "type": "object",
        "required": [
          "job_id",
          "status",
          "logs",
          "results"
        ],
        "title": "GuardianStatus"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "HealingConfigResponse": {
        "properties": {
          "mode": {
            "type": "string",
            "title": "Mode",
            "description": "alert or autonomous"
          },
          "auto_apply_threshold": {
            "type": "number",
            "title": "Auto Apply Threshold",
            "description": "Min confidence for auto-apply"
          }
        },
        "type": "object",
        "required": [
          "mode",
          "auto_apply_threshold"
        ],
        "title": "HealingConfigResponse",
        "description": "Healing configuration."
      },
      "HealingConfigUpdate": {
        "properties": {
          "mode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mode",
            "description": "alert or autonomous"
          },
          "auto_apply_threshold": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 1.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Auto Apply Threshold"
          }
        },
        "type": "object",
        "title": "HealingConfigUpdate",
        "description": "Update healing configuration."
      },
      "HistoryPoint": {
        "properties": {
          "date": {
            "type": "string",
            "title": "Date"
          },
          "value": {
            "type": "integer",
            "title": "Value"
          }
        },
        "type": "object",
        "required": [
          "date",
          "value"
        ],
        "title": "HistoryPoint"
      },
      "HistoryResponse": {
        "properties": {
          "api_counts": {
            "items": {
              "$ref": "#/components/schemas/HistoryPoint"
            },
            "type": "array",
            "title": "Api Counts"
          },
          "issue_counts": {
            "items": {
              "$ref": "#/components/schemas/HistoryPoint"
            },
            "type": "array",
            "title": "Issue Counts"
          }
        },
        "type": "object",
        "required": [
          "api_counts",
          "issue_counts"
        ],
        "title": "HistoryResponse"
      },
      "ImpactCostConfigResponse": {
        "properties": {
          "cost_per_record": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cost Per Record"
          },
          "cost_per_record_source": {
            "type": "string",
            "title": "Cost Per Record Source",
            "description": "'ui', 'env', or 'default'"
          },
          "cost_per_hour": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cost Per Hour"
          },
          "cost_per_hour_source": {
            "type": "string",
            "title": "Cost Per Hour Source",
            "description": "'ui', 'env', or 'default'"
          }
        },
        "type": "object",
        "required": [
          "cost_per_record_source",
          "cost_per_hour_source"
        ],
        "title": "ImpactCostConfigResponse"
      },
      "ImpactCostConfigUpdate": {
        "properties": {
          "cost_per_record": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Cost Per Record"
          },
          "cost_per_hour": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Cost Per Hour"
          }
        },
        "type": "object",
        "title": "ImpactCostConfigUpdate"
      },
      "IncidentAnalysisConfigResponse": {
        "properties": {
          "mode": {
            "type": "string",
            "title": "Mode"
          },
          "allow_heuristic_auto": {
            "type": "boolean",
            "title": "Allow Heuristic Auto"
          }
        },
        "type": "object",
        "required": [
          "mode",
          "allow_heuristic_auto"
        ],
        "title": "IncidentAnalysisConfigResponse"
      },
      "IncidentAnalysisConfigUpdate": {
        "properties": {
          "mode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mode"
          },
          "allow_heuristic_auto": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Allow Heuristic Auto"
          }
        },
        "type": "object",
        "title": "IncidentAnalysisConfigUpdate"
      },
      "IncidentAnalysisResponse": {
        "properties": {
          "incident_id": {
            "type": "string",
            "title": "Incident Id"
          },
          "generated_at": {
            "type": "string",
            "title": "Generated At"
          },
          "generated_by": {
            "type": "string",
            "title": "Generated By"
          },
          "narrative": {
            "type": "string",
            "title": "Narrative"
          },
          "candidates": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Candidates"
          },
          "evidence_bundle": {
            "additionalProperties": true,
            "type": "object",
            "title": "Evidence Bundle"
          },
          "runbook": {
            "additionalProperties": true,
            "type": "object",
            "title": "Runbook"
          }
        },
        "type": "object",
        "required": [
          "incident_id",
          "generated_at",
          "generated_by",
          "narrative",
          "candidates",
          "evidence_bundle",
          "runbook"
        ],
        "title": "IncidentAnalysisResponse"
      },
      "IncidentDetail": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "severity": {
            "type": "string",
            "title": "Severity"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "origin_integration_id": {
            "type": "string",
            "title": "Origin Integration Id"
          },
          "origin_object_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Origin Object Key"
          },
          "origin_node_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Origin Node Key"
          },
          "dimensions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Dimensions"
          },
          "member_count": {
            "type": "integer",
            "title": "Member Count"
          },
          "first_detected_at": {
            "type": "string",
            "title": "First Detected At"
          },
          "last_activity_at": {
            "type": "string",
            "title": "Last Activity At"
          },
          "ticket_provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ticket Provider"
          },
          "ticket_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ticket Id"
          },
          "ticket_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ticket Url"
          },
          "ticket_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ticket Status"
          },
          "ticket_last_synced_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ticket Last Synced At"
          },
          "ack_deadline_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ack Deadline At"
          },
          "resolve_deadline_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolve Deadline At"
          },
          "sla_state": {
            "type": "string",
            "title": "Sla State",
            "default": "on_track"
          },
          "owner": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Owner"
          },
          "outcome": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Outcome"
          },
          "outcome_labeled_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Outcome Labeled At"
          },
          "outcome_labeled_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Outcome Labeled By"
          },
          "outcome_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Outcome Note"
          },
          "member_event_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Member Event Ids"
          },
          "impact_estimate": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Impact Estimate"
          },
          "acknowledged_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Acknowledged At"
          },
          "acknowledged_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Acknowledged By"
          },
          "resolved_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolved At"
          },
          "resolved_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolved By"
          },
          "resolution": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolution"
          },
          "resolution_mode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolution Mode"
          },
          "member_events": {
            "items": {
              "$ref": "#/components/schemas/DetectionEventSummary"
            },
            "type": "array",
            "title": "Member Events"
          }
        },
        "type": "object",
        "required": [
          "id",
          "status",
          "severity",
          "title",
          "origin_integration_id",
          "dimensions",
          "member_count",
          "first_detected_at",
          "last_activity_at",
          "member_event_ids"
        ],
        "title": "IncidentDetail"
      },
      "IncidentOutcome": {
        "type": "string",
        "enum": [
          "true_positive",
          "false_positive",
          "inconclusive"
        ],
        "title": "IncidentOutcome"
      },
      "IncidentOutcomeRequest": {
        "properties": {
          "outcome": {
            "$ref": "#/components/schemas/IncidentOutcome"
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          }
        },
        "type": "object",
        "required": [
          "outcome"
        ],
        "title": "IncidentOutcomeRequest"
      },
      "IncidentOwnerRequest": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "team": {
            "type": "string",
            "title": "Team",
            "default": ""
          },
          "contact": {
            "type": "string",
            "title": "Contact",
            "default": ""
          },
          "notify_channels": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Notify Channels"
          },
          "integration_id_pattern": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Integration Id Pattern"
          },
          "object_key_pattern": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Object Key Pattern"
          },
          "priority": {
            "type": "integer",
            "title": "Priority",
            "default": 100
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "IncidentOwnerRequest"
      },
      "IncidentOwnerUpdateRequest": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "team": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Team"
          },
          "contact": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contact"
          },
          "notify_channels": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Notify Channels"
          },
          "integration_id_pattern": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Integration Id Pattern"
          },
          "object_key_pattern": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Object Key Pattern"
          },
          "priority": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Priority"
          }
        },
        "type": "object",
        "title": "IncidentOwnerUpdateRequest"
      },
      "IngestRequest": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Unique document name (used as key for updates)"
          },
          "content": {
            "type": "string",
            "title": "Content",
            "description": "Raw text content to ingest"
          },
          "metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Metadata"
          },
          "chunk_size": {
            "type": "integer",
            "maximum": 10000.0,
            "minimum": 100.0,
            "title": "Chunk Size",
            "default": 1000
          },
          "chunk_overlap": {
            "type": "integer",
            "maximum": 2000.0,
            "minimum": 0.0,
            "title": "Chunk Overlap",
            "default": 100
          }
        },
        "type": "object",
        "required": [
          "name",
          "content"
        ],
        "title": "IngestRequest"
      },
      "KafkaFlowLagEntry": {
        "properties": {
          "topic": {
            "type": "string",
            "title": "Topic"
          },
          "partition": {
            "type": "integer",
            "title": "Partition"
          },
          "group": {
            "type": "string",
            "title": "Group"
          },
          "high_water_mark": {
            "type": "integer",
            "title": "High Water Mark"
          },
          "committed_offset": {
            "type": "integer",
            "title": "Committed Offset"
          },
          "has_consumer": {
            "type": "boolean",
            "title": "Has Consumer",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "topic",
          "partition",
          "group",
          "high_water_mark",
          "committed_offset"
        ],
        "title": "KafkaFlowLagEntry"
      },
      "KafkaFlowSamplesSubmission": {
        "properties": {
          "host": {
            "type": "string",
            "title": "Host"
          },
          "port": {
            "type": "integer",
            "title": "Port"
          },
          "lags": {
            "items": {
              "$ref": "#/components/schemas/KafkaFlowLagEntry"
            },
            "type": "array",
            "title": "Lags"
          }
        },
        "type": "object",
        "required": [
          "host",
          "port"
        ],
        "title": "KafkaFlowSamplesSubmission"
      },
      "LiftMarkRequest": {
        "properties": {
          "lift_reason": {
            "type": "string",
            "minLength": 1,
            "title": "Lift Reason"
          }
        },
        "type": "object",
        "required": [
          "lift_reason"
        ],
        "title": "LiftMarkRequest"
      },
      "LoginRequest": {
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "password": {
            "type": "string",
            "title": "Password"
          }
        },
        "type": "object",
        "required": [
          "email",
          "password"
        ],
        "title": "LoginRequest",
        "description": "Login request model."
      },
      "LoginResponse": {
        "properties": {
          "access_token": {
            "type": "string",
            "title": "Access Token"
          },
          "token_type": {
            "type": "string",
            "title": "Token Type",
            "default": "bearer"
          },
          "expires_in": {
            "type": "integer",
            "title": "Expires In"
          },
          "user": {
            "additionalProperties": true,
            "type": "object",
            "title": "User"
          }
        },
        "type": "object",
        "required": [
          "access_token",
          "expires_in",
          "user"
        ],
        "title": "LoginResponse",
        "description": "Login response model."
      },
      "MFAChallengeResponse": {
        "properties": {
          "mfa_required": {
            "type": "boolean",
            "title": "Mfa Required",
            "default": true
          },
          "mfa_token": {
            "type": "string",
            "title": "Mfa Token"
          },
          "expires_in": {
            "type": "integer",
            "title": "Expires In"
          }
        },
        "type": "object",
        "required": [
          "mfa_token",
          "expires_in"
        ],
        "title": "MFAChallengeResponse"
      },
      "MFADisableRequest": {
        "properties": {
          "password": {
            "type": "string",
            "title": "Password"
          }
        },
        "type": "object",
        "required": [
          "password"
        ],
        "title": "MFADisableRequest",
        "description": "Re-authentication required to turn MFA off."
      },
      "MFAEnableRequest": {
        "properties": {
          "token": {
            "type": "string",
            "title": "Token"
          }
        },
        "type": "object",
        "required": [
          "token"
        ],
        "title": "MFAEnableRequest",
        "description": "Verification code to finish MFA enrollment."
      },
      "MFAEnableResponse": {
        "properties": {
          "backup_codes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Backup Codes"
          }
        },
        "type": "object",
        "required": [
          "backup_codes"
        ],
        "title": "MFAEnableResponse",
        "description": "Backup codes, shown once \u2014 the account has no other recovery path."
      },
      "MFASetupResponse": {
        "properties": {
          "secret": {
            "type": "string",
            "title": "Secret"
          },
          "qr_code_base64": {
            "type": "string",
            "title": "Qr Code Base64"
          }
        },
        "type": "object",
        "required": [
          "secret",
          "qr_code_base64"
        ],
        "title": "MFASetupResponse",
        "description": "Response for starting MFA enrollment."
      },
      "MFAStatusResponse": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          }
        },
        "type": "object",
        "required": [
          "enabled"
        ],
        "title": "MFAStatusResponse"
      },
      "MFAVerifyLoginRequest": {
        "properties": {
          "mfa_token": {
            "type": "string",
            "title": "Mfa Token"
          },
          "token": {
            "type": "string",
            "title": "Token"
          }
        },
        "type": "object",
        "required": [
          "mfa_token",
          "token"
        ],
        "title": "MFAVerifyLoginRequest",
        "description": "Second step of login when the account has MFA enabled."
      },
      "MappingAgentConfig": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": true
          },
          "auto_mapping": {
            "type": "boolean",
            "title": "Auto Mapping",
            "default": true
          },
          "confidence_threshold": {
            "type": "number",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Confidence Threshold",
            "default": 0.8
          }
        },
        "type": "object",
        "title": "MappingAgentConfig",
        "description": "Mapping agent configuration."
      },
      "MappingFeedbackCreate": {
        "properties": {
          "mapping_id": {
            "type": "string",
            "minLength": 1,
            "title": "Mapping Id"
          },
          "source_field": {
            "type": "string",
            "minLength": 1,
            "title": "Source Field"
          },
          "target_field": {
            "type": "string",
            "minLength": 1,
            "title": "Target Field"
          },
          "feedback_type": {
            "type": "string",
            "title": "Feedback Type",
            "description": "correct | incorrect | partial | manual_override"
          },
          "ai_suggested_field": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ai Suggested Field"
          },
          "user_corrected_field": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Corrected Field"
          },
          "user_comment": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Comment"
          },
          "ai_confidence": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ai Confidence"
          },
          "ai_reasoning": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ai Reasoning"
          },
          "source_table": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Table"
          },
          "target_table": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Target Table"
          },
          "source_vendor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Vendor"
          },
          "target_model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Target Model"
          },
          "project_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id"
          },
          "sentiment": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sentiment"
          },
          "data_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Data Type"
          },
          "transformation_applied": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Transformation Applied"
          },
          "session_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Id"
          }
        },
        "type": "object",
        "required": [
          "mapping_id",
          "source_field",
          "target_field",
          "feedback_type"
        ],
        "title": "MappingFeedbackCreate"
      },
      "MappingFeedbackOut": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "mapping_id": {
            "type": "string",
            "title": "Mapping Id"
          },
          "source_field": {
            "type": "string",
            "title": "Source Field"
          },
          "target_field": {
            "type": "string",
            "title": "Target Field"
          },
          "source_table": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Table"
          },
          "target_table": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Target Table"
          },
          "ai_suggested_field": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ai Suggested Field"
          },
          "ai_confidence": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ai Confidence"
          },
          "ai_reasoning": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ai Reasoning"
          },
          "feedback_type": {
            "type": "string",
            "title": "Feedback Type"
          },
          "user_corrected_field": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Corrected Field"
          },
          "user_comment": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Comment"
          },
          "sentiment": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sentiment"
          },
          "source_vendor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Vendor"
          },
          "target_model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Target Model"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "was_used_for_training": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Was Used For Training"
          },
          "project_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id"
          }
        },
        "type": "object",
        "required": [
          "id",
          "mapping_id",
          "source_field",
          "target_field",
          "feedback_type"
        ],
        "title": "MappingFeedbackOut"
      },
      "MappingMetadata": {
        "properties": {
          "mappedAt": {
            "type": "string",
            "format": "date-time",
            "title": "Mappedat"
          },
          "mappedBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mappedby"
          },
          "version": {
            "type": "string",
            "title": "Version"
          },
          "reviewStatus": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "pending",
                  "approved",
                  "rejected"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Reviewstatus"
          },
          "reviewedBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reviewedby"
          },
          "reviewedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reviewedat"
          }
        },
        "type": "object",
        "required": [
          "mappedAt",
          "version"
        ],
        "title": "MappingMetadata"
      },
      "MappingResult": {
        "properties": {
          "mappingId": {
            "type": "string",
            "title": "Mappingid"
          },
          "sourceVendor": {
            "type": "string",
            "title": "Sourcevendor"
          },
          "targetModel": {
            "type": "string",
            "title": "Targetmodel"
          },
          "mappedData": {
            "additionalProperties": true,
            "type": "object",
            "title": "Mappeddata"
          },
          "overallConfidence": {
            "type": "number",
            "title": "Overallconfidence"
          },
          "fieldMappings": {
            "items": {
              "$ref": "#/components/schemas/FieldMapping"
            },
            "type": "array",
            "title": "Fieldmappings"
          },
          "isValid": {
            "type": "boolean",
            "title": "Isvalid"
          },
          "validationErrors": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Validationerrors"
          },
          "validationWarnings": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Validationwarnings"
          },
          "aiModel": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Aimodel"
          },
          "processingTime": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Processingtime"
          },
          "metadata": {
            "$ref": "#/components/schemas/MappingMetadata"
          }
        },
        "type": "object",
        "required": [
          "mappingId",
          "sourceVendor",
          "targetModel",
          "mappedData",
          "overallConfidence",
          "fieldMappings",
          "isValid",
          "validationErrors",
          "validationWarnings",
          "metadata"
        ],
        "title": "MappingResult",
        "description": "MappingResult contains the output of the AI mapping agent."
      },
      "MigrationConfig": {
        "properties": {
          "batch_size": {
            "type": "integer",
            "maximum": 10000.0,
            "minimum": 1.0,
            "title": "Batch Size",
            "default": 1000
          },
          "parallel_tasks": {
            "type": "integer",
            "maximum": 32.0,
            "minimum": 1.0,
            "title": "Parallel Tasks",
            "default": 4
          },
          "validate_data": {
            "type": "boolean",
            "title": "Validate Data",
            "default": true
          },
          "preserve_schema": {
            "type": "boolean",
            "title": "Preserve Schema",
            "default": true
          },
          "custom_mappings": {
            "additionalProperties": true,
            "type": "object",
            "title": "Custom Mappings"
          }
        },
        "type": "object",
        "title": "MigrationConfig",
        "description": "Migration configuration model."
      },
      "PairingDeclareRequest": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Name"
          },
          "a_integration_id": {
            "type": "string",
            "title": "A Integration Id"
          },
          "b_integration_id": {
            "type": "string",
            "title": "B Integration Id"
          },
          "a_table": {
            "type": "string",
            "title": "A Table"
          },
          "b_table": {
            "type": "string",
            "title": "B Table"
          },
          "a_key_column": {
            "type": "string",
            "title": "A Key Column"
          },
          "b_key_column": {
            "type": "string",
            "title": "B Key Column"
          },
          "a_measure_column": {
            "type": "string",
            "title": "A Measure Column"
          },
          "b_measure_column": {
            "type": "string",
            "title": "B Measure Column"
          },
          "a_database": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Database"
          },
          "a_schema": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Schema"
          },
          "b_database": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "B Database"
          },
          "b_schema": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "B Schema"
          },
          "a_measure_scale": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Measure Scale"
          },
          "b_measure_scale": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "B Measure Scale"
          },
          "minor_unit_exponent": {
            "type": "integer",
            "title": "Minor Unit Exponent",
            "default": 2
          },
          "currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Currency"
          },
          "a_partition_column": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Partition Column"
          },
          "b_partition_column": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "B Partition Column"
          },
          "partition_value_type": {
            "type": "string",
            "title": "Partition Value Type",
            "default": "string"
          },
          "a_timestamp_column": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Timestamp Column"
          },
          "a_timestamp_kind": {
            "type": "string",
            "title": "A Timestamp Kind",
            "default": "utc"
          },
          "settle_window_seconds": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Settle Window Seconds"
          },
          "cadence_seconds": {
            "type": "integer",
            "title": "Cadence Seconds",
            "default": 900
          },
          "tolerance_per_partition_minor": {
            "type": "integer",
            "title": "Tolerance Per Partition Minor",
            "default": 0
          },
          "tolerance_per_key_minor": {
            "type": "integer",
            "title": "Tolerance Per Key Minor",
            "default": 0
          },
          "lookback_partitions": {
            "type": "integer",
            "title": "Lookback Partitions",
            "default": 10
          },
          "lookback_days": {
            "type": "integer",
            "title": "Lookback Days",
            "default": 35
          },
          "tier_b_row_cap": {
            "type": "integer",
            "title": "Tier B Row Cap",
            "default": 100000
          },
          "tier_b_fingerprint_row_cap": {
            "type": "integer",
            "title": "Tier B Fingerprint Row Cap",
            "default": 100000
          },
          "key_normalizer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Key Normalizer"
          }
        },
        "type": "object",
        "required": [
          "name",
          "a_integration_id",
          "b_integration_id",
          "a_table",
          "b_table",
          "a_key_column",
          "b_key_column",
          "a_measure_column",
          "b_measure_column"
        ],
        "title": "PairingDeclareRequest"
      },
      "PairingPatchRequest": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "a_integration_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Integration Id"
          },
          "b_integration_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "B Integration Id"
          },
          "a_database": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Database"
          },
          "a_schema": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Schema"
          },
          "a_table": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Table"
          },
          "b_database": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "B Database"
          },
          "b_schema": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "B Schema"
          },
          "b_table": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "B Table"
          },
          "a_key_column": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Key Column"
          },
          "b_key_column": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "B Key Column"
          },
          "a_measure_column": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Measure Column"
          },
          "b_measure_column": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "B Measure Column"
          },
          "a_measure_scale": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Measure Scale"
          },
          "b_measure_scale": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "B Measure Scale"
          },
          "minor_unit_exponent": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Minor Unit Exponent"
          },
          "currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Currency"
          },
          "a_partition_column": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Partition Column"
          },
          "b_partition_column": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "B Partition Column"
          },
          "partition_value_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Partition Value Type"
          },
          "a_timestamp_column": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Timestamp Column"
          },
          "a_timestamp_kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "A Timestamp Kind"
          },
          "settle_window_seconds": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Settle Window Seconds"
          },
          "cadence_seconds": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cadence Seconds"
          },
          "tolerance_per_partition_minor": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tolerance Per Partition Minor"
          },
          "tolerance_per_key_minor": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tolerance Per Key Minor"
          },
          "lookback_partitions": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lookback Partitions"
          },
          "lookback_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lookback Days"
          },
          "tier_b_row_cap": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tier B Row Cap"
          },
          "tier_b_fingerprint_row_cap": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tier B Fingerprint Row Cap"
          },
          "key_normalizer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Key Normalizer"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "PairingPatchRequest"
      },
      "PlanRequest": {
        "properties": {
          "goal": {
            "type": "string",
            "title": "Goal"
          },
          "project_id": {
            "type": "string",
            "title": "Project Id"
          },
          "session_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Id"
          },
          "context_data": {
            "additionalProperties": true,
            "type": "object",
            "title": "Context Data",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "goal",
          "project_id"
        ],
        "title": "PlanRequest"
      },
      "PollIntervalRequest": {
        "properties": {
          "interval": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Interval",
            "description": "Polling interval in seconds (minimum 1 second)"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason",
            "description": "Reason for adjustment (for logging)"
          }
        },
        "type": "object",
        "required": [
          "interval"
        ],
        "title": "PollIntervalRequest",
        "description": "Request to adjust polling interval."
      },
      "PollIntervalResponse": {
        "properties": {
          "old_interval": {
            "type": "integer",
            "title": "Old Interval"
          },
          "new_interval": {
            "type": "integer",
            "title": "New Interval"
          },
          "message": {
            "type": "string",
            "title": "Message"
          }
        },
        "type": "object",
        "required": [
          "old_interval",
          "new_interval",
          "message"
        ],
        "title": "PollIntervalResponse",
        "description": "Response for polling interval adjustment."
      },
      "ProbeHeartbeat": {
        "properties": {
          "node_id": {
            "type": "string",
            "title": "Node Id"
          },
          "hostname": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hostname"
          },
          "capabilities": {
            "additionalProperties": true,
            "type": "object",
            "title": "Capabilities",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "node_id"
        ],
        "title": "ProbeHeartbeat"
      },
      "Project": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "config": {
            "$ref": "#/components/schemas/ProjectConfig"
          },
          "metrics": {
            "$ref": "#/components/schemas/ProjectMetrics"
          },
          "progress": {
            "$ref": "#/components/schemas/ProjectProgress"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "title": "Updated At"
          },
          "created_by": {
            "type": "string",
            "title": "Created By"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Tags"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "description",
          "status",
          "config",
          "created_at",
          "updated_at",
          "created_by"
        ],
        "title": "Project",
        "description": "Project model."
      },
      "ProjectConfig": {
        "properties": {
          "source": {
            "$ref": "#/components/schemas/DatabaseConfig"
          },
          "target": {
            "$ref": "#/components/schemas/DatabaseConfig"
          },
          "migration": {
            "$ref": "#/components/schemas/MigrationConfig"
          },
          "agents": {
            "$ref": "#/components/schemas/AgentsConfig"
          }
        },
        "type": "object",
        "required": [
          "source",
          "target"
        ],
        "title": "ProjectConfig",
        "description": "Project configuration model."
      },
      "ProjectListResponse": {
        "properties": {
          "projects": {
            "items": {
              "$ref": "#/components/schemas/Project"
            },
            "type": "array",
            "title": "Projects"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          }
        },
        "type": "object",
        "required": [
          "projects",
          "total",
          "page",
          "page_size"
        ],
        "title": "ProjectListResponse",
        "description": "Project list response model."
      },
      "ProjectMetrics": {
        "properties": {
          "tables_discovered": {
            "type": "integer",
            "title": "Tables Discovered",
            "default": 0
          },
          "tables_analyzed": {
            "type": "integer",
            "title": "Tables Analyzed",
            "default": 0
          },
          "tables_mapped": {
            "type": "integer",
            "title": "Tables Mapped",
            "default": 0
          },
          "tables_validated": {
            "type": "integer",
            "title": "Tables Validated",
            "default": 0
          },
          "tables_migrated": {
            "type": "integer",
            "title": "Tables Migrated",
            "default": 0
          },
          "records_processed": {
            "type": "integer",
            "title": "Records Processed",
            "default": 0
          },
          "errors_found": {
            "type": "integer",
            "title": "Errors Found",
            "default": 0
          },
          "warnings_found": {
            "type": "integer",
            "title": "Warnings Found",
            "default": 0
          },
          "execution_time": {
            "type": "number",
            "title": "Execution Time",
            "default": 0.0
          },
          "data_volume": {
            "type": "integer",
            "title": "Data Volume",
            "default": 0
          }
        },
        "type": "object",
        "title": "ProjectMetrics",
        "description": "Project metrics model."
      },
      "ProjectProgress": {
        "properties": {
          "discovery": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Discovery",
            "default": 0.0
          },
          "analysis": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Analysis",
            "default": 0.0
          },
          "mapping": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Mapping",
            "default": 0.0
          },
          "validation": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Validation",
            "default": 0.0
          },
          "execution": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Execution",
            "default": 0.0
          }
        },
        "type": "object",
        "title": "ProjectProgress",
        "description": "Project progress model."
      },
      "PushedSchema": {
        "properties": {
          "database": {
            "type": "string",
            "title": "Database",
            "default": "default"
          },
          "tables": {
            "items": {
              "$ref": "#/components/schemas/SchemaTable"
            },
            "type": "array",
            "title": "Tables"
          }
        },
        "type": "object",
        "title": "PushedSchema",
        "description": "Schema payload pushed by a discovery agent (mirrors introspector output)."
      },
      "QueryRequest": {
        "properties": {
          "query": {
            "type": "string",
            "title": "Query"
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider",
            "description": "Preferred LLM provider name for generation"
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model",
            "description": "Specific model id to use for generation"
          },
          "limit": {
            "type": "integer",
            "maximum": 50.0,
            "minimum": 1.0,
            "title": "Limit",
            "description": "Max context chunks to retrieve",
            "default": 5
          },
          "min_similarity": {
            "type": "number",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Min Similarity",
            "default": 0.7
          }
        },
        "type": "object",
        "required": [
          "query"
        ],
        "title": "QueryRequest"
      },
      "RecommendationOut": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "integration_id": {
            "type": "string",
            "title": "Integration Id"
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider"
          },
          "category": {
            "type": "string",
            "title": "Category"
          },
          "recommendation_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recommendation Type"
          },
          "entity": {
            "type": "string",
            "title": "Entity"
          },
          "entity_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Entity Type"
          },
          "severity": {
            "type": "string",
            "title": "Severity"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "suggested_action": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Suggested Action"
          },
          "confidence": {
            "type": "number",
            "title": "Confidence"
          },
          "source": {
            "type": "string",
            "title": "Source"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "detected_at": {
            "type": "string",
            "title": "Detected At"
          },
          "evidence": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evidence"
          },
          "impact": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Impact"
          }
        },
        "type": "object",
        "required": [
          "id",
          "integration_id",
          "category",
          "entity",
          "entity_type",
          "severity",
          "title",
          "description",
          "suggested_action",
          "confidence",
          "source",
          "status",
          "detected_at"
        ],
        "title": "RecommendationOut"
      },
      "RefreshTokenRequest": {
        "properties": {
          "refresh_token": {
            "type": "string",
            "title": "Refresh Token"
          }
        },
        "type": "object",
        "required": [
          "refresh_token"
        ],
        "title": "RefreshTokenRequest",
        "description": "Refresh token request model."
      },
      "RemappingSuggestionResponse": {
        "properties": {
          "suggestion_id": {
            "type": "string",
            "title": "Suggestion Id"
          },
          "source_field": {
            "type": "string",
            "title": "Source Field"
          },
          "suggested_target_field": {
            "type": "string",
            "title": "Suggested Target Field"
          },
          "confidence": {
            "type": "number",
            "title": "Confidence"
          },
          "strategy": {
            "type": "string",
            "title": "Strategy"
          },
          "reasoning": {
            "type": "string",
            "title": "Reasoning"
          },
          "business_intent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Business Intent"
          },
          "alternative_suggestions": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Alternative Suggestions"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "suggestion_id",
          "source_field",
          "suggested_target_field",
          "confidence",
          "strategy",
          "reasoning",
          "created_at"
        ],
        "title": "RemappingSuggestionResponse",
        "description": "Response for re-mapping suggestion."
      },
      "ResolveDuplicatesRequest": {
        "properties": {
          "group_id": {
            "type": "string",
            "title": "Group Id",
            "description": "Duplicate group ID"
          },
          "primary_record_id": {
            "type": "string",
            "title": "Primary Record Id",
            "description": "ID of record to keep as primary"
          },
          "action": {
            "type": "string",
            "title": "Action",
            "description": "Resolution action: merged, kept_separate, deleted, ignored"
          },
          "merged_record_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Merged Record Ids",
            "description": "Records to merge"
          },
          "deleted_record_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deleted Record Ids",
            "description": "Records to delete"
          },
          "resolved_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolved By",
            "description": "User who resolved"
          },
          "notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Notes",
            "description": "Optional notes"
          }
        },
        "type": "object",
        "required": [
          "group_id",
          "primary_record_id",
          "action"
        ],
        "title": "ResolveDuplicatesRequest",
        "description": "Request for resolving duplicates."
      },
      "ResolveIncidentRequest": {
        "properties": {
          "resolution": {
            "type": "string",
            "minLength": 1,
            "title": "Resolution"
          }
        },
        "type": "object",
        "required": [
          "resolution"
        ],
        "title": "ResolveIncidentRequest"
      },
      "SchemaColumn": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "type": {
            "type": "string",
            "title": "Type",
            "default": "UNKNOWN"
          },
          "nullable": {
            "type": "boolean",
            "title": "Nullable",
            "default": true
          },
          "pii": {
            "type": "boolean",
            "title": "Pii",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "SchemaColumn"
      },
      "SchemaTable": {
        "properties": {
          "table": {
            "type": "string",
            "title": "Table"
          },
          "db_schema": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Db Schema"
          },
          "row_count": {
            "type": "integer",
            "title": "Row Count",
            "default": -1
          },
          "columns": {
            "items": {
              "$ref": "#/components/schemas/SchemaColumn"
            },
            "type": "array",
            "title": "Columns"
          }
        },
        "type": "object",
        "required": [
          "table"
        ],
        "title": "SchemaTable"
      },
      "SemanticMatchResponse": {
        "properties": {
          "match_found": {
            "type": "boolean",
            "title": "Match Found"
          },
          "mapping": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mapping"
          },
          "confidence": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Confidence"
          },
          "reasoning": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reasoning"
          }
        },
        "type": "object",
        "required": [
          "match_found"
        ],
        "title": "SemanticMatchResponse",
        "description": "Response for semantic match."
      },
      "SlaPolicyRequest": {
        "properties": {
          "ack_minutes": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Ack Minutes"
          },
          "resolve_minutes": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Resolve Minutes"
          }
        },
        "type": "object",
        "required": [
          "ack_minutes",
          "resolve_minutes"
        ],
        "title": "SlaPolicyRequest"
      },
      "StateResponse": {
        "properties": {
          "success": {
            "type": "boolean",
            "title": "Success"
          },
          "message": {
            "type": "string",
            "title": "Message"
          },
          "state": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "State"
          }
        },
        "type": "object",
        "required": [
          "success",
          "message"
        ],
        "title": "StateResponse",
        "description": "Response model for state operations."
      },
      "StatusUpdate": {
        "properties": {
          "status": {
            "type": "string",
            "title": "Status"
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "StatusUpdate"
      },
      "SuggestRemappingRequest": {
        "properties": {
          "integration_id": {
            "type": "string",
            "title": "Integration Id",
            "description": "Integration ID"
          },
          "provider": {
            "type": "string",
            "title": "Provider",
            "description": "Provider name"
          },
          "broken_field": {
            "type": "string",
            "title": "Broken Field",
            "description": "Field that was not found"
          },
          "available_fields": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Available Fields",
            "description": "List of available fields in target"
          }
        },
        "type": "object",
        "required": [
          "integration_id",
          "provider",
          "broken_field",
          "available_fields"
        ],
        "title": "SuggestRemappingRequest",
        "description": "Request for re-mapping suggestions."
      },
      "SuggestRequest": {
        "properties": {
          "source_field": {
            "type": "string",
            "title": "Source Field"
          },
          "target_candidates": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Target Candidates"
          }
        },
        "type": "object",
        "required": [
          "source_field",
          "target_candidates"
        ],
        "title": "SuggestRequest"
      },
      "SupportedProvider": {
        "properties": {
          "provider_id": {
            "type": "string",
            "title": "Provider Id"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name"
          },
          "category": {
            "type": "string",
            "title": "Category"
          },
          "tier": {
            "type": "string",
            "title": "Tier"
          },
          "capabilities": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Capabilities"
          },
          "ports": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Ports"
          },
          "driver_module": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Driver Module"
          },
          "driver_installed": {
            "type": "boolean",
            "title": "Driver Installed"
          },
          "reachability": {
            "type": "string",
            "title": "Reachability"
          },
          "estate_cost_note": {
            "$ref": "#/components/schemas/EstateCostNote"
          },
          "conformance_evidence": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Conformance Evidence"
          }
        },
        "type": "object",
        "required": [
          "provider_id",
          "display_name",
          "category",
          "tier",
          "capabilities",
          "ports",
          "driver_installed",
          "reachability",
          "estate_cost_note"
        ],
        "title": "SupportedProvider"
      },
      "SupportedProvidersResponse": {
        "properties": {
          "providers": {
            "items": {
              "$ref": "#/components/schemas/SupportedProvider"
            },
            "type": "array",
            "title": "Providers"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "providers",
          "count"
        ],
        "title": "SupportedProvidersResponse"
      },
      "SyncRequest": {
        "properties": {
          "include_unconfigured": {
            "type": "boolean",
            "title": "Include Unconfigured",
            "default": true
          },
          "default_credentials": {
            "anyOf": [
              {
                "additionalProperties": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Credentials"
          }
        },
        "type": "object",
        "title": "SyncRequest",
        "description": "Request model for lineage sync."
      },
      "TestConnectionRequest": {
        "properties": {
          "config_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config Id"
          },
          "config_override": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config Override"
          }
        },
        "type": "object",
        "title": "TestConnectionRequest",
        "description": "Request model for testing connection."
      },
      "TestDeliveryRequest": {
        "properties": {
          "message": {
            "type": "string",
            "minLength": 1,
            "title": "Message",
            "default": "mmune notification test"
          },
          "severity": {
            "type": "string",
            "title": "Severity",
            "default": "low"
          }
        },
        "type": "object",
        "title": "TestDeliveryRequest"
      },
      "TicketResultResponse": {
        "properties": {
          "ticket_id": {
            "type": "string",
            "title": "Ticket Id"
          },
          "ticket_url": {
            "type": "string",
            "title": "Ticket Url"
          },
          "provider": {
            "type": "string",
            "enum": [
              "jira",
              "servicenow"
            ],
            "title": "Provider"
          }
        },
        "type": "object",
        "required": [
          "ticket_id",
          "ticket_url",
          "provider"
        ],
        "title": "TicketResultResponse"
      },
      "TicketingConfigRequest": {
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "jira",
              "servicenow"
            ],
            "title": "Provider"
          },
          "base_url": {
            "type": "string",
            "minLength": 1,
            "title": "Base Url"
          },
          "credentials": {
            "additionalProperties": true,
            "type": "object",
            "title": "Credentials"
          },
          "default_project": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Project"
          },
          "default_table": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Table"
          },
          "close_ticket_on_resolve": {
            "type": "boolean",
            "title": "Close Ticket On Resolve",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "provider",
          "base_url"
        ],
        "title": "TicketingConfigRequest"
      },
      "UpdateProjectRequest": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100,
                "minLength": 3
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000,
                "minLength": 10
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProjectConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          }
        },
        "type": "object",
        "title": "UpdateProjectRequest",
        "description": "Update project request model."
      },
      "UserProfileResponse": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "role": {
            "type": "string",
            "title": "Role"
          },
          "permissions": {
            "items": {},
            "type": "array",
            "title": "Permissions"
          },
          "is_active": {
            "type": "boolean",
            "title": "Is Active"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "last_login": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Login"
          }
        },
        "type": "object",
        "required": [
          "id",
          "email",
          "name",
          "role",
          "permissions",
          "is_active"
        ],
        "title": "UserProfileResponse",
        "description": "User profile response model."
      },
      "ValidationAgentConfig": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": true
          },
          "data_quality_checks": {
            "type": "boolean",
            "title": "Data Quality Checks",
            "default": true
          },
          "referential_integrity": {
            "type": "boolean",
            "title": "Referential Integrity",
            "default": true
          },
          "business_rules": {
            "type": "boolean",
            "title": "Business Rules",
            "default": true
          }
        },
        "type": "object",
        "title": "ValidationAgentConfig",
        "description": "Validation agent configuration."
      },
      "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"
      },
      "ValueDriftMuteRequest": {
        "properties": {
          "integration_id": {
            "type": "string",
            "title": "Integration Id"
          },
          "table": {
            "type": "string",
            "title": "Table"
          },
          "column": {
            "type": "string",
            "title": "Column"
          }
        },
        "type": "object",
        "required": [
          "integration_id",
          "table",
          "column"
        ],
        "title": "ValueDriftMuteRequest",
        "description": "Identifies one baselined field: (integration_id, table, column)."
      },
      "VendorMetadata": {
        "properties": {
          "recordId": {
            "type": "string",
            "title": "Recordid"
          },
          "recordType": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recordtype"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "title": "Lastmodified"
          },
          "apiVersion": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Apiversion"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "title": "Retrievedat"
          }
        },
        "type": "object",
        "required": [
          "recordId",
          "lastModified",
          "retrievedAt"
        ],
        "title": "VendorMetadata"
      },
      "VendorSchema": {
        "properties": {
          "vendorId": {
            "type": "string",
            "title": "Vendorid"
          },
          "vendorName": {
            "type": "string",
            "title": "Vendorname"
          },
          "objectType": {
            "type": "string",
            "title": "Objecttype"
          },
          "rawData": {
            "additionalProperties": true,
            "type": "object",
            "title": "Rawdata"
          },
          "fieldMappings": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/FieldMappingMetadata"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fieldmappings"
          },
          "metadata": {
            "$ref": "#/components/schemas/VendorMetadata"
          }
        },
        "type": "object",
        "required": [
          "vendorId",
          "vendorName",
          "objectType",
          "rawData",
          "metadata"
        ],
        "title": "VendorSchema",
        "description": "VendorSchema represents the generic structure for data from external vendors."
      },
      "WatchdogStatusResponse": {
        "properties": {
          "status": {
            "type": "string",
            "title": "Status"
          },
          "sessions": {
            "type": "integer",
            "title": "Sessions"
          },
          "active_sessions": {
            "type": "integer",
            "title": "Active Sessions"
          },
          "total_checks": {
            "type": "integer",
            "title": "Total Checks"
          },
          "total_drifts": {
            "type": "integer",
            "title": "Total Drifts"
          },
          "priority_integrations": {
            "type": "integer",
            "title": "Priority Integrations"
          },
          "circuit_breakers_open": {
            "type": "integer",
            "title": "Circuit Breakers Open"
          }
        },
        "type": "object",
        "required": [
          "status",
          "sessions",
          "active_sessions",
          "total_checks",
          "total_drifts",
          "priority_integrations",
          "circuit_breakers_open"
        ],
        "title": "WatchdogStatusResponse",
        "description": "Response for watchdog status."
      },
      "WorkflowResponse": {
        "properties": {
          "success": {
            "type": "boolean",
            "title": "Success"
          },
          "message": {
            "type": "string",
            "title": "Message"
          },
          "workflow_id": {
            "type": "string",
            "title": "Workflow Id"
          },
          "workflow": {
            "additionalProperties": true,
            "type": "object",
            "title": "Workflow"
          }
        },
        "type": "object",
        "required": [
          "success",
          "message"
        ],
        "title": "WorkflowResponse",
        "description": "Workflow response."
      },
      "api__v1__discovery__ScanRequest": {
        "properties": {
          "target": {
            "type": "string",
            "title": "Target",
            "default": ""
          },
          "ports": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Ports",
            "default": []
          }
        },
        "type": "object",
        "title": "ScanRequest"
      },
      "api__v1__recommendations__ScanRequest": {
        "properties": {
          "integration_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Integration Id"
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider"
          },
          "analyzer_types": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Analyzer Types",
            "description": "Filter analyzers by recommendation_type and/or analyzer_id (e.g. dead_flow, performance, sap_topology)."
          }
        },
        "type": "object",
        "title": "ScanRequest"
      },
      "api__v1__workflows__CreateWorkflowRequest": {
        "properties": {
          "workflow_id": {
            "type": "string",
            "title": "Workflow Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "tasks": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Tasks"
          },
          "initial_data": {
            "additionalProperties": true,
            "type": "object",
            "title": "Initial Data",
            "default": {}
          },
          "version": {
            "type": "string",
            "title": "Version",
            "default": "1.0"
          }
        },
        "type": "object",
        "required": [
          "workflow_id",
          "name",
          "description",
          "tasks"
        ],
        "title": "CreateWorkflowRequest",
        "description": "Request model for creating a workflow."
      },
      "api__workflow_templates_router__CreateWorkflowRequest": {
        "properties": {
          "template_id": {
            "type": "string",
            "title": "Template Id"
          },
          "project_name": {
            "type": "string",
            "title": "Project Name"
          },
          "source_db": {
            "type": "string",
            "title": "Source Db"
          },
          "target_db": {
            "type": "string",
            "title": "Target Db"
          },
          "parameters": {
            "additionalProperties": true,
            "type": "object",
            "title": "Parameters",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "template_id",
          "project_name",
          "source_db"
        ],
        "title": "CreateWorkflowRequest",
        "description": "Request to create workflow from template."
      }
    }
  }
}
