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

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

/**
 * Server side events sent when streaming a conversation response.
 */
export const SSETypes = {
  ConversationResponseStarted: "conversation.response.started",
  ConversationResponseDone: "conversation.response.done",
  ConversationResponseError: "conversation.response.error",
  MessageOutputDelta: "message.output.delta",
  ToolExecutionStarted: "tool.execution.started",
  ToolExecutionDelta: "tool.execution.delta",
  ToolExecutionDone: "tool.execution.done",
  AgentHandoffStarted: "agent.handoff.started",
  AgentHandoffDone: "agent.handoff.done",
  FunctionCallDelta: "function.call.delta",
} as const;
/**
 * Server side events sent when streaming a conversation response.
 */
export type SSETypes = ClosedEnum<typeof SSETypes>;

/** @internal */
export const SSETypes$inboundSchema: z.ZodNativeEnum<typeof SSETypes> = z
  .nativeEnum(SSETypes);
