@playcaller/sdk 0.1.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.
@@ -0,0 +1,3783 @@
1
+ type SecuritySchemeKey = string;
2
+ /**
3
+ * A collection of security schemes, where the key is the name of the security scheme and the value is the list of scopes required for that scheme.
4
+ * All schemes in the collection must be satisfied for authentication to be successful.
5
+ */
6
+ type SecuritySchemeCollection = Record<SecuritySchemeKey, AuthScope[]>;
7
+ type AuthScope = string;
8
+ type EndpointMetadata = {
9
+ /**
10
+ * An array of security scheme collections. Each collection represents an alternative way to authenticate.
11
+ */
12
+ security?: SecuritySchemeCollection[];
13
+ };
14
+
15
+ /**
16
+ * Request parameters for authentication requests.
17
+ */
18
+ interface AuthRequest {
19
+ /**
20
+ * The headers to be included in the request.
21
+ */
22
+ headers: Record<string, string>;
23
+ }
24
+
25
+ interface AuthProvider {
26
+ getAuthRequest(arg?: {
27
+ endpointMetadata?: EndpointMetadata;
28
+ }): Promise<AuthRequest>;
29
+ }
30
+
31
+ /**
32
+ * The raw response from the fetch call excluding the body.
33
+ */
34
+ type RawResponse = Omit<{
35
+ [K in keyof Response as Response[K] extends Function ? never : K]: Response[K];
36
+ }, "ok" | "body" | "bodyUsed">;
37
+ /**
38
+ * Creates a `RawResponse` from a standard `Response` object.
39
+ */
40
+ interface WithRawResponse<T> {
41
+ readonly data: T;
42
+ readonly rawResponse: RawResponse;
43
+ }
44
+
45
+ type Supplier<T> = T | Promise<T> | (() => T | Promise<T>);
46
+ declare const Supplier: {
47
+ get: <T>(supplier: Supplier<T>) => Promise<T>;
48
+ };
49
+
50
+ declare const LogLevel: {
51
+ readonly Debug: "debug";
52
+ readonly Info: "info";
53
+ readonly Warn: "warn";
54
+ readonly Error: "error";
55
+ };
56
+ type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
57
+ interface ILogger {
58
+ /**
59
+ * Logs a debug message.
60
+ * @param message - The message to log
61
+ * @param args - Additional arguments to log
62
+ */
63
+ debug(message: string, ...args: unknown[]): void;
64
+ /**
65
+ * Logs an info message.
66
+ * @param message - The message to log
67
+ * @param args - Additional arguments to log
68
+ */
69
+ info(message: string, ...args: unknown[]): void;
70
+ /**
71
+ * Logs a warning message.
72
+ * @param message - The message to log
73
+ * @param args - Additional arguments to log
74
+ */
75
+ warn(message: string, ...args: unknown[]): void;
76
+ /**
77
+ * Logs an error message.
78
+ * @param message - The message to log
79
+ * @param args - Additional arguments to log
80
+ */
81
+ error(message: string, ...args: unknown[]): void;
82
+ }
83
+ /**
84
+ * Configuration for logger initialization.
85
+ */
86
+ interface LogConfig {
87
+ /**
88
+ * Minimum log level to output.
89
+ * @default LogLevel.Info
90
+ */
91
+ level?: LogLevel;
92
+ /**
93
+ * Logger implementation to use.
94
+ * @default new ConsoleLogger()
95
+ */
96
+ logger?: ILogger;
97
+ /**
98
+ * Whether logging should be silenced.
99
+ * @default true
100
+ */
101
+ silent?: boolean;
102
+ }
103
+ /**
104
+ * Default console-based logger implementation.
105
+ */
106
+ declare class ConsoleLogger implements ILogger {
107
+ debug(message: string, ...args: unknown[]): void;
108
+ info(message: string, ...args: unknown[]): void;
109
+ warn(message: string, ...args: unknown[]): void;
110
+ error(message: string, ...args: unknown[]): void;
111
+ }
112
+ /**
113
+ * Logger class that provides level-based logging functionality.
114
+ */
115
+ declare class Logger {
116
+ private readonly level;
117
+ private readonly logger;
118
+ private readonly silent;
119
+ /**
120
+ * Creates a new logger instance.
121
+ * @param config - Logger configuration
122
+ */
123
+ constructor(config: Required<LogConfig>);
124
+ /**
125
+ * Checks if a log level should be output based on configuration.
126
+ * @param level - The log level to check
127
+ * @returns True if the level should be logged
128
+ */
129
+ shouldLog(level: LogLevel): boolean;
130
+ /**
131
+ * Checks if debug logging is enabled.
132
+ * @returns True if debug logs should be output
133
+ */
134
+ isDebug(): boolean;
135
+ /**
136
+ * Logs a debug message if debug logging is enabled.
137
+ * @param message - The message to log
138
+ * @param args - Additional arguments to log
139
+ */
140
+ debug(message: string, ...args: unknown[]): void;
141
+ /**
142
+ * Checks if info logging is enabled.
143
+ * @returns True if info logs should be output
144
+ */
145
+ isInfo(): boolean;
146
+ /**
147
+ * Logs an info message if info logging is enabled.
148
+ * @param message - The message to log
149
+ * @param args - Additional arguments to log
150
+ */
151
+ info(message: string, ...args: unknown[]): void;
152
+ /**
153
+ * Checks if warning logging is enabled.
154
+ * @returns True if warning logs should be output
155
+ */
156
+ isWarn(): boolean;
157
+ /**
158
+ * Logs a warning message if warning logging is enabled.
159
+ * @param message - The message to log
160
+ * @param args - Additional arguments to log
161
+ */
162
+ warn(message: string, ...args: unknown[]): void;
163
+ /**
164
+ * Checks if error logging is enabled.
165
+ * @returns True if error logs should be output
166
+ */
167
+ isError(): boolean;
168
+ /**
169
+ * Logs an error message if error logging is enabled.
170
+ * @param message - The message to log
171
+ * @param args - Additional arguments to log
172
+ */
173
+ error(message: string, ...args: unknown[]): void;
174
+ }
175
+
176
+ /**
177
+ * A promise that returns the parsed response and lets you retrieve the raw response too.
178
+ */
179
+ declare class HttpResponsePromise<T> extends Promise<T> {
180
+ private innerPromise;
181
+ private unwrappedPromise;
182
+ private constructor();
183
+ /**
184
+ * Creates an `HttpResponsePromise` from a function that returns a promise.
185
+ *
186
+ * @param fn - A function that returns a promise resolving to a `WithRawResponse` object.
187
+ * @param args - Arguments to pass to the function.
188
+ * @returns An `HttpResponsePromise` instance.
189
+ */
190
+ static fromFunction<F extends (...args: never[]) => Promise<WithRawResponse<T>>, T>(fn: F, ...args: Parameters<F>): HttpResponsePromise<T>;
191
+ /**
192
+ * Creates a function that returns an `HttpResponsePromise` from a function that returns a promise.
193
+ *
194
+ * @param fn - A function that returns a promise resolving to a `WithRawResponse` object.
195
+ * @returns A function that returns an `HttpResponsePromise` instance.
196
+ */
197
+ static interceptFunction<F extends (...args: never[]) => Promise<WithRawResponse<T>>, T = Awaited<ReturnType<F>>["data"]>(fn: F): (...args: Parameters<F>) => HttpResponsePromise<T>;
198
+ /**
199
+ * Creates an `HttpResponsePromise` from an existing promise.
200
+ *
201
+ * @param promise - A promise resolving to a `WithRawResponse` object.
202
+ * @returns An `HttpResponsePromise` instance.
203
+ */
204
+ static fromPromise<T>(promise: Promise<WithRawResponse<T>>): HttpResponsePromise<T>;
205
+ /**
206
+ * Creates an `HttpResponsePromise` from an executor function.
207
+ *
208
+ * @param executor - A function that takes resolve and reject callbacks to create a promise.
209
+ * @returns An `HttpResponsePromise` instance.
210
+ */
211
+ static fromExecutor<T>(executor: (resolve: (value: WithRawResponse<T>) => void, reject: (reason?: unknown) => void) => void): HttpResponsePromise<T>;
212
+ /**
213
+ * Creates an `HttpResponsePromise` from a resolved result.
214
+ *
215
+ * @param result - A `WithRawResponse` object to resolve immediately.
216
+ * @returns An `HttpResponsePromise` instance.
217
+ */
218
+ static fromResult<T>(result: WithRawResponse<T>): HttpResponsePromise<T>;
219
+ private unwrap;
220
+ /** @inheritdoc */
221
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
222
+ /** @inheritdoc */
223
+ catch<TResult = never>(onrejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
224
+ /** @inheritdoc */
225
+ finally(onfinally?: (() => void) | null): Promise<T>;
226
+ /**
227
+ * Retrieves the data and raw response.
228
+ *
229
+ * @returns A promise resolving to a `WithRawResponse` object.
230
+ */
231
+ withRawResponse(): Promise<WithRawResponse<T>>;
232
+ }
233
+
234
+ declare namespace PassthroughRequest {
235
+ /**
236
+ * Per-request options that can override the SDK client defaults.
237
+ */
238
+ interface RequestOptions {
239
+ /** Override the default timeout for this request (in seconds). */
240
+ timeoutInSeconds?: number;
241
+ /** Override the default number of retries for this request. */
242
+ maxRetries?: number;
243
+ /** Additional headers to include in this request. */
244
+ headers?: Record<string, string>;
245
+ /** Abort signal for this request. */
246
+ abortSignal?: AbortSignal;
247
+ }
248
+ /**
249
+ * SDK client configuration used by the passthrough fetch method.
250
+ */
251
+ interface ClientOptions {
252
+ /** The base URL or environment for the client. */
253
+ environment?: Supplier<string>;
254
+ /** Override the base URL. */
255
+ baseUrl?: Supplier<string>;
256
+ /** Default headers to include in requests. */
257
+ headers?: Record<string, unknown>;
258
+ /** Default maximum time to wait for a response in seconds. */
259
+ timeoutInSeconds?: number;
260
+ /** Default number of times to retry the request. Defaults to 2. */
261
+ maxRetries?: number;
262
+ /** A custom fetch function. */
263
+ fetch?: typeof fetch;
264
+ /** Logging configuration. */
265
+ logging?: LogConfig | Logger;
266
+ /** A function that returns auth headers. */
267
+ getAuthHeaders?: () => Promise<Record<string, string>>;
268
+ }
269
+ }
270
+
271
+ declare class PlaycallerApiError extends Error {
272
+ readonly statusCode?: number;
273
+ readonly body?: unknown;
274
+ readonly rawResponse?: RawResponse;
275
+ readonly cause?: unknown;
276
+ constructor({ message, statusCode, body, rawResponse, cause, }: {
277
+ message?: string;
278
+ statusCode?: number;
279
+ body?: unknown;
280
+ rawResponse?: RawResponse;
281
+ cause?: unknown;
282
+ });
283
+ get requestId(): string | undefined;
284
+ }
285
+
286
+ declare class PlaycallerApiTimeoutError extends PlaycallerApiError {
287
+ constructor(message: string, opts?: {
288
+ cause?: unknown;
289
+ });
290
+ }
291
+
292
+ declare class BadRequestError extends PlaycallerApiError {
293
+ constructor(body?: unknown, rawResponse?: RawResponse);
294
+ }
295
+
296
+ declare class ConflictError extends PlaycallerApiError {
297
+ constructor(body: ErrorResponse, rawResponse?: RawResponse);
298
+ }
299
+
300
+ declare class ForbiddenError extends PlaycallerApiError {
301
+ constructor(body: ErrorResponse, rawResponse?: RawResponse);
302
+ }
303
+
304
+ declare class InternalServerError extends PlaycallerApiError {
305
+ constructor(body: ErrorResponse, rawResponse?: RawResponse);
306
+ }
307
+
308
+ declare class NotFoundError extends PlaycallerApiError {
309
+ constructor(body?: unknown, rawResponse?: RawResponse);
310
+ }
311
+
312
+ declare class TooManyRequestsError extends PlaycallerApiError {
313
+ constructor(body: ErrorResponse, rawResponse?: RawResponse);
314
+ }
315
+
316
+ declare class UnauthorizedError extends PlaycallerApiError {
317
+ constructor(body: ErrorResponse, rawResponse?: RawResponse);
318
+ }
319
+
320
+ /**
321
+ * @example
322
+ * {
323
+ * key: "pc_pro_abc123"
324
+ * }
325
+ */
326
+ interface GetDaaSKeyInfoRequest {
327
+ /** The PlayCaller API key to look up */
328
+ key: string;
329
+ }
330
+
331
+ /**
332
+ * @example
333
+ * {
334
+ * email: "dev@example.com",
335
+ * api_key: "pc_pro_abc123"
336
+ * }
337
+ */
338
+ interface RegisterDaaSKeyRequest {
339
+ email: string;
340
+ api_key: string;
341
+ }
342
+
343
+ /**
344
+ * @example
345
+ * {
346
+ * email: "dev@example.com"
347
+ * }
348
+ */
349
+ interface StartDaaSTrialRequest {
350
+ email: string;
351
+ /** What you are building (optional, helps us improve) */
352
+ use_case?: string;
353
+ }
354
+
355
+ interface GetDaaSKeyInfoResponse {
356
+ success?: boolean | undefined;
357
+ tier?: GetDaaSKeyInfoResponse.Tier | undefined;
358
+ is_trial?: boolean | undefined;
359
+ trial_days_remaining?: (number | null) | undefined;
360
+ created_at?: string | undefined;
361
+ }
362
+ declare namespace GetDaaSKeyInfoResponse {
363
+ const Tier: {
364
+ readonly Sandbox: "sandbox";
365
+ readonly Hobbyist: "hobbyist";
366
+ readonly Build: "build";
367
+ readonly Pro: "pro";
368
+ readonly ProInsights: "pro_insights";
369
+ readonly Enterprise: "enterprise";
370
+ readonly SyndicateAlpha: "syndicate_alpha";
371
+ };
372
+ type Tier = (typeof Tier)[keyof typeof Tier];
373
+ }
374
+
375
+ interface RegisterDaaSKeyResponse {
376
+ success?: boolean | undefined;
377
+ message?: string | undefined;
378
+ }
379
+
380
+ interface StartDaaSTrialResponse {
381
+ success?: boolean | undefined;
382
+ /** Your new PlayCaller API key. Store it securely. */
383
+ api_key?: string | undefined;
384
+ tier?: string | undefined;
385
+ trial_ends_at?: string | undefined;
386
+ message?: string | undefined;
387
+ }
388
+
389
+ type index$9_GetDaaSKeyInfoRequest = GetDaaSKeyInfoRequest;
390
+ declare const index$9_GetDaaSKeyInfoResponse: typeof GetDaaSKeyInfoResponse;
391
+ type index$9_RegisterDaaSKeyRequest = RegisterDaaSKeyRequest;
392
+ type index$9_RegisterDaaSKeyResponse = RegisterDaaSKeyResponse;
393
+ type index$9_StartDaaSTrialRequest = StartDaaSTrialRequest;
394
+ type index$9_StartDaaSTrialResponse = StartDaaSTrialResponse;
395
+ declare namespace index$9 {
396
+ export { type index$9_GetDaaSKeyInfoRequest as GetDaaSKeyInfoRequest, index$9_GetDaaSKeyInfoResponse as GetDaaSKeyInfoResponse, type index$9_RegisterDaaSKeyRequest as RegisterDaaSKeyRequest, type index$9_RegisterDaaSKeyResponse as RegisterDaaSKeyResponse, type index$9_StartDaaSTrialRequest as StartDaaSTrialRequest, type index$9_StartDaaSTrialResponse as StartDaaSTrialResponse };
397
+ }
398
+
399
+ /**
400
+ * @example
401
+ * {
402
+ * poll: "AP"
403
+ * }
404
+ */
405
+ interface GetCfbRankingsRequest {
406
+ /** Season year (defaults to current) */
407
+ season?: number;
408
+ /** Poll filter (partial match: "AP", "Coaches", "CFP") */
409
+ poll?: string;
410
+ /** Week number (1–16) */
411
+ week?: number;
412
+ }
413
+
414
+ /**
415
+ * @example
416
+ * {
417
+ * conference: "SEC"
418
+ * }
419
+ */
420
+ interface GetCfbStandingsRequest {
421
+ /** Season year (defaults to current) */
422
+ season?: number;
423
+ /** Filter by conference (partial match: "SEC", "Big Ten") */
424
+ conference?: string;
425
+ }
426
+
427
+ /**
428
+ * @example
429
+ * {
430
+ * date: "2026-09-05"
431
+ * }
432
+ */
433
+ interface ListCfbGamesRequest {
434
+ /** Game date (YYYY-MM-DD) */
435
+ date?: string;
436
+ /** Game state filter (matches the live state column exactly) */
437
+ state?: ListCfbGamesRequestState;
438
+ /** Max games (default 50, max 200) */
439
+ limit?: number;
440
+ }
441
+
442
+ interface GetCfbRankingsResponse {
443
+ success?: boolean | undefined;
444
+ endpoint?: string | undefined;
445
+ season?: number | undefined;
446
+ /** Keys are poll names; values are ranked team arrays */
447
+ polls?: Record<string, CfbRanking[]> | undefined;
448
+ meta?: ResponseMeta | undefined;
449
+ }
450
+
451
+ interface GetCfbStandingsResponse {
452
+ success?: boolean | undefined;
453
+ endpoint?: string | undefined;
454
+ season?: number | undefined;
455
+ count?: number | undefined;
456
+ data?: EspnStanding[] | undefined;
457
+ meta?: ResponseMeta | undefined;
458
+ }
459
+
460
+ declare const ListCfbGamesRequestState: {
461
+ readonly Scheduled: "scheduled";
462
+ readonly InProgress: "in_progress";
463
+ readonly Final: "final";
464
+ };
465
+ type ListCfbGamesRequestState = (typeof ListCfbGamesRequestState)[keyof typeof ListCfbGamesRequestState];
466
+
467
+ interface ListCfbGamesResponse {
468
+ success?: boolean | undefined;
469
+ endpoint?: string | undefined;
470
+ count?: number | undefined;
471
+ data?: EspnGame[] | undefined;
472
+ meta?: ResponseMeta | undefined;
473
+ }
474
+
475
+ type index$8_GetCfbRankingsRequest = GetCfbRankingsRequest;
476
+ type index$8_GetCfbRankingsResponse = GetCfbRankingsResponse;
477
+ type index$8_GetCfbStandingsRequest = GetCfbStandingsRequest;
478
+ type index$8_GetCfbStandingsResponse = GetCfbStandingsResponse;
479
+ type index$8_ListCfbGamesRequest = ListCfbGamesRequest;
480
+ type index$8_ListCfbGamesRequestState = ListCfbGamesRequestState;
481
+ type index$8_ListCfbGamesResponse = ListCfbGamesResponse;
482
+ declare namespace index$8 {
483
+ export type { index$8_GetCfbRankingsRequest as GetCfbRankingsRequest, index$8_GetCfbRankingsResponse as GetCfbRankingsResponse, index$8_GetCfbStandingsRequest as GetCfbStandingsRequest, index$8_GetCfbStandingsResponse as GetCfbStandingsResponse, index$8_ListCfbGamesRequest as ListCfbGamesRequest, index$8_ListCfbGamesRequestState as ListCfbGamesRequestState, index$8_ListCfbGamesResponse as ListCfbGamesResponse };
484
+ }
485
+
486
+ /**
487
+ * @example
488
+ * {
489
+ * player_name: "McCaffrey",
490
+ * team: "SF",
491
+ * position: "WR"
492
+ * }
493
+ */
494
+ interface GetAnalyticsTrendsRequest {
495
+ /** Sport to query (default: nfl) */
496
+ sport?: GetAnalyticsTrendsRequestSport;
497
+ /** Partial player name (case-insensitive) */
498
+ player_name?: string;
499
+ /** 2-3 letter team abbreviation */
500
+ team?: string;
501
+ /** Position (QB/RB/WR/TE for NFL; SP/OF/etc for MLB) */
502
+ position?: string;
503
+ /** Season year (NFL: 2024; MLB: 2024) */
504
+ season?: number;
505
+ /** NFL week number (1–18) */
506
+ week?: number;
507
+ /** Max records (default 50, max 500) */
508
+ limit?: number;
509
+ }
510
+
511
+ /**
512
+ * @example
513
+ * {
514
+ * team: "KC",
515
+ * player: "Mahomes"
516
+ * }
517
+ */
518
+ interface GetIntelligenceInjuriesRequest {
519
+ /** Minimum severity level */
520
+ severity?: GetIntelligenceInjuriesRequestSeverity;
521
+ /** Sport filter (defaults to nfl) */
522
+ sport?: GetIntelligenceInjuriesRequestSport;
523
+ /** 2-3 letter team abbreviation */
524
+ team?: string;
525
+ /** Partial player name search (case-insensitive) */
526
+ player?: string;
527
+ /** Max results (default 50, max 100) */
528
+ limit?: number;
529
+ }
530
+
531
+ /**
532
+ * @example
533
+ * {
534
+ * team: "SF",
535
+ * position: "WR"
536
+ * }
537
+ */
538
+ interface GetIntelligenceNewsRequest {
539
+ /** Filter by fantasy impact severity */
540
+ severity?: GetIntelligenceNewsRequestSeverity;
541
+ /** Filter by sport (defaults to all) */
542
+ sport?: GetIntelligenceNewsRequestSport;
543
+ /** Filter by 2-3 letter team abbreviation */
544
+ team?: string;
545
+ /** Filter by position (NFL: QB/RB/WR/TE/K; MLB: SP/OF/etc; NBA: PG/SG/etc) */
546
+ position?: string;
547
+ /** Filter by signal category */
548
+ signal_type?: GetIntelligenceNewsRequestSignalType;
549
+ /** Max results (default 25, max 100) */
550
+ limit?: number;
551
+ }
552
+
553
+ declare const GetAnalyticsTrendsRequestSport: {
554
+ readonly Nfl: "nfl";
555
+ readonly Mlb: "mlb";
556
+ readonly All: "all";
557
+ };
558
+ type GetAnalyticsTrendsRequestSport = (typeof GetAnalyticsTrendsRequestSport)[keyof typeof GetAnalyticsTrendsRequestSport];
559
+
560
+ interface GetAnalyticsTrendsResponse {
561
+ success?: boolean | undefined;
562
+ endpoint?: string | undefined;
563
+ sport?: string | undefined;
564
+ seasons?: number[] | undefined;
565
+ /** Total game rows considered before grouping by player */
566
+ total_records?: number | undefined;
567
+ trends?: HistoricalTrend[] | undefined;
568
+ meta?: ResponseMeta | undefined;
569
+ }
570
+
571
+ declare const GetIntelligenceInjuriesRequestSeverity: {
572
+ readonly High: "high";
573
+ readonly Medium: "medium";
574
+ readonly Low: "low";
575
+ };
576
+ type GetIntelligenceInjuriesRequestSeverity = (typeof GetIntelligenceInjuriesRequestSeverity)[keyof typeof GetIntelligenceInjuriesRequestSeverity];
577
+
578
+ declare const GetIntelligenceInjuriesRequestSport: {
579
+ readonly Nfl: "nfl";
580
+ readonly Mlb: "mlb";
581
+ readonly Nba: "nba";
582
+ readonly All: "all";
583
+ };
584
+ type GetIntelligenceInjuriesRequestSport = (typeof GetIntelligenceInjuriesRequestSport)[keyof typeof GetIntelligenceInjuriesRequestSport];
585
+
586
+ interface GetIntelligenceInjuriesResponse {
587
+ success?: boolean | undefined;
588
+ endpoint?: string | undefined;
589
+ count?: number | undefined;
590
+ data?: BeatReporterSignal[] | undefined;
591
+ meta?: ResponseMeta | undefined;
592
+ }
593
+
594
+ declare const GetIntelligenceNewsRequestSeverity: {
595
+ readonly High: "high";
596
+ readonly Medium: "medium";
597
+ readonly Low: "low";
598
+ };
599
+ type GetIntelligenceNewsRequestSeverity = (typeof GetIntelligenceNewsRequestSeverity)[keyof typeof GetIntelligenceNewsRequestSeverity];
600
+
601
+ declare const GetIntelligenceNewsRequestSignalType: {
602
+ readonly Injury: "injury";
603
+ readonly DepthChart: "depth_chart";
604
+ readonly RoleShift: "role_shift";
605
+ readonly PracticeReport: "practice_report";
606
+ readonly ReturnToPractice: "return_to_practice";
607
+ };
608
+ type GetIntelligenceNewsRequestSignalType = (typeof GetIntelligenceNewsRequestSignalType)[keyof typeof GetIntelligenceNewsRequestSignalType];
609
+
610
+ declare const GetIntelligenceNewsRequestSport: {
611
+ readonly Nfl: "nfl";
612
+ readonly Mlb: "mlb";
613
+ readonly Nba: "nba";
614
+ readonly All: "all";
615
+ };
616
+ type GetIntelligenceNewsRequestSport = (typeof GetIntelligenceNewsRequestSport)[keyof typeof GetIntelligenceNewsRequestSport];
617
+
618
+ interface GetIntelligenceNewsResponse {
619
+ success?: boolean | undefined;
620
+ endpoint?: string | undefined;
621
+ count?: number | undefined;
622
+ data?: BeatReporterSignal[] | undefined;
623
+ meta?: ResponseMeta | undefined;
624
+ }
625
+
626
+ type index$7_GetAnalyticsTrendsRequest = GetAnalyticsTrendsRequest;
627
+ type index$7_GetAnalyticsTrendsRequestSport = GetAnalyticsTrendsRequestSport;
628
+ type index$7_GetAnalyticsTrendsResponse = GetAnalyticsTrendsResponse;
629
+ type index$7_GetIntelligenceInjuriesRequest = GetIntelligenceInjuriesRequest;
630
+ type index$7_GetIntelligenceInjuriesRequestSeverity = GetIntelligenceInjuriesRequestSeverity;
631
+ type index$7_GetIntelligenceInjuriesRequestSport = GetIntelligenceInjuriesRequestSport;
632
+ type index$7_GetIntelligenceInjuriesResponse = GetIntelligenceInjuriesResponse;
633
+ type index$7_GetIntelligenceNewsRequest = GetIntelligenceNewsRequest;
634
+ type index$7_GetIntelligenceNewsRequestSeverity = GetIntelligenceNewsRequestSeverity;
635
+ type index$7_GetIntelligenceNewsRequestSignalType = GetIntelligenceNewsRequestSignalType;
636
+ type index$7_GetIntelligenceNewsRequestSport = GetIntelligenceNewsRequestSport;
637
+ type index$7_GetIntelligenceNewsResponse = GetIntelligenceNewsResponse;
638
+ declare namespace index$7 {
639
+ export type { index$7_GetAnalyticsTrendsRequest as GetAnalyticsTrendsRequest, index$7_GetAnalyticsTrendsRequestSport as GetAnalyticsTrendsRequestSport, index$7_GetAnalyticsTrendsResponse as GetAnalyticsTrendsResponse, index$7_GetIntelligenceInjuriesRequest as GetIntelligenceInjuriesRequest, index$7_GetIntelligenceInjuriesRequestSeverity as GetIntelligenceInjuriesRequestSeverity, index$7_GetIntelligenceInjuriesRequestSport as GetIntelligenceInjuriesRequestSport, index$7_GetIntelligenceInjuriesResponse as GetIntelligenceInjuriesResponse, index$7_GetIntelligenceNewsRequest as GetIntelligenceNewsRequest, index$7_GetIntelligenceNewsRequestSeverity as GetIntelligenceNewsRequestSeverity, index$7_GetIntelligenceNewsRequestSignalType as GetIntelligenceNewsRequestSignalType, index$7_GetIntelligenceNewsRequestSport as GetIntelligenceNewsRequestSport, index$7_GetIntelligenceNewsResponse as GetIntelligenceNewsResponse };
640
+ }
641
+
642
+ /**
643
+ * @example
644
+ * {
645
+ * jsonrpc: "2.0",
646
+ * id: 1,
647
+ * method: "tools/list"
648
+ * }
649
+ *
650
+ * @example
651
+ * {
652
+ * jsonrpc: "2.0",
653
+ * id: 2,
654
+ * method: "tools/call",
655
+ * params: {
656
+ * name: "get_injury_signals",
657
+ * arguments: {
658
+ * "sport": "nfl",
659
+ * "severity": "high",
660
+ * "limit": 5
661
+ * }
662
+ * }
663
+ * }
664
+ *
665
+ * @example
666
+ * {
667
+ * jsonrpc: "2.0",
668
+ * id: 3,
669
+ * method: "tools/call",
670
+ * params: {
671
+ * name: "get_player_identity",
672
+ * arguments: {
673
+ * "name": "Christian McCaffrey",
674
+ * "sport": "nfl"
675
+ * }
676
+ * }
677
+ * }
678
+ */
679
+ interface InvokeMcpToolRequest {
680
+ jsonrpc: InvokeMcpToolRequest.Jsonrpc;
681
+ id?: number;
682
+ method: InvokeMcpToolRequest.Method;
683
+ /** Required for tools/call: `name` (tool name) and `arguments` (tool-specific args) */
684
+ params?: InvokeMcpToolRequest.Params;
685
+ }
686
+ declare namespace InvokeMcpToolRequest {
687
+ const Jsonrpc: {
688
+ readonly Two0: "2.0";
689
+ };
690
+ type Jsonrpc = (typeof Jsonrpc)[keyof typeof Jsonrpc];
691
+ const Method: {
692
+ readonly Initialize: "initialize";
693
+ readonly ToolsList: "tools/list";
694
+ readonly ToolsCall: "tools/call";
695
+ readonly Ping: "ping";
696
+ };
697
+ type Method = (typeof Method)[keyof typeof Method];
698
+ /**
699
+ * Required for tools/call: `name` (tool name) and `arguments` (tool-specific args)
700
+ */
701
+ interface Params {
702
+ name?: string | undefined;
703
+ arguments?: Record<string, unknown> | undefined;
704
+ }
705
+ }
706
+
707
+ interface GetMcpInfoResponse {
708
+ name?: string | undefined;
709
+ version?: string | undefined;
710
+ protocol?: string | undefined;
711
+ endpoint?: string | undefined;
712
+ auth?: string | undefined;
713
+ tools?: McpTool[] | undefined;
714
+ docs?: string | undefined;
715
+ get_key?: string | undefined;
716
+ }
717
+
718
+ interface InvokeMcpToolResponse {
719
+ jsonrpc?: string | undefined;
720
+ id?: number | undefined;
721
+ /** Present on success */
722
+ result?: InvokeMcpToolResponse.Result | undefined;
723
+ /** Present on error */
724
+ error?: InvokeMcpToolResponse.Error_ | undefined;
725
+ }
726
+ declare namespace InvokeMcpToolResponse {
727
+ /**
728
+ * Present on success
729
+ */
730
+ interface Result {
731
+ content?: Result.Content.Item[] | undefined;
732
+ }
733
+ namespace Result {
734
+ type Content = Content.Item[];
735
+ namespace Content {
736
+ interface Item {
737
+ type?: string | undefined;
738
+ /** JSON-encoded tool result */
739
+ text?: string | undefined;
740
+ }
741
+ }
742
+ }
743
+ /**
744
+ * Present on error
745
+ */
746
+ interface Error_ {
747
+ code?: number | undefined;
748
+ message?: string | undefined;
749
+ }
750
+ }
751
+
752
+ type index$6_GetMcpInfoResponse = GetMcpInfoResponse;
753
+ declare const index$6_InvokeMcpToolRequest: typeof InvokeMcpToolRequest;
754
+ declare const index$6_InvokeMcpToolResponse: typeof InvokeMcpToolResponse;
755
+ declare namespace index$6 {
756
+ export { type index$6_GetMcpInfoResponse as GetMcpInfoResponse, index$6_InvokeMcpToolRequest as InvokeMcpToolRequest, index$6_InvokeMcpToolResponse as InvokeMcpToolResponse };
757
+ }
758
+
759
+ /**
760
+ * @example
761
+ * {
762
+ * id: "pc_mlb_001234"
763
+ * }
764
+ */
765
+ interface GetMlbPlayerRequest {
766
+ /** PlayCaller MLB player ID (format: pc_mlb_XXXXXX) */
767
+ id: string;
768
+ }
769
+
770
+ /**
771
+ * @example
772
+ * {
773
+ * id: "pc_mlb_001234",
774
+ * date: "2026-05-01"
775
+ * }
776
+ */
777
+ interface GetMlbPlayerStatsRequest {
778
+ /** PlayCaller MLB player ID */
779
+ id: string;
780
+ /** Filter to a specific game date (YYYY-MM-DD) */
781
+ date?: string;
782
+ /** Max game logs (default 30, max 200) */
783
+ limit?: number;
784
+ }
785
+
786
+ /**
787
+ * @example
788
+ * {
789
+ * date: "2026-05-01"
790
+ * }
791
+ */
792
+ interface GetMlbScoringCategoriesRequest {
793
+ /** Game date (YYYY-MM-DD, defaults to most recent game day) */
794
+ date?: string;
795
+ }
796
+
797
+ /**
798
+ * @example
799
+ * {
800
+ * date: "2026-05-01",
801
+ * team: "NYY"
802
+ * }
803
+ */
804
+ interface GetMlbScoringLeadersRequest {
805
+ /** Game date (YYYY-MM-DD, defaults to most recent game day) */
806
+ date?: string;
807
+ /** Filter by position */
808
+ position?: GetMlbScoringLeadersRequestPosition;
809
+ /** 3-letter team abbreviation */
810
+ team?: string;
811
+ /** Max leaders (default 25, max 100) */
812
+ limit?: number;
813
+ }
814
+
815
+ /**
816
+ * @example
817
+ * {
818
+ * division: "AL East"
819
+ * }
820
+ */
821
+ interface GetMlbStandingsRequest {
822
+ /** Season year (defaults to current) */
823
+ season?: number;
824
+ /** Filter by division name (partial match: "AL East", "NL West") */
825
+ division?: string;
826
+ }
827
+
828
+ /**
829
+ * @example
830
+ * {
831
+ * team: "NYY"
832
+ * }
833
+ */
834
+ interface GetMlbTeamRosterRequest {
835
+ /** 3-letter MLB team abbreviation (e.g. NYY, LAD) */
836
+ team: string;
837
+ /** Filter by position */
838
+ position?: GetMlbTeamRosterRequestPosition;
839
+ }
840
+
841
+ /**
842
+ * @example
843
+ * {
844
+ * date: "2026-05-01"
845
+ * }
846
+ */
847
+ interface ListMlbGamesRequest {
848
+ /** Game date (YYYY-MM-DD, defaults to today) */
849
+ date?: string;
850
+ /** Filter by game state (matches the live state column exactly) */
851
+ state?: ListMlbGamesRequestState;
852
+ /** Max games (default 30, max 100) */
853
+ limit?: number;
854
+ }
855
+
856
+ /**
857
+ * @example
858
+ * {
859
+ * team: "NYY",
860
+ * search: "Ohtani"
861
+ * }
862
+ */
863
+ interface ListMlbPlayersRequest {
864
+ /** Filter by position */
865
+ position?: ListMlbPlayersRequestPosition;
866
+ /** 3-letter MLB team abbreviation */
867
+ team?: string;
868
+ /** Filter by player status */
869
+ status?: ListMlbPlayersRequestStatus;
870
+ /** Partial name search (case-insensitive) */
871
+ search?: string;
872
+ /** Max results (default 50, max 200) */
873
+ limit?: number;
874
+ /** Pagination offset */
875
+ offset?: number;
876
+ }
877
+
878
+ interface GetMlbPlayerResponse {
879
+ success?: boolean | undefined;
880
+ data?: MlbPlayer | undefined;
881
+ meta?: ResponseMeta | undefined;
882
+ }
883
+
884
+ interface GetMlbPlayerStatsResponse {
885
+ success?: boolean | undefined;
886
+ endpoint?: string | undefined;
887
+ player?: GetMlbPlayerStatsResponse.Player | undefined;
888
+ count?: number | undefined;
889
+ data?: MlbPlayerStats[] | undefined;
890
+ meta?: ResponseMeta | undefined;
891
+ }
892
+ declare namespace GetMlbPlayerStatsResponse {
893
+ interface Player {
894
+ id?: string | undefined;
895
+ full_name?: string | undefined;
896
+ position?: string | undefined;
897
+ team?: string | undefined;
898
+ }
899
+ }
900
+
901
+ interface GetMlbScoringCategoriesResponse {
902
+ success?: boolean | undefined;
903
+ endpoint?: string | undefined;
904
+ /** Keys: home_runs, rbi, stolen_bases, runs, walks, innings_pitched, strikeouts, saves */
905
+ categories?: Record<string, GetMlbScoringCategoriesResponse.Categories.Item[]> | undefined;
906
+ meta?: ResponseMeta | undefined;
907
+ }
908
+ declare namespace GetMlbScoringCategoriesResponse {
909
+ namespace Categories {
910
+ interface Item {
911
+ rank?: number | undefined;
912
+ id?: string | undefined;
913
+ player_name?: string | undefined;
914
+ team?: string | undefined;
915
+ position?: string | undefined;
916
+ value?: number | undefined;
917
+ stat_date?: string | undefined;
918
+ }
919
+ }
920
+ }
921
+
922
+ declare const GetMlbScoringLeadersRequestPosition: {
923
+ readonly Sp: "SP";
924
+ readonly Rp: "RP";
925
+ readonly C: "C";
926
+ readonly OneB: "1B";
927
+ readonly TwoB: "2B";
928
+ readonly ThreeB: "3B";
929
+ readonly Ss: "SS";
930
+ readonly Of: "OF";
931
+ readonly Dh: "DH";
932
+ };
933
+ type GetMlbScoringLeadersRequestPosition = (typeof GetMlbScoringLeadersRequestPosition)[keyof typeof GetMlbScoringLeadersRequestPosition];
934
+
935
+ interface GetMlbScoringLeadersResponse {
936
+ success?: boolean | undefined;
937
+ endpoint?: string | undefined;
938
+ count?: number | undefined;
939
+ data?: MlbPlayerStats[] | undefined;
940
+ meta?: ResponseMeta | undefined;
941
+ }
942
+
943
+ interface GetMlbStandingsResponse {
944
+ success?: boolean | undefined;
945
+ endpoint?: string | undefined;
946
+ season?: number | undefined;
947
+ count?: number | undefined;
948
+ data?: EspnStanding[] | undefined;
949
+ meta?: ResponseMeta | undefined;
950
+ }
951
+
952
+ declare const GetMlbTeamRosterRequestPosition: {
953
+ readonly Sp: "SP";
954
+ readonly Rp: "RP";
955
+ readonly C: "C";
956
+ readonly OneB: "1B";
957
+ readonly TwoB: "2B";
958
+ readonly ThreeB: "3B";
959
+ readonly Ss: "SS";
960
+ readonly Of: "OF";
961
+ readonly Dh: "DH";
962
+ };
963
+ type GetMlbTeamRosterRequestPosition = (typeof GetMlbTeamRosterRequestPosition)[keyof typeof GetMlbTeamRosterRequestPosition];
964
+
965
+ interface GetMlbTeamRosterResponse {
966
+ success?: boolean | undefined;
967
+ team?: string | undefined;
968
+ count?: number | undefined;
969
+ data?: MlbPlayer[] | undefined;
970
+ meta?: ResponseMeta | undefined;
971
+ }
972
+
973
+ declare const ListMlbGamesRequestState: {
974
+ readonly PreGame: "pre_game";
975
+ readonly Scheduled: "scheduled";
976
+ readonly InProgress: "in_progress";
977
+ readonly Final: "final";
978
+ readonly Completed: "completed";
979
+ readonly Postponed: "postponed";
980
+ };
981
+ type ListMlbGamesRequestState = (typeof ListMlbGamesRequestState)[keyof typeof ListMlbGamesRequestState];
982
+
983
+ interface ListMlbGamesResponse {
984
+ success?: boolean | undefined;
985
+ endpoint?: string | undefined;
986
+ count?: number | undefined;
987
+ data?: MlbGame[] | undefined;
988
+ meta?: ResponseMeta | undefined;
989
+ }
990
+
991
+ declare const ListMlbPlayersRequestPosition: {
992
+ readonly Sp: "SP";
993
+ readonly Rp: "RP";
994
+ readonly C: "C";
995
+ readonly OneB: "1B";
996
+ readonly TwoB: "2B";
997
+ readonly ThreeB: "3B";
998
+ readonly Ss: "SS";
999
+ readonly Of: "OF";
1000
+ readonly Dh: "DH";
1001
+ };
1002
+ type ListMlbPlayersRequestPosition = (typeof ListMlbPlayersRequestPosition)[keyof typeof ListMlbPlayersRequestPosition];
1003
+
1004
+ declare const ListMlbPlayersRequestStatus: {
1005
+ readonly Active: "active";
1006
+ readonly Injured: "injured";
1007
+ readonly Inactive: "inactive";
1008
+ };
1009
+ type ListMlbPlayersRequestStatus = (typeof ListMlbPlayersRequestStatus)[keyof typeof ListMlbPlayersRequestStatus];
1010
+
1011
+ interface ListMlbPlayersResponse {
1012
+ success?: boolean | undefined;
1013
+ endpoint?: string | undefined;
1014
+ total?: number | undefined;
1015
+ count?: number | undefined;
1016
+ offset?: number | undefined;
1017
+ limit?: number | undefined;
1018
+ data?: MlbPlayer[] | undefined;
1019
+ meta?: ResponseMeta | undefined;
1020
+ }
1021
+
1022
+ interface ListMlbTeamsResponse {
1023
+ success?: boolean | undefined;
1024
+ endpoint?: string | undefined;
1025
+ count?: number | undefined;
1026
+ data?: ListMlbTeamsResponse.Data.Item[] | undefined;
1027
+ meta?: ResponseMeta | undefined;
1028
+ }
1029
+ declare namespace ListMlbTeamsResponse {
1030
+ type Data = Data.Item[];
1031
+ namespace Data {
1032
+ interface Item {
1033
+ abbreviation?: string | undefined;
1034
+ full_name?: string | undefined;
1035
+ roster_size?: number | undefined;
1036
+ active_players?: number | undefined;
1037
+ positions?: string[] | undefined;
1038
+ }
1039
+ }
1040
+ }
1041
+
1042
+ type index$5_GetMlbPlayerRequest = GetMlbPlayerRequest;
1043
+ type index$5_GetMlbPlayerResponse = GetMlbPlayerResponse;
1044
+ type index$5_GetMlbPlayerStatsRequest = GetMlbPlayerStatsRequest;
1045
+ declare const index$5_GetMlbPlayerStatsResponse: typeof GetMlbPlayerStatsResponse;
1046
+ type index$5_GetMlbScoringCategoriesRequest = GetMlbScoringCategoriesRequest;
1047
+ declare const index$5_GetMlbScoringCategoriesResponse: typeof GetMlbScoringCategoriesResponse;
1048
+ type index$5_GetMlbScoringLeadersRequest = GetMlbScoringLeadersRequest;
1049
+ type index$5_GetMlbScoringLeadersRequestPosition = GetMlbScoringLeadersRequestPosition;
1050
+ type index$5_GetMlbScoringLeadersResponse = GetMlbScoringLeadersResponse;
1051
+ type index$5_GetMlbStandingsRequest = GetMlbStandingsRequest;
1052
+ type index$5_GetMlbStandingsResponse = GetMlbStandingsResponse;
1053
+ type index$5_GetMlbTeamRosterRequest = GetMlbTeamRosterRequest;
1054
+ type index$5_GetMlbTeamRosterRequestPosition = GetMlbTeamRosterRequestPosition;
1055
+ type index$5_GetMlbTeamRosterResponse = GetMlbTeamRosterResponse;
1056
+ type index$5_ListMlbGamesRequest = ListMlbGamesRequest;
1057
+ type index$5_ListMlbGamesRequestState = ListMlbGamesRequestState;
1058
+ type index$5_ListMlbGamesResponse = ListMlbGamesResponse;
1059
+ type index$5_ListMlbPlayersRequest = ListMlbPlayersRequest;
1060
+ type index$5_ListMlbPlayersRequestPosition = ListMlbPlayersRequestPosition;
1061
+ type index$5_ListMlbPlayersRequestStatus = ListMlbPlayersRequestStatus;
1062
+ type index$5_ListMlbPlayersResponse = ListMlbPlayersResponse;
1063
+ declare const index$5_ListMlbTeamsResponse: typeof ListMlbTeamsResponse;
1064
+ declare namespace index$5 {
1065
+ export { type index$5_GetMlbPlayerRequest as GetMlbPlayerRequest, type index$5_GetMlbPlayerResponse as GetMlbPlayerResponse, type index$5_GetMlbPlayerStatsRequest as GetMlbPlayerStatsRequest, index$5_GetMlbPlayerStatsResponse as GetMlbPlayerStatsResponse, type index$5_GetMlbScoringCategoriesRequest as GetMlbScoringCategoriesRequest, index$5_GetMlbScoringCategoriesResponse as GetMlbScoringCategoriesResponse, type index$5_GetMlbScoringLeadersRequest as GetMlbScoringLeadersRequest, type index$5_GetMlbScoringLeadersRequestPosition as GetMlbScoringLeadersRequestPosition, type index$5_GetMlbScoringLeadersResponse as GetMlbScoringLeadersResponse, type index$5_GetMlbStandingsRequest as GetMlbStandingsRequest, type index$5_GetMlbStandingsResponse as GetMlbStandingsResponse, type index$5_GetMlbTeamRosterRequest as GetMlbTeamRosterRequest, type index$5_GetMlbTeamRosterRequestPosition as GetMlbTeamRosterRequestPosition, type index$5_GetMlbTeamRosterResponse as GetMlbTeamRosterResponse, type index$5_ListMlbGamesRequest as ListMlbGamesRequest, type index$5_ListMlbGamesRequestState as ListMlbGamesRequestState, type index$5_ListMlbGamesResponse as ListMlbGamesResponse, type index$5_ListMlbPlayersRequest as ListMlbPlayersRequest, type index$5_ListMlbPlayersRequestPosition as ListMlbPlayersRequestPosition, type index$5_ListMlbPlayersRequestStatus as ListMlbPlayersRequestStatus, type index$5_ListMlbPlayersResponse as ListMlbPlayersResponse, index$5_ListMlbTeamsResponse as ListMlbTeamsResponse };
1066
+ }
1067
+
1068
+ /**
1069
+ * @example
1070
+ * {
1071
+ * sport: "nfl",
1072
+ * player_name: "Josh Allen"
1073
+ * }
1074
+ */
1075
+ interface GetGamesHistoryRequest {
1076
+ /** Sport */
1077
+ sport: GetGamesHistoryRequestSport;
1078
+ /** Partial match (ILIKE) */
1079
+ player_name?: string;
1080
+ /** Season year */
1081
+ season?: number;
1082
+ /** Max rows (default 50, max 200) */
1083
+ limit?: number;
1084
+ }
1085
+
1086
+ /**
1087
+ * @example
1088
+ * {}
1089
+ */
1090
+ interface GetTrendingRequest {
1091
+ /** Filter by sport (omit or "all" for everything) */
1092
+ sport?: GetTrendingRequestSport;
1093
+ }
1094
+
1095
+ /**
1096
+ * @example
1097
+ * {
1098
+ * sport: "nfl"
1099
+ * }
1100
+ */
1101
+ interface GetWaiverArticlesRequest {
1102
+ /** Sport */
1103
+ sport: GetWaiverArticlesRequestSport;
1104
+ /** Season year */
1105
+ season?: number;
1106
+ /** Week number */
1107
+ week?: number;
1108
+ /** Max articles (default 10, max 50) */
1109
+ limit?: number;
1110
+ }
1111
+
1112
+ /**
1113
+ * @example
1114
+ * {
1115
+ * q: "LeBron",
1116
+ * position: "WR"
1117
+ * }
1118
+ */
1119
+ interface SearchPlayersRequest {
1120
+ /** Player name search (min 2 characters) */
1121
+ q: string;
1122
+ /** Filter by sport */
1123
+ sport?: SearchPlayersRequestSport;
1124
+ /** Filter by position */
1125
+ position?: string;
1126
+ /** Max results (default 25, max 100) */
1127
+ limit?: number;
1128
+ }
1129
+
1130
+ declare const GetGamesHistoryRequestSport: {
1131
+ readonly Nfl: "nfl";
1132
+ readonly Nba: "nba";
1133
+ readonly Mlb: "mlb";
1134
+ };
1135
+ type GetGamesHistoryRequestSport = (typeof GetGamesHistoryRequestSport)[keyof typeof GetGamesHistoryRequestSport];
1136
+
1137
+ interface GetGamesHistoryResponse {
1138
+ success?: boolean | undefined;
1139
+ sport?: string | undefined;
1140
+ count?: number | undefined;
1141
+ data?: Record<string, unknown>[] | undefined;
1142
+ meta?: ResponseMeta | undefined;
1143
+ }
1144
+
1145
+ declare const GetTrendingRequestSport: {
1146
+ readonly Nfl: "nfl";
1147
+ readonly Mlb: "mlb";
1148
+ readonly Nba: "nba";
1149
+ readonly All: "all";
1150
+ };
1151
+ type GetTrendingRequestSport = (typeof GetTrendingRequestSport)[keyof typeof GetTrendingRequestSport];
1152
+
1153
+ interface GetTrendingResponse {
1154
+ success?: boolean | undefined;
1155
+ endpoint?: string | undefined;
1156
+ count?: number | undefined;
1157
+ data?: GetTrendingResponse.Data.Item[] | undefined;
1158
+ meta?: ResponseMeta | undefined;
1159
+ }
1160
+ declare namespace GetTrendingResponse {
1161
+ type Data = Data.Item[];
1162
+ namespace Data {
1163
+ interface Item {
1164
+ tag?: string | undefined;
1165
+ sport?: string | undefined;
1166
+ category?: string | undefined;
1167
+ relevance_score?: number | undefined;
1168
+ scraped_at?: string | undefined;
1169
+ expires_at?: string | undefined;
1170
+ }
1171
+ }
1172
+ }
1173
+
1174
+ declare const GetWaiverArticlesRequestSport: {
1175
+ readonly Nfl: "nfl";
1176
+ readonly Mlb: "mlb";
1177
+ readonly Nba: "nba";
1178
+ };
1179
+ type GetWaiverArticlesRequestSport = (typeof GetWaiverArticlesRequestSport)[keyof typeof GetWaiverArticlesRequestSport];
1180
+
1181
+ interface GetWaiverArticlesResponse {
1182
+ success?: boolean | undefined;
1183
+ endpoint?: string | undefined;
1184
+ count?: number | undefined;
1185
+ data?: GetWaiverArticlesResponse.Data.Item[] | undefined;
1186
+ meta?: ResponseMeta | undefined;
1187
+ }
1188
+ declare namespace GetWaiverArticlesResponse {
1189
+ type Data = Data.Item[];
1190
+ namespace Data {
1191
+ interface Item {
1192
+ slug?: string | undefined;
1193
+ title?: string | undefined;
1194
+ content?: string | undefined;
1195
+ meta_description?: (string | null) | undefined;
1196
+ season?: number | undefined;
1197
+ week?: number | undefined;
1198
+ /** Validated model-signal rows that produced this article */
1199
+ signals_used?: unknown[] | undefined;
1200
+ published_at?: string | undefined;
1201
+ }
1202
+ }
1203
+ }
1204
+
1205
+ interface ListSportsResponse {
1206
+ success?: boolean | undefined;
1207
+ endpoint?: string | undefined;
1208
+ sports?: ListSportsResponse.Sports.Item[] | undefined;
1209
+ /** Endpoints not scoped to one sport, e.g. /v1/trending, /v1/articles/waiver */
1210
+ cross_sport_endpoints?: string[] | undefined;
1211
+ meta?: ListSportsResponse.Meta | undefined;
1212
+ }
1213
+ declare namespace ListSportsResponse {
1214
+ type Sports = Sports.Item[];
1215
+ namespace Sports {
1216
+ interface Item {
1217
+ sport?: string | undefined;
1218
+ name?: string | undefined;
1219
+ status?: string | undefined;
1220
+ endpoints?: string[] | undefined;
1221
+ }
1222
+ }
1223
+ interface Meta {
1224
+ tier?: string | undefined;
1225
+ documentation_url?: string | undefined;
1226
+ }
1227
+ }
1228
+
1229
+ declare const SearchPlayersRequestSport: {
1230
+ readonly Nfl: "nfl";
1231
+ readonly Mlb: "mlb";
1232
+ readonly Nba: "nba";
1233
+ };
1234
+ type SearchPlayersRequestSport = (typeof SearchPlayersRequestSport)[keyof typeof SearchPlayersRequestSport];
1235
+
1236
+ interface SearchPlayersResponse {
1237
+ success?: boolean | undefined;
1238
+ endpoint?: string | undefined;
1239
+ q?: string | undefined;
1240
+ count?: number | undefined;
1241
+ data?: PlayerIdentity[] | undefined;
1242
+ meta?: ResponseMeta | undefined;
1243
+ }
1244
+
1245
+ type index$4_GetGamesHistoryRequest = GetGamesHistoryRequest;
1246
+ type index$4_GetGamesHistoryRequestSport = GetGamesHistoryRequestSport;
1247
+ type index$4_GetGamesHistoryResponse = GetGamesHistoryResponse;
1248
+ type index$4_GetTrendingRequest = GetTrendingRequest;
1249
+ type index$4_GetTrendingRequestSport = GetTrendingRequestSport;
1250
+ declare const index$4_GetTrendingResponse: typeof GetTrendingResponse;
1251
+ type index$4_GetWaiverArticlesRequest = GetWaiverArticlesRequest;
1252
+ type index$4_GetWaiverArticlesRequestSport = GetWaiverArticlesRequestSport;
1253
+ declare const index$4_GetWaiverArticlesResponse: typeof GetWaiverArticlesResponse;
1254
+ declare const index$4_ListSportsResponse: typeof ListSportsResponse;
1255
+ type index$4_SearchPlayersRequest = SearchPlayersRequest;
1256
+ type index$4_SearchPlayersRequestSport = SearchPlayersRequestSport;
1257
+ type index$4_SearchPlayersResponse = SearchPlayersResponse;
1258
+ declare namespace index$4 {
1259
+ export { type index$4_GetGamesHistoryRequest as GetGamesHistoryRequest, type index$4_GetGamesHistoryRequestSport as GetGamesHistoryRequestSport, type index$4_GetGamesHistoryResponse as GetGamesHistoryResponse, type index$4_GetTrendingRequest as GetTrendingRequest, type index$4_GetTrendingRequestSport as GetTrendingRequestSport, index$4_GetTrendingResponse as GetTrendingResponse, type index$4_GetWaiverArticlesRequest as GetWaiverArticlesRequest, type index$4_GetWaiverArticlesRequestSport as GetWaiverArticlesRequestSport, index$4_GetWaiverArticlesResponse as GetWaiverArticlesResponse, index$4_ListSportsResponse as ListSportsResponse, type index$4_SearchPlayersRequest as SearchPlayersRequest, type index$4_SearchPlayersRequestSport as SearchPlayersRequestSport, type index$4_SearchPlayersResponse as SearchPlayersResponse };
1260
+ }
1261
+
1262
+ /**
1263
+ * @example
1264
+ * {
1265
+ * player: "Nikola Jokic"
1266
+ * }
1267
+ */
1268
+ interface GetNbaConfidenceRequest {
1269
+ /** Player full name (fuzzy matched) */
1270
+ player: string;
1271
+ }
1272
+
1273
+ /**
1274
+ * @example
1275
+ * {
1276
+ * id: "pc_nba_1262"
1277
+ * }
1278
+ */
1279
+ interface GetNbaPlayerRequest {
1280
+ /** PlayCaller NBA player ID (format: pc_nba_XXXXXX) */
1281
+ id: string;
1282
+ }
1283
+
1284
+ /**
1285
+ * @example
1286
+ * {
1287
+ * id: "pc_nba_1262"
1288
+ * }
1289
+ */
1290
+ interface GetNbaPlayerStatsRequest {
1291
+ /** PlayCaller NBA player ID */
1292
+ id: string;
1293
+ /** Season year (2021–2025) */
1294
+ season?: number;
1295
+ /** Max game logs (default 30, max 200) */
1296
+ limit?: number;
1297
+ }
1298
+
1299
+ /**
1300
+ * @example
1301
+ * {}
1302
+ */
1303
+ interface GetNbaStandingsRequest {
1304
+ /** Season year (defaults to current) */
1305
+ season?: number;
1306
+ /** Filter by conference */
1307
+ conference?: GetNbaStandingsRequestConference;
1308
+ }
1309
+
1310
+ /**
1311
+ * @example
1312
+ * {
1313
+ * team: "BOS"
1314
+ * }
1315
+ */
1316
+ interface GetNbaTeamRosterRequest {
1317
+ /** 3-letter NBA team abbreviation (e.g. BOS, LAL) */
1318
+ team: string;
1319
+ /** Filter by position */
1320
+ position?: GetNbaTeamRosterRequestPosition;
1321
+ }
1322
+
1323
+ /**
1324
+ * @example
1325
+ * {
1326
+ * date: "2026-05-01"
1327
+ * }
1328
+ */
1329
+ interface ListNbaGamesRequest {
1330
+ /** Game date (YYYY-MM-DD, defaults to today) */
1331
+ date?: string;
1332
+ /** Game state filter (matches the live state column exactly) */
1333
+ state?: ListNbaGamesRequestState;
1334
+ /** Max games (default 30, max 100) */
1335
+ limit?: number;
1336
+ }
1337
+
1338
+ /**
1339
+ * @example
1340
+ * {
1341
+ * search: "LeBron",
1342
+ * team: "LAL"
1343
+ * }
1344
+ */
1345
+ interface ListNbaPlayersRequest {
1346
+ /** Partial player name (case-insensitive) */
1347
+ search?: string;
1348
+ /** Filter by position */
1349
+ position?: ListNbaPlayersRequestPosition;
1350
+ /** 3-letter team abbreviation */
1351
+ team?: string;
1352
+ /** Max results (default 50, max 200) */
1353
+ limit?: number;
1354
+ /** Pagination offset */
1355
+ offset?: number;
1356
+ }
1357
+
1358
+ /**
1359
+ * @example
1360
+ * {}
1361
+ */
1362
+ interface ListNbaTeamsRequest {
1363
+ /** Filter by conference */
1364
+ conference?: ListNbaTeamsRequestConference;
1365
+ }
1366
+
1367
+ interface GetNbaConfidenceResponse {
1368
+ success?: boolean | undefined;
1369
+ endpoint?: string | undefined;
1370
+ player?: string | undefined;
1371
+ team?: (string | null) | undefined;
1372
+ position?: (string | null) | undefined;
1373
+ confirmed_out?: boolean | undefined;
1374
+ /** Present when confidence is null: "insufficient game history", "unsupported position (X)", or a disqualification reason */
1375
+ reason?: (string | null) | undefined;
1376
+ confidence?: (GetNbaConfidenceResponse.Confidence | null) | undefined;
1377
+ model_audit?: GetNbaConfidenceResponse.ModelAudit | undefined;
1378
+ meta?: ResponseMeta | undefined;
1379
+ }
1380
+ declare namespace GetNbaConfidenceResponse {
1381
+ interface Confidence {
1382
+ score?: number | undefined;
1383
+ display?: string | undefined;
1384
+ tier?: string | undefined;
1385
+ label?: string | undefined;
1386
+ signals?: Confidence.Signals.Item[] | undefined;
1387
+ /** Pre-display-cap detail — the actual differentiator this endpoint sells over /v1/feed’s capped summary */
1388
+ raw?: Confidence.Raw | undefined;
1389
+ }
1390
+ namespace Confidence {
1391
+ type Signals = Signals.Item[];
1392
+ namespace Signals {
1393
+ interface Item {
1394
+ key?: string | undefined;
1395
+ label?: string | undefined;
1396
+ value?: number | undefined;
1397
+ direction?: Item.Direction | undefined;
1398
+ note?: string | undefined;
1399
+ }
1400
+ namespace Item {
1401
+ const Direction: {
1402
+ readonly Up: "up";
1403
+ readonly Down: "down";
1404
+ readonly Flat: "flat";
1405
+ };
1406
+ type Direction = (typeof Direction)[keyof typeof Direction];
1407
+ }
1408
+ }
1409
+ /**
1410
+ * Pre-display-cap detail — the actual differentiator this endpoint sells over /v1/feed’s capped summary
1411
+ */
1412
+ interface Raw {
1413
+ raw_features?: number[] | undefined;
1414
+ normed_features?: number[] | undefined;
1415
+ z?: number | undefined;
1416
+ raw_logit?: number | undefined;
1417
+ calibrated?: number | undefined;
1418
+ raw_pct?: number | undefined;
1419
+ capped_pct?: number | undefined;
1420
+ display_cap?: number | undefined;
1421
+ was_capped?: boolean | undefined;
1422
+ }
1423
+ }
1424
+ interface ModelAudit {
1425
+ auc?: number | undefined;
1426
+ decile_lift?: number | undefined;
1427
+ model_type?: string | undefined;
1428
+ sport?: string | undefined;
1429
+ validated?: string | undefined;
1430
+ }
1431
+ }
1432
+
1433
+ interface GetNbaPlayerResponse {
1434
+ success?: boolean | undefined;
1435
+ data?: GetNbaPlayerResponse.Data | undefined;
1436
+ meta?: ResponseMeta | undefined;
1437
+ }
1438
+ declare namespace GetNbaPlayerResponse {
1439
+ interface Data {
1440
+ id?: string | undefined;
1441
+ full_name?: string | undefined;
1442
+ first_name?: string | undefined;
1443
+ last_name?: string | undefined;
1444
+ position?: (string | null) | undefined;
1445
+ team?: string | undefined;
1446
+ status?: string | undefined;
1447
+ metadata?: (Record<string, unknown> | null) | undefined;
1448
+ last_updated?: (string | null) | undefined;
1449
+ }
1450
+ }
1451
+
1452
+ interface GetNbaPlayerStatsResponse {
1453
+ success?: boolean | undefined;
1454
+ endpoint?: string | undefined;
1455
+ player?: GetNbaPlayerStatsResponse.Player | undefined;
1456
+ count?: number | undefined;
1457
+ data?: HistoricalGameRecord[] | undefined;
1458
+ meta?: ResponseMeta | undefined;
1459
+ }
1460
+ declare namespace GetNbaPlayerStatsResponse {
1461
+ interface Player {
1462
+ id?: string | undefined;
1463
+ full_name?: string | undefined;
1464
+ position?: string | undefined;
1465
+ team?: string | undefined;
1466
+ }
1467
+ }
1468
+
1469
+ declare const GetNbaStandingsRequestConference: {
1470
+ readonly East: "East";
1471
+ readonly West: "West";
1472
+ };
1473
+ type GetNbaStandingsRequestConference = (typeof GetNbaStandingsRequestConference)[keyof typeof GetNbaStandingsRequestConference];
1474
+
1475
+ interface GetNbaStandingsResponse {
1476
+ success?: boolean | undefined;
1477
+ endpoint?: string | undefined;
1478
+ season?: number | undefined;
1479
+ count?: number | undefined;
1480
+ data?: EspnStanding[] | undefined;
1481
+ meta?: ResponseMeta | undefined;
1482
+ }
1483
+
1484
+ declare const GetNbaTeamRosterRequestPosition: {
1485
+ readonly Pg: "PG";
1486
+ readonly Sg: "SG";
1487
+ readonly Sf: "SF";
1488
+ readonly Pf: "PF";
1489
+ readonly C: "C";
1490
+ };
1491
+ type GetNbaTeamRosterRequestPosition = (typeof GetNbaTeamRosterRequestPosition)[keyof typeof GetNbaTeamRosterRequestPosition];
1492
+
1493
+ interface GetNbaTeamRosterResponse {
1494
+ success?: boolean | undefined;
1495
+ team?: string | undefined;
1496
+ count?: number | undefined;
1497
+ data?: GetNbaTeamRosterResponse.Data.Item[] | undefined;
1498
+ meta?: ResponseMeta | undefined;
1499
+ }
1500
+ declare namespace GetNbaTeamRosterResponse {
1501
+ type Data = Data.Item[];
1502
+ namespace Data {
1503
+ interface Item {
1504
+ id?: string | undefined;
1505
+ full_name?: string | undefined;
1506
+ position?: (string | null) | undefined;
1507
+ status?: string | undefined;
1508
+ }
1509
+ }
1510
+ }
1511
+
1512
+ declare const ListNbaGamesRequestState: {
1513
+ readonly Scheduled: "scheduled";
1514
+ readonly InProgress: "in_progress";
1515
+ readonly Final: "final";
1516
+ };
1517
+ type ListNbaGamesRequestState = (typeof ListNbaGamesRequestState)[keyof typeof ListNbaGamesRequestState];
1518
+
1519
+ interface ListNbaGamesResponse {
1520
+ success?: boolean | undefined;
1521
+ endpoint?: string | undefined;
1522
+ count?: number | undefined;
1523
+ data?: EspnGame[] | undefined;
1524
+ meta?: ResponseMeta | undefined;
1525
+ }
1526
+
1527
+ declare const ListNbaPlayersRequestPosition: {
1528
+ readonly Pg: "PG";
1529
+ readonly Sg: "SG";
1530
+ readonly Sf: "SF";
1531
+ readonly Pf: "PF";
1532
+ readonly C: "C";
1533
+ };
1534
+ type ListNbaPlayersRequestPosition = (typeof ListNbaPlayersRequestPosition)[keyof typeof ListNbaPlayersRequestPosition];
1535
+
1536
+ interface ListNbaPlayersResponse {
1537
+ success?: boolean | undefined;
1538
+ endpoint?: string | undefined;
1539
+ total?: number | undefined;
1540
+ count?: number | undefined;
1541
+ offset?: number | undefined;
1542
+ limit?: number | undefined;
1543
+ data?: ListNbaPlayersResponse.Data.Item[] | undefined;
1544
+ meta?: ResponseMeta | undefined;
1545
+ }
1546
+ declare namespace ListNbaPlayersResponse {
1547
+ type Data = Data.Item[];
1548
+ namespace Data {
1549
+ interface Item {
1550
+ id?: string | undefined;
1551
+ full_name?: string | undefined;
1552
+ first_name?: string | undefined;
1553
+ last_name?: string | undefined;
1554
+ position?: (string | null) | undefined;
1555
+ team?: string | undefined;
1556
+ status?: string | undefined;
1557
+ }
1558
+ }
1559
+ }
1560
+
1561
+ declare const ListNbaTeamsRequestConference: {
1562
+ readonly East: "East";
1563
+ readonly West: "West";
1564
+ };
1565
+ type ListNbaTeamsRequestConference = (typeof ListNbaTeamsRequestConference)[keyof typeof ListNbaTeamsRequestConference];
1566
+
1567
+ interface ListNbaTeamsResponse {
1568
+ success?: boolean | undefined;
1569
+ endpoint?: string | undefined;
1570
+ count?: number | undefined;
1571
+ data?: ListNbaTeamsResponse.Data.Item[] | undefined;
1572
+ meta?: ResponseMeta | undefined;
1573
+ }
1574
+ declare namespace ListNbaTeamsResponse {
1575
+ type Data = Data.Item[];
1576
+ namespace Data {
1577
+ interface Item {
1578
+ id?: (string | null) | undefined;
1579
+ abbreviation?: string | undefined;
1580
+ full_name?: string | undefined;
1581
+ conference?: (string | null) | undefined;
1582
+ division?: (string | null) | undefined;
1583
+ logo?: (string | null) | undefined;
1584
+ record?: Item.Record_ | undefined;
1585
+ last_updated?: (string | null) | undefined;
1586
+ }
1587
+ namespace Item {
1588
+ interface Record_ {
1589
+ wins?: (number | null) | undefined;
1590
+ losses?: (number | null) | undefined;
1591
+ win_pct?: (number | null) | undefined;
1592
+ }
1593
+ }
1594
+ }
1595
+ }
1596
+
1597
+ type index$3_GetNbaConfidenceRequest = GetNbaConfidenceRequest;
1598
+ declare const index$3_GetNbaConfidenceResponse: typeof GetNbaConfidenceResponse;
1599
+ type index$3_GetNbaPlayerRequest = GetNbaPlayerRequest;
1600
+ declare const index$3_GetNbaPlayerResponse: typeof GetNbaPlayerResponse;
1601
+ type index$3_GetNbaPlayerStatsRequest = GetNbaPlayerStatsRequest;
1602
+ declare const index$3_GetNbaPlayerStatsResponse: typeof GetNbaPlayerStatsResponse;
1603
+ type index$3_GetNbaStandingsRequest = GetNbaStandingsRequest;
1604
+ type index$3_GetNbaStandingsRequestConference = GetNbaStandingsRequestConference;
1605
+ type index$3_GetNbaStandingsResponse = GetNbaStandingsResponse;
1606
+ type index$3_GetNbaTeamRosterRequest = GetNbaTeamRosterRequest;
1607
+ type index$3_GetNbaTeamRosterRequestPosition = GetNbaTeamRosterRequestPosition;
1608
+ declare const index$3_GetNbaTeamRosterResponse: typeof GetNbaTeamRosterResponse;
1609
+ type index$3_ListNbaGamesRequest = ListNbaGamesRequest;
1610
+ type index$3_ListNbaGamesRequestState = ListNbaGamesRequestState;
1611
+ type index$3_ListNbaGamesResponse = ListNbaGamesResponse;
1612
+ type index$3_ListNbaPlayersRequest = ListNbaPlayersRequest;
1613
+ type index$3_ListNbaPlayersRequestPosition = ListNbaPlayersRequestPosition;
1614
+ declare const index$3_ListNbaPlayersResponse: typeof ListNbaPlayersResponse;
1615
+ type index$3_ListNbaTeamsRequest = ListNbaTeamsRequest;
1616
+ type index$3_ListNbaTeamsRequestConference = ListNbaTeamsRequestConference;
1617
+ declare const index$3_ListNbaTeamsResponse: typeof ListNbaTeamsResponse;
1618
+ declare namespace index$3 {
1619
+ export { type index$3_GetNbaConfidenceRequest as GetNbaConfidenceRequest, index$3_GetNbaConfidenceResponse as GetNbaConfidenceResponse, type index$3_GetNbaPlayerRequest as GetNbaPlayerRequest, index$3_GetNbaPlayerResponse as GetNbaPlayerResponse, type index$3_GetNbaPlayerStatsRequest as GetNbaPlayerStatsRequest, index$3_GetNbaPlayerStatsResponse as GetNbaPlayerStatsResponse, type index$3_GetNbaStandingsRequest as GetNbaStandingsRequest, type index$3_GetNbaStandingsRequestConference as GetNbaStandingsRequestConference, type index$3_GetNbaStandingsResponse as GetNbaStandingsResponse, type index$3_GetNbaTeamRosterRequest as GetNbaTeamRosterRequest, type index$3_GetNbaTeamRosterRequestPosition as GetNbaTeamRosterRequestPosition, index$3_GetNbaTeamRosterResponse as GetNbaTeamRosterResponse, type index$3_ListNbaGamesRequest as ListNbaGamesRequest, type index$3_ListNbaGamesRequestState as ListNbaGamesRequestState, type index$3_ListNbaGamesResponse as ListNbaGamesResponse, type index$3_ListNbaPlayersRequest as ListNbaPlayersRequest, type index$3_ListNbaPlayersRequestPosition as ListNbaPlayersRequestPosition, index$3_ListNbaPlayersResponse as ListNbaPlayersResponse, type index$3_ListNbaTeamsRequest as ListNbaTeamsRequest, type index$3_ListNbaTeamsRequestConference as ListNbaTeamsRequestConference, index$3_ListNbaTeamsResponse as ListNbaTeamsResponse };
1620
+ }
1621
+
1622
+ /**
1623
+ * @example
1624
+ * {
1625
+ * id: "pc_nfl_001234"
1626
+ * }
1627
+ */
1628
+ interface GetNflPlayerRequest {
1629
+ /** PlayCaller NFL player ID (format: pc_nfl_XXXXXX) */
1630
+ id: string;
1631
+ }
1632
+
1633
+ /**
1634
+ * @example
1635
+ * {
1636
+ * id: "pc_nfl_001234"
1637
+ * }
1638
+ */
1639
+ interface GetNflPlayerStatsRequest {
1640
+ /** PlayCaller NFL player ID */
1641
+ id: string;
1642
+ /** Season year (default: all available) */
1643
+ season?: number;
1644
+ /** NFL week number (1–18) */
1645
+ week?: number;
1646
+ /** Max game logs (default 30, max 200) */
1647
+ limit?: number;
1648
+ }
1649
+
1650
+ /**
1651
+ * @example
1652
+ * {
1653
+ * division: "AFC West"
1654
+ * }
1655
+ */
1656
+ interface GetNflStandingsRequest {
1657
+ /** Filter by conference */
1658
+ conference?: GetNflStandingsRequestConference;
1659
+ /** Filter by division (partial match: "AFC West") */
1660
+ division?: string;
1661
+ /** Season year (defaults to current) */
1662
+ season?: number;
1663
+ }
1664
+
1665
+ /**
1666
+ * @example
1667
+ * {
1668
+ * team: "KC"
1669
+ * }
1670
+ */
1671
+ interface GetNflTeamRosterRequest {
1672
+ /** 2-3 letter NFL team abbreviation (e.g. KC, NE, SF) */
1673
+ team: string;
1674
+ /** Filter by position */
1675
+ position?: GetNflTeamRosterRequestPosition;
1676
+ }
1677
+
1678
+ /**
1679
+ * @example
1680
+ * {}
1681
+ */
1682
+ interface ListNflGamesRequest {
1683
+ /** Season year (default: all) */
1684
+ season?: number;
1685
+ /** NFL week number */
1686
+ week?: number;
1687
+ /** Game status filter */
1688
+ status?: ListNflGamesRequestStatus;
1689
+ /** Max games (default 30, max 100) */
1690
+ limit?: number;
1691
+ }
1692
+
1693
+ /**
1694
+ * @example
1695
+ * {
1696
+ * search: "Mahomes",
1697
+ * team: "KC"
1698
+ * }
1699
+ */
1700
+ interface ListNflPlayersRequest {
1701
+ /** Partial player name (case-insensitive) */
1702
+ search?: string;
1703
+ /** Filter by position */
1704
+ position?: ListNflPlayersRequestPosition;
1705
+ /** 2-3 letter team abbreviation */
1706
+ team?: string;
1707
+ /** Max results (default 50, max 200) */
1708
+ limit?: number;
1709
+ /** Pagination offset */
1710
+ offset?: number;
1711
+ }
1712
+
1713
+ /**
1714
+ * @example
1715
+ * {
1716
+ * division: "North"
1717
+ * }
1718
+ */
1719
+ interface ListNflTeamsRequest {
1720
+ /** Filter by conference */
1721
+ conference?: ListNflTeamsRequestConference;
1722
+ /** Filter by division (partial match: "North", "AFC West") */
1723
+ division?: string;
1724
+ }
1725
+
1726
+ interface GetNflPlayerResponse {
1727
+ success?: boolean | undefined;
1728
+ endpoint?: string | undefined;
1729
+ data?: GetNflPlayerResponse.Data | undefined;
1730
+ meta?: ResponseMeta | undefined;
1731
+ }
1732
+ declare namespace GetNflPlayerResponse {
1733
+ interface Data {
1734
+ id?: string | undefined;
1735
+ full_name?: string | undefined;
1736
+ first_name?: string | undefined;
1737
+ last_name?: string | undefined;
1738
+ position?: string | undefined;
1739
+ team?: string | undefined;
1740
+ team_name?: (string | null) | undefined;
1741
+ conference?: (string | null) | undefined;
1742
+ division?: (string | null) | undefined;
1743
+ status?: string | undefined;
1744
+ metadata?: (Record<string, unknown> | null) | undefined;
1745
+ last_updated?: (string | null) | undefined;
1746
+ }
1747
+ }
1748
+
1749
+ interface GetNflPlayerStatsResponse {
1750
+ success?: boolean | undefined;
1751
+ endpoint?: string | undefined;
1752
+ player?: GetNflPlayerStatsResponse.Player | undefined;
1753
+ count?: number | undefined;
1754
+ data?: GetNflPlayerStatsResponse.Data.Item[] | undefined;
1755
+ meta?: ResponseMeta | undefined;
1756
+ }
1757
+ declare namespace GetNflPlayerStatsResponse {
1758
+ interface Player {
1759
+ id?: string | undefined;
1760
+ full_name?: string | undefined;
1761
+ position?: string | undefined;
1762
+ team?: string | undefined;
1763
+ }
1764
+ type Data = Data.Item[];
1765
+ namespace Data {
1766
+ interface Item {
1767
+ season?: number | undefined;
1768
+ week?: number | undefined;
1769
+ team?: string | undefined;
1770
+ opponent?: (string | null) | undefined;
1771
+ position?: string | undefined;
1772
+ passing?: Item.Passing | undefined;
1773
+ rushing?: Item.Rushing | undefined;
1774
+ receiving?: Item.Receiving | undefined;
1775
+ snap_pct?: (number | null) | undefined;
1776
+ target_share?: (number | null) | undefined;
1777
+ air_yards?: (number | null) | undefined;
1778
+ fantasy_points?: (number | null) | undefined;
1779
+ }
1780
+ namespace Item {
1781
+ interface Passing {
1782
+ yards?: (number | null) | undefined;
1783
+ tds?: (number | null) | undefined;
1784
+ }
1785
+ interface Rushing {
1786
+ yards?: (number | null) | undefined;
1787
+ tds?: (number | null) | undefined;
1788
+ }
1789
+ interface Receiving {
1790
+ yards?: (number | null) | undefined;
1791
+ tds?: (number | null) | undefined;
1792
+ receptions?: (number | null) | undefined;
1793
+ }
1794
+ }
1795
+ }
1796
+ }
1797
+
1798
+ declare const GetNflStandingsRequestConference: {
1799
+ readonly Afc: "AFC";
1800
+ readonly Nfc: "NFC";
1801
+ };
1802
+ type GetNflStandingsRequestConference = (typeof GetNflStandingsRequestConference)[keyof typeof GetNflStandingsRequestConference];
1803
+
1804
+ interface GetNflStandingsResponse {
1805
+ success?: boolean | undefined;
1806
+ endpoint?: string | undefined;
1807
+ season?: number | undefined;
1808
+ count?: number | undefined;
1809
+ data?: GetNflStandingsResponse.Data.Item[] | undefined;
1810
+ meta?: ResponseMeta | undefined;
1811
+ }
1812
+ declare namespace GetNflStandingsResponse {
1813
+ type Data = Data.Item[];
1814
+ namespace Data {
1815
+ interface Item {
1816
+ team?: string | undefined;
1817
+ full_name?: string | undefined;
1818
+ conference?: string | undefined;
1819
+ division?: string | undefined;
1820
+ wins?: number | undefined;
1821
+ losses?: number | undefined;
1822
+ ties?: number | undefined;
1823
+ win_pct?: number | undefined;
1824
+ }
1825
+ }
1826
+ }
1827
+
1828
+ declare const GetNflTeamRosterRequestPosition: {
1829
+ readonly Qb: "QB";
1830
+ readonly Rb: "RB";
1831
+ readonly Wr: "WR";
1832
+ readonly Te: "TE";
1833
+ readonly K: "K";
1834
+ readonly Def: "DEF";
1835
+ readonly Dl: "DL";
1836
+ readonly Lb: "LB";
1837
+ readonly Db: "DB";
1838
+ readonly Ol: "OL";
1839
+ };
1840
+ type GetNflTeamRosterRequestPosition = (typeof GetNflTeamRosterRequestPosition)[keyof typeof GetNflTeamRosterRequestPosition];
1841
+
1842
+ interface GetNflTeamRosterResponse {
1843
+ success?: boolean | undefined;
1844
+ endpoint?: string | undefined;
1845
+ team?: GetNflTeamRosterResponse.Team | undefined;
1846
+ count?: number | undefined;
1847
+ data?: GetNflTeamRosterResponse.Data.Item[] | undefined;
1848
+ meta?: ResponseMeta | undefined;
1849
+ }
1850
+ declare namespace GetNflTeamRosterResponse {
1851
+ interface Team {
1852
+ abbreviation?: string | undefined;
1853
+ full_name?: string | undefined;
1854
+ conference?: string | undefined;
1855
+ division?: string | undefined;
1856
+ }
1857
+ type Data = Data.Item[];
1858
+ namespace Data {
1859
+ interface Item {
1860
+ id?: string | undefined;
1861
+ full_name?: string | undefined;
1862
+ position?: string | undefined;
1863
+ status?: string | undefined;
1864
+ }
1865
+ }
1866
+ }
1867
+
1868
+ declare const ListNflGamesRequestStatus: {
1869
+ readonly Scheduled: "scheduled";
1870
+ readonly InProgress: "in_progress";
1871
+ readonly Final: "final";
1872
+ };
1873
+ type ListNflGamesRequestStatus = (typeof ListNflGamesRequestStatus)[keyof typeof ListNflGamesRequestStatus];
1874
+
1875
+ interface ListNflGamesResponse {
1876
+ success?: boolean | undefined;
1877
+ endpoint?: string | undefined;
1878
+ count?: number | undefined;
1879
+ data?: ListNflGamesResponse.Data.Item[] | undefined;
1880
+ meta?: ResponseMeta | undefined;
1881
+ }
1882
+ declare namespace ListNflGamesResponse {
1883
+ type Data = Data.Item[];
1884
+ namespace Data {
1885
+ interface Item {
1886
+ game_id?: string | undefined;
1887
+ season?: number | undefined;
1888
+ week?: number | undefined;
1889
+ season_type?: string | undefined;
1890
+ game_time?: (string | null) | undefined;
1891
+ status?: string | undefined;
1892
+ away_team?: Item.AwayTeam | undefined;
1893
+ home_team?: Item.HomeTeam | undefined;
1894
+ away_score?: (number | null) | undefined;
1895
+ home_score?: (number | null) | undefined;
1896
+ winner?: (string | null) | undefined;
1897
+ spread?: (number | null) | undefined;
1898
+ }
1899
+ namespace Item {
1900
+ interface AwayTeam {
1901
+ name?: string | undefined;
1902
+ abbreviation?: string | undefined;
1903
+ }
1904
+ interface HomeTeam {
1905
+ name?: string | undefined;
1906
+ abbreviation?: string | undefined;
1907
+ }
1908
+ }
1909
+ }
1910
+ }
1911
+
1912
+ declare const ListNflPlayersRequestPosition: {
1913
+ readonly Qb: "QB";
1914
+ readonly Rb: "RB";
1915
+ readonly Wr: "WR";
1916
+ readonly Te: "TE";
1917
+ readonly K: "K";
1918
+ readonly Def: "DEF";
1919
+ };
1920
+ type ListNflPlayersRequestPosition = (typeof ListNflPlayersRequestPosition)[keyof typeof ListNflPlayersRequestPosition];
1921
+
1922
+ interface ListNflPlayersResponse {
1923
+ success?: boolean | undefined;
1924
+ endpoint?: string | undefined;
1925
+ total?: number | undefined;
1926
+ count?: number | undefined;
1927
+ offset?: number | undefined;
1928
+ limit?: number | undefined;
1929
+ data?: ListNflPlayersResponse.Data.Item[] | undefined;
1930
+ meta?: ResponseMeta | undefined;
1931
+ }
1932
+ declare namespace ListNflPlayersResponse {
1933
+ type Data = Data.Item[];
1934
+ namespace Data {
1935
+ interface Item {
1936
+ id?: string | undefined;
1937
+ full_name?: string | undefined;
1938
+ first_name?: string | undefined;
1939
+ last_name?: string | undefined;
1940
+ position?: string | undefined;
1941
+ team?: string | undefined;
1942
+ status?: string | undefined;
1943
+ }
1944
+ }
1945
+ }
1946
+
1947
+ declare const ListNflTeamsRequestConference: {
1948
+ readonly Afc: "AFC";
1949
+ readonly Nfc: "NFC";
1950
+ };
1951
+ type ListNflTeamsRequestConference = (typeof ListNflTeamsRequestConference)[keyof typeof ListNflTeamsRequestConference];
1952
+
1953
+ interface ListNflTeamsResponse {
1954
+ success?: boolean | undefined;
1955
+ endpoint?: string | undefined;
1956
+ count?: number | undefined;
1957
+ data?: ListNflTeamsResponse.Data.Item[] | undefined;
1958
+ meta?: ResponseMeta | undefined;
1959
+ }
1960
+ declare namespace ListNflTeamsResponse {
1961
+ type Data = Data.Item[];
1962
+ namespace Data {
1963
+ interface Item {
1964
+ abbreviation?: string | undefined;
1965
+ full_name?: string | undefined;
1966
+ city?: string | undefined;
1967
+ nickname?: string | undefined;
1968
+ conference?: string | undefined;
1969
+ division?: string | undefined;
1970
+ player_count?: number | undefined;
1971
+ roster_url?: string | undefined;
1972
+ }
1973
+ }
1974
+ }
1975
+
1976
+ type index$2_GetNflPlayerRequest = GetNflPlayerRequest;
1977
+ declare const index$2_GetNflPlayerResponse: typeof GetNflPlayerResponse;
1978
+ type index$2_GetNflPlayerStatsRequest = GetNflPlayerStatsRequest;
1979
+ declare const index$2_GetNflPlayerStatsResponse: typeof GetNflPlayerStatsResponse;
1980
+ type index$2_GetNflStandingsRequest = GetNflStandingsRequest;
1981
+ type index$2_GetNflStandingsRequestConference = GetNflStandingsRequestConference;
1982
+ declare const index$2_GetNflStandingsResponse: typeof GetNflStandingsResponse;
1983
+ type index$2_GetNflTeamRosterRequest = GetNflTeamRosterRequest;
1984
+ type index$2_GetNflTeamRosterRequestPosition = GetNflTeamRosterRequestPosition;
1985
+ declare const index$2_GetNflTeamRosterResponse: typeof GetNflTeamRosterResponse;
1986
+ type index$2_ListNflGamesRequest = ListNflGamesRequest;
1987
+ type index$2_ListNflGamesRequestStatus = ListNflGamesRequestStatus;
1988
+ declare const index$2_ListNflGamesResponse: typeof ListNflGamesResponse;
1989
+ type index$2_ListNflPlayersRequest = ListNflPlayersRequest;
1990
+ type index$2_ListNflPlayersRequestPosition = ListNflPlayersRequestPosition;
1991
+ declare const index$2_ListNflPlayersResponse: typeof ListNflPlayersResponse;
1992
+ type index$2_ListNflTeamsRequest = ListNflTeamsRequest;
1993
+ type index$2_ListNflTeamsRequestConference = ListNflTeamsRequestConference;
1994
+ declare const index$2_ListNflTeamsResponse: typeof ListNflTeamsResponse;
1995
+ declare namespace index$2 {
1996
+ export { type index$2_GetNflPlayerRequest as GetNflPlayerRequest, index$2_GetNflPlayerResponse as GetNflPlayerResponse, type index$2_GetNflPlayerStatsRequest as GetNflPlayerStatsRequest, index$2_GetNflPlayerStatsResponse as GetNflPlayerStatsResponse, type index$2_GetNflStandingsRequest as GetNflStandingsRequest, type index$2_GetNflStandingsRequestConference as GetNflStandingsRequestConference, index$2_GetNflStandingsResponse as GetNflStandingsResponse, type index$2_GetNflTeamRosterRequest as GetNflTeamRosterRequest, type index$2_GetNflTeamRosterRequestPosition as GetNflTeamRosterRequestPosition, index$2_GetNflTeamRosterResponse as GetNflTeamRosterResponse, type index$2_ListNflGamesRequest as ListNflGamesRequest, type index$2_ListNflGamesRequestStatus as ListNflGamesRequestStatus, index$2_ListNflGamesResponse as ListNflGamesResponse, type index$2_ListNflPlayersRequest as ListNflPlayersRequest, type index$2_ListNflPlayersRequestPosition as ListNflPlayersRequestPosition, index$2_ListNflPlayersResponse as ListNflPlayersResponse, type index$2_ListNflTeamsRequest as ListNflTeamsRequest, type index$2_ListNflTeamsRequestConference as ListNflTeamsRequestConference, index$2_ListNflTeamsResponse as ListNflTeamsResponse };
1997
+ }
1998
+
1999
+ /**
2000
+ * @example
2001
+ * {}
2002
+ */
2003
+ interface GetSoccerStandingsRequest {
2004
+ /** League (epl or mls; omit for both) */
2005
+ league?: GetSoccerStandingsRequestLeague;
2006
+ /** Season year (defaults to current) */
2007
+ season?: number;
2008
+ }
2009
+
2010
+ /**
2011
+ * @example
2012
+ * {
2013
+ * date: "2026-05-01"
2014
+ * }
2015
+ */
2016
+ interface ListSoccerGamesRequest {
2017
+ /** League filter (omit for both leagues) */
2018
+ league?: ListSoccerGamesRequestLeague;
2019
+ /** Match date (YYYY-MM-DD, defaults to today) */
2020
+ date?: string;
2021
+ /** Game state filter (matches the live state column exactly) */
2022
+ state?: ListSoccerGamesRequestState;
2023
+ /** Max matches (default 30, max 100) */
2024
+ limit?: number;
2025
+ }
2026
+
2027
+ declare const GetSoccerStandingsRequestLeague: {
2028
+ readonly Epl: "epl";
2029
+ readonly Mls: "mls";
2030
+ };
2031
+ type GetSoccerStandingsRequestLeague = (typeof GetSoccerStandingsRequestLeague)[keyof typeof GetSoccerStandingsRequestLeague];
2032
+
2033
+ interface GetSoccerStandingsResponse {
2034
+ success?: boolean | undefined;
2035
+ endpoint?: string | undefined;
2036
+ league?: string | undefined;
2037
+ season?: number | undefined;
2038
+ count?: number | undefined;
2039
+ data?: EspnStanding[] | undefined;
2040
+ meta?: ResponseMeta | undefined;
2041
+ }
2042
+
2043
+ declare const ListSoccerGamesRequestLeague: {
2044
+ readonly Epl: "epl";
2045
+ readonly Mls: "mls";
2046
+ };
2047
+ type ListSoccerGamesRequestLeague = (typeof ListSoccerGamesRequestLeague)[keyof typeof ListSoccerGamesRequestLeague];
2048
+
2049
+ declare const ListSoccerGamesRequestState: {
2050
+ readonly Scheduled: "scheduled";
2051
+ readonly InProgress: "in_progress";
2052
+ readonly Final: "final";
2053
+ };
2054
+ type ListSoccerGamesRequestState = (typeof ListSoccerGamesRequestState)[keyof typeof ListSoccerGamesRequestState];
2055
+
2056
+ interface ListSoccerGamesResponse {
2057
+ success?: boolean | undefined;
2058
+ endpoint?: string | undefined;
2059
+ count?: number | undefined;
2060
+ data?: EspnGame[] | undefined;
2061
+ meta?: ResponseMeta | undefined;
2062
+ }
2063
+
2064
+ type index$1_GetSoccerStandingsRequest = GetSoccerStandingsRequest;
2065
+ type index$1_GetSoccerStandingsRequestLeague = GetSoccerStandingsRequestLeague;
2066
+ type index$1_GetSoccerStandingsResponse = GetSoccerStandingsResponse;
2067
+ type index$1_ListSoccerGamesRequest = ListSoccerGamesRequest;
2068
+ type index$1_ListSoccerGamesRequestLeague = ListSoccerGamesRequestLeague;
2069
+ type index$1_ListSoccerGamesRequestState = ListSoccerGamesRequestState;
2070
+ type index$1_ListSoccerGamesResponse = ListSoccerGamesResponse;
2071
+ declare namespace index$1 {
2072
+ export type { index$1_GetSoccerStandingsRequest as GetSoccerStandingsRequest, index$1_GetSoccerStandingsRequestLeague as GetSoccerStandingsRequestLeague, index$1_GetSoccerStandingsResponse as GetSoccerStandingsResponse, index$1_ListSoccerGamesRequest as ListSoccerGamesRequest, index$1_ListSoccerGamesRequestLeague as ListSoccerGamesRequestLeague, index$1_ListSoccerGamesRequestState as ListSoccerGamesRequestState, index$1_ListSoccerGamesResponse as ListSoccerGamesResponse };
2073
+ }
2074
+
2075
+ interface BeatReporterSignal {
2076
+ id: number;
2077
+ player_name: string;
2078
+ /** Often an empty string — team is not always resolved at scrape time */
2079
+ team: string;
2080
+ signal_type: BeatReporterSignal.SignalType;
2081
+ severity: BeatReporterSignal.Severity;
2082
+ title: string;
2083
+ summary: string;
2084
+ source: string;
2085
+ source_url?: (string | null) | undefined;
2086
+ /** /intelligence/news only — see reported_at for /intelligence/injuries */
2087
+ published_at?: (string | null) | undefined;
2088
+ /** /intelligence/injuries only — see published_at for /intelligence/news */
2089
+ reported_at?: (string | null) | undefined;
2090
+ }
2091
+ declare namespace BeatReporterSignal {
2092
+ const SignalType: {
2093
+ readonly InjuryUpdate: "injury_update";
2094
+ readonly DepthChartChange: "depth_chart_change";
2095
+ readonly ReturnFromInjury: "return_from_injury";
2096
+ readonly RoleReduction: "role_reduction";
2097
+ readonly RoleExpansion: "role_expansion";
2098
+ readonly PracticeReport: "practice_report";
2099
+ };
2100
+ type SignalType = (typeof SignalType)[keyof typeof SignalType];
2101
+ const Severity: {
2102
+ readonly High: "high";
2103
+ readonly Medium: "medium";
2104
+ readonly Low: "low";
2105
+ };
2106
+ type Severity = (typeof Severity)[keyof typeof Severity];
2107
+ }
2108
+
2109
+ interface CfbRanking {
2110
+ rank?: number | undefined;
2111
+ team_id?: string | undefined;
2112
+ team_name?: string | undefined;
2113
+ team_abbr?: string | undefined;
2114
+ record?: string | undefined;
2115
+ points?: (number | null) | undefined;
2116
+ first_place_votes?: (number | null) | undefined;
2117
+ prev_rank?: (number | null) | undefined;
2118
+ week?: number | undefined;
2119
+ }
2120
+
2121
+ interface ErrorResponse {
2122
+ error_code: string;
2123
+ message: string;
2124
+ documentation_url: string;
2125
+ upgrade_url?: (string | null) | undefined;
2126
+ }
2127
+
2128
+ /**
2129
+ * Game state from ESPN feed (NBA, CFB, Soccer)
2130
+ */
2131
+ interface EspnGame {
2132
+ event_id?: string | undefined;
2133
+ /** Soccer only (epl/mls) — distinguishes league within the sport */
2134
+ league?: (string | null) | undefined;
2135
+ game_date?: string | undefined;
2136
+ game_time?: string | undefined;
2137
+ /** Real values from espn_game_states — not the previously-documented pre/in/post */
2138
+ state?: EspnGame.State | undefined;
2139
+ home_team?: EspnGame.HomeTeam | undefined;
2140
+ away_team?: EspnGame.AwayTeam | undefined;
2141
+ period?: (number | null) | undefined;
2142
+ period_label?: (string | null) | undefined;
2143
+ clock?: (string | null) | undefined;
2144
+ venue?: (string | null) | undefined;
2145
+ broadcast?: (string | null) | undefined;
2146
+ is_final?: boolean | undefined;
2147
+ last_polled?: string | undefined;
2148
+ }
2149
+ declare namespace EspnGame {
2150
+ /** Real values from espn_game_states — not the previously-documented pre/in/post */
2151
+ const State: {
2152
+ readonly Scheduled: "scheduled";
2153
+ readonly InProgress: "in_progress";
2154
+ readonly Final: "final";
2155
+ };
2156
+ type State = (typeof State)[keyof typeof State];
2157
+ interface HomeTeam {
2158
+ id?: string | undefined;
2159
+ name?: string | undefined;
2160
+ abbr?: string | undefined;
2161
+ logo?: string | undefined;
2162
+ score?: (number | null) | undefined;
2163
+ }
2164
+ interface AwayTeam {
2165
+ id?: string | undefined;
2166
+ name?: string | undefined;
2167
+ abbr?: string | undefined;
2168
+ logo?: string | undefined;
2169
+ score?: (number | null) | undefined;
2170
+ }
2171
+ }
2172
+
2173
+ interface EspnStanding {
2174
+ rank?: number | undefined;
2175
+ /** Soccer only (epl/mls) */
2176
+ league?: (string | null) | undefined;
2177
+ /** Soccer only — NBA/CFB have no tie record */
2178
+ ties?: (number | null) | undefined;
2179
+ team_id?: string | undefined;
2180
+ team_name?: string | undefined;
2181
+ team_abbr?: string | undefined;
2182
+ team_logo?: (string | null) | undefined;
2183
+ conference?: (string | null) | undefined;
2184
+ division?: (string | null) | undefined;
2185
+ wins?: number | undefined;
2186
+ losses?: number | undefined;
2187
+ win_pct?: number | undefined;
2188
+ games_back?: (string | null) | undefined;
2189
+ streak?: (string | null) | undefined;
2190
+ home_record?: (string | null) | undefined;
2191
+ away_record?: (string | null) | undefined;
2192
+ conf_record?: (string | null) | undefined;
2193
+ points_for?: (number | null) | undefined;
2194
+ points_against?: (number | null) | undefined;
2195
+ last_updated?: (string | null) | undefined;
2196
+ }
2197
+
2198
+ interface HistoricalGameRecord {
2199
+ id?: number | undefined;
2200
+ season?: number | undefined;
2201
+ /** NFL/NBA only — null for MLB (daily games, no week concept) */
2202
+ week?: (number | null) | undefined;
2203
+ /** Real date for MLB (daily_player_stats.stat_date); always null for NFL, which has no per-game date column */
2204
+ game_date?: (string | null) | undefined;
2205
+ sport_key?: string | undefined;
2206
+ player_name?: string | undefined;
2207
+ team?: string | undefined;
2208
+ position?: string | undefined;
2209
+ opponent?: (string | null) | undefined;
2210
+ /** Numeric value returned as a string */
2211
+ fantasy_points?: string | undefined;
2212
+ passing_yards?: (number | null) | undefined;
2213
+ passing_tds?: (number | null) | undefined;
2214
+ rushing_yards?: (number | null) | undefined;
2215
+ rushing_tds?: (number | null) | undefined;
2216
+ receiving_yards?: (number | null) | undefined;
2217
+ receiving_tds?: (number | null) | undefined;
2218
+ receptions?: (number | null) | undefined;
2219
+ snap_pct?: (number | null) | undefined;
2220
+ target_share?: (number | null) | undefined;
2221
+ air_yards?: (number | null) | undefined;
2222
+ /** MLB only */
2223
+ batting_h?: (number | null) | undefined;
2224
+ batting_r?: (number | null) | undefined;
2225
+ batting_hr?: (number | null) | undefined;
2226
+ batting_rbi?: (number | null) | undefined;
2227
+ batting_sb?: (number | null) | undefined;
2228
+ batting_bb?: (number | null) | undefined;
2229
+ batting_ab?: (number | null) | undefined;
2230
+ pitching_ip?: (number | null) | undefined;
2231
+ pitching_w?: (number | null) | undefined;
2232
+ pitching_k?: (number | null) | undefined;
2233
+ pitching_sv?: (number | null) | undefined;
2234
+ pitching_hld?: (number | null) | undefined;
2235
+ pitching_er?: (number | null) | undefined;
2236
+ }
2237
+
2238
+ interface HistoricalTrend {
2239
+ player_name?: string | undefined;
2240
+ team?: string | undefined;
2241
+ position?: string | undefined;
2242
+ sport?: string | undefined;
2243
+ games_in_sample?: number | undefined;
2244
+ avg_fantasy_points?: number | undefined;
2245
+ recent_game?: HistoricalGameRecord | undefined;
2246
+ all_games?: HistoricalGameRecord[] | undefined;
2247
+ }
2248
+
2249
+ interface McpTool {
2250
+ name: string;
2251
+ description: string;
2252
+ /** JSON Schema for tool arguments */
2253
+ inputSchema: McpTool.InputSchema;
2254
+ }
2255
+ declare namespace McpTool {
2256
+ /**
2257
+ * JSON Schema for tool arguments
2258
+ */
2259
+ interface InputSchema {
2260
+ type?: string | undefined;
2261
+ properties?: Record<string, unknown> | undefined;
2262
+ required?: string[] | undefined;
2263
+ }
2264
+ }
2265
+
2266
+ interface MlbGame {
2267
+ /** MLB Stats API game ID — returned as a string, not numeric */
2268
+ game_pk?: string | undefined;
2269
+ game_date?: string | undefined;
2270
+ game_time?: (string | null) | undefined;
2271
+ /** Real values from mlb_game_states — not the previously-documented live/final/preview enum */
2272
+ state?: MlbGame.State | undefined;
2273
+ home_team?: MlbGame.HomeTeam | undefined;
2274
+ away_team?: MlbGame.AwayTeam | undefined;
2275
+ inning?: (number | null) | undefined;
2276
+ inning_state?: (string | null) | undefined;
2277
+ lineup_posted?: boolean | undefined;
2278
+ is_final?: boolean | undefined;
2279
+ status_code?: string | undefined;
2280
+ last_polled?: string | undefined;
2281
+ }
2282
+ declare namespace MlbGame {
2283
+ /** Real values from mlb_game_states — not the previously-documented live/final/preview enum */
2284
+ const State: {
2285
+ readonly PreGame: "pre_game";
2286
+ readonly Scheduled: "scheduled";
2287
+ readonly InProgress: "in_progress";
2288
+ readonly Final: "final";
2289
+ readonly Completed: "completed";
2290
+ readonly Postponed: "postponed";
2291
+ };
2292
+ type State = (typeof State)[keyof typeof State];
2293
+ interface HomeTeam {
2294
+ id?: number | undefined;
2295
+ name?: string | undefined;
2296
+ score?: (number | null) | undefined;
2297
+ }
2298
+ interface AwayTeam {
2299
+ id?: number | undefined;
2300
+ name?: string | undefined;
2301
+ score?: (number | null) | undefined;
2302
+ }
2303
+ }
2304
+
2305
+ interface MlbPlayer {
2306
+ /** PlayCaller MLB player ID */
2307
+ id: string;
2308
+ full_name: string;
2309
+ first_name?: string | undefined;
2310
+ last_name?: string | undefined;
2311
+ position: MlbPlayer.Position;
2312
+ team: string;
2313
+ status: MlbPlayer.Status;
2314
+ }
2315
+ declare namespace MlbPlayer {
2316
+ const Position: {
2317
+ readonly Sp: "SP";
2318
+ readonly Rp: "RP";
2319
+ readonly C: "C";
2320
+ readonly OneB: "1B";
2321
+ readonly TwoB: "2B";
2322
+ readonly ThreeB: "3B";
2323
+ readonly Ss: "SS";
2324
+ readonly Of: "OF";
2325
+ readonly Dh: "DH";
2326
+ };
2327
+ type Position = (typeof Position)[keyof typeof Position];
2328
+ const Status: {
2329
+ readonly Active: "active";
2330
+ readonly Injured: "injured";
2331
+ readonly Inactive: "inactive";
2332
+ };
2333
+ type Status = (typeof Status)[keyof typeof Status];
2334
+ }
2335
+
2336
+ interface MlbPlayerStats {
2337
+ /** Leaders endpoint only */
2338
+ rank?: (number | null) | undefined;
2339
+ /** Leaders endpoint only */
2340
+ id?: (string | null) | undefined;
2341
+ /** Leaders endpoint only */
2342
+ player_name?: (string | null) | undefined;
2343
+ team?: string | undefined;
2344
+ position?: string | undefined;
2345
+ stat_date?: string | undefined;
2346
+ /** Player-stats endpoint only */
2347
+ game_pk?: (string | null) | undefined;
2348
+ /** Numeric value returned as a string */
2349
+ fantasy_points?: string | undefined;
2350
+ is_final?: boolean | undefined;
2351
+ /** Player-stats endpoint only */
2352
+ is_starter?: (boolean | null) | undefined;
2353
+ /** Player-stats endpoint only */
2354
+ last_updated?: (string | null) | undefined;
2355
+ batting?: MlbPlayerStats.Batting | undefined;
2356
+ pitching?: (MlbPlayerStats.Pitching | null) | undefined;
2357
+ }
2358
+ declare namespace MlbPlayerStats {
2359
+ interface Batting {
2360
+ /** Hits */
2361
+ h?: number | undefined;
2362
+ /** Runs Scored */
2363
+ r?: number | undefined;
2364
+ /** Home Runs */
2365
+ hr?: number | undefined;
2366
+ /** RBI */
2367
+ rbi?: number | undefined;
2368
+ /** Stolen Bases */
2369
+ sb?: number | undefined;
2370
+ /** Walks */
2371
+ bb?: number | undefined;
2372
+ /** At Bats — player-stats endpoint only */
2373
+ ab?: (number | null) | undefined;
2374
+ /** Plate Appearances — player-stats endpoint only */
2375
+ pa?: (number | null) | undefined;
2376
+ }
2377
+ interface Pitching {
2378
+ /** Innings Pitched, returned as a string (e.g. "6.2") */
2379
+ ip?: string | undefined;
2380
+ /** Wins */
2381
+ w?: number | undefined;
2382
+ /** Strikeouts */
2383
+ k?: number | undefined;
2384
+ /** Saves */
2385
+ sv?: number | undefined;
2386
+ /** Holds */
2387
+ hld?: number | undefined;
2388
+ /** Earned Runs */
2389
+ er?: number | undefined;
2390
+ }
2391
+ }
2392
+
2393
+ interface PlayerIdentity {
2394
+ /** Canonical PlayCaller player ID — stable across all platforms */
2395
+ playcaller_id: string;
2396
+ full_name: string;
2397
+ position: string;
2398
+ team: string;
2399
+ sport_key: PlayerIdentity.SportKey;
2400
+ status?: PlayerIdentity.Status | undefined;
2401
+ /** Platform-specific IDs for this player. Keys are platform names; values are IDs used by that platform. */
2402
+ platform_ids?: Record<string, string> | undefined;
2403
+ }
2404
+ declare namespace PlayerIdentity {
2405
+ const SportKey: {
2406
+ readonly Nfl: "nfl";
2407
+ readonly Mlb: "mlb";
2408
+ readonly Nba: "nba";
2409
+ };
2410
+ type SportKey = (typeof SportKey)[keyof typeof SportKey];
2411
+ const Status: {
2412
+ readonly Active: "active";
2413
+ readonly Injured: "injured";
2414
+ readonly Inactive: "inactive";
2415
+ };
2416
+ type Status = (typeof Status)[keyof typeof Status];
2417
+ }
2418
+
2419
+ interface PublicStats {
2420
+ /** Registered users with at least one login this month */
2421
+ active_users?: number | undefined;
2422
+ /** Beat reporter signals currently active across all sports */
2423
+ active_signals?: number | undefined;
2424
+ /** Total canonical player identities in the database */
2425
+ players_tracked?: number | undefined;
2426
+ /** Number of sports with live data pipelines */
2427
+ sports_covered?: number | undefined;
2428
+ /** External platforms with cross-platform player ID mappings */
2429
+ platforms?: number | undefined;
2430
+ }
2431
+
2432
+ interface ResponseMeta {
2433
+ sport?: string | undefined;
2434
+ /** Present on multi-sport (ESPN-backed) endpoints; mirrors sport unless a sport has sub-leagues (e.g. soccer: epl/mls). */
2435
+ league?: string | undefined;
2436
+ tier?: string | undefined;
2437
+ calls_remaining_this_month?: number | undefined;
2438
+ documentation_url?: string | undefined;
2439
+ }
2440
+
2441
+ interface UsageStats {
2442
+ success?: boolean | undefined;
2443
+ key_prefix?: string | undefined;
2444
+ tier?: UsageStats.Tier | undefined;
2445
+ /** Reference limits for every legacy tier (V2 tiers are not monthly-metered, so they are not listed here — see GET /v1/sports or the pricing table for sandbox/build/pro_insights/syndicate_alpha caps) */
2446
+ tier_limits?: Record<string, UsageStats.TierLimits.Value> | undefined;
2447
+ is_trial?: boolean | undefined;
2448
+ trial_starts_at?: (string | null) | undefined;
2449
+ trial_ends_at?: (string | null) | undefined;
2450
+ /** Days left in trial (null if not in trial) */
2451
+ trial_days_remaining?: (number | null) | undefined;
2452
+ requests_today?: number | undefined;
2453
+ daily_limit?: (number | null) | undefined;
2454
+ daily_remaining?: (number | null) | undefined;
2455
+ calls_this_period?: number | undefined;
2456
+ calls_this_month?: number | undefined;
2457
+ calls_limit_month?: number | undefined;
2458
+ calls_remaining?: number | undefined;
2459
+ rate_limit_per_min?: number | undefined;
2460
+ rate_limit_remaining?: number | undefined;
2461
+ /** When monthly quota resets (legacy tiers only — null for V2 tiers, which are not monthly-metered) */
2462
+ reset_at?: (string | null) | undefined;
2463
+ upgrade_url?: (string | null) | undefined;
2464
+ /** Per-endpoint call counts for the trailing 30 days — an array of rows, not a map (returned empty for RapidAPI-proxied keys, which have no DB usage row) */
2465
+ endpoint_breakdown?: UsageStats.EndpointBreakdown.Item[] | undefined;
2466
+ }
2467
+ declare namespace UsageStats {
2468
+ const Tier: {
2469
+ readonly Sandbox: "sandbox";
2470
+ readonly Hobbyist: "hobbyist";
2471
+ readonly Build: "build";
2472
+ readonly Pro: "pro";
2473
+ readonly ProInsights: "pro_insights";
2474
+ readonly Enterprise: "enterprise";
2475
+ readonly SyndicateAlpha: "syndicate_alpha";
2476
+ };
2477
+ type Tier = (typeof Tier)[keyof typeof Tier];
2478
+ namespace TierLimits {
2479
+ interface Value {
2480
+ requests_per_minute?: number | undefined;
2481
+ daily_calls?: (number | null) | undefined;
2482
+ monthly_calls?: (number | null) | undefined;
2483
+ }
2484
+ }
2485
+ type EndpointBreakdown = EndpointBreakdown.Item[];
2486
+ namespace EndpointBreakdown {
2487
+ interface Item {
2488
+ endpoint?: string | undefined;
2489
+ calls?: number | undefined;
2490
+ avg_ms?: number | undefined;
2491
+ last_call?: string | undefined;
2492
+ }
2493
+ }
2494
+ }
2495
+
2496
+ type index_BadRequestError = BadRequestError;
2497
+ declare const index_BadRequestError: typeof BadRequestError;
2498
+ declare const index_BeatReporterSignal: typeof BeatReporterSignal;
2499
+ type index_CfbRanking = CfbRanking;
2500
+ type index_ConflictError = ConflictError;
2501
+ declare const index_ConflictError: typeof ConflictError;
2502
+ type index_ErrorResponse = ErrorResponse;
2503
+ declare const index_EspnGame: typeof EspnGame;
2504
+ type index_EspnStanding = EspnStanding;
2505
+ type index_ForbiddenError = ForbiddenError;
2506
+ declare const index_ForbiddenError: typeof ForbiddenError;
2507
+ type index_GetAnalyticsTrendsRequest = GetAnalyticsTrendsRequest;
2508
+ type index_GetAnalyticsTrendsRequestSport = GetAnalyticsTrendsRequestSport;
2509
+ type index_GetAnalyticsTrendsResponse = GetAnalyticsTrendsResponse;
2510
+ type index_GetCfbRankingsRequest = GetCfbRankingsRequest;
2511
+ type index_GetCfbRankingsResponse = GetCfbRankingsResponse;
2512
+ type index_GetCfbStandingsRequest = GetCfbStandingsRequest;
2513
+ type index_GetCfbStandingsResponse = GetCfbStandingsResponse;
2514
+ type index_GetDaaSKeyInfoRequest = GetDaaSKeyInfoRequest;
2515
+ declare const index_GetDaaSKeyInfoResponse: typeof GetDaaSKeyInfoResponse;
2516
+ type index_GetGamesHistoryRequest = GetGamesHistoryRequest;
2517
+ type index_GetGamesHistoryRequestSport = GetGamesHistoryRequestSport;
2518
+ type index_GetGamesHistoryResponse = GetGamesHistoryResponse;
2519
+ type index_GetIntelligenceInjuriesRequest = GetIntelligenceInjuriesRequest;
2520
+ type index_GetIntelligenceInjuriesRequestSeverity = GetIntelligenceInjuriesRequestSeverity;
2521
+ type index_GetIntelligenceInjuriesRequestSport = GetIntelligenceInjuriesRequestSport;
2522
+ type index_GetIntelligenceInjuriesResponse = GetIntelligenceInjuriesResponse;
2523
+ type index_GetIntelligenceNewsRequest = GetIntelligenceNewsRequest;
2524
+ type index_GetIntelligenceNewsRequestSeverity = GetIntelligenceNewsRequestSeverity;
2525
+ type index_GetIntelligenceNewsRequestSignalType = GetIntelligenceNewsRequestSignalType;
2526
+ type index_GetIntelligenceNewsRequestSport = GetIntelligenceNewsRequestSport;
2527
+ type index_GetIntelligenceNewsResponse = GetIntelligenceNewsResponse;
2528
+ type index_GetMcpInfoResponse = GetMcpInfoResponse;
2529
+ type index_GetMlbPlayerRequest = GetMlbPlayerRequest;
2530
+ type index_GetMlbPlayerResponse = GetMlbPlayerResponse;
2531
+ type index_GetMlbPlayerStatsRequest = GetMlbPlayerStatsRequest;
2532
+ declare const index_GetMlbPlayerStatsResponse: typeof GetMlbPlayerStatsResponse;
2533
+ type index_GetMlbScoringCategoriesRequest = GetMlbScoringCategoriesRequest;
2534
+ declare const index_GetMlbScoringCategoriesResponse: typeof GetMlbScoringCategoriesResponse;
2535
+ type index_GetMlbScoringLeadersRequest = GetMlbScoringLeadersRequest;
2536
+ type index_GetMlbScoringLeadersRequestPosition = GetMlbScoringLeadersRequestPosition;
2537
+ type index_GetMlbScoringLeadersResponse = GetMlbScoringLeadersResponse;
2538
+ type index_GetMlbStandingsRequest = GetMlbStandingsRequest;
2539
+ type index_GetMlbStandingsResponse = GetMlbStandingsResponse;
2540
+ type index_GetMlbTeamRosterRequest = GetMlbTeamRosterRequest;
2541
+ type index_GetMlbTeamRosterRequestPosition = GetMlbTeamRosterRequestPosition;
2542
+ type index_GetMlbTeamRosterResponse = GetMlbTeamRosterResponse;
2543
+ type index_GetNbaConfidenceRequest = GetNbaConfidenceRequest;
2544
+ declare const index_GetNbaConfidenceResponse: typeof GetNbaConfidenceResponse;
2545
+ type index_GetNbaPlayerRequest = GetNbaPlayerRequest;
2546
+ declare const index_GetNbaPlayerResponse: typeof GetNbaPlayerResponse;
2547
+ type index_GetNbaPlayerStatsRequest = GetNbaPlayerStatsRequest;
2548
+ declare const index_GetNbaPlayerStatsResponse: typeof GetNbaPlayerStatsResponse;
2549
+ type index_GetNbaStandingsRequest = GetNbaStandingsRequest;
2550
+ type index_GetNbaStandingsRequestConference = GetNbaStandingsRequestConference;
2551
+ type index_GetNbaStandingsResponse = GetNbaStandingsResponse;
2552
+ type index_GetNbaTeamRosterRequest = GetNbaTeamRosterRequest;
2553
+ type index_GetNbaTeamRosterRequestPosition = GetNbaTeamRosterRequestPosition;
2554
+ declare const index_GetNbaTeamRosterResponse: typeof GetNbaTeamRosterResponse;
2555
+ type index_GetNflPlayerRequest = GetNflPlayerRequest;
2556
+ declare const index_GetNflPlayerResponse: typeof GetNflPlayerResponse;
2557
+ type index_GetNflPlayerStatsRequest = GetNflPlayerStatsRequest;
2558
+ declare const index_GetNflPlayerStatsResponse: typeof GetNflPlayerStatsResponse;
2559
+ type index_GetNflStandingsRequest = GetNflStandingsRequest;
2560
+ type index_GetNflStandingsRequestConference = GetNflStandingsRequestConference;
2561
+ declare const index_GetNflStandingsResponse: typeof GetNflStandingsResponse;
2562
+ type index_GetNflTeamRosterRequest = GetNflTeamRosterRequest;
2563
+ type index_GetNflTeamRosterRequestPosition = GetNflTeamRosterRequestPosition;
2564
+ declare const index_GetNflTeamRosterResponse: typeof GetNflTeamRosterResponse;
2565
+ type index_GetSoccerStandingsRequest = GetSoccerStandingsRequest;
2566
+ type index_GetSoccerStandingsRequestLeague = GetSoccerStandingsRequestLeague;
2567
+ type index_GetSoccerStandingsResponse = GetSoccerStandingsResponse;
2568
+ type index_GetTrendingRequest = GetTrendingRequest;
2569
+ type index_GetTrendingRequestSport = GetTrendingRequestSport;
2570
+ declare const index_GetTrendingResponse: typeof GetTrendingResponse;
2571
+ type index_GetWaiverArticlesRequest = GetWaiverArticlesRequest;
2572
+ type index_GetWaiverArticlesRequestSport = GetWaiverArticlesRequestSport;
2573
+ declare const index_GetWaiverArticlesResponse: typeof GetWaiverArticlesResponse;
2574
+ type index_HistoricalGameRecord = HistoricalGameRecord;
2575
+ type index_HistoricalTrend = HistoricalTrend;
2576
+ type index_InternalServerError = InternalServerError;
2577
+ declare const index_InternalServerError: typeof InternalServerError;
2578
+ declare const index_InvokeMcpToolRequest: typeof InvokeMcpToolRequest;
2579
+ declare const index_InvokeMcpToolResponse: typeof InvokeMcpToolResponse;
2580
+ type index_ListCfbGamesRequest = ListCfbGamesRequest;
2581
+ type index_ListCfbGamesRequestState = ListCfbGamesRequestState;
2582
+ type index_ListCfbGamesResponse = ListCfbGamesResponse;
2583
+ type index_ListMlbGamesRequest = ListMlbGamesRequest;
2584
+ type index_ListMlbGamesRequestState = ListMlbGamesRequestState;
2585
+ type index_ListMlbGamesResponse = ListMlbGamesResponse;
2586
+ type index_ListMlbPlayersRequest = ListMlbPlayersRequest;
2587
+ type index_ListMlbPlayersRequestPosition = ListMlbPlayersRequestPosition;
2588
+ type index_ListMlbPlayersRequestStatus = ListMlbPlayersRequestStatus;
2589
+ type index_ListMlbPlayersResponse = ListMlbPlayersResponse;
2590
+ declare const index_ListMlbTeamsResponse: typeof ListMlbTeamsResponse;
2591
+ type index_ListNbaGamesRequest = ListNbaGamesRequest;
2592
+ type index_ListNbaGamesRequestState = ListNbaGamesRequestState;
2593
+ type index_ListNbaGamesResponse = ListNbaGamesResponse;
2594
+ type index_ListNbaPlayersRequest = ListNbaPlayersRequest;
2595
+ type index_ListNbaPlayersRequestPosition = ListNbaPlayersRequestPosition;
2596
+ declare const index_ListNbaPlayersResponse: typeof ListNbaPlayersResponse;
2597
+ type index_ListNbaTeamsRequest = ListNbaTeamsRequest;
2598
+ type index_ListNbaTeamsRequestConference = ListNbaTeamsRequestConference;
2599
+ declare const index_ListNbaTeamsResponse: typeof ListNbaTeamsResponse;
2600
+ type index_ListNflGamesRequest = ListNflGamesRequest;
2601
+ type index_ListNflGamesRequestStatus = ListNflGamesRequestStatus;
2602
+ declare const index_ListNflGamesResponse: typeof ListNflGamesResponse;
2603
+ type index_ListNflPlayersRequest = ListNflPlayersRequest;
2604
+ type index_ListNflPlayersRequestPosition = ListNflPlayersRequestPosition;
2605
+ declare const index_ListNflPlayersResponse: typeof ListNflPlayersResponse;
2606
+ type index_ListNflTeamsRequest = ListNflTeamsRequest;
2607
+ type index_ListNflTeamsRequestConference = ListNflTeamsRequestConference;
2608
+ declare const index_ListNflTeamsResponse: typeof ListNflTeamsResponse;
2609
+ type index_ListSoccerGamesRequest = ListSoccerGamesRequest;
2610
+ type index_ListSoccerGamesRequestLeague = ListSoccerGamesRequestLeague;
2611
+ type index_ListSoccerGamesRequestState = ListSoccerGamesRequestState;
2612
+ type index_ListSoccerGamesResponse = ListSoccerGamesResponse;
2613
+ declare const index_ListSportsResponse: typeof ListSportsResponse;
2614
+ declare const index_McpTool: typeof McpTool;
2615
+ declare const index_MlbGame: typeof MlbGame;
2616
+ declare const index_MlbPlayer: typeof MlbPlayer;
2617
+ declare const index_MlbPlayerStats: typeof MlbPlayerStats;
2618
+ type index_NotFoundError = NotFoundError;
2619
+ declare const index_NotFoundError: typeof NotFoundError;
2620
+ declare const index_PlayerIdentity: typeof PlayerIdentity;
2621
+ type index_PublicStats = PublicStats;
2622
+ type index_RegisterDaaSKeyRequest = RegisterDaaSKeyRequest;
2623
+ type index_RegisterDaaSKeyResponse = RegisterDaaSKeyResponse;
2624
+ type index_ResponseMeta = ResponseMeta;
2625
+ type index_SearchPlayersRequest = SearchPlayersRequest;
2626
+ type index_SearchPlayersRequestSport = SearchPlayersRequestSport;
2627
+ type index_SearchPlayersResponse = SearchPlayersResponse;
2628
+ type index_StartDaaSTrialRequest = StartDaaSTrialRequest;
2629
+ type index_StartDaaSTrialResponse = StartDaaSTrialResponse;
2630
+ type index_TooManyRequestsError = TooManyRequestsError;
2631
+ declare const index_TooManyRequestsError: typeof TooManyRequestsError;
2632
+ type index_UnauthorizedError = UnauthorizedError;
2633
+ declare const index_UnauthorizedError: typeof UnauthorizedError;
2634
+ declare const index_UsageStats: typeof UsageStats;
2635
+ declare namespace index {
2636
+ export { index_BadRequestError as BadRequestError, index_BeatReporterSignal as BeatReporterSignal, type index_CfbRanking as CfbRanking, index_ConflictError as ConflictError, type index_ErrorResponse as ErrorResponse, index_EspnGame as EspnGame, type index_EspnStanding as EspnStanding, index_ForbiddenError as ForbiddenError, type index_GetAnalyticsTrendsRequest as GetAnalyticsTrendsRequest, type index_GetAnalyticsTrendsRequestSport as GetAnalyticsTrendsRequestSport, type index_GetAnalyticsTrendsResponse as GetAnalyticsTrendsResponse, type index_GetCfbRankingsRequest as GetCfbRankingsRequest, type index_GetCfbRankingsResponse as GetCfbRankingsResponse, type index_GetCfbStandingsRequest as GetCfbStandingsRequest, type index_GetCfbStandingsResponse as GetCfbStandingsResponse, type index_GetDaaSKeyInfoRequest as GetDaaSKeyInfoRequest, index_GetDaaSKeyInfoResponse as GetDaaSKeyInfoResponse, type index_GetGamesHistoryRequest as GetGamesHistoryRequest, type index_GetGamesHistoryRequestSport as GetGamesHistoryRequestSport, type index_GetGamesHistoryResponse as GetGamesHistoryResponse, type index_GetIntelligenceInjuriesRequest as GetIntelligenceInjuriesRequest, type index_GetIntelligenceInjuriesRequestSeverity as GetIntelligenceInjuriesRequestSeverity, type index_GetIntelligenceInjuriesRequestSport as GetIntelligenceInjuriesRequestSport, type index_GetIntelligenceInjuriesResponse as GetIntelligenceInjuriesResponse, type index_GetIntelligenceNewsRequest as GetIntelligenceNewsRequest, type index_GetIntelligenceNewsRequestSeverity as GetIntelligenceNewsRequestSeverity, type index_GetIntelligenceNewsRequestSignalType as GetIntelligenceNewsRequestSignalType, type index_GetIntelligenceNewsRequestSport as GetIntelligenceNewsRequestSport, type index_GetIntelligenceNewsResponse as GetIntelligenceNewsResponse, type index_GetMcpInfoResponse as GetMcpInfoResponse, type index_GetMlbPlayerRequest as GetMlbPlayerRequest, type index_GetMlbPlayerResponse as GetMlbPlayerResponse, type index_GetMlbPlayerStatsRequest as GetMlbPlayerStatsRequest, index_GetMlbPlayerStatsResponse as GetMlbPlayerStatsResponse, type index_GetMlbScoringCategoriesRequest as GetMlbScoringCategoriesRequest, index_GetMlbScoringCategoriesResponse as GetMlbScoringCategoriesResponse, type index_GetMlbScoringLeadersRequest as GetMlbScoringLeadersRequest, type index_GetMlbScoringLeadersRequestPosition as GetMlbScoringLeadersRequestPosition, type index_GetMlbScoringLeadersResponse as GetMlbScoringLeadersResponse, type index_GetMlbStandingsRequest as GetMlbStandingsRequest, type index_GetMlbStandingsResponse as GetMlbStandingsResponse, type index_GetMlbTeamRosterRequest as GetMlbTeamRosterRequest, type index_GetMlbTeamRosterRequestPosition as GetMlbTeamRosterRequestPosition, type index_GetMlbTeamRosterResponse as GetMlbTeamRosterResponse, type index_GetNbaConfidenceRequest as GetNbaConfidenceRequest, index_GetNbaConfidenceResponse as GetNbaConfidenceResponse, type index_GetNbaPlayerRequest as GetNbaPlayerRequest, index_GetNbaPlayerResponse as GetNbaPlayerResponse, type index_GetNbaPlayerStatsRequest as GetNbaPlayerStatsRequest, index_GetNbaPlayerStatsResponse as GetNbaPlayerStatsResponse, type index_GetNbaStandingsRequest as GetNbaStandingsRequest, type index_GetNbaStandingsRequestConference as GetNbaStandingsRequestConference, type index_GetNbaStandingsResponse as GetNbaStandingsResponse, type index_GetNbaTeamRosterRequest as GetNbaTeamRosterRequest, type index_GetNbaTeamRosterRequestPosition as GetNbaTeamRosterRequestPosition, index_GetNbaTeamRosterResponse as GetNbaTeamRosterResponse, type index_GetNflPlayerRequest as GetNflPlayerRequest, index_GetNflPlayerResponse as GetNflPlayerResponse, type index_GetNflPlayerStatsRequest as GetNflPlayerStatsRequest, index_GetNflPlayerStatsResponse as GetNflPlayerStatsResponse, type index_GetNflStandingsRequest as GetNflStandingsRequest, type index_GetNflStandingsRequestConference as GetNflStandingsRequestConference, index_GetNflStandingsResponse as GetNflStandingsResponse, type index_GetNflTeamRosterRequest as GetNflTeamRosterRequest, type index_GetNflTeamRosterRequestPosition as GetNflTeamRosterRequestPosition, index_GetNflTeamRosterResponse as GetNflTeamRosterResponse, type index_GetSoccerStandingsRequest as GetSoccerStandingsRequest, type index_GetSoccerStandingsRequestLeague as GetSoccerStandingsRequestLeague, type index_GetSoccerStandingsResponse as GetSoccerStandingsResponse, type index_GetTrendingRequest as GetTrendingRequest, type index_GetTrendingRequestSport as GetTrendingRequestSport, index_GetTrendingResponse as GetTrendingResponse, type index_GetWaiverArticlesRequest as GetWaiverArticlesRequest, type index_GetWaiverArticlesRequestSport as GetWaiverArticlesRequestSport, index_GetWaiverArticlesResponse as GetWaiverArticlesResponse, type index_HistoricalGameRecord as HistoricalGameRecord, type index_HistoricalTrend as HistoricalTrend, index_InternalServerError as InternalServerError, index_InvokeMcpToolRequest as InvokeMcpToolRequest, index_InvokeMcpToolResponse as InvokeMcpToolResponse, type index_ListCfbGamesRequest as ListCfbGamesRequest, type index_ListCfbGamesRequestState as ListCfbGamesRequestState, type index_ListCfbGamesResponse as ListCfbGamesResponse, type index_ListMlbGamesRequest as ListMlbGamesRequest, type index_ListMlbGamesRequestState as ListMlbGamesRequestState, type index_ListMlbGamesResponse as ListMlbGamesResponse, type index_ListMlbPlayersRequest as ListMlbPlayersRequest, type index_ListMlbPlayersRequestPosition as ListMlbPlayersRequestPosition, type index_ListMlbPlayersRequestStatus as ListMlbPlayersRequestStatus, type index_ListMlbPlayersResponse as ListMlbPlayersResponse, index_ListMlbTeamsResponse as ListMlbTeamsResponse, type index_ListNbaGamesRequest as ListNbaGamesRequest, type index_ListNbaGamesRequestState as ListNbaGamesRequestState, type index_ListNbaGamesResponse as ListNbaGamesResponse, type index_ListNbaPlayersRequest as ListNbaPlayersRequest, type index_ListNbaPlayersRequestPosition as ListNbaPlayersRequestPosition, index_ListNbaPlayersResponse as ListNbaPlayersResponse, type index_ListNbaTeamsRequest as ListNbaTeamsRequest, type index_ListNbaTeamsRequestConference as ListNbaTeamsRequestConference, index_ListNbaTeamsResponse as ListNbaTeamsResponse, type index_ListNflGamesRequest as ListNflGamesRequest, type index_ListNflGamesRequestStatus as ListNflGamesRequestStatus, index_ListNflGamesResponse as ListNflGamesResponse, type index_ListNflPlayersRequest as ListNflPlayersRequest, type index_ListNflPlayersRequestPosition as ListNflPlayersRequestPosition, index_ListNflPlayersResponse as ListNflPlayersResponse, type index_ListNflTeamsRequest as ListNflTeamsRequest, type index_ListNflTeamsRequestConference as ListNflTeamsRequestConference, index_ListNflTeamsResponse as ListNflTeamsResponse, type index_ListSoccerGamesRequest as ListSoccerGamesRequest, type index_ListSoccerGamesRequestLeague as ListSoccerGamesRequestLeague, type index_ListSoccerGamesRequestState as ListSoccerGamesRequestState, type index_ListSoccerGamesResponse as ListSoccerGamesResponse, index_ListSportsResponse as ListSportsResponse, index_McpTool as McpTool, index_MlbGame as MlbGame, index_MlbPlayer as MlbPlayer, index_MlbPlayerStats as MlbPlayerStats, index_NotFoundError as NotFoundError, index_PlayerIdentity as PlayerIdentity, type index_PublicStats as PublicStats, type index_RegisterDaaSKeyRequest as RegisterDaaSKeyRequest, type index_RegisterDaaSKeyResponse as RegisterDaaSKeyResponse, type index_ResponseMeta as ResponseMeta, type index_SearchPlayersRequest as SearchPlayersRequest, type index_SearchPlayersRequestSport as SearchPlayersRequestSport, type index_SearchPlayersResponse as SearchPlayersResponse, type index_StartDaaSTrialRequest as StartDaaSTrialRequest, type index_StartDaaSTrialResponse as StartDaaSTrialResponse, index_TooManyRequestsError as TooManyRequestsError, index_UnauthorizedError as UnauthorizedError, index_UsageStats as UsageStats, index$9 as account, index$8 as cfb, index$7 as intelligence, index$6 as mcp, index$5 as mlb, index$4 as multi, index$3 as nba, index$2 as nfl, index$1 as soccer };
2637
+ }
2638
+
2639
+ declare const PARAM_KEY: "apiKey";
2640
+ declare class HeaderAuthProvider implements AuthProvider {
2641
+ private readonly options;
2642
+ constructor(options: HeaderAuthProvider.Options);
2643
+ static canCreate(options: Partial<HeaderAuthProvider.Options>): boolean;
2644
+ getAuthRequest({ endpointMetadata, }?: {
2645
+ endpointMetadata?: EndpointMetadata;
2646
+ }): Promise<AuthRequest>;
2647
+ }
2648
+ declare namespace HeaderAuthProvider {
2649
+ const AUTH_SCHEME: "ApiKeyAuth";
2650
+ const AUTH_CONFIG_ERROR_MESSAGE: string;
2651
+ type Options = AuthOptions;
2652
+ type AuthOptions = {
2653
+ [PARAM_KEY]?: Supplier<string>;
2654
+ };
2655
+ function createInstance(options: Options): AuthProvider;
2656
+ }
2657
+
2658
+ declare const PlaycallerApiEnvironment: {
2659
+ readonly Production: "https://playcallerapp.com";
2660
+ };
2661
+ type PlaycallerApiEnvironment = typeof PlaycallerApiEnvironment.Production;
2662
+
2663
+ type AuthOption = false | AuthProvider["getAuthRequest"] | AuthProvider | HeaderAuthProvider.AuthOptions;
2664
+ type BaseClientOptions = {
2665
+ environment?: Supplier<PlaycallerApiEnvironment | string>;
2666
+ /** Specify a custom URL to connect the client to. */
2667
+ baseUrl?: Supplier<string>;
2668
+ /** Additional headers to include in requests. */
2669
+ headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
2670
+ /** The default maximum time to wait for a response in seconds. */
2671
+ timeoutInSeconds?: number;
2672
+ /** The default number of times to retry the request. Defaults to 2. */
2673
+ maxRetries?: number;
2674
+ /** Provide a custom fetch implementation. Useful for platforms that don't have a built-in fetch or need a custom implementation. */
2675
+ fetch?: typeof fetch;
2676
+ /** Configure logging for the client. */
2677
+ logging?: LogConfig | Logger;
2678
+ /** Default options for SSE stream reconnection behavior. Has no effect on non-resumable endpoints. */
2679
+ stream?: {
2680
+ reconnectionEnabled?: boolean;
2681
+ maxReconnectionAttempts?: number;
2682
+ };
2683
+ /** Override auth. Pass false to disable, a function returning auth headers, an AuthProvider, or auth options. */
2684
+ auth?: AuthOption;
2685
+ } & HeaderAuthProvider.AuthOptions;
2686
+ interface BaseRequestOptions {
2687
+ /** The maximum time to wait for a response in seconds. */
2688
+ timeoutInSeconds?: number;
2689
+ /** The number of times to retry the request. Defaults to 2. */
2690
+ maxRetries?: number;
2691
+ /** A hook to abort the request. */
2692
+ abortSignal?: AbortSignal;
2693
+ /** Additional query string parameters to include in the request. */
2694
+ queryParams?: Record<string, unknown>;
2695
+ /** Additional headers to include in the request. */
2696
+ headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
2697
+ /** Options for SSE stream reconnection behavior. Has no effect on non-resumable endpoints. */
2698
+ stream?: {
2699
+ reconnectionEnabled?: boolean;
2700
+ maxReconnectionAttempts?: number;
2701
+ };
2702
+ }
2703
+ type NormalizedClientOptions<T extends BaseClientOptions = BaseClientOptions> = T & {
2704
+ logging: Logger;
2705
+ authProvider?: AuthProvider;
2706
+ };
2707
+ type NormalizedClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions> = NormalizedClientOptions<T> & {
2708
+ authProvider: AuthProvider;
2709
+ };
2710
+
2711
+ declare namespace AccountClient {
2712
+ type Options = BaseClientOptions;
2713
+ interface RequestOptions extends BaseRequestOptions {
2714
+ }
2715
+ }
2716
+ /**
2717
+ * API key management, quota monitoring, and trial activation
2718
+ */
2719
+ declare class AccountClient {
2720
+ protected readonly _options: NormalizedClientOptionsWithAuth<AccountClient.Options>;
2721
+ constructor(options?: AccountClient.Options);
2722
+ /**
2723
+ * Returns current quota consumption, rate limits, tier details, and per-endpoint call breakdown for the authenticated key. Use this to build usage dashboards or trigger pre-quota alerts in your application.
2724
+ *
2725
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
2726
+ *
2727
+ * @param {AccountClient.RequestOptions} requestOptions - Request-specific configuration.
2728
+ *
2729
+ * @throws {@link PlaycallerApi.UnauthorizedError}
2730
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
2731
+ * @throws {@link PlaycallerApi.InternalServerError}
2732
+ *
2733
+ * @example
2734
+ * await client.account.getDaaSUsage()
2735
+ */
2736
+ getDaaSUsage(requestOptions?: AccountClient.RequestOptions): HttpResponsePromise<UsageStats>;
2737
+ private __getDaaSUsage;
2738
+ /**
2739
+ * Returns tier, trial status, and creation date for the API key passed as `?key=` query parameter. Useful for building key verification flows in your own applications without exposing the full usage payload.
2740
+ *
2741
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
2742
+ *
2743
+ * @param {PlaycallerApi.GetDaaSKeyInfoRequest} request
2744
+ * @param {AccountClient.RequestOptions} requestOptions - Request-specific configuration.
2745
+ *
2746
+ * @throws {@link PlaycallerApi.UnauthorizedError}
2747
+ * @throws {@link PlaycallerApi.NotFoundError}
2748
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
2749
+ * @throws {@link PlaycallerApi.InternalServerError}
2750
+ *
2751
+ * @example
2752
+ * await client.account.getDaaSKeyInfo({
2753
+ * key: "pc_pro_abc123"
2754
+ * })
2755
+ */
2756
+ getDaaSKeyInfo(request: GetDaaSKeyInfoRequest, requestOptions?: AccountClient.RequestOptions): HttpResponsePromise<GetDaaSKeyInfoResponse>;
2757
+ private __getDaaSKeyInfo;
2758
+ /**
2759
+ * Creates a Hobbyist-tier API key for a 14-day free trial. No credit card required. Key is returned in the response and emailed to the provided address. Limit: one trial per email.
2760
+ *
2761
+ * **Auth:** No API key required
2762
+ *
2763
+ * @param {PlaycallerApi.StartDaaSTrialRequest} request
2764
+ * @param {AccountClient.RequestOptions} requestOptions - Request-specific configuration.
2765
+ *
2766
+ * @throws {@link PlaycallerApi.ConflictError}
2767
+ * @throws {@link PlaycallerApi.InternalServerError}
2768
+ *
2769
+ * @example
2770
+ * await client.account.startDaaSTrial({
2771
+ * email: "dev@example.com"
2772
+ * })
2773
+ */
2774
+ startDaaSTrial(request: StartDaaSTrialRequest, requestOptions?: AccountClient.RequestOptions): HttpResponsePromise<StartDaaSTrialResponse>;
2775
+ private __startDaaSTrial;
2776
+ /**
2777
+ * Associates an existing DaaS API key with a user account for dashboard access. Used internally by the developer dashboard onboarding flow.
2778
+ *
2779
+ * **Auth:** No API key required
2780
+ *
2781
+ * @param {PlaycallerApi.RegisterDaaSKeyRequest} request
2782
+ * @param {AccountClient.RequestOptions} requestOptions - Request-specific configuration.
2783
+ *
2784
+ * @throws {@link PlaycallerApi.UnauthorizedError}
2785
+ * @throws {@link PlaycallerApi.NotFoundError}
2786
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
2787
+ * @throws {@link PlaycallerApi.InternalServerError}
2788
+ *
2789
+ * @example
2790
+ * await client.account.registerDaaSKey({
2791
+ * email: "dev@example.com",
2792
+ * api_key: "pc_pro_abc123"
2793
+ * })
2794
+ */
2795
+ registerDaaSKey(request: RegisterDaaSKeyRequest, requestOptions?: AccountClient.RequestOptions): HttpResponsePromise<RegisterDaaSKeyResponse>;
2796
+ private __registerDaaSKey;
2797
+ }
2798
+
2799
+ declare namespace CfbClient {
2800
+ type Options = BaseClientOptions;
2801
+ interface RequestOptions extends BaseRequestOptions {
2802
+ }
2803
+ }
2804
+ /**
2805
+ * College football scoreboard, standings, and rankings (Pro only)
2806
+ */
2807
+ declare class CfbClient {
2808
+ protected readonly _options: NormalizedClientOptionsWithAuth<CfbClient.Options>;
2809
+ constructor(options?: CfbClient.Options);
2810
+ /**
2811
+ * CFB game scores and schedule from ESPN. Covers FBS games including conference championships and bowl games.
2812
+ *
2813
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
2814
+ *
2815
+ * @param {PlaycallerApi.ListCfbGamesRequest} request
2816
+ * @param {CfbClient.RequestOptions} requestOptions - Request-specific configuration.
2817
+ *
2818
+ * @throws {@link PlaycallerApi.UnauthorizedError}
2819
+ * @throws {@link PlaycallerApi.ForbiddenError}
2820
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
2821
+ * @throws {@link PlaycallerApi.InternalServerError}
2822
+ *
2823
+ * @example
2824
+ * await client.cfb.listCfbGames({
2825
+ * date: "2026-09-05"
2826
+ * })
2827
+ */
2828
+ listCfbGames(request?: ListCfbGamesRequest, requestOptions?: CfbClient.RequestOptions): HttpResponsePromise<ListCfbGamesResponse>;
2829
+ private __listCfbGames;
2830
+ /**
2831
+ * CFB standings by conference. Includes win %, conference record, and streak. Useful for playoff scenario modeling.
2832
+ *
2833
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
2834
+ *
2835
+ * @param {PlaycallerApi.GetCfbStandingsRequest} request
2836
+ * @param {CfbClient.RequestOptions} requestOptions - Request-specific configuration.
2837
+ *
2838
+ * @throws {@link PlaycallerApi.UnauthorizedError}
2839
+ * @throws {@link PlaycallerApi.ForbiddenError}
2840
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
2841
+ * @throws {@link PlaycallerApi.InternalServerError}
2842
+ *
2843
+ * @example
2844
+ * await client.cfb.getCfbStandings({
2845
+ * conference: "SEC"
2846
+ * })
2847
+ */
2848
+ getCfbStandings(request?: GetCfbStandingsRequest, requestOptions?: CfbClient.RequestOptions): HttpResponsePromise<GetCfbStandingsResponse>;
2849
+ private __getCfbStandings;
2850
+ /**
2851
+ * AP Top 25, Coaches Poll, and CFP rankings by week. Each poll returns ranked teams with first-place votes, total points, and previous rank movement.
2852
+ *
2853
+ * **Tier access:** Pro Insights, Syndicate Alpha
2854
+ *
2855
+ * @param {PlaycallerApi.GetCfbRankingsRequest} request
2856
+ * @param {CfbClient.RequestOptions} requestOptions - Request-specific configuration.
2857
+ *
2858
+ * @throws {@link PlaycallerApi.UnauthorizedError}
2859
+ * @throws {@link PlaycallerApi.ForbiddenError}
2860
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
2861
+ * @throws {@link PlaycallerApi.InternalServerError}
2862
+ *
2863
+ * @example
2864
+ * await client.cfb.getCfbRankings({
2865
+ * poll: "AP"
2866
+ * })
2867
+ */
2868
+ getCfbRankings(request?: GetCfbRankingsRequest, requestOptions?: CfbClient.RequestOptions): HttpResponsePromise<GetCfbRankingsResponse>;
2869
+ private __getCfbRankings;
2870
+ }
2871
+
2872
+ declare namespace IntelligenceClient {
2873
+ type Options = BaseClientOptions;
2874
+ interface RequestOptions extends BaseRequestOptions {
2875
+ }
2876
+ }
2877
+ /**
2878
+ * Beat reporter signals, injury feeds, and historical analytics. These routes have no /v1 prefix.
2879
+ */
2880
+ declare class IntelligenceClient {
2881
+ protected readonly _options: NormalizedClientOptionsWithAuth<IntelligenceClient.Options>;
2882
+ constructor(options?: IntelligenceClient.Options);
2883
+ /**
2884
+ * Returns real-time player signals scraped every 2 hours from ESPN NFL, MLB, and NBA injury reports and beat reporter feeds. Signals surface before they appear on mainstream aggregators.
2885
+ *
2886
+ * Includes injuries, depth chart changes, role shifts, practice participation, and return-to-practice designations across all three sports. Signal severity is calculated based on fantasy impact: a DNP for a workhorse RB is `high`; a minor hamstring note for a backup is `low`.
2887
+ *
2888
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
2889
+ *
2890
+ * @param {PlaycallerApi.GetIntelligenceNewsRequest} request
2891
+ * @param {IntelligenceClient.RequestOptions} requestOptions - Request-specific configuration.
2892
+ *
2893
+ * @throws {@link PlaycallerApi.UnauthorizedError}
2894
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
2895
+ * @throws {@link PlaycallerApi.InternalServerError}
2896
+ *
2897
+ * @example
2898
+ * await client.intelligence.getIntelligenceNews({
2899
+ * team: "SF",
2900
+ * position: "WR"
2901
+ * })
2902
+ */
2903
+ getIntelligenceNews(request?: GetIntelligenceNewsRequest, requestOptions?: IntelligenceClient.RequestOptions): HttpResponsePromise<GetIntelligenceNewsResponse>;
2904
+ private __getIntelligenceNews;
2905
+ /**
2906
+ * Filtered view of the signal feed returning only active injury designations across NFL, MLB, and NBA. Equivalent to `GET /intelligence/news?signal_type=injury` with convenience defaults tuned for DFS stack-building and lineup decisions.
2907
+ *
2908
+ * 625+ active signals are re-scraped every 2 hours. High-severity signals are available before mainstream platforms aggregate them.
2909
+ *
2910
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
2911
+ *
2912
+ * @param {PlaycallerApi.GetIntelligenceInjuriesRequest} request
2913
+ * @param {IntelligenceClient.RequestOptions} requestOptions - Request-specific configuration.
2914
+ *
2915
+ * @throws {@link PlaycallerApi.UnauthorizedError}
2916
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
2917
+ * @throws {@link PlaycallerApi.InternalServerError}
2918
+ *
2919
+ * @example
2920
+ * await client.intelligence.getIntelligenceInjuries({
2921
+ * team: "KC",
2922
+ * player: "Mahomes"
2923
+ * })
2924
+ */
2925
+ getIntelligenceInjuries(request?: GetIntelligenceInjuriesRequest, requestOptions?: IntelligenceClient.RequestOptions): HttpResponsePromise<GetIntelligenceInjuriesResponse>;
2926
+ private __getIntelligenceInjuries;
2927
+ /**
2928
+ * Game-by-game performance logs for NFL (2024 full season, 4,624 records) and MLB players. Each row represents one game: full stat line plus calculated fantasy points under PPR, half-PPR, or standard scoring.
2929
+ *
2930
+ * Use this endpoint to calculate targets-per-route, air yards share, snap consistency, and multi-week usage trends — the signals that separate week-winning waiver adds from noise.
2931
+ *
2932
+ * **Tier access:** Pro Insights, Syndicate Alpha
2933
+ *
2934
+ * @param {PlaycallerApi.GetAnalyticsTrendsRequest} request
2935
+ * @param {IntelligenceClient.RequestOptions} requestOptions - Request-specific configuration.
2936
+ *
2937
+ * @throws {@link PlaycallerApi.UnauthorizedError}
2938
+ * @throws {@link PlaycallerApi.ForbiddenError}
2939
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
2940
+ * @throws {@link PlaycallerApi.InternalServerError}
2941
+ *
2942
+ * @example
2943
+ * await client.intelligence.getAnalyticsTrends({
2944
+ * player_name: "McCaffrey",
2945
+ * team: "SF",
2946
+ * position: "WR"
2947
+ * })
2948
+ */
2949
+ getAnalyticsTrends(request?: GetAnalyticsTrendsRequest, requestOptions?: IntelligenceClient.RequestOptions): HttpResponsePromise<GetAnalyticsTrendsResponse>;
2950
+ private __getAnalyticsTrends;
2951
+ }
2952
+
2953
+ declare namespace McpClient {
2954
+ type Options = BaseClientOptions;
2955
+ interface RequestOptions extends BaseRequestOptions {
2956
+ }
2957
+ }
2958
+ /**
2959
+ * Model Context Protocol server — AI workflow integration for Cursor, Claude Desktop, and enterprise AI agents
2960
+ */
2961
+ declare class McpClient {
2962
+ protected readonly _options: NormalizedClientOptionsWithAuth<McpClient.Options>;
2963
+ constructor(options?: McpClient.Options);
2964
+ /**
2965
+ * Returns human-readable JSON describing the PlayCaller MCP server: endpoint URL, auth method, all available tools with descriptions, and links to documentation.
2966
+ *
2967
+ * Point Cursor, Claude Desktop, or any MCP-compatible client at this URL to discover available tools automatically.
2968
+ *
2969
+ * **Auth:** No authentication required for GET (tool invocation requires X-PlayCaller-Key)
2970
+ *
2971
+ * @param {McpClient.RequestOptions} requestOptions - Request-specific configuration.
2972
+ *
2973
+ * @example
2974
+ * await client.mcp.getMcpInfo()
2975
+ */
2976
+ getMcpInfo(requestOptions?: McpClient.RequestOptions): HttpResponsePromise<GetMcpInfoResponse>;
2977
+ private __getMcpInfo;
2978
+ /**
2979
+ * The PlayCaller MCP server implements Anthropic's Model Context Protocol over HTTP transport. Send JSON-RPC 2.0 messages to invoke sports intelligence tools from any AI application.
2980
+ *
2981
+ * **Available tools (7):**
2982
+ * - `get_injury_signals` — Active beat reporter signals filtered by sport/severity
2983
+ * - `get_player_identity` — Resolve a player name or platform ID across ESPN, Sleeper, Yahoo, NFL.com
2984
+ * - `get_anomaly_scores` — Players with usage patterns deviating from 3-season baseline (score 0–100)
2985
+ * - `get_prediction_markets` — Active Kalshi prop markets with AI confidence scores
2986
+ * - `get_player_projections` — AI fantasy point projections using recent game logs and injury signals
2987
+ * - `get_player_stats` — Game log for any player by name across NFL/MLB/NBA historical_performance
2988
+ * - `get_team_roster` — Active roster for any team by sport and abbreviation
2989
+ *
2990
+ * **Config for Cursor (.cursor/mcp.json):**
2991
+ * ```json
2992
+ * {
2993
+ * "mcpServers": {
2994
+ * "playcaller": {
2995
+ * "url": "https://playcallerapp.com/mcp",
2996
+ * "headers": { "X-PlayCaller-Key": "YOUR_API_KEY" }
2997
+ * }
2998
+ * }
2999
+ * }
3000
+ * ```
3001
+ *
3002
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3003
+ *
3004
+ * @param {PlaycallerApi.InvokeMcpToolRequest} request
3005
+ * @param {McpClient.RequestOptions} requestOptions - Request-specific configuration.
3006
+ *
3007
+ * @example
3008
+ * await client.mcp.invokeMcpTool({
3009
+ * jsonrpc: "2.0",
3010
+ * id: 1,
3011
+ * method: "tools/list"
3012
+ * })
3013
+ *
3014
+ * @example
3015
+ * await client.mcp.invokeMcpTool({
3016
+ * jsonrpc: "2.0",
3017
+ * id: 2,
3018
+ * method: "tools/call",
3019
+ * params: {
3020
+ * name: "get_injury_signals",
3021
+ * arguments: {
3022
+ * "sport": "nfl",
3023
+ * "severity": "high",
3024
+ * "limit": 5
3025
+ * }
3026
+ * }
3027
+ * })
3028
+ *
3029
+ * @example
3030
+ * await client.mcp.invokeMcpTool({
3031
+ * jsonrpc: "2.0",
3032
+ * id: 3,
3033
+ * method: "tools/call",
3034
+ * params: {
3035
+ * name: "get_player_identity",
3036
+ * arguments: {
3037
+ * "name": "Christian McCaffrey",
3038
+ * "sport": "nfl"
3039
+ * }
3040
+ * }
3041
+ * })
3042
+ */
3043
+ invokeMcpTool(request: InvokeMcpToolRequest, requestOptions?: McpClient.RequestOptions): HttpResponsePromise<InvokeMcpToolResponse>;
3044
+ private __invokeMcpTool;
3045
+ }
3046
+
3047
+ declare namespace MlbClient {
3048
+ type Options = BaseClientOptions;
3049
+ interface RequestOptions extends BaseRequestOptions {
3050
+ }
3051
+ }
3052
+ /**
3053
+ * MLB player data, game states, standings, and fantasy scoring
3054
+ */
3055
+ declare class MlbClient {
3056
+ protected readonly _options: NormalizedClientOptionsWithAuth<MlbClient.Options>;
3057
+ constructor(options?: MlbClient.Options);
3058
+ /**
3059
+ * Returns all active MLB players (966 total). Positions, teams, and statuses are normalized from MLB Stats API and reconciled against ESPN for accuracy.
3060
+ *
3061
+ * Filter by position and team to build DFS pools or lineup constraints without doing the normalization yourself.
3062
+ *
3063
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3064
+ *
3065
+ * @param {PlaycallerApi.ListMlbPlayersRequest} request
3066
+ * @param {MlbClient.RequestOptions} requestOptions - Request-specific configuration.
3067
+ *
3068
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3069
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3070
+ * @throws {@link PlaycallerApi.InternalServerError}
3071
+ *
3072
+ * @example
3073
+ * await client.mlb.listMlbPlayers({
3074
+ * team: "NYY",
3075
+ * search: "Ohtani"
3076
+ * })
3077
+ */
3078
+ listMlbPlayers(request?: ListMlbPlayersRequest, requestOptions?: MlbClient.RequestOptions): HttpResponsePromise<ListMlbPlayersResponse>;
3079
+ private __listMlbPlayers;
3080
+ /**
3081
+ * Returns the full profile for a single MLB player by PlayCaller ID. Use `/v1/mlb/players?search=` to find IDs by name.
3082
+ *
3083
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3084
+ *
3085
+ * @param {PlaycallerApi.GetMlbPlayerRequest} request
3086
+ * @param {MlbClient.RequestOptions} requestOptions - Request-specific configuration.
3087
+ *
3088
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3089
+ * @throws {@link PlaycallerApi.NotFoundError}
3090
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3091
+ * @throws {@link PlaycallerApi.InternalServerError}
3092
+ *
3093
+ * @example
3094
+ * await client.mlb.getMlbPlayer({
3095
+ * id: "pc_mlb_001234"
3096
+ * })
3097
+ */
3098
+ getMlbPlayer(request: GetMlbPlayerRequest, requestOptions?: MlbClient.RequestOptions): HttpResponsePromise<GetMlbPlayerResponse>;
3099
+ private __getMlbPlayer;
3100
+ /**
3101
+ * Returns daily batting and pitching stat lines with pre-calculated fantasy points. Useful for tracking recent form, streaks, and park-factor-adjusted production.
3102
+ *
3103
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3104
+ *
3105
+ * @param {PlaycallerApi.GetMlbPlayerStatsRequest} request
3106
+ * @param {MlbClient.RequestOptions} requestOptions - Request-specific configuration.
3107
+ *
3108
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3109
+ * @throws {@link PlaycallerApi.NotFoundError}
3110
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3111
+ * @throws {@link PlaycallerApi.InternalServerError}
3112
+ *
3113
+ * @example
3114
+ * await client.mlb.getMlbPlayerStats({
3115
+ * id: "pc_mlb_001234",
3116
+ * date: "2026-05-01"
3117
+ * })
3118
+ */
3119
+ getMlbPlayerStats(request: GetMlbPlayerStatsRequest, requestOptions?: MlbClient.RequestOptions): HttpResponsePromise<GetMlbPlayerStatsResponse>;
3120
+ private __getMlbPlayerStats;
3121
+ /**
3122
+ * Returns metadata for all 30 MLB teams including roster depth. Abbreviations are normalized (e.g. NYY, BOS, LAD).
3123
+ *
3124
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3125
+ *
3126
+ * @param {MlbClient.RequestOptions} requestOptions - Request-specific configuration.
3127
+ *
3128
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3129
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3130
+ * @throws {@link PlaycallerApi.InternalServerError}
3131
+ *
3132
+ * @example
3133
+ * await client.mlb.listMlbTeams()
3134
+ */
3135
+ listMlbTeams(requestOptions?: MlbClient.RequestOptions): HttpResponsePromise<ListMlbTeamsResponse>;
3136
+ private __listMlbTeams;
3137
+ /**
3138
+ * Returns the active roster for a specific team. Filter by position to pull only starting pitchers or corner infielders for lineup construction.
3139
+ *
3140
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3141
+ *
3142
+ * @param {PlaycallerApi.GetMlbTeamRosterRequest} request
3143
+ * @param {MlbClient.RequestOptions} requestOptions - Request-specific configuration.
3144
+ *
3145
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3146
+ * @throws {@link PlaycallerApi.NotFoundError}
3147
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3148
+ * @throws {@link PlaycallerApi.InternalServerError}
3149
+ *
3150
+ * @example
3151
+ * await client.mlb.getMlbTeamRoster({
3152
+ * team: "NYY"
3153
+ * })
3154
+ */
3155
+ getMlbTeamRoster(request: GetMlbTeamRosterRequest, requestOptions?: MlbClient.RequestOptions): HttpResponsePromise<GetMlbTeamRosterResponse>;
3156
+ private __getMlbTeamRoster;
3157
+ /**
3158
+ * Live inning-by-inning game state from the MLB Stats API pipeline. Defaults to today's games. Scores update on a polling cycle throughout the game day.
3159
+ *
3160
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3161
+ *
3162
+ * @param {PlaycallerApi.ListMlbGamesRequest} request
3163
+ * @param {MlbClient.RequestOptions} requestOptions - Request-specific configuration.
3164
+ *
3165
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3166
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3167
+ * @throws {@link PlaycallerApi.InternalServerError}
3168
+ *
3169
+ * @example
3170
+ * await client.mlb.listMlbGames({
3171
+ * date: "2026-05-01"
3172
+ * })
3173
+ */
3174
+ listMlbGames(request?: ListMlbGamesRequest, requestOptions?: MlbClient.RequestOptions): HttpResponsePromise<ListMlbGamesResponse>;
3175
+ private __listMlbGames;
3176
+ /**
3177
+ * Current MLB standings by division sourced from ESPN. Includes win %, streak, home/away splits, and runs differential.
3178
+ *
3179
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3180
+ *
3181
+ * @param {PlaycallerApi.GetMlbStandingsRequest} request
3182
+ * @param {MlbClient.RequestOptions} requestOptions - Request-specific configuration.
3183
+ *
3184
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3185
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3186
+ * @throws {@link PlaycallerApi.InternalServerError}
3187
+ *
3188
+ * @example
3189
+ * await client.mlb.getMlbStandings({
3190
+ * division: "AL East"
3191
+ * })
3192
+ */
3193
+ getMlbStandings(request?: GetMlbStandingsRequest, requestOptions?: MlbClient.RequestOptions): HttpResponsePromise<GetMlbStandingsResponse>;
3194
+ private __getMlbStandings;
3195
+ /**
3196
+ * Top fantasy scorers for any game day, ranked by total points. Uses the PlayCaller scoring engine with standard roto weights (H, HR, RBI, SB, R, BB for batters; IP, K, SV for pitchers).
3197
+ *
3198
+ * Useful for identifying daily stack targets and late-swap pivots before lock.
3199
+ *
3200
+ * **Tier access:** Pro Insights, Syndicate Alpha
3201
+ *
3202
+ * @param {PlaycallerApi.GetMlbScoringLeadersRequest} request
3203
+ * @param {MlbClient.RequestOptions} requestOptions - Request-specific configuration.
3204
+ *
3205
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3206
+ * @throws {@link PlaycallerApi.ForbiddenError}
3207
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3208
+ * @throws {@link PlaycallerApi.InternalServerError}
3209
+ *
3210
+ * @example
3211
+ * await client.mlb.getMlbScoringLeaders({
3212
+ * date: "2026-05-01",
3213
+ * team: "NYY"
3214
+ * })
3215
+ */
3216
+ getMlbScoringLeaders(request?: GetMlbScoringLeadersRequest, requestOptions?: MlbClient.RequestOptions): HttpResponsePromise<GetMlbScoringLeadersResponse>;
3217
+ private __getMlbScoringLeaders;
3218
+ /**
3219
+ * Top 10 players per rotisserie scoring category (HR, RBI, SB, R, BB, IP, K, SV) for a given date. Ideal for roto league managers tracking category races and daily contributions.
3220
+ *
3221
+ * **Tier access:** Pro Insights, Syndicate Alpha
3222
+ *
3223
+ * @param {PlaycallerApi.GetMlbScoringCategoriesRequest} request
3224
+ * @param {MlbClient.RequestOptions} requestOptions - Request-specific configuration.
3225
+ *
3226
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3227
+ * @throws {@link PlaycallerApi.ForbiddenError}
3228
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3229
+ * @throws {@link PlaycallerApi.InternalServerError}
3230
+ *
3231
+ * @example
3232
+ * await client.mlb.getMlbScoringCategories({
3233
+ * date: "2026-05-01"
3234
+ * })
3235
+ */
3236
+ getMlbScoringCategories(request?: GetMlbScoringCategoriesRequest, requestOptions?: MlbClient.RequestOptions): HttpResponsePromise<GetMlbScoringCategoriesResponse>;
3237
+ private __getMlbScoringCategories;
3238
+ }
3239
+
3240
+ declare namespace MultiClient {
3241
+ type Options = BaseClientOptions;
3242
+ interface RequestOptions extends BaseRequestOptions {
3243
+ }
3244
+ }
3245
+ /**
3246
+ * Multi-sport discovery, cross-sport player search, and public stats endpoints
3247
+ */
3248
+ declare class MultiClient {
3249
+ protected readonly _options: NormalizedClientOptionsWithAuth<MultiClient.Options>;
3250
+ constructor(options?: MultiClient.Options);
3251
+ /**
3252
+ * Search across all 13,606 canonical player identities (NFL + MLB + NBA) by name, with optional sport and position filters. Returns matching players from all sports in a single call.
3253
+ *
3254
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3255
+ *
3256
+ * @param {PlaycallerApi.SearchPlayersRequest} request
3257
+ * @param {MultiClient.RequestOptions} requestOptions - Request-specific configuration.
3258
+ *
3259
+ * @throws {@link PlaycallerApi.BadRequestError}
3260
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3261
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3262
+ * @throws {@link PlaycallerApi.InternalServerError}
3263
+ *
3264
+ * @example
3265
+ * await client.multi.searchPlayers({
3266
+ * q: "LeBron",
3267
+ * position: "WR"
3268
+ * })
3269
+ */
3270
+ searchPlayers(request: SearchPlayersRequest, requestOptions?: MultiClient.RequestOptions): HttpResponsePromise<SearchPlayersResponse>;
3271
+ private __searchPlayers;
3272
+ /**
3273
+ * Raw trending-topic rows refreshed on a ~2-hour cadence. Contextual social signal, not a model output — no tier gate.
3274
+ *
3275
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3276
+ *
3277
+ * @param {PlaycallerApi.GetTrendingRequest} request
3278
+ * @param {MultiClient.RequestOptions} requestOptions - Request-specific configuration.
3279
+ *
3280
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3281
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3282
+ * @throws {@link PlaycallerApi.InternalServerError}
3283
+ *
3284
+ * @example
3285
+ * await client.multi.getTrending()
3286
+ */
3287
+ getTrending(request?: GetTrendingRequest, requestOptions?: MultiClient.RequestOptions): HttpResponsePromise<GetTrendingResponse>;
3288
+ private __getTrending;
3289
+ /**
3290
+ * AI-generated waiver-wire recommendations alongside `signals_used` — the exact validated model-signal rows, with their own AUCs, that drove each call. No other sports-data API exposes which signals produced a given recommendation.
3291
+ *
3292
+ * **Tier access:** Pro Insights, Syndicate Alpha
3293
+ *
3294
+ * @param {PlaycallerApi.GetWaiverArticlesRequest} request
3295
+ * @param {MultiClient.RequestOptions} requestOptions - Request-specific configuration.
3296
+ *
3297
+ * @throws {@link PlaycallerApi.BadRequestError}
3298
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3299
+ * @throws {@link PlaycallerApi.ForbiddenError}
3300
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3301
+ * @throws {@link PlaycallerApi.InternalServerError}
3302
+ *
3303
+ * @example
3304
+ * await client.multi.getWaiverArticles({
3305
+ * sport: "nfl"
3306
+ * })
3307
+ */
3308
+ getWaiverArticles(request: GetWaiverArticlesRequest, requestOptions?: MultiClient.RequestOptions): HttpResponsePromise<GetWaiverArticlesResponse>;
3309
+ private __getWaiverArticles;
3310
+ /**
3311
+ * `/analytics/trends` only returns aggregated trend summaries; this exposes the granular per-game rows behind those — `historical_performance` for NFL/NBA, `daily_player_stats` for MLB.
3312
+ *
3313
+ * **Tier access:** Pro Insights, Syndicate Alpha
3314
+ *
3315
+ * @param {PlaycallerApi.GetGamesHistoryRequest} request
3316
+ * @param {MultiClient.RequestOptions} requestOptions - Request-specific configuration.
3317
+ *
3318
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3319
+ * @throws {@link PlaycallerApi.ForbiddenError}
3320
+ * @throws {@link PlaycallerApi.NotFoundError}
3321
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3322
+ * @throws {@link PlaycallerApi.InternalServerError}
3323
+ *
3324
+ * @example
3325
+ * await client.multi.getGamesHistory({
3326
+ * sport: "nfl",
3327
+ * player_name: "Josh Allen"
3328
+ * })
3329
+ */
3330
+ getGamesHistory(request: GetGamesHistoryRequest, requestOptions?: MultiClient.RequestOptions): HttpResponsePromise<GetGamesHistoryResponse>;
3331
+ private __getGamesHistory;
3332
+ /**
3333
+ * Returns all supported sports with their available endpoints and status. Use this to programmatically discover which data is live vs. coming soon for your tier.
3334
+ *
3335
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3336
+ *
3337
+ * @param {MultiClient.RequestOptions} requestOptions - Request-specific configuration.
3338
+ *
3339
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3340
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3341
+ * @throws {@link PlaycallerApi.InternalServerError}
3342
+ *
3343
+ * @example
3344
+ * await client.multi.listSports()
3345
+ */
3346
+ listSports(requestOptions?: MultiClient.RequestOptions): HttpResponsePromise<ListSportsResponse>;
3347
+ private __listSports;
3348
+ /**
3349
+ * Public endpoint returning live platform statistics: registered users, active signals, total players tracked, sports covered, and platforms integrated. No API key required.
3350
+ *
3351
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3352
+ *
3353
+ * @param {MultiClient.RequestOptions} requestOptions - Request-specific configuration.
3354
+ *
3355
+ * @example
3356
+ * await client.multi.getPublicStats()
3357
+ */
3358
+ getPublicStats(requestOptions?: MultiClient.RequestOptions): HttpResponsePromise<PublicStats>;
3359
+ private __getPublicStats;
3360
+ }
3361
+
3362
+ declare namespace NbaClient {
3363
+ type Options = BaseClientOptions;
3364
+ interface RequestOptions extends BaseRequestOptions {
3365
+ }
3366
+ }
3367
+ /**
3368
+ * NBA game scores, standings, teams, player profiles, and game logs
3369
+ */
3370
+ declare class NbaClient {
3371
+ protected readonly _options: NormalizedClientOptionsWithAuth<NbaClient.Options>;
3372
+ constructor(options?: NbaClient.Options);
3373
+ /**
3374
+ * Live scores and scheduled NBA games from the ESPN feed. Includes venue, broadcast network, period clock, and team logos for display-ready integrations.
3375
+ *
3376
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3377
+ *
3378
+ * @param {PlaycallerApi.ListNbaGamesRequest} request
3379
+ * @param {NbaClient.RequestOptions} requestOptions - Request-specific configuration.
3380
+ *
3381
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3382
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3383
+ * @throws {@link PlaycallerApi.InternalServerError}
3384
+ *
3385
+ * @example
3386
+ * await client.nba.listNbaGames({
3387
+ * date: "2026-05-01"
3388
+ * })
3389
+ */
3390
+ listNbaGames(request?: ListNbaGamesRequest, requestOptions?: NbaClient.RequestOptions): HttpResponsePromise<ListNbaGamesResponse>;
3391
+ private __listNbaGames;
3392
+ /**
3393
+ * Current NBA standings including conference, division, win %, streak, and home/away split records. Filterable by conference.
3394
+ *
3395
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3396
+ *
3397
+ * @param {PlaycallerApi.GetNbaStandingsRequest} request
3398
+ * @param {NbaClient.RequestOptions} requestOptions - Request-specific configuration.
3399
+ *
3400
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3401
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3402
+ * @throws {@link PlaycallerApi.InternalServerError}
3403
+ *
3404
+ * @example
3405
+ * await client.nba.getNbaStandings()
3406
+ */
3407
+ getNbaStandings(request?: GetNbaStandingsRequest, requestOptions?: NbaClient.RequestOptions): HttpResponsePromise<GetNbaStandingsResponse>;
3408
+ private __getNbaStandings;
3409
+ /**
3410
+ * All 30 NBA teams with conference, division, and ESPN team logo URL. Filterable by conference.
3411
+ *
3412
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3413
+ *
3414
+ * @param {PlaycallerApi.ListNbaTeamsRequest} request
3415
+ * @param {NbaClient.RequestOptions} requestOptions - Request-specific configuration.
3416
+ *
3417
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3418
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3419
+ * @throws {@link PlaycallerApi.InternalServerError}
3420
+ *
3421
+ * @example
3422
+ * await client.nba.listNbaTeams()
3423
+ */
3424
+ listNbaTeams(request?: ListNbaTeamsRequest, requestOptions?: NbaClient.RequestOptions): HttpResponsePromise<ListNbaTeamsResponse>;
3425
+ private __listNbaTeams;
3426
+ /**
3427
+ * 3,252 NBA players from player_identities (same identity-resolution pipeline as MLB). Searchable by name, position, or team. No jersey number or headshot URL is currently returned (despite earlier docs claiming otherwise — corrected 2026-06-24 against a live response).
3428
+ *
3429
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3430
+ *
3431
+ * @param {PlaycallerApi.ListNbaPlayersRequest} request
3432
+ * @param {NbaClient.RequestOptions} requestOptions - Request-specific configuration.
3433
+ *
3434
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3435
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3436
+ * @throws {@link PlaycallerApi.InternalServerError}
3437
+ *
3438
+ * @example
3439
+ * await client.nba.listNbaPlayers({
3440
+ * search: "LeBron",
3441
+ * team: "LAL"
3442
+ * })
3443
+ */
3444
+ listNbaPlayers(request?: ListNbaPlayersRequest, requestOptions?: NbaClient.RequestOptions): HttpResponsePromise<ListNbaPlayersResponse>;
3445
+ private __listNbaPlayers;
3446
+ /**
3447
+ * Full profile for a single NBA player by PlayCaller ID. Returns platform IDs, team, position, and status.
3448
+ *
3449
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3450
+ *
3451
+ * @param {PlaycallerApi.GetNbaPlayerRequest} request
3452
+ * @param {NbaClient.RequestOptions} requestOptions - Request-specific configuration.
3453
+ *
3454
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3455
+ * @throws {@link PlaycallerApi.NotFoundError}
3456
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3457
+ * @throws {@link PlaycallerApi.InternalServerError}
3458
+ *
3459
+ * @example
3460
+ * await client.nba.getNbaPlayer({
3461
+ * id: "pc_nba_1262"
3462
+ * })
3463
+ */
3464
+ getNbaPlayer(request: GetNbaPlayerRequest, requestOptions?: NbaClient.RequestOptions): HttpResponsePromise<GetNbaPlayerResponse>;
3465
+ private __getNbaPlayer;
3466
+ /**
3467
+ * Game logs from `historical_performance` for an NBA player (127,909 rows across 5 seasons, 2021–2025). Returns fantasy points and box score stats per game.
3468
+ *
3469
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3470
+ *
3471
+ * @param {PlaycallerApi.GetNbaPlayerStatsRequest} request
3472
+ * @param {NbaClient.RequestOptions} requestOptions - Request-specific configuration.
3473
+ *
3474
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3475
+ * @throws {@link PlaycallerApi.NotFoundError}
3476
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3477
+ * @throws {@link PlaycallerApi.InternalServerError}
3478
+ *
3479
+ * @example
3480
+ * await client.nba.getNbaPlayerStats({
3481
+ * id: "pc_nba_1262"
3482
+ * })
3483
+ */
3484
+ getNbaPlayerStats(request: GetNbaPlayerStatsRequest, requestOptions?: NbaClient.RequestOptions): HttpResponsePromise<GetNbaPlayerStatsResponse>;
3485
+ private __getNbaPlayerStats;
3486
+ /**
3487
+ * Active roster for a specific NBA team. Returns all players from `player_identities` for the requested team abbreviation.
3488
+ *
3489
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3490
+ *
3491
+ * @param {PlaycallerApi.GetNbaTeamRosterRequest} request
3492
+ * @param {NbaClient.RequestOptions} requestOptions - Request-specific configuration.
3493
+ *
3494
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3495
+ * @throws {@link PlaycallerApi.NotFoundError}
3496
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3497
+ * @throws {@link PlaycallerApi.InternalServerError}
3498
+ *
3499
+ * @example
3500
+ * await client.nba.getNbaTeamRoster({
3501
+ * team: "BOS"
3502
+ * })
3503
+ */
3504
+ getNbaTeamRoster(request: GetNbaTeamRosterRequest, requestOptions?: NbaClient.RequestOptions): HttpResponsePromise<GetNbaTeamRosterResponse>;
3505
+ private __getNbaTeamRoster;
3506
+ /**
3507
+ * Full detail behind PlayCaller's best-validated signal in the entire portfolio — AUC-ROC 0.855, 84.23x decile lift, promoted ACTIVE 2026-06-19. `/v1/feed` returns a capped display score for this same model; this endpoint exposes the raw (pre-cap) score, percentile, and the 5 underlying signal components including `usage_vacuum`.
3508
+ *
3509
+ * **Tier access:** Pro Insights, Syndicate Alpha
3510
+ *
3511
+ * @param {PlaycallerApi.GetNbaConfidenceRequest} request
3512
+ * @param {NbaClient.RequestOptions} requestOptions - Request-specific configuration.
3513
+ *
3514
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3515
+ * @throws {@link PlaycallerApi.ForbiddenError}
3516
+ * @throws {@link PlaycallerApi.NotFoundError}
3517
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3518
+ * @throws {@link PlaycallerApi.InternalServerError}
3519
+ *
3520
+ * @example
3521
+ * await client.nba.getNbaConfidence({
3522
+ * player: "Nikola Jokic"
3523
+ * })
3524
+ */
3525
+ getNbaConfidence(request: GetNbaConfidenceRequest, requestOptions?: NbaClient.RequestOptions): HttpResponsePromise<GetNbaConfidenceResponse>;
3526
+ private __getNbaConfidence;
3527
+ }
3528
+
3529
+ declare namespace NflClient {
3530
+ type Options = BaseClientOptions;
3531
+ interface RequestOptions extends BaseRequestOptions {
3532
+ }
3533
+ }
3534
+ /**
3535
+ * NFL players, games, standings, and team rosters (2024 season backfilled, 2026 schedule live)
3536
+ */
3537
+ declare class NflClient {
3538
+ protected readonly _options: NormalizedClientOptionsWithAuth<NflClient.Options>;
3539
+ constructor(options?: NflClient.Options);
3540
+ /**
3541
+ * Returns metadata for all 32 NFL teams including conference, division, and live roster counts from `player_identities`.
3542
+ *
3543
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3544
+ *
3545
+ * @param {PlaycallerApi.ListNflTeamsRequest} request
3546
+ * @param {NflClient.RequestOptions} requestOptions - Request-specific configuration.
3547
+ *
3548
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3549
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3550
+ * @throws {@link PlaycallerApi.InternalServerError}
3551
+ *
3552
+ * @example
3553
+ * await client.nfl.listNflTeams({
3554
+ * division: "North"
3555
+ * })
3556
+ */
3557
+ listNflTeams(request?: ListNflTeamsRequest, requestOptions?: NflClient.RequestOptions): HttpResponsePromise<ListNflTeamsResponse>;
3558
+ private __listNflTeams;
3559
+ /**
3560
+ * Active roster for a specific NFL team from `player_identities`. Filter by position to pull only QBs, WRs, or RBs.
3561
+ *
3562
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3563
+ *
3564
+ * @param {PlaycallerApi.GetNflTeamRosterRequest} request
3565
+ * @param {NflClient.RequestOptions} requestOptions - Request-specific configuration.
3566
+ *
3567
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3568
+ * @throws {@link PlaycallerApi.NotFoundError}
3569
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3570
+ * @throws {@link PlaycallerApi.InternalServerError}
3571
+ *
3572
+ * @example
3573
+ * await client.nfl.getNflTeamRoster({
3574
+ * team: "KC"
3575
+ * })
3576
+ */
3577
+ getNflTeamRoster(request: GetNflTeamRosterRequest, requestOptions?: NflClient.RequestOptions): HttpResponsePromise<GetNflTeamRosterResponse>;
3578
+ private __getNflTeamRoster;
3579
+ /**
3580
+ * All NFL players from the canonical `player_identities` table. Searchable by name, position, or team. Same identity-resolution pipeline as MLB and NBA.
3581
+ *
3582
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3583
+ *
3584
+ * @param {PlaycallerApi.ListNflPlayersRequest} request
3585
+ * @param {NflClient.RequestOptions} requestOptions - Request-specific configuration.
3586
+ *
3587
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3588
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3589
+ * @throws {@link PlaycallerApi.InternalServerError}
3590
+ *
3591
+ * @example
3592
+ * await client.nfl.listNflPlayers({
3593
+ * search: "Mahomes",
3594
+ * team: "KC"
3595
+ * })
3596
+ */
3597
+ listNflPlayers(request?: ListNflPlayersRequest, requestOptions?: NflClient.RequestOptions): HttpResponsePromise<ListNflPlayersResponse>;
3598
+ private __listNflPlayers;
3599
+ /**
3600
+ * Full profile for a single NFL player including team metadata, conference/division, and platform-resolved status.
3601
+ *
3602
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3603
+ *
3604
+ * @param {PlaycallerApi.GetNflPlayerRequest} request
3605
+ * @param {NflClient.RequestOptions} requestOptions - Request-specific configuration.
3606
+ *
3607
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3608
+ * @throws {@link PlaycallerApi.NotFoundError}
3609
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3610
+ * @throws {@link PlaycallerApi.InternalServerError}
3611
+ *
3612
+ * @example
3613
+ * await client.nfl.getNflPlayer({
3614
+ * id: "pc_nfl_001234"
3615
+ * })
3616
+ */
3617
+ getNflPlayer(request: GetNflPlayerRequest, requestOptions?: NflClient.RequestOptions): HttpResponsePromise<GetNflPlayerResponse>;
3618
+ private __getNflPlayer;
3619
+ /**
3620
+ * Game-by-game stat lines from `historical_performance`. Covers NFL 2024 full season (weeks 1–18, ~4,400 records). Returns passing/rushing/receiving splits and fantasy points.
3621
+ *
3622
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3623
+ *
3624
+ * @param {PlaycallerApi.GetNflPlayerStatsRequest} request
3625
+ * @param {NflClient.RequestOptions} requestOptions - Request-specific configuration.
3626
+ *
3627
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3628
+ * @throws {@link PlaycallerApi.NotFoundError}
3629
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3630
+ * @throws {@link PlaycallerApi.InternalServerError}
3631
+ *
3632
+ * @example
3633
+ * await client.nfl.getNflPlayerStats({
3634
+ * id: "pc_nfl_001234"
3635
+ * })
3636
+ */
3637
+ getNflPlayerStats(request: GetNflPlayerStatsRequest, requestOptions?: NflClient.RequestOptions): HttpResponsePromise<GetNflPlayerStatsResponse>;
3638
+ private __getNflPlayerStats;
3639
+ /**
3640
+ * NFL schedule and game results from `nfl_games`. Covers the 2026 season (285 games scheduled) with 2024 results backfilled. Filter by season, week, or status.
3641
+ *
3642
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3643
+ *
3644
+ * @param {PlaycallerApi.ListNflGamesRequest} request
3645
+ * @param {NflClient.RequestOptions} requestOptions - Request-specific configuration.
3646
+ *
3647
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3648
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3649
+ * @throws {@link PlaycallerApi.InternalServerError}
3650
+ *
3651
+ * @example
3652
+ * await client.nfl.listNflGames()
3653
+ */
3654
+ listNflGames(request?: ListNflGamesRequest, requestOptions?: NflClient.RequestOptions): HttpResponsePromise<ListNflGamesResponse>;
3655
+ private __listNflGames;
3656
+ /**
3657
+ * NFL division standings computed from `nfl_games` results (W/L/T record, win %). Grouped by conference and division.
3658
+ *
3659
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3660
+ *
3661
+ * @param {PlaycallerApi.GetNflStandingsRequest} request
3662
+ * @param {NflClient.RequestOptions} requestOptions - Request-specific configuration.
3663
+ *
3664
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3665
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3666
+ * @throws {@link PlaycallerApi.InternalServerError}
3667
+ *
3668
+ * @example
3669
+ * await client.nfl.getNflStandings({
3670
+ * division: "AFC West"
3671
+ * })
3672
+ */
3673
+ getNflStandings(request?: GetNflStandingsRequest, requestOptions?: NflClient.RequestOptions): HttpResponsePromise<GetNflStandingsResponse>;
3674
+ private __getNflStandings;
3675
+ }
3676
+
3677
+ declare namespace SoccerClient {
3678
+ type Options = BaseClientOptions;
3679
+ interface RequestOptions extends BaseRequestOptions {
3680
+ }
3681
+ }
3682
+ /**
3683
+ * Soccer match scores and league tables (EPL + MLS)
3684
+ */
3685
+ declare class SoccerClient {
3686
+ protected readonly _options: NormalizedClientOptionsWithAuth<SoccerClient.Options>;
3687
+ constructor(options?: SoccerClient.Options);
3688
+ /**
3689
+ * Live and historical match scores for EPL and MLS. Includes team logos, venue, broadcast, and score state for display-ready applications.
3690
+ *
3691
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3692
+ *
3693
+ * @param {PlaycallerApi.ListSoccerGamesRequest} request
3694
+ * @param {SoccerClient.RequestOptions} requestOptions - Request-specific configuration.
3695
+ *
3696
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3697
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3698
+ * @throws {@link PlaycallerApi.InternalServerError}
3699
+ *
3700
+ * @example
3701
+ * await client.soccer.listSoccerGames({
3702
+ * date: "2026-05-01"
3703
+ * })
3704
+ */
3705
+ listSoccerGames(request?: ListSoccerGamesRequest, requestOptions?: SoccerClient.RequestOptions): HttpResponsePromise<ListSoccerGamesResponse>;
3706
+ private __listSoccerGames;
3707
+ /**
3708
+ * Current league tables for EPL and/or MLS. Includes points, goal difference, wins, draws, losses, and home/away splits.
3709
+ *
3710
+ * **Tier access:** Developer Sandbox, Build, Pro Insights, Syndicate Alpha
3711
+ *
3712
+ * @param {PlaycallerApi.GetSoccerStandingsRequest} request
3713
+ * @param {SoccerClient.RequestOptions} requestOptions - Request-specific configuration.
3714
+ *
3715
+ * @throws {@link PlaycallerApi.UnauthorizedError}
3716
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
3717
+ * @throws {@link PlaycallerApi.InternalServerError}
3718
+ *
3719
+ * @example
3720
+ * await client.soccer.getSoccerStandings()
3721
+ */
3722
+ getSoccerStandings(request?: GetSoccerStandingsRequest, requestOptions?: SoccerClient.RequestOptions): HttpResponsePromise<GetSoccerStandingsResponse>;
3723
+ private __getSoccerStandings;
3724
+ }
3725
+
3726
+ declare namespace PlaycallerApiClient {
3727
+ type Options = BaseClientOptions;
3728
+ interface RequestOptions extends BaseRequestOptions {
3729
+ }
3730
+ }
3731
+ declare class PlaycallerApiClient {
3732
+ protected readonly _options: NormalizedClientOptionsWithAuth<PlaycallerApiClient.Options>;
3733
+ protected _intelligence: IntelligenceClient | undefined;
3734
+ protected _mlb: MlbClient | undefined;
3735
+ protected _nba: NbaClient | undefined;
3736
+ protected _nfl: NflClient | undefined;
3737
+ protected _multi: MultiClient | undefined;
3738
+ protected _cfb: CfbClient | undefined;
3739
+ protected _soccer: SoccerClient | undefined;
3740
+ protected _account: AccountClient | undefined;
3741
+ protected _mcp: McpClient | undefined;
3742
+ constructor(options?: PlaycallerApiClient.Options);
3743
+ get intelligence(): IntelligenceClient;
3744
+ get mlb(): MlbClient;
3745
+ get nba(): NbaClient;
3746
+ get nfl(): NflClient;
3747
+ get multi(): MultiClient;
3748
+ get cfb(): CfbClient;
3749
+ get soccer(): SoccerClient;
3750
+ get account(): AccountClient;
3751
+ get mcp(): McpClient;
3752
+ /**
3753
+ * Make a passthrough request using the SDK's configured auth, retry, logging, etc.
3754
+ * This is useful for making requests to endpoints not yet supported in the SDK.
3755
+ * The input can be a URL string, URL object, or Request object. Relative paths are resolved against the configured base URL.
3756
+ *
3757
+ * @param {Request | string | URL} input - The URL, path, or Request object.
3758
+ * @param {RequestInit} init - Standard fetch RequestInit options.
3759
+ * @param {core.PassthroughRequest.RequestOptions} requestOptions - Per-request overrides (timeout, retries, headers, abort signal).
3760
+ * @returns {Promise<Response>} A standard Response object.
3761
+ */
3762
+ fetch(input: Request | string | URL, init?: RequestInit, requestOptions?: PassthroughRequest.RequestOptions): Promise<Response>;
3763
+ }
3764
+
3765
+ declare namespace logging {
3766
+ /**
3767
+ * Configuration for logger instances.
3768
+ */
3769
+ type LogConfig = LogConfig;
3770
+ type LogLevel = LogLevel;
3771
+ const LogLevel: typeof LogLevel;
3772
+ type ILogger = ILogger;
3773
+ /**
3774
+ * Console logger implementation that outputs to the console.
3775
+ */
3776
+ type ConsoleLogger = ConsoleLogger;
3777
+ /**
3778
+ * Console logger implementation that outputs to the console.
3779
+ */
3780
+ const ConsoleLogger: typeof ConsoleLogger;
3781
+ }
3782
+
3783
+ export { type BaseClientOptions, type BaseRequestOptions, index as PlaycallerApi, PlaycallerApiClient, PlaycallerApiEnvironment, PlaycallerApiError, PlaycallerApiTimeoutError, logging };