/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */

import * as z from "zod/v3";
import { remap as remap$ } from "../../lib/primitives.js";

export type AgentsApiV1AgentsGetVersionRequest = {
  agentId: string;
  version: string;
};

/** @internal */
export type AgentsApiV1AgentsGetVersionRequest$Outbound = {
  agent_id: string;
  version: string;
};

/** @internal */
export const AgentsApiV1AgentsGetVersionRequest$outboundSchema: z.ZodType<
  AgentsApiV1AgentsGetVersionRequest$Outbound,
  z.ZodTypeDef,
  AgentsApiV1AgentsGetVersionRequest
> = z.object({
  agentId: z.string(),
  version: z.string(),
}).transform((v) => {
  return remap$(v, {
    agentId: "agent_id",
  });
});

export function agentsApiV1AgentsGetVersionRequestToJSON(
  agentsApiV1AgentsGetVersionRequest: AgentsApiV1AgentsGetVersionRequest,
): string {
  return JSON.stringify(
    AgentsApiV1AgentsGetVersionRequest$outboundSchema.parse(
      agentsApiV1AgentsGetVersionRequest,
    ),
  );
}
