/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 5f9c1c20021c
 */

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

export type GetVoiceV1AudioVoicesVoiceIdGetRequest = {
  voiceId: string;
};

/** @internal */
export type GetVoiceV1AudioVoicesVoiceIdGetRequest$Outbound = {
  voice_id: string;
};

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

export function getVoiceV1AudioVoicesVoiceIdGetRequestToJSON(
  getVoiceV1AudioVoicesVoiceIdGetRequest:
    GetVoiceV1AudioVoicesVoiceIdGetRequest,
): string {
  return JSON.stringify(
    GetVoiceV1AudioVoicesVoiceIdGetRequest$outboundSchema.parse(
      getVoiceV1AudioVoicesVoiceIdGetRequest,
    ),
  );
}
