{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gen-pro/json-schema/gen-pro-watch-source-schema.json",
  "title": "WatchSource",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gen-pro-watchlists-api-openapi.yml#/components/schemas/WatchSource",
  "allOf": [
    {
      "$ref": "#/$defs/WatchSourceInput"
    },
    {
      "type": "object",
      "required": [
        "id",
        "watchlist_id",
        "agent_id",
        "intent_active"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "watchlist_id": {
          "type": "string"
        },
        "agent_id": {
          "type": "string"
        },
        "intent_active": {
          "type": "boolean"
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  ],
  "$defs": {
    "WatchSourceInput": {
      "type": "object",
      "required": [
        "platform",
        "target_type",
        "target_value"
      ],
      "properties": {
        "platform": {
          "type": "string",
          "description": "e.g. \"tiktok\", \"instagram\", \"youtube\""
        },
        "target_type": {
          "type": "string",
          "enum": [
            "account",
            "hashtag",
            "keyword"
          ]
        },
        "target_value": {
          "type": "string",
          "description": "@handle, hashtag name (no #), or keyword text"
        },
        "original_display_value": {
          "type": [
            "string",
            "null"
          ],
          "description": "Optional original display form (e.g. \"#glassskin\" or \"@drunkelephant\")"
        }
      }
    }
  }
}