import { z } from 'zod'; import { FlowActionType } from '../actions/action'; import { FlowStatus } from '../flow'; import { FlowVersion } from '../flow-version'; import { FlowTriggerType } from '../triggers/trigger'; import { _getActionsForCopy } from './copy-action-operations'; export declare enum FlowOperationType { LOCK_AND_PUBLISH = "LOCK_AND_PUBLISH", CHANGE_STATUS = "CHANGE_STATUS", LOCK_FLOW = "LOCK_FLOW", CHANGE_FOLDER = "CHANGE_FOLDER", CHANGE_NAME = "CHANGE_NAME", MOVE_ACTION = "MOVE_ACTION", IMPORT_FLOW = "IMPORT_FLOW", UPDATE_TRIGGER = "UPDATE_TRIGGER", ADD_ACTION = "ADD_ACTION", UPDATE_ACTION = "UPDATE_ACTION", DELETE_ACTION = "DELETE_ACTION", DUPLICATE_ACTION = "DUPLICATE_ACTION", USE_AS_DRAFT = "USE_AS_DRAFT", DELETE_BRANCH = "DELETE_BRANCH", ADD_BRANCH = "ADD_BRANCH", DUPLICATE_BRANCH = "DUPLICATE_BRANCH", SET_SKIP_ACTION = "SET_SKIP_ACTION", UPDATE_METADATA = "UPDATE_METADATA", MOVE_BRANCH = "MOVE_BRANCH", SAVE_SAMPLE_DATA = "SAVE_SAMPLE_DATA", UPDATE_MINUTES_SAVED = "UPDATE_MINUTES_SAVED", UPDATE_OWNER = "UPDATE_OWNER", UPDATE_NOTE = "UPDATE_NOTE", DELETE_NOTE = "DELETE_NOTE", ADD_NOTE = "ADD_NOTE", UPDATE_SAMPLE_DATA_INFO = "UPDATE_SAMPLE_DATA_INFO" } export declare const DeleteBranchRequest: z.ZodObject<{ branchIndex: z.ZodNumber; stepName: z.ZodString; }, z.core.$strip>; export declare const UpdateNoteRequest: z.ZodObject<{ id: z.ZodString; ownerId: z.ZodOptional>; color: z.ZodEnum; content: z.ZodString; position: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; size: z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; export declare const DeleteNoteRequest: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; export declare const AddNoteRequest: z.ZodObject<{ id: z.ZodString; color: z.ZodEnum; content: z.ZodString; position: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; size: z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; export declare const AddBranchRequest: z.ZodObject<{ branchIndex: z.ZodNumber; stepName: z.ZodString; conditions: z.ZodOptional; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>]>>>>; branchName: z.ZodString; }, z.core.$strip>; export declare const MoveBranchRequest: z.ZodObject<{ sourceBranchIndex: z.ZodNumber; targetBranchIndex: z.ZodNumber; stepName: z.ZodString; }, z.core.$strip>; export type MoveBranchRequest = z.infer; export declare const SkipActionRequest: z.ZodObject<{ names: z.ZodArray; skip: z.ZodBoolean; }, z.core.$strip>; export type SkipActionRequest = z.infer; export declare const UpdateSampleDataInfoRequest: z.ZodObject<{ stepName: z.ZodString; sampleDataSettings: z.ZodOptional; sampleDataInputFileId: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; export type UpdateSampleDataInfoRequest = z.infer; export declare const DuplicateBranchRequest: z.ZodObject<{ branchIndex: z.ZodNumber; stepName: z.ZodString; }, z.core.$strip>; export type DeleteBranchRequest = z.infer; export type AddBranchRequest = z.infer; export type DuplicateBranchRequest = z.infer; export type UpdateNoteRequest = z.infer; export type DeleteNoteRequest = z.infer; export type AddNoteRequest = z.infer; export declare enum StepLocationRelativeToParent { AFTER = "AFTER", INSIDE_LOOP = "INSIDE_LOOP", INSIDE_BRANCH = "INSIDE_BRANCH" } export declare const UseAsDraftRequest: z.ZodObject<{ versionId: z.ZodString; }, z.core.$strip>; export type UseAsDraftRequest = z.infer; export declare const LockFlowRequest: z.ZodObject<{}, z.core.$strip>; export type LockFlowRequest = z.infer; export declare const ImportFlowRequest: z.ZodObject<{ displayName: z.ZodString; trigger: z.ZodUnion; settings: z.ZodObject<{ sampleData: z.ZodOptional; sampleDataInputFileId: z.ZodOptional; lastTestDate: z.ZodOptional; }, z.core.$strip>>; propertySettings: z.ZodRecord; schema: z.ZodOptional; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; pieceName: z.ZodString; pieceVersion: z.ZodString; triggerName: z.ZodOptional; input: z.ZodRecord; }, z.core.$strip>; name: z.ZodString; valid: z.ZodBoolean; displayName: z.ZodString; nextAction: z.ZodOptional; lastUpdatedDate: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; settings: z.ZodAny; name: z.ZodString; valid: z.ZodBoolean; displayName: z.ZodString; nextAction: z.ZodOptional; lastUpdatedDate: z.ZodString; }, z.core.$strip>]>; schemaVersion: z.ZodOptional>; notes: z.ZodOptional>; color: z.ZodEnum; position: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; size: z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>>>>; }, z.core.$strip>; export type ImportFlowRequest = z.infer; export declare const ChangeFolderRequest: z.ZodObject<{ folderId: z.ZodOptional>; }, z.core.$strip>; export type ChangeFolderRequest = z.infer; export declare const ChangeNameRequest: z.ZodObject<{ displayName: z.ZodString; }, z.core.$strip>; export type ChangeNameRequest = z.infer; export declare const DeleteActionRequest: z.ZodObject<{ names: z.ZodArray; }, z.core.$strip>; export type DeleteActionRequest = z.infer; export declare const UpdateActionRequest: z.ZodUnion; name: z.ZodString; displayName: z.ZodString; valid: z.ZodBoolean; skip: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ settings: z.ZodObject<{ input: z.ZodRecord; sourceCode: z.ZodObject<{ packageJson: z.ZodString; code: z.ZodString; }, z.core.$strip>; errorHandlingOptions: z.ZodOptional; }, z.core.$strip>>; retryOnFailure: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>>, z.ZodIntersection; name: z.ZodString; displayName: z.ZodString; valid: z.ZodBoolean; skip: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ settings: z.ZodObject<{ customLogoUrl: z.ZodOptional; items: z.ZodString; }, z.core.$strip>; }, z.core.$strip>>, z.ZodIntersection; name: z.ZodString; displayName: z.ZodString; valid: z.ZodBoolean; skip: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ settings: z.ZodObject<{ pieceName: z.ZodString; input: z.ZodRecord; pieceVersion: z.ZodString; actionName: z.ZodOptional; errorHandlingOptions: z.ZodOptional; }, z.core.$strip>>; retryOnFailure: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; propertySettings: z.ZodRecord; schema: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>>, z.ZodIntersection; name: z.ZodString; displayName: z.ZodString; valid: z.ZodBoolean; skip: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ settings: z.ZodObject<{ customLogoUrl: z.ZodOptional; branches: z.ZodArray; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>]>>>; branchType: z.ZodLiteral; branchName: z.ZodString; }, z.core.$strip>, z.ZodObject<{ branchType: z.ZodLiteral; branchName: z.ZodString; }, z.core.$strip>]>>; executionType: z.ZodEnum; }, z.core.$strip>; }, z.core.$strip>>]>; export type UpdateActionRequest = z.infer; export declare const DuplicateStepRequest: z.ZodObject<{ stepName: z.ZodString; }, z.core.$strip>; export type DuplicateStepRequest = z.infer; export declare const MoveActionRequest: z.ZodObject<{ name: z.ZodString; newParentStep: z.ZodString; stepLocationRelativeToNewParent: z.ZodOptional>; branchIndex: z.ZodOptional; }, z.core.$strip>; export type MoveActionRequest = z.infer; export declare const AddActionRequest: z.ZodObject<{ parentStep: z.ZodString; stepLocationRelativeToParent: z.ZodOptional>; branchIndex: z.ZodOptional; action: z.ZodUnion; name: z.ZodString; displayName: z.ZodString; valid: z.ZodBoolean; skip: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ settings: z.ZodObject<{ input: z.ZodRecord; sourceCode: z.ZodObject<{ packageJson: z.ZodString; code: z.ZodString; }, z.core.$strip>; errorHandlingOptions: z.ZodOptional; }, z.core.$strip>>; retryOnFailure: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>>, z.ZodIntersection; name: z.ZodString; displayName: z.ZodString; valid: z.ZodBoolean; skip: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ settings: z.ZodObject<{ customLogoUrl: z.ZodOptional; items: z.ZodString; }, z.core.$strip>; }, z.core.$strip>>, z.ZodIntersection; name: z.ZodString; displayName: z.ZodString; valid: z.ZodBoolean; skip: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ settings: z.ZodObject<{ pieceName: z.ZodString; input: z.ZodRecord; pieceVersion: z.ZodString; actionName: z.ZodOptional; errorHandlingOptions: z.ZodOptional; }, z.core.$strip>>; retryOnFailure: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; propertySettings: z.ZodRecord; schema: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>>, z.ZodIntersection; name: z.ZodString; displayName: z.ZodString; valid: z.ZodBoolean; skip: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ settings: z.ZodObject<{ customLogoUrl: z.ZodOptional; branches: z.ZodArray; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>]>>>; branchType: z.ZodLiteral; branchName: z.ZodString; }, z.core.$strip>, z.ZodObject<{ branchType: z.ZodLiteral; branchName: z.ZodString; }, z.core.$strip>]>>; executionType: z.ZodEnum; }, z.core.$strip>; }, z.core.$strip>>]>; }, z.core.$strip>; export type AddActionRequest = z.infer; export declare const UpdateTriggerRequest: z.ZodUnion; name: z.ZodString; displayName: z.ZodString; settings: z.ZodAny; valid: z.ZodBoolean; nextAction: z.ZodOptional; }, z.core.$strip>, z.ZodIntersection; name: z.ZodString; displayName: z.ZodString; valid: z.ZodBoolean; nextAction: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ settings: z.ZodObject<{ pieceName: z.ZodString; triggerName: z.ZodOptional; input: z.ZodRecord; pieceVersion: z.ZodString; customLogoUrl: z.ZodOptional; propertySettings: z.ZodRecord; schema: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>>]>; export type UpdateTriggerRequest = z.infer; export declare const UpdateFlowStatusRequest: z.ZodObject<{ status: z.ZodEnum; }, z.core.$strip>; export type UpdateFlowStatusRequest = z.infer; export declare const ChangePublishedVersionIdRequest: z.ZodObject<{ status: z.ZodOptional>; }, z.core.$strip>; export type ChangePublishedVersionIdRequest = z.infer; export declare const UpdateMetadataRequest: z.ZodObject<{ metadata: z.ZodOptional>>; }, z.core.$strip>; export type UpdateMetadataRequest = z.infer; export declare const UpdateMinutesSavedRequest: z.ZodObject<{ timeSavedPerRun: z.ZodOptional>; }, z.core.$strip>; export type UpdateMinutesSavedRequest = z.infer; export declare const UpdateOwnerRequest: z.ZodObject<{ ownerId: z.ZodString; }, z.core.$strip>; export type UpdateOwnerRequest = z.infer; export declare const FlowOperationRequest: z.ZodUnion; request: z.ZodObject<{ name: z.ZodString; newParentStep: z.ZodString; stepLocationRelativeToNewParent: z.ZodOptional>; branchIndex: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ status: z.ZodEnum; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ status: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ versionId: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{}, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ displayName: z.ZodString; trigger: z.ZodUnion; settings: z.ZodObject<{ sampleData: z.ZodOptional; sampleDataInputFileId: z.ZodOptional; lastTestDate: z.ZodOptional; }, z.core.$strip>>; propertySettings: z.ZodRecord; schema: z.ZodOptional; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; pieceName: z.ZodString; pieceVersion: z.ZodString; triggerName: z.ZodOptional; input: z.ZodRecord; }, z.core.$strip>; name: z.ZodString; valid: z.ZodBoolean; displayName: z.ZodString; nextAction: z.ZodOptional; lastUpdatedDate: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; settings: z.ZodAny; name: z.ZodString; valid: z.ZodBoolean; displayName: z.ZodString; nextAction: z.ZodOptional; lastUpdatedDate: z.ZodString; }, z.core.$strip>]>; schemaVersion: z.ZodOptional>; notes: z.ZodOptional>; color: z.ZodEnum; position: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; size: z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>>>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ displayName: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ names: z.ZodArray; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodUnion; name: z.ZodString; displayName: z.ZodString; valid: z.ZodBoolean; skip: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ settings: z.ZodObject<{ input: z.ZodRecord; sourceCode: z.ZodObject<{ packageJson: z.ZodString; code: z.ZodString; }, z.core.$strip>; errorHandlingOptions: z.ZodOptional; }, z.core.$strip>>; retryOnFailure: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>>, z.ZodIntersection; name: z.ZodString; displayName: z.ZodString; valid: z.ZodBoolean; skip: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ settings: z.ZodObject<{ customLogoUrl: z.ZodOptional; items: z.ZodString; }, z.core.$strip>; }, z.core.$strip>>, z.ZodIntersection; name: z.ZodString; displayName: z.ZodString; valid: z.ZodBoolean; skip: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ settings: z.ZodObject<{ pieceName: z.ZodString; input: z.ZodRecord; pieceVersion: z.ZodString; actionName: z.ZodOptional; errorHandlingOptions: z.ZodOptional; }, z.core.$strip>>; retryOnFailure: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; propertySettings: z.ZodRecord; schema: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>>, z.ZodIntersection; name: z.ZodString; displayName: z.ZodString; valid: z.ZodBoolean; skip: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ settings: z.ZodObject<{ customLogoUrl: z.ZodOptional; branches: z.ZodArray; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>]>>>; branchType: z.ZodLiteral; branchName: z.ZodString; }, z.core.$strip>, z.ZodObject<{ branchType: z.ZodLiteral; branchName: z.ZodString; }, z.core.$strip>]>>; executionType: z.ZodEnum; }, z.core.$strip>; }, z.core.$strip>>]>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ parentStep: z.ZodString; stepLocationRelativeToParent: z.ZodOptional>; branchIndex: z.ZodOptional; action: z.ZodUnion; name: z.ZodString; displayName: z.ZodString; valid: z.ZodBoolean; skip: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ settings: z.ZodObject<{ input: z.ZodRecord; sourceCode: z.ZodObject<{ packageJson: z.ZodString; code: z.ZodString; }, z.core.$strip>; errorHandlingOptions: z.ZodOptional; }, z.core.$strip>>; retryOnFailure: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>>, z.ZodIntersection; name: z.ZodString; displayName: z.ZodString; valid: z.ZodBoolean; skip: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ settings: z.ZodObject<{ customLogoUrl: z.ZodOptional; items: z.ZodString; }, z.core.$strip>; }, z.core.$strip>>, z.ZodIntersection; name: z.ZodString; displayName: z.ZodString; valid: z.ZodBoolean; skip: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ settings: z.ZodObject<{ pieceName: z.ZodString; input: z.ZodRecord; pieceVersion: z.ZodString; actionName: z.ZodOptional; errorHandlingOptions: z.ZodOptional; }, z.core.$strip>>; retryOnFailure: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; propertySettings: z.ZodRecord; schema: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>>, z.ZodIntersection; name: z.ZodString; displayName: z.ZodString; valid: z.ZodBoolean; skip: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ settings: z.ZodObject<{ customLogoUrl: z.ZodOptional; branches: z.ZodArray; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>]>>>; branchType: z.ZodLiteral; branchName: z.ZodString; }, z.core.$strip>, z.ZodObject<{ branchType: z.ZodLiteral; branchName: z.ZodString; }, z.core.$strip>]>>; executionType: z.ZodEnum; }, z.core.$strip>; }, z.core.$strip>>]>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodUnion; name: z.ZodString; displayName: z.ZodString; settings: z.ZodAny; valid: z.ZodBoolean; nextAction: z.ZodOptional; }, z.core.$strip>, z.ZodIntersection; name: z.ZodString; displayName: z.ZodString; valid: z.ZodBoolean; nextAction: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ settings: z.ZodObject<{ pieceName: z.ZodString; triggerName: z.ZodOptional; input: z.ZodRecord; pieceVersion: z.ZodString; customLogoUrl: z.ZodOptional; propertySettings: z.ZodRecord; schema: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>>]>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ folderId: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ stepName: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ branchIndex: z.ZodNumber; stepName: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ branchIndex: z.ZodNumber; stepName: z.ZodString; conditions: z.ZodOptional; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; secondValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>, z.ZodObject<{ firstValue: z.ZodString; operator: z.ZodOptional, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral, z.ZodLiteral]>>; }, z.core.$strip>]>>>>; branchName: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ branchIndex: z.ZodNumber; stepName: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ names: z.ZodArray; skip: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ metadata: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ sourceBranchIndex: z.ZodNumber; targetBranchIndex: z.ZodNumber; stepName: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ stepName: z.ZodString; payload: z.ZodUnknown; type: z.ZodEnum; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ timeSavedPerRun: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ ownerId: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ id: z.ZodString; ownerId: z.ZodOptional>; color: z.ZodEnum; content: z.ZodString; position: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; size: z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ id: z.ZodString; color: z.ZodEnum; content: z.ZodString; position: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; size: z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; request: z.ZodObject<{ stepName: z.ZodString; sampleDataSettings: z.ZodOptional; sampleDataInputFileId: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; }, z.core.$strip>]>; export type FlowOperationRequest = z.infer; export declare const flowOperations: { getActionsForCopy: typeof _getActionsForCopy; getOperationsForPaste: (actions: import("../actions/action").FlowAction[], flowVersion: FlowVersion, pastingDetails: import("./paste-operations").PasteLocation) => ({ type: FlowOperationType.MOVE_ACTION; request: { name: string; newParentStep: string; stepLocationRelativeToNewParent?: StepLocationRelativeToParent | undefined; branchIndex?: number | undefined; }; } | { type: FlowOperationType.CHANGE_STATUS; request: { status: FlowStatus; }; } | { type: FlowOperationType.LOCK_AND_PUBLISH; request: { status?: FlowStatus | undefined; }; } | { type: FlowOperationType.USE_AS_DRAFT; request: { versionId: string; }; } | { type: FlowOperationType.LOCK_FLOW; request: Record; } | { type: FlowOperationType.IMPORT_FLOW; request: { displayName: string; trigger: { type: FlowTriggerType.EMPTY; settings: any; name: string; valid: boolean; displayName: string; lastUpdatedDate: string; nextAction?: any; } | { type: FlowTriggerType.PIECE; settings: { propertySettings: Record; pieceName: string; pieceVersion: string; input: Record; sampleData?: { sampleDataFileId?: string | undefined; sampleDataInputFileId?: string | undefined; lastTestDate?: string | undefined; } | undefined; customLogoUrl?: string | undefined; triggerName?: string | undefined; }; name: string; valid: boolean; displayName: string; lastUpdatedDate: string; nextAction?: any; }; schemaVersion?: string | null | undefined; notes?: { id: string; content: string; color: import("../note").NoteColorVariant; position: { x: number; y: number; }; size: { width: number; height: number; }; createdAt: string; updatedAt: string; ownerId?: string | null | undefined; }[] | null | undefined; }; } | { type: FlowOperationType.CHANGE_NAME; request: { displayName: string; }; } | { type: FlowOperationType.DELETE_ACTION; request: { names: string[]; }; } | { type: FlowOperationType.UPDATE_ACTION; request: ({ type: FlowActionType.CODE; name: string; displayName: string; valid: boolean; skip?: boolean | undefined; } & { settings: { input: Record; sourceCode: { packageJson: string; code: string; }; errorHandlingOptions?: { continueOnFailure?: { value?: boolean | undefined; } | undefined; retryOnFailure?: { value?: boolean | undefined; } | undefined; } | undefined; customLogoUrl?: string | undefined; }; }) | ({ type: FlowActionType.LOOP_ON_ITEMS; name: string; displayName: string; valid: boolean; skip?: boolean | undefined; } & { settings: { items: string; customLogoUrl?: string | undefined; }; }) | ({ type: FlowActionType.PIECE; name: string; displayName: string; valid: boolean; skip?: boolean | undefined; } & { settings: { pieceName: string; input: Record; pieceVersion: string; propertySettings: Record; actionName?: string | undefined; errorHandlingOptions?: { continueOnFailure?: { value?: boolean | undefined; } | undefined; retryOnFailure?: { value?: boolean | undefined; } | undefined; } | undefined; customLogoUrl?: string | undefined; }; }) | ({ type: FlowActionType.ROUTER; name: string; displayName: string; valid: boolean; skip?: boolean | undefined; } & { settings: { branches: ({ conditions: ({ firstValue: string; secondValue: string; caseSensitive?: boolean | undefined; operator?: import("../actions/action").BranchOperator.TEXT_CONTAINS | import("../actions/action").BranchOperator.TEXT_DOES_NOT_CONTAIN | import("../actions/action").BranchOperator.TEXT_EXACTLY_MATCHES | import("../actions/action").BranchOperator.TEXT_DOES_NOT_EXACTLY_MATCH | import("../actions/action").BranchOperator.TEXT_STARTS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_START_WITH | import("../actions/action").BranchOperator.TEXT_ENDS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_END_WITH | import("../actions/action").BranchOperator.LIST_CONTAINS | import("../actions/action").BranchOperator.LIST_DOES_NOT_CONTAIN | undefined; } | { firstValue: string; secondValue: string; operator?: import("../actions/action").BranchOperator.NUMBER_IS_GREATER_THAN | import("../actions/action").BranchOperator.NUMBER_IS_LESS_THAN | import("../actions/action").BranchOperator.NUMBER_IS_EQUAL_TO | undefined; } | { firstValue: string; secondValue: string; operator?: import("../actions/action").BranchOperator.DATE_IS_BEFORE | import("../actions/action").BranchOperator.DATE_IS_EQUAL | import("../actions/action").BranchOperator.DATE_IS_AFTER | undefined; } | { firstValue: string; operator?: import("../actions/action").BranchOperator.BOOLEAN_IS_TRUE | import("../actions/action").BranchOperator.BOOLEAN_IS_FALSE | import("../actions/action").BranchOperator.LIST_IS_EMPTY | import("../actions/action").BranchOperator.LIST_IS_NOT_EMPTY | import("../actions/action").BranchOperator.EXISTS | import("../actions/action").BranchOperator.DOES_NOT_EXIST | undefined; })[][]; branchType: import("../actions/action").BranchExecutionType.CONDITION; branchName: string; } | { branchType: import("../actions/action").BranchExecutionType.FALLBACK; branchName: string; })[]; executionType: import("../actions/action").RouterExecutionType; customLogoUrl?: string | undefined; }; }); } | { type: FlowOperationType.ADD_ACTION; request: { parentStep: string; action: ({ type: FlowActionType.CODE; name: string; displayName: string; valid: boolean; skip?: boolean | undefined; } & { settings: { input: Record; sourceCode: { packageJson: string; code: string; }; errorHandlingOptions?: { continueOnFailure?: { value?: boolean | undefined; } | undefined; retryOnFailure?: { value?: boolean | undefined; } | undefined; } | undefined; customLogoUrl?: string | undefined; }; }) | ({ type: FlowActionType.LOOP_ON_ITEMS; name: string; displayName: string; valid: boolean; skip?: boolean | undefined; } & { settings: { items: string; customLogoUrl?: string | undefined; }; }) | ({ type: FlowActionType.PIECE; name: string; displayName: string; valid: boolean; skip?: boolean | undefined; } & { settings: { pieceName: string; input: Record; pieceVersion: string; propertySettings: Record; actionName?: string | undefined; errorHandlingOptions?: { continueOnFailure?: { value?: boolean | undefined; } | undefined; retryOnFailure?: { value?: boolean | undefined; } | undefined; } | undefined; customLogoUrl?: string | undefined; }; }) | ({ type: FlowActionType.ROUTER; name: string; displayName: string; valid: boolean; skip?: boolean | undefined; } & { settings: { branches: ({ conditions: ({ firstValue: string; secondValue: string; caseSensitive?: boolean | undefined; operator?: import("../actions/action").BranchOperator.TEXT_CONTAINS | import("../actions/action").BranchOperator.TEXT_DOES_NOT_CONTAIN | import("../actions/action").BranchOperator.TEXT_EXACTLY_MATCHES | import("../actions/action").BranchOperator.TEXT_DOES_NOT_EXACTLY_MATCH | import("../actions/action").BranchOperator.TEXT_STARTS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_START_WITH | import("../actions/action").BranchOperator.TEXT_ENDS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_END_WITH | import("../actions/action").BranchOperator.LIST_CONTAINS | import("../actions/action").BranchOperator.LIST_DOES_NOT_CONTAIN | undefined; } | { firstValue: string; secondValue: string; operator?: import("../actions/action").BranchOperator.NUMBER_IS_GREATER_THAN | import("../actions/action").BranchOperator.NUMBER_IS_LESS_THAN | import("../actions/action").BranchOperator.NUMBER_IS_EQUAL_TO | undefined; } | { firstValue: string; secondValue: string; operator?: import("../actions/action").BranchOperator.DATE_IS_BEFORE | import("../actions/action").BranchOperator.DATE_IS_EQUAL | import("../actions/action").BranchOperator.DATE_IS_AFTER | undefined; } | { firstValue: string; operator?: import("../actions/action").BranchOperator.BOOLEAN_IS_TRUE | import("../actions/action").BranchOperator.BOOLEAN_IS_FALSE | import("../actions/action").BranchOperator.LIST_IS_EMPTY | import("../actions/action").BranchOperator.LIST_IS_NOT_EMPTY | import("../actions/action").BranchOperator.EXISTS | import("../actions/action").BranchOperator.DOES_NOT_EXIST | undefined; })[][]; branchType: import("../actions/action").BranchExecutionType.CONDITION; branchName: string; } | { branchType: import("../actions/action").BranchExecutionType.FALLBACK; branchName: string; })[]; executionType: import("../actions/action").RouterExecutionType; customLogoUrl?: string | undefined; }; }); stepLocationRelativeToParent?: StepLocationRelativeToParent | undefined; branchIndex?: number | undefined; }; } | { type: FlowOperationType.UPDATE_TRIGGER; request: { type: FlowTriggerType.EMPTY; name: string; displayName: string; settings: any; valid: boolean; nextAction?: any; } | ({ type: FlowTriggerType.PIECE; name: string; displayName: string; valid: boolean; nextAction?: any; } & { settings: { pieceName: string; input: Record; pieceVersion: string; propertySettings: Record; triggerName?: string | undefined; customLogoUrl?: string | undefined; }; }); } | { type: FlowOperationType.CHANGE_FOLDER; request: { folderId?: string | null | undefined; }; } | { type: FlowOperationType.DUPLICATE_ACTION; request: { stepName: string; }; } | { type: FlowOperationType.DELETE_BRANCH; request: { branchIndex: number; stepName: string; }; } | { type: FlowOperationType.ADD_BRANCH; request: { branchIndex: number; stepName: string; branchName: string; conditions?: ({ firstValue: string; secondValue: string; caseSensitive?: boolean | undefined; operator?: import("../actions/action").BranchOperator.TEXT_CONTAINS | import("../actions/action").BranchOperator.TEXT_DOES_NOT_CONTAIN | import("../actions/action").BranchOperator.TEXT_EXACTLY_MATCHES | import("../actions/action").BranchOperator.TEXT_DOES_NOT_EXACTLY_MATCH | import("../actions/action").BranchOperator.TEXT_STARTS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_START_WITH | import("../actions/action").BranchOperator.TEXT_ENDS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_END_WITH | import("../actions/action").BranchOperator.LIST_CONTAINS | import("../actions/action").BranchOperator.LIST_DOES_NOT_CONTAIN | undefined; } | { firstValue: string; secondValue: string; operator?: import("../actions/action").BranchOperator.NUMBER_IS_GREATER_THAN | import("../actions/action").BranchOperator.NUMBER_IS_LESS_THAN | import("../actions/action").BranchOperator.NUMBER_IS_EQUAL_TO | undefined; } | { firstValue: string; secondValue: string; operator?: import("../actions/action").BranchOperator.DATE_IS_BEFORE | import("../actions/action").BranchOperator.DATE_IS_EQUAL | import("../actions/action").BranchOperator.DATE_IS_AFTER | undefined; } | { firstValue: string; operator?: import("../actions/action").BranchOperator.BOOLEAN_IS_TRUE | import("../actions/action").BranchOperator.BOOLEAN_IS_FALSE | import("../actions/action").BranchOperator.LIST_IS_EMPTY | import("../actions/action").BranchOperator.LIST_IS_NOT_EMPTY | import("../actions/action").BranchOperator.EXISTS | import("../actions/action").BranchOperator.DOES_NOT_EXIST | undefined; })[][] | undefined; }; } | { type: FlowOperationType.DUPLICATE_BRANCH; request: { branchIndex: number; stepName: string; }; } | { type: FlowOperationType.SET_SKIP_ACTION; request: { names: string[]; skip: boolean; }; } | { type: FlowOperationType.UPDATE_METADATA; request: { metadata?: Record | null | undefined; }; } | { type: FlowOperationType.MOVE_BRANCH; request: { sourceBranchIndex: number; targetBranchIndex: number; stepName: string; }; } | { type: FlowOperationType.SAVE_SAMPLE_DATA; request: { stepName: string; payload: unknown; type: import("../sample-data").SampleDataFileType; }; } | { type: FlowOperationType.UPDATE_MINUTES_SAVED; request: { timeSavedPerRun?: number | null | undefined; }; } | { type: FlowOperationType.UPDATE_OWNER; request: { ownerId: string; }; } | { type: FlowOperationType.UPDATE_NOTE; request: { id: string; color: import("../note").NoteColorVariant; content: string; position: { x: number; y: number; }; size: { width: number; height: number; }; ownerId?: string | null | undefined; }; } | { type: FlowOperationType.DELETE_NOTE; request: { id: string; }; } | { type: FlowOperationType.ADD_NOTE; request: { id: string; color: import("../note").NoteColorVariant; content: string; position: { x: number; y: number; }; size: { width: number; height: number; }; }; } | { type: FlowOperationType.UPDATE_SAMPLE_DATA_INFO; request: { stepName: string; sampleDataSettings?: { sampleDataFileId?: string | undefined; sampleDataInputFileId?: string | undefined; } | null | undefined; }; })[]; apply(flowVersion: FlowVersion, operation: FlowOperationRequest): FlowVersion; }; //# sourceMappingURL=index.d.ts.map