Provide authenticated owner/operator room controls with live account binding, durable audit and exact saved retries. Pause gates human, bot and automatic writes while preserving recovery, discussion and taking back control. Resume keeps decisions and restores AI pacing. Add directory availability filters and player notices. Verified types, lint, 5223 offline tests, 52 HTTP tests and build. Independent persistence/privacy review and authenticated HTTP acceptance passed. Desktop/mobile browser QA confirmed lost-response refresh/retry makes one audit row and resume restores controls. Existing games preserved. Authenticated deployed admin acceptance remains pending explicit QA access confirmation.
25 lines
712 B
TypeScript
25 lines
712 B
TypeScript
/** Public operational metadata only; never a player view or a saved game. */
|
|
import type { RoomControl } from './room-control';
|
|
export type AdminRoom = {
|
|
code: string;
|
|
version: number;
|
|
updatedAt: number;
|
|
status: 'lobby' | 'setup' | 'playing' | 'finished' | 'unreadable';
|
|
host: string | null;
|
|
players: { id: string; name: string; faction: string; control: 'human' | 'ai' | 'autopilot' }[];
|
|
advanced: boolean;
|
|
preview: boolean;
|
|
expansions: string[];
|
|
modules: string[];
|
|
turn: number | null;
|
|
phase: string;
|
|
pending: { label: string; owners: string[] };
|
|
control: RoomControl;
|
|
};
|
|
export type AdminDirectory = {
|
|
rooms: AdminRoom[];
|
|
total: number;
|
|
page: number;
|
|
pageSize: number;
|
|
};
|