@0xinsider/sdk 0.46.0 → 0.47.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/README.md CHANGED
@@ -964,7 +964,7 @@ Direct error constructors accept optional `ApiErrorTransportMetadata` after thei
964
964
 
965
965
  ## Authentication
966
966
 
967
- Pass `apiKey` to the client constructor. Public operations (`getApiDiscovery`, `getCoverage`, `getHealth`, `getPickOfTheDayLedger`, and `registerAgent`, which mints the sandbox key) do not require a key; everything else does, and the SDK throws before making a request if a key is missing for a bearer operation, unless the client is in [sandbox](#sandbox) mode, where no operation needs one. Pro-only data (graded webhook events, parts of the stream) requires a key on an active Pro subscription.
967
+ Pass `apiKey` to the client constructor. Public operations (`getApiDiscovery`, `getCoverage`, `getHealth`, `getPickOfTheDayLedger`, `getPickOfTheDayLedgerEntry`, and `registerAgent`, which mints the sandbox key) do not require a key; everything else does, and the SDK throws before making a request if a key is missing for a bearer operation, unless the client is in [sandbox](#sandbox) mode, where no operation needs one. Pro-only data (graded webhook events, parts of the stream) requires a key on an active Pro subscription.
968
968
 
969
969
  ## Examples
970
970
 
@@ -1,5 +1,5 @@
1
- export declare const OPENAPI_SOURCE = "0xinsider/0xinsider:web/public/api/v1/openapi.json";
2
- export declare const OPENAPI_SHA256 = "ad3232dce84bf5839c93e0b5d1977a58ebc4377c80830d7f587c8b8d86c660b3";
1
+ export declare const OPENAPI_SOURCE = "https://0xinsider.com/api/v1/openapi.json";
2
+ export declare const OPENAPI_SHA256 = "125421585bd82d006d28fcccc63eff979f195f5bb175bb848907fb315c74d5d8";
3
3
  export declare const OPENAPI_VERSION = "1.0.0";
4
4
  export declare const OPERATION_COUNT = 112;
5
5
  export declare const APP_REPOSITORY = "0xinsider/0xinsider";
@@ -1 +1 @@
1
- {"version":3,"file":"provenance.d.ts","sourceRoot":"","sources":["../src/provenance.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc,uDAAuD,CAAC;AACnF,eAAO,MAAM,cAAc,qEAAqE,CAAC;AACjG,eAAO,MAAM,eAAe,UAAU,CAAC;AACvC,eAAO,MAAM,eAAe,MAAM,CAAC;AACnC,eAAO,MAAM,cAAc,wBAAwB,CAAC;AACpD,eAAO,MAAM,aAAa,mCAAmC,CAAC;AAC9D,eAAO,MAAM,UAAU,EAAE,MAAM,GAAG,IAAiD,CAAC"}
1
+ {"version":3,"file":"provenance.d.ts","sourceRoot":"","sources":["../src/provenance.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc,8CAA8C,CAAC;AAC1E,eAAO,MAAM,cAAc,qEAAqE,CAAC;AACjG,eAAO,MAAM,eAAe,UAAU,CAAC;AACvC,eAAO,MAAM,eAAe,MAAM,CAAC;AACnC,eAAO,MAAM,cAAc,wBAAwB,CAAC;AACpD,eAAO,MAAM,aAAa,mCAAmC,CAAC;AAC9D,eAAO,MAAM,UAAU,EAAE,MAAM,GAAG,IAAiD,CAAC"}
@@ -5,11 +5,11 @@
5
5
  // 0xinsider/0xinsider commit that last changed web/public/api/v1/openapi.json
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
- export const OPENAPI_SOURCE = "0xinsider/0xinsider:web/public/api/v1/openapi.json";
9
- export const OPENAPI_SHA256 = "ad3232dce84bf5839c93e0b5d1977a58ebc4377c80830d7f587c8b8d86c660b3";
8
+ export const OPENAPI_SOURCE = "https://0xinsider.com/api/v1/openapi.json";
9
+ export const OPENAPI_SHA256 = "125421585bd82d006d28fcccc63eff979f195f5bb175bb848907fb315c74d5d8";
10
10
  export const OPENAPI_VERSION = "1.0.0";
11
11
  export const OPERATION_COUNT = 112;
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 = "7ac25203ed89aa46862684f8d1b3480e2a2b0531";
14
+ export const APP_COMMIT = "c8f62895a58f5c6e07ba9b87073964eda5658da8";
15
15
  //# sourceMappingURL=provenance.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"provenance.js","sourceRoot":"","sources":["../src/provenance.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,4EAA4E;AAC5E,kEAAkE;AAClE,8EAA8E;AAC9E,6EAA6E;AAC7E,uDAAuD;AAEvD,MAAM,CAAC,MAAM,cAAc,GAAG,oDAAoD,CAAC;AACnF,MAAM,CAAC,MAAM,cAAc,GAAG,kEAAkE,CAAC;AACjG,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC;AACvC,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAC;AACnC,MAAM,CAAC,MAAM,cAAc,GAAG,qBAAqB,CAAC;AACpD,MAAM,CAAC,MAAM,aAAa,GAAG,gCAAgC,CAAC;AAC9D,MAAM,CAAC,MAAM,UAAU,GAAkB,0CAA0C,CAAC"}
1
+ {"version":3,"file":"provenance.js","sourceRoot":"","sources":["../src/provenance.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,4EAA4E;AAC5E,kEAAkE;AAClE,8EAA8E;AAC9E,6EAA6E;AAC7E,uDAAuD;AAEvD,MAAM,CAAC,MAAM,cAAc,GAAG,2CAA2C,CAAC;AAC1E,MAAM,CAAC,MAAM,cAAc,GAAG,kEAAkE,CAAC;AACjG,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC;AACvC,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAC;AACnC,MAAM,CAAC,MAAM,cAAc,GAAG,qBAAqB,CAAC;AACpD,MAAM,CAAC,MAAM,aAAa,GAAG,gCAAgC,CAAC;AAC9D,MAAM,CAAC,MAAM,UAAU,GAAkB,0CAA0C,CAAC"}
package/dist/schema.d.ts CHANGED
@@ -2710,7 +2710,7 @@ export type PickHolder = {
2710
2710
  category_win_rate_game?: string;
2711
2711
  /** Why `category_win_rate` is present or absent on a `display_holders` entry: `measured` (rate present), `not_enough_data` (the wallet is below the settled-market floor of 5 in the category), or `unavailable` (the annotation read failed; retry later). Never `untracked`: every recorded holder is a graded wallet 0xinsider has on file. Absent entirely on `holders` entries, legacy rows, and payloads predating the field -- absence means the roster was never annotated, not a small sample. */
2712
2712
  category_win_rate_status?: "measured" | "not_enough_data" | "unavailable" | "untracked";
2713
- /** Whole UTC calendar days since this wallet's first trade: the number of UTC dates from the first trade's date to today, so a first trade at 23:00 UTC reads 1 an hour later. Every wallet's age changes at 00:00 UTC, once a day, not on every request, and the pick's ETag holds between requests. Stamped at serve time from the wallet's current trader record, never frozen with the pick. The five badge fields are present together, and only for a wallet that carries at least one badge; all absent means no badge, or a body cached before the fields shipped. */
2713
+ /** Whole UTC calendar days since this wallet's first trade, as an integer (271, not 271.0): the number of UTC dates from the first trade's date to today, so a first trade at 23:00 UTC reads 1 an hour later. Every wallet's age changes at 00:00 UTC, once a day, not on every request, and the pick's ETag holds between requests. Stamped at serve time from the wallet's current trader record, never frozen with the pick. The five badge fields are present together, and only for a wallet that carries at least one badge; all absent means no badge, or a body cached before the fields shipped. */
2714
2714
  wallet_age_days?: number | null;
2715
2715
  /** True when the wallet's first trade was under 30 days ago. Stamped at serve time from the wallet's current trader record, never frozen with the pick. The five badge fields are present together, and only for a wallet that carries at least one badge; all absent means no badge, or a body cached before the fields shipped. */
2716
2716
  is_new_wallet?: boolean;
@@ -2820,7 +2820,7 @@ export type PickOfTheDay = {
2820
2820
  token_id?: string;
2821
2821
  /** The backed side phrased as a bet (e.g. "Portugal to win"). */
2822
2822
  position?: string;
2823
- /** One-line summary of which side sharp money is backing. Required on every item in `picks`: a current-day published pick whose required holder proof is not safely readable is listed in `proof_pending_picks` instead of being served with a partial success shape or a synthetic zero, and the route returns 503 read_model_warming only when no published pick has readable proof. */
2823
+ /** One-line summary of which side sharp money is backing. On a pick dated 2026-08-12 or later it counts the S and A grade wallets on the backed side, the sharp_wallet_count value, and names those grades: "26 S and A grade wallets on Alexander Shevchenko", or "1 S or A grade wallet on ...". The site's "profitable wallets" counts S, A and B grade wallets, so its number can be larger for the same pick. A pick whose only recorded backing is its lead wallet reads "Recorded lead wallet on ...". Earlier picks, and a pick recorded without graded holders, keep the sentence recorded with them. Required on every item in `picks`: a current-day published pick whose required holder proof is not safely readable is listed in `proof_pending_picks` instead of being served with a partial success shape or a synthetic zero, and the route returns 503 read_model_warming only when no published pick has readable proof. */
2824
2824
  side_summary?: string;
2825
2825
  /** S/A wallet count on the backed side in the public V1 compatibility projection. */
2826
2826
  sharp_wallet_count?: number;
@@ -2831,7 +2831,7 @@ export type PickOfTheDay = {
2831
2831
  smart_wallet_count?: number;
2832
2832
  /** Best recorded S/A grade in the public V1 compatibility projection. */
2833
2833
  top_grade?: string;
2834
- /** Recorded sharp-money magnitude in USD when available. */
2834
+ /** Recorded graded-flow magnitude in USD on the backed side. Absent when the recorded value is zero, and on every pick that carries lead_backer. */
2835
2835
  sharp_usd?: number;
2836
2836
  /**
2837
2837
  * Deprecated spelling of sharp_usd with the same value.
@@ -2868,7 +2868,7 @@ export type PickOfTheDay = {
2868
2868
  unit_score?: number;
2869
2869
  /** Backend-formatted signed unit score, present exactly when unit_score is present. */
2870
2870
  unit_score_display?: string;
2871
- /** Recorded sharp-money share as a 0..1 fraction when available. This is not a winning probability. */
2871
+ /** Recorded sharp-money share as a 0..1 fraction. This is not a winning probability. Absent on every pick dated 2026-08-12 or later: from that date the recorded share includes B grade wallets, which this S and A projection does not count. Earlier picks carry it when it was recorded. */
2872
2872
  sharp_pct?: number;
2873
2873
  /** Recorded market-implied probability as a 0..1 fraction when available. */
2874
2874
  market_pct?: number;
@@ -2895,7 +2895,7 @@ export type PickOfTheDay = {
2895
2895
  };
2896
2896
  /** Public V1 S/A wallet count on the backed side, equal to sharp_wallet_count. */
2897
2897
  traders?: number;
2898
- /** Recorded aggregate backed-side position value in USD when available, not a live balance or entry cost. The display_holders roster can include additional wallets; use the returned aggregate rather than summing that roster. */
2898
+ /** Recorded aggregate backed-side position value in USD, not a live balance or entry cost. Absent on every pick dated 2026-08-12 or later: from that date the recorded value includes B grade wallets, which this S and A projection does not count. Earlier picks carry it when it was recorded. The display_holders roster can include additional wallets; use the returned aggregate rather than summing that roster. */
2899
2899
  backed_sharp_usd?: number;
2900
2900
  /** Bounded S/A holder display projection from the recorded snapshot. Historical rows retain their recorded display shape. */
2901
2901
  holders?: PickHolder[];
@@ -2941,6 +2941,71 @@ export type PickOfTheDay = {
2941
2941
  supersedes_pick_id: string | null;
2942
2942
  /** Optional full-only lead wallet publication facts. Omitted on legacy picks or when the recorded evidence is unavailable. */
2943
2943
  lead_backer?: PickLeadBacker;
2944
+ /** On the top level of today's set read. The instant until which today's list of published picks can still grow: present while another pick can still be added to the day, absent once the day is final. Absent for a past `date`, on `picks` items and on a `pick_id` read. A later pick is possible, not promised; schedule one read before this instant instead of polling. */
2945
+ more_picks_until?: string;
2946
+ /** Display identity for the pick's game: the league and the two sides, with names, crests and records, and for a tennis player the headshot, tour and ranking. Sent on a pick whose sports identity resolved; absent otherwise. It carries no market, event or provider identifier. An image value that starts with / is a path relative to https://0xinsider.com. */
2947
+ public_sports_identity?: {
2948
+ /** True when yes_team and no_team are the parent game's two sides in display order, on a Yes/No market whose own outcomes name no team (a draw, a total, a prop); they then say nothing about which side Yes backs. False when the market's outcomes chose the sides, so Yes resolving means yes_team won. */
2949
+ event_matchup: boolean;
2950
+ /** League crest: an absolute https URL, or a path relative to https://0xinsider.com for a crest 0xinsider serves. */
2951
+ league_logo?: string;
2952
+ /** League or competition name. */
2953
+ league_name?: string;
2954
+ /** The side the market's No outcome names; when event_matchup is true, the parent game's second side in display order. */
2955
+ no_team?: {
2956
+ /** Full display name of the team or player. */
2957
+ full_name?: string;
2958
+ /** Tennis player photo as a path relative to https://0xinsider.com, for example /api/tennis/headshots/...; prefix that origin to fetch it. Absent when no photo is on file. */
2959
+ headshot?: string;
2960
+ /** Revision of the headshot image; it changes when the photo changes. Present only with headshot. */
2961
+ headshot_revision?: number;
2962
+ /** Display name of the team or player. */
2963
+ label?: string;
2964
+ /** Team crest: an absolute https URL, or a path relative to https://0xinsider.com for a crest 0xinsider serves. Absent when no specific crest is on file. */
2965
+ logo?: string;
2966
+ /** True when the logo artwork disappears on a dark background. Sent only when true. */
2967
+ logo_mark_dark?: boolean;
2968
+ /** True when the logo artwork disappears on a light background. Sent only when true. */
2969
+ logo_mark_light?: boolean;
2970
+ /** True when logo_mark_dark and logo_mark_light were measured from this logo. Sent only when true; when absent, their absence makes no claim about the artwork. */
2971
+ logo_mark_measured?: boolean;
2972
+ ranking?: TennisRanking;
2973
+ /** Win-loss record as the provider reports it. */
2974
+ record?: string;
2975
+ /** Short display name, such as an abbreviation. */
2976
+ short_label?: string;
2977
+ /** Tennis tour of the player: atp, wta or itf. Sent for a tennis player whether or not a headshot is on file. */
2978
+ tour?: string;
2979
+ };
2980
+ /** The side the market's Yes outcome names; when event_matchup is true, the parent game's first side in display order. */
2981
+ yes_team?: {
2982
+ /** Full display name of the team or player. */
2983
+ full_name?: string;
2984
+ /** Tennis player photo as a path relative to https://0xinsider.com, for example /api/tennis/headshots/...; prefix that origin to fetch it. Absent when no photo is on file. */
2985
+ headshot?: string;
2986
+ /** Revision of the headshot image; it changes when the photo changes. Present only with headshot. */
2987
+ headshot_revision?: number;
2988
+ /** Display name of the team or player. */
2989
+ label?: string;
2990
+ /** Team crest: an absolute https URL, or a path relative to https://0xinsider.com for a crest 0xinsider serves. Absent when no specific crest is on file. */
2991
+ logo?: string;
2992
+ /** True when the logo artwork disappears on a dark background. Sent only when true. */
2993
+ logo_mark_dark?: boolean;
2994
+ /** True when the logo artwork disappears on a light background. Sent only when true. */
2995
+ logo_mark_light?: boolean;
2996
+ /** True when logo_mark_dark and logo_mark_light were measured from this logo. Sent only when true; when absent, their absence makes no claim about the artwork. */
2997
+ logo_mark_measured?: boolean;
2998
+ ranking?: TennisRanking;
2999
+ /** Win-loss record as the provider reports it. */
3000
+ record?: string;
3001
+ /** Short display name, such as an abbreviation. */
3002
+ short_label?: string;
3003
+ /** Tennis tour of the player: atp, wta or itf. Sent for a tennis player whether or not a headshot is on file. */
3004
+ tour?: string;
3005
+ };
3006
+ };
3007
+ /** When the pick was published: the recorded instant, the same one the archive returns for it. release_at is the scheduled release. Sent on every pick; absent with the other pick fields on a state=none body. */
3008
+ published_at?: string;
2944
3009
  };
2945
3010
  export type PickOfTheDayArchive = {
2946
3011
  /** Published Pick of the Day selections that have not been withdrawn, newest first by pick_date and then pick_rank within each product day. Withdrawn rows stay excluded after settlement. */
@@ -3383,6 +3448,8 @@ export type PickOfTheDayNoEntitledPicks = {
3383
3448
  * @deprecated
3384
3449
  */
3385
3450
  supersedes_pick_id: string | null;
3451
+ /** The instant until which today's list of published picks can still grow: present while another pick can still be added to the day, absent once the day is final. A later pick is possible, not promised. */
3452
+ more_picks_until?: string;
3386
3453
  };
3387
3454
  export type PickOfTheDayStats = {
3388
3455
  categories: {
@@ -6451,6 +6518,7 @@ export interface OperationData {
6451
6518
  })[];
6452
6519
  state: string;
6453
6520
  view: string;
6521
+ more_picks_until?: string;
6454
6522
  };
6455
6523
  getPickOfTheDayArchive: PickOfTheDayArchive | PickOfTheDayArchiveSummary;
6456
6524
  getPickOfTheDayLedger: PickOfTheDayLedger;
@@ -7039,9 +7107,9 @@ export interface OperationQuery {
7039
7107
  getPickOfTheDay: {
7040
7108
  /** A product day (America/New_York) in YYYY-MM-DD format, on or before today. Omit it, or send today, for the current read. A past day with no published pick returns 404 not_found with error.param=date; a date after today, or a value that is not a date, returns 400 bad_request with error.param=date. */
7041
7109
  date?: string;
7042
- /** full (default) is the whole recorded set: every pick with its holders, lead backer, sports context, thesis and entry_authorization, and the top-level copy of the first pick. summary returns pick_date, pick_count, the disclaimer once, and each entitled pick's identity, side, price, result, return and grade (pick_id, publication_order, is_free_selection, matchup, category, display_category, event_slug, polymarket_url, token_id, pick_outcome_label, outcome, backed_price, stake_usd, return_usd, unit_score, top_grade, holder_count, clv_status, clv_pct, release_at, game_started, game_ended), with the same scheduled_picks, proof_pending_picks and locked_picks. The locked-only state=none body is the same in both views. Any other value returns 400 bad_request with error.param=view. */
7110
+ /** full (default) is the whole recorded set: every pick with its thesis, and its holders, lead backer, sports context and entry_authorization when recorded, and the top-level copy of the first pick. summary returns pick_date, pick_count, the disclaimer once, and each entitled pick's identity, side, price, result, return and grade (pick_id, publication_order, is_free_selection, matchup, category, display_category, event_slug, polymarket_url, token_id, pick_outcome_label, outcome, backed_price, stake_usd, return_usd, unit_score, top_grade, holder_count, clv_status, clv_pct, release_at, game_started, game_ended), with the same scheduled_picks, proof_pending_picks, locked_picks and more_picks_until. The locked-only state=none body is the same in both views. Any other value returns 400 bad_request with error.param=view. */
7043
7111
  view?: "full" | "summary";
7044
- /** One entitled published pick of the day, by its stable decimal-string pick_id. The body carries that pick once, as picks[0], beside state, pick_date and pick_count=1. It leaves out the top-level copy of the first pick that a set read without pick_id repeats, and scheduled_picks, proof_pending_picks and locked_picks. Pair it with date for a past day's pick. A pick_id that is not among the day's entitled published picks returns 404 not_found with error.param=pick_id; one whose holder proof is not readable yet returns 503 read_model_warming with Retry-After; a value that is not a positive canonical decimal returns 400 bad_request with error.param=pick_id. */
7112
+ /** One entitled published pick of the day, by its stable decimal-string pick_id. The body carries that pick once, as picks[0], beside state, pick_date and pick_count=1. It leaves out the top-level copy of the first pick that a set read without pick_id repeats, and scheduled_picks, proof_pending_picks, locked_picks and more_picks_until. Pair it with date for a past day's pick. A pick_id that is not among the day's entitled published picks returns 404 not_found with error.param=pick_id; one whose holder proof is not readable yet returns 503 read_model_warming with Retry-After; a value that is not a positive canonical decimal returns 400 bad_request with error.param=pick_id. */
7045
7113
  pick_id?: string;
7046
7114
  };
7047
7115
  getPickOfTheDayArchive: {