/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: f3fea10576e3
 */

import * as z from "zod/v4";
import * as openEnums from "../../types/enums.js";
import { OpenEnum } from "../../types/enums.js";

export const WorkflowExecutionStatus = {
  Running: "RUNNING",
  Completed: "COMPLETED",
  Failed: "FAILED",
  Canceled: "CANCELED",
  Terminated: "TERMINATED",
  ContinuedAsNew: "CONTINUED_AS_NEW",
  TimedOut: "TIMED_OUT",
  RetryingAfterError: "RETRYING_AFTER_ERROR",
} as const;
export type WorkflowExecutionStatus = OpenEnum<typeof WorkflowExecutionStatus>;

/** @internal */
export const WorkflowExecutionStatus$inboundSchema: z.ZodType<
  WorkflowExecutionStatus,
  unknown
> = openEnums.inboundSchema(WorkflowExecutionStatus);
/** @internal */
export const WorkflowExecutionStatus$outboundSchema: z.ZodType<
  string,
  WorkflowExecutionStatus
> = openEnums.outboundSchema(WorkflowExecutionStatus);
