@databallr/sdk 0.3.5 → 0.3.6

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/README.md CHANGED
@@ -36,10 +36,10 @@ const standings = await dbr.get("/v1/nba/standings", { query: { season: 2026 } }
36
36
  - Non-2xx responses throw `DataballrError` (`status`, `code`, `type`,
37
37
  `retryable`, `message`, `requestId`, `requiredScope`, `retryAfter`).
38
38
  `code` is UPPER_SNAKE for errors any call can hit: `INVALID_TOKEN` (401),
39
- `INSUFFICIENT_SCOPE` (403), `RATE_LIMITED` (429), `UPSTREAM_ERROR` (502),
40
- or `HTTP_ERROR` when the body is not the API's error envelope. An
41
- operation's own errors (bad input, nothing found) carry one code per
42
- status: `INVALID_REQUEST` (400), `UNAUTHORIZED` (401), `FORBIDDEN` (403),
39
+ `INSUFFICIENT_SCOPE` (403), `RATE_LIMITED` (429), `UPSTREAM_ERROR` or
40
+ `UPSTREAM_UNAVAILABLE` (502), or `HTTP_ERROR` when the body is not the
41
+ API's error envelope. An operation's own errors (bad input, nothing
42
+ found) carry one code per status: `INVALID_REQUEST` (400), `UNAUTHORIZED` (401), `FORBIDDEN` (403),
43
43
  `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405), `CONFLICT` (409),
44
44
  `BODY_TOO_LARGE` (413), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500),
45
45
  `UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503). The reason
@@ -1,5 +1,5 @@
1
1
  /** First 12 hex characters of the SHA-256 of the key-callable spec these files came from. */
2
- export declare const SPEC_HASH = "4e8f67009423";
2
+ export declare const SPEC_HASH = "a2505996d4d9";
3
3
  /**
4
4
  * Every generated method: GET operations by path, POST queries as
5
5
  * `POST <path>`. `Databallr` turns this table into `dbr.nba.players.search(...)`.
@@ -11,23 +11,23 @@ export declare const methods: {
11
11
  readonly duelStats: "/v1/apps/sixrings/duel-stats";
12
12
  /** Get SixRings FFA queue depth. `GET /v1/apps/sixrings/ffa-queue-status` · `games:read` */
13
13
  readonly ffaQueueStatus: "/v1/apps/sixrings/ffa-queue-status";
14
- /** List visible SixRings games-platform browsers. `GET /v1/apps/sixrings/games-presence` · `games:read` */
14
+ /** List players online in SixRings games. `GET /v1/apps/sixrings/games-presence` · `games:read` */
15
15
  readonly gamesPresence: "/v1/apps/sixrings/games-presence";
16
16
  /** Get the SixRings achievement leaderboard. `GET /v1/apps/sixrings/leaderboard` · `games:read` */
17
17
  readonly leaderboard: "/v1/apps/sixrings/leaderboard";
18
- /** Get the signed-in user's SixRings trophy-case rows. `GET /v1/apps/sixrings/profiles/me` · `games:read` */
18
+ /** Get your SixRings trophy case. `GET /v1/apps/sixrings/profiles/me` · `games:read` */
19
19
  readonly profilesMe: "/v1/apps/sixrings/profiles/me";
20
- /** Get the anonymous Solo SixRings browser count. `GET /v1/apps/sixrings/solo-presence` · `games:read` */
20
+ /** Get the Solo SixRings player count. `GET /v1/apps/sixrings/solo-presence` · `games:read` */
21
21
  readonly soloPresence: "/v1/apps/sixrings/solo-presence";
22
22
  };
23
23
  };
24
24
  readonly nba: {
25
25
  readonly contracts: {
26
- /** List NBA free-agency board rows. `GET /v1/nba/contracts/free-agency` · `stats:read` */
26
+ /** List NBA free agents. `GET /v1/nba/contracts/free-agency` · `stats:read` */
27
27
  readonly freeAgency: "/v1/nba/contracts/free-agency";
28
28
  /** List NBA contracts for a player. `GET /v1/nba/contracts/players/{player_id}` · `stats:read` */
29
29
  readonly playersByPlayerId: "/v1/nba/contracts/players/{player_id}";
30
- /** Get aggregated NBA contract totals for a player. `GET /v1/nba/contracts/players/{player_id}/aggregate` · `stats:read` */
30
+ /** Get an NBA player's contract totals. `GET /v1/nba/contracts/players/{player_id}/aggregate` · `stats:read` */
31
31
  readonly playersByPlayerIdAggregate: "/v1/nba/contracts/players/{player_id}/aggregate";
32
32
  /** List NBA contracts for a team. `GET /v1/nba/contracts/teams/{team_id}` · `stats:read` */
33
33
  readonly teamsByTeamId: "/v1/nba/contracts/teams/{team_id}";
@@ -39,17 +39,17 @@ export declare const methods: {
39
39
  readonly bigBoard: "/v1/nba/draft/big-board";
40
40
  /** List NBA draft prospect comparisons. `GET /v1/nba/draft/comps` · `stats:read` */
41
41
  readonly comps: "/v1/nba/draft/comps";
42
- /** List high-school shooting stats for draft prospects. `GET /v1/nba/draft/hs-shooting` · `stats:read` */
42
+ /** List NBA draft prospects' high school shooting. `GET /v1/nba/draft/hs-shooting` · `stats:read` */
43
43
  readonly hsShooting: "/v1/nba/draft/hs-shooting";
44
44
  /** List NBA draft seasons. `GET /v1/nba/draft/seasons` · `stats:read` */
45
45
  readonly seasons: "/v1/nba/draft/seasons";
46
46
  /** List NBA draft stat rankings. `GET /v1/nba/draft/stat-rankings` · `stats:read` */
47
47
  readonly statRankings: "/v1/nba/draft/stat-rankings";
48
- /** List NBA draft YouTube videos. `GET /v1/nba/draft/youtube` · `stats:read` */
48
+ /** List NBA draft prospect videos. `GET /v1/nba/draft/youtube` · `stats:read` */
49
49
  readonly youtube: "/v1/nba/draft/youtube";
50
50
  };
51
51
  readonly games: {
52
- /** Get a game's box score from the NBA live-data feed. `GET /v1/nba/games/{game_id}/gamelog` · `stats:read` */
52
+ /** Get an NBA game's box score. `GET /v1/nba/games/{game_id}/gamelog` · `stats:read` */
53
53
  readonly byGameIdGamelog: "/v1/nba/games/{game_id}/gamelog";
54
54
  /** Get an NBA game's play-by-play. `GET /v1/nba/games/{game_id}/pbp` · `stats:read` */
55
55
  readonly byGameIdPbp: "/v1/nba/games/{game_id}/pbp";
@@ -57,11 +57,11 @@ export declare const methods: {
57
57
  readonly byGameIdPlays: "/v1/nba/games/{game_id}/plays";
58
58
  };
59
59
  readonly injuries: {
60
- /** List NBA injuries for teams playing on a date. `GET /v1/nba/injuries` · `stats:read` */
60
+ /** List NBA injuries for a date. `GET /v1/nba/injuries` · `stats:read` */
61
61
  readonly get: "/v1/nba/injuries";
62
62
  };
63
63
  readonly leagueBaselines: {
64
- /** League-wide rates per season (the comparison base for any stat), from the engine's own totals. `GET /v1/nba/league-baselines` · `stats:read` */
64
+ /** Get NBA league averages by season. `GET /v1/nba/league-baselines` · `stats:read` */
65
65
  readonly get: "/v1/nba/league-baselines";
66
66
  };
67
67
  readonly live: {
@@ -69,7 +69,7 @@ export declare const methods: {
69
69
  readonly games: "/v1/nba/live/games";
70
70
  /** List NBA live games for a date. `GET /v1/nba/live/games/{game_date}` · `stats:read` */
71
71
  readonly gamesByGameDate: "/v1/nba/live/games/{game_date}";
72
- /** Get the box score for an NBA game. `GET /v1/nba/live/games/{game_id}/box-score` · `stats:read` */
72
+ /** Get a live NBA game's box score. `GET /v1/nba/live/games/{game_id}/box-score` · `stats:read` */
73
73
  readonly gamesByGameIdBoxScore: "/v1/nba/live/games/{game_id}/box-score";
74
74
  };
75
75
  readonly matchups: {
@@ -85,31 +85,31 @@ export declare const methods: {
85
85
  readonly gamesByGameIdProps: "/v1/nba/odds/games/{game_id}/props";
86
86
  };
87
87
  readonly opponentQuality: {
88
- /** Teams ranking in a rating range (top, middle or bottom of the league by ORtg, DRtg or NetRtg), from the engine's own totals. `GET /v1/nba/opponent-quality` · `stats:read` */
88
+ /** List NBA teams in a rating tier. `GET /v1/nba/opponent-quality` · `stats:read` */
89
89
  readonly get: "/v1/nba/opponent-quality";
90
90
  };
91
91
  readonly pbp: {
92
- /** Get combined NBA PBP analytics. `POST /v1/nba/pbp/enhanced-stats` · `stats:read` */
92
+ /** Get NBA lineup totals, player stats and lineups. `POST /v1/nba/pbp/enhanced-stats` · `stats:read` */
93
93
  readonly enhancedStats: "POST /v1/nba/pbp/enhanced-stats";
94
- /** Get NBA five-player lineup combinations. `POST /v1/nba/pbp/lineup/combos` · `stats:read` */
94
+ /** List NBA five-man lineups. `POST /v1/nba/pbp/lineup/combos` · `stats:read` */
95
95
  readonly lineupCombos: "POST /v1/nba/pbp/lineup/combos";
96
- /** Get NBA lineup player statistics. `POST /v1/nba/pbp/lineup/players` · `stats:read` */
96
+ /** Get NBA player stats from lineups. `POST /v1/nba/pbp/lineup/players` · `stats:read` */
97
97
  readonly lineupPlayers: "POST /v1/nba/pbp/lineup/players";
98
- /** Get NBA lineup possession totals. `POST /v1/nba/pbp/lineup/summary` · `stats:read` */
98
+ /** Get NBA lineup totals and four factors. `POST /v1/nba/pbp/lineup/summary` · `stats:read` */
99
99
  readonly lineupSummary: "POST /v1/nba/pbp/lineup/summary";
100
- /** Discover NBA PBP analytics endpoints. `GET /v1/nba/pbp/manifest` · `stats:read` */
100
+ /** List NBA play-by-play endpoints and options. `GET /v1/nba/pbp/manifest` · `stats:read` */
101
101
  readonly manifest: "/v1/nba/pbp/manifest";
102
- /** Get one NBA player's game log for a season. `GET /v1/nba/pbp/player-log` · `stats:read` */
102
+ /** Get an NBA player's season game log. `GET /v1/nba/pbp/player-log` · `stats:read` */
103
103
  readonly playerLog: "/v1/nba/pbp/player-log";
104
- /** Get one player's production across teammate on/off combinations. `POST /v1/nba/pbp/player-wowy` · `stats:read` */
104
+ /** Get an NBA player's stats with and without teammates. `POST /v1/nba/pbp/player-wowy` · `stats:read` */
105
105
  readonly playerWowy: "POST /v1/nba/pbp/player-wowy";
106
- /** Get NBA players appearing in a PBP season. `GET /v1/nba/pbp/players-by-season` · `stats:read` */
106
+ /** List NBA players who played in a season. `GET /v1/nba/pbp/players-by-season` · `stats:read` */
107
107
  readonly playersBySeason: "/v1/nba/pbp/players-by-season";
108
- /** Get every NBA player's or team's season totals from the play-by-play engine. `GET /v1/nba/pbp/season-totals` · `stats:read` */
108
+ /** Get NBA season totals for every player or team. `GET /v1/nba/pbp/season-totals` · `stats:read` */
109
109
  readonly seasonTotals: "/v1/nba/pbp/season-totals";
110
- /** Get one NBA team's game log for a season. `GET /v1/nba/pbp/team-log` · `stats:read` */
110
+ /** Get an NBA team's season game log. `GET /v1/nba/pbp/team-log` · `stats:read` */
111
111
  readonly teamLog: "/v1/nba/pbp/team-log";
112
- /** Get NBA player on/off combinations. `POST /v1/nba/pbp/wowy-combos-stats` · `stats:read` */
112
+ /** Get NBA on/off stats for player combinations. `POST /v1/nba/pbp/wowy-combos-stats` · `stats:read` */
113
113
  readonly wowyCombosStats: "POST /v1/nba/pbp/wowy-combos-stats";
114
114
  };
115
115
  readonly players: {
@@ -143,7 +143,7 @@ export declare const methods: {
143
143
  readonly zts: "/v1/nba/players/zts";
144
144
  /** Get an NBA player. `GET /v1/nba/players/{player_id}` · `stats:read` */
145
145
  readonly byPlayerId: "/v1/nba/players/{player_id}";
146
- /** Get a player's shot totals by distance from the basket. `GET /v1/nba/players/{player_id}/distance-analysis` · `stats:read` */
146
+ /** Get an NBA player's shooting by distance. `GET /v1/nba/players/{player_id}/distance-analysis` · `stats:read` */
147
147
  readonly byPlayerIdDistanceAnalysis: "/v1/nba/players/{player_id}/distance-analysis";
148
148
  /** Get a player's shots for the interactive shot map. `GET /v1/nba/players/{player_id}/shots` · `stats:read` */
149
149
  readonly byPlayerIdShots: "/v1/nba/players/{player_id}/shots";
@@ -159,7 +159,7 @@ export declare const methods: {
159
159
  readonly seriesBySeriesIdGames: "/v1/nba/playoffs/series/{series_id}/games";
160
160
  };
161
161
  readonly roster: {
162
- /** Get one NBA team's roster for one or more seasons (players with minutes by default; include=all adds players who never played). `GET /v1/nba/roster` · `stats:read` */
162
+ /** Get an NBA team's roster by season. `GET /v1/nba/roster` · `stats:read` */
163
163
  readonly get: "/v1/nba/roster";
164
164
  };
165
165
  readonly rosterShapes: {
@@ -167,11 +167,11 @@ export declare const methods: {
167
167
  readonly byDocKey: "/v1/nba/roster-shapes/{doc_key}";
168
168
  };
169
169
  readonly shotChart: {
170
- /** Get NBA league shot averages by zone, overall and by phase and NBA label. `GET /v1/nba/shot-chart/league` · `stats:read` */
170
+ /** Get NBA league shooting by zone. `GET /v1/nba/shot-chart/league` · `stats:read` */
171
171
  readonly league: "/v1/nba/shot-chart/league";
172
- /** Get one NBA player's shot chart coordinates. `GET /v1/nba/shot-chart/player` · `stats:read` */
172
+ /** Get an NBA player's shot chart. `GET /v1/nba/shot-chart/player` · `stats:read` */
173
173
  readonly player: "/v1/nba/shot-chart/player";
174
- /** Get one NBA team's shot chart coordinates (its own shots, or the shots taken against it). `GET /v1/nba/shot-chart/team` · `stats:read` */
174
+ /** Get an NBA team's shot chart. `GET /v1/nba/shot-chart/team` · `stats:read` */
175
175
  readonly team: "/v1/nba/shot-chart/team";
176
176
  };
177
177
  readonly shotQuality: {
@@ -189,7 +189,7 @@ export declare const methods: {
189
189
  readonly shots: {
190
190
  /** List NBA shot matchups. `GET /v1/nba/shots` · `stats:read` */
191
191
  readonly get: "/v1/nba/shots";
192
- /** List the shot-map filter seasons and teams. `GET /v1/nba/shots/filters` · `stats:read` */
192
+ /** List the seasons and teams for shot search. `GET /v1/nba/shots/filters` · `stats:read` */
193
193
  readonly filters: "/v1/nba/shots/filters";
194
194
  };
195
195
  readonly standings: {
@@ -197,7 +197,7 @@ export declare const methods: {
197
197
  readonly get: "/v1/nba/standings";
198
198
  };
199
199
  readonly stats: {
200
- /** Get the full NBA player stats population for analysis. `GET /v1/nba/stats/dataset` · `stats:read` */
200
+ /** Get the full NBA player stats dataset. `GET /v1/nba/stats/dataset` · `stats:read` */
201
201
  readonly dataset: "/v1/nba/stats/dataset";
202
202
  /** Query the NBA player stats table. `GET /v1/nba/stats/query` · `stats:read` */
203
203
  readonly query: "/v1/nba/stats/query";
@@ -255,7 +255,7 @@ export declare const methods: {
255
255
  };
256
256
  readonly wnba: {
257
257
  readonly leagueBaselines: {
258
- /** WNBA league-wide rates per season (the comparison base for any stat), from the engine's own totals. `GET /v1/wnba/league-baselines` · `stats:read` */
258
+ /** Get WNBA league averages by season. `GET /v1/wnba/league-baselines` · `stats:read` */
259
259
  readonly get: "/v1/wnba/league-baselines";
260
260
  };
261
261
  readonly live: {
@@ -269,31 +269,31 @@ export declare const methods: {
269
269
  readonly playsByEventId: "/v1/wnba/live/plays/{event_id}";
270
270
  };
271
271
  readonly opponentQuality: {
272
- /** WNBA teams ranking in a rating range (top, middle or bottom of the league by ORtg, DRtg or NetRtg), from the engine's own totals. `GET /v1/wnba/opponent-quality` · `stats:read` */
272
+ /** List WNBA teams in a rating tier. `GET /v1/wnba/opponent-quality` · `stats:read` */
273
273
  readonly get: "/v1/wnba/opponent-quality";
274
274
  };
275
275
  readonly pbp: {
276
- /** Get combined WNBA PBP analytics. `POST /v1/wnba/pbp/enhanced-stats` · `stats:read` */
276
+ /** Get WNBA lineup totals, player stats and lineups. `POST /v1/wnba/pbp/enhanced-stats` · `stats:read` */
277
277
  readonly enhancedStats: "POST /v1/wnba/pbp/enhanced-stats";
278
- /** Get WNBA five-player lineup combinations. `POST /v1/wnba/pbp/lineup/combos` · `stats:read` */
278
+ /** List WNBA five-man lineups. `POST /v1/wnba/pbp/lineup/combos` · `stats:read` */
279
279
  readonly lineupCombos: "POST /v1/wnba/pbp/lineup/combos";
280
- /** Get WNBA lineup player statistics. `POST /v1/wnba/pbp/lineup/players` · `stats:read` */
280
+ /** Get WNBA player stats from lineups. `POST /v1/wnba/pbp/lineup/players` · `stats:read` */
281
281
  readonly lineupPlayers: "POST /v1/wnba/pbp/lineup/players";
282
- /** Get WNBA lineup possession totals. `POST /v1/wnba/pbp/lineup/summary` · `stats:read` */
282
+ /** Get WNBA lineup totals and four factors. `POST /v1/wnba/pbp/lineup/summary` · `stats:read` */
283
283
  readonly lineupSummary: "POST /v1/wnba/pbp/lineup/summary";
284
- /** Discover WNBA PBP analytics endpoints. `GET /v1/wnba/pbp/manifest` · `stats:read` */
284
+ /** List WNBA play-by-play endpoints and options. `GET /v1/wnba/pbp/manifest` · `stats:read` */
285
285
  readonly manifest: "/v1/wnba/pbp/manifest";
286
- /** Get one WNBA player's game log for a season. `GET /v1/wnba/pbp/player-log` · `stats:read` */
286
+ /** Get a WNBA player's season game log. `GET /v1/wnba/pbp/player-log` · `stats:read` */
287
287
  readonly playerLog: "/v1/wnba/pbp/player-log";
288
- /** Get one WNBA player's production across teammate on/off combinations. `POST /v1/wnba/pbp/player-wowy` · `stats:read` */
288
+ /** Get a WNBA player's stats with and without teammates. `POST /v1/wnba/pbp/player-wowy` · `stats:read` */
289
289
  readonly playerWowy: "POST /v1/wnba/pbp/player-wowy";
290
- /** Get WNBA players appearing in a PBP season. `GET /v1/wnba/pbp/players-by-season` · `stats:read` */
290
+ /** List WNBA players who played in a season. `GET /v1/wnba/pbp/players-by-season` · `stats:read` */
291
291
  readonly playersBySeason: "/v1/wnba/pbp/players-by-season";
292
- /** Get every WNBA player's or team's season totals from the play-by-play engine. `GET /v1/wnba/pbp/season-totals` · `stats:read` */
292
+ /** Get WNBA season totals for every player or team. `GET /v1/wnba/pbp/season-totals` · `stats:read` */
293
293
  readonly seasonTotals: "/v1/wnba/pbp/season-totals";
294
- /** Get one WNBA team's game log for a season. `GET /v1/wnba/pbp/team-log` · `stats:read` */
294
+ /** Get a WNBA team's season game log. `GET /v1/wnba/pbp/team-log` · `stats:read` */
295
295
  readonly teamLog: "/v1/wnba/pbp/team-log";
296
- /** Get WNBA player on/off combinations. `POST /v1/wnba/pbp/wowy-combos-stats` · `stats:read` */
296
+ /** Get WNBA on/off stats for player combinations. `POST /v1/wnba/pbp/wowy-combos-stats` · `stats:read` */
297
297
  readonly wowyCombosStats: "POST /v1/wnba/pbp/wowy-combos-stats";
298
298
  };
299
299
  readonly players: {
@@ -305,11 +305,11 @@ export declare const methods: {
305
305
  readonly get: "/v1/wnba/playoffs";
306
306
  };
307
307
  readonly shotChart: {
308
- /** Get WNBA league shot averages by zone, overall and by phase and label. `GET /v1/wnba/shot-chart/league` · `stats:read` */
308
+ /** Get WNBA league shooting by zone. `GET /v1/wnba/shot-chart/league` · `stats:read` */
309
309
  readonly league: "/v1/wnba/shot-chart/league";
310
- /** Get one WNBA player's shot chart coordinates. `GET /v1/wnba/shot-chart/player` · `stats:read` */
310
+ /** Get a WNBA player's shot chart. `GET /v1/wnba/shot-chart/player` · `stats:read` */
311
311
  readonly player: "/v1/wnba/shot-chart/player";
312
- /** Get one WNBA team's shot chart coordinates (its own shots, or the shots taken against it). `GET /v1/wnba/shot-chart/team` · `stats:read` */
312
+ /** Get a WNBA team's shot chart. `GET /v1/wnba/shot-chart/team` · `stats:read` */
313
313
  readonly team: "/v1/wnba/shot-chart/team";
314
314
  };
315
315
  readonly stats: {
@@ -321,7 +321,7 @@ export declare const methods: {
321
321
  readonly percentiles: "/v1/wnba/stats/percentiles";
322
322
  /** List WNBA season totals. `GET /v1/wnba/stats/season-totals` · `stats:read` */
323
323
  readonly seasonTotals: "/v1/wnba/stats/season-totals";
324
- /** List WNBA VPM (value over replacement) rows. `GET /v1/wnba/stats/vpm` · `stats:read` */
324
+ /** List WNBA VPM. `GET /v1/wnba/stats/vpm` · `stats:read` */
325
325
  readonly vpm: "/v1/wnba/stats/vpm";
326
326
  };
327
327
  readonly teams: {
@@ -1,4 +1,4 @@
1
- export const SPEC_HASH = "4e8f67009423";
1
+ export const SPEC_HASH = "a2505996d4d9";
2
2
  export const methods = {
3
3
  apps: {
4
4
  sixrings: {
@@ -47,7 +47,7 @@ export interface paths {
47
47
  cookie?: never;
48
48
  };
49
49
  /**
50
- * List visible SixRings games-platform browsers
50
+ * List players online in SixRings games
51
51
  * @description **API key scope:** `games:read`.
52
52
  */
53
53
  get: operations["getAppsSixringsGamesPresence"];
@@ -87,7 +87,7 @@ export interface paths {
87
87
  cookie?: never;
88
88
  };
89
89
  /**
90
- * Get the signed-in user's SixRings trophy-case rows
90
+ * Get your SixRings trophy case
91
91
  * @description **API key scope:** `games:read`.
92
92
  */
93
93
  get: operations["getAppsSixringsProfilesMe"];
@@ -107,7 +107,7 @@ export interface paths {
107
107
  cookie?: never;
108
108
  };
109
109
  /**
110
- * Get the anonymous Solo SixRings browser count
110
+ * Get the Solo SixRings player count
111
111
  * @description **API key scope:** `games:read`.
112
112
  */
113
113
  get: operations["getAppsSixringsSoloPresence"];
@@ -127,7 +127,7 @@ export interface paths {
127
127
  cookie?: never;
128
128
  };
129
129
  /**
130
- * List NBA free-agency board rows
130
+ * List NBA free agents
131
131
  * @description **API key scope:** `stats:read`.
132
132
  */
133
133
  get: operations["getNbaContractsFreeAgency"];
@@ -167,7 +167,7 @@ export interface paths {
167
167
  cookie?: never;
168
168
  };
169
169
  /**
170
- * Get aggregated NBA contract totals for a player
170
+ * Get an NBA player's contract totals
171
171
  * @description **API key scope:** `stats:read`.
172
172
  */
173
173
  get: operations["getNbaContractsPlayersByPlayerIdAggregate"];
@@ -267,7 +267,7 @@ export interface paths {
267
267
  cookie?: never;
268
268
  };
269
269
  /**
270
- * List high-school shooting stats for draft prospects
270
+ * List NBA draft prospects' high school shooting
271
271
  * @description **API key scope:** `stats:read`.
272
272
  */
273
273
  get: operations["getNbaDraftHsShooting"];
@@ -327,7 +327,7 @@ export interface paths {
327
327
  cookie?: never;
328
328
  };
329
329
  /**
330
- * List NBA draft YouTube videos
330
+ * List NBA draft prospect videos
331
331
  * @description **API key scope:** `stats:read`.
332
332
  */
333
333
  get: operations["getNbaDraftYoutube"];
@@ -347,7 +347,7 @@ export interface paths {
347
347
  cookie?: never;
348
348
  };
349
349
  /**
350
- * Get a game's box score from the NBA live-data feed
350
+ * Get an NBA game's box score
351
351
  * @description **API key scope:** `stats:read`.
352
352
  */
353
353
  get: operations["getNbaGamesByGameIdGamelog"];
@@ -407,7 +407,7 @@ export interface paths {
407
407
  cookie?: never;
408
408
  };
409
409
  /**
410
- * List NBA injuries for teams playing on a date
410
+ * List NBA injuries for a date
411
411
  * @description **API key scope:** `stats:read`.
412
412
  */
413
413
  get: operations["getNbaInjuries"];
@@ -427,7 +427,7 @@ export interface paths {
427
427
  cookie?: never;
428
428
  };
429
429
  /**
430
- * League-wide rates per season (the comparison base for any stat), from the engine's own totals
430
+ * Get NBA league averages by season
431
431
  * @description **API key scope:** `stats:read`.
432
432
  */
433
433
  get: operations["getNbaLeagueBaselines"];
@@ -487,7 +487,7 @@ export interface paths {
487
487
  cookie?: never;
488
488
  };
489
489
  /**
490
- * Get the box score for an NBA game
490
+ * Get a live NBA game's box score
491
491
  * @description **API key scope:** `stats:read`.
492
492
  */
493
493
  get: operations["getNbaLiveGamesByGameIdBoxScore"];
@@ -587,8 +587,10 @@ export interface paths {
587
587
  cookie?: never;
588
588
  };
589
589
  /**
590
- * Teams ranking in a rating range (top, middle or bottom of the league by ORtg, DRtg or NetRtg), from the engine's own totals
590
+ * List NBA teams in a rating tier
591
591
  * @description **API key scope:** `stats:read`.
592
+ *
593
+ * Teams in the top, middle, or bottom of the league by ORtg, DRtg, or NetRtg, per season.
592
594
  */
593
595
  get: operations["getNbaOpponentQuality"];
594
596
  put?: never;
@@ -609,7 +611,7 @@ export interface paths {
609
611
  get?: never;
610
612
  put?: never;
611
613
  /**
612
- * Get combined NBA PBP analytics
614
+ * Get NBA lineup totals, player stats and lineups
613
615
  * @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
614
616
  */
615
617
  post: operations["postNbaPbpEnhancedStats"];
@@ -629,7 +631,7 @@ export interface paths {
629
631
  get?: never;
630
632
  put?: never;
631
633
  /**
632
- * Get NBA five-player lineup combinations
634
+ * List NBA five-man lineups
633
635
  * @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
634
636
  */
635
637
  post: operations["postNbaPbpLineupCombos"];
@@ -649,7 +651,7 @@ export interface paths {
649
651
  get?: never;
650
652
  put?: never;
651
653
  /**
652
- * Get NBA lineup player statistics
654
+ * Get NBA player stats from lineups
653
655
  * @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
654
656
  */
655
657
  post: operations["postNbaPbpLineupPlayers"];
@@ -669,7 +671,7 @@ export interface paths {
669
671
  get?: never;
670
672
  put?: never;
671
673
  /**
672
- * Get NBA lineup possession totals
674
+ * Get NBA lineup totals and four factors
673
675
  * @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
674
676
  */
675
677
  post: operations["postNbaPbpLineupSummary"];
@@ -687,7 +689,7 @@ export interface paths {
687
689
  cookie?: never;
688
690
  };
689
691
  /**
690
- * Discover NBA PBP analytics endpoints
692
+ * List NBA play-by-play endpoints and options
691
693
  * @description **API key scope:** `stats:read`.
692
694
  */
693
695
  get: operations["getNbaPbpManifest"];
@@ -707,7 +709,7 @@ export interface paths {
707
709
  cookie?: never;
708
710
  };
709
711
  /**
710
- * Get one NBA player's game log for a season
712
+ * Get an NBA player's season game log
711
713
  * @description **API key scope:** `stats:read`.
712
714
  */
713
715
  get: operations["getNbaPbpPlayerLog"];
@@ -729,7 +731,7 @@ export interface paths {
729
731
  get?: never;
730
732
  put?: never;
731
733
  /**
732
- * Get one player's production across teammate on/off combinations
734
+ * Get an NBA player's stats with and without teammates
733
735
  * @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
734
736
  */
735
737
  post: operations["postNbaPbpPlayerWowy"];
@@ -747,7 +749,7 @@ export interface paths {
747
749
  cookie?: never;
748
750
  };
749
751
  /**
750
- * Get NBA players appearing in a PBP season
752
+ * List NBA players who played in a season
751
753
  * @description **API key scope:** `stats:read`.
752
754
  */
753
755
  get: operations["getNbaPbpPlayersBySeason"];
@@ -767,7 +769,7 @@ export interface paths {
767
769
  cookie?: never;
768
770
  };
769
771
  /**
770
- * Get every NBA player's or team's season totals from the play-by-play engine
772
+ * Get NBA season totals for every player or team
771
773
  * @description **API key scope:** `stats:read`.
772
774
  */
773
775
  get: operations["getNbaPbpSeasonTotals"];
@@ -787,7 +789,7 @@ export interface paths {
787
789
  cookie?: never;
788
790
  };
789
791
  /**
790
- * Get one NBA team's game log for a season
792
+ * Get an NBA team's season game log
791
793
  * @description **API key scope:** `stats:read`.
792
794
  */
793
795
  get: operations["getNbaPbpTeamLog"];
@@ -809,7 +811,7 @@ export interface paths {
809
811
  get?: never;
810
812
  put?: never;
811
813
  /**
812
- * Get NBA player on/off combinations
814
+ * Get NBA on/off stats for player combinations
813
815
  * @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
814
816
  */
815
817
  post: operations["postNbaPbpWowyCombosStats"];
@@ -1127,7 +1129,7 @@ export interface paths {
1127
1129
  cookie?: never;
1128
1130
  };
1129
1131
  /**
1130
- * Get a player's shot totals by distance from the basket
1132
+ * Get an NBA player's shooting by distance
1131
1133
  * @description **API key scope:** `stats:read`.
1132
1134
  */
1133
1135
  get: operations["getNbaPlayersByPlayerIdDistanceAnalysis"];
@@ -1247,8 +1249,10 @@ export interface paths {
1247
1249
  cookie?: never;
1248
1250
  };
1249
1251
  /**
1250
- * Get one NBA team's roster for one or more seasons (players with minutes by default; include=all adds players who never played)
1252
+ * Get an NBA team's roster by season
1251
1253
  * @description **API key scope:** `stats:read`.
1254
+ *
1255
+ * Players with minutes by default. `include=all` adds players who never played.
1252
1256
  */
1253
1257
  get: operations["getNbaRoster"];
1254
1258
  put?: never;
@@ -1287,7 +1291,7 @@ export interface paths {
1287
1291
  cookie?: never;
1288
1292
  };
1289
1293
  /**
1290
- * Get NBA league shot averages by zone, overall and by phase and NBA label
1294
+ * Get NBA league shooting by zone
1291
1295
  * @description **API key scope:** `stats:read`.
1292
1296
  */
1293
1297
  get: operations["getNbaShotChartLeague"];
@@ -1307,7 +1311,7 @@ export interface paths {
1307
1311
  cookie?: never;
1308
1312
  };
1309
1313
  /**
1310
- * Get one NBA player's shot chart coordinates
1314
+ * Get an NBA player's shot chart
1311
1315
  * @description **API key scope:** `stats:read`.
1312
1316
  */
1313
1317
  get: operations["getNbaShotChartPlayer"];
@@ -1327,8 +1331,10 @@ export interface paths {
1327
1331
  cookie?: never;
1328
1332
  };
1329
1333
  /**
1330
- * Get one NBA team's shot chart coordinates (its own shots, or the shots taken against it)
1334
+ * Get an NBA team's shot chart
1331
1335
  * @description **API key scope:** `stats:read`.
1336
+ *
1337
+ * The team's own shots, or the shots taken against it.
1332
1338
  */
1333
1339
  get: operations["getNbaShotChartTeam"];
1334
1340
  put?: never;
@@ -1467,7 +1473,7 @@ export interface paths {
1467
1473
  cookie?: never;
1468
1474
  };
1469
1475
  /**
1470
- * List the shot-map filter seasons and teams
1476
+ * List the seasons and teams for shot search
1471
1477
  * @description **API key scope:** `stats:read`.
1472
1478
  */
1473
1479
  get: operations["getNbaShotsFilters"];
@@ -1507,7 +1513,7 @@ export interface paths {
1507
1513
  cookie?: never;
1508
1514
  };
1509
1515
  /**
1510
- * Get the full NBA player stats population for analysis
1516
+ * Get the full NBA player stats dataset
1511
1517
  * @description **API key scope:** `stats:read`.
1512
1518
  */
1513
1519
  get: operations["getNbaStatsDataset"];
@@ -1987,7 +1993,7 @@ export interface paths {
1987
1993
  cookie?: never;
1988
1994
  };
1989
1995
  /**
1990
- * WNBA league-wide rates per season (the comparison base for any stat), from the engine's own totals
1996
+ * Get WNBA league averages by season
1991
1997
  * @description **API key scope:** `stats:read`.
1992
1998
  */
1993
1999
  get: operations["getWnbaLeagueBaselines"];
@@ -2087,8 +2093,10 @@ export interface paths {
2087
2093
  cookie?: never;
2088
2094
  };
2089
2095
  /**
2090
- * WNBA teams ranking in a rating range (top, middle or bottom of the league by ORtg, DRtg or NetRtg), from the engine's own totals
2096
+ * List WNBA teams in a rating tier
2091
2097
  * @description **API key scope:** `stats:read`.
2098
+ *
2099
+ * Teams in the top, middle, or bottom of the league by ORtg, DRtg, or NetRtg, per season.
2092
2100
  */
2093
2101
  get: operations["getWnbaOpponentQuality"];
2094
2102
  put?: never;
@@ -2109,7 +2117,7 @@ export interface paths {
2109
2117
  get?: never;
2110
2118
  put?: never;
2111
2119
  /**
2112
- * Get combined WNBA PBP analytics
2120
+ * Get WNBA lineup totals, player stats and lineups
2113
2121
  * @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
2114
2122
  */
2115
2123
  post: operations["postWnbaPbpEnhancedStats"];
@@ -2129,7 +2137,7 @@ export interface paths {
2129
2137
  get?: never;
2130
2138
  put?: never;
2131
2139
  /**
2132
- * Get WNBA five-player lineup combinations
2140
+ * List WNBA five-man lineups
2133
2141
  * @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
2134
2142
  */
2135
2143
  post: operations["postWnbaPbpLineupCombos"];
@@ -2149,7 +2157,7 @@ export interface paths {
2149
2157
  get?: never;
2150
2158
  put?: never;
2151
2159
  /**
2152
- * Get WNBA lineup player statistics
2160
+ * Get WNBA player stats from lineups
2153
2161
  * @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
2154
2162
  */
2155
2163
  post: operations["postWnbaPbpLineupPlayers"];
@@ -2169,7 +2177,7 @@ export interface paths {
2169
2177
  get?: never;
2170
2178
  put?: never;
2171
2179
  /**
2172
- * Get WNBA lineup possession totals
2180
+ * Get WNBA lineup totals and four factors
2173
2181
  * @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
2174
2182
  */
2175
2183
  post: operations["postWnbaPbpLineupSummary"];
@@ -2187,7 +2195,7 @@ export interface paths {
2187
2195
  cookie?: never;
2188
2196
  };
2189
2197
  /**
2190
- * Discover WNBA PBP analytics endpoints
2198
+ * List WNBA play-by-play endpoints and options
2191
2199
  * @description **API key scope:** `stats:read`.
2192
2200
  */
2193
2201
  get: operations["getWnbaPbpManifest"];
@@ -2207,7 +2215,7 @@ export interface paths {
2207
2215
  cookie?: never;
2208
2216
  };
2209
2217
  /**
2210
- * Get one WNBA player's game log for a season
2218
+ * Get a WNBA player's season game log
2211
2219
  * @description **API key scope:** `stats:read`.
2212
2220
  */
2213
2221
  get: operations["getWnbaPbpPlayerLog"];
@@ -2229,7 +2237,7 @@ export interface paths {
2229
2237
  get?: never;
2230
2238
  put?: never;
2231
2239
  /**
2232
- * Get one WNBA player's production across teammate on/off combinations
2240
+ * Get a WNBA player's stats with and without teammates
2233
2241
  * @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
2234
2242
  */
2235
2243
  post: operations["postWnbaPbpPlayerWowy"];
@@ -2247,7 +2255,7 @@ export interface paths {
2247
2255
  cookie?: never;
2248
2256
  };
2249
2257
  /**
2250
- * Get WNBA players appearing in a PBP season
2258
+ * List WNBA players who played in a season
2251
2259
  * @description **API key scope:** `stats:read`.
2252
2260
  */
2253
2261
  get: operations["getWnbaPbpPlayersBySeason"];
@@ -2267,7 +2275,7 @@ export interface paths {
2267
2275
  cookie?: never;
2268
2276
  };
2269
2277
  /**
2270
- * Get every WNBA player's or team's season totals from the play-by-play engine
2278
+ * Get WNBA season totals for every player or team
2271
2279
  * @description **API key scope:** `stats:read`.
2272
2280
  */
2273
2281
  get: operations["getWnbaPbpSeasonTotals"];
@@ -2287,7 +2295,7 @@ export interface paths {
2287
2295
  cookie?: never;
2288
2296
  };
2289
2297
  /**
2290
- * Get one WNBA team's game log for a season
2298
+ * Get a WNBA team's season game log
2291
2299
  * @description **API key scope:** `stats:read`.
2292
2300
  */
2293
2301
  get: operations["getWnbaPbpTeamLog"];
@@ -2309,7 +2317,7 @@ export interface paths {
2309
2317
  get?: never;
2310
2318
  put?: never;
2311
2319
  /**
2312
- * Get WNBA player on/off combinations
2320
+ * Get WNBA on/off stats for player combinations
2313
2321
  * @description **API key scope:** `stats:read`. Counts as 6 of the 120-per-minute key budget, so up to 20 a minute.
2314
2322
  */
2315
2323
  post: operations["postWnbaPbpWowyCombosStats"];
@@ -2367,7 +2375,7 @@ export interface paths {
2367
2375
  cookie?: never;
2368
2376
  };
2369
2377
  /**
2370
- * Get WNBA league shot averages by zone, overall and by phase and label
2378
+ * Get WNBA league shooting by zone
2371
2379
  * @description **API key scope:** `stats:read`.
2372
2380
  */
2373
2381
  get: operations["getWnbaShotChartLeague"];
@@ -2387,7 +2395,7 @@ export interface paths {
2387
2395
  cookie?: never;
2388
2396
  };
2389
2397
  /**
2390
- * Get one WNBA player's shot chart coordinates
2398
+ * Get a WNBA player's shot chart
2391
2399
  * @description **API key scope:** `stats:read`.
2392
2400
  */
2393
2401
  get: operations["getWnbaShotChartPlayer"];
@@ -2407,8 +2415,10 @@ export interface paths {
2407
2415
  cookie?: never;
2408
2416
  };
2409
2417
  /**
2410
- * Get one WNBA team's shot chart coordinates (its own shots, or the shots taken against it)
2418
+ * Get a WNBA team's shot chart
2411
2419
  * @description **API key scope:** `stats:read`.
2420
+ *
2421
+ * The team's own shots, or the shots taken against it.
2412
2422
  */
2413
2423
  get: operations["getWnbaShotChartTeam"];
2414
2424
  put?: never;
@@ -2507,7 +2517,7 @@ export interface paths {
2507
2517
  cookie?: never;
2508
2518
  };
2509
2519
  /**
2510
- * List WNBA VPM (value over replacement) rows
2520
+ * List WNBA VPM
2511
2521
  * @description **API key scope:** `stats:read`.
2512
2522
  */
2513
2523
  get: operations["getWnbaStatsVpm"];
@@ -3096,14 +3106,14 @@ export interface components {
3096
3106
  include_detail?: boolean;
3097
3107
  /** @description Also return `game_log` (one line per counted game: what the filters kept of it and its final score) and `record` (wins and losses in the games the filters touched). Listed in the manifest's options as `include_games`. */
3098
3108
  include_games?: boolean;
3099
- /** @description Only possessions at these leverage levels: how much the possession's result can move the offense's win probability (cuts at 0.02, 0.055 and 0.10; about 25%, 70%, 4% and 1% of possessions). NBA only. Answered from the plays (the engine path). Listed in the manifest's options as `leverage`. */
3109
+ /** @description Only possessions at these leverage levels: how much the possession's result can move the offense's win probability (cuts at 0.02, 0.055 and 0.10; about 25%, 70%, 4% and 1% of possessions). NBA only. Listed in the manifest's options as `leverage`. */
3100
3110
  leverage?: ("low" | "medium" | "high" | "very_high")[];
3101
3111
  /**
3102
3112
  * @description Only the team's home or away games, from its game logs. A neutral site (the 2020 bubble, Cup finals, international games) counts for the NBA's designated home team. A game the logs do not list is left out and counted in quality.location_unknown_games. Listed in the manifest's options as `location`.
3103
3113
  * @enum {string}
3104
3114
  */
3105
3115
  location?: "home" | "away";
3106
- /** @description Only possessions the team started leading by min to max points (negative: trailing); either end may be left out. {min: -5, max: 5} is within five either way. Decided per possession from the score before its first play. Answered from the plays (the engine path), not the lineup-stints fast path. Listed in the manifest's options as `margin`. */
3116
+ /** @description Only possessions the team started leading by min to max points (negative: trailing); either end may be left out. {min: -5, max: 5} is within five either way. Decided per possession from the score before its first play. Listed in the manifest's options as `margin`. */
3107
3117
  margin?: {
3108
3118
  max?: number;
3109
3119
  min?: number;
@@ -3268,14 +3278,14 @@ export interface components {
3268
3278
  games_without?: number[];
3269
3279
  /** @description Also return the detail counters (possession start origin, turnover and foul types, rebounds by shot type, assists by type and zone, per-player possession phase). Off by default: on the lineup-stints fast path they need a second file read. */
3270
3280
  include_detail?: boolean;
3271
- /** @description Only possessions at these leverage levels: how much the possession's result can move the offense's win probability (cuts at 0.02, 0.055 and 0.10; about 25%, 70%, 4% and 1% of possessions). NBA only. Answered from the plays (the engine path). Listed in the manifest's options as `leverage`. */
3281
+ /** @description Only possessions at these leverage levels: how much the possession's result can move the offense's win probability (cuts at 0.02, 0.055 and 0.10; about 25%, 70%, 4% and 1% of possessions). NBA only. Listed in the manifest's options as `leverage`. */
3272
3282
  leverage?: ("low" | "medium" | "high" | "very_high")[];
3273
3283
  /**
3274
3284
  * @description Only the team's home or away games, from its game logs. A neutral site (the 2020 bubble, Cup finals, international games) counts for the NBA's designated home team. A game the logs do not list is left out and counted in quality.location_unknown_games. Listed in the manifest's options as `location`.
3275
3285
  * @enum {string}
3276
3286
  */
3277
3287
  location?: "home" | "away";
3278
- /** @description Only possessions the team started leading by min to max points (negative: trailing); either end may be left out. {min: -5, max: 5} is within five either way. Decided per possession from the score before its first play. Answered from the plays (the engine path), not the lineup-stints fast path. Listed in the manifest's options as `margin`. */
3288
+ /** @description Only possessions the team started leading by min to max points (negative: trailing); either end may be left out. {min: -5, max: 5} is within five either way. Decided per possession from the score before its first play. Listed in the manifest's options as `margin`. */
3279
3289
  margin?: {
3280
3290
  max?: number;
3281
3291
  min?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databallr/sdk",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "TypeScript client for the databallr API (NBA and WNBA stats, SixRings)",
5
5
  "license": "MIT",
6
6
  "repository": {