Zod schemas representing Scale AI task, batch, project, file, and teammate objects for API responses.
// Source: https://github.com/corsairdev/corsair | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import { z } from 'zod';
/**
* Scale Task object.
* Official: GET /v1/task/{taskId}
* https://api-reference.scale.com/docs/api-reference/tasks
*/
export const ScaleAiTask = z
.object({
task_id: z.string(),
created_at: z.string().optional(),
updated_at: z.string().optional(),
completed_at: z.string().optional(),
type: z.string().optional(),
status: z.string().optional(),
instruction: z.string().optional(),
params: z.record(z.string(), z.unknown()).optional(),
callback_url: z.string().optional(),
callback_completed: z.boolean().optional(),
project: z.string().
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key