{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/knoxcall/json-schema/knoxcall-oauth-client-detail-schema.json",
  "title": "OAuthClientDetail",
  "description": "Full OAuth client detail.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/knoxcall-oauth-clients-api-openapi.yml#/components/schemas/OAuthClientDetail",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "client_id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "confidential",
        "public"
      ]
    },
    "grant_types": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "allowed_scopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "redirect_uris": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "require_dpop": {
      "type": "boolean"
    },
    "require_pkce": {
      "type": "boolean"
    },
    "token_format": {
      "type": "string",
      "enum": [
        "opaque"
      ],
      "description": "Always `opaque`; see OAuthClient."
    },
    "step_up_scopes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Scopes that require step-up authentication."
    },
    "active": {
      "type": "boolean"
    },
    "revoked_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "last_used_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "source_api_key_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    }
  }
}