/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 3f7347d574c1 */ import * as z from "zod/v4"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { DeploymentMachine, DeploymentMachine$inboundSchema, } from "./deploymentmachine.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type ListDeploymentMachinesResponse = { machines: Array; }; /** @internal */ export const ListDeploymentMachinesResponse$inboundSchema: z.ZodType< ListDeploymentMachinesResponse, unknown > = z.object({ machines: z.array(DeploymentMachine$inboundSchema), }); export function listDeploymentMachinesResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ListDeploymentMachinesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDeploymentMachinesResponse' from JSON`, ); }