Skyvern Evaluation New Endpoint - general /runs (#2374)

This commit is contained in:
Shuchang Zheng
2025-05-17 10:33:43 -07:00
committed by GitHub
parent 6e27dbb8e0
commit 339c894340
32 changed files with 288 additions and 485 deletions

View File

@@ -236,16 +236,41 @@ export type Action = {
index: number;
};
export type EvalKind = "workflow" | "task";
export interface Eval {
kind: EvalKind;
created_at: string;
organization_id: string;
status: Status;
title: string | null;
workflow_permanent_id: string | null;
workflow_run_id: string | null;
}
export interface EvalWorkflow extends Eval {
kind: "workflow";
}
export interface EvalTask extends Eval {
kind: "task";
task_id: string;
url: string | null;
}
export type EvalApiResponse = EvalWorkflow[] | EvalTask[];
export type WorkflowRunApiResponse = {
created_at: string;
failure_reason: string | null;
modified_at: string;
proxy_location: ProxyLocation | null;
status: Status;
title?: string;
webhook_callback_url: string;
workflow_id: string;
workflow_permanent_id: string;
workflow_run_id: string;
workflow_id: string;
status: Status;
proxy_location: ProxyLocation | null;
webhook_callback_url: string;
created_at: string;
modified_at: string;
failure_reason: string | null;
workflow_title: string | null;
};