{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/avetta/json-schema/avetta-3-29-14-onsite-log-resource-schema.json",
  "title": "3.29.14_OnsiteLogResource",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/avetta-pegasuslogpoint-logpoint-person-controller-api-openapi.yml#/components/schemas/3.29.14_OnsiteLogResource",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "site": {
      "$ref": "#/$defs/3.29.14_KeyedIntegerResource"
    },
    "loginDate": {
      "type": "string"
    },
    "logoutDate": {
      "type": "string"
    },
    "person": {
      "$ref": "#/$defs/3.29.14_PersonResource"
    },
    "inLogpoint": {
      "$ref": "#/$defs/3.29.14_KeyedIntegerResource"
    },
    "inScope": {
      "$ref": "#/$defs/3.29.14_KeyedIntegerResource"
    },
    "lastLogpointMove": {
      "$ref": "#/$defs/3.29.14_LogpointMoveResource"
    },
    "outLogpoint": {
      "$ref": "#/$defs/3.29.14_KeyedIntegerResource"
    },
    "outScope": {
      "$ref": "#/$defs/3.29.14_KeyedIntegerResource"
    },
    "siteContact": {
      "$ref": "#/$defs/3.29.14_KeyedIntegerResource"
    }
  },
  "$defs": {
    "3.29.14_KeyedIntegerResource": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "3.29.14_LogpointMoveResource": {
      "type": "object",
      "properties": {
        "logpoint": {
          "$ref": "#/$defs/3.29.14_KeyedIntegerResource"
        },
        "scope": {
          "$ref": "#/$defs/3.29.14_KeyedIntegerResource"
        },
        "moveDate": {
          "type": "string"
        }
      }
    },
    "3.29.14_NaturalKeyResource": {
      "type": "object",
      "properties": {
        "extSysKey": {
          "type": "string"
        },
        "idKey": {
          "type": "string"
        }
      }
    },
    "3.29.14_PersonResource": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": "string"
        },
        "clientKey": {
          "$ref": "#/$defs/3.29.14_NaturalKeyResource"
        },
        "personType": {
          "type": "string",
          "enum": [
            "SITE_CONTACT",
            "PERSONAL_CONTACT",
            "USER",
            "EMPLOYEE",
            "CONTRACTOR",
            "VISITOR",
            "SUPERUSER",
            "UNICORN_USER",
            "INVALID_PERSON",
            "MASTERKEY",
            "CARDHOLDER",
            "PAST_CARDHOLDER",
            "INVISIBLE",
            "IMPOSSIBLE"
          ]
        },
        "phone1": {
          "type": "string"
        },
        "phone2": {
          "type": "string"
        }
      }
    }
  }
}