import type { AgentTaskStopFailure } from '@n8n/api-types'; import type { AgentChatSurface } from '../utils/agent-thread-access'; export type AgentTaskStopSurface = Extract; export interface AgentTaskStop { planId: string | null; requestedAt: string; generation: { executionIds: string[]; jobIds: string[]; threadIds: string[]; }; failures: AgentTaskStopFailure[]; pause: { requestsCompleted?: boolean; id: string; reportExecutionId?: string; reportedAt?: string; reportFailed?: boolean; resumedAt?: string; }; } export type StoredAgentTaskStop = Omit & { pause?: AgentTaskStop['pause']; };