{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/athenahq-ai/json-schema/athenahq-ai-knowledge-base-pillar-schema.json",
  "title": "KnowledgeBasePillar",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/athenahq-ai-knowledge-base-api-openapi.yml#/components/schemas/KnowledgeBasePillar",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "researching",
        "published",
        "draft"
      ],
      "description": "Pillar lifecycle status. Archived pillars are not returned."
    },
    "fact_count": {
      "type": "integer",
      "description": "Number of approved facts filed under the pillar."
    },
    "has_document": {
      "type": "boolean",
      "description": "Whether a synthesized markdown document exists for the pillar."
    },
    "last_researched_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "ISO 8601 timestamp of the last research/synthesis pass, or null."
    }
  },
  "required": [
    "id",
    "name",
    "description",
    "status",
    "fact_count",
    "has_document",
    "last_researched_at"
  ]
}