{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "grantId": {
      "type": "string"
    },
    "tokenType": {
      "type": "string"
    },
    "tokenHint": {
      "type": "string"
    },
    "scopes": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ExternalScope"
      }
    },
    "resourceScope": {
      "type": "string",
      "enum": [
        "review",
        "repo",
        "account"
      ]
    },
    "owner": {
      "type": [
        "string",
        "null"
      ]
    },
    "repo": {
      "type": [
        "string",
        "null"
      ]
    },
    "prNumber": {
      "type": [
        "integer",
        "null"
      ]
    },
    "branchRef": {
      "type": [
        "string",
        "null"
      ]
    },
    "draftReviewSessionId": {
      "type": [
        "string",
        "null"
      ]
    },
    "clientName": {
      "type": [
        "string",
        "null"
      ]
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "revokedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "lastUsedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "additionalProperties": true
}