/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: f02a6cef9993 */ import * as z from "zod/v4"; import { ClosedEnum } from "../../types/enums.js"; export type ResolveGlobals = { /** * Workspace name. Platform API keys already select a workspace; other authentication methods can configure it once on the SDK client. */ workspace?: string | undefined; }; /** * Target platform to resolve the manager for */ export const ResolvePlatform = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Target platform to resolve the manager for */ export type ResolvePlatform = ClosedEnum; export type ResolveRequest = { /** * Target platform to resolve the manager for */ platform: ResolvePlatform; /** * Project ID or name. Required for user and workspace-scoped tokens. Optional for project/deployment-group/deployment-scoped tokens (derived from token scope). */ project?: string | undefined; }; /** @internal */ export const ResolvePlatform$outboundSchema: z.ZodEnum = z.enum(ResolvePlatform); /** @internal */ export type ResolveRequest$Outbound = { platform: string; project?: string | undefined; }; /** @internal */ export const ResolveRequest$outboundSchema: z.ZodType< ResolveRequest$Outbound, ResolveRequest > = z.object({ platform: ResolvePlatform$outboundSchema, project: z.string().optional(), }); export function resolveRequestToJSON(resolveRequest: ResolveRequest): string { return JSON.stringify(ResolveRequest$outboundSchema.parse(resolveRequest)); }