/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: dae7394b974a */ 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 DrainMachinesMachineResponse = { machineId: string; requested: boolean; }; /** @internal */ export const DrainMachinesMachineResponse$inboundSchema: z.ZodType< DrainMachinesMachineResponse, unknown > = z.object({ machineId: z.string(), requested: z.boolean(), }); export function drainMachinesMachineResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DrainMachinesMachineResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DrainMachinesMachineResponse' from JSON`, ); }