{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coldrig-dev/json-schema/coldrig-dev-update-lead-input-schema.json",
  "title": "UpdateLeadInput",
  "description": "At least one of interestStatus, notes, or tags must be present — a call with none has nothing to persist.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coldrig-dev-leads-api-openapi.yml#/components/schemas/UpdateLeadInput",
  "type": "object",
  "required": [
    "email"
  ],
  "properties": {
    "email": {
      "type": "string",
      "format": "email"
    },
    "interestStatus": {
      "$ref": "#/$defs/LeadInterestStatus"
    },
    "notes": {
      "type": "string",
      "maxLength": 5000
    },
    "tags": {
      "type": "array",
      "maxItems": 50,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100
      }
    },
    "objection": {
      "type": "string",
      "enum": [
        "has_solution",
        "no_budget",
        "no_need",
        "timing",
        "trust"
      ],
      "description": "Only with interestStatus objection."
    },
    "until": {
      "type": "string",
      "format": "date",
      "description": "Only with interestStatus not_now or out_of_office — the date to follow up or that they return."
    }
  },
  "$defs": {
    "LeadInterestStatus": {
      "type": "string",
      "enum": [
        "none",
        "interested",
        "meeting_booked",
        "not_now",
        "not_interested",
        "bad_fit",
        "out_of_office",
        "wrong_person",
        "referral",
        "question",
        "objection",
        "hostile"
      ],
      "description": "Also labels the contact's latest reply for experiments (reply taxonomy v1): interested, meeting_booked and referral are positive; not_now, question and wrong_person neutral; not_interested, objection, bad_fit and hostile negative; none clears the label. out_of_office reschedules the follow-up past the return date instead of treating silence as disinterest; wrong_person drives a referral ask. do_not_contact is deliberately not a member — that intent routes to POST /leads/suppress instead.\n"
    }
  }
}