/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 87846762af20
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { smartUnion } from "../../types/smartUnion.js";
import * as components from "../components/index.js";
/** @internal */
export const AgentsApiV1ConversationsGetRequest$outboundSchema = z.object({
    conversationId: z.string(),
}).transform((v) => {
    return remap$(v, {
        conversationId: "conversation_id",
    });
});
export function agentsApiV1ConversationsGetRequestToJSON(agentsApiV1ConversationsGetRequest) {
    return JSON.stringify(AgentsApiV1ConversationsGetRequest$outboundSchema.parse(agentsApiV1ConversationsGetRequest));
}
/** @internal */
export const ResponseV1ConversationsGet$inboundSchema = smartUnion([
    components.ModelConversation$inboundSchema,
    components.AgentConversation$inboundSchema,
]);
export function responseV1ConversationsGetFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ResponseV1ConversationsGet$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseV1ConversationsGet' from JSON`);
}
//# sourceMappingURL=agentsapiv1conversationsget.js.map