{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sourceacts-com/json-schema/sourceacts-com-watch-record-schema.json",
  "title": "WatchRecord",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sourceacts-com-openapi.json#/components/schemas/WatchRecord",
  "properties": {
    "watch_id": {
      "type": "string",
      "title": "Watch Id"
    },
    "name": {
      "type": "string",
      "title": "Name",
      "default": ""
    },
    "source": {
      "type": "string",
      "title": "Source"
    },
    "query": {
      "type": "string",
      "title": "Query",
      "default": ""
    },
    "document_type": {
      "type": "string",
      "title": "Document Type"
    },
    "days": {
      "type": "integer",
      "title": "Days"
    },
    "webhook_url": {
      "type": "string",
      "title": "Webhook Url"
    },
    "enabled": {
      "type": "boolean",
      "title": "Enabled"
    },
    "last_run_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Run At"
    },
    "last_status": {
      "type": "string",
      "title": "Last Status",
      "default": "seed"
    },
    "last_error": {
      "type": "string",
      "title": "Last Error",
      "default": ""
    },
    "last_hit_count": {
      "type": "integer",
      "title": "Last Hit Count",
      "default": 0
    },
    "signing_secret": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Signing Secret"
    }
  },
  "type": "object",
  "required": [
    "watch_id",
    "source",
    "document_type",
    "days",
    "webhook_url",
    "enabled"
  ]
}