import { client } from "../client"; import type { Event, EventAudience } from "../client"; 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 }); }