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

import * as z from "zod/v3";
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,
  z.ZodTypeDef,
  ConversationInputs
> = z.union([z.string(), z.array(InputEntries$outboundSchema)]);

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