{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeshub/json-schema/pipeshub-oauth-revoke-request-schema.json",
  "title": "OAuthRevokeRequest",
  "description": "OAuth 2.0 Token Revocation Request (RFC 7009).\nRevokes an access or refresh token.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeshub-oauth-provider-api-openapi.yml#/components/schemas/OAuthRevokeRequest",
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "description": "The token to revoke"
    },
    "token_type_hint": {
      "type": "string",
      "enum": [
        "access_token",
        "refresh_token"
      ],
      "description": "Hint about token type (optional, improves performance)"
    },
    "client_id": {
      "type": "string",
      "description": "Client ID"
    },
    "client_secret": {
      "type": "string",
      "description": "Client secret"
    }
  },
  "required": [
    "token",
    "client_id"
  ]
}