{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/githunt-ai/json-schema/githunt-ai-profile-analyze-response-schema.json",
  "title": "ProfileAnalyzeResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/githunt-ai-openapi.yaml#/components/schemas/ProfileAnalyzeResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "const": true
    },
    "data": {
      "type": "object",
      "description": "Deep analysis payload. Top-level keys: profile (basic profile facts), emails ({emails: [{address, sources, commitCount, isPrimary}]}), commitQuality, repositories, activity, roleMatch (ranked array of role fits with score breakdowns), proficiency ({level, score, experienceYears}), scores (best-role score with detailed breakdown), badges, summary. Sub-shapes may gain fields over time (additive only).\n",
      "additionalProperties": true,
      "properties": {
        "proficiency": {
          "type": "object",
          "properties": {
            "level": {
              "type": "string"
            },
            "score": {
              "type": "number"
            },
            "experienceYears": {
              "type": "number"
            }
          }
        },
        "emails": {
          "type": "object",
          "properties": {
            "emails": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "address": {
                    "type": "string"
                  },
                  "sources": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "isPrimary": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "roleMatch": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "role": {
                "type": "string"
              },
              "displayName": {
                "type": "string"
              },
              "score": {
                "type": "number"
              }
            }
          }
        }
      }
    }
  }
}