Skip to content

A full-featured download manager.

520 B
Raw Blame
import { z } from 'zod'

/** Request to check whether a task's output file exists. */
export const checkTaskFileExistsPayloadSchema = z.object({
  taskId: z.string().trim().min(1),
})

export type CheckTaskFileExistsPayload = z.infer<
  typeof checkTaskFileExistsPayloadSchema
>

/** Result of checking whether a task's output file exists. */
export const checkTaskFileExistsResultSchema = z.object({
  exists: z.boolean(),
})

export type CheckTaskFileExistsResult = z.infer<
  typeof checkTaskFileExistsResultSchema
>