@liberfi.io/react-predict 0.1.60 → 0.1.61

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 Orderbook, h as ListMarketTradesParams, i as PredictTrade, j as PriceHistoryRange, k as PriceHistoryResponse, l as ListCandlesticksParams, C as Candlestick, m as PositionsResponse, A as AvailableSharesResponse, B as BalanceResponse, n as ListOrdersParams, o as PredictOrder, p as ListOrdersMultiParams, q as PredictOrdersResponse, r as CancelOrderResult, M as MatchesParams, s as MatchGroupPage, t as MatchGroup, u as MatchMarketParams, v as MatchMarketPage, w as ListTradesParams, x as ListTradesMultiParams, D as DFlowQuoteRequest, y as DFlowQuoteResponse, z as DFlowSubmitResponse, F as DFlowSubmitRequest, G as DFlowKYCStatus, H as PolymarketSetupStatus, W as WithdrawBuildResponse, I as WithdrawBuildRequest, J as WithdrawSubmitResponse, K as WithdrawSubmitRequest, N as WithdrawStatusResponse, Q as PolymarketDepositAddresses, R as PolymarketWithdrawResponse, T as PolymarketWithdrawRequest, U as TickSizeResponse, V as WsConnectionStatus, X as WsDataMessage, Y as WsPriceEvent, Z as WsOrderbookEvent, _ as WsTradeEvent, $ as CreateOrderInput } from './server-DUc4MoLH.mjs';
2
- export { b2 as BuildClobAuthMessageInput, bf as BuildOrderMessageInput, aV as CLOB_AUTH_DOMAIN, aW as CLOB_AUTH_TYPES, b3 as CTF_EXCHANGE_ADDRESS, b8 as CTF_ORDER_TYPES, be as ClobOrderPayload, ah as DFlowOrderContext, aj as DepositBuildRequest, ak as DepositBuildResponse, an as DepositStatusResponse, al as DepositSubmitRequest, am as DepositSubmitResponse, ab as EventSummary, a$ as HttpMethod, a8 as MarketOutcome, a7 as MarketResult, a6 as MarketStatus, ac as MarketSummary, au as MatchConfidenceTier, aq as MatchGroupEntry, ar as MatchGroupMarket, av as MatchMarketFlat, as as MatchSortField, ap as MatchStatus, at as MatchesStats, b4 as NEG_RISK_CTF_EXCHANGE_ADDRESS, b9 as ORDER_TYPE, bg as OrderMessage, ag as OrderSide, af as OrderStatus, a9 as OrderbookLevel, b6 as POLYGON_CHAIN_ID, b1 as PolymarketL2Headers, b0 as PolymarketL2HeadersInput, ai as PolymarketOrderType, ae as PredictPosition, a4 as PredictTag, a2 as PredictWsClientConfig, ad as PricePoint, a3 as ProviderMeta, aM as ResolveEventsParamsInput, ba as SIDE, a5 as SettlementSource, bh as SignedOrder, aN as TagSlugSelection, aa as TradeType, b5 as USDC_ADDRESS, ao as UnsignedTx, aw as WsChannel, ax as WsChannelEvent, ay as WsClientMessage, aE as WsErrorCode, aF as WsErrorMessage, aA as WsPingMessage, aC as WsPongMessage, aB as WsServerMessage, az as WsSubscribeMessage, aD as WsSubscribedMessage, aX as buildClobAuthMessage, bd as buildClobPayload, b7 as buildCtfExchangeDomain, bb as buildOrderMessage, aZ as buildPolymarketL2Headers, bc as buildSignedOrder, a0 as createPredictClient, a1 as createPredictWsClient, a_ as derivePolymarketApiKey, aG as eventQueryKey, aH as fetchEvent, aL as fetchEventsPage, aP as fetchMarket, aU as fetchMatchMarketsPage, aS as fetchMatchesPage, aY as hmacSha256Base64, aK as infiniteEventsQueryKey, aO as marketQueryKey, aT as matchMarketsQueryKey, aR as matchQueryKey, aQ as matchesQueryKey, aJ as resolveEventsParams, aI as resolveTagSlug } from './server-DUc4MoLH.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 Orderbook, h as ListMarketTradesParams, i as PredictTrade, j as PriceHistoryRange, k as PriceHistoryResponse, l as ListCandlesticksParams, C as Candlestick, m as PositionsResponse, A as AvailableSharesResponse, B as BalanceResponse, n as ListOrdersParams, o as PredictOrder, p as ListOrdersMultiParams, q as PredictOrdersResponse, r as CancelOrderResult, M as MatchesParams, s as MatchGroupPage, t as MatchGroup, u as MatchMarketParams, v as MatchMarketPage, w as ListTradesParams, x as ListTradesMultiParams, D as DFlowQuoteRequest, y as DFlowQuoteResponse, z as DFlowSubmitResponse, F as DFlowSubmitRequest, G as DFlowKYCStatus, H as PolymarketSetupStatus, W as WithdrawBuildResponse, I as WithdrawBuildRequest, J as WithdrawSubmitResponse, K as WithdrawSubmitRequest, N as WithdrawStatusResponse, Q as PolymarketDepositAddresses, R as PolymarketWithdrawResponse, T as PolymarketWithdrawRequest, U as TickSizeResponse, V as WsConnectionStatus, X as WsDataMessage, Y as WsPriceEvent, Z as WsOrderbookEvent, _ as WsTradeEvent, $ as CreateOrderInput } from './server-exUYV2o0.mjs';
2
+ export { b4 as BuildClobAuthMessageInput, bh as BuildOrderMessageInput, aX as CLOB_AUTH_DOMAIN, aY as CLOB_AUTH_TYPES, b5 as CTF_EXCHANGE_ADDRESS, ba as CTF_ORDER_TYPES, bg as ClobOrderPayload, ah as DFlowOrderContext, aj as DepositBuildRequest, ak as DepositBuildResponse, an as DepositStatusResponse, al as DepositSubmitRequest, am as DepositSubmitResponse, ab as EventSummary, b1 as HttpMethod, a8 as MarketOutcome, a7 as MarketResult, a6 as MarketStatus, ac as MarketSummary, aw as MatchConfidenceTier, as as MatchGroupEntry, at as MatchGroupMarket, ax as MatchMarketFlat, au as MatchSortField, ar as MatchStatus, av as MatchesStats, b6 as NEG_RISK_CTF_EXCHANGE_ADDRESS, bb as ORDER_TYPE, bi as OrderMessage, ag as OrderSide, af as OrderStatus, a9 as OrderbookLevel, b8 as POLYGON_CHAIN_ID, b3 as PolymarketL2Headers, b2 as PolymarketL2HeadersInput, ai as PolymarketOrderType, ap as PolymarketWithdrawPrepareRequest, aq as PolymarketWithdrawPrepareResponse, ae as PredictPosition, a4 as PredictTag, a2 as PredictWsClientConfig, ad as PricePoint, a3 as ProviderMeta, aO as ResolveEventsParamsInput, bc as SIDE, a5 as SettlementSource, bj as SignedOrder, aP as TagSlugSelection, aa as TradeType, b7 as USDC_ADDRESS, ao as UnsignedTx, ay as WsChannel, az as WsChannelEvent, aA as WsClientMessage, aG as WsErrorCode, aH as WsErrorMessage, aC as WsPingMessage, aE as WsPongMessage, aD as WsServerMessage, aB as WsSubscribeMessage, aF as WsSubscribedMessage, aZ as buildClobAuthMessage, bf as buildClobPayload, b9 as buildCtfExchangeDomain, bd as buildOrderMessage, a$ as buildPolymarketL2Headers, be as buildSignedOrder, a0 as createPredictClient, a1 as createPredictWsClient, b0 as derivePolymarketApiKey, aI as eventQueryKey, aJ as fetchEvent, aN as fetchEventsPage, aR as fetchMarket, aW as fetchMatchMarketsPage, aU as fetchMatchesPage, a_ as hmacSha256Base64, aM as infiniteEventsQueryKey, aQ as marketQueryKey, aV as matchMarketsQueryKey, aT as matchQueryKey, aS as matchesQueryKey, aL as resolveEventsParams, aK as resolveTagSlug } from './server-exUYV2o0.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 Orderbook, h as ListMarketTradesParams, i as PredictTrade, j as PriceHistoryRange, k as PriceHistoryResponse, l as ListCandlesticksParams, C as Candlestick, m as PositionsResponse, A as AvailableSharesResponse, B as BalanceResponse, n as ListOrdersParams, o as PredictOrder, p as ListOrdersMultiParams, q as PredictOrdersResponse, r as CancelOrderResult, M as MatchesParams, s as MatchGroupPage, t as MatchGroup, u as MatchMarketParams, v as MatchMarketPage, w as ListTradesParams, x as ListTradesMultiParams, D as DFlowQuoteRequest, y as DFlowQuoteResponse, z as DFlowSubmitResponse, F as DFlowSubmitRequest, G as DFlowKYCStatus, H as PolymarketSetupStatus, W as WithdrawBuildResponse, I as WithdrawBuildRequest, J as WithdrawSubmitResponse, K as WithdrawSubmitRequest, N as WithdrawStatusResponse, Q as PolymarketDepositAddresses, R as PolymarketWithdrawResponse, T as PolymarketWithdrawRequest, U as TickSizeResponse, V as WsConnectionStatus, X as WsDataMessage, Y as WsPriceEvent, Z as WsOrderbookEvent, _ as WsTradeEvent, $ as CreateOrderInput } from './server-DUc4MoLH.js';
2
- export { b2 as BuildClobAuthMessageInput, bf as BuildOrderMessageInput, aV as CLOB_AUTH_DOMAIN, aW as CLOB_AUTH_TYPES, b3 as CTF_EXCHANGE_ADDRESS, b8 as CTF_ORDER_TYPES, be as ClobOrderPayload, ah as DFlowOrderContext, aj as DepositBuildRequest, ak as DepositBuildResponse, an as DepositStatusResponse, al as DepositSubmitRequest, am as DepositSubmitResponse, ab as EventSummary, a$ as HttpMethod, a8 as MarketOutcome, a7 as MarketResult, a6 as MarketStatus, ac as MarketSummary, au as MatchConfidenceTier, aq as MatchGroupEntry, ar as MatchGroupMarket, av as MatchMarketFlat, as as MatchSortField, ap as MatchStatus, at as MatchesStats, b4 as NEG_RISK_CTF_EXCHANGE_ADDRESS, b9 as ORDER_TYPE, bg as OrderMessage, ag as OrderSide, af as OrderStatus, a9 as OrderbookLevel, b6 as POLYGON_CHAIN_ID, b1 as PolymarketL2Headers, b0 as PolymarketL2HeadersInput, ai as PolymarketOrderType, ae as PredictPosition, a4 as PredictTag, a2 as PredictWsClientConfig, ad as PricePoint, a3 as ProviderMeta, aM as ResolveEventsParamsInput, ba as SIDE, a5 as SettlementSource, bh as SignedOrder, aN as TagSlugSelection, aa as TradeType, b5 as USDC_ADDRESS, ao as UnsignedTx, aw as WsChannel, ax as WsChannelEvent, ay as WsClientMessage, aE as WsErrorCode, aF as WsErrorMessage, aA as WsPingMessage, aC as WsPongMessage, aB as WsServerMessage, az as WsSubscribeMessage, aD as WsSubscribedMessage, aX as buildClobAuthMessage, bd as buildClobPayload, b7 as buildCtfExchangeDomain, bb as buildOrderMessage, aZ as buildPolymarketL2Headers, bc as buildSignedOrder, a0 as createPredictClient, a1 as createPredictWsClient, a_ as derivePolymarketApiKey, aG as eventQueryKey, aH as fetchEvent, aL as fetchEventsPage, aP as fetchMarket, aU as fetchMatchMarketsPage, aS as fetchMatchesPage, aY as hmacSha256Base64, aK as infiniteEventsQueryKey, aO as marketQueryKey, aT as matchMarketsQueryKey, aR as matchQueryKey, aQ as matchesQueryKey, aJ as resolveEventsParams, aI as resolveTagSlug } from './server-DUc4MoLH.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 Orderbook, h as ListMarketTradesParams, i as PredictTrade, j as PriceHistoryRange, k as PriceHistoryResponse, l as ListCandlesticksParams, C as Candlestick, m as PositionsResponse, A as AvailableSharesResponse, B as BalanceResponse, n as ListOrdersParams, o as PredictOrder, p as ListOrdersMultiParams, q as PredictOrdersResponse, r as CancelOrderResult, M as MatchesParams, s as MatchGroupPage, t as MatchGroup, u as MatchMarketParams, v as MatchMarketPage, w as ListTradesParams, x as ListTradesMultiParams, D as DFlowQuoteRequest, y as DFlowQuoteResponse, z as DFlowSubmitResponse, F as DFlowSubmitRequest, G as DFlowKYCStatus, H as PolymarketSetupStatus, W as WithdrawBuildResponse, I as WithdrawBuildRequest, J as WithdrawSubmitResponse, K as WithdrawSubmitRequest, N as WithdrawStatusResponse, Q as PolymarketDepositAddresses, R as PolymarketWithdrawResponse, T as PolymarketWithdrawRequest, U as TickSizeResponse, V as WsConnectionStatus, X as WsDataMessage, Y as WsPriceEvent, Z as WsOrderbookEvent, _ as WsTradeEvent, $ as CreateOrderInput } from './server-exUYV2o0.js';
2
+ export { b4 as BuildClobAuthMessageInput, bh as BuildOrderMessageInput, aX as CLOB_AUTH_DOMAIN, aY as CLOB_AUTH_TYPES, b5 as CTF_EXCHANGE_ADDRESS, ba as CTF_ORDER_TYPES, bg as ClobOrderPayload, ah as DFlowOrderContext, aj as DepositBuildRequest, ak as DepositBuildResponse, an as DepositStatusResponse, al as DepositSubmitRequest, am as DepositSubmitResponse, ab as EventSummary, b1 as HttpMethod, a8 as MarketOutcome, a7 as MarketResult, a6 as MarketStatus, ac as MarketSummary, aw as MatchConfidenceTier, as as MatchGroupEntry, at as MatchGroupMarket, ax as MatchMarketFlat, au as MatchSortField, ar as MatchStatus, av as MatchesStats, b6 as NEG_RISK_CTF_EXCHANGE_ADDRESS, bb as ORDER_TYPE, bi as OrderMessage, ag as OrderSide, af as OrderStatus, a9 as OrderbookLevel, b8 as POLYGON_CHAIN_ID, b3 as PolymarketL2Headers, b2 as PolymarketL2HeadersInput, ai as PolymarketOrderType, ap as PolymarketWithdrawPrepareRequest, aq as PolymarketWithdrawPrepareResponse, ae as PredictPosition, a4 as PredictTag, a2 as PredictWsClientConfig, ad as PricePoint, a3 as ProviderMeta, aO as ResolveEventsParamsInput, bc as SIDE, a5 as SettlementSource, bj as SignedOrder, aP as TagSlugSelection, aa as TradeType, b7 as USDC_ADDRESS, ao as UnsignedTx, ay as WsChannel, az as WsChannelEvent, aA as WsClientMessage, aG as WsErrorCode, aH as WsErrorMessage, aC as WsPingMessage, aE as WsPongMessage, aD as WsServerMessage, aB as WsSubscribeMessage, aF as WsSubscribedMessage, aZ as buildClobAuthMessage, bf as buildClobPayload, b9 as buildCtfExchangeDomain, bd as buildOrderMessage, a$ as buildPolymarketL2Headers, be as buildSignedOrder, a0 as createPredictClient, a1 as createPredictWsClient, b0 as derivePolymarketApiKey, aI as eventQueryKey, aJ as fetchEvent, aN as fetchEventsPage, aR as fetchMarket, aW as fetchMatchMarketsPage, aU as fetchMatchesPage, a_ as hmacSha256Base64, aM as infiniteEventsQueryKey, aQ as marketQueryKey, aV as matchMarketsQueryKey, aT as matchQueryKey, aS as matchesQueryKey, aL as resolveEventsParams, aK as resolveTagSlug } from './server-exUYV2o0.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';
package/dist/index.js CHANGED
@@ -412,6 +412,15 @@ var PredictClient = class {
412
412
  // -------------------------------------------------------------------------
413
413
  // Polymarket Relayer Withdraw
414
414
  // -------------------------------------------------------------------------
415
+ /**
416
+ * Prepare a Polymarket withdrawal by obtaining a Bridge deposit address.
417
+ *
418
+ * Maps to `POST /api/v1/withdraw/polymarket/prepare`.
419
+ */
420
+ async preparePolymarketWithdraw(body) {
421
+ const url = `${this.endpoint}/api/v1/withdraw/polymarket/prepare`;
422
+ return await utils.httpPost(url, body);
423
+ }
415
424
  /**
416
425
  * Execute a gasless USDC.e withdrawal from a Polymarket Safe wallet via Relayer.
417
426
  *