@thegeem/protocol 0.1.18 → 0.1.19

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
@@ -87,7 +87,7 @@ var Avatar = import_zod.z.object({
87
87
  });
88
88
  var ClientMsg = import_zod.z.discriminatedUnion("t", [
89
89
  // room / lobby
90
- import_zod.z.object({ t: import_zod.z.literal("createRoom"), name: DisplayName.optional(), avatar: Avatar.optional(), pv: Pv, idToken: IdToken, platform: Platform }),
90
+ import_zod.z.object({ t: import_zod.z.literal("createRoom"), name: DisplayName.optional(), avatar: Avatar.optional(), game: import_zod.z.enum(GAME_IDS).optional(), pv: Pv, idToken: IdToken, platform: Platform }),
91
91
  // Host sets/changes their display name AFTER createRoom (for anonymous one-tap
92
92
  // hosts who started nameless). Host-only; the relay re-broadcasts the lobby.
93
93
  import_zod.z.object({ t: import_zod.z.literal("renameHost"), name: DisplayName }),
package/dist/index.d.cts CHANGED
@@ -96,6 +96,7 @@ declare const ClientMsg: z.ZodDiscriminatedUnion<"t", [z.ZodObject<{
96
96
  emoji: string;
97
97
  color: string;
98
98
  }>>;
99
+ game: z.ZodOptional<z.ZodEnum<["seedha", "snag", "trivia", "dama"]>>;
99
100
  pv: z.ZodOptional<z.ZodNumber>;
100
101
  idToken: z.ZodOptional<z.ZodString>;
101
102
  platform: z.ZodOptional<z.ZodEnum<["web", "ios", "android"]>>;
@@ -106,6 +107,7 @@ declare const ClientMsg: z.ZodDiscriminatedUnion<"t", [z.ZodObject<{
106
107
  emoji: string;
107
108
  color: string;
108
109
  } | undefined;
110
+ game?: "seedha" | "snag" | "trivia" | "dama" | undefined;
109
111
  pv?: number | undefined;
110
112
  idToken?: string | undefined;
111
113
  platform?: "web" | "ios" | "android" | undefined;
@@ -116,6 +118,7 @@ declare const ClientMsg: z.ZodDiscriminatedUnion<"t", [z.ZodObject<{
116
118
  emoji: string;
117
119
  color: string;
118
120
  } | undefined;
121
+ game?: "seedha" | "snag" | "trivia" | "dama" | undefined;
119
122
  pv?: number | undefined;
120
123
  idToken?: string | undefined;
121
124
  platform?: "web" | "ios" | "android" | undefined;
@@ -296,16 +299,16 @@ declare const ClientMsg: z.ZodDiscriminatedUnion<"t", [z.ZodObject<{
296
299
  t: "startGame";
297
300
  categoryIds: string[];
298
301
  totalRounds: number;
299
- modeId?: "snag" | "solo" | "oneDevice" | "multiplayer" | undefined;
300
302
  game?: "seedha" | "snag" | "trivia" | "dama" | undefined;
303
+ modeId?: "snag" | "solo" | "oneDevice" | "multiplayer" | undefined;
301
304
  buzzerMode?: "solo" | "off" | "race" | "controller" | undefined;
302
305
  noHost?: boolean | undefined;
303
306
  }, {
304
307
  t: "startGame";
305
308
  categoryIds: string[];
306
309
  totalRounds: number;
307
- modeId?: "snag" | "solo" | "oneDevice" | "multiplayer" | undefined;
308
310
  game?: "seedha" | "snag" | "trivia" | "dama" | undefined;
311
+ modeId?: "snag" | "solo" | "oneDevice" | "multiplayer" | undefined;
309
312
  buzzerMode?: "solo" | "off" | "race" | "controller" | undefined;
310
313
  noHost?: boolean | undefined;
311
314
  }>, z.ZodObject<{
package/dist/index.d.ts CHANGED
@@ -96,6 +96,7 @@ declare const ClientMsg: z.ZodDiscriminatedUnion<"t", [z.ZodObject<{
96
96
  emoji: string;
97
97
  color: string;
98
98
  }>>;
99
+ game: z.ZodOptional<z.ZodEnum<["seedha", "snag", "trivia", "dama"]>>;
99
100
  pv: z.ZodOptional<z.ZodNumber>;
100
101
  idToken: z.ZodOptional<z.ZodString>;
101
102
  platform: z.ZodOptional<z.ZodEnum<["web", "ios", "android"]>>;
@@ -106,6 +107,7 @@ declare const ClientMsg: z.ZodDiscriminatedUnion<"t", [z.ZodObject<{
106
107
  emoji: string;
107
108
  color: string;
108
109
  } | undefined;
110
+ game?: "seedha" | "snag" | "trivia" | "dama" | undefined;
109
111
  pv?: number | undefined;
110
112
  idToken?: string | undefined;
111
113
  platform?: "web" | "ios" | "android" | undefined;
@@ -116,6 +118,7 @@ declare const ClientMsg: z.ZodDiscriminatedUnion<"t", [z.ZodObject<{
116
118
  emoji: string;
117
119
  color: string;
118
120
  } | undefined;
121
+ game?: "seedha" | "snag" | "trivia" | "dama" | undefined;
119
122
  pv?: number | undefined;
120
123
  idToken?: string | undefined;
121
124
  platform?: "web" | "ios" | "android" | undefined;
@@ -296,16 +299,16 @@ declare const ClientMsg: z.ZodDiscriminatedUnion<"t", [z.ZodObject<{
296
299
  t: "startGame";
297
300
  categoryIds: string[];
298
301
  totalRounds: number;
299
- modeId?: "snag" | "solo" | "oneDevice" | "multiplayer" | undefined;
300
302
  game?: "seedha" | "snag" | "trivia" | "dama" | undefined;
303
+ modeId?: "snag" | "solo" | "oneDevice" | "multiplayer" | undefined;
301
304
  buzzerMode?: "solo" | "off" | "race" | "controller" | undefined;
302
305
  noHost?: boolean | undefined;
303
306
  }, {
304
307
  t: "startGame";
305
308
  categoryIds: string[];
306
309
  totalRounds: number;
307
- modeId?: "snag" | "solo" | "oneDevice" | "multiplayer" | undefined;
308
310
  game?: "seedha" | "snag" | "trivia" | "dama" | undefined;
311
+ modeId?: "snag" | "solo" | "oneDevice" | "multiplayer" | undefined;
309
312
  buzzerMode?: "solo" | "off" | "race" | "controller" | undefined;
310
313
  noHost?: boolean | undefined;
311
314
  }>, z.ZodObject<{
package/dist/index.js CHANGED
@@ -52,7 +52,7 @@ var Avatar = z.object({
52
52
  });
53
53
  var ClientMsg = z.discriminatedUnion("t", [
54
54
  // room / lobby
55
- z.object({ t: z.literal("createRoom"), name: DisplayName.optional(), avatar: Avatar.optional(), pv: Pv, idToken: IdToken, platform: Platform }),
55
+ z.object({ t: z.literal("createRoom"), name: DisplayName.optional(), avatar: Avatar.optional(), game: z.enum(GAME_IDS).optional(), pv: Pv, idToken: IdToken, platform: Platform }),
56
56
  // Host sets/changes their display name AFTER createRoom (for anonymous one-tap
57
57
  // hosts who started nameless). Host-only; the relay re-broadcasts the lobby.
58
58
  z.object({ t: z.literal("renameHost"), name: DisplayName }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thegeem/protocol",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
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",