@0xinsider/sdk 0.16.1 → 0.18.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/schema.d.ts CHANGED
@@ -87,7 +87,7 @@ export type ApiErrorBody = {
87
87
  message: string;
88
88
  doc_url?: string;
89
89
  param?: string;
90
- /** The recommended next retry instant (RFC3339). Present on every retryable error (reason=pick_not_released, code=rate_limited including reason=monthly_quota_exceeded, code=rate_limit_unavailable, reason=read_model_warming) and omitted otherwise. Always in the future. For pick_not_released: before the 11:00 UTC operating-window start, before a selected pick's stored release, or after a skipped day, it names the automatic system's next boundary. While no candidate exists in the live window it normally names the persisted next automatic selector attempt. Every value is advisory and can change before release. When the automatic schedule is absent/due or a pick is overdue it degrades to ~60s. Schedule one request and do not poll. Prefer Retry-After for the duration because it is immune to client clock skew. */
90
+ /** The recommended next retry instant (RFC3339). Present on every retryable error (reason=pick_not_released, code=rate_limited including reason=monthly_quota_exceeded, code=rate_limit_unavailable, reason=read_model_warming) and omitted otherwise. Always in the future. For pick_not_released: before the 07:00 UTC operating-window start, before a selected pick's stored release, or after a skipped day, it names the automatic system's next boundary. While no candidate exists in the live window it normally names the persisted next automatic selector attempt. Every value is advisory and can change before release. When the automatic schedule is absent/due or a pick is overdue it degrades to ~60s. Schedule one request and do not poll. Prefer Retry-After for the duration because it is immune to client clock skew. */
91
91
  retry_at?: string;
92
92
  freshness?: FreshnessFailure;
93
93
  /** ADDITIVE (#7209). The specific, actionable cause behind `code`, when there is one more specific than the code itself. `code` keeps its published values, so existing clients are unaffected; new clients branch on `reason`. Omitted when the code already says everything we know. pick_not_released: no Pick of the Day is published for the current product day; schedule one request against retry_at instead of polling. unknown_endpoint: the PATH is not a route on this API -- read GET /api/v1, do not retry. trader_not_tracked: the wallet is real and the URL is right, but the trader is outside the HOT/WARM sync tiers -- stop asking for this wallet. cursor_expired: pagination went stale mid-walk -- re-request the first page and continue. read_model_warming: the requested endpoint cannot serve its read model yet; exact causes are endpoint-specific and can include a cold or contended refresh or a dependency that prevented refresh. database_unavailable: the API's database or its connection pool is temporarily unreachable (a connection-class failure, not a query fault); code stays rate_limit_unavailable, nothing is rate-limited, retry after Retry-After / retry_at. idempotency_in_progress: retain the exact Idempotency-Key and request body, then retry shortly. webhook_delivery_in_progress: retry the URL or signing-secret configuration change after the destination's active request completes. request_accounting_unavailable: accounting capacity is unavailable before the handler executes; retry after Retry-After / retry_at. sandbox_api_key: the credential is a sandbox key (oxi_sk_test_) from POST /api/v1/agents/register, which only the sandbox server accepts -- call the sandbox base URL with it, or get a live key or OAuth access token; do not retry it here. api_key_in_query: the key was sent as a ?token= query parameter, which no route reads because URLs land in logs and history; the key itself was not checked -- resend it as Authorization: Bearer. subscription_inactive: the key is valid but the account's Pro subscription has lapsed (402 subscription_required); permanent until a person reactivates at https://0xinsider.com/billing, which the message names -- stop retrying on a schedule and surface the link. The key owner is emailed once per lapse. monthly_quota_exceeded: the account has used the requests Pro includes for the UTC calendar month (429 rate_limited); retry_at and Retry-After name the first of next month, the only retry that can succeed, and the message names https://0xinsider.com/developers, where pay as you go for requests over the quota is turned on. The X-Monthly-Quota-Limit, X-Monthly-Quota-Remaining and X-Monthly-Quota-Reset headers on every authenticated response say how close the account is. invalid_query, invalid_path, invalid_body (400 bad_request, #16146): a query parameter, a path segment or the JSON body did not parse or does not fit the route's schema, so no handler ran; param names the field when the parser named one (a query key, a path segment, a JSON path such as traders[0], or body); fix the request, never retry it as sent. unsupported_media_type (415 bad_request, param content-type): send the body with Content-Type: application/json. payload_too_large (413 bad_request, param body): the body is over 1048576 bytes. method_not_allowed (405 bad_request): the path is a route but not with this method; the Allow header names the methods it serves. ip_rate_limited (429 rate_limited, #16380): the per-address budget every caller behind one IP shares, counted before authentication, is spent; not the key's own window, and the RateLimit-* headers describe that bucket. ip_throttled (429 rate_limited): the address is in a cooldown after sustained over-limit traffic; Retry-After is minutes to days, and a request before it does not shorten the cooldown. */
@@ -254,6 +254,10 @@ export type CreateWebhookRequest = {
254
254
  event_types: WebhookEventType[];
255
255
  trade_filters?: LargeTradeSubscriptionFilters;
256
256
  };
257
+ export type CreateWebhookVerificationAttemptRequest = {
258
+ /** The original one-time token returned by webhook creation or a URL change. Sent only in the request body and signed receiver challenge. */
259
+ verification_token: string;
260
+ };
257
261
  /** Compact data age and coverage for a response body, always present on the operations that publish it. Read status and as_of to decide whether to use the body at all, and field_groups to see which part is weak. Everything here comes from stored observation clocks, so a cached body reports the same ages a freshly computed one does: meta.cached and meta.cache_age_s stay the only transport-time facts and neither makes this block newer. The per-field audit object is still available through expand=trust; this is the default summary of the same question. */
258
262
  export type DataQuality = {
259
263
  /** fresh when every group is fresh, unavailable when every group is unavailable, and partial in every other case. */
@@ -534,7 +538,7 @@ export type Game = {
534
538
  competitors: GameCompetitor[];
535
539
  /** The esports series length, for example Bo3. Omitted for everything else. */
536
540
  series_format?: string;
537
- /** Whether one of this game's markets pays on a draw. Read this instead of assuming a two-outcome moneyline. */
541
+ /** Whether this read includes a market classified as paying on a draw, including soccer's independent 1X2 draw leg. Read this instead of assuming a two-outcome moneyline. */
538
542
  draw_offered: boolean;
539
543
  /** Every market this read linked to the game, ordered by condition_id. */
540
544
  markets: GameMarket[];
@@ -598,7 +602,7 @@ export type GameMarket = {
598
602
  slug?: string;
599
603
  /** The provider's own market type, for example moneyline or spread. Omitted when the provider sent none. Not an enum: the provider owns this vocabulary and adds to it. */
600
604
  sports_market_type?: string;
601
- /** Which side of the game this market's YES leg pays. draw is a real value: a 1X2 market's third leg is not a competitor. Omitted when the provider ids do not classify the leg, which is not the same as other. */
605
+ /** Which side of the game this market's YES leg pays. Soccer 1X2 legs are explicitly classified as home, draw or away by the provider projection. draw is a real value, not a competitor. Omitted when the provider projection cannot classify the leg, which is not the same as other. */
602
606
  side?: "home" | "away" | "draw" | "other";
603
607
  /** The provider's label for the YES outcome. Omitted when the provider sent none. */
604
608
  outcome_yes?: string;
@@ -890,6 +894,7 @@ export type LeaderboardEntry = {
890
894
  markets_traded?: number;
891
895
  /** The wallet's win rate across ALL categories, not the filtered one. ?category= decides WHICH wallets are listed (the wallet must be ranked in that category); it does not rescope this field, so a soccer-filtered list still reports each wallet's overall rate. For a per-category record use GET /api/v1/trader/{address}/categories. */
892
896
  win_rate?: number;
897
+ /** Observed trading style identifier. New rows use two_sided, category_focused, high_activity, diversified, mixed, or unclassified. Historical identifiers remain readable during normal reclassification; style does not predict skill or intent. */
893
898
  strategy_type?: string;
894
899
  /** Provider platform. Always polymarket. */
895
900
  platform: "polymarket";
@@ -1115,8 +1120,10 @@ export type MarketSnapshot = {
1115
1120
  source: string;
1116
1121
  live_match_key?: string;
1117
1122
  live_league_key?: string;
1118
- /** Live-score period and elapsed may be omitted when unavailable (older responses use null). A score entry may omit full_name when it equals team; fall back to team. Distinct aliases and score admission markers are preserved. */
1119
- live_score?: Record<string, unknown>;
1123
+ /** Live-score period and elapsed may be omitted when unavailable (older responses use null). A score entry may omit full_name when it equals team; fall back to team. Distinct aliases and score admission markers are preserved. For live esports, scores[].map_score retains an available pair through an update omitting both sides only within the same live map, series format and series totals. Map changes and final state follow current provider updates; absent detail remains unavailable. Optional tennis_points supplies independently sourced current-game points and serving side; absence means unavailable. Compatible unexpired tennis_points survives temporary supplemental snapshot unavailability or contention; expiry and set/game mismatch still clear it. */
1124
+ live_score?: Record<string, unknown> & {
1125
+ tennis_points?: TennisPoints;
1126
+ };
1120
1127
  reason?: string;
1121
1128
  };
1122
1129
  freshness: {
@@ -1206,8 +1213,39 @@ export type PickHolder = {
1206
1213
  /** The wallet's X handle from its Polymarket profile, normalized to 1-15 characters of [A-Za-z0-9_] with no `@`. Link it as `https://x.com/<handle>`. 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. */
1207
1214
  x_username?: string | null;
1208
1215
  };
1216
+ /** Recorded lead wallet facts, available only on full newly certified picks. Position and category history are frozen at publication; they are not live balances or pick win probabilities. */
1217
+ export type PickLeadBacker = {
1218
+ /** Lead trader wallet address. */
1219
+ address: string;
1220
+ /** Recorded provider display name. */
1221
+ name: string | null;
1222
+ /** Trader grade recorded at publication. */
1223
+ grade: string;
1224
+ /** Canonical sport of the recorded directional history. */
1225
+ category: string;
1226
+ /** Provider-reported position value on the backed outcome at publication, in USD. It is the gross value on that outcome and does not subtract shares the wallet held on the other outcome; see net_position_usd. It is not the entry cost or a live balance. */
1227
+ position_usd: number;
1228
+ /** Net value of the lead's position toward the backed outcome at publication, in USD: shares held on the backed outcome minus shares held on the other outcome of the same market, valued at the backed outcome's provider price at publication. Present only when the wallet also held the other outcome; absent for a one-sided position, whose net equals position_usd. It is not a live balance. */
1229
+ net_position_usd?: number;
1230
+ /** Start time of the provider position fetch used at publication. This conservative observation clock precedes completion; the position is not a live balance. */
1231
+ position_observed_at: string;
1232
+ /** Distinct directional events in the recorded category history. */
1233
+ directional_event_count: number;
1234
+ /** Events with strictly positive native terminal P&L in the same frozen category sample as directional_event_count, realized_pnl_usd and roi. Multiple market positions in one event contribute one combined event result. Zero-profit events remain in directional_event_count but do not increase this count. This is a recorded wallet result, not a market win rate or the pick's win probability. */
1235
+ profitable_event_count: number;
1236
+ /** Realized P&L over the recorded directional category sample, in USD. Excludes open positions and later changes. */
1237
+ realized_pnl_usd: number;
1238
+ /** Recorded entry basis of that directional sample, in USD; not a claim of complete trading costs or fees. */
1239
+ entry_basis_usd: number;
1240
+ /** Realized P&L divided by recorded entry basis, as a fraction: 0.10 means 10%. This is a wallet statistic, not a pick win probability. */
1241
+ roi: number;
1242
+ /** Peak-to-trough realized P&L drawdown after each event result in the recorded sample, in USD. Excludes intragame, unrealized, and account equity drawdown. */
1243
+ max_realized_drawdown_usd: number;
1244
+ /** Timestamp when the directional history evidence was recorded, separate from the provider position snapshot clock. */
1245
+ recorded_at: string;
1246
+ };
1209
1247
  export type PickOfTheDay = {
1210
- /** Always 'full' for an authenticated Pro key. */
1248
+ /** Full success containing entitled proof-readable picks. */
1211
1249
  state: "full";
1212
1250
  /** The pick's local publication date (YYYY-MM-DD). */
1213
1251
  pick_date?: string;
@@ -1220,7 +1258,7 @@ export type PickOfTheDay = {
1220
1258
  picks?: PickOfTheDay[];
1221
1259
  /** Number of items in `picks`: the proof-readable picks. Picks held in `proof_pending_picks` are not counted. */
1222
1260
  pick_count?: number;
1223
- /** Same-day picks selected but not yet released, ordered by pick_rank. Additive and optional: present only while at least one unreleased slot exists. Each slot exposes only its rank and schedule -- no market identity before release. Schedule the next read from the earliest release_at instead of polling. */
1261
+ /** Rank-ordered entitled selections that have not released. Every row retains release_at and kickoff; unauthorized scheduled ranks appear only in identity-free locked_picks. */
1224
1262
  scheduled_picks?: ScheduledPickSlot[];
1225
1263
  /** Human-readable matchup (e.g. "Portugal vs. Uzbekistan"). */
1226
1264
  matchup?: string;
@@ -1230,7 +1268,7 @@ export type PickOfTheDay = {
1230
1268
  display_category?: string;
1231
1269
  /** Provider platform. Always polymarket. */
1232
1270
  platform?: "polymarket";
1233
- /** The pick's stored release instant. Normally the current provider kickoff minus one hour; an operator may override it. The actual publish instant can trail it because of worker or claim delay. */
1271
+ /** The pick's stored release instant. Qualified automatic selections are due immediately; explicitly scheduled selections retain their stored time. Final checks, worker or claim delay can make the actual publication later. */
1234
1272
  release_at?: string;
1235
1273
  /** True only before the pick's stored release instant (a pre-release embargo flag); effectively always false on a served, already-published pick. To detect that the backed game has kicked off, use `game_started`. */
1236
1274
  is_locked?: boolean;
@@ -1300,7 +1338,7 @@ export type PickOfTheDay = {
1300
1338
  sharp_pct?: number;
1301
1339
  /** Recorded market-implied probability as a 0..1 fraction when available. */
1302
1340
  market_pct?: number;
1303
- /** Optional recorded specialist facts. These describe the trader and do not disclose selection decisions. Present only on a full response when available. */
1341
+ /** Optional legacy recorded specialist facts. These describe the trader and do not disclose selection decisions. Present only on a full response when available; newly certified picks use lead_backer instead. */
1304
1342
  qualifying_expert?: {
1305
1343
  /** Trader wallet address. */
1306
1344
  address: string;
@@ -1323,11 +1361,11 @@ export type PickOfTheDay = {
1323
1361
  };
1324
1362
  /** Public V1 S/A wallet count on the backed side, equal to sharp_wallet_count. */
1325
1363
  traders?: number;
1326
- /** Recorded backed-side sharp-money value in USD when available. */
1364
+ /** Recorded backed-side position value in USD when available. Newly certified picks sum only publication-certified wallet positions; legacy rows retain their recorded value. */
1327
1365
  backed_sharp_usd?: number;
1328
- /** Bounded S/A holder display projection. Historical rows retain their recorded display shape. */
1366
+ /** Bounded S/A holder display projection. Newly certified picks include only publication-certified wallets; historical rows retain their recorded display shape. */
1329
1367
  holders?: PickHolder[];
1330
- /** Optional complete holder display roster. Each entry carries ordinary trader and recorded position facts. */
1368
+ /** Optional complete holder display roster. Newly certified picks list the recorded lead first, then any verified supporters, then the other graded wallets that held the backed side at publication, ordered by shares; only the lead and supporters are verified, the other rows are gross holdings that may also hold the other side and are not counted in the wallet counts, holder_count or backed_sharp_usd. Legacy rows retain their recorded display shape. */
1331
1369
  display_holders?: PickHolder[];
1332
1370
  /** S/A holder count for the public V1 compatibility projection. display_holders can include additional grades. */
1333
1371
  holder_count?: number;
@@ -1347,10 +1385,17 @@ export type PickOfTheDay = {
1347
1385
  sports_context?: PickSportsContext;
1348
1386
  /** Risk disclaimer shown with every pick. */
1349
1387
  disclaimer?: string;
1350
- /** Published same-day picks whose holder proof is not readable yet, ordered by pick_rank. Additive and optional: present only while at least one such pick exists. While present, `picks` carries only the proof-readable picks and `pick_count` counts them. Schedule the next read from the earliest retry_at instead of polling. The route returns 503 read_model_warming only when no published pick has readable proof. */
1388
+ /** Entitled published picks whose holder proof is unreadable, ordered by rank. Unauthorized ranks appear only in locked_picks and cannot trigger proof warming. Read retry_at for the next read. */
1351
1389
  proof_pending_picks?: ProofPendingPickSlot[];
1352
1390
  /** Optional full-response entry authorization. Missing or expired authorization cannot authorize an automated entry. */
1353
1391
  entry_authorization?: PotdEntryAuthorization;
1392
+ /** Unauthorized unresolved published or scheduled ranks. Contains no game, provider identity, price, or identifying clock. Pro may upgrade to Max to open these ranks. */
1393
+ locked_picks?: {
1394
+ pick_rank: number;
1395
+ required_tier: "max";
1396
+ }[];
1397
+ /** Actionable status, including Upgrade to Max when only locked ranks are published. */
1398
+ message?: string;
1354
1399
  /** Stable pick row identity as decimal text. Never use a quality rank as identity. */
1355
1400
  pick_id?: string;
1356
1401
  /** Compatibility release slot. No quality claim; historic scheduling order is retained. */
@@ -1359,11 +1404,13 @@ export type PickOfTheDay = {
1359
1404
  is_free_selection?: boolean;
1360
1405
  /** Replacement predecessor stable id; null when no lineage is recorded. */
1361
1406
  supersedes_pick_id: string | null;
1407
+ /** Optional full-only lead wallet publication facts. Omitted on legacy picks or when the recorded evidence is unavailable. */
1408
+ lead_backer?: PickLeadBacker;
1362
1409
  };
1363
1410
  export type PickOfTheDayArchive = {
1364
- /** Every published Pick of the Day, newest first by pick_date and then pick_rank within each product day. */
1411
+ /** 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. */
1365
1412
  picks: PickOfTheDayArchiveEntry[];
1366
- /** One entry per product day that has a published pick, newest first, in the same order as picks. Each carries that day's net units, accumulated in the same backend pass and behind the same visibility gate as hit_rate.unit_score, so both cover the same population of picks. Re-adding the day totals reproduces hit_rate.unit_score to display precision rather than bit-for-bit, since that re-associates the floating-point sum. */
1413
+ /** One entry per product day that has a published pick included in the archive, newest first, in the same order as picks. Each carries that day's net units, accumulated in the same backend pass and behind the same visibility gate as hit_rate.unit_score, so both cover the same population of picks. Re-adding the day totals reproduces hit_rate.unit_score to display precision rather than bit-for-bit, since that re-associates the floating-point sum. */
1367
1414
  days: PickOfTheDayArchiveDay[];
1368
1415
  hit_rate: PickOfTheDayHitRate;
1369
1416
  };
@@ -1395,12 +1442,12 @@ export type PickOfTheDayArchiveEntry = {
1395
1442
  * @deprecated
1396
1443
  */
1397
1444
  pick_rank?: number;
1398
- /** When this pick became public (RFC3339 UTC). pick_date above is the America/New_York product day, not an instant, so read this whenever you need a real time: reading the bare date as UTC midnight places it hours before the earliest instant a pick can drop (11:00 UTC on that date). A day's last pick can drop at 23:00 ET, which is the following UTC date. Omitted (not null) when the instant is unknown; additive and optional for mixed-version client compatibility. */
1445
+ /** When this selection was published, as RFC3339 UTC. Use this instant for publication feeds and timelines; pick_date is the America/New_York product day, not a publication timestamp. Automatic qualification can begin at ET midnight. Absent only for historical rows whose publication instant is unknown. */
1399
1446
  published_at?: string;
1400
1447
  /** Human-readable matchup (e.g. "Portugal vs. Uzbekistan"). */
1401
- matchup: string;
1448
+ matchup?: string;
1402
1449
  /** Frozen canonical calibration/report bucket (e.g. "Basketball", "MMA", or "Soccer"). Existing semantics are unchanged; presentation consumers should prefer display_category when present. */
1403
- category: string;
1450
+ category?: string;
1404
1451
  /** Frozen public presentation category: the competition the Polymarket event belongs to. A curated label comes first -- an official league (e.g. "WNBA" or "UFC"), the esports title (e.g. "CS2", "LoL", "Dota 2" or "Valorant"), or a soccer competition (e.g. "LaLiga", "Premier League", "Serie A" or "UEFA Champions League"); any other competition carries the provider's own competition name without its season year (e.g. "UEFA Nations League", "ATP" or "Wimbledon"). It equals category only when the provider names no competition. An esports pick keeps the pooled "Esports" bucket in category, so a per-title label never implies a per-title measured cohort. Additive and optional for mixed-version client compatibility. */
1405
1452
  display_category?: string;
1406
1453
  /** Provider (Polymarket Gamma) market thumbnail URL (markets.image); omitted (not null) when the market has no image. Public regardless of the backed-side gate, so present for pending rows too. */
@@ -1445,6 +1492,10 @@ export type PickOfTheDayArchiveEntry = {
1445
1492
  unit_score?: number;
1446
1493
  /** Backend-formatted signed unit score, present exactly when unit_score is present. */
1447
1494
  unit_score_display?: string;
1495
+ /** The account or paid tier needed to open this unresolved rank. */
1496
+ required_tier?: "account" | "insider" | "max";
1497
+ /** True for an unauthorized unresolved row. Game identity, category, image, publication clock and all backed facts are omitted. */
1498
+ backed_side_locked?: boolean;
1448
1499
  /** Stable pick row identity as decimal text. Never use a quality rank as identity. */
1449
1500
  pick_id: string;
1450
1501
  /** Compatibility release slot. No quality claim; historic scheduling order is retained. */
@@ -1627,7 +1678,7 @@ export type PickOfTheDayLedgerOpenedEntry = {
1627
1678
  /** Explicit proof provenance: 1 retains historic eight-field canonical JSON; 2 binds stable pick_id and version without pick_rank. */
1628
1679
  commitment_version: 1 | 2;
1629
1680
  };
1630
- /** A published pick that has not settled. Carries the commitment and nothing that states a side or a price: no nonce, no payload, no outcome. Publishable the instant the pick releases. */
1681
+ /** An unresolved published pick. Carries only date, rank, hash, algorithm, seal instant and permalink. Kickoff and game identity are withheld; seal time remains public commitment provenance. */
1631
1682
  export type PickOfTheDayLedgerSealedEntry = {
1632
1683
  state: "sealed";
1633
1684
  /** ET product day the pick belongs to (YYYY-MM-DD). */
@@ -1643,8 +1694,6 @@ export type PickOfTheDayLedgerSealedEntry = {
1643
1694
  commitment_algo: "sha256(canonical_json(payload)||nonce)";
1644
1695
  /** When the hash was frozen. Always strictly before kickoff: a pick that reaches kickoff unsealed stays unsealed forever, because a seal written after the game started would be a backdated proof. */
1645
1696
  sealed_at: string;
1646
- /** The frozen provider kickoff in the canonical payload form: whole seconds, UTC, literal Z. This exact string reappears inside payload.kickoff when the pick opens. */
1647
- kickoff: string;
1648
1697
  /** The pick's public page. */
1649
1698
  permalink: string;
1650
1699
  /** Stable pick row identity as decimal text. Never use a quality rank as identity. */
@@ -1658,7 +1707,7 @@ export type PickOfTheDayLedgerSealedEntry = {
1658
1707
  /** Explicit proof provenance: 1 retains historic eight-field canonical JSON; 2 binds stable pick_id and version without pick_rank. */
1659
1708
  commitment_version: 1 | 2;
1660
1709
  };
1661
- /** A published pick with no commitment: it predates the scheme, or it reached kickoff unsealed. Nothing here is evidence of WHEN the pick was made. It is emitted rather than skipped, because a ledger with holes where the unprovable picks were would silently flatter the record. Once the pick settles, payload names its market, side and price, so the outcome can still be checked against the market's own resolution. */
1710
+ /** A pick without a commitment, retained so the record cannot omit unprovable entries. Unresolved entries omit game identity; once resolved, matchup, category and payload become public. Existing opened canonical payload bytes and hashes are unchanged. */
1662
1711
  export type PickOfTheDayLedgerUncommittedEntry = {
1663
1712
  state: "uncommitted";
1664
1713
  /** ET product day the pick belongs to (YYYY-MM-DD). */
@@ -1673,9 +1722,9 @@ export type PickOfTheDayLedgerUncommittedEntry = {
1673
1722
  /** How the pick settled, or pending. */
1674
1723
  outcome: "pending" | "win" | "loss" | "void";
1675
1724
  /** Frozen matchup, for a reader. */
1676
- matchup: string;
1725
+ matchup?: string;
1677
1726
  /** Frozen canonical sport bucket used for selection calibration (Basketball, MMA), not the exact public league identity; the archive owns that. */
1678
- category: string;
1727
+ category?: string;
1679
1728
  /** When outcome was LAST written to a settled value, or null when that instant is unknown. It moves with a corrected market re-mapping an already-settled pick, while commitment_hash stays untouched -- which is how a mirror that keeps history sees a correction. */
1680
1729
  resolved_at: string | null;
1681
1730
  /** The pick's market, side and price once it has settled; null while it is pending, and null for a settled pick whose stored row lacks one of these columns. Not hashed: nothing was committed over these values, which is what pre_commitment: true says. */
@@ -1691,6 +1740,30 @@ export type PickOfTheDayLedgerUncommittedEntry = {
1691
1740
  /** Replacement predecessor stable id; null when no lineage is recorded. */
1692
1741
  supersedes_pick_id: string | null;
1693
1742
  };
1743
+ /** A successful current-day entitlement response when only unauthorized ranks have published. It carries an empty pick set, identity-free locked ranks and an upgrade message. Selection IDs, game identity, prices and unauthorized clocks are absent. Any scheduled or proof-pending rows are entitled rows. */
1744
+ export type PickOfTheDayNoEntitledPicks = {
1745
+ /** Only locked ranks are published for this account. */
1746
+ state: "none";
1747
+ /** Current product date in America/New_York (YYYY-MM-DD). */
1748
+ pick_date: string;
1749
+ /** Empty: no entitled proof-readable picks are returned. */
1750
+ picks: PickOfTheDay[];
1751
+ /** Zero entitled proof-readable picks. */
1752
+ pick_count: 0;
1753
+ /** Unauthorized unresolved published or scheduled ranks. Contains no game, provider identity, price, or identifying clock. Pro may upgrade to Max to open these ranks. */
1754
+ locked_picks: {
1755
+ pick_rank: number;
1756
+ required_tier: "max";
1757
+ }[];
1758
+ /** Actionable status, including Upgrade to Max when only locked ranks are published. */
1759
+ message: string;
1760
+ /** Rank-ordered entitled selections that have not released. Every row retains release_at and kickoff; unauthorized scheduled ranks appear only in identity-free locked_picks. */
1761
+ scheduled_picks?: ScheduledPickSlot[];
1762
+ /** Entitled published picks whose holder proof is unreadable, ordered by rank. Unauthorized ranks appear only in locked_picks and cannot trigger proof warming. Read retry_at for the next read. */
1763
+ proof_pending_picks?: ProofPendingPickSlot[];
1764
+ /** Null: the empty entitlement envelope has no selection lineage. */
1765
+ supersedes_pick_id: null;
1766
+ };
1694
1767
  /** A settled uncommitted pick's market, side and price. The same eight fields as PickOfTheDayCommitmentPayload, in the same key order, so a settled pick's side and price sit under payload whatever the entry's state. It is NOT a commitment: no hash was taken over it before the game, and it proves nothing about when the pick was made. */
1695
1768
  export type PickOfTheDayUncommittedPayload = {
1696
1769
  /** Frozen pre-game price of the backed side, 0..1, as the plain decimal text of the stored NUMERIC at full stored precision, trailing zeros included -- rendered exactly as the commitment payload renders it. */
@@ -1731,7 +1804,7 @@ export type PickSportsContext = {
1731
1804
  /** The two teams as a single whole-game label, joined "<home> – <away>" (en-dash) in provider display order (e.g. "Portugal – Uzbekistan"). Composed server-side from the provider team names (no title/slug parsing). Present when both teams resolve a name; omitted for single-subject, teamless, or non-two-team contexts. */
1732
1805
  matchup_title?: string;
1733
1806
  };
1734
- /** A single sports team or competitor in a Pick of the Day market's sports context. Identity and score fields are provider-owned and nullable. The structured score fields (`sets`, `format`, `sets_won`) and the tennis fields (`headshot`, `tour`) are backend-owned and are OMITTED rather than null when they do not apply, so a consumer must treat an absent key and a null the same way. */
1807
+ /** A single sports team or competitor in a Pick of the Day market's sports context. Identity and score fields are provider-owned and nullable. The structured score fields (`sets`, `format`, `sets_won`) and the tennis fields (`headshot`, `headshot_revision`, `tour`) are backend-owned and are OMITTED rather than null when they do not apply, so a consumer must treat an absent key and a null the same way. */
1735
1808
  export type PickSportsTeam = {
1736
1809
  /** Team display label as it appears on the market outcome (e.g. "Portugal"). */
1737
1810
  label: string | null;
@@ -1741,9 +1814,9 @@ export type PickSportsTeam = {
1741
1814
  full_name: string | null;
1742
1815
  /** Provider team identifier (Polymarket /teams id). */
1743
1816
  provider_id: number | null;
1744
- /** Team crest or flag URL. Provider-owned for most teams (Polymarket /teams crest for clubs, country flag for national teams and tennis players). A club with a vendored crest carries it instead, served same-origin as a relative path (`/api/sports/team-logos/{league}/{abbr}.svg?v=<content hash>` or `.png`, resolve it against this server): every NFL and WNBA team, whose provider asset is a text tile, and the soccer clubs whose provider asset is an empty object. */
1817
+ /** Team crest or flag URL. Official NFL (32), WNBA (15), NBA (30), NHL (32), and MLB (30) club crests use same-origin relative paths (`/api/sports/team-logos/{league}/{abbr}.svg?v=<content hash>`); resolve relative URLs against the API origin. Vendored soccer club crests use the same path with `.png`. Other teams use provider artwork, including country flags for national teams and tennis players. Novelty and national-team rows outside the vendored club sets retain provider artwork. */
1745
1818
  logo: string | null;
1746
- /** True when the team mark is dark enough to disappear on a dark background, measured from the artwork by the teams sync. Render a dark mark on a light plate. Always sent; false until the artwork has been measured. */
1819
+ /** True when artwork measurements show that the team mark needs a light plate on a dark background. Vendored crest verdicts are tied to the exact asset bytes; provider artwork is measured by the teams sync. Always sent; false when no current measurement marks the logo dark. */
1747
1820
  logo_mark_dark: boolean;
1748
1821
  /** Team brand color as a hex string (provider-owned). */
1749
1822
  color: string | null;
@@ -1760,6 +1833,10 @@ export type PickSportsTeam = {
1760
1833
  format?: ScoreFormat;
1761
1834
  /** Completed sets won by this side. Present only when both sides expose the same set columns, so a partially parsed scoreline reports no tally rather than a misleading one. */
1762
1835
  sets_won?: number;
1836
+ /** Optional monotonic photo revision for this tennis player, independent of the sports score revision. Legacy stored photos start at zero. Successful new or changed image bytes advance it; source checks and attribution changes do not. Compare only for the same tour and provider_id: a higher revision replaces the portrait, an equal revision may fill a missing portrait, and a lower revision must not replace a newer one. Absent when no photo resolved. */
1837
+ headshot_revision?: number;
1838
+ /** Optional latest retrieved ATP/WTA singles rank for this player. Absent for unranked, ambiguous, doubles, expired, or unavailable identities. This is not rank at match time. */
1839
+ ranking?: TennisRanking;
1763
1840
  };
1764
1841
  export type PlatformCapabilities = {
1765
1842
  grade: PlatformCapabilityStatus;
@@ -1870,11 +1947,12 @@ export type PositionTimelineEvent = {
1870
1947
  /** Cumulative buy-weighted average of stored fills for this outcome, including older pages; not provider current-position avgPrice. Sells do not change this value. 0 when no stored buys have occurred yet. */
1871
1948
  running_avg_price: number;
1872
1949
  };
1873
- /** Returned entry permission bound to the named market, token and outcome. Honor max_entry_price and expires_at, and check a current executable order book for the actual stake. This snapshot does not guarantee current liquidity, execution or positive expected value. */
1950
+ /** Returned entry permission bound to the named market, token and outcome. New policy-8 grants allow five cents above the first reference ask, capped at 85 cents and floored to the provider tick; policy-7 grants retain their original two-cent allowance. Honor the immutable max_entry_price and expires_at, and quote a current executable book for the actual stake. The submitted order price must remain within the limit; fills may be lower. Fees are separate, and this grant does not guarantee liquidity, execution or positive expected value. */
1874
1951
  export type PotdEntryAuthorization = {
1875
1952
  version: 1;
1876
1953
  authorization_id: string;
1877
- policy_version: 7;
1954
+ /** Entry allowance policy, independent of selection or feed policy. Policy 8 issues new grants at the first reference ask plus 0.05, capped at 0.85 and floored to the provider tick. Policy 7 retains its original plus-0.02 grant. Existing grants never rise or extend. */
1955
+ policy_version: 7 | 8;
1878
1956
  condition_id: string;
1879
1957
  token_id: string;
1880
1958
  outcome_index: 0 | 1;
@@ -1882,13 +1960,14 @@ export type PotdEntryAuthorization = {
1882
1960
  category: string;
1883
1961
  /** Exact provider parent event ID, or provider event ID when no parent exists. */
1884
1962
  canonical_event_id: string;
1885
- /** Returned maximum entry price as an exact decimal string. Honor this bound; fees are excluded. This is not a fair probability. */
1963
+ /** Maximum authorized order price as an exact decimal string, excluding fees. Quote a current executable book for the actual stake and keep the submitted order price at or below this bound. Actual fills may be lower; this limit does not guarantee a fill or define fair probability. */
1886
1964
  max_entry_price: string;
1965
+ /** Selected-token best ask at first issuance. The entry allowance uses this immutable reference, not the published pick price or a later quote. */
1887
1966
  reference_best_ask: string;
1888
1967
  reference_book_hash: string;
1889
1968
  reference_book_at: string;
1890
1969
  issued_at: string;
1891
- /** Authorization expiry. An expired authorization cannot authorize a new automated entry. */
1970
+ /** Original authorization expiry at the earlier requested or provider kickoff; never extended. An expired authorization cannot authorize a new automated entry. */
1892
1971
  expires_at: string;
1893
1972
  };
1894
1973
  /** One ranked pre-game sports market where graded sharp money is piled on one side, with required-status shadow category evidence from partial forward-observed Polymarket fills. */
@@ -2249,14 +2328,14 @@ export type ResponseMeta = {
2249
2328
  /** Independent SHA-256 recomputation over the same base fields immediately after category-skill enrichment. Equality with category_skill_base_payload_hash proves shadow enrichment did not change funded inputs. Sports-edge-signals only. */
2250
2329
  category_skill_enriched_base_payload_hash?: string;
2251
2330
  };
2252
- /** One same-day pick that is selected but not yet released: its stable slot rank plus the backend-owned release and kickoff instants. Deliberately minimal -- no matchup, category, platform, side, price, or holder fields exist on this shape before release. */
2331
+ /** An entitled same-day pick selected but not yet released: stable rank and backend-owned release/kickoff instants. No matchup, category, platform, side, price, or holder fields appear before release. Unauthorized scheduled ranks appear only in locked_picks. */
2253
2332
  export type ScheduledPickSlot = {
2254
2333
  /**
2255
2334
  * Deprecated compatibility daily release slot; use pick_id for identity and publication_order for scheduling.
2256
2335
  * @deprecated
2257
2336
  */
2258
2337
  pick_rank: number;
2259
- /** The slot's scheduled release instant, normally the current provider kickoff minus one hour. The actual publish can trail it by bounded worker delay. */
2338
+ /** The slot's stored release instant. Qualified automatic selections are due immediately; explicitly scheduled selections retain their stored time. The actual publication can follow final checks and worker delay. */
2260
2339
  release_at: string;
2261
2340
  /** The backed game's current kickoff instant. */
2262
2341
  kickoff: string;
@@ -2376,6 +2455,41 @@ export type SuspiciousTrade = {
2376
2455
  /** Stored trade timestamp. */
2377
2456
  created_at: string;
2378
2457
  };
2458
+ /** Optional current-game tennis facts from API-Tennis, aligned with live_score.scores display order. These facts have their own revision and expiry; Polymarket remains the source of sets, match status, period, and the outer live-score revision. New observations require corroborated identity, current set/games, and live state. Cached responses and replayed frames may still carry expired facts, so clients must enforce expires_at. */
2459
+ export type TennisPoints = {
2460
+ source: "api_tennis";
2461
+ /** API-Tennis match ID. This is not a Polymarket market or event ID. */
2462
+ match_key: number;
2463
+ /** API-Tennis player IDs in the same first/second order as live_score.scores. These are not Polymarket team IDs. */
2464
+ player_keys: number[];
2465
+ /** Current-game point values in first/second order. Read strings, including A for advantage and numeric tiebreak points. Missing points are not zero. */
2466
+ points: string[];
2467
+ /** The serving player in live_score.scores display order. Omitted when API-Tennis does not identify the server. */
2468
+ serving_side?: "first" | "second";
2469
+ /** Orders only the tennis_points group for the same match. Never compare this with live_score.source_revision. */
2470
+ source_revision: number;
2471
+ /** When 0xinsider observed these API-Tennis facts. This is not a timestamp from the court. */
2472
+ observed_at: string;
2473
+ /** Stop displaying the point group at this instant, even if the enclosing score remains fresh. The group expires 30 seconds after observed_at. */
2474
+ expires_at: string;
2475
+ /** Current set number. Display points only while this matches the enclosing scoreboard. */
2476
+ set_number: number;
2477
+ /** Current-set games in first/second order. Display points only while these match the enclosing scoreboard. */
2478
+ games: number[];
2479
+ };
2480
+ /** A provider-reported ATP/WTA singles rank with independent retrieval and expiry clocks. API-Tennis provides no ranking publication date. Retrieval time does not establish when the tour published the ranking. */
2481
+ export type TennisRanking = {
2482
+ /** Provider-reported singles rank. */
2483
+ rank: number;
2484
+ /** The player ranking tour. */
2485
+ tour: "atp" | "wta";
2486
+ /** The standings provider. */
2487
+ source: "api_tennis";
2488
+ /** Successful snapshot retrieval time in UTC, not ranking publication date. */
2489
+ observed_at: string;
2490
+ /** UTC deadline after which clients must hide this rank, including when an older game or pick response remains cached. */
2491
+ expires_at: string;
2492
+ };
2379
2493
  export type Trader = {
2380
2494
  /** Prefixed ID (trd_...). */
2381
2495
  id: string;
@@ -2412,6 +2526,7 @@ export type Trader = {
2412
2526
  exact?: TraderStatsExact;
2413
2527
  };
2414
2528
  strategy?: {
2529
+ /** Observed trading style identifier. New rows use two_sided, category_focused, high_activity, diversified, mixed, or unclassified. Historical identifiers remain readable during normal reclassification; style does not predict skill or intent. */
2415
2530
  strategy_type?: string;
2416
2531
  description?: string;
2417
2532
  confidence?: number;
@@ -2916,7 +3031,7 @@ export type Usage = {
2916
3031
  reset_at: number;
2917
3032
  window_seconds: number;
2918
3033
  };
2919
- /** The monthly request quota (#16111): where the account stands against the requests Pro includes per UTC calendar month. Reading it here spends nothing. null only when the month's count could not be read for this response. */
3034
+ /** The monthly request quota (#16111): where the account stands against the requests the current Pro or Max plan includes per UTC calendar month. Reading it here spends nothing. null only when the month's count could not be read for this response. */
2920
3035
  monthly_quota: {
2921
3036
  /** Admitted requests so far this UTC calendar month. */
2922
3037
  used: number;
@@ -2933,6 +3048,8 @@ export type Usage = {
2933
3048
  pay_as_you_go: boolean;
2934
3049
  /** The most requests this account is admitted in a UTC calendar month once enforcement has begun: limit, or 1,000,000 with pay as you go on. null for an admin account, which no number stops. Additive since 2026-09-22. */
2935
3050
  ceiling: number | null;
3051
+ /** A historical usage price has not been reconciled to this plan allowance. Pay as you go remains unavailable until billing reconciliation. */
3052
+ unavailable_reason?: "usage_price_reconciliation_required" | null;
2936
3053
  } | null;
2937
3054
  };
2938
3055
  meta: ResponseMeta;
@@ -3014,6 +3131,29 @@ export type WebhookVerification = {
3014
3131
  token: string;
3015
3132
  expires_at: string;
3016
3133
  };
3134
+ export type WebhookVerificationAttempt = {
3135
+ id: string;
3136
+ object: "webhook_verification_attempt";
3137
+ webhook_id: number;
3138
+ /** queued/running are pending consent. verified means the same endpoint revision answered 2xx and activated atomically. failed/cancelled/expired are terminal and do not restart on polling or replay. */
3139
+ state: "queued" | "running" | "verified" | "failed" | "cancelled" | "expired";
3140
+ /** Sanitized last observation. Null before an observation; queued retries may retain their previous failure outcome. */
3141
+ outcome: "verified" | "target_rejected" | "challenge_timeout" | "transport_failed" | "receiver_rejected" | "token_expired" | "endpoint_changed" | "owner_revoked" | "attempts_exhausted" | "internal_error" | null;
3142
+ attempt_count: number;
3143
+ max_attempts: 4;
3144
+ /** Earlier of the verification-token deadline and 15 minutes after admission. Activation is forbidden at or after this instant. */
3145
+ expires_at: string;
3146
+ /** Scheduled retry/admission time while queued; null while running or terminal. */
3147
+ next_attempt_at: string | null;
3148
+ /** Actual receiver HTTP status, when one arrived. No receiver response body or resolved address is returned. */
3149
+ last_response_status: number | null;
3150
+ started_at: string | null;
3151
+ completed_at: string | null;
3152
+ created_at: string;
3153
+ updated_at: string;
3154
+ /** Relative authorized API path for this attempt. Uses the same bearer credential as admission. */
3155
+ status_url: string;
3156
+ };
3017
3157
  export type WhaleDatasetArtifactManifest = {
3018
3158
  /** Version of the artifact manifest contract. */
3019
3159
  manifest_version: string;
@@ -3263,6 +3403,7 @@ export interface OperationData {
3263
3403
  };
3264
3404
  };
3265
3405
  createWebhook: WebhookEndpoint;
3406
+ createWebhookVerificationAttempt: WebhookVerificationAttempt;
3266
3407
  deleteWebhook: WebhookEndpoint;
3267
3408
  exploreMarkets: ExploreEntry[];
3268
3409
  getAccountIdentity: {
@@ -3315,7 +3456,7 @@ export interface OperationData {
3315
3456
  getMarketIntel: MarketFlow;
3316
3457
  getMarketSnapshot: MarketSnapshot;
3317
3458
  getMonthlyReportSnapshot: ReportSnapshot;
3318
- getPickOfTheDay: PickOfTheDay;
3459
+ getPickOfTheDay: PickOfTheDay | PickOfTheDayNoEntitledPicks;
3319
3460
  getPickOfTheDayArchive: PickOfTheDayArchive;
3320
3461
  getPickOfTheDayLedger: PickOfTheDayLedger;
3321
3462
  getPickOfTheDayLedgerEntry: PickOfTheDayLedgerEntry;
@@ -3397,7 +3538,7 @@ export interface OperationData {
3397
3538
  reset_at: number;
3398
3539
  window_seconds: number;
3399
3540
  };
3400
- /** The monthly request quota (#16111): where the account stands against the requests Pro includes per UTC calendar month. Reading it here spends nothing. null only when the month's count could not be read for this response. */
3541
+ /** The monthly request quota (#16111): where the account stands against the requests the current Pro or Max plan includes per UTC calendar month. Reading it here spends nothing. null only when the month's count could not be read for this response. */
3401
3542
  monthly_quota: {
3402
3543
  /** Admitted requests so far this UTC calendar month. */
3403
3544
  used: number;
@@ -3414,9 +3555,12 @@ export interface OperationData {
3414
3555
  pay_as_you_go: boolean;
3415
3556
  /** The most requests this account is admitted in a UTC calendar month once enforcement has begun: limit, or 1,000,000 with pay as you go on. null for an admin account, which no number stops. Additive since 2026-09-22. */
3416
3557
  ceiling: number | null;
3558
+ /** A historical usage price has not been reconciled to this plan allowance. Pay as you go remains unavailable until billing reconciliation. */
3559
+ unavailable_reason?: "usage_price_reconciliation_required" | null;
3417
3560
  } | null;
3418
3561
  };
3419
3562
  getWebhook: WebhookEndpoint;
3563
+ getWebhookVerificationAttempt: WebhookVerificationAttempt;
3420
3564
  getWeeklyReportSnapshot: ReportSnapshot;
3421
3565
  getWhaleDatasetStatus: {
3422
3566
  job_id: number;
@@ -3615,6 +3759,7 @@ export interface OperationQuery {
3615
3759
  cancelWhaleDataset: Record<string, never>;
3616
3760
  createMcpJsonRpcResponse: Record<string, never>;
3617
3761
  createWebhook: Record<string, never>;
3762
+ createWebhookVerificationAttempt: Record<string, never>;
3618
3763
  deleteWebhook: Record<string, never>;
3619
3764
  exploreMarkets: {
3620
3765
  /** Filter by market category (case-insensitive). A canonical bucket name (e.g. Basketball) matches every provider member that folds into it (NBA, WNBA, NCAAB); a raw provider value also resolves to its bucket. Facet values are returned as the canonical bucket. */
@@ -3681,7 +3826,7 @@ export interface OperationQuery {
3681
3826
  min_grade?: "S" | "A" | "B";
3682
3827
  /** Maximum holders per page. Out-of-range values are clamped to 1..100. */
3683
3828
  limit?: number;
3684
- /** Opaque pagination cursor from the previous response's next_cursor. It encodes a page of one shared roster, so it stays valid across the roster's refresh, but a page read after a refresh can repeat or skip a holder. */
3829
+ /** Opaque pagination cursor from the previous response's next_cursor. New cursors carry an absolute next offset bound to normalized condition_id, outcome and effective min_grade, so limit can change without skipping or repeating rows on the same roster. Different market/filter bindings return 400 bad_request with param=cursor; omitted filters match all/B and mkt_-prefixed IDs match their raw condition_id. Legacy page-only cursors remain accepted without scheduled retirement and require their original limit; their next response emits the new format. A cursor remains valid across roster refreshes, which can still repeat or skip holders as the live roster changes. */
3685
3830
  cursor?: string;
3686
3831
  };
3687
3832
  getMarketIntel: {
@@ -3777,6 +3922,7 @@ export interface OperationQuery {
3777
3922
  };
3778
3923
  getUsage: Record<string, never>;
3779
3924
  getWebhook: Record<string, never>;
3925
+ getWebhookVerificationAttempt: Record<string, never>;
3780
3926
  getWeeklyReportSnapshot: {
3781
3927
  /** UTC source-range start in YYYY-MM-DD format; required with to. Together with to, selects an exact ephemeral range of at most 31 inclusive UTC days. A start after tomorrow UTC returns 400 bad_request with error.param=from. */
3782
3928
  from?: string;
@@ -3900,8 +4046,8 @@ export interface OperationQuery {
3900
4046
  cursor?: string;
3901
4047
  /** Filter by category. Values are matched to canonical category buckets: political variants (Elections, Global Politics, U.S. Politics, ...) fold into Politics, Geopolitics stays distinct, Culture/Entertainment map to Pop Culture, Science maps to Science & Tech, and Finance/Business map to Stocks. Mapped buckets are case-insensitive; passthrough categories (Crypto, NBA, and the sports leagues) match case-sensitively against the provider-native bucket key, so use exact casing (e.g. Crypto, NBA). */
3902
4048
  category?: string;
3903
- /** Filter by ML-detected strategy type. Values come from backend/crates/analytics/src/trader_analysis/classification/decision_tree.rs and are matched exactly against ml_trader_category.primary_type. Values outside the declared enum return HTTP 400. */
3904
- strategy?: "accumulator" | "algo_trader" | "arbitrageur" | "directional" | "event_driven" | "market_maker" | "momentum" | "scalper" | "speculator" | "swing_trader";
4049
+ /** Filter by observed trading style. Current styles: two_sided, category_focused, high_activity, diversified, mixed, unclassified. The original ten archetype identifiers remain accepted for historical rows until normal reclassification. Style describes recorded behavior; grade measures performance. */
4050
+ strategy?: "accumulator" | "algo_trader" | "arbitrageur" | "category_focused" | "directional" | "diversified" | "event_driven" | "high_activity" | "market_maker" | "mixed" | "momentum" | "scalper" | "speculator" | "swing_trader" | "two_sided" | "unclassified";
3905
4051
  };
3906
4052
  listPositions: {
3907
4053
  /** Maximum number of current positions to return. Out-of-range values are clamped to 1..100. */
@@ -4145,6 +4291,10 @@ export interface OperationPath {
4145
4291
  };
4146
4292
  createMcpJsonRpcResponse: Record<string, never>;
4147
4293
  createWebhook: Record<string, never>;
4294
+ createWebhookVerificationAttempt: {
4295
+ /** Webhook endpoint id owned by the authenticated API key user. */
4296
+ id: number;
4297
+ };
4148
4298
  deleteWebhook: {
4149
4299
  /** Webhook endpoint id owned by the authenticated API key user. */
4150
4300
  id: number;
@@ -4252,6 +4402,12 @@ export interface OperationPath {
4252
4402
  /** Webhook endpoint id owned by the authenticated API key user. */
4253
4403
  id: number;
4254
4404
  };
4405
+ getWebhookVerificationAttempt: {
4406
+ /** Webhook endpoint id owned by the authenticated API key user. */
4407
+ id: number;
4408
+ /** Verification attempt UUID returned by admission. Must belong to this webhook and account. */
4409
+ attempt_id: string;
4410
+ };
4255
4411
  getWeeklyReportSnapshot: Record<string, never>;
4256
4412
  getWhaleDatasetStatus: {
4257
4413
  /** Dataset job ID returned by submit; another owner or a trader export returns 404. */
@@ -4373,6 +4529,7 @@ export interface OperationBody {
4373
4529
  params?: Record<string, unknown>;
4374
4530
  };
4375
4531
  createWebhook: CreateWebhookRequest;
4532
+ createWebhookVerificationAttempt: CreateWebhookVerificationAttemptRequest;
4376
4533
  deleteWebhook: never;
4377
4534
  exploreMarkets: never;
4378
4535
  getAccountIdentity: never;
@@ -4411,6 +4568,7 @@ export interface OperationBody {
4411
4568
  getTraderPnl: never;
4412
4569
  getUsage: never;
4413
4570
  getWebhook: never;
4571
+ getWebhookVerificationAttempt: never;
4414
4572
  getWeeklyReportSnapshot: never;
4415
4573
  getWhaleDatasetStatus: never;
4416
4574
  getWhaleTrade: never;
@@ -4499,6 +4657,11 @@ export interface OperationResponse {
4499
4657
  data: OperationData["createWebhook"];
4500
4658
  meta: ResponseMeta;
4501
4659
  };
4660
+ createWebhookVerificationAttempt: {
4661
+ object: "webhook_verification_attempt";
4662
+ data: OperationData["createWebhookVerificationAttempt"];
4663
+ meta: ResponseMeta;
4664
+ };
4502
4665
  deleteWebhook: {
4503
4666
  object: "webhook";
4504
4667
  data: OperationData["deleteWebhook"];
@@ -4694,6 +4857,11 @@ export interface OperationResponse {
4694
4857
  data: OperationData["getWebhook"];
4695
4858
  meta: ResponseMeta;
4696
4859
  };
4860
+ getWebhookVerificationAttempt: {
4861
+ object: "webhook_verification_attempt";
4862
+ data: OperationData["getWebhookVerificationAttempt"];
4863
+ meta: ResponseMeta;
4864
+ };
4697
4865
  getWeeklyReportSnapshot: {
4698
4866
  object: "report_snapshot";
4699
4867
  data: OperationData["getWeeklyReportSnapshot"];