@0xinsider/sdk 0.19.0 → 0.21.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/client.d.ts CHANGED
@@ -19,7 +19,7 @@
19
19
  * - Extra typed convenience methods for list/candle/webhook-event/stream
20
20
  * surfaces and a typed `Grade` enum.
21
21
  */
22
- import type { OperationBody, OperationData, OperationPath, OperationQuery, OperationResponse, ResponseMeta } from "./schema.js";
22
+ import type { OperationBody, OperationData, OperationPath, OperationQuery, OperationResponse, ResponseMeta, EdgeHunterBoardResponse, EdgeHunterSignalsResponse, EdgeHunterObservationsResponse } from "./schema.js";
23
23
  /**
24
24
  * The envelope `meta` as THIS client hands it to a caller: everything the
25
25
  * contract declares (`ResponseMeta`), plus `etag`.
@@ -235,23 +235,8 @@ export declare const API_CLIENT_OPERATIONS: readonly [{
235
235
  readonly auth: "bearer";
236
236
  }, {
237
237
  readonly method: "GET";
238
- readonly path: "/api/v1/sports/pre-game-sides";
239
- readonly operationId: "listPreGameSides";
240
- readonly auth: "bearer";
241
- }, {
242
- readonly method: "GET";
243
- readonly path: "/api/v1/sports/pre-game-side-observations";
244
- readonly operationId: "listPreGameSideObservations";
245
- readonly auth: "bearer";
246
- }, {
247
- readonly method: "GET";
248
- readonly path: "/api/v1/sports-edge-signals";
249
- readonly operationId: "listSportsEdgeSignals";
250
- readonly auth: "bearer";
251
- }, {
252
- readonly method: "GET";
253
- readonly path: "/api/v1/sports-edge-observations";
254
- readonly operationId: "listSportsEdgeObservations";
238
+ readonly path: "/api/v1/edge-hunter";
239
+ readonly operationId: "getEdgeHunter";
255
240
  readonly auth: "bearer";
256
241
  }, {
257
242
  readonly method: "GET";
@@ -615,6 +600,26 @@ export declare const REDIRECT_OPERATIONS: readonly [{
615
600
  * accounted for here, so "unsupported" is always a stated decision.
616
601
  */
617
602
  export declare const UNSUPPORTED_OPERATIONS: readonly [{
603
+ readonly method: "GET";
604
+ readonly path: "/api/v1/sports/pre-game-sides";
605
+ readonly operationId: "listPreGameSides";
606
+ readonly reason: "Retired permanently: this path returns 410 endpoint_retired. Use edgeHunter.get() with a Max credential.";
607
+ }, {
608
+ readonly method: "GET";
609
+ readonly path: "/api/v1/sports/pre-game-side-observations";
610
+ readonly operationId: "listPreGameSideObservations";
611
+ readonly reason: "Retired permanently: this path returns 410 endpoint_retired. Use edgeHunter.get() with a Max credential.";
612
+ }, {
613
+ readonly method: "GET";
614
+ readonly path: "/api/v1/sports-edge-signals";
615
+ readonly operationId: "listSportsEdgeSignals";
616
+ readonly reason: "Retired permanently: this path returns 410 endpoint_retired. Use edgeHunter.get() with a Max credential.";
617
+ }, {
618
+ readonly method: "GET";
619
+ readonly path: "/api/v1/sports-edge-observations";
620
+ readonly operationId: "listSportsEdgeObservations";
621
+ readonly reason: "Retired permanently: this path returns 410 endpoint_retired. Use edgeHunter.get() with a Max credential.";
622
+ }, {
618
623
  readonly method: "GET";
619
624
  readonly path: "/api/v1/mcp";
620
625
  readonly operationId: "openMcpEventStream";
@@ -847,43 +852,27 @@ export interface CategorySkillStatusCounts {
847
852
  export type GamesListParams = OperationQuery["listGames"];
848
853
  /** One game: both sides, its schedule, its provider status and its markets. */
849
854
  export type { Game } from "./schema.js";
850
- /** Query parameters of `GET /api/v1/sports/pre-game-sides` (#16310). */
851
- export type PreGameSidesParams = OperationQuery["listPreGameSides"];
852
- /** @deprecated Use {@link PreGameSidesParams} (#16310). */
853
- export type SportsEdgeSignalsParams = PreGameSidesParams;
854
- /** Observation cohorts exposed by `listPreGameSideObservations`. */
855
- export type SportsEdgeObservationCohort = "wider_holder" | "in_play" | "emerging_pile";
856
- /** Source of the provider holder snapshot used to build an observation. */
857
- export type SportsEdgeObservationProviderSource = "cached" | "live";
858
- /** Why a sport's upcoming-board source is (un)available in the funnel report. */
859
- export type SportsEdgeObservationBoardUpcomingStatus = "unknown" | "not_configured" | "available" | "capacity_limited" | "source_unavailable" | "cold_unavailable" | "deadline_unavailable";
860
- /** Scope attribution for an unavailable upcoming-board union. */
861
- export type SportsEdgeObservationBoardUnavailableScope = "category" | "nfl" | "cfb" | "nba" | "wnba" | "nhl" | "mls" | "valorant" | "league-of-legends" | "counter-strike-2" | "dota-2" | "registry" | "union" | "wave";
862
- /** Truthful state of the cross-market directional read. */
863
- export type SportsEdgeObservationDirectionalStatus = "available" | "unknown_ungrouped" | "unknown_stale" | "unavailable";
864
- /**
865
- * Provider binary-column selector for observation markets: 0 selects
866
- * outcome_yes/token_id_yes; 1 selects outcome_no/token_id_no. Use piled_side,
867
- * not this index, for participant identity.
868
- */
869
- export type SportsEdgeObservationOutcomeIndex = 0 | 1;
870
- /** Closed grade vocabulary for the best holder grade on an observation. */
871
- export type SportsEdgeObservationTopGrade = "S" | "A" | "B";
872
- /** Canonical sports emitted by observation responses. */
873
- export type SportsEdgeObservationSport = "Basketball" | "Football" | "Baseball" | "Hockey" | "MMA" | "Boxing" | "Soccer" | "Cricket" | "Golf" | "Tennis" | "Esports" | "Racing" | "Table Tennis" | "Pickleball";
874
- /**
875
- * Full list response, including the observation snapshot and accountable
876
- * funnel: the operation's own envelope (#16136). `degraded` is the
877
- * snapshot-wide verdict; fully accounted `capacity_limited` rows alone do
878
- * not set it.
879
- */
880
- export type PreGameSideObservationsResponse = OperationEnvelope<"listPreGameSideObservations">;
881
- /** @deprecated Use {@link PreGameSideObservationsResponse} (#16310). */
882
- export type SportsEdgeObservationsResponse = PreGameSideObservationsResponse;
883
- /** Query parameters of `GET /api/v1/sports/pre-game-side-observations` (#16310). */
884
- export type PreGameSideObservationsParams = OperationQuery["listPreGameSideObservations"];
885
- /** @deprecated Use {@link PreGameSideObservationsParams} (#16310). */
886
- export type SportsEdgeObservationsParams = PreGameSideObservationsParams;
855
+ /** The unchanged quoted board; advanced-only parameters are unavailable here. */
856
+ export type EdgeHunterBoardParams = Pick<OperationQuery["getEdgeHunter"], "horizon_hours"> & {
857
+ view?: "board";
858
+ };
859
+ /** Full ranked records with category, grade and horizon projection before pagination. */
860
+ export type EdgeHunterSignalsParams = Pick<OperationQuery["getEdgeHunter"], "category" | "limit" | "cursor" | "horizon_hours" | "min_grade"> & {
861
+ view: "signals";
862
+ };
863
+ /** Full observation evidence; cohort is required, including for empty pages. */
864
+ export type EdgeHunterObservationsParams = Pick<OperationQuery["getEdgeHunter"], "category" | "limit" | "cursor"> & {
865
+ view: "observations";
866
+ cohort: NonNullable<OperationQuery["getEdgeHunter"]["cohort"]>;
867
+ };
868
+ export type EdgeHunterAdvancedParams = EdgeHunterSignalsParams | EdgeHunterObservationsParams;
869
+ export type EdgeHunterParams = EdgeHunterBoardParams | EdgeHunterAdvancedParams;
870
+ export type EdgeHunterBoardResult = ClientEnvelope<EdgeHunterBoardResponse> | ApiNotModifiedResponse;
871
+ export type EdgeHunterSignalsResult = ClientEnvelope<EdgeHunterSignalsResponse> | ApiNotModifiedResponse;
872
+ export type EdgeHunterObservationsResult = ClientEnvelope<EdgeHunterObservationsResponse> | ApiNotModifiedResponse;
873
+ export type EdgeHunterAdvancedResult = EdgeHunterSignalsResult | EdgeHunterObservationsResult;
874
+ /** Full advanced collection envelope for a literal view; excludes conditional 304 results. */
875
+ export type EdgeHunterCollection<P extends EdgeHunterAdvancedParams> = P extends EdgeHunterSignalsParams ? Exclude<EdgeHunterSignalsResult, ApiNotModifiedResponse> : Exclude<EdgeHunterObservationsResult, ApiNotModifiedResponse>;
887
876
  /** Public wallet facts associated with a recorded pick. */
888
877
  export interface PickQualifyingExpert {
889
878
  address: string;
@@ -965,9 +954,13 @@ export type OperationMeta<K extends ApiOperationId> = OperationResponse[K] exten
965
954
  * the replay, `ResponseMeta` elsewhere) plus this client's lifted `etag` and
966
955
  * `sandbox`.
967
956
  */
968
- export type OperationEnvelope<K extends EnvelopeOperationId> = Omit<OperationResponse[K], "meta"> & {
969
- meta: ClientMeta<OperationMeta<K>>;
970
- };
957
+ type ClientEnvelope<T> = T extends {
958
+ meta: infer M;
959
+ } ? Omit<T, "meta"> & {
960
+ meta: ClientMeta<M>;
961
+ } : never;
962
+ /** Distribute over response variants so view-specific pagination and evidence stay typed. */
963
+ export type OperationEnvelope<K extends EnvelopeOperationId> = ClientEnvelope<OperationResponse[K]>;
971
964
  /** A `call()` result: the envelope, or the typed 304 when `If-None-Match` matched. */
972
965
  export type OperationResult<K extends EnvelopeOperationId> = OperationEnvelope<K> | ApiNotModifiedResponse;
973
966
  /** One item of a list operation's `data`. */
@@ -1019,6 +1012,8 @@ export type OperationOptionsArgs<K extends ApiOperationId, O> = OperationRequire
1019
1012
  * parameter before any request.
1020
1013
  */
1021
1014
  export type RuntimeOperationId<I extends ApiOperationId> = I & (ApiOperationId extends I ? unknown : OptionalInputOperationId);
1015
+ /** A literal Edge Hunter list call must select an advanced view; runtime-chosen ids stay available. */
1016
+ export type RuntimeListOperationId<I extends ApiOperationId> = RuntimeOperationId<I> & ("getEdgeHunter" extends I ? ApiOperationId extends I ? unknown : never : unknown);
1022
1017
  /** The transport options a convenience method forwards: everything but the parts it fills itself. */
1023
1018
  export type ConvenienceOptions = Omit<ApiRequestOptions, "path" | "query" | "body">;
1024
1019
  /** The MCP methods `POST /api/v1/mcp` accepts, from the operation's request body. */
@@ -1165,10 +1160,31 @@ export declare class OxinsiderApiClient {
1165
1160
  private readonly fetchImpl;
1166
1161
  private readonly timeoutMs;
1167
1162
  private readonly maxRetries;
1163
+ /** Max-only Edge Hunter board and full ranked/observation collection views. */
1164
+ readonly edgeHunter: {
1165
+ get: {
1166
+ (params?: EdgeHunterBoardParams, options?: ConvenienceOptions): Promise<EdgeHunterBoardResult>;
1167
+ (params: EdgeHunterSignalsParams, options?: ConvenienceOptions): Promise<EdgeHunterSignalsResult>;
1168
+ (params: EdgeHunterObservationsParams, options?: ConvenienceOptions): Promise<EdgeHunterObservationsResult>;
1169
+ (params: EdgeHunterParams, options?: ConvenienceOptions): Promise<OperationResult<"getEdgeHunter">>;
1170
+ };
1171
+ /** Conditional reads are supported only by the advanced snapshot views. */
1172
+ getConditional: {
1173
+ (params: EdgeHunterSignalsParams, options?: ConvenienceOptions): Promise<EdgeHunterSignalsResult>;
1174
+ (params: EdgeHunterObservationsParams, options?: ConvenienceOptions): Promise<EdgeHunterObservationsResult>;
1175
+ (params: EdgeHunterAdvancedParams, options?: ConvenienceOptions): Promise<EdgeHunterAdvancedResult>;
1176
+ };
1177
+ signals: (params?: Omit<EdgeHunterSignalsParams, "view">, options?: ConvenienceOptions) => Promise<EdgeHunterSignalsResult>;
1178
+ observations: (params: Omit<EdgeHunterObservationsParams, "view">, options?: ConvenienceOptions) => Promise<EdgeHunterObservationsResult>;
1179
+ };
1180
+ private getEdgeHunter;
1181
+ private getAdvancedEdgeHunter;
1168
1182
  /** Polymarket combo fills, live count, and one combo's observed details. */
1169
1183
  readonly combos: {
1170
1184
  /** Recent pages use next_cursor; ranked pages use next_offset. */
1171
- fills: (params?: ComboFillsParams, options?: ConvenienceOptions) => Promise<OperationEnvelope<"listComboFills">>;
1185
+ fills: (params?: ComboFillsParams, options?: ConvenienceOptions) => Promise<Omit<import("./schema.js").ComboFillsResponse, "meta"> & {
1186
+ meta: ClientMeta<ResponseMeta>;
1187
+ }>;
1172
1188
  summary: (options?: ConvenienceOptions) => Promise<OperationResult<"getCombosSummary">>;
1173
1189
  get: (conditionId: OperationPath["getCombo"]["condition_id"], options?: ConvenienceOptions) => Promise<OperationResult<"getCombo">>;
1174
1190
  };
@@ -1308,9 +1324,12 @@ export declare class OxinsiderApiClient {
1308
1324
  * `facets` or `totals`). Use `paginate()` (in `pagination.ts`) to
1309
1325
  * auto-follow `next_cursor`.
1310
1326
  */
1327
+ list<P extends EdgeHunterAdvancedParams>(operationId: "getEdgeHunter", options: ConvenienceOptions & {
1328
+ query: P;
1329
+ }): Promise<EdgeHunterCollection<P>>;
1311
1330
  list<K extends ListOperationId>(operationId: K, ...options: OperationOptionsArgs<K, OperationRequestOptions<K>>): Promise<OperationEnvelope<K>>;
1312
1331
  /** The untyped form; see the second `call` signature. */
1313
- list<T = unknown, I extends ApiOperationId = ApiOperationId>(operationId: RuntimeOperationId<I>, options?: ApiRequestOptions): Promise<ApiListEnvelope<T>>;
1332
+ list<T = unknown, I extends ApiOperationId = ApiOperationId>(operationId: RuntimeListOperationId<I>, options?: ApiRequestOptions): Promise<ApiListEnvelope<T>>;
1314
1333
  getTrader(address: OperationPath["getTrader"]["address"], options?: Omit<OperationRequestOptions<"getTrader">, "path">): Promise<OperationResult<"getTrader">>;
1315
1334
  getTraderPnl(address: OperationPath["getTraderPnl"]["address"], options?: Omit<OperationRequestOptions<"getTraderPnl">, "path">): Promise<OperationResult<"getTraderPnl">>;
1316
1335
  /**
@@ -1364,9 +1383,37 @@ export declare class OxinsiderApiClient {
1364
1383
  * `object: "market_intel_batch"`.
1365
1384
  */
1366
1385
  batchGetMarketIntel(body: OperationBody["batchGetMarketIntel"], options?: ConvenienceOptions): Promise<OperationResult<"batchGetMarketIntel">>;
1367
- listLeaderboard(params?: LeaderboardListParams, options?: ConvenienceOptions): Promise<OperationEnvelope<"listLeaderboard">>;
1368
- listTrendingWallets(params?: TrendingWalletsParams, options?: ConvenienceOptions): Promise<OperationEnvelope<"listTrendingWallets">>;
1369
- listLargeTrades(params?: LargeTradeListParams, options?: ConvenienceOptions): Promise<OperationEnvelope<"listLargeTrades">>;
1386
+ listLeaderboard(params?: LeaderboardListParams, options?: ConvenienceOptions): Promise<Omit<{
1387
+ object: "list";
1388
+ data: OperationData["listLeaderboard"];
1389
+ has_more: boolean;
1390
+ next_cursor?: string;
1391
+ total?: number;
1392
+ meta: ResponseMeta;
1393
+ }, "meta"> & {
1394
+ meta: ClientMeta<ResponseMeta>;
1395
+ }>;
1396
+ listTrendingWallets(params?: TrendingWalletsParams, options?: ConvenienceOptions): Promise<Omit<{
1397
+ object: "list";
1398
+ data: OperationData["listTrendingWallets"];
1399
+ has_more: boolean;
1400
+ next_cursor?: string;
1401
+ total?: number;
1402
+ meta: ResponseMeta;
1403
+ }, "meta"> & {
1404
+ meta: ClientMeta<ResponseMeta>;
1405
+ }>;
1406
+ listLargeTrades(params?: LargeTradeListParams, options?: ConvenienceOptions): Promise<Omit<{
1407
+ object: "list";
1408
+ data: OperationData["listLargeTrades"];
1409
+ data_quality: import("./schema.js").DataQuality;
1410
+ has_more: boolean;
1411
+ next_cursor?: string;
1412
+ total?: number;
1413
+ meta: ResponseMeta;
1414
+ }, "meta"> & {
1415
+ meta: ClientMeta<ResponseMeta>;
1416
+ }>;
1370
1417
  /**
1371
1418
  * Typed conditional-read variant of {@link listLargeTrades}, for polling
1372
1419
  * (#18507). Returns the list envelope on 200 or the typed `not_modified`
@@ -1375,24 +1422,96 @@ export declare class OxinsiderApiClient {
1375
1422
  * with `If-None-Match`: a poll that finds no new trade is a 304 with no body.
1376
1423
  */
1377
1424
  listLargeTradesConditional(params?: LargeTradeListParams, options?: ConvenienceOptions): Promise<OperationResult<"listLargeTrades">>;
1378
- listLargeTradeHistory(params?: LargeTradeHistoryParams, options?: ConvenienceOptions): Promise<OperationEnvelope<"listLargeTradeHistory">>;
1425
+ listLargeTradeHistory(params?: LargeTradeHistoryParams, options?: ConvenienceOptions): Promise<Omit<{
1426
+ object: "list";
1427
+ data: OperationData["listLargeTradeHistory"];
1428
+ data_quality: import("./schema.js").DataQuality;
1429
+ has_more: boolean;
1430
+ next_cursor?: string;
1431
+ total?: number;
1432
+ meta: import("./schema.js").LargeTradeHistoryMeta;
1433
+ }, "meta"> & {
1434
+ meta: ClientMeta<import("./schema.js").LargeTradeHistoryMeta>;
1435
+ }>;
1379
1436
  /** @deprecated Use {@link listLargeTrades} (#16304); calls the deprecated `/api/v1/whale-trades`. */
1380
- listWhaleTrades(params?: WhaleTradeListParams, options?: ConvenienceOptions): Promise<OperationEnvelope<"listWhaleTrades">>;
1437
+ listWhaleTrades(params?: WhaleTradeListParams, options?: ConvenienceOptions): Promise<Omit<{
1438
+ object: "list";
1439
+ data: OperationData["listWhaleTrades"];
1440
+ data_quality: import("./schema.js").DataQuality;
1441
+ has_more: boolean;
1442
+ next_cursor?: string;
1443
+ total?: number;
1444
+ meta: ResponseMeta;
1445
+ }, "meta"> & {
1446
+ meta: ClientMeta<ResponseMeta>;
1447
+ }>;
1381
1448
  /** @deprecated Use {@link listLargeTradeHistory} (#16304); calls the deprecated `/api/v1/whale-trades/history`. */
1382
- listWhaleTradeHistory(params?: WhaleTradeHistoryParams, options?: ConvenienceOptions): Promise<OperationEnvelope<"listWhaleTradeHistory">>;
1383
- listPositions(params?: PositionsListParams, options?: ConvenienceOptions): Promise<OperationEnvelope<"listPositions">>;
1384
- listLargePositions(params?: LargePositionsListParams, options?: ConvenienceOptions): Promise<OperationEnvelope<"listLargePositions">>;
1449
+ listWhaleTradeHistory(params?: WhaleTradeHistoryParams, options?: ConvenienceOptions): Promise<Omit<{
1450
+ object: "list";
1451
+ data: OperationData["listWhaleTradeHistory"];
1452
+ data_quality: import("./schema.js").DataQuality;
1453
+ has_more: boolean;
1454
+ next_cursor?: string;
1455
+ total?: number;
1456
+ meta: import("./schema.js").LargeTradeHistoryMeta;
1457
+ }, "meta"> & {
1458
+ meta: ClientMeta<import("./schema.js").LargeTradeHistoryMeta>;
1459
+ }>;
1460
+ listPositions(params?: PositionsListParams, options?: ConvenienceOptions): Promise<Omit<{
1461
+ object: "list";
1462
+ data: OperationData["listPositions"];
1463
+ data_quality: import("./schema.js").DataQuality;
1464
+ has_more: boolean;
1465
+ next_cursor?: string;
1466
+ total?: number;
1467
+ snapshot?: {
1468
+ as_of: string;
1469
+ expires_at: string;
1470
+ row_count: number;
1471
+ };
1472
+ meta: ResponseMeta;
1473
+ }, "meta"> & {
1474
+ meta: ClientMeta<ResponseMeta>;
1475
+ }>;
1476
+ listLargePositions(params?: LargePositionsListParams, options?: ConvenienceOptions): Promise<Omit<{
1477
+ object: "list";
1478
+ data: OperationData["listLargePositions"];
1479
+ has_more: boolean;
1480
+ next_cursor?: string;
1481
+ total?: number;
1482
+ meta: ResponseMeta;
1483
+ }, "meta"> & {
1484
+ meta: ClientMeta<ResponseMeta>;
1485
+ }>;
1385
1486
  /**
1386
1487
  * List ranked sharp-money flows. Canonical since #16308 ("sharp money" is
1387
1488
  * the pinned product term); it calls `/api/v1/markets/sharp-money-flows`.
1388
1489
  */
1389
- listSharpMoneyFlows(params?: SharpMoneyFlowsParams, options?: ConvenienceOptions): Promise<OperationEnvelope<"listSharpMoneyFlows">>;
1490
+ listSharpMoneyFlows(params?: SharpMoneyFlowsParams, options?: ConvenienceOptions): Promise<Omit<{
1491
+ object: "list";
1492
+ data: OperationData["listSharpMoneyFlows"];
1493
+ has_more: boolean;
1494
+ next_cursor?: string;
1495
+ total?: number;
1496
+ meta: ResponseMeta;
1497
+ }, "meta"> & {
1498
+ meta: ClientMeta<ResponseMeta>;
1499
+ }>;
1390
1500
  /**
1391
1501
  * @deprecated Use {@link listSharpMoneyFlows} (#16308). Kept live; it calls
1392
1502
  * the deprecated `/api/v1/markets/smart-money-flows`, whose responses carry
1393
1503
  * `Deprecation` and a `Link rel="successor-version"`.
1394
1504
  */
1395
- listSmartMoneyFlows(params?: OperationQuery["listSmartMoneyFlows"], options?: ConvenienceOptions): Promise<OperationEnvelope<"listSmartMoneyFlows">>;
1505
+ listSmartMoneyFlows(params?: OperationQuery["listSmartMoneyFlows"], options?: ConvenienceOptions): Promise<Omit<{
1506
+ object: "list";
1507
+ data: OperationData["listSmartMoneyFlows"];
1508
+ has_more: boolean;
1509
+ next_cursor?: string;
1510
+ total?: number;
1511
+ meta: ResponseMeta;
1512
+ }, "meta"> & {
1513
+ meta: ClientMeta<ResponseMeta>;
1514
+ }>;
1396
1515
  /**
1397
1516
  * List covered games: both sides with their provider ids and live scores, the
1398
1517
  * UTC kickoff, the provider's own status, and every linked Polymarket market
@@ -1401,64 +1520,59 @@ export declare class OxinsiderApiClient {
1401
1520
  * returns an empty page rather than an error, and the response's `coverage`
1402
1521
  * names what this deployment serves.
1403
1522
  */
1404
- listGames(params?: GamesListParams, options?: ConvenienceOptions): Promise<OperationEnvelope<"listGames">>;
1523
+ listGames(params?: GamesListParams, options?: ConvenienceOptions): Promise<Omit<{
1524
+ object: "list";
1525
+ data: OperationData["listGames"];
1526
+ has_more: boolean;
1527
+ next_cursor?: string;
1528
+ as_of: string;
1529
+ coverage: import("./schema.js").GamesCoverage;
1530
+ meta: ResponseMeta;
1531
+ }, "meta"> & {
1532
+ meta: ClientMeta<ResponseMeta>;
1533
+ }>;
1405
1534
  /**
1406
1535
  * Read one game by its `event_slug`, the identity the `live_sports_updated`
1407
1536
  * webhook pulse carries. A slug outside the published coverage returns 404.
1408
1537
  */
1409
1538
  getGame(eventSlug: OperationPath["getGame"]["event_slug"], options?: ConvenienceOptions): Promise<OperationResult<"getGame">>;
1410
- /**
1411
- * List upcoming games and their public market-side data.
1412
- * Rows carry `side`, `ranked_at`,
1413
- * `backing_score` and `side_share`; the older `piled_side`,
1414
- * `signal_created_at`, `conviction_score` and `smart_score` keys carry the
1415
- * same values and stay on the wire.
1416
- */
1417
- listPreGameSides(params?: PreGameSidesParams, options?: ConvenienceOptions): Promise<OperationEnvelope<"listPreGameSides">>;
1418
- /**
1419
- * @deprecated Use {@link listPreGameSides} (#16310). Kept live; it calls the
1420
- * deprecated `/api/v1/sports-edge-signals` path, which answers with
1421
- * `Deprecation` and successor `Link` headers and the same body.
1422
- */
1423
- listSportsEdgeSignals(params?: SportsEdgeSignalsParams, options?: ConvenienceOptions): Promise<OperationEnvelope<"listSportsEdgeSignals">>;
1424
- /**
1425
- * Read an explicitly observation-only sports cohort and its accountable
1426
- * per-sport funnel. This surface is isolated from the funded signals route.
1427
- * Healthy wider-holder and emerging-pile snapshots may be served for about
1428
- * 180 seconds; in-play cached snapshots are capped at about 30 seconds and
1429
- * stale provider live-board evidence fails closed. emerging-pile is an
1430
- * additive wider-holder projection, not an arrival-history or independent
1431
- * denominator view.
1432
- */
1433
- listPreGameSideObservations(params: PreGameSideObservationsParams, options?: ConvenienceOptions): Promise<PreGameSideObservationsResponse>;
1434
- /**
1435
- * @deprecated Use {@link listPreGameSideObservations} (#16310). Kept live; it
1436
- * calls the deprecated `/api/v1/sports-edge-observations` path, which answers
1437
- * with `Deprecation` and successor `Link` headers and the same body.
1438
- */
1439
- listSportsEdgeObservations(params: SportsEdgeObservationsParams, options?: ConvenienceOptions): Promise<SportsEdgeObservationsResponse>;
1440
- /**
1441
- * Typed conditional-read variant of {@link listSportsEdgeObservations}.
1442
- * Returns the full observation response on 200 or a typed `not_modified`
1443
- * envelope on 304 instead of routing the latter through generic `call()`.
1444
- * The endpoint emits a weak semantic ETag over the stable response payload;
1445
- * request-specific `meta` is excluded. For emerging-pile, the opaque
1446
- * projection cutoff inside `next_cursor` is excluded while its stable page
1447
- * position remains covered.
1448
- */
1449
- listPreGameSideObservationsConditional(params: PreGameSideObservationsParams, options?: ConvenienceOptions): Promise<PreGameSideObservationsResponse | ApiNotModifiedResponse>;
1450
- /**
1451
- * @deprecated Use {@link listPreGameSideObservationsConditional} (#16310).
1452
- * Kept live on the deprecated `/api/v1/sports-edge-observations` path.
1453
- */
1454
- listSportsEdgeObservationsConditional(params: SportsEdgeObservationsParams, options?: ConvenienceOptions): Promise<SportsEdgeObservationsResponse | ApiNotModifiedResponse>;
1455
1539
  searchMarkets(q: OperationQuery["searchMarkets"]["q"], options?: ConvenienceOptions & {
1456
1540
  query?: Omit<OperationQuery["searchMarkets"], "q">;
1457
- }): Promise<OperationEnvelope<"searchMarkets">>;
1541
+ }): Promise<Omit<{
1542
+ object: "list";
1543
+ data: OperationData["searchMarkets"];
1544
+ has_more: boolean;
1545
+ next_cursor?: string;
1546
+ total?: number;
1547
+ meta: ResponseMeta;
1548
+ }, "meta"> & {
1549
+ meta: ClientMeta<ResponseMeta>;
1550
+ }>;
1458
1551
  searchContent(q: OperationQuery["searchContent"]["q"], options?: ConvenienceOptions & {
1459
1552
  query?: Omit<OperationQuery["searchContent"], "q">;
1460
- }): Promise<OperationEnvelope<"searchContent">>;
1461
- exploreMarkets(params?: ExploreMarketsParams, options?: ConvenienceOptions): Promise<OperationEnvelope<"exploreMarkets">>;
1553
+ }): Promise<Omit<{
1554
+ object: "list";
1555
+ data: OperationData["searchContent"];
1556
+ has_more: false;
1557
+ next_cursor?: string;
1558
+ total?: number;
1559
+ meta: ResponseMeta;
1560
+ }, "meta"> & {
1561
+ meta: ClientMeta<ResponseMeta>;
1562
+ }>;
1563
+ exploreMarkets(params?: ExploreMarketsParams, options?: ConvenienceOptions): Promise<Omit<{
1564
+ object: "list";
1565
+ data: OperationData["exploreMarkets"];
1566
+ has_more: boolean;
1567
+ next_cursor?: string;
1568
+ total?: number;
1569
+ facets: import("./schema.js").ExploreFacets;
1570
+ meta: ResponseMeta;
1571
+ computed_at?: string;
1572
+ fresh_for_seconds?: number;
1573
+ }, "meta"> & {
1574
+ meta: ClientMeta<ResponseMeta>;
1575
+ }>;
1462
1576
  /** One market's flow and top positions (`GET /api/v1/market/{condition_id}/flow`). */
1463
1577
  getMarketFlow(conditionId: OperationPath["getMarketFlow"]["condition_id"], options?: Omit<OperationRequestOptions<"getMarketFlow">, "path">): Promise<OperationResult<"getMarketFlow">>;
1464
1578
  /**
@@ -1476,7 +1590,19 @@ export declare class OxinsiderApiClient {
1476
1590
  * the `market`, `scan` and roster `totals` beside `data`; `total` is the
1477
1591
  * count matching the filters across every page.
1478
1592
  */
1479
- getMarketHolders(conditionId: OperationPath["getMarketHolders"]["condition_id"], params?: OperationQuery["getMarketHolders"], options?: ConvenienceOptions): Promise<OperationEnvelope<"getMarketHolders">>;
1593
+ getMarketHolders(conditionId: OperationPath["getMarketHolders"]["condition_id"], params?: OperationQuery["getMarketHolders"], options?: ConvenienceOptions): Promise<Omit<{
1594
+ object: "list";
1595
+ data: OperationData["getMarketHolders"];
1596
+ has_more: boolean;
1597
+ next_cursor?: string;
1598
+ total?: number;
1599
+ market: import("./schema.js").MarketHoldersMarket;
1600
+ scan: import("./schema.js").MarketHoldersScan;
1601
+ totals: import("./schema.js").MarketHoldersTotals;
1602
+ meta: ResponseMeta;
1603
+ }, "meta"> & {
1604
+ meta: ClientMeta<ResponseMeta>;
1605
+ }>;
1480
1606
  /**
1481
1607
  * Fetch bucketed OHLC candles for a market's outcome tokens.
1482
1608
  * Resolution defaults to the server default; pass `params.resolution` as
@@ -1491,7 +1617,16 @@ export declare class OxinsiderApiClient {
1491
1617
  */
1492
1618
  getSuspiciousTrade(id: OperationPath["getSuspiciousTrade"]["id"], options?: ConvenienceOptions): Promise<OperationResult<"getSuspiciousTrade">>;
1493
1619
  /** List stored trades whose recorded suspicion score meets the flag threshold. */
1494
- listSuspiciousTrades(params?: SuspiciousTradesListParams, options?: ConvenienceOptions): Promise<OperationEnvelope<"listSuspiciousTrades">>;
1620
+ listSuspiciousTrades(params?: SuspiciousTradesListParams, options?: ConvenienceOptions): Promise<Omit<{
1621
+ object: "list";
1622
+ data: OperationData["listSuspiciousTrades"];
1623
+ has_more: boolean;
1624
+ next_cursor?: string;
1625
+ total?: number;
1626
+ meta: ResponseMeta;
1627
+ }, "meta"> & {
1628
+ meta: ClientMeta<ResponseMeta>;
1629
+ }>;
1495
1630
  /**
1496
1631
  * @deprecated Use `getSuspiciousTrade()`; renamed in #16301. This method
1497
1632
  * keeps calling the deprecated `GET /api/v1/insider-radar/{id}`, which stays
@@ -1505,7 +1640,16 @@ export declare class OxinsiderApiClient {
1505
1640
  * with no retirement date and answers with `Deprecation` plus a `Link
1506
1641
  * rel="successor-version"` header.
1507
1642
  */
1508
- listInsiderRadar(params?: InsiderRadarListParams, options?: ConvenienceOptions): Promise<OperationEnvelope<"listInsiderRadar">>;
1643
+ listInsiderRadar(params?: InsiderRadarListParams, options?: ConvenienceOptions): Promise<Omit<{
1644
+ object: "list";
1645
+ data: OperationData["listInsiderRadar"];
1646
+ has_more: boolean;
1647
+ next_cursor?: string;
1648
+ total?: number;
1649
+ meta: ResponseMeta;
1650
+ }, "meta"> & {
1651
+ meta: ClientMeta<ResponseMeta>;
1652
+ }>;
1509
1653
  getLargeTrade(id: OperationPath["getLargeTrade"]["id"], options?: ConvenienceOptions): Promise<OperationResult<"getLargeTrade">>;
1510
1654
  /** @deprecated Use {@link getLargeTrade} (#16304); calls the deprecated `/api/v1/whale-trades/{id}`. */
1511
1655
  getWhaleTrade(id: OperationPath["getWhaleTrade"]["id"], options?: ConvenienceOptions): Promise<OperationResult<"getWhaleTrade">>;
@@ -1522,7 +1666,16 @@ export declare class OxinsiderApiClient {
1522
1666
  * repeat, so it is retried on a transport or 5xx failure like a read.
1523
1667
  */
1524
1668
  cancelTraderExport(address: OperationPath["cancelTraderExport"]["address"], jobId: OperationQuery["cancelTraderExport"]["job_id"], options?: ConvenienceOptions): Promise<OperationResult<"cancelTraderExport">>;
1525
- listWebhooks(options?: ConvenienceOptions): Promise<OperationEnvelope<"listWebhooks">>;
1669
+ listWebhooks(options?: ConvenienceOptions): Promise<Omit<{
1670
+ object: "list";
1671
+ data: OperationData["listWebhooks"];
1672
+ has_more: boolean;
1673
+ next_cursor?: string;
1674
+ total?: number;
1675
+ meta: ResponseMeta;
1676
+ }, "meta"> & {
1677
+ meta: ClientMeta<ResponseMeta>;
1678
+ }>;
1526
1679
  getWebhook(id: OperationPath["getWebhook"]["id"], options?: ConvenienceOptions): Promise<OperationResult<"getWebhook">>;
1527
1680
  createWebhook(body: OperationBody["createWebhook"], options?: ConvenienceOptions): Promise<OperationResult<"createWebhook">>;
1528
1681
  /** Admit durable consent; 202 acknowledges admission, not activation. */
@@ -1535,9 +1688,27 @@ export declare class OxinsiderApiClient {
1535
1688
  * Fetch the self-describing webhook event catalog (each entry's `id`,
1536
1689
  * description, payload shape, and active/dormant status).
1537
1690
  */
1538
- listWebhookEvents(options?: ConvenienceOptions): Promise<OperationEnvelope<"listWebhookEvents">>;
1691
+ listWebhookEvents(options?: ConvenienceOptions): Promise<Omit<{
1692
+ object: "list";
1693
+ data: OperationData["listWebhookEvents"];
1694
+ has_more: boolean;
1695
+ next_cursor?: string;
1696
+ total?: number;
1697
+ meta: ResponseMeta;
1698
+ }, "meta"> & {
1699
+ meta: ClientMeta<ResponseMeta>;
1700
+ }>;
1539
1701
  /** List delivery attempts for one webhook endpoint (Stripe-style list). */
1540
- listWebhookDeliveries(webhookId: OperationPath["listWebhookDeliveries"]["id"], params?: OperationQuery["listWebhookDeliveries"], options?: ConvenienceOptions): Promise<OperationEnvelope<"listWebhookDeliveries">>;
1702
+ listWebhookDeliveries(webhookId: OperationPath["listWebhookDeliveries"]["id"], params?: OperationQuery["listWebhookDeliveries"], options?: ConvenienceOptions): Promise<Omit<{
1703
+ object: "list";
1704
+ data: OperationData["listWebhookDeliveries"];
1705
+ has_more: boolean;
1706
+ next_cursor?: string;
1707
+ total?: number;
1708
+ meta: ResponseMeta;
1709
+ }, "meta"> & {
1710
+ meta: ClientMeta<ResponseMeta>;
1711
+ }>;
1541
1712
  /**
1542
1713
  * Requeue one `dead_letter` delivery with a fresh attempt budget and return
1543
1714
  * the delivery row. Re-enabling a disabled endpoint resends nothing, so this