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

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

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

export function agentsApiV1AgentsDeleteAliasRequestToJSON(
  agentsApiV1AgentsDeleteAliasRequest: AgentsApiV1AgentsDeleteAliasRequest,
): string {
  return JSON.stringify(
    AgentsApiV1AgentsDeleteAliasRequest$outboundSchema.parse(
      agentsApiV1AgentsDeleteAliasRequest,
    ),
  );
}
