{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coldleads-app/json-schema/coldleads-app-next-action-schema.json",
  "title": "NextAction",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coldleads-app-openapi.json#/components/schemas/NextAction",
  "type": "object",
  "properties": {
    "contact_id": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "company": {
      "type": "string"
    },
    "stage": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "enum": [
        "reply_waiting",
        "follow_up_due",
        "new_enquiry",
        "gone_quiet",
        "unassigned"
      ]
    },
    "action": {
      "type": "string",
      "enum": [
        "reply",
        "close",
        "follow_up",
        "first_contact",
        "assign"
      ]
    },
    "priority": {
      "type": "string",
      "enum": [
        "high",
        "medium",
        "low"
      ]
    },
    "reason": {
      "type": "string"
    },
    "due_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "owner": {
      "type": [
        "string",
        "null"
      ]
    },
    "deal_value": {
      "type": [
        "number",
        "null"
      ]
    },
    "reply_class": {
      "type": [
        "string",
        "null"
      ]
    },
    "reply_tag": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "meeting",
        "pricing",
        "objection",
        "referral",
        "not_now",
        "question",
        null
      ]
    },
    "note": {
      "type": "string"
    }
  }
}