@polymarket/bindings 0.1.0-beta.9 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { TokenId, DecimalString, EpochMilliseconds, CtfConditionId, IsoDateTimeString, OrderSide, OrderType, BaseUnits, CommentId, CommentParentEntityType, EventId, SeriesId, ImageOptimizationId } from '../index.js';
2
2
  import { z } from 'zod';
3
- import { P as PerpsInstrumentId, K as PerpsKlineInterval, a as PerpsDepositStatus, h as PerpsTradeId, O as PerpsOrderId, i as PerpsSide, _ as PerpsTimeInForce, S as PerpsOrderStatus, b as PerpsWithdrawalId, c as PerpsWithdrawalStatus } from '../orders-B7JX0nMz.js';
3
+ import { P as PerpsInstrumentId, Q as PerpsKlineInterval, b as PerpsDepositStatus, i as PerpsTradeId, T as PerpsOrderId, j as PerpsSide, a2 as PerpsTimeInForce, W as PerpsOrderStatus, a4 as PerpsTpSlKind, a8 as PerpsTpSlScope, c as PerpsWithdrawalId, d as PerpsWithdrawalStatus } from '../orders-mGd3XVG1.js';
4
4
  import * as _polymarket_types from '@polymarket/types';
5
5
  import { R as ReactionType } from '../comment-C-jBbhp7.js';
6
6
 
@@ -38,10 +38,10 @@ declare const MarketBookEventSchema: z.ZodPipe<z.ZodObject<{
38
38
  }, z.core.$strip>>;
39
39
  hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
41
- min_order_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
42
- tick_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
41
+ min_order_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
42
+ tick_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
43
43
  neg_risk: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
44
- last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
44
+ last_trade_price: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
45
45
  }, z.core.$strip>, z.ZodTransform<{
46
46
  topic: "market";
47
47
  type: "book";
@@ -89,8 +89,8 @@ declare const PriceChangeSchema: z.ZodPipe<z.ZodObject<{
89
89
  size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
90
90
  side: z.ZodType<OrderSide, unknown, z.core.$ZodTypeInternals<OrderSide, unknown>>;
91
91
  hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
- best_bid: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
93
- best_ask: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
92
+ best_bid: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
93
+ best_ask: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
94
94
  }, z.core.$strip>, z.ZodTransform<{
95
95
  tokenId: TokenId;
96
96
  bestBid: DecimalString | null | undefined;
@@ -118,8 +118,8 @@ declare const MarketPriceChangeEventSchema: z.ZodPipe<z.ZodObject<{
118
118
  size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
119
119
  side: z.ZodType<OrderSide, unknown, z.core.$ZodTypeInternals<OrderSide, unknown>>;
120
120
  hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
- best_bid: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
122
- best_ask: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
121
+ best_bid: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
122
+ best_ask: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
123
123
  }, z.core.$strip>, z.ZodTransform<{
124
124
  tokenId: TokenId;
125
125
  bestBid: DecimalString | null | undefined;
@@ -174,8 +174,8 @@ declare const MarketLastTradePriceEventSchema: z.ZodPipe<z.ZodObject<{
174
174
  market: z.ZodString;
175
175
  asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
176
176
  price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
177
- size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
178
- fee_rate_bps: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
177
+ size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
178
+ fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
179
179
  side: z.ZodType<OrderSide, unknown, z.core.$ZodTypeInternals<OrderSide, unknown>>;
180
180
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
181
181
  transaction_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -208,7 +208,7 @@ declare const MarketTickSizeChangeEventSchema: z.ZodPipe<z.ZodObject<{
208
208
  event_type: z.ZodLiteral<"tick_size_change">;
209
209
  market: z.ZodString;
210
210
  asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
211
- old_tick_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
211
+ old_tick_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
212
212
  new_tick_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
213
213
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
214
214
  }, z.core.$strip>, z.ZodTransform<{
@@ -234,9 +234,9 @@ declare const MarketBestBidAskEventSchema: z.ZodPipe<z.ZodObject<{
234
234
  event_type: z.ZodLiteral<"best_bid_ask">;
235
235
  market: z.ZodString;
236
236
  asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
237
- best_bid: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
238
- best_ask: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
239
- spread: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
237
+ best_bid: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
238
+ best_ask: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
239
+ spread: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
240
240
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
241
241
  }, z.core.$strip>, z.ZodTransform<{
242
242
  topic: "market";
@@ -289,11 +289,11 @@ declare const NewMarketEventSchema: z.ZodPipe<z.ZodObject<{
289
289
  active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
290
290
  clob_token_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
291
291
  sports_market_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
292
- line: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
292
+ line: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
293
293
  game_start_time: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
294
- order_price_min_tick_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
294
+ order_price_min_tick_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
295
295
  group_item_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
296
- taker_base_fee: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
296
+ taker_base_fee: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
297
297
  fees_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
298
298
  fee_schedule: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
299
299
  }, z.core.$strip>, z.ZodTransform<{
@@ -488,7 +488,7 @@ declare const TradeMakerOrderSchema: z.ZodPipe<z.ZodObject<{
488
488
  maker_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
489
489
  matched_amount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
490
490
  price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
491
- fee_rate_bps: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
491
+ fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
492
492
  asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
493
493
  outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
494
494
  outcome_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -526,7 +526,7 @@ declare const UserTradeEventSchema: z.ZodPipe<z.ZodObject<{
526
526
  asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
527
527
  side: z.ZodType<OrderSide, unknown, z.core.$ZodTypeInternals<OrderSide, unknown>>;
528
528
  size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
529
- fee_rate_bps: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
529
+ fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
530
530
  price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
531
531
  status: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<typeof TradeStatus>>;
532
532
  match_time: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>>>;
@@ -544,7 +544,7 @@ declare const UserTradeEventSchema: z.ZodPipe<z.ZodObject<{
544
544
  maker_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
545
545
  matched_amount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
546
546
  price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
547
- fee_rate_bps: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
547
+ fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
548
548
  asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
549
549
  outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
550
550
  outcome_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -661,10 +661,10 @@ declare const StandardMarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.Zo
661
661
  }, z.core.$strip>>;
662
662
  hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
663
663
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
664
- min_order_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
665
- tick_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
664
+ min_order_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
665
+ tick_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
666
666
  neg_risk: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
667
- last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
667
+ last_trade_price: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
668
668
  }, z.core.$strip>, z.ZodTransform<{
669
669
  topic: "market";
670
670
  type: "book";
@@ -713,8 +713,8 @@ declare const StandardMarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.Zo
713
713
  size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
714
714
  side: z.ZodType<OrderSide, unknown, z.core.$ZodTypeInternals<OrderSide, unknown>>;
715
715
  hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
716
- best_bid: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
717
- best_ask: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
716
+ best_bid: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
717
+ best_ask: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
718
718
  }, z.core.$strip>, z.ZodTransform<{
719
719
  tokenId: TokenId;
720
720
  bestBid: DecimalString | null | undefined;
@@ -767,8 +767,8 @@ declare const StandardMarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.Zo
767
767
  market: z.ZodString;
768
768
  asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
769
769
  price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
770
- size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
771
- fee_rate_bps: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
770
+ size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
771
+ fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
772
772
  side: z.ZodType<OrderSide, unknown, z.core.$ZodTypeInternals<OrderSide, unknown>>;
773
773
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
774
774
  transaction_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -799,7 +799,7 @@ declare const StandardMarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.Zo
799
799
  event_type: z.ZodLiteral<"tick_size_change">;
800
800
  market: z.ZodString;
801
801
  asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
802
- old_tick_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
802
+ old_tick_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
803
803
  new_tick_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
804
804
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
805
805
  }, z.core.$strip>, z.ZodTransform<{
@@ -825,9 +825,9 @@ declare const CustomMarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodO
825
825
  event_type: z.ZodLiteral<"best_bid_ask">;
826
826
  market: z.ZodString;
827
827
  asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
828
- best_bid: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
829
- best_ask: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
830
- spread: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
828
+ best_bid: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
829
+ best_ask: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
830
+ spread: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
831
831
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
832
832
  }, z.core.$strip>, z.ZodTransform<{
833
833
  topic: "market";
@@ -870,11 +870,11 @@ declare const CustomMarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodO
870
870
  active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
871
871
  clob_token_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
872
872
  sports_market_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
873
- line: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
873
+ line: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
874
874
  game_start_time: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
875
- order_price_min_tick_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
875
+ order_price_min_tick_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
876
876
  group_item_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
877
- taker_base_fee: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
877
+ taker_base_fee: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
878
878
  fees_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
879
879
  fee_schedule: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
880
880
  }, z.core.$strip>, z.ZodTransform<{
@@ -1005,10 +1005,10 @@ declare const MarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<
1005
1005
  }, z.core.$strip>>;
1006
1006
  hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1007
1007
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
1008
- min_order_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1009
- tick_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1008
+ min_order_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
1009
+ tick_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
1010
1010
  neg_risk: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1011
- last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1011
+ last_trade_price: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
1012
1012
  }, z.core.$strip>, z.ZodTransform<{
1013
1013
  topic: "market";
1014
1014
  type: "book";
@@ -1057,8 +1057,8 @@ declare const MarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<
1057
1057
  size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1058
1058
  side: z.ZodType<OrderSide, unknown, z.core.$ZodTypeInternals<OrderSide, unknown>>;
1059
1059
  hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1060
- best_bid: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1061
- best_ask: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1060
+ best_bid: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
1061
+ best_ask: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
1062
1062
  }, z.core.$strip>, z.ZodTransform<{
1063
1063
  tokenId: TokenId;
1064
1064
  bestBid: DecimalString | null | undefined;
@@ -1111,8 +1111,8 @@ declare const MarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<
1111
1111
  market: z.ZodString;
1112
1112
  asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1113
1113
  price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1114
- size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1115
- fee_rate_bps: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1114
+ size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
1115
+ fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
1116
1116
  side: z.ZodType<OrderSide, unknown, z.core.$ZodTypeInternals<OrderSide, unknown>>;
1117
1117
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
1118
1118
  transaction_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1143,7 +1143,7 @@ declare const MarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<
1143
1143
  event_type: z.ZodLiteral<"tick_size_change">;
1144
1144
  market: z.ZodString;
1145
1145
  asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1146
- old_tick_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1146
+ old_tick_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
1147
1147
  new_tick_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1148
1148
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
1149
1149
  }, z.core.$strip>, z.ZodTransform<{
@@ -1167,9 +1167,9 @@ declare const MarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<
1167
1167
  event_type: z.ZodLiteral<"best_bid_ask">;
1168
1168
  market: z.ZodString;
1169
1169
  asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1170
- best_bid: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1171
- best_ask: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1172
- spread: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1170
+ best_bid: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
1171
+ best_ask: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
1172
+ spread: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
1173
1173
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
1174
1174
  }, z.core.$strip>, z.ZodTransform<{
1175
1175
  topic: "market";
@@ -1212,11 +1212,11 @@ declare const MarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<
1212
1212
  active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1213
1213
  clob_token_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1214
1214
  sports_market_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1215
- line: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1215
+ line: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
1216
1216
  game_start_time: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
1217
- order_price_min_tick_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1217
+ order_price_min_tick_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
1218
1218
  group_item_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1219
- taker_base_fee: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1219
+ taker_base_fee: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
1220
1220
  fees_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1221
1221
  fee_schedule: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
1222
1222
  }, z.core.$strip>, z.ZodTransform<{
@@ -1405,7 +1405,7 @@ declare const UserEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
1405
1405
  asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1406
1406
  side: z.ZodType<OrderSide, unknown, z.core.$ZodTypeInternals<OrderSide, unknown>>;
1407
1407
  size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1408
- fee_rate_bps: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1408
+ fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
1409
1409
  price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1410
1410
  status: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<typeof TradeStatus>>;
1411
1411
  match_time: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>>>;
@@ -1423,7 +1423,7 @@ declare const UserEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
1423
1423
  maker_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1424
1424
  matched_amount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1425
1425
  price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1426
- fee_rate_bps: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1426
+ fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
1427
1427
  asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1428
1428
  outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1429
1429
  outcome_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1527,11 +1527,14 @@ declare const UserEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
1527
1527
  }>>], "event_type">;
1528
1528
  type UserEvent = z.infer<typeof UserEventSchema>;
1529
1529
 
1530
+ /**
1531
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1532
+ */
1530
1533
  declare const PerpsTradeEventSchema: z.ZodPipe<z.ZodObject<{
1531
1534
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1532
1535
  sq: z.ZodNumber;
1533
1536
  ch: z.ZodString;
1534
- data: z.ZodPipe<z.ZodObject<{
1537
+ data: z.ZodArray<z.ZodPipe<z.ZodObject<{
1535
1538
  tid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1536
1539
  iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1537
1540
  side: z.ZodEnum<typeof PerpsSide>;
@@ -1555,7 +1558,7 @@ declare const PerpsTradeEventSchema: z.ZodPipe<z.ZodObject<{
1555
1558
  qty: DecimalString;
1556
1559
  ts: EpochMilliseconds;
1557
1560
  hash?: _polymarket_types.TxHash | undefined;
1558
- }>>;
1561
+ }>>>;
1559
1562
  }, z.core.$strip>, z.ZodTransform<{
1560
1563
  topic: "perps.trades";
1561
1564
  type: "trade";
@@ -1570,7 +1573,7 @@ declare const PerpsTradeEventSchema: z.ZodPipe<z.ZodObject<{
1570
1573
  quantity: DecimalString;
1571
1574
  timestamp: EpochMilliseconds;
1572
1575
  hash: _polymarket_types.TxHash | undefined;
1573
- };
1576
+ }[];
1574
1577
  }, {
1575
1578
  ts: EpochMilliseconds;
1576
1579
  sq: number;
@@ -1583,9 +1586,15 @@ declare const PerpsTradeEventSchema: z.ZodPipe<z.ZodObject<{
1583
1586
  quantity: DecimalString;
1584
1587
  timestamp: EpochMilliseconds;
1585
1588
  hash: _polymarket_types.TxHash | undefined;
1586
- };
1589
+ }[];
1587
1590
  }>>;
1591
+ /**
1592
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1593
+ */
1588
1594
  type PerpsTradeEvent = z.infer<typeof PerpsTradeEventSchema>;
1595
+ /**
1596
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1597
+ */
1589
1598
  declare const PerpsBboEventSchema: z.ZodPipe<z.ZodObject<{
1590
1599
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1591
1600
  sq: z.ZodNumber;
@@ -1634,7 +1643,13 @@ declare const PerpsBboEventSchema: z.ZodPipe<z.ZodObject<{
1634
1643
  askQuantity: DecimalString;
1635
1644
  };
1636
1645
  }>>;
1646
+ /**
1647
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1648
+ */
1637
1649
  type PerpsBboEvent = z.infer<typeof PerpsBboEventSchema>;
1650
+ /**
1651
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1652
+ */
1638
1653
  declare const PerpsBookEventSchema: z.ZodPipe<z.ZodObject<{
1639
1654
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1640
1655
  sq: z.ZodNumber;
@@ -1699,7 +1714,13 @@ declare const PerpsBookEventSchema: z.ZodPipe<z.ZodObject<{
1699
1714
  }[];
1700
1715
  };
1701
1716
  }>>;
1717
+ /**
1718
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1719
+ */
1702
1720
  type PerpsBookEvent = z.infer<typeof PerpsBookEventSchema>;
1721
+ /**
1722
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1723
+ */
1703
1724
  declare const PerpsTickerEventSchema: z.ZodPipe<z.ZodObject<{
1704
1725
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1705
1726
  sq: z.ZodNumber;
@@ -1763,7 +1784,13 @@ declare const PerpsTickerEventSchema: z.ZodPipe<z.ZodObject<{
1763
1784
  nextFunding: EpochMilliseconds;
1764
1785
  };
1765
1786
  }>>;
1787
+ /**
1788
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1789
+ */
1766
1790
  type PerpsTickerEvent = z.infer<typeof PerpsTickerEventSchema>;
1791
+ /**
1792
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1793
+ */
1767
1794
  declare const PerpsStatisticEventSchema: z.ZodPipe<z.ZodObject<{
1768
1795
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1769
1796
  sq: z.ZodNumber;
@@ -1847,7 +1874,13 @@ declare const PerpsStatisticEventSchema: z.ZodPipe<z.ZodObject<{
1847
1874
  }[];
1848
1875
  };
1849
1876
  }>>;
1877
+ /**
1878
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1879
+ */
1850
1880
  type PerpsStatisticEvent = z.infer<typeof PerpsStatisticEventSchema>;
1881
+ /**
1882
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1883
+ */
1851
1884
  declare const PerpsCandleEventSchema: z.ZodPipe<z.ZodObject<{
1852
1885
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1853
1886
  sq: z.ZodNumber;
@@ -1894,12 +1927,18 @@ declare const PerpsCandleEventSchema: z.ZodPipe<z.ZodObject<{
1894
1927
  trades: number;
1895
1928
  }[];
1896
1929
  }>>;
1930
+ /**
1931
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1932
+ */
1897
1933
  type PerpsCandleEvent = z.infer<typeof PerpsCandleEventSchema>;
1934
+ /**
1935
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1936
+ */
1898
1937
  declare const PerpsMarketDataEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
1899
1938
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1900
1939
  sq: z.ZodNumber;
1901
1940
  ch: z.ZodString;
1902
- data: z.ZodPipe<z.ZodObject<{
1941
+ data: z.ZodArray<z.ZodPipe<z.ZodObject<{
1903
1942
  tid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
1904
1943
  iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
1905
1944
  side: z.ZodEnum<typeof PerpsSide>;
@@ -1923,7 +1962,7 @@ declare const PerpsMarketDataEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodOb
1923
1962
  qty: DecimalString;
1924
1963
  ts: EpochMilliseconds;
1925
1964
  hash?: _polymarket_types.TxHash | undefined;
1926
- }>>;
1965
+ }>>>;
1927
1966
  }, z.core.$strip>, z.ZodTransform<{
1928
1967
  topic: "perps.trades";
1929
1968
  type: "trade";
@@ -1938,7 +1977,7 @@ declare const PerpsMarketDataEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodOb
1938
1977
  quantity: DecimalString;
1939
1978
  timestamp: EpochMilliseconds;
1940
1979
  hash: _polymarket_types.TxHash | undefined;
1941
- };
1980
+ }[];
1942
1981
  }, {
1943
1982
  ts: EpochMilliseconds;
1944
1983
  sq: number;
@@ -1951,7 +1990,7 @@ declare const PerpsMarketDataEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodOb
1951
1990
  quantity: DecimalString;
1952
1991
  timestamp: EpochMilliseconds;
1953
1992
  hash: _polymarket_types.TxHash | undefined;
1954
- };
1993
+ }[];
1955
1994
  }>>, z.ZodPipe<z.ZodObject<{
1956
1995
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
1957
1996
  sq: z.ZodNumber;
@@ -2252,7 +2291,13 @@ declare const PerpsMarketDataEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodOb
2252
2291
  trades: number;
2253
2292
  }[];
2254
2293
  }>>]>;
2294
+ /**
2295
+ * @experimental This API may change in a breaking way in any release, including patch releases.
2296
+ */
2255
2297
  type PerpsMarketDataEvent = z.infer<typeof PerpsMarketDataEventSchema>;
2298
+ /**
2299
+ * @experimental This API may change in a breaking way in any release, including patch releases.
2300
+ */
2256
2301
  declare const PerpsBalanceUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2257
2302
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
2258
2303
  sq: z.ZodNumber;
@@ -2282,7 +2327,13 @@ declare const PerpsBalanceUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2282
2327
  value: DecimalString;
2283
2328
  };
2284
2329
  }>>;
2330
+ /**
2331
+ * @experimental This API may change in a breaking way in any release, including patch releases.
2332
+ */
2285
2333
  type PerpsBalanceUpdateEvent = z.infer<typeof PerpsBalanceUpdateEventSchema>;
2334
+ /**
2335
+ * @experimental This API may change in a breaking way in any release, including patch releases.
2336
+ */
2286
2337
  declare const PerpsPortfolioUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2287
2338
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
2288
2339
  sq: z.ZodNumber;
@@ -2463,7 +2514,13 @@ declare const PerpsPortfolioUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2463
2514
  timestamp: EpochMilliseconds;
2464
2515
  };
2465
2516
  }>>;
2517
+ /**
2518
+ * @experimental This API may change in a breaking way in any release, including patch releases.
2519
+ */
2466
2520
  type PerpsPortfolioUpdateEvent = z.infer<typeof PerpsPortfolioUpdateEventSchema>;
2521
+ /**
2522
+ * @experimental This API may change in a breaking way in any release, including patch releases.
2523
+ */
2467
2524
  declare const PerpsOrderUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2468
2525
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
2469
2526
  sq: z.ZodNumber;
@@ -2476,12 +2533,35 @@ declare const PerpsOrderUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2476
2533
  qty: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2477
2534
  tif: z.ZodEnum<typeof PerpsTimeInForce>;
2478
2535
  po: z.ZodBoolean;
2536
+ ro: z.ZodBoolean;
2479
2537
  status: z.ZodEnum<typeof PerpsOrderStatus>;
2480
2538
  rest: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2481
2539
  fill: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2482
2540
  cts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
2483
2541
  uts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
2484
2542
  coid: z.ZodOptional<z.ZodString>;
2543
+ tpsl: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
2544
+ kind: z.ZodEnum<typeof PerpsTpSlKind>;
2545
+ scope: z.ZodEnum<typeof PerpsTpSlScope>;
2546
+ trp: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2547
+ parent_oid: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>>;
2548
+ armed_qty: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
2549
+ slip_bps: z.ZodOptional<z.ZodNumber>;
2550
+ }, z.core.$strip>, z.ZodTransform<{
2551
+ kind: PerpsTpSlKind;
2552
+ scope: PerpsTpSlScope;
2553
+ triggerPrice: DecimalString;
2554
+ parentOrderId: PerpsOrderId | undefined;
2555
+ armedQuantity: DecimalString | undefined;
2556
+ slippageBps: number | undefined;
2557
+ }, {
2558
+ kind: PerpsTpSlKind;
2559
+ scope: PerpsTpSlScope;
2560
+ trp: DecimalString;
2561
+ parent_oid?: PerpsOrderId | undefined;
2562
+ armed_qty?: DecimalString | undefined;
2563
+ slip_bps?: number | undefined;
2564
+ }>>>>;
2485
2565
  }, z.core.$strip>, z.ZodTransform<{
2486
2566
  id: PerpsOrderId;
2487
2567
  instrumentId: PerpsInstrumentId;
@@ -2490,12 +2570,21 @@ declare const PerpsOrderUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2490
2570
  quantity: DecimalString;
2491
2571
  timeInForce: PerpsTimeInForce;
2492
2572
  postOnly: boolean;
2573
+ reduceOnly: boolean;
2493
2574
  status: PerpsOrderStatus;
2494
2575
  restingQuantity: DecimalString;
2495
2576
  filledQuantity: DecimalString;
2496
2577
  createdTimestamp: EpochMilliseconds;
2497
2578
  updatedTimestamp: EpochMilliseconds;
2498
2579
  clientOrderId: string | undefined;
2580
+ tpSl: {
2581
+ kind: PerpsTpSlKind;
2582
+ scope: PerpsTpSlScope;
2583
+ triggerPrice: DecimalString;
2584
+ parentOrderId: PerpsOrderId | undefined;
2585
+ armedQuantity: DecimalString | undefined;
2586
+ slippageBps: number | undefined;
2587
+ } | undefined;
2499
2588
  }, {
2500
2589
  oid: PerpsOrderId;
2501
2590
  iid: PerpsInstrumentId;
@@ -2504,12 +2593,21 @@ declare const PerpsOrderUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2504
2593
  qty: DecimalString;
2505
2594
  tif: PerpsTimeInForce;
2506
2595
  po: boolean;
2596
+ ro: boolean;
2507
2597
  status: PerpsOrderStatus;
2508
2598
  rest: DecimalString;
2509
2599
  fill: DecimalString;
2510
2600
  cts: EpochMilliseconds;
2511
2601
  uts: EpochMilliseconds;
2512
2602
  coid?: string | undefined;
2603
+ tpsl?: {
2604
+ kind: PerpsTpSlKind;
2605
+ scope: PerpsTpSlScope;
2606
+ triggerPrice: DecimalString;
2607
+ parentOrderId: PerpsOrderId | undefined;
2608
+ armedQuantity: DecimalString | undefined;
2609
+ slippageBps: number | undefined;
2610
+ } | null | undefined;
2513
2611
  }>>;
2514
2612
  }, z.core.$strip>, z.ZodTransform<{
2515
2613
  type: "order";
@@ -2524,12 +2622,21 @@ declare const PerpsOrderUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2524
2622
  quantity: DecimalString;
2525
2623
  timeInForce: PerpsTimeInForce;
2526
2624
  postOnly: boolean;
2625
+ reduceOnly: boolean;
2527
2626
  status: PerpsOrderStatus;
2528
2627
  restingQuantity: DecimalString;
2529
2628
  filledQuantity: DecimalString;
2530
2629
  createdTimestamp: EpochMilliseconds;
2531
2630
  updatedTimestamp: EpochMilliseconds;
2532
2631
  clientOrderId: string | undefined;
2632
+ tpSl: {
2633
+ kind: PerpsTpSlKind;
2634
+ scope: PerpsTpSlScope;
2635
+ triggerPrice: DecimalString;
2636
+ parentOrderId: PerpsOrderId | undefined;
2637
+ armedQuantity: DecimalString | undefined;
2638
+ slippageBps: number | undefined;
2639
+ } | undefined;
2533
2640
  };
2534
2641
  }, {
2535
2642
  ts: EpochMilliseconds;
@@ -2543,20 +2650,35 @@ declare const PerpsOrderUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2543
2650
  quantity: DecimalString;
2544
2651
  timeInForce: PerpsTimeInForce;
2545
2652
  postOnly: boolean;
2653
+ reduceOnly: boolean;
2546
2654
  status: PerpsOrderStatus;
2547
2655
  restingQuantity: DecimalString;
2548
2656
  filledQuantity: DecimalString;
2549
2657
  createdTimestamp: EpochMilliseconds;
2550
2658
  updatedTimestamp: EpochMilliseconds;
2551
2659
  clientOrderId: string | undefined;
2660
+ tpSl: {
2661
+ kind: PerpsTpSlKind;
2662
+ scope: PerpsTpSlScope;
2663
+ triggerPrice: DecimalString;
2664
+ parentOrderId: PerpsOrderId | undefined;
2665
+ armedQuantity: DecimalString | undefined;
2666
+ slippageBps: number | undefined;
2667
+ } | undefined;
2552
2668
  };
2553
2669
  }>>;
2670
+ /**
2671
+ * @experimental This API may change in a breaking way in any release, including patch releases.
2672
+ */
2554
2673
  type PerpsOrderUpdateEvent = z.infer<typeof PerpsOrderUpdateEventSchema>;
2674
+ /**
2675
+ * @experimental This API may change in a breaking way in any release, including patch releases.
2676
+ */
2555
2677
  declare const PerpsFillUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2556
2678
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
2557
2679
  sq: z.ZodNumber;
2558
2680
  ch: z.ZodLiteral<"fills">;
2559
- data: z.ZodPipe<z.ZodObject<{
2681
+ data: z.ZodArray<z.ZodPipe<z.ZodObject<{
2560
2682
  tid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
2561
2683
  oid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
2562
2684
  iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
@@ -2604,7 +2726,7 @@ declare const PerpsFillUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2604
2726
  liq: boolean;
2605
2727
  ts: EpochMilliseconds;
2606
2728
  coid?: string | undefined;
2607
- }>>;
2729
+ }>>>;
2608
2730
  }, z.core.$strip>, z.ZodTransform<{
2609
2731
  type: "fill";
2610
2732
  channel: "fills";
@@ -2626,7 +2748,7 @@ declare const PerpsFillUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2626
2748
  liquidation: boolean;
2627
2749
  timestamp: EpochMilliseconds;
2628
2750
  clientOrderId: string | undefined;
2629
- };
2751
+ }[];
2630
2752
  }, {
2631
2753
  ts: EpochMilliseconds;
2632
2754
  sq: number;
@@ -2647,9 +2769,15 @@ declare const PerpsFillUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2647
2769
  liquidation: boolean;
2648
2770
  timestamp: EpochMilliseconds;
2649
2771
  clientOrderId: string | undefined;
2650
- };
2772
+ }[];
2651
2773
  }>>;
2774
+ /**
2775
+ * @experimental This API may change in a breaking way in any release, including patch releases.
2776
+ */
2652
2777
  type PerpsFillUpdateEvent = z.infer<typeof PerpsFillUpdateEventSchema>;
2778
+ /**
2779
+ * @experimental This API may change in a breaking way in any release, including patch releases.
2780
+ */
2653
2781
  declare const PerpsFundingUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2654
2782
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
2655
2783
  sq: z.ZodNumber;
@@ -2702,7 +2830,13 @@ declare const PerpsFundingUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2702
2830
  timestamp: EpochMilliseconds;
2703
2831
  };
2704
2832
  }>>;
2833
+ /**
2834
+ * @experimental This API may change in a breaking way in any release, including patch releases.
2835
+ */
2705
2836
  type PerpsFundingUpdateEvent = z.infer<typeof PerpsFundingUpdateEventSchema>;
2837
+ /**
2838
+ * @experimental This API may change in a breaking way in any release, including patch releases.
2839
+ */
2706
2840
  declare const PerpsDepositUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2707
2841
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
2708
2842
  sq: z.ZodNumber;
@@ -2745,7 +2879,13 @@ declare const PerpsDepositUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2745
2879
  status: PerpsDepositStatus;
2746
2880
  };
2747
2881
  }>>;
2882
+ /**
2883
+ * @experimental This API may change in a breaking way in any release, including patch releases.
2884
+ */
2748
2885
  type PerpsDepositUpdateEvent = z.infer<typeof PerpsDepositUpdateEventSchema>;
2886
+ /**
2887
+ * @experimental This API may change in a breaking way in any release, including patch releases.
2888
+ */
2749
2889
  declare const PerpsWithdrawalUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2750
2890
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
2751
2891
  sq: z.ZodNumber;
@@ -2803,7 +2943,62 @@ declare const PerpsWithdrawalUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2803
2943
  hash: _polymarket_types.TxHash | undefined;
2804
2944
  };
2805
2945
  }>>;
2946
+ /**
2947
+ * @experimental This API may change in a breaking way in any release, including patch releases.
2948
+ */
2806
2949
  type PerpsWithdrawalUpdateEvent = z.infer<typeof PerpsWithdrawalUpdateEventSchema>;
2950
+ /**
2951
+ * @experimental This API may change in a breaking way in any release, including patch releases.
2952
+ */
2953
+ declare const PerpsTpSlUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2954
+ ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
2955
+ sq: z.ZodNumber;
2956
+ ch: z.ZodString;
2957
+ data: z.ZodPipe<z.ZodObject<{
2958
+ oid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
2959
+ st: z.ZodEnum<{
2960
+ cancelled: "cancelled";
2961
+ untriggered: "untriggered";
2962
+ armed: "armed";
2963
+ expired: "expired";
2964
+ }>;
2965
+ reason: z.ZodOptional<z.ZodString>;
2966
+ }, z.core.$strip>, z.ZodTransform<{
2967
+ orderId: PerpsOrderId;
2968
+ status: "cancelled" | "untriggered" | "armed" | "expired";
2969
+ reason: string | undefined;
2970
+ }, {
2971
+ oid: PerpsOrderId;
2972
+ st: "cancelled" | "untriggered" | "armed" | "expired";
2973
+ reason?: string | undefined;
2974
+ }>>;
2975
+ }, z.core.$strip>, z.ZodTransform<{
2976
+ type: "tpsl";
2977
+ channel: string;
2978
+ timestamp: EpochMilliseconds;
2979
+ sequence: number;
2980
+ payload: {
2981
+ orderId: PerpsOrderId;
2982
+ status: "cancelled" | "untriggered" | "armed" | "expired";
2983
+ reason: string | undefined;
2984
+ };
2985
+ }, {
2986
+ ts: EpochMilliseconds;
2987
+ sq: number;
2988
+ ch: string;
2989
+ data: {
2990
+ orderId: PerpsOrderId;
2991
+ status: "cancelled" | "untriggered" | "armed" | "expired";
2992
+ reason: string | undefined;
2993
+ };
2994
+ }>>;
2995
+ /**
2996
+ * @experimental This API may change in a breaking way in any release, including patch releases.
2997
+ */
2998
+ type PerpsTpSlUpdateEvent = z.infer<typeof PerpsTpSlUpdateEventSchema>;
2999
+ /**
3000
+ * @experimental This API may change in a breaking way in any release, including patch releases.
3001
+ */
2807
3002
  declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
2808
3003
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
2809
3004
  sq: z.ZodNumber;
@@ -3023,12 +3218,35 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3023
3218
  qty: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3024
3219
  tif: z.ZodEnum<typeof PerpsTimeInForce>;
3025
3220
  po: z.ZodBoolean;
3221
+ ro: z.ZodBoolean;
3026
3222
  status: z.ZodEnum<typeof PerpsOrderStatus>;
3027
3223
  rest: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3028
3224
  fill: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3029
3225
  cts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
3030
3226
  uts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
3031
3227
  coid: z.ZodOptional<z.ZodString>;
3228
+ tpsl: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
3229
+ kind: z.ZodEnum<typeof PerpsTpSlKind>;
3230
+ scope: z.ZodEnum<typeof PerpsTpSlScope>;
3231
+ trp: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3232
+ parent_oid: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>>;
3233
+ armed_qty: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
3234
+ slip_bps: z.ZodOptional<z.ZodNumber>;
3235
+ }, z.core.$strip>, z.ZodTransform<{
3236
+ kind: PerpsTpSlKind;
3237
+ scope: PerpsTpSlScope;
3238
+ triggerPrice: DecimalString;
3239
+ parentOrderId: PerpsOrderId | undefined;
3240
+ armedQuantity: DecimalString | undefined;
3241
+ slippageBps: number | undefined;
3242
+ }, {
3243
+ kind: PerpsTpSlKind;
3244
+ scope: PerpsTpSlScope;
3245
+ trp: DecimalString;
3246
+ parent_oid?: PerpsOrderId | undefined;
3247
+ armed_qty?: DecimalString | undefined;
3248
+ slip_bps?: number | undefined;
3249
+ }>>>>;
3032
3250
  }, z.core.$strip>, z.ZodTransform<{
3033
3251
  id: PerpsOrderId;
3034
3252
  instrumentId: PerpsInstrumentId;
@@ -3037,12 +3255,21 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3037
3255
  quantity: DecimalString;
3038
3256
  timeInForce: PerpsTimeInForce;
3039
3257
  postOnly: boolean;
3258
+ reduceOnly: boolean;
3040
3259
  status: PerpsOrderStatus;
3041
3260
  restingQuantity: DecimalString;
3042
3261
  filledQuantity: DecimalString;
3043
3262
  createdTimestamp: EpochMilliseconds;
3044
3263
  updatedTimestamp: EpochMilliseconds;
3045
3264
  clientOrderId: string | undefined;
3265
+ tpSl: {
3266
+ kind: PerpsTpSlKind;
3267
+ scope: PerpsTpSlScope;
3268
+ triggerPrice: DecimalString;
3269
+ parentOrderId: PerpsOrderId | undefined;
3270
+ armedQuantity: DecimalString | undefined;
3271
+ slippageBps: number | undefined;
3272
+ } | undefined;
3046
3273
  }, {
3047
3274
  oid: PerpsOrderId;
3048
3275
  iid: PerpsInstrumentId;
@@ -3051,12 +3278,21 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3051
3278
  qty: DecimalString;
3052
3279
  tif: PerpsTimeInForce;
3053
3280
  po: boolean;
3281
+ ro: boolean;
3054
3282
  status: PerpsOrderStatus;
3055
3283
  rest: DecimalString;
3056
3284
  fill: DecimalString;
3057
3285
  cts: EpochMilliseconds;
3058
3286
  uts: EpochMilliseconds;
3059
3287
  coid?: string | undefined;
3288
+ tpsl?: {
3289
+ kind: PerpsTpSlKind;
3290
+ scope: PerpsTpSlScope;
3291
+ triggerPrice: DecimalString;
3292
+ parentOrderId: PerpsOrderId | undefined;
3293
+ armedQuantity: DecimalString | undefined;
3294
+ slippageBps: number | undefined;
3295
+ } | null | undefined;
3060
3296
  }>>;
3061
3297
  }, z.core.$strip>, z.ZodTransform<{
3062
3298
  type: "order";
@@ -3071,12 +3307,21 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3071
3307
  quantity: DecimalString;
3072
3308
  timeInForce: PerpsTimeInForce;
3073
3309
  postOnly: boolean;
3310
+ reduceOnly: boolean;
3074
3311
  status: PerpsOrderStatus;
3075
3312
  restingQuantity: DecimalString;
3076
3313
  filledQuantity: DecimalString;
3077
3314
  createdTimestamp: EpochMilliseconds;
3078
3315
  updatedTimestamp: EpochMilliseconds;
3079
3316
  clientOrderId: string | undefined;
3317
+ tpSl: {
3318
+ kind: PerpsTpSlKind;
3319
+ scope: PerpsTpSlScope;
3320
+ triggerPrice: DecimalString;
3321
+ parentOrderId: PerpsOrderId | undefined;
3322
+ armedQuantity: DecimalString | undefined;
3323
+ slippageBps: number | undefined;
3324
+ } | undefined;
3080
3325
  };
3081
3326
  }, {
3082
3327
  ts: EpochMilliseconds;
@@ -3090,18 +3335,27 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3090
3335
  quantity: DecimalString;
3091
3336
  timeInForce: PerpsTimeInForce;
3092
3337
  postOnly: boolean;
3338
+ reduceOnly: boolean;
3093
3339
  status: PerpsOrderStatus;
3094
3340
  restingQuantity: DecimalString;
3095
3341
  filledQuantity: DecimalString;
3096
3342
  createdTimestamp: EpochMilliseconds;
3097
3343
  updatedTimestamp: EpochMilliseconds;
3098
3344
  clientOrderId: string | undefined;
3345
+ tpSl: {
3346
+ kind: PerpsTpSlKind;
3347
+ scope: PerpsTpSlScope;
3348
+ triggerPrice: DecimalString;
3349
+ parentOrderId: PerpsOrderId | undefined;
3350
+ armedQuantity: DecimalString | undefined;
3351
+ slippageBps: number | undefined;
3352
+ } | undefined;
3099
3353
  };
3100
3354
  }>>, z.ZodPipe<z.ZodObject<{
3101
3355
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
3102
3356
  sq: z.ZodNumber;
3103
3357
  ch: z.ZodLiteral<"fills">;
3104
- data: z.ZodPipe<z.ZodObject<{
3358
+ data: z.ZodArray<z.ZodPipe<z.ZodObject<{
3105
3359
  tid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
3106
3360
  oid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
3107
3361
  iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
@@ -3149,7 +3403,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3149
3403
  liq: boolean;
3150
3404
  ts: EpochMilliseconds;
3151
3405
  coid?: string | undefined;
3152
- }>>;
3406
+ }>>>;
3153
3407
  }, z.core.$strip>, z.ZodTransform<{
3154
3408
  type: "fill";
3155
3409
  channel: "fills";
@@ -3171,7 +3425,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3171
3425
  liquidation: boolean;
3172
3426
  timestamp: EpochMilliseconds;
3173
3427
  clientOrderId: string | undefined;
3174
- };
3428
+ }[];
3175
3429
  }, {
3176
3430
  ts: EpochMilliseconds;
3177
3431
  sq: number;
@@ -3192,7 +3446,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3192
3446
  liquidation: boolean;
3193
3447
  timestamp: EpochMilliseconds;
3194
3448
  clientOrderId: string | undefined;
3195
- };
3449
+ }[];
3196
3450
  }>>, z.ZodPipe<z.ZodObject<{
3197
3451
  ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
3198
3452
  sq: z.ZodNumber;
@@ -3341,8 +3595,55 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3341
3595
  to: _polymarket_types.EvmAddress;
3342
3596
  hash: _polymarket_types.TxHash | undefined;
3343
3597
  };
3598
+ }>>, z.ZodPipe<z.ZodObject<{
3599
+ ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
3600
+ sq: z.ZodNumber;
3601
+ ch: z.ZodString;
3602
+ data: z.ZodPipe<z.ZodObject<{
3603
+ oid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
3604
+ st: z.ZodEnum<{
3605
+ cancelled: "cancelled";
3606
+ untriggered: "untriggered";
3607
+ armed: "armed";
3608
+ expired: "expired";
3609
+ }>;
3610
+ reason: z.ZodOptional<z.ZodString>;
3611
+ }, z.core.$strip>, z.ZodTransform<{
3612
+ orderId: PerpsOrderId;
3613
+ status: "cancelled" | "untriggered" | "armed" | "expired";
3614
+ reason: string | undefined;
3615
+ }, {
3616
+ oid: PerpsOrderId;
3617
+ st: "cancelled" | "untriggered" | "armed" | "expired";
3618
+ reason?: string | undefined;
3619
+ }>>;
3620
+ }, z.core.$strip>, z.ZodTransform<{
3621
+ type: "tpsl";
3622
+ channel: string;
3623
+ timestamp: EpochMilliseconds;
3624
+ sequence: number;
3625
+ payload: {
3626
+ orderId: PerpsOrderId;
3627
+ status: "cancelled" | "untriggered" | "armed" | "expired";
3628
+ reason: string | undefined;
3629
+ };
3630
+ }, {
3631
+ ts: EpochMilliseconds;
3632
+ sq: number;
3633
+ ch: string;
3634
+ data: {
3635
+ orderId: PerpsOrderId;
3636
+ status: "cancelled" | "untriggered" | "armed" | "expired";
3637
+ reason: string | undefined;
3638
+ };
3344
3639
  }>>]>;
3640
+ /**
3641
+ * @experimental This API may change in a breaking way in any release, including patch releases.
3642
+ */
3345
3643
  type PerpsSessionUpdateEvent = z.infer<typeof PerpsSessionUpdateEventSchema>;
3644
+ /**
3645
+ * @experimental This API may change in a breaking way in any release, including patch releases.
3646
+ */
3346
3647
  type PerpsResyncEvent = {
3347
3648
  type: 'resync';
3348
3649
  reason: 'reconnect' | 'sequence_gap';
@@ -3350,6 +3651,9 @@ type PerpsResyncEvent = {
3350
3651
  previousSequence?: number;
3351
3652
  sequence?: number;
3352
3653
  };
3654
+ /**
3655
+ * @experimental This API may change in a breaking way in any release, including patch releases.
3656
+ */
3353
3657
  type PerpsSessionEvent = PerpsSessionUpdateEvent | PerpsResyncEvent;
3354
3658
 
3355
3659
  declare const CommentRemovedPayloadSchema: z.ZodObject<{
@@ -5572,4 +5876,4 @@ declare const SportsResultEventSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
5572
5876
  }>>;
5573
5877
  type SportsEvent = z.infer<typeof SportsResultEventSchema>;
5574
5878
 
5575
- export { type CommentCreatedEvent, CommentCreatedEventSchema, type CommentRemovedEvent, CommentRemovedEventSchema, type CommentRemovedPayload, type CommentsEvent, CommentsEventSchema, type CryptoPricesBinanceEvent, CryptoPricesBinanceEventSchema, type CryptoPricesBinanceTopic, type CryptoPricesChainlinkEvent, CryptoPricesChainlinkEventSchema, type CryptoPricesChainlinkTopic, type CryptoPricesEvent, CryptoPricesEventSchema, type CryptoPricesTopic, type CustomMarketEvent, CustomMarketEventSchema, type EquityPriceSnapshotPoint, type EquityPriceSubscribePayload, type EquityPriceUpdatePayload, type EquityPricesEvent, EquityPricesEventSchema, type EquityPricesSubscribeEvent, EquityPricesSubscribeEventSchema, type EquityPricesTopic, type EquityPricesUpdateEvent, EquityPricesUpdateEventSchema, type MarketBestBidAskEvent, MarketBestBidAskEventSchema, type MarketBookEvent, MarketBookEventSchema, type MarketEvent, type MarketEventMessage, MarketEventSchema, type MarketLastTradePriceEvent, MarketLastTradePriceEventSchema, type MarketPriceChangeEvent, MarketPriceChangeEventSchema, type MarketResolvedEvent, MarketResolvedEventSchema, type MarketTickSizeChangeEvent, MarketTickSizeChangeEventSchema, type NewMarketEvent, NewMarketEventSchema, type OrderBookLevel, type PerpsBalanceUpdateEvent, PerpsBalanceUpdateEventSchema, type PerpsBboEvent, PerpsBboEventSchema, type PerpsBookEvent, PerpsBookEventSchema, type PerpsCandleEvent, PerpsCandleEventSchema, type PerpsDepositUpdateEvent, PerpsDepositUpdateEventSchema, type PerpsFillUpdateEvent, PerpsFillUpdateEventSchema, type PerpsFundingUpdateEvent, PerpsFundingUpdateEventSchema, type PerpsMarketDataEvent, PerpsMarketDataEventSchema, type PerpsOrderUpdateEvent, PerpsOrderUpdateEventSchema, type PerpsPortfolioUpdateEvent, PerpsPortfolioUpdateEventSchema, type PerpsResyncEvent, type PerpsSessionEvent, type PerpsSessionUpdateEvent, PerpsSessionUpdateEventSchema, type PerpsStatisticEvent, PerpsStatisticEventSchema, type PerpsTickerEvent, PerpsTickerEventSchema, type PerpsTradeEvent, PerpsTradeEventSchema, type PerpsWithdrawalUpdateEvent, PerpsWithdrawalUpdateEventSchema, type PriceChange, type PriceUpdatePayload, type ReactionCreatedEvent, ReactionCreatedEventSchema, type ReactionRemovedEvent, ReactionRemovedEventSchema, type RealtimeEvent, RealtimeEventSchema, type SportsEvent, SportsResultEventSchema, type StandardMarketEvent, StandardMarketEventSchema, type TradeMakerOrder, TradeStatus, type UserEvent, UserEventSchema, type UserOrderEvent, UserOrderEventSchema, UserOrderEventType, UserOrderStatus, type UserTradeEvent, UserTradeEventSchema };
5879
+ export { type CommentCreatedEvent, CommentCreatedEventSchema, type CommentRemovedEvent, CommentRemovedEventSchema, type CommentRemovedPayload, type CommentsEvent, CommentsEventSchema, type CryptoPricesBinanceEvent, CryptoPricesBinanceEventSchema, type CryptoPricesBinanceTopic, type CryptoPricesChainlinkEvent, CryptoPricesChainlinkEventSchema, type CryptoPricesChainlinkTopic, type CryptoPricesEvent, CryptoPricesEventSchema, type CryptoPricesTopic, type CustomMarketEvent, CustomMarketEventSchema, type EquityPriceSnapshotPoint, type EquityPriceSubscribePayload, type EquityPriceUpdatePayload, type EquityPricesEvent, EquityPricesEventSchema, type EquityPricesSubscribeEvent, EquityPricesSubscribeEventSchema, type EquityPricesTopic, type EquityPricesUpdateEvent, EquityPricesUpdateEventSchema, type MarketBestBidAskEvent, MarketBestBidAskEventSchema, type MarketBookEvent, MarketBookEventSchema, type MarketEvent, type MarketEventMessage, MarketEventSchema, type MarketLastTradePriceEvent, MarketLastTradePriceEventSchema, type MarketPriceChangeEvent, MarketPriceChangeEventSchema, type MarketResolvedEvent, MarketResolvedEventSchema, type MarketTickSizeChangeEvent, MarketTickSizeChangeEventSchema, type NewMarketEvent, NewMarketEventSchema, type OrderBookLevel, type PerpsBalanceUpdateEvent, PerpsBalanceUpdateEventSchema, type PerpsBboEvent, PerpsBboEventSchema, type PerpsBookEvent, PerpsBookEventSchema, type PerpsCandleEvent, PerpsCandleEventSchema, type PerpsDepositUpdateEvent, PerpsDepositUpdateEventSchema, type PerpsFillUpdateEvent, PerpsFillUpdateEventSchema, type PerpsFundingUpdateEvent, PerpsFundingUpdateEventSchema, type PerpsMarketDataEvent, PerpsMarketDataEventSchema, type PerpsOrderUpdateEvent, PerpsOrderUpdateEventSchema, type PerpsPortfolioUpdateEvent, PerpsPortfolioUpdateEventSchema, type PerpsResyncEvent, type PerpsSessionEvent, type PerpsSessionUpdateEvent, PerpsSessionUpdateEventSchema, type PerpsStatisticEvent, PerpsStatisticEventSchema, type PerpsTickerEvent, PerpsTickerEventSchema, type PerpsTpSlUpdateEvent, PerpsTpSlUpdateEventSchema, type PerpsTradeEvent, PerpsTradeEventSchema, type PerpsWithdrawalUpdateEvent, PerpsWithdrawalUpdateEventSchema, type PriceChange, type PriceUpdatePayload, type ReactionCreatedEvent, ReactionCreatedEventSchema, type ReactionRemovedEvent, ReactionRemovedEventSchema, type RealtimeEvent, RealtimeEventSchema, type SportsEvent, SportsResultEventSchema, type StandardMarketEvent, StandardMarketEventSchema, type TradeMakerOrder, TradeStatus, type UserEvent, UserEventSchema, type UserOrderEvent, UserOrderEventSchema, UserOrderEventType, UserOrderStatus, type UserTradeEvent, UserTradeEventSchema };