/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: c09e4bbcfb5e */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; export type GetDeploymentV1WorkflowsDeploymentsNameGetRequest = { name: string; /** * Scope serving status to this workflow */ workflowName?: string | null | undefined; }; /** @internal */ export type GetDeploymentV1WorkflowsDeploymentsNameGetRequest$Outbound = { name: string; workflow_name?: string | null | undefined; }; /** @internal */ export const GetDeploymentV1WorkflowsDeploymentsNameGetRequest$outboundSchema: z.ZodType< GetDeploymentV1WorkflowsDeploymentsNameGetRequest$Outbound, GetDeploymentV1WorkflowsDeploymentsNameGetRequest > = z.object({ name: z.string(), workflowName: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { workflowName: "workflow_name", }); }); export function getDeploymentV1WorkflowsDeploymentsNameGetRequestToJSON( getDeploymentV1WorkflowsDeploymentsNameGetRequest: GetDeploymentV1WorkflowsDeploymentsNameGetRequest, ): string { return JSON.stringify( GetDeploymentV1WorkflowsDeploymentsNameGetRequest$outboundSchema.parse( getDeploymentV1WorkflowsDeploymentsNameGetRequest, ), ); }