import { client } from "./client"; import type { Event, EventAudience } from "./types"; export type PostEventBody = { title: string; description?: string | null; audience?: EventAudience | null; starts_at?: number | null; ends_at?: number | null; }; export function postEvent(body: PostEventBody): Promise { return client("/events", { method: "POST", body }); }