import { http } from "./http"; export interface NotificationItem { id: number; user_id: number; event_type: string; payload: string; created_at: string; } export async function getNotifications(limit = 30): Promise { const { data } = await http.get("/notifications", { params: { limit } }); return data; }