omniarena-nurvus-shared 0.26.0 → 0.28.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.
package/dist/battle.d.ts CHANGED
@@ -62,6 +62,7 @@ export type SkillDto = {
62
62
  description: string;
63
63
  userId: string;
64
64
  playerId: string;
65
+ alterable: boolean;
65
66
  baseCooldown: number;
66
67
  cooldown: number;
67
68
  windDown: number;
package/dist/common.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type UserRole = 'user' | 'admin' | 'mod' | 'bot' | 'bot_easiest' | 'bot_easy' | 'skin_maker';
1
+ export type UserRole = 'user' | 'admin' | 'mod' | 'bot' | 'bot_easiest' | 'bot_easy' | 'bot_medium' | 'bot_hard' | 'bot_hardest' | 'skin_maker';
2
2
  export type BattleMode = 'ranked' | 'casual' | 'private';
3
3
  export type BattleEndReason = 'opponent_defeated' | 'opponent_surrendered' | 'opponent_left' | 'error';
4
4
  export type UserHeaderDto = {
package/dist/socket.d.ts CHANGED
@@ -2,7 +2,7 @@ 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
+ export type BotDifficulty = 'easiest' | 'easy' | 'medium' | 'hard' | 'hardest';
6
6
  export type ClientToServerEvents = {
7
7
  team_changed: (members: number[]) => void;
8
8
  search: (mode: BattleMode, opponent?: string) => void;
package/dist/users.d.ts CHANGED
@@ -1,4 +1,9 @@
1
1
  import type { UserRole } from './common.js';
2
+ export type RewardState = {
3
+ leaves: number;
4
+ bonus: number;
5
+ branchesCompleted: number;
6
+ };
2
7
  export type UserDto = {
3
8
  id: string;
4
9
  username: string;
@@ -13,6 +18,7 @@ export type UserDto = {
13
18
  streak: number;
14
19
  highestStreak: number;
15
20
  shards: number;
21
+ rewardState: RewardState;
16
22
  skinId: string;
17
23
  colorPrimary: string;
18
24
  colorSecondary: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omniarena-nurvus-shared",
3
- "version": "0.26.0",
3
+ "version": "0.28.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",