{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/avetta/json-schema/avetta-3-29-14-logpoint-person-resource-schema.json",
  "title": "3.29.14_LogpointPersonResource",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/avetta-pegasuslogpoint-logpoint-access-controller-api-openapi.yml#/components/schemas/3.29.14_LogpointPersonResource",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "firstName": {
      "type": "string"
    },
    "lastName": {
      "type": "string"
    },
    "companyName": {
      "type": "string"
    },
    "personType": {
      "type": "string",
      "enum": [
        "SITE_CONTACT",
        "PERSONAL_CONTACT",
        "USER",
        "EMPLOYEE",
        "CONTRACTOR",
        "VISITOR",
        "SUPERUSER",
        "UNICORN_USER",
        "INVALID_PERSON",
        "MASTERKEY",
        "CARDHOLDER",
        "PAST_CARDHOLDER",
        "INVISIBLE",
        "IMPOSSIBLE"
      ]
    },
    "phone": {
      "type": "string"
    },
    "gender": {
      "type": "string",
      "enum": [
        "UNSET",
        "F",
        "M",
        "OTHER",
        "PREFER_NOT_TO_SAY"
      ]
    },
    "dob": {
      "type": "string"
    },
    "personStatus": {
      "type": "string",
      "enum": [
        "PENDING",
        "APPROVED",
        "ARCHIVED"
      ]
    },
    "companyId": {
      "type": "integer",
      "format": "int32"
    },
    "lastViewedInductionId": {
      "type": "integer",
      "format": "int32"
    },
    "lastViewedInductionTime": {
      "type": "string"
    },
    "canLogin": {
      "type": "boolean"
    },
    "rejectionReason": {
      "type": "string"
    },
    "forceAlcolizerReading": {
      "type": "boolean"
    },
    "canLoginExpiry": {
      "type": "string"
    },
    "lastSiteLogin": {
      "type": "string"
    },
    "lastSiteLogout": {
      "type": "string"
    },
    "loggedIntoOtherSite": {
      "type": "boolean"
    },
    "legacyId": {
      "type": "string"
    },
    "desfireIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "proxIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "rejectionEventTypeId": {
      "type": "integer",
      "format": "int32"
    },
    "safeteySelectionId": {
      "type": "integer",
      "format": "int32"
    },
    "hasExpiringSiteAccess": {
      "type": "boolean"
    },
    "accessKeyValidationSummaries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/3.29.14_CardholderAccessKeyValidationSummary"
      }
    },
    "firstLastName": {
      "type": "string"
    },
    "lastFirstName": {
      "type": "string"
    }
  },
  "$defs": {
    "3.29.14_CardholderAccessKeyCompetencySummary": {
      "type": "object",
      "properties": {
        "competency": {
          "$ref": "#/$defs/3.29.14_KeyedIntegerEntity"
        },
        "expiryDate": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "EXPIRED",
            "NON_ASSIGNED",
            "PENDING"
          ]
        }
      }
    },
    "3.29.14_CardholderAccessKeyValidationSummary": {
      "type": "object",
      "properties": {
        "accessKey": {
          "$ref": "#/$defs/3.29.14_KeyedIntegerEntity"
        },
        "competencies": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/3.29.14_CardholderAccessKeyCompetencySummary"
          }
        }
      }
    },
    "3.29.14_KeyedIntegerEntity": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": "string"
        }
      }
    }
  }
}