import * as z from "zod/v3"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ContainerPort } from "./containerport.js"; import { PlanName } from "./planname.js"; export type Env = { value: string; name: string; }; /** * @deprecated enum: This will be removed in a future release, please migrate away from it as soon as possible. */ export declare const DeploymentV1TransportType: { readonly Tcp: "tcp"; readonly Udp: "udp"; readonly Tls: "tls"; }; /** * @deprecated enum: This will be removed in a future release, please migrate away from it as soon as possible. */ export type DeploymentV1TransportType = OpenEnum; /** * Deployment is a versioned configuration for a build that describes runtime behavior. */ export type DeploymentV1 = { /** * Option to shut down processes that have had no new connections or rooms * * @remarks * for five minutes. */ idleTimeoutEnabled?: boolean | undefined; /** * The environment variable that our process will have access to at runtime. */ env: Array; /** * Governs how many [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) can be scheduled in a process. */ roomsPerProcess: number; /** * A plan defines how much CPU and memory is required to run an instance of your game server. * * @remarks * * `tiny`: shared core, 1gb memory * * `small`: 1 core, 2gb memory * * `medium`: 2 core, 4gb memory * * `large`: 4 core, 8gb memory */ planName: PlanName; /** * Additional ports your server listens on. */ additionalContainerPorts: Array; /** * A container port object represents the transport configruations for how your server will listen. */ defaultContainerPort: ContainerPort; /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ transportType: DeploymentV1TransportType; /** * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ containerPort: number; /** * When the deployment was created. */ createdAt: Date; createdBy: string; /** * The amount of memory allocated to your process. */ requestedMemoryMB: number; /** * The number of cores allocated to your process. */ requestedCPU: number; /** * System generated id for a deployment. Increments by 1. */ deploymentId: number; /** * System generated id for a build. Increments by 1. */ buildId: number; /** * System generated unique identifier for an application. */ appId: string; }; /** @internal */ export declare const Env$inboundSchema: z.ZodType; export declare function envFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DeploymentV1TransportType$inboundSchema: z.ZodType; /** @internal */ export declare const DeploymentV1$inboundSchema: z.ZodType; export declare function deploymentV1FromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=deploymentv1.d.ts.map