{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentdrives-com/json-schema/agentdrives-com-support-case-schema.json",
  "title": "SupportCase",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentdrives-com-support-api-openapi.yml#/components/schemas/SupportCase",
  "type": "object",
  "properties": {
    "case_id": {
      "type": "string"
    },
    "class": {
      "type": "string"
    },
    "state": {
      "enum": [
        "open",
        "waiting",
        "answered",
        "closed"
      ]
    },
    "next": {
      "type": "string"
    },
    "redrive": {
      "type": [
        "object",
        "null"
      ],
      "description": "A dispute's confirm re-drive: queued (state, queued_at) or why not"
    },
    "answer": {
      "type": [
        "string",
        "null"
      ],
      "description": "The answer, once a person approved it"
    },
    "answered_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "by": {
      "type": "string"
    }
  }
}