import { z } from 'zod'; /** * The body of `POST /v1/runs/:runId/screenshots` — one step screenshot, sent once, after the * platform has accepted its run. One schema for both ends, so the daemon cannot send a field the * platform does not read. * * `jpeg` is base64 of real JPEG bytes, and `sha256` is of those decoded bytes. The platform answers * 201 stored, 200 already held (same run, seq and sha256), 404 run not found, 400 invalid, 413 too * large, 409 too many for one run or a different image already at that seq (a seq is never reused). */ /** The platform's bound on every text field of an upload. */ export declare const UPLOAD_TEXT_MAX = 300; export declare const ScreenshotUploadSchema: z.ZodObject<{ seq: z.ZodNumber; file: z.ZodString; step: z.ZodOptional; tool: z.ZodOptional; /** The check this picture is of, so the platform's run page can show it beside that check. */ checkId: z.ZodOptional; source: z.ZodNativeEnum<{ readonly BROWSER: "browser"; readonly RENDERED: "rendered"; }>; width: z.ZodNumber; height: z.ZodNumber; sha256: z.ZodString; jpeg: z.ZodString; }, "strip", z.ZodTypeAny, { file: string; source: "browser" | "rendered"; width: number; height: number; sha256: string; seq: number; jpeg: string; step?: string | undefined; tool?: string | undefined; checkId?: string | undefined; }, { file: string; source: "browser" | "rendered"; width: number; height: number; sha256: string; seq: number; jpeg: string; step?: string | undefined; tool?: string | undefined; checkId?: string | undefined; }>; export type ScreenshotUpload = z.infer;