Files
cfw-autumn/shared/internal/run/runModels.ts
2025-01-21 11:18:42 +00:00

30 lines
516 B
TypeScript

export type LogEntry = {
level: "info" | "error" | "warn" | "debug";
name: string;
msg: string;
timestamp: number;
};
export type LogGroup = {
name: string;
id: string;
logs: LogEntry[];
};
export type WorkflowRun = {
id: string;
created_at: number;
workspace_id: string;
logs: LogGroup;
inputs: Record<string, any>;
status: "running" | "completed" | "failed";
workflow: {
id: string;
external_id: string;
};
// status: "pending" | "running" | "completed" | "failed";
};