/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: f9951db63b2a */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; export type SetDeploymentReleaseChannelGlobals = { /** * 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 SetDeploymentReleaseChannelRequestBody = { channel: string; }; export type SetDeploymentReleaseChannelRequest = { /** * Unique identifier for the deployment. */ id: string; requestBody?: SetDeploymentReleaseChannelRequestBody | undefined; }; /** @internal */ export type SetDeploymentReleaseChannelRequestBody$Outbound = { channel: string; }; /** @internal */ export const SetDeploymentReleaseChannelRequestBody$outboundSchema: z.ZodType< SetDeploymentReleaseChannelRequestBody$Outbound, SetDeploymentReleaseChannelRequestBody > = z.object({ channel: z.string(), }); export function setDeploymentReleaseChannelRequestBodyToJSON( setDeploymentReleaseChannelRequestBody: SetDeploymentReleaseChannelRequestBody, ): string { return JSON.stringify( SetDeploymentReleaseChannelRequestBody$outboundSchema.parse( setDeploymentReleaseChannelRequestBody, ), ); } /** @internal */ export type SetDeploymentReleaseChannelRequest$Outbound = { id: string; RequestBody?: SetDeploymentReleaseChannelRequestBody$Outbound | undefined; }; /** @internal */ export const SetDeploymentReleaseChannelRequest$outboundSchema: z.ZodType< SetDeploymentReleaseChannelRequest$Outbound, SetDeploymentReleaseChannelRequest > = z.object({ id: z.string(), requestBody: z.lazy(() => SetDeploymentReleaseChannelRequestBody$outboundSchema ).optional(), }).transform((v) => { return remap$(v, { requestBody: "RequestBody", }); }); export function setDeploymentReleaseChannelRequestToJSON( setDeploymentReleaseChannelRequest: SetDeploymentReleaseChannelRequest, ): string { return JSON.stringify( SetDeploymentReleaseChannelRequest$outboundSchema.parse( setDeploymentReleaseChannelRequest, ), ); }