/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 328cab4f7342
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { MessageEntries$inboundSchema, } from "./messageentries.js";
/** @internal */
export const ConversationMessages$inboundSchema = z.object({
    object: z.literal("conversation.messages").default("conversation.messages"),
    conversation_id: z.string(),
    messages: z.array(MessageEntries$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "conversation_id": "conversationId",
    });
});
export function conversationMessagesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ConversationMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConversationMessages' from JSON`);
}
//# sourceMappingURL=conversationmessages.js.map