import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AuthConfiguration } from "./authconfiguration.js"; import { Build } from "./build.js"; import { ContainerPort } from "./containerport.js"; import { LoadBalancerConfig } from "./loadbalancerconfig.js"; import { ProcessAutoscalerConfig } from "./processautoscalerconfig.js"; import { StaticProcessAllocationConfig } from "./staticprocessallocationconfig.js"; export type ServiceConfig = { /** * The configuration for the Process Autoscaler for this application. * * @remarks * Autoscaling must be enabled on a per-region basis. * EXPERIMENTAL - This feature is in closed beta. */ processAutoscalerConfig?: ProcessAutoscalerConfig | undefined; loadBalancer?: LoadBalancerConfig | undefined; /** * The headroom configuration for each region. */ staticProcessAllocation: Array; }; export type ApplicationWithLatestDeploymentAndBuildDeprecatedEnv = { value: string; name: string; }; export type Deployment = { /** * Option to shut down processes that have had no new connections or rooms * * @remarks * for five minutes. */ idleTimeoutEnabled: boolean; /** * 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; /** * Additional ports your server listens on. */ additionalContainerPorts: Array; /** * A container port object represents the transport configruations for how your server will listen. */ defaultContainerPort: ContainerPort; /** * 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; /** * A build represents a game server artifact and its associated metadata. */ build: Build; }; /** * An application object is the top level namespace for the game server. */ export type ApplicationWithLatestDeploymentAndBuildDeprecated = { /** * The email address or token id for the user that deleted the application. */ deletedBy: string | null; /** * When the application was deleted. */ deletedAt: Date | null; /** * When the application was created. */ createdAt: Date; createdBy: string; /** * System generated unique identifier for an organization. Not guaranteed to have a specific format. */ orgId: string; serviceConfig: ServiceConfig | null; /** * Configure [player authentication](https://hathora.dev/docs/backend-integrations/lobbies-and-matchmaking/auth-service) for your application. Use Hathora's built-in auth providers or use your own [custom authentication](https://hathora.dev/docs/lobbies-and-matchmaking/auth-service#custom-auth-provider). */ authConfiguration: AuthConfiguration; /** * Secret that is used for identity and access management. */ appSecret: string; /** * System generated unique identifier for an application. */ appId: string; /** * Readable name for an application. Must be unique within an organization. */ appName: string; deployment?: Deployment | undefined; }; /** @internal */ export declare const ServiceConfig$inboundSchema: z.ZodType; export declare function serviceConfigFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ApplicationWithLatestDeploymentAndBuildDeprecatedEnv$inboundSchema: z.ZodType; export declare function applicationWithLatestDeploymentAndBuildDeprecatedEnvFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Deployment$inboundSchema: z.ZodType; export declare function deploymentFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ApplicationWithLatestDeploymentAndBuildDeprecated$inboundSchema: z.ZodType; export declare function applicationWithLatestDeploymentAndBuildDeprecatedFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=applicationwithlatestdeploymentandbuilddeprecated.d.ts.map