/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: f37a685950ba
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const VoiceResponse$inboundSchema = z
    .object({
    name: z.string(),
    slug: z.nullable(z.string()).optional(),
    languages: 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(),
    color: z.nullable(z.string()).optional(),
    description: z.nullable(z.string()).optional(),
    retention_notice: z.int().default(30),
    id: z.string(),
    created_at: z.iso.datetime({ offset: true }).transform(v => new Date(v)),
    user_id: z.nullable(z.string()),
    trimmed_seconds: z.nullable(z.number()).optional(),
}).transform((v) => {
    return remap$(v, {
        "retention_notice": "retentionNotice",
        "created_at": "createdAt",
        "user_id": "userId",
        "trimmed_seconds": "trimmedSeconds",
    });
});
export function voiceResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => VoiceResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VoiceResponse' from JSON`);
}
//# sourceMappingURL=voiceresponse.js.map