{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scriptivox-com/json-schema/scriptivox-com-service-discovery-schema.json",
  "title": "ServiceDiscovery",
  "description": "What GET /v1 returns. Deliberately loose: it is a signpost for an agent that has just found this host, not a contract to generate a client from. The authoritative description of every operation is this document.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scriptivox-com-openapi.json#/components/schemas/ServiceDiscovery",
  "type": "object",
  "required": [
    "service",
    "version",
    "base_url",
    "documentation",
    "openapi"
  ],
  "properties": {
    "service": {
      "type": "string",
      "description": "Human-readable name of the API."
    },
    "version": {
      "type": "string",
      "description": "The API version this host serves, matching the URL prefix."
    },
    "description": {
      "type": "string",
      "description": "One sentence on what the API does."
    },
    "base_url": {
      "type": "string",
      "format": "uri",
      "description": "Prefix every path in `endpoints` with this."
    },
    "documentation": {
      "type": "string",
      "format": "uri",
      "description": "Human-readable documentation index."
    },
    "openapi": {
      "type": "string",
      "format": "uri",
      "description": "This document."
    },
    "llms_txt": {
      "type": "string",
      "format": "uri",
      "description": "What the service is for, and when not to use it."
    },
    "mcp": {
      "type": "string",
      "format": "uri",
      "description": "Model Context Protocol manifest, for agents that call tools natively."
    },
    "status": {
      "type": "string",
      "format": "uri",
      "description": "Live uptime and incident history."
    },
    "authentication": {
      "type": "object",
      "description": "How to authenticate every other operation: the scheme, the accepted headers, the key format, and where a human gets one."
    },
    "endpoints": {
      "type": "array",
      "description": "One entry per operation, with method, path and a one-line summary.",
      "items": {
        "type": "object",
        "properties": {
          "method": {
            "type": "string",
            "description": "HTTP method."
          },
          "path": {
            "type": "string",
            "description": "Path, including the /v1 prefix."
          },
          "summary": {
            "type": "string",
            "description": "What the operation does."
          }
        }
      }
    },
    "rate_limits": {
      "type": "object",
      "description": "Per-IP and per-key ceilings, the header names that carry them, and where they are documented."
    },
    "versioning": {
      "type": "object",
      "description": "Versioning scheme, current version, policy URL, and the headers a deprecation would arrive on."
    },
    "errors": {
      "type": "object",
      "description": "The error envelope, and where the code list lives."
    }
  }
}