/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: b7da07665f42 */ import * as z from "zod/v4"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type BillingLimits = { maxDeployments: number | null; maxProjects: number | null; maxSeats: number | null; maxCustomDomains: number | null; creditUsd: number | null; seatsIncluded: number | null; }; /** @internal */ export const BillingLimits$inboundSchema: z.ZodType = z .object({ maxDeployments: z.nullable(z.number()), maxProjects: z.nullable(z.number()), maxSeats: z.nullable(z.number()), maxCustomDomains: z.nullable(z.number()), creditUsd: z.nullable(z.number()), seatsIncluded: z.nullable(z.number()), }); export function billingLimitsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => BillingLimits$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BillingLimits' from JSON`, ); }