{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/opentext-cybersecurity/main/json-schema/opentext-cybersecurity-personal-access-token-model-schema.json",
  "title": "PersonalAccessTokenModel",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opentext-cybersecurity-personal-access-tokens-api-openapi.yml#/components/schemas/PersonalAccessTokenModel",
  "type": "object",
  "properties": {
    "id": {
      "format": "int32",
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "isAuthorized": {
      "type": "boolean"
    },
    "secretExpirationDate": {
      "format": "date-time",
      "type": "string"
    },
    "secretLifetimeDays": {
      "format": "int32",
      "type": "integer"
    },
    "allowedScopes": {
      "type": "string"
    },
    "lastSuccessfulLoginDate": {
      "format": "date-time",
      "type": "string"
    },
    "lastSuccessfulLoginIpAddress": {
      "type": "string"
    },
    "userId": {
      "format": "int32",
      "type": "integer"
    },
    "userName": {
      "type": "string"
    }
  }
}