{
  "type": "object",
  "properties": {
    "secret": {
      "type": "string",
      "minLength": 16,
      "maxLength": 200,
      "description": "Your private secret (16+ chars), the same kind memory_set uses. It owns your watches: list and delete them with it."
    },
    "kind": {
      "type": "string",
      "enum": [
        "url_status",
        "page_text",
        "crypto_price",
        "domain_expiry"
      ],
      "description": "What to watch."
    },
    "target": {
      "type": "string",
      "minLength": 2,
      "maxLength": 500,
      "description": "url_status and page_text: an https URL. domain_expiry: a domain. crypto_price: a coin symbol or CoinGecko id, e.g. BTC."
    },
    "above": {
      "description": "crypto_price: alert when the price rises to this USD value.",
      "type": "number",
      "exclusiveMinimum": 0
    },
    "below": {
      "description": "crypto_price: alert when the price falls to this USD value.",
      "type": "number",
      "exclusiveMinimum": 0
    },
    "contains": {
      "description": "page_text: alert when this phrase appears or disappears, instead of on any change.",
      "type": "string",
      "minLength": 2,
      "maxLength": 200
    },
    "days": {
      "description": "domain_expiry: alert this many days before expiry (default 30).",
      "type": "integer",
      "minimum": 1,
      "maximum": 365
    },
    "webhook": {
      "description": "https URL we POST each event to, signed in the x-aipaygen-signature header.",
      "type": "string",
      "maxLength": 500
    }
  },
  "required": [
    "secret",
    "kind",
    "target"
  ],
  "additionalProperties": false
}