@playcaller/sdk 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -33,12 +33,13 @@ module.exports = __toCommonJS(index_exports);
33
33
  var api_exports = {};
34
34
  __export(api_exports, {
35
35
  BadRequestError: () => BadRequestError,
36
+ BatchPlayerSignalsRequest: () => BatchPlayerSignalsRequest,
37
+ BatchPlayersRequest: () => BatchPlayersRequest,
36
38
  BeatReporterSignal: () => BeatReporterSignal,
37
39
  ComparePlayersRequestSport: () => ComparePlayersRequestSport,
38
40
  ConflictError: () => ConflictError,
39
41
  CreateWebhookRequest: () => CreateWebhookRequest,
40
42
  EspnGame: () => EspnGame,
41
- EvaluateTradeResponse: () => EvaluateTradeResponse,
42
43
  ForbiddenError: () => ForbiddenError,
43
44
  GetAnalyticsTrendsRequestSport: () => GetAnalyticsTrendsRequestSport,
44
45
  GetDaaSKeyInfoResponse: () => GetDaaSKeyInfoResponse,
@@ -50,17 +51,24 @@ __export(api_exports, {
50
51
  GetIntelligenceNewsRequestSeverity: () => GetIntelligenceNewsRequestSeverity,
51
52
  GetIntelligenceNewsRequestSignalType: () => GetIntelligenceNewsRequestSignalType,
52
53
  GetIntelligenceNewsRequestSport: () => GetIntelligenceNewsRequestSport,
53
- GetLeagueHealthResponse: () => GetLeagueHealthResponse,
54
+ GetIntelligenceSignalsRequestSeverity: () => GetIntelligenceSignalsRequestSeverity,
55
+ GetIntelligenceSignalsRequestSport: () => GetIntelligenceSignalsRequestSport,
56
+ GetIntelligenceSignalsResponse: () => GetIntelligenceSignalsResponse,
54
57
  GetMlbScoringLeadersRequestPosition: () => GetMlbScoringLeadersRequestPosition,
55
58
  GetMlbTeamRosterRequestPosition: () => GetMlbTeamRosterRequestPosition,
56
59
  GetNbaConfidenceResponse: () => GetNbaConfidenceResponse,
57
60
  GetNbaStandingsRequestConference: () => GetNbaStandingsRequestConference,
58
61
  GetNbaTeamRosterRequestPosition: () => GetNbaTeamRosterRequestPosition,
62
+ GetNflCustomRankingsRequest: () => GetNflCustomRankingsRequest,
63
+ GetNflDepthChartChangesRequestChangeType: () => GetNflDepthChartChangesRequestChangeType,
64
+ GetNflDepthChartChangesRequestPosition: () => GetNflDepthChartChangesRequestPosition,
65
+ GetNflDepthChartChangesResponse: () => GetNflDepthChartChangesResponse,
59
66
  GetNflRankingsRequestFormat: () => GetNflRankingsRequestFormat,
60
67
  GetNflRankingsRequestPosition: () => GetNflRankingsRequestPosition,
61
68
  GetNflRankingsResponse: () => GetNflRankingsResponse,
62
69
  GetNflStandingsRequestConference: () => GetNflStandingsRequestConference,
63
70
  GetNflTeamRosterRequestPosition: () => GetNflTeamRosterRequestPosition,
71
+ GetOddsHistoryRequestSport: () => GetOddsHistoryRequestSport,
64
72
  GetPlayerAlphaMetricsRequestSport: () => GetPlayerAlphaMetricsRequestSport,
65
73
  GetPlayerNewsRequestSport: () => GetPlayerNewsRequestSport,
66
74
  GetPlayerNewsResponse: () => GetPlayerNewsResponse,
@@ -68,12 +76,15 @@ __export(api_exports, {
68
76
  GetSoccerStandingsRequestLeague: () => GetSoccerStandingsRequestLeague,
69
77
  GetTeamInjuriesRequestSport: () => GetTeamInjuriesRequestSport,
70
78
  GetTeamInjuriesResponse: () => GetTeamInjuriesResponse,
79
+ GetTeamRosterPulseRequestSport: () => GetTeamRosterPulseRequestSport,
71
80
  GetTeamScheduleRequestSport: () => GetTeamScheduleRequestSport,
72
81
  GetTeamScheduleRequestStatus: () => GetTeamScheduleRequestStatus,
73
82
  GetTennisMatchesRequestTour: () => GetTennisMatchesRequestTour,
74
83
  GetTrendingRequestSport: () => GetTrendingRequestSport,
75
84
  GetUfcEventsRequestState: () => GetUfcEventsRequestState,
76
85
  GetWaiverArticlesRequestSport: () => GetWaiverArticlesRequestSport,
86
+ GetWaiverPriorityRequestSport: () => GetWaiverPriorityRequestSport,
87
+ GetWaiverPriorityResponse: () => GetWaiverPriorityResponse,
77
88
  InternalServerError: () => InternalServerError,
78
89
  InvokeMcpToolRequest: () => InvokeMcpToolRequest,
79
90
  ListCfbGamesRequestState: () => ListCfbGamesRequestState,
@@ -91,6 +102,7 @@ __export(api_exports, {
91
102
  MlbGame: () => MlbGame,
92
103
  MlbPlayer: () => MlbPlayer,
93
104
  NotFoundError: () => NotFoundError,
105
+ PaymentRequiredError: () => PaymentRequiredError,
94
106
  PlayerIdentity: () => PlayerIdentity,
95
107
  SearchPlayersRequestSport: () => SearchPlayersRequestSport,
96
108
  StreamEventsRequestSport: () => StreamEventsRequestSport,
@@ -101,7 +113,6 @@ __export(api_exports, {
101
113
  cfb: () => cfb_exports,
102
114
  golf: () => golf_exports,
103
115
  intelligence: () => intelligence_exports,
104
- leagues: () => leagues_exports,
105
116
  mcp: () => mcp_exports,
106
117
  mlb: () => mlb_exports,
107
118
  multi: () => multi_exports,
@@ -265,6 +276,23 @@ var NotFoundError = class extends PlaycallerApiError {
265
276
  }
266
277
  };
267
278
 
279
+ // api/errors/PaymentRequiredError.ts
280
+ var PaymentRequiredError = class extends PlaycallerApiError {
281
+ constructor(body, rawResponse) {
282
+ super({
283
+ message: "PaymentRequiredError",
284
+ statusCode: 402,
285
+ body,
286
+ rawResponse
287
+ });
288
+ Object.setPrototypeOf(this, new.target.prototype);
289
+ if (Error.captureStackTrace) {
290
+ Error.captureStackTrace(this, this.constructor);
291
+ }
292
+ this.name = "PaymentRequiredError";
293
+ }
294
+ };
295
+
268
296
  // api/errors/TooManyRequestsError.ts
269
297
  var TooManyRequestsError = class extends PlaycallerApiError {
270
298
  constructor(body, rawResponse) {
@@ -374,7 +402,12 @@ __export(intelligence_exports, {
374
402
  GetIntelligenceInjuriesRequestSport: () => GetIntelligenceInjuriesRequestSport,
375
403
  GetIntelligenceNewsRequestSeverity: () => GetIntelligenceNewsRequestSeverity,
376
404
  GetIntelligenceNewsRequestSignalType: () => GetIntelligenceNewsRequestSignalType,
377
- GetIntelligenceNewsRequestSport: () => GetIntelligenceNewsRequestSport
405
+ GetIntelligenceNewsRequestSport: () => GetIntelligenceNewsRequestSport,
406
+ GetIntelligenceSignalsRequestSeverity: () => GetIntelligenceSignalsRequestSeverity,
407
+ GetIntelligenceSignalsRequestSport: () => GetIntelligenceSignalsRequestSport,
408
+ GetIntelligenceSignalsResponse: () => GetIntelligenceSignalsResponse,
409
+ GetWaiverPriorityRequestSport: () => GetWaiverPriorityRequestSport,
410
+ GetWaiverPriorityResponse: () => GetWaiverPriorityResponse
378
411
  });
379
412
 
380
413
  // api/resources/intelligence/types/GetAnalyticsTrendsRequestSport.ts
@@ -423,37 +456,62 @@ var GetIntelligenceNewsRequestSport = {
423
456
  All: "all"
424
457
  };
425
458
 
426
- // api/resources/leagues/index.ts
427
- var leagues_exports = {};
428
- __export(leagues_exports, {
429
- EvaluateTradeResponse: () => EvaluateTradeResponse,
430
- GetLeagueHealthResponse: () => GetLeagueHealthResponse
431
- });
459
+ // api/resources/intelligence/types/GetIntelligenceSignalsRequestSeverity.ts
460
+ var GetIntelligenceSignalsRequestSeverity = {
461
+ High: "high",
462
+ Medium: "medium",
463
+ Low: "low"
464
+ };
432
465
 
433
- // api/resources/leagues/types/EvaluateTradeResponse.ts
434
- var EvaluateTradeResponse;
435
- ((EvaluateTradeResponse2) => {
436
- EvaluateTradeResponse2.Verdict = {
437
- Win: "win",
438
- Loss: "loss",
439
- Fair: "fair"
440
- };
441
- EvaluateTradeResponse2.Confidence = {
442
- High: "high",
443
- Medium: "medium",
444
- Low: "low"
445
- };
446
- })(EvaluateTradeResponse || (EvaluateTradeResponse = {}));
447
-
448
- // api/resources/leagues/types/GetLeagueHealthResponse.ts
449
- var GetLeagueHealthResponse;
450
- ((GetLeagueHealthResponse2) => {
451
- GetLeagueHealthResponse2.ParityLabel = {
452
- Competitive: "Competitive",
453
- Balanced: "Balanced",
454
- Lopsided: "Lopsided"
455
- };
456
- })(GetLeagueHealthResponse || (GetLeagueHealthResponse = {}));
466
+ // api/resources/intelligence/types/GetIntelligenceSignalsRequestSport.ts
467
+ var GetIntelligenceSignalsRequestSport = {
468
+ Nfl: "nfl",
469
+ Nba: "nba",
470
+ Mlb: "mlb",
471
+ Nhl: "nhl",
472
+ Golf: "golf",
473
+ Soccer: "soccer"
474
+ };
475
+
476
+ // api/resources/intelligence/types/GetIntelligenceSignalsResponse.ts
477
+ var GetIntelligenceSignalsResponse;
478
+ ((GetIntelligenceSignalsResponse2) => {
479
+ let Data;
480
+ ((Data2) => {
481
+ let Item;
482
+ ((Item2) => {
483
+ Item2.Severity = {
484
+ High: "high",
485
+ Medium: "medium",
486
+ Low: "low"
487
+ };
488
+ })(Item = Data2.Item || (Data2.Item = {}));
489
+ })(Data = GetIntelligenceSignalsResponse2.Data || (GetIntelligenceSignalsResponse2.Data = {}));
490
+ })(GetIntelligenceSignalsResponse || (GetIntelligenceSignalsResponse = {}));
491
+
492
+ // api/resources/intelligence/types/GetWaiverPriorityRequestSport.ts
493
+ var GetWaiverPriorityRequestSport = {
494
+ Nfl: "nfl",
495
+ Nba: "nba",
496
+ Mlb: "mlb",
497
+ Nhl: "nhl"
498
+ };
499
+
500
+ // api/resources/intelligence/types/GetWaiverPriorityResponse.ts
501
+ var GetWaiverPriorityResponse;
502
+ ((GetWaiverPriorityResponse2) => {
503
+ let WaiverCandidates;
504
+ ((WaiverCandidates2) => {
505
+ let Item;
506
+ ((Item2) => {
507
+ Item2.Severity = {
508
+ High: "high",
509
+ Medium: "medium",
510
+ Low: "low"
511
+ };
512
+ })(Item = WaiverCandidates2.Item || (WaiverCandidates2.Item = {}));
513
+ })(WaiverCandidates = GetWaiverPriorityResponse2.WaiverCandidates || (GetWaiverPriorityResponse2.WaiverCandidates = {}));
514
+ })(GetWaiverPriorityResponse || (GetWaiverPriorityResponse = {}));
457
515
 
458
516
  // api/resources/mcp/client/requests/InvokeMcpToolRequest.ts
459
517
  var InvokeMcpToolRequest;
@@ -541,17 +599,53 @@ var ListMlbPlayersRequestStatus = {
541
599
  Inactive: "inactive"
542
600
  };
543
601
 
602
+ // api/resources/multi/client/requests/BatchPlayerSignalsRequest.ts
603
+ var BatchPlayerSignalsRequest;
604
+ ((BatchPlayerSignalsRequest2) => {
605
+ let Players;
606
+ ((Players2) => {
607
+ let Item;
608
+ ((Item2) => {
609
+ Item2.Sport = {
610
+ Nfl: "nfl",
611
+ Mlb: "mlb",
612
+ Nba: "nba",
613
+ Nhl: "nhl",
614
+ Golf: "golf",
615
+ Soccer: "soccer"
616
+ };
617
+ })(Item = Players2.Item || (Players2.Item = {}));
618
+ })(Players = BatchPlayerSignalsRequest2.Players || (BatchPlayerSignalsRequest2.Players = {}));
619
+ })(BatchPlayerSignalsRequest || (BatchPlayerSignalsRequest = {}));
620
+
621
+ // api/resources/multi/client/requests/BatchPlayersRequest.ts
622
+ var BatchPlayersRequest;
623
+ ((BatchPlayersRequest2) => {
624
+ let Include;
625
+ ((Include2) => {
626
+ Include2.Item = {
627
+ Stats: "stats",
628
+ Injuries: "injuries",
629
+ Anomalies: "anomalies"
630
+ };
631
+ })(Include = BatchPlayersRequest2.Include || (BatchPlayersRequest2.Include = {}));
632
+ })(BatchPlayersRequest || (BatchPlayersRequest = {}));
633
+
544
634
  // api/resources/multi/index.ts
545
635
  var multi_exports = {};
546
636
  __export(multi_exports, {
637
+ BatchPlayerSignalsRequest: () => BatchPlayerSignalsRequest,
638
+ BatchPlayersRequest: () => BatchPlayersRequest,
547
639
  ComparePlayersRequestSport: () => ComparePlayersRequestSport,
548
640
  GetGamesHistoryRequestSport: () => GetGamesHistoryRequestSport,
641
+ GetOddsHistoryRequestSport: () => GetOddsHistoryRequestSport,
549
642
  GetPlayerAlphaMetricsRequestSport: () => GetPlayerAlphaMetricsRequestSport,
550
643
  GetPlayerNewsRequestSport: () => GetPlayerNewsRequestSport,
551
644
  GetPlayerNewsResponse: () => GetPlayerNewsResponse,
552
645
  GetSimilarPlayersRequestSport: () => GetSimilarPlayersRequestSport,
553
646
  GetTeamInjuriesRequestSport: () => GetTeamInjuriesRequestSport,
554
647
  GetTeamInjuriesResponse: () => GetTeamInjuriesResponse,
648
+ GetTeamRosterPulseRequestSport: () => GetTeamRosterPulseRequestSport,
555
649
  GetTeamScheduleRequestSport: () => GetTeamScheduleRequestSport,
556
650
  GetTeamScheduleRequestStatus: () => GetTeamScheduleRequestStatus,
557
651
  GetTrendingRequestSport: () => GetTrendingRequestSport,
@@ -574,6 +668,14 @@ var GetGamesHistoryRequestSport = {
574
668
  Mlb: "mlb"
575
669
  };
576
670
 
671
+ // api/resources/multi/types/GetOddsHistoryRequestSport.ts
672
+ var GetOddsHistoryRequestSport = {
673
+ Nfl: "nfl",
674
+ Nba: "nba",
675
+ Mlb: "mlb",
676
+ Nhl: "nhl"
677
+ };
678
+
577
679
  // api/resources/multi/types/GetPlayerAlphaMetricsRequestSport.ts
578
680
  var GetPlayerAlphaMetricsRequestSport = {
579
681
  Nfl: "nfl",
@@ -638,6 +740,14 @@ var GetTeamInjuriesResponse;
638
740
  })(Data = GetTeamInjuriesResponse2.Data || (GetTeamInjuriesResponse2.Data = {}));
639
741
  })(GetTeamInjuriesResponse || (GetTeamInjuriesResponse = {}));
640
742
 
743
+ // api/resources/multi/types/GetTeamRosterPulseRequestSport.ts
744
+ var GetTeamRosterPulseRequestSport = {
745
+ Nfl: "nfl",
746
+ Nba: "nba",
747
+ Mlb: "mlb",
748
+ Nhl: "nhl"
749
+ };
750
+
641
751
  // api/resources/multi/types/GetTeamScheduleRequestSport.ts
642
752
  var GetTeamScheduleRequestSport = {
643
753
  Nfl: "nfl",
@@ -752,9 +862,25 @@ var ListNbaTeamsRequestConference = {
752
862
  West: "West"
753
863
  };
754
864
 
865
+ // api/resources/nfl/client/requests/GetNflCustomRankingsRequest.ts
866
+ var GetNflCustomRankingsRequest;
867
+ ((GetNflCustomRankingsRequest2) => {
868
+ GetNflCustomRankingsRequest2.Position = {
869
+ Qb: "QB",
870
+ Rb: "RB",
871
+ Wr: "WR",
872
+ Te: "TE",
873
+ K: "K"
874
+ };
875
+ })(GetNflCustomRankingsRequest || (GetNflCustomRankingsRequest = {}));
876
+
755
877
  // api/resources/nfl/index.ts
756
878
  var nfl_exports = {};
757
879
  __export(nfl_exports, {
880
+ GetNflCustomRankingsRequest: () => GetNflCustomRankingsRequest,
881
+ GetNflDepthChartChangesRequestChangeType: () => GetNflDepthChartChangesRequestChangeType,
882
+ GetNflDepthChartChangesRequestPosition: () => GetNflDepthChartChangesRequestPosition,
883
+ GetNflDepthChartChangesResponse: () => GetNflDepthChartChangesResponse,
758
884
  GetNflRankingsRequestFormat: () => GetNflRankingsRequestFormat,
759
885
  GetNflRankingsRequestPosition: () => GetNflRankingsRequestPosition,
760
886
  GetNflRankingsResponse: () => GetNflRankingsResponse,
@@ -765,6 +891,39 @@ __export(nfl_exports, {
765
891
  ListNflTeamsRequestConference: () => ListNflTeamsRequestConference
766
892
  });
767
893
 
894
+ // api/resources/nfl/types/GetNflDepthChartChangesRequestChangeType.ts
895
+ var GetNflDepthChartChangesRequestChangeType = {
896
+ Promoted: "promoted",
897
+ Demoted: "demoted",
898
+ Added: "added",
899
+ Removed: "removed"
900
+ };
901
+
902
+ // api/resources/nfl/types/GetNflDepthChartChangesRequestPosition.ts
903
+ var GetNflDepthChartChangesRequestPosition = {
904
+ Qb: "QB",
905
+ Rb: "RB",
906
+ Wr: "WR",
907
+ Te: "TE"
908
+ };
909
+
910
+ // api/resources/nfl/types/GetNflDepthChartChangesResponse.ts
911
+ var GetNflDepthChartChangesResponse;
912
+ ((GetNflDepthChartChangesResponse2) => {
913
+ let Data;
914
+ ((Data2) => {
915
+ let Item;
916
+ ((Item2) => {
917
+ Item2.ChangeType = {
918
+ Promoted: "promoted",
919
+ Demoted: "demoted",
920
+ Added: "added",
921
+ Removed: "removed"
922
+ };
923
+ })(Item = Data2.Item || (Data2.Item = {}));
924
+ })(Data = GetNflDepthChartChangesResponse2.Data || (GetNflDepthChartChangesResponse2.Data = {}));
925
+ })(GetNflDepthChartChangesResponse || (GetNflDepthChartChangesResponse = {}));
926
+
768
927
  // api/resources/nfl/types/GetNflRankingsRequestFormat.ts
769
928
  var GetNflRankingsRequestFormat = {
770
929
  Ppr: "ppr",
@@ -2625,7 +2784,7 @@ function withNoOpAuthProvider(options) {
2625
2784
 
2626
2785
  // environments.ts
2627
2786
  var PlaycallerApiEnvironment = {
2628
- Production: "https://playcallerapp.com"
2787
+ Production: "https://api.playcallerapp.com"
2629
2788
  };
2630
2789
 
2631
2790
  // errors/handleNonStatusCodeError.ts
@@ -4250,36 +4409,37 @@ var IntelligenceClient = class {
4250
4409
  }
4251
4410
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/analytics/trends");
4252
4411
  }
4253
- };
4254
-
4255
- // api/resources/leagues/client/Client.ts
4256
- var LeaguesClient = class {
4257
- constructor(options = {}) {
4258
- this._options = normalizeClientOptionsWithAuth(options);
4259
- }
4260
4412
  /**
4261
- * Returns standings, parity index, and Pythagorean playoff probabilities for all teams in a native PlayCaller league. The API key's email must match an active league member.
4413
+ * Full beat reporter signal feed with sport, severity, and type filters. More flexible than `/intelligence/news` — supports date ranges up to 200 signals, all sports, and granular filtering. Signals are refreshed continuously from ESPN, Reddit, and AI-extracted injury intel.
4262
4414
  *
4263
- * **Tier access:** Developer Sandbox, Build, Growth, Pro Insights, Syndicate Alpha
4415
+ * **Tier access:** Pro Insights, Syndicate Alpha
4264
4416
  *
4265
- * @param {PlaycallerApi.GetLeagueHealthRequest} request
4266
- * @param {LeaguesClient.RequestOptions} requestOptions - Request-specific configuration.
4417
+ * @param {PlaycallerApi.GetIntelligenceSignalsRequest} request
4418
+ * @param {IntelligenceClient.RequestOptions} requestOptions - Request-specific configuration.
4267
4419
  *
4268
4420
  * @throws {@link PlaycallerApi.UnauthorizedError}
4269
- * @throws {@link PlaycallerApi.ForbiddenError}
4421
+ * @throws {@link PlaycallerApi.PaymentRequiredError}
4270
4422
  * @throws {@link PlaycallerApi.TooManyRequestsError}
4271
4423
  * @throws {@link PlaycallerApi.InternalServerError}
4272
4424
  *
4273
4425
  * @example
4274
- * await client.leagues.getLeagueHealth({
4275
- * leagueId: 1
4426
+ * await client.intelligence.getIntelligenceSignals({
4427
+ * type: "injury",
4428
+ * since: "2026-07-10"
4276
4429
  * })
4277
4430
  */
4278
- getLeagueHealth(request, requestOptions) {
4279
- return HttpResponsePromise.fromPromise(this.__getLeagueHealth(request, requestOptions));
4431
+ getIntelligenceSignals(request = {}, requestOptions) {
4432
+ return HttpResponsePromise.fromPromise(this.__getIntelligenceSignals(request, requestOptions));
4280
4433
  }
4281
- async __getLeagueHealth(request, requestOptions) {
4282
- const { leagueId } = request;
4434
+ async __getIntelligenceSignals(request = {}, requestOptions) {
4435
+ const { sport, severity, type: type_, since, limit } = request;
4436
+ const _queryParams = {
4437
+ sport: sport != null ? sport : void 0,
4438
+ severity: severity != null ? severity : void 0,
4439
+ type: type_,
4440
+ since: since != null ? since : void 0,
4441
+ limit
4442
+ };
4283
4443
  const _authRequest = await this._options.authProvider.getAuthRequest();
4284
4444
  const _headers = mergeHeaders(
4285
4445
  _authRequest.headers,
@@ -4289,11 +4449,11 @@ var LeaguesClient = class {
4289
4449
  const _response = await fetcher({
4290
4450
  url: url_exports.join(
4291
4451
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? PlaycallerApiEnvironment.Production,
4292
- `v1/leagues/${url_exports.encodePathParam(leagueId)}/health`
4452
+ "v1/intelligence/signals"
4293
4453
  ),
4294
4454
  method: "GET",
4295
4455
  headers: _headers,
4296
- queryString: url_exports.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
4456
+ queryString: url_exports.queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions?.queryParams).build(),
4297
4457
  timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
4298
4458
  maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
4299
4459
  abortSignal: requestOptions?.abortSignal,
@@ -4313,8 +4473,8 @@ var LeaguesClient = class {
4313
4473
  _response.error.body,
4314
4474
  _response.rawResponse
4315
4475
  );
4316
- case 403:
4317
- throw new ForbiddenError(
4476
+ case 402:
4477
+ throw new PaymentRequiredError(
4318
4478
  _response.error.body,
4319
4479
  _response.rawResponse
4320
4480
  );
@@ -4336,32 +4496,36 @@ var LeaguesClient = class {
4336
4496
  });
4337
4497
  }
4338
4498
  }
4339
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/leagues/{leagueId}/health");
4499
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/intelligence/signals");
4340
4500
  }
4341
4501
  /**
4342
- * Uses Claude Haiku to recommend optimal starters from your current roster, considering matchups, recent form, and injury status. Cached for 1 hour. The API key's email must match an active league member.
4502
+ * Returns per-week NFL confidence model predictions for a player, including resolved outcomes (actual fantasy points vs. positional median) and rolling hit rate. Useful for validating our model's accuracy on specific players and building ML training pipelines.
4343
4503
  *
4344
- * **Tier access:** Developer Sandbox, Build, Growth, Pro Insights, Syndicate Alpha
4504
+ * **Tier access:** Pro Insights, Syndicate Alpha
4345
4505
  *
4346
- * @param {PlaycallerApi.GetLeagueStartSitRequest} request
4347
- * @param {LeaguesClient.RequestOptions} requestOptions - Request-specific configuration.
4506
+ * @param {PlaycallerApi.GetModelPredictionsRequest} request
4507
+ * @param {IntelligenceClient.RequestOptions} requestOptions - Request-specific configuration.
4348
4508
  *
4349
4509
  * @throws {@link PlaycallerApi.UnauthorizedError}
4350
- * @throws {@link PlaycallerApi.ForbiddenError}
4351
- * @throws {@link PlaycallerApi.NotFoundError}
4510
+ * @throws {@link PlaycallerApi.PaymentRequiredError}
4352
4511
  * @throws {@link PlaycallerApi.TooManyRequestsError}
4353
4512
  * @throws {@link PlaycallerApi.InternalServerError}
4354
4513
  *
4355
4514
  * @example
4356
- * await client.leagues.getLeagueStartSit({
4357
- * leagueId: 1
4515
+ * await client.intelligence.getModelPredictions({
4516
+ * playerId: "playerId"
4358
4517
  * })
4359
4518
  */
4360
- getLeagueStartSit(request, requestOptions) {
4361
- return HttpResponsePromise.fromPromise(this.__getLeagueStartSit(request, requestOptions));
4519
+ getModelPredictions(request, requestOptions) {
4520
+ return HttpResponsePromise.fromPromise(this.__getModelPredictions(request, requestOptions));
4362
4521
  }
4363
- async __getLeagueStartSit(request, requestOptions) {
4364
- const { leagueId } = request;
4522
+ async __getModelPredictions(request, requestOptions) {
4523
+ const { playerId, limit, season, model_type: modelType } = request;
4524
+ const _queryParams = {
4525
+ limit,
4526
+ season,
4527
+ model_type: modelType
4528
+ };
4365
4529
  const _authRequest = await this._options.authProvider.getAuthRequest();
4366
4530
  const _headers = mergeHeaders(
4367
4531
  _authRequest.headers,
@@ -4371,11 +4535,11 @@ var LeaguesClient = class {
4371
4535
  const _response = await fetcher({
4372
4536
  url: url_exports.join(
4373
4537
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? PlaycallerApiEnvironment.Production,
4374
- `v1/leagues/${url_exports.encodePathParam(leagueId)}/start-sit`
4538
+ `v1/model/predictions/${url_exports.encodePathParam(playerId)}`
4375
4539
  ),
4376
4540
  method: "GET",
4377
4541
  headers: _headers,
4378
- queryString: url_exports.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
4542
+ queryString: url_exports.queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions?.queryParams).build(),
4379
4543
  timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
4380
4544
  maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
4381
4545
  abortSignal: requestOptions?.abortSignal,
@@ -4395,13 +4559,11 @@ var LeaguesClient = class {
4395
4559
  _response.error.body,
4396
4560
  _response.rawResponse
4397
4561
  );
4398
- case 403:
4399
- throw new ForbiddenError(
4562
+ case 402:
4563
+ throw new PaymentRequiredError(
4400
4564
  _response.error.body,
4401
4565
  _response.rawResponse
4402
4566
  );
4403
- case 404:
4404
- throw new NotFoundError(_response.error.body, _response.rawResponse);
4405
4567
  case 429:
4406
4568
  throw new TooManyRequestsError(
4407
4569
  _response.error.body,
@@ -4424,35 +4586,37 @@ var LeaguesClient = class {
4424
4586
  _response.error,
4425
4587
  _response.rawResponse,
4426
4588
  "GET",
4427
- "/v1/leagues/{leagueId}/start-sit"
4589
+ "/v1/model/predictions/{playerId}"
4428
4590
  );
4429
4591
  }
4430
4592
  /**
4431
- * Submits a proposed trade for AI analysis. Returns a win/loss/fair verdict with per-player assessments, KTC dynasty values (NFL/NBA/MLB), confidence scores, and recent PPG context. The API key's email must match an active league member.
4593
+ * Returns a ranked list of waiver-eligible players ordered by anomaly signal strength. Combines usage spikes, snap-share shifts, and target-rate anomalies into a single priority score — no client-side merging required. Optionally excludes injured players.
4432
4594
  *
4433
- * **Tier access:** Pro Insights, Syndicate Alpha
4595
+ * **Tier access:** Growth, Pro Insights, Syndicate Alpha
4434
4596
  *
4435
- * @param {PlaycallerApi.EvaluateTradeRequest} request
4436
- * @param {LeaguesClient.RequestOptions} requestOptions - Request-specific configuration.
4597
+ * @param {PlaycallerApi.GetWaiverPriorityRequest} request
4598
+ * @param {IntelligenceClient.RequestOptions} requestOptions - Request-specific configuration.
4437
4599
  *
4438
- * @throws {@link PlaycallerApi.BadRequestError}
4439
4600
  * @throws {@link PlaycallerApi.UnauthorizedError}
4440
- * @throws {@link PlaycallerApi.ForbiddenError}
4601
+ * @throws {@link PlaycallerApi.PaymentRequiredError}
4441
4602
  * @throws {@link PlaycallerApi.TooManyRequestsError}
4442
4603
  * @throws {@link PlaycallerApi.InternalServerError}
4443
4604
  *
4444
4605
  * @example
4445
- * await client.leagues.evaluateTrade({
4446
- * leagueId: 1,
4447
- * give: ["pc_nfl_2374"],
4448
- * get: ["pc_nfl_4046"]
4606
+ * await client.intelligence.getWaiverPriority({
4607
+ * sport: "nfl"
4449
4608
  * })
4450
4609
  */
4451
- evaluateTrade(request, requestOptions) {
4452
- return HttpResponsePromise.fromPromise(this.__evaluateTrade(request, requestOptions));
4610
+ getWaiverPriority(request, requestOptions) {
4611
+ return HttpResponsePromise.fromPromise(this.__getWaiverPriority(request, requestOptions));
4453
4612
  }
4454
- async __evaluateTrade(request, requestOptions) {
4455
- const { leagueId, ..._body } = request;
4613
+ async __getWaiverPriority(request, requestOptions) {
4614
+ const { sport, limit, position, exclude_injured: excludeInjured } = request;
4615
+ const _queryParams = {
4616
+ limit,
4617
+ position,
4618
+ exclude_injured: excludeInjured
4619
+ };
4456
4620
  const _authRequest = await this._options.authProvider.getAuthRequest();
4457
4621
  const _headers = mergeHeaders(
4458
4622
  _authRequest.headers,
@@ -4462,14 +4626,11 @@ var LeaguesClient = class {
4462
4626
  const _response = await fetcher({
4463
4627
  url: url_exports.join(
4464
4628
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? PlaycallerApiEnvironment.Production,
4465
- `v1/leagues/${url_exports.encodePathParam(leagueId)}/trade/evaluate`
4629
+ `v1/${url_exports.encodePathParam(sport)}/waiver-priority`
4466
4630
  ),
4467
- method: "POST",
4631
+ method: "GET",
4468
4632
  headers: _headers,
4469
- contentType: "application/json",
4470
- queryString: url_exports.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
4471
- requestType: "json",
4472
- body: _body,
4633
+ queryString: url_exports.queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions?.queryParams).build(),
4473
4634
  timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
4474
4635
  maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
4475
4636
  abortSignal: requestOptions?.abortSignal,
@@ -4477,19 +4638,20 @@ var LeaguesClient = class {
4477
4638
  logging: this._options.logging
4478
4639
  });
4479
4640
  if (_response.ok) {
4480
- return { data: _response.body, rawResponse: _response.rawResponse };
4641
+ return {
4642
+ data: _response.body,
4643
+ rawResponse: _response.rawResponse
4644
+ };
4481
4645
  }
4482
4646
  if (_response.error.reason === "status-code") {
4483
4647
  switch (_response.error.statusCode) {
4484
- case 400:
4485
- throw new BadRequestError(_response.error.body, _response.rawResponse);
4486
4648
  case 401:
4487
4649
  throw new UnauthorizedError(
4488
4650
  _response.error.body,
4489
4651
  _response.rawResponse
4490
4652
  );
4491
- case 403:
4492
- throw new ForbiddenError(
4653
+ case 402:
4654
+ throw new PaymentRequiredError(
4493
4655
  _response.error.body,
4494
4656
  _response.rawResponse
4495
4657
  );
@@ -4511,12 +4673,7 @@ var LeaguesClient = class {
4511
4673
  });
4512
4674
  }
4513
4675
  }
4514
- return handleNonStatusCodeError(
4515
- _response.error,
4516
- _response.rawResponse,
4517
- "POST",
4518
- "/v1/leagues/{leagueId}/trade/evaluate"
4519
- );
4676
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/{sport}/waiver-priority");
4520
4677
  }
4521
4678
  };
4522
4679
 
@@ -4588,7 +4745,7 @@ var McpClient = class {
4588
4745
  * {
4589
4746
  * "mcpServers": {
4590
4747
  * "playcaller": {
4591
- * "url": "https://playcallerapp.com/mcp",
4748
+ * "url": "https://api.playcallerapp.com/mcp",
4592
4749
  * "headers": { "X-PlayCaller-Key": "YOUR_API_KEY" }
4593
4750
  * }
4594
4751
  * }
@@ -4597,7 +4754,7 @@ var McpClient = class {
4597
4754
  *
4598
4755
  * **Get a free trial key instantly — no card required:**
4599
4756
  * ```bash
4600
- * curl -X POST https://playcallerapp.com/mcp/start-trial \
4757
+ * curl -X POST https://api.playcallerapp.com/mcp/start-trial \
4601
4758
  * -H "Content-Type: application/json" \
4602
4759
  * -d '{"email": "you@example.com"}'
4603
4760
  * ```
@@ -5471,6 +5628,94 @@ var MlbClient = class {
5471
5628
  }
5472
5629
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/mlb/scoring/categories");
5473
5630
  }
5631
+ /**
5632
+ * Recent MLB roster transactions including IL placements/activations, DFA designations, trade acquisitions, and minor-league call-ups. Sourced from MLB Stats API (statsapi.mlb.com). Cached 1 hour.
5633
+ *
5634
+ * **Tier access:** Build, Growth, Pro Insights, Syndicate Alpha
5635
+ *
5636
+ * @param {PlaycallerApi.GetMlbTransactionsRequest} request
5637
+ * @param {MlbClient.RequestOptions} requestOptions - Request-specific configuration.
5638
+ *
5639
+ * @throws {@link PlaycallerApi.UnauthorizedError}
5640
+ * @throws {@link PlaycallerApi.PaymentRequiredError}
5641
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
5642
+ * @throws {@link PlaycallerApi.InternalServerError}
5643
+ *
5644
+ * @example
5645
+ * await client.mlb.getMlbTransactions({
5646
+ * startDate: "2026-07-10",
5647
+ * endDate: "2026-07-17",
5648
+ * type: "IL"
5649
+ * })
5650
+ */
5651
+ getMlbTransactions(request = {}, requestOptions) {
5652
+ return HttpResponsePromise.fromPromise(this.__getMlbTransactions(request, requestOptions));
5653
+ }
5654
+ async __getMlbTransactions(request = {}, requestOptions) {
5655
+ const { startDate, endDate, type: type_ } = request;
5656
+ const _queryParams = {
5657
+ startDate: startDate != null ? startDate : void 0,
5658
+ endDate: endDate != null ? endDate : void 0,
5659
+ type: type_
5660
+ };
5661
+ const _authRequest = await this._options.authProvider.getAuthRequest();
5662
+ const _headers = mergeHeaders(
5663
+ _authRequest.headers,
5664
+ this._options?.headers,
5665
+ requestOptions?.headers
5666
+ );
5667
+ const _response = await fetcher({
5668
+ url: url_exports.join(
5669
+ await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? PlaycallerApiEnvironment.Production,
5670
+ "v1/mlb/transactions"
5671
+ ),
5672
+ method: "GET",
5673
+ headers: _headers,
5674
+ queryString: url_exports.queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions?.queryParams).build(),
5675
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
5676
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
5677
+ abortSignal: requestOptions?.abortSignal,
5678
+ fetchFn: this._options?.fetch,
5679
+ logging: this._options.logging
5680
+ });
5681
+ if (_response.ok) {
5682
+ return {
5683
+ data: _response.body,
5684
+ rawResponse: _response.rawResponse
5685
+ };
5686
+ }
5687
+ if (_response.error.reason === "status-code") {
5688
+ switch (_response.error.statusCode) {
5689
+ case 401:
5690
+ throw new UnauthorizedError(
5691
+ _response.error.body,
5692
+ _response.rawResponse
5693
+ );
5694
+ case 402:
5695
+ throw new PaymentRequiredError(
5696
+ _response.error.body,
5697
+ _response.rawResponse
5698
+ );
5699
+ case 429:
5700
+ throw new TooManyRequestsError(
5701
+ _response.error.body,
5702
+ _response.rawResponse
5703
+ );
5704
+ case 500:
5705
+ throw new InternalServerError(
5706
+ _response.error.body,
5707
+ _response.rawResponse
5708
+ );
5709
+ default:
5710
+ throw new PlaycallerApiError({
5711
+ statusCode: _response.error.statusCode,
5712
+ body: _response.error.body,
5713
+ rawResponse: _response.rawResponse
5714
+ });
5715
+ }
5716
+ }
5717
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/mlb/transactions");
5718
+ }
5474
5719
  };
5475
5720
 
5476
5721
  // api/resources/multi/client/Client.ts
@@ -5678,31 +5923,30 @@ var MultiClient = class {
5678
5923
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/players/similar/{id}");
5679
5924
  }
5680
5925
  /**
5681
- * Returns active beat reporter signals and injury reports for a specific player. Works across NFL, MLB, NBA, NHL, and all covered sports. Signals are refreshed every 2 hours.
5926
+ * Returns a paginated, time-ordered audit trail of key management events (key rotation, IP allowlist changes) and administrative actions associated with your API key. Rolling 90-day retention.
5682
5927
  *
5683
- * **Tier access:** Developer Sandbox, Build, Growth, Pro Insights, Syndicate Alpha
5928
+ * **Tier access:** Build, Growth, Pro Insights, Syndicate Alpha
5684
5929
  *
5685
- * @param {PlaycallerApi.GetPlayerNewsRequest} request
5930
+ * @param {PlaycallerApi.GetAuditEventsRequest} request
5686
5931
  * @param {MultiClient.RequestOptions} requestOptions - Request-specific configuration.
5687
5932
  *
5688
5933
  * @throws {@link PlaycallerApi.UnauthorizedError}
5689
- * @throws {@link PlaycallerApi.NotFoundError}
5934
+ * @throws {@link PlaycallerApi.PaymentRequiredError}
5690
5935
  * @throws {@link PlaycallerApi.TooManyRequestsError}
5691
5936
  * @throws {@link PlaycallerApi.InternalServerError}
5692
5937
  *
5693
5938
  * @example
5694
- * await client.multi.getPlayerNews({
5695
- * sport: "nfl",
5696
- * id: "pc_nfl_001234"
5697
- * })
5939
+ * await client.multi.getAuditEvents()
5698
5940
  */
5699
- getPlayerNews(request, requestOptions) {
5700
- return HttpResponsePromise.fromPromise(this.__getPlayerNews(request, requestOptions));
5941
+ getAuditEvents(request = {}, requestOptions) {
5942
+ return HttpResponsePromise.fromPromise(this.__getAuditEvents(request, requestOptions));
5701
5943
  }
5702
- async __getPlayerNews(request, requestOptions) {
5703
- const { sport, id, limit } = request;
5944
+ async __getAuditEvents(request = {}, requestOptions) {
5945
+ const { limit, before, action } = request;
5704
5946
  const _queryParams = {
5705
- limit
5947
+ limit,
5948
+ before: before != null ? before : void 0,
5949
+ action
5706
5950
  };
5707
5951
  const _authRequest = await this._options.authProvider.getAuthRequest();
5708
5952
  const _headers = mergeHeaders(
@@ -5713,7 +5957,7 @@ var MultiClient = class {
5713
5957
  const _response = await fetcher({
5714
5958
  url: url_exports.join(
5715
5959
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? PlaycallerApiEnvironment.Production,
5716
- `v1/${url_exports.encodePathParam(sport)}/players/${url_exports.encodePathParam(id)}/news`
5960
+ "v1/audit/events"
5717
5961
  ),
5718
5962
  method: "GET",
5719
5963
  headers: _headers,
@@ -5734,8 +5978,11 @@ var MultiClient = class {
5734
5978
  _response.error.body,
5735
5979
  _response.rawResponse
5736
5980
  );
5737
- case 404:
5738
- throw new NotFoundError(_response.error.body, _response.rawResponse);
5981
+ case 402:
5982
+ throw new PaymentRequiredError(
5983
+ _response.error.body,
5984
+ _response.rawResponse
5985
+ );
5739
5986
  case 429:
5740
5987
  throw new TooManyRequestsError(
5741
5988
  _response.error.body,
@@ -5754,34 +6001,35 @@ var MultiClient = class {
5754
6001
  });
5755
6002
  }
5756
6003
  }
5757
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/{sport}/players/{id}/news");
6004
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/audit/events");
5758
6005
  }
5759
6006
  /**
5760
- * Returns all active beat reporter injury signals for a given team — every player with a reported injury, sorted by severity. Useful for opponent analysis, weekly lineup decisions, and DFS game-day research.
6007
+ * Fetch ML signals for up to 25 players in a single request. Returns confidence score, confidence tier, alpha metrics, and ADP for each player. Each player in the batch counts as one call against your daily limit.
5761
6008
  *
5762
- * **Tier access:** Developer Sandbox, Build, Growth, Pro Insights, Syndicate Alpha
6009
+ * Supported sports for confidence: NFL, MLB, NBA, NHL. Golf and Soccer return `confidence_score: null` (no validated model).
5763
6010
  *
5764
- * @param {PlaycallerApi.GetTeamInjuriesRequest} request
6011
+ * **Tier access:** Pro Insights, Syndicate Alpha
6012
+ *
6013
+ * @param {PlaycallerApi.BatchPlayerSignalsRequest} request
5765
6014
  * @param {MultiClient.RequestOptions} requestOptions - Request-specific configuration.
5766
6015
  *
5767
6016
  * @throws {@link PlaycallerApi.UnauthorizedError}
6017
+ * @throws {@link PlaycallerApi.PaymentRequiredError}
5768
6018
  * @throws {@link PlaycallerApi.TooManyRequestsError}
5769
6019
  * @throws {@link PlaycallerApi.InternalServerError}
5770
6020
  *
5771
6021
  * @example
5772
- * await client.multi.getTeamInjuries({
5773
- * sport: "nfl",
5774
- * team: "KC"
6022
+ * await client.multi.batchPlayerSignals({
6023
+ * players: [{
6024
+ * player_id: "pc_nfl_001234",
6025
+ * sport: "nfl"
6026
+ * }]
5775
6027
  * })
5776
6028
  */
5777
- getTeamInjuries(request, requestOptions) {
5778
- return HttpResponsePromise.fromPromise(this.__getTeamInjuries(request, requestOptions));
6029
+ batchPlayerSignals(request, requestOptions) {
6030
+ return HttpResponsePromise.fromPromise(this.__batchPlayerSignals(request, requestOptions));
5779
6031
  }
5780
- async __getTeamInjuries(request, requestOptions) {
5781
- const { sport, team, limit } = request;
5782
- const _queryParams = {
5783
- limit
5784
- };
6032
+ async __batchPlayerSignals(request, requestOptions) {
5785
6033
  const _authRequest = await this._options.authProvider.getAuthRequest();
5786
6034
  const _headers = mergeHeaders(
5787
6035
  _authRequest.headers,
@@ -5791,9 +6039,432 @@ var MultiClient = class {
5791
6039
  const _response = await fetcher({
5792
6040
  url: url_exports.join(
5793
6041
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? PlaycallerApiEnvironment.Production,
5794
- `v1/${url_exports.encodePathParam(sport)}/teams/${url_exports.encodePathParam(team)}/injuries`
6042
+ "v1/batch/signals"
5795
6043
  ),
5796
- method: "GET",
6044
+ method: "POST",
6045
+ headers: _headers,
6046
+ contentType: "application/json",
6047
+ queryString: url_exports.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
6048
+ requestType: "json",
6049
+ body: request,
6050
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
6051
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
6052
+ abortSignal: requestOptions?.abortSignal,
6053
+ fetchFn: this._options?.fetch,
6054
+ logging: this._options.logging
6055
+ });
6056
+ if (_response.ok) {
6057
+ return {
6058
+ data: _response.body,
6059
+ rawResponse: _response.rawResponse
6060
+ };
6061
+ }
6062
+ if (_response.error.reason === "status-code") {
6063
+ switch (_response.error.statusCode) {
6064
+ case 401:
6065
+ throw new UnauthorizedError(
6066
+ _response.error.body,
6067
+ _response.rawResponse
6068
+ );
6069
+ case 402:
6070
+ throw new PaymentRequiredError(
6071
+ _response.error.body,
6072
+ _response.rawResponse
6073
+ );
6074
+ case 429:
6075
+ throw new TooManyRequestsError(
6076
+ _response.error.body,
6077
+ _response.rawResponse
6078
+ );
6079
+ case 500:
6080
+ throw new InternalServerError(
6081
+ _response.error.body,
6082
+ _response.rawResponse
6083
+ );
6084
+ default:
6085
+ throw new PlaycallerApiError({
6086
+ statusCode: _response.error.statusCode,
6087
+ body: _response.error.body,
6088
+ rawResponse: _response.rawResponse
6089
+ });
6090
+ }
6091
+ }
6092
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/batch/signals");
6093
+ }
6094
+ /**
6095
+ * Returns all captured odds snapshots for a specific game, ordered chronologically. Useful for detecting line movement, sharp action, and steam moves. History depth depends on how early the game was tracked.
6096
+ *
6097
+ * **Tier access:** Pro Insights, Syndicate Alpha
6098
+ *
6099
+ * @param {PlaycallerApi.GetOddsHistoryRequest} request
6100
+ * @param {MultiClient.RequestOptions} requestOptions - Request-specific configuration.
6101
+ *
6102
+ * @throws {@link PlaycallerApi.UnauthorizedError}
6103
+ * @throws {@link PlaycallerApi.PaymentRequiredError}
6104
+ * @throws {@link PlaycallerApi.NotFoundError}
6105
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
6106
+ * @throws {@link PlaycallerApi.InternalServerError}
6107
+ *
6108
+ * @example
6109
+ * await client.multi.getOddsHistory({
6110
+ * sport: "nfl",
6111
+ * gameId: "abc12345"
6112
+ * })
6113
+ */
6114
+ getOddsHistory(request, requestOptions) {
6115
+ return HttpResponsePromise.fromPromise(this.__getOddsHistory(request, requestOptions));
6116
+ }
6117
+ async __getOddsHistory(request, requestOptions) {
6118
+ const { sport, gameId } = request;
6119
+ const _authRequest = await this._options.authProvider.getAuthRequest();
6120
+ const _headers = mergeHeaders(
6121
+ _authRequest.headers,
6122
+ this._options?.headers,
6123
+ requestOptions?.headers
6124
+ );
6125
+ const _response = await fetcher({
6126
+ url: url_exports.join(
6127
+ await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? PlaycallerApiEnvironment.Production,
6128
+ `v1/${url_exports.encodePathParam(sport)}/odds/history/${url_exports.encodePathParam(gameId)}`
6129
+ ),
6130
+ method: "GET",
6131
+ headers: _headers,
6132
+ queryString: url_exports.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
6133
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
6134
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
6135
+ abortSignal: requestOptions?.abortSignal,
6136
+ fetchFn: this._options?.fetch,
6137
+ logging: this._options.logging
6138
+ });
6139
+ if (_response.ok) {
6140
+ return { data: _response.body, rawResponse: _response.rawResponse };
6141
+ }
6142
+ if (_response.error.reason === "status-code") {
6143
+ switch (_response.error.statusCode) {
6144
+ case 401:
6145
+ throw new UnauthorizedError(
6146
+ _response.error.body,
6147
+ _response.rawResponse
6148
+ );
6149
+ case 402:
6150
+ throw new PaymentRequiredError(
6151
+ _response.error.body,
6152
+ _response.rawResponse
6153
+ );
6154
+ case 404:
6155
+ throw new NotFoundError(_response.error.body, _response.rawResponse);
6156
+ case 429:
6157
+ throw new TooManyRequestsError(
6158
+ _response.error.body,
6159
+ _response.rawResponse
6160
+ );
6161
+ case 500:
6162
+ throw new InternalServerError(
6163
+ _response.error.body,
6164
+ _response.rawResponse
6165
+ );
6166
+ default:
6167
+ throw new PlaycallerApiError({
6168
+ statusCode: _response.error.statusCode,
6169
+ body: _response.error.body,
6170
+ rawResponse: _response.rawResponse
6171
+ });
6172
+ }
6173
+ }
6174
+ return handleNonStatusCodeError(
6175
+ _response.error,
6176
+ _response.rawResponse,
6177
+ "GET",
6178
+ "/v1/{sport}/odds/history/{gameId}"
6179
+ );
6180
+ }
6181
+ /**
6182
+ * Single-call team lineup intelligence: returns the current roster, recent injury updates, depth chart changes (NFL only), and active anomaly signals for any player on the team. Aggregates 4 data sources in one request. Counts as 4 requests toward your rate limit (`X-PC-Request-Weight: 4` response header).
6183
+ *
6184
+ * **Tier access:** Growth, Pro Insights, Syndicate Alpha
6185
+ *
6186
+ * @param {PlaycallerApi.GetTeamRosterPulseRequest} request
6187
+ * @param {MultiClient.RequestOptions} requestOptions - Request-specific configuration.
6188
+ *
6189
+ * @throws {@link PlaycallerApi.UnauthorizedError}
6190
+ * @throws {@link PlaycallerApi.PaymentRequiredError}
6191
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
6192
+ * @throws {@link PlaycallerApi.InternalServerError}
6193
+ *
6194
+ * @example
6195
+ * await client.multi.getTeamRosterPulse({
6196
+ * sport: "nfl",
6197
+ * team: "KC"
6198
+ * })
6199
+ */
6200
+ getTeamRosterPulse(request, requestOptions) {
6201
+ return HttpResponsePromise.fromPromise(this.__getTeamRosterPulse(request, requestOptions));
6202
+ }
6203
+ async __getTeamRosterPulse(request, requestOptions) {
6204
+ const { sport, team } = request;
6205
+ const _authRequest = await this._options.authProvider.getAuthRequest();
6206
+ const _headers = mergeHeaders(
6207
+ _authRequest.headers,
6208
+ this._options?.headers,
6209
+ requestOptions?.headers
6210
+ );
6211
+ const _response = await fetcher({
6212
+ url: url_exports.join(
6213
+ await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? PlaycallerApiEnvironment.Production,
6214
+ `v1/${url_exports.encodePathParam(sport)}/teams/${url_exports.encodePathParam(team)}/roster-pulse`
6215
+ ),
6216
+ method: "GET",
6217
+ headers: _headers,
6218
+ queryString: url_exports.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
6219
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
6220
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
6221
+ abortSignal: requestOptions?.abortSignal,
6222
+ fetchFn: this._options?.fetch,
6223
+ logging: this._options.logging
6224
+ });
6225
+ if (_response.ok) {
6226
+ return {
6227
+ data: _response.body,
6228
+ rawResponse: _response.rawResponse
6229
+ };
6230
+ }
6231
+ if (_response.error.reason === "status-code") {
6232
+ switch (_response.error.statusCode) {
6233
+ case 401:
6234
+ throw new UnauthorizedError(
6235
+ _response.error.body,
6236
+ _response.rawResponse
6237
+ );
6238
+ case 402:
6239
+ throw new PaymentRequiredError(
6240
+ _response.error.body,
6241
+ _response.rawResponse
6242
+ );
6243
+ case 429:
6244
+ throw new TooManyRequestsError(
6245
+ _response.error.body,
6246
+ _response.rawResponse
6247
+ );
6248
+ case 500:
6249
+ throw new InternalServerError(
6250
+ _response.error.body,
6251
+ _response.rawResponse
6252
+ );
6253
+ default:
6254
+ throw new PlaycallerApiError({
6255
+ statusCode: _response.error.statusCode,
6256
+ body: _response.error.body,
6257
+ rawResponse: _response.rawResponse
6258
+ });
6259
+ }
6260
+ }
6261
+ return handleNonStatusCodeError(
6262
+ _response.error,
6263
+ _response.rawResponse,
6264
+ "GET",
6265
+ "/v1/{sport}/teams/{team}/roster-pulse"
6266
+ );
6267
+ }
6268
+ /**
6269
+ * Fetch profile, stats, and optional injury/anomaly data for up to 50 players in a single API call. Reduces round-trips for clients that need to hydrate a lineup, compare a watchlist, or build a dashboard.
6270
+ *
6271
+ * **Tier access:** Growth, Pro Insights, Syndicate Alpha
6272
+ *
6273
+ * @param {PlaycallerApi.BatchPlayersRequest} request
6274
+ * @param {MultiClient.RequestOptions} requestOptions - Request-specific configuration.
6275
+ *
6276
+ * @throws {@link PlaycallerApi.BadRequestError}
6277
+ * @throws {@link PlaycallerApi.UnauthorizedError}
6278
+ * @throws {@link PlaycallerApi.PaymentRequiredError}
6279
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
6280
+ * @throws {@link PlaycallerApi.InternalServerError}
6281
+ *
6282
+ * @example
6283
+ * await client.multi.batchPlayers({
6284
+ * player_ids: ["nfl_001234", "nfl_005678"]
6285
+ * })
6286
+ */
6287
+ batchPlayers(request, requestOptions) {
6288
+ return HttpResponsePromise.fromPromise(this.__batchPlayers(request, requestOptions));
6289
+ }
6290
+ async __batchPlayers(request, requestOptions) {
6291
+ const _authRequest = await this._options.authProvider.getAuthRequest();
6292
+ const _headers = mergeHeaders(
6293
+ _authRequest.headers,
6294
+ this._options?.headers,
6295
+ requestOptions?.headers
6296
+ );
6297
+ const _response = await fetcher({
6298
+ url: url_exports.join(
6299
+ await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? PlaycallerApiEnvironment.Production,
6300
+ "v1/batch/players"
6301
+ ),
6302
+ method: "POST",
6303
+ headers: _headers,
6304
+ contentType: "application/json",
6305
+ queryString: url_exports.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
6306
+ requestType: "json",
6307
+ body: request,
6308
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
6309
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
6310
+ abortSignal: requestOptions?.abortSignal,
6311
+ fetchFn: this._options?.fetch,
6312
+ logging: this._options.logging
6313
+ });
6314
+ if (_response.ok) {
6315
+ return { data: _response.body, rawResponse: _response.rawResponse };
6316
+ }
6317
+ if (_response.error.reason === "status-code") {
6318
+ switch (_response.error.statusCode) {
6319
+ case 400:
6320
+ throw new BadRequestError(_response.error.body, _response.rawResponse);
6321
+ case 401:
6322
+ throw new UnauthorizedError(
6323
+ _response.error.body,
6324
+ _response.rawResponse
6325
+ );
6326
+ case 402:
6327
+ throw new PaymentRequiredError(
6328
+ _response.error.body,
6329
+ _response.rawResponse
6330
+ );
6331
+ case 429:
6332
+ throw new TooManyRequestsError(
6333
+ _response.error.body,
6334
+ _response.rawResponse
6335
+ );
6336
+ case 500:
6337
+ throw new InternalServerError(
6338
+ _response.error.body,
6339
+ _response.rawResponse
6340
+ );
6341
+ default:
6342
+ throw new PlaycallerApiError({
6343
+ statusCode: _response.error.statusCode,
6344
+ body: _response.error.body,
6345
+ rawResponse: _response.rawResponse
6346
+ });
6347
+ }
6348
+ }
6349
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/batch/players");
6350
+ }
6351
+ /**
6352
+ * Returns active beat reporter signals and injury reports for a specific player. Works across NFL, MLB, NBA, NHL, and all covered sports. Signals are refreshed every 2 hours.
6353
+ *
6354
+ * **Tier access:** Developer Sandbox, Build, Growth, Pro Insights, Syndicate Alpha
6355
+ *
6356
+ * @param {PlaycallerApi.GetPlayerNewsRequest} request
6357
+ * @param {MultiClient.RequestOptions} requestOptions - Request-specific configuration.
6358
+ *
6359
+ * @throws {@link PlaycallerApi.UnauthorizedError}
6360
+ * @throws {@link PlaycallerApi.NotFoundError}
6361
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
6362
+ * @throws {@link PlaycallerApi.InternalServerError}
6363
+ *
6364
+ * @example
6365
+ * await client.multi.getPlayerNews({
6366
+ * sport: "nfl",
6367
+ * id: "pc_nfl_001234"
6368
+ * })
6369
+ */
6370
+ getPlayerNews(request, requestOptions) {
6371
+ return HttpResponsePromise.fromPromise(this.__getPlayerNews(request, requestOptions));
6372
+ }
6373
+ async __getPlayerNews(request, requestOptions) {
6374
+ const { sport, id, limit } = request;
6375
+ const _queryParams = {
6376
+ limit
6377
+ };
6378
+ const _authRequest = await this._options.authProvider.getAuthRequest();
6379
+ const _headers = mergeHeaders(
6380
+ _authRequest.headers,
6381
+ this._options?.headers,
6382
+ requestOptions?.headers
6383
+ );
6384
+ const _response = await fetcher({
6385
+ url: url_exports.join(
6386
+ await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? PlaycallerApiEnvironment.Production,
6387
+ `v1/${url_exports.encodePathParam(sport)}/players/${url_exports.encodePathParam(id)}/news`
6388
+ ),
6389
+ method: "GET",
6390
+ headers: _headers,
6391
+ queryString: url_exports.queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions?.queryParams).build(),
6392
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
6393
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
6394
+ abortSignal: requestOptions?.abortSignal,
6395
+ fetchFn: this._options?.fetch,
6396
+ logging: this._options.logging
6397
+ });
6398
+ if (_response.ok) {
6399
+ return { data: _response.body, rawResponse: _response.rawResponse };
6400
+ }
6401
+ if (_response.error.reason === "status-code") {
6402
+ switch (_response.error.statusCode) {
6403
+ case 401:
6404
+ throw new UnauthorizedError(
6405
+ _response.error.body,
6406
+ _response.rawResponse
6407
+ );
6408
+ case 404:
6409
+ throw new NotFoundError(_response.error.body, _response.rawResponse);
6410
+ case 429:
6411
+ throw new TooManyRequestsError(
6412
+ _response.error.body,
6413
+ _response.rawResponse
6414
+ );
6415
+ case 500:
6416
+ throw new InternalServerError(
6417
+ _response.error.body,
6418
+ _response.rawResponse
6419
+ );
6420
+ default:
6421
+ throw new PlaycallerApiError({
6422
+ statusCode: _response.error.statusCode,
6423
+ body: _response.error.body,
6424
+ rawResponse: _response.rawResponse
6425
+ });
6426
+ }
6427
+ }
6428
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/{sport}/players/{id}/news");
6429
+ }
6430
+ /**
6431
+ * Returns all active beat reporter injury signals for a given team — every player with a reported injury, sorted by severity. Useful for opponent analysis, weekly lineup decisions, and DFS game-day research.
6432
+ *
6433
+ * **Tier access:** Developer Sandbox, Build, Growth, Pro Insights, Syndicate Alpha
6434
+ *
6435
+ * @param {PlaycallerApi.GetTeamInjuriesRequest} request
6436
+ * @param {MultiClient.RequestOptions} requestOptions - Request-specific configuration.
6437
+ *
6438
+ * @throws {@link PlaycallerApi.UnauthorizedError}
6439
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
6440
+ * @throws {@link PlaycallerApi.InternalServerError}
6441
+ *
6442
+ * @example
6443
+ * await client.multi.getTeamInjuries({
6444
+ * sport: "nfl",
6445
+ * team: "KC"
6446
+ * })
6447
+ */
6448
+ getTeamInjuries(request, requestOptions) {
6449
+ return HttpResponsePromise.fromPromise(this.__getTeamInjuries(request, requestOptions));
6450
+ }
6451
+ async __getTeamInjuries(request, requestOptions) {
6452
+ const { sport, team, limit } = request;
6453
+ const _queryParams = {
6454
+ limit
6455
+ };
6456
+ const _authRequest = await this._options.authProvider.getAuthRequest();
6457
+ const _headers = mergeHeaders(
6458
+ _authRequest.headers,
6459
+ this._options?.headers,
6460
+ requestOptions?.headers
6461
+ );
6462
+ const _response = await fetcher({
6463
+ url: url_exports.join(
6464
+ await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? PlaycallerApiEnvironment.Production,
6465
+ `v1/${url_exports.encodePathParam(sport)}/teams/${url_exports.encodePathParam(team)}/injuries`
6466
+ ),
6467
+ method: "GET",
5797
6468
  headers: _headers,
5798
6469
  queryString: url_exports.queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions?.queryParams).build(),
5799
6470
  timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
@@ -7100,10 +7771,92 @@ var NbaClient = class {
7100
7771
  getNbaTeamRoster(request, requestOptions) {
7101
7772
  return HttpResponsePromise.fromPromise(this.__getNbaTeamRoster(request, requestOptions));
7102
7773
  }
7103
- async __getNbaTeamRoster(request, requestOptions) {
7104
- const { team, position } = request;
7774
+ async __getNbaTeamRoster(request, requestOptions) {
7775
+ const { team, position } = request;
7776
+ const _queryParams = {
7777
+ position: position != null ? position : void 0
7778
+ };
7779
+ const _authRequest = await this._options.authProvider.getAuthRequest();
7780
+ const _headers = mergeHeaders(
7781
+ _authRequest.headers,
7782
+ this._options?.headers,
7783
+ requestOptions?.headers
7784
+ );
7785
+ const _response = await fetcher({
7786
+ url: url_exports.join(
7787
+ await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? PlaycallerApiEnvironment.Production,
7788
+ `v1/nba/teams/${url_exports.encodePathParam(team)}/roster`
7789
+ ),
7790
+ method: "GET",
7791
+ headers: _headers,
7792
+ queryString: url_exports.queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions?.queryParams).build(),
7793
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
7794
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
7795
+ abortSignal: requestOptions?.abortSignal,
7796
+ fetchFn: this._options?.fetch,
7797
+ logging: this._options.logging
7798
+ });
7799
+ if (_response.ok) {
7800
+ return {
7801
+ data: _response.body,
7802
+ rawResponse: _response.rawResponse
7803
+ };
7804
+ }
7805
+ if (_response.error.reason === "status-code") {
7806
+ switch (_response.error.statusCode) {
7807
+ case 401:
7808
+ throw new UnauthorizedError(
7809
+ _response.error.body,
7810
+ _response.rawResponse
7811
+ );
7812
+ case 404:
7813
+ throw new NotFoundError(_response.error.body, _response.rawResponse);
7814
+ case 429:
7815
+ throw new TooManyRequestsError(
7816
+ _response.error.body,
7817
+ _response.rawResponse
7818
+ );
7819
+ case 500:
7820
+ throw new InternalServerError(
7821
+ _response.error.body,
7822
+ _response.rawResponse
7823
+ );
7824
+ default:
7825
+ throw new PlaycallerApiError({
7826
+ statusCode: _response.error.statusCode,
7827
+ body: _response.error.body,
7828
+ rawResponse: _response.rawResponse
7829
+ });
7830
+ }
7831
+ }
7832
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/nba/teams/{team}/roster");
7833
+ }
7834
+ /**
7835
+ * 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`.
7836
+ *
7837
+ * **Tier access:** Pro Insights, Syndicate Alpha
7838
+ *
7839
+ * @param {PlaycallerApi.GetNbaConfidenceRequest} request
7840
+ * @param {NbaClient.RequestOptions} requestOptions - Request-specific configuration.
7841
+ *
7842
+ * @throws {@link PlaycallerApi.UnauthorizedError}
7843
+ * @throws {@link PlaycallerApi.ForbiddenError}
7844
+ * @throws {@link PlaycallerApi.NotFoundError}
7845
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
7846
+ * @throws {@link PlaycallerApi.InternalServerError}
7847
+ *
7848
+ * @example
7849
+ * await client.nba.getNbaConfidence({
7850
+ * player: "Nikola Jokic"
7851
+ * })
7852
+ */
7853
+ getNbaConfidence(request, requestOptions) {
7854
+ return HttpResponsePromise.fromPromise(this.__getNbaConfidence(request, requestOptions));
7855
+ }
7856
+ async __getNbaConfidence(request, requestOptions) {
7857
+ const { player } = request;
7105
7858
  const _queryParams = {
7106
- position: position != null ? position : void 0
7859
+ player
7107
7860
  };
7108
7861
  const _authRequest = await this._options.authProvider.getAuthRequest();
7109
7862
  const _headers = mergeHeaders(
@@ -7114,7 +7867,7 @@ var NbaClient = class {
7114
7867
  const _response = await fetcher({
7115
7868
  url: url_exports.join(
7116
7869
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? PlaycallerApiEnvironment.Production,
7117
- `v1/nba/teams/${url_exports.encodePathParam(team)}/roster`
7870
+ "v1/nba/confidence"
7118
7871
  ),
7119
7872
  method: "GET",
7120
7873
  headers: _headers,
@@ -7138,6 +7891,11 @@ var NbaClient = class {
7138
7891
  _response.error.body,
7139
7892
  _response.rawResponse
7140
7893
  );
7894
+ case 403:
7895
+ throw new ForbiddenError(
7896
+ _response.error.body,
7897
+ _response.rawResponse
7898
+ );
7141
7899
  case 404:
7142
7900
  throw new NotFoundError(_response.error.body, _response.rawResponse);
7143
7901
  case 429:
@@ -7158,34 +7916,35 @@ var NbaClient = class {
7158
7916
  });
7159
7917
  }
7160
7918
  }
7161
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/nba/teams/{team}/roster");
7919
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/nba/confidence");
7162
7920
  }
7163
7921
  /**
7164
- * 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`.
7922
+ * Per-game box score stats for an NBA player from `player_game_logs`, populated by the NBA Stats connector (stats.nba.com). Returns up to 82 games for a given season.
7165
7923
  *
7166
- * **Tier access:** Pro Insights, Syndicate Alpha
7924
+ * **Tier access:** Build, Growth, Pro Insights, Syndicate Alpha
7167
7925
  *
7168
- * @param {PlaycallerApi.GetNbaConfidenceRequest} request
7926
+ * @param {PlaycallerApi.GetNbaPlayerGameLogRequest} request
7169
7927
  * @param {NbaClient.RequestOptions} requestOptions - Request-specific configuration.
7170
7928
  *
7171
7929
  * @throws {@link PlaycallerApi.UnauthorizedError}
7172
- * @throws {@link PlaycallerApi.ForbiddenError}
7930
+ * @throws {@link PlaycallerApi.PaymentRequiredError}
7173
7931
  * @throws {@link PlaycallerApi.NotFoundError}
7174
7932
  * @throws {@link PlaycallerApi.TooManyRequestsError}
7175
7933
  * @throws {@link PlaycallerApi.InternalServerError}
7176
7934
  *
7177
7935
  * @example
7178
- * await client.nba.getNbaConfidence({
7179
- * player: "Nikola Jokic"
7936
+ * await client.nba.getNbaPlayerGameLog({
7937
+ * id: "nba_2544",
7938
+ * season: "2024-25"
7180
7939
  * })
7181
7940
  */
7182
- getNbaConfidence(request, requestOptions) {
7183
- return HttpResponsePromise.fromPromise(this.__getNbaConfidence(request, requestOptions));
7941
+ getNbaPlayerGameLog(request, requestOptions) {
7942
+ return HttpResponsePromise.fromPromise(this.__getNbaPlayerGameLog(request, requestOptions));
7184
7943
  }
7185
- async __getNbaConfidence(request, requestOptions) {
7186
- const { player } = request;
7944
+ async __getNbaPlayerGameLog(request, requestOptions) {
7945
+ const { id, season } = request;
7187
7946
  const _queryParams = {
7188
- player
7947
+ season
7189
7948
  };
7190
7949
  const _authRequest = await this._options.authProvider.getAuthRequest();
7191
7950
  const _headers = mergeHeaders(
@@ -7196,7 +7955,7 @@ var NbaClient = class {
7196
7955
  const _response = await fetcher({
7197
7956
  url: url_exports.join(
7198
7957
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? PlaycallerApiEnvironment.Production,
7199
- "v1/nba/confidence"
7958
+ `v1/nba/players/${url_exports.encodePathParam(id)}/game-log`
7200
7959
  ),
7201
7960
  method: "GET",
7202
7961
  headers: _headers,
@@ -7220,8 +7979,8 @@ var NbaClient = class {
7220
7979
  _response.error.body,
7221
7980
  _response.rawResponse
7222
7981
  );
7223
- case 403:
7224
- throw new ForbiddenError(
7982
+ case 402:
7983
+ throw new PaymentRequiredError(
7225
7984
  _response.error.body,
7226
7985
  _response.rawResponse
7227
7986
  );
@@ -7245,7 +8004,7 @@ var NbaClient = class {
7245
8004
  });
7246
8005
  }
7247
8006
  }
7248
- return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/nba/confidence");
8007
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/nba/players/{id}/game-log");
7249
8008
  }
7250
8009
  };
7251
8010
 
@@ -7494,7 +8253,7 @@ var NflClient = class {
7494
8253
  /**
7495
8254
  * Players ranked by consensus Average Draft Position (ADP), blended from Sleeper and FantasyCalc. Includes position rank, tier, and our validated confidence score where available. Refreshed weekly.
7496
8255
  *
7497
- * **Tier access:** Developer Sandbox, Build, Growth, Pro Insights, Syndicate Alpha
8256
+ * **Tier access:** Growth, Pro Insights, Syndicate Alpha
7498
8257
  *
7499
8258
  * @param {PlaycallerApi.GetNflRankingsRequest} request
7500
8259
  * @param {NflClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -7881,6 +8640,267 @@ var NflClient = class {
7881
8640
  }
7882
8641
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/nfl/standings");
7883
8642
  }
8643
+ /**
8644
+ * Rank NFL players by expected fantasy points in your league's exact scoring system. Pass scoring weights in the request body; receive players sorted by `custom_pts_per_game` — computed from prior-season per-game averages.
8645
+ *
8646
+ * **Example use case:** Get PPR rankings (`rec: 1`), half-PPR (`rec: 0.5`), or any custom scoring system.
8647
+ *
8648
+ * **Tier access:** Pro Insights, Syndicate Alpha
8649
+ *
8650
+ * @param {PlaycallerApi.GetNflCustomRankingsRequest} request
8651
+ * @param {NflClient.RequestOptions} requestOptions - Request-specific configuration.
8652
+ *
8653
+ * @throws {@link PlaycallerApi.UnauthorizedError}
8654
+ * @throws {@link PlaycallerApi.PaymentRequiredError}
8655
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
8656
+ * @throws {@link PlaycallerApi.InternalServerError}
8657
+ *
8658
+ * @example
8659
+ * await client.nfl.getNflCustomRankings()
8660
+ */
8661
+ getNflCustomRankings(request = {}, requestOptions) {
8662
+ return HttpResponsePromise.fromPromise(this.__getNflCustomRankings(request, requestOptions));
8663
+ }
8664
+ async __getNflCustomRankings(request = {}, requestOptions) {
8665
+ const _authRequest = await this._options.authProvider.getAuthRequest();
8666
+ const _headers = mergeHeaders(
8667
+ _authRequest.headers,
8668
+ this._options?.headers,
8669
+ requestOptions?.headers
8670
+ );
8671
+ const _response = await fetcher({
8672
+ url: url_exports.join(
8673
+ await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? PlaycallerApiEnvironment.Production,
8674
+ "v1/nfl/rankings/custom"
8675
+ ),
8676
+ method: "POST",
8677
+ headers: _headers,
8678
+ contentType: "application/json",
8679
+ queryString: url_exports.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
8680
+ requestType: "json",
8681
+ body: request,
8682
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
8683
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
8684
+ abortSignal: requestOptions?.abortSignal,
8685
+ fetchFn: this._options?.fetch,
8686
+ logging: this._options.logging
8687
+ });
8688
+ if (_response.ok) {
8689
+ return {
8690
+ data: _response.body,
8691
+ rawResponse: _response.rawResponse
8692
+ };
8693
+ }
8694
+ if (_response.error.reason === "status-code") {
8695
+ switch (_response.error.statusCode) {
8696
+ case 401:
8697
+ throw new UnauthorizedError(
8698
+ _response.error.body,
8699
+ _response.rawResponse
8700
+ );
8701
+ case 402:
8702
+ throw new PaymentRequiredError(
8703
+ _response.error.body,
8704
+ _response.rawResponse
8705
+ );
8706
+ case 429:
8707
+ throw new TooManyRequestsError(
8708
+ _response.error.body,
8709
+ _response.rawResponse
8710
+ );
8711
+ case 500:
8712
+ throw new InternalServerError(
8713
+ _response.error.body,
8714
+ _response.rawResponse
8715
+ );
8716
+ default:
8717
+ throw new PlaycallerApiError({
8718
+ statusCode: _response.error.statusCode,
8719
+ body: _response.error.body,
8720
+ rawResponse: _response.rawResponse
8721
+ });
8722
+ }
8723
+ }
8724
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/nfl/rankings/custom");
8725
+ }
8726
+ /**
8727
+ * Training camp and in-season depth chart moves detected from Sleeper daily snapshots. Includes AI-generated blurbs explaining fantasy impact. Active Jul 20–Feb; returns empty array off-season.
8728
+ *
8729
+ * **Tier access:** Growth, Pro Insights, Syndicate Alpha
8730
+ *
8731
+ * @param {PlaycallerApi.GetNflDepthChartChangesRequest} request
8732
+ * @param {NflClient.RequestOptions} requestOptions - Request-specific configuration.
8733
+ *
8734
+ * @throws {@link PlaycallerApi.UnauthorizedError}
8735
+ * @throws {@link PlaycallerApi.PaymentRequiredError}
8736
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
8737
+ * @throws {@link PlaycallerApi.InternalServerError}
8738
+ *
8739
+ * @example
8740
+ * await client.nfl.getNflDepthChartChanges({
8741
+ * since: "2026-07-10",
8742
+ * team: "KC"
8743
+ * })
8744
+ */
8745
+ getNflDepthChartChanges(request = {}, requestOptions) {
8746
+ return HttpResponsePromise.fromPromise(this.__getNflDepthChartChanges(request, requestOptions));
8747
+ }
8748
+ async __getNflDepthChartChanges(request = {}, requestOptions) {
8749
+ const { since, team, position, change_type: changeType, limit } = request;
8750
+ const _queryParams = {
8751
+ since: since != null ? since : void 0,
8752
+ team,
8753
+ position: position != null ? position : void 0,
8754
+ change_type: changeType != null ? changeType : void 0,
8755
+ limit
8756
+ };
8757
+ const _authRequest = await this._options.authProvider.getAuthRequest();
8758
+ const _headers = mergeHeaders(
8759
+ _authRequest.headers,
8760
+ this._options?.headers,
8761
+ requestOptions?.headers
8762
+ );
8763
+ const _response = await fetcher({
8764
+ url: url_exports.join(
8765
+ await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? PlaycallerApiEnvironment.Production,
8766
+ "v1/nfl/depth-chart/changes"
8767
+ ),
8768
+ method: "GET",
8769
+ headers: _headers,
8770
+ queryString: url_exports.queryBuilder().addMany(_queryParams).mergeAdditional(requestOptions?.queryParams).build(),
8771
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
8772
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
8773
+ abortSignal: requestOptions?.abortSignal,
8774
+ fetchFn: this._options?.fetch,
8775
+ logging: this._options.logging
8776
+ });
8777
+ if (_response.ok) {
8778
+ return {
8779
+ data: _response.body,
8780
+ rawResponse: _response.rawResponse
8781
+ };
8782
+ }
8783
+ if (_response.error.reason === "status-code") {
8784
+ switch (_response.error.statusCode) {
8785
+ case 401:
8786
+ throw new UnauthorizedError(
8787
+ _response.error.body,
8788
+ _response.rawResponse
8789
+ );
8790
+ case 402:
8791
+ throw new PaymentRequiredError(
8792
+ _response.error.body,
8793
+ _response.rawResponse
8794
+ );
8795
+ case 429:
8796
+ throw new TooManyRequestsError(
8797
+ _response.error.body,
8798
+ _response.rawResponse
8799
+ );
8800
+ case 500:
8801
+ throw new InternalServerError(
8802
+ _response.error.body,
8803
+ _response.rawResponse
8804
+ );
8805
+ default:
8806
+ throw new PlaycallerApiError({
8807
+ statusCode: _response.error.statusCode,
8808
+ body: _response.error.body,
8809
+ rawResponse: _response.rawResponse
8810
+ });
8811
+ }
8812
+ }
8813
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/nfl/depth-chart/changes");
8814
+ }
8815
+ /**
8816
+ * Aggregated training camp snapshot: current depth chart position changes (last 30 days), practice status, anomaly signals, and recent game stats. Replaces 5 separate endpoint calls with a single request.
8817
+ *
8818
+ * **Tier access:** Build, Growth, Pro Insights, Syndicate Alpha
8819
+ *
8820
+ * @param {PlaycallerApi.GetNflCampIntelRequest} request
8821
+ * @param {NflClient.RequestOptions} requestOptions - Request-specific configuration.
8822
+ *
8823
+ * @throws {@link PlaycallerApi.UnauthorizedError}
8824
+ * @throws {@link PlaycallerApi.PaymentRequiredError}
8825
+ * @throws {@link PlaycallerApi.NotFoundError}
8826
+ * @throws {@link PlaycallerApi.TooManyRequestsError}
8827
+ * @throws {@link PlaycallerApi.InternalServerError}
8828
+ *
8829
+ * @example
8830
+ * await client.nfl.getNflCampIntel({
8831
+ * id: "id"
8832
+ * })
8833
+ */
8834
+ getNflCampIntel(request, requestOptions) {
8835
+ return HttpResponsePromise.fromPromise(this.__getNflCampIntel(request, requestOptions));
8836
+ }
8837
+ async __getNflCampIntel(request, requestOptions) {
8838
+ const { id } = request;
8839
+ const _authRequest = await this._options.authProvider.getAuthRequest();
8840
+ const _headers = mergeHeaders(
8841
+ _authRequest.headers,
8842
+ this._options?.headers,
8843
+ requestOptions?.headers
8844
+ );
8845
+ const _response = await fetcher({
8846
+ url: url_exports.join(
8847
+ await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment) ?? PlaycallerApiEnvironment.Production,
8848
+ `v1/nfl/players/${url_exports.encodePathParam(id)}/camp-intel`
8849
+ ),
8850
+ method: "GET",
8851
+ headers: _headers,
8852
+ queryString: url_exports.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
8853
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1e3,
8854
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
8855
+ abortSignal: requestOptions?.abortSignal,
8856
+ fetchFn: this._options?.fetch,
8857
+ logging: this._options.logging
8858
+ });
8859
+ if (_response.ok) {
8860
+ return {
8861
+ data: _response.body,
8862
+ rawResponse: _response.rawResponse
8863
+ };
8864
+ }
8865
+ if (_response.error.reason === "status-code") {
8866
+ switch (_response.error.statusCode) {
8867
+ case 401:
8868
+ throw new UnauthorizedError(
8869
+ _response.error.body,
8870
+ _response.rawResponse
8871
+ );
8872
+ case 402:
8873
+ throw new PaymentRequiredError(
8874
+ _response.error.body,
8875
+ _response.rawResponse
8876
+ );
8877
+ case 404:
8878
+ throw new NotFoundError(_response.error.body, _response.rawResponse);
8879
+ case 429:
8880
+ throw new TooManyRequestsError(
8881
+ _response.error.body,
8882
+ _response.rawResponse
8883
+ );
8884
+ case 500:
8885
+ throw new InternalServerError(
8886
+ _response.error.body,
8887
+ _response.rawResponse
8888
+ );
8889
+ default:
8890
+ throw new PlaycallerApiError({
8891
+ statusCode: _response.error.statusCode,
8892
+ body: _response.error.body,
8893
+ rawResponse: _response.rawResponse
8894
+ });
8895
+ }
8896
+ }
8897
+ return handleNonStatusCodeError(
8898
+ _response.error,
8899
+ _response.rawResponse,
8900
+ "GET",
8901
+ "/v1/nfl/players/{id}/camp-intel"
8902
+ );
8903
+ }
7884
8904
  };
7885
8905
 
7886
8906
  // api/resources/nhl/client/Client.ts
@@ -9190,9 +10210,6 @@ var PlaycallerApiClient = class {
9190
10210
  get multi() {
9191
10211
  return this._multi ?? (this._multi = new MultiClient(this._options));
9192
10212
  }
9193
- get leagues() {
9194
- return this._leagues ?? (this._leagues = new LeaguesClient(this._options));
9195
- }
9196
10213
  get account() {
9197
10214
  return this._account ?? (this._account = new AccountClient(this._options));
9198
10215
  }