{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/giljo-ai/json-schema/giljo-ai-oauth-metadata-response-schema.json",
  "title": "OAuthMetadataResponse",
  "description": "OAuth 2.1 authorization server metadata (RFC 8414).\n\nAll endpoint URLs are absolute (per RFC 8414 §2). The optional\n``registration_endpoint`` is advertised only when DCR is available\n(SaaS/demo edition); CE omits the field rather than advertising a\n404 path.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amh-openapi.json#/components/schemas/OAuthMetadataResponse",
  "properties": {
    "issuer": {
      "type": "string",
      "title": "Issuer"
    },
    "authorization_endpoint": {
      "type": "string",
      "title": "Authorization Endpoint"
    },
    "token_endpoint": {
      "type": "string",
      "title": "Token Endpoint"
    },
    "response_types_supported": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Response Types Supported"
    },
    "code_challenge_methods_supported": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Code Challenge Methods Supported"
    },
    "grant_types_supported": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Grant Types Supported"
    },
    "scopes_supported": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Scopes Supported",
      "description": "OAuth scopes this authorization server grants (RFC 8414 §3.2)."
    },
    "token_endpoint_auth_methods_supported": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Token Endpoint Auth Methods Supported",
      "description": "Client auth methods supported by /token (RFC 8414 §3.2)."
    },
    "registration_endpoint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Registration Endpoint"
    },
    "revocation_endpoint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Revocation Endpoint"
    },
    "mcp_spec_versions_supported": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Mcp Spec Versions Supported",
      "description": "MCP protocol versions implemented by this server."
    },
    "authorization_response_iss_parameter_supported": {
      "type": "boolean",
      "title": "Authorization Response Iss Parameter Supported",
      "default": true
    },
    "client_id_metadata_document_supported": {
      "type": "boolean",
      "title": "Client Id Metadata Document Supported",
      "default": true
    }
  },
  "type": "object",
  "required": [
    "issuer",
    "authorization_endpoint",
    "token_endpoint",
    "response_types_supported",
    "code_challenge_methods_supported",
    "grant_types_supported"
  ]
}