{
  "openapi": "3.1.0",
  "info": {
    "title": "SpectralLock runtime",
    "version": "0.1.0",
    "summary": "Digital overlays on manuscript photographs. Advisory visualization, not a spectrometer.",
    "description": "Advisory digital overlays on photographs of manuscript pages. Not a lab spectrometer, not real UV photography hardware, not a forensic proof of hidden ink, not OCR, and not a claim of scribal truth. Synthetic UV simulates a 365–400 nm look from an ordinary photo. Balance never invents marks. Hosted overlay is a simplified preview (max 256 px); the full pipeline is the Python package. The human still reads the page."
  },
  "servers": [
    {
      "url": "https://spectrallock-download-tracker.vibelock.workers.dev"
    }
  ],
  "paths": {
    "/v1/health": {
      "get": {
        "operationId": "spectrallock_health",
        "summary": "Liveness. Does not increment download KV.",
        "responses": {
          "200": {
            "description": "ok"
          }
        }
      }
    },
    "/v1/modes": {
      "get": {
        "operationId": "spectrallock_modes",
        "summary": "List live overlay modes (zero, tazel, vyrn, uv, rosetta, zen, chaos, balance).",
        "responses": {
          "200": {
            "description": "modes"
          }
        }
      }
    },
    "/v1/overlay": {
      "post": {
        "operationId": "spectrallock_overlay",
        "summary": "Simplified overlay preview. PNG b64 in, longest side capped at 256 px. Not the full Python pipeline. Does not increment download KV.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "b64": {
                    "type": "string"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "zero",
                      "tazel",
                      "vyrn",
                      "uv",
                      "rosetta",
                      "zen",
                      "chaos",
                      "balance"
                    ]
                  }
                },
                "required": [
                  "b64",
                  "mode"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "png_b64 + metadata"
          }
        }
      }
    }
  }
}