/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
import { CreateOpenAIConversation$inboundSchema, CreateOpenAIConversation$outboundSchema, } from "./createopenaiconversation.js";
import { CreateSupportCopilotConversation$inboundSchema, CreateSupportCopilotConversation$outboundSchema, } from "./createsupportcopilotconversation.js";
import { CreateSupportTicketConversation$inboundSchema, CreateSupportTicketConversation$outboundSchema, } from "./createsupportticketconversation.js";
/** @internal */
export const CreateConversation$inboundSchema = z.union([
    CreateOpenAIConversation$inboundSchema,
    CreateSupportTicketConversation$inboundSchema,
    CreateSupportCopilotConversation$inboundSchema,
]);
/** @internal */
export const CreateConversation$outboundSchema = z.union([
    CreateOpenAIConversation$outboundSchema,
    CreateSupportTicketConversation$outboundSchema,
    CreateSupportCopilotConversation$outboundSchema,
]);
export function createConversationToJSON(createConversation) {
    return JSON.stringify(CreateConversation$outboundSchema.parse(createConversation));
}
export function createConversationFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateConversation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateConversation' from JSON`);
}
//# sourceMappingURL=createconversation.js.map