@predictorsdk/client 0.9.0 → 0.10.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.
Files changed (47) hide show
  1. package/dist/Client.d.ts +1 -1
  2. package/dist/Client.js +4 -2
  3. package/dist/api/client/requests/GetSportsMatchingMarketsRequest.d.ts +8 -4
  4. package/dist/api/types/CanonicalSportsEvent.d.ts +10 -0
  5. package/dist/api/types/CanonicalSportsEvent.js +2 -0
  6. package/dist/api/types/CanonicalSportsOutcome.d.ts +6 -0
  7. package/dist/api/types/CanonicalSportsOutcome.js +2 -0
  8. package/dist/api/types/CanonicalSportsParticipant.d.ts +5 -0
  9. package/dist/api/types/CanonicalSportsParticipant.js +2 -0
  10. package/dist/api/types/CanonicalSportsRules.d.ts +3 -0
  11. package/dist/api/types/CanonicalSportsRules.js +2 -0
  12. package/dist/api/types/CanonicalSportsSourceMarket.d.ts +9 -0
  13. package/dist/api/types/CanonicalSportsSourceMarket.js +2 -0
  14. package/dist/api/types/CanonicalSportsSourceMarketProvider.d.ts +8 -0
  15. package/dist/api/types/CanonicalSportsSourceMarketProvider.js +8 -0
  16. package/dist/api/types/CanonicalSportsSourceOutcome.d.ts +9 -0
  17. package/dist/api/types/CanonicalSportsSourceOutcome.js +2 -0
  18. package/dist/api/types/CanonicalSportsSubject.d.ts +10 -0
  19. package/dist/api/types/CanonicalSportsSubject.js +2 -0
  20. package/dist/api/types/CanonicalSportsSubmarket.d.ts +16 -0
  21. package/dist/api/types/CanonicalSportsSubmarket.js +2 -0
  22. package/dist/api/types/SportsMatchingResponse.d.ts +2 -0
  23. package/dist/api/types/index.d.ts +9 -0
  24. package/dist/api/types/index.js +9 -0
  25. package/dist/serialization/types/CanonicalSportsEvent.d.ts +16 -0
  26. package/dist/serialization/types/CanonicalSportsEvent.js +12 -0
  27. package/dist/serialization/types/CanonicalSportsOutcome.d.ts +12 -0
  28. package/dist/serialization/types/CanonicalSportsOutcome.js +8 -0
  29. package/dist/serialization/types/CanonicalSportsParticipant.d.ts +11 -0
  30. package/dist/serialization/types/CanonicalSportsParticipant.js +7 -0
  31. package/dist/serialization/types/CanonicalSportsRules.d.ts +9 -0
  32. package/dist/serialization/types/CanonicalSportsRules.js +5 -0
  33. package/dist/serialization/types/CanonicalSportsSourceMarket.d.ts +15 -0
  34. package/dist/serialization/types/CanonicalSportsSourceMarket.js +11 -0
  35. package/dist/serialization/types/CanonicalSportsSourceMarketProvider.d.ts +7 -0
  36. package/dist/serialization/types/CanonicalSportsSourceMarketProvider.js +3 -0
  37. package/dist/serialization/types/CanonicalSportsSourceOutcome.d.ts +12 -0
  38. package/dist/serialization/types/CanonicalSportsSourceOutcome.js +8 -0
  39. package/dist/serialization/types/CanonicalSportsSubject.d.ts +12 -0
  40. package/dist/serialization/types/CanonicalSportsSubject.js +8 -0
  41. package/dist/serialization/types/CanonicalSportsSubmarket.d.ts +22 -0
  42. package/dist/serialization/types/CanonicalSportsSubmarket.js +18 -0
  43. package/dist/serialization/types/SportsMatchingResponse.d.ts +2 -0
  44. package/dist/serialization/types/SportsMatchingResponse.js +2 -0
  45. package/dist/serialization/types/index.d.ts +9 -0
  46. package/dist/serialization/types/index.js +9 -0
  47. package/package.json +1 -1
package/dist/Client.d.ts CHANGED
@@ -11,7 +11,7 @@ export declare class PredictorSDKClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<PredictorSDKClient.Options>;
12
12
  constructor(options: PredictorSDKClient.Options);
13
13
  /**
14
- * Find cross-platform market matches for sports events. When called without parameters, returns all currently matched sports markets with cursor-based pagination (default `limit=25`, max `100`). Provide a Kalshi event ticker, Polymarket slug, Predict market ID, or SX Bet market ID to look up a specific event — lookups return the full match immediately and skip pagination.
14
+ * Find cross-platform market matches for sports events. When called without parameters, returns all currently matched sports markets with cursor-based pagination (default `limit=25`, max `100`). Provide a canonical event key, Kalshi event ticker, Polymarket slug, Predict market ID, or SX Bet market ID to look up a specific event — lookups return the full match immediately and skip pagination.
15
15
  *
16
16
  * @param {PredictorSDK.GetSportsMatchingMarketsRequest} request
17
17
  * @param {PredictorSDKClient.RequestOptions} requestOptions - Request-specific configuration.
package/dist/Client.js CHANGED
@@ -13,7 +13,7 @@ export class PredictorSDKClient {
13
13
  this._options = normalizeClientOptionsWithAuth(options);
14
14
  }
15
15
  /**
16
- * Find cross-platform market matches for sports events. When called without parameters, returns all currently matched sports markets with cursor-based pagination (default `limit=25`, max `100`). Provide a Kalshi event ticker, Polymarket slug, Predict market ID, or SX Bet market ID to look up a specific event — lookups return the full match immediately and skip pagination.
16
+ * Find cross-platform market matches for sports events. When called without parameters, returns all currently matched sports markets with cursor-based pagination (default `limit=25`, max `100`). Provide a canonical event key, Kalshi event ticker, Polymarket slug, Predict market ID, or SX Bet market ID to look up a specific event — lookups return the full match immediately and skip pagination.
17
17
  *
18
18
  * @param {PredictorSDK.GetSportsMatchingMarketsRequest} request
19
19
  * @param {PredictorSDKClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -32,11 +32,13 @@ export class PredictorSDKClient {
32
32
  return core.HttpResponsePromise.fromPromise(this.__getSportsMatchingMarkets(request, requestOptions));
33
33
  }
34
34
  async __getSportsMatchingMarkets(request = {}, requestOptions) {
35
- const { limit, cursor, includeSettled, kalshiEventTicker, polymarketMarketSlug, predictMarketId, sxbetMarketId, } = request;
35
+ const { limit, cursor, includeSettled, includeSubmarkets, eventId, kalshiEventTicker, polymarketMarketSlug, predictMarketId, sxbetMarketId, } = request;
36
36
  const _queryParams = {
37
37
  limit,
38
38
  cursor,
39
39
  include_settled: includeSettled,
40
+ include_submarkets: includeSubmarkets,
41
+ event_id: eventId,
40
42
  kalshi_event_ticker: kalshiEventTicker,
41
43
  polymarket_market_slug: polymarketMarketSlug,
42
44
  predict_market_id: predictMarketId,
@@ -9,12 +9,16 @@ export interface GetSportsMatchingMarketsRequest {
9
9
  cursor?: string;
10
10
  /** When `true`, include settled/archived events alongside currently live matches. Defaults to `false`. */
11
11
  includeSettled?: boolean;
12
- /** Kalshi event ticker(s) to find matching markets for (e.g. `KXNFLGAME-25AUG16ARIDEN`). Provide the parameter multiple times for multiple tickers. Only one filter type may be used per request. Lookup mode pagination parameters are ignored. */
12
+ /** When `true`, add `canonical_events` with normalized event, submarket, line, segment, outcome, and exact source market/outcome identity. This is an identity mapping only; fetch current status, quotes, and liquidity from the referenced market resources. Defaults to `false` so the compact Dome-compatible response is unchanged. */
13
+ includeSubmarkets?: boolean;
14
+ /** Canonical event key(s) to look up directly (for example, `mlb-tex-hou-2026-07-31`). Provide the parameter multiple times for multiple events, up to 100 unique keys. Only one filter type may be used per request. Lookup mode — pagination parameters are ignored. */
15
+ eventId?: string | string[];
16
+ /** Kalshi event ticker(s) to find matching markets for (e.g. `KXNFLGAME-25AUG16ARIDEN`). Provide the parameter multiple times for multiple tickers, up to 100 unique values. Only one filter type may be used per request. Lookup mode — pagination parameters are ignored. */
13
17
  kalshiEventTicker?: string | string[];
14
- /** Polymarket market slug(s) to find matching markets for (e.g. `nfl-ari-den-2025-08-16`). Provide the parameter multiple times for multiple slugs. Only one filter type may be used per request. Lookup mode — pagination parameters are ignored. */
18
+ /** Polymarket market slug(s) to find matching markets for (e.g. `nfl-ari-den-2025-08-16`). Provide the parameter multiple times for multiple slugs, up to 100 unique values. Only one filter type may be used per request. Lookup mode — pagination parameters are ignored. */
15
19
  polymarketMarketSlug?: string | string[];
16
- /** Predict market ID(s) to find matching markets for (e.g. `110629`). Provide the parameter multiple times for multiple IDs. Only one filter type may be used per request. Lookup mode — pagination parameters are ignored. */
20
+ /** Predict market ID(s) to find matching markets for (e.g. `110629`). Provide the parameter multiple times for multiple IDs, up to 100 unique values. Only one filter type may be used per request. Lookup mode — pagination parameters are ignored. */
17
21
  predictMarketId?: string | string[];
18
- /** SX Bet market ID(s) to find matching markets for (e.g. `0x4c000abdbf197ef32ecdf15561b1d636f1e5b02629f466678757fd83e2ec3599`). Provide the parameter multiple times for multiple IDs. Only one filter type may be used per request. Lookup mode — pagination parameters are ignored. */
22
+ /** SX Bet market ID(s) to find matching markets for (e.g. `0x4c000abdbf197ef32ecdf15561b1d636f1e5b02629f466678757fd83e2ec3599`). Provide the parameter multiple times for multiple IDs, up to 100 unique values. Only one filter type may be used per request. Lookup mode — pagination parameters are ignored. */
19
23
  sxbetMarketId?: string | string[];
20
24
  }
@@ -0,0 +1,10 @@
1
+ import type * as PredictorSDK from "../index.js";
2
+ export interface CanonicalSportsEvent {
3
+ /** Stable canonical event key. */
4
+ eventId: string;
5
+ sport?: string;
6
+ league?: string;
7
+ title: string;
8
+ participants?: PredictorSDK.CanonicalSportsParticipant[];
9
+ submarkets: PredictorSDK.CanonicalSportsSubmarket[];
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface CanonicalSportsOutcome {
2
+ key: string;
3
+ label: string;
4
+ type?: string;
5
+ side?: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface CanonicalSportsParticipant {
2
+ key: string;
3
+ name?: string;
4
+ role?: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,3 @@
1
+ export interface CanonicalSportsRules {
2
+ settlement?: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,9 @@
1
+ import type * as PredictorSDK from "../index.js";
2
+ export interface CanonicalSportsSourceMarket {
3
+ provider: PredictorSDK.CanonicalSportsSourceMarketProvider;
4
+ /** Exact provider-native market identifier. */
5
+ marketId: string;
6
+ marketName?: string;
7
+ marketSlug?: string;
8
+ outcomes: PredictorSDK.CanonicalSportsSourceOutcome[];
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,8 @@
1
+ export declare const CanonicalSportsSourceMarketProvider: {
2
+ readonly Kalshi: "kalshi";
3
+ readonly Polymarket: "polymarket";
4
+ readonly Predict: "predict";
5
+ readonly Sxbet: "sxbet";
6
+ readonly AlphaArcade: "alpha-arcade";
7
+ };
8
+ export type CanonicalSportsSourceMarketProvider = (typeof CanonicalSportsSourceMarketProvider)[keyof typeof CanonicalSportsSourceMarketProvider];
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const CanonicalSportsSourceMarketProvider = {
3
+ Kalshi: "kalshi",
4
+ Polymarket: "polymarket",
5
+ Predict: "predict",
6
+ Sxbet: "sxbet",
7
+ AlphaArcade: "alpha-arcade",
8
+ };
@@ -0,0 +1,9 @@
1
+ export interface CanonicalSportsSourceOutcome {
2
+ /** Canonical outcome this source-native selection represents. */
3
+ canonicalOutcomeKey: string;
4
+ label?: string;
5
+ /** Exact provider-native outcome/token identifier when available. SX Bet exposes one market hash and two named positions rather than separate outcome tokens, so its source-local selection reference is `<market_hash>:1` or `<market_hash>:2`. This field is never a universal cross-provider outcome ID. */
6
+ outcomeId?: string;
7
+ /** Optional source-native side such as `yes` or `no`. */
8
+ side?: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ export interface CanonicalSportsSubject {
2
+ /** Canonical subject kind, such as `participant` or `player`. */
3
+ type: string;
4
+ /** Stable subject key within the canonical sports namespace. */
5
+ key: string;
6
+ /** Human-readable subject name. */
7
+ name?: string;
8
+ /** Canonical team key when the subject is a player. */
9
+ team?: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,16 @@
1
+ import type * as PredictorSDK from "../index.js";
2
+ export interface CanonicalSportsSubmarket {
3
+ /** Stable canonical submarket key within the event. */
4
+ key: string;
5
+ marketType: string;
6
+ segment: string;
7
+ displayName?: string;
8
+ metric?: string;
9
+ /** Unsigned threshold for totals and player props; signed handicap for spreads. Omitted for moneyline markets. */
10
+ line?: number;
11
+ /** Participant or player whose line is represented. Present for subject-owned markets such as spreads and player props; omitted for event-owned moneylines and totals. */
12
+ subject?: PredictorSDK.CanonicalSportsSubject;
13
+ rules?: PredictorSDK.CanonicalSportsRules;
14
+ outcomes: PredictorSDK.CanonicalSportsOutcome[];
15
+ sourceMarkets: PredictorSDK.CanonicalSportsSourceMarket[];
16
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -2,6 +2,8 @@ import type * as PredictorSDK from "../index.js";
2
2
  export interface SportsMatchingResponse {
3
3
  /** Key-value pairs where each key is the queried identifier (Kalshi event ticker, Polymarket slug, or canonical event ID when no filter is provided) and each value is an array of platform market objects. */
4
4
  markets: Record<string, PredictorSDK.PlatformMarket[]>;
5
+ /** Opt-in canonical identity map, present only when `include_submarkets=true`. Keys match the `markets` response keys; each value contains the canonical event ID and every normalized submarket/source mapping for that event. */
6
+ canonicalEvents?: Record<string, PredictorSDK.CanonicalSportsEvent>;
5
7
  /** Pagination metadata for the current page. Present in list mode (no platform-ID filter). Absent in lookup mode since the response is bounded by the filter. */
6
8
  pagination?: PredictorSDK.PaginationBlock;
7
9
  }
@@ -1,3 +1,12 @@
1
+ export * from "./CanonicalSportsEvent.js";
2
+ export * from "./CanonicalSportsOutcome.js";
3
+ export * from "./CanonicalSportsParticipant.js";
4
+ export * from "./CanonicalSportsRules.js";
5
+ export * from "./CanonicalSportsSourceMarket.js";
6
+ export * from "./CanonicalSportsSourceMarketProvider.js";
7
+ export * from "./CanonicalSportsSourceOutcome.js";
8
+ export * from "./CanonicalSportsSubject.js";
9
+ export * from "./CanonicalSportsSubmarket.js";
1
10
  export * from "./CategoriesResponse.js";
2
11
  export * from "./CategoryInfo.js";
3
12
  export * from "./CryptoPriceItem.js";
@@ -1,3 +1,12 @@
1
+ export * from "./CanonicalSportsEvent.js";
2
+ export * from "./CanonicalSportsOutcome.js";
3
+ export * from "./CanonicalSportsParticipant.js";
4
+ export * from "./CanonicalSportsRules.js";
5
+ export * from "./CanonicalSportsSourceMarket.js";
6
+ export * from "./CanonicalSportsSourceMarketProvider.js";
7
+ export * from "./CanonicalSportsSourceOutcome.js";
8
+ export * from "./CanonicalSportsSubject.js";
9
+ export * from "./CanonicalSportsSubmarket.js";
1
10
  export * from "./CategoriesResponse.js";
2
11
  export * from "./CategoryInfo.js";
3
12
  export * from "./CryptoPriceItem.js";
@@ -0,0 +1,16 @@
1
+ import type * as PredictorSDK from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { CanonicalSportsParticipant } from "./CanonicalSportsParticipant.js";
5
+ import { CanonicalSportsSubmarket } from "./CanonicalSportsSubmarket.js";
6
+ export declare const CanonicalSportsEvent: core.serialization.ObjectSchema<serializers.CanonicalSportsEvent.Raw, PredictorSDK.CanonicalSportsEvent>;
7
+ export declare namespace CanonicalSportsEvent {
8
+ interface Raw {
9
+ event_id: string;
10
+ sport?: string | null;
11
+ league?: string | null;
12
+ title: string;
13
+ participants?: CanonicalSportsParticipant.Raw[] | null;
14
+ submarkets: CanonicalSportsSubmarket.Raw[];
15
+ }
16
+ }
@@ -0,0 +1,12 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.js";
3
+ import { CanonicalSportsParticipant } from "./CanonicalSportsParticipant.js";
4
+ import { CanonicalSportsSubmarket } from "./CanonicalSportsSubmarket.js";
5
+ export const CanonicalSportsEvent = core.serialization.object({
6
+ eventId: core.serialization.property("event_id", core.serialization.string()),
7
+ sport: core.serialization.string().optional(),
8
+ league: core.serialization.string().optional(),
9
+ title: core.serialization.string(),
10
+ participants: core.serialization.list(CanonicalSportsParticipant).optional(),
11
+ submarkets: core.serialization.list(CanonicalSportsSubmarket),
12
+ });
@@ -0,0 +1,12 @@
1
+ import type * as PredictorSDK from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const CanonicalSportsOutcome: core.serialization.ObjectSchema<serializers.CanonicalSportsOutcome.Raw, PredictorSDK.CanonicalSportsOutcome>;
5
+ export declare namespace CanonicalSportsOutcome {
6
+ interface Raw {
7
+ key: string;
8
+ label: string;
9
+ type?: string | null;
10
+ side?: string | null;
11
+ }
12
+ }
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.js";
3
+ export const CanonicalSportsOutcome = core.serialization.object({
4
+ key: core.serialization.string(),
5
+ label: core.serialization.string(),
6
+ type: core.serialization.string().optional(),
7
+ side: core.serialization.string().optional(),
8
+ });
@@ -0,0 +1,11 @@
1
+ import type * as PredictorSDK from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const CanonicalSportsParticipant: core.serialization.ObjectSchema<serializers.CanonicalSportsParticipant.Raw, PredictorSDK.CanonicalSportsParticipant>;
5
+ export declare namespace CanonicalSportsParticipant {
6
+ interface Raw {
7
+ key: string;
8
+ name?: string | null;
9
+ role?: string | null;
10
+ }
11
+ }
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.js";
3
+ export const CanonicalSportsParticipant = core.serialization.object({
4
+ key: core.serialization.string(),
5
+ name: core.serialization.string().optional(),
6
+ role: core.serialization.string().optional(),
7
+ });
@@ -0,0 +1,9 @@
1
+ import type * as PredictorSDK from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const CanonicalSportsRules: core.serialization.ObjectSchema<serializers.CanonicalSportsRules.Raw, PredictorSDK.CanonicalSportsRules>;
5
+ export declare namespace CanonicalSportsRules {
6
+ interface Raw {
7
+ settlement?: string | null;
8
+ }
9
+ }
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.js";
3
+ export const CanonicalSportsRules = core.serialization.object({
4
+ settlement: core.serialization.string().optional(),
5
+ });
@@ -0,0 +1,15 @@
1
+ import type * as PredictorSDK from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { CanonicalSportsSourceMarketProvider } from "./CanonicalSportsSourceMarketProvider.js";
5
+ import { CanonicalSportsSourceOutcome } from "./CanonicalSportsSourceOutcome.js";
6
+ export declare const CanonicalSportsSourceMarket: core.serialization.ObjectSchema<serializers.CanonicalSportsSourceMarket.Raw, PredictorSDK.CanonicalSportsSourceMarket>;
7
+ export declare namespace CanonicalSportsSourceMarket {
8
+ interface Raw {
9
+ provider: CanonicalSportsSourceMarketProvider.Raw;
10
+ market_id: string;
11
+ market_name?: string | null;
12
+ market_slug?: string | null;
13
+ outcomes: CanonicalSportsSourceOutcome.Raw[];
14
+ }
15
+ }
@@ -0,0 +1,11 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.js";
3
+ import { CanonicalSportsSourceMarketProvider } from "./CanonicalSportsSourceMarketProvider.js";
4
+ import { CanonicalSportsSourceOutcome } from "./CanonicalSportsSourceOutcome.js";
5
+ export const CanonicalSportsSourceMarket = core.serialization.object({
6
+ provider: CanonicalSportsSourceMarketProvider,
7
+ marketId: core.serialization.property("market_id", core.serialization.string()),
8
+ marketName: core.serialization.property("market_name", core.serialization.string().optional()),
9
+ marketSlug: core.serialization.property("market_slug", core.serialization.string().optional()),
10
+ outcomes: core.serialization.list(CanonicalSportsSourceOutcome),
11
+ });
@@ -0,0 +1,7 @@
1
+ import type * as PredictorSDK from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const CanonicalSportsSourceMarketProvider: core.serialization.Schema<serializers.CanonicalSportsSourceMarketProvider.Raw, PredictorSDK.CanonicalSportsSourceMarketProvider>;
5
+ export declare namespace CanonicalSportsSourceMarketProvider {
6
+ type Raw = "kalshi" | "polymarket" | "predict" | "sxbet" | "alpha-arcade";
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.js";
3
+ export const CanonicalSportsSourceMarketProvider = core.serialization.enum_(["kalshi", "polymarket", "predict", "sxbet", "alpha-arcade"]);
@@ -0,0 +1,12 @@
1
+ import type * as PredictorSDK from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const CanonicalSportsSourceOutcome: core.serialization.ObjectSchema<serializers.CanonicalSportsSourceOutcome.Raw, PredictorSDK.CanonicalSportsSourceOutcome>;
5
+ export declare namespace CanonicalSportsSourceOutcome {
6
+ interface Raw {
7
+ canonical_outcome_key: string;
8
+ label?: string | null;
9
+ outcome_id?: string | null;
10
+ side?: string | null;
11
+ }
12
+ }
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.js";
3
+ export const CanonicalSportsSourceOutcome = core.serialization.object({
4
+ canonicalOutcomeKey: core.serialization.property("canonical_outcome_key", core.serialization.string()),
5
+ label: core.serialization.string().optional(),
6
+ outcomeId: core.serialization.property("outcome_id", core.serialization.string().optional()),
7
+ side: core.serialization.string().optional(),
8
+ });
@@ -0,0 +1,12 @@
1
+ import type * as PredictorSDK from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const CanonicalSportsSubject: core.serialization.ObjectSchema<serializers.CanonicalSportsSubject.Raw, PredictorSDK.CanonicalSportsSubject>;
5
+ export declare namespace CanonicalSportsSubject {
6
+ interface Raw {
7
+ type: string;
8
+ key: string;
9
+ name?: string | null;
10
+ team?: string | null;
11
+ }
12
+ }
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.js";
3
+ export const CanonicalSportsSubject = core.serialization.object({
4
+ type: core.serialization.string(),
5
+ key: core.serialization.string(),
6
+ name: core.serialization.string().optional(),
7
+ team: core.serialization.string().optional(),
8
+ });
@@ -0,0 +1,22 @@
1
+ import type * as PredictorSDK from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { CanonicalSportsOutcome } from "./CanonicalSportsOutcome.js";
5
+ import { CanonicalSportsRules } from "./CanonicalSportsRules.js";
6
+ import { CanonicalSportsSourceMarket } from "./CanonicalSportsSourceMarket.js";
7
+ import { CanonicalSportsSubject } from "./CanonicalSportsSubject.js";
8
+ export declare const CanonicalSportsSubmarket: core.serialization.ObjectSchema<serializers.CanonicalSportsSubmarket.Raw, PredictorSDK.CanonicalSportsSubmarket>;
9
+ export declare namespace CanonicalSportsSubmarket {
10
+ interface Raw {
11
+ key: string;
12
+ market_type: string;
13
+ segment: string;
14
+ display_name?: string | null;
15
+ metric?: string | null;
16
+ line?: number | null;
17
+ subject?: CanonicalSportsSubject.Raw | null;
18
+ rules?: CanonicalSportsRules.Raw | null;
19
+ outcomes: CanonicalSportsOutcome.Raw[];
20
+ source_markets: CanonicalSportsSourceMarket.Raw[];
21
+ }
22
+ }
@@ -0,0 +1,18 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.js";
3
+ import { CanonicalSportsOutcome } from "./CanonicalSportsOutcome.js";
4
+ import { CanonicalSportsRules } from "./CanonicalSportsRules.js";
5
+ import { CanonicalSportsSourceMarket } from "./CanonicalSportsSourceMarket.js";
6
+ import { CanonicalSportsSubject } from "./CanonicalSportsSubject.js";
7
+ export const CanonicalSportsSubmarket = core.serialization.object({
8
+ key: core.serialization.string(),
9
+ marketType: core.serialization.property("market_type", core.serialization.string()),
10
+ segment: core.serialization.string(),
11
+ displayName: core.serialization.property("display_name", core.serialization.string().optional()),
12
+ metric: core.serialization.string().optional(),
13
+ line: core.serialization.number().optional(),
14
+ subject: CanonicalSportsSubject.optional(),
15
+ rules: CanonicalSportsRules.optional(),
16
+ outcomes: core.serialization.list(CanonicalSportsOutcome),
17
+ sourceMarkets: core.serialization.property("source_markets", core.serialization.list(CanonicalSportsSourceMarket)),
18
+ });
@@ -1,12 +1,14 @@
1
1
  import type * as PredictorSDK from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
+ import { CanonicalSportsEvent } from "./CanonicalSportsEvent.js";
4
5
  import { PaginationBlock } from "./PaginationBlock.js";
5
6
  import { PlatformMarket } from "./PlatformMarket.js";
6
7
  export declare const SportsMatchingResponse: core.serialization.ObjectSchema<serializers.SportsMatchingResponse.Raw, PredictorSDK.SportsMatchingResponse>;
7
8
  export declare namespace SportsMatchingResponse {
8
9
  interface Raw {
9
10
  markets: Record<string, PlatformMarket.Raw[]>;
11
+ canonical_events?: Record<string, CanonicalSportsEvent.Raw> | null;
10
12
  pagination?: PaginationBlock.Raw | null;
11
13
  }
12
14
  }
@@ -1,8 +1,10 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.js";
3
+ import { CanonicalSportsEvent } from "./CanonicalSportsEvent.js";
3
4
  import { PaginationBlock } from "./PaginationBlock.js";
4
5
  import { PlatformMarket } from "./PlatformMarket.js";
5
6
  export const SportsMatchingResponse = core.serialization.object({
6
7
  markets: core.serialization.record(core.serialization.string(), core.serialization.list(PlatformMarket)),
8
+ canonicalEvents: core.serialization.property("canonical_events", core.serialization.record(core.serialization.string(), CanonicalSportsEvent).optional()),
7
9
  pagination: PaginationBlock.optional(),
8
10
  });
@@ -1,3 +1,12 @@
1
+ export * from "./CanonicalSportsEvent.js";
2
+ export * from "./CanonicalSportsOutcome.js";
3
+ export * from "./CanonicalSportsParticipant.js";
4
+ export * from "./CanonicalSportsRules.js";
5
+ export * from "./CanonicalSportsSourceMarket.js";
6
+ export * from "./CanonicalSportsSourceMarketProvider.js";
7
+ export * from "./CanonicalSportsSourceOutcome.js";
8
+ export * from "./CanonicalSportsSubject.js";
9
+ export * from "./CanonicalSportsSubmarket.js";
1
10
  export * from "./CategoriesResponse.js";
2
11
  export * from "./CategoryInfo.js";
3
12
  export * from "./CryptoPriceItem.js";
@@ -1,3 +1,12 @@
1
+ export * from "./CanonicalSportsEvent.js";
2
+ export * from "./CanonicalSportsOutcome.js";
3
+ export * from "./CanonicalSportsParticipant.js";
4
+ export * from "./CanonicalSportsRules.js";
5
+ export * from "./CanonicalSportsSourceMarket.js";
6
+ export * from "./CanonicalSportsSourceMarketProvider.js";
7
+ export * from "./CanonicalSportsSourceOutcome.js";
8
+ export * from "./CanonicalSportsSubject.js";
9
+ export * from "./CanonicalSportsSubmarket.js";
1
10
  export * from "./CategoriesResponse.js";
2
11
  export * from "./CategoryInfo.js";
3
12
  export * from "./CryptoPriceItem.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@predictorsdk/client",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "The official TypeScript/JavaScript client for the PredictorSDK matching markets API",
5
5
  "license": "MIT",
6
6
  "keywords": [