/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 0f59cbc8426c
 */
import * as z from "zod/v4";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const ConversationPayload$inboundSchema = z.object({
    messages: z.array(z.record(z.string(), z.any())),
}).catchall(z.any());
/** @internal */
export const ConversationPayload$outboundSchema = z.object({
    messages: z.array(z.record(z.string(), z.any())),
}).catchall(z.any());
export function conversationPayloadToJSON(conversationPayload) {
    return JSON.stringify(ConversationPayload$outboundSchema.parse(conversationPayload));
}
export function conversationPayloadFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ConversationPayload$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConversationPayload' from JSON`);
}
//# sourceMappingURL=conversationpayload.js.map