/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: fa57119b8e69
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { smartUnion } from "../../types/smartUnion.js";
/** @internal */
export const AgentVersion$outboundSchema = smartUnion([z.int(), z.string()]);
export function agentVersionToJSON(agentVersion) {
    return JSON.stringify(AgentVersion$outboundSchema.parse(agentVersion));
}
/** @internal */
export const AgentsApiV1AgentsGetRequest$outboundSchema = z.object({
    agentId: z.string(),
    agentVersion: z.nullable(smartUnion([z.int(), z.string()])).optional(),
}).transform((v) => {
    return remap$(v, {
        agentId: "agent_id",
        agentVersion: "agent_version",
    });
});
export function agentsApiV1AgentsGetRequestToJSON(agentsApiV1AgentsGetRequest) {
    return JSON.stringify(AgentsApiV1AgentsGetRequest$outboundSchema.parse(agentsApiV1AgentsGetRequest));
}
//# sourceMappingURL=agentsapiv1agentsget.js.map