import { TDSite } from '../../types.js'; import type { WorkflowListResponse, SessionListResponse, AttemptsResponse, TasksResponse, LogsResponse, KillAttemptResponse, RetrySessionResponse, RetryAttemptResponse, ProjectListResponse, WorkflowStatus } from '../../types/workflow.js'; export interface WorkflowClientOptions { apiKey: string; site: TDSite; timeout?: number; } export declare class WorkflowClient { private readonly apiKey; private readonly baseUrl; private readonly timeout; constructor(options: WorkflowClientOptions); /** * Make an HTTP request to the workflow API */ private request; /** * List all workflows, optionally filtered by project name */ listWorkflows(params: { project_name?: string; limit?: number; last_id?: string; }): Promise; /** * List workflow sessions with filtering */ listSessions(params: { project_name?: string; workflow_name?: string; status?: WorkflowStatus; from_time?: string; to_time?: string; limit?: number; last_id?: string; }): Promise; /** * Get attempts for a session */ getSessionAttempts(sessionId: string): Promise; /** * Get tasks within an attempt */ getAttemptTasks(attemptId: string, includeSubtasks?: boolean): Promise; /** * Get logs for a specific task */ getTaskLogs(params: { attempt_id: string; task_name: string; offset?: number; limit?: number; }): Promise; /** * Kill a running attempt */ killAttempt(attemptId: string, reason?: string): Promise; /** * Retry a failed session */ retrySession(params: { session_id: string; from_task?: string; retry_params?: Record; }): Promise; /** * Retry a specific attempt */ retryAttempt(params: { attempt_id: string; resume_from?: string; retry_params?: Record; force?: boolean; }): Promise; /** * List all projects */ listProjects(params?: { limit?: number; last_id?: string; }): Promise; } //# sourceMappingURL=client.d.ts.map