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

import * as z from "zod/v4";
import { smartUnion } from "../../types/smartUnion.js";
import {
  InputEntries,
  InputEntries$Outbound,
  InputEntries$outboundSchema,
} from "./inputentries.js";

export type ConversationInputs = string | Array<InputEntries>;

/** @internal */
export type ConversationInputs$Outbound = string | Array<InputEntries$Outbound>;

/** @internal */
export const ConversationInputs$outboundSchema: z.ZodType<
  ConversationInputs$Outbound,
  ConversationInputs
> = smartUnion([z.string(), z.array(InputEntries$outboundSchema)]);

export function conversationInputsToJSON(
  conversationInputs: ConversationInputs,
): string {
  return JSON.stringify(
    ConversationInputs$outboundSchema.parse(conversationInputs),
  );
}
