Code
Generate a typed SDK
A client library with real types, retries and errors developers can catch.
Fill it in
The source of truth.
Which language.
Typed errors and sensible backoff, not a fetch wrapper.
Your prompt
Generate a TypeScript client. Generate types from the schema and use them everywhere, including the errors. An SDK whose methods return `any` is a fetch wrapper with extra installation steps. Typed errors and sensible retries. The caller needs to distinguish "you sent something wrong" from "try again later", and to catch a specific class rather than string-matching a message. Retry idempotent methods with backoff and jitter, and never retry a POST that is not marked safe to. Respect Retry-After. A client that ignores it turns a rate limit into an outage. Ship pagination as an iterator, not as a page parameter the caller manages. Include a README with the five calls people actually make.
Use Generate a typed SDKOpens with everything above already filled in.
Why this works
An SDK whose methods return any is a fetch wrapper with extra installation steps. This generates real types including the errors, retries idempotent calls with backoff, honours Retry-After, and ships pagination as an iterator.