@liberfi.io/react-predict 0.3.50 → 0.3.52

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/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as PredictClient, a as PredictWsClient, L as ListEventsParams, b as PredictPage, c as PredictEvent, d as ProviderSource, E as EventStats, e as EventStatus, f as EventSortField, S as SimilarEventsParams, g as PredictMarket, O as OrderbookOutcome, h as Orderbook, i as ListMarketTradesParams, j as PredictTrade, k as PriceHistoryRange, l as PriceHistoryResponse, m as ListCandlesticksParams, C as Candlestick, n as ListCommentsParams, o as PredictComment, p as PositionsResponse, A as AvailableSharesResponse, B as BalanceResponse, q as ListOrdersParams, r as PredictOrder, s as ListOrdersMultiParams, t as PredictOrdersResponse, u as CancelOrderResult, M as MatchesParams, v as MatchGroupPage, w as MatchGroup, x as MatchMarketParams, y as MatchMarketPage, z as ListTradesParams, D as ListTradesMultiParams, F as DFlowQuoteRequest, G as DFlowQuoteResponse, H as DFlowSubmitResponse, I as DFlowSubmitRequest, J as DFlowKYCStatus, K as PolymarketSetupStatus, N as PolymarketDepositWalletDeployResponse, W as WithdrawBuildResponse, Q as WithdrawBuildRequest, R as WithdrawSubmitResponse, T as WithdrawSubmitRequest, U as WithdrawStatusResponse, V as PolymarketDepositAddresses, X as PolymarketSupportedAsset, Y as PolymarketWithdrawResponse, Z as PolymarketWithdrawRequest, _ as PolymarketWithdrawPrepareResponse, $ as PolymarketWithdrawPrepareRequest, a0 as PolymarketWithdrawQuoteResponse, a1 as PolymarketWithdrawQuoteRequest, a2 as PolymarketWithdrawRelayBuildResponse, a3 as PolymarketWithdrawRelayBuildRequest, a4 as PolymarketWithdrawRelaySubmitResponse, a5 as PolymarketWithdrawRelaySubmitRequest, a6 as PolymarketWithdrawBridgeStatusResponse, a7 as PolymarketRedeemResponse, a8 as PolymarketTypedData, a9 as TickSizeResponse, aa as FeeRateResponse, ab as RebateConfig, ac as WsConnectionStatus, ad as WsDataMessage, ae as WsPriceEvent, af as WsOrderbookEvent, ag as WsTradeEvent, ah as CreateOrderInput } from './server-D5LNY5tz.mjs';
2
- export { 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, bM as ClobOrderPayload, aE as DFlowOrderContext, aI as DepositBuildRequest, aJ as DepositBuildResponse, aM as DepositStatusResponse, aK as DepositSubmitRequest, aL as DepositSubmitResponse, ax as EventSummary, bw as HttpMethod, aq as MarketOutcome, ap as MarketResult, ao as MarketStatus, ay as MarketSummary, aW as MatchConfidenceTier, aS as MatchGroupEntry, aT as MatchGroupMarket, aY as MatchLeg, aZ as MatchMarketFlat, aU as MatchSortField, aR as MatchStatus, aV as MatchesStats, bB as NEG_RISK_CTF_EXCHANGE_ADDRESS, bG as ORDER_TYPE, bO as OrderMessage, aD as OrderSide, aC as OrderStatus, as as OrderbookBatchItem, at as OrderbookBatchResult, ar as OrderbookLevel, au as OrderbooksBatchRequest, av as OrderbooksBatchResponse, bD as POLYGON_CHAIN_ID, aO as PolymarketBridgeToken, aH as PolymarketDepositWalletDeployRequest, by as PolymarketL2Headers, bx as PolymarketL2HeadersInput, aF as PolymarketOrderType, ba as PolymarketRedeemInput, b8 as PolymarketRedeemPrepareInput, b9 as PolymarketRedeemPrepareResponse, aP as PolymarketSupportedAssetsResponse, aQ as PolymarketTypedDataArg, aG as PolymarketWalletKind, az as PredictCommentProfile, aB as PredictPosition, am as PredictTag, ak as PredictWsClientConfig, aA as PricePoint, al as ProviderMeta, bh as ResolveEventsParamsInput, bH as SIDE, an as SettlementSource, aX as SignalTag, bP as SignedOrder, bi as TagSlugSelection, aw as TradeType, bC as USDC_ADDRESS, aN as UnsignedTx, a_ as WsChannel, a$ as WsChannelEvent, b0 as WsClientMessage, b6 as WsErrorCode, b7 as WsErrorMessage, b2 as WsPingMessage, b4 as WsPongMessage, b3 as WsServerMessage, b1 as WsSubscribeMessage, b5 as WsSubscribedMessage, 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, bL as getPolymarketSharesPrecision, 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
+ import { P as PredictClient, a as PredictWsClient, L as ListEventsParams, b as PredictPage, c as PredictEvent, d as ProviderSource, E as EventStats, e as EventStatus, f as EventSortField, S as SimilarEventsParams, g as PredictMarket, O as OrderbookOutcome, h as Orderbook, i as ListMarketTradesParams, j as PredictTrade, k as PriceHistoryRange, l as PriceHistoryResponse, m as ListCandlesticksParams, C as Candlestick, n as ListCommentsParams, o as PredictComment, p as PositionsResponse, A as AvailableSharesResponse, B as BalanceResponse, q as ListOrdersParams, r as PredictOrder, s as ListOrdersMultiParams, t as PredictOrdersResponse, u as CancelOrderResult, M as MatchesParams, v as MatchGroupPage, w as MatchGroup, x as MatchMarketParams, y as MatchMarketPage, z as ListTradesParams, D as ListTradesMultiParams, F as DFlowQuoteRequest, G as DFlowQuoteResponse, H as DFlowSubmitResponse, I as DFlowSubmitRequest, J as DFlowKYCStatus, K as PolymarketSetupStatus, N as PolymarketDepositWalletDeployResponse, W as WithdrawBuildResponse, Q as WithdrawBuildRequest, R as WithdrawSubmitResponse, T as WithdrawSubmitRequest, U as WithdrawStatusResponse, V as PolymarketDepositAddresses, X as PolymarketSupportedAsset, Y as PolymarketWithdrawResponse, Z as PolymarketWithdrawRequest, _ as PolymarketWithdrawPrepareResponse, $ as PolymarketWithdrawPrepareRequest, a0 as PolymarketWithdrawQuoteResponse, a1 as PolymarketWithdrawQuoteRequest, a2 as PolymarketWithdrawRelayBuildResponse, a3 as PolymarketWithdrawRelayBuildRequest, a4 as PolymarketWithdrawRelaySubmitResponse, a5 as PolymarketWithdrawRelaySubmitRequest, a6 as PolymarketWithdrawBridgeStatusResponse, a7 as PolymarketRedeemResponse, a8 as PolymarketTypedData, a9 as TickSizeResponse, aa as FeeRateResponse, ab as RebateConfig, ac as WsConnectionStatus, ad as WsDataMessage, ae as WsPriceEvent, af as WsOrderbookEvent, ag as WsTradeEvent, ah as CreateOrderInput } from './server-DoNRmZzs.mjs';
2
+ export { 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, bM as ClobOrderPayload, aE as DFlowOrderContext, aI as DepositBuildRequest, aJ as DepositBuildResponse, aM as DepositStatusResponse, aK as DepositSubmitRequest, aL as DepositSubmitResponse, ax as EventSummary, bw as HttpMethod, aq as MarketOutcome, ap as MarketResult, ao as MarketStatus, ay as MarketSummary, aW as MatchConfidenceTier, aS as MatchGroupEntry, aT as MatchGroupMarket, aY as MatchLeg, aZ as MatchMarketFlat, aU as MatchSortField, aR as MatchStatus, aV as MatchesStats, bB as NEG_RISK_CTF_EXCHANGE_ADDRESS, bG as ORDER_TYPE, bO as OrderMessage, aD as OrderSide, aC as OrderStatus, as as OrderbookBatchItem, at as OrderbookBatchResult, ar as OrderbookLevel, au as OrderbooksBatchRequest, av as OrderbooksBatchResponse, bD as POLYGON_CHAIN_ID, aO as PolymarketBridgeToken, aH as PolymarketDepositWalletDeployRequest, by as PolymarketL2Headers, bx as PolymarketL2HeadersInput, aF as PolymarketOrderType, ba as PolymarketRedeemInput, b8 as PolymarketRedeemPrepareInput, b9 as PolymarketRedeemPrepareResponse, aP as PolymarketSupportedAssetsResponse, aQ as PolymarketTypedDataArg, aG as PolymarketWalletKind, az as PredictCommentProfile, aB as PredictPosition, am as PredictTag, ak as PredictWsClientConfig, aA as PricePoint, al as ProviderMeta, bh as ResolveEventsParamsInput, bH as SIDE, an as SettlementSource, aX as SignalTag, bP as SignedOrder, bi as TagSlugSelection, aw as TradeType, bC as USDC_ADDRESS, aN as UnsignedTx, a_ as WsChannel, a$ as WsChannelEvent, b0 as WsClientMessage, b6 as WsErrorCode, b7 as WsErrorMessage, b2 as WsPingMessage, b4 as WsPongMessage, b3 as WsServerMessage, b1 as WsSubscribeMessage, b5 as WsSubscribedMessage, 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, bL as getPolymarketSharesPrecision, 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';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import { PropsWithChildren } from 'react';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as PredictClient, a as PredictWsClient, L as ListEventsParams, b as PredictPage, c as PredictEvent, d as ProviderSource, E as EventStats, e as EventStatus, f as EventSortField, S as SimilarEventsParams, g as PredictMarket, O as OrderbookOutcome, h as Orderbook, i as ListMarketTradesParams, j as PredictTrade, k as PriceHistoryRange, l as PriceHistoryResponse, m as ListCandlesticksParams, C as Candlestick, n as ListCommentsParams, o as PredictComment, p as PositionsResponse, A as AvailableSharesResponse, B as BalanceResponse, q as ListOrdersParams, r as PredictOrder, s as ListOrdersMultiParams, t as PredictOrdersResponse, u as CancelOrderResult, M as MatchesParams, v as MatchGroupPage, w as MatchGroup, x as MatchMarketParams, y as MatchMarketPage, z as ListTradesParams, D as ListTradesMultiParams, F as DFlowQuoteRequest, G as DFlowQuoteResponse, H as DFlowSubmitResponse, I as DFlowSubmitRequest, J as DFlowKYCStatus, K as PolymarketSetupStatus, N as PolymarketDepositWalletDeployResponse, W as WithdrawBuildResponse, Q as WithdrawBuildRequest, R as WithdrawSubmitResponse, T as WithdrawSubmitRequest, U as WithdrawStatusResponse, V as PolymarketDepositAddresses, X as PolymarketSupportedAsset, Y as PolymarketWithdrawResponse, Z as PolymarketWithdrawRequest, _ as PolymarketWithdrawPrepareResponse, $ as PolymarketWithdrawPrepareRequest, a0 as PolymarketWithdrawQuoteResponse, a1 as PolymarketWithdrawQuoteRequest, a2 as PolymarketWithdrawRelayBuildResponse, a3 as PolymarketWithdrawRelayBuildRequest, a4 as PolymarketWithdrawRelaySubmitResponse, a5 as PolymarketWithdrawRelaySubmitRequest, a6 as PolymarketWithdrawBridgeStatusResponse, a7 as PolymarketRedeemResponse, a8 as PolymarketTypedData, a9 as TickSizeResponse, aa as FeeRateResponse, ab as RebateConfig, ac as WsConnectionStatus, ad as WsDataMessage, ae as WsPriceEvent, af as WsOrderbookEvent, ag as WsTradeEvent, ah as CreateOrderInput } from './server-D5LNY5tz.js';
2
- export { 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, bM as ClobOrderPayload, aE as DFlowOrderContext, aI as DepositBuildRequest, aJ as DepositBuildResponse, aM as DepositStatusResponse, aK as DepositSubmitRequest, aL as DepositSubmitResponse, ax as EventSummary, bw as HttpMethod, aq as MarketOutcome, ap as MarketResult, ao as MarketStatus, ay as MarketSummary, aW as MatchConfidenceTier, aS as MatchGroupEntry, aT as MatchGroupMarket, aY as MatchLeg, aZ as MatchMarketFlat, aU as MatchSortField, aR as MatchStatus, aV as MatchesStats, bB as NEG_RISK_CTF_EXCHANGE_ADDRESS, bG as ORDER_TYPE, bO as OrderMessage, aD as OrderSide, aC as OrderStatus, as as OrderbookBatchItem, at as OrderbookBatchResult, ar as OrderbookLevel, au as OrderbooksBatchRequest, av as OrderbooksBatchResponse, bD as POLYGON_CHAIN_ID, aO as PolymarketBridgeToken, aH as PolymarketDepositWalletDeployRequest, by as PolymarketL2Headers, bx as PolymarketL2HeadersInput, aF as PolymarketOrderType, ba as PolymarketRedeemInput, b8 as PolymarketRedeemPrepareInput, b9 as PolymarketRedeemPrepareResponse, aP as PolymarketSupportedAssetsResponse, aQ as PolymarketTypedDataArg, aG as PolymarketWalletKind, az as PredictCommentProfile, aB as PredictPosition, am as PredictTag, ak as PredictWsClientConfig, aA as PricePoint, al as ProviderMeta, bh as ResolveEventsParamsInput, bH as SIDE, an as SettlementSource, aX as SignalTag, bP as SignedOrder, bi as TagSlugSelection, aw as TradeType, bC as USDC_ADDRESS, aN as UnsignedTx, a_ as WsChannel, a$ as WsChannelEvent, b0 as WsClientMessage, b6 as WsErrorCode, b7 as WsErrorMessage, b2 as WsPingMessage, b4 as WsPongMessage, b3 as WsServerMessage, b1 as WsSubscribeMessage, b5 as WsSubscribedMessage, 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, bL as getPolymarketSharesPrecision, 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
+ import { P as PredictClient, a as PredictWsClient, L as ListEventsParams, b as PredictPage, c as PredictEvent, d as ProviderSource, E as EventStats, e as EventStatus, f as EventSortField, S as SimilarEventsParams, g as PredictMarket, O as OrderbookOutcome, h as Orderbook, i as ListMarketTradesParams, j as PredictTrade, k as PriceHistoryRange, l as PriceHistoryResponse, m as ListCandlesticksParams, C as Candlestick, n as ListCommentsParams, o as PredictComment, p as PositionsResponse, A as AvailableSharesResponse, B as BalanceResponse, q as ListOrdersParams, r as PredictOrder, s as ListOrdersMultiParams, t as PredictOrdersResponse, u as CancelOrderResult, M as MatchesParams, v as MatchGroupPage, w as MatchGroup, x as MatchMarketParams, y as MatchMarketPage, z as ListTradesParams, D as ListTradesMultiParams, F as DFlowQuoteRequest, G as DFlowQuoteResponse, H as DFlowSubmitResponse, I as DFlowSubmitRequest, J as DFlowKYCStatus, K as PolymarketSetupStatus, N as PolymarketDepositWalletDeployResponse, W as WithdrawBuildResponse, Q as WithdrawBuildRequest, R as WithdrawSubmitResponse, T as WithdrawSubmitRequest, U as WithdrawStatusResponse, V as PolymarketDepositAddresses, X as PolymarketSupportedAsset, Y as PolymarketWithdrawResponse, Z as PolymarketWithdrawRequest, _ as PolymarketWithdrawPrepareResponse, $ as PolymarketWithdrawPrepareRequest, a0 as PolymarketWithdrawQuoteResponse, a1 as PolymarketWithdrawQuoteRequest, a2 as PolymarketWithdrawRelayBuildResponse, a3 as PolymarketWithdrawRelayBuildRequest, a4 as PolymarketWithdrawRelaySubmitResponse, a5 as PolymarketWithdrawRelaySubmitRequest, a6 as PolymarketWithdrawBridgeStatusResponse, a7 as PolymarketRedeemResponse, a8 as PolymarketTypedData, a9 as TickSizeResponse, aa as FeeRateResponse, ab as RebateConfig, ac as WsConnectionStatus, ad as WsDataMessage, ae as WsPriceEvent, af as WsOrderbookEvent, ag as WsTradeEvent, ah as CreateOrderInput } from './server-DoNRmZzs.js';
2
+ export { 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, bM as ClobOrderPayload, aE as DFlowOrderContext, aI as DepositBuildRequest, aJ as DepositBuildResponse, aM as DepositStatusResponse, aK as DepositSubmitRequest, aL as DepositSubmitResponse, ax as EventSummary, bw as HttpMethod, aq as MarketOutcome, ap as MarketResult, ao as MarketStatus, ay as MarketSummary, aW as MatchConfidenceTier, aS as MatchGroupEntry, aT as MatchGroupMarket, aY as MatchLeg, aZ as MatchMarketFlat, aU as MatchSortField, aR as MatchStatus, aV as MatchesStats, bB as NEG_RISK_CTF_EXCHANGE_ADDRESS, bG as ORDER_TYPE, bO as OrderMessage, aD as OrderSide, aC as OrderStatus, as as OrderbookBatchItem, at as OrderbookBatchResult, ar as OrderbookLevel, au as OrderbooksBatchRequest, av as OrderbooksBatchResponse, bD as POLYGON_CHAIN_ID, aO as PolymarketBridgeToken, aH as PolymarketDepositWalletDeployRequest, by as PolymarketL2Headers, bx as PolymarketL2HeadersInput, aF as PolymarketOrderType, ba as PolymarketRedeemInput, b8 as PolymarketRedeemPrepareInput, b9 as PolymarketRedeemPrepareResponse, aP as PolymarketSupportedAssetsResponse, aQ as PolymarketTypedDataArg, aG as PolymarketWalletKind, az as PredictCommentProfile, aB as PredictPosition, am as PredictTag, ak as PredictWsClientConfig, aA as PricePoint, al as ProviderMeta, bh as ResolveEventsParamsInput, bH as SIDE, an as SettlementSource, aX as SignalTag, bP as SignedOrder, bi as TagSlugSelection, aw as TradeType, bC as USDC_ADDRESS, aN as UnsignedTx, a_ as WsChannel, a$ as WsChannelEvent, b0 as WsClientMessage, b6 as WsErrorCode, b7 as WsErrorMessage, b2 as WsPingMessage, b4 as WsPongMessage, b3 as WsServerMessage, b1 as WsSubscribeMessage, b5 as WsSubscribedMessage, 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, bL as getPolymarketSharesPrecision, 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';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import { PropsWithChildren } from 'react';
@@ -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.50",
3
+ "version": "0.3.52",
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.51"
41
+ "@liberfi.io/utils": "0.2.53"
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.235"
52
+ "tsconfig": "0.1.237"
53
53
  },
54
54
  "publishConfig": {
55
55
  "access": "public"