import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ExposedPort } from "./exposedport.js"; import { ProcessStatus } from "./processstatus.js"; import { Region } from "./region.js"; import { TransportType } from "./transporttype.js"; /** * Connection details for an active process. */ export type ProcessV2ExposedPort = { /** * Transport type specifies the underlying communication protocol to the exposed port. */ transportType: TransportType; port: number; host: string; name: string; }; export type ProcessV2 = { status: ProcessStatus; /** * Tracks the number of rooms that have been allocated to the process. */ roomsAllocated: number; /** * When the process has been terminated. */ terminatedAt: Date | null; /** * When the process is issued to stop. We use this to determine when we should stop billing. */ stoppingAt: Date | null; /** * When the process bound to the specified port. We use this to determine when we should start billing. */ startedAt: Date | null; /** * When the process started being provisioned. */ createdAt: Date; /** * Governs how many [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) can be scheduled in a process. */ roomsPerProcess: number; additionalExposedPorts: Array; exposedPort: ProcessV2ExposedPort | null; region: Region; /** * System generated unique identifier to a runtime instance of your game server. */ processId: string; /** * System generated id for a deployment. Increments by 1. */ deploymentId: number; /** * System generated unique identifier for an application. */ appId: string; }; /** @internal */ export declare const ProcessV2ExposedPort$inboundSchema: z.ZodType; export declare function processV2ExposedPortFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ProcessV2$inboundSchema: z.ZodType; export declare function processV2FromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=processv2.d.ts.map