Files
zeekay 120bddb520 the Hanzo API on the host's own fetch, with nothing installed beside it
A projection of hanzoai/cloud's openapi.yaml at the ref .spec-lock names —
2479 operations, 192 api classes, 2460 models — generated by hanzoai/openapi's
generate.py from the `fetch` row of its sdks.yaml. Nothing under src/ is
written by hand.

It exists because axios brings 27 packages and 4.1 MB where this brings none,
and because `…Raw()` hands back the Response, so a stream is readable. Relative
imports carry .js, so the ESM half loads in Node, Deno and a Worker rather than
only in a bundler — hanzo.yml gates that by importing the built client, which
is the one failure tsc cannot see.
2026-08-14 21:13:40 -07:00

23 lines
773 B
JSON

{
"compilerOptions": {
"declaration": true,
"target": "ES2020",
// `DOM` is here for the shapes fetch itself is made of — Response,
// RequestInit, Headers, ReadableStream, FormData, Blob. They are not
// browser-only: a Worker, Deno, Bun and Node 18+ all define them, and
// `lib.dom` is where TypeScript keeps their types. Nothing in this client
// touches `document` or `window`.
"lib": ["ES2020", "DOM"],
"module": "node16",
"moduleResolution": "node16",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"outDir": "dist",
"rootDir": "src",
"typeRoots": ["node_modules/@types"]
},
"include": ["src/**/*"],
"exclude": ["dist", "node_modules", "examples"]
}