omniarena-nurvus-shared 0.46.0 → 0.47.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.
Files changed (2) hide show
  1. package/dist/socket.d.ts +4 -1
  2. package/package.json +1 -1
package/dist/socket.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import type { BattleEndReason, BattleMode } from './common.js';
2
2
  import type { UserHeaderDto } from './common.js';
3
3
  import type { ActionData } from './engine.js';
4
+ import type { LobbyMessageDto } from './lobby.js';
4
5
  export type ChallengeDenyReason = 'declined' | 'busy' | 'offline' | 'expired' | 'withdrawn';
5
6
  export type BotDifficulty = 'easiest' | 'easy' | 'medium' | 'hard' | 'hardest';
6
7
  export type BattleOutcome = {
@@ -24,8 +25,10 @@ export type ClientToServerEvents = {
24
25
  deny_challenge: (challengerId: string) => void;
25
26
  };
26
27
  export type ServerToClientEvents = {
27
- /** Lobby namespace only: refetch the viewer-specific bounded history. */
28
+ /** Lobby namespace only: reaction/retention changes require a viewer-specific refresh. */
28
29
  lobby_changed: () => void;
30
+ /** Lobby namespace only: a newly committed message, with initially empty reactions. */
31
+ lobby_message: (message: LobbyMessageDto) => void;
29
32
  connexion_established: (inBattle: boolean, outcome?: BattleOutcome) => void;
30
33
  connection_refused: (reason: 'practice_account_busy') => void;
31
34
  timer_started: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omniarena-nurvus-shared",
3
- "version": "0.46.0",
3
+ "version": "0.47.0",
4
4
  "type": "module",
5
5
  "description": "Shared contract types for OmniArena (nurvus slice). Type-only, zero dependencies.",
6
6
  "types": "./dist/index.d.ts",