/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: afb19c640ecc */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; export type ListDeploymentsV1WorkflowsDeploymentsGetRequest = { activeOnly?: boolean | undefined; workflowName?: string | null | undefined; }; /** @internal */ export type ListDeploymentsV1WorkflowsDeploymentsGetRequest$Outbound = { active_only: boolean; workflow_name?: string | null | undefined; }; /** @internal */ export const ListDeploymentsV1WorkflowsDeploymentsGetRequest$outboundSchema: z.ZodType< ListDeploymentsV1WorkflowsDeploymentsGetRequest$Outbound, ListDeploymentsV1WorkflowsDeploymentsGetRequest > = z.object({ activeOnly: z.boolean().default(true), workflowName: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { activeOnly: "active_only", workflowName: "workflow_name", }); }); export function listDeploymentsV1WorkflowsDeploymentsGetRequestToJSON( listDeploymentsV1WorkflowsDeploymentsGetRequest: ListDeploymentsV1WorkflowsDeploymentsGetRequest, ): string { return JSON.stringify( ListDeploymentsV1WorkflowsDeploymentsGetRequest$outboundSchema.parse( listDeploymentsV1WorkflowsDeploymentsGetRequest, ), ); }