@polymarket/client 0.8.1 → 0.9.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.
@@ -320,7 +320,7 @@ declare const FetchExecuteParamsRequestSchema: z.ZodObject<{
320
320
  type FetchExecuteParamsRequest = z.input<typeof FetchExecuteParamsRequestSchema>;
321
321
  type FetchExecuteParamsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
322
322
  declare const FetchExecuteParamsError: {
323
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
323
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
324
324
  };
325
325
  /**
326
326
  * Fetches the parameters needed to prepare a low-level transaction submission.
@@ -343,7 +343,7 @@ declare const IsWalletDeployedRequestSchema: z.ZodObject<{
343
343
  type IsWalletDeployedRequest = z.input<typeof IsWalletDeployedRequestSchema>;
344
344
  type IsWalletDeployedError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
345
345
  declare const IsWalletDeployedError: {
346
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
346
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
347
347
  };
348
348
  /**
349
349
  * Checks whether a wallet is deployed for relayer-backed transactions.
@@ -368,7 +368,7 @@ declare function isWalletDeployed(client: BaseClient, request?: IsWalletDeployed
368
368
  declare const GaslessTransactionMetadataSchema: z.ZodString;
369
369
  type DeployDepositWalletError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
370
370
  declare const DeployDepositWalletError: {
371
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
371
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
372
372
  };
373
373
  /**
374
374
  * Deploys a Deposit Wallet for the authenticated signer.
@@ -411,7 +411,7 @@ type GaslessWorkflowRequest = RequestAddressRequest | SignGaslessMessageRequest
411
411
  type GaslessWorkflow = AsyncGenerator<GaslessWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
412
412
  type PrepareGaslessTransactionError = ExecuteGaslessError | FetchExecuteParamsError | UserInputError;
413
413
  declare const PrepareGaslessTransactionError: {
414
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
414
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
415
415
  };
416
416
  /**
417
417
  * Starts preparing a low-level transaction workflow from one or more calls.
@@ -426,7 +426,7 @@ declare function prepareGaslessTransaction(client: BaseSecureClient, request: Pr
426
426
  type ExecuteGaslessError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
427
427
  type WaitForGaslessTransactionError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | TimeoutError | TransactionFailedError;
428
428
  declare const WaitForGaslessTransactionError: {
429
- isError(error: unknown): error is TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
429
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError;
430
430
  };
431
431
 
432
432
  declare const PageSizeSchema: z.ZodNumber;
@@ -471,7 +471,7 @@ declare const ListTradesRequestSchema: z.ZodObject<{
471
471
  type ListTradesRequest = z.input<typeof ListTradesRequestSchema>;
472
472
  type ListTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
473
473
  declare const ListTradesError: {
474
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
474
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
475
475
  };
476
476
  /**
477
477
  * Lists trades for a wallet, market, or event.
@@ -538,7 +538,7 @@ declare const ListActivityRequestSchema: z.ZodObject<{
538
538
  type ListActivityRequest = z.input<typeof ListActivityRequestSchema>;
539
539
  type ListActivityError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
540
540
  declare const ListActivityError: {
541
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
541
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
542
542
  };
543
543
  /**
544
544
  * Lists wallet activity.
@@ -590,7 +590,7 @@ declare const ListComboActivityRequestSchema: z.ZodObject<{
590
590
  type ListComboActivityRequest = z.input<typeof ListComboActivityRequestSchema>;
591
591
  type ListComboActivityError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
592
592
  declare const ListComboActivityError: {
593
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
593
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
594
594
  };
595
595
  /**
596
596
  * Lists combo lifecycle activity for a wallet.
@@ -655,7 +655,7 @@ declare const ListPositionsRequestSchema: z.ZodObject<{
655
655
  type ListPositionsRequest = z.input<typeof ListPositionsRequestSchema>;
656
656
  type ListPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
657
657
  declare const ListPositionsError: {
658
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
658
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
659
659
  };
660
660
  /**
661
661
  * Lists current positions for a wallet.
@@ -718,7 +718,7 @@ declare const ListClosedPositionsRequestSchema: z.ZodObject<{
718
718
  type ListClosedPositionsRequest = z.input<typeof ListClosedPositionsRequestSchema>;
719
719
  type ListClosedPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
720
720
  declare const ListClosedPositionsError: {
721
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
721
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
722
722
  };
723
723
  /**
724
724
  * Lists closed positions for a wallet.
@@ -779,7 +779,7 @@ type ListComboPositionsRequest = Omit<z.input<typeof ListComboPositionsRequestSc
779
779
  };
780
780
  type ListComboPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
781
781
  declare const ListComboPositionsError: {
782
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
782
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
783
783
  };
784
784
  /**
785
785
  * Lists combo positions for a wallet.
@@ -848,7 +848,7 @@ declare const FetchPortfolioValueRequestSchema: z.ZodObject<{
848
848
  type FetchPortfolioValueRequest = z.input<typeof FetchPortfolioValueRequestSchema>;
849
849
  type FetchPortfolioValueError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
850
850
  declare const FetchPortfolioValueError: {
851
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
851
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
852
852
  };
853
853
  /**
854
854
  * Fetches the total value for a wallet's positions.
@@ -875,7 +875,7 @@ declare const FetchTradedMarketCountRequestSchema: z.ZodObject<{
875
875
  type FetchTradedMarketCountRequest = z.input<typeof FetchTradedMarketCountRequestSchema>;
876
876
  type FetchTradedMarketCountError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
877
877
  declare const FetchTradedMarketCountError: {
878
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
878
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
879
879
  };
880
880
  /**
881
881
  * Fetches the total number of markets a wallet has traded.
@@ -902,7 +902,7 @@ declare const DownloadAccountingSnapshotRequestSchema: z.ZodObject<{
902
902
  type DownloadAccountingSnapshotRequest = z.input<typeof DownloadAccountingSnapshotRequestSchema>;
903
903
  type DownloadAccountingSnapshotError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
904
904
  declare const DownloadAccountingSnapshotError: {
905
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
905
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
906
906
  };
907
907
  /**
908
908
  * Downloads an accounting snapshot archive for a wallet.
@@ -932,7 +932,7 @@ type DefaultAccountWallet<TRequest extends {
932
932
  *
933
933
  * @defaultValue `client.account.wallet`
934
934
  */
935
- user?: TRequest['user'];
935
+ user?: string;
936
936
  }>;
937
937
  type SecureListPositionsRequest = DefaultAccountWallet<ListPositionsRequest>;
938
938
  type SecureListClosedPositionsRequest = DefaultAccountWallet<ListClosedPositionsRequest>;
@@ -1504,7 +1504,7 @@ type DataActions = {
1504
1504
  *
1505
1505
  * @example
1506
1506
  * ```ts
1507
- * const midpoint = await client.fetchMidpoint({ assetId: '123' });
1507
+ * const midpoint = await client.fetchMidpoint({ assetId: '0x0122…0000' });
1508
1508
  * ```
1509
1509
  */
1510
1510
  fetchMidpoint(request: FetchMidpointRequest): Promise<DecimalString>;
@@ -1516,7 +1516,7 @@ type DataActions = {
1516
1516
  *
1517
1517
  * @example
1518
1518
  * ```ts
1519
- * const midpoints = await client.fetchMidpoints([{ assetId: '123' }]);
1519
+ * const midpoints = await client.fetchMidpoints([{ assetId: '0x0122…0000' }]);
1520
1520
  * ```
1521
1521
  */
1522
1522
  fetchMidpoints(request: FetchMidpointsRequest): Promise<Midpoints>;
@@ -1528,7 +1528,7 @@ type DataActions = {
1528
1528
  *
1529
1529
  * @example
1530
1530
  * ```ts
1531
- * const price = await client.fetchPrice({ assetId: '123', side: OrderSide.BUY });
1531
+ * const price = await client.fetchPrice({ assetId: '0x0122…0000', side: OrderSide.BUY });
1532
1532
  * ```
1533
1533
  */
1534
1534
  fetchPrice(request: FetchPriceRequest): Promise<DecimalString>;
@@ -1540,7 +1540,7 @@ type DataActions = {
1540
1540
  *
1541
1541
  * @example
1542
1542
  * ```ts
1543
- * const prices = await client.fetchPrices([{ assetId: '123', side: OrderSide.BUY }]);
1543
+ * const prices = await client.fetchPrices([{ assetId: '0x0122…0000', side: OrderSide.BUY }]);
1544
1544
  * ```
1545
1545
  */
1546
1546
  fetchPrices(request: FetchPricesRequest): Promise<Prices>;
@@ -1552,7 +1552,7 @@ type DataActions = {
1552
1552
  *
1553
1553
  * @example
1554
1554
  * ```ts
1555
- * const book = await client.fetchOrderBook({ assetId: '123' });
1555
+ * const book = await client.fetchOrderBook({ assetId: '0x0122…0000' });
1556
1556
  * ```
1557
1557
  */
1558
1558
  fetchOrderBook(request: FetchOrderBookRequest): Promise<OrderBook>;
@@ -1564,7 +1564,7 @@ type DataActions = {
1564
1564
  *
1565
1565
  * @example
1566
1566
  * ```ts
1567
- * const books = await client.fetchOrderBooks([{ assetId: '123' }]);
1567
+ * const books = await client.fetchOrderBooks([{ assetId: '0x0122…0000' }]);
1568
1568
  * ```
1569
1569
  */
1570
1570
  fetchOrderBooks(request: FetchOrderBooksRequest): Promise<OrderBook[]>;
@@ -1576,7 +1576,7 @@ type DataActions = {
1576
1576
  *
1577
1577
  * @example
1578
1578
  * ```ts
1579
- * const spread = await client.fetchSpread({ assetId: '123' });
1579
+ * const spread = await client.fetchSpread({ assetId: '0x0122…0000' });
1580
1580
  * ```
1581
1581
  */
1582
1582
  fetchSpread(request: FetchSpreadRequest): Promise<DecimalString>;
@@ -1588,7 +1588,7 @@ type DataActions = {
1588
1588
  *
1589
1589
  * @example
1590
1590
  * ```ts
1591
- * const spreads = await client.fetchSpreads([{ assetId: '123' }]);
1591
+ * const spreads = await client.fetchSpreads([{ assetId: '0x0122…0000' }]);
1592
1592
  * ```
1593
1593
  */
1594
1594
  fetchSpreads(request: FetchSpreadsRequest): Promise<Spreads>;
@@ -1602,7 +1602,7 @@ type DataActions = {
1602
1602
  *
1603
1603
  * @example
1604
1604
  * ```ts
1605
- * const trade = await client.fetchLastTradePrice({ assetId: '123' });
1605
+ * const trade = await client.fetchLastTradePrice({ assetId: '0x0122…0000' });
1606
1606
  *
1607
1607
  * // trade === LastTradePrice | null
1608
1608
  * ```
@@ -1619,8 +1619,8 @@ type DataActions = {
1619
1619
  *
1620
1620
  * @example
1621
1621
  * ```ts
1622
- * const trades = await client.fetchLastTradePrices([{ assetId: '123' }]);
1623
- * const trade = trades.find((candidate) => candidate.assetId === '123');
1622
+ * const trades = await client.fetchLastTradePrices([{ assetId: '0x0122…0000' }]);
1623
+ * const trade = trades.find((candidate) => candidate.assetId === '0x0122…0000');
1624
1624
  * ```
1625
1625
  */
1626
1626
  fetchLastTradePrices(request: FetchLastTradePricesRequest): Promise<LastTradePriceForAsset[]>;
@@ -1632,7 +1632,7 @@ type DataActions = {
1632
1632
  *
1633
1633
  * @example
1634
1634
  * ```ts
1635
- * const history = await client.fetchPriceHistory({ assetId: '123', interval: '1d' });
1635
+ * const history = await client.fetchPriceHistory({ assetId: '0x0122…0000', interval: '1d' });
1636
1636
  * ```
1637
1637
  */
1638
1638
  fetchPriceHistory(request: FetchPriceHistoryRequest): Promise<PriceHistoryPoint[]>;
@@ -1648,20 +1648,11 @@ type DataActions = {
1648
1648
  * @example
1649
1649
  * ```ts
1650
1650
  * const price = await client.estimateMarketPrice({
1651
- * tokenId: '123',
1651
+ * assetId: '0x0122…0000',
1652
1652
  * side: OrderSide.BUY,
1653
1653
  * amount: 10,
1654
1654
  * });
1655
1655
  * ```
1656
- *
1657
- * @example Position-backed outcome
1658
- * ```ts
1659
- * const price = await client.estimateMarketPrice({
1660
- * positionId: '456',
1661
- * side: OrderSide.SELL,
1662
- * shares: 10,
1663
- * });
1664
- * ```
1665
1656
  */
1666
1657
  estimateMarketPrice(request: EstimateMarketPriceRequest): Promise<number>;
1667
1658
  /**
@@ -2734,7 +2725,7 @@ declare class RfqQuoteRejectedError extends PolymarketError {
2734
2725
  }
2735
2726
  type RfqQuoteError = ConnectionLostError | RfqQuoteRejectedError | SigningError | TimeoutError | TransportError | UserInputError;
2736
2727
  declare const RfqQuoteError: {
2737
- isError(error: unknown): error is SigningError | TransportError | UserInputError | ConnectionLostError | TimeoutError | RfqQuoteRejectedError;
2728
+ isError(error: unknown): error is UserInputError | TransportError | ConnectionLostError | TimeoutError | SigningError | RfqQuoteRejectedError;
2738
2729
  };
2739
2730
  type RfqCancelQuoteRejectedErrorOptions = {
2740
2731
  /** RFQ error code for the rejected cancellation request. */
@@ -2883,7 +2874,7 @@ interface RfqSession extends AsyncIterable<RfqEvent> {
2883
2874
  }
2884
2875
  type OpenRfqSessionError = ConnectionLostError | TransportError | UserInputError;
2885
2876
  declare const OpenRfqSessionError: {
2886
- isError(error: unknown): error is TransportError | UserInputError | ConnectionLostError;
2877
+ isError(error: unknown): error is UserInputError | TransportError | ConnectionLostError;
2887
2878
  };
2888
2879
  /**
2889
2880
  * Opens an RFQ event session.
@@ -3002,7 +2993,7 @@ type RequestComboQuoteResult = {
3002
2993
  };
3003
2994
  type RequestComboQuoteError = RateLimitError | RfqRequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
3004
2995
  declare const RequestComboQuoteError: {
3005
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RateLimitError | RfqRequestRejectedError;
2996
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RateLimitError | RfqRequestRejectedError;
3006
2997
  };
3007
2998
  /**
3008
2999
  * Requests a quote for a combo of positions.
@@ -3104,7 +3095,7 @@ type AcceptComboQuoteResult = {
3104
3095
  };
3105
3096
  type AcceptComboQuoteError = CancelledSigningError | RateLimitError | RfqRequestRejectedError | SigningError | TimeoutError | TransportError | UnexpectedResponseError | UserInputError;
3106
3097
  declare const AcceptComboQuoteError: {
3107
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RateLimitError | TimeoutError | RfqRequestRejectedError;
3098
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RateLimitError | TimeoutError | CancelledSigningError | SigningError | RfqRequestRejectedError;
3108
3099
  };
3109
3100
  /**
3110
3101
  * Accepts a self-contained combo quote, signing the acceptance order for the
@@ -3171,7 +3162,7 @@ type WaitForComboFillResult = {
3171
3162
  };
3172
3163
  type WaitForComboFillError = RateLimitError | RfqRequestRejectedError | TimeoutError | TransportError | UnexpectedResponseError | UserInputError;
3173
3164
  declare const WaitForComboFillError: {
3174
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RateLimitError | TimeoutError | RfqRequestRejectedError;
3165
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RateLimitError | TimeoutError | RfqRequestRejectedError;
3175
3166
  };
3176
3167
  /**
3177
3168
  * Waits for an accepted RFQ to reach a terminal state.
@@ -3211,7 +3202,7 @@ type FetchRfqStatusParams = {
3211
3202
  type RfqStatusResult = BuilderRfqStatusResponse;
3212
3203
  type FetchRfqStatusError = RateLimitError | RfqRequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
3213
3204
  declare const FetchRfqStatusError: {
3214
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RateLimitError | RfqRequestRejectedError;
3205
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RateLimitError | RfqRequestRejectedError;
3215
3206
  };
3216
3207
  /**
3217
3208
  * Fetches the status of an accepted RFQ.
@@ -3503,13 +3494,13 @@ type SessionKeyActions = {
3503
3494
  /**
3504
3495
  * Revokes a session key authorized for the Deposit Wallet.
3505
3496
  *
3506
- * Revocation may take several minutes while existing activity is canceled and
3507
- * the on-chain revocation is confirmed.
3497
+ * Returns once the session key is removed from the active-key registry and can
3498
+ * no longer be used. The on-chain transaction may still be pending.
3508
3499
  * Requires API-key authentication that supports gasless transactions.
3509
3500
  *
3510
3501
  * @example
3511
3502
  * ```ts
3512
- * const revocation = await client.revokeSessionKey({
3503
+ * await client.revokeSessionKey({
3513
3504
  * address: sessionAddress,
3514
3505
  * });
3515
3506
  * ```
@@ -3517,7 +3508,7 @@ type SessionKeyActions = {
3517
3508
  * @throws {@link RevokeSessionKeyError}
3518
3509
  * Thrown on failure.
3519
3510
  */
3520
- revokeSessionKey(request: RevokeSessionKeyRequest): Promise<RevokeSessionKeyResult>;
3511
+ revokeSessionKey(request: RevokeSessionKeyRequest): Promise<void>;
3521
3512
  };
3522
3513
  declare function sessionKeyActions(client: BaseSecureClient): SessionKeyActions;
3523
3514
 
@@ -3574,7 +3565,7 @@ declare const CancelOrdersRequestSchema: z.ZodObject<{
3574
3565
  type CancelOrderRequest = z.input<typeof CancelOrderRequestSchema>;
3575
3566
  type CancelOrderError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3576
3567
  declare const CancelOrderError: {
3577
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3568
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3578
3569
  };
3579
3570
  /**
3580
3571
  * Cancels a single open order for the authenticated account.
@@ -3598,7 +3589,7 @@ declare function cancelOrder(client: BaseSecureClient, request: CancelOrderReque
3598
3589
  type CancelOrdersRequest = z.input<typeof CancelOrdersRequestSchema>;
3599
3590
  type CancelOrdersError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3600
3591
  declare const CancelOrdersError: {
3601
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3592
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3602
3593
  };
3603
3594
  /**
3604
3595
  * Cancels multiple open orders for the authenticated account.
@@ -3621,7 +3612,7 @@ declare const CancelOrdersError: {
3621
3612
  declare function cancelOrders(client: BaseSecureClient, request: CancelOrdersRequest): Promise<CancelOrdersResponse>;
3622
3613
  type CancelAllError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError;
3623
3614
  declare const CancelAllError: {
3624
- isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3615
+ isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3625
3616
  };
3626
3617
  /**
3627
3618
  * Cancels all open orders for the authenticated account.
@@ -3653,7 +3644,7 @@ type CancelMarketOrdersRequest = {
3653
3644
  };
3654
3645
  type CancelMarketOrdersError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3655
3646
  declare const CancelMarketOrdersError: {
3656
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3647
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3657
3648
  };
3658
3649
  /**
3659
3650
  * Cancels all open orders for the authenticated account that match the market
@@ -3676,20 +3667,24 @@ declare const CancelMarketOrdersError: {
3676
3667
  */
3677
3668
  declare function cancelMarketOrders(client: BaseSecureClient, request: CancelMarketOrdersRequest): Promise<CancelOrdersResponse>;
3678
3669
 
3679
- /**
3680
- * Identifies the asset to trade. Provide exactly one identifier.
3681
- */
3682
- type OrderAsset = {
3683
- /** CTF token identifier. */
3684
- tokenId: string;
3685
- positionId?: never;
3686
- } | {
3687
- /** Polymarket V2 position identifier. */
3688
- positionId: string;
3670
+ type EstimateMarketBuyPriceRequest = {
3671
+ /** Identifier for a CTF token or Polymarket V2 position. */
3672
+ assetId: string;
3689
3673
  tokenId?: never;
3690
- };
3691
-
3692
- type EstimateMarketBuyPriceRequest = OrderAsset & {
3674
+ /** Buy side of the estimate. */
3675
+ side: OrderSide.BUY;
3676
+ /** Desired USD buy notional to match against current ask depth. */
3677
+ amount: number | string;
3678
+ /**
3679
+ * Market order execution type to model.
3680
+ *
3681
+ * @defaultValue OrderType.FOK
3682
+ */
3683
+ orderType?: OrderType.FAK | OrderType.FOK;
3684
+ } | {
3685
+ assetId?: never;
3686
+ /** @deprecated Use `assetId`. */
3687
+ tokenId: string;
3693
3688
  /** Buy side of the estimate. */
3694
3689
  side: OrderSide.BUY;
3695
3690
  /** Desired USD buy notional to match against current ask depth. */
@@ -3701,10 +3696,27 @@ type EstimateMarketBuyPriceRequest = OrderAsset & {
3701
3696
  */
3702
3697
  orderType?: OrderType.FAK | OrderType.FOK;
3703
3698
  };
3704
- type EstimateMarketSellPriceRequest = OrderAsset & {
3699
+ type EstimateMarketSellPriceRequest = {
3700
+ /** Identifier for a CTF token or Polymarket V2 position. */
3701
+ assetId: string;
3702
+ tokenId?: never;
3705
3703
  /** Sell side of the estimate. */
3706
3704
  side: OrderSide.SELL;
3707
- /** Number of conditional-token shares to match against current bid depth. */
3705
+ /** Number of outcome shares to match against current bid depth. */
3706
+ shares: number | string;
3707
+ /**
3708
+ * Market order execution type to model.
3709
+ *
3710
+ * @defaultValue OrderType.FOK
3711
+ */
3712
+ orderType?: OrderType.FAK | OrderType.FOK;
3713
+ } | {
3714
+ assetId?: never;
3715
+ /** @deprecated Use `assetId`. */
3716
+ tokenId: string;
3717
+ /** Sell side of the estimate. */
3718
+ side: OrderSide.SELL;
3719
+ /** Number of outcome shares to match against current bid depth. */
3708
3720
  shares: number | string;
3709
3721
  /**
3710
3722
  * Market order execution type to model.
@@ -3716,7 +3728,7 @@ type EstimateMarketSellPriceRequest = OrderAsset & {
3716
3728
  type EstimateMarketPriceRequest = EstimateMarketBuyPriceRequest | EstimateMarketSellPriceRequest;
3717
3729
  type EstimateMarketPriceError = InsufficientLiquidityError | RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
3718
3730
  declare const EstimateMarketPriceError: {
3719
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | InsufficientLiquidityError;
3731
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | InsufficientLiquidityError;
3720
3732
  };
3721
3733
  /**
3722
3734
  * Estimates the price level a market order would cross at current book depth.
@@ -3737,8 +3749,7 @@ declare const EstimateMarketPriceError: {
3737
3749
  * @example
3738
3750
  * ```ts
3739
3751
  * const price = await estimateMarketPrice(client, {
3740
- * tokenId:
3741
- * '8501497159083948713316135768103773293754490207922884688769443031624417212426',
3752
+ * assetId: '0x0122…0000',
3742
3753
  * side: OrderSide.BUY,
3743
3754
  * amount: 10,
3744
3755
  * });
@@ -3746,117 +3757,128 @@ declare const EstimateMarketPriceError: {
3746
3757
  * // price === 0.53
3747
3758
  * ```
3748
3759
  *
3749
- * @example Position-backed outcome
3750
- * ```ts
3751
- * const price = await estimateMarketPrice(client, {
3752
- * positionId: '456',
3753
- * side: OrderSide.SELL,
3754
- * shares: 10,
3755
- * });
3756
- * ```
3757
- *
3758
3760
  * @throws {@link EstimateMarketPriceError}
3759
3761
  * Thrown on failure.
3760
3762
  */
3761
3763
  declare function estimateMarketPrice(client: BaseClient, request: EstimateMarketPriceRequest): Promise<number>;
3762
3764
 
3763
- type BasePrepareMarketOrderRequest = OrderAsset & {
3764
- /** Optional builder attribution code. */
3765
- builderCode?: HexString;
3765
+ type PrepareMarketBuyOrderRequest = {
3766
+ /** Identifier for a CTF token or Polymarket V2 position. */
3767
+ assetId: string;
3768
+ tokenId?: never;
3769
+ /** Buy side of the order. */
3770
+ side: OrderSide.BUY;
3766
3771
  /**
3767
- * Specifies the type of order execution.
3768
- * - FOK (Fill or Kill): must be filled entirely or not at all
3769
- * - FAK (Fill and Kill): partially fills, cancels any unfilled remainder
3770
- *
3771
- * @defaultValue OrderType.FAK
3772
+ * Desired USD notional to buy, before market and builder taker fees.
3773
+ * Fees are paid on top unless `maxSpend` limits the all-in spend.
3774
+ */
3775
+ amount: number | string;
3776
+ /**
3777
+ * Optional estimated all-in USD spend target, including applicable fees.
3778
+ * The SDK reduces the signed buy amount when necessary to stay within it.
3772
3779
  */
3780
+ maxSpend?: number | string;
3781
+ /** Highest acceptable price per share; the order only fills at this price or better. */
3782
+ maxPrice?: number | string;
3783
+ /** Optional builder attribution code. */
3784
+ builderCode?: string;
3785
+ /** @defaultValue OrderType.FAK */
3773
3786
  orderType?: OrderType.FAK | OrderType.FOK;
3774
- };
3775
- type PrepareMarketBuyOrderRequest = BasePrepareMarketOrderRequest & {
3787
+ } | {
3788
+ assetId?: never;
3789
+ /** @deprecated Use `assetId`. */
3790
+ tokenId: string;
3776
3791
  /** Buy side of the order. */
3777
3792
  side: OrderSide.BUY;
3778
3793
  /**
3779
3794
  * Desired USD notional to buy, before market and builder taker fees.
3780
- *
3781
- * By default, the SDK prepares the order for this full buy amount and applicable
3782
- * fees are paid on top. Set `maxSpend` to let the SDK resize the amount against
3783
- * an estimated all-in spend target.
3795
+ * Fees are paid on top unless `maxSpend` limits the all-in spend.
3784
3796
  */
3785
3797
  amount: number | string;
3786
3798
  /**
3787
- * Optional estimated all-in USD spend target for BUY market orders, including
3788
- * market and builder taker fees.
3789
- *
3790
- * When provided, the SDK keeps `amount` unchanged if `maxSpend` covers the
3791
- * requested buy amount plus estimated fees. Otherwise, the SDK reduces the
3792
- * signed buy amount using the order price and recently resolved fee rates.
3793
- *
3794
- * Set `maxSpend` equal to `amount` when the requested amount should include
3795
- * fees. Leave it unset to pay fees on top of `amount`.
3799
+ * Optional estimated all-in USD spend target, including applicable fees.
3800
+ * The SDK reduces the signed buy amount when necessary to stay within it.
3796
3801
  */
3797
3802
  maxSpend?: number | string;
3798
- /**
3799
- * Highest acceptable price per share for the BUY.
3800
- *
3801
- * The order may only fill at this price or better. For FOK, the full
3802
- * `amount` must fill within this bound or the order is killed. For FAK, any
3803
- * immediately available liquidity within this bound fills and the remainder
3804
- * is canceled.
3805
- */
3803
+ /** Highest acceptable price per share; the order only fills at this price or better. */
3806
3804
  maxPrice?: number | string;
3805
+ /** Optional builder attribution code. */
3806
+ builderCode?: string;
3807
+ /** @defaultValue OrderType.FAK */
3808
+ orderType?: OrderType.FAK | OrderType.FOK;
3807
3809
  };
3808
- type PrepareMarketSellOrderRequest = BasePrepareMarketOrderRequest & {
3810
+ type PrepareMarketSellOrderRequest = {
3811
+ /** Identifier for a CTF token or Polymarket V2 position. */
3812
+ assetId: string;
3813
+ tokenId?: never;
3809
3814
  /** Sell side of the order. */
3810
3815
  side: OrderSide.SELL;
3811
- /**
3812
- * Number of outcome shares to sell.
3813
- *
3814
- * This is the human-readable token amount: `1` means one full share, not one
3815
- * 6-decimal base unit.
3816
- */
3816
+ /** Number of outcome shares to sell in human-readable units. */
3817
3817
  shares: number | string;
3818
- /**
3819
- * Lowest acceptable price per share for the SELL.
3820
- *
3821
- * The order may only fill at this price or better. For FOK, all `shares`
3822
- * must fill within this bound or the order is killed. For FAK, any
3823
- * immediately available liquidity within this bound fills and the remainder
3824
- * is canceled.
3825
- */
3818
+ /** Lowest acceptable price per share; the order only fills at this price or better. */
3826
3819
  minPrice?: number | string;
3820
+ /** Optional builder attribution code. */
3821
+ builderCode?: string;
3822
+ /** @defaultValue OrderType.FAK */
3823
+ orderType?: OrderType.FAK | OrderType.FOK;
3824
+ } | {
3825
+ assetId?: never;
3826
+ /** @deprecated Use `assetId`. */
3827
+ tokenId: string;
3828
+ /** Sell side of the order. */
3829
+ side: OrderSide.SELL;
3830
+ /** Number of outcome shares to sell in human-readable units. */
3831
+ shares: number | string;
3832
+ /** Lowest acceptable price per share; the order only fills at this price or better. */
3833
+ minPrice?: number | string;
3834
+ /** Optional builder attribution code. */
3835
+ builderCode?: string;
3836
+ /** @defaultValue OrderType.FAK */
3837
+ orderType?: OrderType.FAK | OrderType.FOK;
3827
3838
  };
3828
3839
  type PrepareMarketOrderRequest = PrepareMarketBuyOrderRequest | PrepareMarketSellOrderRequest;
3829
- type PrepareLimitOrderRequest = OrderAsset & {
3830
- /** Price used to create the order */
3840
+ type PrepareLimitOrderRequest = {
3841
+ /** Identifier for a CTF token or Polymarket V2 position. */
3842
+ assetId: string;
3843
+ tokenId?: never;
3844
+ /** Price used to create the order. */
3831
3845
  price: number | string;
3846
+ /** Order size in outcome shares, expressed in human-readable units. */
3847
+ size: number | string;
3848
+ /** Side of the order. */
3849
+ side: OrderSide;
3850
+ /** Optional builder attribution code. */
3851
+ builderCode?: string;
3832
3852
  /**
3833
- * Order size in outcome shares.
3834
- *
3835
- * This is the human-readable token amount: `1` means one full share, not one
3836
- * 6-decimal base unit.
3853
+ * Posts the prepared order as post-only when submitted.
3854
+ * @defaultValue false
3855
+ */
3856
+ postOnly?: boolean;
3857
+ /**
3858
+ * Unix timestamp in seconds after which the order expires. When provided,
3859
+ * it must be at least 3 minutes in the future and creates a GTD order.
3837
3860
  */
3861
+ expiration?: number;
3862
+ } | {
3863
+ assetId?: never;
3864
+ /** @deprecated Use `assetId`. */
3865
+ tokenId: string;
3866
+ /** Price used to create the order. */
3867
+ price: number | string;
3868
+ /** Order size in outcome shares, expressed in human-readable units. */
3838
3869
  size: number | string;
3839
- /** Side of the order */
3870
+ /** Side of the order. */
3840
3871
  side: OrderSide;
3841
3872
  /** Optional builder attribution code. */
3842
- builderCode?: HexString;
3873
+ builderCode?: string;
3843
3874
  /**
3844
3875
  * Posts the prepared order as post-only when submitted.
3845
- *
3846
3876
  * @defaultValue false
3847
3877
  */
3848
3878
  postOnly?: boolean;
3849
3879
  /**
3850
- * Unix timestamp in seconds after which the order expires.
3851
- *
3852
- * When provided, the SDK prepares a Good-Til-Date (GTD) limit order that
3853
- * expires at the given timestamp.
3854
- *
3855
- * The timestamp must be at least 3 minutes in the future. Add your own
3856
- * buffer for network latency and clock skew when deriving it from the
3857
- * current time.
3858
- *
3859
- * When omitted, the SDK prepares a Good-Til-Cancelled (GTC) limit order.
3880
+ * Unix timestamp in seconds after which the order expires. When provided,
3881
+ * it must be at least 3 minutes in the future and creates a GTD order.
3860
3882
  */
3861
3883
  expiration?: number;
3862
3884
  };
@@ -3889,11 +3911,11 @@ type OrderPostingWorkflow = AsyncGenerator<OrderWorkflowRequest, OrderResponse,
3889
3911
  type PostOrdersRequest = SignedOrder[];
3890
3912
  type PostOrderError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3891
3913
  declare const PostOrderError: {
3892
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3914
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3893
3915
  };
3894
3916
  type PostOrdersError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
3895
3917
  declare const PostOrdersError: {
3896
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
3918
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
3897
3919
  };
3898
3920
  /**
3899
3921
  * Posts a signed order for the authenticated account.
@@ -3904,9 +3926,9 @@ declare const PostOrdersError: {
3904
3926
  * @example
3905
3927
  * ```ts
3906
3928
  * const order = await client.createMarketOrder({
3929
+ * assetId: '0x0122…0000',
3907
3930
  * amount: 10,
3908
3931
  * side: OrderSide.BUY,
3909
- * tokenId: '123',
3910
3932
  * });
3911
3933
  * const response = await postOrder(client)(order);
3912
3934
  * ```
@@ -3942,7 +3964,7 @@ type WaitForOrderFillSettlementRequest = {
3942
3964
  };
3943
3965
  type WaitForOrderFillSettlementError = RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
3944
3966
  declare const WaitForOrderFillSettlementError: {
3945
- isError(error: unknown): error is SigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
3967
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | SigningError;
3946
3968
  };
3947
3969
  /**
3948
3970
  * Waits until every fill listed in an order response reaches a terminal
@@ -3963,9 +3985,9 @@ declare const WaitForOrderFillSettlementError: {
3963
3985
  * @example
3964
3986
  * ```ts
3965
3987
  * const response = await client.placeMarketOrder({
3988
+ * assetId: '0x0122…0000',
3966
3989
  * amount: 10,
3967
3990
  * side: OrderSide.BUY,
3968
- * tokenId: '123',
3969
3991
  * });
3970
3992
  *
3971
3993
  * if (response.ok) {
@@ -3988,27 +4010,27 @@ type SecureTradingActions = {
3988
4010
  * @example Basic market buy
3989
4011
  * ```ts
3990
4012
  * const order = await client.createMarketOrder({
4013
+ * assetId: '0x0122…0000',
3991
4014
  * amount: 10,
3992
4015
  * side: OrderSide.BUY,
3993
- * tokenId: '123',
3994
4016
  * });
3995
4017
  * ```
3996
4018
  *
3997
4019
  * @example Protected market buy
3998
4020
  * ```ts
3999
4021
  * const order = await client.createMarketOrder({
4022
+ * assetId: '0x0122…0000',
4000
4023
  * amount: 10,
4001
4024
  * maxPrice: '0.55',
4002
4025
  * side: OrderSide.BUY,
4003
- * tokenId: '123',
4004
4026
  * });
4005
4027
  * ```
4006
4028
  *
4007
- * @example Position-backed market buy
4029
+ * @example Polymarket V2 market buy
4008
4030
  * ```ts
4009
4031
  * const order = await client.createMarketOrder({
4032
+ * assetId: '0x0122…0000',
4010
4033
  * amount: 10,
4011
- * positionId: '456',
4012
4034
  * side: OrderSide.BUY,
4013
4035
  * });
4014
4036
  * ```
@@ -4028,9 +4050,9 @@ type SecureTradingActions = {
4028
4050
  * @example Basic market buy
4029
4051
  * ```ts
4030
4052
  * const response = await client.placeMarketOrder({
4053
+ * assetId: '0x0122…0000',
4031
4054
  * amount: 10,
4032
4055
  * side: OrderSide.BUY,
4033
- * tokenId: '123',
4034
4056
  * });
4035
4057
  *
4036
4058
  * // response: OrderResponse
@@ -4039,10 +4061,10 @@ type SecureTradingActions = {
4039
4061
  * @example Protected market sell
4040
4062
  * ```ts
4041
4063
  * const response = await client.placeMarketOrder({
4064
+ * assetId: '0x0122…0000',
4042
4065
  * minPrice: '0.54',
4043
4066
  * shares: 10,
4044
4067
  * side: OrderSide.SELL,
4045
- * tokenId: '123',
4046
4068
  * });
4047
4069
  *
4048
4070
  * // response: OrderResponse
@@ -4051,9 +4073,9 @@ type SecureTradingActions = {
4051
4073
  * @example Market buy followed to settlement
4052
4074
  * ```ts
4053
4075
  * const response = await client.placeMarketOrder({
4076
+ * assetId: '0x0122…0000',
4054
4077
  * amount: 10,
4055
4078
  * side: OrderSide.BUY,
4056
- * tokenId: '123',
4057
4079
  * });
4058
4080
  *
4059
4081
  * if (response.ok) {
@@ -4074,22 +4096,22 @@ type SecureTradingActions = {
4074
4096
  * @throws {@link CreateLimitOrderError}
4075
4097
  * Thrown on failure.
4076
4098
  *
4077
- * @example Token-backed limit order
4099
+ * @example CTF limit order
4078
4100
  * ```ts
4079
4101
  * const order = await client.createLimitOrder({
4102
+ * assetId: '0x0122…0000',
4080
4103
  * postOnly: true,
4081
4104
  * price: 0.52,
4082
4105
  * side: OrderSide.BUY,
4083
4106
  * size: 10,
4084
- * tokenId: '123',
4085
4107
  * });
4086
4108
  * ```
4087
4109
  *
4088
- * @example Position-backed limit order
4110
+ * @example Polymarket V2 limit order
4089
4111
  * ```ts
4090
4112
  * const order = await client.createLimitOrder({
4113
+ * assetId: '0x0122…0000',
4091
4114
  * postOnly: true,
4092
- * positionId: '456',
4093
4115
  * price: 0.52,
4094
4116
  * side: OrderSide.BUY,
4095
4117
  * size: 10,
@@ -4111,11 +4133,11 @@ type SecureTradingActions = {
4111
4133
  * @example
4112
4134
  * ```ts
4113
4135
  * const response = await client.placeLimitOrder({
4136
+ * assetId: '0x0122…0000',
4114
4137
  * postOnly: true,
4115
4138
  * price: 0.52,
4116
4139
  * side: OrderSide.BUY,
4117
4140
  * size: 10,
4118
- * tokenId: '123',
4119
4141
  * });
4120
4142
  *
4121
4143
  * // response: OrderResponse
@@ -4165,9 +4187,9 @@ type SecureTradingActions = {
4165
4187
  * @example
4166
4188
  * ```ts
4167
4189
  * const response = await client.placeMarketOrder({
4190
+ * assetId: '0x0122…0000',
4168
4191
  * amount: 10,
4169
4192
  * side: OrderSide.BUY,
4170
- * tokenId: '123',
4171
4193
  * });
4172
4194
  *
4173
4195
  * if (response.ok) {
@@ -4284,7 +4306,41 @@ type SecureTradingActions = {
4284
4306
  };
4285
4307
  declare function tradingActions(client: BaseSecureClient): SecureTradingActions;
4286
4308
 
4309
+ type PublicWalletActions = {
4310
+ /**
4311
+ * Reads the approvals a wallet is missing for supported trading workflows.
4312
+ *
4313
+ * This method only reads on-chain state. It does not require a signer or
4314
+ * submit transactions.
4315
+ *
4316
+ * @throws {@link FetchTradingApprovalsStateError}
4317
+ * Thrown on failure.
4318
+ *
4319
+ * @example
4320
+ * ```ts
4321
+ * const state = await client.fetchTradingApprovalsState({
4322
+ * user: '0x1234…',
4323
+ * });
4324
+ * ```
4325
+ */
4326
+ fetchTradingApprovalsState(request: FetchTradingApprovalsStateRequest): Promise<TradingApprovalsState>;
4327
+ };
4287
4328
  type SecureWalletActions = {
4329
+ /**
4330
+ * Reads the approvals a wallet is missing for supported trading workflows.
4331
+ *
4332
+ * This method reads the authenticated account's wallet state. It only reads
4333
+ * on-chain state and does not submit transactions.
4334
+ *
4335
+ * @throws {@link FetchTradingApprovalsStateError}
4336
+ * Thrown on failure.
4337
+ *
4338
+ * @example
4339
+ * ```ts
4340
+ * const state = await client.fetchTradingApprovalsState();
4341
+ * ```
4342
+ */
4343
+ fetchTradingApprovalsState(): Promise<TradingApprovalsState>;
4288
4344
  /**
4289
4345
  * Sets up the approvals required for trading and supported position lifecycle workflows.
4290
4346
  *
@@ -4512,9 +4568,10 @@ type SecureWalletActions = {
4512
4568
  */
4513
4569
  executeCollateralReturnPlan(request: ExecuteCollateralReturnPlanRequest): Promise<TransactionHandle>;
4514
4570
  };
4571
+ declare function walletActions(client: BasePublicClient): PublicWalletActions;
4515
4572
  declare function walletActions(client: BaseSecureClient): SecureWalletActions;
4516
4573
 
4517
- type PublicActions = Prettify<DiscoveryActions & DataActions & AnalyticsActions & PublicPerpsActions & PublicAccountActions & PublicRewardsActions & PublicSubscriptionsActions>;
4574
+ type PublicActions = Prettify<DiscoveryActions & DataActions & AnalyticsActions & PublicPerpsActions & PublicAccountActions & PublicRewardsActions & PublicSubscriptionsActions & PublicWalletActions>;
4518
4575
  type SecureActions = Prettify<DiscoveryActions & DataActions & AnalyticsActions & SecurePerpsActions & SecureAccountActions & SecureRewardsActions & SecureRfqActions & SessionKeyActions & SecureSubscriptionsActions & SecureWalletActions & SecureTradingActions>;
4519
4576
  declare function allActions(client: BasePublicClient): PublicActions;
4520
4577
  declare function allActions(client: BaseSecureClient): SecureActions;
@@ -4872,7 +4929,7 @@ type SecureClientOptions = PublicClientOptions & {
4872
4929
  declare function createPublicClient(options?: PublicClientOptions): PublicClient<PublicActions, SecureActions>;
4873
4930
  type CreateSecureClientError = CancelledSigningError | DeployDepositWalletError | IsWalletDeployedError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError | WaitForGaslessTransactionError;
4874
4931
  declare const CreateSecureClientError: {
4875
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
4932
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
4876
4933
  };
4877
4934
  type SetupGaslessWalletError = UserInputError;
4878
4935
  declare const SetupGaslessWalletError: {
@@ -4895,7 +4952,7 @@ declare function createSecureClient(options: SecureClientOptions): Promise<Secur
4895
4952
 
4896
4953
  type FetchClosedOnlyModeError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
4897
4954
  declare const FetchClosedOnlyModeError: {
4898
- isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4955
+ isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
4899
4956
  };
4900
4957
  /**
4901
4958
  * Fetches whether the account is restricted to closed-only trading.
@@ -4928,7 +4985,7 @@ type ListOpenOrdersRequest = {
4928
4985
  };
4929
4986
  type ListOpenOrdersError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
4930
4987
  declare const ListOpenOrdersError: {
4931
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
4988
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
4932
4989
  };
4933
4990
  /**
4934
4991
  * Lists open orders for the authenticated account across all pages.
@@ -4972,7 +5029,7 @@ declare const FetchOrderRequestSchema: z.ZodObject<{
4972
5029
  type FetchOrderRequest = z.input<typeof FetchOrderRequestSchema>;
4973
5030
  type FetchOrderError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
4974
5031
  declare const FetchOrderError: {
4975
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5032
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
4976
5033
  };
4977
5034
  /**
4978
5035
  * Fetches a single order for the authenticated account.
@@ -5013,7 +5070,7 @@ type ListAccountTradesRequest = {
5013
5070
  };
5014
5071
  type ListAccountTradesError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5015
5072
  declare const ListAccountTradesError: {
5016
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5073
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5017
5074
  };
5018
5075
  /**
5019
5076
  * Lists trades for the authenticated account across all pages.
@@ -5053,7 +5110,7 @@ declare const ListAccountTradesError: {
5053
5110
  declare function listAccountTrades(client: BaseSecureClient, request?: ListAccountTradesRequest): Paginated<ClobTrade[]>;
5054
5111
  type FetchNotificationsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
5055
5112
  declare const FetchNotificationsError: {
5056
- isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5113
+ isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5057
5114
  };
5058
5115
  declare const DropNotificationsRequestSchema: z.ZodObject<{
5059
5116
  ids: z.ZodArray<z.ZodString>;
@@ -5076,7 +5133,7 @@ type DropNotificationsRequest = z.input<typeof DropNotificationsRequestSchema>;
5076
5133
  declare function fetchNotifications(client: BaseSecureClient): Promise<NotificationsResponse>;
5077
5134
  type DropNotificationsError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5078
5135
  declare const DropNotificationsError: {
5079
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5136
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5080
5137
  };
5081
5138
  /**
5082
5139
  * Drops notifications for the authenticated account.
@@ -5108,7 +5165,7 @@ type FetchBalanceAllowanceRequest = {
5108
5165
  };
5109
5166
  type FetchBalanceAllowanceError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5110
5167
  declare const FetchBalanceAllowanceError: {
5111
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5168
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5112
5169
  };
5113
5170
  /**
5114
5171
  * Fetches balance and allowance for the authenticated account.
@@ -5140,7 +5197,7 @@ type UpdateBalanceAllowanceRequest = {
5140
5197
  };
5141
5198
  type UpdateBalanceAllowanceError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5142
5199
  declare const UpdateBalanceAllowanceError: {
5143
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5200
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5144
5201
  };
5145
5202
  /**
5146
5203
  * Refreshes balance and allowance for the authenticated account.
@@ -5165,7 +5222,7 @@ declare const FetchOrderScoringRequestSchema: z.ZodObject<{
5165
5222
  type FetchOrderScoringRequest = z.input<typeof FetchOrderScoringRequestSchema>;
5166
5223
  type FetchOrderScoringError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5167
5224
  declare const FetchOrderScoringError: {
5168
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5225
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5169
5226
  };
5170
5227
  /**
5171
5228
  * Fetches whether a single order is currently scoring.
@@ -5189,7 +5246,7 @@ declare const FetchOrdersScoringRequestSchema: z.ZodObject<{
5189
5246
  type FetchOrdersScoringRequest = z.input<typeof FetchOrdersScoringRequestSchema>;
5190
5247
  type FetchOrdersScoringError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5191
5248
  declare const FetchOrdersScoringError: {
5192
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5249
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5193
5250
  };
5194
5251
  /**
5195
5252
  * Fetches scoring state for multiple orders.
@@ -5214,7 +5271,7 @@ declare const ListUserEarningsForDayRequestSchema: z.ZodObject<{
5214
5271
  type ListUserEarningsForDayRequest = z.input<typeof ListUserEarningsForDayRequestSchema>;
5215
5272
  type ListUserEarningsForDayError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5216
5273
  declare const ListUserEarningsForDayError: {
5217
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5274
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5218
5275
  };
5219
5276
  /**
5220
5277
  * Lists per-market earnings for the authenticated account on a given day.
@@ -5255,7 +5312,7 @@ declare function listUserEarningsForDay(client: BaseSecureClient, request: ListU
5255
5312
  type FetchTotalEarningsForUserForDayRequest = z.input<typeof ListUserEarningsForDayRequestSchema>;
5256
5313
  type FetchTotalEarningsForUserForDayError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5257
5314
  declare const FetchTotalEarningsForUserForDayError: {
5258
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5315
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5259
5316
  };
5260
5317
  /**
5261
5318
  * Fetches total earnings for the authenticated account on a given day.
@@ -5284,7 +5341,7 @@ declare const ListUserEarningsAndMarketsConfigRequestSchema: z.ZodObject<{
5284
5341
  type ListUserEarningsAndMarketsConfigRequest = z.input<typeof ListUserEarningsAndMarketsConfigRequestSchema>;
5285
5342
  type ListUserEarningsAndMarketsConfigError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
5286
5343
  declare const ListUserEarningsAndMarketsConfigError: {
5287
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5344
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5288
5345
  };
5289
5346
  /**
5290
5347
  * Lists market reward configuration and earnings for the authenticated account on a given day.
@@ -5324,7 +5381,7 @@ declare const ListUserEarningsAndMarketsConfigError: {
5324
5381
  declare function listUserEarningsAndMarketsConfig(client: BaseSecureClient, request: ListUserEarningsAndMarketsConfigRequest): Paginated<UserRewardsEarning[]>;
5325
5382
  type FetchRewardPercentagesError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError;
5326
5383
  declare const FetchRewardPercentagesError: {
5327
- isError(error: unknown): error is SigningError | TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5384
+ isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
5328
5385
  };
5329
5386
  /**
5330
5387
  * Fetches reward percentages for the authenticated account.
@@ -5375,7 +5432,7 @@ declare const PrepareErc20ApprovalError: {
5375
5432
  declare function prepareErc20Approval(client: BaseSecureClient, request: PrepareErc20ApprovalRequest): Promise<Erc20ApprovalWorkflow>;
5376
5433
  type ApproveErc20Error = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
5377
5434
  declare const ApproveErc20Error: {
5378
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5435
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
5379
5436
  };
5380
5437
  /**
5381
5438
  * Approves ERC-20 token spending for the authenticated account.
@@ -5420,7 +5477,7 @@ declare const PrepareErc1155ApprovalForAllError: {
5420
5477
  declare function prepareErc1155ApprovalForAll(client: BaseSecureClient, request: PrepareErc1155ApprovalForAllRequest): Promise<Erc1155ApprovalForAllWorkflow>;
5421
5478
  type ApproveErc1155ForAllError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
5422
5479
  declare const ApproveErc1155ForAllError: {
5423
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5480
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
5424
5481
  };
5425
5482
  /**
5426
5483
  * Approves or revokes ERC-1155 operator access for the authenticated account.
@@ -5436,8 +5493,68 @@ type TradingApprovalsWorkflowRequest = GaslessWorkflowRequest | SendErc20Approva
5436
5493
  type TradingApprovalsWorkflow = AsyncGenerator<TradingApprovalsWorkflowRequest, void, EvmAddress$1 | EvmSignature | TransactionHandle>;
5437
5494
  type PrepareTradingApprovalsError = RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5438
5495
  declare const PrepareTradingApprovalsError: {
5439
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError;
5496
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError;
5497
+ };
5498
+ /** An ERC-20 allowance required for supported trading workflows. */
5499
+ type Erc20TradingApproval = {
5500
+ /** Required allowance target, not the difference from the current allowance. */
5501
+ amount: bigint;
5502
+ /** Address that must be allowed to spend the token. */
5503
+ spenderAddress: EvmAddress$1;
5504
+ /** ERC-20 token whose allowance is required. */
5505
+ tokenAddress: EvmAddress$1;
5506
+ };
5507
+ /** An ERC-1155 operator approval required for supported trading workflows. */
5508
+ type Erc1155TradingApproval = {
5509
+ /** Address that must be approved to operate the token. */
5510
+ operatorAddress: EvmAddress$1;
5511
+ /** ERC-1155 token whose operator approval is required. */
5512
+ tokenAddress: EvmAddress$1;
5513
+ };
5514
+ /** Trading approval requirements grouped by token standard. */
5515
+ type TradingApprovalRequirements = {
5516
+ /** Required ERC-20 allowances. */
5517
+ erc20: Erc20TradingApproval[];
5518
+ /** Required ERC-1155 operator approvals. */
5519
+ erc1155: Erc1155TradingApproval[];
5520
+ };
5521
+ /** Parameters for reading a wallet's trading approval state. */
5522
+ type FetchTradingApprovalsStateRequest = {
5523
+ /** Wallet address whose trading approval state should be inspected. */
5524
+ user: string;
5525
+ };
5526
+ /** The current trading approval state for a wallet. */
5527
+ type TradingApprovalsState = {
5528
+ /** Whether the wallet satisfies every required trading approval. */
5529
+ isFullyApproved: boolean;
5530
+ /** Approvals the wallet must grant to become fully approved. */
5531
+ missing: TradingApprovalRequirements;
5440
5532
  };
5533
+ type FetchTradingApprovalsStateError = RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5534
+ declare const FetchTradingApprovalsStateError: {
5535
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError;
5536
+ };
5537
+ /**
5538
+ * Reads the approvals a wallet is missing for supported trading workflows.
5539
+ *
5540
+ * This action only reads on-chain state. It does not require a signer or submit
5541
+ * transactions.
5542
+ *
5543
+ * @example
5544
+ * ```ts
5545
+ * const state = await fetchTradingApprovalsState(client, {
5546
+ * user: '0x1234…',
5547
+ * });
5548
+ *
5549
+ * if (!state.isFullyApproved) {
5550
+ * console.log(state.missing);
5551
+ * }
5552
+ * ```
5553
+ *
5554
+ * @throws {@link FetchTradingApprovalsStateError}
5555
+ * Thrown on failure.
5556
+ */
5557
+ declare function fetchTradingApprovalsState(client: BaseClient, request: FetchTradingApprovalsStateRequest): Promise<TradingApprovalsState>;
5441
5558
  /**
5442
5559
  * Starts a trading-setup approval workflow.
5443
5560
  *
@@ -5455,7 +5572,7 @@ declare const PrepareTradingApprovalsError: {
5455
5572
  declare function prepareTradingApprovals(client: BaseSecureClient): Promise<TradingApprovalsWorkflow>;
5456
5573
  type SetupTradingApprovalsError = PrepareTradingApprovalsError | CancelledSigningError | SigningError | WaitForGaslessTransactionError;
5457
5574
  declare const SetupTradingApprovalsError: {
5458
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
5575
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
5459
5576
  };
5460
5577
  /**
5461
5578
  * Sets up the approvals required for trading.
@@ -5491,7 +5608,7 @@ type ListBuilderTradesRequest = {
5491
5608
  };
5492
5609
  type ListBuilderTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5493
5610
  declare const ListBuilderTradesError: {
5494
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5611
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5495
5612
  };
5496
5613
  /**
5497
5614
  * Lists builder-attributed trades.
@@ -5538,7 +5655,7 @@ type FetchMidpointRequest = {
5538
5655
  };
5539
5656
  type FetchMidpointError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5540
5657
  declare const FetchMidpointError: {
5541
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5658
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5542
5659
  };
5543
5660
  /**
5544
5661
  * Fetches the midpoint price for an exchange asset as a decimal string.
@@ -5552,7 +5669,7 @@ declare const FetchMidpointError: {
5552
5669
  * @example
5553
5670
  * ```ts
5554
5671
  * const midpoint = await fetchMidpoint(client, {
5555
- * assetId: '123',
5672
+ * assetId: '0x0122…0000',
5556
5673
  * });
5557
5674
  *
5558
5675
  * // midpoint === '0.53'
@@ -5571,7 +5688,7 @@ type FetchMidpointsRequest = Array<{
5571
5688
  }>;
5572
5689
  type FetchMidpointsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5573
5690
  declare const FetchMidpointsError: {
5574
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5691
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5575
5692
  };
5576
5693
  /**
5577
5694
  * Fetches midpoint prices for multiple exchange assets as an asset ID keyed lookup.
@@ -5586,11 +5703,11 @@ declare const FetchMidpointsError: {
5586
5703
  * ```ts
5587
5704
  * const midpoints = await fetchMidpoints(client, [
5588
5705
  * {
5589
- * assetId: '123',
5706
+ * assetId: '0x0122…0000',
5590
5707
  * },
5591
5708
  * ]);
5592
5709
  *
5593
- * // midpoints['123'] === '0.53'
5710
+ * // midpoints['0x0122…0000'] === '0.53'
5594
5711
  * ```
5595
5712
  *
5596
5713
  */
@@ -5606,7 +5723,7 @@ type FetchTickSizeRequest = {
5606
5723
  };
5607
5724
  type FetchTickSizeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5608
5725
  declare const FetchTickSizeError: {
5609
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5726
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5610
5727
  };
5611
5728
  /**
5612
5729
  * Fetches the minimum price tick size for an exchange asset's order book.
@@ -5620,7 +5737,7 @@ declare const FetchTickSizeError: {
5620
5737
  * @example
5621
5738
  * ```ts
5622
5739
  * const tickSize = await fetchTickSize(client, {
5623
- * assetId: '123',
5740
+ * assetId: '0x0122…0000',
5624
5741
  * });
5625
5742
  *
5626
5743
  * // tickSize === 0.01
@@ -5638,7 +5755,7 @@ type FetchNegRiskRequest = {
5638
5755
  };
5639
5756
  type FetchNegRiskError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5640
5757
  declare const FetchNegRiskError: {
5641
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5758
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5642
5759
  };
5643
5760
  /**
5644
5761
  * Fetches whether an exchange asset is in a negative-risk market.
@@ -5652,7 +5769,7 @@ declare const FetchNegRiskError: {
5652
5769
  * @example
5653
5770
  * ```ts
5654
5771
  * const negRisk = await fetchNegRisk(client, {
5655
- * assetId: '123',
5772
+ * assetId: '0x0122…0000',
5656
5773
  * });
5657
5774
  *
5658
5775
  * // negRisk === false
@@ -5670,7 +5787,7 @@ type ResolveConditionByTokenRequest = {
5670
5787
  };
5671
5788
  type ResolveConditionByTokenError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5672
5789
  declare const ResolveConditionByTokenError: {
5673
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5790
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5674
5791
  };
5675
5792
  /**
5676
5793
  * Resolves the condition ID for an exchange asset.
@@ -5688,7 +5805,7 @@ declare const FetchMarketInfoRequestSchema: z.ZodObject<{
5688
5805
  type FetchMarketInfoRequest = z.input<typeof FetchMarketInfoRequestSchema>;
5689
5806
  type FetchMarketInfoError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5690
5807
  declare const FetchMarketInfoError: {
5691
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5808
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5692
5809
  };
5693
5810
  /**
5694
5811
  * Fetches market-level metadata for a condition.
@@ -5706,7 +5823,7 @@ declare const FetchBuilderFeeRatesRequestSchema: z.ZodObject<{
5706
5823
  type FetchBuilderFeeRatesRequest = z.input<typeof FetchBuilderFeeRatesRequestSchema>;
5707
5824
  type FetchBuilderFeeRatesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5708
5825
  declare const FetchBuilderFeeRatesError: {
5709
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5826
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5710
5827
  };
5711
5828
  /**
5712
5829
  * Fetches builder maker and taker fee rates.
@@ -5731,7 +5848,7 @@ type FetchPriceRequest = {
5731
5848
  };
5732
5849
  type FetchPriceError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5733
5850
  declare const FetchPriceError: {
5734
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5851
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5735
5852
  };
5736
5853
  /**
5737
5854
  * Fetches the current quoted price for an exchange asset and side as a decimal string.
@@ -5745,7 +5862,7 @@ declare const FetchPriceError: {
5745
5862
  * @example
5746
5863
  * ```ts
5747
5864
  * const price = await fetchPrice(client, {
5748
- * assetId: '123',
5865
+ * assetId: '0x0122…0000',
5749
5866
  * side: OrderSide.BUY,
5750
5867
  * });
5751
5868
  *
@@ -5767,7 +5884,7 @@ type FetchPricesRequest = Array<{
5767
5884
  }>;
5768
5885
  type FetchPricesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5769
5886
  declare const FetchPricesError: {
5770
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5887
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5771
5888
  };
5772
5889
  /**
5773
5890
  * Fetches quoted prices for multiple exchange assets as an asset ID keyed lookup.
@@ -5782,12 +5899,12 @@ declare const FetchPricesError: {
5782
5899
  * ```ts
5783
5900
  * const prices = await fetchPrices(client, [
5784
5901
  * {
5785
- * assetId: '123',
5902
+ * assetId: '0x0122…0000',
5786
5903
  * side: OrderSide.BUY,
5787
5904
  * },
5788
5905
  * ]);
5789
5906
  *
5790
- * // prices['123']?.BUY === '0.52'
5907
+ * // prices['0x0122…0000']?.BUY === '0.52'
5791
5908
  * ```
5792
5909
  *
5793
5910
  */
@@ -5803,7 +5920,7 @@ type FetchOrderBookRequest = {
5803
5920
  };
5804
5921
  type FetchOrderBookError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5805
5922
  declare const FetchOrderBookError: {
5806
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5923
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5807
5924
  };
5808
5925
  /**
5809
5926
  * Fetches the current order book for an exchange asset.
@@ -5817,7 +5934,7 @@ declare const FetchOrderBookError: {
5817
5934
  * @example
5818
5935
  * ```ts
5819
5936
  * const orderBook = await fetchOrderBook(client, {
5820
- * assetId: '123',
5937
+ * assetId: '0x0122…0000',
5821
5938
  * });
5822
5939
  *
5823
5940
  * // orderBook.bids / orderBook.asks
@@ -5835,7 +5952,7 @@ type FetchOrderBooksRequest = Array<{
5835
5952
  }>;
5836
5953
  type FetchOrderBooksError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5837
5954
  declare const FetchOrderBooksError: {
5838
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5955
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5839
5956
  };
5840
5957
  /**
5841
5958
  * Fetches order books for multiple exchange assets.
@@ -5850,7 +5967,7 @@ declare const FetchOrderBooksError: {
5850
5967
  * ```ts
5851
5968
  * const books = await fetchOrderBooks(client, [
5852
5969
  * {
5853
- * assetId: '123',
5970
+ * assetId: '0x0122…0000',
5854
5971
  * },
5855
5972
  * ])
5856
5973
  *
@@ -5869,7 +5986,7 @@ type FetchSpreadRequest = {
5869
5986
  };
5870
5987
  type FetchSpreadError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5871
5988
  declare const FetchSpreadError: {
5872
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
5989
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5873
5990
  };
5874
5991
  /**
5875
5992
  * Fetches the spread for an exchange asset as a decimal string.
@@ -5883,7 +6000,7 @@ declare const FetchSpreadError: {
5883
6000
  * @example
5884
6001
  * ```ts
5885
6002
  * const spread = await fetchSpread(client, {
5886
- * assetId: '123',
6003
+ * assetId: '0x0122…0000',
5887
6004
  * });
5888
6005
  *
5889
6006
  * // spread === '0.02'
@@ -5902,7 +6019,7 @@ type FetchSpreadsRequest = Array<{
5902
6019
  }>;
5903
6020
  type FetchSpreadsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5904
6021
  declare const FetchSpreadsError: {
5905
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6022
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5906
6023
  };
5907
6024
  /**
5908
6025
  * Fetches spreads for multiple exchange assets as an asset ID keyed lookup.
@@ -5917,11 +6034,11 @@ declare const FetchSpreadsError: {
5917
6034
  * ```ts
5918
6035
  * const spreads = await fetchSpreads(client, [
5919
6036
  * {
5920
- * assetId: '123',
6037
+ * assetId: '0x0122…0000',
5921
6038
  * },
5922
6039
  * ]);
5923
6040
  *
5924
- * // spreads['123'] === '0.02'
6041
+ * // spreads['0x0122…0000'] === '0.02'
5925
6042
  * ```
5926
6043
  *
5927
6044
  */
@@ -5937,7 +6054,7 @@ type FetchLastTradePriceRequest = {
5937
6054
  };
5938
6055
  type FetchLastTradePriceError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5939
6056
  declare const FetchLastTradePriceError: {
5940
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6057
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5941
6058
  };
5942
6059
  /**
5943
6060
  * Fetches the last traded price for an exchange asset.
@@ -5953,7 +6070,7 @@ declare const FetchLastTradePriceError: {
5953
6070
  * @example
5954
6071
  * ```ts
5955
6072
  * const trade = await fetchLastTradePrice(client, {
5956
- * assetId: '123',
6073
+ * assetId: '0x0122…0000',
5957
6074
  * });
5958
6075
  *
5959
6076
  * // trade === LastTradePrice | null
@@ -5972,7 +6089,7 @@ type FetchLastTradePricesRequest = Array<{
5972
6089
  }>;
5973
6090
  type FetchLastTradePricesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
5974
6091
  declare const FetchLastTradePricesError: {
5975
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6092
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
5976
6093
  };
5977
6094
  /**
5978
6095
  * Fetches last traded prices for multiple exchange assets.
@@ -5988,9 +6105,9 @@ declare const FetchLastTradePricesError: {
5988
6105
  *
5989
6106
  * @example
5990
6107
  * ```ts
5991
- * const trades = await fetchLastTradePrices(client, [{ assetId: '123' }]);
6108
+ * const trades = await fetchLastTradePrices(client, [{ assetId: '0x0122…0000' }]);
5992
6109
  *
5993
- * const trade = trades.find((candidate) => candidate.assetId === '123');
6110
+ * const trade = trades.find((candidate) => candidate.assetId === '0x0122…0000');
5994
6111
  * ```
5995
6112
  *
5996
6113
  */
@@ -6014,7 +6131,7 @@ type FetchPriceHistoryRequest = {
6014
6131
  };
6015
6132
  type FetchPriceHistoryError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6016
6133
  declare const FetchPriceHistoryError: {
6017
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6134
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6018
6135
  };
6019
6136
  /**
6020
6137
  * Fetches historical price points for an exchange asset.
@@ -6028,7 +6145,7 @@ declare const FetchPriceHistoryError: {
6028
6145
  * @example
6029
6146
  * ```ts
6030
6147
  * const history = await fetchPriceHistory(client, {
6031
- * assetId: '123',
6148
+ * assetId: '0x0122…0000',
6032
6149
  * interval: PriceHistoryInterval.ONE_DAY,
6033
6150
  * fidelity: 60,
6034
6151
  * });
@@ -6045,7 +6162,7 @@ declare const ListCurrentRewardsRequestSchema: z.ZodDefault<z.ZodObject<{
6045
6162
  type ListCurrentRewardsRequest = z.input<typeof ListCurrentRewardsRequestSchema>;
6046
6163
  type ListCurrentRewardsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6047
6164
  declare const ListCurrentRewardsError: {
6048
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6165
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6049
6166
  };
6050
6167
  /**
6051
6168
  * Lists current active market rewards.
@@ -6088,7 +6205,7 @@ declare const ListMarketRewardsRequestSchema: z.ZodObject<{
6088
6205
  type ListMarketRewardsRequest = z.input<typeof ListMarketRewardsRequestSchema>;
6089
6206
  type ListMarketRewardsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6090
6207
  declare const ListMarketRewardsError: {
6091
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6208
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6092
6209
  };
6093
6210
  /**
6094
6211
  * Lists reward configurations for a market.
@@ -6132,7 +6249,7 @@ declare function listMarketRewards(client: BaseClient, request: ListMarketReward
6132
6249
 
6133
6250
  type PlanCollateralReturnError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError;
6134
6251
  declare const PlanCollateralReturnError: {
6135
- isError(error: unknown): error is TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6252
+ isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6136
6253
  };
6137
6254
  /**
6138
6255
  * Plans a collateral return for the authenticated account.
@@ -6162,7 +6279,7 @@ type ExecuteCollateralReturnPlanRequest = z.infer<typeof ExecuteCollateralReturn
6162
6279
  type CollateralReturnExecutionWorkflow = AsyncGenerator<GaslessWorkflowRequest, TransactionHandle, EvmAddress$1 | EvmSignature | TransactionHandle>;
6163
6280
  type PrepareCollateralReturnExecutionError = RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6164
6281
  declare const PrepareCollateralReturnExecutionError: {
6165
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError;
6282
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError;
6166
6283
  };
6167
6284
  /**
6168
6285
  * Starts a collateral return execution workflow for a previously requested
@@ -6179,7 +6296,7 @@ declare const PrepareCollateralReturnExecutionError: {
6179
6296
  declare function prepareCollateralReturnExecution(client: BaseSecureClient, request: ExecuteCollateralReturnPlanRequest): Promise<CollateralReturnExecutionWorkflow>;
6180
6297
  type ExecuteCollateralReturnPlanError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
6181
6298
  declare const ExecuteCollateralReturnPlanError: {
6182
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6299
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
6183
6300
  };
6184
6301
  /**
6185
6302
  * Executes a collateral return plan for the authenticated account.
@@ -6218,7 +6335,7 @@ type FetchCommentsByIdRequest = z.input<typeof FetchCommentsByIdRequestSchema>;
6218
6335
  type ListCommentsByUserAddressRequest = z.input<typeof ListCommentsByUserAddressRequestSchema>;
6219
6336
  type ListCommentsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6220
6337
  declare const ListCommentsError: {
6221
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6338
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6222
6339
  };
6223
6340
  /**
6224
6341
  * Lists comments for an event or series.
@@ -6263,7 +6380,7 @@ declare const ListCommentsError: {
6263
6380
  declare function listComments(client: BaseClient, request: ListCommentsRequest): Paginated<Comment[]>;
6264
6381
  type FetchCommentsByIdError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6265
6382
  declare const FetchCommentsByIdError: {
6266
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6383
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6267
6384
  };
6268
6385
  /**
6269
6386
  * Fetches a comment thread by comment id.
@@ -6287,7 +6404,7 @@ declare const FetchCommentsByIdError: {
6287
6404
  declare function fetchCommentsById(client: BaseClient, request: FetchCommentsByIdRequest): Promise<Comment[]>;
6288
6405
  type ListCommentsByUserAddressError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6289
6406
  declare const ListCommentsByUserAddressError: {
6290
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6407
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6291
6408
  };
6292
6409
  /**
6293
6410
  * Lists comments written by a wallet address.
@@ -6411,7 +6528,7 @@ declare const FetchEventLiveVolumeRequestSchema: z.ZodObject<{
6411
6528
  type FetchEventLiveVolumeRequest = z.input<typeof FetchEventLiveVolumeRequestSchema>;
6412
6529
  type ListEventsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6413
6530
  declare const ListEventsError: {
6414
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6531
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6415
6532
  };
6416
6533
  /**
6417
6534
  * Lists events.
@@ -6456,7 +6573,7 @@ declare const ListEventsError: {
6456
6573
  declare function listEvents(client: BaseClient, request?: ListEventsRequest): Paginated<Event[]>;
6457
6574
  type FetchEventError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6458
6575
  declare const FetchEventError: {
6459
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6576
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6460
6577
  };
6461
6578
  /**
6462
6579
  * Fetches an event.
@@ -6487,7 +6604,7 @@ declare const FetchEventError: {
6487
6604
  declare function fetchEvent(client: BaseClient, request: FetchEventRequest): Promise<Event>;
6488
6605
  type FetchEventTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6489
6606
  declare const FetchEventTagsError: {
6490
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6607
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6491
6608
  };
6492
6609
  /**
6493
6610
  * Fetches an event's tags.
@@ -6510,7 +6627,7 @@ declare const FetchEventTagsError: {
6510
6627
  declare function fetchEventTags(client: BaseClient, request: FetchEventTagsRequest): Promise<TagReference[]>;
6511
6628
  type FetchEventLiveVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6512
6629
  declare const FetchEventLiveVolumeError: {
6513
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6630
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6514
6631
  };
6515
6632
  /**
6516
6633
  * Fetches live volume for an event.
@@ -6583,7 +6700,7 @@ type ListBuilderVolumeRequest = z.input<typeof ListBuilderVolumeRequestSchema>;
6583
6700
  type ListTraderLeaderboardRequest = z.input<typeof ListTraderLeaderboardRequestSchema>;
6584
6701
  type ListBuilderLeaderboardError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6585
6702
  declare const ListBuilderLeaderboardError: {
6586
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6703
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6587
6704
  };
6588
6705
  /**
6589
6706
  * Lists builder leaderboard rankings.
@@ -6626,7 +6743,7 @@ declare const ListBuilderLeaderboardError: {
6626
6743
  declare function listBuilderLeaderboard(client: BaseClient, request?: ListBuilderLeaderboardRequest): Paginated<LeaderboardEntry[]>;
6627
6744
  type ListBuilderVolumeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6628
6745
  declare const ListBuilderVolumeError: {
6629
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6746
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6630
6747
  };
6631
6748
  /**
6632
6749
  * Lists daily builder volume entries.
@@ -6649,7 +6766,7 @@ declare const ListBuilderVolumeError: {
6649
6766
  declare function fetchBuilderVolume(client: BaseClient, request?: ListBuilderVolumeRequest): Promise<BuilderVolumeEntry[]>;
6650
6767
  type ListTraderLeaderboardError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6651
6768
  declare const ListTraderLeaderboardError: {
6652
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6769
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6653
6770
  };
6654
6771
  /**
6655
6772
  * Lists trader leaderboard rankings.
@@ -6708,7 +6825,7 @@ declare const ListMarketClarificationsRequestSchema: z.ZodObject<{
6708
6825
  type ListMarketClarificationsRequest = z.input<typeof ListMarketClarificationsRequestSchema>;
6709
6826
  type ListMarketClarificationsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6710
6827
  declare const ListMarketClarificationsError: {
6711
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6828
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6712
6829
  };
6713
6830
  /**
6714
6831
  * Lists market clarifications — official notes that resolve ambiguity in how a
@@ -6767,7 +6884,6 @@ declare const ListMarketsRequestSchema: z.ZodObject<{
6767
6884
  liquidityNumMax: z.ZodOptional<z.ZodNumber>;
6768
6885
  liquidityNumMin: z.ZodOptional<z.ZodNumber>;
6769
6886
  locale: z.ZodOptional<z.ZodString>;
6770
- marketMakerAddresses: z.ZodOptional<z.ZodArray<z.ZodString>>;
6771
6887
  order: z.ZodOptional<z.ZodString>;
6772
6888
  positionIds: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.PositionId, string>>>>;
6773
6889
  questionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -6840,7 +6956,7 @@ type ListOpenInterestRequest = z.input<typeof ListOpenInterestRequestSchema>;
6840
6956
  type ListMarketPositionsRequest = z.input<typeof ListMarketPositionsRequestSchema>;
6841
6957
  type ListMarketsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6842
6958
  declare const ListMarketsError: {
6843
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
6959
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6844
6960
  };
6845
6961
  /**
6846
6962
  * Lists markets.
@@ -6892,7 +7008,7 @@ declare const ListComboMarketsRequestSchema: z.ZodObject<{
6892
7008
  type ListComboMarketsRequest = z.input<typeof ListComboMarketsRequestSchema>;
6893
7009
  type ListComboMarketsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6894
7010
  declare const ListComboMarketsError: {
6895
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7011
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6896
7012
  };
6897
7013
  /**
6898
7014
  * Lists markets available for Combos.
@@ -6930,7 +7046,7 @@ declare const ListComboMarketsError: {
6930
7046
  declare function listComboMarkets(client: BaseClient, request?: ListComboMarketsRequest): Paginated<ComboMarket[]>;
6931
7047
  type FetchMarketError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6932
7048
  declare const FetchMarketError: {
6933
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7049
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6934
7050
  };
6935
7051
  /**
6936
7052
  * Fetches a market.
@@ -6965,7 +7081,7 @@ declare const FetchMarketError: {
6965
7081
  declare function fetchMarket(client: BaseClient, request: FetchMarketRequest): Promise<Market>;
6966
7082
  type FetchMarketTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6967
7083
  declare const FetchMarketTagsError: {
6968
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7084
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6969
7085
  };
6970
7086
  /**
6971
7087
  * Fetches a market's tags.
@@ -6988,7 +7104,7 @@ declare const FetchMarketTagsError: {
6988
7104
  declare function fetchMarketTags(client: BaseClient, request: FetchMarketTagsRequest): Promise<TagReference[]>;
6989
7105
  type ListMarketHoldersError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
6990
7106
  declare const ListMarketHoldersError: {
6991
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7107
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
6992
7108
  };
6993
7109
  /**
6994
7110
  * Lists the top holders for one or more markets.
@@ -7012,7 +7128,7 @@ declare const ListMarketHoldersError: {
7012
7128
  declare function listMarketHolders(client: BaseClient, request: ListMarketHoldersRequest): Promise<MetaHolder[]>;
7013
7129
  type ListOpenInterestError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7014
7130
  declare const ListOpenInterestError: {
7015
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7131
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7016
7132
  };
7017
7133
  /**
7018
7134
  * Lists open interest for one or more markets.
@@ -7035,7 +7151,7 @@ declare const ListOpenInterestError: {
7035
7151
  declare function listOpenInterest(client: BaseClient, request?: ListOpenInterestRequest): Promise<OpenInterest[]>;
7036
7152
  type ListMarketPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
7037
7153
  declare const ListMarketPositionsError: {
7038
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
7154
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
7039
7155
  };
7040
7156
  /**
7041
7157
  * Lists positions for a market.
@@ -7656,7 +7772,7 @@ type ArmPerpsAutoCancelError = AutoCancelDailyLimitError | RateLimitError | Requ
7656
7772
  * @experimental This API may change in a breaking way in any release, including patch releases.
7657
7773
  */
7658
7774
  declare const ArmPerpsAutoCancelError: {
7659
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | AutoCancelDailyLimitError;
7775
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | AutoCancelDailyLimitError | SigningError;
7660
7776
  };
7661
7777
  /**
7662
7778
  * @experimental This API may change in a breaking way in any release, including patch releases.
@@ -7684,7 +7800,7 @@ type UpdatePerpsLeverageError = RequestRejectedError | SigningError | TransportE
7684
7800
  * @experimental This API may change in a breaking way in any release, including patch releases.
7685
7801
  */
7686
7802
  declare const UpdatePerpsLeverageError: {
7687
- isError(error: unknown): error is SigningError | TransportError | UserInputError | RequestRejectedError;
7803
+ isError(error: unknown): error is UserInputError | TransportError | RequestRejectedError | SigningError;
7688
7804
  };
7689
7805
  /**
7690
7806
  * Request parameters for adjusting isolated margin on a Perps position.
@@ -7705,7 +7821,7 @@ type UpdatePerpsMarginError = RequestRejectedError | SigningError | TransportErr
7705
7821
  * @experimental This API may change in a breaking way in any release, including patch releases.
7706
7822
  */
7707
7823
  declare const UpdatePerpsMarginError: {
7708
- isError(error: unknown): error is SigningError | TransportError | UserInputError | RequestRejectedError;
7824
+ isError(error: unknown): error is UserInputError | TransportError | RequestRejectedError | SigningError;
7709
7825
  };
7710
7826
 
7711
7827
  /**
@@ -8164,7 +8280,7 @@ declare class PerpsSession implements AsyncIterable<PerpsSessionEvent> {
8164
8280
 
8165
8281
  type PerpsPublicReadError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
8166
8282
  declare const PerpsPublicReadError: {
8167
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8283
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8168
8284
  };
8169
8285
  /**
8170
8286
  * @experimental This API may change in a breaking way in any release, including patch releases.
@@ -8183,7 +8299,7 @@ type FetchPerpsInstrumentsError = PerpsPublicReadError;
8183
8299
  * @experimental This API may change in a breaking way in any release, including patch releases.
8184
8300
  */
8185
8301
  declare const FetchPerpsInstrumentsError: {
8186
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8302
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8187
8303
  };
8188
8304
  /**
8189
8305
  * Fetches Perps instruments.
@@ -8212,7 +8328,7 @@ type FetchPerpsTickerError = PerpsPublicReadError;
8212
8328
  * @experimental This API may change in a breaking way in any release, including patch releases.
8213
8329
  */
8214
8330
  declare const FetchPerpsTickerError: {
8215
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8331
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8216
8332
  };
8217
8333
  /**
8218
8334
  * Fetches the current Perps ticker for an instrument.
@@ -8241,7 +8357,7 @@ type FetchPerpsTickersError = PerpsPublicReadError;
8241
8357
  * @experimental This API may change in a breaking way in any release, including patch releases.
8242
8358
  */
8243
8359
  declare const FetchPerpsTickersError: {
8244
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8360
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8245
8361
  };
8246
8362
  /**
8247
8363
  * Fetches current Perps tickers.
@@ -8276,7 +8392,7 @@ type FetchPerpsBookError = PerpsPublicReadError;
8276
8392
  * @experimental This API may change in a breaking way in any release, including patch releases.
8277
8393
  */
8278
8394
  declare const FetchPerpsBookError: {
8279
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8395
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8280
8396
  };
8281
8397
  /**
8282
8398
  * Fetches a Perps order book.
@@ -8316,7 +8432,7 @@ type ListPerpsCandlesError = PerpsPublicReadError;
8316
8432
  * @experimental This API may change in a breaking way in any release, including patch releases.
8317
8433
  */
8318
8434
  declare const ListPerpsCandlesError: {
8319
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8435
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8320
8436
  };
8321
8437
  /**
8322
8438
  * Lists Perps candles for an instrument with SDK-owned pagination.
@@ -8354,7 +8470,7 @@ type ListPerpsFundingHistoryError = PerpsPublicReadError;
8354
8470
  * @experimental This API may change in a breaking way in any release, including patch releases.
8355
8471
  */
8356
8472
  declare const ListPerpsFundingHistoryError: {
8357
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8473
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8358
8474
  };
8359
8475
  /**
8360
8476
  * Lists Perps funding-rate history for an instrument with SDK-owned pagination.
@@ -8392,7 +8508,7 @@ type ListPerpsTradesError = PerpsPublicReadError;
8392
8508
  * @experimental This API may change in a breaking way in any release, including patch releases.
8393
8509
  */
8394
8510
  declare const ListPerpsTradesError: {
8395
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8511
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8396
8512
  };
8397
8513
  /**
8398
8514
  * Lists recent Perps trades for an instrument with SDK-owned pagination.
@@ -8414,7 +8530,7 @@ type FetchPerpsFeesError = RateLimitError | RequestRejectedError | TransportErro
8414
8530
  * @experimental This API may change in a breaking way in any release, including patch releases.
8415
8531
  */
8416
8532
  declare const FetchPerpsFeesError: {
8417
- isError(error: unknown): error is TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8533
+ isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8418
8534
  };
8419
8535
  /**
8420
8536
  * Fetches the Perps fee schedule.
@@ -8487,7 +8603,7 @@ type OpenPerpsSessionError = RateLimitError | RequestRejectedError | SigningErro
8487
8603
  * @experimental This API may change in a breaking way in any release, including patch releases.
8488
8604
  */
8489
8605
  declare const OpenPerpsSessionError: {
8490
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8606
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
8491
8607
  };
8492
8608
  /**
8493
8609
  * @experimental This API may change in a breaking way in any release, including patch releases.
@@ -8497,7 +8613,7 @@ type RevokePerpsCredentialsError = RateLimitError | RequestRejectedError | Signi
8497
8613
  * @experimental This API may change in a breaking way in any release, including patch releases.
8498
8614
  */
8499
8615
  declare const RevokePerpsCredentialsError: {
8500
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8616
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
8501
8617
  };
8502
8618
  /**
8503
8619
  * @experimental This API may change in a breaking way in any release, including patch releases.
@@ -8517,7 +8633,7 @@ type DepositToPerpsError = RateLimitError | RequestRejectedError | CancelledSign
8517
8633
  * @experimental This API may change in a breaking way in any release, including patch releases.
8518
8634
  */
8519
8635
  declare const DepositToPerpsError: {
8520
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8636
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
8521
8637
  };
8522
8638
  /**
8523
8639
  * @experimental This API may change in a breaking way in any release, including patch releases.
@@ -8527,7 +8643,7 @@ type WithdrawFromPerpsError = RateLimitError | RequestRejectedError | SigningErr
8527
8643
  * @experimental This API may change in a breaking way in any release, including patch releases.
8528
8644
  */
8529
8645
  declare const WithdrawFromPerpsError: {
8530
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8646
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
8531
8647
  };
8532
8648
  /**
8533
8649
  * Opens a Perps account session.
@@ -8598,7 +8714,7 @@ type SplitPositionWorkflowRequest = GaslessWorkflowRequest | SendSplitPositionTr
8598
8714
  type SplitPositionWorkflow = AsyncGenerator<SplitPositionWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
8599
8715
  type PrepareSplitPositionError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
8600
8716
  declare const PrepareSplitPositionError: {
8601
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8717
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8602
8718
  };
8603
8719
  /**
8604
8720
  * Parameters for preparing a market position split.
@@ -8619,7 +8735,7 @@ type PrepareSplitMarketPositionRequest = {
8619
8735
  type PrepareSplitMarketPositionError = PrepareSplitPositionError;
8620
8736
  /** @deprecated Use {@link PrepareSplitPositionError}. */
8621
8737
  declare const PrepareSplitMarketPositionError: {
8622
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8738
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8623
8739
  };
8624
8740
  /**
8625
8741
  * Starts a split workflow for a market condition.
@@ -8655,7 +8771,7 @@ type PrepareSplitComboPositionRequest = {
8655
8771
  type PrepareSplitComboPositionError = PrepareSplitPositionError;
8656
8772
  /** @deprecated Use {@link PrepareSplitPositionError}. */
8657
8773
  declare const PrepareSplitComboPositionError: {
8658
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8774
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8659
8775
  };
8660
8776
  /**
8661
8777
  * Starts a split workflow for a combo position from leg position IDs.
@@ -8692,13 +8808,13 @@ type PrepareSplitPositionRequest = PrepareSplitMarketPositionRequest | PrepareSp
8692
8808
  declare function prepareSplitPosition(client: BaseSecureClient, request: PrepareSplitPositionRequest): Promise<SplitPositionWorkflow>;
8693
8809
  type SplitPositionError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
8694
8810
  declare const SplitPositionError: {
8695
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
8811
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
8696
8812
  };
8697
8813
  /** @deprecated Use {@link SplitPositionError}. */
8698
8814
  type SplitMarketPositionError = SplitPositionError;
8699
8815
  /** @deprecated Use {@link SplitPositionError}. */
8700
8816
  declare const SplitMarketPositionError: {
8701
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
8817
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
8702
8818
  };
8703
8819
  /**
8704
8820
  * Splits collateral into market positions.
@@ -8714,7 +8830,7 @@ declare function splitMarketPosition(client: BaseSecureClient, request: PrepareS
8714
8830
  type SplitComboPositionError = SplitPositionError;
8715
8831
  /** @deprecated Use {@link SplitPositionError}. */
8716
8832
  declare const SplitComboPositionError: {
8717
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
8833
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
8718
8834
  };
8719
8835
  /**
8720
8836
  * Splits collateral into combo positions from leg position IDs.
@@ -8737,7 +8853,7 @@ type MergePositionsWorkflowRequest = GaslessWorkflowRequest | SendMergePositions
8737
8853
  type MergePositionsWorkflow = AsyncGenerator<MergePositionsWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
8738
8854
  type PrepareMergePositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
8739
8855
  declare const PrepareMergePositionsError: {
8740
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8856
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8741
8857
  };
8742
8858
  /**
8743
8859
  * Parameters for preparing a market position merge.
@@ -8758,7 +8874,7 @@ type PrepareMergeMarketPositionRequest = {
8758
8874
  type PrepareMergeMarketPositionError = PrepareMergePositionsError;
8759
8875
  /** @deprecated Use {@link PrepareMergePositionsError}. */
8760
8876
  declare const PrepareMergeMarketPositionError: {
8761
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8877
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8762
8878
  };
8763
8879
  /**
8764
8880
  * Starts a workflow to merge complementary positions in a market back into collateral.
@@ -8794,7 +8910,7 @@ type PrepareMergeComboPositionRequest = {
8794
8910
  type PrepareMergeComboPositionError = PrepareMergePositionsError;
8795
8911
  /** @deprecated Use {@link PrepareMergePositionsError}. */
8796
8912
  declare const PrepareMergeComboPositionError: {
8797
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8913
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8798
8914
  };
8799
8915
  /**
8800
8916
  * Starts a workflow to merge complementary combo positions back into collateral.
@@ -8831,13 +8947,13 @@ type PrepareMergePositionsRequest = PrepareMergeMarketPositionRequest | PrepareM
8831
8947
  declare function prepareMergePositions(client: BaseSecureClient, request: PrepareMergePositionsRequest): Promise<MergePositionsWorkflow>;
8832
8948
  type MergePositionsError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
8833
8949
  declare const MergePositionsError: {
8834
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
8950
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
8835
8951
  };
8836
8952
  /** @deprecated Use {@link MergePositionsError}. */
8837
8953
  type MergeMarketPositionError = MergePositionsError;
8838
8954
  /** @deprecated Use {@link MergePositionsError}. */
8839
8955
  declare const MergeMarketPositionError: {
8840
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
8956
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
8841
8957
  };
8842
8958
  /**
8843
8959
  * Merges complementary market positions back into collateral.
@@ -8853,7 +8969,7 @@ declare function mergeMarketPosition(client: BaseSecureClient, request: PrepareM
8853
8969
  type MergeComboPositionError = MergePositionsError;
8854
8970
  /** @deprecated Use {@link MergePositionsError}. */
8855
8971
  declare const MergeComboPositionError: {
8856
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
8972
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
8857
8973
  };
8858
8974
  /**
8859
8975
  * Merges complementary combo positions back into collateral.
@@ -8876,7 +8992,7 @@ type RedeemPositionsWorkflowRequest = GaslessWorkflowRequest | SendRedeemPositio
8876
8992
  type RedeemPositionsWorkflow = AsyncGenerator<RedeemPositionsWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
8877
8993
  type PrepareRedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
8878
8994
  declare const PrepareRedeemPositionsError: {
8879
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
8995
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8880
8996
  };
8881
8997
  /**
8882
8998
  * Parameters for preparing a market position redemption by condition ID.
@@ -8911,7 +9027,7 @@ type PrepareRedeemMarketPositionsRequest = PrepareRedeemMarketPositionsByConditi
8911
9027
  type PrepareRedeemMarketPositionsError = PrepareRedeemPositionsError;
8912
9028
  /** @deprecated Use {@link PrepareRedeemPositionsError}. */
8913
9029
  declare const PrepareRedeemMarketPositionsError: {
8914
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9030
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8915
9031
  };
8916
9032
  /**
8917
9033
  * Starts a redemption workflow for resolved market positions.
@@ -8972,7 +9088,7 @@ type PrepareRedeemComboPositionRequest = PrepareRedeemPositionRequest;
8972
9088
  type PrepareRedeemComboPositionError = PrepareRedeemPositionsError;
8973
9089
  /** @deprecated Use {@link PrepareRedeemPositionsError}. */
8974
9090
  declare const PrepareRedeemComboPositionError: {
8975
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9091
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
8976
9092
  };
8977
9093
  /**
8978
9094
  * Starts a redemption workflow for a resolved Polymarket V2 position.
@@ -9005,7 +9121,7 @@ type PrepareRedeemPositionsRequest = PrepareRedeemMarketPositionsByConditionIdRe
9005
9121
  declare function prepareRedeemPositions(client: BaseSecureClient, request: PrepareRedeemPositionsRequest): Promise<RedeemPositionsWorkflow>;
9006
9122
  type RedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError | TimeoutError | TransactionFailedError;
9007
9123
  declare const RedeemPositionsError: {
9008
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
9124
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9009
9125
  };
9010
9126
  /**
9011
9127
  * Redeems held positions for a market or a specific position by ID.
@@ -9024,7 +9140,7 @@ declare const FetchPublicProfileRequestSchema: z.ZodObject<{
9024
9140
  type FetchPublicProfileRequest = z.input<typeof FetchPublicProfileRequestSchema>;
9025
9141
  type FetchPublicProfileError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9026
9142
  declare const FetchPublicProfileError: {
9027
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9143
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9028
9144
  };
9029
9145
  /**
9030
9146
  * Fetches a public profile by wallet address.
@@ -9084,7 +9200,7 @@ type SearchResults = {
9084
9200
  };
9085
9201
  type SearchError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9086
9202
  declare const SearchError: {
9087
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9203
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9088
9204
  };
9089
9205
  /**
9090
9206
  * Runs a public full-text search.
@@ -9140,7 +9256,7 @@ type ListSeriesRequest = z.input<typeof ListSeriesRequestSchema>;
9140
9256
  type FetchSeriesRequest = z.input<typeof FetchSeriesRequestSchema>;
9141
9257
  type ListSeriesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9142
9258
  declare const ListSeriesError: {
9143
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9259
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9144
9260
  };
9145
9261
  /**
9146
9262
  * Lists series.
@@ -9183,7 +9299,7 @@ declare const ListSeriesError: {
9183
9299
  declare function listSeries(client: BaseClient, request?: ListSeriesRequest): Paginated<Series[]>;
9184
9300
  type FetchSeriesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9185
9301
  declare const FetchSeriesError: {
9186
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9302
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9187
9303
  };
9188
9304
  /**
9189
9305
  * Fetches a series.
@@ -9219,7 +9335,7 @@ type SessionKey = {
9219
9335
  };
9220
9336
  type FetchSessionKeysError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
9221
9337
  declare const FetchSessionKeysError: {
9222
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9338
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
9223
9339
  };
9224
9340
  /**
9225
9341
  * Fetches the active session keys authorized for the Deposit Wallet.
@@ -9254,7 +9370,7 @@ type AuthorizeSessionKeyResult = {
9254
9370
  };
9255
9371
  type AuthorizeSessionKeyError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
9256
9372
  declare const AuthorizeSessionKeyError: {
9257
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
9373
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9258
9374
  };
9259
9375
  /**
9260
9376
  * Authorizes an externally managed signer for selected venues.
@@ -9289,20 +9405,15 @@ type RevokeSessionKeyRequest = {
9289
9405
  /** Stable key to reuse when retrying the same signed revocation. */
9290
9406
  idempotencyKey?: string;
9291
9407
  };
9292
- /** Result of a confirmed session-key revocation. */
9293
- type RevokeSessionKeyResult = {
9294
- /** Confirmed transaction that applied the revocation. */
9295
- transaction: TransactionOutcome;
9296
- };
9297
9408
  type RevokeSessionKeyError = CancelledSigningError | RateLimitError | RequestRejectedError | SigningError | TimeoutError | TransactionFailedError | TransportError | UnexpectedResponseError | UserInputError;
9298
9409
  declare const RevokeSessionKeyError: {
9299
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
9410
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
9300
9411
  };
9301
9412
  /**
9302
9413
  * Revokes a session key authorized for the Deposit Wallet.
9303
9414
  *
9304
- * Revocation may take several minutes while existing activity is canceled and
9305
- * the on-chain revocation is confirmed.
9415
+ * Returns once the session key is removed from the active-key registry and can
9416
+ * no longer be used. The on-chain transaction may still be pending.
9306
9417
  * Requires API-key authentication that supports gasless transactions.
9307
9418
  *
9308
9419
  * @remarks
@@ -9310,7 +9421,7 @@ declare const RevokeSessionKeyError: {
9310
9421
  *
9311
9422
  * @example
9312
9423
  * ```ts
9313
- * const revocation = await revokeSessionKey(client, {
9424
+ * await revokeSessionKey(client, {
9314
9425
  * address: sessionAddress,
9315
9426
  * });
9316
9427
  * ```
@@ -9318,7 +9429,7 @@ declare const RevokeSessionKeyError: {
9318
9429
  * @throws {@link RevokeSessionKeyError}
9319
9430
  * Thrown on failure.
9320
9431
  */
9321
- declare function revokeSessionKey(client: BaseSecureClient, request: RevokeSessionKeyRequest): Promise<RevokeSessionKeyResult>;
9432
+ declare function revokeSessionKey(client: BaseSecureClient, request: RevokeSessionKeyRequest): Promise<void>;
9322
9433
 
9323
9434
  type MarketEventType = MarketEvent['type'];
9324
9435
  type UserEventType = UserEvent['type'];
@@ -9473,7 +9584,7 @@ type SubscriptionHandle<TEvent> = {
9473
9584
  } & AsyncIterable<TEvent>;
9474
9585
  type SubscribeError = TransportError | UserInputError;
9475
9586
  declare const SubscribeError: {
9476
- isError(error: unknown): error is TransportError | UserInputError;
9587
+ isError(error: unknown): error is UserInputError | TransportError;
9477
9588
  };
9478
9589
  /**
9479
9590
  * Starts one or more realtime subscriptions on this client.
@@ -9553,7 +9664,7 @@ type FetchRelatedTagsRequest = z.input<typeof RelatedTagsByIdRequestSchema> | z.
9553
9664
  type FetchRelatedTagResourcesRequest = z.input<typeof RelatedTagResourcesByIdRequestSchema> | z.input<typeof RelatedTagResourcesBySlugRequestSchema>;
9554
9665
  type ListTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9555
9666
  declare const ListTagsError: {
9556
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9667
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9557
9668
  };
9558
9669
  /**
9559
9670
  * Lists tags.
@@ -9596,7 +9707,7 @@ declare const ListTagsError: {
9596
9707
  declare function listTags(client: BaseClient, request?: ListTagsRequest): Paginated<Tag[]>;
9597
9708
  type FetchTagError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9598
9709
  declare const FetchTagError: {
9599
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9710
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9600
9711
  };
9601
9712
  /**
9602
9713
  * Fetches a tag by id or slug.
@@ -9620,7 +9731,7 @@ declare const FetchTagError: {
9620
9731
  declare function fetchTag(client: BaseClient, request: FetchTagRequest): Promise<Tag>;
9621
9732
  type FetchRelatedTagsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9622
9733
  declare const FetchRelatedTagsError: {
9623
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9734
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9624
9735
  };
9625
9736
  /**
9626
9737
  * Fetches related tag relationships by id or slug.
@@ -9645,7 +9756,7 @@ declare const FetchRelatedTagsError: {
9645
9756
  declare function fetchRelatedTags(client: BaseClient, request: FetchRelatedTagsRequest): Promise<RelatedTag[]>;
9646
9757
  type FetchRelatedTagResourcesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9647
9758
  declare const FetchRelatedTagResourcesError: {
9648
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9759
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9649
9760
  };
9650
9761
  /**
9651
9762
  * Fetches resources linked from related tag relationships by id or slug.
@@ -9682,7 +9793,7 @@ declare const ListTeamsRequestSchema: z.ZodObject<{
9682
9793
  type ListTeamsRequest = z.input<typeof ListTeamsRequestSchema>;
9683
9794
  type ListTeamsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
9684
9795
  declare const ListTeamsError: {
9685
- isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9796
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
9686
9797
  };
9687
9798
  /**
9688
9799
  * Lists teams.
@@ -9758,7 +9869,7 @@ declare const PrepareErc20TransferError: {
9758
9869
  declare function prepareErc20Transfer(client: BaseSecureClient, request: PrepareErc20TransferRequest): Promise<Erc20TransferWorkflow>;
9759
9870
  type TransferErc20Error = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
9760
9871
  declare const TransferErc20Error: {
9761
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
9872
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
9762
9873
  };
9763
9874
  /**
9764
9875
  * Transfers ERC-20 tokens from the authenticated account.
@@ -9815,7 +9926,7 @@ type TransactionOutcome = {
9815
9926
  };
9816
9927
  type WaitForTransactionError = WaitForGaslessTransactionError;
9817
9928
  declare const WaitForTransactionError: {
9818
- isError(error: unknown): error is TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
9929
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError;
9819
9930
  };
9820
9931
  interface TransactionHandle {
9821
9932
  /**
@@ -9842,4 +9953,4 @@ type Signer = {
9842
9953
  sendTransaction(request: SignerTransactionRequest): Promise<TransactionHandle>;
9843
9954
  };
9844
9955
 
9845
- export { type EnvironmentContracts as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type ClientActions as D, type ClientDecorator as E, type ClobEndpoints as F, ComboPositionSort as G, type ComboPositionStatusFilter as H, type ComboQuote as I, type CombosEndpoints as J, ConnectionLostError as K, type ConnectionLostErrorOptions as L, type CreatePerpsSessionRequest as M, CreateSecureClientError as N, type CryptoPricesChainlinkTwapSubscription as O, type DataActions as P, DepositToPerpsError as Q, type DepositToPerpsRequest as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, type DisarmPerpsAutoCancelRequest as V, type DiscoveryActions as W, DownloadAccountingSnapshotError as X, DropNotificationsError as Y, type EnvironmentConfig as Z, type EnvironmentConfigFork as _, type TypedData as a, ListMarketHoldersError as a$, EstimateMarketPriceError as a0, ExecuteCollateralReturnPlanError as a1, type ExecuteCollateralReturnPlanRequest as a2, FetchClosedOnlyModeError as a3, FetchCommentsByIdError as a4, FetchEventError as a5, FetchEventLiveVolumeError as a6, FetchEventTagsError as a7, FetchLastTradePriceError as a8, FetchLastTradePricesError as a9, FetchPublicProfileError as aA, FetchRelatedTagResourcesError as aB, FetchRelatedTagsError as aC, FetchRewardPercentagesError as aD, FetchRfqStatusError as aE, type FetchRfqStatusParams as aF, FetchSeriesError as aG, FetchSessionKeysError as aH, FetchSpreadError as aI, FetchSpreadsError as aJ, FetchTagError as aK, FetchTotalEarningsForUserForDayError as aL, FetchTradedMarketCountError as aM, InsufficientLiquidityError as aN, ListAccountTradesError as aO, ListActivityError as aP, ListBuilderLeaderboardError as aQ, ListBuilderTradesError as aR, ListBuilderVolumeError as aS, ListClosedPositionsError as aT, ListComboActivityError as aU, ListComboMarketsError as aV, ListComboPositionsError as aW, ListCommentsByUserAddressError as aX, ListCommentsError as aY, ListCurrentRewardsError as aZ, ListEventsError as a_, FetchMarketError as aa, FetchMarketTagsError as ab, FetchMidpointError as ac, FetchMidpointsError as ad, FetchNotificationsError as ae, FetchOrderBookError as af, FetchOrderBooksError as ag, FetchOrderError as ah, FetchOrderScoringError as ai, FetchOrdersScoringError as aj, type FetchPerpsAccountConfigRequest as ak, FetchPerpsBookError as al, type FetchPerpsBookRequest as am, FetchPerpsFeesError as an, FetchPerpsInstrumentsError as ao, type FetchPerpsInstrumentsRequest as ap, type FetchPerpsOpenOrdersRequest as aq, type FetchPerpsOrdersRequest as ar, FetchPerpsTickerError as as, type FetchPerpsTickerRequest as at, FetchPerpsTickersError as au, type FetchPerpsTickersRequest as av, FetchPortfolioValueError as aw, FetchPriceError as ax, FetchPriceHistoryError as ay, FetchPricesError as az, type TransactionCall as b, type PublicClient as b$, ListMarketPositionsError as b0, ListMarketRewardsError as b1, ListMarketsError as b2, ListOpenInterestError as b3, ListOpenOrdersError as b4, ListPerpsCandlesError as b5, type ListPerpsCandlesRequest as b6, type ListPerpsDepositsRequest as b7, type ListPerpsEquityHistoryRequest as b8, type ListPerpsFillsRequest as b9, type PerpsActions as bA, type PerpsBookDepth as bB, type PerpsEndpoints as bC, type PerpsOrderRequest as bD, type PerpsPlaceFokOrderRequest as bE, type PerpsPlaceGtcOrderRequest as bF, type PerpsPlaceIocOrderRequest as bG, type PerpsPlacedTpSlOrder as bH, type PerpsPlacedTpSlOrders as bI, type PerpsPositionTpSlTrigger as bJ, PerpsSession as bK, type PerpsSessionAccountError as bL, type PerpsSessionLifecycleError as bM, type PerpsSessionTradingError as bN, type PerpsTpSlTrigger as bO, type PlacePerpsOrderRequest as bP, type PlacePerpsOrderResult as bQ, type PlacePerpsOrderWithTpSlRequest as bR, type PlacePerpsOrderWithTpSlResult as bS, type PlacePerpsPositionTpSlRequest as bT, type PlacePerpsPositionTpSlResult as bU, PlanCollateralReturnError as bV, PostOrderError as bW, PostOrdersError as bX, type PostPerpsOrdersRequest as bY, type PublicAccountActions as bZ, type PublicActions as b_, ListPerpsFundingHistoryError as ba, type ListPerpsFundingHistoryRequest as bb, type ListPerpsFundingPaymentsRequest as bc, type ListPerpsNotificationsRequest as bd, type ListPerpsPnlHistoryRequest as be, ListPerpsTradesError as bf, type ListPerpsTradesRequest as bg, type ListPerpsWithdrawalsRequest as bh, ListPositionsError as bi, ListSeriesError as bj, ListTagsError as bk, ListTeamsError as bl, ListTraderLeaderboardError as bm, ListTradesError as bn, ListUserEarningsAndMarketsConfigError as bo, ListUserEarningsForDayError as bp, type MarkPerpsNotificationsReadRequest as bq, MergePositionsError as br, OpenPerpsSessionError as bs, type OpenPerpsSessionRequest as bt, OpenRfqSessionError as bu, type OrderAsset as bv, type OrderSignature as bw, type Page as bx, PageSizeSchema as by, type Paginated as bz, AcceptComboQuoteError as c, type SessionKey as c$, type PublicClientOptions as c0, type PublicPerpsActions as c1, type PublicRewardsActions as c2, type PublicSubscriptionsActions as c3, type RateLimitBucket as c4, RateLimitError as c5, type RateLimitErrorOptions as c6, type RateLimitUpdate as c7, type RateLimitUpdateListener as c8, RedeemPositionsError as c9, type RfqQuoteResponse as cA, type RfqQuoteSource as cB, RfqRequestRejectedError as cC, type RfqRequestRejectedErrorOptions as cD, type RfqSession as cE, type RfqStatusResult as cF, type RfqTradeEvent as cG, SearchError as cH, SearchSort as cI, type SecureAccountActions as cJ, type SecureActions as cK, type SecureClient as cL, type SecureClientOptions as cM, type SecureDownloadAccountingSnapshotRequest as cN, type SecureFetchPortfolioValueRequest as cO, type SecureFetchTradedMarketCountRequest as cP, type SecureListActivityRequest as cQ, type SecureListClosedPositionsRequest as cR, type SecureListComboActivityRequest as cS, type SecureListComboPositionsRequest as cT, type SecureListPositionsRequest as cU, type SecurePerpsActions as cV, type SecureRewardsActions as cW, type SecureRfqActions as cX, type SecureSubscriptionsActions as cY, type SecureTradingActions as cZ, type SecureWalletActions as c_, RequestComboQuoteError as ca, type RequestComboQuoteParams as cb, type RequestComboQuoteResult as cc, RequestRejectedError as cd, type RequestRejectedErrorOptions as ce, type RestEndpoint as cf, type ResumePerpsSessionRequest as cg, RevokePerpsCredentialsError as ch, type RevokePerpsCredentialsRequest as ci, RevokeSessionKeyError as cj, type RevokeSessionKeyRequest as ck, type RevokeSessionKeyResult as cl, type RfqCancelQuoteAck as cm, RfqCancelQuoteError as cn, RfqCancelQuoteRejectedError as co, type RfqCancelQuoteRejectedErrorOptions as cp, type RfqConfirmationAck as cq, RfqConfirmationError as cr, RfqConfirmationRejectedError as cs, type RfqConfirmationRequestEvent as ct, type RfqEvent as cu, RfqQuoteError as cv, type RfqQuoteReference as cw, RfqQuoteRejectedError as cx, type RfqQuoteRejectedErrorOptions as cy, type RfqQuoteRequestEvent as cz, type AcceptComboQuoteParams as d, type EquityPricesEventType as d$, type SessionKeyActions as d0, SetupGaslessWalletError as d1, SetupTradingApprovalsError as d2, type SignedOrder as d3, type SignerTransactionRequest as d4, SignerType as d5, SigningError as d6, SplitPositionError as d7, SubscribeError as d8, TimeoutError as d9, allActions as dA, analyticsActions as dB, createPublicClient as dC, createSecureClient as dD, dataActions as dE, discoveryActions as dF, forkEnvironmentConfig as dG, makeErrorGuard as dH, perpsActions as dI, production as dJ, rewardsActions as dK, rfqActions as dL, sessionKeyActions as dM, subscriptionsActions as dN, tradingActions as dO, walletActions as dP, type CancelMarketOrdersRequest as dQ, type CancelOrderRequest as dR, type CancelOrdersRequest as dS, type CollateralReturnExecutionWorkflow as dT, type CommentsEventType as dU, type CommentsSubscription as dV, type CryptoPricesEventType as dW, type CryptoPricesSubscription as dX, DeployDepositWalletError as dY, type DownloadAccountingSnapshotRequest as dZ, type DropNotificationsRequest as d_, TradingRestriction as da, TransactionFailedError as db, type TransactionHandle as dc, type TransactionOutcome as dd, TransferErc20Error as de, TransportError as df, type TypedDataDomain as dg, type TypedDataField as dh, UnexpectedResponseError as di, UpdatePerpsLeverageError as dj, type UpdatePerpsLeverageRequest as dk, UpdatePerpsMarginError as dl, type UpdatePerpsMarginRequest as dm, WaitForComboFillError as dn, type WaitForComboFillParams as dp, type WaitForComboFillResult as dq, WaitForOrderFillSettlementError as dr, WaitForTransactionError as ds, type WalletDerivationConfig as dt, type WebSocketCloseCode as du, type WebSocketEndpoint as dv, WebSocketKnownCloseCode as dw, WithdrawFromPerpsError as dx, type WithdrawFromPerpsRequest as dy, accountActions as dz, type AcceptComboQuoteResult as e, type ListClosedPositionsRequest as e$, type EquityPricesSubscription as e0, type Erc1155ApprovalForAllWorkflow as e1, type Erc1155ApprovalForAllWorkflowRequest as e2, type Erc20ApprovalWorkflow as e3, type Erc20ApprovalWorkflowRequest as e4, type Erc20TransferWorkflow as e5, type Erc20TransferWorkflowRequest as e6, type EstimateMarketBuyPriceRequest as e7, type EstimateMarketPriceRequest as e8, type EstimateMarketSellPriceRequest as e9, type FetchOrderScoringRequest as eA, type FetchOrdersScoringRequest as eB, type FetchPortfolioValueRequest as eC, type FetchPriceHistoryRequest as eD, type FetchPriceRequest as eE, type FetchPricesRequest as eF, type FetchPublicProfileRequest as eG, type FetchRelatedTagResourcesRequest as eH, type FetchRelatedTagsRequest as eI, type FetchSeriesRequest as eJ, type FetchSpreadRequest as eK, type FetchSpreadsRequest as eL, type FetchTagRequest as eM, FetchTickSizeError as eN, type FetchTickSizeRequest as eO, type FetchTotalEarningsForUserForDayRequest as eP, type FetchTradedMarketCountRequest as eQ, GaslessTransactionMetadataSchema as eR, type GaslessWorkflow as eS, type GaslessWorkflowRequest as eT, IsWalletDeployedError as eU, type IsWalletDeployedRequest as eV, type ListAccountTradesRequest as eW, type ListActivityRequest as eX, type ListBuilderLeaderboardRequest as eY, type ListBuilderTradesRequest as eZ, type ListBuilderVolumeRequest as e_, type EventForSubscriptionSpec as ea, type EventForSubscriptionSpecs as eb, FetchBalanceAllowanceError as ec, type FetchBalanceAllowanceRequest as ed, FetchBuilderFeeRatesError as ee, type FetchBuilderFeeRatesRequest as ef, type FetchCommentsByIdRequest as eg, type FetchEventLiveVolumeRequest as eh, type FetchEventRequest as ei, type FetchEventTagsRequest as ej, FetchExecuteParamsError as ek, type FetchExecuteParamsRequest as el, type FetchGaslessTransactionRequest as em, type FetchLastTradePriceRequest as en, type FetchLastTradePricesRequest as eo, FetchMarketInfoError as ep, type FetchMarketInfoRequest as eq, type FetchMarketRequest as er, type FetchMarketTagsRequest as es, type FetchMidpointRequest as et, type FetchMidpointsRequest as eu, FetchNegRiskError as ev, type FetchNegRiskRequest as ew, type FetchOrderBookRequest as ex, type FetchOrderBooksRequest as ey, type FetchOrderRequest as ez, type AccountIdentity as f, PreparePerpsDepositError as f$, type ListComboActivityRequest as f0, type ListComboMarketsRequest as f1, type ListComboPositionsRequest as f2, type ListCommentsByUserAddressRequest as f3, type ListCommentsRequest as f4, type ListCurrentRewardsRequest as f5, type ListEventsRequest as f6, ListMarketClarificationsError as f7, type ListMarketClarificationsRequest as f8, type ListMarketHoldersRequest as f9, type PerpsDepositWorkflowRequest as fA, type PerpsMarketDataEventType as fB, type PerpsMarketDataSubscription as fC, type PerpsStatisticsSubscription as fD, type PerpsStreamingCandleInterval as fE, type PerpsTickersSubscription as fF, type PerpsTradesSubscription as fG, type PostOrdersRequest as fH, PrepareCollateralReturnExecutionError as fI, PrepareErc1155ApprovalForAllError as fJ, type PrepareErc1155ApprovalForAllRequest as fK, PrepareErc20ApprovalError as fL, type PrepareErc20ApprovalRequest as fM, PrepareErc20TransferError as fN, type PrepareErc20TransferRequest as fO, PrepareGaslessTransactionError as fP, type PrepareGaslessTransactionRequest as fQ, type PrepareLimitOrderRequest as fR, type PrepareMarketBuyOrderRequest as fS, type PrepareMarketOrderRequest as fT, type PrepareMarketSellOrderRequest as fU, PrepareMergeComboPositionError as fV, type PrepareMergeComboPositionRequest as fW, PrepareMergeMarketPositionError as fX, type PrepareMergeMarketPositionRequest as fY, PrepareMergePositionsError as fZ, type PrepareMergePositionsRequest as f_, type ListMarketPositionsRequest as fa, type ListMarketRewardsRequest as fb, type ListMarketsRequest as fc, type ListOpenInterestRequest as fd, type ListOpenOrdersRequest as fe, type ListPositionsRequest as ff, type ListSeriesRequest as fg, type ListTagsRequest as fh, type ListTeamsRequest as fi, type ListTraderLeaderboardRequest as fj, type ListTradesRequest as fk, type ListUserEarningsAndMarketsConfigRequest as fl, type ListUserEarningsForDayRequest as fm, type MarketEventType as fn, type MarketSubscription as fo, MergeComboPositionError as fp, MergeMarketPositionError as fq, type MergePositionsWorkflow as fr, type MergePositionsWorkflowRequest as fs, type OrderPostingWorkflow as ft, type OrderWorkflow as fu, type OrderWorkflowRequest as fv, type PerpsBboSubscription as fw, type PerpsBookSubscription as fx, type PerpsCandlesSubscription as fy, type PerpsDepositWorkflow as fz, type AnalyticsActions as g, fetchCommentsById as g$, PrepareRedeemComboPositionError as g0, type PrepareRedeemComboPositionRequest as g1, type PrepareRedeemMarketPositionsByConditionIdRequest as g2, type PrepareRedeemMarketPositionsByMarketIdRequest as g3, PrepareRedeemMarketPositionsError as g4, type PrepareRedeemMarketPositionsRequest as g5, type PrepareRedeemPositionRequest as g6, PrepareRedeemPositionsError as g7, type PrepareRedeemPositionsRequest as g8, PrepareSplitComboPositionError as g9, type SubscriptionHandle as gA, type TradingApprovalsWorkflow as gB, type TradingApprovalsWorkflowRequest as gC, UpdateBalanceAllowanceError as gD, type UpdateBalanceAllowanceRequest as gE, type UserEventType as gF, type UserSubscription as gG, WaitForGaslessTransactionError as gH, type WaitForOrderFillSettlementRequest as gI, acceptComboQuote as gJ, approveErc1155ForAll as gK, approveErc20 as gL, authorizeSessionKey as gM, cancelAll as gN, cancelMarketOrders as gO, cancelOrder as gP, cancelOrders as gQ, deployDepositWallet as gR, depositToPerps as gS, downloadAccountingSnapshot as gT, dropNotifications as gU, estimateMarketPrice as gV, executeCollateralReturnPlan as gW, fetchBalanceAllowance as gX, fetchBuilderFeeRates as gY, fetchBuilderVolume as gZ, fetchClosedOnlyMode as g_, type PrepareSplitComboPositionRequest as ga, PrepareSplitMarketPositionError as gb, type PrepareSplitMarketPositionRequest as gc, PrepareSplitPositionError as gd, type PrepareSplitPositionRequest as ge, PrepareTradingApprovalsError as gf, type PublicRealtimeEvent as gg, type PublicRealtimeTopic as gh, type PublicSubscriptionSpec as gi, type RedeemPositionsWorkflow as gj, type RedeemPositionsWorkflowRequest as gk, ResolveConditionByTokenError as gl, type ResolveConditionByTokenRequest as gm, type RfqConfirmationRejectedErrorOptions as gn, type RfqExecutionUpdateEvent as go, type SearchRequest as gp, type SearchResults as gq, type SecureRealtimeEvent as gr, type SecureRealtimeTopic as gs, type SecureSubscriptionSpec as gt, SplitComboPositionError as gu, SplitMarketPositionError as gv, type SplitPositionWorkflow as gw, type SplitPositionWorkflowRequest as gx, type SportsEventType as gy, type SportsSubscription as gz, ApproveErc1155ForAllError as h, listPerpsTrades as h$, fetchEvent as h0, fetchEventLiveVolume as h1, fetchEventTags as h2, fetchExecuteParams as h3, fetchLastTradePrice as h4, fetchLastTradePrices as h5, fetchMarket as h6, fetchMarketInfo as h7, fetchMarketTags as h8, fetchMidpoint as h9, fetchTag as hA, fetchTickSize as hB, fetchTotalEarningsForUserForDay as hC, fetchTradedMarketCount as hD, fetchTransaction as hE, isWalletDeployed as hF, listAccountTrades as hG, listActivity as hH, listBuilderLeaderboard as hI, listBuilderTrades as hJ, listClosedPositions as hK, listComboActivity as hL, listComboMarkets as hM, listComboPositions as hN, listComments as hO, listCommentsByUserAddress as hP, listCurrentRewards as hQ, listEvents as hR, listMarketClarifications as hS, listMarketHolders as hT, listMarketPositions as hU, listMarketRewards as hV, listMarkets as hW, listOpenInterest as hX, listOpenOrders as hY, listPerpsCandles as hZ, listPerpsFundingHistory as h_, fetchMidpoints as ha, fetchNegRisk as hb, fetchNotifications as hc, fetchOrder as hd, fetchOrderBook as he, fetchOrderBooks as hf, fetchOrderScoring as hg, fetchOrdersScoring as hh, fetchPerpsBook as hi, fetchPerpsFees as hj, fetchPerpsInstruments as hk, fetchPerpsTicker as hl, fetchPerpsTickers as hm, fetchPortfolioValue as hn, fetchPrice as ho, fetchPriceHistory as hp, fetchPrices as hq, fetchPublicProfile as hr, fetchRelatedTagResources as hs, fetchRelatedTags as ht, fetchRewardPercentages as hu, fetchRfqStatus as hv, fetchSeries as hw, fetchSessionKeys as hx, fetchSpread as hy, fetchSpreads as hz, ApproveErc20Error as i, listPositions as i0, listSeries as i1, listTags as i2, listTeams as i3, listTraderLeaderboard as i4, listTrades as i5, listUserEarningsAndMarketsConfig as i6, listUserEarningsForDay as i7, mergeComboPosition as i8, mergeMarketPosition as i9, requestComboQuote as iA, resolveConditionByToken as iB, revokePerpsCredentials as iC, revokeSessionKey as iD, search as iE, setupTradingApprovals as iF, splitComboPosition as iG, splitMarketPosition as iH, splitPosition as iI, subscribe as iJ, transferErc20 as iK, updateBalanceAllowance as iL, waitForComboFill as iM, waitForOrderFillSettlement as iN, withdrawFromPerps as iO, mergePositions as ia, openPerpsSession as ib, openRfqSession as ic, planCollateralReturn as id, postOrder as ie, postOrders as ig, prepareCollateralReturnExecution as ih, prepareErc1155ApprovalForAll as ii, prepareErc20Approval as ij, prepareErc20Transfer as ik, prepareGaslessTransaction as il, prepareMergeComboPosition as im, prepareMergeMarketPosition as io, prepareMergePositions as ip, preparePerpsDeposit as iq, prepareRedeemComboPosition as ir, prepareRedeemMarketPositions as is, prepareRedeemPosition as it, prepareRedeemPositions as iu, prepareSplitComboPosition as iv, prepareSplitMarketPosition as iw, prepareSplitPosition as ix, prepareTradingApprovals as iy, redeemPositions as iz, ArmPerpsAutoCancelError as j, type ArmPerpsAutoCancelRequest as k, AuthorizeSessionKeyError as l, type AuthorizeSessionKeyRequest as m, type AuthorizeSessionKeyResult as n, AutoCancelDailyLimitError as o, BasePublicClient as p, BaseSecureClient as q, type BeginAuthenticationRequest as r, type CancelAllPerpsOrdersRequest as s, CancelMarketOrdersError as t, CancelOrderError as u, CancelOrdersError as v, type CancelPerpsOrderRequest as w, type CancelPerpsOrdersRequest as x, CancelledSigningError as y, type Client as z };
9956
+ export { type EnvironmentContracts as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type ClientActions as D, type ClientDecorator as E, type ClobEndpoints as F, ComboPositionSort as G, type ComboPositionStatusFilter as H, type ComboQuote as I, type CombosEndpoints as J, ConnectionLostError as K, type ConnectionLostErrorOptions as L, type CreatePerpsSessionRequest as M, CreateSecureClientError as N, type CryptoPricesChainlinkTwapSubscription as O, type DataActions as P, DepositToPerpsError as Q, type DepositToPerpsRequest as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, type DisarmPerpsAutoCancelRequest as V, type DiscoveryActions as W, DownloadAccountingSnapshotError as X, DropNotificationsError as Y, type EnvironmentConfig as Z, type EnvironmentConfigFork as _, type TypedData as a, ListCommentsByUserAddressError as a$, type Erc1155TradingApproval as a0, type Erc20TradingApproval as a1, EstimateMarketPriceError as a2, ExecuteCollateralReturnPlanError as a3, type ExecuteCollateralReturnPlanRequest as a4, FetchClosedOnlyModeError as a5, FetchCommentsByIdError as a6, FetchEventError as a7, FetchEventLiveVolumeError as a8, FetchEventTagsError as a9, FetchPriceHistoryError as aA, FetchPricesError as aB, FetchPublicProfileError as aC, FetchRelatedTagResourcesError as aD, FetchRelatedTagsError as aE, FetchRewardPercentagesError as aF, FetchRfqStatusError as aG, type FetchRfqStatusParams as aH, FetchSeriesError as aI, FetchSessionKeysError as aJ, FetchSpreadError as aK, FetchSpreadsError as aL, FetchTagError as aM, FetchTotalEarningsForUserForDayError as aN, FetchTradedMarketCountError as aO, FetchTradingApprovalsStateError as aP, type FetchTradingApprovalsStateRequest as aQ, InsufficientLiquidityError as aR, ListAccountTradesError as aS, ListActivityError as aT, ListBuilderLeaderboardError as aU, ListBuilderTradesError as aV, ListBuilderVolumeError as aW, ListClosedPositionsError as aX, ListComboActivityError as aY, ListComboMarketsError as aZ, ListComboPositionsError as a_, FetchLastTradePriceError as aa, FetchLastTradePricesError as ab, FetchMarketError as ac, FetchMarketTagsError as ad, FetchMidpointError as ae, FetchMidpointsError as af, FetchNotificationsError as ag, FetchOrderBookError as ah, FetchOrderBooksError as ai, FetchOrderError as aj, FetchOrderScoringError as ak, FetchOrdersScoringError as al, type FetchPerpsAccountConfigRequest as am, FetchPerpsBookError as an, type FetchPerpsBookRequest as ao, FetchPerpsFeesError as ap, FetchPerpsInstrumentsError as aq, type FetchPerpsInstrumentsRequest as ar, type FetchPerpsOpenOrdersRequest as as, type FetchPerpsOrdersRequest as at, FetchPerpsTickerError as au, type FetchPerpsTickerRequest as av, FetchPerpsTickersError as aw, type FetchPerpsTickersRequest as ax, FetchPortfolioValueError as ay, FetchPriceError as az, type TransactionCall as b, type PostPerpsOrdersRequest as b$, ListCommentsError as b0, ListCurrentRewardsError as b1, ListEventsError as b2, ListMarketHoldersError as b3, ListMarketPositionsError as b4, ListMarketRewardsError as b5, ListMarketsError as b6, ListOpenInterestError as b7, ListOpenOrdersError as b8, ListPerpsCandlesError as b9, type Page as bA, PageSizeSchema as bB, type Paginated as bC, type PerpsActions as bD, type PerpsBookDepth as bE, type PerpsEndpoints as bF, type PerpsOrderRequest as bG, type PerpsPlaceFokOrderRequest as bH, type PerpsPlaceGtcOrderRequest as bI, type PerpsPlaceIocOrderRequest as bJ, type PerpsPlacedTpSlOrder as bK, type PerpsPlacedTpSlOrders as bL, type PerpsPositionTpSlTrigger as bM, PerpsSession as bN, type PerpsSessionAccountError as bO, type PerpsSessionLifecycleError as bP, type PerpsSessionTradingError as bQ, type PerpsTpSlTrigger as bR, type PlacePerpsOrderRequest as bS, type PlacePerpsOrderResult as bT, type PlacePerpsOrderWithTpSlRequest as bU, type PlacePerpsOrderWithTpSlResult as bV, type PlacePerpsPositionTpSlRequest as bW, type PlacePerpsPositionTpSlResult as bX, PlanCollateralReturnError as bY, PostOrderError as bZ, PostOrdersError as b_, type ListPerpsCandlesRequest as ba, type ListPerpsDepositsRequest as bb, type ListPerpsEquityHistoryRequest as bc, type ListPerpsFillsRequest as bd, ListPerpsFundingHistoryError as be, type ListPerpsFundingHistoryRequest as bf, type ListPerpsFundingPaymentsRequest as bg, type ListPerpsNotificationsRequest as bh, type ListPerpsPnlHistoryRequest as bi, ListPerpsTradesError as bj, type ListPerpsTradesRequest as bk, type ListPerpsWithdrawalsRequest as bl, ListPositionsError as bm, ListSeriesError as bn, ListTagsError as bo, ListTeamsError as bp, ListTraderLeaderboardError as bq, ListTradesError as br, ListUserEarningsAndMarketsConfigError as bs, ListUserEarningsForDayError as bt, type MarkPerpsNotificationsReadRequest as bu, MergePositionsError as bv, OpenPerpsSessionError as bw, type OpenPerpsSessionRequest as bx, OpenRfqSessionError as by, type OrderSignature as bz, AcceptComboQuoteError as c, type SecureSubscriptionsActions as c$, type PublicAccountActions as c0, type PublicActions as c1, type PublicClient as c2, type PublicClientOptions as c3, type PublicPerpsActions as c4, type PublicRewardsActions as c5, type PublicSubscriptionsActions as c6, type PublicWalletActions as c7, type RateLimitBucket as c8, RateLimitError as c9, RfqQuoteRejectedError as cA, type RfqQuoteRejectedErrorOptions as cB, type RfqQuoteRequestEvent as cC, type RfqQuoteResponse as cD, type RfqQuoteSource as cE, RfqRequestRejectedError as cF, type RfqRequestRejectedErrorOptions as cG, type RfqSession as cH, type RfqStatusResult as cI, type RfqTradeEvent as cJ, SearchError as cK, SearchSort as cL, type SecureAccountActions as cM, type SecureActions as cN, type SecureClient as cO, type SecureClientOptions as cP, type SecureDownloadAccountingSnapshotRequest as cQ, type SecureFetchPortfolioValueRequest as cR, type SecureFetchTradedMarketCountRequest as cS, type SecureListActivityRequest as cT, type SecureListClosedPositionsRequest as cU, type SecureListComboActivityRequest as cV, type SecureListComboPositionsRequest as cW, type SecureListPositionsRequest as cX, type SecurePerpsActions as cY, type SecureRewardsActions as cZ, type SecureRfqActions as c_, type RateLimitErrorOptions as ca, type RateLimitUpdate as cb, type RateLimitUpdateListener as cc, RedeemPositionsError as cd, RequestComboQuoteError as ce, type RequestComboQuoteParams as cf, type RequestComboQuoteResult as cg, RequestRejectedError as ch, type RequestRejectedErrorOptions as ci, type RestEndpoint as cj, type ResumePerpsSessionRequest as ck, RevokePerpsCredentialsError as cl, type RevokePerpsCredentialsRequest as cm, RevokeSessionKeyError as cn, type RevokeSessionKeyRequest as co, type RfqCancelQuoteAck as cp, RfqCancelQuoteError as cq, RfqCancelQuoteRejectedError as cr, type RfqCancelQuoteRejectedErrorOptions as cs, type RfqConfirmationAck as ct, RfqConfirmationError as cu, RfqConfirmationRejectedError as cv, type RfqConfirmationRequestEvent as cw, type RfqEvent as cx, RfqQuoteError as cy, type RfqQuoteReference as cz, type AcceptComboQuoteParams as d, type CryptoPricesEventType as d$, type SecureTradingActions as d0, type SecureWalletActions as d1, type SessionKey as d2, type SessionKeyActions as d3, SetupGaslessWalletError as d4, SetupTradingApprovalsError as d5, type SignedOrder as d6, type SignerTransactionRequest as d7, SignerType as d8, SigningError as d9, type WebSocketEndpoint as dA, WebSocketKnownCloseCode as dB, WithdrawFromPerpsError as dC, type WithdrawFromPerpsRequest as dD, accountActions as dE, allActions as dF, analyticsActions as dG, createPublicClient as dH, createSecureClient as dI, dataActions as dJ, discoveryActions as dK, forkEnvironmentConfig as dL, makeErrorGuard as dM, perpsActions as dN, production as dO, rewardsActions as dP, rfqActions as dQ, sessionKeyActions as dR, subscriptionsActions as dS, tradingActions as dT, walletActions as dU, type CancelMarketOrdersRequest as dV, type CancelOrderRequest as dW, type CancelOrdersRequest as dX, type CollateralReturnExecutionWorkflow as dY, type CommentsEventType as dZ, type CommentsSubscription as d_, SplitPositionError as da, SubscribeError as db, TimeoutError as dc, type TradingApprovalRequirements as dd, type TradingApprovalsState as de, TradingRestriction as df, TransactionFailedError as dg, type TransactionHandle as dh, type TransactionOutcome as di, TransferErc20Error as dj, TransportError as dk, type TypedDataDomain as dl, type TypedDataField as dm, UnexpectedResponseError as dn, UpdatePerpsLeverageError as dp, type UpdatePerpsLeverageRequest as dq, UpdatePerpsMarginError as dr, type UpdatePerpsMarginRequest as ds, WaitForComboFillError as dt, type WaitForComboFillParams as du, type WaitForComboFillResult as dv, WaitForOrderFillSettlementError as dw, WaitForTransactionError as dx, type WalletDerivationConfig as dy, type WebSocketCloseCode as dz, type AcceptComboQuoteResult as e, type ListAccountTradesRequest as e$, type CryptoPricesSubscription as e0, DeployDepositWalletError as e1, type DownloadAccountingSnapshotRequest as e2, type DropNotificationsRequest as e3, type EquityPricesEventType as e4, type EquityPricesSubscription as e5, type Erc1155ApprovalForAllWorkflow as e6, type Erc1155ApprovalForAllWorkflowRequest as e7, type Erc20ApprovalWorkflow as e8, type Erc20ApprovalWorkflowRequest as e9, FetchNegRiskError as eA, type FetchNegRiskRequest as eB, type FetchOrderBookRequest as eC, type FetchOrderBooksRequest as eD, type FetchOrderRequest as eE, type FetchOrderScoringRequest as eF, type FetchOrdersScoringRequest as eG, type FetchPortfolioValueRequest as eH, type FetchPriceHistoryRequest as eI, type FetchPriceRequest as eJ, type FetchPricesRequest as eK, type FetchPublicProfileRequest as eL, type FetchRelatedTagResourcesRequest as eM, type FetchRelatedTagsRequest as eN, type FetchSeriesRequest as eO, type FetchSpreadRequest as eP, type FetchSpreadsRequest as eQ, type FetchTagRequest as eR, FetchTickSizeError as eS, type FetchTickSizeRequest as eT, type FetchTotalEarningsForUserForDayRequest as eU, type FetchTradedMarketCountRequest as eV, GaslessTransactionMetadataSchema as eW, type GaslessWorkflow as eX, type GaslessWorkflowRequest as eY, IsWalletDeployedError as eZ, type IsWalletDeployedRequest as e_, type Erc20TransferWorkflow as ea, type Erc20TransferWorkflowRequest as eb, type EstimateMarketBuyPriceRequest as ec, type EstimateMarketPriceRequest as ed, type EstimateMarketSellPriceRequest as ee, type EventForSubscriptionSpec as ef, type EventForSubscriptionSpecs as eg, FetchBalanceAllowanceError as eh, type FetchBalanceAllowanceRequest as ei, FetchBuilderFeeRatesError as ej, type FetchBuilderFeeRatesRequest as ek, type FetchCommentsByIdRequest as el, type FetchEventLiveVolumeRequest as em, type FetchEventRequest as en, type FetchEventTagsRequest as eo, FetchExecuteParamsError as ep, type FetchExecuteParamsRequest as eq, type FetchGaslessTransactionRequest as er, type FetchLastTradePriceRequest as es, type FetchLastTradePricesRequest as et, FetchMarketInfoError as eu, type FetchMarketInfoRequest as ev, type FetchMarketRequest as ew, type FetchMarketTagsRequest as ex, type FetchMidpointRequest as ey, type FetchMidpointsRequest as ez, type AccountIdentity as f, type PrepareMergeComboPositionRequest as f$, type ListActivityRequest as f0, type ListBuilderLeaderboardRequest as f1, type ListBuilderTradesRequest as f2, type ListBuilderVolumeRequest as f3, type ListClosedPositionsRequest as f4, type ListComboActivityRequest as f5, type ListComboMarketsRequest as f6, type ListComboPositionsRequest as f7, type ListCommentsByUserAddressRequest as f8, type ListCommentsRequest as f9, type OrderWorkflowRequest as fA, type PerpsBboSubscription as fB, type PerpsBookSubscription as fC, type PerpsCandlesSubscription as fD, type PerpsDepositWorkflow as fE, type PerpsDepositWorkflowRequest as fF, type PerpsMarketDataEventType as fG, type PerpsMarketDataSubscription as fH, type PerpsStatisticsSubscription as fI, type PerpsStreamingCandleInterval as fJ, type PerpsTickersSubscription as fK, type PerpsTradesSubscription as fL, type PostOrdersRequest as fM, PrepareCollateralReturnExecutionError as fN, PrepareErc1155ApprovalForAllError as fO, type PrepareErc1155ApprovalForAllRequest as fP, PrepareErc20ApprovalError as fQ, type PrepareErc20ApprovalRequest as fR, PrepareErc20TransferError as fS, type PrepareErc20TransferRequest as fT, PrepareGaslessTransactionError as fU, type PrepareGaslessTransactionRequest as fV, type PrepareLimitOrderRequest as fW, type PrepareMarketBuyOrderRequest as fX, type PrepareMarketOrderRequest as fY, type PrepareMarketSellOrderRequest as fZ, PrepareMergeComboPositionError as f_, type ListCurrentRewardsRequest as fa, type ListEventsRequest as fb, ListMarketClarificationsError as fc, type ListMarketClarificationsRequest as fd, type ListMarketHoldersRequest as fe, type ListMarketPositionsRequest as ff, type ListMarketRewardsRequest as fg, type ListMarketsRequest as fh, type ListOpenInterestRequest as fi, type ListOpenOrdersRequest as fj, type ListPositionsRequest as fk, type ListSeriesRequest as fl, type ListTagsRequest as fm, type ListTeamsRequest as fn, type ListTraderLeaderboardRequest as fo, type ListTradesRequest as fp, type ListUserEarningsAndMarketsConfigRequest as fq, type ListUserEarningsForDayRequest as fr, type MarketEventType as fs, type MarketSubscription as ft, MergeComboPositionError as fu, MergeMarketPositionError as fv, type MergePositionsWorkflow as fw, type MergePositionsWorkflowRequest as fx, type OrderPostingWorkflow as fy, type OrderWorkflow as fz, type AnalyticsActions as g, executeCollateralReturnPlan as g$, PrepareMergeMarketPositionError as g0, type PrepareMergeMarketPositionRequest as g1, PrepareMergePositionsError as g2, type PrepareMergePositionsRequest as g3, PreparePerpsDepositError as g4, PrepareRedeemComboPositionError as g5, type PrepareRedeemComboPositionRequest as g6, type PrepareRedeemMarketPositionsByConditionIdRequest as g7, type PrepareRedeemMarketPositionsByMarketIdRequest as g8, PrepareRedeemMarketPositionsError as g9, SplitMarketPositionError as gA, type SplitPositionWorkflow as gB, type SplitPositionWorkflowRequest as gC, type SportsEventType as gD, type SportsSubscription as gE, type SubscriptionHandle as gF, type TradingApprovalsWorkflow as gG, type TradingApprovalsWorkflowRequest as gH, UpdateBalanceAllowanceError as gI, type UpdateBalanceAllowanceRequest as gJ, type UserEventType as gK, type UserSubscription as gL, WaitForGaslessTransactionError as gM, type WaitForOrderFillSettlementRequest as gN, acceptComboQuote as gO, approveErc1155ForAll as gP, approveErc20 as gQ, authorizeSessionKey as gR, cancelAll as gS, cancelMarketOrders as gT, cancelOrder as gU, cancelOrders as gV, deployDepositWallet as gW, depositToPerps as gX, downloadAccountingSnapshot as gY, dropNotifications as gZ, estimateMarketPrice as g_, type PrepareRedeemMarketPositionsRequest as ga, type PrepareRedeemPositionRequest as gb, PrepareRedeemPositionsError as gc, type PrepareRedeemPositionsRequest as gd, PrepareSplitComboPositionError as ge, type PrepareSplitComboPositionRequest as gf, PrepareSplitMarketPositionError as gg, type PrepareSplitMarketPositionRequest as gh, PrepareSplitPositionError as gi, type PrepareSplitPositionRequest as gj, PrepareTradingApprovalsError as gk, type PublicRealtimeEvent as gl, type PublicRealtimeTopic as gm, type PublicSubscriptionSpec as gn, type RedeemPositionsWorkflow as go, type RedeemPositionsWorkflowRequest as gp, ResolveConditionByTokenError as gq, type ResolveConditionByTokenRequest as gr, type RfqConfirmationRejectedErrorOptions as gs, type RfqExecutionUpdateEvent as gt, type SearchRequest as gu, type SearchResults as gv, type SecureRealtimeEvent as gw, type SecureRealtimeTopic as gx, type SecureSubscriptionSpec as gy, SplitComboPositionError as gz, ApproveErc1155ForAllError as h, listMarketRewards as h$, fetchBalanceAllowance as h0, fetchBuilderFeeRates as h1, fetchBuilderVolume as h2, fetchClosedOnlyMode as h3, fetchCommentsById as h4, fetchEvent as h5, fetchEventLiveVolume as h6, fetchEventTags as h7, fetchExecuteParams as h8, fetchLastTradePrice as h9, fetchRfqStatus as hA, fetchSeries as hB, fetchSessionKeys as hC, fetchSpread as hD, fetchSpreads as hE, fetchTag as hF, fetchTickSize as hG, fetchTotalEarningsForUserForDay as hH, fetchTradedMarketCount as hI, fetchTradingApprovalsState as hJ, fetchTransaction as hK, isWalletDeployed as hL, listAccountTrades as hM, listActivity as hN, listBuilderLeaderboard as hO, listBuilderTrades as hP, listClosedPositions as hQ, listComboActivity as hR, listComboMarkets as hS, listComboPositions as hT, listComments as hU, listCommentsByUserAddress as hV, listCurrentRewards as hW, listEvents as hX, listMarketClarifications as hY, listMarketHolders as hZ, listMarketPositions as h_, fetchLastTradePrices as ha, fetchMarket as hb, fetchMarketInfo as hc, fetchMarketTags as hd, fetchMidpoint as he, fetchMidpoints as hf, fetchNegRisk as hg, fetchNotifications as hh, fetchOrder as hi, fetchOrderBook as hj, fetchOrderBooks as hk, fetchOrderScoring as hl, fetchOrdersScoring as hm, fetchPerpsBook as hn, fetchPerpsFees as ho, fetchPerpsInstruments as hp, fetchPerpsTicker as hq, fetchPerpsTickers as hr, fetchPortfolioValue as hs, fetchPrice as ht, fetchPriceHistory as hu, fetchPrices as hv, fetchPublicProfile as hw, fetchRelatedTagResources as hx, fetchRelatedTags as hy, fetchRewardPercentages as hz, ApproveErc20Error as i, listMarkets as i0, listOpenInterest as i1, listOpenOrders as i2, listPerpsCandles as i3, listPerpsFundingHistory as i4, listPerpsTrades as i5, listPositions as i6, listSeries as i7, listTags as i8, listTeams as i9, prepareRedeemPositions as iA, prepareSplitComboPosition as iB, prepareSplitMarketPosition as iC, prepareSplitPosition as iD, prepareTradingApprovals as iE, redeemPositions as iF, requestComboQuote as iG, resolveConditionByToken as iH, revokePerpsCredentials as iI, revokeSessionKey as iJ, search as iK, setupTradingApprovals as iL, splitComboPosition as iM, splitMarketPosition as iN, splitPosition as iO, subscribe as iP, transferErc20 as iQ, updateBalanceAllowance as iR, waitForComboFill as iS, waitForOrderFillSettlement as iT, withdrawFromPerps as iU, listTraderLeaderboard as ia, listTrades as ib, listUserEarningsAndMarketsConfig as ic, listUserEarningsForDay as id, mergeComboPosition as ie, mergeMarketPosition as ig, mergePositions as ih, openPerpsSession as ii, openRfqSession as ij, planCollateralReturn as ik, postOrder as il, postOrders as im, prepareCollateralReturnExecution as io, prepareErc1155ApprovalForAll as ip, prepareErc20Approval as iq, prepareErc20Transfer as ir, prepareGaslessTransaction as is, prepareMergeComboPosition as it, prepareMergeMarketPosition as iu, prepareMergePositions as iv, preparePerpsDeposit as iw, prepareRedeemComboPosition as ix, prepareRedeemMarketPositions as iy, prepareRedeemPosition as iz, ArmPerpsAutoCancelError as j, type ArmPerpsAutoCancelRequest as k, AuthorizeSessionKeyError as l, type AuthorizeSessionKeyRequest as m, type AuthorizeSessionKeyResult as n, AutoCancelDailyLimitError as o, BasePublicClient as p, BaseSecureClient as q, type BeginAuthenticationRequest as r, type CancelAllPerpsOrdersRequest as s, CancelMarketOrdersError as t, CancelOrderError as u, CancelOrdersError as v, type CancelPerpsOrderRequest as w, type CancelPerpsOrdersRequest as x, CancelledSigningError as y, type Client as z };