omniarena-nurvus-shared 0.16.0 → 0.18.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 -2
  2. package/package.json +1 -1
package/dist/socket.d.ts CHANGED
@@ -2,9 +2,11 @@ import type { BattleEndReason, BattleMode } from './common.js';
2
2
  import type { UserHeaderDto } from './common.js';
3
3
  import type { ActionData } from './engine.js';
4
4
  export type ChallengeDenyReason = 'declined' | 'busy' | 'offline' | 'expired' | 'withdrawn';
5
+ export type BotDifficulty = 'easiest' | 'easy';
5
6
  export type ClientToServerEvents = {
6
7
  team_changed: (members: number[]) => void;
7
8
  search: (mode: BattleMode, opponent?: string) => void;
9
+ practice_search: (difficulty: BotDifficulty) => void;
8
10
  cancel_search: () => void;
9
11
  battle_loaded: () => void;
10
12
  turn_started: () => void;
@@ -12,8 +14,8 @@ export type ClientToServerEvents = {
12
14
  surrender: () => void;
13
15
  send_message: (senderId: string, content: string) => void;
14
16
  challenge_player: (username: string) => void;
15
- accept_challenge: () => void;
16
- deny_challenge: () => void;
17
+ accept_challenge: (challengerId: string) => void;
18
+ deny_challenge: (challengerId: string) => void;
17
19
  };
18
20
  export type ServerToClientEvents = {
19
21
  connexion_established: (inBattle: boolean) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omniarena-nurvus-shared",
3
- "version": "0.16.0",
3
+ "version": "0.18.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",