{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentpmt-com/json-schema/agentpmt-com-oauth-authorization-server-metadata-schema.json",
  "title": "OAuthAuthorizationServerMetadata",
  "description": "RFC 8414 / OpenID Connect Discovery metadata document.",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentpmt-com-openapi.json#/components/schemas/OAuthAuthorizationServerMetadata",
  "properties": {
    "issuer": {
      "type": "string",
      "title": "Issuer",
      "description": "Issuer identifier URL."
    },
    "authorization_endpoint": {
      "type": "string",
      "title": "Authorization Endpoint",
      "description": "Authorization endpoint URL."
    },
    "token_endpoint": {
      "type": "string",
      "title": "Token Endpoint",
      "description": "Token endpoint URL."
    },
    "jwks_uri": {
      "type": "string",
      "title": "Jwks Uri",
      "description": "JWKS URL for signature verification."
    },
    "registration_endpoint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Registration Endpoint",
      "description": "Dynamic Client Registration endpoint, when supported."
    },
    "response_types_supported": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Response Types Supported",
      "description": "Supported OAuth response types."
    },
    "grant_types_supported": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Grant Types Supported",
      "description": "Supported OAuth grant types."
    },
    "token_endpoint_auth_methods_supported": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Token Endpoint Auth Methods Supported",
      "description": "Client authentication methods accepted at the token endpoint."
    },
    "code_challenge_methods_supported": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Code Challenge Methods Supported",
      "description": "PKCE code challenge methods supported."
    },
    "scopes_supported": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Scopes Supported",
      "description": "OAuth scopes supported by this authorization server."
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "issuer",
    "authorization_endpoint",
    "token_endpoint",
    "jwks_uri",
    "response_types_supported",
    "grant_types_supported",
    "token_endpoint_auth_methods_supported",
    "code_challenge_methods_supported",
    "scopes_supported"
  ]
}