/** * @file Notifications API client */ import apiRequest from './client' export interface Notification { id: string organization_id: string type: string title: string body?: string read: boolean link_url?: string link_label?: string metadata?: Record created_at: string } export interface ListNotificationsResponse { notifications: Notification[] unread_count: number } export async function listNotifications(): Promise { return apiRequest('/notifications') } export async function markNotificationRead(id: string): Promise { return apiRequest(`/notifications/${id}/read`, { method: 'PATCH', }) } export async function markAllNotificationsRead(): Promise { return apiRequest('/notifications/mark-all-read', { method: 'POST', }) }