x-twitter-scraper 0.16.0 → 0.17.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 (198) hide show
  1. package/CHANGELOG.md +33 -5
  2. package/README.md +1 -0
  3. package/client.d.mts +8 -2
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +8 -2
  6. package/client.d.ts.map +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs.map +1 -1
  9. package/internal/detect-platform.d.mts +3 -1
  10. package/internal/detect-platform.d.mts.map +1 -1
  11. package/internal/detect-platform.d.ts +3 -1
  12. package/internal/detect-platform.d.ts.map +1 -1
  13. package/internal/detect-platform.js +1 -1
  14. package/internal/detect-platform.js.map +1 -1
  15. package/internal/detect-platform.mjs +1 -1
  16. package/internal/detect-platform.mjs.map +1 -1
  17. package/package.json +1 -1
  18. package/resources/events.d.mts +50 -11
  19. package/resources/events.d.mts.map +1 -1
  20. package/resources/events.d.ts +50 -11
  21. package/resources/events.d.ts.map +1 -1
  22. package/resources/events.js.map +1 -1
  23. package/resources/events.mjs.map +1 -1
  24. package/resources/index.d.mts +1 -1
  25. package/resources/index.d.mts.map +1 -1
  26. package/resources/index.d.ts +1 -1
  27. package/resources/index.d.ts.map +1 -1
  28. package/resources/index.js.map +1 -1
  29. package/resources/index.mjs.map +1 -1
  30. package/resources/monitors/index.d.mts +2 -1
  31. package/resources/monitors/index.d.mts.map +1 -1
  32. package/resources/monitors/index.d.ts +2 -1
  33. package/resources/monitors/index.d.ts.map +1 -1
  34. package/resources/monitors/index.js +3 -1
  35. package/resources/monitors/index.js.map +1 -1
  36. package/resources/monitors/index.mjs +1 -0
  37. package/resources/monitors/index.mjs.map +1 -1
  38. package/resources/monitors/keywords.d.mts +10 -96
  39. package/resources/monitors/keywords.d.mts.map +1 -1
  40. package/resources/monitors/keywords.d.ts +10 -96
  41. package/resources/monitors/keywords.d.ts.map +1 -1
  42. package/resources/monitors/monitors.d.mts +6 -2
  43. package/resources/monitors/monitors.d.mts.map +1 -1
  44. package/resources/monitors/monitors.d.ts +6 -2
  45. package/resources/monitors/monitors.d.ts.map +1 -1
  46. package/resources/monitors/monitors.js +4 -0
  47. package/resources/monitors/monitors.js.map +1 -1
  48. package/resources/monitors/monitors.mjs +4 -0
  49. package/resources/monitors/monitors.mjs.map +1 -1
  50. package/resources/monitors/posts.d.mts +344 -0
  51. package/resources/monitors/posts.d.mts.map +1 -0
  52. package/resources/monitors/posts.d.ts +344 -0
  53. package/resources/monitors/posts.d.ts.map +1 -0
  54. package/resources/monitors/posts.js +94 -0
  55. package/resources/monitors/posts.js.map +1 -0
  56. package/resources/monitors/posts.mjs +90 -0
  57. package/resources/monitors/posts.mjs.map +1 -0
  58. package/resources/shared.d.mts +577 -2
  59. package/resources/shared.d.mts.map +1 -1
  60. package/resources/shared.d.ts +577 -2
  61. package/resources/shared.d.ts.map +1 -1
  62. package/resources/support/index.d.mts +1 -1
  63. package/resources/support/index.d.mts.map +1 -1
  64. package/resources/support/index.d.ts +1 -1
  65. package/resources/support/index.d.ts.map +1 -1
  66. package/resources/support/index.js.map +1 -1
  67. package/resources/support/index.mjs.map +1 -1
  68. package/resources/support/support.d.mts +2 -2
  69. package/resources/support/support.d.mts.map +1 -1
  70. package/resources/support/support.d.ts +2 -2
  71. package/resources/support/support.d.ts.map +1 -1
  72. package/resources/support/support.js.map +1 -1
  73. package/resources/support/support.mjs.map +1 -1
  74. package/resources/support/tickets.d.mts +12 -20
  75. package/resources/support/tickets.d.mts.map +1 -1
  76. package/resources/support/tickets.d.ts +12 -20
  77. package/resources/support/tickets.d.ts.map +1 -1
  78. package/resources/webhooks.d.mts +5 -4
  79. package/resources/webhooks.d.mts.map +1 -1
  80. package/resources/webhooks.d.ts +5 -4
  81. package/resources/webhooks.d.ts.map +1 -1
  82. package/resources/webhooks.js.map +1 -1
  83. package/resources/webhooks.mjs.map +1 -1
  84. package/resources/x/accounts.d.mts +14 -4
  85. package/resources/x/accounts.d.mts.map +1 -1
  86. package/resources/x/accounts.d.ts +14 -4
  87. package/resources/x/accounts.d.ts.map +1 -1
  88. package/resources/x/accounts.js +6 -4
  89. package/resources/x/accounts.js.map +1 -1
  90. package/resources/x/accounts.mjs +6 -4
  91. package/resources/x/accounts.mjs.map +1 -1
  92. package/resources/x/broadcasts.d.mts +3 -131
  93. package/resources/x/broadcasts.d.mts.map +1 -1
  94. package/resources/x/broadcasts.d.ts +3 -131
  95. package/resources/x/broadcasts.d.ts.map +1 -1
  96. package/resources/x/communities/communities.d.mts +92 -1
  97. package/resources/x/communities/communities.d.mts.map +1 -1
  98. package/resources/x/communities/communities.d.ts +92 -1
  99. package/resources/x/communities/communities.d.ts.map +1 -1
  100. package/resources/x/communities/communities.js +14 -0
  101. package/resources/x/communities/communities.js.map +1 -1
  102. package/resources/x/communities/communities.mjs +14 -0
  103. package/resources/x/communities/communities.mjs.map +1 -1
  104. package/resources/x/communities/index.d.mts +1 -1
  105. package/resources/x/communities/index.d.mts.map +1 -1
  106. package/resources/x/communities/index.d.ts +1 -1
  107. package/resources/x/communities/index.d.ts.map +1 -1
  108. package/resources/x/communities/index.js.map +1 -1
  109. package/resources/x/communities/index.mjs.map +1 -1
  110. package/resources/x/community-notes.d.mts +122 -510
  111. package/resources/x/community-notes.d.mts.map +1 -1
  112. package/resources/x/community-notes.d.ts +122 -510
  113. package/resources/x/community-notes.d.ts.map +1 -1
  114. package/resources/x/community-notes.js.map +1 -1
  115. package/resources/x/community-notes.mjs.map +1 -1
  116. package/resources/x/index.d.mts +7 -6
  117. package/resources/x/index.d.mts.map +1 -1
  118. package/resources/x/index.d.ts +7 -6
  119. package/resources/x/index.d.ts.map +1 -1
  120. package/resources/x/index.js +3 -1
  121. package/resources/x/index.js.map +1 -1
  122. package/resources/x/index.mjs +1 -0
  123. package/resources/x/index.mjs.map +1 -1
  124. package/resources/x/jobs.d.mts +144 -291
  125. package/resources/x/jobs.d.mts.map +1 -1
  126. package/resources/x/jobs.d.ts +144 -291
  127. package/resources/x/jobs.d.ts.map +1 -1
  128. package/resources/x/jobs.js.map +1 -1
  129. package/resources/x/jobs.mjs.map +1 -1
  130. package/resources/x/lists.d.mts +21 -419
  131. package/resources/x/lists.d.mts.map +1 -1
  132. package/resources/x/lists.d.ts +21 -419
  133. package/resources/x/lists.d.ts.map +1 -1
  134. package/resources/x/spaces.d.mts +213 -693
  135. package/resources/x/spaces.d.mts.map +1 -1
  136. package/resources/x/spaces.d.ts +213 -693
  137. package/resources/x/spaces.d.ts.map +1 -1
  138. package/resources/x/spaces.js.map +1 -1
  139. package/resources/x/spaces.mjs.map +1 -1
  140. package/resources/x/sports.d.mts +1349 -0
  141. package/resources/x/sports.d.mts.map +1 -0
  142. package/resources/x/sports.d.ts +1349 -0
  143. package/resources/x/sports.d.ts.map +1 -0
  144. package/resources/x/sports.js +76 -0
  145. package/resources/x/sports.js.map +1 -0
  146. package/resources/x/sports.mjs +72 -0
  147. package/resources/x/sports.mjs.map +1 -0
  148. package/resources/x/tweets/tweets.d.mts +11 -13
  149. package/resources/x/tweets/tweets.d.mts.map +1 -1
  150. package/resources/x/tweets/tweets.d.ts +11 -13
  151. package/resources/x/tweets/tweets.d.ts.map +1 -1
  152. package/resources/x/users/users.d.mts +29 -585
  153. package/resources/x/users/users.d.mts.map +1 -1
  154. package/resources/x/users/users.d.ts +29 -585
  155. package/resources/x/users/users.d.ts.map +1 -1
  156. package/resources/x/users/users.js.map +1 -1
  157. package/resources/x/users/users.mjs.map +1 -1
  158. package/resources/x/x.d.mts +55 -118
  159. package/resources/x/x.d.mts.map +1 -1
  160. package/resources/x/x.d.ts +55 -118
  161. package/resources/x/x.d.ts.map +1 -1
  162. package/resources/x/x.js +4 -0
  163. package/resources/x/x.js.map +1 -1
  164. package/resources/x/x.mjs +4 -0
  165. package/resources/x/x.mjs.map +1 -1
  166. package/skills/x-twitter-scraper/references/api-endpoints-x-api.md +1 -0
  167. package/src/client.ts +8 -0
  168. package/src/internal/detect-platform.ts +2 -2
  169. package/src/resources/events.ts +72 -10
  170. package/src/resources/index.ts +1 -0
  171. package/src/resources/monitors/index.ts +21 -0
  172. package/src/resources/monitors/keywords.ts +10 -118
  173. package/src/resources/monitors/monitors.ts +46 -0
  174. package/src/resources/monitors/posts.ts +463 -0
  175. package/src/resources/shared.ts +773 -200
  176. package/src/resources/support/index.ts +1 -0
  177. package/src/resources/support/support.ts +2 -0
  178. package/src/resources/support/tickets.ts +14 -21
  179. package/src/resources/webhooks.ts +5 -4
  180. package/src/resources/x/accounts.ts +19 -4
  181. package/src/resources/x/broadcasts.ts +3 -159
  182. package/src/resources/x/communities/communities.ts +113 -0
  183. package/src/resources/x/communities/index.ts +3 -0
  184. package/src/resources/x/community-notes.ts +137 -582
  185. package/src/resources/x/index.ts +62 -0
  186. package/src/resources/x/jobs.ts +160 -334
  187. package/src/resources/x/lists.ts +21 -493
  188. package/src/resources/x/spaces.ts +227 -817
  189. package/src/resources/x/sports.ts +1675 -0
  190. package/src/resources/x/tweets/tweets.ts +15 -15
  191. package/src/resources/x/users/users.ts +29 -693
  192. package/src/resources/x/x.ts +175 -128
  193. package/src/version.ts +1 -1
  194. package/version.d.mts +1 -1
  195. package/version.d.ts +1 -1
  196. package/version.js +1 -1
  197. package/version.mjs +1 -1
  198. package/src/lib/.keep +0 -2
@@ -0,0 +1,1675 @@
1
+ // SPDX-FileCopyrightText: 2026 Xquik contributors
2
+ //
3
+ // SPDX-License-Identifier: Apache-2.0
4
+
5
+ import { APIResource } from '../../core/resource';
6
+ import { APIPromise } from '../../core/api-promise';
7
+ import { RequestOptions } from '../../internal/request-options';
8
+ import { path } from '../../internal/utils/path';
9
+
10
+ /**
11
+ * NFL & college football games, scoreboards, box scores & play-by-play
12
+ */
13
+ export class Sports extends APIResource {
14
+ /**
15
+ * Lists NFL or college football games in a time window, with teams & scores.
16
+ * Use it to find game IDs & team IDs. Without from or to, X picks about 5
17
+ * weeks around today. Each request costs 1 credit.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const footballSchedule = await client.x.sports.listGames('nfl');
22
+ * ```
23
+ */
24
+ listGames(
25
+ league: FootballLeague,
26
+ query: SportListGamesParams | null | undefined = {},
27
+ options?: RequestOptions,
28
+ ): APIPromise<FootballSchedule> {
29
+ return this._client.get(path`/x/sports/${league}/games`, { query, ...options });
30
+ }
31
+
32
+ /**
33
+ * Returns 1 game's scoreboard. It has the teams, the score by period, the
34
+ * status & clock, down & distance, the venue & the latest play. Each request
35
+ * costs 1 credit.
36
+ *
37
+ * @example
38
+ * ```ts
39
+ * const footballScoreboard = await client.x.sports.retrieveScoreboard('2055084502741811200', {
40
+ * league: 'nfl',
41
+ * });
42
+ * ```
43
+ */
44
+ retrieveScoreboard(
45
+ id: string,
46
+ params: SportRetrieveScoreboardParams,
47
+ options?: RequestOptions,
48
+ ): APIPromise<FootballScoreboard> {
49
+ const { league, ...query } = params;
50
+ return this._client.get(path`/x/sports/${league}/games/${id}`, { query, ...options });
51
+ }
52
+
53
+ /**
54
+ * Returns each team's totals & each player's stats for 1 game. Stats cover
55
+ * passing, rushing, receiving, defense, kicking & returns. A game that has
56
+ * not started has no stats yet. Each request costs 1 credit.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const footballBoxScore = await client.x.sports.retrieveBoxScore('2055084502741811200', {
61
+ * league: 'nfl',
62
+ * });
63
+ * ```
64
+ */
65
+ retrieveBoxScore(
66
+ id: string,
67
+ params: SportRetrieveBoxScoreParams,
68
+ options?: RequestOptions,
69
+ ): APIPromise<FootballBoxScore> {
70
+ const { league, ...query } = params;
71
+ return this._client.get(path`/x/sports/${league}/games/${id}/box-score`, { query, ...options });
72
+ }
73
+
74
+ /**
75
+ * Returns every drive & play of 1 game, by quarter. Each play has its clock,
76
+ * down & distance, details, penalties & linked posts. Each request costs 1
77
+ * credit.
78
+ *
79
+ * @example
80
+ * ```ts
81
+ * const footballPlays = await client.x.sports.retrievePlays('2055084502741811200', {
82
+ * league: 'nfl',
83
+ * });
84
+ * ```
85
+ */
86
+ retrievePlays(
87
+ id: string,
88
+ params: SportRetrievePlaysParams,
89
+ options?: RequestOptions,
90
+ ): APIPromise<FootballPlays> {
91
+ const { league, ...query } = params;
92
+ return this._client.get(path`/x/sports/${league}/games/${id}/plays`, { query, ...options });
93
+ }
94
+ }
95
+
96
+ /**
97
+ * nfl for the NFL or ncaafb for college football.
98
+ */
99
+ export type FootballLeague = 'nfl' | 'ncaafb';
100
+
101
+ /**
102
+ * A team's side of a game & its points.
103
+ */
104
+ export interface FootballTeamScore {
105
+ /**
106
+ * The team, a key of teams.
107
+ */
108
+ teamId: string | null;
109
+
110
+ /**
111
+ * The team's points so far.
112
+ */
113
+ points: number | null;
114
+ }
115
+
116
+ /**
117
+ * A period of a listed game.
118
+ */
119
+ export interface FootballSchedulePeriod {
120
+ /**
121
+ * X's name for the period, such as Quarter.
122
+ */
123
+ type: string | null;
124
+ }
125
+
126
+ /**
127
+ * Betting odds titles for 1 team, as X shows them.
128
+ */
129
+ export interface FootballOdds {
130
+ /**
131
+ * The money line. X sends it for the away team only.
132
+ */
133
+ moneyLine: string | null;
134
+
135
+ /**
136
+ * The point spread.
137
+ */
138
+ spread: string | null;
139
+
140
+ /**
141
+ * The over or under total.
142
+ */
143
+ total: string | null;
144
+ }
145
+
146
+ /**
147
+ * Betting odds for each team, or null when X has none.
148
+ */
149
+ export interface FootballScheduleGameOdds {
150
+ /**
151
+ * Betting odds titles for 1 team, as X shows them.
152
+ */
153
+ home: FootballOdds;
154
+
155
+ /**
156
+ * Betting odds titles for 1 team, as X shows them.
157
+ */
158
+ away: FootballOdds;
159
+ }
160
+
161
+ /**
162
+ * A listed game, with its teams & score.
163
+ */
164
+ export interface FootballScheduleGame {
165
+ /**
166
+ * The game ID the other sports routes take.
167
+ */
168
+ id: string;
169
+
170
+ /**
171
+ * This game's part of the season, such as RegularSeason.
172
+ */
173
+ seasonType: string | null;
174
+
175
+ /**
176
+ * This game's week of the season.
177
+ */
178
+ week: number | null;
179
+
180
+ /**
181
+ * This game's kickoff time in UTC, or null when Xquik cannot read it.
182
+ */
183
+ startsAt: string | null;
184
+
185
+ /**
186
+ * This game's status from X, such as Scheduled, InProgress or Closed.
187
+ */
188
+ status: string | null;
189
+
190
+ /**
191
+ * This game's clock, as X writes it.
192
+ */
193
+ clock: string | null;
194
+
195
+ /**
196
+ * This game's current or last quarter.
197
+ */
198
+ quarter: number | null;
199
+
200
+ /**
201
+ * A team's side of a game & its points.
202
+ */
203
+ home: FootballTeamScore;
204
+
205
+ /**
206
+ * A team's side of a game & its points.
207
+ */
208
+ away: FootballTeamScore;
209
+
210
+ /**
211
+ * The game's teams, keys of teams.
212
+ */
213
+ teamIds: Array<string>;
214
+
215
+ /**
216
+ * The periods played so far.
217
+ */
218
+ periods: Array<FootballSchedulePeriod>;
219
+
220
+ /**
221
+ * Betting odds for each team, or null when X has none.
222
+ */
223
+ odds: FootballScheduleGameOdds | null;
224
+ }
225
+
226
+ export interface SportsTeamColor {
227
+ /**
228
+ * Red, from 0 to 255.
229
+ */
230
+ r: number | null;
231
+
232
+ /**
233
+ * Green, from 0 to 255.
234
+ */
235
+ g: number | null;
236
+
237
+ /**
238
+ * Blue, from 0 to 255.
239
+ */
240
+ b: number | null;
241
+ }
242
+
243
+ /**
244
+ * The team's logo images.
245
+ */
246
+ export interface SportsTeamLogos {
247
+ /**
248
+ * The logo X shows by default.
249
+ */
250
+ default: string | null;
251
+
252
+ /**
253
+ * The logo for light backgrounds.
254
+ */
255
+ light: string | null;
256
+
257
+ /**
258
+ * The logo for dark backgrounds.
259
+ */
260
+ dark: string | null;
261
+ }
262
+
263
+ /**
264
+ * A team, as X's sports pages show it.
265
+ */
266
+ export interface SportsTeam {
267
+ /**
268
+ * The team ID that games & players refer to.
269
+ */
270
+ id: string;
271
+
272
+ /**
273
+ * The team's full name.
274
+ */
275
+ name: string | null;
276
+
277
+ /**
278
+ * The team's short name.
279
+ */
280
+ shortName: string | null;
281
+
282
+ /**
283
+ * The team's abbreviation.
284
+ */
285
+ abbreviation: string | null;
286
+
287
+ /**
288
+ * Another ID X keeps for the team.
289
+ */
290
+ alternateId: string | null;
291
+
292
+ /**
293
+ * The school or place a college team plays for. X sends it only in college
294
+ * football schedules.
295
+ */
296
+ location: string | null;
297
+
298
+ /**
299
+ * The team's colors, as red, green & blue from 0 to 255.
300
+ */
301
+ colors: Array<SportsTeamColor>;
302
+
303
+ /**
304
+ * The team's logo images.
305
+ */
306
+ logos: SportsTeamLogos;
307
+
308
+ /**
309
+ * The user ID of the team's X account.
310
+ */
311
+ xUserId: string | null;
312
+ }
313
+
314
+ /**
315
+ * A league's games in a time window.
316
+ */
317
+ export interface FootballSchedule {
318
+ /**
319
+ * The league whose games this list holds.
320
+ */
321
+ league: FootballLeague;
322
+
323
+ /**
324
+ * The games, earliest first.
325
+ */
326
+ games: Array<FootballScheduleGame>;
327
+
328
+ /**
329
+ * The teams the games name, by team ID.
330
+ */
331
+ teams: { [key: string]: SportsTeam };
332
+ }
333
+
334
+ /**
335
+ * Down & distance now, or null before kickoff.
336
+ */
337
+ export interface FootballScoreboardSituation {
338
+ /**
339
+ * The current down, from 1 to 4.
340
+ */
341
+ down: number | null;
342
+
343
+ /**
344
+ * The yards the offense needs now for a first down.
345
+ */
346
+ yardsToGo: number | null;
347
+
348
+ /**
349
+ * The ball's current yard line.
350
+ */
351
+ yardline: number | null;
352
+
353
+ /**
354
+ * The team whose half the ball is in, a key of teams.
355
+ */
356
+ yardlineTeamId: string | null;
357
+
358
+ /**
359
+ * The team with the ball, a key of teams.
360
+ */
361
+ possessionTeamId: string | null;
362
+ }
363
+
364
+ /**
365
+ * A team's side of a scoreboard.
366
+ */
367
+ export interface FootballSide {
368
+ /**
369
+ * The team, a key of teams.
370
+ */
371
+ teamId: string | null;
372
+
373
+ /**
374
+ * The team's points so far.
375
+ */
376
+ points: number | null;
377
+
378
+ /**
379
+ * The timeouts the team has left.
380
+ */
381
+ timeoutsLeft: number | null;
382
+ }
383
+
384
+ /**
385
+ * A period of a game & its points.
386
+ */
387
+ export interface FootballPeriod {
388
+ /**
389
+ * X's name for the period, such as Quarter.
390
+ */
391
+ type: string | null;
392
+
393
+ /**
394
+ * The period's number, or null when X sends no digits.
395
+ */
396
+ number: number | null;
397
+
398
+ /**
399
+ * The period's place in the game, from 1.
400
+ */
401
+ sequence: number | null;
402
+
403
+ /**
404
+ * The home team's points in the period.
405
+ */
406
+ homePoints: number | null;
407
+
408
+ /**
409
+ * The away team's points in the period.
410
+ */
411
+ awayPoints: number | null;
412
+ }
413
+
414
+ /**
415
+ * The points a scoring play added, or null.
416
+ */
417
+ export interface FootballPlayScore {
418
+ /**
419
+ * The home team's score once this scoring play counted.
420
+ */
421
+ homePoints: number | null;
422
+
423
+ /**
424
+ * The away team's score once this scoring play counted.
425
+ */
426
+ awayPoints: number | null;
427
+
428
+ /**
429
+ * The points the play scored.
430
+ */
431
+ points: number | null;
432
+ }
433
+
434
+ /**
435
+ * Down & distance when the play started, or null.
436
+ */
437
+ export interface FootballPlayStart {
438
+ /**
439
+ * The down, from 1 to 4.
440
+ */
441
+ down: number | null;
442
+
443
+ /**
444
+ * The yards needed for a first down.
445
+ */
446
+ yardsToGo: number | null;
447
+
448
+ /**
449
+ * The yard line of the ball.
450
+ */
451
+ yardline: number | null;
452
+
453
+ /**
454
+ * Whose half the ball was in. Home or Away in NFL games, the team's
455
+ * alternateId in college games.
456
+ */
457
+ yardlineSide: string | null;
458
+
459
+ /**
460
+ * The team with the ball. Home or Away in NFL games, the team's alternateId
461
+ * in college games.
462
+ */
463
+ possession: string | null;
464
+ }
465
+
466
+ /**
467
+ * Flags X shows on the field for the play, or null.
468
+ */
469
+ export interface FootballPlayOnField {
470
+ /**
471
+ * Whether a penalty called the play back.
472
+ */
473
+ calledBack: boolean | null;
474
+
475
+ /**
476
+ * Whether a flag was thrown.
477
+ */
478
+ penaltyOnField: boolean | null;
479
+
480
+ /**
481
+ * Whether a timeout followed the play.
482
+ */
483
+ timeout: boolean | null;
484
+
485
+ /**
486
+ * Whether officials were reviewing the play.
487
+ */
488
+ underReview: boolean | null;
489
+ }
490
+
491
+ export interface FootballPlayDetailPlayer {
492
+ /**
493
+ * The player, a key of players.
494
+ */
495
+ playerId: string | null;
496
+
497
+ /**
498
+ * The player's role, such as Pass, Receive or Tackle.
499
+ */
500
+ playerRole: string | null;
501
+ }
502
+
503
+ /**
504
+ * The penalty this step called, or null.
505
+ */
506
+ export interface FootballPlayDetailPenalty {
507
+ /**
508
+ * The penalty's name.
509
+ */
510
+ description: string | null;
511
+
512
+ /**
513
+ * What the penalty does to the down.
514
+ */
515
+ nextDown: string | null;
516
+
517
+ /**
518
+ * Whether the penalty was accepted or declined.
519
+ */
520
+ result: string | null;
521
+
522
+ /**
523
+ * The penalized team, a key of teams.
524
+ */
525
+ teamId: string | null;
526
+
527
+ /**
528
+ * The penalty's yards.
529
+ */
530
+ yards: number | null;
531
+ }
532
+
533
+ /**
534
+ * 1 step of a play, such as a pass, a tackle or a penalty.
535
+ */
536
+ export interface FootballPlayDetail {
537
+ /**
538
+ * The step's place in the play, from 1.
539
+ */
540
+ sequence: number | null;
541
+
542
+ /**
543
+ * X's kind of step, such as Pass, Tackle or Penalty.
544
+ */
545
+ category: string | null;
546
+
547
+ /**
548
+ * What happened in the step.
549
+ */
550
+ description: string | null;
551
+
552
+ /**
553
+ * The direction X gives for the step.
554
+ */
555
+ direction: string | null;
556
+
557
+ /**
558
+ * The yards the step gained or lost.
559
+ */
560
+ yards: number | null;
561
+
562
+ /**
563
+ * The players in the step & their roles.
564
+ */
565
+ players: Array<FootballPlayDetailPlayer>;
566
+
567
+ /**
568
+ * The penalty this step called, or null.
569
+ */
570
+ penalty: FootballPlayDetailPenalty | null;
571
+ }
572
+
573
+ /**
574
+ * The post X links to the play, or null.
575
+ */
576
+ export interface FootballPlayPost {
577
+ /**
578
+ * The post's ID.
579
+ */
580
+ id: string;
581
+
582
+ /**
583
+ * The username of the post's author, when X sends it.
584
+ */
585
+ username: string | null;
586
+ }
587
+
588
+ /**
589
+ * A play, with its situation, steps & linked posts.
590
+ */
591
+ export interface FootballPlay {
592
+ /**
593
+ * X's ID for the play within the game.
594
+ */
595
+ id: string | null;
596
+
597
+ /**
598
+ * The play's place in its drive, or null when X sends no digits.
599
+ */
600
+ sequence: number | null;
601
+
602
+ /**
603
+ * The game clock when the play started, as HH:MM:SS.
604
+ */
605
+ clock: string | null;
606
+
607
+ /**
608
+ * X's kind of play, such as Pass, Rush, Punt or Conversion.
609
+ */
610
+ type: string | null;
611
+
612
+ /**
613
+ * Where the play went, such as Left or Middle.
614
+ */
615
+ direction: string | null;
616
+
617
+ /**
618
+ * The play as the official play-by-play writes it.
619
+ */
620
+ description: string | null;
621
+
622
+ /**
623
+ * Whether the play scored points.
624
+ */
625
+ scoring: boolean | null;
626
+
627
+ /**
628
+ * The home team's points after the play.
629
+ */
630
+ homePoints: number | null;
631
+
632
+ /**
633
+ * The away team's points after the play.
634
+ */
635
+ awayPoints: number | null;
636
+
637
+ /**
638
+ * The points a scoring play added, or null.
639
+ */
640
+ score: FootballPlayScore | null;
641
+
642
+ /**
643
+ * Down & distance when the play started, or null.
644
+ */
645
+ start: FootballPlayStart | null;
646
+
647
+ /**
648
+ * Flags X shows on the field for the play, or null.
649
+ */
650
+ onField: FootballPlayOnField | null;
651
+
652
+ /**
653
+ * The play's steps, in order.
654
+ */
655
+ details: Array<FootballPlayDetail>;
656
+
657
+ /**
658
+ * The post X links to the play, or null.
659
+ */
660
+ post: FootballPlayPost | null;
661
+
662
+ /**
663
+ * The ID of a post with the play's video.
664
+ */
665
+ videoPostId: string | null;
666
+
667
+ /**
668
+ * The ID of a reply with the play's video.
669
+ */
670
+ videoReplyPostId: string | null;
671
+ }
672
+
673
+ /**
674
+ * Photos of the player. Any of them can be null.
675
+ */
676
+ export interface FootballPlayerHeadshots {
677
+ /**
678
+ * The photo X shows on the player's card.
679
+ */
680
+ original: string | null;
681
+
682
+ /**
683
+ * The large photo.
684
+ */
685
+ large: string | null;
686
+
687
+ /**
688
+ * The medium photo.
689
+ */
690
+ medium: string | null;
691
+
692
+ /**
693
+ * The small photo.
694
+ */
695
+ small: string | null;
696
+ }
697
+
698
+ /**
699
+ * The player's X account, or null without one.
700
+ */
701
+ export interface FootballPlayerXUser {
702
+ /**
703
+ * The account's user ID.
704
+ */
705
+ id: string;
706
+
707
+ /**
708
+ * The account's username, without @.
709
+ */
710
+ username: string | null;
711
+
712
+ /**
713
+ * Whether the account has a blue check.
714
+ */
715
+ blueVerified: boolean | null;
716
+ }
717
+
718
+ /**
719
+ * A football player, as X's sports pages show them.
720
+ */
721
+ export interface FootballPlayer {
722
+ /**
723
+ * The player ID that plays & stats refer to.
724
+ */
725
+ id: string;
726
+
727
+ /**
728
+ * The player's team, a key of teams.
729
+ */
730
+ teamId: string | null;
731
+
732
+ /**
733
+ * The player's full name.
734
+ */
735
+ name: string | null;
736
+
737
+ /**
738
+ * The name play descriptions use.
739
+ */
740
+ shortName: string | null;
741
+
742
+ /**
743
+ * The jersey number, as text.
744
+ */
745
+ jersey: string | null;
746
+
747
+ /**
748
+ * The position abbreviation, such as QB or DE.
749
+ */
750
+ position: string | null;
751
+
752
+ /**
753
+ * The college the player came from.
754
+ */
755
+ college: string | null;
756
+
757
+ /**
758
+ * Where the player was born.
759
+ */
760
+ birthPlace: string | null;
761
+
762
+ /**
763
+ * The birth date, as YYYY-MM-DD.
764
+ */
765
+ birthDate: string | null;
766
+
767
+ /**
768
+ * Photos of the player. Any of them can be null.
769
+ */
770
+ headshots: FootballPlayerHeadshots;
771
+
772
+ /**
773
+ * The player's X account, or null without one.
774
+ */
775
+ xUser: FootballPlayerXUser | null;
776
+ }
777
+
778
+ /**
779
+ * 1 game's scoreboard.
780
+ */
781
+ export interface FootballScoreboard {
782
+ /**
783
+ * The game ID from your request.
784
+ */
785
+ id: string;
786
+
787
+ /**
788
+ * The league from your request.
789
+ */
790
+ league: FootballLeague;
791
+
792
+ /**
793
+ * X's ID for the season. NFL games have one.
794
+ */
795
+ seasonId: string | null;
796
+
797
+ /**
798
+ * The part of the season, such as RegularSeason.
799
+ */
800
+ seasonType: string | null;
801
+
802
+ /**
803
+ * The week of the season.
804
+ */
805
+ week: number | null;
806
+
807
+ /**
808
+ * The kickoff time in UTC, or null when X sends none Xquik can read.
809
+ */
810
+ startsAt: string | null;
811
+
812
+ /**
813
+ * The stadium.
814
+ */
815
+ venue: string | null;
816
+
817
+ /**
818
+ * X's game status, such as Scheduled, InProgress or Closed.
819
+ */
820
+ status: string | null;
821
+
822
+ /**
823
+ * The game clock, as X writes it.
824
+ */
825
+ clock: string | null;
826
+
827
+ /**
828
+ * The current or last quarter.
829
+ */
830
+ quarter: number | null;
831
+
832
+ /**
833
+ * Down & distance now, or null before kickoff.
834
+ */
835
+ situation: FootballScoreboardSituation | null;
836
+
837
+ /**
838
+ * A team's side of a scoreboard.
839
+ */
840
+ home: FootballSide;
841
+
842
+ /**
843
+ * A team's side of a scoreboard.
844
+ */
845
+ away: FootballSide;
846
+
847
+ /**
848
+ * Points by period, in order.
849
+ */
850
+ periods: Array<FootballPeriod>;
851
+
852
+ /**
853
+ * The latest play, or null before kickoff.
854
+ */
855
+ lastPlay: FootballPlay | null;
856
+
857
+ /**
858
+ * The teams this answer names, by team ID.
859
+ */
860
+ teams: { [key: string]: SportsTeam };
861
+
862
+ /**
863
+ * The players this answer names, by player ID.
864
+ */
865
+ players: { [key: string]: FootballPlayer };
866
+ }
867
+
868
+ /**
869
+ * Third downs tried & converted.
870
+ */
871
+ export interface FootballTeamTotalsThirdDowns {
872
+ /**
873
+ * Third downs tried.
874
+ */
875
+ attempts: number | null;
876
+
877
+ /**
878
+ * Third downs converted.
879
+ */
880
+ successes: number | null;
881
+ }
882
+
883
+ /**
884
+ * Fumble stats.
885
+ */
886
+ export interface FootballFumbleStats {
887
+ /**
888
+ * Fumbles the other team recovered.
889
+ */
890
+ lost: number | null;
891
+
892
+ /**
893
+ * Touchdowns scored after recovering the other team's fumble.
894
+ */
895
+ opponentRecoveryTouchdowns: number | null;
896
+
897
+ /**
898
+ * Touchdowns scored after recovering an own fumble.
899
+ */
900
+ ownRecoveryTouchdowns: number | null;
901
+ }
902
+
903
+ /**
904
+ * Passing stats.
905
+ */
906
+ export interface FootballPassingStats {
907
+ /**
908
+ * Passes thrown.
909
+ */
910
+ attempts: number | null;
911
+
912
+ /**
913
+ * Yards per pass.
914
+ */
915
+ avgYards: number | null;
916
+
917
+ /**
918
+ * Passes caught.
919
+ */
920
+ completions: number | null;
921
+
922
+ /**
923
+ * Passes intercepted.
924
+ */
925
+ interceptions: number | null;
926
+
927
+ /**
928
+ * Passing yards minus sack yards.
929
+ */
930
+ netYards: number | null;
931
+
932
+ /**
933
+ * The passer rating.
934
+ */
935
+ rating: number | null;
936
+
937
+ /**
938
+ * Yards lost to sacks.
939
+ */
940
+ sackYards: number | null;
941
+
942
+ /**
943
+ * Times sacked.
944
+ */
945
+ sacks: number | null;
946
+
947
+ /**
948
+ * Passing touchdowns.
949
+ */
950
+ touchdowns: number | null;
951
+
952
+ /**
953
+ * Passing yards.
954
+ */
955
+ yards: number | null;
956
+ }
957
+
958
+ /**
959
+ * Penalties against the team.
960
+ */
961
+ export interface FootballTeamTotalsPenalties {
962
+ /**
963
+ * Penalties.
964
+ */
965
+ count: number | null;
966
+
967
+ /**
968
+ * Penalty yards.
969
+ */
970
+ yards: number | null;
971
+ }
972
+
973
+ /**
974
+ * Rushing stats.
975
+ */
976
+ export interface FootballRushingStats {
977
+ /**
978
+ * Rushes.
979
+ */
980
+ attempts: number | null;
981
+
982
+ /**
983
+ * Yards per rush.
984
+ */
985
+ avgYards: number | null;
986
+
987
+ /**
988
+ * The longest rush, in yards.
989
+ */
990
+ longest: number | null;
991
+
992
+ /**
993
+ * Rushing touchdowns.
994
+ */
995
+ touchdowns: number | null;
996
+
997
+ /**
998
+ * Rushing yards.
999
+ */
1000
+ yards: number | null;
1001
+ }
1002
+
1003
+ /**
1004
+ * A team's totals for 1 game.
1005
+ */
1006
+ export interface FootballTeamTotals {
1007
+ /**
1008
+ * First downs.
1009
+ */
1010
+ firstDowns: number | null;
1011
+
1012
+ /**
1013
+ * Third downs tried & converted.
1014
+ */
1015
+ thirdDowns: FootballTeamTotalsThirdDowns | null;
1016
+
1017
+ /**
1018
+ * The team's fumbles, or null.
1019
+ */
1020
+ fumbles: FootballFumbleStats | null;
1021
+
1022
+ /**
1023
+ * The team's passing, or null.
1024
+ */
1025
+ passing: FootballPassingStats | null;
1026
+
1027
+ /**
1028
+ * Penalties against the team.
1029
+ */
1030
+ penalties: FootballTeamTotalsPenalties | null;
1031
+
1032
+ /**
1033
+ * The team's rushing, or null.
1034
+ */
1035
+ rushing: FootballRushingStats | null;
1036
+
1037
+ /**
1038
+ * Time with the ball, in seconds.
1039
+ */
1040
+ timeOfPossessionSeconds: number | null;
1041
+
1042
+ /**
1043
+ * Total yards.
1044
+ */
1045
+ totalYards: number | null;
1046
+
1047
+ /**
1048
+ * Turnovers.
1049
+ */
1050
+ turnovers: number | null;
1051
+ }
1052
+
1053
+ /**
1054
+ * Receiving stats.
1055
+ */
1056
+ export interface FootballPlayerStatsReceiving {
1057
+ /**
1058
+ * Yards per catch.
1059
+ */
1060
+ avgYards: number | null;
1061
+
1062
+ /**
1063
+ * The longest catch, in yards.
1064
+ */
1065
+ longest: number | null;
1066
+
1067
+ /**
1068
+ * Catches.
1069
+ */
1070
+ receptions: number | null;
1071
+
1072
+ /**
1073
+ * Passes thrown to the player.
1074
+ */
1075
+ targets: number | null;
1076
+
1077
+ /**
1078
+ * Receiving touchdowns.
1079
+ */
1080
+ touchdowns: number | null;
1081
+
1082
+ /**
1083
+ * Receiving yards.
1084
+ */
1085
+ yards: number | null;
1086
+ }
1087
+
1088
+ /**
1089
+ * Defensive stats.
1090
+ */
1091
+ export interface FootballPlayerStatsDefense {
1092
+ /**
1093
+ * Solo & assisted tackles together.
1094
+ */
1095
+ combined: number | null;
1096
+
1097
+ /**
1098
+ * Fumbles forced.
1099
+ */
1100
+ forcedFumbles: number | null;
1101
+
1102
+ /**
1103
+ * Interceptions.
1104
+ */
1105
+ interceptions: number | null;
1106
+
1107
+ /**
1108
+ * Passes defended.
1109
+ */
1110
+ passesDefended: number | null;
1111
+
1112
+ /**
1113
+ * Sacks, with a shared sack as 0.5.
1114
+ */
1115
+ sacks: number | null;
1116
+
1117
+ /**
1118
+ * Solo tackles.
1119
+ */
1120
+ tackles: number | null;
1121
+
1122
+ /**
1123
+ * Tackles for a loss.
1124
+ */
1125
+ tacklesForLoss: number | null;
1126
+ }
1127
+
1128
+ /**
1129
+ * Kick, punt or interception return stats.
1130
+ */
1131
+ export interface FootballReturnStats {
1132
+ /**
1133
+ * Yards per return.
1134
+ */
1135
+ avgYards: number | null;
1136
+
1137
+ /**
1138
+ * The longest return, in yards.
1139
+ */
1140
+ longest: number | null;
1141
+
1142
+ /**
1143
+ * Returns.
1144
+ */
1145
+ returns: number | null;
1146
+
1147
+ /**
1148
+ * Return touchdowns.
1149
+ */
1150
+ touchdowns: number | null;
1151
+
1152
+ /**
1153
+ * Return yards.
1154
+ */
1155
+ yards: number | null;
1156
+ }
1157
+
1158
+ /**
1159
+ * Punting stats.
1160
+ */
1161
+ export interface FootballPlayerStatsPunts {
1162
+ /**
1163
+ * Punts.
1164
+ */
1165
+ attempts: number | null;
1166
+
1167
+ /**
1168
+ * Net yards per punt, after returns.
1169
+ */
1170
+ avgNetYards: number | null;
1171
+
1172
+ /**
1173
+ * Yards per punt.
1174
+ */
1175
+ avgYards: number | null;
1176
+
1177
+ /**
1178
+ * Punts downed inside the 20.
1179
+ */
1180
+ inside20: number | null;
1181
+
1182
+ /**
1183
+ * The longest punt, in yards.
1184
+ */
1185
+ longest: number | null;
1186
+
1187
+ /**
1188
+ * Punting yards.
1189
+ */
1190
+ yards: number | null;
1191
+ }
1192
+
1193
+ /**
1194
+ * Field goal stats.
1195
+ */
1196
+ export interface FootballPlayerStatsFieldGoals {
1197
+ /**
1198
+ * Field goals tried.
1199
+ */
1200
+ attempts: number | null;
1201
+
1202
+ /**
1203
+ * The longest made field goal, in yards.
1204
+ */
1205
+ longest: number | null;
1206
+
1207
+ /**
1208
+ * Field goals made.
1209
+ */
1210
+ made: number | null;
1211
+ }
1212
+
1213
+ /**
1214
+ * Extra point kicks.
1215
+ */
1216
+ export interface FootballPlayerStatsExtraPoints {
1217
+ /**
1218
+ * Extra points tried.
1219
+ */
1220
+ attempts: number | null;
1221
+
1222
+ /**
1223
+ * Extra points made.
1224
+ */
1225
+ made: number | null;
1226
+ }
1227
+
1228
+ /**
1229
+ * 2-point conversions.
1230
+ */
1231
+ export interface FootballPlayerStatsConversions {
1232
+ /**
1233
+ * Defensive 2-point returns.
1234
+ */
1235
+ defenseSuccesses: number | null;
1236
+
1237
+ /**
1238
+ * 2-point conversions by pass.
1239
+ */
1240
+ passSuccesses: number | null;
1241
+
1242
+ /**
1243
+ * 2-point conversions by rush.
1244
+ */
1245
+ rushSuccesses: number | null;
1246
+
1247
+ /**
1248
+ * 2-point conversions after a turnover.
1249
+ */
1250
+ turnoverSuccesses: number | null;
1251
+ }
1252
+
1253
+ /**
1254
+ * 1 player's stats for 1 game. Only the stat groups X sent are present.
1255
+ */
1256
+ export interface FootballPlayerStats {
1257
+ /**
1258
+ * The player these stats belong to, a key of players.
1259
+ */
1260
+ playerId: string | null;
1261
+
1262
+ /**
1263
+ * Passing stats.
1264
+ */
1265
+ passing?: FootballPassingStats;
1266
+
1267
+ /**
1268
+ * Rushing stats.
1269
+ */
1270
+ rushing?: FootballRushingStats;
1271
+
1272
+ /**
1273
+ * Receiving stats.
1274
+ */
1275
+ receiving?: FootballPlayerStatsReceiving;
1276
+
1277
+ /**
1278
+ * Defensive stats.
1279
+ */
1280
+ defense?: FootballPlayerStatsDefense;
1281
+
1282
+ /**
1283
+ * Fumble stats.
1284
+ */
1285
+ fumbles?: FootballFumbleStats;
1286
+
1287
+ /**
1288
+ * Kick, punt or interception return stats.
1289
+ */
1290
+ kickReturns?: FootballReturnStats;
1291
+
1292
+ /**
1293
+ * Kick, punt or interception return stats.
1294
+ */
1295
+ puntReturns?: FootballReturnStats;
1296
+
1297
+ /**
1298
+ * Kick, punt or interception return stats.
1299
+ */
1300
+ interceptionReturns?: FootballReturnStats;
1301
+
1302
+ /**
1303
+ * Punting stats.
1304
+ */
1305
+ punts?: FootballPlayerStatsPunts;
1306
+
1307
+ /**
1308
+ * Field goal stats.
1309
+ */
1310
+ fieldGoals?: FootballPlayerStatsFieldGoals;
1311
+
1312
+ /**
1313
+ * Extra point kicks.
1314
+ */
1315
+ extraPoints?: FootballPlayerStatsExtraPoints;
1316
+
1317
+ /**
1318
+ * 2-point conversions.
1319
+ */
1320
+ conversions?: FootballPlayerStatsConversions;
1321
+ }
1322
+
1323
+ /**
1324
+ * 1 team's totals & player stats.
1325
+ */
1326
+ export interface FootballTeamBox {
1327
+ /**
1328
+ * The team these totals belong to, a key of teams.
1329
+ */
1330
+ teamId: string | null;
1331
+
1332
+ /**
1333
+ * The team's totals, or null before kickoff.
1334
+ */
1335
+ totals: FootballTeamTotals | null;
1336
+
1337
+ /**
1338
+ * Each player with stats, 1 entry per player.
1339
+ */
1340
+ players: Array<FootballPlayerStats>;
1341
+ }
1342
+
1343
+ /**
1344
+ * 1 game's team totals & player stats.
1345
+ */
1346
+ export interface FootballBoxScore {
1347
+ /**
1348
+ * The ID of the game this box score covers.
1349
+ */
1350
+ id: string;
1351
+
1352
+ /**
1353
+ * The league of the game this box score covers.
1354
+ */
1355
+ league: FootballLeague;
1356
+
1357
+ /**
1358
+ * 1 team's totals & player stats.
1359
+ */
1360
+ home: FootballTeamBox;
1361
+
1362
+ /**
1363
+ * 1 team's totals & player stats.
1364
+ */
1365
+ away: FootballTeamBox;
1366
+
1367
+ /**
1368
+ * The teams this box score names, by team ID.
1369
+ */
1370
+ teams: { [key: string]: SportsTeam };
1371
+
1372
+ /**
1373
+ * The players this box score names, by player ID.
1374
+ */
1375
+ players: { [key: string]: FootballPlayer };
1376
+ }
1377
+
1378
+ /**
1379
+ * A drive, with its result & plays.
1380
+ */
1381
+ export interface FootballDrive {
1382
+ /**
1383
+ * X's ID for the drive within the game.
1384
+ */
1385
+ id: string | null;
1386
+
1387
+ /**
1388
+ * The drive's place in the game, from 1.
1389
+ */
1390
+ sequence: number | null;
1391
+
1392
+ /**
1393
+ * The team that drove. Home or Away in NFL games, the team's alternateId in
1394
+ * college games.
1395
+ */
1396
+ offense: string | null;
1397
+
1398
+ /**
1399
+ * The team on defense. Home or Away in NFL games, the team's alternateId in
1400
+ * college games.
1401
+ */
1402
+ defense: string | null;
1403
+
1404
+ /**
1405
+ * The game clock when the drive started, as HH:MM:SS.
1406
+ */
1407
+ startClock: string | null;
1408
+
1409
+ /**
1410
+ * The game clock when the drive ended, as HH:MM:SS.
1411
+ */
1412
+ endClock: string | null;
1413
+
1414
+ /**
1415
+ * How the drive started, such as Kickoff or Punt.
1416
+ */
1417
+ startReason: string | null;
1418
+
1419
+ /**
1420
+ * How the drive ended, such as Touchdown or Punt.
1421
+ */
1422
+ endReason: string | null;
1423
+
1424
+ /**
1425
+ * The drive's plays.
1426
+ */
1427
+ playCount: number | null;
1428
+
1429
+ /**
1430
+ * The first downs the drive gained.
1431
+ */
1432
+ firstDowns: number | null;
1433
+
1434
+ /**
1435
+ * The yards the drive gained.
1436
+ */
1437
+ netYards: number | null;
1438
+
1439
+ /**
1440
+ * Whether the drive scored.
1441
+ */
1442
+ scoring: boolean | null;
1443
+
1444
+ /**
1445
+ * The drive's plays, in order.
1446
+ */
1447
+ plays: Array<FootballPlay>;
1448
+ }
1449
+
1450
+ /**
1451
+ * A quarter & its drives.
1452
+ */
1453
+ export interface FootballQuarter {
1454
+ /**
1455
+ * X's ID for the quarter within the game.
1456
+ */
1457
+ id: string | null;
1458
+
1459
+ /**
1460
+ * The quarter's number.
1461
+ */
1462
+ number: number | null;
1463
+
1464
+ /**
1465
+ * The quarter's place in the game, from 1.
1466
+ */
1467
+ sequence: number | null;
1468
+
1469
+ /**
1470
+ * The quarter's drives, in order.
1471
+ */
1472
+ drives: Array<FootballDrive>;
1473
+ }
1474
+
1475
+ /**
1476
+ * 1 game's drives & plays, by quarter.
1477
+ */
1478
+ export interface FootballPlays {
1479
+ /**
1480
+ * The ID of the game these plays come from.
1481
+ */
1482
+ id: string;
1483
+
1484
+ /**
1485
+ * The league of the game these plays come from.
1486
+ */
1487
+ league: FootballLeague;
1488
+
1489
+ /**
1490
+ * The home team, a key of teams.
1491
+ */
1492
+ homeTeamId: string | null;
1493
+
1494
+ /**
1495
+ * The away team, a key of teams.
1496
+ */
1497
+ awayTeamId: string | null;
1498
+
1499
+ /**
1500
+ * The game's quarters, in order. Empty before kickoff.
1501
+ */
1502
+ quarters: Array<FootballQuarter>;
1503
+
1504
+ /**
1505
+ * The teams these plays name, by team ID.
1506
+ */
1507
+ teams: { [key: string]: SportsTeam };
1508
+
1509
+ /**
1510
+ * The players these plays name, by player ID.
1511
+ */
1512
+ players: { [key: string]: FootballPlayer };
1513
+ }
1514
+
1515
+ export interface SportListGamesParams {
1516
+ /**
1517
+ * Fields to keep in each row, comma-separated. Use dots for nested fields,
1518
+ * such as author.username. A list keeps the field in each item. Case &
1519
+ * underscores do not matter. A row that lacks a field leaves it out. Cursors,
1520
+ * counts & diagnostics always stay. An unknown name answers 400 unknown_field
1521
+ * with the valid names, before any read. The price stays the same. SDK row
1522
+ * types then hold only the named fields.
1523
+ */
1524
+ fields?: string;
1525
+
1526
+ /**
1527
+ * Fields to drop from each row, comma-separated. It takes the same names as
1528
+ * fields. With fields, it drops from the kept fields.
1529
+ */
1530
+ omit?: string;
1531
+
1532
+ /**
1533
+ * Start of the window. Takes an ISO 8601 date or time, such as 2026-10-01, or
1534
+ * Unix seconds. A time without a zone reads as UTC. Defaults to 7 days before
1535
+ * to. Alias sinceTime.
1536
+ */
1537
+ from?: string;
1538
+
1539
+ /**
1540
+ * Keeps only 1 team's games, by team ID. Each game lists its teamIds. Aliases
1541
+ * teamId & team_id.
1542
+ */
1543
+ team?: string;
1544
+
1545
+ /**
1546
+ * End of the window. Takes the forms of from. Defaults to 7 days after from.
1547
+ * Alias untilTime.
1548
+ */
1549
+ to?: string;
1550
+ }
1551
+
1552
+ export interface SportRetrieveScoreboardParams {
1553
+ /**
1554
+ * Path param: nfl for the NFL or ncaafb for college football, in any case.
1555
+ * Another value gets a free 400 `invalid_league` before X is read.
1556
+ */
1557
+ league: FootballLeague;
1558
+
1559
+ /**
1560
+ * Fields to keep in each row, comma-separated. Use dots for nested fields,
1561
+ * such as author.username. A list keeps the field in each item. Case &
1562
+ * underscores do not matter. A row that lacks a field leaves it out. Cursors,
1563
+ * counts & diagnostics always stay. An unknown name answers 400 unknown_field
1564
+ * with the valid names, before any read. The price stays the same. SDK row
1565
+ * types then hold only the named fields.
1566
+ */
1567
+ fields?: string;
1568
+
1569
+ /**
1570
+ * Fields to drop from each row, comma-separated. It takes the same names as
1571
+ * fields. With fields, it drops from the kept fields.
1572
+ */
1573
+ omit?: string;
1574
+ }
1575
+
1576
+ export interface SportRetrieveBoxScoreParams {
1577
+ /**
1578
+ * Path param: nfl for the NFL or ncaafb for college football, in any case.
1579
+ * Another value gets a free 400 `invalid_league` before X is read.
1580
+ */
1581
+ league: FootballLeague;
1582
+
1583
+ /**
1584
+ * Fields to keep in each row, comma-separated. Use dots for nested fields,
1585
+ * such as author.username. A list keeps the field in each item. Case &
1586
+ * underscores do not matter. A row that lacks a field leaves it out. Cursors,
1587
+ * counts & diagnostics always stay. An unknown name answers 400 unknown_field
1588
+ * with the valid names, before any read. The price stays the same. SDK row
1589
+ * types then hold only the named fields.
1590
+ */
1591
+ fields?: string;
1592
+
1593
+ /**
1594
+ * Fields to drop from each row, comma-separated. It takes the same names as
1595
+ * fields. With fields, it drops from the kept fields.
1596
+ */
1597
+ omit?: string;
1598
+ }
1599
+
1600
+ export interface SportRetrievePlaysParams {
1601
+ /**
1602
+ * Path param: nfl for the NFL or ncaafb for college football, in any case.
1603
+ * Another value gets a free 400 `invalid_league` before X is read.
1604
+ */
1605
+ league: FootballLeague;
1606
+
1607
+ /**
1608
+ * Fields to keep in each row, comma-separated. Use dots for nested fields,
1609
+ * such as author.username. A list keeps the field in each item. Case &
1610
+ * underscores do not matter. A row that lacks a field leaves it out. Cursors,
1611
+ * counts & diagnostics always stay. An unknown name answers 400 unknown_field
1612
+ * with the valid names, before any read. The price stays the same. SDK row
1613
+ * types then hold only the named fields.
1614
+ */
1615
+ fields?: string;
1616
+
1617
+ /**
1618
+ * Fields to drop from each row, comma-separated. It takes the same names as
1619
+ * fields. With fields, it drops from the kept fields.
1620
+ */
1621
+ omit?: string;
1622
+ }
1623
+
1624
+ export declare namespace Sports {
1625
+ export {
1626
+ type FootballLeague as FootballLeague,
1627
+ type FootballTeamScore as FootballTeamScore,
1628
+ type FootballSchedulePeriod as FootballSchedulePeriod,
1629
+ type FootballOdds as FootballOdds,
1630
+ type FootballScheduleGameOdds as FootballScheduleGameOdds,
1631
+ type FootballScheduleGame as FootballScheduleGame,
1632
+ type SportsTeamColor as SportsTeamColor,
1633
+ type SportsTeamLogos as SportsTeamLogos,
1634
+ type SportsTeam as SportsTeam,
1635
+ type FootballSchedule as FootballSchedule,
1636
+ type FootballScoreboardSituation as FootballScoreboardSituation,
1637
+ type FootballSide as FootballSide,
1638
+ type FootballPeriod as FootballPeriod,
1639
+ type FootballPlayScore as FootballPlayScore,
1640
+ type FootballPlayStart as FootballPlayStart,
1641
+ type FootballPlayOnField as FootballPlayOnField,
1642
+ type FootballPlayDetailPlayer as FootballPlayDetailPlayer,
1643
+ type FootballPlayDetailPenalty as FootballPlayDetailPenalty,
1644
+ type FootballPlayDetail as FootballPlayDetail,
1645
+ type FootballPlayPost as FootballPlayPost,
1646
+ type FootballPlay as FootballPlay,
1647
+ type FootballPlayerHeadshots as FootballPlayerHeadshots,
1648
+ type FootballPlayerXUser as FootballPlayerXUser,
1649
+ type FootballPlayer as FootballPlayer,
1650
+ type FootballScoreboard as FootballScoreboard,
1651
+ type FootballTeamTotalsThirdDowns as FootballTeamTotalsThirdDowns,
1652
+ type FootballFumbleStats as FootballFumbleStats,
1653
+ type FootballPassingStats as FootballPassingStats,
1654
+ type FootballTeamTotalsPenalties as FootballTeamTotalsPenalties,
1655
+ type FootballRushingStats as FootballRushingStats,
1656
+ type FootballTeamTotals as FootballTeamTotals,
1657
+ type FootballPlayerStatsReceiving as FootballPlayerStatsReceiving,
1658
+ type FootballPlayerStatsDefense as FootballPlayerStatsDefense,
1659
+ type FootballReturnStats as FootballReturnStats,
1660
+ type FootballPlayerStatsPunts as FootballPlayerStatsPunts,
1661
+ type FootballPlayerStatsFieldGoals as FootballPlayerStatsFieldGoals,
1662
+ type FootballPlayerStatsExtraPoints as FootballPlayerStatsExtraPoints,
1663
+ type FootballPlayerStatsConversions as FootballPlayerStatsConversions,
1664
+ type FootballPlayerStats as FootballPlayerStats,
1665
+ type FootballTeamBox as FootballTeamBox,
1666
+ type FootballBoxScore as FootballBoxScore,
1667
+ type FootballDrive as FootballDrive,
1668
+ type FootballQuarter as FootballQuarter,
1669
+ type FootballPlays as FootballPlays,
1670
+ type SportListGamesParams as SportListGamesParams,
1671
+ type SportRetrieveScoreboardParams as SportRetrieveScoreboardParams,
1672
+ type SportRetrieveBoxScoreParams as SportRetrieveBoxScoreParams,
1673
+ type SportRetrievePlaysParams as SportRetrievePlaysParams,
1674
+ };
1675
+ }