@elanotes/sdk is packaging of the HTTP contract, not a new surface.
Types come from openapi-typescript over
contracts/openapi/elanotes.v1.json. The client is openapi-fetch.
Not published to npm in v1. Workspace package: packages/sdk.
Browser-safe: no Node-only modules.
Create a client
baseUrl is the API origin (no /v1 suffix). Production uses the same
client with baseUrl: "https://api.elanotes.com" and a bearer in token.
Writes get an automatic
Idempotency-Key (UUID) unless you set one. Failed responses throw
ElanotesError with reason, hint, help, retryAfterSeconds, and
details.
VERSION_MOVED
node scripts/sdk-generate.mjs.
Drift check: node scripts/assert-sdk-current.mjs (wired into
pnpm verify). The Python SDK is generated from the
same spec.
