/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 712565e3d6ae */ import * as z from "zod/v4"; import { ClosedEnum } from "../types/enums.js"; export const DeploymentSetupItemSelectionItem = { Deployment: "deployment", Models: "models", Keys: "keys", Bucket: "bucket", Registry: "registry", Sandbox: "sandbox", } as const; export type DeploymentSetupItemSelectionItem = ClosedEnum< typeof DeploymentSetupItemSelectionItem >; export const DeploymentSetupItemSelectionProviderAllowlist = { AwsBedrock: "aws-bedrock", GcpVertex: "gcp-vertex", AzureFoundry: "azure-foundry", Anthropic: "anthropic", Databricks: "databricks", Openai: "openai", } as const; export type DeploymentSetupItemSelectionProviderAllowlist = ClosedEnum< typeof DeploymentSetupItemSelectionProviderAllowlist >; export type DeploymentSetupItemSelection = { item: DeploymentSetupItemSelectionItem; required: boolean; releaseChannel?: string | undefined; /** * Deprecated request shorthand. Use deploymentSetupConfig.policy.allowedAIProviders. */ providerAllowlist?: | Array | undefined; }; /** @internal */ export const DeploymentSetupItemSelectionItem$outboundSchema: z.ZodEnum< typeof DeploymentSetupItemSelectionItem > = z.enum(DeploymentSetupItemSelectionItem); /** @internal */ export const DeploymentSetupItemSelectionProviderAllowlist$outboundSchema: z.ZodEnum = z.enum( DeploymentSetupItemSelectionProviderAllowlist, ); /** @internal */ export type DeploymentSetupItemSelection$Outbound = { item: string; required: boolean; releaseChannel?: string | undefined; providerAllowlist?: Array | undefined; }; /** @internal */ export const DeploymentSetupItemSelection$outboundSchema: z.ZodType< DeploymentSetupItemSelection$Outbound, DeploymentSetupItemSelection > = z.object({ item: DeploymentSetupItemSelectionItem$outboundSchema, required: z.boolean(), releaseChannel: z.string().optional(), providerAllowlist: z.array( DeploymentSetupItemSelectionProviderAllowlist$outboundSchema, ).optional(), }); export function deploymentSetupItemSelectionToJSON( deploymentSetupItemSelection: DeploymentSetupItemSelection, ): string { return JSON.stringify( DeploymentSetupItemSelection$outboundSchema.parse( deploymentSetupItemSelection, ), ); }