/** * Workflow Execution Model * * Pure data model for workflow execution records. * Executions are append-only records of workflow engine runs. */ import type { NodeTrace, ProducedRecord, WorkflowExecutionFile, WorkflowExecutionResponse, WorkflowGraph, WorkflowTrace, WorkflowWarning } from "@artu-ai/shared"; import { BaseModel } from "./base"; export type WorkflowExecutionData = WorkflowExecutionResponse; /** * WorkflowExecution model - represents a single workflow execution result. */ export declare class WorkflowExecution extends BaseModel { get id(): string; get organizationId(): string; get environment(): "test" | "live"; get workflowId(): string; get eventId(): string; get triggerType(): string; get entityType(): string | null; get entityId(): string | null; get eventType(): string | null; get initiatedBy(): string | null; get status(): string; get error(): string | null; get alertIds(): string[]; get producedRecords(): ProducedRecord[]; get producedFiles(): WorkflowExecutionFile[]; get durationMs(): number | null; get inputs(): Record | null; get resolvedVariables(): Record | null; get workflowTrace(): WorkflowTrace | null; get nodeTraces(): NodeTrace[]; get workflowSnapshot(): WorkflowGraph | null; /** * Structured warnings emitted by node executors during this run. * Surfaced on the execution-detail UI; persisted to * `workflow_executions.warnings`. */ get warnings(): WorkflowWarning[]; get createdAt(): Date; get completedAt(): Date | null; get hasError(): boolean; get createdAlert(): boolean; toString(): string; } export declare function isWorkflowExecution(value: unknown): value is WorkflowExecution;