@liberfi.io/react-predict 0.1.59 → 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.
@@ -497,6 +497,15 @@ interface PolymarketDepositAddresses {
497
497
  btc: string;
498
498
  tvm?: string;
499
499
  }
500
+ /** Request body for `POST /api/v1/withdraw/polymarket/prepare`. */
501
+ interface PolymarketWithdrawPrepareRequest {
502
+ safe_address: string;
503
+ to: string;
504
+ }
505
+ /** Response from `POST /api/v1/withdraw/polymarket/prepare`. */
506
+ interface PolymarketWithdrawPrepareResponse {
507
+ deposit_address: string;
508
+ }
500
509
  /** Request body for `POST /api/v1/withdraw/polymarket/execute`. */
501
510
  interface PolymarketWithdrawRequest {
502
511
  wallet_address: string;
@@ -961,6 +970,12 @@ declare class PredictClient {
961
970
  * Maps to `GET /api/v1/deposit/polymarket/addresses?safe_address=...`.
962
971
  */
963
972
  getPolymarketDepositAddresses(safeAddress: string): Promise<PolymarketDepositAddresses>;
973
+ /**
974
+ * Prepare a Polymarket withdrawal by obtaining a Bridge deposit address.
975
+ *
976
+ * Maps to `POST /api/v1/withdraw/polymarket/prepare`.
977
+ */
978
+ preparePolymarketWithdraw(body: PolymarketWithdrawPrepareRequest): Promise<PolymarketWithdrawPrepareResponse>;
964
979
  /**
965
980
  * Execute a gasless USDC.e withdrawal from a Polymarket Safe wallet via Relayer.
966
981
  *
@@ -1540,4 +1555,4 @@ interface ClobOrderPayload {
1540
1555
  */
1541
1556
  declare function buildClobPayload(signedOrder: SignedOrder, owner: string): ClobOrderPayload;
1542
1557
 
1543
- export { type CreateOrderInput as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type DFlowQuoteRequest as D, type EventStats as E, type DFlowSubmitRequest as F, type DFlowKYCStatus as G, type PolymarketSetupStatus as H, type WithdrawBuildRequest as I, type WithdrawSubmitResponse as J, type WithdrawSubmitRequest as K, type ListEventsParams as L, type MatchesParams as M, type WithdrawStatusResponse as N, type Orderbook as O, PredictClient as P, type PolymarketDepositAddresses as Q, type PolymarketWithdrawResponse as R, type SimilarEventsParams as S, type PolymarketWithdrawRequest as T, type TickSizeResponse as U, type WsConnectionStatus as V, type WithdrawBuildResponse as W, type WsDataMessage as X, type WsPriceEvent as Y, type WsOrderbookEvent as Z, type WsTradeEvent as _, PredictWsClient as a, type HttpMethod as a$, createPredictClient as a0, createPredictWsClient as a1, type PredictWsClientConfig as a2, type ProviderMeta as a3, type PredictTag as a4, type SettlementSource as a5, type MarketStatus as a6, type MarketResult as a7, type MarketOutcome as a8, type OrderbookLevel as a9, type WsPingMessage as aA, type WsServerMessage as aB, type WsPongMessage as aC, type WsSubscribedMessage as aD, type WsErrorCode as aE, type WsErrorMessage as aF, eventQueryKey as aG, fetchEvent as aH, resolveTagSlug as aI, resolveEventsParams as aJ, infiniteEventsQueryKey as aK, fetchEventsPage as aL, type ResolveEventsParamsInput as aM, type TagSlugSelection as aN, marketQueryKey as aO, fetchMarket as aP, matchesQueryKey as aQ, matchQueryKey as aR, fetchMatchesPage as aS, matchMarketsQueryKey as aT, fetchMatchMarketsPage as aU, CLOB_AUTH_DOMAIN as aV, CLOB_AUTH_TYPES as aW, buildClobAuthMessage as aX, hmacSha256Base64 as aY, buildPolymarketL2Headers as aZ, derivePolymarketApiKey as a_, type TradeType as aa, type EventSummary as ab, type MarketSummary as ac, type PricePoint as ad, type PredictPosition as ae, type OrderStatus as af, type OrderSide as ag, type DFlowOrderContext as ah, type PolymarketOrderType as ai, type DepositBuildRequest as aj, type DepositBuildResponse as ak, type DepositSubmitRequest as al, type DepositSubmitResponse as am, type DepositStatusResponse as an, type UnsignedTx as ao, type MatchStatus as ap, type MatchGroupEntry as aq, type MatchGroupMarket as ar, type MatchSortField as as, type MatchesStats as at, type MatchConfidenceTier as au, type MatchMarketFlat as av, type WsChannel as aw, type WsChannelEvent as ax, type WsClientMessage as ay, type WsSubscribeMessage as az, type PredictPage as b, type PolymarketL2HeadersInput as b0, type PolymarketL2Headers as b1, type BuildClobAuthMessageInput as b2, CTF_EXCHANGE_ADDRESS as b3, NEG_RISK_CTF_EXCHANGE_ADDRESS as b4, USDC_ADDRESS as b5, POLYGON_CHAIN_ID as b6, buildCtfExchangeDomain as b7, CTF_ORDER_TYPES as b8, ORDER_TYPE as b9, SIDE as ba, buildOrderMessage as bb, buildSignedOrder as bc, buildClobPayload as bd, type ClobOrderPayload as be, type BuildOrderMessageInput as bf, type OrderMessage as bg, type SignedOrder as bh, DEFAULT_PAGE_SIZE as bi, type PredictEvent as c, type ProviderSource as d, type EventStatus as e, type EventSortField as f, type PredictMarket as g, type ListMarketTradesParams as h, type PredictTrade as i, type PriceHistoryRange as j, type PriceHistoryResponse as k, type ListCandlesticksParams as l, type PositionsResponse as m, type ListOrdersParams as n, type PredictOrder as o, type ListOrdersMultiParams as p, type PredictOrdersResponse as q, type CancelOrderResult as r, type MatchGroupPage as s, type MatchGroup as t, type MatchMarketParams as u, type MatchMarketPage as v, type ListTradesParams as w, type ListTradesMultiParams as x, type DFlowQuoteResponse as y, type DFlowSubmitResponse as z };
1558
+ export { type CreateOrderInput as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type DFlowQuoteRequest as D, type EventStats as E, type DFlowSubmitRequest as F, type DFlowKYCStatus as G, type PolymarketSetupStatus as H, type WithdrawBuildRequest as I, type WithdrawSubmitResponse as J, type WithdrawSubmitRequest as K, type ListEventsParams as L, type MatchesParams as M, type WithdrawStatusResponse as N, type Orderbook as O, PredictClient as P, type PolymarketDepositAddresses as Q, type PolymarketWithdrawResponse as R, type SimilarEventsParams as S, type PolymarketWithdrawRequest as T, type TickSizeResponse as U, type WsConnectionStatus as V, type WithdrawBuildResponse as W, type WsDataMessage as X, type WsPriceEvent as Y, type WsOrderbookEvent as Z, type WsTradeEvent as _, PredictWsClient as a, buildPolymarketL2Headers as a$, createPredictClient as a0, createPredictWsClient as a1, type PredictWsClientConfig as a2, type ProviderMeta as a3, type PredictTag as a4, type SettlementSource as a5, type MarketStatus as a6, type MarketResult as a7, type MarketOutcome as a8, type OrderbookLevel as a9, type WsClientMessage as aA, type WsSubscribeMessage as aB, type WsPingMessage as aC, type WsServerMessage as aD, type WsPongMessage as aE, type WsSubscribedMessage as aF, type WsErrorCode as aG, type WsErrorMessage as aH, eventQueryKey as aI, fetchEvent as aJ, resolveTagSlug as aK, resolveEventsParams as aL, infiniteEventsQueryKey as aM, fetchEventsPage as aN, type ResolveEventsParamsInput as aO, type TagSlugSelection as aP, marketQueryKey as aQ, fetchMarket as aR, matchesQueryKey as aS, matchQueryKey as aT, fetchMatchesPage as aU, matchMarketsQueryKey as aV, fetchMatchMarketsPage as aW, CLOB_AUTH_DOMAIN as aX, CLOB_AUTH_TYPES as aY, buildClobAuthMessage as aZ, hmacSha256Base64 as a_, type TradeType as aa, type EventSummary as ab, type MarketSummary as ac, type PricePoint as ad, type PredictPosition as ae, type OrderStatus as af, type OrderSide as ag, type DFlowOrderContext as ah, type PolymarketOrderType as ai, type DepositBuildRequest as aj, type DepositBuildResponse as ak, type DepositSubmitRequest as al, type DepositSubmitResponse as am, type DepositStatusResponse as an, type UnsignedTx as ao, type PolymarketWithdrawPrepareRequest as ap, type PolymarketWithdrawPrepareResponse as aq, type MatchStatus as ar, type MatchGroupEntry as as, type MatchGroupMarket as at, type MatchSortField as au, type MatchesStats as av, type MatchConfidenceTier as aw, type MatchMarketFlat as ax, type WsChannel as ay, type WsChannelEvent as az, type PredictPage as b, derivePolymarketApiKey as b0, type HttpMethod as b1, type PolymarketL2HeadersInput as b2, type PolymarketL2Headers as b3, type BuildClobAuthMessageInput as b4, CTF_EXCHANGE_ADDRESS as b5, NEG_RISK_CTF_EXCHANGE_ADDRESS as b6, USDC_ADDRESS as b7, POLYGON_CHAIN_ID as b8, buildCtfExchangeDomain as b9, CTF_ORDER_TYPES as ba, ORDER_TYPE as bb, SIDE as bc, buildOrderMessage as bd, buildSignedOrder as be, buildClobPayload as bf, type ClobOrderPayload as bg, type BuildOrderMessageInput as bh, type OrderMessage as bi, type SignedOrder as bj, DEFAULT_PAGE_SIZE as bk, type PredictEvent as c, type ProviderSource as d, type EventStatus as e, type EventSortField as f, type PredictMarket as g, type ListMarketTradesParams as h, type PredictTrade as i, type PriceHistoryRange as j, type PriceHistoryResponse as k, type ListCandlesticksParams as l, type PositionsResponse as m, type ListOrdersParams as n, type PredictOrder as o, type ListOrdersMultiParams as p, type PredictOrdersResponse as q, type CancelOrderResult as r, type MatchGroupPage as s, type MatchGroup as t, type MatchMarketParams as u, type MatchMarketPage as v, type ListTradesParams as w, type ListTradesMultiParams as x, type DFlowQuoteResponse as y, type DFlowSubmitResponse as z };
@@ -497,6 +497,15 @@ interface PolymarketDepositAddresses {
497
497
  btc: string;
498
498
  tvm?: string;
499
499
  }
500
+ /** Request body for `POST /api/v1/withdraw/polymarket/prepare`. */
501
+ interface PolymarketWithdrawPrepareRequest {
502
+ safe_address: string;
503
+ to: string;
504
+ }
505
+ /** Response from `POST /api/v1/withdraw/polymarket/prepare`. */
506
+ interface PolymarketWithdrawPrepareResponse {
507
+ deposit_address: string;
508
+ }
500
509
  /** Request body for `POST /api/v1/withdraw/polymarket/execute`. */
501
510
  interface PolymarketWithdrawRequest {
502
511
  wallet_address: string;
@@ -961,6 +970,12 @@ declare class PredictClient {
961
970
  * Maps to `GET /api/v1/deposit/polymarket/addresses?safe_address=...`.
962
971
  */
963
972
  getPolymarketDepositAddresses(safeAddress: string): Promise<PolymarketDepositAddresses>;
973
+ /**
974
+ * Prepare a Polymarket withdrawal by obtaining a Bridge deposit address.
975
+ *
976
+ * Maps to `POST /api/v1/withdraw/polymarket/prepare`.
977
+ */
978
+ preparePolymarketWithdraw(body: PolymarketWithdrawPrepareRequest): Promise<PolymarketWithdrawPrepareResponse>;
964
979
  /**
965
980
  * Execute a gasless USDC.e withdrawal from a Polymarket Safe wallet via Relayer.
966
981
  *
@@ -1540,4 +1555,4 @@ interface ClobOrderPayload {
1540
1555
  */
1541
1556
  declare function buildClobPayload(signedOrder: SignedOrder, owner: string): ClobOrderPayload;
1542
1557
 
1543
- export { type CreateOrderInput as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type DFlowQuoteRequest as D, type EventStats as E, type DFlowSubmitRequest as F, type DFlowKYCStatus as G, type PolymarketSetupStatus as H, type WithdrawBuildRequest as I, type WithdrawSubmitResponse as J, type WithdrawSubmitRequest as K, type ListEventsParams as L, type MatchesParams as M, type WithdrawStatusResponse as N, type Orderbook as O, PredictClient as P, type PolymarketDepositAddresses as Q, type PolymarketWithdrawResponse as R, type SimilarEventsParams as S, type PolymarketWithdrawRequest as T, type TickSizeResponse as U, type WsConnectionStatus as V, type WithdrawBuildResponse as W, type WsDataMessage as X, type WsPriceEvent as Y, type WsOrderbookEvent as Z, type WsTradeEvent as _, PredictWsClient as a, type HttpMethod as a$, createPredictClient as a0, createPredictWsClient as a1, type PredictWsClientConfig as a2, type ProviderMeta as a3, type PredictTag as a4, type SettlementSource as a5, type MarketStatus as a6, type MarketResult as a7, type MarketOutcome as a8, type OrderbookLevel as a9, type WsPingMessage as aA, type WsServerMessage as aB, type WsPongMessage as aC, type WsSubscribedMessage as aD, type WsErrorCode as aE, type WsErrorMessage as aF, eventQueryKey as aG, fetchEvent as aH, resolveTagSlug as aI, resolveEventsParams as aJ, infiniteEventsQueryKey as aK, fetchEventsPage as aL, type ResolveEventsParamsInput as aM, type TagSlugSelection as aN, marketQueryKey as aO, fetchMarket as aP, matchesQueryKey as aQ, matchQueryKey as aR, fetchMatchesPage as aS, matchMarketsQueryKey as aT, fetchMatchMarketsPage as aU, CLOB_AUTH_DOMAIN as aV, CLOB_AUTH_TYPES as aW, buildClobAuthMessage as aX, hmacSha256Base64 as aY, buildPolymarketL2Headers as aZ, derivePolymarketApiKey as a_, type TradeType as aa, type EventSummary as ab, type MarketSummary as ac, type PricePoint as ad, type PredictPosition as ae, type OrderStatus as af, type OrderSide as ag, type DFlowOrderContext as ah, type PolymarketOrderType as ai, type DepositBuildRequest as aj, type DepositBuildResponse as ak, type DepositSubmitRequest as al, type DepositSubmitResponse as am, type DepositStatusResponse as an, type UnsignedTx as ao, type MatchStatus as ap, type MatchGroupEntry as aq, type MatchGroupMarket as ar, type MatchSortField as as, type MatchesStats as at, type MatchConfidenceTier as au, type MatchMarketFlat as av, type WsChannel as aw, type WsChannelEvent as ax, type WsClientMessage as ay, type WsSubscribeMessage as az, type PredictPage as b, type PolymarketL2HeadersInput as b0, type PolymarketL2Headers as b1, type BuildClobAuthMessageInput as b2, CTF_EXCHANGE_ADDRESS as b3, NEG_RISK_CTF_EXCHANGE_ADDRESS as b4, USDC_ADDRESS as b5, POLYGON_CHAIN_ID as b6, buildCtfExchangeDomain as b7, CTF_ORDER_TYPES as b8, ORDER_TYPE as b9, SIDE as ba, buildOrderMessage as bb, buildSignedOrder as bc, buildClobPayload as bd, type ClobOrderPayload as be, type BuildOrderMessageInput as bf, type OrderMessage as bg, type SignedOrder as bh, DEFAULT_PAGE_SIZE as bi, type PredictEvent as c, type ProviderSource as d, type EventStatus as e, type EventSortField as f, type PredictMarket as g, type ListMarketTradesParams as h, type PredictTrade as i, type PriceHistoryRange as j, type PriceHistoryResponse as k, type ListCandlesticksParams as l, type PositionsResponse as m, type ListOrdersParams as n, type PredictOrder as o, type ListOrdersMultiParams as p, type PredictOrdersResponse as q, type CancelOrderResult as r, type MatchGroupPage as s, type MatchGroup as t, type MatchMarketParams as u, type MatchMarketPage as v, type ListTradesParams as w, type ListTradesMultiParams as x, type DFlowQuoteResponse as y, type DFlowSubmitResponse as z };
1558
+ export { type CreateOrderInput as $, type AvailableSharesResponse as A, type BalanceResponse as B, type Candlestick as C, type DFlowQuoteRequest as D, type EventStats as E, type DFlowSubmitRequest as F, type DFlowKYCStatus as G, type PolymarketSetupStatus as H, type WithdrawBuildRequest as I, type WithdrawSubmitResponse as J, type WithdrawSubmitRequest as K, type ListEventsParams as L, type MatchesParams as M, type WithdrawStatusResponse as N, type Orderbook as O, PredictClient as P, type PolymarketDepositAddresses as Q, type PolymarketWithdrawResponse as R, type SimilarEventsParams as S, type PolymarketWithdrawRequest as T, type TickSizeResponse as U, type WsConnectionStatus as V, type WithdrawBuildResponse as W, type WsDataMessage as X, type WsPriceEvent as Y, type WsOrderbookEvent as Z, type WsTradeEvent as _, PredictWsClient as a, buildPolymarketL2Headers as a$, createPredictClient as a0, createPredictWsClient as a1, type PredictWsClientConfig as a2, type ProviderMeta as a3, type PredictTag as a4, type SettlementSource as a5, type MarketStatus as a6, type MarketResult as a7, type MarketOutcome as a8, type OrderbookLevel as a9, type WsClientMessage as aA, type WsSubscribeMessage as aB, type WsPingMessage as aC, type WsServerMessage as aD, type WsPongMessage as aE, type WsSubscribedMessage as aF, type WsErrorCode as aG, type WsErrorMessage as aH, eventQueryKey as aI, fetchEvent as aJ, resolveTagSlug as aK, resolveEventsParams as aL, infiniteEventsQueryKey as aM, fetchEventsPage as aN, type ResolveEventsParamsInput as aO, type TagSlugSelection as aP, marketQueryKey as aQ, fetchMarket as aR, matchesQueryKey as aS, matchQueryKey as aT, fetchMatchesPage as aU, matchMarketsQueryKey as aV, fetchMatchMarketsPage as aW, CLOB_AUTH_DOMAIN as aX, CLOB_AUTH_TYPES as aY, buildClobAuthMessage as aZ, hmacSha256Base64 as a_, type TradeType as aa, type EventSummary as ab, type MarketSummary as ac, type PricePoint as ad, type PredictPosition as ae, type OrderStatus as af, type OrderSide as ag, type DFlowOrderContext as ah, type PolymarketOrderType as ai, type DepositBuildRequest as aj, type DepositBuildResponse as ak, type DepositSubmitRequest as al, type DepositSubmitResponse as am, type DepositStatusResponse as an, type UnsignedTx as ao, type PolymarketWithdrawPrepareRequest as ap, type PolymarketWithdrawPrepareResponse as aq, type MatchStatus as ar, type MatchGroupEntry as as, type MatchGroupMarket as at, type MatchSortField as au, type MatchesStats as av, type MatchConfidenceTier as aw, type MatchMarketFlat as ax, type WsChannel as ay, type WsChannelEvent as az, type PredictPage as b, derivePolymarketApiKey as b0, type HttpMethod as b1, type PolymarketL2HeadersInput as b2, type PolymarketL2Headers as b3, type BuildClobAuthMessageInput as b4, CTF_EXCHANGE_ADDRESS as b5, NEG_RISK_CTF_EXCHANGE_ADDRESS as b6, USDC_ADDRESS as b7, POLYGON_CHAIN_ID as b8, buildCtfExchangeDomain as b9, CTF_ORDER_TYPES as ba, ORDER_TYPE as bb, SIDE as bc, buildOrderMessage as bd, buildSignedOrder as be, buildClobPayload as bf, type ClobOrderPayload as bg, type BuildOrderMessageInput as bh, type OrderMessage as bi, type SignedOrder as bj, DEFAULT_PAGE_SIZE as bk, type PredictEvent as c, type ProviderSource as d, type EventStatus as e, type EventSortField as f, type PredictMarket as g, type ListMarketTradesParams as h, type PredictTrade as i, type PriceHistoryRange as j, type PriceHistoryResponse as k, type ListCandlesticksParams as l, type PositionsResponse as m, type ListOrdersParams as n, type PredictOrder as o, type ListOrdersMultiParams as p, type PredictOrdersResponse as q, type CancelOrderResult as r, type MatchGroupPage as s, type MatchGroup as t, type MatchMarketParams as u, type MatchMarketPage as v, type ListTradesParams as w, type ListTradesMultiParams as x, type DFlowQuoteResponse as y, type DFlowSubmitResponse as z };
package/dist/server.d.mts CHANGED
@@ -1 +1 @@
1
- export { B as BalanceResponse, 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, r as CancelOrderResult, C as Candlestick, be as ClobOrderPayload, $ as CreateOrderInput, bi as DEFAULT_PAGE_SIZE, ah as DFlowOrderContext, D as DFlowQuoteRequest, y as DFlowQuoteResponse, F as DFlowSubmitRequest, z as DFlowSubmitResponse, aj as DepositBuildRequest, ak as DepositBuildResponse, an as DepositStatusResponse, al as DepositSubmitRequest, am as DepositSubmitResponse, f as EventSortField, e as EventStatus, ab as EventSummary, a$ as HttpMethod, l as ListCandlesticksParams, L as ListEventsParams, h as ListMarketTradesParams, n as ListOrdersParams, w as ListTradesParams, a8 as MarketOutcome, a7 as MarketResult, a6 as MarketStatus, ac as MarketSummary, au as MatchConfidenceTier, t as MatchGroup, aq as MatchGroupEntry, ar as MatchGroupMarket, s as MatchGroupPage, av as MatchMarketFlat, v as MatchMarketPage, u as MatchMarketParams, as as MatchSortField, ap as MatchStatus, M as MatchesParams, at as MatchesStats, b4 as NEG_RISK_CTF_EXCHANGE_ADDRESS, b9 as ORDER_TYPE, bg as OrderMessage, ag as OrderSide, af as OrderStatus, O as Orderbook, a9 as OrderbookLevel, b6 as POLYGON_CHAIN_ID, b1 as PolymarketL2Headers, b0 as PolymarketL2HeadersInput, ai as PolymarketOrderType, m as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, o as PredictOrder, b as PredictPage, ae as PredictPosition, a4 as PredictTag, i as PredictTrade, a as PredictWsClient, a2 as PredictWsClientConfig, j as PriceHistoryRange, k as PriceHistoryResponse, ad as PricePoint, a3 as ProviderMeta, d as ProviderSource, aM as ResolveEventsParamsInput, ba as SIDE, a5 as SettlementSource, bh as SignedOrder, S as SimilarEventsParams, aN as TagSlugSelection, aa as TradeType, b5 as USDC_ADDRESS, ao as UnsignedTx, aw as WsChannel, ax as WsChannelEvent, ay as WsClientMessage, V as WsConnectionStatus, X as WsDataMessage, aE as WsErrorCode, aF as WsErrorMessage, Z as WsOrderbookEvent, aA as WsPingMessage, aC as WsPongMessage, Y as WsPriceEvent, aB as WsServerMessage, az as WsSubscribeMessage, aD as WsSubscribedMessage, _ as WsTradeEvent, 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
+ export { B as BalanceResponse, 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, r as CancelOrderResult, C as Candlestick, bg as ClobOrderPayload, $ as CreateOrderInput, bk as DEFAULT_PAGE_SIZE, ah as DFlowOrderContext, D as DFlowQuoteRequest, y as DFlowQuoteResponse, F as DFlowSubmitRequest, z as DFlowSubmitResponse, aj as DepositBuildRequest, ak as DepositBuildResponse, an as DepositStatusResponse, al as DepositSubmitRequest, am as DepositSubmitResponse, f as EventSortField, e as EventStatus, ab as EventSummary, b1 as HttpMethod, l as ListCandlesticksParams, L as ListEventsParams, h as ListMarketTradesParams, n as ListOrdersParams, w as ListTradesParams, a8 as MarketOutcome, a7 as MarketResult, a6 as MarketStatus, ac as MarketSummary, aw as MatchConfidenceTier, t as MatchGroup, as as MatchGroupEntry, at as MatchGroupMarket, s as MatchGroupPage, ax as MatchMarketFlat, v as MatchMarketPage, u as MatchMarketParams, au as MatchSortField, ar as MatchStatus, M as MatchesParams, av as MatchesStats, b6 as NEG_RISK_CTF_EXCHANGE_ADDRESS, bb as ORDER_TYPE, bi as OrderMessage, ag as OrderSide, af as OrderStatus, O as Orderbook, a9 as OrderbookLevel, b8 as POLYGON_CHAIN_ID, b3 as PolymarketL2Headers, b2 as PolymarketL2HeadersInput, ai as PolymarketOrderType, m as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, o as PredictOrder, b as PredictPage, ae as PredictPosition, a4 as PredictTag, i as PredictTrade, a as PredictWsClient, a2 as PredictWsClientConfig, j as PriceHistoryRange, k as PriceHistoryResponse, ad as PricePoint, a3 as ProviderMeta, d as ProviderSource, aO as ResolveEventsParamsInput, bc as SIDE, a5 as SettlementSource, bj as SignedOrder, S as SimilarEventsParams, aP as TagSlugSelection, aa as TradeType, b7 as USDC_ADDRESS, ao as UnsignedTx, ay as WsChannel, az as WsChannelEvent, aA as WsClientMessage, V as WsConnectionStatus, X as WsDataMessage, aG as WsErrorCode, aH as WsErrorMessage, Z as WsOrderbookEvent, aC as WsPingMessage, aE as WsPongMessage, Y as WsPriceEvent, aD as WsServerMessage, aB as WsSubscribeMessage, aF as WsSubscribedMessage, _ as WsTradeEvent, 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';
package/dist/server.d.ts CHANGED
@@ -1 +1 @@
1
- export { B as BalanceResponse, 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, r as CancelOrderResult, C as Candlestick, be as ClobOrderPayload, $ as CreateOrderInput, bi as DEFAULT_PAGE_SIZE, ah as DFlowOrderContext, D as DFlowQuoteRequest, y as DFlowQuoteResponse, F as DFlowSubmitRequest, z as DFlowSubmitResponse, aj as DepositBuildRequest, ak as DepositBuildResponse, an as DepositStatusResponse, al as DepositSubmitRequest, am as DepositSubmitResponse, f as EventSortField, e as EventStatus, ab as EventSummary, a$ as HttpMethod, l as ListCandlesticksParams, L as ListEventsParams, h as ListMarketTradesParams, n as ListOrdersParams, w as ListTradesParams, a8 as MarketOutcome, a7 as MarketResult, a6 as MarketStatus, ac as MarketSummary, au as MatchConfidenceTier, t as MatchGroup, aq as MatchGroupEntry, ar as MatchGroupMarket, s as MatchGroupPage, av as MatchMarketFlat, v as MatchMarketPage, u as MatchMarketParams, as as MatchSortField, ap as MatchStatus, M as MatchesParams, at as MatchesStats, b4 as NEG_RISK_CTF_EXCHANGE_ADDRESS, b9 as ORDER_TYPE, bg as OrderMessage, ag as OrderSide, af as OrderStatus, O as Orderbook, a9 as OrderbookLevel, b6 as POLYGON_CHAIN_ID, b1 as PolymarketL2Headers, b0 as PolymarketL2HeadersInput, ai as PolymarketOrderType, m as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, o as PredictOrder, b as PredictPage, ae as PredictPosition, a4 as PredictTag, i as PredictTrade, a as PredictWsClient, a2 as PredictWsClientConfig, j as PriceHistoryRange, k as PriceHistoryResponse, ad as PricePoint, a3 as ProviderMeta, d as ProviderSource, aM as ResolveEventsParamsInput, ba as SIDE, a5 as SettlementSource, bh as SignedOrder, S as SimilarEventsParams, aN as TagSlugSelection, aa as TradeType, b5 as USDC_ADDRESS, ao as UnsignedTx, aw as WsChannel, ax as WsChannelEvent, ay as WsClientMessage, V as WsConnectionStatus, X as WsDataMessage, aE as WsErrorCode, aF as WsErrorMessage, Z as WsOrderbookEvent, aA as WsPingMessage, aC as WsPongMessage, Y as WsPriceEvent, aB as WsServerMessage, az as WsSubscribeMessage, aD as WsSubscribedMessage, _ as WsTradeEvent, 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
+ export { B as BalanceResponse, 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, r as CancelOrderResult, C as Candlestick, bg as ClobOrderPayload, $ as CreateOrderInput, bk as DEFAULT_PAGE_SIZE, ah as DFlowOrderContext, D as DFlowQuoteRequest, y as DFlowQuoteResponse, F as DFlowSubmitRequest, z as DFlowSubmitResponse, aj as DepositBuildRequest, ak as DepositBuildResponse, an as DepositStatusResponse, al as DepositSubmitRequest, am as DepositSubmitResponse, f as EventSortField, e as EventStatus, ab as EventSummary, b1 as HttpMethod, l as ListCandlesticksParams, L as ListEventsParams, h as ListMarketTradesParams, n as ListOrdersParams, w as ListTradesParams, a8 as MarketOutcome, a7 as MarketResult, a6 as MarketStatus, ac as MarketSummary, aw as MatchConfidenceTier, t as MatchGroup, as as MatchGroupEntry, at as MatchGroupMarket, s as MatchGroupPage, ax as MatchMarketFlat, v as MatchMarketPage, u as MatchMarketParams, au as MatchSortField, ar as MatchStatus, M as MatchesParams, av as MatchesStats, b6 as NEG_RISK_CTF_EXCHANGE_ADDRESS, bb as ORDER_TYPE, bi as OrderMessage, ag as OrderSide, af as OrderStatus, O as Orderbook, a9 as OrderbookLevel, b8 as POLYGON_CHAIN_ID, b3 as PolymarketL2Headers, b2 as PolymarketL2HeadersInput, ai as PolymarketOrderType, m as PositionsResponse, P as PredictClient, c as PredictEvent, g as PredictMarket, o as PredictOrder, b as PredictPage, ae as PredictPosition, a4 as PredictTag, i as PredictTrade, a as PredictWsClient, a2 as PredictWsClientConfig, j as PriceHistoryRange, k as PriceHistoryResponse, ad as PricePoint, a3 as ProviderMeta, d as ProviderSource, aO as ResolveEventsParamsInput, bc as SIDE, a5 as SettlementSource, bj as SignedOrder, S as SimilarEventsParams, aP as TagSlugSelection, aa as TradeType, b7 as USDC_ADDRESS, ao as UnsignedTx, ay as WsChannel, az as WsChannelEvent, aA as WsClientMessage, V as WsConnectionStatus, X as WsDataMessage, aG as WsErrorCode, aH as WsErrorMessage, Z as WsOrderbookEvent, aC as WsPingMessage, aE as WsPongMessage, Y as WsPriceEvent, aD as WsServerMessage, aB as WsSubscribeMessage, aF as WsSubscribedMessage, _ as WsTradeEvent, 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';
package/dist/server.js CHANGED
@@ -490,6 +490,15 @@ var PredictClient = class {
490
490
  // -------------------------------------------------------------------------
491
491
  // Polymarket Relayer Withdraw
492
492
  // -------------------------------------------------------------------------
493
+ /**
494
+ * Prepare a Polymarket withdrawal by obtaining a Bridge deposit address.
495
+ *
496
+ * Maps to `POST /api/v1/withdraw/polymarket/prepare`.
497
+ */
498
+ async preparePolymarketWithdraw(body) {
499
+ const url = `${this.endpoint}/api/v1/withdraw/polymarket/prepare`;
500
+ return await utils.httpPost(url, body);
501
+ }
493
502
  /**
494
503
  * Execute a gasless USDC.e withdrawal from a Polymarket Safe wallet via Relayer.
495
504
  *