import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { RoomAllocation } from "./roomallocation.js"; import { RoomStatus } from "./roomstatus.js"; /** * Metadata on an allocated instance of a room. */ export type CurrentAllocation = { unscheduledAt: Date | null; scheduledAt: Date; /** * System generated unique identifier to a runtime instance of your game server. */ processId: string; /** * System generated unique identifier to an allocated instance of a room. */ roomAllocationId: string; }; /** * A room object represents a game session or match. */ export type Room = { currentAllocation: CurrentAllocation | null; /** * The allocation status of a room. * * @remarks * * `scheduling`: a process is not allocated yet and the room is waiting to be scheduled * * `active`: ready to accept connections * * `destroyed`: all associated metadata is deleted */ status: RoomStatus; allocations: Array; roomConfig?: string | null | undefined; /** * Unique identifier to a game session or match. Use the default system generated ID or overwrite it with your own. * * @remarks * Note: error will be returned if `roomId` is not globally unique. */ roomId: string; /** * System generated unique identifier for an application. */ appId: string; }; /** @internal */ export declare const CurrentAllocation$inboundSchema: z.ZodType; export declare function currentAllocationFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Room$inboundSchema: z.ZodType; export declare function roomFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=room.d.ts.map