{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oyster-hr/json-schema/oyster-hr-time-off-entitlements-schema.json",
  "title": "timeOffEntitlements",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oyster-hr-time-off-api-openapi.yml#/components/schemas/timeOffEntitlements",
  "type": "array",
  "items": {
    "$ref": "#/$defs/timeOffEntitlement"
  },
  "$defs": {
    "timeOffEngagementDetails": {
      "type": "object",
      "properties": {
        "engagementId": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "pattern": "^[A-Z_]+$"
        },
        "countryCode": {
          "type": "string"
        }
      }
    },
    "timeOffEntitlement": {
      "type": "object",
      "properties": {
        "engagement": {
          "$ref": "#/$defs/timeOffEngagementDetails"
        },
        "annualEntitlement": {
          "type": "number",
          "format": "float"
        },
        "accrued": {
          "type": "number",
          "format": "float"
        },
        "carried": {
          "type": "number",
          "format": "float"
        },
        "adjustedAdhoc": {
          "type": "number",
          "format": "float"
        },
        "taken": {
          "type": "number",
          "format": "float"
        },
        "availableBalance": {
          "type": "number",
          "format": "float"
        },
        "upcoming": {
          "type": "number",
          "format": "float"
        },
        "projectedBalance": {
          "type": "number",
          "format": "float"
        },
        "units": {
          "type": "string",
          "enum": [
            "DAYS"
          ]
        }
      }
    }
  }
}