import type { z } from "zod"; import type { RunLogChunk, RunRecord } from "../../types"; import type { cancelRunSchema, runLogChunkSchema, runLogSchema, startRunSchema } from "../schemas-execution"; import type { entityGetterSchema } from "../schemas-badges"; import type { DesktopResult } from "./common"; export type RunsApi = { startTaskRun: (input: z.infer) => Promise>; cancelRun: (input: z.infer) => Promise>; getRunLog: (input: z.infer) => Promise>; getRunLogChunk: (input: z.infer) => Promise>; getRun: (input: z.infer) => Promise>; recoveryRetry: (taskId: string, agentId: string, companyId: string) => Promise>; recoveryFail: (taskId: string, companyId: string) => Promise>; };