import { apiEndpoints } from "@/lib/api/endpoints";
import { fetchWithAuth } from "@/lib/auth/client";
import type { AuditLogsResponse } from "@/types/api";

export async function listAuditLogs(params: Record<string, string | number | boolean | null | undefined> = {}) {
  return fetchWithAuth<AuditLogsResponse>(apiEndpoints.audit.logs(params));
}
