import { z } from 'zod';
import { ReviewAssumptionSchema } from '../reviews/ReviewAssumption.js';
import { ReviewFindingSchema } from '../reviews/ReviewFinding.js';
import { ReviewQuestionSchema } from '../reviews/ReviewQuestion.js';
export const ReviewFollowUpV1Schema = z.object({
    parentRunRef: z.object({
        runId: z.string().min(1),
        callId: z.string().min(1),
        backendId: z.string().min(1),
    }).passthrough(),
    threadId: z.string().min(1),
    findingIds: z.array(z.string().min(1)).optional(),
    replyToQuestionId: z.string().min(1).optional(),
    requestMarkdown: z.string().min(1),
    answerMarkdown: z.string().min(1),
    updatedFindings: z.array(ReviewFindingSchema).optional(),
    questions: z.array(ReviewQuestionSchema).optional(),
    assumptions: z.array(ReviewAssumptionSchema).optional(),
    generatedAtMs: z.number().int().nonnegative(),
}).passthrough();
export function parseReviewFollowUpV1(payload) {
    const parsed = ReviewFollowUpV1Schema.safeParse(payload);
    if (!parsed.success)
        return null;
    return parsed.data;
}
//# sourceMappingURL=reviewFollowUpV1.js.map