@orakl/protocol 0.10.0 → 0.11.0

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.
@@ -1 +1 @@
1
- export type ErrorCode = "no_active_lobby" | "no_active_game" | "device_blocked" | "nickname_taken" | "device_in_lobby" | "player_not_found" | "player_not_pending" | "intermission_invalid_phase" | "not_in_intermission" | "category_name_exists" | "category_not_found" | "category_has_questions" | "tag_name_exists" | "tag_not_found" | "tag_has_questions" | "tag_in_season" | "category_in_season" | "season_name_exists" | "season_not_found" | "user_not_found" | "curation_request_pending" | "curator_self_join" | "already_flagged" | "question_not_found" | "invalid_answer" | "game_in_progress" | "already_answered" | "observer_forbidden" | "no_questions" | "season_out_of_season" | "no_categories" | "too_few_players" | "hosting_closed" | "not_answered" | "flag_not_toggleable" | "solo_invalid_phase" | "solo_invalid_answer" | "solo_nonce_mismatch" | "solo_answer_expired" | "solo_guest_limit" | "solo_no_questions" | "solo_season_out_of_season" | "solo_resume_denied" | "solo_auth_failed";
1
+ export type ErrorCode = "no_active_lobby" | "no_active_game" | "device_blocked" | "nickname_taken" | "nickname_locked" | "device_in_lobby" | "player_not_found" | "player_not_pending" | "intermission_invalid_phase" | "not_in_intermission" | "category_name_exists" | "category_not_found" | "category_has_questions" | "tag_name_exists" | "tag_not_found" | "tag_has_questions" | "tag_in_season" | "category_in_season" | "season_name_exists" | "season_not_found" | "user_not_found" | "curation_request_pending" | "curator_self_join" | "already_flagged" | "question_not_found" | "invalid_answer" | "game_in_progress" | "already_answered" | "observer_forbidden" | "no_questions" | "season_out_of_season" | "no_categories" | "too_few_players" | "hosting_closed" | "not_answered" | "flag_not_toggleable" | "solo_invalid_phase" | "solo_invalid_answer" | "solo_nonce_mismatch" | "solo_answer_expired" | "solo_guest_limit" | "solo_no_questions" | "solo_season_out_of_season" | "solo_resume_denied" | "solo_auth_failed";
@@ -63,7 +63,11 @@ export declare const AdminLobbiesPageSchema: Schema.Struct<{
63
63
  /** Lobby age in whole seconds at read time. */
64
64
  ageSeconds: typeof Schema.Number;
65
65
  roster: Schema.mutable<Schema.Array$<Schema.Struct<{
66
+ /** The Lobby's player id, the target for Admin actions. */
67
+ playerId: typeof Schema.String;
66
68
  nickname: typeof Schema.String;
69
+ /** Avatar id the row chose; "" when none. */
70
+ avatarId: typeof Schema.String;
67
71
  role: Schema.Literal<["player", "observer"]>;
68
72
  status: Schema.Literal<["pending", "active", "disconnected"]>;
69
73
  /** The row is the hosting Curator's own. */
@@ -66,7 +66,11 @@ export const AdminLobbiesPageSchema = Schema.Struct({
66
66
  /** Lobby age in whole seconds at read time. */
67
67
  ageSeconds: Schema.Number,
68
68
  roster: Schema.mutable(Schema.Array(Schema.Struct({
69
+ /** The Lobby's player id, the target for Admin actions. */
70
+ playerId: Schema.String,
69
71
  nickname: Schema.String,
72
+ /** Avatar id the row chose; "" when none. */
73
+ avatarId: Schema.String,
70
74
  role: PlayerRoleSchema,
71
75
  status: Schema.Literal("pending", "active", "disconnected"),
72
76
  /** The row is the hosting Curator's own. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orakl/protocol",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Orakl wire contract: WebSocket frames and API response schemas.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {