/* * 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 { SDKValidationError } from "./sdk-validation-error.js"; export type CreditBreakdown = { free?: string | undefined; purchased?: string | undefined; }; /** @internal */ export const CreditBreakdown$inboundSchema: z.ZodMiniType< CreditBreakdown, unknown > = z.object({ free: types.optional(types.string()), purchased: types.optional(types.string()), }); export function creditBreakdownFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => CreditBreakdown$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreditBreakdown' from JSON`, ); }