@liberfi.io/react-predict 0.3.51 → 0.3.53

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.
@@ -36,8 +36,14 @@ interface PredictEvent {
36
36
  */
37
37
  slug: string;
38
38
  title: string;
39
+ /** Localized title for the request language. Falls back to `title` when absent. */
40
+ title_trans?: string;
39
41
  subtitle?: string;
42
+ /** Localized subtitle for the request language. Falls back to `subtitle` when absent. */
43
+ subtitle_trans?: string;
40
44
  description?: string;
45
+ /** Localized description for the request language. Falls back to `description` when absent. */
46
+ description_trans?: string;
41
47
  image_url?: string;
42
48
  status: EventStatus;
43
49
  /** ISO 8601 timestamp; absent if the provider does not supply it. */
@@ -66,6 +72,8 @@ type MarketResult = "yes" | "no" | "voided" | "";
66
72
  interface MarketOutcome {
67
73
  /** Display name, e.g. "Yes" or "No". */
68
74
  label: string;
75
+ /** Localized label for the request language. Falls back to `label` when absent. */
76
+ label_trans?: string;
69
77
  /** Current implied probability [0, 1]. */
70
78
  price?: number;
71
79
  best_bid?: number;
@@ -78,7 +86,11 @@ interface PredictMarket {
78
86
  slug: string;
79
87
  event_slug: string;
80
88
  question: string;
89
+ /** Localized question for the request language. Falls back to `question` when absent. */
90
+ question_trans?: string;
81
91
  description?: string;
92
+ /** Localized description for the request language. Falls back to `description` when absent. */
93
+ description_trans?: string;
82
94
  image_url?: string;
83
95
  /** Resolution/settlement rules in order. */
84
96
  rules?: string[];
@@ -36,8 +36,14 @@ interface PredictEvent {
36
36
  */
37
37
  slug: string;
38
38
  title: string;
39
+ /** Localized title for the request language. Falls back to `title` when absent. */
40
+ title_trans?: string;
39
41
  subtitle?: string;
42
+ /** Localized subtitle for the request language. Falls back to `subtitle` when absent. */
43
+ subtitle_trans?: string;
40
44
  description?: string;
45
+ /** Localized description for the request language. Falls back to `description` when absent. */
46
+ description_trans?: string;
41
47
  image_url?: string;
42
48
  status: EventStatus;
43
49
  /** ISO 8601 timestamp; absent if the provider does not supply it. */
@@ -66,6 +72,8 @@ type MarketResult = "yes" | "no" | "voided" | "";
66
72
  interface MarketOutcome {
67
73
  /** Display name, e.g. "Yes" or "No". */
68
74
  label: string;
75
+ /** Localized label for the request language. Falls back to `label` when absent. */
76
+ label_trans?: string;
69
77
  /** Current implied probability [0, 1]. */
70
78
  price?: number;
71
79
  best_bid?: number;
@@ -78,7 +86,11 @@ interface PredictMarket {
78
86
  slug: string;
79
87
  event_slug: string;
80
88
  question: string;
89
+ /** Localized question for the request language. Falls back to `question` when absent. */
90
+ question_trans?: string;
81
91
  description?: string;
92
+ /** Localized description for the request language. Falls back to `description` when absent. */
93
+ description_trans?: string;
82
94
  image_url?: string;
83
95
  /** Resolution/settlement rules in order. */
84
96
  rules?: string[];
package/dist/server.d.mts CHANGED
@@ -1 +1 @@
1
- export { B as BalanceResponse, bz as BuildClobAuthMessageInput, bN as BuildOrderMessageInput, bq as CLOB_AUTH_DOMAIN, br as CLOB_AUTH_TYPES, bA as CTF_EXCHANGE_ADDRESS, bF as CTF_ORDER_TYPES, u as CancelOrderResult, C as Candlestick, bM as ClobOrderPayload, ah as CreateOrderInput, bQ as DEFAULT_PAGE_SIZE, aE as DFlowOrderContext, F as DFlowQuoteRequest, G as DFlowQuoteResponse, I as DFlowSubmitRequest, H as DFlowSubmitResponse, aI as DepositBuildRequest, aJ as DepositBuildResponse, aM as DepositStatusResponse, aK as DepositSubmitRequest, aL as DepositSubmitResponse, f as EventSortField, e as EventStatus, ax as EventSummary, bw as HttpMethod, m as ListCandlesticksParams, L as ListEventsParams, i as ListMarketTradesParams, q as ListOrdersParams, z as ListTradesParams, aq as MarketOutcome, ap as MarketResult, ao as MarketStatus, ay as MarketSummary, aW as MatchConfidenceTier, w as MatchGroup, aS as MatchGroupEntry, aT as MatchGroupMarket, v as MatchGroupPage, aY as MatchLeg, aZ as MatchMarketFlat, y as MatchMarketPage, x as MatchMarketParams, aU as MatchSortField, aR as MatchStatus, M as MatchesParams, aV as MatchesStats, bB as NEG_RISK_CTF_EXCHANGE_ADDRESS, bG as ORDER_TYPE, bO as OrderMessage, aD as OrderSide, aC as OrderStatus, h as Orderbook, ar as OrderbookLevel, bD as POLYGON_CHAIN_ID, by as PolymarketL2Headers, bx as PolymarketL2HeadersInput, aF as PolymarketOrderType, p as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, r as PredictOrder, b as PredictPage, aB as PredictPosition, am as PredictTag, j as PredictTrade, a as PredictWsClient, ak as PredictWsClientConfig, k as PriceHistoryRange, l as PriceHistoryResponse, aA as PricePoint, al as ProviderMeta, d as ProviderSource, bh as ResolveEventsParamsInput, bH as SIDE, an as SettlementSource, aX as SignalTag, bP as SignedOrder, S as SimilarEventsParams, bi as TagSlugSelection, aw as TradeType, bC as USDC_ADDRESS, aN as UnsignedTx, a_ as WsChannel, a$ as WsChannelEvent, b0 as WsClientMessage, ac as WsConnectionStatus, ad as WsDataMessage, b6 as WsErrorCode, b7 as WsErrorMessage, af as WsOrderbookEvent, b2 as WsPingMessage, b4 as WsPongMessage, ae as WsPriceEvent, b3 as WsServerMessage, b1 as WsSubscribeMessage, b5 as WsSubscribedMessage, ag as WsTradeEvent, bs as buildClobAuthMessage, bK as buildClobPayload, bE as buildCtfExchangeDomain, bI as buildOrderMessage, bu as buildPolymarketL2Headers, bJ as buildSignedOrder, ai as createPredictClient, aj as createPredictWsClient, bv as derivePolymarketApiKey, bb as eventQueryKey, bc as fetchEvent, bg as fetchEventsPage, bk as fetchMarket, bp as fetchMatchMarketsPage, bn as fetchMatchesPage, bt as hmacSha256Base64, bf as infiniteEventsQueryKey, bj as marketQueryKey, bo as matchMarketsQueryKey, bm as matchQueryKey, bl as matchesQueryKey, be as resolveEventsParams, bd as resolveTagSlug } from './server-D5LNY5tz.mjs';
1
+ export { B as BalanceResponse, bz as BuildClobAuthMessageInput, bN as BuildOrderMessageInput, bq as CLOB_AUTH_DOMAIN, br as CLOB_AUTH_TYPES, bA as CTF_EXCHANGE_ADDRESS, bF as CTF_ORDER_TYPES, u as CancelOrderResult, C as Candlestick, bM as ClobOrderPayload, ah as CreateOrderInput, bQ as DEFAULT_PAGE_SIZE, aE as DFlowOrderContext, F as DFlowQuoteRequest, G as DFlowQuoteResponse, I as DFlowSubmitRequest, H as DFlowSubmitResponse, aI as DepositBuildRequest, aJ as DepositBuildResponse, aM as DepositStatusResponse, aK as DepositSubmitRequest, aL as DepositSubmitResponse, f as EventSortField, e as EventStatus, ax as EventSummary, bw as HttpMethod, m as ListCandlesticksParams, L as ListEventsParams, i as ListMarketTradesParams, q as ListOrdersParams, z as ListTradesParams, aq as MarketOutcome, ap as MarketResult, ao as MarketStatus, ay as MarketSummary, aW as MatchConfidenceTier, w as MatchGroup, aS as MatchGroupEntry, aT as MatchGroupMarket, v as MatchGroupPage, aY as MatchLeg, aZ as MatchMarketFlat, y as MatchMarketPage, x as MatchMarketParams, aU as MatchSortField, aR as MatchStatus, M as MatchesParams, aV as MatchesStats, bB as NEG_RISK_CTF_EXCHANGE_ADDRESS, bG as ORDER_TYPE, bO as OrderMessage, aD as OrderSide, aC as OrderStatus, h as Orderbook, ar as OrderbookLevel, bD as POLYGON_CHAIN_ID, by as PolymarketL2Headers, bx as PolymarketL2HeadersInput, aF as PolymarketOrderType, p as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, r as PredictOrder, b as PredictPage, aB as PredictPosition, am as PredictTag, j as PredictTrade, a as PredictWsClient, ak as PredictWsClientConfig, k as PriceHistoryRange, l as PriceHistoryResponse, aA as PricePoint, al as ProviderMeta, d as ProviderSource, bh as ResolveEventsParamsInput, bH as SIDE, an as SettlementSource, aX as SignalTag, bP as SignedOrder, S as SimilarEventsParams, bi as TagSlugSelection, aw as TradeType, bC as USDC_ADDRESS, aN as UnsignedTx, a_ as WsChannel, a$ as WsChannelEvent, b0 as WsClientMessage, ac as WsConnectionStatus, ad as WsDataMessage, b6 as WsErrorCode, b7 as WsErrorMessage, af as WsOrderbookEvent, b2 as WsPingMessage, b4 as WsPongMessage, ae as WsPriceEvent, b3 as WsServerMessage, b1 as WsSubscribeMessage, b5 as WsSubscribedMessage, ag as WsTradeEvent, bs as buildClobAuthMessage, bK as buildClobPayload, bE as buildCtfExchangeDomain, bI as buildOrderMessage, bu as buildPolymarketL2Headers, bJ as buildSignedOrder, ai as createPredictClient, aj as createPredictWsClient, bv as derivePolymarketApiKey, bb as eventQueryKey, bc as fetchEvent, bg as fetchEventsPage, bk as fetchMarket, bp as fetchMatchMarketsPage, bn as fetchMatchesPage, bt as hmacSha256Base64, bf as infiniteEventsQueryKey, bj as marketQueryKey, bo as matchMarketsQueryKey, bm as matchQueryKey, bl as matchesQueryKey, be as resolveEventsParams, bd as resolveTagSlug } from './server-DoNRmZzs.mjs';
package/dist/server.d.ts CHANGED
@@ -1 +1 @@
1
- export { B as BalanceResponse, bz as BuildClobAuthMessageInput, bN as BuildOrderMessageInput, bq as CLOB_AUTH_DOMAIN, br as CLOB_AUTH_TYPES, bA as CTF_EXCHANGE_ADDRESS, bF as CTF_ORDER_TYPES, u as CancelOrderResult, C as Candlestick, bM as ClobOrderPayload, ah as CreateOrderInput, bQ as DEFAULT_PAGE_SIZE, aE as DFlowOrderContext, F as DFlowQuoteRequest, G as DFlowQuoteResponse, I as DFlowSubmitRequest, H as DFlowSubmitResponse, aI as DepositBuildRequest, aJ as DepositBuildResponse, aM as DepositStatusResponse, aK as DepositSubmitRequest, aL as DepositSubmitResponse, f as EventSortField, e as EventStatus, ax as EventSummary, bw as HttpMethod, m as ListCandlesticksParams, L as ListEventsParams, i as ListMarketTradesParams, q as ListOrdersParams, z as ListTradesParams, aq as MarketOutcome, ap as MarketResult, ao as MarketStatus, ay as MarketSummary, aW as MatchConfidenceTier, w as MatchGroup, aS as MatchGroupEntry, aT as MatchGroupMarket, v as MatchGroupPage, aY as MatchLeg, aZ as MatchMarketFlat, y as MatchMarketPage, x as MatchMarketParams, aU as MatchSortField, aR as MatchStatus, M as MatchesParams, aV as MatchesStats, bB as NEG_RISK_CTF_EXCHANGE_ADDRESS, bG as ORDER_TYPE, bO as OrderMessage, aD as OrderSide, aC as OrderStatus, h as Orderbook, ar as OrderbookLevel, bD as POLYGON_CHAIN_ID, by as PolymarketL2Headers, bx as PolymarketL2HeadersInput, aF as PolymarketOrderType, p as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, r as PredictOrder, b as PredictPage, aB as PredictPosition, am as PredictTag, j as PredictTrade, a as PredictWsClient, ak as PredictWsClientConfig, k as PriceHistoryRange, l as PriceHistoryResponse, aA as PricePoint, al as ProviderMeta, d as ProviderSource, bh as ResolveEventsParamsInput, bH as SIDE, an as SettlementSource, aX as SignalTag, bP as SignedOrder, S as SimilarEventsParams, bi as TagSlugSelection, aw as TradeType, bC as USDC_ADDRESS, aN as UnsignedTx, a_ as WsChannel, a$ as WsChannelEvent, b0 as WsClientMessage, ac as WsConnectionStatus, ad as WsDataMessage, b6 as WsErrorCode, b7 as WsErrorMessage, af as WsOrderbookEvent, b2 as WsPingMessage, b4 as WsPongMessage, ae as WsPriceEvent, b3 as WsServerMessage, b1 as WsSubscribeMessage, b5 as WsSubscribedMessage, ag as WsTradeEvent, bs as buildClobAuthMessage, bK as buildClobPayload, bE as buildCtfExchangeDomain, bI as buildOrderMessage, bu as buildPolymarketL2Headers, bJ as buildSignedOrder, ai as createPredictClient, aj as createPredictWsClient, bv as derivePolymarketApiKey, bb as eventQueryKey, bc as fetchEvent, bg as fetchEventsPage, bk as fetchMarket, bp as fetchMatchMarketsPage, bn as fetchMatchesPage, bt as hmacSha256Base64, bf as infiniteEventsQueryKey, bj as marketQueryKey, bo as matchMarketsQueryKey, bm as matchQueryKey, bl as matchesQueryKey, be as resolveEventsParams, bd as resolveTagSlug } from './server-D5LNY5tz.js';
1
+ export { B as BalanceResponse, bz as BuildClobAuthMessageInput, bN as BuildOrderMessageInput, bq as CLOB_AUTH_DOMAIN, br as CLOB_AUTH_TYPES, bA as CTF_EXCHANGE_ADDRESS, bF as CTF_ORDER_TYPES, u as CancelOrderResult, C as Candlestick, bM as ClobOrderPayload, ah as CreateOrderInput, bQ as DEFAULT_PAGE_SIZE, aE as DFlowOrderContext, F as DFlowQuoteRequest, G as DFlowQuoteResponse, I as DFlowSubmitRequest, H as DFlowSubmitResponse, aI as DepositBuildRequest, aJ as DepositBuildResponse, aM as DepositStatusResponse, aK as DepositSubmitRequest, aL as DepositSubmitResponse, f as EventSortField, e as EventStatus, ax as EventSummary, bw as HttpMethod, m as ListCandlesticksParams, L as ListEventsParams, i as ListMarketTradesParams, q as ListOrdersParams, z as ListTradesParams, aq as MarketOutcome, ap as MarketResult, ao as MarketStatus, ay as MarketSummary, aW as MatchConfidenceTier, w as MatchGroup, aS as MatchGroupEntry, aT as MatchGroupMarket, v as MatchGroupPage, aY as MatchLeg, aZ as MatchMarketFlat, y as MatchMarketPage, x as MatchMarketParams, aU as MatchSortField, aR as MatchStatus, M as MatchesParams, aV as MatchesStats, bB as NEG_RISK_CTF_EXCHANGE_ADDRESS, bG as ORDER_TYPE, bO as OrderMessage, aD as OrderSide, aC as OrderStatus, h as Orderbook, ar as OrderbookLevel, bD as POLYGON_CHAIN_ID, by as PolymarketL2Headers, bx as PolymarketL2HeadersInput, aF as PolymarketOrderType, p as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, r as PredictOrder, b as PredictPage, aB as PredictPosition, am as PredictTag, j as PredictTrade, a as PredictWsClient, ak as PredictWsClientConfig, k as PriceHistoryRange, l as PriceHistoryResponse, aA as PricePoint, al as ProviderMeta, d as ProviderSource, bh as ResolveEventsParamsInput, bH as SIDE, an as SettlementSource, aX as SignalTag, bP as SignedOrder, S as SimilarEventsParams, bi as TagSlugSelection, aw as TradeType, bC as USDC_ADDRESS, aN as UnsignedTx, a_ as WsChannel, a$ as WsChannelEvent, b0 as WsClientMessage, ac as WsConnectionStatus, ad as WsDataMessage, b6 as WsErrorCode, b7 as WsErrorMessage, af as WsOrderbookEvent, b2 as WsPingMessage, b4 as WsPongMessage, ae as WsPriceEvent, b3 as WsServerMessage, b1 as WsSubscribeMessage, b5 as WsSubscribedMessage, ag as WsTradeEvent, bs as buildClobAuthMessage, bK as buildClobPayload, bE as buildCtfExchangeDomain, bI as buildOrderMessage, bu as buildPolymarketL2Headers, bJ as buildSignedOrder, ai as createPredictClient, aj as createPredictWsClient, bv as derivePolymarketApiKey, bb as eventQueryKey, bc as fetchEvent, bg as fetchEventsPage, bk as fetchMarket, bp as fetchMatchMarketsPage, bn as fetchMatchesPage, bt as hmacSha256Base64, bf as infiniteEventsQueryKey, bj as marketQueryKey, bo as matchMarketsQueryKey, bm as matchQueryKey, bl as matchesQueryKey, be as resolveEventsParams, bd as resolveTagSlug } from './server-DoNRmZzs.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liberfi.io/react-predict",
3
- "version": "0.3.51",
3
+ "version": "0.3.53",
4
4
  "description": "React hooks and client for prediction markets (prediction-server backend), including Polymarket and DFlow order flows",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@polymarket/clob-client-v2": "^1.0.6",
41
- "@liberfi.io/utils": "0.2.52"
41
+ "@liberfi.io/utils": "0.2.54"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@tanstack/react-query": "^5.90.2",
@@ -49,7 +49,7 @@
49
49
  "rimraf": "^5.0.5",
50
50
  "tsup": "^8.5.0",
51
51
  "typescript": "^5.9.2",
52
- "tsconfig": "0.1.236"
52
+ "tsconfig": "0.1.238"
53
53
  },
54
54
  "publishConfig": {
55
55
  "access": "public"