SDK
The official TypeScript SDK is generated and tested against the public OpenAPI contract.
Install
npm install @fabhub/sdk
Authentication
Pass an API key or OAuth access-token provider when constructing the client.
import { FabHubClient } from '@fabhub/sdk';
export const fabhub = new FabHubClient({
apiKey: process.env.FABHUB_API_KEY,
});
Built-in behavior
- Typed request and response models from the public contract.
- Typed
FabHubApiErrorfor non-2xx responses. - Pagination helpers and examples for list endpoints.
- Idempotency-key support on write calls.
- Webhook signature verification helper.
Drift protection
The SDK operation mapping is checked against OpenAPI so public SDK methods cannot silently drift from public routes or point at internal surfaces.