/*
 * 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 AgentsApiV1AgentsDeleteRequest = {
  agentId: string;
};

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

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

export function agentsApiV1AgentsDeleteRequestToJSON(
  agentsApiV1AgentsDeleteRequest: AgentsApiV1AgentsDeleteRequest,
): string {
  return JSON.stringify(
    AgentsApiV1AgentsDeleteRequest$outboundSchema.parse(
      agentsApiV1AgentsDeleteRequest,
    ),
  );
}
