{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "campaign": {
      "type": "object",
      "properties": {
        "id": {
          "type": ["string", "null"]
        },
        "name": {
          "type": ["string", "null"]
        },
        "status": {
          "type": ["string", "null"]
        },
        "mode": {
          "type": ["string", "null"]
        },
        "timezone": {
          "type": ["string", "null"]
        },
        "delivery_provider": {
          "type": ["string", "null"]
        },
        "current_revision": {
          "type": ["number", "null"]
        },
        "daily_limit": {
          "type": ["number", "null"]
        },
        "total_send_limit": {
          "type": ["number", "null"]
        },
        "can_manage": {
          "type": ["boolean", "null"]
        },
        "stats": {
          "type": "object",
          "properties": {
            "leads": {
              "type": ["number", "null"]
            },
            "replied": {
              "type": ["number", "null"]
            },
            "needs_review": {
              "type": ["number", "null"]
            },
            "scheduled": {
              "type": ["number", "null"]
            },
            "sent": {
              "type": ["number", "null"]
            },
            "bounced": {
              "type": ["number", "null"]
            },
            "unsubscribed": {
              "type": ["number", "null"]
            },
            "blocked": {
              "type": ["number", "null"]
            },
            "failed": {
              "type": ["number", "null"]
            },
            "delivered": {
              "type": ["number", "null"]
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "version": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "mode": {
              "type": ["string", "null"]
            },
            "timezone": {
              "type": ["string", "null"]
            },
            "delivery_provider": {
              "type": ["string", "null"]
            },
            "instantly_connection_id": {
              "type": ["string", "null"]
            },
            "icp_id": {
              "type": ["string", "null"]
            },
            "signature_mode": {
              "type": ["string", "null"]
            },
            "revision": {
              "type": ["number", "null"]
            },
            "start_minute": {
              "type": ["number", "null"]
            },
            "end_minute": {
              "type": ["number", "null"]
            },
            "daily_limit": {
              "type": ["number", "null"]
            },
            "cooldown_days": {
              "type": ["number", "null"]
            },
            "total_send_limit": {
              "type": ["number", "null"]
            },
            "weekdays": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "number"
                  }
                },
                {
                  "type": "null"
                }
              ]
            },
            "sender_ids": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ]
            },
            "sequence": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "subject": {
                        "type": ["string", "null"]
                      },
                      "body": {
                        "type": ["string", "null"]
                      },
                      "agentDraftSource": {
                        "type": ["string", "null"]
                      },
                      "agent_draft_source": {
                        "type": ["string", "null"]
                      },
                      "delayHours": {
                        "type": ["number", "null"]
                      },
                      "attachmentIds": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "writingGuide": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": ["string", "null"]
                          },
                          "name": {
                            "type": ["string", "null"]
                          },
                          "subject": {
                            "type": ["string", "null"]
                          },
                          "content": {
                            "type": ["string", "null"]
                          },
                          "mode": {
                            "type": ["string", "null"]
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  }
                },
                {
                  "type": "null"
                }
              ]
            },
            "exclude_previous_outreach": {
              "type": ["boolean", "null"]
            },
            "exclude_customers": {
              "type": ["boolean", "null"]
            },
            "exclude_active_opportunities": {
              "type": ["boolean", "null"]
            },
            "stop_on_reply": {
              "type": ["boolean", "null"]
            },
            "stop_company_on_reply": {
              "type": ["boolean", "null"]
            },
            "include_mailing_address": {
              "type": ["boolean", "null"]
            },
            "open_tracking_enabled": {
              "type": ["boolean", "null"]
            }
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "enrollments": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "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
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "senders": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": ["string", "null"]
              },
              "mailbox_email": {
                "type": ["string", "null"]
              },
              "provider": {
                "type": ["string", "null"]
              },
              "connected": {
                "type": ["boolean", "null"]
              },
              "paused": {
                "type": ["boolean", "null"]
              },
              "daily_limit": {
                "type": ["number", "null"]
              }
            },
            "additionalProperties": false
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "stats": {
      "type": "object",
      "properties": {
        "leads": {
          "type": ["number", "null"]
        },
        "replied": {
          "type": ["number", "null"]
        },
        "needs_review": {
          "type": ["number", "null"]
        },
        "scheduled": {
          "type": ["number", "null"]
        },
        "sent": {
          "type": ["number", "null"]
        },
        "bounced": {
          "type": ["number", "null"]
        },
        "unsubscribed": {
          "type": ["number", "null"]
        },
        "blocked": {
          "type": ["number", "null"]
        },
        "failed": {
          "type": ["number", "null"]
        },
        "delivered": {
          "type": ["number", "null"]
        }
      },
      "additionalProperties": false
    },
    "counts": {
      "type": "object",
      "properties": {
        "active": {
          "type": ["number", "null"]
        },
        "paused": {
          "type": ["number", "null"]
        },
        "replied": {
          "type": ["number", "null"]
        },
        "completed": {
          "type": ["number", "null"]
        },
        "cancelled": {
          "type": ["number", "null"]
        },
        "suppressed": {
          "type": ["number", "null"]
        },
        "failed": {
          "type": ["number", "null"]
        }
      },
      "additionalProperties": false
    },
    "page": {
      "type": "object",
      "properties": {
        "page": {
          "type": ["number", "null"]
        },
        "size": {
          "type": ["number", "null"]
        },
        "total": {
          "type": ["number", "null"]
        },
        "next": {
          "type": ["string", "null"]
        },
        "nextCursor": {
          "type": ["string", "null"]
        },
        "after": {
          "type": ["string", "null"]
        },
        "hasMore": {
          "type": ["boolean", "null"]
        },
        "has_more": {
          "type": ["boolean", "null"]
        }
      },
      "additionalProperties": false
    },
    "manualCopyRequired": {
      "type": ["boolean", "null"]
    }
  },
  "additionalProperties": false
}
