{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api-evangelist.github.io/salesloft/json-schema/salesloft-cadence-schema.json",
  "title": "Salesloft Cadence",
  "description": "A Cadence in Salesloft is a structured sequence of touchpoints (calls, emails, tasks) designed to engage prospects.",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Unique identifier for the cadence"
    },
    "name": {
      "type": "string",
      "description": "Name of the cadence"
    },
    "description": {
      "type": "string",
      "description": "Description of the cadence purpose"
    },
    "current_state": {
      "type": "string",
      "description": "Current state of the cadence",
      "enum": ["draft", "active", "archived"]
    },
    "cadence_function": {
      "type": "string",
      "description": "Functional purpose of the cadence (e.g. outbound, inbound, event)"
    },
    "is_team": {
      "type": "boolean",
      "description": "Whether this is a team cadence (shared) vs personal"
    },
    "shared": {
      "type": "boolean",
      "description": "Whether the cadence is shared across the team"
    },
    "owner_id": {
      "type": "integer",
      "description": "ID of the user who owns this cadence"
    },
    "team_cadence": {
      "type": "boolean",
      "description": "Whether this cadence is a team-level cadence"
    },
    "remove_bounced": {
      "type": "boolean",
      "description": "Whether to remove people with bounced emails"
    },
    "opt_out_link_included": {
      "type": "boolean",
      "description": "Whether opt-out links are included in emails"
    },
    "draft": {
      "type": "boolean",
      "description": "Whether this cadence is still in draft state"
    },
    "archived_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when cadence was archived"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the cadence was created"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the cadence was last updated"
    }
  },
  "required": ["id", "name"],
  "additionalProperties": false
}
