{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sendraven-ai/json-schema/sendraven-ai-topic-preference-schema.json",
  "title": "TopicPreference",
  "description": "A topic with subscribed resolved for one address.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sendraven-ai-topics-api-openapi.yml#/components/schemas/TopicPreference",
  "type": "object",
  "required": [
    "id",
    "key",
    "name",
    "description",
    "default_subscribed",
    "created_at",
    "subscribed"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "key": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "default_subscribed": {
      "type": "boolean"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "subscribed": {
      "type": "boolean",
      "description": "The person's recorded choice where there is one, otherwise the topic's default_subscribed."
    }
  }
}