import type { HttpClient } from "../core/http.js"; import type { CreateAutomationRequest, UpdateAutomationRequest, AutomationResponse, AutomationListResponse, AutomationRunResponse, AutomationRunListResponse, AutomationPresetsResponse, OneclawResponse } from "../types.js"; /** * Automations resource — create and manage scheduled, event-driven, * or webhook-triggered agent workflows. */ export declare class AutomationsResource { private readonly http; constructor(http: HttpClient); /** Create a new automation. */ create(data: CreateAutomationRequest): Promise>; /** List all automations in the current organization. */ list(): Promise>; /** Fetch a single automation by ID. */ get(automationId: string): Promise>; /** Update an existing automation. */ update(automationId: string, data: UpdateAutomationRequest): Promise>; /** Delete an automation permanently. */ delete(automationId: string): Promise>; /** Manually trigger an automation, optionally with input data. */ trigger(automationId: string, input?: Record): Promise>; /** Rotate webhook token for a webhook-triggered automation (one-time URL + token in response). */ rotateWebhookToken(automationId: string): Promise>; /** List runs for an automation. */ listRuns(automationId: string, params?: { status?: string; limit?: number; offset?: number; }): Promise>; /** Fetch a single run by ID. */ getRun(automationId: string, runId: string): Promise>; /** Cancel a running or awaiting_approval run. */ cancelRun(automationId: string, runId: string): Promise>; /** * Resume a run parked on an approval, as if approved (vault ≥ 0.61.30). * Deciding the approval resumes the run automatically; use this for a * decision made elsewhere. `payload` reaches later steps as `{{resume.*}}`. */ resumeRun(automationId: string, runId: string, payload?: Record): Promise>; /** List public automation presets (no auth required). */ getPresets(): Promise>; } //# sourceMappingURL=automations.d.ts.map