{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/firstsales-io/json-schema/firstsales-io-personalization-analysis-result-schema.json",
  "title": "PersonalizationAnalysisResult",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/firstsales-io-openapi.json#/components/schemas/PersonalizationAnalysisResult",
  "type": "object",
  "properties": {
    "score": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    },
    "personalization": {
      "type": "object",
      "properties": {
        "recipientName": {
          "type": "boolean"
        },
        "companyMention": {
          "type": "boolean"
        },
        "painPoint": {
          "type": "boolean"
        },
        "socialProof": {
          "type": "boolean"
        },
        "cta": {
          "type": "boolean"
        },
        "valueProp": {
          "type": "boolean"
        }
      }
    },
    "strengths": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "suggestions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "checks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "pass",
              "warn",
              "fail"
            ]
          },
          "detail": {
            "type": "string"
          }
        },
        "required": [
          "label",
          "status",
          "detail"
        ]
      }
    },
    "source": {
      "type": "string",
      "enum": [
        "ai+local",
        "local"
      ]
    }
  },
  "required": [
    "score",
    "personalization",
    "strengths",
    "suggestions",
    "checks",
    "source"
  ]
}