@totalis/hip4-client 0.121.0 → 0.123.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/CHANGELOG.md CHANGED
@@ -3,6 +3,39 @@
3
3
  `@totalis/hip4-client` follows [semantic versioning](https://semver.org).
4
4
  The contract version the generated types come from is `sdkVersion` in `./version`.
5
5
 
6
+ ## 0.123.0
7
+
8
+ ### Added
9
+
10
+ Browse, additive (TT-2970):
11
+
12
+ - Optional `Publication.next_change_at`: the next instant after a page's
13
+ evaluation at which a listed card changes date bucket, live state, schedule
14
+ group or Combo availability, so the page, its counts or facets may change
15
+ without a new publication. Refetch then; absent when none is ahead.
16
+ - `live` and `combo` filters hold at the page's evaluation instant: the
17
+ listing's first page's, or `published_at` for a publication that bakes its
18
+ pages. Cursors stay opaque.
19
+
20
+ ## 0.122.0
21
+
22
+ ### Added
23
+
24
+ Contract `261.0.0-golden-pause` (TT-2934), additive:
25
+
26
+ - `GoldenTicket.paused` and `getGoldenLinkSuggestions`' `paused`: why a
27
+ free Combo would be refused at placement now whatever its picks, or null.
28
+ `FUNDS_LOW`: Totalis's free Combo cash cannot pay the stake, so placing
29
+ would answer `GOLDEN_PROMO_FUNDS_LOW`. The placement still decides.
30
+
31
+ Contract `260.0.0-game-streams`:
32
+
33
+ - Optional `Scoreboard.stream` (`GameStream`): the game's official live
34
+ broadcast while it is unfinished, `{provider: "twitch", channel}`, such as
35
+ `pgl_cs2`; absent when no official channel on air is known to show the
36
+ game, and on a `FINAL`, `POSTPONED` or `CANCELLED` board. It reaches the market
37
+ and question details and the market stream's `scoreboards` frames.
38
+
6
39
  ## 0.121.0
7
40
 
8
41
  ### Added
@@ -60,12 +60,12 @@ export type components = {
60
60
  readonly limit?: components["schemas"]["PageLimit"];
61
61
  readonly cursor?: components["schemas"]["PageCursor"];
62
62
  /**
63
- * @description Only cards in play at publication, inside their estimated live window, in the default or closing_soon order. Send it only as true, beside at most category, sort, limit and cursor (date_filter only as all); any other combination returns 400 INVALID_QUERY.
63
+ * @description Only cards in play at the page's evaluation instant, inside their estimated live window, in the default or closing_soon order. Send it only as true, beside at most category, sort, limit and cursor (date_filter only as all); any other combination returns 400 INVALID_QUERY.
64
64
  * @constant
65
65
  */
66
66
  readonly live?: true;
67
67
  /**
68
- * @description Only cards with at least one market whose combo.state was OPEN at publication, in the default or closing_soon order, with facets counted over the same cards. Send it only as true, beside at most category, subcategory, sort, limit and cursor (date_filter only as all); any other combination, live included, returns 400 INVALID_QUERY.
68
+ * @description Only cards with at least one market whose combo.state was OPEN at the page's evaluation instant, in the default or closing_soon order, with facets counted over the same cards. Send it only as true, beside at most category, subcategory, sort, limit and cursor (date_filter only as all); any other combination, live included, returns 400 INVALID_QUERY.
69
69
  * @constant
70
70
  */
71
71
  readonly combo?: true;
@@ -588,6 +588,8 @@ export type components = {
588
588
  readonly visibility_version: components["schemas"]["PositiveInt64String"];
589
589
  readonly visibility_checked_at: components["schemas"]["Timestamp"];
590
590
  readonly search_index_version: components["schemas"]["PositiveInt64String"] | null;
591
+ /** @description The next instant after this page's evaluation at which a listed card changes date bucket, live state, schedule group or Combo availability, so the page, its counts, its facets or the live counts may change without a new publication. Refetch then, even while the stream is live. Absent when no such instant is ahead. */
592
+ readonly next_change_at?: components["schemas"]["Timestamp"];
591
593
  };
592
594
  /** @enum {string} */
593
595
  readonly Sort: "default" | "closing_soon" | "relevance";
@@ -599,10 +601,10 @@ export type components = {
599
601
  readonly date_filter: components["schemas"]["DateFilter"];
600
602
  readonly sort: components["schemas"]["Sort"];
601
603
  readonly q: components["schemas"]["NormalizedSearchText"] | null;
602
- /** @description Only cards in play at publication: published_at inside [date_at, estimated_live_until). */
604
+ /** @description Only cards in play at the page's evaluation instant: inside [date_at, estimated_live_until). The instant is the listing's first page's, or published_at for a publication that bakes its pages. */
603
605
  readonly live: boolean;
604
606
  /**
605
- * @description Present, as true, only on a combo=true page: only cards with a market Combos were open to at publication.
607
+ * @description Present, as true, only on a combo=true page: only cards with a market Combos were open to at the page's evaluation instant.
606
608
  * @constant
607
609
  */
608
610
  readonly combo?: true;
@@ -4067,6 +4067,8 @@ export type components = {
4067
4067
  };
4068
4068
  /** GoldenTicket */
4069
4069
  readonly GoldenTicket: {
4070
+ /** @description Why a press of this ticket would be refused now whatever its picks, from Totalis's latest read of its free Combo cash, at most 30 seconds old; null when nothing is known to stop it, including while no read that recent is at hand, and always null unless the ticket is AVAILABLE, or LOCKED and not `not_eligible`. FUNDS_LOW: Totalis's free Combo cash cannot pay this ticket's `stake` now, so POST /v1/me/golden/placements would answer GOLDEN_PROMO_FUNDS_LOW; it clears on its own once Totalis tops it up. The ticket stays as it is: read it again to see the pause lift. The placement's own check still decides. */
4071
+ readonly paused: null | components["schemas"]["GoldenPause"];
4070
4072
  /** @description What this account must still verify before POST /v1/me/golden/unlock can unlock this ticket; empty when nothing (unlocked, refused, expired, or a free Combo that needs none). X: a linked X account, checked when the unlock is pressed. Only a free Combo from a person's or campaign's invite code needs X; one from a Free Combo link Totalis made, or one Totalis gave, never does. It says what is owed, not what the login holds: an X may already be linked, and the unlock reads it then (X_REQUIRED, X_ALREADY_CLAIMED, X_TOO_NEW, X_VERIFICATION_UNAVAILABLE). */
4071
4073
  readonly owed: readonly "X"[];
4072
4074
  /** @description A note from Totalis that came with this free Combo, plain text to show beside it, which may hold line breaks; null when it came with none. */
@@ -4143,6 +4145,12 @@ export type components = {
4143
4145
  /** @description The Combo's legs as its golden RFQ asked them, in the request's order. Null only when the placement's quote cannot be read. */
4144
4146
  readonly legs: null | readonly components["schemas"]["$defs-Leg"][];
4145
4147
  };
4148
+ /**
4149
+ * GoldenPause
4150
+ * @description Why free Combos cannot be placed now. FUNDS_LOW: Totalis's free Combo cash cannot pay the stake.
4151
+ * @enum {string}
4152
+ */
4153
+ readonly GoldenPause: "FUNDS_LOW";
4146
4154
  /**
4147
4155
  * GoldenPlacementFailure
4148
4156
  * @description Why Totalis did not buy the Combo. GIFT_FAILED and GIFT_EXPIRED appear only on placements from before a purchase always used the golden ticket, and such a placement whose Combo Totalis bought used the ticket: the ticket reads LAPSED with that position. No placement fails after Totalis bought it now.
@@ -6480,6 +6488,16 @@ export type components = {
6480
6488
  /** @description Soccer penalty shootout goals, separate from score; null when there was no shootout. */
6481
6489
  readonly shootout_score: number | null;
6482
6490
  };
6491
+ /** @description A live channel on a provider's player, which plays whatever the channel has on air. */
6492
+ readonly GameStream: {
6493
+ /**
6494
+ * @description The player the channel plays on.
6495
+ * @enum {string}
6496
+ */
6497
+ readonly provider: "twitch";
6498
+ /** @description The channel's login on the provider, such as pgl_cs2. */
6499
+ readonly channel: string;
6500
+ };
6483
6501
  /** @description A matchup's game as the live game feed last read it, for display only: never a result, settlement or trading input. A reading of an unfinished game is served only while under 75 seconds old; a FINAL, POSTPONED or CANCELLED one stays. A field the feed lacks is null, never a guess. */
6484
6502
  readonly Scoreboard: {
6485
6503
  /**
@@ -6497,6 +6515,8 @@ export type components = {
6497
6515
  readonly competitors: readonly components["schemas"]["ScoreboardCompetitor"][];
6498
6516
  /** @description The feed's text of the latest play while the game is in play, in English, cut to 200 characters ending in an ellipsis when longer. */
6499
6517
  readonly last_play: string | null;
6518
+ /** @description The game's official live broadcast while it is unfinished: an organizer's channel that the backend saw on air showing this game, within the last 2 minutes. Absent when no channel is known to show it, and once the game is FINAL, POSTPONED or CANCELLED. */
6519
+ readonly stream?: components["schemas"]["GameStream"];
6500
6520
  /** @description When the backend last read this from the feed. */
6501
6521
  readonly refreshed_at: components["schemas"]["$defs-Timestamp"];
6502
6522
  };
@@ -10373,6 +10393,8 @@ export interface operations {
10373
10393
  readonly "application/json": {
10374
10394
  /** @description Biggest band first; empty while none has a live offer. */
10375
10395
  readonly combos: readonly components["schemas"]["GoldenLinkSuggestedCombo"][];
10396
+ /** @description Why a free Combo from this link would be refused at its placement now whatever its picks, as a ticket's `paused` says (GET /v1/me/golden), at the link's stake; null when nothing is known to stop it. */
10397
+ readonly paused: null | components["schemas"]["GoldenPause"];
10376
10398
  };
10377
10399
  };
10378
10400
  };
@@ -1050,7 +1050,7 @@ export type components = {
1050
1050
  readonly id: string;
1051
1051
  /** @description The selected outcomes of this game, ascending. */
1052
1052
  readonly outcome_ids: readonly components["schemas"]["UInt32String"][];
1053
- /** @description The game as the live game feed last read it, exactly as the detail's scoreboard, competitors in the matchup's order. Null when it no longer has one: the feed lost it, its unfinished reading went stale (75 seconds without a fresh read), or it left the catalog. A refresh that shows the same score, status, period, clock, outs and last play sends no frame, so refreshed_at is the read that produced this content and only moves with a change; never age the board from it, the server nulls a stale one. */
1053
+ /** @description The game as the live game feed last read it, exactly as the detail's scoreboard, competitors in the matchup's order. Null when it no longer has one: the feed lost it, its unfinished reading went stale (75 seconds without a fresh read), or it left the catalog. A refresh that shows the same score, status, period, clock, outs, last play and stream sends no frame, so refreshed_at is the read that produced this content and only moves with a change; never age the board from it, the server nulls a stale one. */
1054
1054
  readonly scoreboard: components["schemas"]["Scoreboard"] | null;
1055
1055
  };
1056
1056
  readonly MarketPublicationFrame: {
@@ -1524,6 +1524,16 @@ export type components = {
1524
1524
  /** @description Soccer penalty shootout goals, separate from score; null when there was no shootout. */
1525
1525
  readonly shootout_score: number | null;
1526
1526
  };
1527
+ /** @description A live channel on a provider's player, which plays whatever the channel has on air. */
1528
+ readonly GameStream: {
1529
+ /**
1530
+ * @description The player the channel plays on.
1531
+ * @enum {string}
1532
+ */
1533
+ readonly provider: "twitch";
1534
+ /** @description The channel's login on the provider, such as pgl_cs2. */
1535
+ readonly channel: string;
1536
+ };
1527
1537
  /** @description A matchup's game as the live game feed last read it, for display only: never a result, settlement or trading input. A reading of an unfinished game is served only while under 75 seconds old; a FINAL, POSTPONED or CANCELLED one stays. A field the feed lacks is null, never a guess. */
1528
1538
  readonly Scoreboard: {
1529
1539
  /**
@@ -1541,6 +1551,8 @@ export type components = {
1541
1551
  readonly competitors: readonly components["schemas"]["ScoreboardCompetitor"][];
1542
1552
  /** @description The feed's text of the latest play while the game is in play, in English, cut to 200 characters ending in an ellipsis when longer. */
1543
1553
  readonly last_play: string | null;
1554
+ /** @description The game's official live broadcast while it is unfinished: an organizer's channel that the backend saw on air showing this game, within the last 2 minutes. Absent when no channel is known to show it, and once the game is FINAL, POSTPONED or CANCELLED. */
1555
+ readonly stream?: components["schemas"]["GameStream"];
1544
1556
  /** @description When the backend last read this from the feed. */
1545
1557
  readonly refreshed_at: components["schemas"]["Timestamp"];
1546
1558
  };
@@ -1,6 +1,6 @@
1
- export declare const sdkVersion = "259.0.0-trades-copied";
2
- export declare const openapiSha256 = "e0dc2cb2054b0ce4674b90d447f5ac1f11073029a34fc1879ce0d8bcb43d18f8";
3
- export declare const realtimeSha256 = "a5083096fd15e296d8132fd8dd926b7135e7b787b1d50f1784f7b2b60b172009";
1
+ export declare const sdkVersion = "261.0.0-golden-pause";
2
+ export declare const openapiSha256 = "38d117292a0ab74809f3544cd7fba5316d87bb1c1f1db23f282434b409d8e515";
3
+ export declare const realtimeSha256 = "7538586f80400a2172547e6d62478c20ac99a3c437345661ffed0b975111413a";
4
4
  export declare const jsonSchemaSha256: {
5
5
  readonly "account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb";
6
6
  readonly "comments.schema.json": "5773471b4442ba9d8af0dc012d71561baaf50d0e1c2571039241780848edb4a4";
@@ -12,10 +12,10 @@ export declare const jsonSchemaSha256: {
12
12
  readonly "maker-access.schema.json": "49698ee0235e42064aae0397db1e0f646bdc10d9dfa10121714ba06dd69fee3b";
13
13
  readonly "maker-action.schema.json": "dc41e52c868848e85cdeb918992cb710d34616d2803a63f6d9a658e016744a50";
14
14
  readonly "maker-telemetry.schema.json": "85b111ce0f4935299d1116071b43de12e775bef4e0c283c12f19046d34374a9c";
15
- readonly "market-data.schema.json": "f9d03e347dc579a8386c045d83dc5e00429c4aeaf818d29b72901b8f0432c2b3";
15
+ readonly "market-data.schema.json": "079b8204aa13c9b27a5defb4e7d8d8986f15bd0201e808076464308ad63cf60a";
16
16
  readonly "product-metadata.schema.json": "7c8ffbde878a0aedaed16814fcfd2e80038054b140886cc8736bb7b508042631";
17
17
  readonly "quote.schema.json": "52ee1f4708c8b1504e4cd2f2f9279e14c8ec8aeacac1f491441ae0e15ac3c71a";
18
- readonly "realtime.schema.json": "a5083096fd15e296d8132fd8dd926b7135e7b787b1d50f1784f7b2b60b172009";
18
+ readonly "realtime.schema.json": "7538586f80400a2172547e6d62478c20ac99a3c437345661ffed0b975111413a";
19
19
  readonly "social.schema.json": "b94c9169cb9df201b247697f0ebb52e27b441b9b4171a07e0f36a9f02fc58d61";
20
20
  };
21
21
  export declare const operations: {
@@ -1,7 +1,7 @@
1
1
  // Generated by scripts/generate.mjs; do not edit.
2
- export const sdkVersion = "259.0.0-trades-copied";
3
- export const openapiSha256 = "e0dc2cb2054b0ce4674b90d447f5ac1f11073029a34fc1879ce0d8bcb43d18f8";
4
- export const realtimeSha256 = "a5083096fd15e296d8132fd8dd926b7135e7b787b1d50f1784f7b2b60b172009";
2
+ export const sdkVersion = "261.0.0-golden-pause";
3
+ export const openapiSha256 = "38d117292a0ab74809f3544cd7fba5316d87bb1c1f1db23f282434b409d8e515";
4
+ export const realtimeSha256 = "7538586f80400a2172547e6d62478c20ac99a3c437345661ffed0b975111413a";
5
5
  export const jsonSchemaSha256 = {
6
6
  "account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb",
7
7
  "comments.schema.json": "5773471b4442ba9d8af0dc012d71561baaf50d0e1c2571039241780848edb4a4",
@@ -13,10 +13,10 @@ export const jsonSchemaSha256 = {
13
13
  "maker-access.schema.json": "49698ee0235e42064aae0397db1e0f646bdc10d9dfa10121714ba06dd69fee3b",
14
14
  "maker-action.schema.json": "dc41e52c868848e85cdeb918992cb710d34616d2803a63f6d9a658e016744a50",
15
15
  "maker-telemetry.schema.json": "85b111ce0f4935299d1116071b43de12e775bef4e0c283c12f19046d34374a9c",
16
- "market-data.schema.json": "f9d03e347dc579a8386c045d83dc5e00429c4aeaf818d29b72901b8f0432c2b3",
16
+ "market-data.schema.json": "079b8204aa13c9b27a5defb4e7d8d8986f15bd0201e808076464308ad63cf60a",
17
17
  "product-metadata.schema.json": "7c8ffbde878a0aedaed16814fcfd2e80038054b140886cc8736bb7b508042631",
18
18
  "quote.schema.json": "52ee1f4708c8b1504e4cd2f2f9279e14c8ec8aeacac1f491441ae0e15ac3c71a",
19
- "realtime.schema.json": "a5083096fd15e296d8132fd8dd926b7135e7b787b1d50f1784f7b2b60b172009",
19
+ "realtime.schema.json": "7538586f80400a2172547e6d62478c20ac99a3c437345661ffed0b975111413a",
20
20
  "social.schema.json": "b94c9169cb9df201b247697f0ebb52e27b441b9b4171a07e0f36a9f02fc58d61"
21
21
  };
22
22
  export const operations = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@totalis/hip4-client",
3
- "version": "0.121.0",
3
+ "version": "0.123.0",
4
4
  "description": "Totalis HIP-4 SDK: typed HTTP clients, signer-agnostic typed data, a retrying request layer, pagination, a realtime stream and taker/maker flows",
5
5
  "type": "module",
6
6
  "files": [