# Stats schema changelog

## 2.2.1

_Released 2026-08-19._

- Documentation: `player.team_short_length_rallies_won`, `player.team_medium_length_rallies_won`, and `player.team_long_length_rallies_won` now state that rallies whose winner could not be determined are excluded from the denominator, and that the field is absent when no rally of that length had a determined winner.
- `session.num_players` description no longer refers to ball machines or `is_ball_machine`.

## 2.2.0

_Released 2026-02-26._

- Added `team_kitchen_arrival` to player stats with team-level kitchen arrival stats (numerator/denominator counts for serving and returning roles, where both teammates had a fair opportunity to arrive at the kitchen)

## 2.1.0

_Released 2025-11-12._

- New structure, `kitchen_arrival_percentage`, with a new, improved algorithm for calculating the percentage of fair-chance kitchen arrivals.

## 2.0.0

_Released 2025-08-07._

- Multi-session videos support
- Most important change is in the URL structure, now it contains the session ID: instead of /{video_id}/stats.json it is now /{video_id}/{session_id}/stats.json, where session_id is 0-based index of the session in the video. Client can iterate through sessions using the session_id until it gets 404 Not Found.

## 1.4.1

_Released 2025-07-14._

- Docs updates: for the `kitchen_arrival` we specify that we consider only "rallies with at least 3 shots"

## 1.4.0

_Released 2025-05-17._

- Running score properties moved to rallies[*].scoring_info.running_score, with server_number added for doubles games
- Added start_ms and end_ms timestamps to track shot duration for shots without the resulting_ball_movement
- Updated popup error definition with more specific criteria
- Changed description of average_x_coverage_percentage to clarify it's only relevant for doubles games, made it optional
- Added corrected boolean flag to worldPosition3D to indicate post-CV corrections

## 1.2.1

_Released 2024-11-20._

- Back to the clean version of the schema

## 1.2.0

_Released 2024-11-20._

- Back to the clean version of the schema

_Note: The text says "Back to the clean version", but this release is the placeholder schema that adds a `dummyVersion` field to `/stats/game` (diff v1.0.2...v1.2.0 in pbv-public/stats). The field was removed again in v1.2.1, which is functionally identical to v1.0.2._

## 1.0.2

_Released 2024-11-04._

- added `session` to indicate game vs. drill and how many participants

## 1.0.1

_Released 2024-09-07._

- Added percentage of rallies won by length of rally for each team

## 1.0.0

_Released 2024-09-03._

- first release!
- share a ton of advanced stats for data lovers to peruse and analyze
