{
  "type": "object",
  "properties": {
    "channel": {
      "type": "string",
      "enum": [
        "ntfy",
        "discord",
        "slack",
        "telegram",
        "webhook",
        "app"
      ],
      "description": "app (push to your owner's AIPayGen app; needs an API key), ntfy (phone push), discord, slack, telegram or webhook."
    },
    "target": {
      "description": "ntfy: a topic name only you know (e.g. \"acme-agent-7f3a9c\") or a full https URL to your ntfy server. discord / slack: the channel's incoming-webhook URL. telegram: \"<bot token>|<chat id>\". webhook: any https URL (we POST JSON).",
      "type": "string",
      "minLength": 3,
      "maxLength": 500
    },
    "message": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4000,
      "description": "The message."
    },
    "title": {
      "description": "Short title (bold or as the push title).",
      "type": "string",
      "maxLength": 200
    },
    "url": {
      "description": "A link to open from the notification.",
      "type": "string",
      "maxLength": 500,
      "format": "uri"
    },
    "priority": {
      "description": "ntfy priority (high makes the phone buzz). Default normal.",
      "type": "string",
      "enum": [
        "low",
        "normal",
        "high"
      ]
    }
  },
  "required": [
    "channel",
    "message"
  ],
  "additionalProperties": false
}