Files
pn-new-crm/src/lib/validators/ai.ts

16 lines
494 B
TypeScript
Raw Normal View History

import { z } from 'zod';
export const requestScoreSchema = z.object({
interestId: z.string().uuid(),
});
export const requestDraftSchema = z.object({
interestId: z.string().uuid(),
clientId: z.string().uuid(),
context: z.enum(['follow_up', 'introduction', 'stage_update', 'general']),
additionalInstructions: z.string().max(500).optional(),
});
export type RequestScoreInput = z.infer<typeof requestScoreSchema>;
export type RequestDraftInput = z.infer<typeof requestDraftSchema>;