/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 82afbbeb4f2b
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { VoiceResponse$inboundSchema } from "./voiceresponse.js";
/** @internal */
export const VoiceListResponse$inboundSchema = z.object({
    items: z.array(VoiceResponse$inboundSchema),
    total: z.int(),
    page: z.int(),
    page_size: z.int(),
    total_pages: z.int(),
}).transform((v) => {
    return remap$(v, {
        "page_size": "pageSize",
        "total_pages": "totalPages",
    });
});
export function voiceListResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => VoiceListResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VoiceListResponse' from JSON`);
}
//# sourceMappingURL=voicelistresponse.js.map