@thegeem/protocol 0.1.12 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -83,8 +83,9 @@ var ClientMsg = import_zod.z.discriminatedUnion("t", [
83
83
  // Host's IN-PROGRESS category selection in the lobby — a live preview for waiting
84
84
  // players. Distinct from startGame.categoryIds, which COMMITS the board. Empty = cleared.
85
85
  import_zod.z.object({ t: import_zod.z.literal("setCategories"), categoryIds: import_zod.z.array(import_zod.z.string().max(60)).max(12) }),
86
- // Host defines the lobby teams players can join (1–12). Resets picks that fall out of range.
87
- import_zod.z.object({ t: import_zod.z.literal("setTeams"), teams: import_zod.z.array(DisplayName).min(1).max(LIMITS.MAX_PLAYERS) }),
86
+ // Host defines the lobby teams players can join (0–12; empty = disband back to the
87
+ // one-team-per-player default). Resets picks that fall out of range.
88
+ import_zod.z.object({ t: import_zod.z.literal("setTeams"), teams: import_zod.z.array(DisplayName).max(LIMITS.MAX_PLAYERS) }),
88
89
  // A player joins team slot `teamIndex` (0-based, into the host's `setTeams` list).
89
90
  import_zod.z.object({ t: import_zod.z.literal("pickTeam"), teamIndex: import_zod.z.number().int().min(0).max(LIMITS.MAX_PLAYERS - 1) }),
90
91
  // Host's IN-PROGRESS mode selection in the lobby — a live preview so waiting players see which mode
package/dist/index.d.cts CHANGED
@@ -592,6 +592,7 @@ type ServerMsg = {
592
592
  } | {
593
593
  t: 'serverNotice';
594
594
  message: string;
595
+ level?: 'info' | 'warn' | 'maintenance';
595
596
  restartInSec?: number;
596
597
  } | {
597
598
  t: 'error';
package/dist/index.d.ts CHANGED
@@ -592,6 +592,7 @@ type ServerMsg = {
592
592
  } | {
593
593
  t: 'serverNotice';
594
594
  message: string;
595
+ level?: 'info' | 'warn' | 'maintenance';
595
596
  restartInSec?: number;
596
597
  } | {
597
598
  t: 'error';
package/dist/index.js CHANGED
@@ -52,8 +52,9 @@ var ClientMsg = z.discriminatedUnion("t", [
52
52
  // Host's IN-PROGRESS category selection in the lobby — a live preview for waiting
53
53
  // players. Distinct from startGame.categoryIds, which COMMITS the board. Empty = cleared.
54
54
  z.object({ t: z.literal("setCategories"), categoryIds: z.array(z.string().max(60)).max(12) }),
55
- // Host defines the lobby teams players can join (1–12). Resets picks that fall out of range.
56
- z.object({ t: z.literal("setTeams"), teams: z.array(DisplayName).min(1).max(LIMITS.MAX_PLAYERS) }),
55
+ // Host defines the lobby teams players can join (0–12; empty = disband back to the
56
+ // one-team-per-player default). Resets picks that fall out of range.
57
+ z.object({ t: z.literal("setTeams"), teams: z.array(DisplayName).max(LIMITS.MAX_PLAYERS) }),
57
58
  // A player joins team slot `teamIndex` (0-based, into the host's `setTeams` list).
58
59
  z.object({ t: z.literal("pickTeam"), teamIndex: z.number().int().min(0).max(LIMITS.MAX_PLAYERS - 1) }),
59
60
  // Host's IN-PROGRESS mode selection in the lobby — a live preview so waiting players see which mode
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thegeem/protocol",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "description": "Geem's wire protocol — shared zod schemas + TypeScript types for talking to the Geem game server over Socket.IO. The source of truth all clients implement against.",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://geem.tv",