import { z } from 'zod'; import { type CapabilityDispatcher } from '../../capabilities/runtime/dispatcher.js'; import { type AutomationService } from '../service/automation-service.js'; import type { ProjectService } from '../../projects/project-service.js'; export declare const AutomationCreateCapabilityInputSchema: z.ZodObject<{ projectId: z.ZodPipe>, z.ZodTransform>; name: z.ZodString; enabled: z.ZodOptional; action: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"agent">; agentId: z.ZodPipe>, z.ZodTransform>; instruction: z.ZodString; workingDirectory: z.ZodPipe>, z.ZodTransform>; model: z.ZodPipe>, z.ZodTransform>; timeoutSeconds: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"workflow">; workflowId: z.ZodString; agentId: z.ZodPipe>, z.ZodTransform>; input: z.ZodOptional; inputEnvelope: z.ZodOptional>, z.ZodTransform>; variables: z.ZodOptional>; context: z.ZodOptional>; }, z.core.$strict>>; goal: z.ZodPipe>, z.ZodTransform>; concurrency: z.ZodOptional; maxSubagents: z.ZodOptional; timeoutSeconds: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"browser_automation">; automationId: z.ZodString; inputs: z.ZodOptional>; timeoutSeconds: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"task_command">; taskId: z.ZodString; command: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"move">; phase: z.ZodEnum<{ backlog: "backlog"; ready: "ready"; active: "active"; review: "review"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"mark_ready">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"start">; executor: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"agent">; agentId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"workflow">; workflowId: z.ZodString; workflowVersion: z.ZodOptional; input: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"human">; actorId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"external">; provider: z.ZodString; config: z.ZodUnknown; }, z.core.$strip>], "kind">; scheduleAt: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"request_review">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"close">; resolution: z.ZodEnum<{ cancelled: "cancelled"; done: "done"; duplicate: "duplicate"; wont_do: "wont_do"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"reopen">; phase: z.ZodEnum<{ backlog: "backlog"; ready: "ready"; active: "active"; review: "review"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"add_wait">; wait: z.ZodObject<{ kind: z.ZodEnum<{ approval: "approval"; dependency: "dependency"; user_input: "user_input"; external_event: "external_event"; scheduled_time: "scheduled_time"; retry_backoff: "retry_backoff"; paused: "paused"; }>; reason: z.ZodString; condition: z.ZodDefault>; resumeAt: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resolve_wait">; waitId: z.ZodString; resolution: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"revise_contract">; contract: z.ZodObject<{ objective: z.ZodString; expectedOutputs: z.ZodArray; acceptanceCriteria: z.ZodArray; constraints: z.ZodArray; approvalRequired: z.ZodArray; assumptions: z.ZodArray; risks: z.ZodArray; acceptancePolicy: z.ZodEnum<{ verified_auto: "verified_auto"; verified_then_review: "verified_then_review"; manual: "manual"; }>; outputDestinations: z.ZodArray>; }, z.core.$strip>; }, z.core.$strip>], "type">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"system">; capability: z.ZodEnum<{ "home.advisor.refresh": "home.advisor.refresh"; "memory.temporal_sweep": "memory.temporal_sweep"; "memory.daily_reconciliation": "memory.daily_reconciliation"; "memory.weekly_knowledge": "memory.weekly_knowledge"; }>; }, z.core.$strict>], "kind">; id: z.ZodPipe>, z.ZodTransform>; trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"manual">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"schedule">; schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"once">; at: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"interval">; everyMs: z.ZodNumber; anchorMs: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"cron">; expr: z.ZodString; tz: z.ZodPipe>, z.ZodTransform>; }, z.core.$strict>], "kind">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"webhook">; secretId: z.ZodPipe>, z.ZodTransform>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"event">; eventType: z.ZodString; source: z.ZodPipe>, z.ZodTransform>; payloadMatch: z.ZodOptional>>; }, z.core.$strict>], "kind">; description: z.ZodOptional; delivery: z.ZodDefault>; destinations: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ key: z.ZodString; kind: z.ZodLiteral<"webhook">; endpoint: z.ZodPipe>; secretId: z.ZodString; }, z.core.$strict>, z.ZodObject<{ key: z.ZodString; kind: z.ZodLiteral<"file">; targetId: z.ZodString; pathTemplate: z.ZodString; }, z.core.$strict>, z.ZodObject<{ key: z.ZodString; kind: z.ZodLiteral<"card">; channelId: z.ZodString; templateId: z.ZodString; }, z.core.$strict>], "kind">>>; }, z.core.$strict>>; safety: z.ZodOptional; }, z.core.$strict>>; conversationMode: z.ZodDefault>; reliability: z.ZodOptional; retryCount: z.ZodOptional; maxConcurrentRuns: z.ZodOptional; disableAfterConsecutiveFailures: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; export declare const AutomationUpdatePatchSchema: z.ZodObject<{ projectId: z.ZodOptional>, z.ZodTransform>>; name: z.ZodOptional; enabled: z.ZodOptional; action: z.ZodOptional; agentId: z.ZodPipe>, z.ZodTransform>; instruction: z.ZodString; workingDirectory: z.ZodPipe>, z.ZodTransform>; model: z.ZodPipe>, z.ZodTransform>; timeoutSeconds: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"workflow">; workflowId: z.ZodString; agentId: z.ZodPipe>, z.ZodTransform>; input: z.ZodOptional; inputEnvelope: z.ZodOptional>, z.ZodTransform>; variables: z.ZodOptional>; context: z.ZodOptional>; }, z.core.$strict>>; goal: z.ZodPipe>, z.ZodTransform>; concurrency: z.ZodOptional; maxSubagents: z.ZodOptional; timeoutSeconds: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"browser_automation">; automationId: z.ZodString; inputs: z.ZodOptional>; timeoutSeconds: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"task_command">; taskId: z.ZodString; command: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"move">; phase: z.ZodEnum<{ backlog: "backlog"; ready: "ready"; active: "active"; review: "review"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"mark_ready">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"start">; executor: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"agent">; agentId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"workflow">; workflowId: z.ZodString; workflowVersion: z.ZodOptional; input: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"human">; actorId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"external">; provider: z.ZodString; config: z.ZodUnknown; }, z.core.$strip>], "kind">; scheduleAt: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"request_review">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"close">; resolution: z.ZodEnum<{ cancelled: "cancelled"; done: "done"; duplicate: "duplicate"; wont_do: "wont_do"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"reopen">; phase: z.ZodEnum<{ backlog: "backlog"; ready: "ready"; active: "active"; review: "review"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"add_wait">; wait: z.ZodObject<{ kind: z.ZodEnum<{ approval: "approval"; dependency: "dependency"; user_input: "user_input"; external_event: "external_event"; scheduled_time: "scheduled_time"; retry_backoff: "retry_backoff"; paused: "paused"; }>; reason: z.ZodString; condition: z.ZodDefault>; resumeAt: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resolve_wait">; waitId: z.ZodString; resolution: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"revise_contract">; contract: z.ZodObject<{ objective: z.ZodString; expectedOutputs: z.ZodArray; acceptanceCriteria: z.ZodArray; constraints: z.ZodArray; approvalRequired: z.ZodArray; assumptions: z.ZodArray; risks: z.ZodArray; acceptancePolicy: z.ZodEnum<{ verified_auto: "verified_auto"; verified_then_review: "verified_then_review"; manual: "manual"; }>; outputDestinations: z.ZodArray>; }, z.core.$strip>; }, z.core.$strip>], "type">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"system">; capability: z.ZodEnum<{ "home.advisor.refresh": "home.advisor.refresh"; "memory.temporal_sweep": "memory.temporal_sweep"; "memory.daily_reconciliation": "memory.daily_reconciliation"; "memory.weekly_knowledge": "memory.weekly_knowledge"; }>; }, z.core.$strict>], "kind">>; trigger: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"schedule">; schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"once">; at: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"interval">; everyMs: z.ZodNumber; anchorMs: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"cron">; expr: z.ZodString; tz: z.ZodPipe>, z.ZodTransform>; }, z.core.$strict>], "kind">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"webhook">; secretId: z.ZodPipe>, z.ZodTransform>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"event">; eventType: z.ZodString; source: z.ZodPipe>, z.ZodTransform>; payloadMatch: z.ZodOptional>>; }, z.core.$strict>], "kind">>; description: z.ZodOptional>; safety: z.ZodOptional; }, z.core.$strict>>>; reliability: z.ZodOptional; retryCount: z.ZodOptional; maxConcurrentRuns: z.ZodOptional; disableAfterConsecutiveFailures: z.ZodOptional; }, z.core.$strict>>>; conversationMode: z.ZodOptional>; delivery: z.ZodOptional>; destinations: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ key: z.ZodString; kind: z.ZodLiteral<"webhook">; endpoint: z.ZodPipe>; secretId: z.ZodString; }, z.core.$strict>, z.ZodObject<{ key: z.ZodString; kind: z.ZodLiteral<"file">; targetId: z.ZodString; pathTemplate: z.ZodString; }, z.core.$strict>, z.ZodObject<{ key: z.ZodString; kind: z.ZodLiteral<"card">; channelId: z.ZodString; templateId: z.ZodString; }, z.core.$strict>], "kind">>>; }, z.core.$strict>>>; state: z.ZodOptional; management: z.ZodOptional; }, z.core.$strict>; export declare function registerAutomationWriteCapabilities(dispatcher: CapabilityDispatcher, service: AutomationService, projects?: ProjectService): void;