fix: align frontend production types
This commit is contained in:
@@ -7,6 +7,7 @@ export const lifeEventDomainSchema = z.enum([
|
||||
"relocation",
|
||||
"relationship",
|
||||
"career",
|
||||
"finance",
|
||||
"health_pressure",
|
||||
]);
|
||||
|
||||
@@ -104,7 +105,7 @@ export const candidateResultSchema = z.object({
|
||||
widthMinutes: z.number().int().min(1).max(1_440),
|
||||
}).strict().readonly().nullable(),
|
||||
eventCount: z.number().int().min(0).max(10),
|
||||
domainCount: z.number().int().min(0).max(5),
|
||||
domainCount: z.number().int().min(0).max(6),
|
||||
topScore: z.number(),
|
||||
secondScore: z.number(),
|
||||
marginPercent: z.number().min(0),
|
||||
|
||||
@@ -2,6 +2,7 @@ export type ChatMessage = {
|
||||
readonly role: "user" | "assistant";
|
||||
readonly text: string;
|
||||
readonly suggestions?: readonly string[];
|
||||
readonly techniqueTruth?: string;
|
||||
};
|
||||
|
||||
export type ChatMessageView = ChatMessage & {
|
||||
|
||||
Reference in New Issue
Block a user