{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zaptu-ai/json-schema/zaptu-ai-lead-response-schema.json",
  "title": "LeadResponse",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zaptu-ai-openapi.json#/components/schemas/LeadResponse",
  "properties": {
    "lead_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Lead Id"
    },
    "status": {
      "$ref": "#/$defs/LeadStatus"
    },
    "message": {
      "title": "Message",
      "type": "string"
    },
    "next_steps": {
      "items": {
        "type": "string"
      },
      "title": "Next Steps",
      "type": "array"
    },
    "estimated_payout_hint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Estimated Payout Hint"
    },
    "dry_run": {
      "default": false,
      "title": "Dry Run",
      "type": "boolean"
    }
  },
  "required": [
    "lead_id",
    "status",
    "message",
    "next_steps"
  ],
  "type": "object",
  "$defs": {
    "LeadStatus": {
      "enum": [
        "received",
        "validated",
        "forwarded",
        "collected",
        "call_to_connect",
        "rejected",
        "error"
      ],
      "title": "LeadStatus",
      "type": "string"
    }
  }
}