propline 0.66.0 → 0.68.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.
package/dist/index.d.cts CHANGED
@@ -1567,6 +1567,67 @@ interface SgpMultiQuoteResponse {
1567
1567
  redacted?: boolean;
1568
1568
  upgrade_url?: string | null;
1569
1569
  }
1570
+ type InjuryStatusCode = "out" | "doubtful" | "questionable" | "probable" | "day_to_day" | "injured_list" | "suspended" | "other";
1571
+ interface InjuredPlayer {
1572
+ player_name: string;
1573
+ /** Same id as odds outcomes; null where none can be matched. */
1574
+ player_id: string | null;
1575
+ espn_athlete_id: string;
1576
+ team: string | null;
1577
+ team_abbr: string | null;
1578
+ position: string | null;
1579
+ /** ESPN's wording, e.g. "Out", "Questionable", "15-Day-IL". */
1580
+ status: string;
1581
+ status_code: InjuryStatusCode;
1582
+ injury_type: string | null;
1583
+ body_part: string | null;
1584
+ detail: string | null;
1585
+ side: string | null;
1586
+ /** YYYY-MM-DD or null. */
1587
+ expected_return: string | null;
1588
+ /** When the current status began (when we first saw it). */
1589
+ status_since: string;
1590
+ /** ESPN's own update time. */
1591
+ source_updated_at: string | null;
1592
+ }
1593
+ interface InjuryReport {
1594
+ sport: string;
1595
+ count: number;
1596
+ players: InjuredPlayer[];
1597
+ }
1598
+ interface InjuryReportOptions {
1599
+ /** Team name or abbreviation, e.g. "KC". */
1600
+ team?: string;
1601
+ /** Comma-separated status codes, e.g. "out,questionable". */
1602
+ status?: string;
1603
+ }
1604
+ interface InjuryStatusChange {
1605
+ player_name: string;
1606
+ player_id: string | null;
1607
+ espn_athlete_id: string;
1608
+ team: string | null;
1609
+ old_status: string | null;
1610
+ /** null when the player came off the report. */
1611
+ new_status: string | null;
1612
+ /** A status code, or "cleared" when the player came off the report. */
1613
+ new_status_code: InjuryStatusCode | "cleared";
1614
+ changed_at: string;
1615
+ source_updated_at: string | null;
1616
+ }
1617
+ interface InjuryHistory {
1618
+ sport: string;
1619
+ days: number;
1620
+ count: number;
1621
+ /** True when the 2,000-row cap was hit. */
1622
+ truncated: boolean;
1623
+ changes: InjuryStatusChange[];
1624
+ }
1625
+ interface InjuryHistoryOptions {
1626
+ /** 1-90 (default 7). */
1627
+ days?: number;
1628
+ /** Player name, case-insensitive substring. */
1629
+ player?: string;
1630
+ }
1570
1631
 
1571
1632
  /** Options for {@link PropLineClient.getDfsPayouts}. */
1572
1633
  interface GetDfsPayoutsOptions {
@@ -2071,6 +2132,27 @@ interface StreamOptions {
2071
2132
  * resync from the REST endpoints.
2072
2133
  */
2073
2134
  onTruncated?: (ready: ReplayPage) => void;
2135
+ /**
2136
+ * Called on connect and every 25s with the books we are still reading for
2137
+ * this subscription's filters. A quiet stream plus a fresh heartbeat means
2138
+ * "prices unchanged", not "feed down".
2139
+ */
2140
+ onHeartbeat?: (heartbeat: StreamHeartbeat) => void;
2141
+ }
2142
+ interface StreamHeartbeatBook {
2143
+ bookmaker_key: string;
2144
+ sport_key: string;
2145
+ /** When this book's last completed pre-match board read started. */
2146
+ pregame_read_at: string;
2147
+ read_age_seconds: number;
2148
+ /** Gap between this book's last two reads; null until two are recorded. */
2149
+ reread_seconds: number | null;
2150
+ events: number;
2151
+ }
2152
+ interface StreamHeartbeat {
2153
+ type: "heartbeat";
2154
+ at: string;
2155
+ books: StreamHeartbeatBook[];
2074
2156
  }
2075
2157
  interface VerifySignatureOptions {
2076
2158
  /** Webhook signing secret (returned once from `createWebhook`). */
@@ -2245,6 +2327,19 @@ declare class PropLine {
2245
2327
  getGolfRounds(player: string, options?: GolfRoundsOptions): Promise<GolfRoundsResponse>;
2246
2328
  /** Golf tournaments we hold round data for, newest first. Free tier. */
2247
2329
  getGolfTournaments(options?: GolfTournamentsOptions): Promise<GolfTournament[]>;
2330
+ /**
2331
+ * Current injury report for a sport (free tier): NFL, NCAAF, NBA, WNBA,
2332
+ * NHL, MLB. Each player has status, injury, expected return and
2333
+ * `status_since` (when the current status began). Source: ESPN, every
2334
+ * 10 minutes.
2335
+ */
2336
+ getInjuries(sport: string, options?: InjuryReportOptions): Promise<InjuryReport>;
2337
+ /**
2338
+ * Every injury status change in the last `days` days (1-90, default 7),
2339
+ * newest first (free tier). `new_status` is null when the player came off
2340
+ * the report. History starts 2026-10-18.
2341
+ */
2342
+ getInjuryHistory(sport: string, options?: InjuryHistoryOptions): Promise<InjuryHistory>;
2248
2343
  /**
2249
2344
  * Get raw player/team box-score stats (book-agnostic, free tier).
2250
2345
  *
@@ -2732,6 +2827,6 @@ declare const Bookmakers: {
2732
2827
  readonly PRIZEPICKS: "prizepicks";
2733
2828
  };
2734
2829
  type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
2735
- declare const VERSION = "0.66.0";
2830
+ declare const VERSION = "0.68.0";
2736
2831
 
2737
- export { AuthError, type BestLine, type BestLineSide, type BestPrice, type BookAccuracyOptions, type BookAccuracyReport, type BookAccuracyRow, type Bookmaker, type BookmakerKey, Bookmakers, type CalcEventEvOptions, type ClosingBookmaker, type ClosingMarket, type ClosingOutcome, type ClvBetInput, type ClvGradeResponse, type ClvGradedBet, type ClvSummary, type ContextResponse, type CreateWebhookOptions, type DepthLevel, type DfsPayoutTier, type DfsPayoutsResponse, type DfsPlayPayout, type EvLine, type EvOutcome, type EvWebhookPayload, type Event, type EventBestLineResponse, type EventEvCalcResponse, type EventEvResponse, type EventIds, type EventIdsBook, type EventProjectionsResponse, type ExportOddsHistoryOptions, type ExportResolvedPropsOptions, type FuturesEvent, type FuturesMarket, type FuturesOutcome, type GetDfsPayoutsOptions, type GetEventBestLineOptions, type GetEventEvOptions, type GetEventProjectionsOptions, type GetMlbGrandSalamiOptions, type GetMovementOptions, type GetNhlDailyGoalsTotalOptions, type GetOddsClosingOptions, type GetOddsHistoryOptions, type GetOddsOptions, type GetPlayerGamesOptions, type GetPlayerHistoryOptions, type GetPlayerTrendsOptions, type GetResultsOptions, type GetScoresOptions, type GetStatsOptions, type GolfRound, type GolfRoundSplit, type GolfRoundsOptions, type GolfRoundsResponse, type GolfTournament, type GolfTournamentsOptions, type HitRateSplit, type LineMovementPrice, type LineMovementWebhookPayload, type LineType, type ListWebhookDeliveriesOptions, type Market, type MarketSummary, type MlbGrandSalamiBook, type MlbGrandSalamiResponse, type MovementBookmaker, type MovementMarket, type MovementOutcome, type MovementResponse, type NhlDailyGoalsTotalBook, type NhlDailyGoalsTotalResponse, type OddsClosingResponse, type OddsHistoryBookmaker, type OddsHistoryMarket, type OddsHistoryOutcome, type OddsHistoryResponse, type OddsResponse, type Outcome, type OutcomeSnapshot, type PeriodFilter, type PlayerGame, type PlayerGameLog, type PlayerHistoryEntry, type PlayerHistoryResponse, type PlayerMarketTrend, type PlayerSearchResponse, type PlayerSearchResult, type PlayerStat, type PlayerTrends, type ProjectionRow, PropLine, PropLineError, type PropLineErrorInfo, type PropLineOptions, type QuotaStatus, RateLimitError, type ReplayEvent, type ReplayPage, type ReplayWebhookEventsOptions, type ResolutionSummary, type ResolutionSummaryMarket, type ResolutionSummarySport, type ResolvedOutcome, type ResultsMarket, type ResultsResponse, type ScoreEvent, type SearchPlayersOptions, type SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type SteamWebhookPayload, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
2832
+ export { AuthError, type BestLine, type BestLineSide, type BestPrice, type BookAccuracyOptions, type BookAccuracyReport, type BookAccuracyRow, type Bookmaker, type BookmakerKey, Bookmakers, type CalcEventEvOptions, type ClosingBookmaker, type ClosingMarket, type ClosingOutcome, type ClvBetInput, type ClvGradeResponse, type ClvGradedBet, type ClvSummary, type ContextResponse, type CreateWebhookOptions, type DepthLevel, type DfsPayoutTier, type DfsPayoutsResponse, type DfsPlayPayout, type EvLine, type EvOutcome, type EvWebhookPayload, type Event, type EventBestLineResponse, type EventEvCalcResponse, type EventEvResponse, type EventIds, type EventIdsBook, type EventProjectionsResponse, type ExportOddsHistoryOptions, type ExportResolvedPropsOptions, type FuturesEvent, type FuturesMarket, type FuturesOutcome, type GetDfsPayoutsOptions, type GetEventBestLineOptions, type GetEventEvOptions, type GetEventProjectionsOptions, type GetMlbGrandSalamiOptions, type GetMovementOptions, type GetNhlDailyGoalsTotalOptions, type GetOddsClosingOptions, type GetOddsHistoryOptions, type GetOddsOptions, type GetPlayerGamesOptions, type GetPlayerHistoryOptions, type GetPlayerTrendsOptions, type GetResultsOptions, type GetScoresOptions, type GetStatsOptions, type GolfRound, type GolfRoundSplit, type GolfRoundsOptions, type GolfRoundsResponse, type GolfTournament, type GolfTournamentsOptions, type HitRateSplit, type InjuredPlayer, type InjuryHistory, type InjuryHistoryOptions, type InjuryReport, type InjuryReportOptions, type InjuryStatusChange, type InjuryStatusCode, type LineMovementPrice, type LineMovementWebhookPayload, type LineType, type ListWebhookDeliveriesOptions, type Market, type MarketSummary, type MlbGrandSalamiBook, type MlbGrandSalamiResponse, type MovementBookmaker, type MovementMarket, type MovementOutcome, type MovementResponse, type NhlDailyGoalsTotalBook, type NhlDailyGoalsTotalResponse, type OddsClosingResponse, type OddsHistoryBookmaker, type OddsHistoryMarket, type OddsHistoryOutcome, type OddsHistoryResponse, type OddsResponse, type Outcome, type OutcomeSnapshot, type PeriodFilter, type PlayerGame, type PlayerGameLog, type PlayerHistoryEntry, type PlayerHistoryResponse, type PlayerMarketTrend, type PlayerSearchResponse, type PlayerSearchResult, type PlayerStat, type PlayerTrends, type ProjectionRow, PropLine, PropLineError, type PropLineErrorInfo, type PropLineOptions, type QuotaStatus, RateLimitError, type ReplayEvent, type ReplayPage, type ReplayWebhookEventsOptions, type ResolutionSummary, type ResolutionSummaryMarket, type ResolutionSummarySport, type ResolvedOutcome, type ResultsMarket, type ResultsResponse, type ScoreEvent, type SearchPlayersOptions, type SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type SteamWebhookPayload, type StreamHeartbeat, type StreamHeartbeatBook, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
package/dist/index.d.ts CHANGED
@@ -1567,6 +1567,67 @@ interface SgpMultiQuoteResponse {
1567
1567
  redacted?: boolean;
1568
1568
  upgrade_url?: string | null;
1569
1569
  }
1570
+ type InjuryStatusCode = "out" | "doubtful" | "questionable" | "probable" | "day_to_day" | "injured_list" | "suspended" | "other";
1571
+ interface InjuredPlayer {
1572
+ player_name: string;
1573
+ /** Same id as odds outcomes; null where none can be matched. */
1574
+ player_id: string | null;
1575
+ espn_athlete_id: string;
1576
+ team: string | null;
1577
+ team_abbr: string | null;
1578
+ position: string | null;
1579
+ /** ESPN's wording, e.g. "Out", "Questionable", "15-Day-IL". */
1580
+ status: string;
1581
+ status_code: InjuryStatusCode;
1582
+ injury_type: string | null;
1583
+ body_part: string | null;
1584
+ detail: string | null;
1585
+ side: string | null;
1586
+ /** YYYY-MM-DD or null. */
1587
+ expected_return: string | null;
1588
+ /** When the current status began (when we first saw it). */
1589
+ status_since: string;
1590
+ /** ESPN's own update time. */
1591
+ source_updated_at: string | null;
1592
+ }
1593
+ interface InjuryReport {
1594
+ sport: string;
1595
+ count: number;
1596
+ players: InjuredPlayer[];
1597
+ }
1598
+ interface InjuryReportOptions {
1599
+ /** Team name or abbreviation, e.g. "KC". */
1600
+ team?: string;
1601
+ /** Comma-separated status codes, e.g. "out,questionable". */
1602
+ status?: string;
1603
+ }
1604
+ interface InjuryStatusChange {
1605
+ player_name: string;
1606
+ player_id: string | null;
1607
+ espn_athlete_id: string;
1608
+ team: string | null;
1609
+ old_status: string | null;
1610
+ /** null when the player came off the report. */
1611
+ new_status: string | null;
1612
+ /** A status code, or "cleared" when the player came off the report. */
1613
+ new_status_code: InjuryStatusCode | "cleared";
1614
+ changed_at: string;
1615
+ source_updated_at: string | null;
1616
+ }
1617
+ interface InjuryHistory {
1618
+ sport: string;
1619
+ days: number;
1620
+ count: number;
1621
+ /** True when the 2,000-row cap was hit. */
1622
+ truncated: boolean;
1623
+ changes: InjuryStatusChange[];
1624
+ }
1625
+ interface InjuryHistoryOptions {
1626
+ /** 1-90 (default 7). */
1627
+ days?: number;
1628
+ /** Player name, case-insensitive substring. */
1629
+ player?: string;
1630
+ }
1570
1631
 
1571
1632
  /** Options for {@link PropLineClient.getDfsPayouts}. */
1572
1633
  interface GetDfsPayoutsOptions {
@@ -2071,6 +2132,27 @@ interface StreamOptions {
2071
2132
  * resync from the REST endpoints.
2072
2133
  */
2073
2134
  onTruncated?: (ready: ReplayPage) => void;
2135
+ /**
2136
+ * Called on connect and every 25s with the books we are still reading for
2137
+ * this subscription's filters. A quiet stream plus a fresh heartbeat means
2138
+ * "prices unchanged", not "feed down".
2139
+ */
2140
+ onHeartbeat?: (heartbeat: StreamHeartbeat) => void;
2141
+ }
2142
+ interface StreamHeartbeatBook {
2143
+ bookmaker_key: string;
2144
+ sport_key: string;
2145
+ /** When this book's last completed pre-match board read started. */
2146
+ pregame_read_at: string;
2147
+ read_age_seconds: number;
2148
+ /** Gap between this book's last two reads; null until two are recorded. */
2149
+ reread_seconds: number | null;
2150
+ events: number;
2151
+ }
2152
+ interface StreamHeartbeat {
2153
+ type: "heartbeat";
2154
+ at: string;
2155
+ books: StreamHeartbeatBook[];
2074
2156
  }
2075
2157
  interface VerifySignatureOptions {
2076
2158
  /** Webhook signing secret (returned once from `createWebhook`). */
@@ -2245,6 +2327,19 @@ declare class PropLine {
2245
2327
  getGolfRounds(player: string, options?: GolfRoundsOptions): Promise<GolfRoundsResponse>;
2246
2328
  /** Golf tournaments we hold round data for, newest first. Free tier. */
2247
2329
  getGolfTournaments(options?: GolfTournamentsOptions): Promise<GolfTournament[]>;
2330
+ /**
2331
+ * Current injury report for a sport (free tier): NFL, NCAAF, NBA, WNBA,
2332
+ * NHL, MLB. Each player has status, injury, expected return and
2333
+ * `status_since` (when the current status began). Source: ESPN, every
2334
+ * 10 minutes.
2335
+ */
2336
+ getInjuries(sport: string, options?: InjuryReportOptions): Promise<InjuryReport>;
2337
+ /**
2338
+ * Every injury status change in the last `days` days (1-90, default 7),
2339
+ * newest first (free tier). `new_status` is null when the player came off
2340
+ * the report. History starts 2026-10-18.
2341
+ */
2342
+ getInjuryHistory(sport: string, options?: InjuryHistoryOptions): Promise<InjuryHistory>;
2248
2343
  /**
2249
2344
  * Get raw player/team box-score stats (book-agnostic, free tier).
2250
2345
  *
@@ -2732,6 +2827,6 @@ declare const Bookmakers: {
2732
2827
  readonly PRIZEPICKS: "prizepicks";
2733
2828
  };
2734
2829
  type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
2735
- declare const VERSION = "0.66.0";
2830
+ declare const VERSION = "0.68.0";
2736
2831
 
2737
- export { AuthError, type BestLine, type BestLineSide, type BestPrice, type BookAccuracyOptions, type BookAccuracyReport, type BookAccuracyRow, type Bookmaker, type BookmakerKey, Bookmakers, type CalcEventEvOptions, type ClosingBookmaker, type ClosingMarket, type ClosingOutcome, type ClvBetInput, type ClvGradeResponse, type ClvGradedBet, type ClvSummary, type ContextResponse, type CreateWebhookOptions, type DepthLevel, type DfsPayoutTier, type DfsPayoutsResponse, type DfsPlayPayout, type EvLine, type EvOutcome, type EvWebhookPayload, type Event, type EventBestLineResponse, type EventEvCalcResponse, type EventEvResponse, type EventIds, type EventIdsBook, type EventProjectionsResponse, type ExportOddsHistoryOptions, type ExportResolvedPropsOptions, type FuturesEvent, type FuturesMarket, type FuturesOutcome, type GetDfsPayoutsOptions, type GetEventBestLineOptions, type GetEventEvOptions, type GetEventProjectionsOptions, type GetMlbGrandSalamiOptions, type GetMovementOptions, type GetNhlDailyGoalsTotalOptions, type GetOddsClosingOptions, type GetOddsHistoryOptions, type GetOddsOptions, type GetPlayerGamesOptions, type GetPlayerHistoryOptions, type GetPlayerTrendsOptions, type GetResultsOptions, type GetScoresOptions, type GetStatsOptions, type GolfRound, type GolfRoundSplit, type GolfRoundsOptions, type GolfRoundsResponse, type GolfTournament, type GolfTournamentsOptions, type HitRateSplit, type LineMovementPrice, type LineMovementWebhookPayload, type LineType, type ListWebhookDeliveriesOptions, type Market, type MarketSummary, type MlbGrandSalamiBook, type MlbGrandSalamiResponse, type MovementBookmaker, type MovementMarket, type MovementOutcome, type MovementResponse, type NhlDailyGoalsTotalBook, type NhlDailyGoalsTotalResponse, type OddsClosingResponse, type OddsHistoryBookmaker, type OddsHistoryMarket, type OddsHistoryOutcome, type OddsHistoryResponse, type OddsResponse, type Outcome, type OutcomeSnapshot, type PeriodFilter, type PlayerGame, type PlayerGameLog, type PlayerHistoryEntry, type PlayerHistoryResponse, type PlayerMarketTrend, type PlayerSearchResponse, type PlayerSearchResult, type PlayerStat, type PlayerTrends, type ProjectionRow, PropLine, PropLineError, type PropLineErrorInfo, type PropLineOptions, type QuotaStatus, RateLimitError, type ReplayEvent, type ReplayPage, type ReplayWebhookEventsOptions, type ResolutionSummary, type ResolutionSummaryMarket, type ResolutionSummarySport, type ResolvedOutcome, type ResultsMarket, type ResultsResponse, type ScoreEvent, type SearchPlayersOptions, type SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type SteamWebhookPayload, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
2832
+ export { AuthError, type BestLine, type BestLineSide, type BestPrice, type BookAccuracyOptions, type BookAccuracyReport, type BookAccuracyRow, type Bookmaker, type BookmakerKey, Bookmakers, type CalcEventEvOptions, type ClosingBookmaker, type ClosingMarket, type ClosingOutcome, type ClvBetInput, type ClvGradeResponse, type ClvGradedBet, type ClvSummary, type ContextResponse, type CreateWebhookOptions, type DepthLevel, type DfsPayoutTier, type DfsPayoutsResponse, type DfsPlayPayout, type EvLine, type EvOutcome, type EvWebhookPayload, type Event, type EventBestLineResponse, type EventEvCalcResponse, type EventEvResponse, type EventIds, type EventIdsBook, type EventProjectionsResponse, type ExportOddsHistoryOptions, type ExportResolvedPropsOptions, type FuturesEvent, type FuturesMarket, type FuturesOutcome, type GetDfsPayoutsOptions, type GetEventBestLineOptions, type GetEventEvOptions, type GetEventProjectionsOptions, type GetMlbGrandSalamiOptions, type GetMovementOptions, type GetNhlDailyGoalsTotalOptions, type GetOddsClosingOptions, type GetOddsHistoryOptions, type GetOddsOptions, type GetPlayerGamesOptions, type GetPlayerHistoryOptions, type GetPlayerTrendsOptions, type GetResultsOptions, type GetScoresOptions, type GetStatsOptions, type GolfRound, type GolfRoundSplit, type GolfRoundsOptions, type GolfRoundsResponse, type GolfTournament, type GolfTournamentsOptions, type HitRateSplit, type InjuredPlayer, type InjuryHistory, type InjuryHistoryOptions, type InjuryReport, type InjuryReportOptions, type InjuryStatusChange, type InjuryStatusCode, type LineMovementPrice, type LineMovementWebhookPayload, type LineType, type ListWebhookDeliveriesOptions, type Market, type MarketSummary, type MlbGrandSalamiBook, type MlbGrandSalamiResponse, type MovementBookmaker, type MovementMarket, type MovementOutcome, type MovementResponse, type NhlDailyGoalsTotalBook, type NhlDailyGoalsTotalResponse, type OddsClosingResponse, type OddsHistoryBookmaker, type OddsHistoryMarket, type OddsHistoryOutcome, type OddsHistoryResponse, type OddsResponse, type Outcome, type OutcomeSnapshot, type PeriodFilter, type PlayerGame, type PlayerGameLog, type PlayerHistoryEntry, type PlayerHistoryResponse, type PlayerMarketTrend, type PlayerSearchResponse, type PlayerSearchResult, type PlayerStat, type PlayerTrends, type ProjectionRow, PropLine, PropLineError, type PropLineErrorInfo, type PropLineOptions, type QuotaStatus, RateLimitError, type ReplayEvent, type ReplayPage, type ReplayWebhookEventsOptions, type ResolutionSummary, type ResolutionSummaryMarket, type ResolutionSummarySport, type ResolvedOutcome, type ResultsMarket, type ResultsResponse, type ScoreEvent, type SearchPlayersOptions, type SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type SteamWebhookPayload, type StreamHeartbeat, type StreamHeartbeatBook, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
package/dist/index.js CHANGED
@@ -372,6 +372,36 @@ var PropLine = class {
372
372
  if (options.season) params.season = String(options.season);
373
373
  return this._request("GET", "/golf/tournaments", { params });
374
374
  }
375
+ /**
376
+ * Current injury report for a sport (free tier): NFL, NCAAF, NBA, WNBA,
377
+ * NHL, MLB. Each player has status, injury, expected return and
378
+ * `status_since` (when the current status began). Source: ESPN, every
379
+ * 10 minutes.
380
+ */
381
+ getInjuries(sport, options = {}) {
382
+ const params = {};
383
+ if (options.team) params.team = options.team;
384
+ if (options.status) params.status = options.status;
385
+ return this._request(
386
+ "GET",
387
+ `/sports/${encodeURIComponent(sport)}/injuries`,
388
+ { params }
389
+ );
390
+ }
391
+ /**
392
+ * Every injury status change in the last `days` days (1-90, default 7),
393
+ * newest first (free tier). `new_status` is null when the player came off
394
+ * the report. History starts 2026-10-18.
395
+ */
396
+ getInjuryHistory(sport, options = {}) {
397
+ const params = { days: String(options.days ?? 7) };
398
+ if (options.player) params.player = options.player;
399
+ return this._request(
400
+ "GET",
401
+ `/sports/${encodeURIComponent(sport)}/injuries/history`,
402
+ { params }
403
+ );
404
+ }
375
405
  /**
376
406
  * Get raw player/team box-score stats (book-agnostic, free tier).
377
407
  *
@@ -969,6 +999,8 @@ var PropLine = class {
969
999
  } else if (msg.type === "event") {
970
1000
  queue.push(msg);
971
1001
  wake();
1002
+ } else if (msg.type === "heartbeat") {
1003
+ options.onHeartbeat?.(msg);
972
1004
  }
973
1005
  });
974
1006
  ws.addEventListener("close", (e) => {
@@ -1165,7 +1197,7 @@ var Bookmakers = {
1165
1197
  POLYMARKET: "polymarket",
1166
1198
  PRIZEPICKS: "prizepicks"
1167
1199
  };
1168
- var VERSION = "0.66.0";
1200
+ var VERSION = "0.68.0";
1169
1201
  export {
1170
1202
  AuthError,
1171
1203
  Bookmakers,