{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateNotificationRuleStepRequest",
  "title": "CreateNotificationRuleStepRequest",
  "type": "object",
  "required": [
    "contact"
  ],
  "properties": {
    "contact": {
      "type": "object",
      "required": [
        "method",
        "to"
      ],
      "properties": {
        "method": {
          "type": "string",
          "enum": [
            "email",
            "sms",
            "voice",
            "mobile"
          ],
          "description": "Notification delivery method."
        },
        "to": {
          "type": "string",
          "description": "Contact address."
        }
      },
      "description": "Contact for the notification step."
    },
    "sendAfter": {
      "type": "object",
      "properties": {
        "timeAmount": {
          "type": "integer",
          "description": "Time to wait."
        },
        "timeUnit": {
          "type": "string",
          "enum": [
            "minutes",
            "hours",
            "days"
          ],
          "description": "Time unit."
        }
      },
      "description": "Delay before sending."
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the step is enabled."
    }
  }
}