{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/athenahq-ai/json-schema/athenahq-ai-brand-fact-schema.json",
  "title": "BrandFact",
  "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/BrandFact",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "text": {
      "type": "string",
      "description": "The fact statement."
    },
    "status": {
      "type": "string",
      "enum": [
        "approved",
        "pending",
        "rejected"
      ],
      "description": "Review status of the fact."
    },
    "confidence": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "high",
        "medium",
        "low",
        null
      ],
      "description": "Confidence level assigned during ingestion, or null when unrated."
    },
    "source_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "URL the fact was extracted from, stored without protocol."
    },
    "source_quote": {
      "type": [
        "string",
        "null"
      ],
      "description": "Verbatim quote from the source backing the fact."
    },
    "source_type": {
      "type": "string",
      "enum": [
        "research",
        "response",
        "upload",
        "content_hub"
      ],
      "description": "How the fact entered the Knowledge Base."
    },
    "pillar": {
      "$ref": "#/$defs/BrandFactPillar"
    },
    "created_at": {
      "type": "string",
      "description": "ISO 8601 timestamp of when the fact was added."
    }
  },
  "required": [
    "id",
    "text",
    "status",
    "confidence",
    "source_url",
    "source_quote",
    "source_type",
    "pillar",
    "created_at"
  ],
  "$defs": {
    "BrandFactPillar": {
      "type": [
        "object",
        "null"
      ],
      "description": "The published pillar the fact is filed under, or null when the fact is unfiled.",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ]
    }
  }
}