/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: e84b5a56ac79 */ import * as z from "zod/v4"; import { ClosedEnum } from "../../types/enums.js"; export type GetReleaseGlobals = { /** * Workspace name. Platform API keys already select a workspace; other authentication methods can configure it once on the SDK client. */ workspace?: string | undefined; }; export const GetReleaseInclude = { Project: "project", Rollout: "rollout", CreatedBy: "createdBy", } as const; export type GetReleaseInclude = ClosedEnum; export type GetReleaseRequest = { /** * Unique identifier for the release. */ id: string; /** * Optional fields to include: project, rollout */ include?: Array | undefined; }; /** @internal */ export const GetReleaseInclude$outboundSchema: z.ZodEnum< typeof GetReleaseInclude > = z.enum(GetReleaseInclude); /** @internal */ export type GetReleaseRequest$Outbound = { id: string; include?: Array | undefined; }; /** @internal */ export const GetReleaseRequest$outboundSchema: z.ZodType< GetReleaseRequest$Outbound, GetReleaseRequest > = z.object({ id: z.string(), include: z.array(GetReleaseInclude$outboundSchema).optional(), }); export function getReleaseRequestToJSON( getReleaseRequest: GetReleaseRequest, ): string { return JSON.stringify( GetReleaseRequest$outboundSchema.parse(getReleaseRequest), ); }