import { Luma } from "@alhwyn/luma";const luma = new Luma(process.env.LUMA_API_KEY!, { baseUrl: "https://public-api.luma.com", fetch: customFetch,});
// Returns a Luma client with luma.users, luma.calendar,// luma.events, and luma.webhooks resource properties.const luma: Luma;
Client
Client
Initialize the Luma TypeScript SDK client with your API key and explore shared types, resource properties, and method conventions used across endpoints.
The Luma class is the entry point for the unofficial SDK. Pass your API key once, then call typed methods on resource properties.
const page = await luma.events.list({ pagination_limit: 20 });page.data; // items for this pagepage.hasMore; // more pages available?page.nextCursor; // pass as pagination_cursor for the next page