{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentdrives-com/json-schema/agentdrives-com-support-answer-schema.json",
  "title": "SupportAnswer",
  "description": "An answer from our support agent: quoted from our published pages (answered), or a case we answer in writing. answered only when one page covers the question clearly and is about what it asks (a product the question names is the page's subject too); a question whose words fit many pages opens a case, and so does one about the directory's data",
  "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/SupportAnswer",
  "type": "object",
  "properties": {
    "directory": {
      "type": "string",
      "description": "A question about the directory's data (which products reach a level, in a category): the calls that answer it now, beside the case"
    },
    "answered": {
      "type": "boolean"
    },
    "answer": {
      "type": "string"
    },
    "match": {
      "type": "number",
      "minimum": 0,
      "maximum": 1,
      "description": "answered: how much of the question the quoted page covers"
    },
    "source": {
      "type": "object",
      "description": "answered: the quoted page's id and URL",
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      }
    },
    "facts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "case_id": {
      "type": "string"
    },
    "case_token": {
      "type": "string",
      "description": "Without a key: keep it to read the case"
    },
    "account": {
      "type": "object",
      "description": "With a key: your own orders and claims"
    },
    "by": {
      "type": "string",
      "description": "Who answers: AgentDrives support agent"
    }
  },
  "required": [
    "answered",
    "by"
  ]
}