import { z } from 'zod'; import { type CapabilityDispatcher } from '../../capabilities/runtime/dispatcher.js'; import { type AutomationService } from '../service/automation-service.js'; import type { AutomationTrigger } from '../domain/types.js'; import type { ProjectService } from '../../projects/project-service.js'; declare const triggerRequest: z.ZodUnion; }, 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.ZodOptional>, z.ZodTransform>>; }, z.core.$strict>], "kind">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"webhook">; secretId: z.ZodOptional>, z.ZodTransform>>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"event">; eventType: z.ZodString; source: z.ZodOptional>, z.ZodTransform>>; payloadMatch: z.ZodOptional>>; }, z.core.$strict>], "kind">, z.ZodObject<{ kind: z.ZodLiteral<"schedule">; schedule: z.ZodObject<{ kind: z.ZodLiteral<"once">; afterMs: z.ZodNumber; }, z.core.$strict>; }, z.core.$strict>]>; /** Anchor a relative one-time intent inside the receipt's single atomic execution. */ export declare function materializeAutomationTrigger(trigger: z.infer): AutomationTrigger; export declare const AutomationCreateCapabilityInputSchema: z.ZodObject<{ projectId: z.ZodOptional>, z.ZodTransform>>; name: z.ZodString; enabled: z.ZodOptional; action: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"assistant_task">; conversationId: z.ZodString; agentId: z.ZodString; instruction: z.ZodString; locale: z.ZodEnum<{ en: "en"; zh: "zh"; }>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"routine">; routineId: z.ZodString; version: z.ZodNumber; hash: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"agent">; agentId: z.ZodOptional>, z.ZodTransform>>; instruction: z.ZodString; mcpSourceId: z.ZodOptional; workingDirectory: z.ZodOptional>, z.ZodTransform>>; model: z.ZodOptional>, z.ZodTransform>>; timeoutSeconds: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"task_command">; taskId: z.ZodString; command: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"retry_allocation">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; phase: z.ZodEnum<{ ready: "ready"; active: "active"; review: "review"; backlog: "backlog"; closed: "closed"; }>; resolution: z.ZodOptional>; }, 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<"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<"signoff">; resultId: z.ZodString; }, 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<{ ready: "ready"; active: "active"; review: "review"; backlog: "backlog"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"add_wait">; wait: z.ZodObject<{ kind: z.ZodEnum<{ approval: "approval"; paused: "paused"; dependency: "dependency"; user_input: "user_input"; external_event: "external_event"; scheduled_time: "scheduled_time"; retry_backoff: "retry_backoff"; }>; 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; outputDestinations: z.ZodArray>; acceptancePolicy: z.ZodDefault>; }, 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"; "proactivity.tick": "proactivity.tick"; "proactive.pulse.flush": "proactive.pulse.flush"; "memory.temporal_sweep": "memory.temporal_sweep"; "memory.daily_reconciliation": "memory.daily_reconciliation"; "memory.weekly_knowledge": "memory.weekly_knowledge"; }>; }, z.core.$strict>], "kind">; id: z.ZodOptional>, z.ZodTransform>>; description: z.ZodOptional; delivery: z.ZodDefault>; destinations: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ key: z.ZodString; kind: z.ZodLiteral<"weixin">; conversationId: z.ZodString; principalId: z.ZodString; }, 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>>; trigger: z.ZodUnion; }, 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.ZodOptional>, z.ZodTransform>>; }, z.core.$strict>], "kind">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"webhook">; secretId: z.ZodOptional>, z.ZodTransform>>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"event">; eventType: z.ZodString; source: z.ZodOptional>, z.ZodTransform>>; payloadMatch: z.ZodOptional>>; }, z.core.$strict>], "kind">, z.ZodObject<{ kind: z.ZodLiteral<"schedule">; schedule: z.ZodObject<{ kind: z.ZodLiteral<"once">; afterMs: z.ZodNumber; }, z.core.$strict>; }, z.core.$strict>]>; }, z.core.$strict>; export declare const AutomationUpdatePatchSchema: z.ZodObject<{ 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.ZodOptional>, z.ZodTransform>>; }, z.core.$strict>], "kind">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"webhook">; secretId: z.ZodOptional>, z.ZodTransform>>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"event">; eventType: z.ZodString; source: z.ZodOptional>, z.ZodTransform>>; payloadMatch: z.ZodOptional>>; }, z.core.$strict>], "kind">, z.ZodObject<{ kind: z.ZodLiteral<"schedule">; schedule: z.ZodObject<{ kind: z.ZodLiteral<"once">; afterMs: z.ZodNumber; }, z.core.$strict>; }, z.core.$strict>]>>; state: z.ZodOptional; management: z.ZodOptional; projectId: z.ZodOptional>, z.ZodTransform>>>; name: z.ZodOptional; enabled: z.ZodOptional; action: z.ZodOptional; conversationId: z.ZodString; agentId: z.ZodString; instruction: z.ZodString; locale: z.ZodEnum<{ en: "en"; zh: "zh"; }>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"routine">; routineId: z.ZodString; version: z.ZodNumber; hash: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"agent">; agentId: z.ZodOptional>, z.ZodTransform>>; instruction: z.ZodString; mcpSourceId: z.ZodOptional; workingDirectory: z.ZodOptional>, z.ZodTransform>>; model: z.ZodOptional>, z.ZodTransform>>; timeoutSeconds: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"task_command">; taskId: z.ZodString; command: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"retry_allocation">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; phase: z.ZodEnum<{ ready: "ready"; active: "active"; review: "review"; backlog: "backlog"; closed: "closed"; }>; resolution: z.ZodOptional>; }, 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<"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<"signoff">; resultId: z.ZodString; }, 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<{ ready: "ready"; active: "active"; review: "review"; backlog: "backlog"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"add_wait">; wait: z.ZodObject<{ kind: z.ZodEnum<{ approval: "approval"; paused: "paused"; dependency: "dependency"; user_input: "user_input"; external_event: "external_event"; scheduled_time: "scheduled_time"; retry_backoff: "retry_backoff"; }>; 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; outputDestinations: z.ZodArray>; acceptancePolicy: z.ZodDefault>; }, 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"; "proactivity.tick": "proactivity.tick"; "proactive.pulse.flush": "proactive.pulse.flush"; "memory.temporal_sweep": "memory.temporal_sweep"; "memory.daily_reconciliation": "memory.daily_reconciliation"; "memory.weekly_knowledge": "memory.weekly_knowledge"; }>; }, 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<"weixin">; conversationId: z.ZodString; principalId: z.ZodString; }, 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>>>; }, z.core.$strict>; export declare function registerAutomationWriteCapabilities(dispatcher: CapabilityDispatcher, service: AutomationService, projects?: ProjectService): void; export {};