{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/youspot-com/json-schema/youspot-com-authorization-server-metadata-schema.json",
  "title": "AuthorizationServerMetadata",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/youspot-com-openapi.json#/components/schemas/AuthorizationServerMetadata",
  "type": "object",
  "required": [
    "issuer",
    "authorization_endpoint",
    "token_endpoint"
  ],
  "additionalProperties": true,
  "properties": {
    "issuer": {
      "type": "string",
      "format": "uri"
    },
    "authorization_endpoint": {
      "type": "string",
      "format": "uri"
    },
    "token_endpoint": {
      "type": "string",
      "format": "uri"
    },
    "registration_endpoint": {
      "type": "string",
      "format": "uri"
    },
    "revocation_endpoint": {
      "type": "string",
      "format": "uri"
    },
    "scopes_supported": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "response_types_supported": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "grant_types_supported": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "code_challenge_methods_supported": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "S256 only. `plain` is refused."
    },
    "token_endpoint_auth_methods_supported": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "service_documentation": {
      "type": "string",
      "format": "uri"
    },
    "agent_auth": {
      "type": "object",
      "additionalProperties": true,
      "description": "What an agent can hold here, and how to get it. Mirrors /auth.md."
    }
  }
}