Loading API reference…
// Self-contained API reference page served at `GET /v1/docs`. // // No CDN, no external scripts/styles/fonts, no `node_modules` served from disk: // the whole viewer is inline and fetches the spec from `openapi.json` (relative // to `/v1/docs`, which resolves to `/v1/openapi.json`). This is deliberate. The // server ships as a `tsc` build, a `tsx` dev process, and an esbuild single-file // bundle for the desktop app that carries no server `node_modules` — so pulling // Swagger UI from `node_modules` at runtime would 404 in the desktop build, and // vendoring its ~1.5 MB of assets into the repo would be bloat. A compact // hand-rolled renderer keeps the docs offline-capable and identical across all // three run targets. It is stored as a `.ts` string module (not an `.html` // file) for the same reason the spec is: `.ts` compiles and bundles everywhere, // while a static file is not copied into `dist/` and is absent from the bundle. // // Rendered client-side from the OpenAPI JSON via DOM APIs (no innerHTML // templating), so nothing in the spec can inject markup. export const DOCS_HTML = `
Loading API reference…