/** * Result of an auto-executed or cascaded rule/flow evaluation. */ export interface CascadeResult { /** Combined identifier in format 'contextSlug:instanceId'. */ context?: string | undefined; /** The rule slug (if this was a rule evaluation). */ rule?: (string | null) | undefined; /** The flow slug (if this was a flow evaluation). */ flow?: (string | null) | undefined; /** Whether the evaluation succeeded. */ status?: CascadeResult.Status | undefined; /** The evaluation output. */ result?: Record | undefined; /** Whether this was auto-executed (true) or from a registered pending evaluation (false). */ auto_executed?: boolean | undefined; /** List of field keys written back to the context (for rule evaluations). */ written_to_context?: string[] | undefined; /** Error message if the evaluation failed. */ error?: (string | null) | undefined; } export declare namespace CascadeResult { /** Whether the evaluation succeeded. */ const Status: { readonly Solved: "solved"; readonly Error: "error"; }; type Status = (typeof Status)[keyof typeof Status]; }