{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/remote-com/json-schema/remote-com-offboarding-envelope-schema.json",
  "title": "OffboardingEnvelope",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/remote-com-offboarding-api-openapi.yml#/components/schemas/OffboardingEnvelope",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "offboarding": {
          "$ref": "#/$defs/Offboarding"
        }
      }
    }
  },
  "$defs": {
    "Offboarding": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "employment_id": {
          "type": "string",
          "format": "uuid"
        },
        "status": {
          "type": "string",
          "enum": [
            "submitted",
            "review_started",
            "submitted_to_payroll",
            "completed",
            "deleted"
          ]
        },
        "offboarding_type": {
          "type": "string",
          "enum": [
            "resignation",
            "termination",
            "end_of_contract"
          ]
        },
        "last_day_of_work": {
          "type": "string",
          "format": "date"
        },
        "reason_for_offboarding": {
          "type": "string"
        }
      }
    }
  }
}