{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vibesprings-net/json-schema/vibesprings-net-watch-spec-schema.json",
  "title": "WatchSpec",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vibesprings-net-openapi.json#/components/schemas/WatchSpec",
  "type": "object",
  "required": [
    "kind",
    "target",
    "condition"
  ],
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "price",
        "gas",
        "weather",
        "wallet",
        "endpoint",
        "news"
      ]
    },
    "target": {
      "type": "string",
      "description": "Kind-specific target details"
    },
    "condition": {
      "type": "object",
      "required": [
        "op",
        "field"
      ],
      "properties": {
        "op": {
          "type": "string",
          "enum": [
            "gt",
            "lt",
            "crosses",
            "changes"
          ]
        },
        "field": {
          "type": "string"
        },
        "value": {
          "type": "number"
        }
      }
    },
    "notify": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string",
          "format": "email"
        }
      }
    },
    "authorizedPayers": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}