/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: e2c4c8683278 */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; import * as models from "../index.js"; export type DrainMachinesMachineGlobals = { /** * Workspace name. Platform API keys already select a workspace; other authentication methods can configure it once on the SDK client. */ workspace?: string | undefined; }; export type DrainMachinesMachineRequest = { /** * Unique identifier for the deployment. */ id: string; machineId: string; drainMachinesMachineRequest?: models.DrainMachinesMachineRequest | undefined; }; /** @internal */ export type DrainMachinesMachineRequest$Outbound = { id: string; machineId: string; DrainMachinesMachineRequest?: | models.DrainMachinesMachineRequest$Outbound | undefined; }; /** @internal */ export const DrainMachinesMachineRequest$outboundSchema: z.ZodType< DrainMachinesMachineRequest$Outbound, DrainMachinesMachineRequest > = z.object({ id: z.string(), machineId: z.string(), drainMachinesMachineRequest: models.DrainMachinesMachineRequest$outboundSchema .optional(), }).transform((v) => { return remap$(v, { drainMachinesMachineRequest: "DrainMachinesMachineRequest", }); }); export function drainMachinesMachineRequestToJSON( drainMachinesMachineRequest: DrainMachinesMachineRequest, ): string { return JSON.stringify( DrainMachinesMachineRequest$outboundSchema.parse( drainMachinesMachineRequest, ), ); }