fix: align frontend production types

This commit is contained in:
Jesse_Chen
2026-07-20 00:59:25 +08:00
parent 565f100a20
commit 2ca85f9327
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -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),
+1
View File
@@ -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 & {