{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeshub/json-schema/pipeshub-oauth-exchange-response-schema.json",
  "title": "OAuthExchangeResponse",
  "description": "OAuth token response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeshub-oauth-api-openapi.yml#/components/schemas/OAuthExchangeResponse",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "access_token": {
      "type": "string",
      "description": "OAuth access token"
    },
    "id_token": {
      "type": "string",
      "description": "OAuth ID token (JWT)"
    },
    "token_type": {
      "type": "string"
    },
    "expires_in": {
      "type": "integer",
      "description": "Token expiry in seconds"
    }
  },
  "required": [
    "access_token",
    "token_type"
  ]
}