/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as types from "../../types/primitives.js"; import { EventCostInfo, EventCostInfo$inboundSchema, } from "./event-cost-info.js"; import { SDKValidationError } from "./sdk-validation-error.js"; export type GetHuggingFaceBillingDataResponse = { requests?: Array | undefined; }; /** @internal */ export const GetHuggingFaceBillingDataResponse$inboundSchema: z.ZodMiniType< GetHuggingFaceBillingDataResponse, unknown > = z.object({ requests: types.optional(z.array(EventCostInfo$inboundSchema)), }); export function getHuggingFaceBillingDataResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => GetHuggingFaceBillingDataResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetHuggingFaceBillingDataResponse' from JSON`, ); }