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

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

export const WorkflowEventType = {
  WorkflowExecutionStarted: "WORKFLOW_EXECUTION_STARTED",
  WorkflowExecutionCompleted: "WORKFLOW_EXECUTION_COMPLETED",
  WorkflowExecutionFailed: "WORKFLOW_EXECUTION_FAILED",
  WorkflowExecutionCanceled: "WORKFLOW_EXECUTION_CANCELED",
  WorkflowExecutionContinuedAsNew: "WORKFLOW_EXECUTION_CONTINUED_AS_NEW",
  WorkflowTaskTimedOut: "WORKFLOW_TASK_TIMED_OUT",
  WorkflowTaskFailed: "WORKFLOW_TASK_FAILED",
  CustomTaskStarted: "CUSTOM_TASK_STARTED",
  CustomTaskInProgress: "CUSTOM_TASK_IN_PROGRESS",
  CustomTaskCompleted: "CUSTOM_TASK_COMPLETED",
  CustomTaskFailed: "CUSTOM_TASK_FAILED",
  CustomTaskTimedOut: "CUSTOM_TASK_TIMED_OUT",
  CustomTaskCanceled: "CUSTOM_TASK_CANCELED",
  ActivityTaskStarted: "ACTIVITY_TASK_STARTED",
  ActivityTaskCompleted: "ACTIVITY_TASK_COMPLETED",
  ActivityTaskRetrying: "ACTIVITY_TASK_RETRYING",
  ActivityTaskFailed: "ACTIVITY_TASK_FAILED",
} as const;
export type WorkflowEventType = ClosedEnum<typeof WorkflowEventType>;

/** @internal */
export const WorkflowEventType$outboundSchema: z.ZodEnum<
  typeof WorkflowEventType
> = z.enum(WorkflowEventType);
