{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mingles-ai/json-schema/mingles-ai-escalation-request-schema.json",
  "title": "EscalationRequest",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/router-mingles-ai-openapi.yml#/components/schemas/EscalationRequest",
  "properties": {
    "session_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Session Id"
    },
    "type": {
      "type": "string",
      "title": "Type",
      "default": "support_escalation"
    },
    "severity": {
      "type": "string",
      "title": "Severity",
      "default": "high"
    },
    "reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reason"
    },
    "summary": {
      "type": "string",
      "title": "Summary"
    },
    "recommended_action": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Recommended Action"
    },
    "user_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "User Id"
    },
    "needs_reply": {
      "type": "boolean",
      "title": "Needs Reply",
      "default": true
    },
    "confidence": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Confidence"
    },
    "source": {
      "type": "string",
      "title": "Source",
      "default": "website_chat"
    }
  },
  "type": "object",
  "required": [
    "summary"
  ]
}