{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eightfold-ai/json-schema/eightfold-ai-succession-plan-successor-schema-schema.json",
  "title": "SuccessionPlanSuccessorSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eightfold-ai-succession-plan-api-openapi.yml#/components/schemas/SuccessionPlanSuccessorSchema",
  "type": "object",
  "properties": {
    "createdAt": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "readOnly": true,
      "description": "Timestamp when the successor was first added to the plan"
    },
    "order": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "Order of the successor within its succession state group"
    },
    "profileId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "Eightfold decoded profile ID (numeric)"
    },
    "employeeId": {
      "type": [
        "string",
        "null"
      ],
      "description": "ATS/HRIS employee ID of the successor"
    },
    "matchScores": {
      "readOnly": true,
      "description": "Match score details",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/EmployeeMatchScoreSchema"
      }
    },
    "updatedAt": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "readOnly": true,
      "description": "Timestamp when the successor data was last updated"
    },
    "state": {
      "type": "string",
      "description": "Succession state of the successor"
    }
  },
  "required": [
    "state"
  ],
  "$defs": {
    "EmployeeMatchScoreSchema": {
      "type": "object",
      "properties": {
        "matchType": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Match score criteria"
        },
        "rawScore": {
          "type": [
            "number",
            "null"
          ],
          "format": "float",
          "readOnly": true,
          "description": "Raw match score in float"
        },
        "topMatches": {
          "type": [
            "array",
            "null"
          ],
          "readOnly": true,
          "description": "Top items matched based on the match type",
          "items": {
            "type": "string"
          }
        },
        "score": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Rounded match score in integer"
        }
      }
    }
  }
}