/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: fb748863c072 */ import * as z from "zod/v4"; import { ClosedEnum } from "../../types/enums.js"; export type GetDeploymentInfoGlobals = { /** * Workspace name. Platform API keys already select a workspace; other authentication methods can configure it once on the SDK client. */ workspace?: string | undefined; }; /** * Represents the target cloud platform. */ export const GetDeploymentInfoPlatform = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Represents the target cloud platform. */ export type GetDeploymentInfoPlatform = ClosedEnum< typeof GetDeploymentInfoPlatform >; export const GetDeploymentInfoSetupItem = { Deployment: "deployment", Models: "models", Keys: "keys", Bucket: "bucket", Registry: "registry", Sandbox: "sandbox", } as const; export type GetDeploymentInfoSetupItem = ClosedEnum< typeof GetDeploymentInfoSetupItem >; export type GetDeploymentInfoRequest = { /** * Represents the target cloud platform. */ platform?: GetDeploymentInfoPlatform | undefined; setupItem?: GetDeploymentInfoSetupItem | undefined; deploymentId?: string | undefined; updateOperationId?: string | undefined; }; /** @internal */ export const GetDeploymentInfoPlatform$outboundSchema: z.ZodEnum< typeof GetDeploymentInfoPlatform > = z.enum(GetDeploymentInfoPlatform); /** @internal */ export const GetDeploymentInfoSetupItem$outboundSchema: z.ZodEnum< typeof GetDeploymentInfoSetupItem > = z.enum(GetDeploymentInfoSetupItem); /** @internal */ export type GetDeploymentInfoRequest$Outbound = { platform?: string | undefined; setupItem?: string | undefined; deploymentId?: string | undefined; updateOperationId?: string | undefined; }; /** @internal */ export const GetDeploymentInfoRequest$outboundSchema: z.ZodType< GetDeploymentInfoRequest$Outbound, GetDeploymentInfoRequest > = z.object({ platform: GetDeploymentInfoPlatform$outboundSchema.optional(), setupItem: GetDeploymentInfoSetupItem$outboundSchema.optional(), deploymentId: z.string().optional(), updateOperationId: z.string().optional(), }); export function getDeploymentInfoRequestToJSON( getDeploymentInfoRequest: GetDeploymentInfoRequest, ): string { return JSON.stringify( GetDeploymentInfoRequest$outboundSchema.parse(getDeploymentInfoRequest), ); }