{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cadencz-com/json-schema/cadencz-com-brain-source-read-schema.json",
  "title": "BrainSourceRead",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cadencz-com-brains-api-openapi.yml#/components/schemas/BrainSourceRead",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "brain_id": {
      "type": "string",
      "title": "Brain Id"
    },
    "kind": {
      "type": "string",
      "title": "Kind"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "detail": {
      "type": "string",
      "title": "Detail"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "excerpt": {
      "type": "string",
      "title": "Excerpt"
    },
    "content": {
      "type": "string",
      "title": "Content"
    },
    "fact_count": {
      "type": "integer",
      "title": "Fact Count"
    },
    "summary": {
      "type": "string",
      "title": "Summary"
    },
    "summary_status": {
      "type": "string",
      "enum": [
        "ready",
        "fallback",
        "unavailable"
      ],
      "title": "Summary Status"
    },
    "summary_provider": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Summary Provider"
    },
    "summary_model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Summary Model"
    },
    "summary_updated_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Summary Updated At"
    },
    "added_at": {
      "type": "string",
      "format": "date-time",
      "title": "Added At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "brain_id",
    "kind",
    "name",
    "detail",
    "status",
    "excerpt",
    "content",
    "fact_count",
    "summary",
    "summary_status",
    "summary_provider",
    "summary_model",
    "summary_updated_at",
    "added_at"
  ]
}