{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yappy-biz/json-schema/yappy-biz-service-index-schema.json",
  "title": "ServiceIndex",
  "description": "The map: endpoints, limits, and every other machine surface this domain publishes.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yappy-biz-openapi.json#/components/schemas/ServiceIndex",
  "type": "object",
  "required": [
    "object",
    "name",
    "api_version",
    "endpoints"
  ],
  "properties": {
    "object": {
      "type": "string",
      "const": "service_index",
      "description": "Type discriminator."
    },
    "name": {
      "type": "string",
      "description": "Service name."
    },
    "description": {
      "type": "string",
      "description": "What this API is for, and what it is not."
    },
    "api_version": {
      "type": "string",
      "description": "The dated build answering right now."
    },
    "documentation_url": {
      "type": "string",
      "format": "uri",
      "description": "Human docs."
    },
    "openapi_url": {
      "type": "string",
      "format": "uri",
      "description": "The machine contract."
    },
    "authentication": {
      "type": "object",
      "description": "How to authenticate, and whether you need to.",
      "properties": {
        "required": {
          "type": "boolean",
          "description": "Whether reads need a credential."
        },
        "walkthrough": {
          "type": "string",
          "format": "uri",
          "description": "Prose guide for agents."
        },
        "protected_resource_metadata": {
          "type": "string",
          "format": "uri",
          "description": "RFC 9728 document."
        },
        "authorization_server_metadata": {
          "type": "string",
          "format": "uri",
          "description": "RFC 8414 document."
        }
      }
    },
    "mcp": {
      "type": "object",
      "description": "The MCP surfaces over the same data.",
      "properties": {
        "url": {
          "type": "string",
          "format": "uri",
          "description": "Product MCP server."
        },
        "docs_url": {
          "type": "string",
          "format": "uri",
          "description": "Documentation MCP server."
        },
        "transport": {
          "type": "string",
          "description": "Transport in use."
        },
        "server_card": {
          "type": "string",
          "format": "uri",
          "description": "Tool list, before connecting."
        }
      }
    },
    "rate_limit": {
      "type": "object",
      "description": "The ceiling in force for this caller.",
      "properties": {
        "limit": {
          "type": "integer",
          "description": "Requests per window."
        },
        "window_seconds": {
          "type": "integer",
          "description": "Window length."
        },
        "documentation": {
          "type": "string",
          "format": "uri",
          "description": "The rate-limit page."
        }
      }
    },
    "sandbox_url": {
      "type": "string",
      "format": "uri",
      "description": "Base URL of the fixture environment."
    },
    "endpoints": {
      "type": "array",
      "description": "Every operation, with its path and what it answers.",
      "items": {
        "type": "object",
        "required": [
          "method",
          "path",
          "operation_id",
          "description"
        ],
        "properties": {
          "method": {
            "type": "string",
            "description": "HTTP verb."
          },
          "path": {
            "type": "string",
            "description": "Path relative to this server."
          },
          "operation_id": {
            "type": "string",
            "description": "Matches the OpenAPI operationId."
          },
          "description": {
            "type": "string",
            "description": "What it returns."
          }
        }
      }
    }
  }
}