import { apiEndpoints } from "@/lib/api/endpoints"; import { fetchWithAuth } from "@/lib/auth/client"; import type { AuditLogsResponse } from "@/types/api"; export async function listAuditLogs(params: Record = {}) { return fetchWithAuth(apiEndpoints.audit.logs(params)); }