@0xinsider/sdk 0.123.0 → 0.125.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.
@@ -1,5 +1,5 @@
1
1
  export declare const OPENAPI_SOURCE = "0xinsider/0xinsider:web/public/api/v1/openapi.json";
2
- export declare const OPENAPI_SHA256 = "fdf8f0548ba302236c4355f867e03c973a0e463ba7a35161092ebdde88804e8d";
2
+ export declare const OPENAPI_SHA256 = "f776108b8bba568ab09012a5ebf99953d259db211fc318123d3c111cb4be3968";
3
3
  export declare const OPENAPI_VERSION = "1.0.0";
4
4
  export declare const OPERATION_COUNT = 118;
5
5
  export declare const APP_REPOSITORY = "0xinsider/0xinsider";
@@ -6,10 +6,10 @@
6
6
  // when it could be resolved, else null. Compare OPENAPI_SHA256 with the live
7
7
  // document to see whether a release is behind the API.
8
8
  export const OPENAPI_SOURCE = "0xinsider/0xinsider:web/public/api/v1/openapi.json";
9
- export const OPENAPI_SHA256 = "fdf8f0548ba302236c4355f867e03c973a0e463ba7a35161092ebdde88804e8d";
9
+ export const OPENAPI_SHA256 = "f776108b8bba568ab09012a5ebf99953d259db211fc318123d3c111cb4be3968";
10
10
  export const OPENAPI_VERSION = "1.0.0";
11
11
  export const OPERATION_COUNT = 118;
12
12
  export const APP_REPOSITORY = "0xinsider/0xinsider";
13
13
  export const APP_SPEC_PATH = "web/public/api/v1/openapi.json";
14
- export const APP_COMMIT = "c5ca44f8c1200a9347ceaacff0e3aa74f1140366";
14
+ export const APP_COMMIT = "3e41619758fb495c4d2223a0a8f506d57b3baf95";
15
15
  //# sourceMappingURL=provenance.js.map
package/dist/schema.d.ts CHANGED
@@ -822,8 +822,8 @@ export type EdgeHunterObservationDeparture = {
822
822
  event_slug: string | null;
823
823
  /** Canonical sport bucket the departed card carried. */
824
824
  category: "Basketball" | "Football" | "Baseball" | "Hockey" | "MMA" | "Boxing" | "Soccer" | "Cricket" | "Golf" | "Tennis" | "Esports" | "Racing" | "Table Tennis" | "Pickleball";
825
- /** The departed card's admitted_by: most_held_48h on an admission=most_held_48h response. */
826
- admitted_by: "most_held" | "soonest_kickoff" | "most_held_48h" | "most_held_48h_by_type";
825
+ /** The departed card's admitted_by: the response's admission on an admission response. */
826
+ admitted_by: "most_held" | "soonest_kickoff" | "most_held_48h" | "most_held_48h_by_type" | "most_held_48h_min_25_usd";
827
827
  /** Kickoff the departed card carried, in UTC. The entry leaves the list once it passes. */
828
828
  game_start_time: string;
829
829
  /** The departed card's observed_at: when its last evaluation finished. */
@@ -833,6 +833,32 @@ export type EdgeHunterObservationDeparture = {
833
833
  /** Why the market has no card: its terminal in this selection's funnel in the snapshot it left, and while that terminal reports a read that did not finish (holder_deadline_unavailable, provider_unavailable, holder_computation_unavailable, internal_unclassified), the terminal of each later snapshot until one answers; an answered reason stays, except as view=signals starts or stops listing the market. primary_slate_candidate: view=signals lists the market. While the entry stays, a later snapshot that read view=signals and no longer excludes the market replaces it with that snapshot's terminal, one that excludes the market replaces any other reason with it, and one with signals_as_of null leaves it as it is. capacity_limited: it lost its evaluation place without another outcome. missing_stored_market: the market was no longer in the stored market universe. Any other value means what it means in the funnel, for example split_holder_pile, no_current_graded_holder or resolved. */
834
834
  reason: EdgeHunterObservationTerminalReason;
835
835
  };
836
+ /** A market's stay in a most-held selection's places that ended before kickoff, with why it ended. */
837
+ export type EdgeHunterObservationPlaceExit = {
838
+ /** Raw Polymarket condition id. */
839
+ condition_id: string;
840
+ event_slug: string | null;
841
+ /** Canonical sport bucket. */
842
+ category: string;
843
+ /** Provider market type when the market entered, as market_context.market_type. */
844
+ market_type: string | null;
845
+ /** Kickoff, in UTC. */
846
+ game_start_time: string;
847
+ /** snapshot_as_of of the first snapshot that held the market in the selection's places. */
848
+ entered_at: string;
849
+ /** The count the selection ranked the market by when it entered: indexed_graded_holders, or indexed_graded_holders_min_25_usd on admission=most_held_48h_min_25_usd. */
850
+ entered_holders: number;
851
+ /** Its most_held_48h_position when it entered; null when it had none. */
852
+ entered_position: number | null;
853
+ /** snapshot_as_of of the first snapshot that computed the selection for the market's scope without it. Later than the real exit by any refresh that was not published. */
854
+ left_at: string;
855
+ /** The same count in that snapshot; null when the market was no longer in the stored market universe. */
856
+ left_holders: number | null;
857
+ /** Its most_held_48h_position in that snapshot; null when it had none. */
858
+ left_position: number | null;
859
+ /** Why the stay ended, in the funnel's names: capacity_limited when more-held markets took the places, provider_excluded when the provider stopped its game or its price is decided, primary_slate_candidate when view=signals lists the market, resolved, provider_closed or missing_stored_market when it left the market universe, and any other funnel terminal, such as no_current_graded_holder. null only for a stay that stopped being a wider_holder candidate before this reason was recorded. */
860
+ reason: EdgeHunterObservationTerminalReason | null;
861
+ };
836
862
  /** Full Edge Hunter observations list envelope. Required degradation_reasons explains the source-generation verdict; required coverage distinguishes source input, intentional capacity exclusions, source emissions, incomplete holder scans, selection and the returned page. The view literal distinguishes advanced collections, including empty pages. */
837
863
  export type EdgeHunterObservationsResponse = {
838
864
  object: "list";
@@ -854,12 +880,14 @@ export type EdgeHunterObservationsResponse = {
854
880
  selection?: EdgeHunterSelection;
855
881
  /** Echoes the opt-in admission rule a request named; omitted on a default read. When present, data, funnel, coverage, degraded and degradation_reasons describe that selection, not the default one. */
856
882
  admission?: "most_held_48h" | "most_held_48h_by_type" | "most_held_48h_min_25_usd";
857
- /** cohort=wider_holder only, for the default selection and for admission=most_held_48h: markets that had a wider_holder card in an earlier snapshot of the same selection, have none in this one, and have not kicked off. Newest departed_at first. An entry stays until the game_start_time it carries passes, and leaves as soon as the market has a card again; while it stays, its reason changes only while it reports an unfinished read or when view=signals starts or stops listing the market (see reason), and a later departure of the same market is a new entry. Filtered by the same category and selectors as data, and identical on every page of one snapshot. At most 336 entries; when more are open, the oldest departures leave first. An empty array means no card of this selection is departed. Omitted on in_play and emerging_pile, and on a snapshot that could not establish its departures, never reported as an empty array. Tracking that restarts after its record is lost starts empty. */
883
+ /** cohort=wider_holder only, for the default selection and for each admission, each selection its own: markets that had a wider_holder card in an earlier snapshot of the same selection, have none in this one, and have not kicked off. Newest departed_at first. An entry stays until the game_start_time it carries passes, and leaves as soon as the market has a card again; while it stays, its reason changes only while it reports an unfinished read or when view=signals starts or stops listing the market (see reason), and a later departure of the same market is a new entry. Filtered by the same category and selectors as data, and identical on every page of one snapshot. At most 336 entries; when more are open, the oldest departures leave first. An empty array means no card of this selection is departed. Omitted on in_play and emerging_pile, and on a snapshot that could not establish its departures, never reported as an empty array. Tracking that restarts after its record is lost starts empty. */
858
884
  departures?: EdgeHunterObservationDeparture[];
859
885
  /** The ranked_at of the view=signals snapshot whose listed markets this snapshot excluded from wider_holder as primary_slate_candidate. The refresh that computed this snapshot read it as it started, so it can be one refresh older than the view=signals snapshot a reader sees at the same moment. null when no view=signals snapshot could be read: that refresh excluded no market, and the funnel counts no primary_slate_candidate. Omitted on an unmappable legacy category, which reads no generation. */
860
886
  signals_as_of?: string | null;
861
887
  /** admission=most_held_48h and most_held_48h_by_type only: for each sport in the response's category scope that most_held_48h admitted a market in, the last market it admitted in the same snapshot (the 8th when 8 are admitted) and the values it was ranked by. A row whose most_held_48h_position is greater than its sport's position took no most_held_48h slot. Not narrowed by selectors other than category. On admission=most_held_48h_min_25_usd they are that selection's own last markets, each with indexed_graded_holders_min_25_usd. Omitted on a default read and on a snapshot computed before this field. */
862
888
  most_held_48h_cutoffs?: EdgeHunterMostHeld48hCutoff[];
889
+ /** With place_exits_since only: the selection's place stays that ended before kickoff at or after place_exits_since, newest left_at first, each with why it ended. Unlike departures, an exit stays readable after the game starts. A stay that ended at kickoff, or because no reader asked for its sport or market type, is not listed, and a withheld card (split_holder_pile) keeps its place, so it shows in departures only. Filtered by category, kind, sports, market_types, condition_ids and event_slugs as data is. Read when each request is served, not from the snapshot, so two pages of one snapshot can differ; part of the ETag. An exit can first appear one snapshot after the one that ended it, so pass the snapshot_as_of of your previous read. Omitted without place_exits_since. With it, a missing field means the exits could not be read in time: ask again; it never means no exits, which is an empty array. */
890
+ place_exits?: EdgeHunterObservationPlaceExit[];
863
891
  };
864
892
  /** Closed 25-value terminal-reason vocabulary for the accountable Edge Hunter observation funnel. capacity_limited is intentional bounded provider-work admission and does not itself set the snapshot degraded. board_source_unavailable is a completed board-source failure; board_deadline_unavailable means live-board work missed either an internal configured-scope deadline or the outer fair-wave deadline; both classify only already-started rows, so for the upcoming source read funnel.sports[].board_upcoming_status instead; provider_unavailable is reserved for a holder read sent to the provider that failed, with no reusable holder page; holder_deadline_unavailable is holder cache/provider absolute-deadline exhaustion or a holder read local capacity never sent, with no reusable holder page. */
865
893
  export type EdgeHunterObservationTerminalReason = "outside_horizon" | "resolved" | "provider_closed" | "provider_excluded" | "invalid_market" | "missing_token" | "missing_stored_market" | "not_provider_live" | "board_source_unavailable" | "board_deadline_unavailable" | "primary_slate_candidate" | "zero_indexed_holder_research" | "capacity_limited" | "provider_unavailable" | "holder_deadline_unavailable" | "holder_computation_unavailable" | "holder_scan_incomplete" | "no_current_graded_holder" | "split_holder_pile" | "price_unavailable" | "wider_holder_emitted" | "in_play_emitted" | "in_play_stale_observed" | "in_play_directional_unavailable" | "internal_unclassified";
@@ -7204,10 +7232,12 @@ export interface OperationQuery {
7204
7232
  view?: "board" | "signals" | "observations";
7205
7233
  /** Legacy canonical bucket alias, now accepted in every view. Provider aliases canonicalize: NFL reaches Football and EPL reaches Soccer. Use leagues for a league-specific selection. The word sports, in any casing, reads as kind=sports, every sport but Esports, as category=sports does on every other route (#32720): the response echoes kind sports beside category sports, and with kind=esports it returns 400 with param category. Any other unmappable non-sport category returns an empty result and echoes category non_sport. Combines with other selection axes using AND. */
7206
7234
  category?: string;
7207
- /** Required for view=observations; wider_holder, in_play or emerging_pile. Rejected for board and signals. wider_holder covers pregame markets that view=signals does not list at its widest selection (horizon_hours=48, min_grade=B, no selector), so until kickoff a market is read in one view or the other. A market view=signals lists leaves wider_holder as primary_slate_candidate, and is a wider_holder candidate again in the first refresh after view=signals stops listing it; signals_as_of names the view=signals snapshot each refresh read. Each refresh evaluates at most 8 markets per sport and cohort, wider_holder by soonest kickoff (most graded holders first among equal kickoffs) and in_play by most graded holders, so a market among a sport's 8 soonest stays evaluated until its game starts. wider_holder also evaluates up to 8 more markets per sport that kick off within 24 hours, most graded holders first, so the most-held markets appear up to a day before kickoff. Each of these keeps its place in later refreshes until its game starts while its holder page still shows a card or could not be read, so a more-held market waits for a free place instead of displacing it. Each row's admitted_by names its place, most_held or soonest_kickoff. The rest count in coverage.capacity_limited_markets. Emerging pile is a wider-holder projection with sharp_pct in [0.75,0.85), complete holder scans and future kickoff, not an independent population or arrival history. */
7235
+ /** Required for view=observations; wider_holder, in_play or emerging_pile. Rejected for board and signals. wider_holder covers pregame markets that view=signals does not list at its widest selection (horizon_hours=48, min_grade=B, no selector), so until kickoff a market is in at most one of the two views. view=signals judges each holder by the wallet's current grade when it reads the holders, not the grade it had when it traded. A market view=signals lists leaves wider_holder as primary_slate_candidate, and is a wider_holder candidate again in the first refresh after view=signals stops listing it; signals_as_of names the view=signals snapshot each refresh read. Each refresh evaluates at most 8 markets per sport and cohort, wider_holder by soonest kickoff (most graded holders first among equal kickoffs) and in_play by most graded holders, so a market among a sport's 8 soonest stays evaluated until its game starts. wider_holder also evaluates up to 8 more markets per sport that kick off within 24 hours, most graded holders first, so the most-held markets appear up to a day before kickoff. Each of these keeps its place in later refreshes until its game starts while its holder page still shows a card or could not be read, so a more-held market waits for a free place instead of displacing it. Each row's admitted_by names its place, most_held or soonest_kickoff. The rest count in coverage.capacity_limited_markets. Emerging pile is a wider-holder projection with sharp_pct in [0.75,0.85), complete holder scans and future kickoff, not an independent population or arrival history. */
7208
7236
  cohort?: "wider_holder" | "in_play" | "emerging_pile";
7209
- /** Opt-in admission rule for view=observations with cohort=wider_holder; rejected for every other view and cohort. most_held_48h returns the most-held selection instead of the default one: per sport, up to 8 wider_holder markets kicking off within 48 hours, most indexed_graded_holders first, then most volume, then soonest kickoff, at most 4 per event. indexed_graded_holders, on every row, counts the S, A and B wallets in the 0xinsider index holding either outcome; graded_holders counts the piled side of the provider's holder page and can be larger or smaller, so check the selection against indexed_graded_holders. rank orders the admitted rows by directional_rank_score, as in the default selection, not by either count. It is recomputed every refresh and keeps no place, so a more-held market displaces a less-held one; markets view=signals lists stay excluded. Every row carries admitted_by most_held_48h, including a market the default selection also evaluates, and the response echoes admission. funnel, coverage, degraded and degradation_reasons describe this selection: a wider_holder candidate it did not take counts as capacity_limited, and one it skips counts as provider_excluded. It skips every market of a game the provider marks postponed, cancelled, suspended or final, its exact-score, half-time and other side events included, and a market of the game's main event at a Yes price of 0.02 or lower, or 0.98 or higher. Its markets that no default place covers are read at most once per 10 minutes, one with no holder page to serve right after every default market with none, so a row can rest on a holder page up to 15 minutes old, or up to 30 minutes for a market more than an hour before kickoff that has not traded since that page (holder_snapshot_at). most_held_48h_by_type requires market_types and runs the same rule within each named type: per sport and market_context.market_type, up to 8 markets (4 per event), most indexed_graded_holders first, then volume, then soonest kickoff, so a type whose markets hold fewer wallets than team-win markets still gets its own places. Its rows carry admitted_by most_held_48h_by_type and it has no departures. most_held_48h ranks every market type in one queue per sport with no type weighted or dropped before ranking, ties broken by soonest kickoff and then condition_id; market_types narrows its rows only after admission. Both values add most_held_48h_position to each row, the market's place in that queue, and most_held_48h_cutoffs, each sport's last most_held_48h market and its ranking values, so a most_held_48h_by_type row shows how far it was from a most_held_48h slot. Its markets no other selection read take turns with the most_held_48h ones in that same order, at most once per 10 minutes. A market type not asked for in the last 30 minutes answers 503 read_model_warming with Retry-After 45 s while the next refresh computes it. most_held_48h_min_25_usd runs the most_held_48h rule counting only the graded holders whose position in the market is worth $25 or more: per sport, up to 8 markets (4 per event), most indexed_graded_holders_min_25_usd first, then most volume, then soonest kickoff, so a market held by many small positions no longer outranks one held by fewer, larger ones. Each row carries indexed_graded_holders_min_25_usd, the count it was ranked by, and admitted_by most_held_48h_min_25_usd; most_held_48h_position and most_held_48h_cutoffs are that selection's own; it has no departures. most_held_48h and most_held_48h_by_type do not change. Its markets no other selection read take their turns after the other two selections', at most once per 10 minutes. A sport, or the all-sports scope, not asked for in the last 30 minutes answers 503 read_model_warming with Retry-After 45 s while the next refresh computes it. Omit for the default selection. Cursors and ETags bind it. */
7237
+ /** Opt-in admission rule for view=observations with cohort=wider_holder; rejected for every other view and cohort. most_held_48h returns the most-held selection instead of the default one: per sport, up to 8 wider_holder markets kicking off within 48 hours, most indexed_graded_holders first, then most volume, then soonest kickoff, at most 4 per event. indexed_graded_holders, on every row, counts the S, A and B wallets in the 0xinsider index holding either outcome; graded_holders counts the piled side of the provider's holder page and can be larger or smaller, so check the selection against indexed_graded_holders. rank orders the admitted rows by directional_rank_score, as in the default selection, not by either count. It is recomputed every refresh and keeps no place, so a more-held market displaces a less-held one; markets view=signals lists stay excluded. Every row carries admitted_by most_held_48h, including a market the default selection also evaluates, and the response echoes admission. funnel, coverage, degraded and degradation_reasons describe this selection: a wider_holder candidate it did not take counts as capacity_limited, and one it skips counts as provider_excluded. It skips every market of a game the provider marks postponed, cancelled, suspended or final, its exact-score, half-time and other side events included, and a market of the game's main event at a Yes price of 0.02 or lower, or 0.98 or higher. Its markets that no default place covers are read at most once per 10 minutes, one with no holder page to serve right after every default market with none, so a row can rest on a holder page up to 15 minutes old, or up to 30 minutes for a market more than an hour before kickoff that has not traded since that page (holder_snapshot_at). most_held_48h_by_type requires market_types and runs the same rule within each named type: per sport and market_context.market_type, up to 8 markets (4 per event), most indexed_graded_holders first, then volume, then soonest kickoff, so a type whose markets hold fewer wallets than team-win markets still gets its own places. Its rows carry admitted_by most_held_48h_by_type, and departures lists its own cards that left. most_held_48h ranks every market type in one queue per sport with no type weighted or dropped before ranking, ties broken by soonest kickoff and then condition_id; market_types narrows its rows only after admission. Both values add most_held_48h_position to each row, the market's place in that queue, and most_held_48h_cutoffs, each sport's last most_held_48h market and its ranking values, so a most_held_48h_by_type row shows how far it was from a most_held_48h slot. Its markets no other selection read take turns with the most_held_48h ones in that same order, at most once per 10 minutes. A market type not asked for in the last 30 minutes answers 503 read_model_warming with Retry-After 45 s while the next refresh computes it. most_held_48h_min_25_usd runs the most_held_48h rule counting only the graded holders whose position in the market is worth $25 or more: per sport, up to 8 markets (4 per event), most indexed_graded_holders_min_25_usd first, then most volume, then soonest kickoff, so a market held by many small positions no longer outranks one held by fewer, larger ones. Each row carries indexed_graded_holders_min_25_usd, the count it was ranked by, and admitted_by most_held_48h_min_25_usd; most_held_48h_position, most_held_48h_cutoffs and departures are that selection's own. most_held_48h and most_held_48h_by_type do not change. Its markets no other selection read take their turns after the other two selections', at most once per 10 minutes. A sport, or the all-sports scope, not asked for in the last 30 minutes answers 503 read_model_warming with Retry-After 45 s while the next refresh computes it. Omit for the default selection. Cursors and ETags bind it. */
7210
7238
  admission?: "most_held_48h" | "most_held_48h_by_type" | "most_held_48h_min_25_usd";
7239
+ /** view=observations with cohort=wider_holder and an admission only; rejected otherwise. An RFC 3339 time within the last 48 hours: the response adds place_exits, the selection's place stays that ended before kickoff at or after it, each with its reason, readable after the game starts. Pass the snapshot_as_of of your previous read. Rejected with leagues or series_slugs, which a stay does not record, and when the window holds more than 1000 exits; then pass a later time or one category. */
7240
+ place_exits_since?: string;
7211
7241
  /** Board and signals: S, A or B, default B. Requires a piled-side holder at the selected grade floor or better, without removing other holders. Rejected for observations. */
7212
7242
  min_grade?: "S" | "A" | "B";
7213
7243
  /** Board row cap defaults to 30 and clamps integer values to 1..30; total counts selected admitted rows before the cap. Signals and observations page size defaults to 20 and clamps to 1..100. */