operations/workflow-status
@sarj-ai/workspace-sync/operations/workflow-status ยท Source
import { z } from "zod";export declare const WorkflowProviderStatusSchema: z.ZodEnum<{ complete: "complete"; errored: "errored"; paused: "paused"; queued: "queued"; rollingBack: "rollingBack"; running: "running"; terminated: "terminated"; unknown: "unknown"; waiting: "waiting"; waitingForPause: "waitingForPause";}>;export type WorkflowProviderStatus = z.output<typeof WorkflowProviderStatusSchema>;export declare const OperationWorkflowStatusSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ instanceId: z.ZodString; providerStatus: z.ZodEnum<{ queued: "queued"; rollingBack: "rollingBack"; running: "running"; waiting: "waiting"; }>; state: z.ZodLiteral<"pending">;}, z.core.$strict>, z.ZodObject<{ instanceId: z.ZodString; providerStatus: z.ZodEnum<{ paused: "paused"; waitingForPause: "waitingForPause"; }>; state: z.ZodLiteral<"paused">;}, z.core.$strict>, z.ZodObject<{ instanceId: z.ZodString; error: z.ZodNullable<z.ZodObject<{ message: z.ZodString; name: z.ZodString; }, z.core.$strict>>; providerStatus: z.ZodEnum<{ errored: "errored"; terminated: "terminated"; }>; state: z.ZodLiteral<"failed">;}, z.core.$strict>, z.ZodObject<{ instanceId: z.ZodString; planHash: z.ZodString; providerStatus: z.ZodLiteral<"complete">; state: z.ZodLiteral<"succeeded">; units: z.ZodArray<z.ZodObject<{ id: z.ZodString; state: z.ZodEnum<{ applied: "applied"; audited: "audited"; disabled: "disabled"; skipped: "skipped"; }>; }, z.core.$strict>>;}, z.core.$strict>, z.ZodObject<{ instanceId: z.ZodString; providerStatus: z.ZodLiteral<"unknown">; state: z.ZodLiteral<"unknown">;}, z.core.$strict>], "state">;export type OperationWorkflowStatus = z.output<typeof OperationWorkflowStatusSchema>;export declare class WorkflowRunConflictError extends Error { readonly code = "workflow_paused"; readonly providerStatus: "paused" | "waitingForPause"; constructor(providerStatus: "paused" | "waitingForPause", options?: ErrorOptions);}