import { api } from '@/lib/api-client'; import type { Agent } from '@/types'; export interface AgentInput { code?: string; name: string; userId?: string; active?: boolean; } export const agentsService = { list: () => api.get('/agents'), get: (id: string) => api.get(`/agents/${id}`), create: (input: AgentInput) => api.post('/agents', input), update: (id: string, input: Partial) => api.patch(`/agents/${id}`, input), remove: (id: string) => api.delete(`/agents/${id}`), };