import { z } from 'zod'; export declare const AutomationScheduleSchema: 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">; export declare const AutomationTriggerSchema: 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.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">; export declare const AutomationActionSchema: 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">; export declare const AutomationManagementSchema: z.ZodObject<{ owner: z.ZodString; editable: z.ZodArray>; runnable: z.ZodBoolean; deletable: z.ZodBoolean; }, z.core.$strict>; export declare const AutomationReliabilitySchema: z.ZodObject<{ executionTimeoutSeconds: z.ZodOptional; retryCount: z.ZodOptional; maxConcurrentRuns: z.ZodOptional; disableAfterConsecutiveFailures: z.ZodOptional; }, z.core.$strict>; export declare const AutomationSafetyPolicySchema: z.ZodObject<{ mode: z.ZodEnum<{ suggest_only: "suggest_only"; ask_before_apply: "ask_before_apply"; auto_apply: "auto_apply"; }>; }, z.core.$strict>; export declare const AutomationDeliveryPolicySchema: z.ZodObject<{ notificationPolicy: 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>; export declare const AutomationStateSchema: z.ZodObject<{ nextRunAtMs: z.ZodOptional; runningRunId: z.ZodOptional>, z.ZodTransform>>; lastRunAtMs: z.ZodOptional; lastRunStatus: z.ZodOptional>; lastError: z.ZodOptional; consecutiveFailures: z.ZodOptional; }, z.core.$strict>; export declare const AutomationSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodOptional; projectId: z.ZodOptional>, z.ZodTransform>>; enabled: z.ZodBoolean; 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.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">; 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">; safety: z.ZodOptional; }, z.core.$strict>>; conversationMode: z.ZodDefault>; 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>>; reliability: z.ZodOptional; retryCount: z.ZodOptional; maxConcurrentRuns: z.ZodOptional; disableAfterConsecutiveFailures: z.ZodOptional; }, z.core.$strict>>; management: z.ZodOptional>; runnable: z.ZodBoolean; deletable: z.ZodBoolean; }, z.core.$strict>>; state: z.ZodDefault; runningRunId: z.ZodOptional>, z.ZodTransform>>; lastRunAtMs: z.ZodOptional; lastRunStatus: z.ZodOptional>; lastError: z.ZodOptional; consecutiveFailures: z.ZodOptional; }, z.core.$strict>>; createdAtMs: z.ZodNumber; updatedAtMs: z.ZodNumber; }, z.core.$strict>; export declare const CreateAutomationSchema: z.ZodObject<{ projectId: z.ZodOptional>, z.ZodTransform>>; name: z.ZodString; 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">; 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>>; 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.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">; safety: z.ZodOptional; }, z.core.$strict>>; conversationMode: z.ZodDefault>; reliability: z.ZodOptional; retryCount: z.ZodOptional; maxConcurrentRuns: z.ZodOptional; disableAfterConsecutiveFailures: z.ZodOptional; }, z.core.$strict>>; management: z.ZodOptional>; runnable: z.ZodBoolean; deletable: z.ZodBoolean; }, z.core.$strict>>; id: z.ZodOptional>, z.ZodTransform>>; enabled: z.ZodOptional; state: z.ZodOptional>; runningRunId: z.ZodOptional>, z.ZodTransform>>>; lastRunAtMs: z.ZodOptional>; lastRunStatus: z.ZodOptional>>; lastError: z.ZodOptional>; consecutiveFailures: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>; export declare const UpdateAutomationSchema: z.ZodObject<{ 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>; 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">>; safety: z.ZodOptional; }, z.core.$strict>>>; reliability: z.ZodOptional; retryCount: z.ZodOptional; maxConcurrentRuns: z.ZodOptional; disableAfterConsecutiveFailures: z.ZodOptional; }, z.core.$strict>>>; management: z.ZodOptional>; runnable: z.ZodBoolean; deletable: z.ZodBoolean; }, 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>>>; state: z.ZodOptional; runningRunId: z.ZodOptional>, z.ZodTransform>>; lastRunAtMs: z.ZodOptional; lastRunStatus: z.ZodOptional>; lastError: z.ZodOptional; consecutiveFailures: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; export type CreateAutomationInput = z.infer; export type UpdateAutomationInput = z.infer;