{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/firstsales-io/json-schema/firstsales-io-cold-email-analysis-result-schema.json",
  "title": "ColdEmailAnalysisResult",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/firstsales-io-openapi.json#/components/schemas/ColdEmailAnalysisResult",
  "type": "object",
  "properties": {
    "score": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    },
    "grade": {
      "type": "string",
      "enum": [
        "A",
        "B",
        "C",
        "D",
        "F"
      ]
    },
    "checks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "passed": {
            "type": "boolean"
          },
          "detail": {
            "type": "string"
          },
          "scoreImpact": {
            "type": "number"
          }
        },
        "required": [
          "label",
          "passed",
          "detail",
          "scoreImpact"
        ]
      }
    },
    "strengths": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "weaknesses": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "improvements": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "metrics": {
      "type": "object",
      "properties": {
        "clarity": {
          "type": "number"
        },
        "personalization": {
          "type": "number"
        },
        "valueProp": {
          "type": "number"
        },
        "cta": {
          "type": "number"
        },
        "tone": {
          "type": "number"
        }
      }
    },
    "source": {
      "type": "string",
      "enum": [
        "ai+local",
        "local"
      ]
    }
  },
  "required": [
    "score",
    "grade",
    "checks",
    "strengths",
    "weaknesses",
    "improvements",
    "metrics",
    "source"
  ]
}