{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "enrolled": {
      "type": ["number", "null"]
    },
    "results": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "draftId": {
                "type": ["string", "null"]
              },
              "enrollmentId": {
                "type": ["string", "null"]
              },
              "status": {
                "type": ["string", "null"]
              },
              "code": {
                "type": ["string", "null"]
              },
              "enrollment": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": ["string", "null"]
                  },
                  "recipient_email": {
                    "type": ["string", "null"]
                  },
                  "person_record_id": {
                    "type": ["string", "null"]
                  },
                  "status": {
                    "type": ["string", "null"]
                  },
                  "verification": {
                    "type": ["string", "null"]
                  },
                  "last_reply_at": {
                    "type": ["string", "null"]
                  },
                  "last_sent_at": {
                    "type": ["string", "null"]
                  },
                  "pause_until": {
                    "type": ["string", "null"]
                  },
                  "campaign_revision": {
                    "type": ["number", "null"]
                  },
                  "person": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "full_name": {
                            "type": ["string", "null"]
                          },
                          "job_title": {
                            "type": ["string", "null"]
                          },
                          "company_name": {
                            "type": ["string", "null"]
                          },
                          "company_domain": {
                            "type": ["string", "null"]
                          },
                          "linkedin_url": {
                            "type": ["string", "null"]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "recipient_verification": {
                    "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"
                      }
                    ]
                  },
                  "messages": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "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
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": false
}
