/**
 * Audit query types for cowork-service proxy routes.
 *
 * These match the platform-service GET /audit query parameters.
 */

import { z } from 'zod';

export const AuditQuerySchema = z.object({
  action: z.string().optional(),
  category: z.string().optional(),
  taskId: z.string().optional(),
  tool: z.string().optional(),
  days: z.coerce.number().int().min(1).max(365).default(30),
  limit: z.coerce.number().int().min(1).max(1000).default(100),
  offset: z.coerce.number().int().min(0).default(0),
});

export type AuditQueryInput = z.infer<typeof AuditQuerySchema>;
