/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 2b9fc5542011 */ 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"; import { DeploymentResponse, DeploymentResponse$inboundSchema, } from "./deploymentresponse.js"; export type DeploymentListResponse = { /** * List of deployments */ deployments: Array; }; /** @internal */ export const DeploymentListResponse$inboundSchema: z.ZodType< DeploymentListResponse, unknown > = z.object({ deployments: z.array(DeploymentResponse$inboundSchema), }); export function deploymentListResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentListResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentListResponse' from JSON`, ); }