{
  "$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-list-response-schema.json",
  "title": "PersonalAccessTokenModelListResponse",
  "description": "Generic List Response",
  "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/PersonalAccessTokenModelListResponse",
  "type": "object",
  "properties": {
    "items": {
      "description": "The list of items",
      "type": "array",
      "items": {
        "$ref": "#/$defs/PersonalAccessTokenModel"
      }
    },
    "totalCount": {
      "format": "int32",
      "description": "Total count of items",
      "type": "integer"
    },
    "offset": {
      "format": "int32",
      "description": "Offset of the starting record. 0 indicates the first record.",
      "type": "integer"
    },
    "limit": {
      "format": "int32",
      "description": "Maximum records to return.",
      "type": "integer"
    }
  },
  "$defs": {
    "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"
        }
      }
    }
  }
}