import type { SerializedCursor } from '@n8n/api-types'; import type { AuthenticatedRequest, ExecutionSummaries, ExecutionEntity } from '@n8n/db'; import type { AnnotationVote, ExecutionStatus, WorkflowExecuteMode } from 'n8n-workflow'; import type { ExecutionCursor } from '../executions/execution-cursor'; export declare namespace ExecutionRequest { namespace QueryParams { type GetMany = { cursor?: SerializedCursor; filter: string; limit: string; }; } namespace BodyParams { type StopMany = { filter: ExecutionSummaries.StopExecutionFilterQuery; }; } namespace RouteParams { type ExecutionId = { id: ExecutionEntity['id']; }; } type ExecutionUpdatePayload = { tags?: string[]; vote?: AnnotationVote | null; }; type GetMany = AuthenticatedRequest<{}, {}, {}, QueryParams.GetMany> & { rangeQuery: ExecutionSummaries.RangeQuery; cursor?: ExecutionCursor; }; type GetOne = AuthenticatedRequest; type GetVersions = AuthenticatedRequest<{ workflowId: string; }>; type Retry = AuthenticatedRequest; type Stop = AuthenticatedRequest; type StopMany = AuthenticatedRequest<{}, {}, BodyParams.StopMany>; type Update = AuthenticatedRequest; } export type StopResult = { mode: WorkflowExecuteMode; startedAt: Date; stoppedAt?: Date; finished: boolean; status: ExecutionStatus; };