import { z } from "zod"; export declare const AutomationRunStatusSchema: z.ZodEnum<{ cancelled: "cancelled"; failed: "failed"; running: "running"; succeeded: "succeeded"; timed_out: "timed_out"; }>; export type AutomationRunStatus = z.infer; export declare const AutomationRunSummarySchema: z.ZodObject<{ id: z.ZodString; automationRunKey: z.ZodString; status: z.ZodEnum<{ cancelled: "cancelled"; failed: "failed"; running: "running"; succeeded: "succeeded"; timed_out: "timed_out"; }>; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>; export type AutomationRunSummary = z.infer; /** * A single automation run. Extends the run summary surfaced on automation list * items with scheduling and failure fields. The run's underlying execution * thread is intentionally not exposed: those threads are hidden and not * readable through the public API. */ export declare const AutomationRunSchema: z.ZodObject<{ id: z.ZodString; automationRunKey: z.ZodString; status: z.ZodEnum<{ cancelled: "cancelled"; failed: "failed"; running: "running"; succeeded: "succeeded"; timed_out: "timed_out"; }>; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; scheduledAt: z.ZodNullable; dueAt: z.ZodNullable; errorMessage: z.ZodNullable; }, z.core.$strip>; export type AutomationRun = z.infer; /** * An automation run including its owning automation ID, returned when fetching a * single run (where the automation is not otherwise implied by the response). */ export declare const AutomationRunDetailSchema: z.ZodObject<{ id: z.ZodString; automationRunKey: z.ZodString; status: z.ZodEnum<{ cancelled: "cancelled"; failed: "failed"; running: "running"; succeeded: "succeeded"; timed_out: "timed_out"; }>; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; scheduledAt: z.ZodNullable; dueAt: z.ZodNullable; errorMessage: z.ZodNullable; automationId: z.ZodString; }, z.core.$strip>; export type AutomationRunDetail = z.infer; export declare const AutomationKindSchema: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; export type AutomationKind = z.infer; export declare const AutomationSignalTypeSchema: z.ZodEnum<{ expression_matched: "expression_matched"; }>; export type AutomationSignalType = z.infer; export declare const AUTOMATION_DESCRIPTION_MAX_CHARACTERS = 2000; export declare const AUTOMATION_DESCRIPTION_LIMIT_MESSAGE: string; export declare const AutomationSchema: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; name: z.ZodString; description: z.ZodNullable; kind: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; scriptId: z.ZodNullable; scriptName: z.ZodNullable; signalDefinitionId: z.ZodNullable; signalType: z.ZodNullable>; source: z.ZodEnum<{ custom: "custom"; sazabi_managed: "sazabi_managed"; }>; enabled: z.ZodBoolean; cronExpression: z.ZodNullable; timezone: z.ZodString; timeoutSeconds: z.ZodNullable; health: z.ZodEnum<{ failing: "failing"; healthy: "healthy"; never_run: "never_run"; }>; lastRun: z.ZodNullable; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>>; successRate: z.ZodNullable; runCount: z.ZodNumber; failedRunCount: z.ZodNumber; }, z.core.$strip>; export type Automation = z.infer; export declare const AutomationDetailSchema: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; name: z.ZodString; description: z.ZodNullable; kind: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; scriptId: z.ZodNullable; scriptName: z.ZodNullable; signalDefinitionId: z.ZodNullable; signalType: z.ZodNullable>; source: z.ZodEnum<{ custom: "custom"; sazabi_managed: "sazabi_managed"; }>; enabled: z.ZodBoolean; cronExpression: z.ZodNullable; timezone: z.ZodString; timeoutSeconds: z.ZodNullable; health: z.ZodEnum<{ failing: "failing"; healthy: "healthy"; never_run: "never_run"; }>; lastRun: z.ZodNullable; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>>; successRate: z.ZodNullable; runCount: z.ZodNumber; failedRunCount: z.ZodNumber; createdAt: z.ZodString; updatedAt: z.ZodString; recordedHistoryStartsAt: z.ZodString; scriptIdentifier: z.ZodNullable; canToggle: z.ZodBoolean; }, z.core.$strip>; export type AutomationDetail = z.infer; export declare const ListAutomationsInputSchema: z.ZodObject<{ projectId: z.ZodOptional; search: z.ZodOptional; status: z.ZodOptional>; health: z.ZodOptional>; source: z.ZodOptional>; sort: z.ZodDefault>; limit: z.ZodDefault>; cursor: z.ZodOptional; }, z.core.$strip>; export type ListAutomationsInput = z.infer; export declare const ListAutomationsOutputSchema: z.ZodObject<{ automations: z.ZodArray; kind: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; scriptId: z.ZodNullable; scriptName: z.ZodNullable; signalDefinitionId: z.ZodNullable; signalType: z.ZodNullable>; source: z.ZodEnum<{ custom: "custom"; sazabi_managed: "sazabi_managed"; }>; enabled: z.ZodBoolean; cronExpression: z.ZodNullable; timezone: z.ZodString; timeoutSeconds: z.ZodNullable; health: z.ZodEnum<{ failing: "failing"; healthy: "healthy"; never_run: "never_run"; }>; lastRun: z.ZodNullable; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>>; successRate: z.ZodNullable; runCount: z.ZodNumber; failedRunCount: z.ZodNumber; }, z.core.$strip>>; nextCursor: z.ZodNullable; }, z.core.$strip>; export type ListAutomationsOutput = z.infer; export declare const GetAutomationInputSchema: z.ZodObject<{ automationId: z.ZodString; projectId: z.ZodOptional; }, z.core.$strip>; export type GetAutomationInput = z.infer; export declare const GetAutomationOutputSchema: z.ZodObject<{ automation: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; name: z.ZodString; description: z.ZodNullable; kind: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; scriptId: z.ZodNullable; scriptName: z.ZodNullable; signalDefinitionId: z.ZodNullable; signalType: z.ZodNullable>; source: z.ZodEnum<{ custom: "custom"; sazabi_managed: "sazabi_managed"; }>; enabled: z.ZodBoolean; cronExpression: z.ZodNullable; timezone: z.ZodString; timeoutSeconds: z.ZodNullable; health: z.ZodEnum<{ failing: "failing"; healthy: "healthy"; never_run: "never_run"; }>; lastRun: z.ZodNullable; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>>; successRate: z.ZodNullable; runCount: z.ZodNumber; failedRunCount: z.ZodNumber; createdAt: z.ZodString; updatedAt: z.ZodString; recordedHistoryStartsAt: z.ZodString; scriptIdentifier: z.ZodNullable; canToggle: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>; export type GetAutomationOutput = z.infer; export declare const CreateAutomationInputSchema: z.ZodObject<{ projectId: z.ZodOptional; name: z.ZodString; description: z.ZodOptional>; scriptId: z.ZodOptional; script: z.ZodOptional; expressionId: z.ZodOptional; cronExpression: z.ZodOptional; timezone: z.ZodOptional; timeoutSeconds: z.ZodOptional>; enabled: z.ZodOptional; }, z.core.$strip>; export type CreateAutomationInput = z.infer; export declare const CreateAutomationOutputSchema: z.ZodObject<{ automation: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; name: z.ZodString; description: z.ZodNullable; kind: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; scriptId: z.ZodNullable; scriptName: z.ZodNullable; signalDefinitionId: z.ZodNullable; signalType: z.ZodNullable>; source: z.ZodEnum<{ custom: "custom"; sazabi_managed: "sazabi_managed"; }>; enabled: z.ZodBoolean; cronExpression: z.ZodNullable; timezone: z.ZodString; timeoutSeconds: z.ZodNullable; health: z.ZodEnum<{ failing: "failing"; healthy: "healthy"; never_run: "never_run"; }>; lastRun: z.ZodNullable; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>>; successRate: z.ZodNullable; runCount: z.ZodNumber; failedRunCount: z.ZodNumber; createdAt: z.ZodString; updatedAt: z.ZodString; recordedHistoryStartsAt: z.ZodString; scriptIdentifier: z.ZodNullable; canToggle: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>; export type CreateAutomationOutput = z.infer; export declare const UpdateAutomationInputSchema: z.ZodObject<{ automationId: z.ZodString; projectId: z.ZodOptional; name: z.ZodOptional; description: z.ZodOptional>; cronExpression: z.ZodOptional; timezone: z.ZodOptional; timeoutSeconds: z.ZodOptional>; }, z.core.$strip>; export type UpdateAutomationInput = z.infer; export declare const UpdateAutomationOutputSchema: z.ZodObject<{ automation: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; name: z.ZodString; description: z.ZodNullable; kind: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; scriptId: z.ZodNullable; scriptName: z.ZodNullable; signalDefinitionId: z.ZodNullable; signalType: z.ZodNullable>; source: z.ZodEnum<{ custom: "custom"; sazabi_managed: "sazabi_managed"; }>; enabled: z.ZodBoolean; cronExpression: z.ZodNullable; timezone: z.ZodString; timeoutSeconds: z.ZodNullable; health: z.ZodEnum<{ failing: "failing"; healthy: "healthy"; never_run: "never_run"; }>; lastRun: z.ZodNullable; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>>; successRate: z.ZodNullable; runCount: z.ZodNumber; failedRunCount: z.ZodNumber; createdAt: z.ZodString; updatedAt: z.ZodString; recordedHistoryStartsAt: z.ZodString; scriptIdentifier: z.ZodNullable; canToggle: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>; export type UpdateAutomationOutput = z.infer; export declare const EnableAutomationInputSchema: z.ZodObject<{ automationId: z.ZodString; projectId: z.ZodOptional; }, z.core.$strip>; export type EnableAutomationInput = z.infer; export declare const EnableAutomationOutputSchema: z.ZodObject<{ automation: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; name: z.ZodString; description: z.ZodNullable; kind: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; scriptId: z.ZodNullable; scriptName: z.ZodNullable; signalDefinitionId: z.ZodNullable; signalType: z.ZodNullable>; source: z.ZodEnum<{ custom: "custom"; sazabi_managed: "sazabi_managed"; }>; enabled: z.ZodBoolean; cronExpression: z.ZodNullable; timezone: z.ZodString; timeoutSeconds: z.ZodNullable; health: z.ZodEnum<{ failing: "failing"; healthy: "healthy"; never_run: "never_run"; }>; lastRun: z.ZodNullable; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>>; successRate: z.ZodNullable; runCount: z.ZodNumber; failedRunCount: z.ZodNumber; createdAt: z.ZodString; updatedAt: z.ZodString; recordedHistoryStartsAt: z.ZodString; scriptIdentifier: z.ZodNullable; canToggle: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>; export type EnableAutomationOutput = z.infer; export declare const DisableAutomationInputSchema: z.ZodObject<{ automationId: z.ZodString; projectId: z.ZodOptional; }, z.core.$strip>; export type DisableAutomationInput = z.infer; export declare const DisableAutomationOutputSchema: z.ZodObject<{ automation: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; name: z.ZodString; description: z.ZodNullable; kind: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; scriptId: z.ZodNullable; scriptName: z.ZodNullable; signalDefinitionId: z.ZodNullable; signalType: z.ZodNullable>; source: z.ZodEnum<{ custom: "custom"; sazabi_managed: "sazabi_managed"; }>; enabled: z.ZodBoolean; cronExpression: z.ZodNullable; timezone: z.ZodString; timeoutSeconds: z.ZodNullable; health: z.ZodEnum<{ failing: "failing"; healthy: "healthy"; never_run: "never_run"; }>; lastRun: z.ZodNullable; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>>; successRate: z.ZodNullable; runCount: z.ZodNumber; failedRunCount: z.ZodNumber; createdAt: z.ZodString; updatedAt: z.ZodString; recordedHistoryStartsAt: z.ZodString; scriptIdentifier: z.ZodNullable; canToggle: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>; export type DisableAutomationOutput = z.infer; export declare const DeleteAutomationInputSchema: z.ZodObject<{ automationId: z.ZodString; projectId: z.ZodOptional; }, z.core.$strip>; export type DeleteAutomationInput = z.infer; export declare const DeleteAutomationOutputSchema: z.ZodVoid; export type DeleteAutomationOutput = z.infer; export declare const listAutomations: import("../orpc-contracts/index.js").OperationDefinition; search: z.ZodOptional; status: z.ZodOptional>; health: z.ZodOptional>; source: z.ZodOptional>; sort: z.ZodDefault>; limit: z.ZodDefault>; cursor: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ automations: z.ZodArray; kind: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; scriptId: z.ZodNullable; scriptName: z.ZodNullable; signalDefinitionId: z.ZodNullable; signalType: z.ZodNullable>; source: z.ZodEnum<{ custom: "custom"; sazabi_managed: "sazabi_managed"; }>; enabled: z.ZodBoolean; cronExpression: z.ZodNullable; timezone: z.ZodString; timeoutSeconds: z.ZodNullable; health: z.ZodEnum<{ failing: "failing"; healthy: "healthy"; never_run: "never_run"; }>; lastRun: z.ZodNullable; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>>; successRate: z.ZodNullable; runCount: z.ZodNumber; failedRunCount: z.ZodNumber; }, z.core.$strip>>; nextCursor: z.ZodNullable; }, z.core.$strip>, "api">; export declare const getAutomation: import("../orpc-contracts/index.js").OperationDefinition; }, z.core.$strip>, z.ZodObject<{ automation: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; name: z.ZodString; description: z.ZodNullable; kind: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; scriptId: z.ZodNullable; scriptName: z.ZodNullable; signalDefinitionId: z.ZodNullable; signalType: z.ZodNullable>; source: z.ZodEnum<{ custom: "custom"; sazabi_managed: "sazabi_managed"; }>; enabled: z.ZodBoolean; cronExpression: z.ZodNullable; timezone: z.ZodString; timeoutSeconds: z.ZodNullable; health: z.ZodEnum<{ failing: "failing"; healthy: "healthy"; never_run: "never_run"; }>; lastRun: z.ZodNullable; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>>; successRate: z.ZodNullable; runCount: z.ZodNumber; failedRunCount: z.ZodNumber; createdAt: z.ZodString; updatedAt: z.ZodString; recordedHistoryStartsAt: z.ZodString; scriptIdentifier: z.ZodNullable; canToggle: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>, "api">; export declare const createAutomation: import("../orpc-contracts/index.js").OperationDefinition; name: z.ZodString; description: z.ZodOptional>; scriptId: z.ZodOptional; script: z.ZodOptional; expressionId: z.ZodOptional; cronExpression: z.ZodOptional; timezone: z.ZodOptional; timeoutSeconds: z.ZodOptional>; enabled: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ automation: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; name: z.ZodString; description: z.ZodNullable; kind: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; scriptId: z.ZodNullable; scriptName: z.ZodNullable; signalDefinitionId: z.ZodNullable; signalType: z.ZodNullable>; source: z.ZodEnum<{ custom: "custom"; sazabi_managed: "sazabi_managed"; }>; enabled: z.ZodBoolean; cronExpression: z.ZodNullable; timezone: z.ZodString; timeoutSeconds: z.ZodNullable; health: z.ZodEnum<{ failing: "failing"; healthy: "healthy"; never_run: "never_run"; }>; lastRun: z.ZodNullable; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>>; successRate: z.ZodNullable; runCount: z.ZodNumber; failedRunCount: z.ZodNumber; createdAt: z.ZodString; updatedAt: z.ZodString; recordedHistoryStartsAt: z.ZodString; scriptIdentifier: z.ZodNullable; canToggle: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>, "api">; export declare const updateAutomation: import("../orpc-contracts/index.js").OperationDefinition; name: z.ZodOptional; description: z.ZodOptional>; cronExpression: z.ZodOptional; timezone: z.ZodOptional; timeoutSeconds: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ automation: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; name: z.ZodString; description: z.ZodNullable; kind: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; scriptId: z.ZodNullable; scriptName: z.ZodNullable; signalDefinitionId: z.ZodNullable; signalType: z.ZodNullable>; source: z.ZodEnum<{ custom: "custom"; sazabi_managed: "sazabi_managed"; }>; enabled: z.ZodBoolean; cronExpression: z.ZodNullable; timezone: z.ZodString; timeoutSeconds: z.ZodNullable; health: z.ZodEnum<{ failing: "failing"; healthy: "healthy"; never_run: "never_run"; }>; lastRun: z.ZodNullable; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>>; successRate: z.ZodNullable; runCount: z.ZodNumber; failedRunCount: z.ZodNumber; createdAt: z.ZodString; updatedAt: z.ZodString; recordedHistoryStartsAt: z.ZodString; scriptIdentifier: z.ZodNullable; canToggle: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>, "api">; export declare const enableAutomation: import("../orpc-contracts/index.js").OperationDefinition; }, z.core.$strip>, z.ZodObject<{ automation: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; name: z.ZodString; description: z.ZodNullable; kind: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; scriptId: z.ZodNullable; scriptName: z.ZodNullable; signalDefinitionId: z.ZodNullable; signalType: z.ZodNullable>; source: z.ZodEnum<{ custom: "custom"; sazabi_managed: "sazabi_managed"; }>; enabled: z.ZodBoolean; cronExpression: z.ZodNullable; timezone: z.ZodString; timeoutSeconds: z.ZodNullable; health: z.ZodEnum<{ failing: "failing"; healthy: "healthy"; never_run: "never_run"; }>; lastRun: z.ZodNullable; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>>; successRate: z.ZodNullable; runCount: z.ZodNumber; failedRunCount: z.ZodNumber; createdAt: z.ZodString; updatedAt: z.ZodString; recordedHistoryStartsAt: z.ZodString; scriptIdentifier: z.ZodNullable; canToggle: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>, "api">; export declare const disableAutomation: import("../orpc-contracts/index.js").OperationDefinition; }, z.core.$strip>, z.ZodObject<{ automation: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; name: z.ZodString; description: z.ZodNullable; kind: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; scriptId: z.ZodNullable; scriptName: z.ZodNullable; signalDefinitionId: z.ZodNullable; signalType: z.ZodNullable>; source: z.ZodEnum<{ custom: "custom"; sazabi_managed: "sazabi_managed"; }>; enabled: z.ZodBoolean; cronExpression: z.ZodNullable; timezone: z.ZodString; timeoutSeconds: z.ZodNullable; health: z.ZodEnum<{ failing: "failing"; healthy: "healthy"; never_run: "never_run"; }>; lastRun: z.ZodNullable; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>>; successRate: z.ZodNullable; runCount: z.ZodNumber; failedRunCount: z.ZodNumber; createdAt: z.ZodString; updatedAt: z.ZodString; recordedHistoryStartsAt: z.ZodString; scriptIdentifier: z.ZodNullable; canToggle: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>, "api">; export declare const deleteAutomation: import("../orpc-contracts/index.js").OperationDefinition; }, z.core.$strip>, z.ZodVoid, "api">; export declare const ListAutomationRunsInputSchema: z.ZodObject<{ automationId: z.ZodString; projectId: z.ZodOptional; status: z.ZodOptional, z.ZodArray>]>>; cursor: z.ZodOptional; limit: z.ZodDefault>; }, z.core.$strip>; export type ListAutomationRunsInput = z.infer; export declare const ListAutomationRunsOutputSchema: z.ZodObject<{ runs: z.ZodArray; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; scheduledAt: z.ZodNullable; dueAt: z.ZodNullable; errorMessage: z.ZodNullable; }, z.core.$strip>>; nextCursor: z.ZodNullable; recordedHistoryStartsAt: z.ZodString; }, z.core.$strip>; export type ListAutomationRunsOutput = z.infer; export declare const GetAutomationRunInputSchema: z.ZodObject<{ automationId: z.ZodString; runId: z.ZodString; projectId: z.ZodOptional; }, z.core.$strip>; export type GetAutomationRunInput = z.infer; export declare const GetAutomationRunOutputSchema: z.ZodObject<{ run: z.ZodObject<{ id: z.ZodString; automationRunKey: z.ZodString; status: z.ZodEnum<{ cancelled: "cancelled"; failed: "failed"; running: "running"; succeeded: "succeeded"; timed_out: "timed_out"; }>; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; scheduledAt: z.ZodNullable; dueAt: z.ZodNullable; errorMessage: z.ZodNullable; automationId: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; export type GetAutomationRunOutput = z.infer; export declare const listAutomationRuns: import("../orpc-contracts/index.js").OperationDefinition; status: z.ZodOptional, z.ZodArray>]>>; cursor: z.ZodOptional; limit: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ runs: z.ZodArray; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; scheduledAt: z.ZodNullable; dueAt: z.ZodNullable; errorMessage: z.ZodNullable; }, z.core.$strip>>; nextCursor: z.ZodNullable; recordedHistoryStartsAt: z.ZodString; }, z.core.$strip>, "api">; export declare const getAutomationRun: import("../orpc-contracts/index.js").OperationDefinition; }, z.core.$strip>, z.ZodObject<{ run: z.ZodObject<{ id: z.ZodString; automationRunKey: z.ZodString; status: z.ZodEnum<{ cancelled: "cancelled"; failed: "failed"; running: "running"; succeeded: "succeeded"; timed_out: "timed_out"; }>; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; scheduledAt: z.ZodNullable; dueAt: z.ZodNullable; errorMessage: z.ZodNullable; automationId: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, "api">; /** * Execution status of the sandbox command that produced an automation run's * captured output. Mirrors the database `sandbox_command_status` enum, defined * here so the contract package does not depend on the server schema. */ export declare const AutomationRunCommandStatusSchema: z.ZodEnum<{ failed: "failed"; queued: "queued"; running: "running"; succeeded: "succeeded"; timed_out: "timed_out"; }>; export type AutomationRunCommandStatus = z.infer; /** * Captured stdout/stderr for a single automation run. The run's hidden * execution thread is never exposed; these logs come from the run's sandbox * command. When the command's output exceeded the inline preview limit, the * full payload is read from durable storage and `truncated` is true. */ export declare const AutomationRunLogsSchema: z.ZodObject<{ stdout: z.ZodString; stderr: z.ZodString; exitCode: z.ZodNullable; status: z.ZodEnum<{ failed: "failed"; queued: "queued"; running: "running"; succeeded: "succeeded"; timed_out: "timed_out"; }>; truncated: z.ZodBoolean; startedAt: z.ZodNullable; completedAt: z.ZodNullable; durationMs: z.ZodNullable; }, z.core.$strip>; export type AutomationRunLogs = z.infer; export declare const GetAutomationRunLogsInputSchema: z.ZodObject<{ automationId: z.ZodString; runId: z.ZodString; projectId: z.ZodOptional; }, z.core.$strip>; export type GetAutomationRunLogsInput = z.infer; export declare const GetAutomationRunLogsOutputSchema: z.ZodObject<{ logs: z.ZodObject<{ stdout: z.ZodString; stderr: z.ZodString; exitCode: z.ZodNullable; status: z.ZodEnum<{ failed: "failed"; queued: "queued"; running: "running"; succeeded: "succeeded"; timed_out: "timed_out"; }>; truncated: z.ZodBoolean; startedAt: z.ZodNullable; completedAt: z.ZodNullable; durationMs: z.ZodNullable; }, z.core.$strip>; }, z.core.$strip>; export type GetAutomationRunLogsOutput = z.infer; export declare const getAutomationRunLogs: import("../orpc-contracts/index.js").OperationDefinition; }, z.core.$strip>, z.ZodObject<{ logs: z.ZodObject<{ stdout: z.ZodString; stderr: z.ZodString; exitCode: z.ZodNullable; status: z.ZodEnum<{ failed: "failed"; queued: "queued"; running: "running"; succeeded: "succeeded"; timed_out: "timed_out"; }>; truncated: z.ZodBoolean; startedAt: z.ZodNullable; completedAt: z.ZodNullable; durationMs: z.ZodNullable; }, z.core.$strip>; }, z.core.$strip>, "api">; export declare const automationsContract: { readonly list: import("@orpc/contract").ContractProcedure; search: z.ZodOptional; status: z.ZodOptional>; health: z.ZodOptional>; source: z.ZodOptional>; sort: z.ZodDefault>; limit: z.ZodDefault>; cursor: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ automations: z.ZodArray; kind: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; scriptId: z.ZodNullable; scriptName: z.ZodNullable; signalDefinitionId: z.ZodNullable; signalType: z.ZodNullable>; source: z.ZodEnum<{ custom: "custom"; sazabi_managed: "sazabi_managed"; }>; enabled: z.ZodBoolean; cronExpression: z.ZodNullable; timezone: z.ZodString; timeoutSeconds: z.ZodNullable; health: z.ZodEnum<{ failing: "failing"; healthy: "healthy"; never_run: "never_run"; }>; lastRun: z.ZodNullable; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>>; successRate: z.ZodNullable; runCount: z.ZodNumber; failedRunCount: z.ZodNumber; }, z.core.$strip>>; nextCursor: z.ZodNullable; }, z.core.$strip>, Record, import("../orpc-contracts/index.js").OperationContractMetadata<"api">>; readonly get: import("@orpc/contract").ContractProcedure; }, z.core.$strip>, z.ZodObject<{ automation: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; name: z.ZodString; description: z.ZodNullable; kind: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; scriptId: z.ZodNullable; scriptName: z.ZodNullable; signalDefinitionId: z.ZodNullable; signalType: z.ZodNullable>; source: z.ZodEnum<{ custom: "custom"; sazabi_managed: "sazabi_managed"; }>; enabled: z.ZodBoolean; cronExpression: z.ZodNullable; timezone: z.ZodString; timeoutSeconds: z.ZodNullable; health: z.ZodEnum<{ failing: "failing"; healthy: "healthy"; never_run: "never_run"; }>; lastRun: z.ZodNullable; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>>; successRate: z.ZodNullable; runCount: z.ZodNumber; failedRunCount: z.ZodNumber; createdAt: z.ZodString; updatedAt: z.ZodString; recordedHistoryStartsAt: z.ZodString; scriptIdentifier: z.ZodNullable; canToggle: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>, Record, import("../orpc-contracts/index.js").OperationContractMetadata<"api">>; readonly create: import("@orpc/contract").ContractProcedure; name: z.ZodString; description: z.ZodOptional>; scriptId: z.ZodOptional; script: z.ZodOptional; expressionId: z.ZodOptional; cronExpression: z.ZodOptional; timezone: z.ZodOptional; timeoutSeconds: z.ZodOptional>; enabled: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ automation: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; name: z.ZodString; description: z.ZodNullable; kind: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; scriptId: z.ZodNullable; scriptName: z.ZodNullable; signalDefinitionId: z.ZodNullable; signalType: z.ZodNullable>; source: z.ZodEnum<{ custom: "custom"; sazabi_managed: "sazabi_managed"; }>; enabled: z.ZodBoolean; cronExpression: z.ZodNullable; timezone: z.ZodString; timeoutSeconds: z.ZodNullable; health: z.ZodEnum<{ failing: "failing"; healthy: "healthy"; never_run: "never_run"; }>; lastRun: z.ZodNullable; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>>; successRate: z.ZodNullable; runCount: z.ZodNumber; failedRunCount: z.ZodNumber; createdAt: z.ZodString; updatedAt: z.ZodString; recordedHistoryStartsAt: z.ZodString; scriptIdentifier: z.ZodNullable; canToggle: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>, Record, import("../orpc-contracts/index.js").OperationContractMetadata<"api">>; readonly update: import("@orpc/contract").ContractProcedure; name: z.ZodOptional; description: z.ZodOptional>; cronExpression: z.ZodOptional; timezone: z.ZodOptional; timeoutSeconds: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ automation: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; name: z.ZodString; description: z.ZodNullable; kind: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; scriptId: z.ZodNullable; scriptName: z.ZodNullable; signalDefinitionId: z.ZodNullable; signalType: z.ZodNullable>; source: z.ZodEnum<{ custom: "custom"; sazabi_managed: "sazabi_managed"; }>; enabled: z.ZodBoolean; cronExpression: z.ZodNullable; timezone: z.ZodString; timeoutSeconds: z.ZodNullable; health: z.ZodEnum<{ failing: "failing"; healthy: "healthy"; never_run: "never_run"; }>; lastRun: z.ZodNullable; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>>; successRate: z.ZodNullable; runCount: z.ZodNumber; failedRunCount: z.ZodNumber; createdAt: z.ZodString; updatedAt: z.ZodString; recordedHistoryStartsAt: z.ZodString; scriptIdentifier: z.ZodNullable; canToggle: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>, Record, import("../orpc-contracts/index.js").OperationContractMetadata<"api">>; readonly enable: import("@orpc/contract").ContractProcedure; }, z.core.$strip>, z.ZodObject<{ automation: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; name: z.ZodString; description: z.ZodNullable; kind: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; scriptId: z.ZodNullable; scriptName: z.ZodNullable; signalDefinitionId: z.ZodNullable; signalType: z.ZodNullable>; source: z.ZodEnum<{ custom: "custom"; sazabi_managed: "sazabi_managed"; }>; enabled: z.ZodBoolean; cronExpression: z.ZodNullable; timezone: z.ZodString; timeoutSeconds: z.ZodNullable; health: z.ZodEnum<{ failing: "failing"; healthy: "healthy"; never_run: "never_run"; }>; lastRun: z.ZodNullable; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>>; successRate: z.ZodNullable; runCount: z.ZodNumber; failedRunCount: z.ZodNumber; createdAt: z.ZodString; updatedAt: z.ZodString; recordedHistoryStartsAt: z.ZodString; scriptIdentifier: z.ZodNullable; canToggle: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>, Record, import("../orpc-contracts/index.js").OperationContractMetadata<"api">>; readonly disable: import("@orpc/contract").ContractProcedure; }, z.core.$strip>, z.ZodObject<{ automation: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; name: z.ZodString; description: z.ZodNullable; kind: z.ZodEnum<{ log_match: "log_match"; script: "script"; }>; scriptId: z.ZodNullable; scriptName: z.ZodNullable; signalDefinitionId: z.ZodNullable; signalType: z.ZodNullable>; source: z.ZodEnum<{ custom: "custom"; sazabi_managed: "sazabi_managed"; }>; enabled: z.ZodBoolean; cronExpression: z.ZodNullable; timezone: z.ZodString; timeoutSeconds: z.ZodNullable; health: z.ZodEnum<{ failing: "failing"; healthy: "healthy"; never_run: "never_run"; }>; lastRun: z.ZodNullable; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; }, z.core.$strip>>; successRate: z.ZodNullable; runCount: z.ZodNumber; failedRunCount: z.ZodNumber; createdAt: z.ZodString; updatedAt: z.ZodString; recordedHistoryStartsAt: z.ZodString; scriptIdentifier: z.ZodNullable; canToggle: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>, Record, import("../orpc-contracts/index.js").OperationContractMetadata<"api">>; readonly delete: import("@orpc/contract").ContractProcedure; }, z.core.$strip>, z.ZodVoid, Record, import("../orpc-contracts/index.js").OperationContractMetadata<"api">>; readonly runs: { readonly list: import("@orpc/contract").ContractProcedure; status: z.ZodOptional, z.ZodArray>]>>; cursor: z.ZodOptional; limit: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ runs: z.ZodArray; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; scheduledAt: z.ZodNullable; dueAt: z.ZodNullable; errorMessage: z.ZodNullable; }, z.core.$strip>>; nextCursor: z.ZodNullable; recordedHistoryStartsAt: z.ZodString; }, z.core.$strip>, Record, import("../orpc-contracts/index.js").OperationContractMetadata<"api">>; readonly get: import("@orpc/contract").ContractProcedure; }, z.core.$strip>, z.ZodObject<{ run: z.ZodObject<{ id: z.ZodString; automationRunKey: z.ZodString; status: z.ZodEnum<{ cancelled: "cancelled"; failed: "failed"; running: "running"; succeeded: "succeeded"; timed_out: "timed_out"; }>; startedAt: z.ZodString; completedAt: z.ZodNullable; durationMs: z.ZodNullable; exitCode: z.ZodNullable; scheduledAt: z.ZodNullable; dueAt: z.ZodNullable; errorMessage: z.ZodNullable; automationId: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, Record, import("../orpc-contracts/index.js").OperationContractMetadata<"api">>; readonly logs: import("@orpc/contract").ContractProcedure; }, z.core.$strip>, z.ZodObject<{ logs: z.ZodObject<{ stdout: z.ZodString; stderr: z.ZodString; exitCode: z.ZodNullable; status: z.ZodEnum<{ failed: "failed"; queued: "queued"; running: "running"; succeeded: "succeeded"; timed_out: "timed_out"; }>; truncated: z.ZodBoolean; startedAt: z.ZodNullable; completedAt: z.ZodNullable; durationMs: z.ZodNullable; }, z.core.$strip>; }, z.core.$strip>, Record, import("../orpc-contracts/index.js").OperationContractMetadata<"api">>; }; };