import { z } from 'zod';
export const jobRecordStatusSchema = z.enum(['success', 'failed', 'killed', 'timeout']);
export const jobRecordSchema = z.object({
    jobId: z.string().min(1),
    platform: z.enum(['gitlab', 'github']),
    projectPath: z.string().min(1),
    mergeRequestId: z.number().int().nonnegative(),
    jobType: z.enum(['review', 'followup']),
    startedAt: z.string().datetime(),
    completedAt: z.string().datetime(),
    durationMs: z.number().int().nonnegative(),
    status: jobRecordStatusSchema,
    exitReason: z.string().nullable(),
});
//# sourceMappingURL=jobRecord.schema.js.map