{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/namesniper-pro/json-schema/namesniper-pro-watch-schema.json",
  "title": "Watch",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/namesniper-pro-openapi.yaml#/components/schemas/Watch",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "username": {
      "type": "string"
    },
    "platform": {
      "$ref": "#/$defs/PlatformName"
    },
    "status": {
      "type": "string",
      "description": "Current watch state, e.g. watching or paused."
    },
    "lastStatus": {
      "type": [
        "string",
        "null"
      ],
      "description": "Last observed availability status."
    },
    "lastCheckedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "lastChangedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "checkCount": {
      "type": "integer"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "username",
    "platform",
    "status",
    "createdAt"
  ],
  "$defs": {
    "PlatformName": {
      "type": "string",
      "enum": [
        "youtube",
        "tiktok",
        "instagram",
        "twitter",
        "github",
        "npm",
        "twitch",
        "threads",
        "bluesky",
        "pinterest",
        "snapchat",
        "kick",
        "linktree",
        "roblox",
        "telegram"
      ]
    }
  }
}