@0xinsider/sdk 0.44.0 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/client.d.ts +5 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +5 -1
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/provenance.d.ts +2 -2
- package/dist/provenance.d.ts.map +1 -1
- package/dist/provenance.js +3 -3
- package/dist/provenance.js.map +1 -1
- package/dist/schema.d.ts +11 -2
- package/dist/schema.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/provenance.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provenance.d.ts","sourceRoot":"","sources":["../src/provenance.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"provenance.d.ts","sourceRoot":"","sources":["../src/provenance.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc,uDAAuD,CAAC;AACnF,eAAO,MAAM,cAAc,qEAAqE,CAAC;AACjG,eAAO,MAAM,eAAe,UAAU,CAAC;AACvC,eAAO,MAAM,eAAe,MAAM,CAAC;AACnC,eAAO,MAAM,cAAc,wBAAwB,CAAC;AACpD,eAAO,MAAM,aAAa,mCAAmC,CAAC;AAC9D,eAAO,MAAM,UAAU,EAAE,MAAM,GAAG,IAAiD,CAAC"}
|
package/dist/provenance.js
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
// 0xinsider/0xinsider commit that last changed web/public/api/v1/openapi.json
|
|
6
6
|
// when it could be resolved, else null. Compare OPENAPI_SHA256 with the live
|
|
7
7
|
// document to see whether a release is behind the API.
|
|
8
|
-
export const OPENAPI_SOURCE = "
|
|
9
|
-
export const OPENAPI_SHA256 = "
|
|
8
|
+
export const OPENAPI_SOURCE = "0xinsider/0xinsider:web/public/api/v1/openapi.json";
|
|
9
|
+
export const OPENAPI_SHA256 = "4f969ef5df96acb0b8eeb352054e579efbdd4862cbd1eb87eeb3aa590940c58f";
|
|
10
10
|
export const OPENAPI_VERSION = "1.0.0";
|
|
11
11
|
export const OPERATION_COUNT = 112;
|
|
12
12
|
export const APP_REPOSITORY = "0xinsider/0xinsider";
|
|
13
13
|
export const APP_SPEC_PATH = "web/public/api/v1/openapi.json";
|
|
14
|
-
export const APP_COMMIT = "
|
|
14
|
+
export const APP_COMMIT = "d8d237995989adb8baf753eecf9b8f1e5af57ebf";
|
|
15
15
|
//# sourceMappingURL=provenance.js.map
|
package/dist/provenance.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provenance.js","sourceRoot":"","sources":["../src/provenance.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,4EAA4E;AAC5E,kEAAkE;AAClE,8EAA8E;AAC9E,6EAA6E;AAC7E,uDAAuD;AAEvD,MAAM,CAAC,MAAM,cAAc,GAAG,
|
|
1
|
+
{"version":3,"file":"provenance.js","sourceRoot":"","sources":["../src/provenance.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,4EAA4E;AAC5E,kEAAkE;AAClE,8EAA8E;AAC9E,6EAA6E;AAC7E,uDAAuD;AAEvD,MAAM,CAAC,MAAM,cAAc,GAAG,oDAAoD,CAAC;AACnF,MAAM,CAAC,MAAM,cAAc,GAAG,kEAAkE,CAAC;AACjG,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC;AACvC,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAC;AACnC,MAAM,CAAC,MAAM,cAAc,GAAG,qBAAqB,CAAC;AACpD,MAAM,CAAC,MAAM,aAAa,GAAG,gCAAgC,CAAC;AAC9D,MAAM,CAAC,MAAM,UAAU,GAAkB,0CAA0C,CAAC"}
|
package/dist/schema.d.ts
CHANGED
|
@@ -4734,6 +4734,11 @@ export type ScoreCell = {
|
|
|
4734
4734
|
};
|
|
4735
4735
|
/** Shape the provider score string was parsed into. `two_side` is one aggregate per side (basketball `105-98`), `multi_set` is per-set columns (tennis `6-7(5-7), 6-0, 1-0`), `esports_series` is a maps/sets/format triplet (`000-000|2-0|Bo3`). Omitted when the score could not be parsed. */
|
|
4736
4736
|
export type ScoreFormat = "two_side" | "multi_set" | "esports_series";
|
|
4737
|
+
/** One GET /api/v1/markets/settled row: the market_settled webhook's data, plus the market's protocol_version. */
|
|
4738
|
+
export type SettledMarketData = MarketSettledData & {
|
|
4739
|
+
/** The Polymarket protocol the market settles and redeems on, Gamma's market version: v1 (ConditionalTokens) or v2 (the Protocol V2 modules: the new markets from 2026-11-09 and the polyv2 copies). Read from the condition id. */
|
|
4740
|
+
protocol_version: "v1" | "v2";
|
|
4741
|
+
};
|
|
4737
4742
|
/** Settings for market_settled; every set field must match. Optional: subscribing without it stores {"sports_market_types": ["moneyline"]}, every market Polymarket labels moneyline, and sending it without the event is refused (400). That label is each head-to-head game's winner market, but in golf and other field events Polymarket labels every player market moneyline (winner, make the cut, round leader), so one tournament can send hundreds of states. Narrow it with leagues, which no market outside the list matches, including one whose league is null (a golf event slug that starts with a year, such as 2026-world-wide-technology-championship), or with condition_ids. A PATCH without it keeps the stored settings while the event stays subscribed; removing the event clears them. Stored as the API normalized it: trimmed and deduplicated, leagues, market types and condition IDs lowercased, and sports_market_types filled in when omitted. */
|
|
4738
4743
|
export type SettlementSubscriptionFilters = {
|
|
4739
4744
|
/** Event slug league prefixes such as nba or epl, matched case-insensitively; any one matches. A polyv2 copy's league is read after its polyv2 prefix. PGA Tour golf, whose event slugs start with the year, is pga. */
|
|
@@ -6749,7 +6754,7 @@ export interface OperationData {
|
|
|
6749
6754
|
player_unavailable_reason: "missing_provider_title" | null;
|
|
6750
6755
|
resolved_at: string | null;
|
|
6751
6756
|
})[];
|
|
6752
|
-
listSettledMarkets:
|
|
6757
|
+
listSettledMarkets: SettledMarketData[];
|
|
6753
6758
|
listSharpMoneyFlows: SmartMoneyFlowMarket[];
|
|
6754
6759
|
listSmartMoneyFlows: SmartMoneyFlowMarket[];
|
|
6755
6760
|
listSuspiciousTrades: SuspiciousTrade[];
|
|
@@ -7425,9 +7430,13 @@ export interface OperationQuery {
|
|
|
7425
7430
|
sports_market_type?: string;
|
|
7426
7431
|
/** Comma-separated leagues to keep, as the rows' league reports them (nba, epl, or pga for PGA Tour golf); at most 32, each starting with a letter and holding no hyphen. Omitted: every league, or with cursor the cursor's filter. */
|
|
7427
7432
|
league?: string;
|
|
7433
|
+
/** Comma-separated market condition ids to keep (0x and 64 hex digits, case-insensitive); at most 20. A polyv2 copy of a game is listed when its own condition id is named. With condition_id, an omitted sports_market_type keeps every type. Omitted: every market, or with cursor the cursor's filter. */
|
|
7434
|
+
condition_id?: string;
|
|
7435
|
+
/** Comma-separated event slugs to keep, matched exactly; at most 10. A polyv2 copy has its own slug (polyv2-nba-phi-chi-2026-11-08), and naming it lists the copy. Omitted: every event, or with cursor the cursor's filter. */
|
|
7436
|
+
event_slug?: string;
|
|
7428
7437
|
/** Page size. Out-of-range values are clamped to 1..100. */
|
|
7429
7438
|
limit?: number;
|
|
7430
|
-
/** Opaque stl_v1_ cursor from next_cursor. It replaces since and keeps the filters it was issued for: a sports_market_type or
|
|
7439
|
+
/** Opaque stl_v1_ cursor from next_cursor. It replaces since and keeps the filters it was issued for: a sports_market_type, league, condition_id or event_slug sent with it must match them, or the read answers 400 with error.reason cursor_expired. A cursor this endpoint did not issue returns 400 with error.param=cursor. */
|
|
7431
7440
|
cursor?: string;
|
|
7432
7441
|
};
|
|
7433
7442
|
listSharpMoneyFlows: {
|