/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { lazySchema as lazySchema$, safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RequestCountAllocation = { unify?: number | undefined; proxy?: number | undefined; vault?: number | undefined; }; /** @internal */ export const RequestCountAllocation$inboundSchema: z.ZodType< RequestCountAllocation, z.ZodTypeDef, unknown > = /* @__PURE__ */ lazySchema$(() => z.object({ unify: types.optional(types.number()), proxy: types.optional(types.number()), vault: types.optional(types.number()), }) ); export function requestCountAllocationFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => RequestCountAllocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestCountAllocation' from JSON`, ); }