/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: ae53ef2e1d1d */ import * as z from "zod/v4"; /** * Request model for partially updating voice metadata. */ export type VoiceUpdateRequest = { name?: string | null | undefined; languages?: Array | null | undefined; gender?: string | null | undefined; age?: number | null | undefined; tags?: Array | null | undefined; }; /** @internal */ export type VoiceUpdateRequest$Outbound = { name?: string | null | undefined; languages?: Array | null | undefined; gender?: string | null | undefined; age?: number | null | undefined; tags?: Array | null | undefined; }; /** @internal */ export const VoiceUpdateRequest$outboundSchema: z.ZodType< VoiceUpdateRequest$Outbound, VoiceUpdateRequest > = z.object({ name: z.nullable(z.string()).optional(), languages: z.nullable(z.array(z.string())).optional(), gender: z.nullable(z.string()).optional(), age: z.nullable(z.int()).optional(), tags: z.nullable(z.array(z.string())).optional(), }); export function voiceUpdateRequestToJSON( voiceUpdateRequest: VoiceUpdateRequest, ): string { return JSON.stringify( VoiceUpdateRequest$outboundSchema.parse(voiceUpdateRequest), ); }