{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/remote-com/json-schema/remote-com-work-authorization-request-envelope-schema.json",
  "title": "WorkAuthorizationRequestEnvelope",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/remote-com-work-authorization-api-openapi.yml#/components/schemas/WorkAuthorizationRequestEnvelope",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "work_authorization_request": {
          "$ref": "#/$defs/WorkAuthorizationRequest"
        }
      }
    }
  },
  "$defs": {
    "WorkAuthorizationRequest": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "employment_id": {
          "type": "string",
          "format": "uuid"
        },
        "country_code": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "requested",
            "approved_by_manager",
            "approved_by_remote",
            "declined_by_manager",
            "declined_by_remote",
            "cancelled"
          ]
        },
        "visa_type": {
          "type": "string"
        },
        "target_start_date": {
          "type": "string",
          "format": "date"
        }
      }
    }
  }
}