{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "AgentReserved",
  "type": "object",
  "required": ["event", "call_id", "escalation_id", "agent_id", "created_at"],
  "properties": {
    "event": { "const": "AgentReserved" },
    "call_id": { "type": "string" },
    "escalation_id": { "type": "string" },
    "agent_id": { "type": "string" },
    "tenant_id": { "type": ["string", "null"] },
    "from_level": { "type": "string" },
    "to_level": { "type": "string" },
    "reason_code": { "type": "string" },
    "attempt_count": { "type": "integer" },
    "created_at": { "type": "string", "format": "date-time" }
  }
}
