/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 6caec15f7618 */ import * as z from "zod/v4"; import { GitMetadata, GitMetadata$Outbound, GitMetadata$outboundSchema, } from "./gitmetadata.js"; import { StackByPlatform, StackByPlatform$Outbound, StackByPlatform$outboundSchema, } from "./stackbyplatform.js"; export type CreateReleaseRequest = { /** * Project ID or name */ project: string; version?: string | undefined; gitMetadata?: GitMetadata | null | undefined; stack?: StackByPlatform | undefined; rootDirectory?: string | null | undefined; channel?: string | undefined; }; /** @internal */ export type CreateReleaseRequest$Outbound = { project: string; version?: string | undefined; gitMetadata?: GitMetadata$Outbound | null | undefined; stack?: StackByPlatform$Outbound | undefined; rootDirectory?: string | null | undefined; channel?: string | undefined; }; /** @internal */ export const CreateReleaseRequest$outboundSchema: z.ZodType< CreateReleaseRequest$Outbound, CreateReleaseRequest > = z.object({ project: z.string(), version: z.string().optional(), gitMetadata: z.nullable(GitMetadata$outboundSchema).optional(), stack: StackByPlatform$outboundSchema.optional(), rootDirectory: z.nullable(z.string()).optional(), channel: z.string().optional(), }); export function createReleaseRequestToJSON( createReleaseRequest: CreateReleaseRequest, ): string { return JSON.stringify( CreateReleaseRequest$outboundSchema.parse(createReleaseRequest), ); }