@polymarket/client 0.6.0 → 0.8.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,9 +1,10 @@
1
- import { bZ as RateLimitError, c3 as RequestRejectedError, cZ as TransportError, d0 as UnexpectedResponseError, cR as SigningError, B as BaseClient, n as BaseSecureClient } from '../types-RGx7fNNl.js';
2
- export { c as AcceptComboQuoteError, d as AcceptComboQuoteParams, e as AcceptComboQuoteResult, h as ApproveErc1155ForAllError, i as ApproveErc20Error, j as ArmPerpsAutoCancelError, k as ArmPerpsAutoCancelRequest, C as CancelAllError, p as CancelAllPerpsOrdersRequest, q as CancelMarketOrdersError, dx as CancelMarketOrdersRequest, r as CancelOrderError, dy as CancelOrderRequest, s as CancelOrdersError, dz as CancelOrdersRequest, t as CancelPerpsOrderRequest, u as CancelPerpsOrdersRequest, dA as CollateralReturnExecutionWorkflow, D as ComboPositionSort, E as ComboQuote, dB as CommentsEventType, dC as CommentsSubscription, I as CreatePerpsSessionRequest, K as CryptoPricesChainlinkTwapSubscription, dD as CryptoPricesEventType, dE as CryptoPricesSubscription, dF as DeployDepositWalletError, M as DepositToPerpsError, N as DepositToPerpsRequest, O as DisarmPerpsAutoCancelRequest, Q as DownloadAccountingSnapshotError, dG as DownloadAccountingSnapshotRequest, R as DropNotificationsError, dH as DropNotificationsRequest, dI as EquityPricesEventType, dJ as EquityPricesSubscription, dK as Erc1155ApprovalForAllWorkflow, dL as Erc1155ApprovalForAllWorkflowRequest, dM as Erc20ApprovalWorkflow, dN as Erc20ApprovalWorkflowRequest, dO as Erc20TransferWorkflow, dP as Erc20TransferWorkflowRequest, dQ as EstimateMarketBuyPriceRequest, Y as EstimateMarketPriceError, dR as EstimateMarketPriceRequest, dS as EstimateMarketSellPriceRequest, dT as EventForSubscriptionSpec, dU as EventForSubscriptionSpecs, Z as ExecuteCollateralReturnPlanError, _ as ExecuteCollateralReturnPlanRequest, dV as FetchBalanceAllowanceError, dW as FetchBalanceAllowanceRequest, dX as FetchBuilderFeeRatesError, dY as FetchBuilderFeeRatesRequest, $ as FetchClosedOnlyModeError, a0 as FetchCommentsByIdError, dZ as FetchCommentsByIdRequest, a1 as FetchEventError, a2 as FetchEventLiveVolumeError, d_ as FetchEventLiveVolumeRequest, d$ as FetchEventRequest, a3 as FetchEventTagsError, e0 as FetchEventTagsRequest, e1 as FetchExecuteParamsError, e2 as FetchExecuteParamsRequest, e3 as FetchGaslessTransactionRequest, a4 as FetchLastTradePriceError, e4 as FetchLastTradePriceRequest, a5 as FetchLastTradePricesError, e5 as FetchLastTradePricesRequest, a6 as FetchMarketError, e6 as FetchMarketInfoError, e7 as FetchMarketInfoRequest, e8 as FetchMarketRequest, a7 as FetchMarketTagsError, e9 as FetchMarketTagsRequest, a8 as FetchMidpointError, ea as FetchMidpointRequest, a9 as FetchMidpointsError, eb as FetchMidpointsRequest, ec as FetchNegRiskError, ed as FetchNegRiskRequest, aa as FetchNotificationsError, ab as FetchOrderBookError, ee as FetchOrderBookRequest, ac as FetchOrderBooksError, ef as FetchOrderBooksRequest, ad as FetchOrderError, eg as FetchOrderRequest, ae as FetchOrderScoringError, eh as FetchOrderScoringRequest, af as FetchOrdersScoringError, ei as FetchOrdersScoringRequest, ag as FetchPerpsAccountConfigRequest, ah as FetchPerpsBookError, ai as FetchPerpsBookRequest, aj as FetchPerpsFeesError, ak as FetchPerpsInstrumentsError, al as FetchPerpsInstrumentsRequest, am as FetchPerpsOpenOrdersRequest, an as FetchPerpsOrdersRequest, ao as FetchPerpsTickerError, ap as FetchPerpsTickerRequest, aq as FetchPerpsTickersError, ar as FetchPerpsTickersRequest, as as FetchPortfolioValueError, ej as FetchPortfolioValueRequest, at as FetchPriceError, au as FetchPriceHistoryError, ek as FetchPriceHistoryRequest, el as FetchPriceRequest, av as FetchPricesError, em as FetchPricesRequest, aw as FetchPublicProfileError, en as FetchPublicProfileRequest, ax as FetchRelatedTagResourcesError, eo as FetchRelatedTagResourcesRequest, ay as FetchRelatedTagsError, ep as FetchRelatedTagsRequest, az as FetchRewardPercentagesError, aA as FetchRfqStatusError, aB as FetchRfqStatusParams, aC as FetchSeriesError, eq as FetchSeriesRequest, aD as FetchSpreadError, er as FetchSpreadRequest, aE as FetchSpreadsError, es as FetchSpreadsRequest, aF as FetchTagError, et as FetchTagRequest, eu as FetchTickSizeError, ev as FetchTickSizeRequest, aG as FetchTotalEarningsForUserForDayError, ew as FetchTotalEarningsForUserForDayRequest, aH as FetchTradedMarketCountError, ex as FetchTradedMarketCountRequest, ey as GaslessTransactionMetadataSchema, ez as GaslessWorkflow, eA as GaslessWorkflowRequest, eB as IsWalletDeployedError, eC as IsWalletDeployedRequest, aJ as ListAccountTradesError, eD as ListAccountTradesRequest, aK as ListActivityError, eE as ListActivityRequest, aL as ListBuilderLeaderboardError, eF as ListBuilderLeaderboardRequest, aM as ListBuilderTradesError, eG as ListBuilderTradesRequest, aN as ListBuilderVolumeError, eH as ListBuilderVolumeRequest, aO as ListClosedPositionsError, eI as ListClosedPositionsRequest, aP as ListComboActivityError, eJ as ListComboActivityRequest, aQ as ListComboMarketsError, eK as ListComboMarketsRequest, aR as ListComboPositionsError, eL as ListComboPositionsRequest, aS as ListCommentsByUserAddressError, eM as ListCommentsByUserAddressRequest, aT as ListCommentsError, eN as ListCommentsRequest, aU as ListCurrentRewardsError, eO as ListCurrentRewardsRequest, aV as ListEventsError, eP as ListEventsRequest, eQ as ListMarketClarificationsError, eR as ListMarketClarificationsRequest, aW as ListMarketHoldersError, eS as ListMarketHoldersRequest, aX as ListMarketPositionsError, eT as ListMarketPositionsRequest, aY as ListMarketRewardsError, eU as ListMarketRewardsRequest, aZ as ListMarketsError, eV as ListMarketsRequest, a_ as ListOpenInterestError, eW as ListOpenInterestRequest, a$ as ListOpenOrdersError, eX as ListOpenOrdersRequest, b0 as ListPerpsCandlesError, b1 as ListPerpsCandlesRequest, b2 as ListPerpsDepositsRequest, b3 as ListPerpsEquityHistoryRequest, b4 as ListPerpsFillsRequest, b5 as ListPerpsFundingHistoryError, b6 as ListPerpsFundingHistoryRequest, b7 as ListPerpsFundingPaymentsRequest, b8 as ListPerpsNotificationsRequest, b9 as ListPerpsPnlHistoryRequest, ba as ListPerpsTradesError, bb as ListPerpsTradesRequest, bc as ListPerpsWithdrawalsRequest, bd as ListPositionsError, eY as ListPositionsRequest, be as ListSeriesError, eZ as ListSeriesRequest, bf as ListTagsError, e_ as ListTagsRequest, bg as ListTeamsError, e$ as ListTeamsRequest, bh as ListTraderLeaderboardError, f0 as ListTraderLeaderboardRequest, bi as ListTradesError, f1 as ListTradesRequest, bj as ListUserEarningsAndMarketsConfigError, f2 as ListUserEarningsAndMarketsConfigRequest, bk as ListUserEarningsForDayError, f3 as ListUserEarningsForDayRequest, bl as MarkPerpsNotificationsReadRequest, f4 as MarketEventType, f5 as MarketSubscription, f6 as MergeComboPositionError, f7 as MergeMarketPositionError, bm as MergePositionsError, f8 as MergePositionsWorkflow, f9 as MergePositionsWorkflowRequest, bn as OpenPerpsSessionError, bo as OpenPerpsSessionRequest, bp as OpenRfqSessionError, fa as OrderDraft, fb as OrderPostingWorkflow, fc as OrderWorkflow, fd as OrderWorkflowRequest, fe as PerpsBboSubscription, bu as PerpsBookDepth, ff as PerpsBookSubscription, fg as PerpsCandlesSubscription, fh as PerpsDepositWorkflow, fi as PerpsDepositWorkflowRequest, fj as PerpsMarketDataEventType, fk as PerpsMarketDataSubscription, bw as PerpsOrderRequest, bx as PerpsPlaceFokOrderRequest, by as PerpsPlaceGtcOrderRequest, bz as PerpsPlaceIocOrderRequest, bA as PerpsPlacedTpSlOrder, bB as PerpsPlacedTpSlOrders, bC as PerpsPositionTpSlTrigger, bD as PerpsSession, bE as PerpsSessionAccountError, bF as PerpsSessionLifecycleError, bG as PerpsSessionTradingError, fl as PerpsStatisticsSubscription, fm as PerpsStreamingCandleInterval, fn as PerpsTickersSubscription, bH as PerpsTpSlTrigger, fo as PerpsTradesSubscription, bI as PlacePerpsOrderRequest, bJ as PlacePerpsOrderResult, bK as PlacePerpsOrderWithTpSlRequest, bL as PlacePerpsOrderWithTpSlResult, bM as PlacePerpsPositionTpSlRequest, bN as PlacePerpsPositionTpSlResult, bO as PlanCollateralReturnError, bP as PostOrderError, bQ as PostOrdersError, fp as PostOrdersRequest, bR as PostPerpsOrdersRequest, fq as PrepareCollateralReturnExecutionError, fr as PrepareErc1155ApprovalForAllError, fs as PrepareErc1155ApprovalForAllRequest, ft as PrepareErc20ApprovalError, fu as PrepareErc20ApprovalRequest, fv as PrepareErc20TransferError, fw as PrepareErc20TransferRequest, fx as PrepareGaslessTransactionError, fy as PrepareGaslessTransactionRequest, fz as PrepareLimitOrderRequest, fA as PrepareMarketBuyOrderRequest, fB as PrepareMarketOrderRequest, fC as PrepareMarketSellOrderRequest, fD as PrepareMergeComboPositionError, fE as PrepareMergeComboPositionRequest, fF as PrepareMergeMarketPositionError, fG as PrepareMergeMarketPositionRequest, fH as PrepareMergePositionsError, fI as PrepareMergePositionsRequest, fJ as PreparePerpsDepositError, fK as PrepareRedeemComboPositionError, fL as PrepareRedeemComboPositionRequest, fM as PrepareRedeemMarketPositionsByConditionIdRequest, fN as PrepareRedeemMarketPositionsByMarketIdRequest, fO as PrepareRedeemMarketPositionsError, fP as PrepareRedeemMarketPositionsRequest, fQ as PrepareRedeemPositionsError, fR as PrepareRedeemPositionsRequest, fS as PrepareSplitComboPositionError, fT as PrepareSplitComboPositionRequest, fU as PrepareSplitMarketPositionError, fV as PrepareSplitMarketPositionRequest, fW as PrepareSplitPositionError, fX as PrepareSplitPositionRequest, fY as PrepareTradingApprovalsError, fZ as PublicRealtimeEvent, f_ as PublicRealtimeTopic, f$ as PublicSubscriptionSpec, b$ as RedeemPositionsError, g0 as RedeemPositionsWorkflow, g1 as RedeemPositionsWorkflowRequest, c0 as RequestComboQuoteError, c1 as RequestComboQuoteParams, c2 as RequestComboQuoteResult, g2 as ResolveConditionByTokenError, g3 as ResolveConditionByTokenRequest, c6 as ResumePerpsSessionRequest, c7 as RevokePerpsCredentialsError, c8 as RevokePerpsCredentialsRequest, c9 as RfqCancelQuoteAck, ca as RfqCancelQuoteError, cb as RfqCancelQuoteRejectedError, cc as RfqCancelQuoteRejectedErrorOptions, cd as RfqConfirmationAck, ce as RfqConfirmationError, cf as RfqConfirmationRejectedError, g4 as RfqConfirmationRejectedErrorOptions, cg as RfqConfirmationRequestEvent, ch as RfqEvent, g5 as RfqExecutionUpdateEvent, ci as RfqQuoteError, cj as RfqQuoteReference, ck as RfqQuoteRejectedError, cl as RfqQuoteRejectedErrorOptions, cm as RfqQuoteRequestEvent, cn as RfqQuoteResponse, co as RfqQuoteSource, cp as RfqRequestRejectedError, cq as RfqRequestRejectedErrorOptions, cr as RfqSession, cs as RfqStatusResult, ct as RfqTradeEvent, cu as SearchError, g6 as SearchRequest, g7 as SearchResults, cv as SearchSort, g8 as SecureRealtimeEvent, g9 as SecureRealtimeTopic, ga as SecureSubscriptionSpec, cP as SetupTradingApprovalsError, gb as SignedOrder, gc as SplitComboPositionError, gd as SplitMarketPositionError, cS as SplitPositionError, ge as SplitPositionWorkflow, gf as SplitPositionWorkflowRequest, gg as SportsEventType, gh as SportsSubscription, cT as SubscribeError, gi as SubscriptionHandle, gj as TradingApprovalsWorkflow, gk as TradingApprovalsWorkflowRequest, cY as TransferErc20Error, gl as UpdateBalanceAllowanceError, gm as UpdateBalanceAllowanceRequest, d1 as UpdatePerpsLeverageError, d2 as UpdatePerpsLeverageRequest, d3 as UpdatePerpsMarginError, d4 as UpdatePerpsMarginRequest, gn as UserEventType, go as UserSubscription, d5 as WaitForComboFillError, d6 as WaitForComboFillParams, d7 as WaitForComboFillResult, gp as WaitForGaslessTransactionError, d8 as WaitForOrderFillSettlementError, gq as WaitForOrderFillSettlementRequest, de as WithdrawFromPerpsError, df as WithdrawFromPerpsRequest, gr as acceptComboQuote, gs as approveErc1155ForAll, gt as approveErc20, gu as cancelAll, gv as cancelMarketOrders, gw as cancelOrder, gx as cancelOrders, gy as deployDepositWallet, gz as depositToPerps, gA as downloadAccountingSnapshot, gB as dropNotifications, gC as estimateMarketPrice, gD as executeCollateralReturnPlan, gE as fetchBalanceAllowance, gF as fetchBuilderFeeRates, gG as fetchBuilderVolume, gH as fetchClosedOnlyMode, gI as fetchCommentsById, gJ as fetchEvent, gK as fetchEventLiveVolume, gL as fetchEventTags, gM as fetchExecuteParams, gN as fetchLastTradePrice, gO as fetchLastTradePrices, gP as fetchMarket, gQ as fetchMarketInfo, gR as fetchMarketTags, gS as fetchMidpoint, gT as fetchMidpoints, gU as fetchNegRisk, gV as fetchNotifications, gW as fetchOrder, gX as fetchOrderBook, gY as fetchOrderBooks, gZ as fetchOrderScoring, g_ as fetchOrdersScoring, g$ as fetchPerpsBook, h0 as fetchPerpsFees, h1 as fetchPerpsInstruments, h2 as fetchPerpsTicker, h3 as fetchPerpsTickers, h4 as fetchPortfolioValue, h5 as fetchPrice, h6 as fetchPriceHistory, h7 as fetchPrices, h8 as fetchPublicProfile, h9 as fetchRelatedTagResources, ha as fetchRelatedTags, hb as fetchRewardPercentages, hc as fetchRfqStatus, hd as fetchSeries, he as fetchSpread, hf as fetchSpreads, hg as fetchTag, hh as fetchTickSize, hi as fetchTotalEarningsForUserForDay, hj as fetchTradedMarketCount, hk as fetchTransaction, hl as isWalletDeployed, hm as listAccountTrades, hn as listActivity, ho as listBuilderLeaderboard, hp as listBuilderTrades, hq as listClosedPositions, hr as listComboActivity, hs as listComboMarkets, ht as listComboPositions, hu as listComments, hv as listCommentsByUserAddress, hw as listCurrentRewards, hx as listEvents, hy as listMarketClarifications, hz as listMarketHolders, hA as listMarketPositions, hB as listMarketRewards, hC as listMarkets, hD as listOpenInterest, hE as listOpenOrders, hF as listPerpsCandles, hG as listPerpsFundingHistory, hH as listPerpsTrades, hI as listPositions, hJ as listSeries, hK as listTags, hL as listTeams, hM as listTraderLeaderboard, hN as listTrades, hO as listUserEarningsAndMarketsConfig, hP as listUserEarningsForDay, hQ as mergeComboPosition, hR as mergeMarketPosition, hS as mergePositions, hT as openPerpsSession, hU as openRfqSession, hV as planCollateralReturn, hW as postOrder, hX as postOrders, hY as prepareCollateralReturnExecution, hZ as prepareErc1155ApprovalForAll, h_ as prepareErc20Approval, h$ as prepareErc20Transfer, i0 as prepareGaslessTransaction, i1 as prepareMergeComboPosition, i2 as prepareMergeMarketPosition, i3 as prepareMergePositions, i4 as preparePerpsDeposit, i5 as prepareRedeemComboPosition, i6 as prepareRedeemMarketPositions, i7 as prepareRedeemPositions, i8 as prepareSplitComboPosition, i9 as prepareSplitMarketPosition, ia as prepareSplitPosition, ib as prepareTradingApprovals, ic as redeemPositions, id as requestComboQuote, ie as resolveConditionByToken, ig as revokePerpsCredentials, ih as search, ii as setupTradingApprovals, ij as splitComboPosition, ik as splitMarketPosition, il as splitPosition, im as subscribe, io as transferErc20, ip as updateBalanceAllowance, iq as waitForComboFill, ir as waitForOrderFillSettlement, is as withdrawFromPerps } from '../types-RGx7fNNl.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-Cg8WP4aO.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 PrepareRedeemPositionRequest, g7 as PrepareRedeemPositionsError, g8 as PrepareRedeemPositionsRequest, g9 as PrepareSplitComboPositionError, ga as PrepareSplitComboPositionRequest, gb as PrepareSplitMarketPositionError, gc as PrepareSplitMarketPositionRequest, gd as PrepareSplitPositionError, ge as PrepareSplitPositionRequest, gf as PrepareTradingApprovalsError, gg as PublicRealtimeEvent, gh as PublicRealtimeTopic, gi as PublicSubscriptionSpec, c9 as RedeemPositionsError, gj as RedeemPositionsWorkflow, gk as RedeemPositionsWorkflowRequest, ca as RequestComboQuoteError, cb as RequestComboQuoteParams, cc as RequestComboQuoteResult, gl as ResolveConditionByTokenError, gm 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, gn as RfqConfirmationRejectedErrorOptions, ct as RfqConfirmationRequestEvent, cu as RfqEvent, go 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, gp as SearchRequest, gq as SearchResults, cI as SearchSort, gr as SecureRealtimeEvent, gs as SecureRealtimeTopic, gt as SecureSubscriptionSpec, c$ as SessionKey, d2 as SetupTradingApprovalsError, d3 as SignedOrder, gu as SplitComboPositionError, gv as SplitMarketPositionError, d7 as SplitPositionError, gw as SplitPositionWorkflow, gx as SplitPositionWorkflowRequest, gy as SportsEventType, gz as SportsSubscription, d8 as SubscribeError, gA as SubscriptionHandle, gB as TradingApprovalsWorkflow, gC as TradingApprovalsWorkflowRequest, de as TransferErc20Error, gD as UpdateBalanceAllowanceError, gE as UpdateBalanceAllowanceRequest, dj as UpdatePerpsLeverageError, dk as UpdatePerpsLeverageRequest, dl as UpdatePerpsMarginError, dm as UpdatePerpsMarginRequest, gF as UserEventType, gG as UserSubscription, dn as WaitForComboFillError, dp as WaitForComboFillParams, dq as WaitForComboFillResult, gH as WaitForGaslessTransactionError, dr as WaitForOrderFillSettlementError, gI as WaitForOrderFillSettlementRequest, dx as WithdrawFromPerpsError, dy as WithdrawFromPerpsRequest, gJ as acceptComboQuote, gK as approveErc1155ForAll, gL as approveErc20, gM as authorizeSessionKey, gN as cancelAll, gO as cancelMarketOrders, gP as cancelOrder, gQ as cancelOrders, gR as deployDepositWallet, gS as depositToPerps, gT as downloadAccountingSnapshot, gU as dropNotifications, gV as estimateMarketPrice, gW as executeCollateralReturnPlan, gX as fetchBalanceAllowance, gY as fetchBuilderFeeRates, gZ as fetchBuilderVolume, g_ as fetchClosedOnlyMode, g$ as fetchCommentsById, h0 as fetchEvent, h1 as fetchEventLiveVolume, h2 as fetchEventTags, h3 as fetchExecuteParams, h4 as fetchLastTradePrice, h5 as fetchLastTradePrices, h6 as fetchMarket, h7 as fetchMarketInfo, h8 as fetchMarketTags, h9 as fetchMidpoint, ha as fetchMidpoints, hb as fetchNegRisk, hc as fetchNotifications, hd as fetchOrder, he as fetchOrderBook, hf as fetchOrderBooks, hg as fetchOrderScoring, hh as fetchOrdersScoring, hi as fetchPerpsBook, hj as fetchPerpsFees, hk as fetchPerpsInstruments, hl as fetchPerpsTicker, hm as fetchPerpsTickers, hn as fetchPortfolioValue, ho as fetchPrice, hp as fetchPriceHistory, hq as fetchPrices, hr as fetchPublicProfile, hs as fetchRelatedTagResources, ht as fetchRelatedTags, hu as fetchRewardPercentages, hv as fetchRfqStatus, hw as fetchSeries, hx as fetchSessionKeys, hy as fetchSpread, hz as fetchSpreads, hA as fetchTag, hB as fetchTickSize, hC as fetchTotalEarningsForUserForDay, hD as fetchTradedMarketCount, hE as fetchTransaction, hF as isWalletDeployed, hG as listAccountTrades, hH as listActivity, hI as listBuilderLeaderboard, hJ as listBuilderTrades, hK as listClosedPositions, hL as listComboActivity, hM as listComboMarkets, hN as listComboPositions, hO as listComments, hP as listCommentsByUserAddress, hQ as listCurrentRewards, hR as listEvents, hS as listMarketClarifications, hT as listMarketHolders, hU as listMarketPositions, hV as listMarketRewards, hW as listMarkets, hX as listOpenInterest, hY as listOpenOrders, hZ as listPerpsCandles, h_ as listPerpsFundingHistory, h$ as listPerpsTrades, i0 as listPositions, i1 as listSeries, i2 as listTags, i3 as listTeams, i4 as listTraderLeaderboard, i5 as listTrades, i6 as listUserEarningsAndMarketsConfig, i7 as listUserEarningsForDay, i8 as mergeComboPosition, i9 as mergeMarketPosition, ia as mergePositions, ib as openPerpsSession, ic as openRfqSession, id as planCollateralReturn, ie as postOrder, ig as postOrders, ih as prepareCollateralReturnExecution, ii as prepareErc1155ApprovalForAll, ij as prepareErc20Approval, ik as prepareErc20Transfer, il as prepareGaslessTransaction, im as prepareMergeComboPosition, io as prepareMergeMarketPosition, ip as prepareMergePositions, iq as preparePerpsDeposit, ir as prepareRedeemComboPosition, is as prepareRedeemMarketPositions, it as prepareRedeemPosition, iu as prepareRedeemPositions, iv as prepareSplitComboPosition, iw as prepareSplitMarketPosition, ix as prepareSplitPosition, iy as prepareTradingApprovals, iz as redeemPositions, iA as requestComboQuote, iB as resolveConditionByToken, iC as revokePerpsCredentials, iD as revokeSessionKey, iE as search, iF as setupTradingApprovals, iG as splitComboPosition, iH as splitMarketPosition, iI as splitPosition, iJ as subscribe, iK as transferErc20, iL as updateBalanceAllowance, iM as waitForComboFill, iN as waitForOrderFillSettlement, iO as withdrawFromPerps } from '../types-Cg8WP4aO.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-BPp6UXlR.js';
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-C9hVRTX2.js';
7
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';
@@ -1,2 +1,2 @@
1
- export{tf as AcceptComboQuoteError,Va as ApproveErc1155ForAllError,Ra as ApproveErc20Error,Ld as ArmPerpsAutoCancelError,Uc as CancelAllError,Wc as CancelMarketOrdersError,Qc as CancelOrderError,Sc as CancelOrdersError,fc as CollateralReturnKnownOperationKind,zf as ComboAcceptFailureReason,sa as ComboActivityType,Ae as ComboPositionOutcome,ne as ComboPositionSort,Be as ComboPositionStatus,Af as ComboQuoteUnavailableReason,$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,ag as FetchRelatedTagResourcesError,_f as FetchRelatedTagsError,ka as FetchRewardPercentagesError,xf as FetchRfqStatusError,Of as FetchSeriesError,Sf as FetchSportsMarketTypesError,Nb as FetchSpreadError,Pb as FetchSpreadsError,Yf 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,Mf as ListSeriesError,Qf as ListSportsError,Wf as ListTagsError,cg 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,eg 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,rf as RequestComboQuoteError,zb as ResolveConditionByTokenError,nb as RevokeBuilderApiKeyError,ee as RevokePerpsCredentialsError,lf as RfqCancelQuoteError,kf as RfqCancelQuoteRejectedError,Bf as RfqConfirmationDecision,nf as RfqConfirmationError,mf as RfqConfirmationRejectedError,Cf as RfqDirection,Df as RfqExecutionStatus,Ef as RfqKnownErrorCode,jf as RfqQuoteError,if as RfqQuoteRejectedError,Ff as RfqRejectionCode,qf as RfqRequestRejectedError,Gf as RfqRequestedSizeUnit,Hf as RfqSide,If as RfqStatus,Kf as SearchError,Jf as SearchSort,Za as SetupTradingApprovalsError,Qe as SplitComboPositionError,Pe as SplitMarketPositionError,Oe as SplitPositionError,Uf as SubscribeError,gg as TransferErc20Error,_ as UpdateBalanceAllowanceError,Md as UpdatePerpsLeverageError,Nd as UpdatePerpsMarginError,vf as WaitForComboFillError,Na as WaitForGaslessTransactionError,ud as WaitForOrderFillSettlementError,he as WithdrawFromPerpsError,uf as acceptComboQuote,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,bg as fetchRelatedTagResources,$f as fetchRelatedTags,la as fetchRewardPercentages,yf as fetchRfqStatus,Pf as fetchSeries,Tf as fetchSportsMarketTypes,Ob as fetchSpread,Qb as fetchSpreads,Zf 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,Nf as listSeries,Rf as listSports,Xf as listTags,dg 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,fg 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,sf as requestComboQuote,Ka as resignDepositWalletExecuteRequest,Ab as resolveConditionByToken,_c as resolveEstimatedMarketPrice,$c as resolveMarketPriceFromOrderBook,ob as revokeBuilderApiKey,je as revokePerpsCredentials,Lf as search,_a as setupTradingApprovals,ld as signOrder,Se as splitComboPosition,Re as splitMarketPosition,Te as splitPosition,Vf as subscribe,hg as transferErc20,$ as updateBalanceAllowance,wf as waitForComboFill,vd as waitForOrderFillSettlement,me as withdrawFromPerps}from'../chunk-DB2YMGIT.js';import'../chunk-MCGT5BAF.js';//# sourceMappingURL=index.js.map
1
+ export{wf as AcceptComboQuoteError,Ya as ApproveErc1155ForAllError,Ua as ApproveErc20Error,Nd as ArmPerpsAutoCancelError,Wf as AuthorizeSessionKeyError,Xc as CancelAllError,Zc as CancelMarketOrdersError,Tc as CancelOrderError,Vc as CancelOrdersError,ic as CollateralReturnKnownOperationKind,Cf as ComboAcceptFailureReason,va as ComboActivityType,Ce as ComboPositionOutcome,pe as ComboPositionSort,De as ComboPositionStatus,Df 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,jf as FetchPublicProfileError,kg as FetchRelatedTagResourcesError,ig as FetchRelatedTagsError,na as FetchRewardPercentagesError,Af as FetchRfqStatusError,Rf as FetchSeriesError,Uf as FetchSessionKeysError,ag as FetchSportsMarketTypesError,Qb as FetchSpreadError,Sb as FetchSpreadsError,gg 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,Pf as ListSeriesError,_f as ListSportsError,eg as ListTagsError,mg as ListTeamsError,Bc as ListTraderLeaderboardError,pa as ListTradesError,la as ListUserEarningsAndMarketsConfigError,ha as ListUserEarningsForDayError,Ze as MergeComboPositionError,Xe as MergeMarketPositionError,We as MergePositionsError,fe as OpenPerpsSessionError,rf 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,og as PrepareErc20TransferError,Ia as PrepareGaslessTransactionError,qd as PrepareLimitOrderError,ud as PrepareLimitOrderPostingError,od as PrepareMarketOrderError,sd as PrepareMarketOrderPostingError,Te as PrepareMergeComboPositionError,Re as PrepareMergeMarketPositionError,Qe as PrepareMergePositionsError,he as PreparePerpsDepositError,ef as PrepareRedeemComboPositionError,bf as PrepareRedeemMarketPositionsError,af as PrepareRedeemPositionsError,He as PrepareSplitComboPositionError,Fe as PrepareSplitMarketPositionError,Ee as PrepareSplitPositionError,_a as PrepareTradingApprovalsError,hf as RedeemPositionsError,uf as RequestComboQuoteError,Cb as ResolveConditionByTokenError,qb as RevokeBuilderApiKeyError,ge as RevokePerpsCredentialsError,Yf as RevokeSessionKeyError,of as RfqCancelQuoteError,nf as RfqCancelQuoteRejectedError,Ef as RfqConfirmationDecision,qf as RfqConfirmationError,pf as RfqConfirmationRejectedError,Ff as RfqDirection,Gf as RfqExecutionStatus,Hf as RfqKnownErrorCode,mf as RfqQuoteError,lf as RfqQuoteRejectedError,If as RfqRejectionCode,tf as RfqRequestRejectedError,Jf as RfqRequestedSizeUnit,Kf as RfqSide,Lf as RfqStatus,Nf as SearchError,Mf as SearchSort,Tf as SessionKeyKnownScope,ab as SetupTradingApprovalsError,Ne as SplitComboPositionError,Le as SplitMarketPositionError,Ke as SplitPositionError,cg as SubscribeError,qg as TransferErc20Error,ba as UpdateBalanceAllowanceError,Od as UpdatePerpsLeverageError,Pd as UpdatePerpsMarginError,yf as WaitForComboFillError,Qa as WaitForGaslessTransactionError,wd as WaitForOrderFillSettlementError,je as WithdrawFromPerpsError,xf as acceptComboQuote,Za as approveErc1155ForAll,Va as approveErc20,Xf 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,kf as fetchPublicProfile,lg as fetchRelatedTagResources,jg as fetchRelatedTags,oa as fetchRewardPercentages,Bf as fetchRfqStatus,Sf as fetchSeries,Vf as fetchSessionKeys,bg as fetchSportsMarketTypes,Rb as fetchSpread,Tb as fetchSpreads,hg 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,Qf as listSeries,$f as listSports,fg as listTags,ng as listTeams,Cc as listTraderLeaderboard,qa as listTrades,ma as listUserEarningsAndMarketsConfig,ia as listUserEarningsForDay,_e as mergeComboPosition,Ye as mergeMarketPosition,$e as mergePositions,ke as openPerpsSession,sf 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,pg as prepareErc20Transfer,Ja as prepareGaslessTransaction,rd as prepareLimitOrder,vd as prepareLimitOrderPosting,pd as prepareMarketOrder,td as prepareMarketOrderPosting,Ue as prepareMergeComboPosition,Se as prepareMergeMarketPosition,Ve as prepareMergePositions,me as preparePerpsDeposit,ff as prepareRedeemComboPosition,cf as prepareRedeemMarketPositions,df as prepareRedeemPosition,gf as prepareRedeemPositions,Ie as prepareSplitComboPosition,Ge as prepareSplitMarketPosition,Je as prepareSplitPosition,$a as prepareTradingApprovals,if as redeemPositions,vf as requestComboQuote,Na as resignDepositWalletExecuteRequest,Db as resolveConditionByToken,hd as resolveEstimatedMarketPrice,id as resolveMarketPriceFromOrderBook,rb as revokeBuilderApiKey,le as revokePerpsCredentials,Zf as revokeSessionKey,Of as search,bb as setupTradingApprovals,nd as signOrder,Oe as splitComboPosition,Me as splitMarketPosition,Pe as splitPosition,dg as subscribe,rg as transferErc20,ca as updateBalanceAllowance,zf as waitForComboFill,xd as waitForOrderFillSettlement,oe as withdrawFromPerps}from'../chunk-RUTB3ZZX.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,IA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,CAAQA,EAAM,OAAA,CAAU,gBAAA,CAAA,CACvD,OAAO,IAAI2C,EAAaC,CAAAA,CAAK,CAAE,KAAA,CAAO5C,CAAM,CAAC,CAC/C,CACF,EAEO,SAAS6C,KAIXC,CAAAA,CACmE,CACtE,OAAO,CACL,QAAQ9C,CAAAA,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"]}