Skip to content

decisionRecordSchema

const decisionRecordSchema: ZodObject<{ answers: ZodNullable<ZodRecord<ZodString, ZodDiscriminatedUnion<"type", [ZodObject<object & object, "strip", ZodTypeAny, { choice: string; confidence: number; probabilities?: Record<string, number>; type: "choice"; }, { choice: string; confidence: number; probabilities?: Record<string, number>; type: "choice"; }>, ZodObject<object & object, "strip", ZodTypeAny, { noul: number; type: "noul"; }, { noul: number; type: "noul"; }>, ZodObject<object & object, "strip", ZodTypeAny, { score: number; type: "score"; }, { score: number; type: "score"; }>]>>>; docName: ZodOptional<ZodString>; error: ZodOptional<ZodString>; ms: ZodNumber; point: ZodString; provider: ZodString; questions: ZodRecord<ZodString, ZodDiscriminatedUnion<"type", [ZodObject<{ criteria: ZodRecord<ZodString, ZodString>; instructions: ZodString; type: ZodLiteral<"choice">; }, "strip", ZodTypeAny, { criteria: Record<string, string>; instructions: string; type: "choice"; }, { criteria: Record<string, string>; instructions: string; type: "choice"; }>, ZodObject<{ criteria: ZodOptional<ZodObject<{ false: ZodString; true: ZodString; }, "strip", ZodTypeAny, { false: string; true: string; }, { false: string; true: string; }>>; instructions: ZodString; type: ZodLiteral<"noul">; }, "strip", ZodTypeAny, { criteria?: { false: string; true: string; }; instructions: string; type: "noul"; }, { criteria?: { false: string; true: string; }; instructions: string; type: "noul"; }>, ZodObject<{ instructions: ZodString; levels: ZodArray<ZodString, "many">; type: ZodLiteral<"score">; }, "strip", ZodTypeAny, { instructions: string; levels: string[]; type: "score"; }, { instructions: string; levels: string[]; type: "score"; }>]>>; stateHash: ZodString; }, "strip", ZodTypeAny, { answers: Record<string, { choice: string; confidence: number; probabilities?: Record<string, number>; type: "choice"; } | { noul: number; type: "noul"; } | { score: number; type: "score"; }> | null; docName?: string; error?: string; ms: number; point: string; provider: string; questions: Record<string, { criteria: Record<string, string>; instructions: string; type: "choice"; } | { criteria?: { false: string; true: string; }; instructions: string; type: "noul"; } | { instructions: string; levels: string[]; type: "score"; }>; stateHash: string; }, { answers: Record<string, { choice: string; confidence: number; probabilities?: Record<string, number>; type: "choice"; } | { noul: number; type: "noul"; } | { score: number; type: "score"; }> | null; docName?: string; error?: string; ms: number; point: string; provider: string; questions: Record<string, { criteria: Record<string, string>; instructions: string; type: "choice"; } | { criteria?: { false: string; true: string; }; instructions: string; type: "noul"; } | { instructions: string; levels: string[]; type: "score"; }>; stateHash: string; }>

Defined in: index.ts:203