import { z } from 'zod'; import { aq as IdPrefixes, Z as VolumeFormat, Y as RuntimeType, ad as ContainerStrategy, V as RestartPolicy } from '../../channels-db8da32e.js'; /** * Generate a Zod schema for an ID prefix * @param prefix - Prefix of the ID * @returns A Zod schema that resolve to a valid ID * @public * * @example * ```ts * const patSchema = hopId('pat'); * const pat = patSchema.parse(possiblyAPat); * * // `pat` is now a valid token typed as `Id<'pat'>` * pat; // => pat_NTIzNzY2NjU2NjU1ODkyNDk * ``` */ declare function hopId(prefix: Prefix): z.ZodEffects; declare const presetFormSchema: z.ZodObject<{ v: z.ZodLiteral<1>; fields: z.ZodArray; default: z.ZodOptional; autogen: z.ZodOptional>; max_length: z.ZodOptional; validator: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "string"; default?: string | undefined; autogen?: "PROJECT_NAMESPACE" | "SECURE_TOKEN" | undefined; max_length?: number | undefined; validator?: string | undefined; }, { type: "string"; default?: string | undefined; autogen?: "PROJECT_NAMESPACE" | "SECURE_TOKEN" | undefined; max_length?: number | undefined; validator?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"range">; default: z.ZodOptional; min: z.ZodNumber; max: z.ZodNumber; increment: z.ZodOptional; unit: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "range"; min: number; max: number; default?: number | undefined; increment?: number | undefined; unit?: string | undefined; }, { type: "range"; min: number; max: number; default?: number | undefined; increment?: number | undefined; unit?: string | undefined; }>]>; title: z.ZodString; required: z.ZodDefault>; description: z.ZodOptional; map_to: z.ZodArray; key: z.ZodString; }, "strip", z.ZodTypeAny, { type: "env"; key: string; }, { type: "env"; key: string; }>, z.ZodObject<{ type: z.ZodLiteral<"volume_size">; }, "strip", z.ZodTypeAny, { type: "volume_size"; }, { type: "volume_size"; }>]>, "many">; }, "strip", z.ZodTypeAny, { input: { type: "string"; default?: string | undefined; autogen?: "PROJECT_NAMESPACE" | "SECURE_TOKEN" | undefined; max_length?: number | undefined; validator?: string | undefined; } | { type: "range"; min: number; max: number; default?: number | undefined; increment?: number | undefined; unit?: string | undefined; }; title: string; required: boolean; map_to: ({ type: "env"; key: string; } | { type: "volume_size"; })[]; description?: string | undefined; }, { input: { type: "string"; default?: string | undefined; autogen?: "PROJECT_NAMESPACE" | "SECURE_TOKEN" | undefined; max_length?: number | undefined; validator?: string | undefined; } | { type: "range"; min: number; max: number; default?: number | undefined; increment?: number | undefined; unit?: string | undefined; }; title: string; map_to: ({ type: "env"; key: string; } | { type: "volume_size"; })[]; required?: boolean | undefined; description?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { v: 1; fields: { input: { type: "string"; default?: string | undefined; autogen?: "PROJECT_NAMESPACE" | "SECURE_TOKEN" | undefined; max_length?: number | undefined; validator?: string | undefined; } | { type: "range"; min: number; max: number; default?: number | undefined; increment?: number | undefined; unit?: string | undefined; }; title: string; required: boolean; map_to: ({ type: "env"; key: string; } | { type: "volume_size"; })[]; description?: string | undefined; }[]; }, { v: 1; fields: { input: { type: "string"; default?: string | undefined; autogen?: "PROJECT_NAMESPACE" | "SECURE_TOKEN" | undefined; max_length?: number | undefined; validator?: string | undefined; } | { type: "range"; min: number; max: number; default?: number | undefined; increment?: number | undefined; unit?: string | undefined; }; title: string; map_to: ({ type: "env"; key: string; } | { type: "volume_size"; })[]; required?: boolean | undefined; description?: string | undefined; }[]; }>; declare const deploymentMetaDataSchema: z.ZodObject<{ preset: z.ZodOptional; next_steps_dismissed: z.ZodOptional; container_port_mappings: z.ZodOptional>>; created_first_gateway: z.ZodOptional; ignored_boarding: z.ZodOptional; max_container_storage: z.ZodOptional; }, "strip", z.ZodTypeAny, { preset?: string | undefined; next_steps_dismissed?: boolean | undefined; container_port_mappings?: Record> | undefined; created_first_gateway?: boolean | undefined; ignored_boarding?: boolean | undefined; max_container_storage?: string | undefined; }, { preset?: string | undefined; next_steps_dismissed?: boolean | undefined; container_port_mappings?: Record> | undefined; created_first_gateway?: boolean | undefined; ignored_boarding?: boolean | undefined; max_container_storage?: string | undefined; }>; declare const volumeFormatSchema: z.ZodNativeEnum; declare const volumeSchema: z.ZodObject<{ fs: z.ZodNativeEnum; size: z.ZodEffects, `${number}GB` | `${number}MB` | `${number}KB` | `${number}B`, string>, `${number}GB` | `${number}MB` | `${number}KB` | `${number}B`, string>, string, string>; mountpath: z.ZodString; }, "strip", z.ZodTypeAny, { size: string; fs: VolumeFormat; mountpath: string; }, { size: string; fs: VolumeFormat; mountpath: string; }>; declare const buildSettingsSchema: z.ZodObject<{ root_directory: z.ZodUnion<[z.ZodString, z.ZodEffects, string, string>]>; }, "strip", z.ZodTypeAny, { root_directory: string; }, { root_directory: string; }>; declare const deploymentRuntimeTypeSchema: z.ZodNativeEnum; declare const containerResourcesSchema: z.ZodObject<{ vcpu: z.ZodOptional; cpu: z.ZodOptional; ram: z.ZodEffects, `${number}GB` | `${number}MB` | `${number}KB` | `${number}B`, string>, `${number}GB` | `${number}MB` | `${number}KB` | `${number}B`, string>, string, string>; }, "strip", z.ZodTypeAny, { ram: string; vcpu?: number | undefined; cpu?: number | undefined; }, { ram: string; vcpu?: number | undefined; cpu?: number | undefined; }>; declare const deploymentEnvSchema: z.ZodOptional>; declare const containerStrategySchema: z.ZodNativeEnum; declare const deploymentNameSchema: z.ZodString; declare const restartPolicySchema: z.ZodNativeEnum; declare const deploymentConfigSchema: z.ZodObject<{ version: z.ZodDefault; restart_policy: z.ZodDefault>>; type: z.ZodNativeEnum; cmd: z.ZodOptional>; image: z.ZodUnion<[z.ZodObject<{ name: z.ZodString; auth: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { name: string; auth?: { username: string; password: string; } | null | undefined; }, { name: string; auth?: { username: string; password: string; } | null | undefined; }>, z.ZodObject<{ name: z.ZodOptional; gh_repo: z.ZodObject<{ repo_id: z.ZodNumber; full_name: z.ZodString; branch: z.ZodString; }, "strip", z.ZodTypeAny, { repo_id: number; full_name: string; branch: string; }, { repo_id: number; full_name: string; branch: string; }>; auth: z.ZodOptional; }, "strip", z.ZodTypeAny, { gh_repo: { repo_id: number; full_name: string; branch: string; }; name?: string | undefined; auth?: null | undefined; }, { gh_repo: { repo_id: number; full_name: string; branch: string; }; name?: string | undefined; auth?: null | undefined; }>]>; volume: z.ZodOptional; size: z.ZodEffects, `${number}GB` | `${number}MB` | `${number}KB` | `${number}B`, string>, `${number}GB` | `${number}MB` | `${number}KB` | `${number}B`, string>, string, string>; mountpath: z.ZodString; }, "strip", z.ZodTypeAny, { size: string; fs: VolumeFormat; mountpath: string; }, { size: string; fs: VolumeFormat; mountpath: string; }>>; env: z.ZodOptional>; entrypoint: z.ZodNullable>, string[] | null, string[] | undefined>>; container_strategy: z.ZodDefault>>; resources: z.ZodObject<{ vcpu: z.ZodOptional; cpu: z.ZodOptional; ram: z.ZodEffects, `${number}GB` | `${number}MB` | `${number}KB` | `${number}B`, string>, `${number}GB` | `${number}MB` | `${number}KB` | `${number}B`, string>, string, string>; }, "strip", z.ZodTypeAny, { ram: string; vcpu?: number | undefined; cpu?: number | undefined; }, { ram: string; vcpu?: number | undefined; cpu?: number | undefined; }>; }, "strip", z.ZodTypeAny, { container_strategy: ContainerStrategy; type: RuntimeType; version: string; image: ({ name: string; auth?: { username: string; password: string; } | null | undefined; } | { gh_repo: { repo_id: number; full_name: string; branch: string; }; name?: string | undefined; auth?: null | undefined; }) & ({ name: string; auth?: { username: string; password: string; } | null | undefined; } | { gh_repo: { repo_id: number; full_name: string; branch: string; }; name?: string | undefined; auth?: null | undefined; } | undefined); resources: { ram: string; vcpu?: number | undefined; cpu?: number | undefined; }; restart_policy: RestartPolicy; entrypoint: string[] | null; cmd?: string[] | undefined; volume?: { size: string; fs: VolumeFormat; mountpath: string; } | undefined; env?: Record | undefined; }, { type: RuntimeType; image: ({ name: string; auth?: { username: string; password: string; } | null | undefined; } | { gh_repo: { repo_id: number; full_name: string; branch: string; }; name?: string | undefined; auth?: null | undefined; }) & ({ name: string; auth?: { username: string; password: string; } | null | undefined; } | { gh_repo: { repo_id: number; full_name: string; branch: string; }; name?: string | undefined; auth?: null | undefined; } | undefined); resources: { ram: string; vcpu?: number | undefined; cpu?: number | undefined; }; version?: string | undefined; restart_policy?: RestartPolicy | undefined; cmd?: string[] | undefined; volume?: { size: string; fs: VolumeFormat; mountpath: string; } | undefined; env?: Record | undefined; entrypoint?: string[] | null | undefined; container_strategy?: ContainerStrategy.MANUAL | undefined; }>; export { buildSettingsSchema, containerResourcesSchema, containerStrategySchema, deploymentConfigSchema, deploymentEnvSchema, deploymentMetaDataSchema, deploymentNameSchema, deploymentRuntimeTypeSchema, hopId, presetFormSchema, restartPolicySchema, volumeFormatSchema, volumeSchema };