import { z } from 'zod'; import { ErrorCode } from '../../core/common/activepieces-error'; import { ApId } from '../../core/common/id-generator'; import { ExecutionState } from './execution/execution-output'; import { FlowRunStatus } from './execution/flow-execution'; export declare const FAILED_STEP_MESSAGE_MAX_LENGTH = 700; export declare function truncateFailedStepMessage(failedStep: FailedStep | undefined): FailedStep | undefined; export declare const PARENT_RUN_ID_HEADER = "ap-parent-run-id"; export declare const FAIL_PARENT_ON_FAILURE_HEADER = "ap-fail-parent-on-failure"; export declare const RAW_PAYLOAD_HEADER = "ap-raw-payload"; export type FlowRunId = ApId; export declare enum RunEnvironment { PRODUCTION = "PRODUCTION", TESTING = "TESTING" } export declare enum FlowRetryStrategy { ON_LATEST_VERSION = "ON_LATEST_VERSION", FROM_FAILED_STEP = "FROM_FAILED_STEP" } export type FlowRetryPayload = { strategy: FlowRetryStrategy; }; export declare const FailedStep: z.ZodObject<{ name: z.ZodString; displayName: z.ZodString; message: z.ZodOptional; }, z.core.$strip>; export type FailedStep = z.infer; export declare const FlowRun: z.ZodObject<{ projectId: z.ZodString; flowId: z.ZodString; parentRunId: z.ZodOptional; failParentOnFailure: z.ZodBoolean; triggeredBy: z.ZodOptional; tags: z.ZodOptional>; flowVersionId: z.ZodString; flowVersion: z.ZodOptional; }, z.core.$strip>>; logsFileId: z.ZodOptional>; status: z.ZodEnum; startTime: z.ZodOptional>; finishTime: z.ZodOptional>; environment: z.ZodEnum; steps: z.ZodOptional>>; failedStep: z.ZodOptional; }, z.core.$strip>>; stepNameToTest: z.ZodOptional; archivedAt: z.ZodOptional>; stepsCount: z.ZodOptional; internalError: z.ZodOptional; message: z.ZodString; code: z.ZodOptional; occurredAt: z.ZodString; }, z.core.$strip>>; id: z.ZodString; created: z.ZodPipe, z.ZodString>; updated: z.ZodPipe, z.ZodString>; }, z.core.$strip>; export type FlowRun = z.infer & ExecutionState; export type FlowRunWithRetryError = FlowRun & { error?: { errorCode: ErrorCode; errorMessage: string; }; }; //# sourceMappingURL=flow-run.d.ts.map