{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/athenahq-ai/json-schema/athenahq-ai-brand-fact-search-result-schema.json",
  "title": "BrandFactSearchResult",
  "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/BrandFactSearchResult",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "text": {
      "type": "string",
      "description": "The fact statement."
    },
    "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."
    },
    "pillar": {
      "$ref": "#/$defs/BrandFactPillar"
    }
  },
  "required": [
    "id",
    "text",
    "confidence",
    "source_url",
    "source_quote",
    "pillar"
  ],
  "$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"
      ]
    }
  }
}