{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eightfold-ai/json-schema/eightfold-ai-profile-application-schema-schema.json",
  "title": "ProfileApplicationSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eightfold-ai-profile-application-api-openapi.yml#/components/schemas/ProfileApplicationSchema",
  "type": "object",
  "properties": {
    "stage": {
      "type": [
        "string",
        "null"
      ],
      "description": ""
    },
    "lastModifiedTime": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "Last Modified time stamp of candidate application"
    },
    "applicationAnswers": {
      "readOnly": true,
      "description": "application answers of candidate application",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ApplicationQuestionAnswers"
      }
    },
    "refereeEmail": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "referee email for referred candidate application"
    },
    "profileId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "readOnly": true,
      "description": "profile id of candidate application"
    },
    "utm_source": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "utm source for the application"
    },
    "feedback": {
      "readOnly": true,
      "description": "Latest feedback of candidate application",
      "allOf": [
        {
          "$ref": "#/$defs/ProfileFeedback"
        }
      ]
    },
    "groupId": {
      "type": [
        "string",
        "null"
      ],
      "description": ""
    },
    "applicationStatus": {
      "type": [
        "string",
        "null"
      ],
      "description": "application status of candidate application"
    },
    "isInternal": {
      "type": [
        "boolean",
        "null"
      ],
      "readOnly": true,
      "description": "Is application internal one"
    },
    "isReferral": {
      "type": [
        "boolean",
        "null"
      ],
      "readOnly": true,
      "description": "Is application a referral one"
    },
    "customInfo": {
      "type": [
        "object",
        "null"
      ],
      "readOnly": true,
      "description": "custom info for the application"
    },
    "candidateId": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "candidate id of candidate application"
    },
    "visaStatus": {
      "type": [
        "string",
        "null"
      ],
      "description": "visa status of candidate application"
    },
    "comment": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "Comment added during stage advance"
    },
    "positionTitle": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "Position title of candidate application"
    },
    "id": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "object id of the profile application"
    },
    "position": {
      "readOnly": true,
      "description": "",
      "allOf": [
        {
          "$ref": "#/$defs/Position"
        }
      ]
    },
    "applicationTime": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "application time of candidate application"
    },
    "sourceName": {
      "type": [
        "string",
        "null"
      ],
      "description": "source name of candidate application"
    },
    "utm_campaign": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "utm campaign for the application"
    },
    "matchingData": {
      "readOnly": true,
      "description": "",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ApplicationMatchScore"
      }
    },
    "currentStage": {
      "type": [
        "string",
        "null"
      ],
      "description": "Current stage of candidate application"
    },
    "sourceType": {
      "type": [
        "string",
        "null"
      ],
      "description": "source type of candidate application"
    },
    "isInTalentNetwork": {
      "type": [
        "boolean",
        "null"
      ],
      "readOnly": true,
      "description": "Is candidate in talent network"
    },
    "isCareerSite": {
      "type": [
        "boolean",
        "null"
      ],
      "readOnly": true,
      "description": "Is application from career site"
    },
    "actionUser": {
      "readOnly": true,
      "description": "User who advanced the stage",
      "allOf": [
        {
          "$ref": "#/$defs/Person"
        }
      ]
    },
    "atsJobId": {
      "type": [
        "string",
        "null"
      ],
      "description": "name of candidate application"
    },
    "positionId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "Position id of candidate application"
    },
    "applicationId": {
      "type": "string",
      "description": "application id of candidate application"
    }
  },
  "required": [
    "applicationId",
    "applicationStatus",
    "applicationTime",
    "atsJobId",
    "candidateId",
    "groupId",
    "lastModifiedTime",
    "positionId",
    "positionTitle"
  ],
  "$defs": {
    "ATSPositionData": {
      "type": "object",
      "properties": {
        "createdAt": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "creation timestamp in epoch format"
        },
        "locationCountry": {
          "type": [
            "string",
            "null"
          ],
          "description": "Country of the location"
        },
        "coordinators": {
          "description": "all the coordinators related to this position",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Person"
          }
        },
        "businessUnit": {
          "type": [
            "string",
            "null"
          ],
          "description": "business unit"
        },
        "isPrivate": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Indicates if a position is a private posting"
        },
        "workLocationOption": {
          "type": [
            "string",
            "null"
          ],
          "description": "Indicates the option for working location e.g. onsite, remote_global, remote_local, hybrid"
        },
        "atsEntityId": {
          "type": [
            "string",
            "null"
          ],
          "description": "position_id in the ats system"
        },
        "hiringManager": {
          "description": "Hiring Manager",
          "allOf": [
            {
              "$ref": "#/$defs/Person"
            }
          ]
        },
        "internalPostingUrl": {
          "type": [
            "string",
            "null"
          ],
          "description": "internal posting url"
        },
        "evergreen": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "is evergreen"
        },
        "skills": {
          "type": [
            "array",
            "null"
          ],
          "description": "skills",
          "items": {
            "type": "string"
          }
        },
        "company": {
          "type": [
            "string",
            "null"
          ],
          "description": "company"
        },
        "locationCity": {
          "type": [
            "string",
            "null"
          ],
          "description": "City of the location"
        },
        "lastUpdated": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "last modified date time in epoch format"
        },
        "displayJobId": {
          "type": [
            "string",
            "null"
          ],
          "description": "display job id"
        },
        "openings": {
          "description": "Openings",
          "allOf": [
            {
              "$ref": "#/$defs/AtsOpenings"
            }
          ]
        },
        "hiringTeam": {
          "readOnly": true,
          "description": "Unified hiring team array. Each entry: {role, roleKey, name, email}. Includes primary/secondary HMs, primary/secondary recruiters, and custom roles.",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/HiringTeamMember"
          }
        },
        "followers": {
          "description": "all the followers of the positions as hiring managers etc.",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Person"
          }
        },
        "startDate": {
          "type": [
            "string",
            "null"
          ],
          "description": "start date of the position in ISO 8601 format (e.g. 2024-05-01)"
        },
        "requisitionType": {
          "type": [
            "string",
            "null"
          ],
          "description": "Requisition Type"
        },
        "systemId": {
          "type": [
            "string",
            "null"
          ],
          "description": "system id"
        },
        "activities": {
          "description": "all the activities related to this positions",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/PositionActivities"
          }
        },
        "postedFor": {
          "type": [
            "string",
            "null"
          ],
          "description": "internal for internal jobs, external for external jobs, or all for both. Can be omitted for unposted positions.Input values must be one of these: internal, external, all, None"
        },
        "questionnaires": {
          "description": "questionnaires",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Questionnaire"
          }
        },
        "restrictAccess": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "restrict access"
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "job title"
        },
        "templateId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Template id of the template used to create the position"
        },
        "recruiter": {
          "description": "recruiter",
          "allOf": [
            {
              "$ref": "#/$defs/Person"
            }
          ]
        },
        "jobPosts": {
          "description": "job postings",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/JobPost"
          }
        },
        "hiringBand": {
          "type": [
            "string",
            "null"
          ],
          "description": "hiring band"
        },
        "postingTitle": {
          "type": [
            "string",
            "null"
          ],
          "description": "posting title"
        },
        "employmentType": {
          "type": [
            "string",
            "null"
          ],
          "description": "Employment Type"
        },
        "posted": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "status of the position posted or not"
        },
        "locationFlexibility": {
          "type": [
            "string",
            "null"
          ],
          "description": "Indicates the flexibility on location e.g. not_flexible, flexible_within_country, flexible_global"
        },
        "orgUnits": {
          "type": [
            "object",
            "null"
          ],
          "description": "Org units of the position"
        },
        "companyDescription": {
          "type": [
            "string",
            "null"
          ],
          "description": "Company description"
        },
        "customFields": {
          "type": [
            "object",
            "null"
          ],
          "description": "custom fields"
        },
        "sourcers": {
          "description": "all the recruiters/sourcers related to this positions",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Person"
          }
        },
        "workflowTemplateId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Indicates which workflow this position belongs to"
        },
        "status": {
          "type": [
            "string",
            "null"
          ],
          "description": "status"
        },
        "jobCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "ATS attribute which identifies the job this jobrequestion is mapped to"
        },
        "open": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Whether the requisition is open for hiring per the source ATS - derived from its status or open headcount at ingestion, and updated on close/fill/reopen. Distinct from the top-level open field, which only reports that the record is not archived or deleted."
        },
        "postingUrl": {
          "type": [
            "string",
            "null"
          ],
          "description": "posting url"
        },
        "atsUserGroups": {
          "description": "ATS user groups",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/AtsUserGroups"
          }
        },
        "createdBy": {
          "type": [
            "string",
            "null"
          ],
          "description": "Email of the user who created this position"
        },
        "function": {
          "type": [
            "string",
            "null"
          ],
          "description": "job function"
        },
        "jobStages": {
          "type": [
            "array",
            "null"
          ],
          "description": "job_stages",
          "items": {
            "type": "string"
          }
        },
        "requiredSkills": {
          "type": [
            "array",
            "null"
          ],
          "description": "required skills",
          "items": {
            "type": "string"
          }
        },
        "questions": {
          "description": "questions",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Questions"
          }
        },
        "locationState": {
          "type": [
            "string",
            "null"
          ],
          "description": "State of the location"
        },
        "locations": {
          "type": [
            "array",
            "null"
          ],
          "description": "location",
          "items": {
            "type": "string"
          }
        },
        "positionId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "EF Position ID"
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "job description"
        }
      },
      "required": [
        "atsEntityId",
        "company",
        "createdAt",
        "lastUpdated",
        "open",
        "posted",
        "recruiter",
        "status",
        "title"
      ]
    },
    "ApplicationMatchScore": {
      "type": "object",
      "properties": {
        "topMatches": {
          "type": [
            "array",
            "null"
          ],
          "description": "The top few items driving this score (e.g. the matched skills or title terms), up to 3",
          "items": {
            "type": "string"
          }
        },
        "indeterminable": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "1 when there wasn't enough data to compute this score (score will be -1), otherwise 0"
        },
        "score": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Match strength for this aspect on a 0-5 scale (higher is a better match); -1 when it could not be determined"
        },
        "relevantScoreTypeVal": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "A supporting count eg: matching skills (skill) or relevant years of experience (experience). Null when not applicable"
        },
        "scoreRaw": {
          "type": [
            "number",
            "null"
          ],
          "format": "float",
          "description": "The underlying un-rounded score behind the 0-5 rating (e.g. raw overall stars); may be null when not applicable"
        },
        "scoreType": {
          "type": [
            "string",
            "null"
          ],
          "description": "Which aspect of the match this score describes eg- overall fit, skill, title, or experience"
        }
      }
    },
    "ApplicationQuestionAnswers": {
      "type": "object",
      "properties": {
        "answer": {
          "type": [
            "string",
            "null"
          ],
          "description": "Answer of candidate Application question answers"
        },
        "questionId": {
          "type": [
            "string",
            "null"
          ],
          "description": "question ID of candidate Application question answers"
        },
        "displayOrder": {
          "type": [
            "string",
            "null"
          ],
          "writeOnly": true,
          "description": "Display order of the question on the ATS questionnaire; required by Workday to match the answer"
        },
        "question": {
          "type": [
            "string",
            "null"
          ],
          "description": "question of candidate Application question answers"
        }
      },
      "required": [
        "question",
        "questionId"
      ]
    },
    "AtsOpeningDetail": {
      "type": "object",
      "properties": {
        "status": {
          "type": [
            "string",
            "null"
          ],
          "description": "Status of the opening"
        },
        "closedAt": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Closing timestamp in epoch format"
        },
        "openingId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Opening ID"
        },
        "openedAt": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Opening timestamp in epoch format"
        },
        "closeReason": {
          "type": [
            "string",
            "null"
          ],
          "description": "Reason for closing the opening"
        },
        "candidateId": {
          "type": [
            "string",
            "null"
          ],
          "description": "List of candidate ID"
        },
        "applicationId": {
          "type": [
            "string",
            "null"
          ],
          "description": "List of application ID"
        }
      }
    },
    "AtsOpenings": {
      "type": "object",
      "properties": {
        "closedAt": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Closing timestamp in epoch format"
        },
        "openingDetails": {
          "description": "Details of the openings",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/AtsOpeningDetail"
          }
        },
        "numOpenings": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Number of openings. Set to -1 for unlimited openings"
        },
        "openedAt": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Opening timestamp in epoch format"
        },
        "numOpeningsFilled": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Number of openings filled"
        }
      }
    },
    "AtsUserGroups": {
      "type": "object",
      "properties": {
        "userGroupId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Ats Group of a user"
        }
      }
    },
    "CalibrationData": {
      "type": "object",
      "properties": {
        "flags": {
          "type": [
            "array",
            "null"
          ],
          "description": "flags",
          "items": {
            "type": "string"
          }
        },
        "graduationYear": {
          "type": [
            "string",
            "null"
          ],
          "description": "graduationYear"
        },
        "workCategories": {
          "type": [
            "array",
            "null"
          ],
          "description": "workCategories",
          "items": {
            "type": "string"
          }
        },
        "skills": {
          "type": [
            "array",
            "null"
          ],
          "description": "skills",
          "items": {
            "type": "string"
          }
        },
        "diversity": {
          "type": [
            "array",
            "null"
          ],
          "description": "diversity",
          "items": {
            "type": "string"
          }
        },
        "idealCandidates": {
          "type": [
            "array",
            "null"
          ],
          "description": "ideal_candidates",
          "items": {
            "type": "string"
          }
        },
        "companies": {
          "type": [
            "array",
            "null"
          ],
          "description": "companies",
          "items": {
            "type": "string"
          }
        },
        "titles": {
          "type": [
            "array",
            "null"
          ],
          "description": "titles",
          "items": {
            "type": "string"
          }
        },
        "educationLevel": {
          "type": [
            "array",
            "null"
          ],
          "description": "different education levels",
          "items": {
            "type": "string"
          }
        },
        "relocation": {
          "type": [
            "array",
            "null"
          ],
          "description": "relocation",
          "items": {
            "type": "string"
          }
        },
        "seniorities": {
          "type": [
            "array",
            "null"
          ],
          "description": "seniorities",
          "items": {
            "type": "string"
          }
        },
        "maxExperience": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "maxExperience"
        },
        "schools": {
          "type": [
            "array",
            "null"
          ],
          "description": "schools",
          "items": {
            "type": "string"
          }
        },
        "skillProficiencies": {
          "writeOnly": true,
          "description": "skill proficiencies of the role",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/SkillProficiency"
          }
        },
        "idealCandidateUrls": {
          "type": [
            "array",
            "null"
          ],
          "description": "idealCandidatesUrls",
          "items": {
            "type": "string"
          }
        },
        "minExperience": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "minExperience"
        },
        "notes": {
          "type": [
            "string",
            "null"
          ],
          "description": "notes"
        },
        "locations": {
          "type": [
            "array",
            "null"
          ],
          "description": "locations",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "CalibrationTemplate": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "id of the calibration template"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of the calibration template"
        }
      }
    },
    "ChangeLog": {
      "type": "object",
      "properties": {
        "newValue": {
          "type": [
            "string",
            "null"
          ],
          "description": "new value"
        },
        "fieldName": {
          "type": [
            "string",
            "null"
          ],
          "description": "field name"
        },
        "prevValue": {
          "type": [
            "string",
            "null"
          ],
          "description": "previous value"
        }
      },
      "required": [
        "fieldName",
        "newValue",
        "prevValue"
      ]
    },
    "HiringTeamMember": {
      "type": "object",
      "properties": {
        "role": {
          "type": [
            "string",
            "null"
          ],
          "description": "Role label (e.g. Hiring Manager, HRBP)"
        },
        "email": {
          "type": [
            "string",
            "null"
          ],
          "description": "Email of the team member"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of the team member"
        },
        "roleKey": {
          "type": [
            "string",
            "null"
          ],
          "description": "Storage key for the role (e.g. hiring_manager, secondary_hiring_managers, cust_hrbp)"
        }
      }
    },
    "HomePageBanner": {
      "type": "object",
      "properties": {
        "useImage": {
          "type": [
            "boolean",
            "null"
          ],
          "readOnly": true,
          "description": "boolean value for using image"
        },
        "image": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "image of home page banner"
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "title for home page"
        }
      }
    },
    "JobPost": {
      "type": "object",
      "properties": {
        "publishedTime": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "published time in epoch format"
        },
        "expirationTime": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "expiration time in epoch format"
        },
        "postingTitle": {
          "type": [
            "string",
            "null"
          ],
          "description": "posting title"
        },
        "postingId": {
          "type": [
            "string",
            "null"
          ],
          "description": "posting id"
        },
        "locale": {
          "type": [
            "string",
            "null"
          ],
          "description": "locale of the ats job post"
        },
        "primaryPost": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "is primary post"
        },
        "jobDescription": {
          "type": [
            "string",
            "null"
          ],
          "description": "job description"
        },
        "postedFor": {
          "type": [
            "string",
            "null"
          ],
          "description": "internal for internal jobs, external for external jobs, or all for both."
        }
      },
      "required": [
        "postedFor",
        "postingId",
        "postingTitle",
        "publishedTime"
      ]
    },
    "LangMapping": {
      "type": "object",
      "properties": {
        "locale": {
          "type": [
            "string",
            "null"
          ],
          "description": "locale"
        },
        "label": {
          "type": [
            "string",
            "null"
          ],
          "description": "label"
        }
      }
    },
    "Person": {
      "type": "object",
      "properties": {
        "email": {
          "type": [
            "string",
            "null"
          ],
          "description": "email"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name"
        }
      },
      "required": [
        "name"
      ]
    },
    "PlannedEvent": {
      "type": "object",
      "properties": {
        "createdAt": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Timestamp when this event was created"
        },
        "isCancelled": {
          "type": [
            "boolean",
            "null"
          ],
          "description": ""
        },
        "eventSpeakers": {
          "type": [
            "array",
            "null"
          ],
          "readOnly": true,
          "description": "List of speakers",
          "items": {
            "type": "string"
          }
        },
        "activeRegistrations": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "active registrations"
        },
        "registerButton": {
          "readOnly": true,
          "description": "Registration button information",
          "allOf": [
            {
              "$ref": "#/$defs/RegisterButton"
            }
          ]
        },
        "eventTeamDataJson": {
          "type": [
            "object",
            "null"
          ],
          "readOnly": true,
          "description": "Event team data"
        },
        "eventBucket": {
          "type": [
            "string",
            "null"
          ],
          "description": "Bucket of the event"
        },
        "address": {
          "type": [
            "string",
            "null"
          ],
          "description": "Address of venue"
        },
        "eventCustomFieldsJson": {
          "type": [
            "object",
            "null"
          ],
          "readOnly": true,
          "description": "Event custom fields"
        },
        "eventType": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "institution": {
          "type": [
            "string",
            "null"
          ],
          "description": "Institution related to event"
        },
        "selectedTimezone": {
          "type": [
            "string",
            "null"
          ],
          "description": "Selected time zome"
        },
        "name": {
          "type": "string",
          "description": "Name of the event"
        },
        "homePageBanner": {
          "readOnly": true,
          "description": "Home page banner information",
          "allOf": [
            {
              "$ref": "#/$defs/HomePageBanner"
            }
          ]
        },
        "eventLocationType": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "id": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "id"
        },
        "plannedEventEncId": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Encoded event id"
        },
        "parentId": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Parent id of the event"
        },
        "venue": {
          "type": [
            "string",
            "null"
          ],
          "description": "Venue of the event"
        },
        "endTimestamp": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Ending timestamp of event"
        },
        "isPublished": {
          "type": [
            "boolean",
            "null"
          ],
          "readOnly": true,
          "description": ""
        },
        "eventLandingPage": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Event landing page"
        },
        "status": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": ""
        },
        "createdBy": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "User id which created this event"
        },
        "eventCategory": {
          "type": [
            "string",
            "null"
          ],
          "description": "Category of the event"
        },
        "startTimestamp": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Starting time stamp of event"
        },
        "when": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "When tag of the event"
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Description of event"
        }
      },
      "required": [
        "endTimestamp",
        "name",
        "startTimestamp"
      ]
    },
    "Position": {
      "type": "object",
      "properties": {
        "createdAt": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Creation timestamp in epoch format"
        },
        "jobDescriptionUpdatedAt": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Epoch timestamp (seconds) of the last job description write in Eightfold. Null when the job description has only ever come from the ATS. 0 when Eightfold edit was superseded by an inbound ATS job description change, on tenants where the ATS job description takes precedence."
        },
        "confidential": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "if the position is confidential or not"
        },
        "hiringManager": {
          "readOnly": true,
          "description": "Hiring Manager",
          "allOf": [
            {
              "$ref": "#/$defs/Person"
            }
          ]
        },
        "groupId": {
          "type": [
            "string",
            "null"
          ],
          "description": "group id"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Title of the Position"
        },
        "followers": {
          "type": [
            "array",
            "null"
          ],
          "description": "all the followers of the position",
          "items": {
            "type": "string"
          }
        },
        "jobDescription": {
          "type": [
            "string",
            "null"
          ],
          "description": "Detailed Job Description in a text format"
        },
        "systemId": {
          "type": [
            "string",
            "null"
          ],
          "description": "system id"
        },
        "positionDisplayId": {
          "type": [
            "string",
            "null"
          ],
          "description": "display job id"
        },
        "recruiter": {
          "readOnly": true,
          "description": "Recruiter",
          "allOf": [
            {
              "$ref": "#/$defs/Person"
            }
          ]
        },
        "calibrationConfirmedBy": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "User who confirmed the calibration"
        },
        "open": {
          "type": [
            "boolean",
            "null"
          ],
          "readOnly": true,
          "description": "True while the position record exists (not archived or deleted). Not the recruiting status - use atsData.status for the open/closed hiring lifecycle."
        },
        "createdBy": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "source of the job"
        },
        "calibrationConfirmedAt": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Confirmed timestamp for the calibration"
        },
        "atsData": {
          "readOnly": true,
          "description": "ats data of the job",
          "allOf": [
            {
              "$ref": "#/$defs/ATSPositionData"
            }
          ]
        },
        "calibrationData": {
          "description": "calibration data of the job",
          "allOf": [
            {
              "$ref": "#/$defs/CalibrationData"
            }
          ]
        },
        "role": {
          "readOnly": true,
          "description": "role associated with the position",
          "allOf": [
            {
              "$ref": "#/$defs/Role"
            }
          ]
        },
        "positionId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "job id"
        }
      },
      "required": [
        "name"
      ]
    },
    "PositionActivities": {
      "type": "object",
      "properties": {
        "activityTime": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "activity time in epoch format"
        },
        "activityType": {
          "type": [
            "string",
            "null"
          ],
          "description": "activity type"
        },
        "changeLogs": {
          "description": "all the change logs for the activity",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ChangeLog"
          }
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "message for the activity"
        }
      },
      "required": [
        "activityTime",
        "activityType",
        "message"
      ]
    },
    "ProfileFeedback": {
      "type": "object",
      "properties": {
        "createdAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "readOnly": true,
          "description": "Datetime when this feedback was created"
        },
        "plannedEventId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Planned event id for candidate source"
        },
        "feedbackResponse": {
          "readOnly": true,
          "description": "Received feedback's details",
          "allOf": [
            {
              "$ref": "#/$defs/ProfileFeedbackResponse"
            }
          ]
        },
        "followUpEnabled": {
          "type": [
            "boolean",
            "null"
          ],
          "readOnly": true,
          "description": "Denotes if the feedback follow up is enabled or not"
        },
        "profileId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Profile ID associated with the profile feedback"
        },
        "communityId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Community Id for candidate source"
        },
        "sharedFeedbackMessageId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Message Id for shared feedback"
        },
        "viewFeedbackUrl": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "URL to view feedback"
        },
        "requestedAt": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Timestamp when the feedback was requested"
        },
        "reminderCount": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Number of reminders sent"
        },
        "requester": {
          "readOnly": true,
          "description": "Requester of the ProfileFeedback",
          "allOf": [
            {
              "$ref": "#/$defs/UserLogin"
            }
          ]
        },
        "submittedAt": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Timestamp when the feedback was first submitted"
        },
        "reviewerEmail": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Email of reviewer of the ProfileFeedback"
        },
        "feedbackType": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "type of the feedback"
        },
        "feedbackTemplateId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Feedback template ID"
        },
        "feedbackEncId": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Encoded ID of the ProfileFeedback"
        },
        "requesterEmail": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Email of requester of the ProfileFeedback"
        },
        "archiveFlag": {
          "type": [
            "boolean",
            "null"
          ],
          "readOnly": true,
          "description": "Denotes if the feedback is archived or not"
        },
        "position": {
          "readOnly": true,
          "description": "Position for which feedback was given",
          "allOf": [
            {
              "$ref": "#/$defs/Position"
            }
          ]
        },
        "userCalendarEventId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "User calendar event id"
        },
        "feedbackId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "ID of the ProfileFeedback"
        },
        "feedbackTemplateName": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Feedback template name"
        },
        "reviewer": {
          "readOnly": true,
          "description": "Reviewer of the ProfileFeedback",
          "allOf": [
            {
              "$ref": "#/$defs/UserLogin"
            }
          ]
        },
        "plannedEvent": {
          "readOnly": true,
          "description": "Planned event for candidate source",
          "allOf": [
            {
              "$ref": "#/$defs/PlannedEvent"
            }
          ]
        },
        "matchingData": {
          "readOnly": true,
          "description": "Application matching information",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ApplicationMatchScore"
          }
        },
        "status": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "status of the feedback"
        },
        "feedbackJson": {
          "type": [
            "object",
            "null"
          ],
          "readOnly": true,
          "description": "Feedback JSON"
        },
        "feedbackUrl": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "URL to provide feedback"
        },
        "positionId": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Position ID for which feedback was given"
        }
      }
    },
    "ProfileFeedbackQuestionAnswer": {
      "type": "object",
      "properties": {
        "answer": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Answer"
        },
        "label": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Label"
        },
        "questionId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Question ID"
        },
        "comment": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Comment"
        }
      }
    },
    "ProfileFeedbackResponse": {
      "type": "object",
      "properties": {
        "overallFeedback": {
          "readOnly": true,
          "description": "Overall Feedback (based on first boolean type question)",
          "allOf": [
            {
              "$ref": "#/$defs/ProfileFeedbackQuestionAnswer"
            }
          ]
        },
        "feedback": {
          "readOnly": true,
          "description": "Ordered list of answers in the feedback (one per question on the form). Frontend should drive form rendering off this typed list rather than parsing the raw `feedbackJson` string.",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ProfileFeedbackQuestionAnswer"
          }
        }
      }
    },
    "QuestionChoice": {
      "type": "object",
      "properties": {
        "label": {
          "type": [
            "string",
            "null"
          ],
          "description": "label"
        },
        "value": {
          "type": [
            "string",
            "null"
          ],
          "description": "value"
        }
      }
    },
    "QuestionDependencies": {
      "type": "object",
      "properties": {
        "questionId": {
          "type": [
            "string",
            "null"
          ],
          "description": "question id"
        },
        "questionSource": {
          "type": [
            "string",
            "null"
          ],
          "description": "question source"
        },
        "choiceValue": {
          "type": [
            "string",
            "null"
          ],
          "description": "choice value"
        },
        "dependencyType": {
          "type": [
            "string",
            "null"
          ],
          "description": "dependency type"
        },
        "childQuestionIds": {
          "type": [
            "array",
            "null"
          ],
          "description": "child question ids",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "choiceValue",
        "questionId"
      ]
    },
    "QuestionLabel": {
      "type": "object",
      "properties": {
        "langMappingList": {
          "description": "lang_mapping_list",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/LangMapping"
          }
        },
        "label": {
          "type": [
            "string",
            "null"
          ],
          "description": "label"
        },
        "value": {
          "type": [
            "string",
            "null"
          ],
          "description": "value"
        }
      }
    },
    "Questionnaire": {
      "type": "object",
      "properties": {
        "questionDependencies": {
          "description": "question dependencies",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/QuestionDependencies"
          }
        },
        "questionnaireId": {
          "type": [
            "string",
            "null"
          ],
          "description": "questionnaire id"
        }
      },
      "required": [
        "questionnaireId"
      ]
    },
    "Questions": {
      "type": "object",
      "properties": {
        "choices": {
          "description": "Question choices",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/QuestionChoice"
          }
        },
        "choicesV2": {
          "description": "Question choices V2. It supports language mapping.",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/QuestionLabel"
          }
        },
        "questionId": {
          "type": [
            "string",
            "null"
          ],
          "description": "question_id"
        },
        "help": {
          "type": [
            "string",
            "null"
          ],
          "description": "help"
        },
        "type": {
          "type": [
            "string",
            "null"
          ],
          "description": "type of the question. e.g.-choice, numeric or text"
        },
        "question": {
          "description": "question. It supports language mapping.",
          "allOf": [
            {
              "$ref": "#/$defs/QuestionLabel"
            }
          ]
        },
        "required": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "required"
        }
      },
      "required": [
        "questionId"
      ]
    },
    "RegisterButton": {
      "type": "object",
      "properties": {
        "textColor": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "text color for registration button"
        },
        "backgroundColor": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "background color of registration button"
        },
        "text": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Text of registration button"
        }
      }
    },
    "Role": {
      "type": "object",
      "properties": {
        "templates": {
          "readOnly": true,
          "description": "all calibration templates associated with the role",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/CalibrationTemplate"
          }
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "name of the role"
        }
      }
    },
    "SkillGroupList": {
      "type": "object",
      "properties": {
        "proficiency": {
          "type": [
            "number",
            "null"
          ],
          "format": "float",
          "description": "group proficiency of the skill group"
        },
        "groupName": {
          "type": [
            "string",
            "null"
          ],
          "description": "name of the skill group"
        },
        "level": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "level of the role"
        },
        "skillCategory": {
          "type": [
            "string",
            "null"
          ],
          "description": "skill category of the skill group"
        }
      }
    },
    "SkillProficiency": {
      "type": "object",
      "properties": {
        "proficiency": {
          "type": [
            "number",
            "null"
          ],
          "format": "float",
          "description": "proficiency of the role"
        },
        "skillGroupList": {
          "description": "skill group list of a role",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/SkillGroupList"
          }
        },
        "level": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "level of the role"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "name of the role"
        }
      }
    },
    "UserLogin": {
      "type": "object",
      "properties": {
        "fullName": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Full name of User"
        },
        "redirectEmail": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Redirect Email"
        },
        "domain": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Domain name for User"
        },
        "email": {
          "type": [
            "string",
            "null"
          ],
          "description": "Email of User"
        }
      }
    }
  }
}