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