{
  "$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": {
      "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
    }
  },
  "additionalProperties": false
}
