Test the SDK from source
The official TypeScript SDK package is @hollyhr/api-client. HollyHR
maintainers and design partners can test unreleased SDK changes from the
monorepo package or a local tarball before the next npm release.
Use this recipe only for server-side Node, Next.js, worker, or integration scripts. Do not put HollyHR API tokens in browser code.
Option A: workspace package
Inside the HollyHR monorepo, depend on the local package through the workspace:
Code
Then build and test from the repository:
Code
pnpm guard:sdk checks the generated operation catalogue against
docs/api/openapi.v1.yaml so SDK usage stays aligned with the public contract.
Option B: local package tarball
For a separate private app before the next npm release, ask a HollyHR maintainer for a tarball produced from the current branch:
Code
Install the generated .tgz file in your private test app:
Code
Treat the tarball as preview build output. Rebuild it whenever the OpenAPI contract or SDK source changes.
Do not publish or distribute the SDK under a personal npm scope. The public
package is @hollyhr/api-client; unpublished test builds should stay as
workspace dependencies or private tarballs.
First call
Code
Pagination
Code
Writes
Use idempotency keys for mutations and If-Match for conditional updates:
Code
The SDK is a transport helper. It does not widen API scopes, bypass idempotency, or enable MCP writes. For webhook receivers, use Receive webhooks in Node as the live signing reference and fetch current resource state through REST when the notification payload is not enough.