{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "message": {
      "type": "object",
      "properties": {
        "id": {
          "type": ["string", "null"]
        },
        "draft_id": {
          "type": ["string", "null"]
        },
        "status": {
          "type": ["string", "null"]
        },
        "block_reason": {
          "type": ["string", "null"]
        },
        "due_at": {
          "type": ["string", "null"]
        },
        "sent_at": {
          "type": ["string", "null"]
        },
        "step": {
          "type": ["number", "null"]
        },
        "draft_revision": {
          "type": ["number", "null"]
        },
        "requires_admin_approval": {
          "type": ["boolean", "null"]
        },
        "delivery_failure": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "failedAt": {
                  "type": ["string", "null"]
                },
                "reason": {
                  "type": ["string", "null"]
                }
              },
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "draft": {
      "type": "object",
      "properties": {
        "draft_id": {
          "type": ["string", "null"]
        },
        "id": {
          "type": ["string", "null"]
        },
        "subject": {
          "type": ["string", "null"]
        },
        "body": {
          "type": ["string", "null"]
        },
        "to": {
          "type": ["string", "null"]
        },
        "cc": {
          "type": ["string", "null"]
        },
        "bcc": {
          "type": ["string", "null"]
        },
        "recipient_email": {
          "type": ["string", "null"]
        },
        "enrollment_id": {
          "type": ["string", "null"]
        },
        "revision": {
          "type": ["number", "null"]
        },
        "step": {
          "type": ["number", "null"]
        },
        "attachment_ids": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "enrollmentId": {
      "type": ["string", "null"]
    },
    "campaignId": {
      "type": ["string", "null"]
    },
    "campaignRevision": {
      "type": ["number", "null"]
    },
    "recipientVerification": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "verdict": {
              "type": ["string", "null"]
            },
            "reason": {
              "type": ["string", "null"]
            },
            "checkedAt": {
              "type": ["string", "null"]
            },
            "expiresAt": {
              "type": ["string", "null"]
            },
            "isFresh": {
              "type": ["boolean", "null"]
            },
            "role": {
              "type": ["boolean", "null"]
            }
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "deliveryHold": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": ["string", "null"]
            },
            "receivedAt": {
              "type": ["string", "null"]
            }
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "events": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "kind": {
                "type": ["string", "null"]
              },
              "occurred_at": {
                "type": ["string", "null"]
              },
              "delivery_status": {
                "type": ["string", "null"]
              },
              "delivery_category": {
                "type": ["string", "null"]
              },
              "reply_intent": {
                "type": ["string", "null"]
              }
            },
            "additionalProperties": false
          }
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": false
}
