SDK
TypeScript types
Everything the SDK returns has a named type you can import. Pair with typed form libraries or zod schemas for end-to-end safety.
#Top-level exports
Types for every namespace are re-exported from the package root. You never need to dig into subpaths.
TypeScript
#Event type discrimination
The WebhookEvent union is discriminated on type, so TypeScript narrows data for you:
TypeScript
#Enum-like unions
We prefer string-literal unions over TS enums so types survive JSON.stringify and interop cleanly with wire formats.
TypeScript