/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: b894f4e60d06 */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; export type CreateReleaseChannelGlobals = { /** * 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 CreateReleaseChannelRequestBody = { name: string; /** * Unique identifier for the release. */ releaseId?: string | undefined; }; export type CreateReleaseChannelRequest = { /** * Filter by project ID or name. */ project: string; requestBody?: CreateReleaseChannelRequestBody | undefined; }; /** @internal */ export type CreateReleaseChannelRequestBody$Outbound = { name: string; releaseId?: string | undefined; }; /** @internal */ export const CreateReleaseChannelRequestBody$outboundSchema: z.ZodType< CreateReleaseChannelRequestBody$Outbound, CreateReleaseChannelRequestBody > = z.object({ name: z.string(), releaseId: z.string().optional(), }); export function createReleaseChannelRequestBodyToJSON( createReleaseChannelRequestBody: CreateReleaseChannelRequestBody, ): string { return JSON.stringify( CreateReleaseChannelRequestBody$outboundSchema.parse( createReleaseChannelRequestBody, ), ); } /** @internal */ export type CreateReleaseChannelRequest$Outbound = { project: string; RequestBody?: CreateReleaseChannelRequestBody$Outbound | undefined; }; /** @internal */ export const CreateReleaseChannelRequest$outboundSchema: z.ZodType< CreateReleaseChannelRequest$Outbound, CreateReleaseChannelRequest > = z.object({ project: z.string(), requestBody: z.lazy(() => CreateReleaseChannelRequestBody$outboundSchema) .optional(), }).transform((v) => { return remap$(v, { requestBody: "RequestBody", }); }); export function createReleaseChannelRequestToJSON( createReleaseChannelRequest: CreateReleaseChannelRequest, ): string { return JSON.stringify( CreateReleaseChannelRequest$outboundSchema.parse( createReleaseChannelRequest, ), ); }