{
  "openapi": "3.1.0",
  "info": {
    "title": "Person Generated Public API",
    "version": "1.0.0",
    "description": "Books, pictures, music, and film gathered from programs that keep a public record of work made by a person.",
    "contact": {
      "name": "Person Generated",
      "url": "https://persongenerated.com/contact"
    }
  },
  "servers": [
    {
      "url": "https://persongenerated.com"
    }
  ],
  "paths": {
    "/api/public/catalog": {
      "get": {
        "operationId": "getPublicCatalog",
        "summary": "Read-only catalog of plans, rooms, issuers, and agent links",
        "responses": {
          "200": {
            "description": "Public catalog snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/health": {
      "get": {
        "operationId": "getHealth",
        "summary": "Liveness and configuration readiness (no secrets)",
        "responses": {
          "200": {
            "description": "Healthy"
          },
          "503": {
            "description": "Degraded"
          }
        }
      }
    },
    "/sitemap.xml": {
      "get": {
        "operationId": "getSitemap",
        "summary": "Programmatic sitemap",
        "responses": {
          "200": {
            "description": "XML sitemap"
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getLlmsTxt",
        "summary": "Short LLM-readable site map",
        "responses": {
          "200": {
            "description": "text/plain"
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "operationId": "getLlmsFullTxt",
        "summary": "Expanded LLM-readable site map",
        "responses": {
          "200": {
            "description": "text/plain"
          }
        }
      }
    },
    "/search": {
      "get": {
        "operationId": "deepSearch",
        "summary": "URL deep-link into the works file (q= query)",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Search term; redirects to /works?q="
          }
        ],
        "responses": {
          "302": {
            "description": "Redirect to works"
          }
        }
      }
    }
  }
}