{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anahana-com/json-schema/anahana-com-client-metadata-schema.json",
  "title": "ClientMetadata",
  "description": "RFC 7591 client metadata.",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anahana-com-openapi.json#/components/schemas/ClientMetadata",
  "type": "object",
  "properties": {
    "client_name": {
      "type": "string"
    },
    "redirect_uris": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "grant_types": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "authorization_code",
          "refresh_token"
        ]
      }
    },
    "response_types": {
      "type": "array",
      "items": {
        "type": "string",
        "const": "code"
      }
    },
    "token_endpoint_auth_method": {
      "type": "string",
      "enum": [
        "client_secret_post",
        "client_secret_basic",
        "none"
      ],
      "description": "`none` for public clients using PKCE only."
    },
    "scope": {
      "type": "string",
      "const": "read:content"
    }
  },
  "required": [
    "client_name",
    "redirect_uris"
  ]
}