@polymarket/client 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,11 @@
1
- import { bT as RateLimitError, bW as RequestRejectedError, cN as TransportError, cQ as UnexpectedResponseError, cF as SigningError, B as BaseClient, k as BaseSecureClient } from '../types-BBaRrND2.js';
2
- export { e as ApproveErc1155ForAllError, f as ApproveErc20Error, g as ArmPerpsAutoCancelError, h as ArmPerpsAutoCancelRequest, C as CancelAllError, m as CancelAllPerpsOrdersRequest, n as CancelMarketOrdersError, dh as CancelMarketOrdersRequest, o as CancelOrderError, di as CancelOrderRequest, p as CancelOrdersError, dj as CancelOrdersRequest, q as CancelPerpsOrderRequest, r as CancelPerpsOrdersRequest, dk as CollateralReturnExecutionWorkflow, x as ComboPositionSort, dl as CommentsEventType, dm as CommentsSubscription, E as CreatePerpsSessionRequest, G as CryptoPricesChainlinkTwapSubscription, dn as CryptoPricesEventType, dp as CryptoPricesSubscription, dq as DeployDepositWalletError, I as DepositToPerpsError, J as DepositToPerpsRequest, K as DisarmPerpsAutoCancelRequest, M as DownloadAccountingSnapshotError, dr as DownloadAccountingSnapshotRequest, N as DropNotificationsError, ds as DropNotificationsRequest, dt as EquityPricesEventType, du as EquityPricesSubscription, dv as Erc1155ApprovalForAllWorkflow, dw as Erc1155ApprovalForAllWorkflowRequest, dx as Erc20ApprovalWorkflow, dy as Erc20ApprovalWorkflowRequest, dz as Erc20TransferWorkflow, dA as Erc20TransferWorkflowRequest, dB as EstimateMarketBuyPriceRequest, R as EstimateMarketPriceError, dC as EstimateMarketPriceRequest, dD as EstimateMarketSellPriceRequest, dE as EventForSubscriptionSpec, dF as EventForSubscriptionSpecs, V as ExecuteCollateralReturnPlanError, W as ExecuteCollateralReturnPlanRequest, dG as FetchBalanceAllowanceError, dH as FetchBalanceAllowanceRequest, dI as FetchBuilderFeeRatesError, dJ as FetchBuilderFeeRatesRequest, X as FetchClosedOnlyModeError, Y as FetchCommentsByIdError, dK as FetchCommentsByIdRequest, Z as FetchEventError, _ as FetchEventLiveVolumeError, dL as FetchEventLiveVolumeRequest, dM as FetchEventRequest, $ as FetchEventTagsError, dN as FetchEventTagsRequest, dO as FetchExecuteParamsError, dP as FetchExecuteParamsRequest, dQ as FetchGaslessTransactionRequest, a0 as FetchLastTradePriceError, dR as FetchLastTradePriceRequest, a1 as FetchLastTradePricesError, dS as FetchLastTradePricesRequest, a2 as FetchMarketError, dT as FetchMarketInfoError, dU as FetchMarketInfoRequest, dV as FetchMarketRequest, a3 as FetchMarketTagsError, dW as FetchMarketTagsRequest, a4 as FetchMidpointError, dX as FetchMidpointRequest, a5 as FetchMidpointsError, dY as FetchMidpointsRequest, dZ as FetchNegRiskError, d_ as FetchNegRiskRequest, a6 as FetchNotificationsError, a7 as FetchOrderBookError, d$ as FetchOrderBookRequest, a8 as FetchOrderBooksError, e0 as FetchOrderBooksRequest, a9 as FetchOrderError, e1 as FetchOrderRequest, aa as FetchOrderScoringError, e2 as FetchOrderScoringRequest, ab as FetchOrdersScoringError, e3 as FetchOrdersScoringRequest, ac as FetchPerpsAccountConfigRequest, ad as FetchPerpsBookError, ae as FetchPerpsBookRequest, af as FetchPerpsFeesError, ag as FetchPerpsInstrumentsError, ah as FetchPerpsInstrumentsRequest, ai as FetchPerpsOpenOrdersRequest, aj as FetchPerpsOrdersRequest, ak as FetchPerpsTickerError, al as FetchPerpsTickerRequest, am as FetchPerpsTickersError, an as FetchPerpsTickersRequest, ao as FetchPortfolioValueError, e4 as FetchPortfolioValueRequest, ap as FetchPriceError, aq as FetchPriceHistoryError, e5 as FetchPriceHistoryRequest, e6 as FetchPriceRequest, ar as FetchPricesError, e7 as FetchPricesRequest, as as FetchPublicProfileError, e8 as FetchPublicProfileRequest, at as FetchRelatedTagResourcesError, e9 as FetchRelatedTagResourcesRequest, au as FetchRelatedTagsError, ea as FetchRelatedTagsRequest, av as FetchRewardPercentagesError, aw as FetchSeriesError, eb as FetchSeriesRequest, ax as FetchSpreadError, ec as FetchSpreadRequest, ay as FetchSpreadsError, ed as FetchSpreadsRequest, az as FetchTagError, ee as FetchTagRequest, ef as FetchTickSizeError, eg as FetchTickSizeRequest, aA as FetchTotalEarningsForUserForDayError, eh as FetchTotalEarningsForUserForDayRequest, aB as FetchTradedMarketCountError, ei as FetchTradedMarketCountRequest, ej as GaslessTransactionMetadataSchema, ek as GaslessWorkflow, el as GaslessWorkflowRequest, em as IsWalletDeployedError, en as IsWalletDeployedRequest, aD as ListAccountTradesError, eo as ListAccountTradesRequest, aE as ListActivityError, ep as ListActivityRequest, aF as ListBuilderLeaderboardError, eq as ListBuilderLeaderboardRequest, aG as ListBuilderTradesError, er as ListBuilderTradesRequest, aH as ListBuilderVolumeError, es as ListBuilderVolumeRequest, aI as ListClosedPositionsError, et as ListClosedPositionsRequest, aJ as ListComboActivityError, eu as ListComboActivityRequest, aK as ListComboMarketsError, ev as ListComboMarketsRequest, aL as ListComboPositionsError, ew as ListComboPositionsRequest, aM as ListCommentsByUserAddressError, ex as ListCommentsByUserAddressRequest, aN as ListCommentsError, ey as ListCommentsRequest, aO as ListCurrentRewardsError, ez as ListCurrentRewardsRequest, aP as ListEventsError, eA as ListEventsRequest, eB as ListMarketClarificationsError, eC as ListMarketClarificationsRequest, aQ as ListMarketHoldersError, eD as ListMarketHoldersRequest, aR as ListMarketPositionsError, eE as ListMarketPositionsRequest, aS as ListMarketRewardsError, eF as ListMarketRewardsRequest, aT as ListMarketsError, eG as ListMarketsRequest, aU as ListOpenInterestError, eH as ListOpenInterestRequest, aV as ListOpenOrdersError, eI as ListOpenOrdersRequest, aW as ListPerpsCandlesError, aX as ListPerpsCandlesRequest, aY as ListPerpsDepositsRequest, aZ as ListPerpsEquityHistoryRequest, a_ as ListPerpsFillsRequest, a$ as ListPerpsFundingHistoryError, b0 as ListPerpsFundingHistoryRequest, b1 as ListPerpsFundingPaymentsRequest, b2 as ListPerpsNotificationsRequest, b3 as ListPerpsPnlHistoryRequest, b4 as ListPerpsTradesError, b5 as ListPerpsTradesRequest, b6 as ListPerpsWithdrawalsRequest, b7 as ListPositionsError, eJ as ListPositionsRequest, b8 as ListSeriesError, eK as ListSeriesRequest, b9 as ListTagsError, eL as ListTagsRequest, ba as ListTeamsError, eM as ListTeamsRequest, bb as ListTraderLeaderboardError, eN as ListTraderLeaderboardRequest, bc as ListTradesError, eO as ListTradesRequest, bd as ListUserEarningsAndMarketsConfigError, eP as ListUserEarningsAndMarketsConfigRequest, be as ListUserEarningsForDayError, eQ as ListUserEarningsForDayRequest, bf as MarkPerpsNotificationsReadRequest, eR as MarketEventType, eS as MarketSubscription, eT as MergeComboPositionError, eU as MergeMarketPositionError, bg as MergePositionsError, eV as MergePositionsWorkflow, eW as MergePositionsWorkflowRequest, bh as OpenPerpsSessionError, bi as OpenPerpsSessionRequest, bj as OpenRfqSessionError, eX as OrderDraft, eY as OrderPostingWorkflow, eZ as OrderWorkflow, e_ as OrderWorkflowRequest, e$ as PerpsBboSubscription, bo as PerpsBookDepth, f0 as PerpsBookSubscription, f1 as PerpsCandlesSubscription, f2 as PerpsDepositWorkflow, f3 as PerpsDepositWorkflowRequest, f4 as PerpsMarketDataEventType, f5 as PerpsMarketDataSubscription, bq as PerpsOrderRequest, br as PerpsPlaceFokOrderRequest, bs as PerpsPlaceGtcOrderRequest, bt as PerpsPlaceIocOrderRequest, bu as PerpsPlacedTpSlOrder, bv as PerpsPlacedTpSlOrders, bw as PerpsPositionTpSlTrigger, bx as PerpsSession, by as PerpsSessionAccountError, bz as PerpsSessionLifecycleError, bA as PerpsSessionTradingError, f6 as PerpsStatisticsSubscription, f7 as PerpsStreamingCandleInterval, f8 as PerpsTickersSubscription, bB as PerpsTpSlTrigger, f9 as PerpsTradesSubscription, bC as PlacePerpsOrderRequest, bD as PlacePerpsOrderResult, bE as PlacePerpsOrderWithTpSlRequest, bF as PlacePerpsOrderWithTpSlResult, bG as PlacePerpsPositionTpSlRequest, bH as PlacePerpsPositionTpSlResult, bI as PlanCollateralReturnError, bJ as PostOrderError, bK as PostOrdersError, fa as PostOrdersRequest, bL as PostPerpsOrdersRequest, fb as PrepareCollateralReturnExecutionError, fc as PrepareErc1155ApprovalForAllError, fd as PrepareErc1155ApprovalForAllRequest, fe as PrepareErc20ApprovalError, ff as PrepareErc20ApprovalRequest, fg as PrepareErc20TransferError, fh as PrepareErc20TransferRequest, fi as PrepareGaslessTransactionError, fj as PrepareGaslessTransactionRequest, fk as PrepareLimitOrderRequest, fl as PrepareMarketBuyOrderRequest, fm as PrepareMarketOrderRequest, fn as PrepareMarketSellOrderRequest, fo as PrepareMergeComboPositionError, fp as PrepareMergeComboPositionRequest, fq as PrepareMergeMarketPositionError, fr as PrepareMergeMarketPositionRequest, fs as PrepareMergePositionsError, ft as PrepareMergePositionsRequest, fu as PreparePerpsDepositError, fv as PrepareRedeemComboPositionError, fw as PrepareRedeemComboPositionRequest, fx as PrepareRedeemMarketPositionsByConditionIdRequest, fy as PrepareRedeemMarketPositionsByMarketIdRequest, fz as PrepareRedeemMarketPositionsError, fA as PrepareRedeemMarketPositionsRequest, fB as PrepareRedeemPositionsError, fC as PrepareRedeemPositionsRequest, fD as PrepareSplitComboPositionError, fE as PrepareSplitComboPositionRequest, fF as PrepareSplitMarketPositionError, fG as PrepareSplitMarketPositionRequest, fH as PrepareSplitPositionError, fI as PrepareSplitPositionRequest, fJ as PrepareTradingApprovalsError, fK as PublicRealtimeEvent, fL as PublicRealtimeTopic, fM as PublicSubscriptionSpec, bV as RedeemPositionsError, fN as RedeemPositionsWorkflow, fO as RedeemPositionsWorkflowRequest, fP as ResolveConditionByTokenError, fQ as ResolveConditionByTokenRequest, bZ as ResumePerpsSessionRequest, b_ as RevokePerpsCredentialsError, b$ as RevokePerpsCredentialsRequest, c0 as RfqCancelQuoteAck, c1 as RfqCancelQuoteError, c2 as RfqCancelQuoteRejectedError, c3 as RfqCancelQuoteRejectedErrorOptions, c4 as RfqConfirmationAck, c5 as RfqConfirmationError, c6 as RfqConfirmationRejectedError, fR as RfqConfirmationRejectedErrorOptions, c7 as RfqConfirmationRequestEvent, c8 as RfqEvent, fS as RfqExecutionUpdateEvent, c9 as RfqQuoteError, ca as RfqQuoteReference, cb as RfqQuoteRejectedError, cc as RfqQuoteRejectedErrorOptions, cd as RfqQuoteRequestEvent, ce as RfqQuoteResponse, cf as RfqQuoteSource, cg as RfqSession, ch as RfqTradeEvent, ci as SearchError, fT as SearchRequest, fU as SearchResults, cj as SearchSort, fV as SecureRealtimeEvent, fW as SecureRealtimeTopic, fX as SecureSubscriptionSpec, cD as SetupTradingApprovalsError, fY as SignedOrder, fZ as SplitComboPositionError, f_ as SplitMarketPositionError, cG as SplitPositionError, f$ as SplitPositionWorkflow, g0 as SplitPositionWorkflowRequest, g1 as SportsEventType, g2 as SportsSubscription, cH as SubscribeError, g3 as SubscriptionHandle, g4 as TradingApprovalsWorkflow, g5 as TradingApprovalsWorkflowRequest, cM as TransferErc20Error, g6 as UpdateBalanceAllowanceError, g7 as UpdateBalanceAllowanceRequest, cR as UpdatePerpsLeverageError, cS as UpdatePerpsLeverageRequest, cT as UpdatePerpsMarginError, cU as UpdatePerpsMarginRequest, g8 as UserEventType, g9 as UserSubscription, ga as WaitForGaslessTransactionError, cV as WaitForOrderFillSettlementError, gb as WaitForOrderFillSettlementRequest, c$ as WithdrawFromPerpsError, d0 as WithdrawFromPerpsRequest, gc as approveErc1155ForAll, gd as approveErc20, ge as cancelAll, gf as cancelMarketOrders, gg as cancelOrder, gh as cancelOrders, gi as deployDepositWallet, gj as depositToPerps, gk as downloadAccountingSnapshot, gl as dropNotifications, gm as estimateMarketPrice, gn as executeCollateralReturnPlan, go as fetchBalanceAllowance, gp as fetchBuilderFeeRates, gq as fetchBuilderVolume, gr as fetchClosedOnlyMode, gs as fetchCommentsById, gt as fetchEvent, gu as fetchEventLiveVolume, gv as fetchEventTags, gw as fetchExecuteParams, gx as fetchLastTradePrice, gy as fetchLastTradePrices, gz as fetchMarket, gA as fetchMarketInfo, gB as fetchMarketTags, gC as fetchMidpoint, gD as fetchMidpoints, gE as fetchNegRisk, gF as fetchNotifications, gG as fetchOrder, gH as fetchOrderBook, gI as fetchOrderBooks, gJ as fetchOrderScoring, gK as fetchOrdersScoring, gL as fetchPerpsBook, gM as fetchPerpsFees, gN as fetchPerpsInstruments, gO as fetchPerpsTicker, gP as fetchPerpsTickers, gQ as fetchPortfolioValue, gR as fetchPrice, gS as fetchPriceHistory, gT as fetchPrices, gU as fetchPublicProfile, gV as fetchRelatedTagResources, gW as fetchRelatedTags, gX as fetchRewardPercentages, gY as fetchSeries, gZ as fetchSpread, g_ as fetchSpreads, g$ as fetchTag, h0 as fetchTickSize, h1 as fetchTotalEarningsForUserForDay, h2 as fetchTradedMarketCount, h3 as fetchTransaction, h4 as isWalletDeployed, h5 as listAccountTrades, h6 as listActivity, h7 as listBuilderLeaderboard, h8 as listBuilderTrades, h9 as listClosedPositions, ha as listComboActivity, hb as listComboMarkets, hc as listComboPositions, hd as listComments, he as listCommentsByUserAddress, hf as listCurrentRewards, hg as listEvents, hh as listMarketClarifications, hi as listMarketHolders, hj as listMarketPositions, hk as listMarketRewards, hl as listMarkets, hm as listOpenInterest, hn as listOpenOrders, ho as listPerpsCandles, hp as listPerpsFundingHistory, hq as listPerpsTrades, hr as listPositions, hs as listSeries, ht as listTags, hu as listTeams, hv as listTraderLeaderboard, hw as listTrades, hx as listUserEarningsAndMarketsConfig, hy as listUserEarningsForDay, hz as mergeComboPosition, hA as mergeMarketPosition, hB as mergePositions, hC as openPerpsSession, hD as openRfqSession, hE as planCollateralReturn, hF as postOrder, hG as postOrders, hH as prepareCollateralReturnExecution, hI as prepareErc1155ApprovalForAll, hJ as prepareErc20Approval, hK as prepareErc20Transfer, hL as prepareGaslessTransaction, hM as prepareMergeComboPosition, hN as prepareMergeMarketPosition, hO as prepareMergePositions, hP as preparePerpsDeposit, hQ as prepareRedeemComboPosition, hR as prepareRedeemMarketPositions, hS as prepareRedeemPositions, hT as prepareSplitComboPosition, hU as prepareSplitMarketPosition, hV as prepareSplitPosition, hW as prepareTradingApprovals, hX as redeemPositions, hY as resolveConditionByToken, hZ as revokePerpsCredentials, h_ as search, h$ as setupTradingApprovals, i0 as splitComboPosition, i1 as splitMarketPosition, i2 as splitPosition, i3 as subscribe, i4 as transferErc20, i5 as updateBalanceAllowance, i6 as waitForOrderFillSettlement, i7 as withdrawFromPerps } from '../types-BBaRrND2.js';
1
+ import { c5 as RateLimitError, cd as RequestRejectedError, df as TransportError, di as UnexpectedResponseError, d6 as SigningError, B as BaseClient, q as BaseSecureClient } from '../types-C4sR5GA8.js';
2
+ export { c as AcceptComboQuoteError, d as AcceptComboQuoteParams, e as AcceptComboQuoteResult, h as ApproveErc1155ForAllError, i as ApproveErc20Error, j as ArmPerpsAutoCancelError, k as ArmPerpsAutoCancelRequest, l as AuthorizeSessionKeyError, m as AuthorizeSessionKeyRequest, n as AuthorizeSessionKeyResult, C as CancelAllError, s as CancelAllPerpsOrdersRequest, t as CancelMarketOrdersError, dQ as CancelMarketOrdersRequest, u as CancelOrderError, dR as CancelOrderRequest, v as CancelOrdersError, dS as CancelOrdersRequest, w as CancelPerpsOrderRequest, x as CancelPerpsOrdersRequest, dT as CollateralReturnExecutionWorkflow, G as ComboPositionSort, H as ComboPositionStatusFilter, I as ComboQuote, dU as CommentsEventType, dV as CommentsSubscription, M as CreatePerpsSessionRequest, O as CryptoPricesChainlinkTwapSubscription, dW as CryptoPricesEventType, dX as CryptoPricesSubscription, dY as DeployDepositWalletError, Q as DepositToPerpsError, R as DepositToPerpsRequest, V as DisarmPerpsAutoCancelRequest, X as DownloadAccountingSnapshotError, dZ as DownloadAccountingSnapshotRequest, Y as DropNotificationsError, d_ as DropNotificationsRequest, d$ as EquityPricesEventType, e0 as EquityPricesSubscription, e1 as Erc1155ApprovalForAllWorkflow, e2 as Erc1155ApprovalForAllWorkflowRequest, e3 as Erc20ApprovalWorkflow, e4 as Erc20ApprovalWorkflowRequest, e5 as Erc20TransferWorkflow, e6 as Erc20TransferWorkflowRequest, e7 as EstimateMarketBuyPriceRequest, a0 as EstimateMarketPriceError, e8 as EstimateMarketPriceRequest, e9 as EstimateMarketSellPriceRequest, ea as EventForSubscriptionSpec, eb as EventForSubscriptionSpecs, a1 as ExecuteCollateralReturnPlanError, a2 as ExecuteCollateralReturnPlanRequest, ec as FetchBalanceAllowanceError, ed as FetchBalanceAllowanceRequest, ee as FetchBuilderFeeRatesError, ef as FetchBuilderFeeRatesRequest, a3 as FetchClosedOnlyModeError, a4 as FetchCommentsByIdError, eg as FetchCommentsByIdRequest, a5 as FetchEventError, a6 as FetchEventLiveVolumeError, eh as FetchEventLiveVolumeRequest, ei as FetchEventRequest, a7 as FetchEventTagsError, ej as FetchEventTagsRequest, ek as FetchExecuteParamsError, el as FetchExecuteParamsRequest, em as FetchGaslessTransactionRequest, a8 as FetchLastTradePriceError, en as FetchLastTradePriceRequest, a9 as FetchLastTradePricesError, eo as FetchLastTradePricesRequest, aa as FetchMarketError, ep as FetchMarketInfoError, eq as FetchMarketInfoRequest, er as FetchMarketRequest, ab as FetchMarketTagsError, es as FetchMarketTagsRequest, ac as FetchMidpointError, et as FetchMidpointRequest, ad as FetchMidpointsError, eu as FetchMidpointsRequest, ev as FetchNegRiskError, ew as FetchNegRiskRequest, ae as FetchNotificationsError, af as FetchOrderBookError, ex as FetchOrderBookRequest, ag as FetchOrderBooksError, ey as FetchOrderBooksRequest, ah as FetchOrderError, ez as FetchOrderRequest, ai as FetchOrderScoringError, eA as FetchOrderScoringRequest, aj as FetchOrdersScoringError, eB as FetchOrdersScoringRequest, ak as FetchPerpsAccountConfigRequest, al as FetchPerpsBookError, am as FetchPerpsBookRequest, an as FetchPerpsFeesError, ao as FetchPerpsInstrumentsError, ap as FetchPerpsInstrumentsRequest, aq as FetchPerpsOpenOrdersRequest, ar as FetchPerpsOrdersRequest, as as FetchPerpsTickerError, at as FetchPerpsTickerRequest, au as FetchPerpsTickersError, av as FetchPerpsTickersRequest, aw as FetchPortfolioValueError, eC as FetchPortfolioValueRequest, ax as FetchPriceError, ay as FetchPriceHistoryError, eD as FetchPriceHistoryRequest, eE as FetchPriceRequest, az as FetchPricesError, eF as FetchPricesRequest, aA as FetchPublicProfileError, eG as FetchPublicProfileRequest, aB as FetchRelatedTagResourcesError, eH as FetchRelatedTagResourcesRequest, aC as FetchRelatedTagsError, eI as FetchRelatedTagsRequest, aD as FetchRewardPercentagesError, aE as FetchRfqStatusError, aF as FetchRfqStatusParams, aG as FetchSeriesError, eJ as FetchSeriesRequest, aH as FetchSessionKeysError, aI as FetchSpreadError, eK as FetchSpreadRequest, aJ as FetchSpreadsError, eL as FetchSpreadsRequest, aK as FetchTagError, eM as FetchTagRequest, eN as FetchTickSizeError, eO as FetchTickSizeRequest, aL as FetchTotalEarningsForUserForDayError, eP as FetchTotalEarningsForUserForDayRequest, aM as FetchTradedMarketCountError, eQ as FetchTradedMarketCountRequest, eR as GaslessTransactionMetadataSchema, eS as GaslessWorkflow, eT as GaslessWorkflowRequest, eU as IsWalletDeployedError, eV as IsWalletDeployedRequest, aO as ListAccountTradesError, eW as ListAccountTradesRequest, aP as ListActivityError, eX as ListActivityRequest, aQ as ListBuilderLeaderboardError, eY as ListBuilderLeaderboardRequest, aR as ListBuilderTradesError, eZ as ListBuilderTradesRequest, aS as ListBuilderVolumeError, e_ as ListBuilderVolumeRequest, aT as ListClosedPositionsError, e$ as ListClosedPositionsRequest, aU as ListComboActivityError, f0 as ListComboActivityRequest, aV as ListComboMarketsError, f1 as ListComboMarketsRequest, aW as ListComboPositionsError, f2 as ListComboPositionsRequest, aX as ListCommentsByUserAddressError, f3 as ListCommentsByUserAddressRequest, aY as ListCommentsError, f4 as ListCommentsRequest, aZ as ListCurrentRewardsError, f5 as ListCurrentRewardsRequest, a_ as ListEventsError, f6 as ListEventsRequest, f7 as ListMarketClarificationsError, f8 as ListMarketClarificationsRequest, a$ as ListMarketHoldersError, f9 as ListMarketHoldersRequest, b0 as ListMarketPositionsError, fa as ListMarketPositionsRequest, b1 as ListMarketRewardsError, fb as ListMarketRewardsRequest, b2 as ListMarketsError, fc as ListMarketsRequest, b3 as ListOpenInterestError, fd as ListOpenInterestRequest, b4 as ListOpenOrdersError, fe as ListOpenOrdersRequest, b5 as ListPerpsCandlesError, b6 as ListPerpsCandlesRequest, b7 as ListPerpsDepositsRequest, b8 as ListPerpsEquityHistoryRequest, b9 as ListPerpsFillsRequest, ba as ListPerpsFundingHistoryError, bb as ListPerpsFundingHistoryRequest, bc as ListPerpsFundingPaymentsRequest, bd as ListPerpsNotificationsRequest, be as ListPerpsPnlHistoryRequest, bf as ListPerpsTradesError, bg as ListPerpsTradesRequest, bh as ListPerpsWithdrawalsRequest, bi as ListPositionsError, ff as ListPositionsRequest, bj as ListSeriesError, fg as ListSeriesRequest, bk as ListTagsError, fh as ListTagsRequest, bl as ListTeamsError, fi as ListTeamsRequest, bm as ListTraderLeaderboardError, fj as ListTraderLeaderboardRequest, bn as ListTradesError, fk as ListTradesRequest, bo as ListUserEarningsAndMarketsConfigError, fl as ListUserEarningsAndMarketsConfigRequest, bp as ListUserEarningsForDayError, fm as ListUserEarningsForDayRequest, bq as MarkPerpsNotificationsReadRequest, fn as MarketEventType, fo as MarketSubscription, fp as MergeComboPositionError, fq as MergeMarketPositionError, br as MergePositionsError, fr as MergePositionsWorkflow, fs as MergePositionsWorkflowRequest, bs as OpenPerpsSessionError, bt as OpenPerpsSessionRequest, bu as OpenRfqSessionError, bv as OrderAsset, ft as OrderPostingWorkflow, bw as OrderSignature, fu as OrderWorkflow, fv as OrderWorkflowRequest, fw as PerpsBboSubscription, bB as PerpsBookDepth, fx as PerpsBookSubscription, fy as PerpsCandlesSubscription, fz as PerpsDepositWorkflow, fA as PerpsDepositWorkflowRequest, fB as PerpsMarketDataEventType, fC as PerpsMarketDataSubscription, bD as PerpsOrderRequest, bE as PerpsPlaceFokOrderRequest, bF as PerpsPlaceGtcOrderRequest, bG as PerpsPlaceIocOrderRequest, bH as PerpsPlacedTpSlOrder, bI as PerpsPlacedTpSlOrders, bJ as PerpsPositionTpSlTrigger, bK as PerpsSession, bL as PerpsSessionAccountError, bM as PerpsSessionLifecycleError, bN as PerpsSessionTradingError, fD as PerpsStatisticsSubscription, fE as PerpsStreamingCandleInterval, fF as PerpsTickersSubscription, bO as PerpsTpSlTrigger, fG as PerpsTradesSubscription, bP as PlacePerpsOrderRequest, bQ as PlacePerpsOrderResult, bR as PlacePerpsOrderWithTpSlRequest, bS as PlacePerpsOrderWithTpSlResult, bT as PlacePerpsPositionTpSlRequest, bU as PlacePerpsPositionTpSlResult, bV as PlanCollateralReturnError, bW as PostOrderError, bX as PostOrdersError, fH as PostOrdersRequest, bY as PostPerpsOrdersRequest, fI as PrepareCollateralReturnExecutionError, fJ as PrepareErc1155ApprovalForAllError, fK as PrepareErc1155ApprovalForAllRequest, fL as PrepareErc20ApprovalError, fM as PrepareErc20ApprovalRequest, fN as PrepareErc20TransferError, fO as PrepareErc20TransferRequest, fP as PrepareGaslessTransactionError, fQ as PrepareGaslessTransactionRequest, fR as PrepareLimitOrderRequest, fS as PrepareMarketBuyOrderRequest, fT as PrepareMarketOrderRequest, fU as PrepareMarketSellOrderRequest, fV as PrepareMergeComboPositionError, fW as PrepareMergeComboPositionRequest, fX as PrepareMergeMarketPositionError, fY as PrepareMergeMarketPositionRequest, fZ as PrepareMergePositionsError, f_ as PrepareMergePositionsRequest, f$ as PreparePerpsDepositError, g0 as PrepareRedeemComboPositionError, g1 as PrepareRedeemComboPositionRequest, g2 as PrepareRedeemMarketPositionsByConditionIdRequest, g3 as PrepareRedeemMarketPositionsByMarketIdRequest, g4 as PrepareRedeemMarketPositionsError, g5 as PrepareRedeemMarketPositionsRequest, g6 as PrepareRedeemPositionsError, g7 as PrepareRedeemPositionsRequest, g8 as PrepareSplitComboPositionError, g9 as PrepareSplitComboPositionRequest, ga as PrepareSplitMarketPositionError, gb as PrepareSplitMarketPositionRequest, gc as PrepareSplitPositionError, gd as PrepareSplitPositionRequest, ge as PrepareTradingApprovalsError, gf as PublicRealtimeEvent, gg as PublicRealtimeTopic, gh as PublicSubscriptionSpec, c9 as RedeemPositionsError, gi as RedeemPositionsWorkflow, gj as RedeemPositionsWorkflowRequest, ca as RequestComboQuoteError, cb as RequestComboQuoteParams, cc as RequestComboQuoteResult, gk as ResolveConditionByTokenError, gl as ResolveConditionByTokenRequest, cg as ResumePerpsSessionRequest, ch as RevokePerpsCredentialsError, ci as RevokePerpsCredentialsRequest, cj as RevokeSessionKeyError, ck as RevokeSessionKeyRequest, cl as RevokeSessionKeyResult, cm as RfqCancelQuoteAck, cn as RfqCancelQuoteError, co as RfqCancelQuoteRejectedError, cp as RfqCancelQuoteRejectedErrorOptions, cq as RfqConfirmationAck, cr as RfqConfirmationError, cs as RfqConfirmationRejectedError, gm as RfqConfirmationRejectedErrorOptions, ct as RfqConfirmationRequestEvent, cu as RfqEvent, gn as RfqExecutionUpdateEvent, cv as RfqQuoteError, cw as RfqQuoteReference, cx as RfqQuoteRejectedError, cy as RfqQuoteRejectedErrorOptions, cz as RfqQuoteRequestEvent, cA as RfqQuoteResponse, cB as RfqQuoteSource, cC as RfqRequestRejectedError, cD as RfqRequestRejectedErrorOptions, cE as RfqSession, cF as RfqStatusResult, cG as RfqTradeEvent, cH as SearchError, go as SearchRequest, gp as SearchResults, cI as SearchSort, gq as SecureRealtimeEvent, gr as SecureRealtimeTopic, gs as SecureSubscriptionSpec, c$ as SessionKey, d2 as SetupTradingApprovalsError, d3 as SignedOrder, gt as SplitComboPositionError, gu as SplitMarketPositionError, d7 as SplitPositionError, gv as SplitPositionWorkflow, gw as SplitPositionWorkflowRequest, gx as SportsEventType, gy as SportsSubscription, d8 as SubscribeError, gz as SubscriptionHandle, gA as TradingApprovalsWorkflow, gB as TradingApprovalsWorkflowRequest, de as TransferErc20Error, gC as UpdateBalanceAllowanceError, gD as UpdateBalanceAllowanceRequest, dj as UpdatePerpsLeverageError, dk as UpdatePerpsLeverageRequest, dl as UpdatePerpsMarginError, dm as UpdatePerpsMarginRequest, gE as UserEventType, gF as UserSubscription, dn as WaitForComboFillError, dp as WaitForComboFillParams, dq as WaitForComboFillResult, gG as WaitForGaslessTransactionError, dr as WaitForOrderFillSettlementError, gH as WaitForOrderFillSettlementRequest, dx as WithdrawFromPerpsError, dy as WithdrawFromPerpsRequest, gI as acceptComboQuote, gJ as approveErc1155ForAll, gK as approveErc20, gL as authorizeSessionKey, gM as cancelAll, gN as cancelMarketOrders, gO as cancelOrder, gP as cancelOrders, gQ as deployDepositWallet, gR as depositToPerps, gS as downloadAccountingSnapshot, gT as dropNotifications, gU as estimateMarketPrice, gV as executeCollateralReturnPlan, gW as fetchBalanceAllowance, gX as fetchBuilderFeeRates, gY as fetchBuilderVolume, gZ as fetchClosedOnlyMode, g_ as fetchCommentsById, g$ as fetchEvent, h0 as fetchEventLiveVolume, h1 as fetchEventTags, h2 as fetchExecuteParams, h3 as fetchLastTradePrice, h4 as fetchLastTradePrices, h5 as fetchMarket, h6 as fetchMarketInfo, h7 as fetchMarketTags, h8 as fetchMidpoint, h9 as fetchMidpoints, ha as fetchNegRisk, hb as fetchNotifications, hc as fetchOrder, hd as fetchOrderBook, he as fetchOrderBooks, hf as fetchOrderScoring, hg as fetchOrdersScoring, hh as fetchPerpsBook, hi as fetchPerpsFees, hj as fetchPerpsInstruments, hk as fetchPerpsTicker, hl as fetchPerpsTickers, hm as fetchPortfolioValue, hn as fetchPrice, ho as fetchPriceHistory, hp as fetchPrices, hq as fetchPublicProfile, hr as fetchRelatedTagResources, hs as fetchRelatedTags, ht as fetchRewardPercentages, hu as fetchRfqStatus, hv as fetchSeries, hw as fetchSessionKeys, hx as fetchSpread, hy as fetchSpreads, hz as fetchTag, hA as fetchTickSize, hB as fetchTotalEarningsForUserForDay, hC as fetchTradedMarketCount, hD as fetchTransaction, hE as isWalletDeployed, hF as listAccountTrades, hG as listActivity, hH as listBuilderLeaderboard, hI as listBuilderTrades, hJ as listClosedPositions, hK as listComboActivity, hL as listComboMarkets, hM as listComboPositions, hN as listComments, hO as listCommentsByUserAddress, hP as listCurrentRewards, hQ as listEvents, hR as listMarketClarifications, hS as listMarketHolders, hT as listMarketPositions, hU as listMarketRewards, hV as listMarkets, hW as listOpenInterest, hX as listOpenOrders, hY as listPerpsCandles, hZ as listPerpsFundingHistory, h_ as listPerpsTrades, h$ as listPositions, i0 as listSeries, i1 as listTags, i2 as listTeams, i3 as listTraderLeaderboard, i4 as listTrades, i5 as listUserEarningsAndMarketsConfig, i6 as listUserEarningsForDay, i7 as mergeComboPosition, i8 as mergeMarketPosition, i9 as mergePositions, ia as openPerpsSession, ib as openRfqSession, ic as planCollateralReturn, id as postOrder, ie as postOrders, ig as prepareCollateralReturnExecution, ih as prepareErc1155ApprovalForAll, ii as prepareErc20Approval, ij as prepareErc20Transfer, ik as prepareGaslessTransaction, il as prepareMergeComboPosition, im as prepareMergeMarketPosition, io as prepareMergePositions, ip as preparePerpsDeposit, iq as prepareRedeemComboPosition, ir as prepareRedeemMarketPositions, is as prepareRedeemPositions, it as prepareSplitComboPosition, iu as prepareSplitMarketPosition, iv as prepareSplitPosition, iw as prepareTradingApprovals, ix as redeemPositions, iy as requestComboQuote, iz as resolveConditionByToken, iA as revokePerpsCredentials, iB as revokeSessionKey, iC as search, iD as setupTradingApprovals, iE as splitComboPosition, iF as splitMarketPosition, iG as splitPosition, iH as subscribe, iI as transferErc20, iJ as updateBalanceAllowance, iK as waitForComboFill, iL as waitForOrderFillSettlement, iM as withdrawFromPerps } from '../types-C4sR5GA8.js';
3
3
  import { ApiKey } from '@polymarket/bindings';
4
+ export { SessionSignerKnownScope as SessionKeyKnownScope, SessionSignerScope as SessionKeyScope } from '@polymarket/bindings';
4
5
  import { ApiKeyCreds, BuilderApiKeyCreds, BuilderApiKey } from '@polymarket/bindings/clob';
5
6
  import { EvmAddress, EvmSignature } from '@polymarket/types';
6
- export { C as CreateLimitOrderError, a as CreateMarketOrderError, F as FetchSportsMarketTypesError, L as ListSportsError, P as PlaceLimitOrderError, b as PlaceMarketOrderError, c as PrepareLimitOrderError, d as PrepareLimitOrderPostingError, e as PrepareMarketOrderError, f as PrepareMarketOrderPostingError, g as createLimitOrder, h as createMarketOrder, i as fetchSportsMarketTypes, l as listSports, p as placeLimitOrder, j as placeMarketOrder, k as prepareLimitOrder, m as prepareLimitOrderPosting, n as prepareMarketOrder, o as prepareMarketOrderPosting } from '../sports-CM15YKJi.js';
7
- export { CollateralReturnKnownOperationKind, CollateralReturnOperation, CollateralReturnOperationKind, CollateralReturnPlanResponse, CollateralReturnPositionAmount, CollateralReturnPositionSummary, CollateralReturnRouterCall, RfqConfirmationDecision, RfqConfirmationRequest, RfqDirection, RfqErrorCode, RfqExecutionStatus, RfqExecutionUpdate, RfqId, RfqKnownErrorCode, RfqQuoteId, RfqQuoteRequest, RfqRequestedSize, RfqRequestedSizeUnit, RfqRequestorPublicId, RfqSide, RfqTrade } from '@polymarket/bindings/combos';
7
+ export { C as CreateLimitOrderError, a as CreateMarketOrderError, F as FetchSportsMarketTypesError, L as ListSportsError, P as PlaceLimitOrderError, b as PlaceMarketOrderError, c as PrepareLimitOrderError, d as PrepareLimitOrderPostingError, e as PrepareMarketOrderError, f as PrepareMarketOrderPostingError, g as createLimitOrder, h as createMarketOrder, i as fetchSportsMarketTypes, l as listSports, p as placeLimitOrder, j as placeMarketOrder, k as prepareLimitOrder, m as prepareLimitOrderPosting, n as prepareMarketOrder, o as prepareMarketOrderPosting } from '../sports-w2Iai7fW.js';
8
+ export { BuilderRfqError, CollateralReturnKnownOperationKind, CollateralReturnOperation, CollateralReturnOperationKind, CollateralReturnPlanResponse, CollateralReturnPositionAmount, CollateralReturnPositionSummary, CollateralReturnRouterCall, ComboAcceptFailureReason, ComboQuoteUnavailableReason, RfqConfirmationDecision, RfqConfirmationRequest, RfqDirection, RfqErrorCode, RfqExecutionStatus, RfqExecutionUpdate, RfqId, RfqKnownErrorCode, RfqQuoteId, RfqQuoteRequest, RfqRejectionCode, RfqRequestedSize, RfqRequestedSizeUnit, RfqRequestorPublicId, RfqSide, RfqStatus, RfqTrade } from '@polymarket/bindings/combos';
8
9
  export { ComboActivityType, ComboPositionOutcome, ComboPositionStatus } from '@polymarket/bindings/data';
9
10
  export { CommentsEvent, CryptoPricesBinanceEvent, CryptoPricesChainlinkEvent, CryptoPricesChainlinkTwapEvent, CryptoPricesChainlinkTwapSixtyEvent, CryptoPricesChainlinkTwapThirtyEvent, CryptoPricesChainlinkTwapWindowSeconds, CryptoPricesEvent, CustomMarketEvent, EquityPricesEvent, MarketEvent, PerpsBboEvent, PerpsBookEvent, PerpsCandleEvent, PerpsMarketDataEvent, PerpsSessionEvent, PerpsStatisticEvent, PerpsTickerEvent, PerpsTradeEvent, SportsEvent, StandardMarketEvent, UserEvent } from '@polymarket/bindings/subscriptions';
10
11
  export { PerpsAutoCancelStatus, PerpsCancelOrderResult, PerpsPostOrderAck, PerpsUpdateLeverageResult } from '@polymarket/bindings/perps';
@@ -1,2 +1,2 @@
1
- export{Va as ApproveErc1155ForAllError,Ra as ApproveErc20Error,Ld as ArmPerpsAutoCancelError,Uc as CancelAllError,Wc as CancelMarketOrdersError,Qc as CancelOrderError,Sc as CancelOrdersError,fc as CollateralReturnKnownOperationKind,sa as ComboActivityType,Ae as ComboPositionOutcome,ne as ComboPositionSort,Be as ComboPositionStatus,$a as CreateApiKeyError,jb as CreateBuilderApiKeyError,Ad as CreateLimitOrderError,wd as CreateMarketOrderError,db as CreateOrDeriveApiKeyError,hb as DeleteApiKeyError,Ca as DeployDepositWalletError,ge as DepositToPerpsError,bb as DeriveApiKeyError,ye as DownloadAccountingSnapshotError,W as DropNotificationsError,Yc as EstimateMarketPriceError,dc as ExecuteCollateralReturnPlanError,fb as FetchApiKeysError,Y as FetchBalanceAllowanceError,lb as FetchBuilderApiKeysError,Db as FetchBuilderFeeRatesError,M as FetchClosedOnlyModeError,ic as FetchCommentsByIdError,oc as FetchEventError,sc as FetchEventLiveVolumeError,qc as FetchEventTagsError,xa as FetchExecuteParamsError,Rb as FetchLastTradePriceError,Tb as FetchLastTradePricesError,Gc as FetchMarketError,Bb as FetchMarketInfoError,Ic as FetchMarketTagsError,rb as FetchMidpointError,tb as FetchMidpointsError,xb as FetchNegRiskError,U as FetchNotificationsError,Jb as FetchOrderBookError,Lb as FetchOrderBooksError,Q as FetchOrderError,aa as FetchOrderScoringError,ca as FetchOrdersScoringError,Vd as FetchPerpsBookError,be as FetchPerpsFeesError,Pd as FetchPerpsInstrumentsError,Rd as FetchPerpsTickerError,Td as FetchPerpsTickersError,ue as FetchPortfolioValueError,Fb as FetchPriceError,Vb as FetchPriceHistoryError,Hb as FetchPricesError,gf as FetchPublicProfileError,Pf as FetchRelatedTagResourcesError,Nf as FetchRelatedTagsError,ka as FetchRewardPercentagesError,Bf as FetchSeriesError,Ff as FetchSportsMarketTypesError,Nb as FetchSpreadError,Pb as FetchSpreadsError,Lf as FetchTagError,vb as FetchTickSizeError,ga as FetchTotalEarningsForUserForDayError,we as FetchTradedMarketCountError,Oa as GaslessTransactionHandle,Ba as GaslessTransactionMetadataSchema,za as IsWalletDeployedError,S as ListAccountTradesError,oa as ListActivityError,uc as ListBuilderLeaderboardError,pb as ListBuilderTradesError,wc as ListBuilderVolumeError,qe as ListClosedPositionsError,qa as ListComboActivityError,Ec as ListComboMarketsError,se as ListComboPositionsError,kc as ListCommentsByUserAddressError,gc as ListCommentsError,Xb as ListCurrentRewardsError,mc as ListEventsError,Ac as ListMarketClarificationsError,Kc as ListMarketHoldersError,Oc as ListMarketPositionsError,Zb as ListMarketRewardsError,Cc as ListMarketsError,Mc as ListOpenInterestError,O as ListOpenOrdersError,Xd as ListPerpsCandlesError,Zd as ListPerpsFundingHistoryError,$d as ListPerpsTradesError,oe as ListPositionsError,zf as ListSeriesError,Df as ListSportsError,Jf as ListTagsError,Rf as ListTeamsError,yc as ListTraderLeaderboardError,ma as ListTradesError,ia as ListUserEarningsAndMarketsConfigError,ea as ListUserEarningsForDayError,Ze as MergeComboPositionError,Ye as MergeMarketPositionError,Xe as MergePositionsError,de as OpenPerpsSessionError,of as OpenRfqSessionError,Cd as PlaceLimitOrderError,yd as PlaceMarketOrderError,$b as PlanCollateralReturnError,ad as PostOrderError,bd as PostOrdersError,bc as PrepareCollateralReturnExecutionError,Ta as PrepareErc1155ApprovalForAllError,Pa as PrepareErc20ApprovalError,Tf as PrepareErc20TransferError,Fa as PrepareGaslessTransactionError,od as PrepareLimitOrderError,sd as PrepareLimitOrderPostingError,md as PrepareMarketOrderError,qd as PrepareMarketOrderPostingError,He as PrepareMergeComboPositionError,Ge as PrepareMergeMarketPositionError,Fe as PrepareMergePositionsError,fe as PreparePerpsDepositError,Ke as PrepareRedeemComboPositionError,Je as PrepareRedeemMarketPositionsError,Ie as PrepareRedeemPositionsError,Ee as PrepareSplitComboPositionError,De as PrepareSplitMarketPositionError,Ce as PrepareSplitPositionError,Xa as PrepareTradingApprovalsError,ef as RedeemPositionsError,zb as ResolveConditionByTokenError,nb as RevokeBuilderApiKeyError,ee as RevokePerpsCredentialsError,lf as RfqCancelQuoteError,kf as RfqCancelQuoteRejectedError,qf as RfqConfirmationDecision,nf as RfqConfirmationError,mf as RfqConfirmationRejectedError,rf as RfqDirection,sf as RfqExecutionStatus,tf as RfqKnownErrorCode,jf as RfqQuoteError,if as RfqQuoteRejectedError,uf as RfqRequestedSizeUnit,vf as RfqSide,xf as SearchError,wf as SearchSort,Za as SetupTradingApprovalsError,Qe as SplitComboPositionError,Pe as SplitMarketPositionError,Oe as SplitPositionError,Hf as SubscribeError,Vf as TransferErc20Error,_ as UpdateBalanceAllowanceError,Md as UpdatePerpsLeverageError,Nd as UpdatePerpsMarginError,Na as WaitForGaslessTransactionError,ud as WaitForOrderFillSettlementError,he as WithdrawFromPerpsError,Wa as approveErc1155ForAll,Sa as approveErc20,Ja as buildDepositWalletExecuteRequest,Ha as buildProxyWalletExecuteRequest,La as buildSafeWalletExecuteRequest,Vc as cancelAll,Xc as cancelMarketOrders,Rc as cancelOrder,Tc as cancelOrders,ab as createApiKey,kb as createBuilderApiKey,Bd as createLimitOrder,xd as createMarketOrder,eb as createOrDeriveApiKey,ib as deleteApiKey,Da as deployDepositWallet,le as depositToPerps,cb as deriveApiKey,ze as downloadAccountingSnapshot,X as dropNotifications,Zc as estimateMarketPrice,ec as executeCollateralReturnPlan,Ia as extractOnChainNonceFromSubmitError,gb as fetchApiKeys,Z as fetchBalanceAllowance,mb as fetchBuilderApiKeys,Eb as fetchBuilderFeeRates,xc as fetchBuilderVolume,N as fetchClosedOnlyMode,jc as fetchCommentsById,pc as fetchEvent,tc as fetchEventLiveVolume,rc as fetchEventTags,ya as fetchExecuteParams,Sb as fetchLastTradePrice,Ub as fetchLastTradePrices,Hc as fetchMarket,Cb as fetchMarketInfo,Jc as fetchMarketTags,sb as fetchMidpoint,ub as fetchMidpoints,yb as fetchNegRisk,V as fetchNotifications,R as fetchOrder,Kb as fetchOrderBook,Mb as fetchOrderBooks,ba as fetchOrderScoring,da as fetchOrdersScoring,Wd as fetchPerpsBook,ce as fetchPerpsFees,Qd as fetchPerpsInstruments,Sd as fetchPerpsTicker,Ud as fetchPerpsTickers,ve as fetchPortfolioValue,Gb as fetchPrice,Wb as fetchPriceHistory,Ib as fetchPrices,hf as fetchPublicProfile,Qf as fetchRelatedTagResources,Of as fetchRelatedTags,la as fetchRewardPercentages,Cf as fetchSeries,Gf as fetchSportsMarketTypes,Ob as fetchSpread,Qb as fetchSpreads,Mf as fetchTag,wb as fetchTickSize,ha as fetchTotalEarningsForUserForDay,xe as fetchTradedMarketCount,Ea as fetchTransaction,Ma as isRetryableGaslessSubmitError,Aa as isWalletDeployed,T as listAccountTrades,pa as listActivity,vc as listBuilderLeaderboard,qb as listBuilderTrades,re as listClosedPositions,ra as listComboActivity,Fc as listComboMarkets,te as listComboPositions,hc as listComments,lc as listCommentsByUserAddress,Yb as listCurrentRewards,nc as listEvents,Bc as listMarketClarifications,Lc as listMarketHolders,Pc as listMarketPositions,_b as listMarketRewards,Dc as listMarkets,Nc as listOpenInterest,P as listOpenOrders,Yd as listPerpsCandles,_d as listPerpsFundingHistory,ae as listPerpsTrades,pe as listPositions,Af as listSeries,Ef as listSports,Kf as listTags,Sf as listTeams,zc as listTraderLeaderboard,na as listTrades,ja as listUserEarningsAndMarketsConfig,fa as listUserEarningsForDay,$e as mergeComboPosition,_e as mergeMarketPosition,af as mergePositions,ie as openPerpsSession,pf as openRfqSession,Dd as placeLimitOrder,zd as placeMarketOrder,ac as planCollateralReturn,cd as postOrder,dd as postOrders,cc as prepareCollateralReturnExecution,Ua as prepareErc1155ApprovalForAll,Qa as prepareErc20Approval,Uf as prepareErc20Transfer,Ga as prepareGaslessTransaction,pd as prepareLimitOrder,td as prepareLimitOrderPosting,nd as prepareMarketOrder,rd as prepareMarketOrderPosting,Ve as prepareMergeComboPosition,Ue as prepareMergeMarketPosition,We as prepareMergePositions,ke as preparePerpsDeposit,cf as prepareRedeemComboPosition,bf as prepareRedeemMarketPositions,df as prepareRedeemPositions,Me as prepareSplitComboPosition,Le as prepareSplitMarketPosition,Ne as prepareSplitPosition,Ya as prepareTradingApprovals,ff as redeemPositions,Ka as resignDepositWalletExecuteRequest,Ab as resolveConditionByToken,_c as resolveEstimatedMarketPrice,$c as resolveMarketPriceFromOrderBook,ob as revokeBuilderApiKey,je as revokePerpsCredentials,yf as search,_a as setupTradingApprovals,ld as signOrder,Se as splitComboPosition,Re as splitMarketPosition,Te as splitPosition,If as subscribe,Wf as transferErc20,$ as updateBalanceAllowance,vd as waitForOrderFillSettlement,me as withdrawFromPerps}from'../chunk-WDPLMZVQ.js';import'../chunk-MIRUWWDK.js';//# sourceMappingURL=index.js.map
1
+ export{vf as AcceptComboQuoteError,Ya as ApproveErc1155ForAllError,Ua as ApproveErc20Error,Nd as ArmPerpsAutoCancelError,Vf as AuthorizeSessionKeyError,Xc as CancelAllError,Zc as CancelMarketOrdersError,Tc as CancelOrderError,Vc as CancelOrdersError,ic as CollateralReturnKnownOperationKind,Bf as ComboAcceptFailureReason,va as ComboActivityType,Ce as ComboPositionOutcome,pe as ComboPositionSort,De as ComboPositionStatus,Cf as ComboQuoteUnavailableReason,cb as CreateApiKeyError,mb as CreateBuilderApiKeyError,Cd as CreateLimitOrderError,yd as CreateMarketOrderError,gb as CreateOrDeriveApiKeyError,kb as DeleteApiKeyError,Fa as DeployDepositWalletError,ie as DepositToPerpsError,eb as DeriveApiKeyError,Ae as DownloadAccountingSnapshotError,Z as DropNotificationsError,fd as EstimateMarketPriceError,gc as ExecuteCollateralReturnPlanError,ib as FetchApiKeysError,$ as FetchBalanceAllowanceError,ob as FetchBuilderApiKeysError,Gb as FetchBuilderFeeRatesError,P as FetchClosedOnlyModeError,lc as FetchCommentsByIdError,rc as FetchEventError,vc as FetchEventLiveVolumeError,tc as FetchEventTagsError,Aa as FetchExecuteParamsError,Ub as FetchLastTradePriceError,Wb as FetchLastTradePricesError,Jc as FetchMarketError,Eb as FetchMarketInfoError,Lc as FetchMarketTagsError,ub as FetchMidpointError,wb as FetchMidpointsError,Ab as FetchNegRiskError,X as FetchNotificationsError,Mb as FetchOrderBookError,Ob as FetchOrderBooksError,T as FetchOrderError,da as FetchOrderScoringError,fa as FetchOrdersScoringError,Xd as FetchPerpsBookError,de as FetchPerpsFeesError,Rd as FetchPerpsInstrumentsError,Td as FetchPerpsTickerError,Vd as FetchPerpsTickersError,we as FetchPortfolioValueError,Ib as FetchPriceError,Yb as FetchPriceHistoryError,Kb as FetchPricesError,if as FetchPublicProfileError,jg as FetchRelatedTagResourcesError,hg as FetchRelatedTagsError,na as FetchRewardPercentagesError,zf as FetchRfqStatusError,Qf as FetchSeriesError,Tf as FetchSessionKeysError,$f as FetchSportsMarketTypesError,Qb as FetchSpreadError,Sb as FetchSpreadsError,fg as FetchTagError,yb as FetchTickSizeError,ja as FetchTotalEarningsForUserForDayError,ye as FetchTradedMarketCountError,Ra as GaslessTransactionHandle,Ea as GaslessTransactionMetadataSchema,Ca as IsWalletDeployedError,V as ListAccountTradesError,ra as ListActivityError,xc as ListBuilderLeaderboardError,sb as ListBuilderTradesError,zc as ListBuilderVolumeError,se as ListClosedPositionsError,ta as ListComboActivityError,Hc as ListComboMarketsError,ue as ListComboPositionsError,nc as ListCommentsByUserAddressError,jc as ListCommentsError,_b as ListCurrentRewardsError,pc as ListEventsError,Dc as ListMarketClarificationsError,Nc as ListMarketHoldersError,Rc as ListMarketPositionsError,ac as ListMarketRewardsError,Fc as ListMarketsError,Pc as ListOpenInterestError,R as ListOpenOrdersError,Zd as ListPerpsCandlesError,$d as ListPerpsFundingHistoryError,be as ListPerpsTradesError,qe as ListPositionsError,Of as ListSeriesError,Zf as ListSportsError,dg as ListTagsError,lg as ListTeamsError,Bc as ListTraderLeaderboardError,pa as ListTradesError,la as ListUserEarningsAndMarketsConfigError,ha as ListUserEarningsForDayError,$e as MergeComboPositionError,_e as MergeMarketPositionError,Ze as MergePositionsError,fe as OpenPerpsSessionError,qf as OpenRfqSessionError,Ed as PlaceLimitOrderError,Ad as PlaceMarketOrderError,cc as PlanCollateralReturnError,jd as PostOrderError,kd as PostOrdersError,ec as PrepareCollateralReturnExecutionError,Wa as PrepareErc1155ApprovalForAllError,Sa as PrepareErc20ApprovalError,ng as PrepareErc20TransferError,Ia as PrepareGaslessTransactionError,qd as PrepareLimitOrderError,ud as PrepareLimitOrderPostingError,od as PrepareMarketOrderError,sd as PrepareMarketOrderPostingError,Je as PrepareMergeComboPositionError,Ie as PrepareMergeMarketPositionError,He as PrepareMergePositionsError,he as PreparePerpsDepositError,Me as PrepareRedeemComboPositionError,Le as PrepareRedeemMarketPositionsError,Ke as PrepareRedeemPositionsError,Ge as PrepareSplitComboPositionError,Fe as PrepareSplitMarketPositionError,Ee as PrepareSplitPositionError,_a as PrepareTradingApprovalsError,gf as RedeemPositionsError,tf as RequestComboQuoteError,Cb as ResolveConditionByTokenError,qb as RevokeBuilderApiKeyError,ge as RevokePerpsCredentialsError,Xf as RevokeSessionKeyError,nf as RfqCancelQuoteError,mf as RfqCancelQuoteRejectedError,Df as RfqConfirmationDecision,pf as RfqConfirmationError,of as RfqConfirmationRejectedError,Ef as RfqDirection,Ff as RfqExecutionStatus,Gf as RfqKnownErrorCode,lf as RfqQuoteError,kf as RfqQuoteRejectedError,Hf as RfqRejectionCode,sf as RfqRequestRejectedError,If as RfqRequestedSizeUnit,Jf as RfqSide,Kf as RfqStatus,Mf as SearchError,Lf as SearchSort,Sf as SessionKeyKnownScope,ab as SetupTradingApprovalsError,Se as SplitComboPositionError,Re as SplitMarketPositionError,Qe as SplitPositionError,bg as SubscribeError,pg as TransferErc20Error,ba as UpdateBalanceAllowanceError,Od as UpdatePerpsLeverageError,Pd as UpdatePerpsMarginError,xf as WaitForComboFillError,Qa as WaitForGaslessTransactionError,wd as WaitForOrderFillSettlementError,je as WithdrawFromPerpsError,wf as acceptComboQuote,Za as approveErc1155ForAll,Va as approveErc20,Wf as authorizeSessionKey,Ma as buildDepositWalletExecuteRequest,Ka as buildProxyWalletExecuteRequest,Oa as buildSafeWalletExecuteRequest,Yc as cancelAll,_c as cancelMarketOrders,Uc as cancelOrder,Wc as cancelOrders,db as createApiKey,nb as createBuilderApiKey,Dd as createLimitOrder,zd as createMarketOrder,hb as createOrDeriveApiKey,lb as deleteApiKey,Ga as deployDepositWallet,ne as depositToPerps,fb as deriveApiKey,Be as downloadAccountingSnapshot,_ as dropNotifications,gd as estimateMarketPrice,hc as executeCollateralReturnPlan,La as extractOnChainNonceFromSubmitError,jb as fetchApiKeys,aa as fetchBalanceAllowance,pb as fetchBuilderApiKeys,Hb as fetchBuilderFeeRates,Ac as fetchBuilderVolume,Q as fetchClosedOnlyMode,mc as fetchCommentsById,sc as fetchEvent,wc as fetchEventLiveVolume,uc as fetchEventTags,Ba as fetchExecuteParams,Vb as fetchLastTradePrice,Xb as fetchLastTradePrices,Kc as fetchMarket,Fb as fetchMarketInfo,Mc as fetchMarketTags,vb as fetchMidpoint,xb as fetchMidpoints,Bb as fetchNegRisk,Y as fetchNotifications,U as fetchOrder,Nb as fetchOrderBook,Pb as fetchOrderBooks,ea as fetchOrderScoring,ga as fetchOrdersScoring,Yd as fetchPerpsBook,ee as fetchPerpsFees,Sd as fetchPerpsInstruments,Ud as fetchPerpsTicker,Wd as fetchPerpsTickers,xe as fetchPortfolioValue,Jb as fetchPrice,Zb as fetchPriceHistory,Lb as fetchPrices,jf as fetchPublicProfile,kg as fetchRelatedTagResources,ig as fetchRelatedTags,oa as fetchRewardPercentages,Af as fetchRfqStatus,Rf as fetchSeries,Uf as fetchSessionKeys,ag as fetchSportsMarketTypes,Rb as fetchSpread,Tb as fetchSpreads,gg as fetchTag,zb as fetchTickSize,ka as fetchTotalEarningsForUserForDay,ze as fetchTradedMarketCount,Ha as fetchTransaction,Pa as isRetryableGaslessSubmitError,Da as isWalletDeployed,W as listAccountTrades,sa as listActivity,yc as listBuilderLeaderboard,tb as listBuilderTrades,te as listClosedPositions,ua as listComboActivity,Ic as listComboMarkets,ve as listComboPositions,kc as listComments,oc as listCommentsByUserAddress,$b as listCurrentRewards,qc as listEvents,Ec as listMarketClarifications,Oc as listMarketHolders,Sc as listMarketPositions,bc as listMarketRewards,Gc as listMarkets,Qc as listOpenInterest,S as listOpenOrders,_d as listPerpsCandles,ae as listPerpsFundingHistory,ce as listPerpsTrades,re as listPositions,Pf as listSeries,_f as listSports,eg as listTags,mg as listTeams,Cc as listTraderLeaderboard,qa as listTrades,ma as listUserEarningsAndMarketsConfig,ia as listUserEarningsForDay,bf as mergeComboPosition,af as mergeMarketPosition,cf as mergePositions,ke as openPerpsSession,rf as openRfqSession,Fd as placeLimitOrder,Bd as placeMarketOrder,dc as planCollateralReturn,ld as postOrder,md as postOrders,fc as prepareCollateralReturnExecution,Xa as prepareErc1155ApprovalForAll,Ta as prepareErc20Approval,og as prepareErc20Transfer,Ja as prepareGaslessTransaction,rd as prepareLimitOrder,vd as prepareLimitOrderPosting,pd as prepareMarketOrder,td as prepareMarketOrderPosting,Xe as prepareMergeComboPosition,We as prepareMergeMarketPosition,Ye as prepareMergePositions,me as preparePerpsDeposit,ef as prepareRedeemComboPosition,df as prepareRedeemMarketPositions,ff as prepareRedeemPositions,Oe as prepareSplitComboPosition,Ne as prepareSplitMarketPosition,Pe as prepareSplitPosition,$a as prepareTradingApprovals,hf as redeemPositions,uf as requestComboQuote,Na as resignDepositWalletExecuteRequest,Db as resolveConditionByToken,hd as resolveEstimatedMarketPrice,id as resolveMarketPriceFromOrderBook,rb as revokeBuilderApiKey,le as revokePerpsCredentials,Yf as revokeSessionKey,Nf as search,bb as setupTradingApprovals,nd as signOrder,Ue as splitComboPosition,Te as splitMarketPosition,Ve as splitPosition,cg as subscribe,qg as transferErc20,ca as updateBalanceAllowance,yf as waitForComboFill,xd as waitForOrderFillSettlement,oe as withdrawFromPerps}from'../chunk-ENQH6V4J.js';import'../chunk-DLZLJOGO.js';//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ import {PolymarketError}from'@polymarket/types';var v=/^[$A-Z_a-z][$\w]*$/;function i(e){let r=c(e.issues);return r.length===0?"It was not possible to determine a more specific reason.":["Fix the following issues:",p(r)].join(`
2
+ `)}function u(e,r){let t=c(e.issues);return t.length===0?["Received an incompatible API response.",`Endpoint: ${r.endpoint}`,"This usually means the API response shape changed in a breaking way or the SDK is outdated.","It was not possible to determine a more specific reason."].join(`
3
+ `):["Received an incompatible API response.",`Endpoint: ${r.endpoint}`,"This usually means the API response shape changed in a breaking way or the SDK is outdated.","Fix the following issues:",p(t)].join(`
4
+ `)}function p(e){return e.map(t=>t.path===null?`- ${t.message}`:`- ${t.path}: ${t.message}`).join(`
5
+ `)}function c(e){return d(e).slice(0,99)}function d(e,r=[]){let t=e.flatMap(n=>{let a=[...r,...n.path];return n.code==="invalid_union"?n.errors.flatMap(A=>d(A,a)):[{code:n.code,message:n.message,path:a.length===0?null:T(a)}]});return U(t)}function U(e){let r=new Set,t=[];for(let n of e){let a=`${n.code}:${n.path??""}:${n.message}`;r.has(a)||(r.add(a),t.push(n));}return t.sort(Z)}function Z(e,r){return e.path===null&&r.path!==null?-1:e.path!==null&&r.path===null?1:(e.path??"").localeCompare(r.path??"")}function T(e){return e.reduce((r,t)=>typeof t=="number"?`${r}[${t.toString()}]`:typeof t!="string"?r:t.includes('"')?`${r}["${t.replaceAll('"','\\"')}"]`:v.test(t)?r.length===0?t:`${r}.${t}`:`${r}["${t}"]`,"")}var m=class e extends PolymarketError{name="UserInputError";constructor(r,t={}){super(r,t);}static fromZodError(r){return new e(i(r),{cause:r})}},l=class e extends PolymarketError{name="UnexpectedResponseError";constructor(r,t={}){super(r,t);}static fromZodError(r,t){return new e(u(r,t),{cause:r})}},f=class e extends PolymarketError{name="TransportError";constructor(r,t={}){super(r,t);}static fromError(r){return new e(r instanceof Error?r.message:"Request failed",{cause:r})}},L=(s=>(s[s.NormalClosure=1e3]="NormalClosure",s[s.GoingAway=1001]="GoingAway",s[s.ProtocolError=1002]="ProtocolError",s[s.UnsupportedData=1003]="UnsupportedData",s[s.NoStatusReceived=1005]="NoStatusReceived",s[s.AbnormalClosure=1006]="AbnormalClosure",s[s.InvalidFramePayload=1007]="InvalidFramePayload",s[s.PolicyViolation=1008]="PolicyViolation",s[s.MessageTooBig=1009]="MessageTooBig",s[s.InternalError=1011]="InternalError",s[s.ServiceRestart=1012]="ServiceRestart",s[s.TryAgainLater=1013]="TryAgainLater",s))(L||{}),g=class extends PolymarketError{name="ConnectionLostError";code;reason;constructor(r,t){super(r,t),this.code=t.code,this.reason=t.reason;}},P=(t=>(t.RESTARTING="restarting",t.POST_ONLY="post_only",t))(P||{}),y=class extends PolymarketError{name="RequestRejectedError";status;code;retryAfter;restriction;constructor(r,t){super(r,t),this.status=t.status,this.code=t.code,this.retryAfter=t.retryAfter,this.restriction=t.restriction;}},E=class extends PolymarketError{name="RateLimitError";retryAfter;rateLimit;constructor(r,t={}){super(r,t),this.retryAfter=t.retryAfter,this.rateLimit=t.rateLimit;}},I=class extends PolymarketError{name="TimeoutError";constructor(r,t={}){super(r,t);}},x=class extends PolymarketError{name="TransactionFailedError";constructor(r,t={}){super(r,t);}},h=class e extends PolymarketError{name="CancelledSigningError";constructor(r,t={}){super(r,t);}static fromError(r){return new e(r.message,{cause:r})}},R=class extends PolymarketError{name="InsufficientLiquidityError";constructor(r,t={}){super(r,t);}},$=class extends PolymarketError{name="AutoCancelDailyLimitError";constructor(r,t={}){super(r,t);}},O=class e extends PolymarketError{name="SigningError";constructor(r,t={}){super(r,t);}static fromError(r,t){let n=t??(r instanceof Error?r.message:"Signing failed");return new e(n,{cause:r})}};function N(...e){return {isError(r){return e.some(t=>r instanceof t)}}}export{m as a,l as b,f as c,L as d,g as e,P as f,y as g,E as h,I as i,x as j,h as k,R as l,$ as m,O as n,N as o};//# sourceMappingURL=chunk-DLZLJOGO.js.map
6
+ //# sourceMappingURL=chunk-DLZLJOGO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/validation.ts","../src/errors.ts"],"names":["identifierRegex","formatInputZodError","error","issues","flattenIssues","formatIssues","formatResponseZodError","context","issue","flattenIssueBranches","pathPrefix","flattened","path","branch","formatPath","dedupeIssues","seen","deduped","key","compareIssues","left","right","result","segment","UserInputError","_UserInputError","PolymarketError","message","options","UnexpectedResponseError","_UnexpectedResponseError","TransportError","_TransportError","WebSocketKnownCloseCode","ConnectionLostError","TradingRestriction","RequestRejectedError","RateLimitError","TimeoutError","TransactionFailedError","CancelledSigningError","_CancelledSigningError","InsufficientLiquidityError","AutoCancelDailyLimitError","SigningError","_SigningError","msg","makeErrorGuard","classes","c"],"mappings":"gDAGA,IAAMA,CAAAA,CAAkB,oBAAA,CAejB,SAASC,CAAAA,CAAoBC,CAAAA,CAAyB,CAC3D,IAAMC,CAAAA,CAASC,CAAAA,CAAcF,CAAAA,CAAM,MAAM,CAAA,CAEzC,OAAIC,CAAAA,CAAO,MAAA,GAAW,CAAA,CACb,0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AAAA,CAAyD,CAC/D,OAAO8C,CAAAA,CAAQ,KAAMC,CAAAA,EAAM/C,CAAAA,YAAiB+C,CAAC,CAC/C,CACF,CACF","file":"chunk-DLZLJOGO.js","sourcesContent":["import type { core, ZodError } from 'zod';\n\nconst maxIssuesInMessage = 99;\nconst identifierRegex = /^[$A-Z_a-z][$\\w]*$/;\n\ntype UserInputIssue = {\n code: string;\n message: string;\n path: string | null;\n};\n\nexport type ResponseValidationContext = {\n endpoint: string;\n};\n\n/**\n * Formats a `ZodError` into an SDK-oriented input validation message.\n */\nexport function formatInputZodError(error: ZodError): string {\n const issues = flattenIssues(error.issues);\n\n if (issues.length === 0) {\n return 'It was not possible to determine a more specific reason.';\n }\n\n return ['Fix the following issues:', formatIssues(issues)].join('\\n');\n}\n\n/**\n * Formats a `ZodError` into an SDK-oriented response validation message.\n */\nexport function formatResponseZodError(\n error: ZodError,\n context: ResponseValidationContext,\n): string {\n const issues = flattenIssues(error.issues);\n\n if (issues.length === 0) {\n return [\n 'Received an incompatible API response.',\n `Endpoint: ${context.endpoint}`,\n 'This usually means the API response shape changed in a breaking way or the SDK is outdated.',\n 'It was not possible to determine a more specific reason.',\n ].join('\\n');\n }\n\n return [\n 'Received an incompatible API response.',\n `Endpoint: ${context.endpoint}`,\n 'This usually means the API response shape changed in a breaking way or the SDK is outdated.',\n 'Fix the following issues:',\n formatIssues(issues),\n ].join('\\n');\n}\n\nfunction formatIssues(issues: readonly UserInputIssue[]): string {\n const lines = issues.map((issue) => {\n if (issue.path === null) {\n return `- ${issue.message}`;\n }\n\n return `- ${issue.path}: ${issue.message}`;\n });\n\n return lines.join('\\n');\n}\n\nfunction flattenIssues(issues: readonly core.$ZodIssue[]): UserInputIssue[] {\n return flattenIssueBranches(issues).slice(0, maxIssuesInMessage);\n}\n\nfunction flattenIssueBranches(\n issues: readonly core.$ZodIssue[],\n pathPrefix: readonly PropertyKey[] = [],\n): UserInputIssue[] {\n const flattened = issues.flatMap((issue) => {\n const path = [...pathPrefix, ...issue.path];\n\n if (issue.code === 'invalid_union') {\n return issue.errors.flatMap((branch) =>\n flattenIssueBranches(branch, path),\n );\n }\n\n return [\n {\n code: issue.code,\n message: issue.message,\n path: path.length === 0 ? null : formatPath(path),\n } satisfies UserInputIssue,\n ];\n });\n\n return dedupeIssues(flattened);\n}\n\nfunction dedupeIssues(issues: readonly UserInputIssue[]): UserInputIssue[] {\n const seen = new Set<string>();\n const deduped: UserInputIssue[] = [];\n\n for (const issue of issues) {\n const key = `${issue.code}:${issue.path ?? ''}:${issue.message}`;\n\n if (seen.has(key)) {\n continue;\n }\n\n seen.add(key);\n deduped.push(issue);\n }\n\n return deduped.sort(compareIssues);\n}\n\nfunction compareIssues(left: UserInputIssue, right: UserInputIssue): number {\n if (left.path === null && right.path !== null) {\n return -1;\n }\n\n if (left.path !== null && right.path === null) {\n return 1;\n }\n\n return (left.path ?? '').localeCompare(right.path ?? '');\n}\n\nfunction formatPath(path: readonly PropertyKey[]): string {\n return path.reduce<string>((result, segment) => {\n if (typeof segment === 'number') {\n return `${result}[${segment.toString()}]`;\n }\n\n if (typeof segment !== 'string') {\n return result;\n }\n\n if (segment.includes('\"')) {\n return `${result}[\"${segment.replaceAll('\"', '\\\\\"')}\"]`;\n }\n\n if (!identifierRegex.test(segment)) {\n return `${result}[\"${segment}\"]`;\n }\n\n if (result.length === 0) {\n return segment;\n }\n\n return `${result}.${segment}`;\n }, '');\n}\n","import { PolymarketError } from '@polymarket/types';\nimport type { ZodError } from 'zod';\nimport type { RateLimitUpdate } from './rate-limit';\nimport {\n formatInputZodError,\n formatResponseZodError,\n type ResponseValidationContext,\n} from './validation';\n\n/**\n * Error thrown when an action input fails SDK validation before a request is\n * sent.\n */\nexport class UserInputError extends PolymarketError {\n override name = 'UserInputError' as const;\n\n constructor(message: string, options: ErrorOptions = {}) {\n super(message, options);\n }\n\n static fromZodError(error: ZodError): UserInputError {\n return new UserInputError(formatInputZodError(error), {\n cause: error,\n });\n }\n}\n\n/**\n * Error thrown when a service response does not match the action's expected\n * response shape.\n */\nexport class UnexpectedResponseError extends PolymarketError {\n override name = 'UnexpectedResponseError' as const;\n\n constructor(message: string, options: ErrorOptions = {}) {\n super(message, options);\n }\n\n static fromZodError(\n error: ZodError,\n context: ResponseValidationContext,\n ): UnexpectedResponseError {\n return new UnexpectedResponseError(formatResponseZodError(error, context), {\n cause: error,\n });\n }\n}\n\n/**\n * Error thrown when the SDK cannot complete a request because of a network or\n * runtime transport failure.\n */\nexport class TransportError extends PolymarketError {\n override name = 'TransportError' as const;\n\n constructor(message: string, options: ErrorOptions = {}) {\n super(message, options);\n }\n\n static fromError(error: unknown): TransportError {\n return new TransportError(\n error instanceof Error ? error.message : 'Request failed',\n {\n cause: error,\n },\n );\n }\n}\n\n/**\n * WebSocket close codes defined by RFC 6455 and the IANA WebSocket Close Code\n * Number registry. Codes 4000-4999 are reserved for application use and are\n * intentionally not modeled here.\n */\nexport enum WebSocketKnownCloseCode {\n NormalClosure = 1000,\n GoingAway = 1001,\n ProtocolError = 1002,\n UnsupportedData = 1003,\n /** Synthesized locally when the peer closed without a status code. */\n NoStatusReceived = 1005,\n /** Synthesized locally when the connection dropped without a close frame. */\n AbnormalClosure = 1006,\n InvalidFramePayload = 1007,\n PolicyViolation = 1008,\n MessageTooBig = 1009,\n InternalError = 1011,\n ServiceRestart = 1012,\n TryAgainLater = 1013,\n}\n\n/**\n * A WebSocket close code. Codes enumerated in\n * {@link WebSocketKnownCloseCode} are defined by RFC 6455; other values, such\n * as application-defined 4000-4999 codes, flow through as plain numbers.\n */\nexport type WebSocketCloseCode = WebSocketKnownCloseCode | (number & {});\n\nexport type ConnectionLostErrorOptions = {\n /** WebSocket close code reported for the lost connection. */\n code: WebSocketCloseCode;\n /** Close reason provided by the peer. Empty when none was sent. */\n reason: string;\n};\n\n/**\n * Error thrown when a live connection ends without the SDK requesting it.\n */\nexport class ConnectionLostError extends PolymarketError {\n override name = 'ConnectionLostError' as const;\n\n readonly code: WebSocketCloseCode;\n readonly reason: string;\n\n constructor(\n message: string,\n options: ErrorOptions & ConnectionLostErrorOptions,\n ) {\n super(message, options);\n this.code = options.code;\n this.reason = options.reason;\n }\n}\n\n/**\n * Trading restriction reported by the venue while orders cannot be placed\n * normally. The SDK does not retry automatically; callers decide how to\n * react, honoring {@link RequestRejectedError.retryAfter} when provided.\n */\nexport enum TradingRestriction {\n /** The matching engine is restarting and rejects order requests until it is back. */\n RESTARTING = 'restarting',\n /** Cancels and post-only orders are accepted; other orders are rejected. */\n POST_ONLY = 'post_only',\n}\n\nexport type RequestRejectedErrorOptions = {\n status: number;\n /**\n * Machine-readable error code from the response body, when the service\n * provided one.\n */\n code?: string;\n /**\n * Server-requested delay in seconds before retrying, when the response\n * provided one.\n */\n retryAfter?: number;\n /**\n * Trading restriction that caused the rejection, when the response\n * identified one.\n */\n restriction?: TradingRestriction;\n};\n\n/**\n * Error thrown when a service responds with a non-success status other than\n * rate limiting.\n */\nexport class RequestRejectedError extends PolymarketError {\n override name = 'RequestRejectedError' as const;\n\n readonly status: number;\n /**\n * Machine-readable error code from the response body, when the service\n * provided one.\n */\n readonly code?: string;\n /**\n * Server-requested delay in seconds before retrying, when the response\n * provided one.\n */\n readonly retryAfter?: number;\n /**\n * Trading restriction that caused the rejection, when the response\n * identified one.\n */\n readonly restriction?: TradingRestriction;\n\n constructor(\n message: string,\n options: ErrorOptions & RequestRejectedErrorOptions,\n ) {\n super(message, options);\n this.status = options.status;\n this.code = options.code;\n this.retryAfter = options.retryAfter;\n this.restriction = options.restriction;\n }\n}\n\nexport type RateLimitErrorOptions = {\n /**\n * Server-requested delay in seconds before retrying, when the response\n * provided one.\n */\n retryAfter?: number;\n /**\n * Rate-limit state reported with the rejection, when the response provided\n * it.\n */\n rateLimit?: RateLimitUpdate;\n};\n\n/**\n * Error thrown when the service rejects a request because the rate limit has\n * been exceeded.\n */\nexport class RateLimitError extends PolymarketError {\n override name = 'RateLimitError' as const;\n\n /**\n * Server-requested delay in seconds before retrying, when the response\n * provided one.\n */\n readonly retryAfter?: number;\n /**\n * Rate-limit state reported with the rejection, when the response provided\n * it.\n */\n readonly rateLimit?: RateLimitUpdate;\n\n constructor(\n message: string,\n options: ErrorOptions & RateLimitErrorOptions = {},\n ) {\n super(message, options);\n this.retryAfter = options.retryAfter;\n this.rateLimit = options.rateLimit;\n }\n}\n\n/**\n * Error thrown when an async wait operation exceeds its allotted polling time.\n */\nexport class TimeoutError extends PolymarketError {\n override name = 'TimeoutError' as const;\n\n constructor(message: string, options: ErrorOptions = {}) {\n super(message, options);\n }\n}\n\n/**\n * Error thrown when a submitted transaction reaches a terminal failure state.\n */\nexport class TransactionFailedError extends PolymarketError {\n override name = 'TransactionFailedError' as const;\n\n constructor(message: string, options: ErrorOptions = {}) {\n super(message, options);\n }\n}\n\n/**\n * Error thrown when the user cancels a required wallet signing action.\n */\nexport class CancelledSigningError extends PolymarketError {\n override name = 'CancelledSigningError' as const;\n\n constructor(message: string, options: ErrorOptions = {}) {\n super(message, options);\n }\n\n static fromError(error: Error): CancelledSigningError {\n return new CancelledSigningError(error.message, {\n cause: error,\n });\n }\n}\n\n/**\n * Error thrown when there is not enough resting market liquidity to satisfy the\n * requested execution semantics.\n */\nexport class InsufficientLiquidityError extends PolymarketError {\n override name = 'InsufficientLiquidityError' as const;\n\n constructor(message: string, options: ErrorOptions = {}) {\n super(message, options);\n }\n}\n\n/**\n * Error thrown when arming auto-cancel is rejected because the account has\n * reached its daily auto-cancel trigger limit. Arming is rejected until the\n * daily counter resets at the next UTC midnight; clearing an existing\n * schedule is always allowed.\n *\n * @experimental This API may change in a breaking way in any release, including patch releases.\n */\nexport class AutoCancelDailyLimitError extends PolymarketError {\n override name = 'AutoCancelDailyLimitError' as const;\n\n constructor(message: string, options: ErrorOptions = {}) {\n super(message, options);\n }\n}\n\n/**\n * Error thrown when the SDK cannot produce a required signature or\n * authentication payload.\n */\nexport class SigningError extends PolymarketError {\n override name = 'SigningError' as const;\n\n constructor(message: string, options: ErrorOptions = {}) {\n super(message, options);\n }\n\n static fromError(error: unknown, message?: string): SigningError {\n const msg =\n message ?? (error instanceof Error ? error.message : 'Signing failed');\n return new SigningError(msg, { cause: error });\n }\n}\n\nexport function makeErrorGuard<\n // biome-ignore lint/suspicious/noExplicitAny: constructor rest args require any[]\n TClasses extends ReadonlyArray<new (...args: any[]) => unknown>,\n>(\n ...classes: TClasses\n): { isError(error: unknown): error is InstanceType<TClasses[number]> } {\n return {\n isError(error: unknown): error is InstanceType<TClasses[number]> {\n return classes.some((c) => error instanceof c);\n },\n };\n}\n"]}